diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 62dc49c3f..d98ad583a 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -14,7 +14,7 @@ jobs: steps: - name: "Metadata" id: metadata - uses: dependabot/fetch-metadata@v2.1.0 + uses: dependabot/fetch-metadata@v2.2.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: "Enable auto-squash" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8dd22d431..fa8aff8a8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: tag: - description: 'Tag to use for the release' + description: "Tag to use for the release" required: true name: Release jobs: diff --git a/Taskfile.yaml b/Taskfile.yaml index 1723bbb10..c6576d262 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -66,7 +66,6 @@ tasks: - task: generate-sqlc seed-dev: cmds: - - sh ./hack/dev/run-go-with-env.sh run github.com/steebchen/prisma-client-go migrate dev --skip-generate - SEED_DEVELOPMENT=true sh ./hack/dev/run-go-with-env.sh run ./cmd/hatchet-admin seed start-dev: deps: @@ -150,6 +149,9 @@ tasks: lint-frontend: cmds: - cd frontend/app/ && pnpm run lint:check + format-prisma: + cmds: + - go run github.com/steebchen/prisma-client-go format kill-query-engines: cmds: - ps -A | grep 'prisma-query-engine-darwin-arm64' | grep -v grep | awk '{print $1}' | xargs kill -9 $1 @@ -175,4 +177,5 @@ tasks: deps: - pre-commit-install cmds: + - task: format-prisma - pre-commit run --all-files || pre-commit run --all-files diff --git a/api-contracts/dispatcher/dispatcher.proto b/api-contracts/dispatcher/dispatcher.proto index 581ea1f00..79b854f32 100644 --- a/api-contracts/dispatcher/dispatcher.proto +++ b/api-contracts/dispatcher/dispatcher.proto @@ -31,6 +31,14 @@ service Dispatcher { rpc RefreshTimeout(RefreshTimeoutRequest) returns (RefreshTimeoutResponse) {} rpc ReleaseSlot(ReleaseSlotRequest) returns (ReleaseSlotResponse) {} + + rpc UpsertWorkerLabels(UpsertWorkerLabelsRequest) returns (UpsertWorkerLabelsResponse) {} +} + +message WorkerLabels { + // value of the label + optional string strValue = 1; + optional int32 intValue = 2; } message WorkerRegisterRequest { @@ -45,6 +53,9 @@ message WorkerRegisterRequest { // (optional) the max number of runs this worker can handle optional int32 maxRuns = 4; + + // (optional) worker labels (i.e. state or other metadata) + map labels = 5; } message WorkerRegisterResponse { @@ -58,6 +69,23 @@ message WorkerRegisterResponse { string workerName = 3; } +message UpsertWorkerLabelsRequest { + // the name of the worker + string workerId = 1; + + // (optional) the worker labels + map labels = 2; +} + + +message UpsertWorkerLabelsResponse { + // the tenant id + string tenantId = 1; + + // the id of the worker + string workerId = 2; +} + enum ActionType { START_STEP_RUN = 0; CANCEL_STEP_RUN = 1; @@ -103,6 +131,18 @@ message AssignedAction { // the count number of the retry attempt int32 retryCount = 13; + + // (optional) additional metadata set on the workflow + optional string additional_metadata = 14; + + // (optional) the child workflow index (if this is a child workflow) + optional int32 child_workflow_index = 15; + + // (optional) the child workflow key (if this is a child workflow) + optional string child_workflow_key = 16; + + // (optional) the parent workflow run id (if this is a child workflow) + optional string parent_workflow_run_id = 17; } message WorkerListenRequest { @@ -196,7 +236,13 @@ message ActionEventResponse { message SubscribeToWorkflowEventsRequest { // the id of the workflow run - string workflowRunId = 1; + optional string workflowRunId = 1; + + // the key of the additional meta field to subscribe to + optional string additionalMetaKey = 2; + + // the value of the additional meta field to subscribe to + optional string additionalMetaValue = 3; } message SubscribeToWorkflowRunsRequest { diff --git a/api-contracts/openapi/components/schemas/_index.yaml b/api-contracts/openapi/components/schemas/_index.yaml index 9f9defa0f..849fbda6e 100644 --- a/api-contracts/openapi/components/schemas/_index.yaml +++ b/api-contracts/openapi/components/schemas/_index.yaml @@ -124,8 +124,16 @@ Step: $ref: "./workflow.yaml#/Step" WorkflowRun: $ref: "./workflow_run.yaml#/WorkflowRun" +ReplayWorkflowRunsRequest: + $ref: "./workflow_run.yaml#/ReplayWorkflowRunsRequest" +ReplayWorkflowRunsResponse: + $ref: "./workflow_run.yaml#/ReplayWorkflowRunsResponse" WorkflowRunList: $ref: "./workflow_run.yaml#/WorkflowRunList" +WorkflowRunOrderByField: + $ref: "./workflow_run.yaml#/WorkflowRunOrderByField" +WorkflowRunOrderByDirection: + $ref: "./workflow_run.yaml#/WorkflowRunOrderByDirection" WorkflowRunsMetrics: $ref: "./workflow_run.yaml#/WorkflowRunsMetrics" WorkflowRunsMetricsCounts: @@ -134,6 +142,10 @@ WorkflowRunStatus: $ref: "./workflow_run.yaml#/WorkflowRunStatus" WorkflowRunStatusList: $ref: "./workflow_run.yaml#/WorkflowRunStatusList" +WorkflowKind: + $ref: "./workflow_run.yaml#/WorkflowKind" +WorkflowKindList: + $ref: "./workflow_run.yaml#/WorkflowKindList" WorkflowRunsCancelRequest: $ref: "./workflow_run.yaml#/WorkflowRunsCancelRequest" JobRunStatus: @@ -162,6 +174,10 @@ WorkerList: $ref: "./worker.yaml#/WorkerList" Worker: $ref: "./worker.yaml#/Worker" +WorkerLabel: + $ref: "./worker.yaml#/WorkerLabel" +UpdateWorkerRequest: + $ref: "./worker.yaml#/UpdateWorkerRequest" APIToken: $ref: "./api_tokens.yaml#/APIToken" CreateAPITokenRequest: diff --git a/api-contracts/openapi/components/schemas/api_tokens.yaml b/api-contracts/openapi/components/schemas/api_tokens.yaml index e88d569f7..2929ec73b 100644 --- a/api-contracts/openapi/components/schemas/api_tokens.yaml +++ b/api-contracts/openapi/components/schemas/api_tokens.yaml @@ -23,6 +23,11 @@ CreateAPITokenRequest: type: string description: A name for the API token. maxLength: 255 + expiresIn: + type: string + description: The duration for which the token is valid. + x-oapi-codegen-extra-tags: + validate: "omitnil,duration" required: - name diff --git a/api-contracts/openapi/components/schemas/metadata.yaml b/api-contracts/openapi/components/schemas/metadata.yaml index 1b77c3996..42cb5dc4b 100644 --- a/api-contracts/openapi/components/schemas/metadata.yaml +++ b/api-contracts/openapi/components/schemas/metadata.yaml @@ -105,9 +105,8 @@ APIResourceMeta: type: string description: "the id of this resource, in UUID format" example: bb214807-246e-43a5-a25d-41761d1cff9e - minLength: 36 + minLength: 0 maxLength: 36 - format: uuid createdAt: type: string description: the time that this resource was created diff --git a/api-contracts/openapi/components/schemas/worker.yaml b/api-contracts/openapi/components/schemas/worker.yaml index 5e1262ba0..14e36eeef 100644 --- a/api-contracts/openapi/components/schemas/worker.yaml +++ b/api-contracts/openapi/components/schemas/worker.yaml @@ -1,3 +1,18 @@ +WorkerLabel: + properties: + metadata: + $ref: "./metadata.yaml#/APIResourceMeta" + key: + type: string + description: The key of the label. + value: + type: string + description: The value of the label. + required: + - metadata + - key + type: object + Worker: properties: metadata: @@ -31,6 +46,7 @@ Worker: enum: - ACTIVE - INACTIVE + - PAUSED maxRuns: type: integer description: The maximum number of runs this worker can execute concurrently. @@ -44,11 +60,23 @@ Worker: minLength: 36 maxLength: 36 format: uuid + labels: + type: array + description: The current label state of the worker. + items: + $ref: "./_index.yaml#/WorkerLabel" required: - metadata - name type: object +UpdateWorkerRequest: + properties: + isPaused: + type: boolean + description: Whether the worker is paused and cannot accept new runs. + type: object + WorkerList: properties: pagination: diff --git a/api-contracts/openapi/components/schemas/workflow_run.yaml b/api-contracts/openapi/components/schemas/workflow_run.yaml index de737c011..c90239db7 100644 --- a/api-contracts/openapi/components/schemas/workflow_run.yaml +++ b/api-contracts/openapi/components/schemas/workflow_run.yaml @@ -1,3 +1,40 @@ +WorkflowRunOrderByField: + type: string + enum: + - createdAt + - startedAt + - finishedAt + - duration + +WorkflowRunOrderByDirection: + type: string + enum: + - ASC + - DESC + +ReplayWorkflowRunsRequest: + properties: + workflowRunIds: + type: array + maxLength: 500 + items: + type: string + example: bb214807-246e-43a5-a25d-41761d1cff9e + minLength: 36 + maxLength: 36 + format: uuid + required: + - workflowRunIds + +ReplayWorkflowRunsResponse: + properties: + workflowRuns: + type: array + items: + $ref: "#/WorkflowRun" + required: + - workflowRuns + WorkflowRun: type: object properties: @@ -30,6 +67,9 @@ WorkflowRun: finishedAt: type: string format: date-time + duration: + type: integer + example: 1000 parentId: type: string example: bb214807-246e-43a5-a25d-41761d1cff9e @@ -113,6 +153,18 @@ WorkflowRunStatus: - CANCELLED - QUEUED +WorkflowKind: + type: string + enum: + - FUNCTION + - DURABLE + - DAG + +WorkflowKindList: + type: array + items: + $ref: "#/WorkflowKind" + WorkflowRunStatusList: type: array items: @@ -383,7 +435,6 @@ StepRunArchive: - order - createdAt - StepRunArchiveList: properties: pagination: diff --git a/api-contracts/openapi/openapi.yaml b/api-contracts/openapi/openapi.yaml index 13abbb4ff..261df8d7d 100644 --- a/api-contracts/openapi/openapi.yaml +++ b/api-contracts/openapi/openapi.yaml @@ -126,6 +126,8 @@ paths: $ref: "./paths/step-run/step-run.yaml#/listArchives" /api/v1/tenants/{tenant}/workflows/runs: $ref: "./paths/workflow/workflow.yaml#/workflowRuns" + /api/v1/tenants/{tenant}/workflow-runs/replay: + $ref: "./paths/workflow-run/workflow-run.yaml#/replayWorkflowRuns" /api/v1/tenants/{tenant}/workflows/runs/metrics: $ref: "./paths/workflow/workflow.yaml#/workflowRunsMetrics" /api/v1/tenants/{tenant}/workflow-runs/{workflow-run}: @@ -146,3 +148,5 @@ paths: $ref: "./paths/webhook-worker/webhook-worker.yaml#/webhookworkers" /api/v1/webhook-workers/{webhook}: $ref: "./paths/webhook-worker/webhook-worker.yaml#/webhookworker" + /api/v1/workflow-runs/{workflow-run}/input: + $ref: "./paths/workflow-run/workflow-run.yaml#/getWorkflowRunInput" diff --git a/api-contracts/openapi/paths/worker/worker.yaml b/api-contracts/openapi/paths/worker/worker.yaml index 0ea437f9b..1d3c73626 100644 --- a/api-contracts/openapi/paths/worker/worker.yaml +++ b/api-contracts/openapi/paths/worker/worker.yaml @@ -37,6 +37,49 @@ withTenant: - Worker withWorker: + patch: + x-resources: ["tenant", "worker"] + description: Update a worker + operationId: worker:update + parameters: + - description: The worker id + in: path + name: worker + required: true + schema: + type: string + format: uuid + minLength: 36 + maxLength: 36 + requestBody: + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/UpdateWorkerRequest" + description: The worker update + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/Worker" + description: Successfully updated the worker + "400": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/APIErrors" + description: A malformed or bad request + "403": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/APIErrors" + description: Forbidden + summary: Update worker + tags: + - Worker get: x-resources: ["tenant", "worker"] description: Get a worker diff --git a/api-contracts/openapi/paths/workflow-run/workflow-run.yaml b/api-contracts/openapi/paths/workflow-run/workflow-run.yaml new file mode 100644 index 000000000..5307836a3 --- /dev/null +++ b/api-contracts/openapi/paths/workflow-run/workflow-run.yaml @@ -0,0 +1,94 @@ +replayWorkflowRuns: + post: + x-resources: ["tenant"] + description: Replays a list of workflow runs. + operationId: workflow-run:update:replay + parameters: + - description: The tenant id + in: path + name: tenant + required: true + schema: + type: string + format: uuid + minLength: 36 + maxLength: 36 + requestBody: + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/ReplayWorkflowRunsRequest" + description: The workflow run ids to replay + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/ReplayWorkflowRunsResponse" + description: Successfully replayed the workflow runs + "400": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/APIErrors" + description: A malformed or bad request + "403": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/APIErrors" + description: Forbidden + "429": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/APIErrors" + description: Resource limit exceeded + summary: Replay workflow runs + tags: + - Workflow Runs +getWorkflowRunInput: + get: + x-resources: ["tenant", "workflow-run"] + description: Get the input for a workflow run. + operationId: workflow-run:get:input + parameters: + - description: The workflow run id + in: path + name: workflow-run + required: true + schema: + type: string + format: uuid + minLength: 36 + maxLength: 36 + responses: + "200": + content: + application/json: + schema: + type: object + additionalProperties: true + description: Successfully retrieved the workflow run input + "400": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/APIErrors" + description: A malformed or bad request + "403": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/APIErrors" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "../../components/schemas/_index.yaml#/APIErrors" + description: Workflow run not found + summary: Get workflow run input + tags: + - Workflow Runs diff --git a/api-contracts/openapi/paths/workflow/workflow.yaml b/api-contracts/openapi/paths/workflow/workflow.yaml index 038fd3dd9..979a059ca 100644 --- a/api-contracts/openapi/paths/workflow/workflow.yaml +++ b/api-contracts/openapi/paths/workflow/workflow.yaml @@ -404,6 +404,12 @@ workflowRuns: required: false schema: $ref: "../../components/schemas/_index.yaml#/WorkflowRunStatusList" + - description: A list of workflow kinds to filter by + in: query + name: kinds + required: false + schema: + $ref: "../../components/schemas/_index.yaml#/WorkflowKindList" - description: A list of metadata key value pairs to filter by in: query name: additionalMetadata @@ -413,6 +419,18 @@ workflowRuns: type: array items: type: string + - description: The order by field + in: query + name: orderByField + required: false + schema: + $ref: "../../components/schemas/_index.yaml#/WorkflowRunOrderByField" + - description: The order by direction + in: query + name: orderByDirection + required: false + schema: + $ref: "../../components/schemas/_index.yaml#/WorkflowRunOrderByDirection" responses: "200": content: diff --git a/api-contracts/workflows/workflows.proto b/api-contracts/workflows/workflows.proto index 2d3e73bfc..5ebb958e2 100644 --- a/api-contracts/workflows/workflows.proto +++ b/api-contracts/workflows/workflows.proto @@ -16,6 +16,17 @@ message PutWorkflowRequest { CreateWorkflowVersionOpts opts = 1; } +enum StickyStrategy { + SOFT = 0; + HARD = 1; +} + +enum WorkflowKind { + FUNCTION = 0; + DURABLE = 1; + DAG = 2; +} + // CreateWorkflowVersionOpts represents options to create a workflow version. message CreateWorkflowVersionOpts { string name = 1; // (required) the workflow name @@ -29,6 +40,8 @@ message CreateWorkflowVersionOpts { optional string schedule_timeout = 9; // (optional) the timeout for the schedule optional string cron_input = 10; // (optional) the input for the cron trigger optional CreateWorkflowJobOpts on_failure_job = 11; // (optional) the job to run on failure + optional StickyStrategy sticky = 12; // (optional) the sticky strategy for assigning steps to workers + optional WorkflowKind kind = 13; // (optional) the kind of workflow } enum ConcurrencyLimitStrategy { @@ -52,6 +65,41 @@ message CreateWorkflowJobOpts { repeated CreateWorkflowStepOpts steps = 4; // (required) the job steps } +enum WorkerLabelComparator { + EQUAL = 0; + NOT_EQUAL = 1; + GREATER_THAN = 2; + GREATER_THAN_OR_EQUAL = 3; + LESS_THAN = 4; + LESS_THAN_OR_EQUAL = 5; +} + +message DesiredWorkerLabels { + // value of the affinity + optional string strValue = 1; + optional int32 intValue = 2; + + /** + * (optional) Specifies whether the affinity setting is required. + * If required, the worker will not accept actions that do not have a truthy affinity setting. + * + * Defaults to false. + */ + optional bool required = 3; + + /** + * (optional) Specifies the comparator for the affinity setting. + * If not set, the default is EQUAL. + */ + optional WorkerLabelComparator comparator = 4; + + /** + * (optional) Specifies the weight of the affinity setting. + * If not set, the default is 100. + */ + optional int32 weight = 5; +} + // CreateWorkflowStepOpts represents options to create a workflow step. message CreateWorkflowStepOpts { string readable_id = 1; // (required) the step name @@ -62,6 +110,7 @@ message CreateWorkflowStepOpts { string user_data = 6; // (optional) the custom step user data, assuming string representation of JSON int32 retries = 7; // (optional) the number of retries for the step, default 0 repeated CreateStepRateLimit rate_limits = 8; // (optional) the rate limits for the step + map worker_labels = 9; // (optional) the desired worker affinity state for the step } message CreateStepRateLimit { @@ -141,6 +190,10 @@ message TriggerWorkflowRequest { // (optional) additional metadata for the workflow optional string additional_metadata = 7; + + // (optional) desired worker id for the workflow run, + // requires the workflow definition to have a sticky strategy + optional string desired_worker_id = 8; } message TriggerWorkflowResponse { diff --git a/api/v1/server/authn/middleware.go b/api/v1/server/authn/middleware.go index 9d02271d7..16d76ccd7 100644 --- a/api/v1/server/authn/middleware.go +++ b/api/v1/server/authn/middleware.go @@ -52,27 +52,33 @@ func (a *AuthN) authenticate(c echo.Context, r *middleware.RouteInfo) error { return a.handleNoAuth(c) } - var err error + var cookieErr error if r.Security.CookieAuth() { - err = a.handleCookieAuth(c) + cookieErr = a.handleCookieAuth(c) c.Set("auth_strategy", "cookie") + + if cookieErr == nil { + return nil + } } - if err != nil && !r.Security.BearerAuth() { - return err + if cookieErr != nil && !r.Security.BearerAuth() { + return cookieErr } - if err != nil && r.Security.BearerAuth() { - err = a.handleBearerAuth(c) + var bearerErr error + + if r.Security.BearerAuth() { + bearerErr = a.handleBearerAuth(c) c.Set("auth_strategy", "bearer") - if err == nil { + if bearerErr == nil { return nil } } - return err + return bearerErr } func (a *AuthN) handleNoAuth(c echo.Context) error { diff --git a/api/v1/server/handlers/api-tokens/create.go b/api/v1/server/handlers/api-tokens/create.go index ab229b34c..23dd2e1e1 100644 --- a/api/v1/server/handlers/api-tokens/create.go +++ b/api/v1/server/handlers/api-tokens/create.go @@ -1,8 +1,11 @@ package apitokens import ( + "time" + "github.com/labstack/echo/v4" + "github.com/hatchet-dev/hatchet/api/v1/server/oas/apierrors" "github.com/hatchet-dev/hatchet/api/v1/server/oas/gen" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" ) @@ -17,7 +20,21 @@ func (a *APITokenService) ApiTokenCreate(ctx echo.Context, request gen.ApiTokenC return gen.ApiTokenCreate400JSONResponse(*apiErrors), nil } - token, err := a.config.Auth.JWTManager.GenerateTenantToken(ctx.Request().Context(), tenant.ID, request.Body.Name) + var expiresAt *time.Time + + if request.Body.ExpiresIn != nil { + expiresIn, err := time.ParseDuration(*request.Body.ExpiresIn) + + if err != nil { + return gen.ApiTokenCreate400JSONResponse(apierrors.NewAPIErrors("invalid expiration duration")), nil + } + + e := time.Now().UTC().Add(expiresIn) + + expiresAt = &e + } + + token, err := a.config.Auth.JWTManager.GenerateTenantToken(ctx.Request().Context(), tenant.ID, request.Body.Name, false, expiresAt) if err != nil { return nil, err diff --git a/api/v1/server/handlers/api-tokens/revoke.go b/api/v1/server/handlers/api-tokens/revoke.go index 2e79c873b..ec640f18d 100644 --- a/api/v1/server/handlers/api-tokens/revoke.go +++ b/api/v1/server/handlers/api-tokens/revoke.go @@ -3,6 +3,7 @@ package apitokens import ( "github.com/labstack/echo/v4" + "github.com/hatchet-dev/hatchet/api/v1/server/oas/apierrors" "github.com/hatchet-dev/hatchet/api/v1/server/oas/gen" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" ) @@ -10,6 +11,12 @@ import ( func (a *APITokenService) ApiTokenUpdateRevoke(ctx echo.Context, request gen.ApiTokenUpdateRevokeRequestObject) (gen.ApiTokenUpdateRevokeResponseObject, error) { apiToken := ctx.Get("api-token").(*db.APITokenModel) + if apiToken.Internal { + return gen.ApiTokenUpdateRevoke403JSONResponse( + apierrors.NewAPIErrors("Cannot revoke internal API tokens"), + ), nil + } + err := a.config.APIRepository.APIToken().RevokeAPIToken(apiToken.ID) if err != nil { diff --git a/api/v1/server/handlers/tenants/create.go b/api/v1/server/handlers/tenants/create.go index 35df2c95a..c4a8cb676 100644 --- a/api/v1/server/handlers/tenants/create.go +++ b/api/v1/server/handlers/tenants/create.go @@ -49,6 +49,10 @@ func (t *TenantService) TenantCreate(ctx echo.Context, request gen.TenantCreateR Name: request.Body.Name, } + if t.config.Runtime.Limits.DefaultTenantRetentionPeriod != "" { + createOpts.DataRetentionPeriod = &t.config.Runtime.Limits.DefaultTenantRetentionPeriod + } + // write the user to the db tenant, err := t.config.APIRepository.Tenant().CreateTenant(createOpts) diff --git a/api/v1/server/handlers/workers/get.go b/api/v1/server/handlers/workers/get.go index d28634fce..96bd2d71d 100644 --- a/api/v1/server/handlers/workers/get.go +++ b/api/v1/server/handlers/workers/get.go @@ -33,5 +33,13 @@ func (t *WorkerService) WorkerGet(ctx echo.Context, request gen.WorkerGetRequest workerResp.RecentStepRuns = &respStepRuns + affinity, err := t.config.APIRepository.Worker().ListWorkerLabels(worker.TenantID, worker.ID) + + if err != nil { + return nil, err + } + + workerResp.Labels = transformers.ToWorkerLabels(affinity) + return gen.WorkerGet200JSONResponse(workerResp), nil } diff --git a/api/v1/server/handlers/workers/list.go b/api/v1/server/handlers/workers/list.go index 5f461865a..2cae8c8f2 100644 --- a/api/v1/server/handlers/workers/list.go +++ b/api/v1/server/handlers/workers/list.go @@ -30,7 +30,7 @@ func (t *WorkerService) WorkerList(ctx echo.Context, request gen.WorkerListReque workerCp := worker slots := int(worker.Slots) - rows[i] = *transformers.ToWorkerSqlc(&workerCp.Worker, &worker.RunningStepRuns, &slots) + rows[i] = *transformers.ToWorkerSqlc(&workerCp.Worker, &slots) } return gen.WorkerList200JSONResponse( diff --git a/api/v1/server/handlers/workers/update.go b/api/v1/server/handlers/workers/update.go new file mode 100644 index 000000000..60aaddf76 --- /dev/null +++ b/api/v1/server/handlers/workers/update.go @@ -0,0 +1,35 @@ +package workers + +import ( + "github.com/labstack/echo/v4" + + "github.com/hatchet-dev/hatchet/api/v1/server/oas/gen" + "github.com/hatchet-dev/hatchet/api/v1/server/oas/transformers" + "github.com/hatchet-dev/hatchet/pkg/repository" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" +) + +func (t *WorkerService) WorkerUpdate(ctx echo.Context, request gen.WorkerUpdateRequestObject) (gen.WorkerUpdateResponseObject, error) { + worker := ctx.Get("worker").(*db.WorkerModel) + + // validate the request + if apiErrors, err := t.config.Validator.ValidateAPI(request.Body); err != nil { + return nil, err + } else if apiErrors != nil { + return gen.WorkerUpdate400JSONResponse(*apiErrors), nil + } + + update := repository.ApiUpdateWorkerOpts{} + + if request.Body.IsPaused != nil { + update.IsPaused = request.Body.IsPaused + } + + updatedWorker, err := t.config.APIRepository.Worker().UpdateWorker(worker.TenantID, worker.ID, update) + + if err != nil { + return nil, err + } + + return gen.WorkerUpdate200JSONResponse(*transformers.ToWorkerSqlc(updatedWorker, nil)), nil +} diff --git a/api/v1/server/handlers/workflow-runs/get_input.go b/api/v1/server/handlers/workflow-runs/get_input.go new file mode 100644 index 000000000..d465a8b4c --- /dev/null +++ b/api/v1/server/handlers/workflow-runs/get_input.go @@ -0,0 +1,23 @@ +package workflowruns + +import ( + "github.com/labstack/echo/v4" + + "github.com/hatchet-dev/hatchet/api/v1/server/oas/gen" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" +) + +func (t *WorkflowRunsService) WorkflowRunGetInput(ctx echo.Context, request gen.WorkflowRunGetInputRequestObject) (gen.WorkflowRunGetInputResponseObject, error) { + tenant := ctx.Get("tenant").(*db.TenantModel) + run := ctx.Get("workflow-run").(*db.WorkflowRunModel) + + input, err := t.config.APIRepository.WorkflowRun().GetWorkflowRunInputData(tenant.ID, run.ID) + + if err != nil { + return nil, err + } + + return gen.WorkflowRunGetInput200JSONResponse( + input, + ), nil +} diff --git a/api/v1/server/handlers/workflow-runs/replay_batch.go b/api/v1/server/handlers/workflow-runs/replay_batch.go new file mode 100644 index 000000000..5059fb0c7 --- /dev/null +++ b/api/v1/server/handlers/workflow-runs/replay_batch.go @@ -0,0 +1,77 @@ +package workflowruns + +import ( + "github.com/hashicorp/go-multierror" + "github.com/labstack/echo/v4" + + "github.com/hatchet-dev/hatchet/api/v1/server/oas/gen" + "github.com/hatchet-dev/hatchet/api/v1/server/oas/transformers" + "github.com/hatchet-dev/hatchet/internal/msgqueue" + "github.com/hatchet-dev/hatchet/internal/services/shared/tasktypes" + "github.com/hatchet-dev/hatchet/pkg/repository" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" +) + +func (t *WorkflowRunsService) WorkflowRunUpdateReplay(ctx echo.Context, request gen.WorkflowRunUpdateReplayRequestObject) (gen.WorkflowRunUpdateReplayResponseObject, error) { + tenant := ctx.Get("tenant").(*db.TenantModel) + + workflowRunIds := make([]string, len(request.Body.WorkflowRunIds)) + + for i := range request.Body.WorkflowRunIds { + workflowRunIds[i] = request.Body.WorkflowRunIds[i].String() + } + + limit := 500 + + // make sure all workflow runs belong to the tenant + filteredWorkflowRuns, err := t.config.EngineRepository.WorkflowRun().ListWorkflowRuns(ctx.Request().Context(), tenant.ID, &repository.ListWorkflowRunsOpts{ + Ids: workflowRunIds, + Limit: &limit, + }) + + if err != nil { + return nil, err + } + + var allErrs error + + for i := range filteredWorkflowRuns.Rows { + // push to task queue + err = t.config.MessageQueue.AddMessage( + ctx.Request().Context(), + msgqueue.WORKFLOW_PROCESSING_QUEUE, + tasktypes.WorkflowRunReplayToTask(tenant.ID, sqlchelpers.UUIDToStr(filteredWorkflowRuns.Rows[i].WorkflowRun.ID)), + ) + + if err != nil { + allErrs = multierror.Append(allErrs, err) + } + } + + if allErrs != nil { + return nil, allErrs + } + + newWorkflowRuns, err := t.config.APIRepository.WorkflowRun().ListWorkflowRuns(tenant.ID, &repository.ListWorkflowRunsOpts{ + Ids: workflowRunIds, + Limit: &limit, + }) + + if err != nil { + return nil, err + } + + rows := make([]gen.WorkflowRun, len(newWorkflowRuns.Rows)) + + for i, workflow := range newWorkflowRuns.Rows { + workflowCp := workflow + rows[i] = *transformers.ToWorkflowRunFromSQLC(workflowCp) + } + + return gen.WorkflowRunUpdateReplay200JSONResponse( + gen.ReplayWorkflowRunsResponse{ + WorkflowRuns: rows, + }, + ), nil +} diff --git a/api/v1/server/handlers/workflow-runs/service.go b/api/v1/server/handlers/workflow-runs/service.go new file mode 100644 index 000000000..5323611e5 --- /dev/null +++ b/api/v1/server/handlers/workflow-runs/service.go @@ -0,0 +1,15 @@ +package workflowruns + +import ( + "github.com/hatchet-dev/hatchet/pkg/config/server" +) + +type WorkflowRunsService struct { + config *server.ServerConfig +} + +func NewWorkflowRunsService(config *server.ServerConfig) *WorkflowRunsService { + return &WorkflowRunsService{ + config: config, + } +} diff --git a/api/v1/server/handlers/workflows/delete.go b/api/v1/server/handlers/workflows/delete.go index 659c69581..bd34d6480 100644 --- a/api/v1/server/handlers/workflows/delete.go +++ b/api/v1/server/handlers/workflows/delete.go @@ -11,7 +11,7 @@ func (t *WorkflowService) WorkflowDelete(ctx echo.Context, request gen.WorkflowD tenant := ctx.Get("tenant").(*db.TenantModel) workflow := ctx.Get("workflow").(*db.WorkflowModel) - workflow, err := t.config.APIRepository.Workflow().DeleteWorkflow(tenant.ID, workflow.ID) + _, err := t.config.APIRepository.Workflow().DeleteWorkflow(tenant.ID, workflow.ID) if err != nil { return nil, err diff --git a/api/v1/server/handlers/workflows/list_runs.go b/api/v1/server/handlers/workflows/list_runs.go index 3af184faa..70f831935 100644 --- a/api/v1/server/handlers/workflows/list_runs.go +++ b/api/v1/server/handlers/workflows/list_runs.go @@ -29,6 +29,16 @@ func (t *WorkflowService) WorkflowRunList(ctx echo.Context, request gen.Workflow OrderDirection: &orderDirection, } + if request.Params.OrderByField != nil { + orderBy = string(*request.Params.OrderByField) + listOpts.OrderBy = &orderBy + } + + if request.Params.OrderByDirection != nil { + orderDirection = string(*request.Params.OrderByDirection) + listOpts.OrderDirection = &orderDirection + } + if request.Params.Limit != nil { limit = int(*request.Params.Limit) listOpts.Limit = &limit diff --git a/api/v1/server/oas/gen/openapi.gen.go b/api/v1/server/oas/gen/openapi.gen.go index 8af86d157..5c1de077a 100644 --- a/api/v1/server/oas/gen/openapi.gen.go +++ b/api/v1/server/oas/gen/openapi.gen.go @@ -121,6 +121,7 @@ const ( const ( ACTIVE WorkerStatus = "ACTIVE" INACTIVE WorkerStatus = "INACTIVE" + PAUSED WorkerStatus = "PAUSED" ) // Defines values for WorkflowConcurrencyLimitStrategy. @@ -131,6 +132,27 @@ const ( QUEUENEWEST WorkflowConcurrencyLimitStrategy = "QUEUE_NEWEST" ) +// Defines values for WorkflowKind. +const ( + DAG WorkflowKind = "DAG" + DURABLE WorkflowKind = "DURABLE" + FUNCTION WorkflowKind = "FUNCTION" +) + +// Defines values for WorkflowRunOrderByDirection. +const ( + ASC WorkflowRunOrderByDirection = "ASC" + DESC WorkflowRunOrderByDirection = "DESC" +) + +// Defines values for WorkflowRunOrderByField. +const ( + CreatedAt WorkflowRunOrderByField = "createdAt" + Duration WorkflowRunOrderByField = "duration" + FinishedAt WorkflowRunOrderByField = "finishedAt" + StartedAt WorkflowRunOrderByField = "startedAt" +) + // Defines values for WorkflowRunStatus. const ( WorkflowRunStatusCANCELLED WorkflowRunStatus = "CANCELLED" @@ -211,7 +233,7 @@ type APIResourceMeta struct { CreatedAt time.Time `json:"createdAt"` // Id the id of this resource, in UUID format - Id openapi_types.UUID `json:"id"` + Id string `json:"id"` // UpdatedAt the time that this resource was last updated UpdatedAt time.Time `json:"updatedAt"` @@ -234,6 +256,9 @@ type AcceptInviteRequest struct { // CreateAPITokenRequest defines model for CreateAPITokenRequest. type CreateAPITokenRequest struct { + // ExpiresIn The duration for which the token is valid. + ExpiresIn *string `json:"expiresIn,omitempty" validate:"omitnil,duration"` + // Name A name for the API token. Name string `json:"name"` } @@ -472,6 +497,16 @@ type ReplayEventRequest struct { EventIds []openapi_types.UUID `json:"eventIds"` } +// ReplayWorkflowRunsRequest defines model for ReplayWorkflowRunsRequest. +type ReplayWorkflowRunsRequest struct { + WorkflowRunIds []openapi_types.UUID `json:"workflowRunIds"` +} + +// ReplayWorkflowRunsResponse defines model for ReplayWorkflowRunsResponse. +type ReplayWorkflowRunsResponse struct { + WorkflowRuns []WorkflowRun `json:"workflowRuns"` +} + // RerunStepRunRequest defines model for RerunStepRunRequest. type RerunStepRunRequest struct { Input map[string]interface{} `json:"input"` @@ -776,6 +811,12 @@ type UpdateTenantRequest struct { Name *string `json:"name,omitempty"` } +// UpdateWorkerRequest defines model for UpdateWorkerRequest. +type UpdateWorkerRequest struct { + // IsPaused Whether the worker is paused and cannot accept new runs. + IsPaused *bool `json:"isPaused,omitempty"` +} + // User defines model for User. type User struct { // Email The email address of the user. @@ -894,6 +935,9 @@ type Worker struct { // DispatcherId the id of the assigned dispatcher, in UUID format DispatcherId *openapi_types.UUID `json:"dispatcherId,omitempty"` + // Labels The current label state of the worker. + Labels *[]WorkerLabel `json:"labels,omitempty"` + // LastHeartbeatAt The time this worker last sent a heartbeat. LastHeartbeatAt *time.Time `json:"lastHeartbeatAt,omitempty"` @@ -917,6 +961,16 @@ type Worker struct { // WorkerStatus The status of the worker. type WorkerStatus string +// WorkerLabel defines model for WorkerLabel. +type WorkerLabel struct { + // Key The key of the label. + Key string `json:"key"` + Metadata APIResourceMeta `json:"metadata"` + + // Value The value of the label. + Value *string `json:"value,omitempty"` +} + // WorkerList defines model for WorkerList. type WorkerList struct { Pagination *PaginationResponse `json:"pagination,omitempty"` @@ -959,6 +1013,12 @@ type WorkflowConcurrencyLimitStrategy string // WorkflowID A workflow ID. type WorkflowID = string +// WorkflowKind defines model for WorkflowKind. +type WorkflowKind string + +// WorkflowKindList defines model for WorkflowKindList. +type WorkflowKindList = []WorkflowKind + // WorkflowList defines model for WorkflowList. type WorkflowList struct { Metadata *APIResourceMeta `json:"metadata,omitempty"` @@ -979,6 +1039,7 @@ type WorkflowMetrics struct { type WorkflowRun struct { AdditionalMetadata *map[string]interface{} `json:"additionalMetadata,omitempty"` DisplayName *string `json:"displayName,omitempty"` + Duration *int `json:"duration,omitempty"` Error *string `json:"error,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Input *map[string]interface{} `json:"input,omitempty"` @@ -1000,6 +1061,12 @@ type WorkflowRunList struct { Rows *[]WorkflowRun `json:"rows,omitempty"` } +// WorkflowRunOrderByDirection defines model for WorkflowRunOrderByDirection. +type WorkflowRunOrderByDirection string + +// WorkflowRunOrderByField defines model for WorkflowRunOrderByField. +type WorkflowRunOrderByField string + // WorkflowRunStatus defines model for WorkflowRunStatus. type WorkflowRunStatus string @@ -1198,8 +1265,17 @@ type WorkflowRunListParams struct { // Statuses A list of workflow run statuses to filter by Statuses *WorkflowRunStatusList `form:"statuses,omitempty" json:"statuses,omitempty"` + // Kinds A list of workflow kinds to filter by + Kinds *WorkflowKindList `form:"kinds,omitempty" json:"kinds,omitempty"` + // AdditionalMetadata A list of metadata key value pairs to filter by AdditionalMetadata *[]string `form:"additionalMetadata,omitempty" json:"additionalMetadata,omitempty"` + + // OrderByField The order by field + OrderByField *WorkflowRunOrderByField `form:"orderByField,omitempty" json:"orderByField,omitempty"` + + // OrderByDirection The order by direction + OrderByDirection *WorkflowRunOrderByDirection `form:"orderByDirection,omitempty" json:"orderByDirection,omitempty"` } // WorkflowRunGetMetricsParams defines parameters for WorkflowRunGetMetrics. @@ -1283,6 +1359,9 @@ type StepRunUpdateRerunJSONRequestBody = RerunStepRunRequest // WebhookCreateJSONRequestBody defines body for WebhookCreate for application/json ContentType. type WebhookCreateJSONRequestBody = WebhookWorkerCreateRequest +// WorkflowRunUpdateReplayJSONRequestBody defines body for WorkflowRunUpdateReplay for application/json ContentType. +type WorkflowRunUpdateReplayJSONRequestBody = ReplayWorkflowRunsRequest + // WorkflowRunCancelJSONRequestBody defines body for WorkflowRunCancel for application/json ContentType. type WorkflowRunCancelJSONRequestBody = WorkflowRunsCancelRequest @@ -1301,6 +1380,9 @@ type UserUpdatePasswordJSONRequestBody = UserChangePasswordRequest // UserCreateJSONRequestBody defines body for UserCreate for application/json ContentType. type UserCreateJSONRequestBody = UserRegisterRequest +// WorkerUpdateJSONRequestBody defines body for WorkerUpdate for application/json ContentType. +type WorkerUpdateJSONRequestBody = UpdateWorkerRequest + // WorkflowRunCreateJSONRequestBody defines body for WorkflowRunCreate for application/json ContentType. type WorkflowRunCreateJSONRequestBody = TriggerWorkflowRunRequest @@ -1441,6 +1523,9 @@ type ServerInterface interface { // Get workers // (GET /api/v1/tenants/{tenant}/worker) WorkerList(ctx echo.Context, tenant openapi_types.UUID) error + // Replay workflow runs + // (POST /api/v1/tenants/{tenant}/workflow-runs/replay) + WorkflowRunUpdateReplay(ctx echo.Context, tenant openapi_types.UUID) error // Get workflow run // (GET /api/v1/tenants/{tenant}/workflow-runs/{workflow-run}) WorkflowRunGet(ctx echo.Context, tenant openapi_types.UUID, workflowRun openapi_types.UUID) error @@ -1504,6 +1589,12 @@ type ServerInterface interface { // Get worker // (GET /api/v1/workers/{worker}) WorkerGet(ctx echo.Context, worker openapi_types.UUID) error + // Update worker + // (PATCH /api/v1/workers/{worker}) + WorkerUpdate(ctx echo.Context, worker openapi_types.UUID) error + // Get workflow run input + // (GET /api/v1/workflow-runs/{workflow-run}/input) + WorkflowRunGetInput(ctx echo.Context, workflowRun openapi_types.UUID) error // Delete workflow // (DELETE /api/v1/workflows/{workflow}) WorkflowDelete(ctx echo.Context, workflow openapi_types.UUID) error @@ -2586,6 +2677,26 @@ func (w *ServerInterfaceWrapper) WorkerList(ctx echo.Context) error { return err } +// WorkflowRunUpdateReplay converts echo context to params. +func (w *ServerInterfaceWrapper) WorkflowRunUpdateReplay(ctx echo.Context) error { + var err error + // ------------- Path parameter "tenant" ------------- + var tenant openapi_types.UUID + + err = runtime.BindStyledParameterWithLocation("simple", false, "tenant", runtime.ParamLocationPath, ctx.Param("tenant"), &tenant) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tenant: %s", err)) + } + + ctx.Set(BearerAuthScopes, []string{}) + + ctx.Set(CookieAuthScopes, []string{}) + + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.WorkflowRunUpdateReplay(ctx, tenant) + return err +} + // WorkflowRunGet converts echo context to params. func (w *ServerInterfaceWrapper) WorkflowRunGet(ctx echo.Context) error { var err error @@ -2720,6 +2831,13 @@ func (w *ServerInterfaceWrapper) WorkflowRunList(ctx echo.Context) error { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter statuses: %s", err)) } + // ------------- Optional query parameter "kinds" ------------- + + err = runtime.BindQueryParameter("form", true, false, "kinds", ctx.QueryParams(), ¶ms.Kinds) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter kinds: %s", err)) + } + // ------------- Optional query parameter "additionalMetadata" ------------- err = runtime.BindQueryParameter("form", true, false, "additionalMetadata", ctx.QueryParams(), ¶ms.AdditionalMetadata) @@ -2727,6 +2845,20 @@ func (w *ServerInterfaceWrapper) WorkflowRunList(ctx echo.Context) error { return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter additionalMetadata: %s", err)) } + // ------------- Optional query parameter "orderByField" ------------- + + err = runtime.BindQueryParameter("form", true, false, "orderByField", ctx.QueryParams(), ¶ms.OrderByField) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter orderByField: %s", err)) + } + + // ------------- Optional query parameter "orderByDirection" ------------- + + err = runtime.BindQueryParameter("form", true, false, "orderByDirection", ctx.QueryParams(), ¶ms.OrderByDirection) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter orderByDirection: %s", err)) + } + // Invoke the callback with all the unmarshaled arguments err = w.Handler.WorkflowRunList(ctx, tenant, params) return err @@ -2975,6 +3107,46 @@ func (w *ServerInterfaceWrapper) WorkerGet(ctx echo.Context) error { return err } +// WorkerUpdate converts echo context to params. +func (w *ServerInterfaceWrapper) WorkerUpdate(ctx echo.Context) error { + var err error + // ------------- Path parameter "worker" ------------- + var worker openapi_types.UUID + + err = runtime.BindStyledParameterWithLocation("simple", false, "worker", runtime.ParamLocationPath, ctx.Param("worker"), &worker) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter worker: %s", err)) + } + + ctx.Set(BearerAuthScopes, []string{}) + + ctx.Set(CookieAuthScopes, []string{}) + + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.WorkerUpdate(ctx, worker) + return err +} + +// WorkflowRunGetInput converts echo context to params. +func (w *ServerInterfaceWrapper) WorkflowRunGetInput(ctx echo.Context) error { + var err error + // ------------- Path parameter "workflow-run" ------------- + var workflowRun openapi_types.UUID + + err = runtime.BindStyledParameterWithLocation("simple", false, "workflow-run", runtime.ParamLocationPath, ctx.Param("workflow-run"), &workflowRun) + if err != nil { + return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter workflow-run: %s", err)) + } + + ctx.Set(BearerAuthScopes, []string{}) + + ctx.Set(CookieAuthScopes, []string{}) + + // Invoke the callback with all the unmarshaled arguments + err = w.Handler.WorkflowRunGetInput(ctx, workflowRun) + return err +} + // WorkflowDelete converts echo context to params. func (w *ServerInterfaceWrapper) WorkflowDelete(ctx echo.Context) error { var err error @@ -3211,6 +3383,7 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL router.GET(baseURL+"/api/v1/tenants/:tenant/webhook-workers", wrapper.WebhookList) router.POST(baseURL+"/api/v1/tenants/:tenant/webhook-workers", wrapper.WebhookCreate) router.GET(baseURL+"/api/v1/tenants/:tenant/worker", wrapper.WorkerList) + router.POST(baseURL+"/api/v1/tenants/:tenant/workflow-runs/replay", wrapper.WorkflowRunUpdateReplay) router.GET(baseURL+"/api/v1/tenants/:tenant/workflow-runs/:workflow-run", wrapper.WorkflowRunGet) router.GET(baseURL+"/api/v1/tenants/:tenant/workflows", wrapper.WorkflowList) router.POST(baseURL+"/api/v1/tenants/:tenant/workflows/cancel", wrapper.WorkflowRunCancel) @@ -3232,6 +3405,8 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL router.GET(baseURL+"/api/v1/users/slack/callback", wrapper.UserUpdateSlackOauthCallback) router.DELETE(baseURL+"/api/v1/webhook-workers/:webhook", wrapper.WebhookDelete) router.GET(baseURL+"/api/v1/workers/:worker", wrapper.WorkerGet) + router.PATCH(baseURL+"/api/v1/workers/:worker", wrapper.WorkerUpdate) + router.GET(baseURL+"/api/v1/workflow-runs/:workflow-run/input", wrapper.WorkflowRunGetInput) router.DELETE(baseURL+"/api/v1/workflows/:workflow", wrapper.WorkflowDelete) router.GET(baseURL+"/api/v1/workflows/:workflow", wrapper.WorkflowGet) router.GET(baseURL+"/api/v1/workflows/:workflow/metrics", wrapper.WorkflowGetMetrics) @@ -4894,6 +5069,51 @@ func (response WorkerList403JSONResponse) VisitWorkerListResponse(w http.Respons return json.NewEncoder(w).Encode(response) } +type WorkflowRunUpdateReplayRequestObject struct { + Tenant openapi_types.UUID `json:"tenant"` + Body *WorkflowRunUpdateReplayJSONRequestBody +} + +type WorkflowRunUpdateReplayResponseObject interface { + VisitWorkflowRunUpdateReplayResponse(w http.ResponseWriter) error +} + +type WorkflowRunUpdateReplay200JSONResponse ReplayWorkflowRunsResponse + +func (response WorkflowRunUpdateReplay200JSONResponse) VisitWorkflowRunUpdateReplayResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type WorkflowRunUpdateReplay400JSONResponse APIErrors + +func (response WorkflowRunUpdateReplay400JSONResponse) VisitWorkflowRunUpdateReplayResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(400) + + return json.NewEncoder(w).Encode(response) +} + +type WorkflowRunUpdateReplay403JSONResponse APIErrors + +func (response WorkflowRunUpdateReplay403JSONResponse) VisitWorkflowRunUpdateReplayResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(403) + + return json.NewEncoder(w).Encode(response) +} + +type WorkflowRunUpdateReplay429JSONResponse APIErrors + +func (response WorkflowRunUpdateReplay429JSONResponse) VisitWorkflowRunUpdateReplayResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(429) + + return json.NewEncoder(w).Encode(response) +} + type WorkflowRunGetRequestObject struct { Tenant openapi_types.UUID `json:"tenant"` WorkflowRun openapi_types.UUID `json:"workflow-run"` @@ -5612,6 +5832,86 @@ func (response WorkerGet403JSONResponse) VisitWorkerGetResponse(w http.ResponseW return json.NewEncoder(w).Encode(response) } +type WorkerUpdateRequestObject struct { + Worker openapi_types.UUID `json:"worker"` + Body *WorkerUpdateJSONRequestBody +} + +type WorkerUpdateResponseObject interface { + VisitWorkerUpdateResponse(w http.ResponseWriter) error +} + +type WorkerUpdate200JSONResponse Worker + +func (response WorkerUpdate200JSONResponse) VisitWorkerUpdateResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type WorkerUpdate400JSONResponse APIErrors + +func (response WorkerUpdate400JSONResponse) VisitWorkerUpdateResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(400) + + return json.NewEncoder(w).Encode(response) +} + +type WorkerUpdate403JSONResponse APIErrors + +func (response WorkerUpdate403JSONResponse) VisitWorkerUpdateResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(403) + + return json.NewEncoder(w).Encode(response) +} + +type WorkflowRunGetInputRequestObject struct { + WorkflowRun openapi_types.UUID `json:"workflow-run"` +} + +type WorkflowRunGetInputResponseObject interface { + VisitWorkflowRunGetInputResponse(w http.ResponseWriter) error +} + +type WorkflowRunGetInput200JSONResponse map[string]interface{} + +func (response WorkflowRunGetInput200JSONResponse) VisitWorkflowRunGetInputResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + + return json.NewEncoder(w).Encode(response) +} + +type WorkflowRunGetInput400JSONResponse APIErrors + +func (response WorkflowRunGetInput400JSONResponse) VisitWorkflowRunGetInputResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(400) + + return json.NewEncoder(w).Encode(response) +} + +type WorkflowRunGetInput403JSONResponse APIErrors + +func (response WorkflowRunGetInput403JSONResponse) VisitWorkflowRunGetInputResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(403) + + return json.NewEncoder(w).Encode(response) +} + +type WorkflowRunGetInput404JSONResponse APIErrors + +func (response WorkflowRunGetInput404JSONResponse) VisitWorkflowRunGetInputResponse(w http.ResponseWriter) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(404) + + return json.NewEncoder(w).Encode(response) +} + type WorkflowDeleteRequestObject struct { Workflow openapi_types.UUID `json:"workflow"` } @@ -5971,6 +6271,8 @@ type StrictServerInterface interface { WorkerList(ctx echo.Context, request WorkerListRequestObject) (WorkerListResponseObject, error) + WorkflowRunUpdateReplay(ctx echo.Context, request WorkflowRunUpdateReplayRequestObject) (WorkflowRunUpdateReplayResponseObject, error) + WorkflowRunGet(ctx echo.Context, request WorkflowRunGetRequestObject) (WorkflowRunGetResponseObject, error) WorkflowList(ctx echo.Context, request WorkflowListRequestObject) (WorkflowListResponseObject, error) @@ -6013,6 +6315,10 @@ type StrictServerInterface interface { WorkerGet(ctx echo.Context, request WorkerGetRequestObject) (WorkerGetResponseObject, error) + WorkerUpdate(ctx echo.Context, request WorkerUpdateRequestObject) (WorkerUpdateResponseObject, error) + + WorkflowRunGetInput(ctx echo.Context, request WorkflowRunGetInputRequestObject) (WorkflowRunGetInputResponseObject, error) + WorkflowDelete(ctx echo.Context, request WorkflowDeleteRequestObject) (WorkflowDeleteResponseObject, error) WorkflowGet(ctx echo.Context, request WorkflowGetRequestObject) (WorkflowGetResponseObject, error) @@ -7235,6 +7541,37 @@ func (sh *strictHandler) WorkerList(ctx echo.Context, tenant openapi_types.UUID) return nil } +// WorkflowRunUpdateReplay operation middleware +func (sh *strictHandler) WorkflowRunUpdateReplay(ctx echo.Context, tenant openapi_types.UUID) error { + var request WorkflowRunUpdateReplayRequestObject + + request.Tenant = tenant + + var body WorkflowRunUpdateReplayJSONRequestBody + if err := ctx.Bind(&body); err != nil { + return err + } + request.Body = &body + + handler := func(ctx echo.Context, request interface{}) (interface{}, error) { + return sh.ssi.WorkflowRunUpdateReplay(ctx, request.(WorkflowRunUpdateReplayRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "WorkflowRunUpdateReplay") + } + + response, err := handler(ctx, request) + + if err != nil { + return err + } else if validResponse, ok := response.(WorkflowRunUpdateReplayResponseObject); ok { + return validResponse.VisitWorkflowRunUpdateReplayResponse(ctx.Response()) + } else if response != nil { + return fmt.Errorf("Unexpected response type: %T", response) + } + return nil +} + // WorkflowRunGet operation middleware func (sh *strictHandler) WorkflowRunGet(ctx echo.Context, tenant openapi_types.UUID, workflowRun openapi_types.UUID) error { var request WorkflowRunGetRequestObject @@ -7771,6 +8108,62 @@ func (sh *strictHandler) WorkerGet(ctx echo.Context, worker openapi_types.UUID) return nil } +// WorkerUpdate operation middleware +func (sh *strictHandler) WorkerUpdate(ctx echo.Context, worker openapi_types.UUID) error { + var request WorkerUpdateRequestObject + + request.Worker = worker + + var body WorkerUpdateJSONRequestBody + if err := ctx.Bind(&body); err != nil { + return err + } + request.Body = &body + + handler := func(ctx echo.Context, request interface{}) (interface{}, error) { + return sh.ssi.WorkerUpdate(ctx, request.(WorkerUpdateRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "WorkerUpdate") + } + + response, err := handler(ctx, request) + + if err != nil { + return err + } else if validResponse, ok := response.(WorkerUpdateResponseObject); ok { + return validResponse.VisitWorkerUpdateResponse(ctx.Response()) + } else if response != nil { + return fmt.Errorf("Unexpected response type: %T", response) + } + return nil +} + +// WorkflowRunGetInput operation middleware +func (sh *strictHandler) WorkflowRunGetInput(ctx echo.Context, workflowRun openapi_types.UUID) error { + var request WorkflowRunGetInputRequestObject + + request.WorkflowRun = workflowRun + + handler := func(ctx echo.Context, request interface{}) (interface{}, error) { + return sh.ssi.WorkflowRunGetInput(ctx, request.(WorkflowRunGetInputRequestObject)) + } + for _, middleware := range sh.middlewares { + handler = middleware(handler, "WorkflowRunGetInput") + } + + response, err := handler(ctx, request) + + if err != nil { + return err + } else if validResponse, ok := response.(WorkflowRunGetInputResponseObject); ok { + return validResponse.VisitWorkflowRunGetInputResponse(ctx.Response()) + } else if response != nil { + return fmt.Errorf("Unexpected response type: %T", response) + } + return nil +} + // WorkflowDelete operation middleware func (sh *strictHandler) WorkflowDelete(ctx echo.Context, workflow openapi_types.UUID) error { var request WorkflowDeleteRequestObject @@ -7934,159 +8327,166 @@ func (sh *strictHandler) WorkflowVersionGetDefinition(ctx echo.Context, workflow // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+x9fVPjOPLwV3H5eaqeu6oAAzOzt0fV7w8WMrO5ZYBLYKfu2aIoYSuJFsf2SjKQm+K7", - "/0pvthxLtpw3woz/2WVivbRa3a3uVnfrmx8kszSJYUyJf/zNJ8EUzgD/8+Rq0Mc4wezvFCcpxBRB/iVI", - "Qsj+H0ISYJRSlMT+sQ+8ICM0mXm/AhpMIfUg6+3xxj0fPoNZGkH/+PDDu3c9f5zgGaD+sZ+hmP70we/5", - "dJ5C/9hHMYUTiP2XXnn46mzav71xgj06RUTMqU/nnxQNH6GEaQYJARNYzEooRvGET5oE5C5C8YNpSva7", - "RxOPTqEXJkE2gzEFBgB6Hhp7iHrwGRFKSuBMEJ1m9/tBMjuYCjzthfBR/W2CaIxgFFahYTDwTx6dAqpN", - "7iHiAUKSAAEKQ+8J0SmHB6RphAJwH5W2w4/BzICIl56P4V8ZwjD0j/8oTX2bN07u/4QBZTAqWiFVYoH5", - "74jCGf/j/2I49o/9/3NQ0N6BJLyDnOpe8mkAxmBeAUmOa4HmC6SgCguIouTpdAriCbwChDwl2IDYpymk", - "U4i9BHtxQr2MQEy8AMRewDuyzUfYS1V/DZcUZzAH5z5JIghiBo+YFkNA4TWMQUzbTMq7eTF88ijvS5xn", - "HMSPiIqFO06GeA8v4V/Fz5zaEfFQTCiIA+g8+whN4ixtMTlBk9jL0oKVWk2Z0akDaTGyOGFNX3p+mhA6", - "TSaOva5ka9ZxHiXxSZoOLFx5xb4zdvMGZ3w1GYG8D+N6RkXUI1maJpiWGPHw6P2Hjz/94+c99sfCf9jv", - "/3x3eGRkVBv9n0iclHmAr8tEFQx0CRcMPTYo8ZKxxzALY4oCLuh0iP/w7wFBgd/zJ0kyiSDjxZzHK2Ks", - "wsw2sAfsBMBAif0FaRIzAVbDtZJy8iGYNJSdvCTmklujqyohcXFoxA37whAihihgrEr3RnEqZa5aTI0M", - "uyqIdEGUpejXhFALBSaE/ppMvJOrgTdlrXQYp5Sm5PjgQNL/vvzCiNN0/IAU/QbnzfM8wHlpmnT6cFeQ", - "LrgPQjh2Jt8hJEmGA2gW40ImhieW1VM0g9qhiOVY3hMgUpyWpLZ/9O7oaO/waO/w/fXRu+N3Px1/+Hn/", - "559//v++pqaEgMI9NrAJRcgiCFAo6EUDoueh2Lu5EYKBDa0Dcn9/dPjh53f/2Dv68BPc+/AefNwDRx/D", - "vQ+H//jpMDwMxuN/Qh2oLENsJTPwfA7jCWP29z/1/BmK9X9WoM3ScFnsRYBQT/ZfJwoX2IOvqthkHWQL", - "q1wnD9AkLZ5ThCExLfXrFAppwGiXsu6ebL3vvO8zSEEIBIU2HCElgraKmesFMZPDtl/e5qOPH5twmMPW", - "y6VNjgwjEoMAplSoDEP4VwaFbCnjU+gHArMtibYNkfb8570EpGiP2Q4TGO/BZ4rBHgUTDsUjiBDbF/84", - "X3GPs8JLhZAEvKb1CnVMkY51xeZ9OhG7JDSVlbaJj+8CH0mTmMAqgFRRfpWSSmDVgyFGscPRf4QxtSIJ", - "hCFi84Loi8YRCyjL23iKNHP8QTa6BmQxu3kstjjHAR5MRxfr/wDn1u4WJIkTjoN0m2NmdDHSFBYrimiS", - "ouAE23ZqBv6bxJ4SEt4Fo66/nQwv/q4kwehi5PExqmAuwS0zFP/PYW8Gnv/n6ONPVbbJgbUThLBjTiKI", - "aX8GUPQZJ1lqXT1kTYiJjyJEKFujaKG0ZcyMHEdVconlh+gR9viM1bVLUJtW3iAoxeDGveaf1LaytTIT", - "SwiqteytWlfPx0kEm44msZovcHYP8ZC1N+LDl4M1YaWlGF087oSBuw4s8GWQKJuYJ2Vf1j9pTzpxGPdW", - "CUuewhwoEx65iN2mbF1JNK6k/NDcCdJMmkV7k7nNwB2clbdy0fklXWPWhTwl+GEcJU/DLB5lsxnA8ybI", - "+FZ9rXar0cHE2ZEv5FZt+BkwGThtjj3vb/8aXV5493MKyd+bD7H8+OLT/7YaDagxzpGJ6VMwQXFux9ch", - "9CpvmSs6XH49ufsN8+VUXQ0K0F2BsgbESxxC/Mv8DGEYKJBgnM3YzgES+MIprsmPhb2Q/T8pl7HqWxhT", - "1q4jCHAwNZ63Nnqv4HIMkNE5wwV9xs4YxqqilYezuGxr2W8CUhiHDJaGgWWzNiP/lcGsGWLRqs24OItj", - "B4hlszYjkywIIAybgc4buo/O6PBfyb1BINVdxXC5pF3GSGn8Z3K/vyGruTImoTB158IRhWmVCcvnTFXp", - "RDOYZNS8fPmxaemPEBOUxMYZ7GdHDpY+QG7Wi6WbNIp/JffDzOAVCUAcwChSLiA3X0feKb8TtDcZQkAE", - "oRgus2JEpu2m/lNQZN2OMqIVLS27twLRYUiyiGqjFhgmFGDabjGEApoRh/UwOSvaSvoeZnE7Emeb357K", - "gweI61mgzXI15aoJZO2AWei5PL+UB1EEku+CnWtG+TapI/Sqf3E2uPjs9/zhzcWF+Gt0c3ra75/1z/ye", - "/+lkcM7/OD25OO2fs79NZy1TQswXHa7Xo4tdDVssJ+GuI2L3HW1V9cm9tEbth0FcdqWQV4a3DE3jdbQG", - "m5zIRFx8mREIHr7C+2mSPLz6IjVY1rXEZHKOYtjq1oYdofwzUx+YPFEHaZRMvAjFsI1PXoR2GOdgw8kG", - "jaqJrbdoYbCoF7Cl318U8Sb5DLcFqs7hI4x0UXPW/+WGiZfBxadLv+d/PRle+D2/PxxeDs0yRRsnV/2d", - "9r8EgUmQyO+vbzkpsjJLD/FxBeupPEJL+0l2rrGgDAjQL1G++UGGMYzpXcpp96jnx/BZ/et9z4+zGf8H", - "8Y8P3zGDqMxZpc6mSz3ZwksFFeYTHzmZHBosxotx+Fwd+b3byMW6jHeRCQWRbuCxptwvESFChZeuCCx7", - "52LhGCTWv5l19wVSjAKDPI6z2ZWb+cnpWBmh+7b1/tvJ4hRjIXFFyc1P64BDN1NTjCgNzn0zakr+yhzU", - "0iw9HSEm+T+E7K8f5yJxCNMIzOsvyLgHbRCWpd227/3ro+kUhLd8SZhpwNyCqNnCNDNZRRXMsWZs1AWF", - "yjDgBBJ6gy33JjfDc48mHoFxyG/D5JlKPJpsxj9t8zdnMforgx4KYUzRGEGcO0ql/1kGT4hLOz0U6R5G", - "STxREC9uZ3XDNndn6GY91d4DllTHqrI3BXEMIxsO5WcPhWZvPWGDe09idOP2yhEurBdLagp+wbTkJCvR", - "EJjZVs++rbB01t2+bj74KoveCep3o0+FiBzdZbroaWRoJGEKU8ONW647GogORSGGZXO9QdBuyCuVAqxi", - "9t0hwRCE4D6Cts1V3/PINegRCtNGMlnJWWqZwU4B2ipK5KCcO3IDhd5as/UbcI6e0H6alGwATVdbkwuV", - "E6HmLGtJA8vRMLSCvIxHt+hTg65FBaPkEHbwJ0r3d95+/TyYZNQG4pLsyTX9kzGF2B2Za/dPiy41O+Pm", - "w5YsVnZiu17NsLY22eIgeNqsOO9Ss+KnBNvc4k4nVU6B+cpqfdASdSc4mKJH+CaFlO7sc4Nvp0RMgkOI", - "zZ1quH5j/MbJYZskv0DVBQQKNT2jT8xGwjvgQFzgKaMfUbaxhGIFSRZT8w6pA6SCBhSaO2huaoNAV2zl", - "sB7peOA9GKnAR4gRnbfpPVJ9nEjtE8KEjqBQINzJ7Ry062VKCShPvzBur0SkEocaQnQvvNjJGrLdlXih", - "EkE2kmwhj5Xfetj/903/pn92d3F59/Vy+Ft/6PeKH4cn1/2788GXwbXf80env/bPbs4HF5/vrgdf+md3", - "lzfs55PRaPD5gl9sjq5PhtfirnNwMRj9Wr72HPavh/8R16LFDWjPZ2Nd3lzfDfufhn3ZZ9jXRtUnG51f", - "spbn/ZNRPuagf3b3y3/ubkZ98+WHkZI1FGiXKBK64eB6cHpyXjda3fWv/OtOrOFL/2IBTStdDxf5oYuZ", - "qxDLMN2+JZj6q8qASzzeWhnkM96L7BvT3UAMojlFAblM6WVGa0YtLPwpIF6SUhh60orLBzHPsfE0GVsI", - "78oxwM1JNdZwXmOA/HYj41dBvX3hNQHyxjXvgBQ174UpkWCS7AmS84dsAi5htd4onowgZf8j22NRkSXa", - "f04R22UeQ8GBqR9f9BLTEO+JZ7vxcBAPYOiBNMUJCKYonoi0N47guvlVgL8gknM0Q3RJKMSSVV5hFZ6I", - "jV2LC8358QmgKMPQARR+caADomKDeHgkD0o1zxkBIpZqj13geZE8cRLEcmefAGFT0haRC+BZEdkn7gmI", - "A0tw9gw8e2PVxAPUe5qiYJpT1Xpd2XZJYATYLhcG+Z3fZnJlXvIUR7vbUUtslbUOtpn0uVxCTpNHXjKU", - "7T5BfbZjTbSou1HgI5RSHpc4MUuZRMVe6VkRDbSzM0eJJOV2J4jY0yr8r0ZQ7gk4jPWaWt8QiEWPq+w+", - "QkEdKfDxanLKdJh3ZtPl/i2z6UO5T8qYuPx6wS2xk7Mvgwu/53/pf/nFYt6IYepDVHiYTNMiSkNo8bXl", - "JLOr0sBtxlsMA8hhV0SrIyC3Rfu/C/uJ/fDp/PLr3fDmgttolxeFTdqvwUxJIzEpZQDPfgdRZpFt/Lv3", - "yBqYxSfXRtix8wQwT22oqCqitzk8hykGQzhGUdSkOPBoRz4c0xww7wND92OJ961ZqBjbvkQz/KuFzefb", - "3sxcOZG89PxH+ypUHFvThplX84TiUBC8QaeCFGJPtMhPOTGW9ze0D/e9Qy8E85536D1B+MD+P0tiOv37", - "knfXOXpKW6cWbxeKClFXSYQCQwqW0J7rDMq8oodoajjSWwjFMvs1RRlJ4Iyrw2gygVhT7VuWG6i6XtsG", - "KN3wKiM/Yma7vvKGyL21JJVbD34dEPv+v2FfWGfMv64xv0Ej251dkxmiMYp6YaaSS1Z3dZoCm2+Iyd5o", - "tLdBGGJIiG53l/QQZchVzW/24VdApiZ5OAVkqg/5/8jCdFJCiqNc1NAbiXJ03ukUUOuEv0OMxsgUUq3z", - "K/ceMG59lM1lHccSDGaamQJirxZpnAPk5SE9AukWveIhImkE5iWSUfvX2lAvY/fWQmDlcpr2CiDwyY5E", - "TuXwqcCa0knMsC9xMOblOl94cE4dIDkQtfhbDYZKZlVeTFTHkw3l58kExcvXnlmOv1cqRbNzGFdrTJtw", - "PYQTRCj7/xtCt9tZYhEMO7hbqoKd66bpCiiZopS8VSdSxam2xdN8E6eMmMy0bTKT4CsPtFurk9SNGWRE", - "vCci/YxskdlSU1TfDEfL3CGzcRtRIspsrVhgy2GRBAYYWq65xLe8NpDkYWZreIMxr+ac4uQRhTDsecDD", - "IA6Tmer0hKLIu4feBMYQAypcW3rK0tHGMN4ezeFuEuBye7NtUs7hbEQ2k8o7Up2gLH6cylXbRJVIP7Bc", - "QsqPwlUptpoXP08hZhJ5v1V0B3gEKGI2tMoCaCg1VJ0WPsMgo9ALkli6VqO52XfKZD4vb4cHDdWOuV8W", - "TWIYekWnHah7HAFCf4UA03sI6AmtvSQusMQ99ATG1APeVPXeX2/9aDYH4wUmGvuEgvuIhy7vEIQz8Gyn", - "sRl4RrNstj5a27ystctYDAMY05FWb8eUJsXa8MQl6W9STxYUA69apafIsTDIev6tuhh1u3Zyej34vc8L", - "SMg/b9uK8lurwNsBVdoqpSWQ6lpz9Rpmyq24b6lLZdkg9sU0hNPqZC2rRYLgV4mtqyhthZWsGFLWnkGK", - "gcnyGFJrvAbGY1EWSWtHT2y830XHPIW37irLlWHYuKdK4pku7CaQat/zMNEF92ksNQfphZ5ASjjugqKr", - "N2F9c9eZRgj71gvjEWW6+GRukzPiq0cT4ZlVNfP1WcXFMn8pAARTodcrQSRine8GF3dXw8vPw/5o5Pf8", - "s+Hl1d1F/2t/dO33fB6KXvzz8/Dy5upueHlzcXY3vPxlcGG8+m95HBUnTvmeYLEm4vuj5rIYaupFBPaM", - "G1lHFYMzk5s8B3BwZtw21dsshldKKN6yBOdS2lnTZq2tATCc8n+D81OVoWMQOAulZKqM8wDnxKyPqOHZ", - "xtdMsaD/MEYEHklhgMYoKCbx/pYCQmDoPSLgjVFEIf67Y6War+Vqei7X4ubQntIzSlq5feHYubCV2Vxv", - "il5+Qd8KRpFK6U5qRRrw2oLjVXqvsIS2bceIuUd6ota2QdhY3Uu9yHCeN1yf8CviRmD4y7zF4NdaLy0W", - "TioALfUFwwirV6z8Xav0KnFXXuxtvXzYETVdU0Xd5fy66m9K7cKcaVWZTGGs7do0Ql0QMBaCM1RGTOIr", - "TaIYsqmTeMSUqyyyCGaVsepUfFwWe9pMSZKWpJ93aqBncsqzzq0O8FKl1zKNbrJu1sK0TYuwajA8I7UN", - "1amhTkXHJn5aaF6ZX3KPMVdZcZ7xo+Qw4zfFqMaPBe+a08+tq2FWnwF/kdBMVjfrV7Z7zdcPAsI6ApEy", - "4hQzmTs2i4maYiN3yMJ5TRPK3OGxpW7dnXwoZN3TEvMK258vC3gzVa95rBRjaTFwjp/16pDi0Dejr9AD", - "7qQ3oz2aNWVmkVdK7ggXTOgeDM3ztYo/a5W6O6o4R6Px3uPPnbJj87qoSGXTIdvSBdGcTWaBIT86iR09", - "H8PVdFZ9Wp65Cuailoc20G0zSZ1BZu6Zqzhi8FT+bHCfgyfvPydfzr0wb9heqpbncQDa/JTolqjwB6AS", - "cT+dYUTno+KJ4XsIMMTqJWLx9jAzU/nPxQKnlPKE7CBJHhBUzRHDkPhJuVmP/cpL6fKBWu79R/E4MSNZ", - "PUp/cjXglUMoN5fLv+a75B/uv9t/xzc5hTFIkX/sv98/3H/HFVY65Us7ACk6iGR9ponpXv6z8tKyVjEk", - "xMstOUaD3Lpim+Kfy++f+bqwNLj4LEfv3lUH/hWCiE65GP1o+n6R0HzO0s74x3/c9nyi3u9hEBYNlb/+", - "Dzl+MIXBg3/L+vO1YgjCefNiWTNUt9qharDO5XLgeHQ2f8jUoxiMxzILsW71ObSNy388PAAydHyPxzHt", - "cZceOfjGf9Z/exEwRpAaNMkz/jvxQP5eGc9QENFavHsFYwvZKGIEYTwBnrjEwK5J3a3M4HFDiPMXo+eC", - "uypL8XX5IFxyQsasbFm93Fb2/kMVW6MsCCAh4yyK5p5AaVh67K2CvJee/0FQSZDEVNrFIE0j+YT5wZ+y", - "SE6xjgbJz0uhyYi8RX/9DEQMCzD0Euzdg9DD0kLlYLxfOxgmKD4l+B6FIRSJBAV9CzqpIzNF8TLV97bn", - "P+/lyRz8KVDxoWcgjFtuAtDAEO0v0nhWIXExwvdB4pwefkmE7FwLMThkqhnIpBZbNJEPe1ew8WIW0WtZ", - "iKUySxX2khiQz4F3YsBNDAhq2ZwY0A/IFO2JzLSDb/nf/DRME2JQGobwMXngVVOKZ9jFvVk+44KYSBFP", - "mhNrEt1dpEQ+vEUmKFh36rjDfHmSztXbSd8xUZM2VC1Jh23stdw5RcbFb3WUnG95iYKDKMnCA90stGu7", - "lcd2lTnBB/FQTCiIeYp3mYhP2Wd1SWtXgjePWw6Il8V5IOnOEFiD1i4QrN+gya3Pr775zqsh9pJU3C/L", - "E03bb+EaPPjG//9y0LTpfJvzPQdx8ThueYvzx33F9jbKJ/GUr01lEdc72xRN6yOB4pnjpmMdQ4oRfJQC", - "T2CE70cn9UrEr2GmIHxxuVcj7wQNlWTdDC4t4ayybXtiTZYna0NTucB4I2JuHQKOjXGAFt5VNO74OSJM", - "PYy8UmvbBrPWg3LDje225dHMdpuvCnKUVrdLhJBvPd+IhU2o7r++yfxVl4Nv/H8OzidvpL8CU9li/Wkf", - "d19TaUzrUcZB3EmnUhknu3TmHG4HjJsYZHSaYPRfGIqJP25n4i+QTpOQJxCCKEqeYGh2ZC1SreIJ/nvd", - "2SeIrswxzEQlMXHilvJLRlV+iUkLNll4FsnKKFKk7hybLCCjY5QdZJQKweascjGqZZSYGNhEfH5RRpLd", - "ncPmVbZKhUVau3RtnJFDuynm6NkttAc4X9ZE02A4+vixBMShs0lWw6ApTtg/YNidYTvEmjbtHtFpdu+B", - "NFXUXj3WRJsFfqQw3cMZP7zkny8HQLxp0qTZy1YqMUFmL1ZZVUSWc51bDezAtGo8+4Em4d0248q0DJp4", - "5AGlCra/MojnBXDJeEy4xWoAxf6WcP10IjPqfm6Zkn9uOeMmHTWGF3uW8NiQH9xbw2b9sJ1ZS1z3BAgX", - "PuMki0OTPVlif435c82A/TTMan3mOQs3y6Qi5NIukUSbFvKoLwbtpNEPI42Kh5g6WfT9yCKN8TcviaJk", - "Ui+HiBclEy9CcUU3qt7rnCeTcxSL07ETQ7shhnr24ssRfIQRYfOKRNuaiXnL0sy1HmlJB6zXJwSj0LZy", - "AtnB6/HZNDjGCbYAIjq0BWQkehmA+MpfPEk8HsRrXz///MtcrKXl5Jd6XwsexPQhwlC9zlwDxZnWbBlI", - "iv6bPaR0adB0PjGS7A4ny7UmPxVyKaydBefJpP0xID4Tu59KVHkjHuBVZy2hRiIYSjT1NxPHJwYvlzuv", - "D9yjiRfoEG0zTK+RxOWLsFpcXheFl5O42OuC2Jpi7kwUnbtiRS53TewtD015RoSieFJP4G/HLbuFYFo3", - "JixSiF41bLbjx7VFxbaIga3lS3OGSH2MDci1VVuELmmKlnc1R3aCg7cZSr6E58C+CR3vlNS1Omp1Z6Ze", - "CxWtfRpJrr39qIebrmGuL1PEWQU9fOVMkeoJ2GWKuOqoK2WKuJ2SB0R7Tbk+q1R18VSX+jwR86PNjsHY", - "P8gxqb9mvfwZqe9Jx0ql8F0rmtbGR3m6Vf1FW579RNyyqzp9Mo855vggRQ20VnyiCiZ0vr5F5TFP0SLt", - "8raaFMYlUgk7HZEjQNG6phZu0oWxOGnHX+viL8kISyZG1h84DlEdhKeQlEI7ikcLDUlyb+Ws+ZGvUR/g", - "3OkSlbUrzepUIIyTAS/hUy22aIdJK5TtBFshK1oDqFXsXg5EnMWyGA50glW1db7+NBczfaUrab6fr3Mh", - "zafegetoHQ79MrqGWPJUywc4l++bpwDhCr3ktZ7/YOx2eMybHvo99q8j8a8jJt5N6zGUCDcyQ1MN1I3n", - "C3c36mvRsqGKl3TMEnZ1x9YlvXfqNEeALBpa62IVKSWvc6Uvi0G38J9CVT76x46oPPrndmZV5Salqgef", - "AwjDSsKXVPZV9pEznzcr+QdcmXPU9IWG6KDt/wbnnXOpUHmXOuc4sruzznTWedICWScfYJhGYF5Xw4p9", - "1+/xRUcLB6jKVXzQH/eUFAhwPyVRyDVhrPC25ZPSMZCAAdeppDt8XgqyW0IxrhMUKH5EFLYN81G9zFeX", - "A/61OyvVjaWGj6XuKhW2uxtKUxBPQYsbitwRE9TSemc4arE6AiVuIToCt68alyPAXSYcRxJGx5bmGJyc", - "b9YTMCD5XP2wJ/7drly5Ayu3LlC+W7c6Zb6qh20vR8dbP1sbuddQfX3HuNdUCyffH1sOUXkf21Q1d+CE", - "N170Zgc5YbMJIMudu6+WAuLIuYaC6bvMuTI1ozXn1p18Mzi7l088tbDRVC8zi3/hXzsbTVGjho+lbDSF", - "7U4ZNNloBS2uRxeU4x18E3+4FEIEEghvjJNZU/C1oIbvQxWUy7bBJj5vv1zj2nl3GR3wx+DaHaq1cmEp", - "rZIzaWlj1iYv/spgBvdmxQu2tTXyeWtPts7Lh9cKjM+Q/pv1Uo/kvkWZ8abi07qQI10ClmhvuTjk/ClH", - "xSWdTHxlmcjEUb47s1ywKImYP5O5pExUPfbSJEKB0+OI8pZKdHBJYlMXW1e8R5fCdmBCy3IGx8JudIbH", - "1jNBRWX22uS1UtV3UvtYQWeKi7w1HSdtzrIFVHf1o3eotLvGC5anQRqeQXBgxANCAaZWdhyxr+IcuzzJ", - "6NTjR+ciQ94QiIUHjwN0yRDKe75Fznz/7qih7DpHmTxWSliZQhBKj2OUCIIp08ri3C8LBcO/lZ7D/uP2", - "pVRBnKO0PKMiBLYDS9NBUy7xwtsCxFTqv5PDUg5fjEpPJLWQxItY7mTxzsniKiM4vbLRmMLs8NxMFyvD", - "EVDmr9rM5fXRbHlS55iX7t2cHWZoK+c5cnTtiWooSl3rPi3qT3v3c8G5xor4b8QV0NvVwthbKF/f0i2R", - "F0Pv/Ia7VreeMeZaa9U7yYmDAMQBjOzJJyeUwllKuctetHV4SkNYZ6di6E6CvG0JEiLC49WkCBFEEO2e", - "jvHKOWJNjLIthsaQdaxJJmMdnHmYN+9YeBfT23AWy61qiCZEcZrxLHBxP2Ra7stOaCpdcluNfOEb/hoC", - "pVhTbTyGaOb41tZnSEdi2E60vJ52IMdL7v+EAV3SkpD73hkUO21QqF3aiNSQ13l7Twl+qIuALko6WO9a", - "u2vWIuZKoOIrRypDSF0JQ4aMPC5MPpCvtqPzA+6aY18j/+VzX4vnfI0s9MM78Ev8I7CxpcqjhpnDVpmr", - "3fPau+vB1xlvGWe9kMr17nl2QgrhXR++V5wNP/xhWWCiK/C7sqmpYlrLyUACx8teUilES/NS/2fTZVWp", - "ymkjQ8gqpW/57qq0YBtoOgbfMNfK7Vo2Hr67y7JHo5fdRM2R6L0yTbnxM3E6ynhLN97tjrOCMboDbf1s", - "sc7sjHzMxmvUU3UjdA9oMF2s3U3qTrK3c426KUuuwAURyHC98JD3cIsnBln7/UfxYCf711MB8CAkpSy0", - "lRBcTb1r6cKVd7eGQ7QTF7qpJ8hmkWQWpUa9+9RVcvDBXc9QDoqzDty9fLGrL1/oZUfZnBNI863dt0zM", - "2w9Cf1vGhztkqsvmgUsBZkizGEgLYInGX3VhvCX4DJeDRtjkbehm4drp50K6XPEa1K2g/ndneoNlvBkz", - "gDu3XCpYAE+Cxki/zJh6SQtHT9dbLmjRHYXdUbj9o7A7baq29YqlSThrdHVJNnnyZARichBkGMul1NcC", - "kQ091s2YRf0Z0lM52AZpjGcLtyMqDnF3/f3619+uyeKMyBfIrZwsXiXjCaLT7P4gAFF0X1ej4zRhEpjC", - "FnUBPvOheWGAUzV867z7QM67icz7Eu7UAuty7a3oW29BBQ1xqqLCzlQraFecwICwJJlEcDP0xof+zulN", - "oG/N9FYg7rujt6ZHW4pw2PIbGXktw8bjm42gl2km/i69kqK9KvZDPZHiohy6HqtuT6hYae8ABAFMaU12", - "J//eruK86ONv5q5PDF4pkm65n6uhPrHy7imQ+pxFjqTGp0Ds9IUhv3esyTZk39vRl+jjbyptjg2+BvoS", - "K+/oqyFnjSFpCfqKkgmqSWI9TybEQ7EH+Nm4X6NgnPOBNvSsAzuC2fhbiit3sqOjZDKBoYe6+i+7ZT6X", - "j3VGNa52cpRMkow2MEOSUTduYEPtCI0yUDoifTs+HkE9rmQrq/ZPUdrCBNI6uZlB+tsCvJuMedkogZsn", - "bW8P6SjqbKJlbCIdg80kmQJCnhIc2mWpfBhISFJPta8TqVdqzM3pGKdTEE/yiXZJ2Qg4ZGGOqE6cvyFx", - "LsiqTOkOTIThhAkyXGf0iRakViM51Z8S3QTbKDB2iWEU8rprrjehpysSctV5RI3rTdwwFJWud/OCoUHU", - "tLxxWKgocfBN/uD4jmxDarz7i2GqlII1By+faMtZRo4PaHWJ5DuYSJ6/otWUSN7L6avMHDlT8D9csmcN", - "hpPI5nXMkhVj1Kaibvl1unWnji8R9LRjR/fO5Iy3SBnvKdKpELgIp83TxN3ejsyjrJxCZ1scA0UcaH0u", - "9vYfaHQ9CBSAXZmu3XhDUaOYZRK0eYUgl5IJTpzQ4hTYPTZYfyzskgGw3WlgjnldnsQbzoQD16dCyxkV", - "i28p1rFFi8SKXeAOQ8C7SN1aQ/bX8rlfZsD4M288/L4AQW2UFRTe6Tc4LwHzGjKie8aze8ZzecFFMZpM", - "6lyo16KBB7wYPi1XAMm9AOBOSq5rA7vse4MxN6xJxqgDhj3OVRGgkNCcpxDxxpDXq7claRWCf8crX0gy", - "0Ha1TanvhUJA26v43aauU6nuYVfV6XVFYs//cPTP7cyqXteV5RbgcwBhWPGVKTnYUNOqqZBxC9EsZQNx", - "rUmnpI6TWP5dNH5D9tb3IJc3LOXkpq6oCnbybqdUwIIUN6QCKjlzEMIxipG6cWsjcoqebaXPWTFnJ4e+", - "Mzmk7e2KxqlGmZ1w2kHhpG/Q8nJq8R7/HgIMcX6P3zPe7EP8qORFhiP/2Pdfbl/+NwAA//8jNIB/63MB", - "AA==", + "H4sIAAAAAAAC/+x9eW/jOPLoVyH0HvB2Aefs7tnZAL8/Mom7xzvpJGsn09g3aAS0RNucyJJGpHJsI9/9", + "B14SZZES5StOt/6ZSVs8isWqYrEufvP8eJ7EEYoo8U6+ecSfoTnkf55eD/ppGqfs7ySNE5RSjPgXPw4Q", + "+3+AiJ/ihOI48k48CPyM0HgOfoXUnyEKEOsNeOOeh57gPAmRd3L0/vCw503idA6pd+JlOKI/vfd6Hn1O", + "kHfi4YiiKUq9l155+Ops2r/BJE4BnWEi5tSn806Lhg9IwjRHhMApKmYlNMXRlE8a++QuxNG9aUr2O6Ax", + "oDMEgtjP5iii0ABAD+AJwBSgJ0woKYEzxXSWjff9eH4wE3jaC9CD+tsE0QSjMKhCw2DgnwCdQapNDjAB", + "kJDYx5CiADxiOuPwwCQJsQ/HYWk7vAjODYh46Xkp+ivDKQq8kz9KU3/NG8fjP5FPGYyKVkiVWFD+O6Zo", + "zv/4vymaeCfe/zkoaO9AEt5BTnUv+TQwTeFzBSQ5rgWaz4jCKiwwDOPHsxmMpugaEvIYpwbEPs4QnaEU", + "xCmIYgoyglICfBgBn3dkm49TkKj+Gi5pmqEcnHEchwhGDB4xbYogRTcoghFtMynvBiL0CCjvS5xnHEQP", + "mIqFO06GeQ8Q86/iZ07tmAAcEQojHznPPsLTKEtaTE7wNAJZUrBSqykzOnMgLUYWp6zpS89LYkJn8dSx", + "17VszTo+h3F0miQDC1des++M3cDgnK8mI4j3YVzPqIgCkiVJnNISIx4dv3v/4ad//LzH/lj4D/v9n4dH", + "x0ZGtdH/qcRJmQf4ukxUwUCXcKEAsEEJiCeAYRZFFPtc0OkQ/+GNIcG+1/OmcTwNEePFnMcrYqzCzDaw", + "B+wESKES+wvSJGICrIZrJeXkQzBpKDuBOOKSW6OrKiFxcWjEDfvCECKGKGCsSvdGcSplrlpMjQy7Loh0", + "QZQl+NeYUAsFxoT+Gk/B6fUAzFgrHcYZpQk5OTiQ9L8vvzDiNB0/MMG/oefmee7Rc2maZHZ/V5AuHPsB", + "mjiT7xCROEt9ZBbjQiYGp5bVUzxH2qGYyrHAIyRSnJaktnd8eHy8d3S8d/Tu5vjw5PCnk/c/7//888//", + "39PUlABStMcGNqEIWwQBDgS9aED0AI7A7a0QDGxoHZDx+Pjo/c+H/9g7fv8T2nv/Dn7Yg8cfgr33R//4", + "6Sg48ieTf7L55/DpAkVTxtzvfjKAkyXBsugJIaFA9l8njhboH7PBi13UQbbwwk18j0zi4CnBKSKmpX6Z", + "IcHujDgp6w5k633njZ0jCgMoSLDhjChRrFWO3CzIkRy2/fK+Hn/40ITDHLZeLk5yZBiR6PsooUInGKK/", + "MiSERxmfQgEQmF2NKuc4shNpz3vai2GC99jlYIqiPfREU7hH4ZRD8QBDzPbFO8lX3MsyHHgvFUIS8JrW", + "K/QtRTrWFUukDSLzZgVZWij4jzPsz/i+CXrCBHBQ973lFxjPMY1w2FMT8X02E8+pIB2hH61EO3x8F6SR", + "JI4IqmKNKnasYqwEVj0YYhQ7HP0HFFHrzsEgwGxeGH7W2HQBZXkboPglxx9io2tAFrObx+Lk4DbAvenA", + "ZP3v0bO1uwVJ4lzlIH3NMTO6HGlqkhVFNE6wf5radmoO/xtHQEkucMmo62+nw8u/K/E0uhwBPsYqFJ6z", + "8BxH/3PUm8On/zn+8FOVl3Ng7QQhbk+nIUppfw5x+CmNs8TO2qwJMfFRiAllaxQtlI6esquVowK7xPID", + "/IB6fMbq2iWoTStvkN5icONe809qW9la2cVOSM+17K1aV89L4xA1nZdiNZ/RfIzSIWtvxIcnB2vCihUf", + "bmewuFavAwt8GSTMpuZJ2Zf1T9qTpiPGvVXCkqoBB8qERy5itylbVxKNK2lkNDe9NJNm0d50yWfgDs7L", + "W7locpMGOetCHuP0fhLGj8MsGmXzOUyfmyDjW/Wl2q1GMRRnR76Qr2rDz6HpWtXm2AN/+9fo6hKMnyki", + "f28+xPLji0//22o0oMa4wCamT+AUR7n1oA6h13nLXNHh8uvR3VqZL6dq4FCA7gqUNSBepQFKf3k+xyny", + "FUgoyuZs5yDxPWGK1+THwl7I/h+VoVr1LW541q4jBFN/ZjxvbfReweUEYqNJiAv6jJ0xjFVFK5BmUfkC", + "aPc/JCgKGCwNA8tmbUb+K0NZM8SiVZtx0yyKHCCWzdqMTDLfRyhoBjpv6D46o8N/xWODQKpzAHG5pLmA", + "pDT+Mx7vb+gqXxmTUJS4c+GIoqTKhOVzpqp04jmKM2pevvzYtPQHlBIcR8YZ7GdHDpY+QG5rEEs3aRT/", + "isfDzGCq8WHkozBUdik3A0zeKfdE2psMESSCUAwutAiTWbup/xQUWbejjGhFS8vurUB0KSJZSLVRCwwT", + "ClPabjGEQpoRh/UwOSvaSvoeZlE7Emeb357K/XuU1rNAm+VqylUTyNoBs9BzeX4pD6IIJN8FO9eM8m1S", + "R+h1//J8cPnJ63nD28tL8dfo9uys3z/vn3s97+Pp4IL/cXZ6eda/YH+bzlqmhJjdK65O2cWuhi2Wk3DT", + "EbHbjraq+uSmY6P2wyAum1LIK8NbhqbRCa7BJicyERdfZgj9+y9oPIvj+1dfpAbLupYYTy9whFr5itgR", + "yj8z9YHJE3WQhvEUhDhCbRwFIqDEOAcbTjZoVE1svUULw416AVu6U6WIcsln+Fqg6gI9oFAXNef9X26Z", + "eBlcfrzyet6X0+Gl1/P6w+HV0CxTtHFy1d9p/0sQmASJ/P76NydFVmbpIT6ucHsqj9Dy/iQ719ygDAjQ", + "PTvfPD9LUxTRu4TT7nHPi9CT+te7nhdlc/4P4p0cHbILUZmzSp1NnkbZAiSCCvOJj52uHBosRnc8eqqO", + "/M5t5GJdRgdpTGGoX/BYU26XCDGhwkpXhLMdutxwDBLr3+x29xnRFPsGeRxl82u36yenY3UJ3bet999O", + "N04xFhZ+U379tA44dLtqihHlhXPfjJqSvTIHtTRLT0eISf4PEfvrx/FuDlESwud6Bxm3oA2CsrRrvfIi", + "UjPjbvs2mGiM4VMQfs2XpOnjxLqykoL9uuvTmn84PGxY7wLctlXbNGetu/sRtnDBcYVPQZeyWwm/1dWw", + "VZKZbqoVambN2KgLSq5hwCki9Da1+LJuhxeAxoCgKOAeSqnnEEDjzfgMbD6ALMJ/ZQjgAEUUTzBKc+O1", + "9AnIKBvhSNWD0sYojKOpgniRBKtMtDk/rtuNttY3W1Lnqwr4DEYRCm04lJ8BDsweFMIGB49idOP2yhEu", + "rc4+NQV3+i05yUo0BOe21bNvKyyddbevmw++yqJ3gvrd6FMhIkd3mS56GhkaSZiixOAFzfV5A9HhMEhR", + "2YTScPhtyFKYwFRlb7hDkiIYwHGIbJurvucxjAgQipJGMlnJgG2ZwU4B2ipK5KAMbnIDxV2iZus3YLA+", + "pf0kLt3LNP15TWZtToRfbEpBIw0sR8PICvIyVvaiTw26FhWMkpHewcYrXRJ5+/XzYJxRG4hLsie/fZ1O", + "KErdkbl2n4HoUrMzbn4FyWJlx4Kru4y1tckWB8HTZsV5l5oVMxXZ4qpwOqlyCsxXVusXkKg7Tf0ZfkBv", + "UkjpBlg3+HZKxMRpgFJzpxqu3xi/cXLYJskvUHUBgUJNz2intJHwDhh1F3jKaNuVbSzhcX6cRdS8Q+oA", + "qaABB+YOmuvAINAVWzmsRxqDeA9GKugBpZg+t+k9Un2cSO0jTgkdIaFAuJPbBWzXy5Q7Up5+YdxeiUgl", + "DjWE6J4RsZM1ZLsrMVwlgmwk2UIeK1/CsP/v2/5t//zu8uruy9Xwt/7Q6xU/Dk9v+ncXg8+DG6/njc5+", + "7Z/fXgwuP93dDD73z++ubtnPp6PR4NMldzaPbk6HN8L/PLgcjH4tu6KH/Zvhf4SruvBK9zw21tXtzd2w", + "/3HYl32GfW1UfbLRxRVredE/HeVjDvrnd7/85+521Dc7pIyUrKFAc2xJ6IaDm8HZ6UXdaHUuefnXnVjD", + "5/7lAppWctkXmcKLOcwolaHTfUuA+xeVCxkD3lpdyOe8F9k3Jj7CCIbPFPvkKqFXGa0ZtbjhzyABcUJR", + "AOQtLh/EPMfG86lsYdUrx2U3Z19ZQ6yNSQvbzVZYBfX2hdckLRjXvANS1LwXpuSOabwnSM4bsgm4hNV6", + "42g6QpT9j2yPRUW+cP8pwWyXeVwLB6Z+fNFLTEPAI0+L5CE6AKYIwCRJY+jPcDQV+ZEcwXXzq6QLQSQX", + "eI7pklCIJasE1Co8IRu7Fhea8eMjxGGWIgdQuONAB0S5PXjIKg8UNs8ZQiKWao8n4Qm0PMMWRnJnHyFh", + "U9IW0STwSRHZR24JiHxLwPwcPoGJagIgVSmKkqrWa8q2SwIjwHa5MMj9sJvJX3rJc2HtZkctA1pWvdhm", + "dvBySVJNFnnJUDZ/gvpsx5poUedR4COU0lCXODFL2V3FXumZKg20szNHiSTldieI2NMq/K9GUO5JUYz1", + "mlrfEpSKHtfZOMR+HSnw8Wry/HSYd2bT5f4ts+lDuU/qMnH15ZLfxE7PPw8uvZ73uf/5F8v1RgxTHzbE", + "Q5eaFlEaQot5Lif+XZcGbjPeYhhADrsiWh0B+V20/7u4P7EfPl5cfbkb3l7yO9rVZXEn7ddgpqSRmJQy", + "mM5/h2FmkW38O3hgDczik2sj7Nh5hClPN6moKqK3OWSKKQZDNMFh2KQ48AhUPhzTHFLeBwXuxxLvW7NQ", + "MbZ9iWb4V0tlyLe9mblyInnpeQ/2VajYwqYNM6/mEUeBIHiDToUoSoFokZ9yYizwN7yP9sERCOBzDxyB", + "R4Tu2f/ncURnf1/Sd52jp7R1avF2oagQdR2H2DekxQntue5CmZd+EU0NR3oLoVhmv6ZIIwmccXUpnk5R", + "qqn2LUtAVE2vbQOUbnk5mh+x2oC+8oZoyrUk+lsPfh0Q+/6/YVtYd5l/3cv8Bi/ZG6n+42zqfLFy0xfu", + "u7bHcZJrmBFTlLhO7sIBDjABCW8NYBQAH0ZRTAHkNaZ4sUqV/buIeCN0xHQbarQGwCBIESG6VaCkJalr", + "ZtU4wD78CsnMJK1nkMz0If8fWZhOym+haIhajyNRNhGczSC1Tvg7SvEEN6GX2zaYLHmQzWW90RIMZoqe", + "QWKvamqcA+ZlTAFBdIs2+wCTJITPJYJW+9fajFDG7lcLgZXLvtprxqBHOxI5D6LHAmtKYzLDvsSxnZeV", + "feGhQ3WA5EDU4m81GCq5eHnRWx1PNpRfxFMcLV+taDn+Xql40c5hXK0xacL1EE0xoTXSfRfR7XbSWQTD", + "Du6WKsToumm6ekxmOCFv1cRVMflt8TTfxCkjJjNtm8xzEKrUWk24bswg4/WlGmZki8yWOKP6Zmm4jIeb", + "jduIElGYbcWSbA6LJMhPkcUJJ77l1aQkD7ObEBhMeNXxJI0fcICCHoAghVEQz1WnRxyGYIzAFEUohVQY", + "3vQksOONYbw9moPdJMDl9mbbpJzD2YhsJpV3pJ5FWfw4lVW3iSqRHGFxkcqPwpAqr3w+jECCUiaR91vF", + "nsAHiEN2w1c5Cg3FqarToifkZxQBP46k4Td8Nlt2mcznBRHTQUNVbm41xtMIBaDotI763CtmlIZwjEJS", + "b/XmbQChWtGKgh+d00JResHGMW1ZCAn9FcGUjhGkp7TWj15sFXdiEAYgBDPVe3+9xdbZHIwhmXzuEwrH", + "IY/u3iEI5/DJTuhz+ITn2Xx9BL95gW8X9CnyUURHWpkoUyYZa8Nzu6RJTr3v0ZJia4pLFWkohgOHf6su", + "RjkgT89uBr/3ed2T/M/r09uRMSyz4WD5ahW/gtEqMri2GqqqRsO6rjsptcazJjxqDZPX1xytwcPrX3Cs", + "Z6cEUrnCV69FqEzR+5b6chaKZV9MQzitTtakM8nz9tXQtiJbrBhSd3CDWIfT5TGk1ngDjcqKLHbYvsDC", + "76JjnvZd5/50FRxs3DN1BJicvFNEte95aPGCUTuS+pz0XEwRJRx3ftEVTFnf3KCpEcK+NchgRNkNafps", + "E7ziK6CxsJerBzn0WUUwAn+GBPozcdtSklnEx98NLu+uh1efhv3RyOt558Or67vL/pf+6MbreTx9ofjn", + "p+HV7fXd8Or28vxuePXL4NIYLtLyfC6O4LJvabG26bvj5vI2aupFBPaMG1lHFYNzk/MiB3Bwbtw21fs3", + "HJUqTX28vTy7GfBIm/Pb4ekvF+wUPD/9ZMSfPoiS5604hc9uYD313XxIrJQiv+XzhZ8hzrcz1toa0sX5", + "8jf0fKZyzgzicKFgVZWt79EzMauPanhGljVTLKirTExAQBLk4wn2i0nA3xJICArAA4ZggkOK0r871sP6", + "Uq7Z6RLoYQ5WKz0Rpz3qIYyBl7ZivrkLVi8idHSo1fTRsLbeDNU8PqXVgkQmsTtdFlnwa8sNUdnt4qq9", + "7YuymHuk5yluG4SNleLV657nafP1+e4ibAoFvzy3GPxG66WFgkpdpqXqYxhh9SK6v2vFpyXuyov9Wi9M", + "duTGUVeCqw78uuqSp6Mzdkz3R2e153QxSk2FSZ2WS1JMk4wNk6ylerHU6c7dJltK/SjzlEUHWeANQ13Z", + "OLrWhJ+h7kEcjZhKm4XmAwep3HKnpxtkqbzNFA9qyaV5pwbWI2e8PsQyZfw2WXVwsQpfwyKsmhnPHW9D", + "dWqoM9GxifUXmlfml9xjrCqgOM/4UXKY8ZtiVOPHgnfNhSKsq2F3bQP+QqFErW5MWdnaYHbFCQjrCETK", + "iLOUHQ8Ts5ioKQt0hy2c1zShzPKfWKp+3knD4rqnJeYVtj8KF/BmqjP1UCmb1GLgHD/rVXeFfmJGX6Gy", + "3EkbUns0a3rXIq+UjEAumNDtRpq9cRUr4ioVslQZnUaTSY8/Uc2OzZuidpxN3W1LF0Qz8VnM3+Kjk9jR", + "M6dcTQKqT8szV8FcVN3RBvraTFLniOl05nqrKXwsfzZ4ceAj+M/p5wsQ5A3bS9XyPA5Am59/3hIV/gBU", + "ImI1shTT51HxLPwYwRSl6vV48V48u1Hzn4sFzijlpRP8OL7HSDXHDEPiJ2XcPvHkE4VFX/moOPe54GgS", + "m5H8q+gGTq8HvMYP5Tf78q/5LnlH+4f7h3yTExTBBHsn3rv9o/1DrrDSGV/aAUzwQSgrqU1NMSqflG2c", + "tYoQISC/dDIa5Bchtinehfz+ia8rlXdDPsvx4WF14F8RDOmMi9EPpu+XMc3nLO2Md/LH155H1OtnDMKi", + "ofKS/CHH92fIv/e+sv58rSmCwXPzYlkzXLfaoWqwzuVy4HgehcgboCmcTGS+cN3qc2gbl/9wdABlksce", + "j+nb46ZKcvCN/6z/9iJgDBE1aJLn/HcCYP7aI88lEpGLvHsFYwt5Y2IEcXmCPMWQgV2TZF+ZAfCLEOcv", + "Rs8Fd1WW4unyQVgPhYxZ+Wb18rWy9++r2Bplvo8ImWRh+AwESoPSU5kV5L30vPeCSvw4ovJeDJMkxD7H", + "6MGfspxVsY4Gyc+LFsro1EUvyRyGDAsoAHEKxjAAqbyhcjDerR0MExQf43SMgwCJlJiCvgWd1JGZoniZ", + "lP+15z3t5WlX/CFl8aFnIIyv/ApAfUPmi0gRWoXExQjfB4lzevglFrJzLcTgkFNqIJNabNEYZArnZWy8", + "mEX0WhZiqaFUhb0kBgSgnRhwFAOCWjYnBvQDMsF7Iof04Fv+Nz8Nk5gYlIYheojveX2j/Kl/6Q/MZ1wQ", + "Ewnm6a1iTaK7i5TIh7fIBAXrTh13KV+epHP18tx3TNSkDVVL0mEbeyN3TpFx8VsdJedbXqJgP4yz4EC/", + "Ftq13cpT5eo6wQcBOCIURrwYQ5mIz9hn5Xy2K8Gbxy0HBGRRHlS9MwTWoLULBOvOPrn1uUuf77waYi9O", + "hCtcnmjafgvT4ME3/v+Xg6ZN59uc7zmMiqfFy1ucP40utrdRPomH0G0qi3DvbFM0rY8Eikfim471FNEU", + "owcp8ARG+H50Uq9E/BpmCsIXzr0aeSdoqCTr5mhpCWeVbdsTa7KQYBuaygXGGxFz6xBwbIwDvPAqrXHH", + "LzBh6mEISq1tG8xaD8oNN7bblieH222+Kp1TWt0uEUK+9XwjFjahuv/6JvP3lw6+8f85GJ/ASH+vqbLF", + "+iNc7ram0pjWo4yDuJNGpTJOdunMOdoOGLcRzOgsTvF/USAm/rCdiT8jOosDnkwLwzB+RIHZkLVItYon", + "+O91Z58gujLHsCsqiYgTt5TfHKvyS0RasMnCA2ZWRpEidefYZAEZHaPsIKNUCDZnlctRLaPwtzoX2UR8", + "flGXJLs5h82r7ioVFmlt0rVxRg7tppijZ7+h3aPnZa9oGgzHHz6UgDhyvpLVMGiSxuwfKOjOsB1iTZt2", + "j+ksGwOYJIraq8eaaLPAjxQle2nGDy/558sBFK8PNWn2spVKuJBJtFVWFUHwXOdWAzswrRrPfqBJeLfN", + "uDLdhMaA3ONEwfZXhtLnArh4MiH8xmoAxf4Se/10Ih9t/GyZkn9uOeMmDTWGt7WWsNiQH9xaw2Z9v51Z", + "S1z3CAkXPpM4iwLTfbLE/hrz55oB+2mY1drMcxZulklFyKVdIok2LeRRXwzaSaMfRhoVT6Z1suj7kUUa", + "429eEoXxtF4OERDGUxDiqKIbVf06F/H0AkfidOzE0G6IoZ69THqIHlBI2LwigbhmYt6yNHOtRVrSAesl", + "MuEsKyeIHbyAz6bBMYlTCyCiQ1tARqKXAYgv/G2iGPAgXvv6Yz2rr+XkpYxACx7E9EGeelgLxbnWbBlI", + "iv6bPaR0adB0PjGS7A4ni1uTnwq5FNbOgot42v4YEJ+J3U4lKh4SAHkFZkuokQiGEk29zcTxicHLDxPU", + "B+7RGPg6RNsM02skcZkBrMXldVF4OYmLvS6IrSnmzkTRuSlWpJ3XxN7y0JQnTCiOpvUE/nbMslsIpnVj", + "wiKF6FXDZjt+XFtUbIsY2Fq+NGeI1MfYwFxbtUXokqZoedfryE5w8DZDyZewHNg3oeOdkrpWR63uzNRr", + "oaK1TyPJtbcf9XDTNcz1ZYo4q6BHr5wpUj0Bu0wRVx11pUwRt1PygGjvntdnlaouQHWpzxMxP6/uGIz9", + "gxyT+rvzy5+R+p50rFQK37WiaW18lKdb1Tva8uwn4pZd1emTecwxxwcpyrW14hNVMKGz9S0qj3mKFmmX", + "t9WkMC6RStjpiBwBitY1tXCTJozFSTv+Whd/SUZYMjGy/sBxiOogPIWkFNpRPC9qSJJ7K2fNj+xGvUfP", + "Tk5U1q40q1OBME4GvIRPtdiiHSatPLkTbIWsaA2gVid9ORDTLJLFcJATrKqts/vTXMz0lVzSfD9fxyHN", + "p94Bd7QOh+6MriGWPNXyHj3Ld1MSiNMKveRlqf9g7HZ0wpseicdSjsW/jpl4N63HUPrcyAxNNVA3ni/c", + "edTXomUjFS/pmCXsao6tS3rv1GmOAFk0tNbEKlJKXselL4tBt7CfIlU++seOqDz+53ZmVeUmpaqHnnyE", + "gkrCl1T2VfaRM583K/kHXJlz1PSFhuig7f+GnjvjUqHyLnXOcWR3Z53prAPyBrJOPkhREsLnuhpW7Lvu", + "xxcdLRygKlfxQX/cU1IgwP2UxAHXhFOFty2flI6BBAy4TiXd4fNSkN0SinGdoMDRA6aobZiP6mV2XQ74", + "1+6sVB5LDR9L+SoVtjsPpSmIp6DFDUXuiAlqab27OGqxOgIlbiE6ArevGpcjwF0mHEcSRseW5hicnG/W", + "EzAg+Vz9sCf+3a5cuQMrty5QvltenTJf1cO2l6PjrZ+tjdxrqL6+Y9xrqoWT748th6i8j22qmjtwwhsv", + "erODnLDZBJDlzt1XSwFx5FxDwfRd5lyZmtGac+tOvjmaj+UTTy3uaKqXmcU/86/dHU1Ro4aPpe5oCtud", + "Mmi6oxW0uB5dUI538E384VIIEUogwCSN503B14Iavg9VUC7bBpv4vP1yjWvn3WV0wB+Da3eo1sqlpbRK", + "zqSljVmbvPgrQxnamxcv2NbWyOetgWydlw+vFRifEP0366UeyX2LMuNNxad1IUe6BCzR3nJxyPlTjopL", + "Opn4yjKRiaN8d+a5YFESMX8mc0mZqHrsJXGIfafHEaWXSnRwSWJTjq1r3qNLYTswoWW5C8fCbnQXj61n", + "gorK7LXJa6Wq76T2sYLuKi7y1nSctDnLFlDd1Y/eodLuGi9YngZpeAbBgREPCIUptbLjiH0V59jVaUZn", + "gB+diwx5S1AqLHgcoCuGUN7zLXLmu8PjhrLrHGXyWClhZYZgIC2OYSwIpkwri3O/LBQM/1Z6DvuPry+l", + "CuIcpeUZFSGwHViaDppyiRfeFiCmUv+dHJZy+HJUeiKphSRexHIni3dOFlcZwemVjcYUZofnZrpYGY6A", + "Mn/VZi6vj2bLkzrHvHTv5uwwQ1s5z5Gja09UQ1HqWvNpUX8ajJ8F5xor4r8RU0BvVwtjb6F8fUuzRF4M", + "vbMb7lrdesaYa61V7yQnDnwY+Si0J5+cUormCeUme9HW4SkNcTs7E0N3EuRtS5AAEx6vJkWIIIJw93SM", + "V84Ra2KUbTF0iljHmmQy1sGZh3nzjoV3Mb0tzSK5VQ3RhDhKMp4FLvxDpuW+7ISm0iW31cgXvuGvIVCK", + "NdXGY4hmjm9tfUJ0JIbtRMvraQdyvHj8J/LpkjcJue/dhWKnLxRqlzYiNaQ7b+8xTu/rIqCLkg5WX2vn", + "Zi1irgQqvnCkMoTUlTBkyMjjwuQD+Wo7Ojvgrhn2NfJfPve1eM7XyEI/vAG/xD8CG1uqPGqYOWiVudo9", + "r727Fnyd8ZYx1gupXG+eZyekEN714XvF2fDDH5YFJroCvytfNVVMazkZSOB4WSeVQrS4XrYveaSXOjVU", + "PtLqk3b1j7T6RxpeSIOZqFRM9vWqIZngdq7drVmQSgTTXU93skpSeY+qUfPsgkrWI3G+6f9sco+XWKHx", + "CJZ0+pa95Qu8bwZNx+Ab1hPkdi2bgdN5z+35L2XDdHPuS69MU278TJyUZ97SjXc7BbpgjE6FXj9brDMf", + "LB+zMXDjTPmgx5D6s4oKXXeSvZ3AjU3ZjjTtUyDD1cUqPf9VBXTdKnTxRDD712MB8CAgpbzXlRBcTfZt", + "6TSS0SKdTt6QDSfIxkUfXl1y8MFdz1AOirMO3L21s6tv7eiFjtmcU0Tzrd23TMzbDwJvW5cPd8hUl80D", + "l8CUIc1yQVoASzT+ogvjLcFnCEcwwibjLzYL104/UGQA7h5HgdvzU6xha5B+w1HQDM1bqpVR8+LR+BlM", + "5ItKa3t0Sdtb96eXxs+be32pCpD+BtOWDBgrXNU6/avBirGZKxs3RLrUN4JAgsYEQ1mI6gWPHK2Sb7nc", + "Uae2dGrL9tWWrm5V1Q6yYuEqzhpd1apNnjwZQSk58LM0lUuprxQlGwLWzVhj4xOiZ3KwDdIYryXRjqg4", + "xF1w1OsHR7mWEmFEvkBu5VIiVTKeYjrLxgc+DMNxXQWns5hJYIpaVI35xIfmZWPO1PCtq7L4ct5N1GUp", + "4U4tsK4SixV96y23oyFO1dvZmVo27UrXGBAWx9MQbYbe+NDfOb0J9K2Z3grEfXf01vSkV5EsUX5BKa90", + "23h8sxH0Iv7E26U3tLQ3J3+oB7RclEPXY9XtgS0r7R1A30cJrcn959/bvUci+nib8cuKwStPaFh8qTXU", + "J1bePRRVn9HOkdT4UJSdvlLEfcQ1Ub7sezv6En28TcXMssHXQF9i5R19NWQ0MyQtQV9hPMU1JQ4u4ikB", + "OAKQn437NQrGBR9oQ4/+sCOYjb+lrCOne3QYT6coALirDrZb1+fysc6oxvWeHMbTOKMNzBBn1I0b2FA7", + "QqMMlI5I346NR1CPK9nKN11mOGlxBdI6uV2D9JdneDcZn7RRAjdP2v4+pKOouxMtcyfSMdhMkgkk5DFO", + "A7sslc/GCUkKVPs6kXqtxtycjnE2g9E0n2iXlA2fQxbkiOrE+RsS54KsypTuwEQpmjJBltZd+kQLUquR", + "nOkPTW+CbRQYu8QwCnmdm+tN6OmKhFx1HvECwiY8DMU7CLvpYGgQNS09Dgv1hg6+yR8cXxlvKJzi/p6k", + "KrRjzZfMJ9pyRpjj84pdmZEdLDOSv7HYVGakl9NXmTlypuB/uGQ6Gy5OotaDY0azGKM2bXjLb5euu7DI", + "EkFPO3Z070xFkRYFRXqKdBqfzG8iZPdH8neCljf1Ar1AhkMZEKbTbP/FeUde09+a7zgtMj9tvwqzLZwm", + "thoaBzzptbEurEiNFeHqeqDjfkPU+oCP7siy30vtiiIo+FrL7xUwrlKttYwjjtmuYOuWCrZ+0XEfuTwj", + "W2xS65I4dRU1ikSUnJHd3uTPAXNKOmlxgSoyKOq5dvsP37teoRSAHTftxtv0GsUsU4aGq5ouhaGcOKHF", + "/Wn32GD9WSRLnlmddmc+JpYn8YYzwSlFke1QORdx8Y36OrZokZK4C9xhSBUTCepryHFfPsPdDBh/Ppsn", + "rhUgqI2ygsI7/YaeS8C8hoxYMctMkl6XaLYrx3JJr53nXL8hwUVTPJ3WOR9vRAMAQYQelyvz6F5YfScl", + "142BXfbBYMJvJiRj1IGCHueqEFJEaM5TmIAJ4u+A2dKbC8G/4+YwSQbarrZ5Qmmh3OF2DWSu1StL9eS7", + "2pWvKxJ3rv6ukoMNlTubHohpIZqlbCCulXeV1HESy7+Lxm/ovvU9yOUNSzm5qSuqgp282ykVsCDFDamA", + "Ss4cBGiCI6xiVdqInKJnW+lzXszZyaHvTA5pe7vi5VSjzE447aBw0jdoeTm1GAE3RjBFaR4B1zPGxKH0", + "QcmLLA29E897+fryvwEAAP//loaU7/eGAQA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/v1/server/oas/transformers/metadata.go b/api/v1/server/oas/transformers/metadata.go index 5bdd5e85c..5c91be5d8 100644 --- a/api/v1/server/oas/transformers/metadata.go +++ b/api/v1/server/oas/transformers/metadata.go @@ -3,14 +3,12 @@ package transformers import ( "time" - "github.com/google/uuid" - "github.com/hatchet-dev/hatchet/api/v1/server/oas/gen" ) func toAPIMetadata(id string, createdAt, updatedAt time.Time) *gen.APIResourceMeta { return &gen.APIResourceMeta{ - Id: uuid.MustParse(id), + Id: id, CreatedAt: createdAt, UpdatedAt: updatedAt, } diff --git a/api/v1/server/oas/transformers/worker.go b/api/v1/server/oas/transformers/worker.go index 87f0b42d7..250b6ef2e 100644 --- a/api/v1/server/oas/transformers/worker.go +++ b/api/v1/server/oas/transformers/worker.go @@ -1,6 +1,7 @@ package transformers import ( + "fmt" "time" "github.com/google/uuid" @@ -10,6 +11,36 @@ import ( "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" ) +func ToWorkerLabels(labels []*dbsqlc.ListWorkerLabelsRow) *[]gen.WorkerLabel { + resp := make([]gen.WorkerLabel, len(labels)) + + for i := range labels { + + var value *string + + switch { + case labels[i].IntValue.Valid: + intValue := labels[i].IntValue.Int32 + stringValue := fmt.Sprintf("%d", intValue) + value = &stringValue + case labels[i].StrValue.Valid: + value = &labels[i].StrValue.String + default: + value = nil + } + + id := fmt.Sprintf("%d", labels[i].ID) + + resp[i] = gen.WorkerLabel{ + Metadata: *toAPIMetadata(id, labels[i].CreatedAt.Time, labels[i].UpdatedAt.Time), + Key: labels[i].Key, + Value: value, + } + } + + return &resp +} + func ToWorker(worker *db.WorkerModel) *gen.Worker { var dispatcherUuid uuid.UUID @@ -20,6 +51,10 @@ func ToWorker(worker *db.WorkerModel) *gen.Worker { status := gen.ACTIVE + if worker.IsPaused { + status = gen.PAUSED + } + if lastHeartbeat, ok := worker.LastHeartbeatAt(); ok && lastHeartbeat.Add(4*time.Second).Before(time.Now()) { status = gen.INACTIVE } @@ -63,7 +98,7 @@ func ToWorker(worker *db.WorkerModel) *gen.Worker { return res } -func ToWorkerSqlc(worker *dbsqlc.Worker, stepCount *int64, slots *int) *gen.Worker { +func ToWorkerSqlc(worker *dbsqlc.Worker, slots *int) *gen.Worker { dispatcherId := uuid.MustParse(pgUUIDToStr(worker.DispatcherId)) @@ -71,11 +106,19 @@ func ToWorkerSqlc(worker *dbsqlc.Worker, stepCount *int64, slots *int) *gen.Work status := gen.ACTIVE + if worker.IsPaused { + status = gen.PAUSED + } + if worker.LastHeartbeatAt.Time.Add(5 * time.Second).Before(time.Now()) { status = gen.INACTIVE } - availableRuns := maxRuns - *slots + var availableRuns int + + if slots != nil { + availableRuns = maxRuns - *slots + } res := &gen.Worker{ Metadata: *toAPIMetadata(pgUUIDToStr(worker.ID), worker.CreatedAt.Time, worker.UpdatedAt.Time), diff --git a/api/v1/server/oas/transformers/workflow_run.go b/api/v1/server/oas/transformers/workflow_run.go index 77c68887e..fe62a05ba 100644 --- a/api/v1/server/oas/transformers/workflow_run.go +++ b/api/v1/server/oas/transformers/workflow_run.go @@ -368,12 +368,19 @@ func ToWorkflowRunFromSQLC(row *dbsqlc.ListWorkflowRunsRow) *gen.WorkflowRun { } + var duration int + + if run.Duration.Valid { + duration = int(run.Duration.Int32) + } + res := &gen.WorkflowRun{ Metadata: *toAPIMetadata(workflowRunId, run.CreatedAt.Time, run.UpdatedAt.Time), DisplayName: &run.DisplayName.String, TenantId: pgUUIDToStr(run.TenantId), StartedAt: startedAt, FinishedAt: finishedAt, + Duration: &duration, Status: gen.WorkflowRunStatus(run.Status), WorkflowVersionId: pgUUIDToStr(run.WorkflowVersionId), WorkflowVersion: workflowVersion, diff --git a/api/v1/server/run/run.go b/api/v1/server/run/run.go index 2b3326cae..e7103bbeb 100644 --- a/api/v1/server/run/run.go +++ b/api/v1/server/run/run.go @@ -24,6 +24,7 @@ import ( "github.com/hatchet-dev/hatchet/api/v1/server/handlers/users" webhookworker "github.com/hatchet-dev/hatchet/api/v1/server/handlers/webhook-worker" "github.com/hatchet-dev/hatchet/api/v1/server/handlers/workers" + workflowruns "github.com/hatchet-dev/hatchet/api/v1/server/handlers/workflow-runs" "github.com/hatchet-dev/hatchet/api/v1/server/handlers/workflows" hatchetmiddleware "github.com/hatchet-dev/hatchet/api/v1/server/middleware" "github.com/hatchet-dev/hatchet/api/v1/server/middleware/populator" @@ -44,20 +45,21 @@ type apiService struct { *ingestors.IngestorsService *slackapp.SlackAppService *webhookworker.WebhookWorkersService + *workflowruns.WorkflowRunsService } func newAPIService(config *server.ServerConfig) *apiService { return &apiService{ - UserService: users.NewUserService(config), - TenantService: tenants.NewTenantService(config), - EventService: events.NewEventService(config), - LogService: logs.NewLogService(config), - WorkflowService: workflows.NewWorkflowService(config), - WorkerService: workers.NewWorkerService(config), - MetadataService: metadata.NewMetadataService(config), - APITokenService: apitokens.NewAPITokenService(config), - StepRunService: stepruns.NewStepRunService(config), - + UserService: users.NewUserService(config), + TenantService: tenants.NewTenantService(config), + EventService: events.NewEventService(config), + LogService: logs.NewLogService(config), + WorkflowService: workflows.NewWorkflowService(config), + WorkflowRunsService: workflowruns.NewWorkflowRunsService(config), + WorkerService: workers.NewWorkerService(config), + MetadataService: metadata.NewMetadataService(config), + APITokenService: apitokens.NewAPITokenService(config), + StepRunService: stepruns.NewStepRunService(config), IngestorsService: ingestors.NewIngestorsService(config), SlackAppService: slackapp.NewSlackAppService(config), WebhookWorkersService: webhookworker.NewWebhookWorkersService(config), @@ -75,7 +77,7 @@ func NewAPIServer(config *server.ServerConfig) *APIServer { } // APIServerExtensionOpt returns a spec and a way to register handlers with an echo group -type APIServerExtensionOpt func(config *server.ServerConfig) (*openapi3.T, func(*echo.Group) error, error) +type APIServerExtensionOpt func(config *server.ServerConfig) (*openapi3.T, func(*echo.Group, *populator.Populator) error, error) func (t *APIServer) Run(opts ...APIServerExtensionOpt) (func() error, error) { e, err := t.getCoreEchoService() @@ -95,13 +97,13 @@ func (t *APIServer) Run(opts ...APIServerExtensionOpt) (func() error, error) { return nil, err } - err = t.registerSpec(g, spec) + populator, err := t.registerSpec(g, spec) if err != nil { return nil, err } - if err := f(g); err != nil { + if err := f(g, populator); err != nil { return nil, err } } @@ -140,7 +142,7 @@ func (t *APIServer) getCoreEchoService() (*echo.Echo, error) { g := e.Group("") - if err := t.registerSpec(g, oaspec); err != nil { + if _, err := t.registerSpec(g, oaspec); err != nil { return nil, err } @@ -153,7 +155,7 @@ func (t *APIServer) getCoreEchoService() (*echo.Echo, error) { return e, nil } -func (t *APIServer) registerSpec(g *echo.Group, spec *openapi3.T) error { +func (t *APIServer) registerSpec(g *echo.Group, spec *openapi3.T) (*populator.Populator, error) { // application middleware populatorMW := populator.NewPopulator(t.config) @@ -291,7 +293,7 @@ func (t *APIServer) registerSpec(g *echo.Group, spec *openapi3.T) error { mw, err := hatchetmiddleware.NewMiddlewareHandler(spec) if err != nil { - return err + return nil, err } mw.Use(populatorMW.Middleware) @@ -301,7 +303,7 @@ func (t *APIServer) registerSpec(g *echo.Group, spec *openapi3.T) error { allHatchetMiddleware, err := mw.Middleware() if err != nil { - return err + return nil, err } loggerMiddleware := middleware.RequestLoggerWithConfig(middleware.RequestLoggerConfig{ @@ -355,5 +357,5 @@ func (t *APIServer) registerSpec(g *echo.Group, spec *openapi3.T) error { allHatchetMiddleware, ) - return nil + return populatorMW, nil } diff --git a/cmd/hatchet-admin/cli/token.go b/cmd/hatchet-admin/cli/token.go index 6589fcdd2..358b48343 100644 --- a/cmd/hatchet-admin/cli/token.go +++ b/cmd/hatchet-admin/cli/token.go @@ -5,6 +5,7 @@ import ( "fmt" "log" "os" + "time" "github.com/spf13/cobra" @@ -15,6 +16,7 @@ import ( var ( tokenTenantId string tokenName string + expiresIn time.Duration ) var tokenCmd = &cobra.Command{ @@ -26,7 +28,7 @@ var tokenCreateAPICmd = &cobra.Command{ Use: "create", Short: "create a new API token.", Run: func(cmd *cobra.Command, args []string) { - err := runCreateAPIToken() + err := runCreateAPIToken(expiresIn) if err != nil { log.Printf("Fatal: could not run [token create] command: %v", err) @@ -55,9 +57,18 @@ func init() { "default", "the name of the token", ) + + tokenCreateAPICmd.PersistentFlags().DurationVarP( + &expiresIn, + "expiresIn", + "e", + 90*24*time.Hour, + "Expiration duration for the API token", + ) + } -func runCreateAPIToken() error { +func runCreateAPIToken(expiresIn time.Duration) error { // read in the local config configLoader := loader.NewConfigLoader(configDirectory) @@ -77,7 +88,9 @@ func runCreateAPIToken() error { defer serverConf.Disconnect() // nolint:errcheck - defaultTok, err := serverConf.Auth.JWTManager.GenerateTenantToken(context.Background(), tokenTenantId, tokenName) + expiresAt := time.Now().UTC().Add(expiresIn) + + defaultTok, err := serverConf.Auth.JWTManager.GenerateTenantToken(context.Background(), tokenTenantId, tokenName, false, &expiresAt) if err != nil { return err diff --git a/cmd/hatchet-engine/engine/partitioner.go b/cmd/hatchet-engine/engine/partitioner.go index 9a7f88da0..a4fd64f3d 100644 --- a/cmd/hatchet-engine/engine/partitioner.go +++ b/cmd/hatchet-engine/engine/partitioner.go @@ -7,6 +7,7 @@ import ( "github.com/go-co-op/gocron/v2" "github.com/google/uuid" + "github.com/rs/zerolog" "github.com/hatchet-dev/hatchet/pkg/repository" ) @@ -14,16 +15,17 @@ import ( type partitioner struct { s gocron.Scheduler repo repository.TenantEngineRepository + l *zerolog.Logger } -func newPartitioner(repo repository.TenantEngineRepository) (partitioner, error) { +func newPartitioner(repo repository.TenantEngineRepository, l *zerolog.Logger) (partitioner, error) { s, err := gocron.NewScheduler(gocron.WithLocation(time.UTC)) if err != nil { return partitioner{}, err } - return partitioner{s: s, repo: repo}, nil + return partitioner{s: s, repo: repo, l: l}, nil } func (p *partitioner) withControllers(ctx context.Context) (*Teardown, string, error) { @@ -35,24 +37,33 @@ func (p *partitioner) withControllers(ctx context.Context) (*Teardown, string, e return nil, "", fmt.Errorf("could not create engine partition: %w", err) } - // rebalance partitions on startup - err = p.repo.RebalanceAllControllerPartitions(ctx) + // rebalance partitions 30 seconds after startup + _, err = p.s.NewJob( + gocron.OneTimeJob( + gocron.OneTimeJobStartDateTime(time.Now().Add(time.Second*30)), + ), + gocron.NewTask( + func() { + rebalanceAllControllerPartitions(ctx, p.l, p.repo) // nolint: errcheck + }, + ), + ) if err != nil { - return nil, "", fmt.Errorf("could not rebalance engine partitions: %w", err) + return nil, "", fmt.Errorf("could not create rebalance all controller partitions job: %w", err) } _, err = p.s.NewJob( gocron.DurationJob(time.Minute*1), gocron.NewTask( func() { - rebalanceControllerPartitions(ctx, p.repo) // nolint: errcheck + rebalanceInactiveControllerPartitions(ctx, p.l, p.repo) // nolint: errcheck }, ), ) if err != nil { - return nil, "", fmt.Errorf("could not create rebalance controller partitions job: %w", err) + return nil, "", fmt.Errorf("could not create rebalance inactive controller partitions job: %w", err) } return &Teardown{ @@ -81,24 +92,33 @@ func (p *partitioner) withTenantWorkers(ctx context.Context) (*Teardown, string, return nil, "", fmt.Errorf("could not create engine partition: %w", err) } - // rebalance partitions on startup - err = p.repo.RebalanceAllTenantWorkerPartitions(ctx) + // rebalance partitions 30 seconds after startup + _, err = p.s.NewJob( + gocron.OneTimeJob( + gocron.OneTimeJobStartDateTime(time.Now().Add(time.Second*30)), + ), + gocron.NewTask( + func() { + rebalanceAllTenantWorkerPartitions(ctx, p.l, p.repo) // nolint: errcheck + }, + ), + ) if err != nil { - return nil, "", fmt.Errorf("could not rebalance engine partitions: %w", err) + return nil, "", fmt.Errorf("could not create rebalance all tenant worker partitions job: %w", err) } _, err = p.s.NewJob( gocron.DurationJob(time.Minute*1), gocron.NewTask( func() { - rebalanceTenantWorkerPartitions(ctx, p.repo) // nolint: errcheck + rebalanceInactiveTenantWorkerPartitions(ctx, p.l, p.repo) // nolint: errcheck }, ), ) if err != nil { - return nil, "", fmt.Errorf("could not create rebalance tenant worker partitions job: %w", err) + return nil, "", fmt.Errorf("could not create rebalance inactive tenant worker partitions job: %w", err) } return &Teardown{ @@ -126,10 +146,42 @@ func (p *partitioner) shutdown() error { return p.s.Shutdown() } -func rebalanceControllerPartitions(ctx context.Context, r repository.TenantEngineRepository) error { - return r.RebalanceInactiveControllerPartitions(ctx) +func rebalanceAllControllerPartitions(ctx context.Context, l *zerolog.Logger, r repository.TenantEngineRepository) error { + err := r.RebalanceAllControllerPartitions(ctx) + + if err != nil { + l.Err(err).Msg("could not rebalance controller partitions") + } + + return err +} + +func rebalanceAllTenantWorkerPartitions(ctx context.Context, l *zerolog.Logger, r repository.TenantEngineRepository) error { + err := r.RebalanceAllTenantWorkerPartitions(ctx) + + if err != nil { + l.Err(err).Msg("could not rebalance tenant worker partitions") + } + + return err } -func rebalanceTenantWorkerPartitions(ctx context.Context, r repository.TenantEngineRepository) error { - return r.RebalanceInactiveTenantWorkerPartitions(ctx) +func rebalanceInactiveControllerPartitions(ctx context.Context, l *zerolog.Logger, r repository.TenantEngineRepository) error { + err := r.RebalanceInactiveControllerPartitions(ctx) + + if err != nil { + l.Err(err).Msg("could not rebalance inactive controller partitions") + } + + return err +} + +func rebalanceInactiveTenantWorkerPartitions(ctx context.Context, l *zerolog.Logger, r repository.TenantEngineRepository) error { + err := r.RebalanceInactiveTenantWorkerPartitions(ctx) + + if err != nil { + l.Err(err).Msg("could not rebalance inactive tenant worker partitions") + } + + return err } diff --git a/cmd/hatchet-engine/engine/run.go b/cmd/hatchet-engine/engine/run.go index 62a79c08e..0b05534c6 100644 --- a/cmd/hatchet-engine/engine/run.go +++ b/cmd/hatchet-engine/engine/run.go @@ -11,6 +11,7 @@ import ( "github.com/hatchet-dev/hatchet/internal/services/admin" "github.com/hatchet-dev/hatchet/internal/services/controllers/events" "github.com/hatchet-dev/hatchet/internal/services/controllers/jobs" + "github.com/hatchet-dev/hatchet/internal/services/controllers/retention" "github.com/hatchet-dev/hatchet/internal/services/controllers/workflows" "github.com/hatchet-dev/hatchet/internal/services/dispatcher" "github.com/hatchet-dev/hatchet/internal/services/grpc" @@ -22,6 +23,7 @@ import ( "github.com/hatchet-dev/hatchet/internal/telemetry" "github.com/hatchet-dev/hatchet/pkg/config/loader" "github.com/hatchet-dev/hatchet/pkg/config/server" + "github.com/hatchet-dev/hatchet/pkg/repository/cache" ) type Teardown struct { @@ -32,12 +34,14 @@ type Teardown struct { func init() { svcName := os.Getenv("SERVER_OTEL_SERVICE_NAME") collectorURL := os.Getenv("SERVER_OTEL_COLLECTOR_URL") + traceIdRatio := os.Getenv("SERVER_OTEL_TRACE_ID_RATIO") // we do this to we get the tracer set globally, which is needed by some of the otel // integrations for the database before start _, err := telemetry.InitTracer(&telemetry.TracerOpts{ ServiceName: svcName, CollectorURL: collectorURL, + TraceIdRatio: traceIdRatio, }) if err != nil { @@ -99,12 +103,13 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er shutdown, err := telemetry.InitTracer(&telemetry.TracerOpts{ ServiceName: sc.OpenTelemetry.ServiceName, CollectorURL: sc.OpenTelemetry.CollectorURL, + TraceIdRatio: sc.OpenTelemetry.TraceIdRatio, }) if err != nil { return nil, fmt.Errorf("could not initialize tracer: %w", err) } - p, err := newPartitioner(sc.EngineRepository.Tenant()) + p, err := newPartitioner(sc.EngineRepository.Tenant(), l) if err != nil { return nil, fmt.Errorf("could not create partitioner: %w", err) @@ -132,29 +137,6 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er }) } - if sc.HasService("ticker") { - t, err := ticker.New( - ticker.WithMessageQueue(sc.MessageQueue), - ticker.WithRepository(sc.EngineRepository), - ticker.WithLogger(sc.Logger), - ticker.WithTenantAlerter(sc.TenantAlerter), - ticker.WithEntitlementsRepository(sc.EntitlementRepository), - ) - - if err != nil { - return nil, fmt.Errorf("could not create ticker: %w", err) - } - - cleanup, err := t.Start() - if err != nil { - return nil, fmt.Errorf("could not start ticker: %w", err) - } - teardown = append(teardown, Teardown{ - Name: "ticker", - Fn: cleanup, - }) - } - if sc.HasService("eventscontroller") { ec, err := events.New( events.WithMessageQueue(sc.MessageQueue), @@ -176,17 +158,45 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er }) } + var partitionId string + // FIXME: jobscontroller and workflowscontroller are deprecated service names, but there's not a clear upgrade // path for old config files. - if sc.HasService("queue") || sc.HasService("jobscontroller") || sc.HasService("workflowscontroller") { - partitionTeardown, partitionId, err := p.withControllers(ctx) - + if sc.HasService("queue") || sc.HasService("jobscontroller") || sc.HasService("workflowscontroller") || sc.HasService("retention") || sc.HasService("ticker") { + partitionTeardown, pId, err := p.withControllers(ctx) + partitionId = pId if err != nil { return nil, fmt.Errorf("could not create rebalance controller partitions job: %w", err) } teardown = append(teardown, *partitionTeardown) + } + + if sc.HasService("ticker") { + t, err := ticker.New( + ticker.WithMessageQueue(sc.MessageQueue), + ticker.WithRepository(sc.EngineRepository), + ticker.WithLogger(sc.Logger), + ticker.WithTenantAlerter(sc.TenantAlerter), + ticker.WithEntitlementsRepository(sc.EntitlementRepository), + ticker.WithPartitionId(partitionId), + ) + + if err != nil { + return nil, fmt.Errorf("could not create ticker: %w", err) + } + + cleanup, err := t.Start() + if err != nil { + return nil, fmt.Errorf("could not start ticker: %w", err) + } + teardown = append(teardown, Teardown{ + Name: "ticker", + Fn: cleanup, + }) + } + if sc.HasService("queue") || sc.HasService("jobscontroller") || sc.HasService("workflowscontroller") { jc, err := jobs.New( jobs.WithAlerter(sc.Alerter), jobs.WithMessageQueue(sc.MessageQueue), @@ -230,6 +240,28 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er }) } + if sc.HasService("retention") { + rc, err := retention.New( + retention.WithAlerter(sc.Alerter), + retention.WithRepository(sc.EngineRepository), + retention.WithLogger(sc.Logger), + retention.WithTenantAlerter(sc.TenantAlerter), + retention.WithPartitionId(partitionId), + ) + if err != nil { + return nil, fmt.Errorf("could not create retention controller: %w", err) + } + + cleanupRetention, err := rc.Start() + if err != nil { + return nil, fmt.Errorf("could not start retention controller: %w", err) + } + teardown = append(teardown, Teardown{ + Name: "retention controller", + Fn: cleanupRetention, + }) + } + if sc.HasService("heartbeater") { h, err := heartbeat.New( heartbeat.WithMessageQueue(sc.MessageQueue), @@ -252,6 +284,9 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er } if sc.HasService("grpc") { + + cacheInstance := cache.New(10 * time.Second) + // create the dispatcher d, err := dispatcher.New( dispatcher.WithAlerter(sc.Alerter), @@ -259,6 +294,7 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er dispatcher.WithRepository(sc.EngineRepository), dispatcher.WithLogger(sc.Logger), dispatcher.WithEntitlementsRepository(sc.EntitlementRepository), + dispatcher.WithCache(cacheInstance), ) if err != nil { @@ -334,6 +370,8 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er if err != nil { return fmt.Errorf("failed to cleanup dispatcher: %w", err) } + + cacheInstance.Stop() return nil }) diff --git a/docker-compose.yml b/docker-compose.yml index 89a65ac9d..c5787a3b5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ services: - "5431:5432" volumes: - hatchet_postgres_data:/var/lib/postgresql/data + shm_size: 4g rabbitmq: image: "rabbitmq:3-management" hostname: "rabbitmq" diff --git a/examples/assignment-affinity/main.go b/examples/assignment-affinity/main.go new file mode 100644 index 000000000..e49477ffd --- /dev/null +++ b/examples/assignment-affinity/main.go @@ -0,0 +1,38 @@ +package main + +import ( + "fmt" + + "github.com/joho/godotenv" + + "github.com/hatchet-dev/hatchet/pkg/cmdutils" +) + +type userCreateEvent struct { + Username string `json:"username"` + UserID string `json:"user_id"` + Data map[string]string `json:"data"` +} + +type stepOneOutput struct { + Message string `json:"message"` +} + +func main() { + err := godotenv.Load() + if err != nil { + panic(err) + } + + ch := cmdutils.InterruptChan() + cleanup, err := run() + if err != nil { + panic(err) + } + + <-ch + + if err := cleanup(); err != nil { + panic(fmt.Errorf("cleanup() error = %v", err)) + } +} diff --git a/examples/assignment-affinity/run.go b/examples/assignment-affinity/run.go new file mode 100644 index 000000000..c41103538 --- /dev/null +++ b/examples/assignment-affinity/run.go @@ -0,0 +1,106 @@ +package main + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/hatchet-dev/hatchet/pkg/client" + "github.com/hatchet-dev/hatchet/pkg/client/types" + "github.com/hatchet-dev/hatchet/pkg/worker" +) + +func run() (func() error, error) { + c, err := client.New() + if err != nil { + return nil, fmt.Errorf("error creating client: %w", err) + } + + w, err := worker.NewWorker( + worker.WithClient( + c, + ), + worker.WithLabels(map[string]interface{}{ + "model": "fancy-ai-model-v2", + "memory": 512, + }), + ) + if err != nil { + return nil, fmt.Errorf("error creating worker: %w", err) + } + + err = w.RegisterWorkflow( + &worker.WorkflowJob{ + On: worker.Events("user:create:affinity"), + Name: "affinity", + Description: "affinity", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + + model := ctx.Worker().GetLabels()["model"] + + if model != "fancy-ai-model-v3" { + ctx.Worker().UpsertLabels(map[string]interface{}{ + "model": nil, + }) + // Do something to load the model + ctx.Worker().UpsertLabels(map[string]interface{}{ + "model": "fancy-ai-model-v3", + }) + } + + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }). + SetName("step-one"). + SetDesiredLabels(map[string]*types.DesiredWorkerLabel{ + "model": { + Value: "fancy-ai-model-v3", + Weight: 10, + }, + "memory": { + Value: 512, + Required: true, + Comparator: types.ComparatorPtr(types.WorkerLabelComparator_GREATER_THAN), + }, + }), + }, + }, + ) + if err != nil { + return nil, fmt.Errorf("error registering workflow: %w", err) + } + + go func() { + log.Printf("pushing event") + + testEvent := userCreateEvent{ + Username: "echo-test", + UserID: "1234", + Data: map[string]string{ + "test": "test", + }, + } + + // push an event + err := c.Event().Push( + context.Background(), + "user:create:affinity", + testEvent, + ) + if err != nil { + panic(fmt.Errorf("error pushing event: %w", err)) + } + + time.Sleep(10 * time.Second) + }() + + cleanup, err := w.Start() + if err != nil { + return nil, fmt.Errorf("error starting worker: %w", err) + } + + return cleanup, nil +} diff --git a/examples/assignment-sticky/main.go b/examples/assignment-sticky/main.go new file mode 100644 index 000000000..e49477ffd --- /dev/null +++ b/examples/assignment-sticky/main.go @@ -0,0 +1,38 @@ +package main + +import ( + "fmt" + + "github.com/joho/godotenv" + + "github.com/hatchet-dev/hatchet/pkg/cmdutils" +) + +type userCreateEvent struct { + Username string `json:"username"` + UserID string `json:"user_id"` + Data map[string]string `json:"data"` +} + +type stepOneOutput struct { + Message string `json:"message"` +} + +func main() { + err := godotenv.Load() + if err != nil { + panic(err) + } + + ch := cmdutils.InterruptChan() + cleanup, err := run() + if err != nil { + panic(err) + } + + <-ch + + if err := cleanup(); err != nil { + panic(fmt.Errorf("cleanup() error = %v", err)) + } +} diff --git a/examples/assignment-sticky/run.go b/examples/assignment-sticky/run.go new file mode 100644 index 000000000..cba861ae3 --- /dev/null +++ b/examples/assignment-sticky/run.go @@ -0,0 +1,99 @@ +package main + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/hatchet-dev/hatchet/pkg/client" + "github.com/hatchet-dev/hatchet/pkg/client/types" + "github.com/hatchet-dev/hatchet/pkg/worker" +) + +func run() (func() error, error) { + c, err := client.New() + if err != nil { + return nil, fmt.Errorf("error creating client: %w", err) + } + + w, err := worker.NewWorker( + worker.WithClient( + c, + ), + ) + if err != nil { + return nil, fmt.Errorf("error creating worker: %w", err) + } + + err = w.RegisterWorkflow( + &worker.WorkflowJob{ + On: worker.Events("user:create:sticky"), + Name: "sticky", + Description: "sticky", + StickyStrategy: types.StickyStrategyPtr(types.StickyStrategy_SOFT), + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + + sticky := true + + _, err = ctx.SpawnWorkflow("step-one", nil, &worker.SpawnWorkflowOpts{ + Sticky: &sticky, + }) + + if err != nil { + return nil, fmt.Errorf("error spawning workflow: %w", err) + } + + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }).SetName("step-one"), + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }).SetName("step-two"), + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }).SetName("step-three").AddParents("step-one", "step-two"), + }, + }, + ) + if err != nil { + return nil, fmt.Errorf("error registering workflow: %w", err) + } + + go func() { + log.Printf("pushing event") + + testEvent := userCreateEvent{ + Username: "echo-test", + UserID: "1234", + Data: map[string]string{ + "test": "test", + }, + } + + // push an event + err := c.Event().Push( + context.Background(), + "user:create:sticky", + testEvent, + ) + if err != nil { + panic(fmt.Errorf("error pushing event: %w", err)) + } + + time.Sleep(10 * time.Second) + }() + + cleanup, err := w.Start() + if err != nil { + return nil, fmt.Errorf("error starting worker: %w", err) + } + + return cleanup, nil +} diff --git a/examples/manual-trigger/worker/main.go b/examples/manual-trigger/worker/main.go index 974387ff5..c03667196 100644 --- a/examples/manual-trigger/worker/main.go +++ b/examples/manual-trigger/worker/main.go @@ -126,6 +126,8 @@ func run(ch <-chan interface{}, events chan<- string) error { return fmt.Errorf("error starting worker: %w", err) } + <-ch + if err := cleanup(); err != nil { return fmt.Errorf("error cleaning up: %w", err) } diff --git a/examples/stream-event-by-meta/main.go b/examples/stream-event-by-meta/main.go new file mode 100644 index 000000000..4e503618e --- /dev/null +++ b/examples/stream-event-by-meta/main.go @@ -0,0 +1,110 @@ +package main + +import ( + "fmt" + "time" + + "github.com/joho/godotenv" + "golang.org/x/exp/rand" + + "github.com/hatchet-dev/hatchet/pkg/client" + "github.com/hatchet-dev/hatchet/pkg/cmdutils" + "github.com/hatchet-dev/hatchet/pkg/worker" +) + +type streamEventInput struct { + Index int `json:"index"` +} + +type stepOneOutput struct { + Message string `json:"message"` +} + +func StepOne(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + input := &streamEventInput{} + + err = ctx.WorkflowInput(input) + + if err != nil { + return nil, err + } + + ctx.StreamEvent([]byte(fmt.Sprintf("This is a stream event %d", input.Index))) + + return &stepOneOutput{ + Message: fmt.Sprintf("This ran at %s", time.Now().String()), + }, nil +} + +func main() { + err := godotenv.Load() + + if err != nil { + panic(err) + } + + c, err := client.New() + + if err != nil { + panic(err) + } + + w, err := worker.NewWorker( + worker.WithClient( + c, + ), + ) + + if err != nil { + panic(err) + } + + err = w.On( + worker.NoTrigger(), + &worker.WorkflowJob{ + Name: "stream-event-workflow", + Description: "This sends a stream event.", + Steps: []*worker.WorkflowStep{ + worker.Fn(StepOne).SetName("step-one"), + }, + }, + ) + + if err != nil { + panic(err) + } + + interruptCtx, cancel := cmdutils.InterruptContextFromChan(cmdutils.InterruptChan()) + defer cancel() + + _, err = w.Start() + + if err != nil { + panic(fmt.Errorf("error cleaning up: %w", err)) + } + + // Generate a random number between 1 and 100 + streamKey := "streamKey" + streamValue := fmt.Sprintf("stream-event-%d", rand.Intn(100)+1) + + _, err = c.Admin().RunWorkflow("stream-event-workflow", &streamEventInput{ + Index: 0, + }, + client.WithRunMetadata(map[string]interface{}{ + streamKey: streamValue, + }), + ) + + if err != nil { + panic(err) + } + + err = c.Subscribe().StreamByAdditionalMetadata(interruptCtx, streamKey, streamValue, func(event client.StreamEvent) error { + fmt.Println(string(event.Message)) + return nil + }) + + if err != nil { + panic(err) + } +} diff --git a/frontend/app/package.json b/frontend/app/package.json index 26999278b..c666ae4d8 100644 --- a/frontend/app/package.json +++ b/frontend/app/package.json @@ -48,14 +48,19 @@ "@visx/axis": "^3.5.0", "@visx/brush": "^3.6.0", "@visx/curve": "^3.3.0", + "@visx/event": "^3.3.0", "@visx/gradient": "^3.3.0", + "@visx/grid": "^3.5.0", "@visx/group": "^3.3.0", "@visx/mock-data": "^3.3.0", "@visx/pattern": "^3.3.0", "@visx/responsive": "^3.3.0", "@visx/scale": "^3.5.0", "@visx/shape": "^3.5.0", + "@visx/text": "^3.3.0", + "@visx/tooltip": "^3.3.0", "@visx/vendor": "^3.5.0", + "ansi-to-html": "^0.7.2", "axios": "^1.6.2", "class-variance-authority": "^0.7.0", "clsx": "^2.0.0", @@ -63,12 +68,15 @@ "cron-parser": "^4.9.0", "cronstrue": "^2.47.0", "dagre": "^0.8.5", + "date-fns": "^3.6.0", + "dompurify": "^3.1.6", "jotai": "^2.6.0", "js-confetti": "^0.12.0", "monaco-themes": "^0.4.4", "prism-react-renderer": "^2.3.0", "qs": "^6.11.2", "react": "^18.2.0", + "react-day-picker": "^8.10.1", "react-dom": "^18.2.0", "react-hook-form": "^7.48.2", "react-icons": "^5.0.1", @@ -83,6 +91,7 @@ }, "devDependencies": { "@types/dagre": "^0.7.52", + "@types/dompurify": "^3.0.5", "@types/node": "^20.10.1", "@types/qs": "^6.9.10", "@types/react": "^18.2.37", @@ -104,6 +113,7 @@ "eslint-plugin-unused-imports": "^3.0.0", "postcss": "^8.4.31", "prettier": "^3.1.1", + "swagger-typescript-api": "^13.0.11", "tailwindcss": "^3.3.5", "typescript": "^5.2.2", "vite": "^5.0.0", diff --git a/frontend/app/pnpm-lock.yaml b/frontend/app/pnpm-lock.yaml index 713ce900d..6d0928565 100644 --- a/frontend/app/pnpm-lock.yaml +++ b/frontend/app/pnpm-lock.yaml @@ -13,76 +13,76 @@ importers: version: 2.1.3(react@18.2.0) '@hookform/resolvers': specifier: ^3.3.2 - version: 3.3.4(react-hook-form@7.51.2) + version: 3.3.4(react-hook-form@7.51.2(react@18.2.0)) '@lukemorales/query-key-factory': specifier: ^1.3.2 - version: 1.3.4(@tanstack/query-core@5.28.9)(@tanstack/react-query@5.28.9) + version: 1.3.4(@tanstack/query-core@5.28.9)(@tanstack/react-query@5.28.9(react@18.2.0)) '@monaco-editor/react': specifier: ^4.6.0 - version: 4.6.0(monaco-editor@0.47.0)(react-dom@18.2.0)(react@18.2.0) + version: 4.6.0(monaco-editor@0.47.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-accordion': specifier: ^1.1.2 - version: 1.1.2(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.1.2(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-avatar': specifier: ^1.0.4 - version: 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-checkbox': specifier: ^1.0.4 - version: 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-collapsible': specifier: ^1.0.3 - version: 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-dialog': specifier: ^1.0.5 - version: 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-dropdown-menu': specifier: ^2.0.6 - version: 2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-hover-card': specifier: ^1.0.7 - version: 1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-icons': specifier: ^1.3.0 version: 1.3.0(react@18.2.0) '@radix-ui/react-label': specifier: ^2.0.2 - version: 2.0.2(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 2.0.2(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-menubar': specifier: ^1.0.4 - version: 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-popover': specifier: ^1.0.7 - version: 1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-select': specifier: ^2.0.0 - version: 2.0.0(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 2.0.0(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-separator': specifier: ^1.0.3 - version: 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-slot': specifier: ^1.0.2 version: 1.0.2(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-switch': specifier: ^1.0.3 - version: 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-tabs': specifier: ^1.0.4 - version: 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-toast': specifier: ^1.1.5 - version: 1.1.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.1.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-tooltip': specifier: ^1.0.7 - version: 1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@rjsf/core': specifier: ^5.17.0 - version: 5.18.1(@rjsf/utils@5.18.1)(react@18.2.0) + version: 5.18.1(@rjsf/utils@5.18.1(react@18.2.0))(react@18.2.0) '@rjsf/utils': specifier: ^5.17.0 version: 5.18.1(react@18.2.0) '@rjsf/validator-ajv8': specifier: ^5.17.0 - version: 5.18.1(@rjsf/utils@5.18.1) + version: 5.18.1(@rjsf/utils@5.18.1(react@18.2.0)) '@sentry/react': specifier: ^7.105.0 version: 7.109.0(react@18.2.0) @@ -94,7 +94,7 @@ importers: version: 5.28.9(react@18.2.0) '@tanstack/react-table': specifier: ^8.10.7 - version: 8.15.3(react-dom@18.2.0)(react@18.2.0) + version: 8.15.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@visx/axis': specifier: ^3.5.0 version: 3.10.1(react@18.2.0) @@ -104,9 +104,15 @@ importers: '@visx/curve': specifier: ^3.3.0 version: 3.3.0 + '@visx/event': + specifier: ^3.3.0 + version: 3.3.0 '@visx/gradient': specifier: ^3.3.0 version: 3.3.0(react@18.2.0) + '@visx/grid': + specifier: ^3.5.0 + version: 3.5.0(react@18.2.0) '@visx/group': specifier: ^3.3.0 version: 3.3.0(react@18.2.0) @@ -125,9 +131,18 @@ importers: '@visx/shape': specifier: ^3.5.0 version: 3.5.0(react@18.2.0) + '@visx/text': + specifier: ^3.3.0 + version: 3.3.0(react@18.2.0) + '@visx/tooltip': + specifier: ^3.3.0 + version: 3.3.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@visx/vendor': specifier: ^3.5.0 version: 3.5.0 + ansi-to-html: + specifier: ^0.7.2 + version: 0.7.2 axios: specifier: ^1.6.2 version: 1.6.8 @@ -139,7 +154,7 @@ importers: version: 2.1.0 cmdk: specifier: ^0.2.0 - version: 0.2.1(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 0.2.1(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) cron-parser: specifier: ^4.9.0 version: 4.9.0 @@ -149,6 +164,12 @@ importers: dagre: specifier: ^0.8.5 version: 0.8.5 + date-fns: + specifier: ^3.6.0 + version: 3.6.0 + dompurify: + specifier: ^3.1.6 + version: 3.1.6 jotai: specifier: ^2.6.0 version: 2.7.2(@types/react@18.2.73)(react@18.2.0) @@ -167,6 +188,9 @@ importers: react: specifier: ^18.2.0 version: 18.2.0 + react-day-picker: + specifier: ^8.10.1 + version: 8.10.1(date-fns@3.6.0)(react@18.2.0) react-dom: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) @@ -178,13 +202,13 @@ importers: version: 5.0.1(react@18.2.0) react-router-dom: specifier: ^6.20.0 - version: 6.22.3(react-dom@18.2.0)(react@18.2.0) + version: 6.22.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react-syntax-highlighter: specifier: ^15.5.0 version: 15.5.0(react@18.2.0) reactflow: specifier: ^11.10.3 - version: 11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + version: 11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) tailwind-merge: specifier: ^2.0.0 version: 2.2.2 @@ -204,6 +228,9 @@ importers: '@types/dagre': specifier: ^0.7.52 version: 0.7.52 + '@types/dompurify': + specifier: ^3.0.5 + version: 3.0.5 '@types/node': specifier: ^20.10.1 version: 20.12.2 @@ -221,13 +248,13 @@ importers: version: 15.5.11 '@typescript-eslint/eslint-plugin': specifier: ^6.10.0 - version: 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.57.0)(typescript@5.2.2) + version: 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0)(typescript@5.2.2) '@typescript-eslint/parser': specifier: ^6.10.0 version: 6.21.0(eslint@8.57.0)(typescript@5.2.2) '@vitejs/plugin-react': specifier: ^4.2.0 - version: 4.2.1(vite@5.2.7) + version: 4.2.1(vite@5.2.7(@types/node@20.12.2)) autoprefixer: specifier: ^10.4.16 version: 10.4.19(postcss@8.4.38) @@ -236,19 +263,19 @@ importers: version: 8.57.0 eslint-config-airbnb-typescript: specifier: ^17.1.0 - version: 17.1.0(@typescript-eslint/eslint-plugin@6.21.0)(@typescript-eslint/parser@6.21.0)(eslint-plugin-import@2.29.1)(eslint@8.57.0) + version: 17.1.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0)(typescript@5.2.2))(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0))(eslint@8.57.0) eslint-config-prettier: specifier: ^9.1.0 version: 9.1.0(eslint@8.57.0) eslint-import-resolver-typescript: specifier: ^3.6.1 - version: 3.6.1(@typescript-eslint/parser@6.21.0)(eslint-plugin-import@2.29.1)(eslint@8.57.0) + version: 3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0) eslint-plugin-import: specifier: ^2.29.1 - version: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + version: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) eslint-plugin-prettier: specifier: ^5.0.1 - version: 5.1.3(eslint-config-prettier@9.1.0)(eslint@8.57.0)(prettier@3.2.5) + version: 5.1.3(@types/eslint@8.56.7)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.2.5) eslint-plugin-react: specifier: ^7.33.2 version: 7.34.1(eslint@8.57.0) @@ -260,13 +287,16 @@ importers: version: 0.4.6(eslint@8.57.0) eslint-plugin-unused-imports: specifier: ^3.0.0 - version: 3.1.0(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.57.0) + version: 3.1.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0) postcss: specifier: ^8.4.31 version: 8.4.38 prettier: specifier: ^3.1.1 version: 3.2.5 + swagger-typescript-api: + specifier: ^13.0.11 + version: 13.0.11 tailwindcss: specifier: ^3.3.5 version: 3.4.3 @@ -278,7 +308,7 @@ importers: version: 5.2.7(@types/node@20.12.2) vite-plugin-eslint: specifier: ^1.8.1 - version: 1.8.1(eslint@8.57.0)(vite@5.2.7) + version: 1.8.1(eslint@8.57.0)(vite@5.2.7(@types/node@20.12.2)) packages: @@ -557,6 +587,9 @@ packages: resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@exodus/schemasafe@1.3.0': + resolution: {integrity: sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==} + '@floating-ui/core@1.6.0': resolution: {integrity: sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==} @@ -1454,6 +1487,10 @@ packages: resolution: {integrity: sha512-/7rFTpasql9fJ1KbruF0yDESKV/ojvOP9pL/qqwUffvA9iy9Bvw3kYzzyzd1YsiCiVBgftoCsFTKPcvL3A4rwQ==} engines: {node: '>= 14'} + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + '@tanstack/query-core@5.28.9': resolution: {integrity: sha512-hNlfCiqZevr3GRVPXS3MhaGW5hjcxvCsIQ4q6ff7EPlvFwYZaS+0d9EIIgofnegDaU2BbCDlyURoYfRl5rmzow==} @@ -1614,6 +1651,9 @@ packages: '@types/dagre@0.7.52': resolution: {integrity: sha512-XKJdy+OClLk3hketHi9Qg6gTfe1F3y+UFnHxKA2rn9Dw+oXa4Gb378Ztz9HlMgZKSxpPmn4BNVh9wgkpvrK1uw==} + '@types/dompurify@3.0.5': + resolution: {integrity: sha512-1Wg0g3BtQF7sSb27fJQAKck1HECM6zV1EB66j8JH9i3LCjYabJa0FSdiSgsD5K/RbrsR0SiraKacLB+T8ZVYAg==} + '@types/eslint@8.56.7': resolution: {integrity: sha512-SjDvI/x3zsZnOkYZ3lCt9lOZWZLB2jIlNKz+LBgCtDurK0JZcwucxYHn1w2BJkD34dgX9Tjnak0txtq4WTggEA==} @@ -1659,6 +1699,12 @@ packages: '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} + '@types/swagger-schema-official@2.0.25': + resolution: {integrity: sha512-T92Xav+Gf/Ik1uPW581nA+JftmjWPgskw/WBf4TJzxRG/SJ+DfNnNE+WuZ4mrXuzflQMqMkm1LSYjzYW7MB1Cg==} + + '@types/trusted-types@2.0.7': + resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} + '@types/unist@2.0.10': resolution: {integrity: sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==} @@ -1728,6 +1774,12 @@ packages: peerDependencies: react: ^16.3.0-0 || ^17.0.0-0 || ^18.0.0-0 + '@visx/bounds@3.3.0': + resolution: {integrity: sha512-gESmN+4N2NkeUzqQEDZaS63umkGfMp9XjQcKBqtOR64mjjQtamh3lNVRWvKjJ2Zb421RbYHWq22Wv9nay6ZUOg==} + peerDependencies: + react: ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 + react-dom: ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 + '@visx/brush@3.6.1': resolution: {integrity: sha512-HGSxYTqeZI/hjD+dwCVfY5lnbVv0bHC8PuWSswL15+cbTGT8G2/qoe6RSmzn6bgVcqdURpZztqDVWWa48PvHIw==} peerDependencies: @@ -1749,6 +1801,11 @@ packages: peerDependencies: react: ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 + '@visx/grid@3.5.0': + resolution: {integrity: sha512-i1pdobTE223ItMiER3q4ojIaZWja3vg46TkS6FotnBZ4c0VRDHSrALQPdi0na+YEgppASWCQ2WrI/vD6mIkhSg==} + peerDependencies: + react: ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 + '@visx/group@3.3.0': resolution: {integrity: sha512-yKepDKwJqlzvnvPS0yDuW13XNrYJE4xzT6xM7J++441nu6IybWWwextyap8ey+kU651cYDb+q1Oi6aHvQwyEyw==} peerDependencies: @@ -1783,6 +1840,12 @@ packages: peerDependencies: react: ^16.3.0-0 || ^17.0.0-0 || ^18.0.0-0 + '@visx/tooltip@3.3.0': + resolution: {integrity: sha512-0ovbxnvAphEU/RVJprWHdOJT7p3YfBDpwXclXRuhIY2EkH59g8sDHatDcYwiNPeqk61jBh1KACRZxqToMuutlg==} + peerDependencies: + react: ^16.8.0-0 || ^17.0.0-0 || ^18.0.0-0 + react-dom: ^16.8.0-0 || ^17.0.0-0 || ^18.0.0-0 + '@visx/vendor@3.5.0': resolution: {integrity: sha512-yt3SEZRVmt36+APsCISSO9eSOtzQkBjt+QRxNRzcTWuzwMAaF3PHCCSe31++kkpgY9yFoF+Gfes1TBe5NlETiQ==} @@ -1840,6 +1903,11 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} + ansi-to-html@0.7.2: + resolution: {integrity: sha512-v6MqmEpNlxF+POuyhKkidusCHWWkaLcGRURzivcU3I9tv7k4JVhFcnukrM5Rlk2rUywdZuzYAZ+kbZqWCnfN3g==} + engines: {node: '>=8.0.0'} + hasBin: true + any-promise@1.3.0: resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} @@ -1941,6 +2009,9 @@ packages: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} + call-me-maybe@1.0.2: + resolution: {integrity: sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==} + callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} @@ -1960,6 +2031,10 @@ packages: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + character-entities-legacy@1.1.4: resolution: {integrity: sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==} @@ -1982,6 +2057,10 @@ packages: classnames@2.5.1: resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==} + cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + clsx@2.0.0: resolution: {integrity: sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==} engines: {node: '>=6'} @@ -2035,6 +2114,15 @@ packages: convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + cosmiconfig@9.0.0: + resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==} + engines: {node: '>=14'} + peerDependencies: + typescript: '>=4.9.5' + peerDependenciesMeta: + typescript: + optional: true + cron-parser@4.9.0: resolution: {integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==} engines: {node: '>=12.0.0'} @@ -2145,6 +2233,12 @@ packages: resolution: {integrity: sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==} engines: {node: '>= 0.4'} + date-fns@3.6.0: + resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==} + + debounce@1.2.1: + resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==} + debug@3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} peerDependencies: @@ -2201,6 +2295,9 @@ packages: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} + dompurify@3.1.6: + resolution: {integrity: sha512-cTOAhc36AalkjtBpfG6O8JimdTMWNXjiePT2xQH/ppBGi/4uIpmj8eKyIkMJErXWARyINV/sB38yf8JCLF5pbQ==} + dotenv@16.4.5: resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} engines: {node: '>=12'} @@ -2217,10 +2314,23 @@ packages: emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + enhanced-resolve@5.16.0: resolution: {integrity: sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA==} engines: {node: '>=10.13.0'} + entities@2.2.0: + resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} + + env-paths@2.2.1: + resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} + engines: {node: '>=6'} + + error-ex@1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + es-abstract@1.23.3: resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==} engines: {node: '>= 0.4'} @@ -2252,6 +2362,9 @@ packages: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} engines: {node: '>= 0.4'} + es6-promise@3.3.1: + resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==} + esbuild@0.20.2: resolution: {integrity: sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==} engines: {node: '>=12'} @@ -2412,6 +2525,10 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + eta@2.2.0: + resolution: {integrity: sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g==} + engines: {node: '>=6.0.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -2431,6 +2548,9 @@ packages: fast-plist@0.1.3: resolution: {integrity: sha512-d9cEfo/WcOezgPLAC/8t8wGb6YOD6JTCPMw2QcG2nAdFmyY+9rTUizCTaGjIZAloWENTEUMAPpkUAIJJJ0i96A==} + fast-safe-stringify@2.1.1: + resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} @@ -2505,6 +2625,10 @@ packages: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + get-intrinsic@1.2.4: resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} engines: {node: '>= 0.4'} @@ -2610,6 +2734,9 @@ packages: hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + http2-client@1.3.5: + resolution: {integrity: sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA==} + https-proxy-agent@5.0.1: resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} engines: {node: '>= 6'} @@ -2653,6 +2780,9 @@ packages: resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==} engines: {node: '>= 0.4'} + is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + is-async-function@2.0.0: resolution: {integrity: sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==} engines: {node: '>= 0.4'} @@ -2810,6 +2940,9 @@ packages: json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + json-parse-even-better-errors@2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + json-schema-compare@0.2.2: resolution: {integrity: sha512-c4WYmDKyJXhs7WWvAWm3uIYnfyWFoIp+JEoX34rctVvEkMYCPGhXtvmFFXiffBbxfZsvQ0RNnV5H7GvDF5HCqQ==} @@ -2974,6 +3107,14 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + node-emoji@2.1.3: + resolution: {integrity: sha512-E2WEOVsgs7O16zsURJ/eH8BqhF029wGpEOnv7Urwdo2wmQanOACwJQh0devF9D9RhoZru0+9JXIS0dBXIAz+lA==} + engines: {node: '>=18'} + + node-fetch-h2@2.3.0: + resolution: {integrity: sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg==} + engines: {node: 4.x || >=6.0.0} + node-fetch@2.7.0: resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} @@ -2983,6 +3124,9 @@ packages: encoding: optional: true + node-readfiles@0.2.0: + resolution: {integrity: sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA==} + node-releases@2.0.14: resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} @@ -2994,6 +3138,22 @@ packages: resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} engines: {node: '>=0.10.0'} + oas-kit-common@1.0.8: + resolution: {integrity: sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ==} + + oas-linter@3.2.2: + resolution: {integrity: sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ==} + + oas-resolver@2.5.6: + resolution: {integrity: sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ==} + hasBin: true + + oas-schema-walker@1.1.5: + resolution: {integrity: sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ==} + + oas-validator@5.0.8: + resolution: {integrity: sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw==} + object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} @@ -3055,6 +3215,10 @@ packages: parse-entities@2.0.0: resolution: {integrity: sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==} + parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -3151,6 +3315,11 @@ packages: engines: {node: '>=14'} hasBin: true + prettier@3.3.2: + resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==} + engines: {node: '>=14'} + hasBin: true + prism-react-renderer@2.3.1: resolution: {integrity: sha512-Rdf+HzBLR7KYjzpJ1rSoxT9ioO85nZngQEoFIhL07XhtJHlCU3SOz0GJ6+qvMyQe0Se+BV3qpe6Yd/NmQF5Juw==} peerDependencies: @@ -3188,6 +3357,12 @@ packages: queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + react-day-picker@8.10.1: + resolution: {integrity: sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==} + peerDependencies: + date-fns: ^2.28.0 || ^3.0.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom@18.2.0: resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} peerDependencies: @@ -3272,6 +3447,12 @@ packages: peerDependencies: react: '>= 0.14.0' + react-use-measure@2.1.1: + resolution: {integrity: sha512-nocZhN26cproIiIduswYpV5y5lQpSQS1y/4KuvUCjSKmw7ZWIS/+g3aFnX3WdBkyuGUtTLif3UTqnLLhbDoQig==} + peerDependencies: + react: '>=16.13' + react-dom: '>=16.13' + react@18.2.0: resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} engines: {node: '>=0.10.0'} @@ -3302,6 +3483,9 @@ packages: refractor@3.6.0: resolution: {integrity: sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==} + reftools@1.1.9: + resolution: {integrity: sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w==} + regenerator-runtime@0.14.1: resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} @@ -3309,6 +3493,10 @@ packages: resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} engines: {node: '>= 0.4'} + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + require-from-string@2.0.2: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} @@ -3388,6 +3576,24 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + should-equal@2.0.0: + resolution: {integrity: sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA==} + + should-format@3.0.3: + resolution: {integrity: sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q==} + + should-type-adaptors@1.1.0: + resolution: {integrity: sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA==} + + should-type@1.4.0: + resolution: {integrity: sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ==} + + should-util@1.0.1: + resolution: {integrity: sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g==} + + should@13.2.3: + resolution: {integrity: sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ==} + side-channel@1.0.6: resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} engines: {node: '>= 0.4'} @@ -3396,6 +3602,10 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -3466,6 +3676,18 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + swagger-schema-official@2.0.0-bab6bed: + resolution: {integrity: sha512-rCC0NWGKr/IJhtRuPq/t37qvZHI/mH4I4sxflVM+qgVe5Z2uOCivzWaVbuioJaB61kvm5UvB7b49E+oBY0M8jA==} + + swagger-typescript-api@13.0.11: + resolution: {integrity: sha512-y4CdNSDpNJhpFZc5tB65DHYSxIr2ecIWFk6s7WAGrDCNBP5EeVlEUxPhus2FFoJOfxf+142wPzzyLWlwO3d7zA==} + engines: {node: '>=18.0.0'} + hasBin: true + + swagger2openapi@7.0.8: + resolution: {integrity: sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g==} + hasBin: true + synckit@0.8.8: resolution: {integrity: sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==} engines: {node: ^14.18.0 || >=16.0.0} @@ -3563,12 +3785,21 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@5.5.2: + resolution: {integrity: sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==} + engines: {node: '>=14.17'} + hasBin: true + unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + unplugin@1.0.1: resolution: {integrity: sha512-aqrHaVBWW1JVKBHmGo33T5TxeL0qWzfvjWokObHA9bYmN7eNDkwOxmLjhioHl9878qDFMAaT51XNroRyuz7WxA==} @@ -3706,17 +3937,33 @@ packages: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} engines: {node: '>=0.4'} + y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + yaml@1.10.2: + resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} + engines: {node: '>= 6'} + yaml@2.4.1: resolution: {integrity: sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==} engines: {node: '>= 14'} hasBin: true + yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + + yargs@17.7.2: + resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + engines: {node: '>=12'} + yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} @@ -3984,6 +4231,8 @@ snapshots: '@eslint/js@8.57.0': {} + '@exodus/schemasafe@1.3.0': {} + '@floating-ui/core@1.6.0': dependencies: '@floating-ui/utils': 0.2.1 @@ -3993,7 +4242,7 @@ snapshots: '@floating-ui/core': 1.6.0 '@floating-ui/utils': 0.2.1 - '@floating-ui/react-dom@2.0.8(react-dom@18.2.0)(react@18.2.0)': + '@floating-ui/react-dom@2.0.8(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@floating-ui/dom': 1.6.3 react: 18.2.0 @@ -4005,7 +4254,7 @@ snapshots: dependencies: react: 18.2.0 - '@hookform/resolvers@3.3.4(react-hook-form@7.51.2)': + '@hookform/resolvers@3.3.4(react-hook-form@7.51.2(react@18.2.0))': dependencies: react-hook-form: 7.51.2(react@18.2.0) @@ -4047,7 +4296,7 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.4.15 - '@lukemorales/query-key-factory@1.3.4(@tanstack/query-core@5.28.9)(@tanstack/react-query@5.28.9)': + '@lukemorales/query-key-factory@1.3.4(@tanstack/query-core@5.28.9)(@tanstack/react-query@5.28.9(react@18.2.0))': dependencies: '@tanstack/query-core': 5.28.9 '@tanstack/react-query': 5.28.9(react@18.2.0) @@ -4057,7 +4306,7 @@ snapshots: monaco-editor: 0.47.0 state-local: 1.0.7 - '@monaco-editor/react@4.6.0(monaco-editor@0.47.0)(react-dom@18.2.0)(react@18.2.0)': + '@monaco-editor/react@4.6.0(monaco-editor@0.47.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@monaco-editor/loader': 1.4.0(monaco-editor@0.47.0) monaco-editor: 0.47.0 @@ -4093,87 +4342,93 @@ snapshots: dependencies: '@babel/runtime': 7.24.1 - '@radix-ui/react-accordion@1.1.2(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-accordion@1.1.2(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collapsible': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-collapsible': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-direction': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-arrow@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-arrow@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-avatar@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-avatar@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-checkbox@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-checkbox@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-previous': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-size': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-collapsible@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-collapsible@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-collection@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-collection@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-slot': 1.0.2(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 '@radix-ui/react-compose-refs@1.0.0(react@18.2.0)': dependencies: @@ -4183,8 +4438,9 @@ snapshots: '@radix-ui/react-compose-refs@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 '@radix-ui/react-context@1.0.0(react@18.2.0)': dependencies: @@ -4194,22 +4450,23 @@ snapshots: '@radix-ui/react-context@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 - '@radix-ui/react-dialog@1.0.0(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-dialog@1.0.0(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.0 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) '@radix-ui/react-context': 1.0.0(react@18.2.0) - '@radix-ui/react-dismissable-layer': 1.0.0(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dismissable-layer': 1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-focus-guards': 1.0.0(react@18.2.0) - '@radix-ui/react-focus-scope': 1.0.0(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-focus-scope': 1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-id': 1.0.0(react@18.2.0) - '@radix-ui/react-portal': 1.0.0(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-presence': 1.0.0(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.0(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-portal': 1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-presence': 1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-slot': 1.0.0(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.0(react@18.2.0) aria-hidden: 1.2.4 @@ -4219,72 +4476,76 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@radix-ui/react-dialog@1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-dialog@1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-focus-guards': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-slot': 1.0.2(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 aria-hidden: 1.2.4 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-remove-scroll: 2.5.5(@types/react@18.2.73)(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 '@radix-ui/react-direction@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 - '@radix-ui/react-dismissable-layer@1.0.0(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-dismissable-layer@1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.0 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) - '@radix-ui/react-primitive': 1.0.0(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.0(react@18.2.0) '@radix-ui/react-use-escape-keydown': 1.0.0(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@radix-ui/react-dismissable-layer@1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-dismissable-layer@1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-escape-keydown': 1.0.3(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-dropdown-menu@2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-dropdown-menu@2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-menu': 2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-menu': 2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 '@radix-ui/react-focus-guards@1.0.0(react@18.2.0)': dependencies: @@ -4294,45 +4555,48 @@ snapshots: '@radix-ui/react-focus-guards@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 - '@radix-ui/react-focus-scope@1.0.0(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-focus-scope@1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) - '@radix-ui/react-primitive': 1.0.0(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.0(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@radix-ui/react-focus-scope@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-focus-scope@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-hover-card@1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-hover-card@1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 '@radix-ui/react-icons@1.3.0(react@18.2.0)': dependencies: @@ -4348,120 +4612,127 @@ snapshots: dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 - '@radix-ui/react-label@2.0.2(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-label@2.0.2(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-menu@2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-menu@2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-direction': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-focus-guards': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-slot': 1.0.2(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 aria-hidden: 1.2.4 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-remove-scroll: 2.5.5(@types/react@18.2.73)(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-menubar@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-menubar@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-direction': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-menu': 2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-menu': 2.0.6(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-popover@1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-popover@1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-focus-guards': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-slot': 1.0.2(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 aria-hidden: 1.2.4 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-remove-scroll: 2.5.5(@types/react@18.2.73)(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-popper@1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-popper@1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@floating-ui/react-dom': 2.0.8(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-arrow': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@floating-ui/react-dom': 2.0.8(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-arrow': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-rect': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-size': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/rect': 1.0.1 - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-portal@1.0.0(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-portal@1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@radix-ui/react-primitive': 1.0.0(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@radix-ui/react-portal@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-portal@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-presence@1.0.0(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-presence@1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) @@ -4469,86 +4740,91 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@radix-ui/react-presence@1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-presence@1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-primitive@1.0.0(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-primitive@1.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-slot': 1.0.0(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@radix-ui/react-primitive@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-primitive@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-slot': 1.0.2(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-roving-focus@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-roving-focus@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-direction': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-select@2.0.0(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-select@2.0.0(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/number': 1.0.1 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-direction': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-focus-guards': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-focus-scope': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-slot': 1.0.2(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-previous': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 + '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) aria-hidden: 1.2.4 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-remove-scroll: 2.5.5(@types/react@18.2.73)(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-separator@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-separator@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 '@radix-ui/react-slot@1.0.0(react@18.2.0)': dependencies: @@ -4560,79 +4836,84 @@ snapshots: dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 - '@radix-ui/react-switch@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-switch@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-previous': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-size': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-tabs@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-tabs@1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-direction': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-roving-focus': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-toast@1.1.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-toast@1.1.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 - '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-collection': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 + '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 - '@radix-ui/react-tooltip@1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-tooltip@1.0.7(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/primitive': 1.0.1 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dismissable-layer': 1.0.5(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-id': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-popper': 1.1.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-portal': 1.0.4(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-presence': 1.0.1(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-slot': 1.0.2(@types/react@18.2.73)(react@18.2.0) '@radix-ui/react-use-controllable-state': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 + '@radix-ui/react-visually-hidden': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 '@radix-ui/react-use-callback-ref@1.0.0(react@18.2.0)': dependencies: @@ -4642,8 +4923,9 @@ snapshots: '@radix-ui/react-use-callback-ref@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 '@radix-ui/react-use-controllable-state@1.0.0(react@18.2.0)': dependencies: @@ -4655,8 +4937,9 @@ snapshots: dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 '@radix-ui/react-use-escape-keydown@1.0.0(react@18.2.0)': dependencies: @@ -4668,8 +4951,9 @@ snapshots: dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 '@radix-ui/react-use-layout-effect@1.0.0(react@18.2.0)': dependencies: @@ -4679,45 +4963,50 @@ snapshots: '@radix-ui/react-use-layout-effect@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 '@radix-ui/react-use-previous@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 '@radix-ui/react-use-rect@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/rect': 1.0.1 - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 '@radix-ui/react-use-size@1.0.1(@types/react@18.2.73)(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.73)(react@18.2.0) - '@types/react': 18.2.73 react: 18.2.0 + optionalDependencies: + '@types/react': 18.2.73 - '@radix-ui/react-visually-hidden@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@radix-ui/react-visually-hidden@1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.24.1 - '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.73 - '@types/react-dom': 18.2.23 + '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.23)(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 '@radix-ui/rect@1.0.1': dependencies: '@babel/runtime': 7.24.1 - '@reactflow/background@11.3.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@reactflow/background@11.3.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) classcat: 5.0.4 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -4726,9 +5015,9 @@ snapshots: - '@types/react' - immer - '@reactflow/controls@11.2.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@reactflow/controls@11.2.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) classcat: 5.0.4 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -4737,7 +5026,7 @@ snapshots: - '@types/react' - immer - '@reactflow/core@11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@reactflow/core@11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@types/d3': 7.4.3 '@types/d3-drag': 3.0.7 @@ -4754,9 +5043,9 @@ snapshots: - '@types/react' - immer - '@reactflow/minimap@11.7.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@reactflow/minimap@11.7.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@types/d3-selection': 3.0.10 '@types/d3-zoom': 3.0.8 classcat: 5.0.4 @@ -4769,9 +5058,9 @@ snapshots: - '@types/react' - immer - '@reactflow/node-resizer@2.2.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@reactflow/node-resizer@2.2.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) classcat: 5.0.4 d3-drag: 3.0.0 d3-selection: 3.0.0 @@ -4782,9 +5071,9 @@ snapshots: - '@types/react' - immer - '@reactflow/node-toolbar@1.3.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0)': + '@reactflow/node-toolbar@1.3.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) classcat: 5.0.4 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -4795,7 +5084,7 @@ snapshots: '@remix-run/router@1.15.3': {} - '@rjsf/core@5.18.1(@rjsf/utils@5.18.1)(react@18.2.0)': + '@rjsf/core@5.18.1(@rjsf/utils@5.18.1(react@18.2.0))(react@18.2.0)': dependencies: '@rjsf/utils': 5.18.1(react@18.2.0) lodash: 4.17.21 @@ -4814,7 +5103,7 @@ snapshots: react: 18.2.0 react-is: 18.2.0 - '@rjsf/validator-ajv8@5.18.1(@rjsf/utils@5.18.1)': + '@rjsf/validator-ajv8@5.18.1(@rjsf/utils@5.18.1(react@18.2.0))': dependencies: '@rjsf/utils': 5.18.1(react@18.2.0) ajv: 8.12.0 @@ -4992,6 +5281,8 @@ snapshots: - encoding - supports-color + '@sindresorhus/is@4.6.0': {} + '@tanstack/query-core@5.28.9': {} '@tanstack/react-query@5.28.9(react@18.2.0)': @@ -4999,7 +5290,7 @@ snapshots: '@tanstack/query-core': 5.28.9 react: 18.2.0 - '@tanstack/react-table@8.15.3(react-dom@18.2.0)(react@18.2.0)': + '@tanstack/react-table@8.15.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@tanstack/table-core': 8.15.3 react: 18.2.0 @@ -5175,6 +5466,10 @@ snapshots: '@types/dagre@0.7.52': {} + '@types/dompurify@3.0.5': + dependencies: + '@types/trusted-types': 2.0.7 + '@types/eslint@8.56.7': dependencies: '@types/estree': 1.0.5 @@ -5219,9 +5514,13 @@ snapshots: '@types/semver@7.5.8': {} + '@types/swagger-schema-official@2.0.25': {} + + '@types/trusted-types@2.0.7': {} + '@types/unist@2.0.10': {} - '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.57.0)(typescript@5.2.2)': + '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0)(typescript@5.2.2)': dependencies: '@eslint-community/regexpp': 4.10.0 '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.2.2) @@ -5236,6 +5535,7 @@ snapshots: natural-compare: 1.4.0 semver: 7.6.0 ts-api-utils: 1.3.0(typescript@5.2.2) + optionalDependencies: typescript: 5.2.2 transitivePeerDependencies: - supports-color @@ -5248,6 +5548,7 @@ snapshots: '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4 eslint: 8.57.0 + optionalDependencies: typescript: 5.2.2 transitivePeerDependencies: - supports-color @@ -5264,6 +5565,7 @@ snapshots: debug: 4.3.4 eslint: 8.57.0 ts-api-utils: 1.3.0(typescript@5.2.2) + optionalDependencies: typescript: 5.2.2 transitivePeerDependencies: - supports-color @@ -5280,6 +5582,7 @@ snapshots: minimatch: 9.0.3 semver: 7.6.0 ts-api-utils: 1.3.0(typescript@5.2.2) + optionalDependencies: typescript: 5.2.2 transitivePeerDependencies: - supports-color @@ -5317,6 +5620,14 @@ snapshots: prop-types: 15.8.1 react: 18.2.0 + '@visx/bounds@3.3.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + dependencies: + '@types/react': 18.2.73 + '@types/react-dom': 18.2.23 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + '@visx/brush@3.6.1(react@18.2.0)': dependencies: '@visx/drag': 3.3.0(react@18.2.0) @@ -5352,6 +5663,18 @@ snapshots: prop-types: 15.8.1 react: 18.2.0 + '@visx/grid@3.5.0(react@18.2.0)': + dependencies: + '@types/react': 18.2.73 + '@visx/curve': 3.3.0 + '@visx/group': 3.3.0(react@18.2.0) + '@visx/point': 3.3.0 + '@visx/scale': 3.5.0 + '@visx/shape': 3.5.0(react@18.2.0) + classnames: 2.5.1 + prop-types: 15.8.1 + react: 18.2.0 + '@visx/group@3.3.0(react@18.2.0)': dependencies: '@types/react': 18.2.73 @@ -5411,6 +5734,16 @@ snapshots: react: 18.2.0 reduce-css-calc: 1.3.0 + '@visx/tooltip@3.3.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + dependencies: + '@types/react': 18.2.73 + '@visx/bounds': 3.3.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + classnames: 2.5.1 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-use-measure: 2.1.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@visx/vendor@3.5.0': dependencies: '@types/d3-array': 3.0.3 @@ -5433,7 +5766,7 @@ snapshots: d3-time-format: 4.1.0 internmap: 2.0.3 - '@vitejs/plugin-react@4.2.1(vite@5.2.7)': + '@vitejs/plugin-react@4.2.1(vite@5.2.7(@types/node@20.12.2))': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-jsx-self': 7.24.1(@babel/core@7.24.3) @@ -5457,7 +5790,7 @@ snapshots: - supports-color ajv-formats@2.1.1(ajv@8.12.0): - dependencies: + optionalDependencies: ajv: 8.12.0 ajv@6.12.6: @@ -5488,6 +5821,10 @@ snapshots: ansi-styles@6.2.1: {} + ansi-to-html@0.7.2: + dependencies: + entities: 2.2.0 + any-promise@1.3.0: {} anymatch@3.1.3: @@ -5635,6 +5972,8 @@ snapshots: get-intrinsic: 1.2.4 set-function-length: 1.2.2 + call-me-maybe@1.0.2: {} + callsites@3.1.0: {} camelcase-css@2.0.1: {} @@ -5652,6 +5991,8 @@ snapshots: ansi-styles: 4.3.0 supports-color: 7.2.0 + char-regex@1.0.2: {} + character-entities-legacy@1.1.4: {} character-entities@1.2.4: {} @@ -5678,13 +6019,19 @@ snapshots: classnames@2.5.1: {} + cliui@8.0.1: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + clsx@2.0.0: {} clsx@2.1.0: {} - cmdk@0.2.1(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0): + cmdk@0.2.1(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: - '@radix-ui/react-dialog': 1.0.0(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@radix-ui/react-dialog': 1.0.0(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) transitivePeerDependencies: @@ -5729,6 +6076,15 @@ snapshots: convert-source-map@2.0.0: {} + cosmiconfig@9.0.0(typescript@5.5.2): + dependencies: + env-paths: 2.2.1 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + parse-json: 5.2.0 + optionalDependencies: + typescript: 5.5.2 + cron-parser@4.9.0: dependencies: luxon: 3.4.4 @@ -5842,6 +6198,10 @@ snapshots: es-errors: 1.3.0 is-data-view: 1.0.1 + date-fns@3.6.0: {} + + debounce@1.2.1: {} + debug@3.2.7: dependencies: ms: 2.1.3 @@ -5888,6 +6248,8 @@ snapshots: dependencies: esutils: 2.0.3 + dompurify@3.1.6: {} + dotenv@16.4.5: {} eastasianwidth@0.2.0: {} @@ -5898,11 +6260,21 @@ snapshots: emoji-regex@9.2.2: {} + emojilib@2.4.0: {} + enhanced-resolve@5.16.0: dependencies: graceful-fs: 4.2.11 tapable: 2.2.1 + entities@2.2.0: {} + + env-paths@2.2.1: {} + + error-ex@1.3.2: + dependencies: + is-arrayish: 0.2.1 + es-abstract@1.23.3: dependencies: array-buffer-byte-length: 1.0.1 @@ -5995,6 +6367,8 @@ snapshots: is-date-object: 1.0.5 is-symbol: 1.0.4 + es6-promise@3.3.1: {} + esbuild@0.20.2: optionalDependencies: '@esbuild/aix-ppc64': 0.20.2 @@ -6027,22 +6401,22 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-config-airbnb-base@15.0.0(eslint-plugin-import@2.29.1)(eslint@8.57.0): + eslint-config-airbnb-base@15.0.0(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0))(eslint@8.57.0): dependencies: confusing-browser-globals: 1.0.11 eslint: 8.57.0 - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) object.assign: 4.1.5 object.entries: 1.1.8 semver: 6.3.1 - eslint-config-airbnb-typescript@17.1.0(@typescript-eslint/eslint-plugin@6.21.0)(@typescript-eslint/parser@6.21.0)(eslint-plugin-import@2.29.1)(eslint@8.57.0): + eslint-config-airbnb-typescript@17.1.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0)(typescript@5.2.2))(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0))(eslint@8.57.0): dependencies: - '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.57.0)(typescript@5.2.2) + '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0)(typescript@5.2.2) '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.2.2) eslint: 8.57.0 - eslint-config-airbnb-base: 15.0.0(eslint-plugin-import@2.29.1)(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-config-airbnb-base: 15.0.0(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) eslint-config-prettier@9.1.0(eslint@8.57.0): dependencies: @@ -6056,13 +6430,13 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0)(eslint-plugin-import@2.29.1)(eslint@8.57.0): + eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0): dependencies: debug: 4.3.4 enhanced-resolve: 5.16.0 eslint: 8.57.0 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.7.3 is-core-module: 2.13.1 @@ -6073,19 +6447,19 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.8.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): + eslint-module-utils@2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0): dependencies: - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.2.2) debug: 3.2.7 + optionalDependencies: + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.2.2) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.21.0)(eslint-plugin-import@2.29.1)(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): dependencies: - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.2.2) array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 array.prototype.flat: 1.3.2 @@ -6094,7 +6468,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -6104,18 +6478,22 @@ snapshots: object.values: 1.2.0 semver: 6.3.1 tsconfig-paths: 3.15.0 + optionalDependencies: + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.2.2) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-prettier@5.1.3(eslint-config-prettier@9.1.0)(eslint@8.57.0)(prettier@3.2.5): + eslint-plugin-prettier@5.1.3(@types/eslint@8.56.7)(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.2.5): dependencies: eslint: 8.57.0 - eslint-config-prettier: 9.1.0(eslint@8.57.0) prettier: 3.2.5 prettier-linter-helpers: 1.0.0 synckit: 0.8.8 + optionalDependencies: + '@types/eslint': 8.56.7 + eslint-config-prettier: 9.1.0(eslint@8.57.0) eslint-plugin-react-hooks@4.6.0(eslint@8.57.0): dependencies: @@ -6147,11 +6525,12 @@ snapshots: semver: 6.3.1 string.prototype.matchall: 4.0.11 - eslint-plugin-unused-imports@3.1.0(@typescript-eslint/eslint-plugin@6.21.0)(eslint@8.57.0): + eslint-plugin-unused-imports@3.1.0(@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0): dependencies: - '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.57.0)(typescript@5.2.2) eslint: 8.57.0 eslint-rule-composer: 0.3.0 + optionalDependencies: + '@typescript-eslint/eslint-plugin': 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.2.2))(eslint@8.57.0)(typescript@5.2.2) eslint-rule-composer@0.3.0: {} @@ -6225,6 +6604,8 @@ snapshots: esutils@2.0.3: {} + eta@2.2.0: {} + fast-deep-equal@3.1.3: {} fast-diff@1.3.0: {} @@ -6243,6 +6624,8 @@ snapshots: fast-plist@0.1.3: {} + fast-safe-stringify@2.1.1: {} + fastq@1.17.1: dependencies: reusify: 1.0.4 @@ -6311,6 +6694,8 @@ snapshots: gensync@1.0.0-beta.2: {} + get-caller-file@2.0.5: {} + get-intrinsic@1.2.4: dependencies: es-errors: 1.3.0 @@ -6432,6 +6817,8 @@ snapshots: dependencies: react-is: 16.13.1 + http2-client@1.3.5: {} + https-proxy-agent@5.0.1: dependencies: agent-base: 6.0.2 @@ -6479,6 +6866,8 @@ snapshots: call-bind: 1.0.7 get-intrinsic: 1.2.4 + is-arrayish@0.2.1: {} + is-async-function@2.0.0: dependencies: has-tostringtag: 1.0.2 @@ -6597,7 +6986,7 @@ snapshots: jiti@1.21.0: {} jotai@2.7.2(@types/react@18.2.73)(react@18.2.0): - dependencies: + optionalDependencies: '@types/react': 18.2.73 react: 18.2.0 @@ -6613,6 +7002,8 @@ snapshots: json-buffer@3.0.1: {} + json-parse-even-better-errors@2.3.1: {} + json-schema-compare@0.2.2: dependencies: lodash: 4.17.21 @@ -6755,16 +7146,62 @@ snapshots: natural-compare@1.4.0: {} + node-emoji@2.1.3: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + node-fetch-h2@2.3.0: + dependencies: + http2-client: 1.3.5 + node-fetch@2.7.0: dependencies: whatwg-url: 5.0.0 + node-readfiles@0.2.0: + dependencies: + es6-promise: 3.3.1 + node-releases@2.0.14: {} normalize-path@3.0.0: {} normalize-range@0.1.2: {} + oas-kit-common@1.0.8: + dependencies: + fast-safe-stringify: 2.1.1 + + oas-linter@3.2.2: + dependencies: + '@exodus/schemasafe': 1.3.0 + should: 13.2.3 + yaml: 1.10.2 + + oas-resolver@2.5.6: + dependencies: + node-fetch-h2: 2.3.0 + oas-kit-common: 1.0.8 + reftools: 1.1.9 + yaml: 1.10.2 + yargs: 17.7.2 + + oas-schema-walker@1.1.5: {} + + oas-validator@5.0.8: + dependencies: + call-me-maybe: 1.0.2 + oas-kit-common: 1.0.8 + oas-linter: 3.2.2 + oas-resolver: 2.5.6 + oas-schema-walker: 1.1.5 + reftools: 1.1.9 + should: 13.2.3 + yaml: 1.10.2 + object-assign@4.1.1: {} object-hash@3.0.0: {} @@ -6845,6 +7282,13 @@ snapshots: is-decimal: 1.0.4 is-hexadecimal: 1.0.4 + parse-json@5.2.0: + dependencies: + '@babel/code-frame': 7.24.2 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + path-exists@4.0.0: {} path-is-absolute@1.0.1: {} @@ -6885,8 +7329,9 @@ snapshots: postcss-load-config@4.0.2(postcss@8.4.38): dependencies: lilconfig: 3.1.1 - postcss: 8.4.38 yaml: 2.4.1 + optionalDependencies: + postcss: 8.4.38 postcss-nested@6.0.1(postcss@8.4.38): dependencies: @@ -6914,6 +7359,8 @@ snapshots: prettier@3.2.5: {} + prettier@3.3.2: {} + prism-react-renderer@2.3.1(react@18.2.0): dependencies: '@types/prismjs': 1.26.3 @@ -6946,6 +7393,11 @@ snapshots: queue-microtask@1.2.3: {} + react-day-picker@8.10.1(date-fns@3.6.0)(react@18.2.0): + dependencies: + date-fns: 3.6.0 + react: 18.2.0 + react-dom@18.2.0(react@18.2.0): dependencies: loose-envify: 1.4.0 @@ -6968,32 +7420,35 @@ snapshots: react-remove-scroll-bar@2.3.6(@types/react@18.2.73)(react@18.2.0): dependencies: - '@types/react': 18.2.73 react: 18.2.0 react-style-singleton: 2.2.1(@types/react@18.2.73)(react@18.2.0) tslib: 2.6.2 + optionalDependencies: + '@types/react': 18.2.73 react-remove-scroll@2.5.4(@types/react@18.2.73)(react@18.2.0): dependencies: - '@types/react': 18.2.73 react: 18.2.0 react-remove-scroll-bar: 2.3.6(@types/react@18.2.73)(react@18.2.0) react-style-singleton: 2.2.1(@types/react@18.2.73)(react@18.2.0) tslib: 2.6.2 use-callback-ref: 1.3.2(@types/react@18.2.73)(react@18.2.0) use-sidecar: 1.1.2(@types/react@18.2.73)(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 react-remove-scroll@2.5.5(@types/react@18.2.73)(react@18.2.0): dependencies: - '@types/react': 18.2.73 react: 18.2.0 react-remove-scroll-bar: 2.3.6(@types/react@18.2.73)(react@18.2.0) react-style-singleton: 2.2.1(@types/react@18.2.73)(react@18.2.0) tslib: 2.6.2 use-callback-ref: 1.3.2(@types/react@18.2.73)(react@18.2.0) use-sidecar: 1.1.2(@types/react@18.2.73)(react@18.2.0) + optionalDependencies: + '@types/react': 18.2.73 - react-router-dom@6.22.3(react-dom@18.2.0)(react@18.2.0): + react-router-dom@6.22.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: '@remix-run/router': 1.15.3 react: 18.2.0 @@ -7007,11 +7462,12 @@ snapshots: react-style-singleton@2.2.1(@types/react@18.2.73)(react@18.2.0): dependencies: - '@types/react': 18.2.73 get-nonce: 1.0.1 invariant: 2.2.4 react: 18.2.0 tslib: 2.6.2 + optionalDependencies: + '@types/react': 18.2.73 react-syntax-highlighter@15.5.0(react@18.2.0): dependencies: @@ -7022,18 +7478,24 @@ snapshots: react: 18.2.0 refractor: 3.6.0 + react-use-measure@2.1.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0): + dependencies: + debounce: 1.2.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react@18.2.0: dependencies: loose-envify: 1.4.0 - reactflow@11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0): + reactflow@11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: - '@reactflow/background': 11.3.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@reactflow/controls': 11.2.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@reactflow/minimap': 11.7.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@reactflow/node-resizer': 2.2.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) - '@reactflow/node-toolbar': 1.3.9(@types/react@18.2.73)(react-dom@18.2.0)(react@18.2.0) + '@reactflow/background': 11.3.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@reactflow/controls': 11.2.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@reactflow/core': 11.10.4(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@reactflow/minimap': 11.7.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@reactflow/node-resizer': 2.2.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@reactflow/node-toolbar': 1.3.9(@types/react@18.2.73)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) transitivePeerDependencies: @@ -7074,6 +7536,8 @@ snapshots: parse-entities: 2.0.0 prismjs: 1.27.0 + reftools@1.1.9: {} + regenerator-runtime@0.14.1: {} regexp.prototype.flags@1.5.2: @@ -7083,6 +7547,8 @@ snapshots: es-errors: 1.3.0 set-function-name: 2.0.2 + require-directory@2.1.1: {} + require-from-string@2.0.2: {} resolve-from@4.0.0: {} @@ -7183,6 +7649,32 @@ snapshots: shebang-regex@3.0.0: {} + should-equal@2.0.0: + dependencies: + should-type: 1.4.0 + + should-format@3.0.3: + dependencies: + should-type: 1.4.0 + should-type-adaptors: 1.1.0 + + should-type-adaptors@1.1.0: + dependencies: + should-type: 1.4.0 + should-util: 1.0.1 + + should-type@1.4.0: {} + + should-util@1.0.1: {} + + should@13.2.3: + dependencies: + should-equal: 2.0.0 + should-format: 3.0.3 + should-type: 1.4.0 + should-type-adaptors: 1.1.0 + should-util: 1.0.1 + side-channel@1.0.6: dependencies: call-bind: 1.0.7 @@ -7192,6 +7684,10 @@ snapshots: signal-exit@4.1.0: {} + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + slash@3.0.0: {} source-map-js@1.2.0: {} @@ -7278,6 +7774,41 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + swagger-schema-official@2.0.0-bab6bed: {} + + swagger-typescript-api@13.0.11: + dependencies: + '@types/swagger-schema-official': 2.0.25 + cosmiconfig: 9.0.0(typescript@5.5.2) + didyoumean: 1.2.2 + eta: 2.2.0 + js-yaml: 4.1.0 + lodash: 4.17.21 + nanoid: 3.3.7 + node-emoji: 2.1.3 + prettier: 3.3.2 + swagger-schema-official: 2.0.0-bab6bed + swagger2openapi: 7.0.8 + typescript: 5.5.2 + transitivePeerDependencies: + - encoding + + swagger2openapi@7.0.8: + dependencies: + call-me-maybe: 1.0.2 + node-fetch: 2.7.0 + node-fetch-h2: 2.3.0 + node-readfiles: 0.2.0 + oas-kit-common: 1.0.8 + oas-resolver: 2.5.6 + oas-schema-walker: 1.1.5 + oas-validator: 5.0.8 + reftools: 1.1.9 + yaml: 1.10.2 + yargs: 17.7.2 + transitivePeerDependencies: + - encoding + synckit@0.8.8: dependencies: '@pkgr/core': 0.1.1 @@ -7402,6 +7933,8 @@ snapshots: typescript@5.2.2: {} + typescript@5.5.2: {} + unbox-primitive@1.0.2: dependencies: call-bind: 1.0.7 @@ -7411,6 +7944,8 @@ snapshots: undici-types@5.26.5: {} + unicode-emoji-modifier-base@1.0.0: {} + unplugin@1.0.1: dependencies: acorn: 8.11.3 @@ -7430,16 +7965,18 @@ snapshots: use-callback-ref@1.3.2(@types/react@18.2.73)(react@18.2.0): dependencies: - '@types/react': 18.2.73 react: 18.2.0 tslib: 2.6.2 + optionalDependencies: + '@types/react': 18.2.73 use-sidecar@1.1.2(@types/react@18.2.73)(react@18.2.0): dependencies: - '@types/react': 18.2.73 detect-node-es: 1.1.0 react: 18.2.0 tslib: 2.6.2 + optionalDependencies: + '@types/react': 18.2.73 use-sync-external-store@1.2.0(react@18.2.0): dependencies: @@ -7462,7 +7999,7 @@ snapshots: validate.io-number@1.0.3: {} - vite-plugin-eslint@1.8.1(eslint@8.57.0)(vite@5.2.7): + vite-plugin-eslint@1.8.1(eslint@8.57.0)(vite@5.2.7(@types/node@20.12.2)): dependencies: '@rollup/pluginutils': 4.2.1 '@types/eslint': 8.56.7 @@ -7472,11 +8009,11 @@ snapshots: vite@5.2.7(@types/node@20.12.2): dependencies: - '@types/node': 20.12.2 esbuild: 0.20.2 postcss: 8.4.38 rollup: 4.13.2 optionalDependencies: + '@types/node': 20.12.2 fsevents: 2.3.3 webidl-conversions@3.0.1: {} @@ -7548,18 +8085,35 @@ snapshots: xtend@4.0.2: {} + y18n@5.0.8: {} + yallist@3.1.1: {} yallist@4.0.0: {} + yaml@1.10.2: {} + yaml@2.4.1: {} + yargs-parser@21.1.1: {} + + yargs@17.7.2: + dependencies: + cliui: 8.0.1 + escalade: 3.1.2 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + yocto-queue@0.1.0: {} zod@3.22.4: {} zustand@4.5.2(@types/react@18.2.73)(react@18.2.0): dependencies: + use-sync-external-store: 1.2.0(react@18.2.0) + optionalDependencies: '@types/react': 18.2.73 react: 18.2.0 - use-sync-external-store: 1.2.0(react@18.2.0) diff --git a/frontend/app/src/components/cloud/billing/payment-methods.tsx b/frontend/app/src/components/cloud/billing/payment-methods.tsx index 1a4f2ed25..3421d4ead 100644 --- a/frontend/app/src/components/cloud/billing/payment-methods.tsx +++ b/frontend/app/src/components/cloud/billing/payment-methods.tsx @@ -8,6 +8,9 @@ import { FaCcDinersClub, FaCcJcb, } from 'react-icons/fa'; + +import { LuBanknote } from 'react-icons/lu'; + import { IconType } from 'react-icons/lib'; import { TenantContextType } from '@/lib/outlet'; import { useOutletContext } from 'react-router-dom'; @@ -25,6 +28,7 @@ const ccIcons: Record = { dinersclub: FaCcDinersClub, jcb: FaCcJcb, generic: FaCreditCard, + link: LuBanknote, }; export interface PaymentMethodsProps { @@ -74,8 +78,9 @@ export function PaymentMethods({
- {method.brand.toUpperCase()} *** *** {method.last4}{' '} - (Expires {method.expiration}) + {method.brand.toUpperCase()} + {method.last4 && ` *** *** ${method.last4} `} + {method.expiration && `(Expires {method.expiration})`}
diff --git a/frontend/app/src/components/cloud/billing/subscription.tsx b/frontend/app/src/components/cloud/billing/subscription.tsx index 7c4b0a8f8..43c654ab6 100644 --- a/frontend/app/src/components/cloud/billing/subscription.tsx +++ b/frontend/app/src/components/cloud/billing/subscription.tsx @@ -16,6 +16,7 @@ import { cloudApi } from '@/lib/api/api'; import { TenantSubscription, SubscriptionPlan, + Coupon, } from '@/lib/api/generated/cloud/data-contracts'; import { useApiError } from '@/lib/hooks'; import { TenantContextType } from '@/lib/outlet'; @@ -29,11 +30,13 @@ interface SubscriptionProps { active?: TenantSubscription; plans?: SubscriptionPlan[]; hasPaymentMethods?: boolean; + coupons?: Coupon[]; } export const Subscription: React.FC = ({ active, plans, + coupons, hasPaymentMethods, }) => { // Implement the logic for the Subscription component here @@ -156,9 +159,15 @@ export const Subscription: React.FC = ({ />
-

+

Subscription + {coupons?.map((coupon, i) => ( + + {coupon.name} coupon applied + + ))}

+
void; + onBottomReached: () => void; +}; + +const options: Intl.DateTimeFormatOptions = { + year: 'numeric', + month: 'numeric', + day: 'numeric', + hour: 'numeric', + minute: 'numeric', + second: 'numeric', +}; + +const LoggingComponent: React.FC = ({ + logs, + onTopReached, + onBottomReached, +}) => { + const containerRef = useRef(null); + const [refreshing, setRefreshing] = useState(false); + const [lastTopCall, setLastTopCall] = useState(0); + const [lastBottomCall, setLastBottomCall] = useState(0); + const [firstMount, setFirstMount] = useState(true); + const previousScrollHeightRef = useRef(0); + + const handleScroll = () => { + if (!containerRef.current) { + return; + } + const { scrollTop, scrollHeight, clientHeight } = containerRef.current; + previousScrollHeightRef.current = scrollHeight; + const now = Date.now(); + + if (scrollTop === 0 && now - lastTopCall >= 1000) { + if (logs.length > 0) { + onTopReached(); + } + setLastTopCall(now); + } else if ( + scrollTop + clientHeight >= scrollHeight && + now - lastBottomCall >= 1000 + ) { + if (logs.length > 0) { + onBottomReached(); + } + setLastBottomCall(now); + } + }; + + useEffect(() => { + setTimeout(() => { + const container = containerRef.current; + + if (container && container.scrollHeight > container.clientHeight) { + if (firstMount) { + container.scrollTo({ + top: container.scrollHeight, + behavior: 'smooth', + }); + + setFirstMount(false); + } + } + }, 250); + }, [containerRef, firstMount]); + + useEffect(() => { + if (refreshing) { + const timer = setTimeout(() => { + setRefreshing(false); + }, 1000); + return () => clearTimeout(timer); + } + }, [refreshing]); + + useEffect(() => { + const container = containerRef.current; + if (!container) { + return; + } + + const previousScrollHeight = previousScrollHeightRef.current; + const currentScrollHeight = container.scrollHeight; + const { scrollTop, clientHeight } = container; + + const isAtBottom = scrollTop + clientHeight >= previousScrollHeight; + + if (!isAtBottom) { + const newScrollTop = + scrollTop + (currentScrollHeight - previousScrollHeight); + container.scrollTo({ top: newScrollTop }); + } else { + container.scrollTo({ top: currentScrollHeight, behavior: 'smooth' }); + } + }, [logs]); + + const showLogs = + logs.length > 0 + ? logs + : [ + { + line: 'Waiting for logs...', + timestamp: new Date().toISOString(), + instance: 'Hatchet', + }, + ]; + + return ( +
+ {refreshing && ( +
+ Refreshing... +
+ )} + {showLogs.map((log, i) => { + const sanitizedHtml = DOMPurify.sanitize(convert.toHtml(log.line), { + USE_PROFILES: { html: true }, + }); + + const logHash = log.timestamp + generateHash(log.line); + + return ( +

+ + {new Date(log.timestamp) + .toLocaleString('sv', options) + .replace(',', '.') + .replace(' ', 'T')} + + {log.instance} + +

+ ); + })} +
+ ); +}; + +const generateHash = (input: string): string => { + const trimmedInput = input.substring(0, 50); + return cyrb53(trimmedInput) + ''; +}; + +// source: https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js +const cyrb53 = function (str: string, seed = 0) { + let h1 = 0xdeadbeef ^ seed, + h2 = 0x41c6ce57 ^ seed; + for (let i = 0, ch; i < str.length; i++) { + ch = str.charCodeAt(i); + h1 = Math.imul(h1 ^ ch, 2654435761); + h2 = Math.imul(h2 ^ ch, 1597334677); + } + h1 = Math.imul(h1 ^ (h1 >>> 16), 2246822507); + h1 ^= Math.imul(h2 ^ (h2 >>> 13), 3266489909); + h2 = Math.imul(h2 ^ (h2 >>> 16), 2246822507); + h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909); + return 4294967296 * (2097151 & h2) + (h1 >>> 0); +}; + +export default LoggingComponent; diff --git a/frontend/app/src/components/molecules/analytics-provider.tsx b/frontend/app/src/components/molecules/analytics-provider.tsx index ad25b62b5..174bfa55e 100644 --- a/frontend/app/src/components/molecules/analytics-provider.tsx +++ b/frontend/app/src/components/molecules/analytics-provider.tsx @@ -17,7 +17,7 @@ const AnalyticsProvider: React.FC< const [tenant] = useTenantContext(); const config = useMemo(() => { - return meta.data?.data?.posthog; + return meta.data?.posthog; }, [meta]); useEffect(() => { diff --git a/frontend/app/src/components/molecules/brush-chart/area-chart.tsx b/frontend/app/src/components/molecules/brush-chart/area-chart.tsx index 4b7238ef5..0a10675b9 100644 --- a/frontend/app/src/components/molecules/brush-chart/area-chart.tsx +++ b/frontend/app/src/components/molecules/brush-chart/area-chart.tsx @@ -1,19 +1,66 @@ -import React from 'react'; +import React, { useMemo, useCallback } from 'react'; import { Group } from '@visx/group'; -import { AreaClosed } from '@visx/shape'; -import { AxisLeft, AxisBottom, AxisScale } from '@visx/axis'; +import { AreaClosed, Line, Bar } from '@visx/shape'; +import { + withTooltip, + TooltipWithBounds, + Tooltip, + defaultStyles, +} from '@visx/tooltip'; +import { GridRows, GridColumns } from '@visx/grid'; +import { WithTooltipProvidedProps } from '@visx/tooltip/lib/enhancers/withTooltip'; +import { scaleTime, scaleLinear } from '@visx/scale'; +import { AxisLeft, AxisBottom } from '@visx/axis'; import { LinearGradient } from '@visx/gradient'; import { curveMonotoneX } from '@visx/curve'; -import { AppleStock } from '@visx/mock-data/lib/mocks/appleStock'; +import { localPoint } from '@visx/event'; +import { max, extent, bisector } from '@visx/vendor/d3-array'; +import { timeFormat } from '@visx/vendor/d3-time-format'; +import { Text } from '@visx/text'; + +const getDate = (d: MetricValue) => d.date; +const getValue = (d: MetricValue) => d.value; + +// format to 2 decimal places +export const format2Dec = (d: number) => { + if (!d.toFixed) { + return '0.00'; + } + + return `${d.toFixed(2)}`; +}; + +const bisectDate = bisector((d) => d.date).left; + +export interface MetricValue { + date: Date; + value: number; +} +type TooltipData = MetricValue; + +const formatDate = timeFormat('%y-%m-%d %I:%M:%S'); + +const accentColor = '#ffffff44'; +const background = '#1E293B'; +const background2 = '#8c77e0'; +const accentColorDark = '#8c77e0'; + +const tooltipStyles = { + ...defaultStyles, + border: '1px solid white', + color: 'white', + background, +}; + +const axisColor = '#cecece'; -// Initialize some variables -const axisColor = '#fff'; const axisBottomTickLabelProps = { textAnchor: 'middle' as const, fontFamily: 'Arial', fontSize: 10, fill: axisColor, }; + const axisLeftTickLabelProps = { dx: '-0.25em', dy: '0.25em', @@ -23,79 +70,253 @@ const axisLeftTickLabelProps = { fill: axisColor, }; -// accessors -const getDate = (d: AppleStock) => new Date(d.date); -const getStockValue = (d: AppleStock) => d.close; - -export default function AreaChart({ - data, - gradientColor, - width, - yMax, - margin, - xScale, - yScale, - hideBottomAxis = false, - hideLeftAxis = false, - top, - left, - children, -}: { - data: AppleStock[]; - gradientColor: string; - xScale: AxisScale; - yScale: AxisScale; +export const formatPercentTooltip = (d: number) => `${format2Dec(d)}%`; + +type AreaChartProps = { + data: MetricValue[]; + gradientColor?: string; width: number; - yMax: number; - margin: { top: number; right: number; bottom: number; left: number }; + height: number; hideBottomAxis?: boolean; hideLeftAxis?: boolean; - top?: number; - left?: number; children?: React.ReactNode; -}) { - if (width < 10) { - return null; - } - return ( - - - - data={data} - x={(d) => xScale(getDate(d)) || 0} - y={(d) => yScale(getStockValue(d)) || 0} - yScale={yScale} - strokeWidth={1} - stroke="url(#gradient)" - fill="url(#gradient)" - curve={curveMonotoneX} - /> - {!hideBottomAxis && ( - 520 ? 10 : 5} - stroke={axisColor} - tickStroke={axisColor} - tickLabelProps={axisBottomTickLabelProps} - /> - )} - {!hideLeftAxis && ( - - )} - {children} - - ); -} + yLabel?: string; + xLabel?: string; + yDomain?: [number, number]; + xDomain?: [Date, Date]; + centerText?: string; + tooltipFormat?: (d: number) => string; +}; + +export default withTooltip( + ({ + data, + gradientColor = background2, + width, + height, + hideBottomAxis = false, + hideLeftAxis = false, + children, + yLabel, + xLabel, + yDomain, + xDomain, + centerText, + showTooltip, + hideTooltip, + tooltipFormat, + tooltipData, + tooltipTop = 0, + tooltipLeft = 0, + }: AreaChartProps & WithTooltipProvidedProps) => { + if (width < 10) { + return null; + } + + const innerWidth = width; + const innerHeight = height; + + const dateScale = useMemo( + () => + scaleTime({ + range: [0, width], + domain: xDomain || (extent(data, getDate) as [Date, Date]), + }), + [width, data, xDomain], + ); + + const yScale = useMemo( + () => + scaleLinear({ + range: [height, 0], + domain: yDomain || [0, 1.3 * (max(data, getValue) || 0)], + nice: true, + }), + [height, data, yDomain], + ); + + const handleTooltip = useCallback( + ( + event: + | React.TouchEvent + | React.MouseEvent, + ) => { + const { x } = localPoint(event) || { x: 0 }; + const x0 = dateScale.invert(x); + const index = bisectDate(data, x0, 1); + const d0 = data[index - 1]; + const d1 = data[index]; + let d = d0; + if (d1 && getDate(d1)) { + d = + x0.valueOf() - getDate(d0).valueOf() > + getDate(d1).valueOf() - x0.valueOf() + ? d1 + : d0; + } + + showTooltip({ + tooltipData: d, + tooltipLeft: x, + tooltipTop: yScale(getValue(d)), + }); + }, + [showTooltip, yScale, dateScale, data], + ); + + return ( +
+ + {centerText && ( + + {centerText} + + )} + + + + + + + data={data} + x={(d) => dateScale(d.date) || 0} + y={(d) => yScale(d.value) || 0} + yScale={yScale} + strokeWidth={1} + stroke="url(#gradient)" + fill="url(#gradient)" + curve={curveMonotoneX} + height={innerHeight} + /> + {!hideBottomAxis && ( + 520 ? 10 : 5} + stroke={axisColor} + tickStroke={axisColor} + tickLabelProps={axisBottomTickLabelProps} + label={xLabel} + /> + )} + {!hideLeftAxis && ( + + )} + {children} + + hideTooltip()} + /> + {data.length > 0 && tooltipData && ( + + + + + + )} + + {data.length > 0 && tooltipData && ( +
+ + {tooltipFormat + ? tooltipFormat(getValue(tooltipData)) + : getValue(tooltipData)} + + + {formatDate(getDate(tooltipData))} + +
+ )} +
+ ); + }, +); diff --git a/frontend/app/src/components/molecules/brush-chart/brush-chart.tsx b/frontend/app/src/components/molecules/brush-chart/brush-chart.tsx deleted file mode 100644 index 5b665da02..000000000 --- a/frontend/app/src/components/molecules/brush-chart/brush-chart.tsx +++ /dev/null @@ -1,252 +0,0 @@ -import { useRef, useState, useMemo } from 'react'; -import { scaleTime, scaleLinear } from '@visx/scale'; -import appleStock, { AppleStock } from '@visx/mock-data/lib/mocks/appleStock'; -import { Brush } from '@visx/brush'; -import { Bounds } from '@visx/brush/lib/types'; -import BaseBrush, { - BaseBrushState, - UpdateBrush, -} from '@visx/brush/lib/BaseBrush'; -import { PatternLines } from '@visx/pattern'; -import { Group } from '@visx/group'; -import { max, extent } from '@visx/vendor/d3-array'; -import { BrushHandleRenderProps } from '@visx/brush/lib/BrushHandle'; -import AreaChart from './area-chart'; -import { Button } from '@/components/ui/button'; - -// Initialize some variables -const stock = appleStock.slice(1000); -const brushMargin = { top: 10, bottom: 15, left: 50, right: 20 }; -const chartSeparation = 30; -const PATTERN_ID = 'brush_pattern'; -export const accentColor = '#ffffff44'; -export const background = '#1E293B'; -export const background2 = '#8c77e0'; -const selectedBrushStyle = { - fill: `url(#${PATTERN_ID})`, - stroke: 'white', -}; - -// accessors -const getDate = (d: AppleStock) => new Date(d.date); -const getStockValue = (d: AppleStock) => d.close; - -export type BrushProps = { - width: number; - height: number; - margin?: { top: number; right: number; bottom: number; left: number }; - compact?: boolean; -}; - -function BrushChart({ - compact = false, - width, - height, - margin = { - top: 20, - left: 50, - bottom: 20, - right: 20, - }, -}: BrushProps) { - const brushRef = useRef(null); - const [filteredStock, setFilteredStock] = useState(stock); - - const onBrushChange = (domain: Bounds | null) => { - if (!domain) { - return; - } - const { x0, x1, y0, y1 } = domain; - const stockCopy = stock.filter((s) => { - const x = getDate(s).getTime(); - const y = getStockValue(s); - return x > x0 && x < x1 && y > y0 && y < y1; - }); - setFilteredStock(stockCopy); - }; - - const innerHeight = height - margin.top - margin.bottom; - const topChartBottomMargin = compact - ? chartSeparation / 2 - : chartSeparation + 10; - const topChartHeight = 0.8 * innerHeight - topChartBottomMargin; - const bottomChartHeight = innerHeight - topChartHeight - chartSeparation; - - // bounds - const xMax = Math.max(width - margin.left - margin.right, 0); - const yMax = Math.max(topChartHeight, 0); - const xBrushMax = Math.max(width - brushMargin.left - brushMargin.right, 0); - const yBrushMax = Math.max( - bottomChartHeight - brushMargin.top - brushMargin.bottom, - 0, - ); - - // scales - const dateScale = useMemo( - () => - scaleTime({ - range: [0, xMax], - domain: extent(filteredStock, getDate) as [Date, Date], - }), - [xMax, filteredStock], - ); - const stockScale = useMemo( - () => - scaleLinear({ - range: [yMax, 0], - domain: [0, max(filteredStock, getStockValue) || 0], - nice: true, - }), - [yMax, filteredStock], - ); - const brushDateScale = useMemo( - () => - scaleTime({ - range: [0, xBrushMax], - domain: extent(stock, getDate) as [Date, Date], - }), - [xBrushMax], - ); - const brushStockScale = useMemo( - () => - scaleLinear({ - range: [yBrushMax, 0], - domain: [0, max(stock, getStockValue) || 0], - nice: true, - }), - [yBrushMax], - ); - - const initialBrushPosition = useMemo( - () => ({ - start: { x: brushDateScale(getDate(stock[50])) }, - end: { x: brushDateScale(getDate(stock[100])) }, - }), - [brushDateScale], - ); - - // event handlers - const handleClearClick = () => { - if (brushRef?.current) { - setFilteredStock(stock); - brushRef.current.reset(); - } - }; - - const handleResetClick = () => { - if (brushRef?.current) { - const updater: UpdateBrush = (prevBrush) => { - const newExtent = brushRef.current!.getExtent( - initialBrushPosition.start, - initialBrushPosition.end, - ); - - const newState: BaseBrushState = { - ...prevBrush, - start: { y: newExtent.y0, x: newExtent.x0 }, - end: { y: newExtent.y1, x: newExtent.x1 }, - extent: newExtent, - }; - - return newState; - }; - brushRef.current.updateBrush(updater); - } - }; - - return ( -
- - {/* */} - {/* */} - - - - setFilteredStock(stock)} - selectedBoxStyle={selectedBrushStyle} - useWindowMoveEvents - renderBrushHandle={(props) => } - /> - - - - -
- ); -} -// We need to manually offset the handles for them to be rendered at the right position -function BrushHandle({ x, height, isBrushActive }: BrushHandleRenderProps) { - const pathWidth = 8; - const pathHeight = 15; - if (!isBrushActive) { - return null; - } - return ( - - - - ); -} - -export default BrushChart; diff --git a/frontend/app/src/components/molecules/nav-bar/nav-bar.tsx b/frontend/app/src/components/molecules/nav-bar/nav-bar.tsx index 3e4e6bb44..8a6be3feb 100644 --- a/frontend/app/src/components/molecules/nav-bar/nav-bar.tsx +++ b/frontend/app/src/components/molecules/nav-bar/nav-bar.tsx @@ -37,11 +37,11 @@ export default function MainNav({ user }: MainNavProps) { const meta = useApiMeta(); const hasPylon = useMemo(() => { - if (!meta.data?.data?.pylonAppId) { + if (!meta.data?.pylonAppId) { return null; } - return !!meta.data.data.pylonAppId; + return !!meta.data.pylonAppId; }, [meta]); const navigate = useNavigate(); diff --git a/frontend/app/src/components/molecules/nav-bar/tenant-switcher.tsx b/frontend/app/src/components/molecules/nav-bar/tenant-switcher.tsx index bb5690929..0c7a49230 100644 --- a/frontend/app/src/components/molecules/nav-bar/tenant-switcher.tsx +++ b/frontend/app/src/components/molecules/nav-bar/tenant-switcher.tsx @@ -87,7 +87,7 @@ export function TenantSwitcher({ ))} - {meta?.data?.data.allowCreateTenant && ( + {meta.data?.allowCreateTenant && ( <> diff --git a/frontend/app/src/components/molecules/support-chat.tsx b/frontend/app/src/components/molecules/support-chat.tsx index dad133336..dbbabd6b2 100644 --- a/frontend/app/src/components/molecules/support-chat.tsx +++ b/frontend/app/src/components/molecules/support-chat.tsx @@ -16,11 +16,11 @@ const SupportChat: React.FC = ({ const [tenant] = useTenantContext(); const APP_ID = useMemo(() => { - if (!meta.data?.data?.pylonAppId) { + if (!meta.data?.pylonAppId) { return null; } - return meta.data.data.pylonAppId; + return meta.data.pylonAppId; }, [meta]); useEffect(() => { diff --git a/frontend/app/src/components/molecules/time-picker/date-time-picker.tsx b/frontend/app/src/components/molecules/time-picker/date-time-picker.tsx new file mode 100644 index 000000000..701f5fa71 --- /dev/null +++ b/frontend/app/src/components/molecules/time-picker/date-time-picker.tsx @@ -0,0 +1,69 @@ +import { add, format } from 'date-fns'; +import { cn } from '@/lib/utils'; +import { Button } from '@/components/ui/button'; +import { Calendar } from '@/components/ui/calendar'; +import { + Popover, + PopoverContent, + PopoverTrigger, +} from '@/components/ui/popover'; +import { TimePicker } from './time-picker'; +import { CalendarIcon } from '@radix-ui/react-icons'; + +type DateTimePickerProps = { + date: Date | undefined; + setDate: (date: Date | undefined) => void; + label: string; +}; + +export function DateTimePicker({ date, setDate, label }: DateTimePickerProps) { + /** + * carry over the current time when a user clicks a new day + * instead of resetting to 00:00 + */ + const handleSelect = (newDay: Date | undefined) => { + if (!newDay) { + return; + } + if (!date) { + setDate(newDay); + return; + } + const diff = newDay.getTime() - date.getTime(); + const diffInDays = diff / (1000 * 60 * 60 * 24); + const newDateFull = add(date, { days: Math.ceil(diffInDays) }); + setDate(newDateFull); + }; + + return ( + + + + + + handleSelect(d)} + initialFocus + /> +
+ +
+
+
+ ); +} diff --git a/frontend/app/src/components/molecules/time-picker/time-picker-input.tsx b/frontend/app/src/components/molecules/time-picker/time-picker-input.tsx new file mode 100644 index 000000000..b115da038 --- /dev/null +++ b/frontend/app/src/components/molecules/time-picker/time-picker-input.tsx @@ -0,0 +1,144 @@ +import { Input } from '@/components/ui/input'; + +import { cn } from '@/lib/utils'; +import React from 'react'; +import { + Period, + TimePickerType, + getArrowByType, + getDateByType, + setDateByType, +} from './time-picker-utils'; + +export interface TimePickerInputProps + extends React.InputHTMLAttributes { + picker: TimePickerType; + date: Date | undefined; + setDate: (date: Date | undefined) => void; + period?: Period; + onRightFocus?: () => void; + onLeftFocus?: () => void; +} + +const TimePickerInput = React.forwardRef< + HTMLInputElement, + TimePickerInputProps +>( + ( + { + className, + type = 'datetime-local', + value, + id, + name, + date = new Date(new Date().setHours(0, 0, 0, 0)), + setDate, + onChange, + onKeyDown, + picker, + period, + onLeftFocus, + onRightFocus, + ...props + }, + ref, + ) => { + const [flag, setFlag] = React.useState(false); + const [prevIntKey, setPrevIntKey] = React.useState('0'); + + /** + * allow the user to enter the second digit within 2 seconds + * otherwise start again with entering first digit + */ + React.useEffect(() => { + if (flag) { + const timer = setTimeout(() => { + setFlag(false); + }, 2000); + + return () => clearTimeout(timer); + } + }, [flag]); + + const calculatedValue = React.useMemo(() => { + return getDateByType(date, picker); + }, [date, picker]); + + const calculateNewValue = (key: string) => { + /* + * If picker is '12hours' and the first digit is 0, then the second digit is automatically set to 1. + * The second entered digit will break the condition and the value will be set to 10-12. + */ + if (picker === '12hours') { + if (flag && calculatedValue.slice(1, 2) === '1' && prevIntKey === '0') { + return '0' + key; + } + } + + return !flag ? '0' + key : calculatedValue.slice(1, 2) + key; + }; + + const handleKeyDown = (e: React.KeyboardEvent) => { + if (e.key === 'Tab') { + return; + } + e.preventDefault(); + if (e.key === 'ArrowRight') { + onRightFocus?.(); + } + if (e.key === 'ArrowLeft') { + onLeftFocus?.(); + } + if (['ArrowUp', 'ArrowDown'].includes(e.key)) { + const step = e.key === 'ArrowUp' ? 1 : -1; + const newValue = getArrowByType(calculatedValue, step, picker); + if (flag) { + setFlag(false); + } + const tempDate = new Date(date); + setDate(setDateByType(tempDate, newValue, picker, period)); + } + if (e.key >= '0' && e.key <= '9') { + if (picker === '12hours') { + setPrevIntKey(e.key); + } + + const newValue = calculateNewValue(e.key); + if (flag) { + onRightFocus?.(); + } + setFlag((prev) => !prev); + const tempDate = new Date(date); + setDate(setDateByType(tempDate, newValue, picker, period)); + } + }; + + return ( + { + e.preventDefault(); + onChange?.(e); + }} + type={type} + inputMode="decimal" + onKeyDown={(e) => { + onKeyDown?.(e); + handleKeyDown(e); + }} + {...props} + /> + ); + }, +); + +TimePickerInput.displayName = 'TimePickerInput'; + +export { TimePickerInput }; diff --git a/frontend/app/src/components/molecules/time-picker/time-picker-utils.ts b/frontend/app/src/components/molecules/time-picker/time-picker-utils.ts new file mode 100644 index 000000000..9bd251e6c --- /dev/null +++ b/frontend/app/src/components/molecules/time-picker/time-picker-utils.ts @@ -0,0 +1,226 @@ +/** + * regular expression to check for valid hour format (01-23) + */ +export function isValidHour(value: string) { + return /^(0[0-9]|1[0-9]|2[0-3])$/.test(value); +} + +/** + * regular expression to check for valid 12 hour format (01-12) + */ +export function isValid12Hour(value: string) { + return /^(0[1-9]|1[0-2])$/.test(value); +} + +/** + * regular expression to check for valid minute format (00-59) + */ +export function isValidMinuteOrSecond(value: string) { + return /^[0-5][0-9]$/.test(value); +} + +type GetValidNumberConfig = { max: number; min?: number; loop?: boolean }; + +export function getValidNumber( + value: string, + { max, min = 0, loop = false }: GetValidNumberConfig, +) { + let numericValue = parseInt(value, 10); + + if (!isNaN(numericValue)) { + if (!loop) { + if (numericValue > max) { + numericValue = max; + } + if (numericValue < min) { + numericValue = min; + } + } else { + if (numericValue > max) { + numericValue = min; + } + if (numericValue < min) { + numericValue = max; + } + } + return numericValue.toString().padStart(2, '0'); + } + + return '00'; +} + +export function getValidHour(value: string) { + if (isValidHour(value)) { + return value; + } + return getValidNumber(value, { max: 23 }); +} + +export function getValid12Hour(value: string) { + if (isValid12Hour(value)) { + return value; + } + return getValidNumber(value, { min: 1, max: 12 }); +} + +export function getValidMinuteOrSecond(value: string) { + if (isValidMinuteOrSecond(value)) { + return value; + } + return getValidNumber(value, { max: 59 }); +} + +type GetValidArrowNumberConfig = { + min: number; + max: number; + step: number; +}; + +export function getValidArrowNumber( + value: string, + { min, max, step }: GetValidArrowNumberConfig, +) { + let numericValue = parseInt(value, 10); + if (!isNaN(numericValue)) { + numericValue += step; + return getValidNumber(String(numericValue), { min, max, loop: true }); + } + return '00'; +} + +export function getValidArrowHour(value: string, step: number) { + return getValidArrowNumber(value, { min: 0, max: 23, step }); +} + +export function getValidArrow12Hour(value: string, step: number) { + return getValidArrowNumber(value, { min: 1, max: 12, step }); +} + +export function getValidArrowMinuteOrSecond(value: string, step: number) { + return getValidArrowNumber(value, { min: 0, max: 59, step }); +} + +export function setMinutes(date: Date, value: string) { + const minutes = getValidMinuteOrSecond(value); + date.setMinutes(parseInt(minutes, 10)); + return date; +} + +export function setSeconds(date: Date, value: string) { + const seconds = getValidMinuteOrSecond(value); + date.setSeconds(parseInt(seconds, 10)); + return date; +} + +export function setHours(date: Date, value: string) { + const hours = getValidHour(value); + date.setHours(parseInt(hours, 10)); + return date; +} + +export function set12Hours(date: Date, value: string, period: Period) { + const hours = parseInt(getValid12Hour(value), 10); + const convertedHours = convert12HourTo24Hour(hours, period); + date.setHours(convertedHours); + return date; +} + +export type TimePickerType = 'minutes' | 'seconds' | 'hours' | '12hours'; +export type Period = 'AM' | 'PM'; + +export function setDateByType( + date: Date, + value: string, + type: TimePickerType, + period?: Period, +) { + switch (type) { + case 'minutes': + return setMinutes(date, value); + case 'seconds': + return setSeconds(date, value); + case 'hours': + return setHours(date, value); + case '12hours': { + if (!period) { + return date; + } + return set12Hours(date, value, period); + } + default: + return date; + } +} + +export function getDateByType(date: Date, type: TimePickerType) { + switch (type) { + case 'minutes': + return getValidMinuteOrSecond(String(date.getMinutes())); + case 'seconds': + return getValidMinuteOrSecond(String(date.getSeconds())); + case 'hours': + return getValidHour(String(date.getHours())); + case '12hours': + return getValid12Hour(String(display12HourValue(date.getHours()))); + default: + return '00'; + } +} + +export function getArrowByType( + value: string, + step: number, + type: TimePickerType, +) { + switch (type) { + case 'minutes': + return getValidArrowMinuteOrSecond(value, step); + case 'seconds': + return getValidArrowMinuteOrSecond(value, step); + case 'hours': + return getValidArrowHour(value, step); + case '12hours': + return getValidArrow12Hour(value, step); + default: + return '00'; + } +} + +/** + * handles value change of 12-hour input + * 12:00 PM is 12:00 + * 12:00 AM is 00:00 + */ +export function convert12HourTo24Hour(hour: number, period: Period) { + if (period === 'PM') { + if (hour <= 11) { + return hour + 12; + } else { + return hour; + } + } else if (period === 'AM') { + if (hour === 12) { + return 0; + } + return hour; + } + return hour; +} + +/** + * time is stored in the 24-hour form, + * but needs to be displayed to the user + * in its 12-hour representation + */ +export function display12HourValue(hours: number) { + if (hours === 0 || hours === 12) { + return '12'; + } + if (hours >= 22) { + return `${hours - 12}`; + } + if (hours % 12 > 9) { + return `${hours}`; + } + return `0${hours % 12}`; +} diff --git a/frontend/app/src/components/molecules/time-picker/time-picker.tsx b/frontend/app/src/components/molecules/time-picker/time-picker.tsx new file mode 100644 index 000000000..115c21288 --- /dev/null +++ b/frontend/app/src/components/molecules/time-picker/time-picker.tsx @@ -0,0 +1,60 @@ +import * as React from 'react'; +import { Label } from '@/components/ui/label'; +import { TimePickerInput } from './time-picker-input'; +import { ClockIcon } from '@radix-ui/react-icons'; + +interface TimePickerProps { + date: Date | undefined; + setDate: (date: Date | undefined) => void; +} + +export function TimePicker({ date, setDate }: TimePickerProps) { + const minuteRef = React.useRef(null); + const hourRef = React.useRef(null); + const secondRef = React.useRef(null); + + return ( +
+
+ + minuteRef.current?.focus()} + /> +
+
+ + hourRef.current?.focus()} + onRightFocus={() => secondRef.current?.focus()} + /> +
+
+ + minuteRef.current?.focus()} + /> +
+
+ +
+
+ ); +} diff --git a/frontend/app/src/components/ui/calendar.tsx b/frontend/app/src/components/ui/calendar.tsx new file mode 100644 index 000000000..99b332676 --- /dev/null +++ b/frontend/app/src/components/ui/calendar.tsx @@ -0,0 +1,70 @@ +import * as React from 'react'; +import { ChevronLeftIcon, ChevronRightIcon } from '@radix-ui/react-icons'; +import { DayPicker } from 'react-day-picker'; + +import { cn } from '@/lib/utils'; +import { buttonVariants } from '@/components/ui/button'; + +export type CalendarProps = React.ComponentProps; + +function Calendar({ + className, + classNames, + showOutsideDays = true, + ...props +}: CalendarProps) { + return ( + .day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md' + : '[&:has([aria-selected])]:rounded-md', + ), + day: cn( + buttonVariants({ variant: 'ghost' }), + 'h-8 w-8 p-0 font-normal aria-selected:opacity-100', + ), + day_range_start: 'day-range-start', + day_range_end: 'day-range-end', + day_selected: + 'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground', + day_today: 'bg-accent text-accent-foreground', + day_outside: + 'day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30', + day_disabled: 'text-muted-foreground opacity-50', + day_range_middle: + 'aria-selected:bg-accent aria-selected:text-accent-foreground', + day_hidden: 'invisible', + ...classNames, + }} + components={{ + IconLeft: () => , + IconRight: () => , + }} + {...props} + /> + ); +} +Calendar.displayName = 'Calendar'; + +export { Calendar }; diff --git a/frontend/app/src/components/ui/envvar.tsx b/frontend/app/src/components/ui/envvar.tsx index 7617ce4ef..51bd5f683 100644 --- a/frontend/app/src/components/ui/envvar.tsx +++ b/frontend/app/src/components/ui/envvar.tsx @@ -33,7 +33,7 @@ const EnvGroupArray: React.FC = ({ if (!values) { setValues([]); } - }, [values]); + }, [setValues, values]); const handleValueChange = (index: number, key: string, value: any) => { const newValues = [...values]; @@ -120,6 +120,7 @@ const EnvGroupArray: React.FC = ({ {!disabled && (
diff --git a/frontend/app/src/pages/main/tenant-settings/members/components/members-columns.tsx b/frontend/app/src/pages/main/tenant-settings/members/components/members-columns.tsx index a21ec64ee..31257affc 100644 --- a/frontend/app/src/pages/main/tenant-settings/members/components/members-columns.tsx +++ b/frontend/app/src/pages/main/tenant-settings/members/components/members-columns.tsx @@ -83,17 +83,8 @@ function MemberActions({ const { handleApiError } = useApiError({}); - const actions = []; - const isCurrent = row.original.user.email !== user.email; - if (user.hasPassword && !isCurrent && meta.data?.data.allowChangePassword) { - actions.push({ - label: 'Change Password', - onClick: () => onChangePasswordClick(row.original), - }); - } - const deleteUserMutation = useMutation({ mutationKey: ['tenant-member:delete'], mutationFn: async (data: TenantMember) => { @@ -112,6 +103,15 @@ function MemberActions({ onError: handleApiError, }); + const actions = []; + + if (user.hasPassword && !isCurrent && meta.data?.allowChangePassword) { + actions.push({ + label: 'Change Password', + onClick: () => onChangePasswordClick(row.original), + }); + } + if (isCurrent) { actions.push({ label: 'Remove', diff --git a/frontend/app/src/pages/main/tenant-settings/members/index.tsx b/frontend/app/src/pages/main/tenant-settings/members/index.tsx index 886965f79..de34ba2d2 100644 --- a/frontend/app/src/pages/main/tenant-settings/members/index.tsx +++ b/frontend/app/src/pages/main/tenant-settings/members/index.tsx @@ -34,7 +34,7 @@ export default function Members() { - {meta?.data?.data.allowInvites && ( + {meta.data?.allowInvites && ( <> diff --git a/frontend/app/src/pages/main/tenant-settings/resource-limits/index.tsx b/frontend/app/src/pages/main/tenant-settings/resource-limits/index.tsx index 594bd7fb1..ea264d02b 100644 --- a/frontend/app/src/pages/main/tenant-settings/resource-limits/index.tsx +++ b/frontend/app/src/pages/main/tenant-settings/resource-limits/index.tsx @@ -58,6 +58,7 @@ export default function ResourceLimits() { hasPaymentMethods={hasPaymentMethods} active={billingState.data?.subscription} plans={billingState.data?.plans} + coupons={billingState.data?.coupons} /> diff --git a/frontend/app/src/pages/main/workers/$worker/index.tsx b/frontend/app/src/pages/main/workers/$worker/index.tsx index 92ebaa1b6..0178171cd 100644 --- a/frontend/app/src/pages/main/workers/$worker/index.tsx +++ b/frontend/app/src/pages/main/workers/$worker/index.tsx @@ -1,6 +1,6 @@ import { Separator } from '@/components/ui/separator'; -import { queries, Worker } from '@/lib/api'; -import { useQuery } from '@tanstack/react-query'; +import api, { queries, UpdateWorkerRequest, Worker } from '@/lib/api'; +import { useMutation, useQuery } from '@tanstack/react-query'; import { Link, useOutletContext, useParams } from 'react-router-dom'; import invariant from 'tiny-invariant'; import { ServerStackIcon } from '@heroicons/react/24/outline'; @@ -9,7 +9,7 @@ import { DataTable } from '@/components/molecules/data-table/data-table'; import { columns } from './components/step-runs-columns'; import { Loading } from '@/components/ui/loading.tsx'; import { TenantContextType } from '@/lib/outlet'; -import { Badge } from '@/components/ui/badge'; +import { Badge, BadgeProps } from '@/components/ui/badge'; import { Tooltip, TooltipContent, @@ -17,7 +17,15 @@ import { TooltipTrigger, } from '@/components/ui/tooltip'; import RelativeDate from '@/components/molecules/relative-date'; - +import { useApiError } from '@/lib/hooks'; +import queryClient from '@/query-client'; +import { BiDotsVertical } from 'react-icons/bi'; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from '@/components/ui/dropdown-menu'; export const isHealthy = (worker?: Worker) => { const reasons = []; @@ -42,34 +50,48 @@ export const isHealthy = (worker?: Worker) => { }; export const WorkerStatus = ({ - status, + status = 'INACTIVE', health, }: { - status?: 'ACTIVE' | 'INACTIVE'; + status?: 'ACTIVE' | 'INACTIVE' | 'PAUSED'; health: string[]; -}) => ( -
- - - - - {status === 'ACTIVE' ? 'Active' : 'Inactive'} - - - - {health.map((reason, i) => ( -
{reason}
- ))} -
-
-
-
-); +}) => { + const label: Record = { + ACTIVE: 'Active', + INACTIVE: 'Inactive', + PAUSED: 'Paused', + }; + + const variant: Record = { + ACTIVE: 'successful', + INACTIVE: 'failed', + PAUSED: 'inProgress', + }; + + return ( +
+ + + + {label[status]} + + + {health.map((reason, i) => ( +
{reason}
+ ))} +
+
+
+
+ ); +}; export default function ExpandedWorkflowRun() { const { tenant } = useOutletContext(); invariant(tenant); + const { handleApiError } = useApiError({}); + const params = useParams(); invariant(params.worker); @@ -82,6 +104,18 @@ export default function ExpandedWorkflowRun() { const healthy = isHealthy(worker); + const updateWorker = useMutation({ + mutationKey: ['worker:update', worker?.metadata.id], + mutationFn: async (data: UpdateWorkerRequest) => + (await api.workerUpdate(worker!.metadata.id, data)).data, + onSuccess: async () => { + await queryClient.invalidateQueries({ + queryKey: queries.workers.get(worker!.metadata.id).queryKey, + }); + }, + onError: handleApiError, + }); + if (!worker || workerQuery.isLoading || !workerQuery.data) { return ; } @@ -97,7 +131,33 @@ export default function ExpandedWorkflowRun() { {worker.name}
- +
+ + + + + + + { + updateWorker.mutate({ + isPaused: worker.status === 'PAUSED' ? false : true, + }); + }} + > + {worker.status === 'PAUSED' ? 'Resume' : 'Pause'} Step Run + Assignment + + + +

@@ -144,6 +204,30 @@ export default function ExpandedWorkflowRun() { ); })}

+ +

+ Worker Labels +

+
+ Worker labels are key-value pairs that can be used to prioritize + assignment of steps to specific workers.{' '} + + Learn more. + +
+
+ {!worker.labels || worker.labels.length === 0 ? ( + <> + <>No Labels Assigned. + + ) : ( + worker.labels?.map(({ key, value }) => ( + + {key}:{value} + + )) + )} +
); diff --git a/frontend/app/src/pages/main/workers/components/worker-table.tsx b/frontend/app/src/pages/main/workers/components/worker-table.tsx index 8afb0a42f..efa7e4232 100644 --- a/frontend/app/src/pages/main/workers/components/worker-table.tsx +++ b/frontend/app/src/pages/main/workers/components/worker-table.tsx @@ -34,7 +34,7 @@ export function WorkersTable() { const [columnFilters, setColumnFilters] = useState([ { id: 'status', - value: ['ACTIVE'], + value: ['ACTIVE', 'PAUSED'], }, ]); @@ -173,6 +173,7 @@ export function WorkersTable() { title: 'Status', options: [ { value: 'ACTIVE', label: 'Active' }, + { value: 'PAUSED', label: 'Paused' }, { value: 'INACTIVE', label: 'Inactive' }, ], }, diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/github-button.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/github-button.tsx new file mode 100644 index 000000000..131215d87 --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/github-button.tsx @@ -0,0 +1,36 @@ +import { Button } from '@/components/ui/button'; +import { ManagedWorkerBuildConfig } from '@/lib/api/generated/cloud/data-contracts'; +import { GitHubLogoIcon } from '@radix-ui/react-icons'; + +export default function GithubButton({ + buildConfig, + commitSha, + prefix, +}: { + buildConfig: ManagedWorkerBuildConfig; + commitSha?: string; + prefix?: string; +}) { + return ( + + ); +} + +function getHref(buildConfig: ManagedWorkerBuildConfig, commitSha?: string) { + const root = `https://github.com/${buildConfig.githubRepository.repo_owner}/${buildConfig.githubRepository.repo_name}`; + return commitSha ? root + '/commit/' + commitSha : root; +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-activity.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-activity.tsx new file mode 100644 index 000000000..7d124c10c --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-activity.tsx @@ -0,0 +1,191 @@ +import { queries } from '@/lib/api'; +import { useQuery } from '@tanstack/react-query'; +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from '@/components/ui/card'; +import { Spinner } from '@/components/ui/loading'; +import RelativeDate from '@/components/molecules/relative-date'; +import { Button } from '@/components/ui/button'; +import { ArrowRightIcon, ChevronLeftIcon } from '@radix-ui/react-icons'; +import { cn } from '@/lib/utils'; +import { useState } from 'react'; +import { + ManagedWorker, + ManagedWorkerEvent, + ManagedWorkerEventStatus, +} from '@/lib/api/generated/cloud/data-contracts'; +import { Separator } from '@/components/ui/separator'; +import { ManagedWorkerBuild } from './managed-worker-build'; +import GithubButton from './github-button'; + +export function ManagedWorkerActivity({ + managedWorker, +}: { + managedWorker: ManagedWorker | undefined; +}) { + const [buildId, setBuildId] = useState(); + + if (buildId) { + return setBuildId(undefined)} />; + } + + return ; +} + +function EventList({ + managedWorker, + setBuildId, +}: { + managedWorker: ManagedWorker | undefined; + setBuildId: (id: string) => void; +}) { + const getLogsQuery = useQuery({ + ...queries.cloud.listManagedWorkerEvents(managedWorker!.metadata.id || ''), + enabled: !!managedWorker, + refetchInterval: () => { + return 5000; + }, + }); + + if (!managedWorker || getLogsQuery.isLoading) { + return ; + } + + const events = getLogsQuery.data?.rows || []; + + return ( +
+ {getLogsQuery.isLoading && } + {events.length === 0 && ( + + + + No events found + + + + )} + {events.map((item, index) => ( + + ))} +
+ ); +} + +function Build({ buildId, back }: { buildId: string; back: () => void }) { + return ( +
+
+ +
+ + +
+ ); +} + +function ManagedWorkerEventCard({ + managedWorker, + event, + setBuildId, +}: { + managedWorker: ManagedWorker; + event: ManagedWorkerEvent; + setBuildId: (id: string) => void; +}) { + return ( + + +
+
+ + + {event.message} + +
+ +
+ {event.message} +
+ + {renderCardFooter(managedWorker, event, setBuildId)} +
+ ); +} + +function renderCardFooter( + managedWorker: ManagedWorker, + event: ManagedWorkerEvent, + setBuildId: (id: string) => void, +) { + if (event.data) { + const data = event.data as any; + + const buttons = []; + + if (data.build_id) { + buttons.push( + , + ); + } + + if (data.commit_sha) { + buttons.push( + , + ); + } + + if (buttons.length) { + return {buttons}; + } + } + + return null; +} + +const RUN_STATUS_VARIANTS: Record = { + SUCCEEDED: 'border-transparent rounded-full bg-green-500', + FAILED: 'border-transparent rounded-full bg-red-500', + CANCELLED: 'border-transparent rounded-full bg-gray-500', + IN_PROGRESS: 'border-transparent rounded-full bg-yellow-500', +}; + +function EventIndicator({ severity }: { severity: ManagedWorkerEventStatus }) { + return ( +
+ ); +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-build-logs.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-build-logs.tsx new file mode 100644 index 000000000..12aa94e2c --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-build-logs.tsx @@ -0,0 +1,28 @@ +import { queries } from '@/lib/api'; +import { useQuery } from '@tanstack/react-query'; +import LoggingComponent from '@/components/cloud/logging/logs'; + +export function ManagedWorkerBuildLogs({ buildId }: { buildId: string }) { + const getBuildLogsQuery = useQuery({ + ...queries.cloud.getBuildLogs(buildId), + refetchInterval: 5000, + }); + + const logs = getBuildLogsQuery.data?.rows || [ + { + line: 'Loading...', + timestamp: new Date().toISOString(), + instance: 'Hatchet', + }, + ]; + + return ( +
+ {}} + onTopReached={() => {}} + /> +
+ ); +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-build.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-build.tsx new file mode 100644 index 000000000..55bb63f20 --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-build.tsx @@ -0,0 +1,43 @@ +import { queries } from '@/lib/api'; +import { useQuery } from '@tanstack/react-query'; +import { Spinner } from '@/components/ui/loading'; +import { ManagedWorkerBuildLogs } from './managed-worker-build-logs'; +import RelativeDate from '@/components/molecules/relative-date'; + +export function ManagedWorkerBuild({ buildId }: { buildId: string }) { + const getBuildQuery = useQuery({ + ...queries.cloud.getBuild(buildId), + }); + + if (getBuildQuery.isLoading) { + return ; + } + + const build = getBuildQuery.data; + + return ( +
+

Build Overview

+
+
+
+ Build ID: {build?.metadata?.id} +
+
+ Created: +
+ {build?.finishTime && ( +
+ Finished: +
+ )} +
+ Status: {getBuildQuery.data?.status} +
+
+
+

Build Logs

+ +
+ ); +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-instances-columns.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-instances-columns.tsx new file mode 100644 index 000000000..27c37bf67 --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-instances-columns.tsx @@ -0,0 +1,55 @@ +import { ColumnDef } from '@tanstack/react-table'; +import { DataTableColumnHeader } from '@/components/molecules/data-table/data-table-column-header'; +import { Instance } from '@/lib/api/generated/cloud/data-contracts'; + +export type InstanceWithMetadata = Instance & { + metadata: { + id: string; + }; +}; + +export const columns: ColumnDef[] = [ + { + accessorKey: 'name', + header: ({ column }) => ( + + ), + cell: ({ row }) => ( +
+ {row.original.name} +
+ ), + enableSorting: true, + enableHiding: false, + }, + { + accessorKey: 'state', + header: ({ column }) => ( + + ), + cell: ({ row }) => ( +
{row.original.state}
+ ), + enableSorting: true, + enableHiding: false, + }, + { + accessorKey: 'commitSha', + header: ({ column }) => ( + + ), + cell: ({ row }) => { + return ( +
+ {row.original.commitSha.substring(0, 7)} +
+ ); + }, + enableSorting: false, + enableHiding: false, + }, +]; diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-instances-table.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-instances-table.tsx new file mode 100644 index 000000000..88ff88cf6 --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-instances-table.tsx @@ -0,0 +1,195 @@ +import { useMemo, useState } from 'react'; +import { useQuery } from '@tanstack/react-query'; +import { queries } from '@/lib/api'; +import invariant from 'tiny-invariant'; +import { TenantContextType } from '@/lib/outlet'; +import { useOutletContext } from 'react-router-dom'; +import { DataTable } from '@/components/molecules/data-table/data-table.tsx'; +import { columns } from './managed-worker-instances-columns'; +import { Loading } from '@/components/ui/loading.tsx'; +import { Button } from '@/components/ui/button'; +import { + Card, + CardHeader, + CardTitle, + CardDescription, + CardFooter, +} from '@/components/ui/card'; +import { capitalize } from '@/lib/utils'; +import { ArrowPathIcon } from '@heroicons/react/24/outline'; +import { VisibilityState } from '@tanstack/react-table'; +import { BiCard, BiTable } from 'react-icons/bi'; +import { Instance } from '@/lib/api/generated/cloud/data-contracts'; +import { Badge } from '@/components/ui/badge'; + +export function ManagedWorkerInstancesTable({ + managedWorkerId, +}: { + managedWorkerId: string; +}) { + const { tenant } = useOutletContext(); + invariant(tenant); + + const [columnVisibility, setColumnVisibility] = useState({}); + const [rotate, setRotate] = useState(false); + + const [cardToggle, setCardToggle] = useState(true); + + const listManagedWorkerInstancesQuery = useQuery({ + ...queries.cloud.listManagedWorkerInstances(managedWorkerId), + refetchInterval: 5000, + }); + + const data = useMemo(() => { + const data = listManagedWorkerInstancesQuery.data?.rows || []; + + return data; + }, [listManagedWorkerInstancesQuery.data?.rows]); + + if (listManagedWorkerInstancesQuery.isLoading) { + return ; + } + + const emptyState = ( + + + No Instances + +

+ There are no instances currently active for this managed worker + pool. +

+
+
+ +
+ ); + + const card: React.FC<{ data: Instance }> = ({ data }) => ( +
+
+
+

+ {data.name} +

+ +
+
+ CPUs: {data.cpus} {data.cpuKind} +
+
+ Memory: {data.memoryMb} MB +
+
+
+
+ ); + + const actions = [ + , + , + ]; + + const dataWithMetadata = data.map((d) => ({ + ...d, + metadata: { + id: d.instanceId, + }, + })); + + return ( + + ); +} + +const INSTANCE_STATUSES: Record< + string, + { + text: string; + variant: 'successful' | 'failed' | 'outline'; + } +> = { + started: { + text: 'Running', + variant: 'successful', + }, + suspended: { + text: 'Suspended', + variant: 'failed', + }, + destroyed: { + text: 'Destroyed', + variant: 'failed', + }, + stopped: { + text: 'Stopped', + variant: 'outline', + }, +}; + +const StateBadge = ({ state }: { state: string }) => { + let instanceStatus = INSTANCE_STATUSES[state]; + + if (!instanceStatus) { + instanceStatus = { + text: capitalize(state), + variant: 'outline', + }; + } + + return ( + + {capitalize(instanceStatus.text)} + + ); +}; diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-logs.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-logs.tsx new file mode 100644 index 000000000..345ee8ea0 --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-logs.tsx @@ -0,0 +1,191 @@ +import { queries } from '@/lib/api'; +import { useQuery } from '@tanstack/react-query'; +import { + LogLine, + ManagedWorker, +} from '@/lib/api/generated/cloud/data-contracts'; +import LoggingComponent from '@/components/cloud/logging/logs'; +import { useState, useEffect } from 'react'; +import { Input } from '@/components/ui/input'; +import { DateTimePicker } from '@/components/molecules/time-picker/date-time-picker'; +import { Button } from '@/components/ui/button'; +import { ArrowPathIcon } from '@heroicons/react/24/outline'; +import { ListCloudLogsQuery } from '@/lib/api/queries'; + +export function ManagedWorkerLogs({ + managedWorker, +}: { + managedWorker: ManagedWorker; +}) { + const [queryParams, setQueryParams] = useState({}); + const [beforeInput, setBeforeInput] = useState(); + const [afterInput, setAfterInput] = useState(); + const [searchInput, setSearchInput] = useState(''); + const [lastUpdatedAt, setLastUpdatedAt] = useState(); + const [mergedLogs, setMergedLogs] = useState([]); + const [rotate, setRotate] = useState(false); + + const getLogsQuery = useQuery({ + ...queries.cloud.getManagedWorkerLogs( + managedWorker?.metadata.id || '', + queryParams, + ), + enabled: !!managedWorker, + refetchInterval: 15000, + }); + + useEffect(() => { + const logs = getLogsQuery.data?.rows || []; + + if (!lastUpdatedAt && getLogsQuery.isSuccess) { + setLastUpdatedAt(getLogsQuery.dataUpdatedAt); + setMergedLogs(logs); + } else if ( + getLogsQuery.isSuccess && + getLogsQuery.dataUpdatedAt !== lastUpdatedAt + ) { + setLastUpdatedAt(getLogsQuery.dataUpdatedAt); + + setMergedLogs((prevLogs) => { + return mergeLogs(prevLogs, logs); + }); + } + }, [ + lastUpdatedAt, + getLogsQuery.isSuccess, + getLogsQuery.data, + getLogsQuery.dataUpdatedAt, + ]); + + const handleBottomReached = async () => { + if ( + getLogsQuery.isSuccess && + lastUpdatedAt && + // before input should be before the last log in the list + (!beforeInput || + beforeInput?.toISOString() > + mergedLogs[mergedLogs.length - 1]?.timestamp) + ) { + setQueryParams({ + ...queryParams, + before: beforeInput?.toISOString(), + after: mergedLogs[mergedLogs.length - 1]?.timestamp, + direction: 'forward', + }); + } + }; + + const handleTopReached = async () => { + if ( + getLogsQuery.isSuccess && + lastUpdatedAt && + // after input should be before the first log in the list + (!afterInput || afterInput?.toISOString() < mergedLogs[0]?.timestamp) + ) { + setQueryParams({ + ...queryParams, + before: mergedLogs[0]?.timestamp, + after: afterInput?.toISOString(), + direction: 'backward', + }); + } + }; + + const refreshLogs = () => { + setMergedLogs([]); + setQueryParams({ + ...queryParams, + before: beforeInput && beforeInput.toISOString(), + after: afterInput && afterInput.toISOString(), + }); + setRotate(!rotate); + }; + + const datesMatchSearch = + beforeInput?.toISOString() === queryParams?.before && + afterInput?.toISOString() === queryParams?.after; + + return ( +
+
+
+ setQueryParams({ + ...queryParams, + search: searchInput, + }) + } + > + setSearchInput(e.target.value)} + className="h-8 w-[150px] lg:w-[250px]" + /> + {/* hidden button for submitting input */} +
+
+
+ +
+ ); +} + +const mergeLogs = (existingLogs: LogLine[], newLogs: LogLine[]): LogLine[] => { + const combinedLogs = [...existingLogs, ...newLogs]; + const uniqueLogs = Array.from( + new Map( + combinedLogs.map((log) => [log.timestamp + log.instance + log.line, log]), + ).values(), + ); + + // sort logs by timestamp with collisions resolved by log line + uniqueLogs.sort((a, b) => { + if (a.timestamp === b.timestamp) { + return a.line < b.line ? -1 : 1; + } + return a.timestamp < b.timestamp ? -1 : 1; + }); + + // NOTE: this was used to truncate log lines to 300, but was causing issues with the scroll position + // in the LoggingComponent. I've left this here in case we want to revisit this in the future. + // if (uniqueLogs.length > 300) { + // // if favoring forward, truncate the newest logs + // if (favoredDirection === 'forward') { + // return uniqueLogs.slice(-300); + // } + + // return uniqueLogs.slice(0, 300); + // } + + return uniqueLogs; +}; diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-metrics.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-metrics.tsx new file mode 100644 index 000000000..d0a342005 --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/managed-worker-metrics.tsx @@ -0,0 +1,244 @@ +import { queries } from '@/lib/api'; +import { useQuery } from '@tanstack/react-query'; +import { + ManagedWorker, + SampleStream, +} from '@/lib/api/generated/cloud/data-contracts'; +import { Loading } from '@/components/ui/loading'; +import AreaChart, { + MetricValue, + format2Dec, + formatPercentTooltip, +} from '@/components/molecules/brush-chart/area-chart'; +import { useMemo, useState } from 'react'; +import { useParentSize } from '@visx/responsive'; +import { Separator } from '@/components/ui/separator'; +import { GetCloudMetricsQuery } from '@/lib/api/queries'; +import { DateTimePicker } from '@/components/molecules/time-picker/date-time-picker'; +import { Button } from '@/components/ui/button'; +import { ArrowPathIcon } from '@heroicons/react/24/outline'; + +export function ManagedWorkerMetrics({ + managedWorker, +}: { + managedWorker: ManagedWorker; +}) { + const [beforeInput, setBeforeInput] = useState(); + const [afterInput, setAfterInput] = useState(); + const [queryParams, setQueryParams] = useState({ + // default after is 1 day + after: new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString(), + }); + const [rotate, setRotate] = useState(false); + + const getCpuMetricsQuery = useQuery({ + ...queries.cloud.getManagedWorkerCpuMetrics( + managedWorker?.metadata.id || '', + queryParams, + ), + enabled: !!managedWorker, + refetchInterval: () => { + return 5000; + }, + }); + + const getMemoryMetricsQuery = useQuery({ + ...queries.cloud.getManagedWorkerMemoryMetrics( + managedWorker?.metadata.id || '', + queryParams, + ), + enabled: !!managedWorker, + refetchInterval: () => { + return 5000; + }, + }); + + const getDiskMetricsQuery = useQuery({ + ...queries.cloud.getManagedWorkerDiskMetrics( + managedWorker?.metadata.id || '', + queryParams, + ), + enabled: !!managedWorker, + refetchInterval: () => { + return 5000; + }, + }); + + if ( + getCpuMetricsQuery.isLoading || + getMemoryMetricsQuery.isLoading || + getDiskMetricsQuery.isLoading + ) { + return ; + } + + const refreshMetrics = () => { + setQueryParams({ + after: afterInput?.toISOString(), + before: beforeInput?.toISOString(), + }); + setRotate(!rotate); + }; + + const datesMatchSearch = + beforeInput?.toISOString() === queryParams?.before && + afterInput?.toISOString() === queryParams?.after; + + return ( +
+
+

+ Metrics +

+
+ + + +
+
+ +

+ CPU +

+ + {getCpuMetricsQuery.data?.length === 0 && ( + + )} + {getCpuMetricsQuery.data?.map((d, i) => { + return ( + + ); + })} +

+ Memory +

+ + {getMemoryMetricsQuery.data?.map((d, i) => { + return ( + { + return d / (1000 * 1000); + }} + yLabel="Memory (MB)" + tooltipFormat={(d) => { + return format2Dec(d) + ' MB'; + }} + /> + ); + })} +

+ Disk +

+ + {getDiskMetricsQuery.data?.map((d, i) => { + return ( + { + return d / (1000 * 1000); + }} + yLabel="Disk (MB)" + tooltipFormat={(d) => { + return format2Dec(d) + ' MB'; + }} + /> + ); + })} +
+ ); +} + +type MetricsChartProps = { + sample: SampleStream; + normalizer?: (value: number) => number; + yLabel: string; + tooltipFormat?: (d: number) => string; +}; + +function MetricsChart({ + sample, + normalizer, + yLabel, + tooltipFormat, +}: MetricsChartProps) { + const { parentRef, width, height } = useParentSize({ debounceTime: 150 }); + + const values: MetricValue[] = useMemo( + () => + sample.values?.map((v) => { + return { + date: new Date(v[0] * 1000), + value: normalizer ? normalizer(parseFloat(v[1])) : parseFloat(v[1]), + }; + }) || [], + [sample, normalizer], + ); + + return ( +
+ +
+ ); +} + +function MetricsPlaceholder({ start, end }: { start: Date; end: Date }) { + const { parentRef, width, height } = useParentSize({ debounceTime: 150 }); + + return ( +
+ +
+ ); +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/update-form.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/update-form.tsx new file mode 100644 index 000000000..a60cbc48e --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/components/update-form.tsx @@ -0,0 +1,500 @@ +import { queries } from '@/lib/api'; +import { useEffect, useState } from 'react'; +import { Button } from '@/components/ui/button'; +import { useQuery } from '@tanstack/react-query'; +import { ExclamationTriangleIcon, PlusIcon } from '@heroicons/react/24/outline'; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from '@/components/ui/select'; +import { z } from 'zod'; +import { Controller, useForm } from 'react-hook-form'; +import { zodResolver } from '@hookform/resolvers/zod'; +import { Label } from '@/components/ui/label'; +import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; +import { Input } from '@/components/ui/input'; +import EnvGroupArray, { KeyValueType } from '@/components/ui/envvar'; +import { + createOrUpdateManagedWorkerSchema, + getRepoName, + getRepoOwner, + getRepoOwnerName, + machineTypes, +} from '../../create/components/create-worker-form'; +import { ManagedWorker } from '@/lib/api/generated/cloud/data-contracts'; +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from '@/components/ui/accordion'; + +interface UpdateWorkerFormProps { + onSubmit: (opts: z.infer) => void; + isLoading: boolean; + fieldErrors?: Record; + managedWorker: ManagedWorker; +} + +export default function UpdateWorkerForm({ + onSubmit, + isLoading, + fieldErrors, + managedWorker, +}: UpdateWorkerFormProps) { + const { + watch, + handleSubmit, + control, + setValue, + formState: { errors }, + } = useForm>({ + resolver: zodResolver(createOrUpdateManagedWorkerSchema), + defaultValues: { + name: managedWorker.name, + buildConfig: { + githubInstallationId: managedWorker.buildConfig.githubInstallationId, + githubRepositoryBranch: + managedWorker.buildConfig.githubRepositoryBranch, + githubRepositoryName: + managedWorker.buildConfig.githubRepository.repo_name, + githubRepositoryOwner: + managedWorker.buildConfig.githubRepository.repo_owner, + steps: managedWorker.buildConfig.steps?.map((step) => ({ + buildDir: step.buildDir, + dockerfilePath: step.dockerfilePath, + })) || [ + { + buildDir: '.', + dockerfilePath: './Dockerfile', + }, + ], + }, + runtimeConfig: { + numReplicas: managedWorker.runtimeConfig.numReplicas, + cpuKind: managedWorker.runtimeConfig.cpuKind, + cpus: managedWorker.runtimeConfig.cpus, + memoryMb: managedWorker.runtimeConfig.memoryMb, + envVars: managedWorker.runtimeConfig.envVars, + }, + }, + }); + + const [machineType, setMachineType] = useState( + '1 CPU, 1 GB RAM (shared CPU)', + ); + + const installation = watch('buildConfig.githubInstallationId'); + const repoOwner = watch('buildConfig.githubRepositoryOwner'); + const repoName = watch('buildConfig.githubRepositoryName'); + const repoOwnerName = getRepoOwnerName(repoOwner, repoName); + const branch = watch('buildConfig.githubRepositoryBranch'); + + const listInstallationsQuery = useQuery({ + ...queries.github.listInstallations, + }); + + const listReposQuery = useQuery({ + ...queries.github.listRepos(installation), + }); + + const listBranchesQuery = useQuery({ + ...queries.github.listBranches(installation, repoOwner, repoName), + }); + + const [envVars, setEnvVars] = useState( + envVarsRecordToKeyValueType(managedWorker.runtimeConfig.envVars), + ); + + const nameError = errors.name?.message?.toString() || fieldErrors?.name; + const buildDirError = + errors.buildConfig?.steps?.[0]?.buildDir?.message?.toString() || + fieldErrors?.buildDir; + const dockerfilePathError = + errors.buildConfig?.steps?.[0]?.dockerfilePath?.message?.toString() || + fieldErrors?.dockerfilePath; + const numReplicasError = + errors.runtimeConfig?.numReplicas?.message?.toString() || + fieldErrors?.numReplicas; + const envVarsError = + errors.runtimeConfig?.envVars?.message?.toString() || fieldErrors?.envVars; + const cpuKindError = + errors.runtimeConfig?.cpuKind?.message?.toString() || fieldErrors?.cpuKind; + const cpusError = + errors.runtimeConfig?.cpus?.message?.toString() || fieldErrors?.cpus; + const memoryMbError = + errors.runtimeConfig?.memoryMb?.message?.toString() || + fieldErrors?.memoryMb; + const githubInstallationIdError = + errors.buildConfig?.githubInstallationId?.message?.toString() || + fieldErrors?.githubInstallationId; + const githubRepositoryOwnerError = + errors.buildConfig?.githubRepositoryOwner?.message?.toString() || + fieldErrors?.githubRepositoryOwner; + const githubRepositoryNameError = + errors.buildConfig?.githubRepositoryName?.message?.toString() || + fieldErrors?.githubRepositoryName; + const githubRepositoryBranchError = + errors.buildConfig?.githubRepositoryBranch?.message?.toString() || + fieldErrors?.githubRepositoryBranch; + + useEffect(() => { + if ( + listInstallationsQuery.isSuccess && + listInstallationsQuery.data.rows.length > 0 && + !installation + ) { + setValue( + 'buildConfig.githubInstallationId', + managedWorker.buildConfig.githubInstallationId || + listInstallationsQuery.data.rows[0].metadata.id, + ); + } + }, [managedWorker, listInstallationsQuery, setValue, installation]); + + // if there are no github accounts linked, ask the user to link one + if ( + listInstallationsQuery.isSuccess && + listInstallationsQuery.data.rows.length === 0 + ) { + return ( + + + Link a Github account + + You don't have any Github accounts linked. Please{' '} + + link a Github account + {' '} + first. + + + ); + } + + return ( + <> +
+ Change the configuration of your worker. This will trigger a + redeployment. +
+
+
+
+ + { + return ( + + ); + }} + /> + {nameError && ( +
{nameError}
+ )} +
+
+ + + + Build configuration + + + + { + return ( + + ); + }} + /> + {githubInstallationIdError && ( +
+ {githubInstallationIdError} +
+ )} + + + { + return ( + + ); + }} + /> + {githubRepositoryOwnerError && ( +
+ {githubRepositoryOwnerError} +
+ )} + {githubRepositoryNameError && ( +
+ {githubRepositoryNameError} +
+ )} + + { + return ( + + ); + }} + /> + {githubRepositoryBranchError && ( +
+ {githubRepositoryBranchError} +
+ )} + + { + return ( + + ); + }} + /> + {buildDirError && ( +
{buildDirError}
+ )} + + { + return ( + + ); + }} + /> + {dockerfilePathError && ( +
+ {dockerfilePathError} +
+ )} +
+
+ + + Runtime configuration + + +
+ Configure the runtime settings for this worker. +
+ + { + return ( + { + if (e.target.value === '') { + field.onChange(e.target.value); + return; + } + + field.onChange(parseInt(e.target.value)); + }} + min={1} + max={16} + id="numReplicas" + placeholder="1" + /> + ); + }} + /> + {numReplicasError && ( +
{numReplicasError}
+ )} + + { + return ( + + ); + }} + /> + {cpuKindError && ( +
{cpuKindError}
+ )} + {cpusError && ( +
{cpusError}
+ )} + {memoryMbError && ( +
{memoryMbError}
+ )} + + { + setEnvVars(value); + setValue( + 'runtimeConfig.envVars', + value.reduce>((acc, item) => { + acc[item.key] = item.value; + return acc; + }, {}), + ); + }} + /> + {envVarsError && ( +
{envVarsError}
+ )} +
+
+
+ +
+ + ); +} + +function envVarsRecordToKeyValueType( + envVars: Record, +): KeyValueType[] { + return Object.entries(envVars).map(([key, value]) => ({ + key, + value, + hidden: false, + locked: false, + deleted: false, + })); +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/index.tsx b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/index.tsx new file mode 100644 index 000000000..91d948710 --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/$managed-worker/index.tsx @@ -0,0 +1,179 @@ +import { Separator } from '@/components/ui/separator'; +import { queries } from '@/lib/api'; +import { useMutation, useQuery } from '@tanstack/react-query'; +import { useNavigate, useParams } from 'react-router-dom'; +import invariant from 'tiny-invariant'; +import { relativeDate } from '@/lib/utils'; +import { CpuChipIcon } from '@heroicons/react/24/outline'; +import { Loading } from '@/components/ui/loading.tsx'; +import { useState } from 'react'; +import { Button } from '@/components/ui/button'; +import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; +import { ConfirmDialog } from '@/components/molecules/confirm-dialog'; +import { ManagedWorkerLogs } from './components/managed-worker-logs'; +import { ManagedWorkerMetrics } from './components/managed-worker-metrics'; +import { ManagedWorkerActivity } from './components/managed-worker-activity'; +import { CreateManagedWorkerRequest } from '@/lib/api/generated/cloud/data-contracts'; +import { ManagedWorkerInstancesTable } from './components/managed-worker-instances-table'; +import UpdateWorkerForm from './components/update-form'; +import { cloudApi } from '@/lib/api/api'; +import { useApiError } from '@/lib/hooks'; +import GithubButton from './components/github-button'; + +export default function ExpandedWorkflow() { + const navigate = useNavigate(); + const [deleteWorker, setDeleteWorker] = useState(false); + + const params = useParams(); + invariant(params['managed-worker']); + + const managedWorkerQuery = useQuery({ + ...queries.cloud.getManagedWorker(params['managed-worker']), + refetchInterval: 5000, + }); + + const [fieldErrors, setFieldErrors] = useState>({}); + const { handleApiError } = useApiError({ + setFieldErrors: setFieldErrors, + }); + + const createManagedWorkerMutation = useMutation({ + mutationKey: ['managed-worker:create', params['managed-worker']], + mutationFn: async (data: CreateManagedWorkerRequest) => { + invariant(managedWorker); + const res = await cloudApi.managedWorkerUpdate( + managedWorker.metadata.id, + data, + ); + return res.data; + }, + onSuccess: () => { + managedWorkerQuery.refetch(); + }, + onError: handleApiError, + }); + + const deleteManagedWorkerMutation = useMutation({ + mutationKey: ['managed-worker:delete', params['managed-worker']], + mutationFn: async () => { + invariant(managedWorker); + const res = await cloudApi.managedWorkerDelete(managedWorker.metadata.id); + return res.data; + }, + onSuccess: () => { + setDeleteWorker(false); + navigate('/workers/managed-workers'); + }, + onError: handleApiError, + }); + + if (managedWorkerQuery.isLoading || !managedWorkerQuery.data) { + return ; + } + + const managedWorker = managedWorkerQuery.data; + + return ( +
+
+
+
+ +

+ {managedWorker.name} +

+
+
+
+
+ Created {relativeDate(managedWorker.metadata.createdAt)} +
+ +
+
+ + + + Activity + + + Instances + + + Logs + + + Metrics + + + Configuration + + + + + + +

+ Instances +

+ + +
+ +

+ Logs +

+ + +
+ + + + +

+ Configuration +

+ + + +

+ Danger Zone +

+ + + + +
+
+
+
+ ); +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/components/managed-worker-columns.tsx b/frontend/app/src/pages/main/workers/managed-workers/components/managed-worker-columns.tsx new file mode 100644 index 000000000..070f100ac --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/components/managed-worker-columns.tsx @@ -0,0 +1,69 @@ +import { ColumnDef } from '@tanstack/react-table'; +import { Link } from 'react-router-dom'; +import { ChevronRightIcon } from '@radix-ui/react-icons'; +import RelativeDate from '@/components/molecules/relative-date'; +import { DataTableColumnHeader } from '@/components/molecules/data-table/data-table-column-header'; +import { ManagedWorker } from '@/lib/api/generated/cloud/data-contracts'; + +export const columns: ColumnDef[] = [ + { + accessorKey: 'name', + header: ({ column }) => ( + + ), + cell: ({ row }) => ( + +
+ {row.original.name} +
+ + ), + enableSorting: true, + enableHiding: false, + }, + { + accessorKey: 'createdAt', + header: ({ column }) => ( + + ), + sortingFn: (a, b) => { + return ( + new Date(a.original.metadata.createdAt).getTime() - + new Date(b.original.metadata.createdAt).getTime() + ); + }, + cell: ({ row }) => { + return ( +
+ +
+ ); + }, + enableSorting: true, + enableHiding: true, + }, + { + header: () => <>, + accessorKey: 'chevron', + cell: ({ row }) => { + return ( +
+ +
+
+ +
+ ); + }, + enableSorting: false, + enableHiding: false, + }, +]; diff --git a/frontend/app/src/pages/main/workers/managed-workers/components/managed-workers-table.tsx b/frontend/app/src/pages/main/workers/managed-workers/components/managed-workers-table.tsx new file mode 100644 index 000000000..70faf85bd --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/components/managed-workers-table.tsx @@ -0,0 +1,159 @@ +import { useMemo, useState } from 'react'; +import { useQuery } from '@tanstack/react-query'; +import { queries } from '@/lib/api'; +import invariant from 'tiny-invariant'; +import { TenantContextType } from '@/lib/outlet'; +import { Link, useOutletContext } from 'react-router-dom'; +import { DataTable } from '@/components/molecules/data-table/data-table.tsx'; +import { columns } from './managed-worker-columns'; +import { Loading } from '@/components/ui/loading.tsx'; +import { Button } from '@/components/ui/button'; +import { + Card, + CardHeader, + CardTitle, + CardDescription, + CardFooter, +} from '@/components/ui/card'; +import { ArrowPathIcon, CpuChipIcon } from '@heroicons/react/24/outline'; +import { SortingState, VisibilityState } from '@tanstack/react-table'; +import { BiCard, BiTable } from 'react-icons/bi'; +import RelativeDate from '@/components/molecules/relative-date'; +import { ManagedWorker } from '@/lib/api/generated/cloud/data-contracts'; +import GithubButton from '../$managed-worker/components/github-button'; + +export function ManagedWorkersTable() { + const { tenant } = useOutletContext(); + invariant(tenant); + + const [sorting, setSorting] = useState([ + { + id: 'lastRun', + desc: true, + }, + ]); + const [columnVisibility, setColumnVisibility] = useState({}); + const [rotate, setRotate] = useState(false); + + const [cardToggle, setCardToggle] = useState(true); + + const listManagedWorkersQuery = useQuery({ + ...queries.cloud.listManagedWorkers(tenant.metadata.id), + refetchInterval: 5000, + }); + + const data = useMemo(() => { + const data = listManagedWorkersQuery.data?.rows || []; + + return data; + }, [listManagedWorkersQuery.data?.rows]); + + if (listManagedWorkersQuery.isLoading) { + return ; + } + + const emptyState = ( + + + No Managed Workers + +

+ There are no managed workers created in this tenant. +

+
+
+ +
+ ); + + const card: React.FC<{ data: ManagedWorker }> = ({ data }) => ( +
+
+
+ +

+ {data.name} +

+
+

+ Created +

+ +

+ {data.runtimeConfig.numReplicas}{' '} + {data.runtimeConfig.numReplicas == 1 ? 'instance' : 'instances'} with{' '} + {data.runtimeConfig.cpus} CPUs and {data.runtimeConfig.memoryMb} MB + memory +

+
+
+
+ + + +
+
+
+ ); + + const actions = [ + , + , + ]; + + return ( + + ); +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/create/components/create-worker-form.tsx b/frontend/app/src/pages/main/workers/managed-workers/create/components/create-worker-form.tsx new file mode 100644 index 000000000..b0399bf3f --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/create/components/create-worker-form.tsx @@ -0,0 +1,598 @@ +import { queries } from '@/lib/api'; +import { useEffect, useState } from 'react'; +import { Button } from '@/components/ui/button'; +import { useQuery } from '@tanstack/react-query'; +import { ExclamationTriangleIcon, PlusIcon } from '@heroicons/react/24/outline'; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from '@/components/ui/select'; +import { z } from 'zod'; +import { Controller, useForm } from 'react-hook-form'; +import { zodResolver } from '@hookform/resolvers/zod'; +import { Label } from '@/components/ui/label'; +import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; +import { Input } from '@/components/ui/input'; +import { Step, Steps } from '@/components/ui/steps'; +import EnvGroupArray, { KeyValueType } from '@/components/ui/envvar'; + +export const machineTypes = [ + { + title: '1 CPU, 1 GB RAM (shared CPU)', + cpuKind: 'shared', + cpus: 1, + memoryMb: 1024, + }, + { + title: '1 CPU, 2 GB RAM (shared CPU)', + cpuKind: 'shared', + cpus: 1, + memoryMb: 2048, + }, + { + title: '2 CPU, 2 GB RAM (shared CPU)', + cpuKind: 'shared', + cpus: 2, + memoryMb: 2048, + }, + { + title: '2 CPU, 4 GB RAM (shared CPU)', + cpuKind: 'shared', + cpus: 2, + memoryMb: 4096, + }, + { + title: '4 CPU, 8 GB RAM (shared CPU)', + cpuKind: 'shared', + cpus: 4, + memoryMb: 8192, + }, + { + title: '8 CPU, 16 GB RAM (shared CPU)', + cpuKind: 'shared', + cpus: 8, + memoryMb: 16384, + }, + { + title: '1 CPU, 1 GB RAM (performance CPU)', + cpuKind: 'performance', + cpus: 1, + memoryMb: 1024, + }, + { + title: '1 CPU, 2 GB RAM (performance CPU)', + cpuKind: 'performance', + cpus: 1, + memoryMb: 2048, + }, + { + title: '2 CPU, 2 GB RAM (performance CPU)', + cpuKind: 'performance', + cpus: 2, + memoryMb: 2048, + }, + { + title: '2 CPU, 4 GB RAM (performance CPU)', + cpuKind: 'performance', + cpus: 2, + memoryMb: 4096, + }, + { + title: '4 CPU, 8 GB RAM (performance CPU)', + cpuKind: 'performance', + cpus: 4, + memoryMb: 8192, + }, + { + title: '8 CPU, 16 GB RAM (performance CPU)', + cpuKind: 'performance', + cpus: 8, + memoryMb: 16384, + }, +]; + +export const createOrUpdateManagedWorkerSchema = z.object({ + name: z.string(), + buildConfig: z.object({ + githubInstallationId: z.string().uuid().length(36), + githubRepositoryOwner: z.string(), + githubRepositoryName: z.string(), + githubRepositoryBranch: z.string(), + steps: z.array( + z.object({ + buildDir: z.string(), + dockerfilePath: z.string(), + }), + ), + }), + runtimeConfig: z.object({ + numReplicas: z.number().min(0).max(16), + envVars: z.record(z.string()), + cpuKind: z.string(), + cpus: z.number(), + memoryMb: z.number(), + }), +}); + +interface CreateWorkerFormProps { + onSubmit: (opts: z.infer) => void; + isLoading: boolean; + fieldErrors?: Record; +} + +export default function CreateWorkerForm({ + onSubmit, + isLoading, + fieldErrors, +}: CreateWorkerFormProps) { + const { + watch, + handleSubmit, + control, + setValue, + formState: { errors }, + } = useForm>({ + resolver: zodResolver(createOrUpdateManagedWorkerSchema), + defaultValues: { + buildConfig: { + steps: [ + { + buildDir: '.', + dockerfilePath: './Dockerfile', + }, + ], + }, + runtimeConfig: { + numReplicas: 1, + cpuKind: 'shared', + cpus: 1, + memoryMb: 1024, + envVars: {}, + }, + }, + }); + + const [machineType, setMachineType] = useState( + '1 CPU, 1 GB RAM (shared CPU)', + ); + + const installation = watch('buildConfig.githubInstallationId'); + const repoOwner = watch('buildConfig.githubRepositoryOwner'); + const repoName = watch('buildConfig.githubRepositoryName'); + const repoOwnerName = getRepoOwnerName(repoOwner, repoName); + const branch = watch('buildConfig.githubRepositoryBranch'); + + const listInstallationsQuery = useQuery({ + ...queries.github.listInstallations, + }); + + const listReposQuery = useQuery({ + ...queries.github.listRepos(installation), + }); + + const listBranchesQuery = useQuery({ + ...queries.github.listBranches(installation, repoOwner, repoName), + }); + + const [envVars, setEnvVars] = useState([]); + + const nameError = errors.name?.message?.toString() || fieldErrors?.name; + const buildDirError = + errors.buildConfig?.steps?.[0]?.buildDir?.message?.toString() || + fieldErrors?.buildDir; + const dockerfilePathError = + errors.buildConfig?.steps?.[0]?.dockerfilePath?.message?.toString() || + fieldErrors?.dockerfilePath; + const numReplicasError = + errors.runtimeConfig?.numReplicas?.message?.toString() || + fieldErrors?.numReplicas; + const envVarsError = + errors.runtimeConfig?.envVars?.message?.toString() || fieldErrors?.envVars; + const cpuKindError = + errors.runtimeConfig?.cpuKind?.message?.toString() || fieldErrors?.cpuKind; + const cpusError = + errors.runtimeConfig?.cpus?.message?.toString() || fieldErrors?.cpus; + const memoryMbError = + errors.runtimeConfig?.memoryMb?.message?.toString() || + fieldErrors?.memoryMb; + const githubInstallationIdError = + errors.buildConfig?.githubInstallationId?.message?.toString() || + fieldErrors?.githubInstallationId; + const githubRepositoryOwnerError = + errors.buildConfig?.githubRepositoryOwner?.message?.toString() || + fieldErrors?.githubRepositoryOwner; + const githubRepositoryNameError = + errors.buildConfig?.githubRepositoryName?.message?.toString() || + fieldErrors?.githubRepositoryName; + const githubRepositoryBranchError = + errors.buildConfig?.githubRepositoryBranch?.message?.toString() || + fieldErrors?.githubRepositoryBranch; + + useEffect(() => { + if ( + listInstallationsQuery.isSuccess && + listInstallationsQuery.data.rows.length > 0 && + !installation + ) { + setValue( + 'buildConfig.githubInstallationId', + listInstallationsQuery.data.rows[0].metadata.id, + ); + } + }, [listInstallationsQuery, setValue, installation]); + + // if there are no github accounts linked, ask the user to link one + if ( + listInstallationsQuery.isSuccess && + listInstallationsQuery.data.rows.length === 0 + ) { + return ( + + + Link a Github account + + You don't have any Github accounts linked. Please{' '} + + link a Github account + {' '} + first. + + + ); + } + + return ( + <> +
+ Create a new managed worker. +
+ + +
+
+ Give your worker a name. +
+ + { + return ( + + ); + }} + /> + {nameError && ( +
{nameError}
+ )} +
+
+ +
+
+ Configure the Github repository the worker should deploy from. +
+ +
+ + { + return ( + + ); + }} + /> + {githubInstallationIdError && ( +
+ {githubInstallationIdError} +
+ )} + + + { + return ( + + ); + }} + /> + {githubRepositoryOwnerError && ( +
+ {githubRepositoryOwnerError} +
+ )} + {githubRepositoryNameError && ( +
+ {githubRepositoryNameError} +
+ )} + + { + return ( + + ); + }} + /> + {githubRepositoryBranchError && ( +
+ {githubRepositoryBranchError} +
+ )} + + { + return ( + + ); + }} + /> + {buildDirError && ( +
{buildDirError}
+ )} + + { + return ( + + ); + }} + /> + {dockerfilePathError && ( +
+ {dockerfilePathError} +
+ )} +
+
+
+ +
+
+ Configure the runtime settings for this worker. +
+ + { + return ( + { + if (e.target.value === '') { + field.onChange(e.target.value); + return; + } + + field.onChange(parseInt(e.target.value)); + }} + min={0} + max={16} + id="numReplicas" + placeholder="1" + /> + ); + }} + /> + {numReplicasError && ( +
{numReplicasError}
+ )} + + { + return ( + + ); + }} + /> + {cpuKindError && ( +
{cpuKindError}
+ )} + {cpusError && ( +
{cpusError}
+ )} + {memoryMbError && ( +
{memoryMbError}
+ )} + + { + setEnvVars(value); + setValue( + 'runtimeConfig.envVars', + value.reduce>((acc, item) => { + acc[item.key] = item.value; + return acc; + }, {}), + ); + }} + /> + {envVarsError && ( +
{envVarsError}
+ )} +
+
+ +
+
+ Review the settings for this worker. +
+ +
+
+
+ + ); +} + +export function getRepoOwnerName(repoOwner: string, repoName: string) { + if (!repoOwner || !repoName) { + return; + } + return `${repoOwner}::${repoName}`; +} + +export function getRepoOwner(repoOwnerName?: string) { + if (!repoOwnerName) { + return; + } + + const splArr = repoOwnerName.split('::'); + if (splArr.length > 1) { + return splArr[0]; + } +} + +export function getRepoName(repoOwnerName?: string) { + if (!repoOwnerName) { + return; + } + + const splArr = repoOwnerName.split('::'); + if (splArr.length > 1) { + return splArr[1]; + } +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/create/index.tsx b/frontend/app/src/pages/main/workers/managed-workers/create/index.tsx new file mode 100644 index 000000000..6cd08e2ff --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/create/index.tsx @@ -0,0 +1,56 @@ +import { Separator } from '@/components/ui/separator'; +import invariant from 'tiny-invariant'; +import { useNavigate, useOutletContext } from 'react-router-dom'; +import { TenantContextType } from '@/lib/outlet'; +import { ServerStackIcon } from '@heroicons/react/24/outline'; +import CreateWorkerForm from './components/create-worker-form'; +import { useMutation } from '@tanstack/react-query'; +import { CreateManagedWorkerRequest } from '@/lib/api/generated/cloud/data-contracts'; +import { cloudApi } from '@/lib/api/api'; +import { useState } from 'react'; +import { useApiError } from '@/lib/hooks'; + +export default function CreateWorker() { + const navigate = useNavigate(); + + const { tenant } = useOutletContext(); + invariant(tenant); + + const [fieldErrors, setFieldErrors] = useState>({}); + const { handleApiError } = useApiError({ + setFieldErrors: setFieldErrors, + }); + + const createManagedWorkerMutation = useMutation({ + mutationKey: ['managed-worker:create', tenant], + mutationFn: async (data: CreateManagedWorkerRequest) => { + const res = await cloudApi.managedWorkerCreate(tenant.metadata.id, data); + return res.data; + }, + onSuccess: (data) => { + navigate(`/workers/managed-workers/${data.metadata.id}`); + }, + onError: handleApiError, + }); + + return ( +
+
+
+
+ +

+ New Worker +

+
+
+ + +
+
+ ); +} diff --git a/frontend/app/src/pages/main/workers/managed-workers/index.tsx b/frontend/app/src/pages/main/workers/managed-workers/index.tsx new file mode 100644 index 000000000..b2c35b33b --- /dev/null +++ b/frontend/app/src/pages/main/workers/managed-workers/index.tsx @@ -0,0 +1,28 @@ +import { Separator } from '@/components/ui/separator'; +import invariant from 'tiny-invariant'; +import { Link, useOutletContext } from 'react-router-dom'; +import { TenantContextType } from '@/lib/outlet'; +import { ManagedWorkersTable } from './components/managed-workers-table'; +import { Button } from '@/components/ui/button'; + +export default function ManagedWorkers() { + const { tenant } = useOutletContext(); + invariant(tenant); + + return ( +
+
+
+

+ Managed Worker Pools +

+ + + +
+ + +
+
+ ); +} diff --git a/frontend/app/src/pages/main/workflow-runs/$run/components/step-run-events.tsx b/frontend/app/src/pages/main/workflow-runs/$run/components/step-run-events.tsx index 152c60701..1350a5519 100644 --- a/frontend/app/src/pages/main/workflow-runs/$run/components/step-run-events.tsx +++ b/frontend/app/src/pages/main/workflow-runs/$run/components/step-run-events.tsx @@ -22,7 +22,14 @@ import { Button } from '@/components/ui/button'; import { ArrowRightIcon, ChevronRightIcon } from '@radix-ui/react-icons'; import { Link } from 'react-router-dom'; import { cn } from '@/lib/utils'; -import { useMemo, useState } from 'react'; +import React, { useMemo, useState } from 'react'; +import { + SemaphoreEventData, + SemaphoreExtra, + columns, + mapSemaphoreExtra, +} from './step-runs-worker-label-columns'; +import { DataTable } from '@/components/molecules/data-table/data-table'; export function StepRunEvents({ stepRun }: { stepRun: StepRun | undefined }) { const getLogsQuery = useQuery({ @@ -125,7 +132,9 @@ function StepRunEventCard({ event }: { event: StepRunEvent }) { {event.message} - + + + {renderCardFooter(event)} ); @@ -202,6 +211,48 @@ function getTitleFromReason(reason: StepRunEventReason, message: string) { return REASON_TO_TITLE[reason] || message; } +const RenderSemaphoreExtra: React.FC<{ event: StepRunEvent }> = ({ event }) => { + const state = useMemo(() => { + const data = (event?.data as { semaphore?: SemaphoreEventData })?.semaphore; + if (!data) { + return; + } + + return mapSemaphoreExtra(data) as unknown as SemaphoreExtra[]; + }, [event]); + + const [isCollapsed, setIsCollapsed] = useState(true); + + const toggleCollapse = () => { + setIsCollapsed(!isCollapsed); + }; + + if (!state) { + return <>; + } else { + return ( +
+
+ + + {' '} + Desired Worker Labels +
+ {!isCollapsed && ( +
+ +
+ )} +
+ ); + } +}; + function renderCardFooter(event: StepRunEvent) { if (event.data) { const data = event.data as any; diff --git a/frontend/app/src/pages/main/workflow-runs/$run/components/step-run-playground.tsx b/frontend/app/src/pages/main/workflow-runs/$run/components/step-run-playground.tsx index 1e1de5f10..51e0fbc68 100644 --- a/frontend/app/src/pages/main/workflow-runs/$run/components/step-run-playground.tsx +++ b/frontend/app/src/pages/main/workflow-runs/$run/components/step-run-playground.tsx @@ -315,19 +315,19 @@ export function StepRunPlayground({ )}
- +
+ + Events + Output Logs - - Events -
- + + + - - -
{isLoading && disabled && ( diff --git a/frontend/app/src/pages/main/workflow-runs/$run/components/step-runs-worker-label-columns.tsx b/frontend/app/src/pages/main/workflow-runs/$run/components/step-runs-worker-label-columns.tsx new file mode 100644 index 000000000..5833ea4c2 --- /dev/null +++ b/frontend/app/src/pages/main/workflow-runs/$run/components/step-runs-worker-label-columns.tsx @@ -0,0 +1,165 @@ +import { ColumnDef } from '@tanstack/react-table'; +import { DataTableColumnHeader } from '@/components/molecules/data-table/data-table-column-header'; +import { cn } from '@/lib/utils'; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from '@/components/ui/tooltip'; + +interface WorkerLabel { + key: string; + intValue: number; + strValue: string; +} + +interface DesiredWorkerLabel extends WorkerLabel { + is_true: boolean; + weight: number; + comparator: string; + required: boolean; +} + +export interface SemaphoreEventData { + desired_worker_labels?: DesiredWorkerLabel[]; + actual_worker_labels?: WorkerLabel[]; +} + +export const mapSemaphoreExtra = (data: SemaphoreEventData) => { + return (data.desired_worker_labels || []).map((label) => { + const actual = data.actual_worker_labels?.find( + (actual) => actual.key === label.key, + ); + return { + metadata: { id: 'key', createdAt: new Date(), updatedAt: new Date() }, // Hack to make the table work + key: label.key, + desired: label.intValue || label.strValue, + actual: actual?.intValue || actual?.strValue || 'N/A', + comparator: label.comparator, + weight: label.weight, + is_true: label.is_true, + required: label.required, + }; + }); +}; + +const COMPARATOR_MAP: { [key: string]: string } = { + EQUAL: '==', + NOT_EQUAL: '!=', + GREATER_THAN: '>', + LESS_THAN: '<', + GREATER_THAN_OR_EQUAL: '>=', + LESS_THAN_OR_EQUAL: '<=', +}; + +export type SemaphoreExtra = ReturnType[0]; + +const LABEL_STATUS_VARIANTS: Record = { + true: 'border-transparent rounded-full bg-green-500', + fail_required: 'border-transparent rounded-full bg-red-500', + fail_not_required: 'border-transparent rounded-full bg-yellow-500', +}; + +function LabelStatus({ + is_true, + required, +}: { + is_true: boolean; + required: boolean; +}) { + return ( + + + +
+ + + {is_true + ? 'Actual value matches desired value' + : required + ? 'Actual value does not match desired value and is required' + : 'Actual value does not match desired value but is not required'} + + + + ); +} + +export const columns: ColumnDef[] = [ + { + accessorKey: 'key', + header: ({ column }) => ( + + ), + cell: ({ row }) => { + return ( +
+ + {row.original.key} +
+ ); + }, + enableSorting: false, + enableHiding: false, + }, + { + accessorKey: 'desired', + header: ({ column }) => ( + + ), + cell: ({ row }) => { + return ( +
+ {row.original.desired} +
+ ); + }, + enableSorting: false, + enableHiding: false, + }, + { + accessorKey: 'comparator', + header: () => <>, + cell: ({ row }) => { + return ( +
+ {row.original.comparator in COMPARATOR_MAP + ? COMPARATOR_MAP[row.original.comparator] + : row.original.comparator} +
+ ); + }, + enableSorting: false, + enableHiding: false, + }, + { + accessorKey: 'actual', + header: ({ column }) => ( + + ), + cell: ({ row }) => { + return ( +
+ {row.original.actual} +
+ ); + }, + enableSorting: false, + enableHiding: false, + }, +]; diff --git a/frontend/app/src/pages/main/workflow-runs/$run/index.tsx b/frontend/app/src/pages/main/workflow-runs/$run/index.tsx index a45e00aff..51c66c47d 100644 --- a/frontend/app/src/pages/main/workflow-runs/$run/index.tsx +++ b/frontend/app/src/pages/main/workflow-runs/$run/index.tsx @@ -2,6 +2,7 @@ import { Separator } from '@/components/ui/separator'; import api, { StepRun, StepRunStatus, + WorkflowRun, WorkflowRunStatus, queries, } from '@/lib/api'; @@ -28,6 +29,13 @@ import { } from '@/components/ui/dropdown-menu'; import { BiDotsVertical } from 'react-icons/bi'; import { useApiError } from '@/lib/hooks'; +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, +} from '@/components/ui/dialog'; +import { CodeEditor } from '@/components/ui/code-editor'; export const WORKFLOW_RUN_TERMINAL_STATUSES = [ WorkflowRunStatus.CANCELLED, @@ -44,6 +52,8 @@ export default function ExpandedWorkflowRun() { const params = useParams(); invariant(params.run); + const [showInputDialog, setShowInputDialog] = useState(false); + const runQuery = useQuery({ ...queries.workflowRuns.get(tenant.metadata.id, params.run), refetchInterval: (query) => { @@ -113,6 +123,23 @@ export default function ExpandedWorkflowRun() { onError: handleApiError, }); + const replayWorkflowRunsMutation = useMutation({ + mutationKey: ['workflow-run:update:replay', tenant.metadata.id], + mutationFn: async () => { + if (!runQuery.data) { + return; + } + + await api.workflowRunUpdateReplay(tenant.metadata.id, { + workflowRunIds: [runQuery.data?.metadata.id], + }); + }, + onSuccess: () => { + runQuery.refetch(); + }, + onError: handleApiError, + }); + if (runQuery.isLoading || !runQuery.data) { return ; } @@ -167,6 +194,23 @@ export default function ExpandedWorkflowRun() { + { + setShowInputDialog(true); + }} + > + View workflow input + + { + replayWorkflowRunsMutation.mutate(); + }} + > + Replay workflow + { @@ -179,6 +223,16 @@ export default function ExpandedWorkflowRun() {
+ { + if (!open) { + setShowInputDialog(false); + } + }} + > + {showInputDialog && } +
Created @@ -325,3 +379,33 @@ function TriggeringCronSection({ cron }: { cron: string }) {
); } + +function WorkflowRunInputDialog({ wr }: { wr: WorkflowRun }) { + const getInputQuery = useQuery({ + ...queries.workflowRuns.getInput(wr.tenantId, wr.metadata.id), + }); + + if (getInputQuery.isLoading) { + return ; + } + + if (!getInputQuery.data) { + return null; + } + + const input = getInputQuery.data; + + return ( + + + {wr.displayName} Input + + + + ); +} diff --git a/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-columns.tsx b/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-columns.tsx index 58c5ccf9c..7508124c0 100644 --- a/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-columns.tsx +++ b/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-columns.tsx @@ -111,7 +111,7 @@ export const columns: ColumnDef[] = [
); }, - enableSorting: false, + enableSorting: true, enableHiding: true, }, { @@ -134,7 +134,7 @@ export const columns: ColumnDef[] = [ ); }, - enableSorting: false, + enableSorting: true, enableHiding: true, }, { @@ -155,7 +155,22 @@ export const columns: ColumnDef[] = [ return
{finishedAt}
; }, - enableSorting: false, + enableSorting: true, + enableHiding: true, + }, + { + accessorKey: 'Duration', + header: ({ column }) => ( + + ), + cell: ({ row }) => { + return
{row.original.duration}
; + }, + enableSorting: true, enableHiding: true, }, { diff --git a/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-metrics.tsx b/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-metrics.tsx index cd459cc44..f6aa392e1 100644 --- a/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-metrics.tsx +++ b/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-metrics.tsx @@ -1,10 +1,11 @@ import React from 'react'; -import { WorkflowRunsMetrics } from '@/lib/api'; +import { WorkflowRunStatus, WorkflowRunsMetrics } from '@/lib/api'; import { Badge } from '@/components/ui/badge'; interface WorkflowRunsMetricsProps { metrics: WorkflowRunsMetrics; + onClick?: (status?: WorkflowRunStatus) => void; } const calculatePercentage = (value: number, total: number): number => { @@ -19,6 +20,7 @@ const calculatePercentage = (value: number, total: number): number => { export const WorkflowRunsMetricsView: React.FC = ({ metrics: { counts }, + onClick = () => {}, }) => { const total = (counts?.PENDING ?? 0) + @@ -40,33 +42,41 @@ export const WorkflowRunsMetricsView: React.FC = ({
onClick(WorkflowRunStatus.SUCCEEDED)} > - {counts?.SUCCEEDED} Succeeded ({succeededPercentage}%) + {counts?.SUCCEEDED?.toLocaleString('en-US')} Succeeded ( + {succeededPercentage}%) onClick(WorkflowRunStatus.RUNNING)} > - {counts?.RUNNING} Running ({runningPercentage}%) + {counts?.RUNNING?.toLocaleString('en-US')} Running ({runningPercentage} + %) onClick(WorkflowRunStatus.FAILED)} > - {counts?.FAILED} Failed ({failedPercentage}%) + {counts?.FAILED?.toLocaleString('en-US')} Failed ({failedPercentage}%) onClick(WorkflowRunStatus.PENDING)} > - {counts?.PENDING} Pending ({pendingPercentage}%) + {counts?.PENDING?.toLocaleString('en-US')} Pending ({pendingPercentage} + %) onClick(WorkflowRunStatus.QUEUED)} > - {counts?.QUEUED} Queued ({queuedPercentage}%) + {counts?.QUEUED?.toLocaleString('en-US')} Queued ({queuedPercentage}%)
); diff --git a/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-table.tsx b/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-table.tsx index e0c8de1a1..ee14d670c 100644 --- a/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-table.tsx +++ b/frontend/app/src/pages/main/workflow-runs/components/workflow-runs-table.tsx @@ -10,7 +10,13 @@ import { } from '@tanstack/react-table'; import { useMutation, useQuery } from '@tanstack/react-query'; import invariant from 'tiny-invariant'; -import api, { WorkflowRunStatus, queries } from '@/lib/api'; +import api, { + ReplayWorkflowRunsRequest, + WorkflowRunOrderByDirection, + WorkflowRunOrderByField, + WorkflowRunStatus, + queries, +} from '@/lib/api'; import { Loading } from '@/components/ui/loading.tsx'; import { TenantContextType } from '@/lib/outlet'; import { useOutletContext, useSearchParams } from 'react-router-dom'; @@ -20,7 +26,11 @@ import { ToolbarType, } from '@/components/molecules/data-table/data-table-toolbar'; import { Button } from '@/components/ui/button'; -import { ArrowPathIcon, XMarkIcon } from '@heroicons/react/24/outline'; +import { + ArrowPathIcon, + ArrowPathRoundedSquareIcon, + XMarkIcon, +} from '@heroicons/react/24/outline'; import { WorkflowRunsMetricsView } from './workflow-runs-metrics'; import queryClient from '@/query-client'; import { useApiError } from '@/lib/hooks'; @@ -78,11 +88,11 @@ export function WorkflowRunsTable({ const newSearchParams = new URLSearchParams(searchParams); if (sorting.length) { newSearchParams.set( - 'sort', + 'orderDirection', sorting.map((s) => `${s.id}:${s.desc ? 'desc' : 'asc'}`).join(','), ); } else { - newSearchParams.delete('sort'); + newSearchParams.delete('orderDirection'); } if (columnFilters.length) { newSearchParams.set('filters', JSON.stringify(columnFilters)); @@ -142,6 +152,36 @@ export function WorkflowRunsTable({ return filter?.value as Array; }, [columnFilters]); + const orderByDirection = useMemo((): + | WorkflowRunOrderByDirection + | undefined => { + if (!sorting.length) { + return; + } + + return sorting[0]?.desc + ? WorkflowRunOrderByDirection.DESC + : WorkflowRunOrderByDirection.ASC; + }, [sorting]); + + const orderByField = useMemo((): WorkflowRunOrderByField | undefined => { + if (!sorting.length) { + return; + } + + switch (sorting[0]?.id) { + case 'Duration': + return WorkflowRunOrderByField.Duration; + case 'Finished at': + return WorkflowRunOrderByField.FinishedAt; + case 'Started at': + return WorkflowRunOrderByField.StartedAt; + case 'Seen at': + default: + return WorkflowRunOrderByField.CreatedAt; + } + }, [sorting]); + const listWorkflowRunsQuery = useQuery({ ...queries.workflowRuns.list(tenant.metadata.id, { offset, @@ -150,6 +190,8 @@ export function WorkflowRunsTable({ workflowId: workflow, parentWorkflowRunId, parentStepRunId, + orderByDirection, + orderByField, additionalMetadata: AdditionalMetadataFilter, }), refetchInterval, @@ -206,6 +248,22 @@ export function WorkflowRunsTable({ onError: handleApiError, }); + const replayWorkflowRunsMutation = useMutation({ + mutationKey: ['workflow-run:update:replay', tenant.metadata.id], + mutationFn: async (data: ReplayWorkflowRunsRequest) => { + await api.workflowRunUpdateReplay(tenant.metadata.id, data); + }, + onSuccess: () => { + setRowSelection({}); + + // bit hacky, but workflow run statuses aren't updated immediately after replay + setTimeout(() => { + listWorkflowRunsQuery.refetch(); + }, 1000); + }, + onError: handleApiError, + }); + const workflowKeyFilters = useMemo((): FilterOption[] => { return ( workflowKeys?.rows?.map((key) => ({ @@ -279,7 +337,23 @@ export function WorkflowRunsTable({ aria-label="Cancel Selected Runs" > - Cancel Selected Runs + Cancel + , + , + + ); + }; + const PlatformPicker = () => ( <>
@@ -125,6 +135,11 @@ export default function GetStarted() { ))}
+ {!platform && ( +
+ +
+ )} {platform && (
+
)} diff --git a/frontend/app/src/router.tsx b/frontend/app/src/router.tsx index fef974ec3..e55007cbd 100644 --- a/frontend/app/src/router.tsx +++ b/frontend/app/src/router.tsx @@ -123,15 +123,6 @@ const routes: RouteObject[] = [ }; }), }, - { - path: '/events/metrics', - lazy: async () => - import('./pages/main/events/metrics').then((res) => { - return { - Component: res.default, - }; - }), - }, { path: '/workflows', lazy: async () => @@ -170,7 +161,7 @@ const routes: RouteObject[] = [ }), }, { - path: '/workers', + path: '/workers/all', lazy: async () => import('./pages/main/workers').then((res) => { return { @@ -187,6 +178,37 @@ const routes: RouteObject[] = [ }; }), }, + { + path: '/workers/managed-workers', + lazy: async () => + import('./pages/main/workers/managed-workers').then((res) => { + return { + Component: res.default, + }; + }), + }, + { + path: '/workers/managed-workers/create', + lazy: async () => + import('./pages/main/workers/managed-workers/create').then( + (res) => { + return { + Component: res.default, + }; + }, + ), + }, + { + path: '/workers/managed-workers/:managed-worker', + lazy: async () => + import( + './pages/main/workers/managed-workers/$managed-worker' + ).then((res) => { + return { + Component: res.default, + }; + }), + }, { path: '/tenant-settings/overview', lazy: async () => @@ -209,6 +231,15 @@ const routes: RouteObject[] = [ }, ), }, + { + path: '/tenant-settings/github', + lazy: async () => + import('./pages/main/tenant-settings/github').then((res) => { + return { + Component: res.default, + }; + }), + }, { path: '/tenant-settings/webhooks', lazy: async () => diff --git a/frontend/docs/pages/home/basics/steps.mdx b/frontend/docs/pages/home/basics/steps.mdx index 1d55cc586..e9836771f 100644 --- a/frontend/docs/pages/home/basics/steps.mdx +++ b/frontend/docs/pages/home/basics/steps.mdx @@ -24,7 +24,7 @@ export const myStep = async (ctx: Context): Promise => { This function takes a single argument, `context`, which is an object that provides access to the workflow's input, as well as methods to interact with hatchet (i.e. logging). The function returns a JSON-serializable object, which represents the output of the step. -Often, Hatchet users will start by wrapping one large, esisting function into a step, and then break it down into smaller, more focused steps. This approach allows for better reusability and easier testing. +Often, Hatchet users will start by wrapping one large, existing function into a step, and then break it down into smaller, more focused steps. This approach allows for better reusability and easier testing. ## Best Practices for Defining Independent Steps diff --git a/frontend/docs/pages/home/basics/workflows.mdx b/frontend/docs/pages/home/basics/workflows.mdx index 072eb065f..07d89646c 100644 --- a/frontend/docs/pages/home/basics/workflows.mdx +++ b/frontend/docs/pages/home/basics/workflows.mdx @@ -12,7 +12,7 @@ Hatchet workflows are designed in a **Directed Acyclic Graph (DAG)** format, whe ### Example: A Simple DAG Workflow -Here's an example of a simpleg graphical DAG workflow in Hatchet, consisting of four steps: +Here's an example of a simple graphical DAG workflow in Hatchet, consisting of four steps: ![Simple DAG](/simple-dag.png) diff --git a/frontend/docs/pages/home/features/_meta.json b/frontend/docs/pages/home/features/_meta.json index 09dd849f1..c46a697f9 100644 --- a/frontend/docs/pages/home/features/_meta.json +++ b/frontend/docs/pages/home/features/_meta.json @@ -8,6 +8,7 @@ "streaming": "Streaming", "triggering-runs": "Triggering Runs", "rate-limits": "Global Rate Limits", + "worker-assignment": "Worker Assignment", "additional-metadata": "Additional Metadata", "advanced": "Advanced" } diff --git a/frontend/docs/pages/home/features/advanced/manual-slot-release.mdx b/frontend/docs/pages/home/features/advanced/manual-slot-release.mdx index 8cb8f5a6d..5476b1c30 100644 --- a/frontend/docs/pages/home/features/advanced/manual-slot-release.mdx +++ b/frontend/docs/pages/home/features/advanced/manual-slot-release.mdx @@ -32,28 +32,29 @@ You can manually release a slot in from within a running step in your Workflow u + ```typescript const workflow: Workflow = { // ... other workflow properties steps: [ { - name: 'step1', + name: "step1", run: async (ctx) => { - console.log('RESOURCE INTENSIVE PROCESS...'); + console.log("RESOURCE INTENSIVE PROCESS..."); await sleep(5000); - // Release the slot after the resource-intensive process, so that other steps can run + // Release the slot after the resource-intensive process, so that other steps can run await ctx.releaseSlot(); - console.log('NON RESOURCE INTENSIVE PROCESS...'); - return { step1: 'step1 results!' }; + console.log("NON RESOURCE INTENSIVE PROCESS..."); + return { step1: "step1 results!" }; }, }, ], }; - -```` +``` + ```go func StepOne(ctx worker.HatchetContext) (result \*stepOneOutput, err error) { @@ -66,7 +67,7 @@ func StepOne(ctx worker.HatchetContext) (result \*stepOneOutput, err error) { Message: "step1 results", }, nil }, -```` +``` diff --git a/frontend/docs/pages/home/features/cancellation.mdx b/frontend/docs/pages/home/features/cancellation.mdx index 58ac377a8..359fd6a85 100644 --- a/frontend/docs/pages/home/features/cancellation.mdx +++ b/frontend/docs/pages/home/features/cancellation.mdx @@ -1,16 +1,19 @@ +import { Tabs } from "nextra/components"; + # Cancellation in Hatchet Workflows Hatchet provides a mechanism for canceling workflow executions gracefully, allowing you to stop running workflows and their associated steps when needed. Cancellation can be triggered on graceful termination of a worker or automatically through concurrency control strategies like [`CANCEL_IN_PROGRESS`](./concurrency/cancel-in-progress), which cancels currently running workflow instances to free up slots for new instances when the concurrency limit is reached. -## Cancellation Mechanism in Node.js +When a workflow is canceled, Hatchet sends a cancellation signal to all the currently executing steps. The steps can then check for the cancellation signal and take appropriate action, such as cleaning up resources, aborting network requests, or gracefully terminating their execution. -{/* TODO Python, GO */} +## Cancellation Mechanisms -Hatchet uses the standard `AbortController` and `AbortSignal` interfaces from Node.js to handle cancellation. Each step in a workflow has access to a `context.controller` property, which is an instance of `AbortController`. The `AbortController` provides a way to signal cancellation to the step and any asynchronous operations it may be performing. +{/* TODO Python */} -When a workflow is canceled, Hatchet sends a cancellation signal to all the currently executing steps. The steps can then check for the cancellation signal and take appropriate action, such as cleaning up resources, aborting network requests, or gracefully terminating their execution. + + -## Checking for Cancellation +Hatchet uses the standard `AbortController` and `AbortSignal` interfaces from Node.js to handle cancellation. Each step in a workflow has access to a `context.controller` property, which is an instance of `AbortController`. The `AbortController` provides a way to signal cancellation to the step and any asynchronous operations it may be performing. Inside a step function, you can check for cancellation by accessing the `signal` property of the `context.controller`. The `signal` property is an instance of `AbortSignal`, which provides a way to register event listeners and check the cancellation status. @@ -76,6 +79,48 @@ const myStep: Step = async (context: Context) => { In this example, the `signal` property from the `context.controller` is passed as an option to the `axios.get` request. If the step is canceled while the request is still pending, the request will be automatically aborted, and an error will be thrown. You can catch the error and check if it was due to cancellation using the `axios.isCancel` method. + + + +Hatchet uses the standard `context.WithCancel` way of creating a context and passes that to a workflow step. Each step in a workflow can check for cancellation signals using the `Done()` method that context package provides. + +Here's an example of how to check for cancellation in a step: + +```go +w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "post-user-sign-up", + On: worker.Event("user:created"), + Description: "Workflow that executes after a user signs up.", + Timeout: "60s", + Steps: []*worker.WorkflowStep{ + { + Function: func(ctx context.Context) error { + stepDone := make(chan struct{}) + go func() { + // Step business logic + // ... + done <- struct{}{} + }() + select { + case <- ctx.Done(): + // The step has been canceled + // Perform any necessary cleanup or termination logic + return + case <- stepDone: + // Workflow step finished executing + return + } + }, + }, + }, + }, +) +``` + + + + ## Cancellation Best Practices When working with cancellation in Hatchet workflows, consider the following best practices: diff --git a/frontend/docs/pages/home/features/child-workflows.mdx b/frontend/docs/pages/home/features/child-workflows.mdx index 7f1377f0f..39532e005 100644 --- a/frontend/docs/pages/home/features/child-workflows.mdx +++ b/frontend/docs/pages/home/features/child-workflows.mdx @@ -1,3 +1,5 @@ +import { Tabs } from "nextra/components"; + # Child Workflows While workflows in Hatchet implement a DAG, there are many cases where the structure of a workflow isn't known ahead of time. For example, you may have a batch processing workflow where the number of tasks is determined by the input - for example, running a workflow per page in a PDF. In these cases, you can use child workflows to dynamically create new workflows as needed. @@ -6,7 +8,27 @@ Note that spawning child workflows is a **durable** operation, meaning that spaw ## Looping Workflows -To loop through a list and create a new workflow per element in the list, you can simply use `spawnWorkflow` in a loop. For example, in the Typescript SDK: +To loop through a list and create a new workflow per element in the list, you can simply use `spawnWorkflow` in a loop. For example: + + + + +```python +@hatchet.workflow("fanout:create") +class Parent: + @hatchet.step() + def spawn(self, context: Context): + for i in range(10): + context.spawn_workflow( + "Child", {"a": str(i)}, key=f"child{i}" + ) + + return {} + +``` + + + ```typescript const parentWorkflow: Workflow = { @@ -20,7 +42,7 @@ const parentWorkflow: Workflow = { name: "parent-spawn", timeout: "10s", run: async (ctx) => { - for (let i = 0; i < 5; i++) { + for (let i = 0; i < 10; i++) { ctx.spawnWorkflow("child-workflow", { input: `child-input-${i}`, }); @@ -33,12 +55,75 @@ const parentWorkflow: Workflow = { }; ``` + + + +```go +w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "parent-workflow", + On: worker.Event("fanout:create"), + Description: "Example workflow for spawning child workflows.", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) error { + for i := 0; i < 10; i++ { + childInput := "child-input-" + strconv.Itoa(i) + childWorkflow, err := ctx.SpawnWorkflow("child-workflow", childInput, &worker.SpawnWorkflowOpts{}) + if err != nil { + return nil, err + } + } + return nil + }), + }, + }, +) +``` + + + + Note that calling `spawnWorkflow` will return immediately, and the child workflows will run in parallel. If you want to wait for child workflows, you can await the results of each workflow (see below). ## Scatter/Gather Workflows To run all child workflows in parallel, and then wait for all of them to complete, you can use the `result` method on the returned method. + + + +```python +@hatchet.workflow() +class Parent: + @hatchet.step(timeout="5m") + async def spawn(self, context: Context): + results = [] + + for i in range(10): + results.append( + ( + await context.aio.spawn_workflow( + "Child", {"a": str(i)}, key=f"child{i}" + ) + ).result() + ) + + result = await asyncio.gather(*results) + + return {"results": result} + +@hatchet.workflow() +class Child: + @hatchet.step() + async def process(self, context: Context): + a = context.workflow_input()["a"] + return {"status": "success " + a} + +``` + + + + ```typescript const parentWorkflow: Workflow = { id: "parent-workflow", @@ -74,9 +159,91 @@ const parentWorkflow: Workflow = { }; ``` + + + +```go +w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "parent-workflow", + On: worker.Event("fanout:create"), + Description: "Example workflow for spawning child workflows.", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) error { + var wg sync.WaitGroup + results := make([]string, 10) + resultCh := make(chan string, 10) + for i := 0; i < 10; i++ { + wg.Add(1) + go func(i int) { + defer wg.Done() + childInput := "child-input-" + strconv.Itoa(i) + childWorkflow, err := ctx.SpawnWorkflow("child-workflow", childInput, &worker.SpawnWorkflowOpts{}) + if err != nil { + // Handle error here + return + } + // Collect the result from the child workflow + result, err := childWorkflow.Result() + if err != nil { + // Handle error here + return + } + resultCh <- result + }(i) + } + go func() { + wg.Wait() + close(resultCh) + }() + + // Collect all results + for result := range resultCh { + results = append(results, result) + } + + return nil + }), + }, + }, + +) + +``` + + + + ## Error Handling -If child workflows fail, an error will be raised to the parent, which can be caught and handled as needed. For example, to spawn a recovery workflow if a child workflow fails: +If child workflows fail, an error will be raised to the parent, which can be caught and handled as needed. +For example, to spawn a recovery workflow if a child workflow fails: + + + + +```python +@hatchet.workflow("fanout:create") +class Parent: + @hatchet.step() + async def spawn(self, context: Context): + try: + ( + await context.aio.spawn_workflow( + "Child", {"a": str(i)}, key=f"child{i}" + ) + ).result() + except Exception as e: + # Spawn a recovery workflow + context.spawn_workflow("recovery-workflow", { "error": str(e) }); + + return {} + +``` + + + + ```typescript const parentWorkflow: Workflow = { @@ -106,3 +273,40 @@ const parentWorkflow: Workflow = { ], }; ``` + + + + + +```go +w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "parent-workflow", + On: worker.Event("fanout:create"), + Description: "Example workflow for spawning child workflows.", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) error { + childInput := "child-input-" + strconv.Itoa(i) + childWorkflow, err := ctx.SpawnWorkflow("child-workflow", childInput, &worker.SpawnWorkflowOpts{}) + if err != nil { + // Handle error here + return + } + // Collect the result from the child workflow + result, err := childWorkflow.Result() + if err != nil { + // Spawn a recovery workflow + recInput := err.Error() + _, err = ctx.SpawnWorkflow("recovery-workflow", recInput, &worker.SpawnWorkflowOpts{}) + return + } + return nil + }), + }, + }, +) + +``` + + + diff --git a/frontend/docs/pages/home/features/concurrency/cancel-in-progress.mdx b/frontend/docs/pages/home/features/concurrency/cancel-in-progress.mdx index 2b5fb82be..a59d0cfac 100644 --- a/frontend/docs/pages/home/features/concurrency/cancel-in-progress.mdx +++ b/frontend/docs/pages/home/features/concurrency/cancel-in-progress.mdx @@ -1,3 +1,5 @@ +import { Tabs } from "nextra/components"; + # The CANCEL_IN_PROGRESS Concurrency Limit Strategy in Hatchet Hatchet's `CANCEL_IN_PROGRESS` concurrency limit strategy is a powerful tool for managing resource contention in your workflows. This strategy allows you to cancel currently running workflow instances to free up slots for new instances when the concurrency limit is reached. @@ -28,12 +30,34 @@ However, it's important to note that canceling a workflow instance may leave you To use the `CANCEL_IN_PROGRESS` concurrency limit strategy, define a `concurrency` configuration in your workflow definition: + + + +```python +from hatchet_sdk import ConcurrencyLimitStrategy + +@hatchet.workflow(on_events=["concurrency-test"]) +class ConcurrencyDemoWorkflow: + @hatchet.concurrency(max_runs=10, limit_strategy=ConcurrencyLimitStrategy.CANCEL_IN_PROGRESS) + def concurrency(self, context) -> str: + return context.workflow_input()["user_id"] + + @hatchet.step() + def step1(self, context): + print("executed step1") + pass + +``` + + + + ```typescript -export const myWorkflow: Workflow = { +export const concurrencyDemoWorkflow: Workflow = { id: "my-workflow", - description: "My workflow with CANCEL_IN_PROGRESS concurrency limit", + description: "My workflow with concurrency control", on: { - event: "my.event", + event: "concurrency-test", }, steps: [ // ... @@ -47,6 +71,48 @@ export const myWorkflow: Workflow = { }; ``` + + + +```go +import ( + "github.com/hatchet-dev/hatchet/pkg/client/types" + "github.com/hatchet-dev/hatchet/pkg/worker" +) + +type MyUser struct { + UserId string `json:"user_id"` +} + +func getConcurrencyKey(ctx worker.HatchetContext) (string, error) { + event := &MyUser{} + err := ctx.WorkflowInput(event) + + if err != nil { + return "", err + } + + return event.UserId, nil + +} + +err = w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "concurrency-limit-per-user", + On: worker.Events("concurrency-test-event"), + Description: "This limits concurrency to 1 run at a time per user.", + Concurrency: worker.Concurrency(getConcurrencyKey).MaxRuns(10).LimitStrategy(types.CancelInProgress), + Steps: []*worker.WorkflowStep{ + // your steps here... + }, + }, +) + +``` + + + + In this example: - `maxRuns` sets the maximum number of concurrent instances allowed for this workflow. diff --git a/frontend/docs/pages/home/features/concurrency/overview.mdx b/frontend/docs/pages/home/features/concurrency/overview.mdx index 535d36606..de8e6d2e3 100644 --- a/frontend/docs/pages/home/features/concurrency/overview.mdx +++ b/frontend/docs/pages/home/features/concurrency/overview.mdx @@ -1,3 +1,5 @@ +import { Tabs } from "nextra/components"; + ## Concurrency Control in Hatchet Workflows Hatchet provides powerful concurrency control features to help you manage the execution of your workflows. This is particularly useful when you have workflows that may be triggered frequently or have long-running steps, and you want to limit the number of concurrent executions to prevent overloading your system, ensure fairness, or avoid race conditions. @@ -23,42 +25,37 @@ To configure concurrency control for a workflow in Hatchet, you can add a `concu - `name` (required): A string identifier for the concurrency limit. This is used to identify the limit in logs and the dashboard. - `maxRuns` (optional): The maximum number of concurrent runs allowed for a given concurrency key. If not specified, there is no limit. - `limitStrategy` (optional): The strategy to use when the concurrency limit is reached. Can be one of: - - `CANCEL_IN_PROGRESS`: Cancel the currently running workflow instances for the same concurrency key to free up slots for the new instance. - - `GROUP_ROUND_ROBIN`: Distribute workflow instances across available slots in a round-robin fashion based on the `key` function. + - [`CANCEL_IN_PROGRESS`](./cancel-in-progress): Cancel the currently running workflow instances for the same concurrency key to free up slots for the new instance. + - [`GROUP_ROUND_ROBIN`](./round-robin): Distribute workflow instances across available slots in a round-robin fashion based on the `key` function. - `key` (required): A function that takes the workflow context and returns a string key. This key is used to group runs for the purpose of concurrency limiting. For example, you could use this to limit concurrency on a per-user basis. -Here's an example workflow definition with concurrency control: - -```typescript -export const myWorkflow: Workflow = { - id: "my-workflow", - description: "My workflow with concurrency control", - on: { - event: "my.event", - }, - steps: [ - // ... - ], - concurrency: { - name: "my-workflow-concurrency", - maxRuns: 10, - limitStrategy: ConcurrencyLimitStrategy.CANCEL_IN_PROGRESS, - key: (ctx) => ctx.userId, - }, -}; -``` - -In this example, the workflow is limited to a maximum of 10 concurrent runs for each unique `userId` in the workflow context. When the limit is reached for a specific `userId`, new runs with the same `userId` are queued until a slot becomes available. If the limit strategy is set to `CANCEL_IN_PROGRESS`, and an event with a conflicting `userId` is received, the currently running workflow instances for that `userId` are canceled to free up slots for the new instance. - ### Setting concurrency on workers In addition to setting concurrency limits at the workflow level, you can also control concurrency at the worker level by passing the `maxRuns` option when creating a new `Worker` instance: + + +```python +worker = hatchet.worker("my-worker", max_runs=5) +``` + + ```typescript const worker = hatchet.worker("my-worker", { maxRuns: 5, }); ``` + + +```go +w, err := worker.NewWorker( + worker.WithClient(c), + worker.WithMaxRuns(5), + worker.WithName("my-worker") +) +``` + + This limits the worker to a maximum of 5 concurrent step runs across all workflows. Once the limit is reached, the worker will not accept new actions until a running step completes. diff --git a/frontend/docs/pages/home/features/concurrency/round-robin.mdx b/frontend/docs/pages/home/features/concurrency/round-robin.mdx index 5f47df1bf..937d58bc3 100644 --- a/frontend/docs/pages/home/features/concurrency/round-robin.mdx +++ b/frontend/docs/pages/home/features/concurrency/round-robin.mdx @@ -1,3 +1,5 @@ +import { Tabs } from "nextra/components"; + # The GROUP_ROUND_ROBIN Concurrency Limit Strategy in Hatchet Hatchet's `GROUP_ROUND_ROBIN` concurrency limit strategy is an advanced way to manage resource contention in your workflows while ensuring fair distribution of resources across different groups of tennants, users, or other concurrency key. This strategy allows you to process workflow instances in a round-robin fashion within each group, as defined by a key function. @@ -22,18 +24,39 @@ The `GROUP_ROUND_ROBIN` strategy is particularly useful in scenarios where: - You want to process instances within each group in a round-robin fashion to minimize latency and ensure that no single instance within a group is starved for resources. - You have long-running workflow instances and want to avoid one group's instances monopolizing the available slots. -Keep in mind that the `GROUP_ROUND_ROBIN` strategy may not be suitable for all use cases, especially those that require strict ordering or prioritization of the most recent events. Consider using a different concurrency limit strategy, such as [`QUEUE_NEWEST`](./queue-newest), if these requirements apply to your workflow. +Keep in mind that the `GROUP_ROUND_ROBIN` strategy may not be suitable for all use cases, especially those that require strict ordering or prioritization of the most recent events. ## How to use GROUP_ROUND_ROBIN To use the `GROUP_ROUND_ROBIN` concurrency limit strategy, define a `concurrency` configuration in your workflow definition: + + + +```python +from hatchet_sdk import ConcurrencyLimitStrategy + +@hatchet.workflow(on_events=["concurrency-test"]) +class ConcurrencyDemoWorkflow: + @hatchet.concurrency(max_runs=10, limit_strategy=ConcurrencyLimitStrategy.GROUP_ROUND_ROBIN) + def concurrency(self, context) -> str: + return context.workflow_input()["user_id"] + + @hatchet.step() + def step1(self, context): + print("executed step1") + pass +``` + + + + ```typescript -export const myWorkflow: Workflow = { +export const concurrencyDemoWorkflow: Workflow = { id: "my-workflow", - description: "My workflow with GROUP_ROUND_ROBIN concurrency limit", + description: "My workflow with GROUP_ROUND_ROBIN concurrency control", on: { - event: "my.event", + event: "concurrency-test", }, steps: [ // ... @@ -47,6 +70,47 @@ export const myWorkflow: Workflow = { }; ``` + + + +```go +import ( + "github.com/hatchet-dev/hatchet/pkg/client/types" + "github.com/hatchet-dev/hatchet/pkg/worker" +) + +type MyUser struct { + UserId string `json:"user_id"` +} + +func getConcurrencyKey(ctx worker.HatchetContext) (string, error) { + event := &MyUser{} + err := ctx.WorkflowInput(event) + + if err != nil { + return "", err + } + + return event.UserId, nil +} + +err = w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "concurrency-limit-per-user", + On: worker.Events("concurrency-test-event"), + Description: "This limits concurrency to 1 run at a time per user.", + Concurrency: worker.Concurrency(getConcurrencyKey).MaxRuns(10).LimitStrategy(types.GroupRoundRobin), + Steps: []*worker.WorkflowStep{ + // your steps here... + }, + }, +) + +``` + + + + In this example: - `maxRuns` sets the maximum number of concurrent instances allowed for each group. diff --git a/frontend/docs/pages/home/features/errors-and-logging.mdx b/frontend/docs/pages/home/features/errors-and-logging.mdx index f21c14c96..f1c58b1a9 100644 --- a/frontend/docs/pages/home/features/errors-and-logging.mdx +++ b/frontend/docs/pages/home/features/errors-and-logging.mdx @@ -1,3 +1,5 @@ +import { Tabs } from "nextra/components"; + # Error Handling and Logging in Hatchet When building workflows with Hatchet, it's helpful to have robust error handling and logging mechanisms in place to ensure you and your team have visibility into workflow execution issues if they arise. Hatchet provides built-in support for capturing and displaying uncaught errors, as well as a convenient way to log arbitrary information during step execution. These features can greatly aid in troubleshooting and debugging your workflows. @@ -33,6 +35,29 @@ In addition to automatic error handling for uncaught errors, Hatchet provides a Here's an example of how to use `context.log()` to log information during step execution: + + + +```python +from hatchet_sdk import ConcurrencyLimitStrategy + +@hatchet.workflow(on_events=["log-test"]) +class LogDemoWorkflow: + + @hatchet.step() + def step1(self, context): + context.log("Starting step execution") + result = some_operation() + context.log(f"Operation result: {result}") + return { + result + } + +``` + + + + ```typescript import { Step, Context } from "@hatchet-dev/typescript-sdk"; @@ -45,17 +70,36 @@ const myStep: Step = async (context: Context) => { context.log(`Async operation result: ${result}`); - // Log a message with additional metadata - context.log("Step completed successfully", { - metadata: { resultLength: result.length }, - }); - return { result }; }; export default myStep; ``` + + + +```go +err = w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "log-demo-workflow", + On: worker.Events("user:create"), + Description: "This is an example workflow with logging.", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + ctx.log("Starting step execution") + result := someOperation() + ctx.log(fmt.Sprintf("Operation result: %v", result)) + + }).SetName("step-one"), + }, + } +) +``` + + + + In this example, the step uses `context.log()` to log messages at different points during its execution. The logged messages, along with any additional metadata, will be associated with the specific step run and can be viewed in the Hatchet dashboard. {/* TODO dashboard screenshot */} diff --git a/frontend/docs/pages/home/features/on-failure-step.mdx b/frontend/docs/pages/home/features/on-failure-step.mdx index ce389dd63..a9c5fa53c 100644 --- a/frontend/docs/pages/home/features/on-failure-step.mdx +++ b/frontend/docs/pages/home/features/on-failure-step.mdx @@ -73,14 +73,14 @@ func OnFailure(ctx worker.HatchetContext) (result *stepOneOutput, err error) { err = w.RegisterWorkflow( &worker.WorkflowJob{ - Name: "on-failure-workflow", - On: worker.NoTrigger(), + Name: "on-failure-workflow", + On: worker.NoTrigger(), Description: "This runs at a scheduled time.", Steps: []*worker.WorkflowStep{ worker.Fn(StepOne).SetName("step-one"), }, OnFailure: &worker.WorkflowJob{ - Name: "scheduled-workflow-failure", + Name: "scheduled-workflow-failure", Description: "This runs when the scheduled workflow fails.", Steps: []*worker.WorkflowStep{ worker.Fn(OnFailure).SetName("on-failure"), diff --git a/frontend/docs/pages/home/features/rate-limits.mdx b/frontend/docs/pages/home/features/rate-limits.mdx index b130f4c8d..4608eec78 100644 --- a/frontend/docs/pages/home/features/rate-limits.mdx +++ b/frontend/docs/pages/home/features/rate-limits.mdx @@ -76,9 +76,9 @@ const workflow: Workflow = { ```go err = w.RegisterWorkflow( &worker.WorkflowJob{ - Name: "rate-limit-workflow", + Name: "rate-limit-workflow", Description: "This illustrates rate limiting.", - On: worker.NoTrigger(), + On: worker.NoTrigger(), Steps: []*worker.WorkflowStep{ worker.Fn(StepOne).SetName("step-one").SetRateLimit( worker.RateLimit{ diff --git a/frontend/docs/pages/home/features/retries/simple.mdx b/frontend/docs/pages/home/features/retries/simple.mdx index e3bbb8af5..292fba41f 100644 --- a/frontend/docs/pages/home/features/retries/simple.mdx +++ b/frontend/docs/pages/home/features/retries/simple.mdx @@ -19,16 +19,40 @@ This simple retry mechanism can help to mitigate transient failures, such as net To enable retries for a step in your workflow, simply add the `retries` property to the step object in your workflow definition: + + +```python +@hatchet.step(timeout='30s', retries=3) +def step1(self, context: Context): + pass +``` + + + ```typescript import { CreateStepSchema } from "@hatchet-dev/typescript-sdk"; -const myStep: z.infer = { - name: "my-step", +const step1: z.infer = { + name: "step1", timeout: "30s", retries: 3, }; ``` + + + +```go +Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + continue + }).SetName("step1").SetRetries(3).SetTimeout("30s"), +}, +``` + + + + In this example: - `name` is the unique identifier for the step within the workflow. diff --git a/frontend/docs/pages/home/features/streaming.mdx b/frontend/docs/pages/home/features/streaming.mdx index b73c1b2fe..cfb06acbd 100644 --- a/frontend/docs/pages/home/features/streaming.mdx +++ b/frontend/docs/pages/home/features/streaming.mdx @@ -27,9 +27,10 @@ Listeners are used to subscribe to the event stream for a specific workflow run. Here's an example of how to create a listener: - + -``` python + +```python async def listen_for_files(): workflowRunId = hatchet.admin.run_workflow("ManualTriggerWorkflow", {"test": "test"}) listener = hatchet.listener.stream(workflowRunId) @@ -42,20 +43,42 @@ async def listen_for_files(): }) print("data: " + data + "\n\n") -```` +``` + + ```typescript copy async function listen_for_files() { - const workflowRunId = await hatchet.admin.run_workflow('simple-workflow', {}); + const workflowRunId = await hatchet.admin.run_workflow("simple-workflow", {}); const stream = await hatchet.listener.stream(workflowRunId); for await (const event of stream) { - console.log('event received', event); + console.log("event received", event); } } -```` +``` +```go copy +workflowRunId, err := c.Admin().RunWorkflow("stream-event-workflow", &streamEventInput{ + Index: 0, +}) + +if err != nil { +panic(err) +} + +err = c.Subscribe().Stream(interruptCtx, workflowRunId, func(event client.StreamEvent) error { +fmt.Println(string(event.Message)) + +return nil +}) + +if err != nil { +panic(err) +} + +```` ## Streaming from a Step Context @@ -64,6 +87,7 @@ You can also stream events from a specific step context, enabling you to stream + ```python @hatchet.step() def step1(self, context: Context): @@ -71,17 +95,20 @@ def step1(self, context: Context): context.put_stream('hello from step1') # continue with the step run... return {"step1": "results"} -``` +```` + + ```typescript async function step1(ctx: Context) { - // Stream some data from the step context - ctx.putStream('step1 stream'); - // continue with the step run... - return { step1: 'step1 results!' }; + // Stream some data from the step context + ctx.putStream("step1 stream"); + // continue with the step run... + return { step1: "step1 results!" }; } ``` + @@ -93,6 +120,7 @@ To stream a file from a step context, encode the file data as base64 and stream + ```python @hatchet.step() def step1(self, context: Context): @@ -115,38 +143,44 @@ def step1(self, context: Context): # continue with the step run... return {"step1": "results"} -```` +``` + + ```typescript -import * as fs from 'fs'; -import * as path from 'path'; +import * as fs from "fs"; +import * as path from "path"; async function step1(ctx: Context) { // Get the directory of the current script const scriptDir = path.dirname(__filename); // Construct the path to the image file relative to the script's directory - const imagePath = path.join(scriptDir, 'image.jpeg'); + const imagePath = path.join(scriptDir, "image.jpeg"); // Load the image file const imageData = await fs.promises.readFile(imagePath); // Encode the image data as base64 - const base64Image = Buffer.from(imageData).toString('base64'); + const base64Image = Buffer.from(imageData).toString("base64"); // Stream the base64-encoded image data ctx.putStream(base64Image); // continue with the step run... - return { step1: 'results' }; -}``` + return { step1: "results" }; +} +``` + For the listener, decode the base64-encoded payload and write it to a file: + + ```python async def listen_for_files(): load_dotenv() @@ -171,9 +205,11 @@ async def listen_for_files(): with open(payload_path, "wb") as f: f.write(decoded_payload) -```` +``` + + + - ```typescript import * as fs from 'fs'; import * as path from 'path'; @@ -194,23 +230,126 @@ const outDir = path.join(scriptDir, 'out'); await fs.promises.mkdir(outDir, { recursive: true }); for await (const event of listener) { -if (event.type === StepRunEventType.STEP_RUN_EVENT_TYPE_STREAM) { -// Decode the base64-encoded payload -const decodedPayload = Buffer.from(event.payload, 'base64'); - + if (event.type === StepRunEventType.STEP_RUN_EVENT_TYPE_STREAM) { + // Decode the base64-encoded payload + const decodedPayload = Buffer.from(event.payload, 'base64'); // Construct the path to the payload file in the "out" directory const payloadPath = path.join(outDir, 'payload.jpg'); // Write the decoded payload to the file await fs.promises.writeFile(payloadPath, decodedPayload); } + } +} +``` + + + + +## Streaming by Additional Metadata + +Often it is helpful to stream from multiple workflows (i.e. child workflows spawned from a parent) to achieve this, you can specify an [additional meta](/features/additional-metadata) key-value pair before runing a workflow that can then be used to subscribe to all events from workflows that have the same key-value pair. + +Since additinoal metadata is propegated from parent to child workflows, this can be used to track all events from a specific workflow run. + +Here's an example of how to create a listener: + + + + +```python +# Generate a random stream key to use to track all +# stream events for this workflow run. +streamKey = "streamKey" +streamVal = f"sk-{random.randint(1, 100)}" + +# Specify the stream key as additional metadata +# when running the workflow. + +# This key gets propagated to all child workflows +# and can have an arbitrary property name. + +workflowRun = hatchet.admin.run_workflow( + "Parent", + {"n": 2}, + options={"additional_metadata": {streamKey: streamVal}}, +) +# Stream all events for the additional meta key value +listener = hatchet.listener.stream_by_additional_metadata(streamKey, streamVal) + +async for event in listener: + print(event.type, event.payload) + +``` + + + + +```typescript copy +// Generate a random stream key to use to track all +// stream events for this workflow run. +const streamKey = "streamKey"; +const streamVal = `sk-${Math.random().toString(36).substring(7)}`; + +// Specify the stream key as additional metadata +// when running the workflow. + +// This key gets propagated to all child workflows +// and can have an arbitrary property name. +await hatchet.admin.runWorkflow( + "parent-workflow", + {}, + { additionalMetadata: { [streamKey]: streamVal } }, +); + +// Stream all events for the additional meta key value +const stream = await hatchet.listener.streamByAdditionalMeta( + streamKey, + streamVal, +); + +for await (const event of stream) { + console.log("event received", event); } +``` + + + + +```go copy +// Generate a random stream key to use to track all +// stream events for this workflow run. +streamKey := "streamKey" +streamValue := fmt.Sprintf("stream-event-%d", rand.Intn(100)+1) + +// Specify the stream key as additional metadata +// when running the workflow. + +// This key gets propagated to all child workflows +// and can have an arbitrary property name. +\_, err = c.Admin().RunWorkflow("stream-event-workflow", &streamEventInput{ + Index: 0, + }, + client.WithRunMetadata(map[string]interface{}{ + streamKey: streamValue, + }), +) + +if err != nil { + panic(err) } -```` +// Stream all events for the additional meta key value +err = c.Subscribe().StreamByAdditionalMetadata(interruptCtx, streamKey, streamValue, func(event client.StreamEvent) error { + fmt.Println(string(event.Message)) + return nil +}) +``` + + ## Consuming Streams on Frontend To consume a stream from the backend, create a Streaming Response endpoint to "proxy" the stream from the Hatchet workflow run. @@ -230,7 +369,7 @@ def event_stream_generator(workflowRunId): "messageId": workflowRunId }) yield "data: " + data + "\n\n" -```` +``` Next, create a streaming `GET` endpoint that the client connects to in order to receive real-time progress updates: diff --git a/frontend/docs/pages/home/features/timeouts.mdx b/frontend/docs/pages/home/features/timeouts.mdx index 23e4f1f99..6a6421bd2 100644 --- a/frontend/docs/pages/home/features/timeouts.mdx +++ b/frontend/docs/pages/home/features/timeouts.mdx @@ -52,9 +52,9 @@ const myWorkflow: Workflow = { ```go cleanup, err := run(events, worker.WorkflowJob{ - Name: "timeout", + Name: "timeout", Description: "timeout", - ScheduleTimeoutAt: "2m", + ScheduleTimeout: "2m", Steps: []*worker.WorkflowStep{ worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { time.Sleep(time.Second * 60) @@ -79,7 +79,7 @@ To specify a timeout for an individual step, you can set the `timeout` property def timeout(self, context): try: print("started step2") - context.sleep(5) + time.sleep(5) print("finished step2") except Exception as e: print("caught an exception: " + str(e)) @@ -100,16 +100,16 @@ const myStep: CreateStep = { ```go -cleanup, err := run(events, worker.WorkflowJob{ - Name: "timeout", - Description: "timeout", - Steps: []*worker.WorkflowStep{ - worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { - time.Sleep(time.Second * 60) - return nil, nil - }).SetName("step-one").SetTimeout("30s"), - }, - }) +worker.WorkflowJob{ + Name: "timeout", + Description: "timeout", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + time.Sleep(time.Second * 60) + return nil, nil + }).SetName("step-one").SetTimeout("30s"), + }, +} ``` @@ -128,6 +128,20 @@ In some cases, you may need to extend the timeout for a step while it is running For example: + + +```python +@hatchet.step(timeout="30s") +def timeout(self, context): + time.sleep(20) + context.refresh_timeout("15s") + time.sleep(10) + return { + step1: "step1 results!" + } +``` + + ```typescript const myStep: CreateStep = { name: "my-step", @@ -140,6 +154,26 @@ const myStep: CreateStep = { }, }; ``` + + +```go +worker.WorkflowJob{ + Name: "timeout", + Description: "timeout", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + time.Sleep(time.Second * 20) + ctx.RefreshTimeout("15s") + time.Sleep(time.Second * 10) + return return &stepOneOutput{ + Message: "step1 results!", + }, nil + }).SetName("step-one").SetTimeout("30s"), + }, +} +``` + + In this example, the step initially has a timeout of 30 seconds. After 19 seconds, the `refreshTimeout` function is called with an argument of `'15s'`, which extends the timeout by an additional 15 seconds. This allows the step to continue running for a total of 45 seconds (30 seconds initial timeout + 15 seconds refreshed timeout). diff --git a/frontend/docs/pages/home/features/triggering-runs/cron-trigger.mdx b/frontend/docs/pages/home/features/triggering-runs/cron-trigger.mdx index 0611db6d1..5177fc539 100644 --- a/frontend/docs/pages/home/features/triggering-runs/cron-trigger.mdx +++ b/frontend/docs/pages/home/features/triggering-runs/cron-trigger.mdx @@ -1,3 +1,5 @@ +import { Tabs } from "nextra/components"; + # Triggering Workflows with Cron in Hatchet Hatchet provides a flexible and powerful way to trigger workflows based on a schedule using cron expressions. Cron is a time-based job scheduler that allows you to define when a workflow should be executed automatically. This feature is particularly useful for recurring tasks, such as daily data updates, weekly reports, or periodic maintenance jobs. @@ -6,6 +8,23 @@ Hatchet provides a flexible and powerful way to trigger workflows based on a sch To trigger a workflow with a cron schedule, you need to configure the `on` property in the workflow definition. Here's an example of how to define a cron trigger: + + +```python +@hatchet.workflow(on_crons=["0 0 * * *"]) +class MyWorkflow: + @hatchet.step() + def step1(self, context): + print("executed step1") + pass + + @hatchet.step(parents=["step1"]) + def step2(self, context): + print("executed step2") + pass``` + + + ```typescript const myWorkflow: Workflow = { id: "my-workflow", @@ -18,8 +37,29 @@ const myWorkflow: Workflow = { ], }; ``` + + +```go +w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "myWorkflow", + On: worker.Cron("0 0 * * *"), + Description: "Cron workflow example.", + Steps: []*worker.WorkflowStep{ + { + Function: func(ctx context.Context) error { + fmt.Println("triggered at:", time.Now()) + return nil + }, + }, + }, + }, +) +``` + + -In this example, the `on` property is set to an object with a `cron` property. The `cron` property specifies the cron expression that determines when the workflow should be triggered. +In the examples above, we set the `on cron` property of the workflows. The property specifies the cron expression that determines when the workflow should be triggered. ## Cron Expression Syntax diff --git a/frontend/docs/pages/home/features/triggering-runs/event-trigger.mdx b/frontend/docs/pages/home/features/triggering-runs/event-trigger.mdx index 169df2768..6ba50cd7d 100644 --- a/frontend/docs/pages/home/features/triggering-runs/event-trigger.mdx +++ b/frontend/docs/pages/home/features/triggering-runs/event-trigger.mdx @@ -1,11 +1,25 @@ +import { Tabs } from "nextra/components"; + # Triggering Workflows with Events in Hatchet Hatchet provides a powerful event-driven architecture that allows you to trigger workflows based on specific events. Events can be external, such as incoming webhooks or messages from a message queue, or internal, such as the pushed from another workflow. By leveraging event-based triggers, you can create reactive and dynamic workflows that respond to real-time data and business logic. ## Configuring Event Triggers -To trigger a workflow based on an event, you need to configure the `on` property in the workflow definition. Here's an example of how to define an event trigger: - +To trigger a workflow based on an event, you need to configure the `on event` property in the workflow definition. Here's an example of how to define an event trigger: + + + +```python +@hatchet.workflow(on_events=["user:created"]) +class MyWorkflow: + @hatchet.step() + def step1(self, context): + print("executed step1") + pass +``` + + ```typescript const myWorkflow: Workflow = { id: "my-workflow", @@ -18,6 +32,27 @@ const myWorkflow: Workflow = { ], }; ``` + + +```go +w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "post-user-create", + On: worker.Event("user:created"), + Description: "Cron workflow example.", + Steps: []*worker.WorkflowStep{ + { + Function: func(ctx context.Context) error { + fmt.Println("triggered at:", time.Now()) + return nil + }, + }, + }, + }, +) +``` + + In this example, the `on` property is set to an object with an `event` property. The `event` property specifies the name of the event that should trigger the workflow. When an event with the specified name is received by Hatchet, it will automatically start a new instance of the workflow. @@ -27,16 +62,48 @@ When an event triggers a workflow, Hatchet passes the event payload to the workf For example, if the event is `user:created`, the event payload might include details about the newly created user, such as their ID, email, or any other relevant attributes. You can access this event payload within your workflow steps using the `context.workflowInput()` method. + + +```python +@hatchet.workflow(on_events=["user:created"]) +class MyWorkflow: + @hatchet.step() + def step1(self, context): + event_payload = context.workflow_input() + # Use the event payload data in your step logic +``` + + ```typescript const myStep: Step = async (context: Context) => { const eventPayload = context.workflowInput(); - const userId = eventPayload.userId; - const userEmail = eventPayload.email; - // Use the event payload data in your step logic // ... }; ``` + + +```go +type workflowInputExample struct{} +w.RegisterWorkflow( + &worker.WorkflowJob{ + Name: "post-user-create", + On: worker.Event("user:created"), + Description: "Cron workflow example.", + Steps: []*worker.WorkflowStep{ + { + Function: func(ctx context.Context) error { + input := &workflowInputExample{} + ctx.WorkflowInput(input) + // Use the event payload data in your step logic + }, + }, + }, + }, +) +``` + + ## Event Sources diff --git a/frontend/docs/pages/home/features/worker-assignment/_meta.json b/frontend/docs/pages/home/features/worker-assignment/_meta.json new file mode 100644 index 000000000..a13506cbf --- /dev/null +++ b/frontend/docs/pages/home/features/worker-assignment/_meta.json @@ -0,0 +1,5 @@ +{ + "overview": "Overview", + "sticky-assignment": "Sticky Assignment", + "worker-affinity": "Worker Affinity" +} diff --git a/frontend/docs/pages/home/features/worker-assignment/overview.mdx b/frontend/docs/pages/home/features/worker-assignment/overview.mdx new file mode 100644 index 000000000..ae134a7e3 --- /dev/null +++ b/frontend/docs/pages/home/features/worker-assignment/overview.mdx @@ -0,0 +1,19 @@ +import { Tabs } from "nextra/components"; + +# Worker Assignment Overview + +By default, Hatchet will attempt to fairly distribute workload prioritizing the least busy worker that is capable of running a specific step. However, there are times when you may want more control over assignment. This can be useful for scenarios where you need to maintain expensive local memory state across multiple steps in a workflow or ensure that certain workflows are processed by the same worker for consistency. + +There are two primary ways to control worker assignment in Hatchet: + +## Sticky Assignment + +Sticky assignment is a workflow property that allows you to specify that all steps of a workflow should be assigned to the same worker for the duration of its execution. This can be useful when you need to maintain expensive local memory state across multiple steps in a workflow or ensure that certain workflows are processed by the same worker for consistency. + +[More about Sticky Assignment →](./sticky-assignment) + +## Worker Affinity + +Worker affinity allows you to specify that a workflow should be assigned to a specific worker based on worker label state. Labels can be set dynamically on workers to reflect their current state (i.e. a specific model loaded into memory, or specific disk requirements). By using worker affinity, you can ensure that workflows are assigned to workers that meet specific criteria, such as having sufficient resources or being in a specific location. + +[More about Worker Affinity →](./worker-affinity) diff --git a/frontend/docs/pages/home/features/worker-assignment/sticky-assignment.mdx b/frontend/docs/pages/home/features/worker-assignment/sticky-assignment.mdx new file mode 100644 index 000000000..c6313816b --- /dev/null +++ b/frontend/docs/pages/home/features/worker-assignment/sticky-assignment.mdx @@ -0,0 +1,199 @@ +import { Tabs, Callout } from "nextra/components"; + +# Sticky Worker Assignment (Beta) + + + This feature is currently in beta and may be subject to change. + + +Sticky assignment is a workflow property that allows you to specify that all steps of a workflow should be assigned to the same worker for the duration of its execution. This can be useful in situations like when you need to maintain expensive local memory state across multiple steps in a workflow or ensure that certain workflows are processed by the same worker for consistency. + + + This feature is only compatible with long lived workers, and not webhook + workers. + + +## Setting Sticky Assignment + +Sticky assignment is set on the workflow level by adding the `sticky` property to the workflow definition. When a workflow is marked as sticky, all steps within that workflow will be assigned to the same worker for the duration of the workflow execution. + + + While sticky assignment can be useful in certain scenarios, it can also + introduce potential bottlenecks if the assigned worker becomes unavailable, or + if local state is not maintained when the job is picked up. Be sure to + consider the implications of sticky assignment when designing your workflows + and have a plan in place to handle local state issues. + + +There are two strategies for setting sticky assignment: + +- `SOFT`: The all steps in the workflow will attempt to be assigned to the same worker, but if that worker is unavailable, it will be assigned to another worker. +- `HARD`: The all steps in the workflow will only be assigned to the same worker. If that worker is unavailable, the step run will not be assigned to another worker and will remain in a pending state until the original worker becomes available or timeout is reached. (See [Scheduling Timeouts](../timeouts.mdx)) + + + +```python +@hatchet.workflow( + on_events=["user:create"], + sticky=StickyStrategy.SOFT, # <-- specify the sticky strategy +) +class StickyWorkflow: + @hatchet.step() + def step1a(self, context: Context): + return {"worker": context.worker.id()} + + @hatchet.step() + def step1b(self, context: Context): + return {"worker": context.worker.id()} + + @hatchet.step(parents=["step1a", "step1b"]) + def step2(self, context: Context): + return {"worker": context.worker.id()} + +```` + + +```typescript +const myWorkflow: Workflow = { + id: "my-workflow", + description: "A workflow triggered by an event", + sticky: StickyStrategy.SOFT, // <-- specify the sticky strategy + on: { + event: "user:created", + }, + steps: [ + // Define your workflow steps here + ], +}; +```` + + + +```go + err = w.RegisterWorkflow( + &worker.WorkflowJob{ + On: worker.Events("user:create:sticky"), + Name: "sticky", + Description: "sticky", + StickyStrategy: types.StickyStrategyPtr(types.StickyStrategy_SOFT), + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }).SetName("step-one"), + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }).SetName("step-two"), + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }).SetName("step-three").AddParents("step-one", "step-two"), + }, + }, + ) +``` + + + +In this example, the `sticky` property is set to `SOFT`, which means that the workflow will attempt to be assigned to the same worker for the duration of its execution. If the original worker is unavailable, the workflow will be assigned to another worker. + +## Sticky Child Workflows + +It is possible to spawn child workflows on the same worker as the parent workflow by setting the `sticky` property to `true` in the `spawnWorkflow` method options. This can be useful when you need to maintain local state across multiple workflows or ensure that child workflows are processed by the same worker for consistency. + +However, the child workflow must: + +1. Specify a `sticky` strategy in the child workflow's definition +2. Be registered with the same worker as the parent workflow + +If either condition is not met, an error will be thrown when the child workflow is spawned. + + + +```python +@hatchet.workflow( + on_events=["sticky:parent"], +) +class StickyWorkflow: + @hatchet.step(parents=["step1a", "step1b"]) + async def parent_step(self, context: Context): + ref = context.spawn_workflow('StickyChildWorkflow', {}, options={"sticky": True}) + await ref.result() + return {"worker": context.worker.id()} +```` +```python +@hatchet.workflow( +on_events=["sticky:child"], +sticky=StickyStrategy.SOFT +) +class StickyChildWorkflow: +@hatchet.step() +def child(self, context: Context): +return {"worker": context.worker.id()} + +```` + + +```typescript +const parentWorkflow: Workflow = { + id: 'parent-sticky-workflow', + description: 'test', + steps: [ + { + name: 'step1', + run: async (ctx) => { + const results: Promise[] = []; + + for (let i = 0; i < 50; i++) { + const result = await ctx.spawnWorkflow(childWorkflow, {}, { sticky: true }); + results.push(result.result()); + } + + console.log('Results:', await Promise.all(results)); + + return { step1: 'step1 results!' }; + }, + }, + +], +}; + +```` + + + +```go + err = w.RegisterWorkflow( + &worker.WorkflowJob{ + On: worker.Events("user:create:sticky"), + Name: "sticky", + Description: "sticky", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + + sticky := true + + _, err = ctx.SpawnWorkflow("sticky-child", nil, &worker.SpawnWorkflowOpts{ + Sticky: &sticky, + }) + + if err != nil { + return nil, fmt.Errorf("error spawning workflow: %w", err) + } + + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }).SetName("step-one"), + }, + }, + ) + +``` + + +``` diff --git a/frontend/docs/pages/home/features/worker-assignment/worker-affinity.mdx b/frontend/docs/pages/home/features/worker-assignment/worker-affinity.mdx new file mode 100644 index 000000000..1f7919785 --- /dev/null +++ b/frontend/docs/pages/home/features/worker-assignment/worker-affinity.mdx @@ -0,0 +1,265 @@ +import { Tabs, Callout } from "nextra/components"; + +# Worker Affinity Assignment (Beta) + + + This feature is currently in beta and may be subject to change. + + +It is often desirable to assign workflows to specific workers based on certain criteria, such as worker capabilities, resource availability, or location. Worker affinity allows you to specify that a workflow should be assigned to a specific worker based on worker label state. Labels can be set dynamically on workers to reflect their current state, such as a specific model loaded into memory or specific disk requirements. + +Specific steps can then specify desired label state to ensure that workflows are assigned to workers that meet specific criteria. If no worker meets the specified criteria, the step run will remain in a pending state until a suitable worker becomes available or the step is cancelled. (See [Scheduling Timeouts](../timeouts.mdx)) + +## Specifying Worker Labels + +Labels can be set on workers when they are registered with the Hatchet service. Labels are key-value pairs that can be used to specify worker capabilities, resource availability, or other criteria that can be used to match workflows to workers. Values can be strings or numbers, and multiple labels can be set on a worker. + + + +```python +worker = hatchet.worker( + "affinity-worker", + labels={ + "model": "fancy-ai-model-v2", + "memory": 512, + }, +) +``` + + +```typescript + const worker = await hatchet.worker('affinity-worker', { + labels: { + model: 'fancy-ai-model-v2', + memory: 512, + }, + }); +``` + + +```go + w, err := worker.NewWorker( + worker.WithClient( + c, + ), + worker.WithLabels(map[string]interface{}{ + "model": "fancy-ai-model-v2", + "memory": 512, + }), + ) +``` + + + +## Specifying Step Desired Labels + +You can specify desired worker label state for specific steps in a workflow by setting the `worker_labels` property on the step definition. This property is an object where the keys are the label keys and the values are objects with the following properties: + +- `value`: The desired value of the label +- `comparator` (default: `EQUAL`): The comparison operator to use when matching the label value. + - `EQUAL`: The label value must be equal to the desired value + - `NOT_EQUAL`: The label value must not be equal to the desired value + - `GREATER_THAN`: The label value must be greater than the desired value + - `GREATER_THAN_OR_EQUAL`: The label value must be greater than or equal to the desired value + - `LESS_THAN`: The label value must be less than the desired value + - `LESS_THAN_OR_EQUAL`: The label value must be less than or equal to the desired value +- `required` (default: `true`): Whether the label is required for the step to run. If `true`, the step will remain in a pending state until a worker with the desired label state becomes available. If `false`, the worker will be prioritized based on the sum of the highest matching weights. +- `weight` (optional, default: `100`): The weight of the label. Higher weights are prioritized over lower weights when selecting a worker for the step. If multiple workers have the same highest weight, the worker with the highest sum of weights will be selected. Ignored if `required` is `true`. + + + +```python +@hatchet.step( + desired_worker_labels={ + "model": { + "value": "fancy-ai-model-v2", + "weight": 10 + }, + "memory": { + "value": 256, + "required": True, + "comparator": WorkerLabelComparator.GREATER_THAN, + } + }, +) +async def step(self, context: Context): + return {"worker": context.worker.id()} +``` + + +```typescript +const affinity: Workflow = { + id: 'affinity-workflow', + description: 'test', + steps: [ + { + name: 'child-step1', + worker_labels: { + model: { + value: 'fancy-vision-model', + required: false, + }, + memory: { + value: 1024, + comparator: WorkerLabelComparator.GREATER_THAN_OR_EQUAL, + }, + }, + run: async (ctx) => { + // DO WORK + return { childStep1: 'childStep1 results!' }; + }, + }, + ], +}; +``` + + +```go + err = w.RegisterWorkflow( + &worker.WorkflowJob{ + On: worker.Events("user:create:affinity"), + Name: "affinity", + Description: "affinity", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }). + SetName("step-one"). + SetDesiredLabels(map[string]*types.DesiredWorkerLabel{ + "model": { + Value: "fancy-ai-model-v2", + Weight: 10, + }, + "memory": { + Value: 512, + Required: true, + Comparator: types.ComparatorPtr(types.WorkerLabelComparator_GREATER_THAN), + }, + }), + }, + }, + ) +``` + + + + + Use extra care when using worker affinity with [sticky assignment `HARD` + strategy](./sticky-assignment.mdx). In this case, it is recommended to set + desired labels on the first step of the workflow to ensure that the workflow + is assigned to a worker that meets the desired criteria and remains on that + worker for the duration of the workflow. + + +### Dynamic Worker Labels + +Labels can also be set dynamically on workers using the `upsertLabels` method. This can be useful when worker state changes over time, such as when a new model is loaded into memory or when a worker's resource availability changes. + + + +```python + @hatchet.step( + desired_worker_labels={ + "model": { + "value": "fancy-vision-model", + "weight": 10 + }, + "memory": { + "value": 256, + "required": True, + "comparator": WorkerLabelComparator.GREATER_THAN, + }, + }, + ) + async def step(self, context: Context): + if context.worker.get_labels().get("model") != "fancy-vision-model": + context.worker.upsert_labels({"model": "unset"}) + # DO WORK TO EVICT OLD MODEL / LOAD NEW MODEL + evictModel() + loadNewModel("fancy-vision-model") + context.worker.upsert_labels({"model": "fancy-vision-model"}) + + return {"worker": context.worker.id()} + +```` + + +```typescript + const affinity: Workflow = { + id: 'dynamic-affinity-workflow', + description: 'test', + steps: [ + { + name: 'child-step1', + worker_labels: { + model: { + value: 'fancy-vision-model', + required: false, + }, + }, + run: async (ctx) => { + if (ctx.worker.labels().model !== 'fancy-vision-model') { + await ctx.worker.upsertLabels({ model: undefined }); + await evictModel(); + await loadNewModel("fancy-vision-model"); + await ctx.worker.upsertLabels({ model: 'fancy-vision-model' }); + } + // DO WORK + return { childStep1: 'childStep1 results!' }; + }, + }, + ], + }; +```` + + + +```go + err = w.RegisterWorkflow( + &worker.WorkflowJob{ + On: worker.Events("user:create:affinity"), + Name: "affinity", + Description: "affinity", + Steps: []*worker.WorkflowStep{ + worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { + + model := ctx.Worker().GetLabels()["model"] + + if model != "fancy-vision-model" { + ctx.Worker().UpsertLabels(map[string]interface{}{ + "model": nil, + }) + // Do something to load the model + evictModel(); + loadNewModel("fancy-vision-model"); + ctx.Worker().UpsertLabels(map[string]interface{}{ + "model": "fancy-vision-model", + }) + } + + return &stepOneOutput{ + Message: ctx.Worker().ID(), + }, nil + }). + SetName("step-one"). + SetDesiredLabels(map[string]*types.DesiredWorkerLabel{ + "model": { + Value: "fancy-vision-model", + Weight: 10, + }, + "memory": { + Value: 512, + Required: true, + Comparator: types.WorkerLabelComparator_GREATER_THAN, + }, + }), + }, + }, + ) + +``` + + +``` diff --git a/frontend/docs/pages/launches/rate-limits.mdx b/frontend/docs/pages/launches/rate-limits.mdx index 0f7b6f443..4c45c450c 100644 --- a/frontend/docs/pages/launches/rate-limits.mdx +++ b/frontend/docs/pages/launches/rate-limits.mdx @@ -72,9 +72,9 @@ err = c.Admin().PutRateLimit("example-limit", &types.RateLimitOpts{ ```go err = w.RegisterWorkflow( &worker.WorkflowJob{ - Name: "rate-limit-workflow", + Name: "rate-limit-workflow", Description: "This illustrates rate limiting.", - On: worker.NoTrigger(), + On: worker.NoTrigger(), Steps: []*worker.WorkflowStep{ worker.Fn(StepOne).SetName("step-one").SetRateLimit( worker.RateLimit{ diff --git a/frontend/docs/pages/sdks/python-sdk/get-workflow-results.mdx b/frontend/docs/pages/sdks/python-sdk/get-workflow-results.mdx index 99d6b1335..b7335e2f2 100644 --- a/frontend/docs/pages/sdks/python-sdk/get-workflow-results.mdx +++ b/frontend/docs/pages/sdks/python-sdk/get-workflow-results.mdx @@ -2,14 +2,14 @@ import { Callout } from "nextra/components"; # Getting Workflow Run Results -It is possible to wait for or stream the results of a workflow run by getting a `WorkflowRunRef`. This is the return value of the `run_workflow` and `get_workflow_run` methods on the `hatchet.admin` client, or the `spawn_workflow` method on a `Context` object. For example: +It is possible to wait for or stream the results of a workflow run by getting a `WorkflowRunRef`. This is the return value of the `run_workflow` and `get_workflow_run` methods on the `hatchet.client.admin` client, or the `spawn_workflow` method on a `Context` object. For example: ```py filename="get_workflow_run.py" copy from hatchet_sdk import Hatchet, ClientConfig hatchet = Hatchet() -workflow_run_ref = hatchet.admin.get_workflow_run( +workflow_run_ref = hatchet.client.admin.get_workflow_run( "5a3a617d-1200-4ee2-92e6-be4bd27ca26f", ) @@ -24,7 +24,7 @@ This method takes the `workflow_run_id` as a parameter and returns a reference t If you need to get the workflow run id from a different method than where it was invoked, you can store the value of the `workflow_run_id` attribute of the return value of [`run_workflow`](./run-workflow-api) or [`spawn_workflow`](./run-workflow-child). For example: ```py -workflow_run = hatchet.admin.run_workflow( +workflow_run = hatchet.client.admin.run_workflow( "ManualTriggerWorkflow", {"test": "test"}, ) @@ -54,7 +54,7 @@ It is also possible to stream the results of a workflow run as each step is exec ```py filename="stream_workflow_run.py" copy from hatchet_sdk import Hatchet, ClientConfig -workflow_run_ref = hatchet.admin.get_workflow_run( +workflow_run_ref = hatchet.client.admin.get_workflow_run( "5a3a617d-1200-4ee2-92e6-be4bd27ca26f", ) diff --git a/frontend/docs/pages/sdks/python-sdk/run-workflow-api.mdx b/frontend/docs/pages/sdks/python-sdk/run-workflow-api.mdx index 547d05a13..83c6ced61 100644 --- a/frontend/docs/pages/sdks/python-sdk/run-workflow-api.mdx +++ b/frontend/docs/pages/sdks/python-sdk/run-workflow-api.mdx @@ -1,13 +1,13 @@ # Running Workflows via API -Workflows can be triggered from the API by calling `run_workflow`. This method is available on the `hatchet.admin` client: +Workflows can be triggered from the API by calling `run_workflow`. This method is available on the `hatchet.client.admin` client: ```python filename="run_workflow.py" copy from hatchet_sdk import Hatchet, ClientConfig hatchet = Hatchet() -workflowRun = hatchet.admin.run_workflow( +workflowRun = hatchet.client.admin.run_workflow( "ManualTriggerWorkflow", {"test": "test"}, options={"additional_metadata": {"hello": "moon"}}, diff --git a/frontend/docs/pages/sdks/python-sdk/run-workflow-schedule.mdx b/frontend/docs/pages/sdks/python-sdk/run-workflow-schedule.mdx index 09c671fb3..372d9daac 100644 --- a/frontend/docs/pages/sdks/python-sdk/run-workflow-schedule.mdx +++ b/frontend/docs/pages/sdks/python-sdk/run-workflow-schedule.mdx @@ -1,6 +1,6 @@ # Running Scheduled Workflows -Workflows can be scheduled from the API to run at some future time by calling `schedule_workflow`. This method is available on the `hatchet.admin` client: +Workflows can be scheduled from the API to run at some future time by calling `schedule_workflow`. This method is available on the `hatchet.client.admin` client: ```py filename="scheduled_workflow.py" copy from hatchet_sdk import Hatchet, ClientConfig @@ -10,7 +10,7 @@ hatchet = Hatchet() now = datetime.now() future_time = now + timedelta(seconds=15) -workflowRun = hatchet.admin.schedule_workflow( +workflowRun = hatchet.client.admin.schedule_workflow( "ManualTriggerWorkflow", [future_time], {"test": "test"}, diff --git a/frontend/docs/pages/self-hosting/_meta.json b/frontend/docs/pages/self-hosting/_meta.json index 7770617f3..25fa95dc3 100644 --- a/frontend/docs/pages/self-hosting/_meta.json +++ b/frontend/docs/pages/self-hosting/_meta.json @@ -1,21 +1,22 @@ { - "index": "Introduction", - "-- Docker": { - "type": "separator", - "title": "Docker" - }, - "hatchet-lite": "Hatchet Lite", - "docker-compose": "Docker Compose", - "-- Kubernetes": { - "type": "separator", - "title": "Kubernetes" - }, - "kubernetes-quickstart": "Quickstart", - "kubernetes-glasskube": "Installing with Glasskube", - "networking": "Networking", - "-- Managing Hatchet": { - "type": "separator", - "title": "Managing Hatchet" - }, - "configuration-options": "Configuration Options" + "index": "Introduction", + "-- Docker": { + "type": "separator", + "title": "Docker" + }, + "hatchet-lite": "Hatchet Lite", + "docker-compose": "Docker Compose", + "-- Kubernetes": { + "type": "separator", + "title": "Kubernetes" + }, + "kubernetes-quickstart": "Quickstart", + "kubernetes-glasskube": "Installing with Glasskube", + "networking": "Networking", + "-- Managing Hatchet": { + "type": "separator", + "title": "Managing Hatchet" + }, + "configuration-options": "Configuration Options", + "data-retention": "Data Retention" } diff --git a/frontend/docs/pages/self-hosting/configuration-options.mdx b/frontend/docs/pages/self-hosting/configuration-options.mdx index bf27411d9..65058b778 100644 --- a/frontend/docs/pages/self-hosting/configuration-options.mdx +++ b/frontend/docs/pages/self-hosting/configuration-options.mdx @@ -1,8 +1,6 @@ # Configuration Options -The Hatchet server and engine can be configured via `HATCHET_SERVER` environment variables. This document contains a list of all available options. - -This document outlines the environment variables used to configure the server. These variables are grouped based on the configuration sections they belong to. +The Hatchet server and engine can be configured via `SERVER` and `DATABASE` environment variables. This document contains a list of all available options. ## Runtime Configuration @@ -14,13 +12,59 @@ This document outlines the environment variables used to configure the server. T | `SERVER_GRPC_BIND_ADDRESS` | GRPC server bind address | `127.0.0.1` | | `SERVER_GRPC_BROADCAST_ADDRESS` | GRPC server broadcast address | `127.0.0.1:7070` | | `SERVER_GRPC_INSECURE` | Controls if the GRPC server is insecure | `false` | -| `SERVER_WORKER_ENABLED` | Whether the internal worker is enabled | `false` | - -## Services Configuration - -| Variable | Description | Default Value | -| ----------------- | ------------------------ | ------------------------------------------------------------------------------------------------ | -| `SERVER_SERVICES` | List of enabled services | `["health", "ticker", "grpc", "eventscontroller", "queue", "webhookscontroller", "heartbeater"]` | +| `SERVER_SHUTDOWN_WAIT` | Shutdown wait duration | `20s` | +| `SERVER_ENFORCE_LIMITS` | Enforce tenant limits | `false` | +| `SERVER_ALLOW_SIGNUP` | Allow new tenant signups | `true` | +| `SERVER_ALLOW_INVITES` | Allow new invites | `true` | +| `SERVER_ALLOW_CREATE_TENANT` | Allow tenant creation | `true` | +| `SERVER_ALLOW_CHANGE_PASSWORD` | Allow password changes | `true` | + +## Database Configuration + +| Variable | Description | Default Value | +| ---------------------------- | ------------------------ | ------------- | +| `DATABASE_POSTGRES_HOST` | PostgreSQL host | `127.0.0.1` | +| `DATABASE_POSTGRES_PORT` | PostgreSQL port | `5431` | +| `DATABASE_POSTGRES_USERNAME` | PostgreSQL username | `hatchet` | +| `DATABASE_POSTGRES_PASSWORD` | PostgreSQL password | `hatchet` | +| `DATABASE_POSTGRES_DB_NAME` | PostgreSQL database name | `hatchet` | +| `DATABASE_POSTGRES_SSL_MODE` | PostgreSQL SSL mode | `disable` | +| `DATABASE_MAX_CONNS` | Max database connections | `5` | +| `DATABASE_LOG_QUERIES` | Log database queries | `false` | +| `CACHE_DURATION` | Cache duration | `60s` | + +## Security Check Configuration + +| Variable | Description | Default Value | +| -------------------------------- | ----------------------- | ------------------------------ | +| `SERVER_SECURITY_CHECK_ENABLED` | Enable security check | `true` | +| `SERVER_SECURITY_CHECK_ENDPOINT` | Security check endpoint | `https://security.hatchet.run` | + +## Limit Configuration + +| Variable | Description | Default Value | +| ------------------------------------------------ | -------------------------------- | ------------- | +| `SERVER_LIMITS_DEFAULT_TENANT_RETENTION_PERIOD` | Default tenant retention period | `720h` | +| `SERVER_LIMITS_DEFAULT_WORKFLOW_RUN_LIMIT` | Default workflow run limit | `1000` | +| `SERVER_LIMITS_DEFAULT_WORKFLOW_RUN_ALARM_LIMIT` | Default workflow run alarm limit | `750` | +| `SERVER_LIMITS_DEFAULT_WORKFLOW_RUN_WINDOW` | Default workflow run window | `24h` | +| `SERVER_LIMITS_DEFAULT_WORKER_LIMIT` | Default worker limit | `4` | +| `SERVER_LIMITS_DEFAULT_WORKER_ALARM_LIMIT` | Default worker alarm limit | `2` | +| `SERVER_LIMITS_DEFAULT_EVENT_LIMIT` | Default event limit | `1000` | +| `SERVER_LIMITS_DEFAULT_EVENT_ALARM_LIMIT` | Default event alarm limit | `750` | +| `SERVER_LIMITS_DEFAULT_EVENT_WINDOW` | Default event window | `24h` | +| `SERVER_LIMITS_DEFAULT_CRON_LIMIT` | Default cron limit | `5` | +| `SERVER_LIMITS_DEFAULT_CRON_ALARM_LIMIT` | Default cron alarm limit | `2` | +| `SERVER_LIMITS_DEFAULT_SCHEDULE_LIMIT` | Default schedule limit | `1000` | +| `SERVER_LIMITS_DEFAULT_SCHEDULE_ALARM_LIMIT` | Default schedule alarm limit | `750` | + +## Alerting Configuration + +| Variable | Description | Default Value | +| ------------------------------------ | -------------------------- | ------------- | +| `SERVER_ALERTING_SENTRY_ENABLED` | Enable Sentry for alerting | | +| `SERVER_ALERTING_SENTRY_DSN` | Sentry DSN | | +| `SERVER_ALERTING_SENTRY_ENVIRONMENT` | Sentry environment | `development` | ## Encryption Configuration @@ -51,12 +95,17 @@ This document outlines the environment variables used to configure the server. T | `SERVER_AUTH_GOOGLE_CLIENT_ID` | Google auth client ID | | | `SERVER_AUTH_GOOGLE_CLIENT_SECRET` | Google auth client secret | | | `SERVER_AUTH_GOOGLE_SCOPES` | Google auth scopes | `["openid", "profile", "email"]` | +| `SERVER_AUTH_GITHUB_ENABLED` | Whether GitHub auth is enabled | `false` | +| `SERVER_AUTH_GITHUB_CLIENT_ID` | GitHub auth client ID | | +| `SERVER_AUTH_GITHUB_CLIENT_SECRET` | GitHub auth client secret | | +| `SERVER_AUTH_GITHUB_SCOPES` | GitHub auth scopes | `["read:user", "user:email"]` | ## Task Queue Configuration -| Variable | Description | Default Value | -| ------------------------------- | ------------ | -------------------------------------- | -| `SERVER_TASKQUEUE_RABBITMQ_URL` | RabbitMQ URL | `amqp://user:password@localhost:5672/` | +| Variable | Description | Default Value | +| ------------------------------ | ------------------ | -------------------------------------- | +| `SERVER_MSGQUEUE_KIND` | Message queue kind | | +| `SERVER_MSGQUEUE_RABBITMQ_URL` | RabbitMQ URL | `amqp://user:password@localhost:5672/` | ## TLS Configuration @@ -73,10 +122,12 @@ This document outlines the environment variables used to configure the server. T ## Logging Configuration -| Variable | Description | Default Value | -| ---------------------- | ------------- | ------------- | -| `SERVER_LOGGER_LEVEL` | Logger level | | -| `SERVER_LOGGER_FORMAT` | Logger format | | +| Variable | Description | Default Value | +| ------------------------ | ------------- | ------------- | +| `SERVER_LOGGER_LEVEL` | Logger level | | +| `SERVER_LOGGER_FORMAT` | Logger format | | +| `DATABASE_LOGGER_LEVEL` | Logger level | | +| `DATABASE_LOGGER_FORMAT` | Logger format | | ## OpenTelemetry Configuration @@ -85,16 +136,11 @@ This document outlines the environment variables used to configure the server. T | `SERVER_OTEL_SERVICE_NAME` | Service name for OpenTelemetry | | | `SERVER_OTEL_COLLECTOR_URL` | Collector URL for OpenTelemetry | | -## Version Control System (VCS) Configuration - -| Variable | Description | Default Value | -| -------------------------------------- | ----------------------------- | ------------- | -| `SERVER_VCS_KIND` | Type of VCS | | -| `SERVER_VCS_GITHUB_ENABLED` | Whether GitHub is enabled | | -| `SERVER_VCS_GITHUB_APP_CLIENT_ID` | GitHub app client ID | | -| `SERVER_VCS_GITHUB_APP_CLIENT_SECRET` | GitHub app client secret | | -| `SERVER_VCS_GITHUB_APP_NAME` | GitHub app name | | -| `SERVER_VCS_GITHUB_APP_WEBHOOK_SECRET` | GitHub app webhook secret | | -| `SERVER_VCS_GITHUB_APP_WEBHOOK_URL` | GitHub app webhook URL | | -| `SERVER_VCS_GITHUB_APP_ID` | GitHub app ID | | -| `SERVER_VCS_GITHUB_APP_SECRET_PATH` | Path to the GitHub app secret | | +## Tenant Alerting Configuration + +| Variable | Description | Default Value | +| -------------------------------------------- | -------------------------------- | ---------------------- | +| `SERVER_TENANT_ALERTING_SLACK_ENABLED` | Enable Slack for tenant alerting | | +| `SERVER_TENANT_ALERTING_SLACK_CLIENT_ID` | Slack client ID | | +| `SERVER_TENANT_ALERTING_SLACK_CLIENT_SECRET` | Slack client secret | | +| `SERVER_TENANT_ALERTING_SLACK_SCOPES` | Slack scopes | `["incoming-webhook"]` | diff --git a/frontend/docs/pages/self-hosting/data-retention.mdx b/frontend/docs/pages/self-hosting/data-retention.mdx new file mode 100644 index 000000000..0a82abb01 --- /dev/null +++ b/frontend/docs/pages/self-hosting/data-retention.mdx @@ -0,0 +1,9 @@ +# Data Retention + +In Hatchet engine version `0.36.0` and above, you can configure the default data retention per tenant for workflow runs and events. The default value is set to 30 days, which means that all workflow runs which were created over 30 days ago and are in a final state (i.e. completed or failed), and all events which were created over 30 days ago, will be deleted. + +This can be configured by setting the following environment variable to a Go duration string: + +```sh +SERVER_LIMITS_DEFAULT_TENANT_RETENTION_PERIOD=720h # 30 days +``` diff --git a/frontend/docs/pages/self-hosting/hatchet-lite.mdx b/frontend/docs/pages/self-hosting/hatchet-lite.mdx index 595dfa881..4eceff4f6 100644 --- a/frontend/docs/pages/self-hosting/hatchet-lite.mdx +++ b/frontend/docs/pages/self-hosting/hatchet-lite.mdx @@ -86,9 +86,6 @@ name: hatchet-lite services: hatchet-lite: image: ghcr.io/hatchet-dev/hatchet/hatchet-lite:latest - ports: - - "8888:8888" - - "7077:7077" ports: - "8888:8888" - "7077:7077" diff --git a/go.mod b/go.mod index 18cbf2870..9999cc145 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ require ( github.com/Masterminds/semver/v3 v3.2.1 github.com/creasty/defaults v1.7.0 github.com/fatih/color v1.17.0 - github.com/getkin/kin-openapi v0.125.0 - github.com/go-co-op/gocron/v2 v2.7.0 + github.com/getkin/kin-openapi v0.127.0 + github.com/go-co-op/gocron/v2 v2.11.0 github.com/google/go-github/v57 v57.0.0 github.com/gorilla/securecookie v1.1.2 github.com/gorilla/sessions v1.3.0 @@ -25,46 +25,47 @@ require ( github.com/shopspring/decimal v1.4.0 github.com/spf13/cobra v1.8.1 github.com/spf13/viper v1.19.0 - github.com/steebchen/prisma-client-go v0.37.0 + github.com/steebchen/prisma-client-go v0.38.0 github.com/tink-crypto/tink-go v0.0.0-20230613075026-d6de17e3f164 github.com/tink-crypto/tink-go-gcpkms v0.0.0-20230602082706-31d0d09ccc8d - go.opentelemetry.io/otel v1.27.0 - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0 - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0 - go.opentelemetry.io/otel/sdk v1.27.0 - go.opentelemetry.io/otel/trace v1.27.0 + go.opentelemetry.io/otel v1.28.0 + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.28.0 + go.opentelemetry.io/otel/sdk v1.28.0 + go.opentelemetry.io/otel/trace v1.28.0 go.uber.org/goleak v1.3.0 - google.golang.org/api v0.186.0 + golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 + google.golang.org/api v0.190.0 sigs.k8s.io/yaml v1.4.0 ) require ( - cloud.google.com/go/auth v0.6.0 // indirect - cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect - cloud.google.com/go/compute/metadata v0.3.0 // indirect + cloud.google.com/go/auth v0.7.3 // indirect + cloud.google.com/go/auth/oauth2adapt v0.2.3 // indirect + cloud.google.com/go/compute/metadata v0.5.0 // indirect github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect - github.com/go-logr/logr v1.4.1 // indirect + github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-openapi/jsonpointer v0.20.2 // indirect - github.com/go-openapi/swag v0.22.8 // indirect + github.com/go-openapi/jsonpointer v0.21.0 // indirect + github.com/go-openapi/swag v0.23.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/google/s2a-go v0.1.7 // indirect + github.com/google/s2a-go v0.1.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect - github.com/googleapis/gax-go/v2 v2.12.5 // indirect + github.com/googleapis/gax-go/v2 v2.13.0 // indirect github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/invopop/yaml v0.2.0 // indirect + github.com/invopop/yaml v0.3.1 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect github.com/jonboulle/clockwork v0.4.0 // indirect @@ -82,13 +83,12 @@ require ( github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect - go.opentelemetry.io/otel/metric v1.27.0 // indirect - go.opentelemetry.io/proto/otlp v1.2.0 // indirect + go.opentelemetry.io/otel/metric v1.28.0 // indirect + go.opentelemetry.io/proto/otlp v1.3.1 // indirect go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.9.0 // indirect - golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect golang.org/x/time v0.5.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect ) require ( @@ -100,9 +100,8 @@ require ( github.com/go-playground/validator/v10 v10.22.0 github.com/go-test/deep v1.1.0 // indirect github.com/goccy/go-json v0.10.3 - github.com/golang/protobuf v1.5.4 // indirect github.com/google/uuid v1.6.0 - github.com/gorilla/schema v1.4.0 + github.com/gorilla/schema v1.4.1 github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/hcl v1.0.0 // indirect @@ -116,20 +115,20 @@ require ( github.com/rabbitmq/amqp091-go v1.10.0 github.com/robfig/cron/v3 v3.0.1 // indirect github.com/rs/zerolog v1.33.0 - github.com/slack-go/slack v0.13.0 + github.com/slack-go/slack v0.13.1 github.com/spf13/afero v1.11.0 // indirect github.com/spf13/cast v1.6.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.9.0 github.com/subosito/gotenv v1.6.0 // indirect - golang.org/x/crypto v0.24.0 - golang.org/x/net v0.26.0 // indirect - golang.org/x/oauth2 v0.21.0 - golang.org/x/sync v0.7.0 - golang.org/x/sys v0.21.0 // indirect - golang.org/x/text v0.16.0 - google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4 // indirect - google.golang.org/grpc v1.64.0 + golang.org/x/crypto v0.26.0 + golang.org/x/net v0.27.0 // indirect + golang.org/x/oauth2 v0.22.0 + golang.org/x/sync v0.8.0 + golang.org/x/sys v0.23.0 // indirect + golang.org/x/text v0.17.0 + google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect + google.golang.org/grpc v1.65.0 google.golang.org/protobuf v1.34.2 gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 diff --git a/go.sum b/go.sum index da9ae0d16..e33f21a39 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go/auth v0.6.0 h1:5x+d6b5zdezZ7gmLWD1m/xNjnaQ2YDhmIz/HH3doy1g= -cloud.google.com/go/auth v0.6.0/go.mod h1:b4acV+jLQDyjwm4OXHYjNvRi4jvGBzHWJRtJcy+2P4g= -cloud.google.com/go/auth/oauth2adapt v0.2.2 h1:+TTV8aXpjeChS9M+aTtN/TjdQnzJvmzKFt//oWu7HX4= -cloud.google.com/go/auth/oauth2adapt v0.2.2/go.mod h1:wcYjgpZI9+Yu7LyYBg4pqSiaRkfEK3GQcpb7C/uyF1Q= -cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= -cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/auth v0.7.3 h1:98Vr+5jMaCZ5NZk6e/uBgf60phTk/XN84r8QEWB9yjY= +cloud.google.com/go/auth v0.7.3/go.mod h1:HJtWUx1P5eqjy/f6Iq5KeytNpbAcGolPhOgyop2LlzA= +cloud.google.com/go/auth/oauth2adapt v0.2.3 h1:MlxF+Pd3OmSudg/b1yZ5lJwoXCEaeedAguodky1PcKI= +cloud.google.com/go/auth/oauth2adapt v0.2.3/go.mod h1:tMQXOfZzFuNuUxOypHlQEXgdfX5cuhwU+ffUuXRJE8I= +cloud.google.com/go/compute/metadata v0.5.0 h1:Zr0eK8JbFv6+Wi4ilXAR8FJ3wyNdpxHKJNPos6LTZOY= +cloud.google.com/go/compute/metadata v0.5.0/go.mod h1:aHnloV2TPI38yx4s9+wAZhHykWvVCfu7hQbF+9CWoiY= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= @@ -45,25 +45,25 @@ github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nos github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0= github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk= -github.com/getkin/kin-openapi v0.125.0 h1:jyQCyf2qXS1qvs2U00xQzkGCqYPhEhZDmSmVt65fXno= -github.com/getkin/kin-openapi v0.125.0/go.mod h1:wb1aSZA/iWmorQP9KTAS/phLj/t17B5jT7+fS8ed9NM= +github.com/getkin/kin-openapi v0.127.0 h1:Mghqi3Dhryf3F8vR370nN67pAERW+3a95vomb3MAREY= +github.com/getkin/kin-openapi v0.127.0/go.mod h1:OZrfXzUfGrNbsKj+xmFBx6E5c6yH3At/tAKSc2UszXM= github.com/getsentry/sentry-go v0.28.1 h1:zzaSm/vHmGllRM6Tpx1492r0YDzauArdBfkJRtY6P5k= github.com/getsentry/sentry-go v0.28.1/go.mod h1:1fQZ+7l7eeJ3wYi82q5Hg8GqAPgefRq+FP/QhafYVgg= github.com/go-chi/chi v1.5.5 h1:vOB/HbEMt9QqBqErz07QehcOKHaWFtuj87tTDVz2qXE= github.com/go-chi/chi v1.5.5/go.mod h1:C9JqLr3tIYjDOZpzn+BCuxY8z8vmca43EeMgyZt7irw= -github.com/go-co-op/gocron/v2 v2.7.0 h1:dFwVZx+M+7p3brj5JPrqmvmlt/X45DiQi6lFZ0xLIQc= -github.com/go-co-op/gocron/v2 v2.7.0/go.mod h1:ckPQw96ZuZLRUGu88vVpd9a6d9HakI14KWahFZtGvNw= +github.com/go-co-op/gocron/v2 v2.11.0 h1:IOowNA6SzwdRFnD4/Ol3Kj6G2xKfsoiiGq2Jhhm9bvE= +github.com/go-co-op/gocron/v2 v2.11.0/go.mod h1:xY7bJxGazKam1cz04EebrlP4S9q4iWdiAylMGP3jY9w= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q= -github.com/go-openapi/jsonpointer v0.20.2/go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs= -github.com/go-openapi/swag v0.22.8 h1:/9RjDSQ0vbFR+NyjGMkFTsA1IA0fmhKSThmfGZjicbw= -github.com/go-openapi/swag v0.22.8/go.mod h1:6QT22icPLEqAM/z/TChgb4WAveCHF92+2gF0CNjHpPI= +github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= +github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= +github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= +github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= @@ -94,8 +94,6 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= -github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -113,19 +111,19 @@ github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= -github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= +github.com/google/s2a-go v0.1.8 h1:zZDs9gcbt9ZPLV0ndSyQk6Kacx2g/X+SKYovpnz3SMM= +github.com/google/s2a-go v0.1.8/go.mod h1:6iNWHTpQ+nfNRN5E00MSdfDwVesa8hhS32PhPO8deJA= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= -github.com/googleapis/gax-go/v2 v2.12.5 h1:8gw9KZK8TiVKB6q3zHY3SBzLnrGp6HQjyfYBYGmXdxA= -github.com/googleapis/gax-go/v2 v2.12.5/go.mod h1:BUDKcWo+RaKq5SC9vVYL0wLADa3VcfswbOMMRmB9H3E= +github.com/googleapis/gax-go/v2 v2.13.0 h1:yitjD5f7jQHhyDsnhKEBU52NdvvdSeGzlAnDPT0hH1s= +github.com/googleapis/gax-go/v2 v2.13.0/go.mod h1:Z/fvTZXF8/uw7Xu5GuslPw+bplx6SS338j1Is2S+B7A= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= -github.com/gorilla/schema v1.4.0 h1:l2N+lRTJtev9SUhBtj6NmSxd/6+8LhvN0kV+H2Y8R9k= -github.com/gorilla/schema v1.4.0/go.mod h1:Dg5SSm5PV60mhF2NFaTV1xuYYj8tV8NOPRo4FggUMnM= +github.com/gorilla/schema v1.4.1 h1:jUg5hUjCSDZpNGLuXQOgIWGdlgrIdYvgQ0wZtdK1M3E= +github.com/gorilla/schema v1.4.1/go.mod h1:Dg5SSm5PV60mhF2NFaTV1xuYYj8tV8NOPRo4FggUMnM= github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kXD8ePA= github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo= github.com/gorilla/sessions v1.3.0 h1:XYlkq7KcpOB2ZhHBPv5WpjMIxrQosiZanfoy1HLZFzg= @@ -152,8 +150,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI= github.com/invopop/jsonschema v0.12.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0= -github.com/invopop/yaml v0.2.0 h1:7zky/qH+O0DwAyoobXUqvVBwgBFRxKoQ/3FjcVpjTMY= -github.com/invopop/yaml v0.2.0/go.mod h1:2XuRLgs/ouIrW3XNzuNj7J3Nvu/Dig5MXvbCEdiBN3Q= +github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso= +github.com/invopop/yaml v0.3.1/go.mod h1:PMOp3nn4/12yEZUFfmOuNHJsZToEEOwoWsT+D81KkeA= github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk= @@ -229,8 +227,8 @@ github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6g github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= -github.com/slack-go/slack v0.13.0 h1:7my/pR2ubZJ9912p9FtvALYpbt0cQPAqkRy2jaSI1PQ= -github.com/slack-go/slack v0.13.0/go.mod h1:hlGi5oXA+Gt+yWTPP0plCdRKmjsDxecdHxYQdlMQKOw= +github.com/slack-go/slack v0.13.1 h1:6UkM3U1OnbhPsYeb1IMkQ6HSNOSikWluwOncJt4Tz/o= +github.com/slack-go/slack v0.13.1/go.mod h1:hlGi5oXA+Gt+yWTPP0plCdRKmjsDxecdHxYQdlMQKOw= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= @@ -244,8 +242,8 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= -github.com/steebchen/prisma-client-go v0.37.0 h1:CYfRxUnIsJRlCvPM4Yw2fElB7Y9rC4f2/PPmHliqyTc= -github.com/steebchen/prisma-client-go v0.37.0/go.mod h1:wp2xU9HO5WIefc65vcl1HOiFUzaHKyOhHw5atrzs8hc= +github.com/steebchen/prisma-client-go v0.38.0 h1:zQasW4H66zvW3o8wI7vkWbCuW9S89cmD7zI3+fkUmFs= +github.com/steebchen/prisma-client-go v0.38.0/go.mod h1:wp2xU9HO5WIefc65vcl1HOiFUzaHKyOhHw5atrzs8hc= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -277,20 +275,20 @@ go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= -go.opentelemetry.io/otel v1.27.0 h1:9BZoF3yMK/O1AafMiQTVu0YDj5Ea4hPhxCs7sGva+cg= -go.opentelemetry.io/otel v1.27.0/go.mod h1:DMpAK8fzYRzs+bi3rS5REupisuqTheUlSZJ1WnZaPAQ= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0 h1:R9DE4kQ4k+YtfLI2ULwX82VtNQ2J8yZmA7ZIF/D+7Mc= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0/go.mod h1:OQFyQVrDlbe+R7xrEyDr/2Wr67Ol0hRUgsfA+V5A95s= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0 h1:qFffATk0X+HD+f1Z8lswGiOQYKHRlzfmdJm0wEaVrFA= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0/go.mod h1:MOiCmryaYtc+V0Ei+Tx9o5S1ZjA7kzLucuVuyzBZloQ= -go.opentelemetry.io/otel/metric v1.27.0 h1:hvj3vdEKyeCi4YaYfNjv2NUje8FqKqUY8IlF0FxV/ik= -go.opentelemetry.io/otel/metric v1.27.0/go.mod h1:mVFgmRlhljgBiuk/MP/oKylr4hs85GZAylncepAX/ak= -go.opentelemetry.io/otel/sdk v1.27.0 h1:mlk+/Y1gLPLn84U4tI8d3GNJmGT/eXe3ZuOXN9kTWmI= -go.opentelemetry.io/otel/sdk v1.27.0/go.mod h1:Ha9vbLwJE6W86YstIywK2xFfPjbWlCuwPtMkKdz/Y4A= -go.opentelemetry.io/otel/trace v1.27.0 h1:IqYb813p7cmbHk0a5y6pD5JPakbVfftRXABGt5/Rscw= -go.opentelemetry.io/otel/trace v1.27.0/go.mod h1:6RiD1hkAprV4/q+yd2ln1HG9GoPx39SuvvstaLBl+l4= -go.opentelemetry.io/proto/otlp v1.2.0 h1:pVeZGk7nXDC9O2hncA6nHldxEjm6LByfA2aN8IOkz94= -go.opentelemetry.io/proto/otlp v1.2.0/go.mod h1:gGpR8txAl5M03pDhMC79G6SdqNV26naRm/KDsgaHD8A= +go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= +go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 h1:3Q/xZUyC1BBkualc9ROb4G8qkH90LXEIICcs5zv1OYY= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0/go.mod h1:s75jGIWA9OfCMzF0xr+ZgfrB5FEbbV7UuYo32ahUiFI= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.28.0 h1:R3X6ZXmNPRR8ul6i3WgFURCHzaXjHdm0karRG/+dj3s= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.28.0/go.mod h1:QWFXnDavXWwMx2EEcZsf3yxgEKAqsxQ+Syjp+seyInw= +go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= +go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +go.opentelemetry.io/otel/sdk v1.28.0 h1:b9d7hIry8yZsgtbmM0DKyPWMMUMlK9NEKuIG4aBqWyE= +go.opentelemetry.io/otel/sdk v1.28.0/go.mod h1:oYj7ClPUA7Iw3m+r7GeEjz0qckQRJK2B8zjcZEfu7Pg= +go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= +go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= +go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= @@ -299,11 +297,11 @@ go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI= go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= +golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f h1:99ci1mjWVBWwJiEKYY6jWa4d2nTQVIEhZIptnrVb1XY= -golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI= +golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY= +golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= @@ -313,16 +311,16 @@ golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= -golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= +golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= +golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= -golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= +golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -330,12 +328,12 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= +golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -344,24 +342,24 @@ golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.186.0 h1:n2OPp+PPXX0Axh4GuSsL5QL8xQCTb2oDwyzPnQvqUug= -google.golang.org/api v0.186.0/go.mod h1:hvRbBmgoje49RV3xqVXrmP6w93n6ehGgIVPYrGtBFFc= +google.golang.org/api v0.190.0 h1:ASM+IhLY1zljNdLu19W1jTmU6A+gMk6M46Wlur61s+Q= +google.golang.org/api v0.190.0/go.mod h1:QIr6I9iedBLnfqoD6L6Vze1UvS5Hzj5r2aUBOaZnLHo= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3 h1:QW9+G6Fir4VcRXVH8x3LilNAb6cxBGLa6+GM4hRwexE= -google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3/go.mod h1:kdrSS/OiLkPrNUpzD4aHgCq2rVuC/YRxok32HXZ4vRE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4 h1:Di6ANFilr+S60a4S61ZM00vLdw0IrQOSMS2/6mrnOU0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= +google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f h1:b1Ln/PG8orm0SsBbHZWke8dDp2lrCD4jSmfglFpTZbk= +google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f/go.mod h1:AHT0dDg3SoMOgZGnZk29b5xTbPHMoEC8qthmBLJCpys= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf h1:liao9UHurZLtiEwBgT9LMOnKYsHze6eA6w1KQCMVN2Q= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= -google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= +google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= +google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -379,7 +377,6 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EV gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/hack/db/atlas-apply.sh b/hack/db/atlas-apply.sh index ff9b44812..bec83b0b5 100644 --- a/hack/db/atlas-apply.sh +++ b/hack/db/atlas-apply.sh @@ -55,7 +55,7 @@ if [ $? -eq 0 ] && [ -n "$MIGRATION_NAME" ]; then --baseline "$MIGRATION_NAME" \ --dir "file://sql/migrations" else - echo "No prisma migration found. Applying all migrations..." + echo "No prisma migration found. Applying migrations via atlas..." atlas migrate apply \ --url "$DATABASE_URL" \ diff --git a/hack/oas/generate-clients.sh b/hack/oas/generate-clients.sh index 4e13ce2d8..70cedc062 100644 --- a/hack/oas/generate-clients.sh +++ b/hack/oas/generate-clients.sh @@ -4,4 +4,4 @@ set -eux go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.0.0 -config ./pkg/client/rest/codegen.yaml ./bin/oas/openapi.yaml -cd frontend && (npx -y swagger-typescript-api -p ../bin/oas/openapi.yaml -o ./app/src/lib/api/generated -n hatchet.ts --modular --axios) +cd frontend/app/ && (pnpm swagger-typescript-api -p ../../bin/oas/openapi.yaml -o ./src/lib/api/generated -n hatchet.ts --modular --axios) diff --git a/hack/oas/generate-server.sh b/hack/oas/generate-server.sh index a3d95fc37..4750f9187 100644 --- a/hack/oas/generate-server.sh +++ b/hack/oas/generate-server.sh @@ -2,5 +2,5 @@ set -eux -npx --yes swagger-cli bundle ./api-contracts/openapi/openapi.yaml --outfile bin/oas/openapi.yaml --type yaml +npx --yes swagger-cli@4.0.4 bundle ./api-contracts/openapi/openapi.yaml --outfile bin/oas/openapi.yaml --type yaml go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.0.0 -config ./api/v1/server/oas/gen/codegen.yaml ./bin/oas/openapi.yaml diff --git a/internal/msgqueue/rabbitmq/rabbitmq.go b/internal/msgqueue/rabbitmq/rabbitmq.go index 982aff7a6..9a698dfd2 100644 --- a/internal/msgqueue/rabbitmq/rabbitmq.go +++ b/internal/msgqueue/rabbitmq/rabbitmq.go @@ -41,6 +41,8 @@ type MessageQueueImpl struct { msgs chan *msgWithQueue identity string + qos int + l *zerolog.Logger ready bool @@ -58,6 +60,7 @@ type MessageQueueImplOpt func(*MessageQueueImplOpts) type MessageQueueImplOpts struct { l *zerolog.Logger url string + qos int } func defaultMessageQueueImplOpts() *MessageQueueImplOpts { @@ -80,6 +83,12 @@ func WithURL(url string) MessageQueueImplOpt { } } +func WithQos(qos int) MessageQueueImplOpt { + return func(opts *MessageQueueImplOpts) { + opts.qos = qos + } +} + // New creates a new MessageQueueImpl. func New(fs ...MessageQueueImplOpt) (func() error, *MessageQueueImpl) { ctx, cancel := context.WithCancel(context.Background()) @@ -97,6 +106,7 @@ func New(fs ...MessageQueueImplOpt) (func() error, *MessageQueueImpl) { ctx: ctx, identity: identity(), l: opts.l, + qos: opts.qos, } constructor := func(context.Context) (*amqp.Connection, error) { @@ -407,7 +417,7 @@ func (t *MessageQueueImpl) subscribe( } // We'd like to limit to 1k TPS per engine. The max channels on an instance is 10. - err = sub.Qos(100, 0, false) + err = sub.Qos(t.qos, 0, false) if err != nil { t.l.Error().Msgf("cannot set qos: %v", err) diff --git a/internal/msgqueue/rabbitmq/rabbitmq_test.go b/internal/msgqueue/rabbitmq/rabbitmq_test.go index 89f419573..fc7c257d3 100644 --- a/internal/msgqueue/rabbitmq/rabbitmq_test.go +++ b/internal/msgqueue/rabbitmq/rabbitmq_test.go @@ -29,6 +29,7 @@ func TestMessageQueueIntegration(t *testing.T) { // Initialize the task queue implementation cleanup, tq := rabbitmq.New( rabbitmq.WithURL(url), + rabbitmq.WithQos(100), ) defer cleanup() // nolint: errcheck @@ -111,6 +112,7 @@ func TestDeadLetteringSuccess(t *testing.T) { // Initialize the task queue implementation cleanup, tq := rabbitmq.New( rabbitmq.WithURL(url), + rabbitmq.WithQos(100), ) defer cleanup() // nolint: errcheck @@ -169,6 +171,7 @@ func TestDeadLetteringExceedRetriesFailure(t *testing.T) { // Initialize the task queue implementation cleanup, tq := rabbitmq.New( rabbitmq.WithURL(url), + rabbitmq.WithQos(100), ) defer cleanup() // nolint: errcheck diff --git a/internal/services/admin/contracts/workflows.pb.go b/internal/services/admin/contracts/workflows.pb.go index 45a1f0388..fe1eeceeb 100644 --- a/internal/services/admin/contracts/workflows.pb.go +++ b/internal/services/admin/contracts/workflows.pb.go @@ -21,6 +21,101 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type StickyStrategy int32 + +const ( + StickyStrategy_SOFT StickyStrategy = 0 + StickyStrategy_HARD StickyStrategy = 1 +) + +// Enum value maps for StickyStrategy. +var ( + StickyStrategy_name = map[int32]string{ + 0: "SOFT", + 1: "HARD", + } + StickyStrategy_value = map[string]int32{ + "SOFT": 0, + "HARD": 1, + } +) + +func (x StickyStrategy) Enum() *StickyStrategy { + p := new(StickyStrategy) + *p = x + return p +} + +func (x StickyStrategy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StickyStrategy) Descriptor() protoreflect.EnumDescriptor { + return file_workflows_proto_enumTypes[0].Descriptor() +} + +func (StickyStrategy) Type() protoreflect.EnumType { + return &file_workflows_proto_enumTypes[0] +} + +func (x StickyStrategy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StickyStrategy.Descriptor instead. +func (StickyStrategy) EnumDescriptor() ([]byte, []int) { + return file_workflows_proto_rawDescGZIP(), []int{0} +} + +type WorkflowKind int32 + +const ( + WorkflowKind_FUNCTION WorkflowKind = 0 + WorkflowKind_DURABLE WorkflowKind = 1 + WorkflowKind_DAG WorkflowKind = 2 +) + +// Enum value maps for WorkflowKind. +var ( + WorkflowKind_name = map[int32]string{ + 0: "FUNCTION", + 1: "DURABLE", + 2: "DAG", + } + WorkflowKind_value = map[string]int32{ + "FUNCTION": 0, + "DURABLE": 1, + "DAG": 2, + } +) + +func (x WorkflowKind) Enum() *WorkflowKind { + p := new(WorkflowKind) + *p = x + return p +} + +func (x WorkflowKind) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WorkflowKind) Descriptor() protoreflect.EnumDescriptor { + return file_workflows_proto_enumTypes[1].Descriptor() +} + +func (WorkflowKind) Type() protoreflect.EnumType { + return &file_workflows_proto_enumTypes[1] +} + +func (x WorkflowKind) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WorkflowKind.Descriptor instead. +func (WorkflowKind) EnumDescriptor() ([]byte, []int) { + return file_workflows_proto_rawDescGZIP(), []int{1} +} + type ConcurrencyLimitStrategy int32 const ( @@ -57,11 +152,11 @@ func (x ConcurrencyLimitStrategy) String() string { } func (ConcurrencyLimitStrategy) Descriptor() protoreflect.EnumDescriptor { - return file_workflows_proto_enumTypes[0].Descriptor() + return file_workflows_proto_enumTypes[2].Descriptor() } func (ConcurrencyLimitStrategy) Type() protoreflect.EnumType { - return &file_workflows_proto_enumTypes[0] + return &file_workflows_proto_enumTypes[2] } func (x ConcurrencyLimitStrategy) Number() protoreflect.EnumNumber { @@ -70,7 +165,65 @@ func (x ConcurrencyLimitStrategy) Number() protoreflect.EnumNumber { // Deprecated: Use ConcurrencyLimitStrategy.Descriptor instead. func (ConcurrencyLimitStrategy) EnumDescriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{0} + return file_workflows_proto_rawDescGZIP(), []int{2} +} + +type WorkerLabelComparator int32 + +const ( + WorkerLabelComparator_EQUAL WorkerLabelComparator = 0 + WorkerLabelComparator_NOT_EQUAL WorkerLabelComparator = 1 + WorkerLabelComparator_GREATER_THAN WorkerLabelComparator = 2 + WorkerLabelComparator_GREATER_THAN_OR_EQUAL WorkerLabelComparator = 3 + WorkerLabelComparator_LESS_THAN WorkerLabelComparator = 4 + WorkerLabelComparator_LESS_THAN_OR_EQUAL WorkerLabelComparator = 5 +) + +// Enum value maps for WorkerLabelComparator. +var ( + WorkerLabelComparator_name = map[int32]string{ + 0: "EQUAL", + 1: "NOT_EQUAL", + 2: "GREATER_THAN", + 3: "GREATER_THAN_OR_EQUAL", + 4: "LESS_THAN", + 5: "LESS_THAN_OR_EQUAL", + } + WorkerLabelComparator_value = map[string]int32{ + "EQUAL": 0, + "NOT_EQUAL": 1, + "GREATER_THAN": 2, + "GREATER_THAN_OR_EQUAL": 3, + "LESS_THAN": 4, + "LESS_THAN_OR_EQUAL": 5, + } +) + +func (x WorkerLabelComparator) Enum() *WorkerLabelComparator { + p := new(WorkerLabelComparator) + *p = x + return p +} + +func (x WorkerLabelComparator) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WorkerLabelComparator) Descriptor() protoreflect.EnumDescriptor { + return file_workflows_proto_enumTypes[3].Descriptor() +} + +func (WorkerLabelComparator) Type() protoreflect.EnumType { + return &file_workflows_proto_enumTypes[3] +} + +func (x WorkerLabelComparator) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WorkerLabelComparator.Descriptor instead. +func (WorkerLabelComparator) EnumDescriptor() ([]byte, []int) { + return file_workflows_proto_rawDescGZIP(), []int{3} } type RateLimitDuration int32 @@ -118,11 +271,11 @@ func (x RateLimitDuration) String() string { } func (RateLimitDuration) Descriptor() protoreflect.EnumDescriptor { - return file_workflows_proto_enumTypes[1].Descriptor() + return file_workflows_proto_enumTypes[4].Descriptor() } func (RateLimitDuration) Type() protoreflect.EnumType { - return &file_workflows_proto_enumTypes[1] + return &file_workflows_proto_enumTypes[4] } func (x RateLimitDuration) Number() protoreflect.EnumNumber { @@ -131,7 +284,7 @@ func (x RateLimitDuration) Number() protoreflect.EnumNumber { // Deprecated: Use RateLimitDuration.Descriptor instead. func (RateLimitDuration) EnumDescriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{1} + return file_workflows_proto_rawDescGZIP(), []int{4} } type PutWorkflowRequest struct { @@ -198,6 +351,8 @@ type CreateWorkflowVersionOpts struct { ScheduleTimeout *string `protobuf:"bytes,9,opt,name=schedule_timeout,json=scheduleTimeout,proto3,oneof" json:"schedule_timeout,omitempty"` // (optional) the timeout for the schedule CronInput *string `protobuf:"bytes,10,opt,name=cron_input,json=cronInput,proto3,oneof" json:"cron_input,omitempty"` // (optional) the input for the cron trigger OnFailureJob *CreateWorkflowJobOpts `protobuf:"bytes,11,opt,name=on_failure_job,json=onFailureJob,proto3,oneof" json:"on_failure_job,omitempty"` // (optional) the job to run on failure + Sticky *StickyStrategy `protobuf:"varint,12,opt,name=sticky,proto3,enum=StickyStrategy,oneof" json:"sticky,omitempty"` // (optional) the sticky strategy for assigning steps to workers + Kind *WorkflowKind `protobuf:"varint,13,opt,name=kind,proto3,enum=WorkflowKind,oneof" json:"kind,omitempty"` // (optional) the kind of workflow } func (x *CreateWorkflowVersionOpts) Reset() { @@ -309,6 +464,20 @@ func (x *CreateWorkflowVersionOpts) GetOnFailureJob() *CreateWorkflowJobOpts { return nil } +func (x *CreateWorkflowVersionOpts) GetSticky() StickyStrategy { + if x != nil && x.Sticky != nil { + return *x.Sticky + } + return StickyStrategy_SOFT +} + +func (x *CreateWorkflowVersionOpts) GetKind() WorkflowKind { + if x != nil && x.Kind != nil { + return *x.Kind + } + return WorkflowKind_FUNCTION +} + type WorkflowConcurrencyOpts struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -436,26 +605,118 @@ func (x *CreateWorkflowJobOpts) GetSteps() []*CreateWorkflowStepOpts { return nil } +type DesiredWorkerLabels struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value of the affinity + StrValue *string `protobuf:"bytes,1,opt,name=strValue,proto3,oneof" json:"strValue,omitempty"` + IntValue *int32 `protobuf:"varint,2,opt,name=intValue,proto3,oneof" json:"intValue,omitempty"` + // * + // (optional) Specifies whether the affinity setting is required. + // If required, the worker will not accept actions that do not have a truthy affinity setting. + // + // Defaults to false. + Required *bool `protobuf:"varint,3,opt,name=required,proto3,oneof" json:"required,omitempty"` + // * + // (optional) Specifies the comparator for the affinity setting. + // If not set, the default is EQUAL. + Comparator *WorkerLabelComparator `protobuf:"varint,4,opt,name=comparator,proto3,enum=WorkerLabelComparator,oneof" json:"comparator,omitempty"` + // * + // (optional) Specifies the weight of the affinity setting. + // If not set, the default is 100. + Weight *int32 `protobuf:"varint,5,opt,name=weight,proto3,oneof" json:"weight,omitempty"` +} + +func (x *DesiredWorkerLabels) Reset() { + *x = DesiredWorkerLabels{} + if protoimpl.UnsafeEnabled { + mi := &file_workflows_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DesiredWorkerLabels) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DesiredWorkerLabels) ProtoMessage() {} + +func (x *DesiredWorkerLabels) ProtoReflect() protoreflect.Message { + mi := &file_workflows_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DesiredWorkerLabels.ProtoReflect.Descriptor instead. +func (*DesiredWorkerLabels) Descriptor() ([]byte, []int) { + return file_workflows_proto_rawDescGZIP(), []int{4} +} + +func (x *DesiredWorkerLabels) GetStrValue() string { + if x != nil && x.StrValue != nil { + return *x.StrValue + } + return "" +} + +func (x *DesiredWorkerLabels) GetIntValue() int32 { + if x != nil && x.IntValue != nil { + return *x.IntValue + } + return 0 +} + +func (x *DesiredWorkerLabels) GetRequired() bool { + if x != nil && x.Required != nil { + return *x.Required + } + return false +} + +func (x *DesiredWorkerLabels) GetComparator() WorkerLabelComparator { + if x != nil && x.Comparator != nil { + return *x.Comparator + } + return WorkerLabelComparator_EQUAL +} + +func (x *DesiredWorkerLabels) GetWeight() int32 { + if x != nil && x.Weight != nil { + return *x.Weight + } + return 0 +} + // CreateWorkflowStepOpts represents options to create a workflow step. type CreateWorkflowStepOpts struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ReadableId string `protobuf:"bytes,1,opt,name=readable_id,json=readableId,proto3" json:"readable_id,omitempty"` // (required) the step name - Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // (required) the step action id - Timeout string `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // (optional) the step timeout - Inputs string `protobuf:"bytes,4,opt,name=inputs,proto3" json:"inputs,omitempty"` // (optional) the step inputs, assuming string representation of JSON - Parents []string `protobuf:"bytes,5,rep,name=parents,proto3" json:"parents,omitempty"` // (optional) the step parents. if none are passed in, this is a root step - UserData string `protobuf:"bytes,6,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` // (optional) the custom step user data, assuming string representation of JSON - Retries int32 `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"` // (optional) the number of retries for the step, default 0 - RateLimits []*CreateStepRateLimit `protobuf:"bytes,8,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"` // (optional) the rate limits for the step + ReadableId string `protobuf:"bytes,1,opt,name=readable_id,json=readableId,proto3" json:"readable_id,omitempty"` // (required) the step name + Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // (required) the step action id + Timeout string `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // (optional) the step timeout + Inputs string `protobuf:"bytes,4,opt,name=inputs,proto3" json:"inputs,omitempty"` // (optional) the step inputs, assuming string representation of JSON + Parents []string `protobuf:"bytes,5,rep,name=parents,proto3" json:"parents,omitempty"` // (optional) the step parents. if none are passed in, this is a root step + UserData string `protobuf:"bytes,6,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` // (optional) the custom step user data, assuming string representation of JSON + Retries int32 `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"` // (optional) the number of retries for the step, default 0 + RateLimits []*CreateStepRateLimit `protobuf:"bytes,8,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"` // (optional) the rate limits for the step + WorkerLabels map[string]*DesiredWorkerLabels `protobuf:"bytes,9,rep,name=worker_labels,json=workerLabels,proto3" json:"worker_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // (optional) the desired worker affinity state for the step } func (x *CreateWorkflowStepOpts) Reset() { *x = CreateWorkflowStepOpts{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[4] + mi := &file_workflows_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -468,7 +729,7 @@ func (x *CreateWorkflowStepOpts) String() string { func (*CreateWorkflowStepOpts) ProtoMessage() {} func (x *CreateWorkflowStepOpts) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[4] + mi := &file_workflows_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -481,7 +742,7 @@ func (x *CreateWorkflowStepOpts) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateWorkflowStepOpts.ProtoReflect.Descriptor instead. func (*CreateWorkflowStepOpts) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{4} + return file_workflows_proto_rawDescGZIP(), []int{5} } func (x *CreateWorkflowStepOpts) GetReadableId() string { @@ -540,6 +801,13 @@ func (x *CreateWorkflowStepOpts) GetRateLimits() []*CreateStepRateLimit { return nil } +func (x *CreateWorkflowStepOpts) GetWorkerLabels() map[string]*DesiredWorkerLabels { + if x != nil { + return x.WorkerLabels + } + return nil +} + type CreateStepRateLimit struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -552,7 +820,7 @@ type CreateStepRateLimit struct { func (x *CreateStepRateLimit) Reset() { *x = CreateStepRateLimit{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[5] + mi := &file_workflows_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -565,7 +833,7 @@ func (x *CreateStepRateLimit) String() string { func (*CreateStepRateLimit) ProtoMessage() {} func (x *CreateStepRateLimit) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[5] + mi := &file_workflows_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -578,7 +846,7 @@ func (x *CreateStepRateLimit) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateStepRateLimit.ProtoReflect.Descriptor instead. func (*CreateStepRateLimit) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{5} + return file_workflows_proto_rawDescGZIP(), []int{6} } func (x *CreateStepRateLimit) GetKey() string { @@ -605,7 +873,7 @@ type ListWorkflowsRequest struct { func (x *ListWorkflowsRequest) Reset() { *x = ListWorkflowsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[6] + mi := &file_workflows_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -618,7 +886,7 @@ func (x *ListWorkflowsRequest) String() string { func (*ListWorkflowsRequest) ProtoMessage() {} func (x *ListWorkflowsRequest) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[6] + mi := &file_workflows_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -631,7 +899,7 @@ func (x *ListWorkflowsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListWorkflowsRequest.ProtoReflect.Descriptor instead. func (*ListWorkflowsRequest) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{6} + return file_workflows_proto_rawDescGZIP(), []int{7} } type ScheduleWorkflowRequest struct { @@ -658,7 +926,7 @@ type ScheduleWorkflowRequest struct { func (x *ScheduleWorkflowRequest) Reset() { *x = ScheduleWorkflowRequest{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[7] + mi := &file_workflows_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -671,7 +939,7 @@ func (x *ScheduleWorkflowRequest) String() string { func (*ScheduleWorkflowRequest) ProtoMessage() {} func (x *ScheduleWorkflowRequest) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[7] + mi := &file_workflows_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -684,7 +952,7 @@ func (x *ScheduleWorkflowRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduleWorkflowRequest.ProtoReflect.Descriptor instead. func (*ScheduleWorkflowRequest) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{7} + return file_workflows_proto_rawDescGZIP(), []int{8} } func (x *ScheduleWorkflowRequest) GetName() string { @@ -753,7 +1021,7 @@ type WorkflowVersion struct { func (x *WorkflowVersion) Reset() { *x = WorkflowVersion{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[8] + mi := &file_workflows_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -766,7 +1034,7 @@ func (x *WorkflowVersion) String() string { func (*WorkflowVersion) ProtoMessage() {} func (x *WorkflowVersion) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[8] + mi := &file_workflows_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -779,7 +1047,7 @@ func (x *WorkflowVersion) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowVersion.ProtoReflect.Descriptor instead. func (*WorkflowVersion) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{8} + return file_workflows_proto_rawDescGZIP(), []int{9} } func (x *WorkflowVersion) GetId() string { @@ -837,7 +1105,7 @@ type WorkflowTriggerEventRef struct { func (x *WorkflowTriggerEventRef) Reset() { *x = WorkflowTriggerEventRef{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[9] + mi := &file_workflows_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -850,7 +1118,7 @@ func (x *WorkflowTriggerEventRef) String() string { func (*WorkflowTriggerEventRef) ProtoMessage() {} func (x *WorkflowTriggerEventRef) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[9] + mi := &file_workflows_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -863,7 +1131,7 @@ func (x *WorkflowTriggerEventRef) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowTriggerEventRef.ProtoReflect.Descriptor instead. func (*WorkflowTriggerEventRef) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{9} + return file_workflows_proto_rawDescGZIP(), []int{10} } func (x *WorkflowTriggerEventRef) GetParentId() string { @@ -893,7 +1161,7 @@ type WorkflowTriggerCronRef struct { func (x *WorkflowTriggerCronRef) Reset() { *x = WorkflowTriggerCronRef{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[10] + mi := &file_workflows_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -906,7 +1174,7 @@ func (x *WorkflowTriggerCronRef) String() string { func (*WorkflowTriggerCronRef) ProtoMessage() {} func (x *WorkflowTriggerCronRef) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[10] + mi := &file_workflows_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -919,7 +1187,7 @@ func (x *WorkflowTriggerCronRef) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowTriggerCronRef.ProtoReflect.Descriptor instead. func (*WorkflowTriggerCronRef) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{10} + return file_workflows_proto_rawDescGZIP(), []int{11} } func (x *WorkflowTriggerCronRef) GetParentId() string { @@ -958,12 +1226,15 @@ type TriggerWorkflowRequest struct { ChildKey *string `protobuf:"bytes,6,opt,name=child_key,json=childKey,proto3,oneof" json:"child_key,omitempty"` // (optional) additional metadata for the workflow AdditionalMetadata *string `protobuf:"bytes,7,opt,name=additional_metadata,json=additionalMetadata,proto3,oneof" json:"additional_metadata,omitempty"` + // (optional) desired worker id for the workflow run, + // requires the workflow definition to have a sticky strategy + DesiredWorkerId *string `protobuf:"bytes,8,opt,name=desired_worker_id,json=desiredWorkerId,proto3,oneof" json:"desired_worker_id,omitempty"` } func (x *TriggerWorkflowRequest) Reset() { *x = TriggerWorkflowRequest{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[11] + mi := &file_workflows_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -976,7 +1247,7 @@ func (x *TriggerWorkflowRequest) String() string { func (*TriggerWorkflowRequest) ProtoMessage() {} func (x *TriggerWorkflowRequest) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[11] + mi := &file_workflows_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -989,7 +1260,7 @@ func (x *TriggerWorkflowRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TriggerWorkflowRequest.ProtoReflect.Descriptor instead. func (*TriggerWorkflowRequest) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{11} + return file_workflows_proto_rawDescGZIP(), []int{12} } func (x *TriggerWorkflowRequest) GetName() string { @@ -1041,6 +1312,13 @@ func (x *TriggerWorkflowRequest) GetAdditionalMetadata() string { return "" } +func (x *TriggerWorkflowRequest) GetDesiredWorkerId() string { + if x != nil && x.DesiredWorkerId != nil { + return *x.DesiredWorkerId + } + return "" +} + type TriggerWorkflowResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1052,7 +1330,7 @@ type TriggerWorkflowResponse struct { func (x *TriggerWorkflowResponse) Reset() { *x = TriggerWorkflowResponse{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[12] + mi := &file_workflows_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1065,7 +1343,7 @@ func (x *TriggerWorkflowResponse) String() string { func (*TriggerWorkflowResponse) ProtoMessage() {} func (x *TriggerWorkflowResponse) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[12] + mi := &file_workflows_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1078,7 +1356,7 @@ func (x *TriggerWorkflowResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TriggerWorkflowResponse.ProtoReflect.Descriptor instead. func (*TriggerWorkflowResponse) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{12} + return file_workflows_proto_rawDescGZIP(), []int{13} } func (x *TriggerWorkflowResponse) GetWorkflowRunId() string { @@ -1104,7 +1382,7 @@ type PutRateLimitRequest struct { func (x *PutRateLimitRequest) Reset() { *x = PutRateLimitRequest{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[13] + mi := &file_workflows_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1117,7 +1395,7 @@ func (x *PutRateLimitRequest) String() string { func (*PutRateLimitRequest) ProtoMessage() {} func (x *PutRateLimitRequest) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[13] + mi := &file_workflows_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1130,7 +1408,7 @@ func (x *PutRateLimitRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutRateLimitRequest.ProtoReflect.Descriptor instead. func (*PutRateLimitRequest) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{13} + return file_workflows_proto_rawDescGZIP(), []int{14} } func (x *PutRateLimitRequest) GetKey() string { @@ -1163,7 +1441,7 @@ type PutRateLimitResponse struct { func (x *PutRateLimitResponse) Reset() { *x = PutRateLimitResponse{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_proto_msgTypes[14] + mi := &file_workflows_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1176,7 +1454,7 @@ func (x *PutRateLimitResponse) String() string { func (*PutRateLimitResponse) ProtoMessage() {} func (x *PutRateLimitResponse) ProtoReflect() protoreflect.Message { - mi := &file_workflows_proto_msgTypes[14] + mi := &file_workflows_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1189,7 +1467,7 @@ func (x *PutRateLimitResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutRateLimitResponse.ProtoReflect.Descriptor instead. func (*PutRateLimitResponse) Descriptor() ([]byte, []int) { - return file_workflows_proto_rawDescGZIP(), []int{14} + return file_workflows_proto_rawDescGZIP(), []int{15} } var File_workflows_proto protoreflect.FileDescriptor @@ -1202,7 +1480,7 @@ var file_workflows_proto_rawDesc = []byte{ 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x70, - 0x74, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x22, 0xb8, 0x04, 0x0a, 0x19, 0x43, 0x72, 0x65, + 0x74, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x22, 0xa2, 0x05, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, @@ -1234,28 +1512,52 @@ var file_workflows_proto_rawDesc = []byte{ 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4a, 0x6f, 0x62, 0x4f, 0x70, 0x74, 0x73, 0x48, 0x02, 0x52, 0x0c, 0x6f, 0x6e, 0x46, - 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4a, 0x6f, 0x62, 0x88, 0x01, 0x01, 0x42, 0x13, 0x0a, 0x11, - 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, - 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, - 0x6a, 0x6f, 0x62, 0x22, 0x8e, 0x01, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4f, 0x70, 0x74, 0x73, 0x12, - 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x72, - 0x75, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x75, - 0x6e, 0x73, 0x12, 0x40, 0x0a, 0x0e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x43, 0x6f, 0x6e, - 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x72, - 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x72, 0x61, - 0x74, 0x65, 0x67, 0x79, 0x22, 0x82, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4a, 0x6f, 0x62, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x65, 0x70, 0x4f, 0x70, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, - 0x65, 0x70, 0x73, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x8b, 0x02, 0x0a, 0x16, 0x43, 0x72, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4a, 0x6f, 0x62, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x06, + 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x53, + 0x74, 0x69, 0x63, 0x6b, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x03, 0x52, + 0x06, 0x73, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x04, 0x6b, 0x69, + 0x6e, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x4b, 0x69, 0x6e, 0x64, 0x48, 0x04, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x88, + 0x01, 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x63, 0x72, 0x6f, 0x6e, + 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x6f, 0x6e, 0x5f, 0x66, 0x61, + 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, + 0x69, 0x63, 0x6b, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x8e, 0x01, + 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x40, 0x0a, 0x0e, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, + 0x0d, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0x82, + 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x4a, 0x6f, 0x62, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, + 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, + 0x65, 0x70, 0x4f, 0x70, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x4a, 0x04, 0x08, + 0x03, 0x10, 0x04, 0x22, 0x93, 0x02, 0x0a, 0x13, 0x44, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x08, 0x73, + 0x74, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x08, 0x73, 0x74, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, + 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, + 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, + 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, + 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x3b, + 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x48, 0x03, 0x52, 0x0a, 0x63, 0x6f, + 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x77, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x04, 0x52, 0x06, 0x77, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x73, 0x74, 0x72, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x42, + 0x0d, 0x0a, 0x0b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x09, + 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xb2, 0x03, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x65, 0x70, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x61, @@ -1272,102 +1574,131 @@ var file_workflows_proto_rawDesc = []byte{ 0x12, 0x35, 0x0a, 0x0b, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x65, 0x70, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x72, 0x61, 0x74, - 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x22, 0x3d, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x53, 0x74, 0x65, 0x70, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xdc, - 0x02, 0x0a, 0x17, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x4e, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x53, + 0x74, 0x65, 0x70, 0x4f, 0x70, 0x74, 0x73, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x55, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x44, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, + 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x65, 0x70, 0x52, 0x61, 0x74, 0x65, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x22, 0x16, 0x0a, + 0x14, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xdc, 0x02, 0x0a, 0x17, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x65, + 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x68, 0x69, + 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, + 0x52, 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x88, 0x01, 0x01, 0x12, + 0x20, 0x0a, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x88, 0x01, + 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x42, + 0x15, 0x0a, 0x13, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, + 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, + 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, + 0x5f, 0x6b, 0x65, 0x79, 0x22, 0xe8, 0x01, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, + 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1f, + 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x22, + 0x53, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x69, 0x67, 0x67, + 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x4b, 0x65, 0x79, 0x22, 0x49, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x43, 0x72, 0x6f, 0x6e, 0x52, 0x65, 0x66, 0x12, 0x1b, + 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, + 0x72, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x72, 0x6f, 0x6e, 0x22, + 0xb6, 0x03, 0x0a, 0x16, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, - 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x20, - 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, - 0x12, 0x30, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, - 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0f, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, 0x52, 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x63, 0x68, 0x69, 0x6c, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x63, - 0x68, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x42, - 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, - 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0xe8, 0x01, - 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, - 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x22, 0x49, 0x0a, - 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, - 0x43, 0x72, 0x6f, 0x6e, 0x52, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x72, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x63, 0x72, 0x6f, 0x6e, 0x22, 0xef, 0x02, 0x0a, 0x16, 0x54, 0x72, 0x69, - 0x67, 0x67, 0x65, 0x72, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x20, 0x0a, - 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, - 0x30, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x72, - 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0f, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x88, 0x01, - 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, 0x52, 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x63, 0x68, - 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x12, 0x34, 0x0a, 0x13, 0x61, 0x64, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x12, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x88, 0x01, 0x01, 0x42, - 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x42, 0x15, 0x0a, - 0x13, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x72, 0x75, - 0x6e, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x6b, - 0x65, 0x79, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x17, 0x54, 0x72, - 0x69, 0x67, 0x67, 0x65, 0x72, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x6d, 0x0a, - 0x13, 0x50, 0x75, 0x74, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x08, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, - 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x16, 0x0a, 0x14, - 0x50, 0x75, 0x74, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x6c, 0x0a, 0x18, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, - 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, - 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x52, 0x4f, 0x50, - 0x5f, 0x4e, 0x45, 0x57, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x51, 0x55, 0x45, - 0x55, 0x45, 0x5f, 0x4e, 0x45, 0x57, 0x45, 0x53, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x47, - 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x52, 0x4f, 0x55, 0x4e, 0x44, 0x5f, 0x52, 0x4f, 0x42, 0x49, 0x4e, - 0x10, 0x03, 0x2a, 0x5d, 0x0a, 0x11, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x01, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x65, 0x70, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x68, 0x69, 0x6c, + 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, 0x52, + 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x88, 0x01, 0x01, 0x12, 0x20, + 0x0a, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x03, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x88, 0x01, 0x01, + 0x12, 0x34, 0x0a, 0x13, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, + 0x12, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x11, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, + 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x05, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, + 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x0c, 0x0a, 0x0a, + 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x61, + 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x41, 0x0a, 0x17, 0x54, 0x72, 0x69, 0x67, + 0x67, 0x65, 0x72, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x6d, 0x0a, 0x13, 0x50, + 0x75, 0x74, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x08, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x52, + 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x16, 0x0a, 0x14, 0x50, 0x75, + 0x74, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2a, 0x24, 0x0a, 0x0e, 0x53, 0x74, 0x69, 0x63, 0x6b, 0x79, 0x53, 0x74, 0x72, 0x61, + 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x4f, 0x46, 0x54, 0x10, 0x00, 0x12, 0x08, + 0x0a, 0x04, 0x48, 0x41, 0x52, 0x44, 0x10, 0x01, 0x2a, 0x32, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x55, 0x4e, 0x43, + 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x55, 0x52, 0x41, 0x42, 0x4c, + 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x41, 0x47, 0x10, 0x02, 0x2a, 0x6c, 0x0a, 0x18, + 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, + 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x4e, 0x43, + 0x45, 0x4c, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x00, + 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x4e, 0x45, 0x57, 0x45, 0x53, 0x54, 0x10, + 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x51, 0x55, 0x45, 0x55, 0x45, 0x5f, 0x4e, 0x45, 0x57, 0x45, 0x53, + 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x52, 0x4f, 0x55, + 0x4e, 0x44, 0x5f, 0x52, 0x4f, 0x42, 0x49, 0x4e, 0x10, 0x03, 0x2a, 0x85, 0x01, 0x0a, 0x15, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x00, 0x12, + 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x10, + 0x0a, 0x0c, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x02, + 0x12, 0x19, 0x0a, 0x15, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, + 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4c, + 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x4c, 0x45, + 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, + 0x10, 0x05, 0x2a, 0x5d, 0x0a, 0x11, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x49, 0x4e, 0x55, 0x54, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f, 0x55, 0x52, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x41, 0x59, @@ -1409,54 +1740,64 @@ func file_workflows_proto_rawDescGZIP() []byte { return file_workflows_proto_rawDescData } -var file_workflows_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_workflows_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_workflows_proto_enumTypes = make([]protoimpl.EnumInfo, 5) +var file_workflows_proto_msgTypes = make([]protoimpl.MessageInfo, 17) var file_workflows_proto_goTypes = []interface{}{ - (ConcurrencyLimitStrategy)(0), // 0: ConcurrencyLimitStrategy - (RateLimitDuration)(0), // 1: RateLimitDuration - (*PutWorkflowRequest)(nil), // 2: PutWorkflowRequest - (*CreateWorkflowVersionOpts)(nil), // 3: CreateWorkflowVersionOpts - (*WorkflowConcurrencyOpts)(nil), // 4: WorkflowConcurrencyOpts - (*CreateWorkflowJobOpts)(nil), // 5: CreateWorkflowJobOpts - (*CreateWorkflowStepOpts)(nil), // 6: CreateWorkflowStepOpts - (*CreateStepRateLimit)(nil), // 7: CreateStepRateLimit - (*ListWorkflowsRequest)(nil), // 8: ListWorkflowsRequest - (*ScheduleWorkflowRequest)(nil), // 9: ScheduleWorkflowRequest - (*WorkflowVersion)(nil), // 10: WorkflowVersion - (*WorkflowTriggerEventRef)(nil), // 11: WorkflowTriggerEventRef - (*WorkflowTriggerCronRef)(nil), // 12: WorkflowTriggerCronRef - (*TriggerWorkflowRequest)(nil), // 13: TriggerWorkflowRequest - (*TriggerWorkflowResponse)(nil), // 14: TriggerWorkflowResponse - (*PutRateLimitRequest)(nil), // 15: PutRateLimitRequest - (*PutRateLimitResponse)(nil), // 16: PutRateLimitResponse - (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp + (StickyStrategy)(0), // 0: StickyStrategy + (WorkflowKind)(0), // 1: WorkflowKind + (ConcurrencyLimitStrategy)(0), // 2: ConcurrencyLimitStrategy + (WorkerLabelComparator)(0), // 3: WorkerLabelComparator + (RateLimitDuration)(0), // 4: RateLimitDuration + (*PutWorkflowRequest)(nil), // 5: PutWorkflowRequest + (*CreateWorkflowVersionOpts)(nil), // 6: CreateWorkflowVersionOpts + (*WorkflowConcurrencyOpts)(nil), // 7: WorkflowConcurrencyOpts + (*CreateWorkflowJobOpts)(nil), // 8: CreateWorkflowJobOpts + (*DesiredWorkerLabels)(nil), // 9: DesiredWorkerLabels + (*CreateWorkflowStepOpts)(nil), // 10: CreateWorkflowStepOpts + (*CreateStepRateLimit)(nil), // 11: CreateStepRateLimit + (*ListWorkflowsRequest)(nil), // 12: ListWorkflowsRequest + (*ScheduleWorkflowRequest)(nil), // 13: ScheduleWorkflowRequest + (*WorkflowVersion)(nil), // 14: WorkflowVersion + (*WorkflowTriggerEventRef)(nil), // 15: WorkflowTriggerEventRef + (*WorkflowTriggerCronRef)(nil), // 16: WorkflowTriggerCronRef + (*TriggerWorkflowRequest)(nil), // 17: TriggerWorkflowRequest + (*TriggerWorkflowResponse)(nil), // 18: TriggerWorkflowResponse + (*PutRateLimitRequest)(nil), // 19: PutRateLimitRequest + (*PutRateLimitResponse)(nil), // 20: PutRateLimitResponse + nil, // 21: CreateWorkflowStepOpts.WorkerLabelsEntry + (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp } var file_workflows_proto_depIdxs = []int32{ - 3, // 0: PutWorkflowRequest.opts:type_name -> CreateWorkflowVersionOpts - 17, // 1: CreateWorkflowVersionOpts.scheduled_triggers:type_name -> google.protobuf.Timestamp - 5, // 2: CreateWorkflowVersionOpts.jobs:type_name -> CreateWorkflowJobOpts - 4, // 3: CreateWorkflowVersionOpts.concurrency:type_name -> WorkflowConcurrencyOpts - 5, // 4: CreateWorkflowVersionOpts.on_failure_job:type_name -> CreateWorkflowJobOpts - 0, // 5: WorkflowConcurrencyOpts.limit_strategy:type_name -> ConcurrencyLimitStrategy - 6, // 6: CreateWorkflowJobOpts.steps:type_name -> CreateWorkflowStepOpts - 7, // 7: CreateWorkflowStepOpts.rate_limits:type_name -> CreateStepRateLimit - 17, // 8: ScheduleWorkflowRequest.schedules:type_name -> google.protobuf.Timestamp - 17, // 9: WorkflowVersion.created_at:type_name -> google.protobuf.Timestamp - 17, // 10: WorkflowVersion.updated_at:type_name -> google.protobuf.Timestamp - 1, // 11: PutRateLimitRequest.duration:type_name -> RateLimitDuration - 2, // 12: WorkflowService.PutWorkflow:input_type -> PutWorkflowRequest - 9, // 13: WorkflowService.ScheduleWorkflow:input_type -> ScheduleWorkflowRequest - 13, // 14: WorkflowService.TriggerWorkflow:input_type -> TriggerWorkflowRequest - 15, // 15: WorkflowService.PutRateLimit:input_type -> PutRateLimitRequest - 10, // 16: WorkflowService.PutWorkflow:output_type -> WorkflowVersion - 10, // 17: WorkflowService.ScheduleWorkflow:output_type -> WorkflowVersion - 14, // 18: WorkflowService.TriggerWorkflow:output_type -> TriggerWorkflowResponse - 16, // 19: WorkflowService.PutRateLimit:output_type -> PutRateLimitResponse - 16, // [16:20] is the sub-list for method output_type - 12, // [12:16] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 6, // 0: PutWorkflowRequest.opts:type_name -> CreateWorkflowVersionOpts + 22, // 1: CreateWorkflowVersionOpts.scheduled_triggers:type_name -> google.protobuf.Timestamp + 8, // 2: CreateWorkflowVersionOpts.jobs:type_name -> CreateWorkflowJobOpts + 7, // 3: CreateWorkflowVersionOpts.concurrency:type_name -> WorkflowConcurrencyOpts + 8, // 4: CreateWorkflowVersionOpts.on_failure_job:type_name -> CreateWorkflowJobOpts + 0, // 5: CreateWorkflowVersionOpts.sticky:type_name -> StickyStrategy + 1, // 6: CreateWorkflowVersionOpts.kind:type_name -> WorkflowKind + 2, // 7: WorkflowConcurrencyOpts.limit_strategy:type_name -> ConcurrencyLimitStrategy + 10, // 8: CreateWorkflowJobOpts.steps:type_name -> CreateWorkflowStepOpts + 3, // 9: DesiredWorkerLabels.comparator:type_name -> WorkerLabelComparator + 11, // 10: CreateWorkflowStepOpts.rate_limits:type_name -> CreateStepRateLimit + 21, // 11: CreateWorkflowStepOpts.worker_labels:type_name -> CreateWorkflowStepOpts.WorkerLabelsEntry + 22, // 12: ScheduleWorkflowRequest.schedules:type_name -> google.protobuf.Timestamp + 22, // 13: WorkflowVersion.created_at:type_name -> google.protobuf.Timestamp + 22, // 14: WorkflowVersion.updated_at:type_name -> google.protobuf.Timestamp + 4, // 15: PutRateLimitRequest.duration:type_name -> RateLimitDuration + 9, // 16: CreateWorkflowStepOpts.WorkerLabelsEntry.value:type_name -> DesiredWorkerLabels + 5, // 17: WorkflowService.PutWorkflow:input_type -> PutWorkflowRequest + 13, // 18: WorkflowService.ScheduleWorkflow:input_type -> ScheduleWorkflowRequest + 17, // 19: WorkflowService.TriggerWorkflow:input_type -> TriggerWorkflowRequest + 19, // 20: WorkflowService.PutRateLimit:input_type -> PutRateLimitRequest + 14, // 21: WorkflowService.PutWorkflow:output_type -> WorkflowVersion + 14, // 22: WorkflowService.ScheduleWorkflow:output_type -> WorkflowVersion + 18, // 23: WorkflowService.TriggerWorkflow:output_type -> TriggerWorkflowResponse + 20, // 24: WorkflowService.PutRateLimit:output_type -> PutRateLimitResponse + 21, // [21:25] is the sub-list for method output_type + 17, // [17:21] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name } func init() { file_workflows_proto_init() } @@ -1514,7 +1855,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateWorkflowStepOpts); i { + switch v := v.(*DesiredWorkerLabels); i { case 0: return &v.state case 1: @@ -1526,7 +1867,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateStepRateLimit); i { + switch v := v.(*CreateWorkflowStepOpts); i { case 0: return &v.state case 1: @@ -1538,7 +1879,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListWorkflowsRequest); i { + switch v := v.(*CreateStepRateLimit); i { case 0: return &v.state case 1: @@ -1550,7 +1891,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScheduleWorkflowRequest); i { + switch v := v.(*ListWorkflowsRequest); i { case 0: return &v.state case 1: @@ -1562,7 +1903,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowVersion); i { + switch v := v.(*ScheduleWorkflowRequest); i { case 0: return &v.state case 1: @@ -1574,7 +1915,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowTriggerEventRef); i { + switch v := v.(*WorkflowVersion); i { case 0: return &v.state case 1: @@ -1586,7 +1927,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowTriggerCronRef); i { + switch v := v.(*WorkflowTriggerEventRef); i { case 0: return &v.state case 1: @@ -1598,7 +1939,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TriggerWorkflowRequest); i { + switch v := v.(*WorkflowTriggerCronRef); i { case 0: return &v.state case 1: @@ -1610,7 +1951,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TriggerWorkflowResponse); i { + switch v := v.(*TriggerWorkflowRequest); i { case 0: return &v.state case 1: @@ -1622,7 +1963,7 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutRateLimitRequest); i { + switch v := v.(*TriggerWorkflowResponse); i { case 0: return &v.state case 1: @@ -1634,6 +1975,18 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PutRateLimitRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_workflows_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PutRateLimitResponse); i { case 0: return &v.state @@ -1647,15 +2000,16 @@ func file_workflows_proto_init() { } } file_workflows_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_workflows_proto_msgTypes[7].OneofWrappers = []interface{}{} - file_workflows_proto_msgTypes[11].OneofWrappers = []interface{}{} + file_workflows_proto_msgTypes[4].OneofWrappers = []interface{}{} + file_workflows_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_workflows_proto_msgTypes[12].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_workflows_proto_rawDesc, - NumEnums: 2, - NumMessages: 15, + NumEnums: 5, + NumMessages: 17, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/services/admin/server.go b/internal/services/admin/server.go index 988177993..a775a6695 100644 --- a/internal/services/admin/server.go +++ b/internal/services/admin/server.go @@ -111,6 +111,21 @@ func (a *AdminServiceImpl) TriggerWorkflow(ctx context.Context, req *contracts.T } if isParentTriggered { + parent, err := a.repo.WorkflowRun().GetWorkflowRunById(ctx, tenantId, sqlchelpers.UUIDToStr(sqlchelpers.UUIDFromStr(*req.ParentId))) + + if err != nil { + return nil, fmt.Errorf("could not get parent workflow run: %w", err) + } + + var parentAdditionalMeta map[string]interface{} + + if parent.WorkflowRun.AdditionalMetadata != nil { + err := json.Unmarshal(parent.WorkflowRun.AdditionalMetadata, &parentAdditionalMeta) + if err != nil { + return nil, fmt.Errorf("could not unmarshal parent additional metadata: %w", err) + } + } + createOpts, err = repository.GetCreateWorkflowRunOptsFromParent( workflowVersion, []byte(req.Input), @@ -120,7 +135,12 @@ func (a *AdminServiceImpl) TriggerWorkflow(ctx context.Context, req *contracts.T int(*req.ChildIndex), req.ChildKey, additionalMetadata, + parentAdditionalMeta, ) + + if err != nil { + return nil, fmt.Errorf("could not create workflow run opts: %w", err) + } } else { createOpts, err = repository.GetCreateWorkflowRunOptsFromManual(workflowVersion, []byte(req.Input), additionalMetadata) } @@ -129,8 +149,25 @@ func (a *AdminServiceImpl) TriggerWorkflow(ctx context.Context, req *contracts.T return nil, fmt.Errorf("could not create workflow run opts: %w", err) } + if req.DesiredWorkerId != nil { + if !workflowVersion.WorkflowVersion.Sticky.Valid { + return nil, status.Errorf(codes.Canceled, "workflow version %s does not have sticky enabled", workflowVersion.WorkflowName) + } + + createOpts.DesiredWorkerId = req.DesiredWorkerId + } + workflowRunId, err := a.repo.WorkflowRun().CreateNewWorkflowRun(ctx, tenantId, createOpts) + dedupeTarget := repository.ErrDedupeValueExists{} + + if errors.As(err, &dedupeTarget) { + return nil, status.Error( + codes.AlreadyExists, + fmt.Sprintf("workflow run with deduplication value %s already exists", dedupeTarget.DedupeValue), + ) + } + if err == metered.ErrResourceExhausted { return nil, status.Errorf(codes.ResourceExhausted, "resource exhausted: workflow run limit exceeded for tenant") } @@ -394,6 +431,12 @@ func getCreateWorkflowOpts(req *contracts.PutWorkflowRequest) (*repository.Creat onFailureJob = onFailureJobCp } + var sticky *string + + if req.Opts.Sticky != nil { + sticky = repository.StringPtr(req.Opts.Sticky.String()) + } + scheduledTriggers := make([]time.Time, 0) for _, trigger := range req.Opts.ScheduledTriggers { @@ -425,6 +468,12 @@ func getCreateWorkflowOpts(req *contracts.PutWorkflowRequest) (*repository.Creat cronInput = []byte(*req.Opts.CronInput) } + var kind *string + + if req.Opts.Kind != nil { + kind = repository.StringPtr(req.Opts.Kind.String()) + } + return &repository.CreateWorkflowVersionOpts{ Name: req.Opts.Name, Concurrency: concurrency, @@ -437,6 +486,8 @@ func getCreateWorkflowOpts(req *contracts.PutWorkflowRequest) (*repository.Creat Jobs: jobs, OnFailureJob: onFailureJob, ScheduleTimeout: req.Opts.ScheduleTimeout, + Sticky: sticky, + Kind: kind, }, nil } @@ -454,11 +505,36 @@ func getCreateJobOpts(req *contracts.CreateWorkflowJobOpts, kind string) (*repos retries := int(stepCp.Retries) + var affinity map[string]repository.DesiredWorkerLabelOpts + + if stepCp.WorkerLabels != nil { + affinity = map[string]repository.DesiredWorkerLabelOpts{} + for k, v := range stepCp.WorkerLabels { + + var c *string + + if v.Comparator != nil { + cPtr := v.Comparator.String() + c = &cPtr + } + + (affinity)[k] = repository.DesiredWorkerLabelOpts{ + Key: k, + StrValue: v.StrValue, + IntValue: v.IntValue, + Required: v.Required, + Weight: v.Weight, + Comparator: c, + } + } + } + steps[j] = repository.CreateWorkflowStepOpts{ - ReadableId: stepCp.ReadableId, - Action: parsedAction.String(), - Parents: stepCp.Parents, - Retries: &retries, + ReadableId: stepCp.ReadableId, + Action: parsedAction.String(), + Parents: stepCp.Parents, + Retries: &retries, + DesiredWorkerLabels: affinity, } if stepCp.Timeout != "" { diff --git a/internal/services/controllers/jobs/controller.go b/internal/services/controllers/jobs/controller.go index 50fa150bd..a26872715 100644 --- a/internal/services/controllers/jobs/controller.go +++ b/internal/services/controllers/jobs/controller.go @@ -173,6 +173,18 @@ func (jc *JobsControllerImpl) Start() (func() error, error) { return nil, fmt.Errorf("could not schedule step run reassign: %w", err) } + _, err = jc.s.NewJob( + gocron.DurationJob(time.Second*1), + gocron.NewTask( + jc.runStepRunTimeout(ctx), + ), + ) + + if err != nil { + cancel() + return nil, fmt.Errorf("could not schedule step run timeout: %w", err) + } + jc.s.Start() f := func(task *msgqueue.Message) error { @@ -393,14 +405,20 @@ func (ec *JobsControllerImpl) handleStepRunRetry(ctx context.Context, task *msgq return fmt.Errorf("could not get step run: %w", err) } - inputBytes := stepRun.StepRun.Input - retryCount := int(stepRun.StepRun.RetryCount) + 1 + data, err := ec.repo.StepRun().GetStepRunDataForEngine(ctx, metadata.TenantId, payload.StepRunId) + + if err != nil { + return fmt.Errorf("could not get step run data: %w", err) + } + + inputBytes := data.Input + retryCount := int(stepRun.SRRetryCount) + 1 // update step run _, _, err = ec.repo.StepRun().UpdateStepRun( ctx, metadata.TenantId, - sqlchelpers.UUIDToStr(stepRun.StepRun.ID), + sqlchelpers.UUIDToStr(stepRun.SRID), &repository.UpdateStepRunOpts{ Input: inputBytes, Status: repository.StepRunStatusPtr(db.StepRunStatusPending), @@ -468,8 +486,14 @@ func (ec *JobsControllerImpl) handleStepRunReplay(ctx context.Context, task *msg return fmt.Errorf("could not get step run: %w", err) } + data, err := ec.repo.StepRun().GetStepRunDataForEngine(ctx, metadata.TenantId, payload.StepRunId) + + if err != nil { + return fmt.Errorf("could not get step run data: %w", err) + } + var inputBytes []byte - retryCount := int(stepRun.StepRun.RetryCount) + 1 + retryCount := int(stepRun.SRRetryCount) + 1 // update the input schema for the step run based on the new input if payload.InputData != "" { @@ -479,7 +503,7 @@ func (ec *JobsControllerImpl) handleStepRunReplay(ctx context.Context, task *msg // input data because the user could have deleted fields that are required by the step. // A better solution would be to validate the user input ahead of time. // NOTE: this is an expensive operation. - if currentInput := stepRun.StepRun.Input; len(currentInput) > 0 { + if currentInput := data.Input; len(currentInput) > 0 { inputMap, err := datautils.JSONBytesToMap([]byte(payload.InputData)) if err != nil { @@ -513,14 +537,14 @@ func (ec *JobsControllerImpl) handleStepRunReplay(ctx context.Context, task *msg // if the input data has been manually set, we reset the retry count as this is a user-triggered retry retryCount = 0 } else { - inputBytes = stepRun.StepRun.Input + inputBytes = data.Input } // update step run _, err = ec.repo.StepRun().ReplayStepRun( ctx, metadata.TenantId, - sqlchelpers.UUIDToStr(stepRun.StepRun.ID), + sqlchelpers.UUIDToStr(stepRun.SRID), &repository.UpdateStepRunOpts{ Input: inputBytes, Status: repository.StepRunStatusPtr(db.StepRunStatusPending), @@ -575,7 +599,8 @@ func (jc *JobsControllerImpl) runStepRunRequeue(ctx context.Context, startedAt t return } - ctx, cancel := context.WithTimeout(ctx, 5*time.Second) + // we set requeueAfter to 4 seconds in the future to avoid requeuing the same step run multiple times + ctx, cancel := context.WithTimeout(ctx, 4*time.Second) defer cancel() jc.l.Debug().Msgf("jobs controller: checking step run requeue") @@ -614,7 +639,7 @@ func (ec *JobsControllerImpl) runStepRunRequeueTenant(ctx context.Context, tenan stepRuns, err := ec.repo.StepRun().ListStepRunsToRequeue(ctx, tenantId) if err != nil { - return fmt.Errorf("could not list step runs to requeue: %w", err) + return fmt.Errorf("could not list step runs to requeue for tenant %s: %w", tenantId, err) } if num := len(stepRuns); num > 0 { @@ -632,10 +657,10 @@ func (ec *JobsControllerImpl) runStepRunRequeueTenant(ctx context.Context, tenan defer span.End() now := time.Now().UTC() - stepRunId := sqlchelpers.UUIDToStr(stepRunCp.StepRun.ID) + stepRunId := sqlchelpers.UUIDToStr(stepRunCp.SRID) // if the current time is after the scheduleTimeoutAt, then mark this as timed out - scheduleTimeoutAt := stepRunCp.StepRun.ScheduleTimeoutAt.Time + scheduleTimeoutAt := stepRunCp.SRScheduleTimeoutAt.Time // timed out if there was no scheduleTimeoutAt set and the current time is after the step run created at time plus the default schedule timeout, // or if the scheduleTimeoutAt is set and the current time is after the scheduleTimeoutAt @@ -659,7 +684,8 @@ func (jc *JobsControllerImpl) runStepRunReassign(ctx context.Context, startedAt return } - ctx, cancel := context.WithTimeout(ctx, 5*time.Second) + // we set requeueAfter to 4 seconds in the future to avoid requeuing the same step run multiple times + ctx, cancel := context.WithTimeout(ctx, 4*time.Second) defer cancel() jc.l.Debug().Msgf("jobs controller: checking step run reassignment") @@ -685,7 +711,7 @@ func (jc *JobsControllerImpl) runStepRunReassign(ctx context.Context, startedAt err = g.Wait() if err != nil { - jc.l.Err(err).Msg("could not run step run requeue") + jc.l.Err(err).Msg("could not run step run reassign") } } } @@ -699,7 +725,7 @@ func (ec *JobsControllerImpl) runStepRunReassignTenant(ctx context.Context, tena stepRuns, err := ec.repo.StepRun().ListStepRunsToReassign(ctx, tenantId) if err != nil { - return fmt.Errorf("could not list step runs to reassign: %w", err) + return fmt.Errorf("could not list step runs to reassign for tenant %s: %w", tenantId, err) } if num := len(stepRuns); num > 0 { @@ -716,11 +742,11 @@ func (ec *JobsControllerImpl) runStepRunReassignTenant(ctx context.Context, tena ctx, span := telemetry.NewSpan(ctx, "handle-step-run-reassign-step-run") defer span.End() - stepRunId := sqlchelpers.UUIDToStr(stepRunCp.StepRun.ID) + stepRunId := sqlchelpers.UUIDToStr(stepRunCp.SRID) // if the current time is after the scheduleTimeoutAt, then mark this as timed out now := time.Now().UTC().UTC() - scheduleTimeoutAt := stepRunCp.StepRun.ScheduleTimeoutAt.Time + scheduleTimeoutAt := stepRunCp.SRScheduleTimeoutAt.Time // timed out if there was no scheduleTimeoutAt set and the current time is after the step run created at time plus the default schedule timeout, // or if the scheduleTimeoutAt is set and the current time is after the scheduleTimeoutAt @@ -731,21 +757,89 @@ func (ec *JobsControllerImpl) runStepRunReassignTenant(ctx context.Context, tena } eventData := map[string]interface{}{ - "worker_id": sqlchelpers.UUIDToStr(stepRunCp.StepRun.WorkerId), + "worker_id": sqlchelpers.UUIDToStr(stepRunCp.SRWorkerId), } + // TODO: batch this query to avoid n+1 issues err = ec.repo.StepRun().CreateStepRunEvent(ctx, tenantId, stepRunId, repository.CreateStepRunEventOpts{ EventReason: repository.StepRunEventReasonPtr(dbsqlc.StepRunEventReasonREASSIGNED), EventSeverity: repository.StepRunEventSeverityPtr(dbsqlc.StepRunEventSeverityCRITICAL), EventMessage: repository.StringPtr("Worker has become inactive"), - EventData: &eventData, + EventData: eventData, }) if err != nil { return fmt.Errorf("could not create step run event: %w", err) } - return ec.scheduleStepRun(ctx, tenantId, stepRunCp) + return nil + }) + } + + return g.Wait() +} + +func (jc *JobsControllerImpl) runStepRunTimeout(ctx context.Context) func() { + return func() { + ctx, cancel := context.WithTimeout(ctx, 5*time.Second) + defer cancel() + + jc.l.Debug().Msgf("jobs controller: running step run timeout") + + // list all tenants + tenants, err := jc.repo.Tenant().ListTenantsByControllerPartition(ctx, jc.partitionId) + + if err != nil { + jc.l.Err(err).Msg("could not list tenants") + return + } + + g := new(errgroup.Group) + + for i := range tenants { + tenantId := sqlchelpers.UUIDToStr(tenants[i].ID) + + g.Go(func() error { + return jc.runStepRunTimeoutTenant(ctx, tenantId) + }) + } + + err = g.Wait() + + if err != nil { + jc.l.Err(err).Msg("could not run step run timeout") + } + } +} + +// runStepRunTimeoutTenant looks for step runs that are timed out in the tenant. +func (ec *JobsControllerImpl) runStepRunTimeoutTenant(ctx context.Context, tenantId string) error { + ctx, span := telemetry.NewSpan(ctx, "handle-step-run-timeout") + defer span.End() + + stepRuns, err := ec.repo.StepRun().ListStepRunsToTimeout(ctx, tenantId) + + if err != nil { + return fmt.Errorf("could not list step runs to timeout for tenant %s: %w", tenantId, err) + } + + if num := len(stepRuns); num > 0 { + ec.l.Info().Msgf("timing out %d step runs", num) + } + + g := new(errgroup.Group) + + for i := range stepRuns { + stepRunCp := stepRuns[i] + + // wrap in func to get defer on the span to avoid leaking spans + g.Go(func() error { + ctx, span := telemetry.NewSpan(ctx, "handle-step-run-timeout-step-run") + defer span.End() + + stepRunId := sqlchelpers.UUIDToStr(stepRunCp.SRID) + + return ec.failStepRun(ctx, tenantId, stepRunId, "TIMED_OUT", time.Now().UTC()) }) } @@ -769,6 +863,12 @@ func (ec *JobsControllerImpl) queueStepRun(ctx context.Context, tenantId, stepId return ec.a.WrapErr(fmt.Errorf("could not get step run: %w", err), errData) } + data, err := ec.repo.StepRun().GetStepRunDataForEngine(ctx, tenantId, stepRunId) + + if err != nil { + return ec.a.WrapErr(fmt.Errorf("could not get step run data: %w", err), errData) + } + servertel.WithStepRunModel(span, stepRun) requeueAfterTime := time.Now().Add(4 * time.Second).UTC() @@ -778,7 +878,7 @@ func (ec *JobsControllerImpl) queueStepRun(ctx context.Context, tenantId, stepId } // set scheduling timeout - if scheduleTimeoutAt := stepRun.StepRun.ScheduleTimeoutAt.Time; scheduleTimeoutAt.IsZero() { + if scheduleTimeoutAt := stepRun.SRScheduleTimeoutAt.Time; scheduleTimeoutAt.IsZero() { scheduleTimeoutAt = getScheduleTimeout(stepRun) updateStepOpts.ScheduleTimeoutAt = &scheduleTimeoutAt @@ -786,8 +886,8 @@ func (ec *JobsControllerImpl) queueStepRun(ctx context.Context, tenantId, stepId // If the step run input is not set, then we should set it. This will be set upstream if we've rerun // the step run manually with new inputs. It will not be set when the step is automatically queued. - if in := stepRun.StepRun.Input; len(in) == 0 || string(in) == "{}" { - lookupDataBytes := stepRun.JobRunLookupData + if in := data.Input; len(in) == 0 || string(in) == "{}" { + lookupDataBytes := data.JobRunLookupData if lookupDataBytes != nil { lookupData := &datautils.JobRunLookupData{} @@ -850,7 +950,7 @@ func (ec *JobsControllerImpl) scheduleStepRun(ctx context.Context, tenantId stri ctx, span := telemetry.NewSpan(ctx, "schedule-step-run") defer span.End() - stepRunId := sqlchelpers.UUIDToStr(stepRun.StepRun.ID) + stepRunId := sqlchelpers.UUIDToStr(stepRun.SRID) selectedWorkerId, dispatcherId, err := ec.repo.StepRun().AssignStepRunToWorker(ctx, stepRun) @@ -865,6 +965,11 @@ func (ec *JobsControllerImpl) scheduleStepRun(ctx context.Context, tenantId stri return nil } + if errors.Is(err, repository.ErrStepRunIsNotAssigned) { + ec.l.Debug().Msgf("step run %s is not assigned, skipping scheduling", stepRunId) + return nil + } + return fmt.Errorf("could not assign step run to worker: %w", err) } @@ -979,7 +1084,7 @@ func (ec *JobsControllerImpl) handleStepRunFinished(ctx context.Context, task *m // queue the next step runs jobRunId := sqlchelpers.UUIDToStr(stepRun.JobRunId) - stepRunId := sqlchelpers.UUIDToStr(stepRun.StepRun.ID) + stepRunId := sqlchelpers.UUIDToStr(stepRun.SRID) nextStepRuns, err := ec.repo.StepRun().ListStartableStepRuns(ctx, metadata.TenantId, jobRunId, &stepRunId) @@ -989,7 +1094,7 @@ func (ec *JobsControllerImpl) handleStepRunFinished(ctx context.Context, task *m for _, nextStepRun := range nextStepRuns { nextStepId := sqlchelpers.UUIDToStr(nextStepRun.StepId) - nextStepRunId := sqlchelpers.UUIDToStr(nextStepRun.StepRun.ID) + nextStepRunId := sqlchelpers.UUIDToStr(nextStepRun.SRID) err = ec.queueStepRun(ctx, metadata.TenantId, nextStepId, nextStepRunId) @@ -1036,7 +1141,7 @@ func (ec *JobsControllerImpl) failStepRun(ctx context.Context, tenantId, stepRun } // determine if step run should be retried or not - shouldRetry := stepRun.StepRun.RetryCount < stepRun.StepRetries + shouldRetry := stepRun.SRRetryCount < stepRun.StepRetries status := db.StepRunStatusFailed @@ -1085,7 +1190,7 @@ func (ec *JobsControllerImpl) failStepRun(ctx context.Context, tenantId, stepRun attemptCancel = true } - if !stepRun.StepRun.WorkerId.Valid { + if !stepRun.SRWorkerId.Valid { // this is not a fatal error ec.l.Warn().Msgf("step run %s has no worker id, skipping cancellation", stepRunId) attemptCancel = false @@ -1094,7 +1199,7 @@ func (ec *JobsControllerImpl) failStepRun(ctx context.Context, tenantId, stepRun // Attempt to cancel the previous running step run if attemptCancel { - workerId := sqlchelpers.UUIDToStr(stepRun.StepRun.WorkerId) + workerId := sqlchelpers.UUIDToStr(stepRun.SRWorkerId) worker, err := ec.repo.Worker().GetWorkerForEngine(ctx, tenantId, workerId) @@ -1109,7 +1214,9 @@ func (ec *JobsControllerImpl) failStepRun(ctx context.Context, tenantId, stepRun err = ec.mq.AddMessage( ctx, msgqueue.QueueTypeFromDispatcherID(dispatcherId), - stepRunCancelledTask(tenantId, stepRunId, workerId, dispatcherId, *repository.StringPtr(eventMessage)), + stepRunCancelledTask( + tenantId, stepRunId, workerId, dispatcherId, *repository.StringPtr(eventMessage), + sqlchelpers.UUIDToStr(stepRun.WorkflowRunId), &stepRun.StepRetries, &stepRun.SRRetryCount), ) if err != nil { @@ -1199,14 +1306,14 @@ func (ec *JobsControllerImpl) cancelStepRun(ctx context.Context, tenantId, stepR defer ec.handleStepRunUpdateInfo(stepRun, updateInfo) - if !stepRun.StepRun.WorkerId.Valid { + if !stepRun.SRWorkerId.Valid { // this is not a fatal error ec.l.Debug().Msgf("step run %s has no worker id, skipping cancellation", stepRunId) return nil } - workerId := sqlchelpers.UUIDToStr(stepRun.StepRun.WorkerId) + workerId := sqlchelpers.UUIDToStr(stepRun.SRWorkerId) worker, err := ec.repo.Worker().GetWorkerForEngine(ctx, tenantId, workerId) @@ -1221,7 +1328,9 @@ func (ec *JobsControllerImpl) cancelStepRun(ctx context.Context, tenantId, stepR err = ec.mq.AddMessage( ctx, msgqueue.QueueTypeFromDispatcherID(dispatcherId), - stepRunCancelledTask(tenantId, stepRunId, workerId, dispatcherId, reason), + stepRunCancelledTask(tenantId, stepRunId, workerId, dispatcherId, reason, + sqlchelpers.UUIDToStr(stepRun.WorkflowRunId), &stepRun.StepRetries, &stepRun.SRRetryCount, + ), ) if err != nil { @@ -1243,7 +1352,7 @@ func (ec *JobsControllerImpl) handleStepRunUpdateInfo(stepRun *dbsqlc.GetStepRun context.Background(), msgqueue.WORKFLOW_PROCESSING_QUEUE, tasktypes.WorkflowRunFinishedToTask( - sqlchelpers.UUIDToStr(stepRun.StepRun.TenantId), + sqlchelpers.UUIDToStr(stepRun.SRTenantId), updateInfo.WorkflowRunId, updateInfo.WorkflowRunStatus, ), @@ -1274,11 +1383,14 @@ func stepRunAssignedTask(tenantId, stepRunId, workerId, dispatcherId string) *ms } } -func stepRunCancelledTask(tenantId, stepRunId, workerId, dispatcherId, cancelledReason string) *msgqueue.Message { +func stepRunCancelledTask(tenantId, stepRunId, workerId, dispatcherId, cancelledReason string, runId string, retries *int32, retryCount *int32) *msgqueue.Message { payload, _ := datautils.ToJSONMap(tasktypes.StepRunCancelledTaskPayload{ + WorkflowRunId: runId, StepRunId: stepRunId, WorkerId: workerId, CancelledReason: cancelledReason, + StepRetries: retries, + RetryCount: retryCount, }) metadata, _ := datautils.ToJSONMap(tasktypes.StepRunCancelledTaskMetadata{ @@ -1286,6 +1398,7 @@ func stepRunCancelledTask(tenantId, stepRunId, workerId, dispatcherId, cancelled DispatcherId: dispatcherId, }) + // TODO add additional metadata return &msgqueue.Message{ ID: "step-run-cancelled", Payload: payload, diff --git a/internal/services/controllers/retention/controller.go b/internal/services/controllers/retention/controller.go new file mode 100644 index 000000000..e9a2aedab --- /dev/null +++ b/internal/services/controllers/retention/controller.go @@ -0,0 +1,200 @@ +package retention + +import ( + "context" + "fmt" + "time" + + "github.com/go-co-op/gocron/v2" + "github.com/rs/zerolog" + + "github.com/hatchet-dev/hatchet/internal/datautils" + "github.com/hatchet-dev/hatchet/internal/integrations/alerting" + hatcheterrors "github.com/hatchet-dev/hatchet/pkg/errors" + "github.com/hatchet-dev/hatchet/pkg/logger" + "github.com/hatchet-dev/hatchet/pkg/repository" +) + +type RetentionController interface { + Start(ctx context.Context) error +} + +type RetentionControllerImpl struct { + l *zerolog.Logger + repo repository.EngineRepository + dv datautils.DataDecoderValidator + s gocron.Scheduler + tenantAlerter *alerting.TenantAlertManager + a *hatcheterrors.Wrapped + partitionId string +} + +type RetentionControllerOpt func(*RetentionControllerOpts) + +type RetentionControllerOpts struct { + l *zerolog.Logger + repo repository.EngineRepository + dv datautils.DataDecoderValidator + ta *alerting.TenantAlertManager + alerter hatcheterrors.Alerter + partitionId string +} + +func defaultRetentionControllerOpts() *RetentionControllerOpts { + logger := logger.NewDefaultLogger("retention-controller") + alerter := hatcheterrors.NoOpAlerter{} + + return &RetentionControllerOpts{ + l: &logger, + dv: datautils.NewDataDecoderValidator(), + alerter: alerter, + } +} + +func WithLogger(l *zerolog.Logger) RetentionControllerOpt { + return func(opts *RetentionControllerOpts) { + opts.l = l + } +} + +func WithRepository(r repository.EngineRepository) RetentionControllerOpt { + return func(opts *RetentionControllerOpts) { + opts.repo = r + } +} + +func WithAlerter(a hatcheterrors.Alerter) RetentionControllerOpt { + return func(opts *RetentionControllerOpts) { + opts.alerter = a + } +} + +func WithDataDecoderValidator(dv datautils.DataDecoderValidator) RetentionControllerOpt { + return func(opts *RetentionControllerOpts) { + opts.dv = dv + } +} + +func WithTenantAlerter(ta *alerting.TenantAlertManager) RetentionControllerOpt { + return func(opts *RetentionControllerOpts) { + opts.ta = ta + } +} + +func WithPartitionId(partitionId string) RetentionControllerOpt { + return func(opts *RetentionControllerOpts) { + opts.partitionId = partitionId + } +} + +func New(fs ...RetentionControllerOpt) (*RetentionControllerImpl, error) { + opts := defaultRetentionControllerOpts() + + for _, f := range fs { + f(opts) + } + + if opts.repo == nil { + return nil, fmt.Errorf("repository is required. use WithRepository") + } + + if opts.ta == nil { + return nil, fmt.Errorf("tenant alerter is required. use WithTenantAlerter") + } + + if opts.partitionId == "" { + return nil, fmt.Errorf("partition ID is required. use WithPartitionId") + } + + s, err := gocron.NewScheduler(gocron.WithLocation(time.UTC)) + + if err != nil { + return nil, fmt.Errorf("could not create scheduler: %w", err) + } + + newLogger := opts.l.With().Str("service", "retention-controller").Logger() + opts.l = &newLogger + + a := hatcheterrors.NewWrapped(opts.alerter) + a.WithData(map[string]interface{}{"service": "retention-controller"}) + + return &RetentionControllerImpl{ + l: opts.l, + repo: opts.repo, + dv: opts.dv, + s: s, + tenantAlerter: opts.ta, + a: a, + partitionId: opts.partitionId, + }, nil +} + +func (rc *RetentionControllerImpl) Start() (func() error, error) { + rc.l.Debug().Msg("starting retention controller") + + ctx, cancel := context.WithCancel(context.Background()) + + interval := time.Second * 60 // run every 60 seconds + + _, err := rc.s.NewJob( + gocron.DurationJob(interval), + gocron.NewTask( + rc.runDeleteExpiredWorkflowRuns(ctx), + ), + ) + + if err != nil { + cancel() + return nil, fmt.Errorf("could not delete expired workflow runs: %w", err) + } + + _, err = rc.s.NewJob( + gocron.DurationJob(interval), + gocron.NewTask( + rc.runDeleteExpiredEvents(ctx), + ), + ) + + if err != nil { + cancel() + return nil, fmt.Errorf("could not delete expired events: %w", err) + } + + _, err = rc.s.NewJob( + gocron.DurationJob(interval), + gocron.NewTask( + rc.runDeleteExpiredStepRuns(ctx), + ), + ) + + if err != nil { + cancel() + return nil, fmt.Errorf("could not delete expired step runs: %w", err) + } + + _, err = rc.s.NewJob( + gocron.DurationJob(interval), + gocron.NewTask( + rc.runDeleteExpiredJobRuns(ctx), + ), + ) + + if err != nil { + cancel() + return nil, fmt.Errorf("could not delete expired job runs: %w", err) + } + + rc.s.Start() + + cleanup := func() error { + cancel() + + if err := rc.s.Shutdown(); err != nil { + return fmt.Errorf("could not shutdown scheduler: %w", err) + } + + return nil + } + + return cleanup, nil +} diff --git a/internal/services/controllers/retention/events.go b/internal/services/controllers/retention/events.go new file mode 100644 index 000000000..c4f9c071e --- /dev/null +++ b/internal/services/controllers/retention/events.go @@ -0,0 +1,100 @@ +package retention + +import ( + "context" + "fmt" + "time" + + "github.com/hatchet-dev/hatchet/internal/telemetry" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" +) + +func (rc *RetentionControllerImpl) runDeleteExpiredEvents(ctx context.Context) func() { + return func() { + ctx, cancel := context.WithTimeout(ctx, 60*time.Second) + defer cancel() + + rc.l.Debug().Msgf("retention controller: deleting expired events") + + errChan := make(chan error, 2) + + go func() { + errChan <- rc.ForTenants(ctx, rc.runDeleteExpiredEventsTenant) + }() + + go func() { + errChan <- rc.ForTenants(ctx, rc.runClearDeletedEventsPayloadTenant) + }() + + err1 := <-errChan + err2 := <-errChan + + if err1 != nil { + rc.l.Err(err1).Msg("could not run delete expired events") + } + if err2 != nil { + rc.l.Err(err2).Msg("could not clear deleted event payload") + } + } +} + +func (wc *RetentionControllerImpl) runDeleteExpiredEventsTenant(ctx context.Context, tenant dbsqlc.Tenant) error { + ctx, span := telemetry.NewSpan(ctx, "delete-expired-events") + defer span.End() + + tenantId := sqlchelpers.UUIDToStr(tenant.ID) + + createdBefore, err := GetDataRetentionExpiredTime(tenant.DataRetentionPeriod) + + if err != nil { + return fmt.Errorf("could not get data retention expired time: %w", err) + } + + // keep deleting until the context is done + for { + select { + case <-ctx.Done(): + return nil + default: + } + + // delete expired workflow runs + hasMore, err := wc.repo.Event().SoftDeleteExpiredEvents(ctx, tenantId, createdBefore) + + if err != nil { + return fmt.Errorf("could not delete expired events: %w", err) + } + + if !hasMore { + return nil + } + } +} + +func (wc *RetentionControllerImpl) runClearDeletedEventsPayloadTenant(ctx context.Context, tenant dbsqlc.Tenant) error { + ctx, span := telemetry.NewSpan(ctx, "delete-expired-events") + defer span.End() + + tenantId := sqlchelpers.UUIDToStr(tenant.ID) + + // keep deleting until the context is done + for { + select { + case <-ctx.Done(): + return nil + default: + } + + // delete expired workflow runs + hasMore, err := wc.repo.Event().ClearEventPayloadData(ctx, tenantId) + + if err != nil { + return fmt.Errorf("could not clear deleted event payload: %w", err) + } + + if !hasMore { + return nil + } + } +} diff --git a/internal/services/controllers/retention/jobruns.go b/internal/services/controllers/retention/jobruns.go new file mode 100644 index 000000000..7978aa077 --- /dev/null +++ b/internal/services/controllers/retention/jobruns.go @@ -0,0 +1,52 @@ +package retention + +import ( + "context" + "fmt" + "time" + + "github.com/hatchet-dev/hatchet/internal/telemetry" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" +) + +func (wc *RetentionControllerImpl) runDeleteExpiredJobRuns(ctx context.Context) func() { + return func() { + ctx, cancel := context.WithTimeout(ctx, 60*time.Second) + defer cancel() + + wc.l.Debug().Msgf("retention controller: deleting expired job runs") + + err := wc.ForTenants(ctx, wc.runDeleteExpireJobRunsTenant) + + if err != nil { + wc.l.Err(err).Msg("could not run delete expired job runs") + } + } +} + +func (wc *RetentionControllerImpl) runDeleteExpireJobRunsTenant(ctx context.Context, tenant dbsqlc.Tenant) error { + ctx, span := telemetry.NewSpan(ctx, "delete-expired-step-runs") + defer span.End() + + tenantId := sqlchelpers.UUIDToStr(tenant.ID) + + // keep deleting until the context is done + for { + select { + case <-ctx.Done(): + return nil + default: + } + + hasMore, err := wc.repo.JobRun().ClearJobRunPayloadData(ctx, tenantId) + + if err != nil { + return fmt.Errorf("could not delete expired job runs: %w", err) + } + + if !hasMore { + return nil + } + } +} diff --git a/internal/services/controllers/retention/shared.go b/internal/services/controllers/retention/shared.go new file mode 100644 index 000000000..38031c04f --- /dev/null +++ b/internal/services/controllers/retention/shared.go @@ -0,0 +1,48 @@ +package retention + +import ( + "context" + "fmt" + "time" + + "golang.org/x/sync/errgroup" + + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" +) + +func GetDataRetentionExpiredTime(duration string) (time.Time, error) { + d, err := time.ParseDuration(duration) + + if err != nil { + return time.Time{}, fmt.Errorf("could not parse duration: %w", err) + } + + return time.Now().UTC().Add(-d), nil +} + +func (wc *RetentionControllerImpl) ForTenants(ctx context.Context, f func(ctx context.Context, tenant dbsqlc.Tenant) error) error { + + // list all tenants + tenants, err := wc.repo.Tenant().ListTenantsByControllerPartition(ctx, wc.partitionId) + + if err != nil { + return fmt.Errorf("could not list tenants: %w", err) + } + + g := new(errgroup.Group) + + for i := range tenants { + index := i + g.Go(func() error { + return f(ctx, *tenants[index]) + }) + } + + err = g.Wait() + + if err != nil { + return fmt.Errorf("could not run for tenants: %w", err) + } + + return nil +} diff --git a/internal/services/controllers/retention/stepruns.go b/internal/services/controllers/retention/stepruns.go new file mode 100644 index 000000000..d2caa0ee1 --- /dev/null +++ b/internal/services/controllers/retention/stepruns.go @@ -0,0 +1,52 @@ +package retention + +import ( + "context" + "fmt" + "time" + + "github.com/hatchet-dev/hatchet/internal/telemetry" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" +) + +func (wc *RetentionControllerImpl) runDeleteExpiredStepRuns(ctx context.Context) func() { + return func() { + ctx, cancel := context.WithTimeout(ctx, 60*time.Second) + defer cancel() + + wc.l.Debug().Msgf("retention controller: deleting expired step runs") + + err := wc.ForTenants(ctx, wc.runDeleteExpireStepRunsTenant) + + if err != nil { + wc.l.Err(err).Msg("could not run delete expired step runs") + } + } +} + +func (wc *RetentionControllerImpl) runDeleteExpireStepRunsTenant(ctx context.Context, tenant dbsqlc.Tenant) error { + ctx, span := telemetry.NewSpan(ctx, "delete-expired-step-runs") + defer span.End() + + tenantId := sqlchelpers.UUIDToStr(tenant.ID) + + // keep deleting until the context is done + for { + select { + case <-ctx.Done(): + return nil + default: + } + + hasMore, err := wc.repo.StepRun().ClearStepRunPayloadData(ctx, tenantId) + + if err != nil { + return fmt.Errorf("could not delete expired step runs: %w", err) + } + + if !hasMore { + return nil + } + } +} diff --git a/internal/services/controllers/retention/workflowruns.go b/internal/services/controllers/retention/workflowruns.go new file mode 100644 index 000000000..31edb03d1 --- /dev/null +++ b/internal/services/controllers/retention/workflowruns.go @@ -0,0 +1,62 @@ +package retention + +import ( + "context" + "fmt" + "time" + + "github.com/hatchet-dev/hatchet/internal/telemetry" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" +) + +func (wc *RetentionControllerImpl) runDeleteExpiredWorkflowRuns(ctx context.Context) func() { + return func() { + ctx, cancel := context.WithTimeout(ctx, 60*time.Second) + defer cancel() + + wc.l.Debug().Msgf("retention controller: deleting expired workflow runs") + + err := wc.ForTenants(ctx, wc.runDeleteExpiredWorkflowRunsTenant) + + if err != nil { + wc.l.Err(err).Msg("could not run delete expired workflow runs") + } + } +} + +func (wc *RetentionControllerImpl) runDeleteExpiredWorkflowRunsTenant(ctx context.Context, tenant dbsqlc.Tenant) error { + ctx, span := telemetry.NewSpan(ctx, "delete-expired-workflow-runs") + defer span.End() + + tenantId := sqlchelpers.UUIDToStr(tenant.ID) + + createdBefore, err := GetDataRetentionExpiredTime(tenant.DataRetentionPeriod) + + if err != nil { + return fmt.Errorf("could not get data retention expired time: %w", err) + } + + // keep deleting until the context is done + for { + select { + case <-ctx.Done(): + return nil + default: + } + + // delete expired workflow runs + hasMore, err := wc.repo.WorkflowRun().SoftDeleteExpiredWorkflowRuns(ctx, tenantId, []dbsqlc.WorkflowRunStatus{ + dbsqlc.WorkflowRunStatusSUCCEEDED, + dbsqlc.WorkflowRunStatusFAILED, + }, createdBefore) + + if err != nil { + return fmt.Errorf("could not delete expired workflow runs: %w", err) + } + + if !hasMore { + return nil + } + } +} diff --git a/internal/services/controllers/workflows/controller.go b/internal/services/controllers/workflows/controller.go index dfdb88d4b..0c9639de6 100644 --- a/internal/services/controllers/workflows/controller.go +++ b/internal/services/controllers/workflows/controller.go @@ -182,6 +182,18 @@ func (wc *WorkflowsControllerImpl) Start() (func() error, error) { return nil, fmt.Errorf("could not schedule get group key run reassign: %w", err) } + _, err = wc.s.NewJob( + gocron.DurationJob(time.Second*15), + gocron.NewTask( + wc.runPollActiveQueues(ctx), + ), + ) + + if err != nil { + cancel() + return nil, fmt.Errorf("could not poll active queues: %w", err) + } + wc.s.Start() f := func(task *msgqueue.Message) error { @@ -190,7 +202,7 @@ func (wc *WorkflowsControllerImpl) Start() (func() error, error) { err := wc.handleTask(context.Background(), task) if err != nil { - wc.l.Error().Err(err).Msg("could not handle job task") + wc.l.Error().Err(err).Msg("could not handle workflow task") return err } @@ -235,6 +247,8 @@ func (wc *WorkflowsControllerImpl) handleTask(ctx context.Context, task *msgqueu }() switch task.ID { + case "replay-workflow-run": + return wc.handleReplayWorkflowRun(ctx, task) case "workflow-run-queued": return wc.handleWorkflowRunQueued(ctx, task) case "get-group-key-run-started": @@ -252,6 +266,39 @@ func (wc *WorkflowsControllerImpl) handleTask(ctx context.Context, task *msgqueu return fmt.Errorf("unknown task: %s", task.ID) } +func (wc *WorkflowsControllerImpl) handleReplayWorkflowRun(ctx context.Context, task *msgqueue.Message) error { + ctx, span := telemetry.NewSpan(ctx, "replay-workflow-run") // nolint:ineffassign + defer span.End() + + payload := tasktypes.ReplayWorkflowRunTaskPayload{} + metadata := tasktypes.ReplayWorkflowRunTaskMetadata{} + + err := wc.dv.DecodeAndValidate(task.Payload, &payload) + + if err != nil { + return fmt.Errorf("could not decode replay workflow run task payload: %w", err) + } + + err = wc.dv.DecodeAndValidate(task.Metadata, &metadata) + + if err != nil { + return fmt.Errorf("could not decode replay workflow run task metadata: %w", err) + } + + _, err = wc.repo.WorkflowRun().ReplayWorkflowRun(ctx, metadata.TenantId, payload.WorkflowRunId) + + if err != nil { + return fmt.Errorf("could not replay workflow run: %w", err) + } + + // push a task that the workflow run is queued + return wc.mq.AddMessage( + ctx, + msgqueue.WORKFLOW_PROCESSING_QUEUE, + tasktypes.WorkflowRunQueuedToTask(metadata.TenantId, payload.WorkflowRunId), + ) +} + func (ec *WorkflowsControllerImpl) handleGroupKeyRunStarted(ctx context.Context, task *msgqueue.Message) error { ctx, span := telemetry.NewSpan(ctx, "get-group-key-run-started") // nolint:ineffassign defer span.End() @@ -326,27 +373,73 @@ func (wc *WorkflowsControllerImpl) handleGroupKeyRunFinished(ctx context.Context errGroup.Go(func() error { workflowVersionId := sqlchelpers.UUIDToStr(groupKeyRun.WorkflowVersionId) - workflowVersion, err := wc.repo.Workflow().GetWorkflowVersionById(ctx, metadata.TenantId, workflowVersionId) + + err := wc.bumpQueue(ctx, metadata.TenantId, workflowVersionId, &payload.GroupKey) + + return err + }) + + return errGroup.Wait() +} + +func (wc *WorkflowsControllerImpl) runPollActiveQueues(ctx context.Context) func() { + return func() { + + wc.l.Debug().Msg("polling active queues") + + toQueueList, err := wc.repo.WorkflowRun().ListActiveQueuedWorkflowVersions(ctx) if err != nil { - return fmt.Errorf("could not get workflow version: %w", err) + wc.l.Error().Err(err).Msg("could not list active queued workflow versions") + return } - if workflowVersion.ConcurrencyLimitStrategy.Valid { - switch workflowVersion.ConcurrencyLimitStrategy.ConcurrencyLimitStrategy { - case dbsqlc.ConcurrencyLimitStrategyCANCELINPROGRESS: - err = wc.queueByCancelInProgress(ctx, metadata.TenantId, payload.GroupKey, workflowVersion) - case dbsqlc.ConcurrencyLimitStrategyGROUPROUNDROBIN: - err = wc.queueByGroupRoundRobin(ctx, metadata.TenantId, workflowVersion) - default: - return fmt.Errorf("unimplemented concurrency limit strategy: %s", workflowVersion.ConcurrencyLimitStrategy.ConcurrencyLimitStrategy) - } + errGroup := new(errgroup.Group) + + for i := range toQueueList { + toQueue := toQueueList[i] + errGroup.Go(func() error { + workflowVersionId := sqlchelpers.UUIDToStr(toQueue.WorkflowVersionId) + tenantId := sqlchelpers.UUIDToStr(toQueue.TenantId) + var key *string + if toQueue.ConcurrencyGroupId.Valid { + key = &toQueue.ConcurrencyGroupId.String + } + err := wc.bumpQueue(ctx, tenantId, workflowVersionId, key) + return err + }) } - return err - }) + err = errGroup.Wait() - return errGroup.Wait() + if err != nil { + wc.l.Error().Err(err) + } + } +} +func (wc *WorkflowsControllerImpl) bumpQueue(ctx context.Context, tenantId string, workflowVersionId string, groupKey *string) error { + + workflowVersion, err := wc.repo.Workflow().GetWorkflowVersionById(ctx, tenantId, workflowVersionId) + + if err != nil { + return fmt.Errorf("could not get workflow version: %w", err) + } + + if workflowVersion.ConcurrencyLimitStrategy.Valid { + switch workflowVersion.ConcurrencyLimitStrategy.ConcurrencyLimitStrategy { + case dbsqlc.ConcurrencyLimitStrategyCANCELINPROGRESS: + if groupKey == nil { + return fmt.Errorf("group key is required for cancel in progress strategy") + } + err = wc.queueByCancelInProgress(ctx, tenantId, *groupKey, workflowVersion) + case dbsqlc.ConcurrencyLimitStrategyGROUPROUNDROBIN: + err = wc.queueByGroupRoundRobin(ctx, tenantId, workflowVersion) + default: + return fmt.Errorf("unimplemented concurrency limit strategy: %s", workflowVersion.ConcurrencyLimitStrategy.ConcurrencyLimitStrategy) + } + } + + return err } func (wc *WorkflowsControllerImpl) handleGroupKeyRunFailed(ctx context.Context, task *msgqueue.Message) error { diff --git a/internal/services/controllers/workflows/queue.go b/internal/services/controllers/workflows/queue.go index 5ffe03ad2..a75b3e1bb 100644 --- a/internal/services/controllers/workflows/queue.go +++ b/internal/services/controllers/workflows/queue.go @@ -647,7 +647,7 @@ func (wc *WorkflowsControllerImpl) cancelWorkflowRun(ctx context.Context, tenant for i := range stepRuns { stepRunCp := stepRuns[i] - stepRunId := sqlchelpers.UUIDToStr(stepRunCp.StepRun.ID) + stepRunId := sqlchelpers.UUIDToStr(stepRunCp.SRID) errGroup.Go(func() error { return wc.mq.AddMessage( diff --git a/internal/services/dispatcher/contracts/dispatcher.pb.go b/internal/services/dispatcher/contracts/dispatcher.pb.go index 00fd9ad72..b2bfd398a 100644 --- a/internal/services/dispatcher/contracts/dispatcher.pb.go +++ b/internal/services/dispatcher/contracts/dispatcher.pb.go @@ -327,6 +327,62 @@ func (WorkflowRunEventType) EnumDescriptor() ([]byte, []int) { return file_dispatcher_proto_rawDescGZIP(), []int{5} } +type WorkerLabels struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // value of the label + StrValue *string `protobuf:"bytes,1,opt,name=strValue,proto3,oneof" json:"strValue,omitempty"` + IntValue *int32 `protobuf:"varint,2,opt,name=intValue,proto3,oneof" json:"intValue,omitempty"` +} + +func (x *WorkerLabels) Reset() { + *x = WorkerLabels{} + if protoimpl.UnsafeEnabled { + mi := &file_dispatcher_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkerLabels) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerLabels) ProtoMessage() {} + +func (x *WorkerLabels) ProtoReflect() protoreflect.Message { + mi := &file_dispatcher_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkerLabels.ProtoReflect.Descriptor instead. +func (*WorkerLabels) Descriptor() ([]byte, []int) { + return file_dispatcher_proto_rawDescGZIP(), []int{0} +} + +func (x *WorkerLabels) GetStrValue() string { + if x != nil && x.StrValue != nil { + return *x.StrValue + } + return "" +} + +func (x *WorkerLabels) GetIntValue() int32 { + if x != nil && x.IntValue != nil { + return *x.IntValue + } + return 0 +} + type WorkerRegisterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -340,12 +396,14 @@ type WorkerRegisterRequest struct { Services []string `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // (optional) the max number of runs this worker can handle MaxRuns *int32 `protobuf:"varint,4,opt,name=maxRuns,proto3,oneof" json:"maxRuns,omitempty"` + // (optional) worker labels (i.e. state or other metadata) + Labels map[string]*WorkerLabels `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *WorkerRegisterRequest) Reset() { *x = WorkerRegisterRequest{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[0] + mi := &file_dispatcher_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -358,7 +416,7 @@ func (x *WorkerRegisterRequest) String() string { func (*WorkerRegisterRequest) ProtoMessage() {} func (x *WorkerRegisterRequest) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[0] + mi := &file_dispatcher_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -371,7 +429,7 @@ func (x *WorkerRegisterRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkerRegisterRequest.ProtoReflect.Descriptor instead. func (*WorkerRegisterRequest) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{0} + return file_dispatcher_proto_rawDescGZIP(), []int{1} } func (x *WorkerRegisterRequest) GetWorkerName() string { @@ -402,6 +460,13 @@ func (x *WorkerRegisterRequest) GetMaxRuns() int32 { return 0 } +func (x *WorkerRegisterRequest) GetLabels() map[string]*WorkerLabels { + if x != nil { + return x.Labels + } + return nil +} + type WorkerRegisterResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -418,7 +483,7 @@ type WorkerRegisterResponse struct { func (x *WorkerRegisterResponse) Reset() { *x = WorkerRegisterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[1] + mi := &file_dispatcher_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -431,7 +496,7 @@ func (x *WorkerRegisterResponse) String() string { func (*WorkerRegisterResponse) ProtoMessage() {} func (x *WorkerRegisterResponse) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[1] + mi := &file_dispatcher_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -444,7 +509,7 @@ func (x *WorkerRegisterResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkerRegisterResponse.ProtoReflect.Descriptor instead. func (*WorkerRegisterResponse) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{1} + return file_dispatcher_proto_rawDescGZIP(), []int{2} } func (x *WorkerRegisterResponse) GetTenantId() string { @@ -468,6 +533,120 @@ func (x *WorkerRegisterResponse) GetWorkerName() string { return "" } +type UpsertWorkerLabelsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the name of the worker + WorkerId string `protobuf:"bytes,1,opt,name=workerId,proto3" json:"workerId,omitempty"` + // (optional) the worker labels + Labels map[string]*WorkerLabels `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *UpsertWorkerLabelsRequest) Reset() { + *x = UpsertWorkerLabelsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_dispatcher_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpsertWorkerLabelsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertWorkerLabelsRequest) ProtoMessage() {} + +func (x *UpsertWorkerLabelsRequest) ProtoReflect() protoreflect.Message { + mi := &file_dispatcher_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpsertWorkerLabelsRequest.ProtoReflect.Descriptor instead. +func (*UpsertWorkerLabelsRequest) Descriptor() ([]byte, []int) { + return file_dispatcher_proto_rawDescGZIP(), []int{3} +} + +func (x *UpsertWorkerLabelsRequest) GetWorkerId() string { + if x != nil { + return x.WorkerId + } + return "" +} + +func (x *UpsertWorkerLabelsRequest) GetLabels() map[string]*WorkerLabels { + if x != nil { + return x.Labels + } + return nil +} + +type UpsertWorkerLabelsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the tenant id + TenantId string `protobuf:"bytes,1,opt,name=tenantId,proto3" json:"tenantId,omitempty"` + // the id of the worker + WorkerId string `protobuf:"bytes,2,opt,name=workerId,proto3" json:"workerId,omitempty"` +} + +func (x *UpsertWorkerLabelsResponse) Reset() { + *x = UpsertWorkerLabelsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_dispatcher_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpsertWorkerLabelsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertWorkerLabelsResponse) ProtoMessage() {} + +func (x *UpsertWorkerLabelsResponse) ProtoReflect() protoreflect.Message { + mi := &file_dispatcher_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpsertWorkerLabelsResponse.ProtoReflect.Descriptor instead. +func (*UpsertWorkerLabelsResponse) Descriptor() ([]byte, []int) { + return file_dispatcher_proto_rawDescGZIP(), []int{4} +} + +func (x *UpsertWorkerLabelsResponse) GetTenantId() string { + if x != nil { + return x.TenantId + } + return "" +} + +func (x *UpsertWorkerLabelsResponse) GetWorkerId() string { + if x != nil { + return x.WorkerId + } + return "" +} + type AssignedAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -499,12 +678,20 @@ type AssignedAction struct { StepName string `protobuf:"bytes,12,opt,name=stepName,proto3" json:"stepName,omitempty"` // the count number of the retry attempt RetryCount int32 `protobuf:"varint,13,opt,name=retryCount,proto3" json:"retryCount,omitempty"` + // (optional) additional metadata set on the workflow + AdditionalMetadata *string `protobuf:"bytes,14,opt,name=additional_metadata,json=additionalMetadata,proto3,oneof" json:"additional_metadata,omitempty"` + // (optional) the child workflow index (if this is a child workflow) + ChildWorkflowIndex *int32 `protobuf:"varint,15,opt,name=child_workflow_index,json=childWorkflowIndex,proto3,oneof" json:"child_workflow_index,omitempty"` + // (optional) the child workflow key (if this is a child workflow) + ChildWorkflowKey *string `protobuf:"bytes,16,opt,name=child_workflow_key,json=childWorkflowKey,proto3,oneof" json:"child_workflow_key,omitempty"` + // (optional) the parent workflow run id (if this is a child workflow) + ParentWorkflowRunId *string `protobuf:"bytes,17,opt,name=parent_workflow_run_id,json=parentWorkflowRunId,proto3,oneof" json:"parent_workflow_run_id,omitempty"` } func (x *AssignedAction) Reset() { *x = AssignedAction{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[2] + mi := &file_dispatcher_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -517,7 +704,7 @@ func (x *AssignedAction) String() string { func (*AssignedAction) ProtoMessage() {} func (x *AssignedAction) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[2] + mi := &file_dispatcher_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -530,7 +717,7 @@ func (x *AssignedAction) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignedAction.ProtoReflect.Descriptor instead. func (*AssignedAction) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{2} + return file_dispatcher_proto_rawDescGZIP(), []int{5} } func (x *AssignedAction) GetTenantId() string { @@ -624,6 +811,34 @@ func (x *AssignedAction) GetRetryCount() int32 { return 0 } +func (x *AssignedAction) GetAdditionalMetadata() string { + if x != nil && x.AdditionalMetadata != nil { + return *x.AdditionalMetadata + } + return "" +} + +func (x *AssignedAction) GetChildWorkflowIndex() int32 { + if x != nil && x.ChildWorkflowIndex != nil { + return *x.ChildWorkflowIndex + } + return 0 +} + +func (x *AssignedAction) GetChildWorkflowKey() string { + if x != nil && x.ChildWorkflowKey != nil { + return *x.ChildWorkflowKey + } + return "" +} + +func (x *AssignedAction) GetParentWorkflowRunId() string { + if x != nil && x.ParentWorkflowRunId != nil { + return *x.ParentWorkflowRunId + } + return "" +} + type WorkerListenRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -636,7 +851,7 @@ type WorkerListenRequest struct { func (x *WorkerListenRequest) Reset() { *x = WorkerListenRequest{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[3] + mi := &file_dispatcher_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -649,7 +864,7 @@ func (x *WorkerListenRequest) String() string { func (*WorkerListenRequest) ProtoMessage() {} func (x *WorkerListenRequest) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[3] + mi := &file_dispatcher_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -662,7 +877,7 @@ func (x *WorkerListenRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkerListenRequest.ProtoReflect.Descriptor instead. func (*WorkerListenRequest) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{3} + return file_dispatcher_proto_rawDescGZIP(), []int{6} } func (x *WorkerListenRequest) GetWorkerId() string { @@ -684,7 +899,7 @@ type WorkerUnsubscribeRequest struct { func (x *WorkerUnsubscribeRequest) Reset() { *x = WorkerUnsubscribeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[4] + mi := &file_dispatcher_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -697,7 +912,7 @@ func (x *WorkerUnsubscribeRequest) String() string { func (*WorkerUnsubscribeRequest) ProtoMessage() {} func (x *WorkerUnsubscribeRequest) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[4] + mi := &file_dispatcher_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -710,7 +925,7 @@ func (x *WorkerUnsubscribeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkerUnsubscribeRequest.ProtoReflect.Descriptor instead. func (*WorkerUnsubscribeRequest) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{4} + return file_dispatcher_proto_rawDescGZIP(), []int{7} } func (x *WorkerUnsubscribeRequest) GetWorkerId() string { @@ -734,7 +949,7 @@ type WorkerUnsubscribeResponse struct { func (x *WorkerUnsubscribeResponse) Reset() { *x = WorkerUnsubscribeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[5] + mi := &file_dispatcher_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -747,7 +962,7 @@ func (x *WorkerUnsubscribeResponse) String() string { func (*WorkerUnsubscribeResponse) ProtoMessage() {} func (x *WorkerUnsubscribeResponse) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[5] + mi := &file_dispatcher_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -760,7 +975,7 @@ func (x *WorkerUnsubscribeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkerUnsubscribeResponse.ProtoReflect.Descriptor instead. func (*WorkerUnsubscribeResponse) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{5} + return file_dispatcher_proto_rawDescGZIP(), []int{8} } func (x *WorkerUnsubscribeResponse) GetTenantId() string { @@ -799,7 +1014,7 @@ type GroupKeyActionEvent struct { func (x *GroupKeyActionEvent) Reset() { *x = GroupKeyActionEvent{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[6] + mi := &file_dispatcher_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -812,7 +1027,7 @@ func (x *GroupKeyActionEvent) String() string { func (*GroupKeyActionEvent) ProtoMessage() {} func (x *GroupKeyActionEvent) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[6] + mi := &file_dispatcher_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -825,7 +1040,7 @@ func (x *GroupKeyActionEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use GroupKeyActionEvent.ProtoReflect.Descriptor instead. func (*GroupKeyActionEvent) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{6} + return file_dispatcher_proto_rawDescGZIP(), []int{9} } func (x *GroupKeyActionEvent) GetWorkerId() string { @@ -904,7 +1119,7 @@ type StepActionEvent struct { func (x *StepActionEvent) Reset() { *x = StepActionEvent{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[7] + mi := &file_dispatcher_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -917,7 +1132,7 @@ func (x *StepActionEvent) String() string { func (*StepActionEvent) ProtoMessage() {} func (x *StepActionEvent) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[7] + mi := &file_dispatcher_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -930,7 +1145,7 @@ func (x *StepActionEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use StepActionEvent.ProtoReflect.Descriptor instead. func (*StepActionEvent) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{7} + return file_dispatcher_proto_rawDescGZIP(), []int{10} } func (x *StepActionEvent) GetWorkerId() string { @@ -1010,7 +1225,7 @@ type ActionEventResponse struct { func (x *ActionEventResponse) Reset() { *x = ActionEventResponse{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[8] + mi := &file_dispatcher_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1023,7 +1238,7 @@ func (x *ActionEventResponse) String() string { func (*ActionEventResponse) ProtoMessage() {} func (x *ActionEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[8] + mi := &file_dispatcher_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1036,7 +1251,7 @@ func (x *ActionEventResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ActionEventResponse.ProtoReflect.Descriptor instead. func (*ActionEventResponse) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{8} + return file_dispatcher_proto_rawDescGZIP(), []int{11} } func (x *ActionEventResponse) GetTenantId() string { @@ -1059,13 +1274,17 @@ type SubscribeToWorkflowEventsRequest struct { unknownFields protoimpl.UnknownFields // the id of the workflow run - WorkflowRunId string `protobuf:"bytes,1,opt,name=workflowRunId,proto3" json:"workflowRunId,omitempty"` + WorkflowRunId *string `protobuf:"bytes,1,opt,name=workflowRunId,proto3,oneof" json:"workflowRunId,omitempty"` + // the key of the additional meta field to subscribe to + AdditionalMetaKey *string `protobuf:"bytes,2,opt,name=additionalMetaKey,proto3,oneof" json:"additionalMetaKey,omitempty"` + // the value of the additional meta field to subscribe to + AdditionalMetaValue *string `protobuf:"bytes,3,opt,name=additionalMetaValue,proto3,oneof" json:"additionalMetaValue,omitempty"` } func (x *SubscribeToWorkflowEventsRequest) Reset() { *x = SubscribeToWorkflowEventsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[9] + mi := &file_dispatcher_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1078,7 +1297,7 @@ func (x *SubscribeToWorkflowEventsRequest) String() string { func (*SubscribeToWorkflowEventsRequest) ProtoMessage() {} func (x *SubscribeToWorkflowEventsRequest) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[9] + mi := &file_dispatcher_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1091,12 +1310,26 @@ func (x *SubscribeToWorkflowEventsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubscribeToWorkflowEventsRequest.ProtoReflect.Descriptor instead. func (*SubscribeToWorkflowEventsRequest) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{9} + return file_dispatcher_proto_rawDescGZIP(), []int{12} } func (x *SubscribeToWorkflowEventsRequest) GetWorkflowRunId() string { - if x != nil { - return x.WorkflowRunId + if x != nil && x.WorkflowRunId != nil { + return *x.WorkflowRunId + } + return "" +} + +func (x *SubscribeToWorkflowEventsRequest) GetAdditionalMetaKey() string { + if x != nil && x.AdditionalMetaKey != nil { + return *x.AdditionalMetaKey + } + return "" +} + +func (x *SubscribeToWorkflowEventsRequest) GetAdditionalMetaValue() string { + if x != nil && x.AdditionalMetaValue != nil { + return *x.AdditionalMetaValue } return "" } @@ -1113,7 +1346,7 @@ type SubscribeToWorkflowRunsRequest struct { func (x *SubscribeToWorkflowRunsRequest) Reset() { *x = SubscribeToWorkflowRunsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[10] + mi := &file_dispatcher_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1126,7 +1359,7 @@ func (x *SubscribeToWorkflowRunsRequest) String() string { func (*SubscribeToWorkflowRunsRequest) ProtoMessage() {} func (x *SubscribeToWorkflowRunsRequest) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[10] + mi := &file_dispatcher_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1139,7 +1372,7 @@ func (x *SubscribeToWorkflowRunsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubscribeToWorkflowRunsRequest.ProtoReflect.Descriptor instead. func (*SubscribeToWorkflowRunsRequest) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{10} + return file_dispatcher_proto_rawDescGZIP(), []int{13} } func (x *SubscribeToWorkflowRunsRequest) GetWorkflowRunId() string { @@ -1174,7 +1407,7 @@ type WorkflowEvent struct { func (x *WorkflowEvent) Reset() { *x = WorkflowEvent{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[11] + mi := &file_dispatcher_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1187,7 +1420,7 @@ func (x *WorkflowEvent) String() string { func (*WorkflowEvent) ProtoMessage() {} func (x *WorkflowEvent) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[11] + mi := &file_dispatcher_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1200,7 +1433,7 @@ func (x *WorkflowEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowEvent.ProtoReflect.Descriptor instead. func (*WorkflowEvent) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{11} + return file_dispatcher_proto_rawDescGZIP(), []int{14} } func (x *WorkflowEvent) GetWorkflowRunId() string { @@ -1281,7 +1514,7 @@ type WorkflowRunEvent struct { func (x *WorkflowRunEvent) Reset() { *x = WorkflowRunEvent{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[12] + mi := &file_dispatcher_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1294,7 +1527,7 @@ func (x *WorkflowRunEvent) String() string { func (*WorkflowRunEvent) ProtoMessage() {} func (x *WorkflowRunEvent) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[12] + mi := &file_dispatcher_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1307,7 +1540,7 @@ func (x *WorkflowRunEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowRunEvent.ProtoReflect.Descriptor instead. func (*WorkflowRunEvent) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{12} + return file_dispatcher_proto_rawDescGZIP(), []int{15} } func (x *WorkflowRunEvent) GetWorkflowRunId() string { @@ -1353,7 +1586,7 @@ type StepRunResult struct { func (x *StepRunResult) Reset() { *x = StepRunResult{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[13] + mi := &file_dispatcher_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1366,7 +1599,7 @@ func (x *StepRunResult) String() string { func (*StepRunResult) ProtoMessage() {} func (x *StepRunResult) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[13] + mi := &file_dispatcher_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1379,7 +1612,7 @@ func (x *StepRunResult) ProtoReflect() protoreflect.Message { // Deprecated: Use StepRunResult.ProtoReflect.Descriptor instead. func (*StepRunResult) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{13} + return file_dispatcher_proto_rawDescGZIP(), []int{16} } func (x *StepRunResult) GetStepRunId() string { @@ -1435,7 +1668,7 @@ type OverridesData struct { func (x *OverridesData) Reset() { *x = OverridesData{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[14] + mi := &file_dispatcher_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1448,7 +1681,7 @@ func (x *OverridesData) String() string { func (*OverridesData) ProtoMessage() {} func (x *OverridesData) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[14] + mi := &file_dispatcher_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1461,7 +1694,7 @@ func (x *OverridesData) ProtoReflect() protoreflect.Message { // Deprecated: Use OverridesData.ProtoReflect.Descriptor instead. func (*OverridesData) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{14} + return file_dispatcher_proto_rawDescGZIP(), []int{17} } func (x *OverridesData) GetStepRunId() string { @@ -1501,7 +1734,7 @@ type OverridesDataResponse struct { func (x *OverridesDataResponse) Reset() { *x = OverridesDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[15] + mi := &file_dispatcher_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1514,7 +1747,7 @@ func (x *OverridesDataResponse) String() string { func (*OverridesDataResponse) ProtoMessage() {} func (x *OverridesDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[15] + mi := &file_dispatcher_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1527,7 +1760,7 @@ func (x *OverridesDataResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use OverridesDataResponse.ProtoReflect.Descriptor instead. func (*OverridesDataResponse) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{15} + return file_dispatcher_proto_rawDescGZIP(), []int{18} } type HeartbeatRequest struct { @@ -1544,7 +1777,7 @@ type HeartbeatRequest struct { func (x *HeartbeatRequest) Reset() { *x = HeartbeatRequest{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[16] + mi := &file_dispatcher_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1557,7 +1790,7 @@ func (x *HeartbeatRequest) String() string { func (*HeartbeatRequest) ProtoMessage() {} func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[16] + mi := &file_dispatcher_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1570,7 +1803,7 @@ func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead. func (*HeartbeatRequest) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{16} + return file_dispatcher_proto_rawDescGZIP(), []int{19} } func (x *HeartbeatRequest) GetWorkerId() string { @@ -1596,7 +1829,7 @@ type HeartbeatResponse struct { func (x *HeartbeatResponse) Reset() { *x = HeartbeatResponse{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[17] + mi := &file_dispatcher_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1609,7 +1842,7 @@ func (x *HeartbeatResponse) String() string { func (*HeartbeatResponse) ProtoMessage() {} func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[17] + mi := &file_dispatcher_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1622,7 +1855,7 @@ func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead. func (*HeartbeatResponse) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{17} + return file_dispatcher_proto_rawDescGZIP(), []int{20} } type RefreshTimeoutRequest struct { @@ -1638,7 +1871,7 @@ type RefreshTimeoutRequest struct { func (x *RefreshTimeoutRequest) Reset() { *x = RefreshTimeoutRequest{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[18] + mi := &file_dispatcher_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1651,7 +1884,7 @@ func (x *RefreshTimeoutRequest) String() string { func (*RefreshTimeoutRequest) ProtoMessage() {} func (x *RefreshTimeoutRequest) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[18] + mi := &file_dispatcher_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1664,7 +1897,7 @@ func (x *RefreshTimeoutRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshTimeoutRequest.ProtoReflect.Descriptor instead. func (*RefreshTimeoutRequest) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{18} + return file_dispatcher_proto_rawDescGZIP(), []int{21} } func (x *RefreshTimeoutRequest) GetStepRunId() string { @@ -1692,7 +1925,7 @@ type RefreshTimeoutResponse struct { func (x *RefreshTimeoutResponse) Reset() { *x = RefreshTimeoutResponse{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[19] + mi := &file_dispatcher_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1705,7 +1938,7 @@ func (x *RefreshTimeoutResponse) String() string { func (*RefreshTimeoutResponse) ProtoMessage() {} func (x *RefreshTimeoutResponse) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[19] + mi := &file_dispatcher_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1718,7 +1951,7 @@ func (x *RefreshTimeoutResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshTimeoutResponse.ProtoReflect.Descriptor instead. func (*RefreshTimeoutResponse) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{19} + return file_dispatcher_proto_rawDescGZIP(), []int{22} } func (x *RefreshTimeoutResponse) GetTimeoutAt() *timestamppb.Timestamp { @@ -1740,7 +1973,7 @@ type ReleaseSlotRequest struct { func (x *ReleaseSlotRequest) Reset() { *x = ReleaseSlotRequest{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[20] + mi := &file_dispatcher_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1753,7 +1986,7 @@ func (x *ReleaseSlotRequest) String() string { func (*ReleaseSlotRequest) ProtoMessage() {} func (x *ReleaseSlotRequest) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[20] + mi := &file_dispatcher_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1766,7 +1999,7 @@ func (x *ReleaseSlotRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReleaseSlotRequest.ProtoReflect.Descriptor instead. func (*ReleaseSlotRequest) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{20} + return file_dispatcher_proto_rawDescGZIP(), []int{23} } func (x *ReleaseSlotRequest) GetStepRunId() string { @@ -1785,7 +2018,7 @@ type ReleaseSlotResponse struct { func (x *ReleaseSlotResponse) Reset() { *x = ReleaseSlotResponse{} if protoimpl.UnsafeEnabled { - mi := &file_dispatcher_proto_msgTypes[21] + mi := &file_dispatcher_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1798,7 +2031,7 @@ func (x *ReleaseSlotResponse) String() string { func (*ReleaseSlotResponse) ProtoMessage() {} func (x *ReleaseSlotResponse) ProtoReflect() protoreflect.Message { - mi := &file_dispatcher_proto_msgTypes[21] + mi := &file_dispatcher_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1811,7 +2044,7 @@ func (x *ReleaseSlotResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReleaseSlotResponse.ProtoReflect.Descriptor instead. func (*ReleaseSlotResponse) Descriptor() ([]byte, []int) { - return file_dispatcher_proto_rawDescGZIP(), []int{21} + return file_dispatcher_proto_rawDescGZIP(), []int{24} } var File_dispatcher_proto protoreflect.FileDescriptor @@ -1820,310 +2053,379 @@ var file_dispatcher_proto_rawDesc = []byte{ 0x0a, 0x10, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x01, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, - 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x88, - 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x22, 0x70, - 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, - 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x1e, 0x0a, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, - 0x22, 0xab, 0x03, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, - 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x4b, 0x65, 0x79, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x10, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x52, 0x75, 0x6e, 0x49, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x74, 0x65, 0x70, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x74, 0x65, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, - 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, - 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x2b, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0d, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, - 0x0a, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x31, - 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, - 0x64, 0x22, 0x36, 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x55, 0x6e, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, - 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x19, 0x57, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, - 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x22, 0xbf, - 0x02, 0x0a, 0x13, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x6a, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x72, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x73, 0x74, 0x72, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x9e, 0x02, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x77, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, + 0x1d, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x48, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x12, 0x3a, + 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x48, 0x0a, 0x0b, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6d, 0x61, 0x78, 0x52, 0x75, 0x6e, 0x73, + 0x22, 0x70, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, + 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, + 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x06, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x55, + 0x70, 0x73, 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x48, 0x0a, 0x0b, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x54, 0x0a, 0x1a, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, + 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x22, 0xe8, 0x05, 0x0a, + 0x0e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, + 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x67, 0x65, 0x74, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x65, + 0x70, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x65, 0x70, 0x49, + 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, + 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x0a, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x0b, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1a, + 0x0a, 0x08, 0x73, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x73, 0x74, 0x65, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, + 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, + 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x13, 0x61, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x12, 0x61, 0x64, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x88, 0x01, 0x01, + 0x12, 0x35, 0x0a, 0x14, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, + 0x52, 0x12, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x12, 0x63, 0x68, 0x69, 0x6c, 0x64, + 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x10, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x4b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x12, 0x38, 0x0a, 0x16, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x75, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x13, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x17, 0x0a, 0x15, + 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6b, 0x65, 0x79, 0x42, 0x19, 0x0a, 0x17, + 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x31, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, + 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x22, 0x36, 0x0a, 0x18, 0x57, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, - 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x67, 0x65, 0x74, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x10, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x52, - 0x75, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x12, 0x42, 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, - 0x65, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x22, 0xcd, 0x02, 0x0a, 0x0f, 0x53, 0x74, 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, - 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, - 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x65, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x65, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, - 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, - 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x53, 0x74, - 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x22, 0x4d, 0x0a, 0x13, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x22, - 0x48, 0x0a, 0x20, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, - 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x46, 0x0a, 0x1e, 0x53, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x49, 0x64, 0x22, 0x53, 0x0a, 0x19, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x55, 0x6e, 0x73, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x77, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x22, 0xbf, 0x02, 0x0a, 0x13, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x4b, 0x65, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, - 0x64, 0x22, 0xa5, 0x03, 0x0a, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, - 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x0c, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x0d, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x09, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x12, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, - 0x0a, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x42, - 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x6e, 0x67, 0x75, 0x70, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x61, 0x6e, 0x67, 0x75, 0x70, 0x12, 0x25, - 0x0a, 0x0b, 0x73, 0x74, 0x65, 0x70, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x65, 0x70, 0x52, 0x65, 0x74, 0x72, 0x69, - 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x74, - 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x73, - 0x74, 0x65, 0x70, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x72, - 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xdb, 0x01, 0x0a, 0x10, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x24, - 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, - 0x75, 0x6e, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x67, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x67, 0x65, 0x74, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x28, 0x0a, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, - 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xbe, 0x01, 0x0a, 0x0d, 0x53, 0x74, 0x65, 0x70, - 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, - 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, - 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x74, 0x65, 0x70, 0x52, - 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0e, 0x73, 0x74, 0x65, 0x70, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, + 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x36, 0x0a, + 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x18, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xcd, 0x02, 0x0a, 0x0f, 0x53, 0x74, + 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x09, 0x0a, - 0x07, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x7f, 0x0a, 0x0d, 0x4f, 0x76, 0x65, 0x72, - 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, - 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, - 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, - 0x72, 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x4f, 0x76, 0x65, - 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x6c, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0b, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x41, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x41, 0x74, - 0x22, 0x13, 0x0a, 0x11, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x0a, 0x15, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, - 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x12, - 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x42, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x79, 0x22, 0x52, 0x0a, 0x16, - 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, - 0x74, 0x41, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x41, 0x74, - 0x22, 0x32, 0x0a, 0x12, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x6c, 0x6f, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, - 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, - 0x75, 0x6e, 0x49, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, - 0x6c, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x4e, 0x0a, 0x0a, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, - 0x52, 0x54, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x52, 0x55, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, - 0x0f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x52, 0x55, 0x4e, - 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x5f, - 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4b, 0x45, 0x59, 0x10, 0x02, 0x2a, 0xa2, 0x01, 0x0a, 0x17, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x47, 0x52, 0x4f, 0x55, 0x50, - 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x47, 0x52, 0x4f, - 0x55, 0x50, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x47, - 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, - 0x1f, 0x0a, 0x1b, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x56, 0x45, - 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, - 0x2a, 0x8a, 0x01, 0x0a, 0x13, 0x53, 0x74, 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x45, 0x50, - 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, - 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, - 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x65, 0x0a, - 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, - 0x15, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x53, 0x4f, - 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x52, - 0x55, 0x4e, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x52, - 0x55, 0x4e, 0x10, 0x02, 0x2a, 0xfe, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, - 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x52, + 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x74, 0x65, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x65, + 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x42, 0x0a, + 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x12, 0x32, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x4d, 0x0a, 0x13, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x22, 0xf7, 0x01, 0x0a, 0x20, 0x53, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, + 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x13, 0x61, + 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x13, 0x61, 0x64, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, + 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, + 0x75, 0x6e, 0x49, 0x64, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x61, + 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0x46, 0x0a, 0x1e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, + 0x6f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0xa5, 0x03, 0x0a, 0x0d, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0d, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, + 0x49, 0x64, 0x12, 0x31, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, + 0x16, 0x0a, 0x06, 0x68, 0x61, 0x6e, 0x67, 0x75, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x06, 0x68, 0x61, 0x6e, 0x67, 0x75, 0x70, 0x12, 0x25, 0x0a, 0x0b, 0x73, 0x74, 0x65, 0x70, 0x52, + 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0b, + 0x73, 0x74, 0x65, 0x70, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x23, + 0x0a, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x05, 0x48, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x52, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0xdb, 0x01, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, + 0x75, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x33, 0x0a, + 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x15, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x75, + 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x22, 0xbe, 0x01, 0x0a, 0x0d, 0x53, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, + 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x74, 0x65, 0x70, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x74, 0x65, 0x70, 0x52, 0x65, + 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x52, + 0x75, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, + 0x1b, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x01, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, + 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x22, 0x7f, 0x0a, 0x0d, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x61, + 0x6c, 0x6c, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x0a, 0x10, 0x48, + 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0b, 0x68, + 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x68, 0x65, + 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x41, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x48, 0x65, 0x61, + 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, + 0x0a, 0x15, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, + 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x12, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x42, 0x79, 0x22, 0x52, 0x0a, 0x16, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x41, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x41, 0x74, 0x22, 0x32, 0x0a, 0x12, 0x52, 0x65, 0x6c, + 0x65, 0x61, 0x73, 0x65, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x15, 0x0a, + 0x13, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x4e, 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x45, 0x50, + 0x5f, 0x52, 0x55, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, + 0x5f, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x52, 0x55, 0x4e, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, + 0x54, 0x41, 0x52, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4b, + 0x45, 0x59, 0x10, 0x02, 0x2a, 0xa2, 0x01, 0x0a, 0x17, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, + 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x20, 0x0a, 0x1c, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x56, + 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4b, 0x45, 0x59, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, + 0x45, 0x44, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4b, 0x45, + 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, + 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x47, 0x52, 0x4f, 0x55, + 0x50, 0x5f, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x8a, 0x01, 0x0a, 0x13, 0x53, 0x74, + 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1b, + 0x0a, 0x17, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x53, + 0x54, 0x45, 0x50, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, + 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, + 0x45, 0x50, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x65, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, + 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x53, 0x54, 0x45, 0x50, 0x5f, 0x52, 0x55, 0x4e, 0x10, 0x01, 0x12, 0x1e, 0x0a, + 0x1a, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, + 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x52, 0x55, 0x4e, 0x10, 0x02, 0x2a, 0xfe, 0x01, + 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, + 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, + 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, + 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, + 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, - 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, - 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, - 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, - 0x10, 0x04, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, - 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x44, 0x5f, - 0x4f, 0x55, 0x54, 0x10, 0x05, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, - 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, - 0x45, 0x41, 0x4d, 0x10, 0x06, 0x2a, 0x3c, 0x0a, 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x52, 0x75, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, - 0x20, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x4e, 0x49, 0x53, 0x48, 0x45, - 0x44, 0x10, 0x00, 0x32, 0xa7, 0x06, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x16, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x33, 0x0a, 0x06, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x12, 0x14, 0x2e, 0x57, 0x6f, + 0x50, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x44, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x05, 0x12, 0x1e, + 0x0a, 0x1a, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x45, 0x41, 0x4d, 0x10, 0x06, 0x2a, 0x3c, + 0x0a, 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, + 0x4f, 0x57, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x46, 0x49, 0x4e, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x00, 0x32, 0xf8, 0x06, 0x0a, + 0x0a, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x08, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x17, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x06, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x12, 0x14, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x30, 0x01, 0x12, + 0x35, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x56, 0x32, 0x12, 0x14, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x00, 0x30, 0x01, 0x12, 0x35, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x56, 0x32, 0x12, 0x14, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x30, 0x01, 0x12, 0x34, 0x0a, - 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x11, 0x2e, 0x48, 0x65, 0x61, - 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, - 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x19, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, - 0x54, 0x6f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0x21, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x53, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, - 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, - 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x13, - 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x10, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0x14, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, - 0x17, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4b, 0x65, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0x14, + 0x6f, 0x6e, 0x22, 0x00, 0x30, 0x01, 0x12, 0x34, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, + 0x65, 0x61, 0x74, 0x12, 0x11, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, + 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x19, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x00, 0x30, 0x01, + 0x12, 0x53, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x54, 0x6f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x75, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, + 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x13, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x74, 0x65, + 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x2e, 0x53, + 0x74, 0x65, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0x14, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x10, 0x50, 0x75, 0x74, 0x4f, 0x76, 0x65, - 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x2e, 0x4f, 0x76, 0x65, - 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x16, 0x2e, 0x4f, 0x76, 0x65, - 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x46, 0x0a, 0x0b, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x62, 0x65, 0x12, 0x19, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x55, 0x6e, 0x73, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0e, - 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x16, - 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, - 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x3a, 0x0a, 0x0b, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x6c, 0x6f, 0x74, - 0x12, 0x13, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, - 0x6c, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x47, 0x5a, - 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x74, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x68, 0x61, 0x74, 0x63, 0x68, 0x65, 0x74, 0x2f, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x17, 0x53, 0x65, 0x6e, 0x64, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x12, 0x14, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0x14, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x3c, 0x0a, 0x10, 0x50, 0x75, 0x74, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x12, 0x0e, 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x1a, 0x16, 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x46, 0x0a, + 0x0b, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x19, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x55, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x17, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x0b, 0x52, 0x65, + 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x6c, 0x6f, 0x74, 0x12, 0x13, 0x2e, 0x52, 0x65, 0x6c, 0x65, + 0x61, 0x73, 0x65, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, + 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x6c, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x12, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1a, 0x2e, 0x55, + 0x70, 0x73, 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x55, 0x70, 0x73, 0x65, 0x72, + 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x74, 0x63, 0x68, 0x65, 0x74, 0x2d, 0x64, 0x65, + 0x76, 0x2f, 0x68, 0x61, 0x74, 0x63, 0x68, 0x65, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x64, 0x69, 0x73, 0x70, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2139,7 +2441,7 @@ func file_dispatcher_proto_rawDescGZIP() []byte { } var file_dispatcher_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_dispatcher_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_dispatcher_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_dispatcher_proto_goTypes = []interface{}{ (ActionType)(0), // 0: ActionType (GroupKeyActionEventType)(0), // 1: GroupKeyActionEventType @@ -2147,73 +2449,84 @@ var file_dispatcher_proto_goTypes = []interface{}{ (ResourceType)(0), // 3: ResourceType (ResourceEventType)(0), // 4: ResourceEventType (WorkflowRunEventType)(0), // 5: WorkflowRunEventType - (*WorkerRegisterRequest)(nil), // 6: WorkerRegisterRequest - (*WorkerRegisterResponse)(nil), // 7: WorkerRegisterResponse - (*AssignedAction)(nil), // 8: AssignedAction - (*WorkerListenRequest)(nil), // 9: WorkerListenRequest - (*WorkerUnsubscribeRequest)(nil), // 10: WorkerUnsubscribeRequest - (*WorkerUnsubscribeResponse)(nil), // 11: WorkerUnsubscribeResponse - (*GroupKeyActionEvent)(nil), // 12: GroupKeyActionEvent - (*StepActionEvent)(nil), // 13: StepActionEvent - (*ActionEventResponse)(nil), // 14: ActionEventResponse - (*SubscribeToWorkflowEventsRequest)(nil), // 15: SubscribeToWorkflowEventsRequest - (*SubscribeToWorkflowRunsRequest)(nil), // 16: SubscribeToWorkflowRunsRequest - (*WorkflowEvent)(nil), // 17: WorkflowEvent - (*WorkflowRunEvent)(nil), // 18: WorkflowRunEvent - (*StepRunResult)(nil), // 19: StepRunResult - (*OverridesData)(nil), // 20: OverridesData - (*OverridesDataResponse)(nil), // 21: OverridesDataResponse - (*HeartbeatRequest)(nil), // 22: HeartbeatRequest - (*HeartbeatResponse)(nil), // 23: HeartbeatResponse - (*RefreshTimeoutRequest)(nil), // 24: RefreshTimeoutRequest - (*RefreshTimeoutResponse)(nil), // 25: RefreshTimeoutResponse - (*ReleaseSlotRequest)(nil), // 26: ReleaseSlotRequest - (*ReleaseSlotResponse)(nil), // 27: ReleaseSlotResponse - (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp + (*WorkerLabels)(nil), // 6: WorkerLabels + (*WorkerRegisterRequest)(nil), // 7: WorkerRegisterRequest + (*WorkerRegisterResponse)(nil), // 8: WorkerRegisterResponse + (*UpsertWorkerLabelsRequest)(nil), // 9: UpsertWorkerLabelsRequest + (*UpsertWorkerLabelsResponse)(nil), // 10: UpsertWorkerLabelsResponse + (*AssignedAction)(nil), // 11: AssignedAction + (*WorkerListenRequest)(nil), // 12: WorkerListenRequest + (*WorkerUnsubscribeRequest)(nil), // 13: WorkerUnsubscribeRequest + (*WorkerUnsubscribeResponse)(nil), // 14: WorkerUnsubscribeResponse + (*GroupKeyActionEvent)(nil), // 15: GroupKeyActionEvent + (*StepActionEvent)(nil), // 16: StepActionEvent + (*ActionEventResponse)(nil), // 17: ActionEventResponse + (*SubscribeToWorkflowEventsRequest)(nil), // 18: SubscribeToWorkflowEventsRequest + (*SubscribeToWorkflowRunsRequest)(nil), // 19: SubscribeToWorkflowRunsRequest + (*WorkflowEvent)(nil), // 20: WorkflowEvent + (*WorkflowRunEvent)(nil), // 21: WorkflowRunEvent + (*StepRunResult)(nil), // 22: StepRunResult + (*OverridesData)(nil), // 23: OverridesData + (*OverridesDataResponse)(nil), // 24: OverridesDataResponse + (*HeartbeatRequest)(nil), // 25: HeartbeatRequest + (*HeartbeatResponse)(nil), // 26: HeartbeatResponse + (*RefreshTimeoutRequest)(nil), // 27: RefreshTimeoutRequest + (*RefreshTimeoutResponse)(nil), // 28: RefreshTimeoutResponse + (*ReleaseSlotRequest)(nil), // 29: ReleaseSlotRequest + (*ReleaseSlotResponse)(nil), // 30: ReleaseSlotResponse + nil, // 31: WorkerRegisterRequest.LabelsEntry + nil, // 32: UpsertWorkerLabelsRequest.LabelsEntry + (*timestamppb.Timestamp)(nil), // 33: google.protobuf.Timestamp } var file_dispatcher_proto_depIdxs = []int32{ - 0, // 0: AssignedAction.actionType:type_name -> ActionType - 28, // 1: GroupKeyActionEvent.eventTimestamp:type_name -> google.protobuf.Timestamp - 1, // 2: GroupKeyActionEvent.eventType:type_name -> GroupKeyActionEventType - 28, // 3: StepActionEvent.eventTimestamp:type_name -> google.protobuf.Timestamp - 2, // 4: StepActionEvent.eventType:type_name -> StepActionEventType - 3, // 5: WorkflowEvent.resourceType:type_name -> ResourceType - 4, // 6: WorkflowEvent.eventType:type_name -> ResourceEventType - 28, // 7: WorkflowEvent.eventTimestamp:type_name -> google.protobuf.Timestamp - 5, // 8: WorkflowRunEvent.eventType:type_name -> WorkflowRunEventType - 28, // 9: WorkflowRunEvent.eventTimestamp:type_name -> google.protobuf.Timestamp - 19, // 10: WorkflowRunEvent.results:type_name -> StepRunResult - 28, // 11: HeartbeatRequest.heartbeatAt:type_name -> google.protobuf.Timestamp - 28, // 12: RefreshTimeoutResponse.timeoutAt:type_name -> google.protobuf.Timestamp - 6, // 13: Dispatcher.Register:input_type -> WorkerRegisterRequest - 9, // 14: Dispatcher.Listen:input_type -> WorkerListenRequest - 9, // 15: Dispatcher.ListenV2:input_type -> WorkerListenRequest - 22, // 16: Dispatcher.Heartbeat:input_type -> HeartbeatRequest - 15, // 17: Dispatcher.SubscribeToWorkflowEvents:input_type -> SubscribeToWorkflowEventsRequest - 16, // 18: Dispatcher.SubscribeToWorkflowRuns:input_type -> SubscribeToWorkflowRunsRequest - 13, // 19: Dispatcher.SendStepActionEvent:input_type -> StepActionEvent - 12, // 20: Dispatcher.SendGroupKeyActionEvent:input_type -> GroupKeyActionEvent - 20, // 21: Dispatcher.PutOverridesData:input_type -> OverridesData - 10, // 22: Dispatcher.Unsubscribe:input_type -> WorkerUnsubscribeRequest - 24, // 23: Dispatcher.RefreshTimeout:input_type -> RefreshTimeoutRequest - 26, // 24: Dispatcher.ReleaseSlot:input_type -> ReleaseSlotRequest - 7, // 25: Dispatcher.Register:output_type -> WorkerRegisterResponse - 8, // 26: Dispatcher.Listen:output_type -> AssignedAction - 8, // 27: Dispatcher.ListenV2:output_type -> AssignedAction - 23, // 28: Dispatcher.Heartbeat:output_type -> HeartbeatResponse - 17, // 29: Dispatcher.SubscribeToWorkflowEvents:output_type -> WorkflowEvent - 18, // 30: Dispatcher.SubscribeToWorkflowRuns:output_type -> WorkflowRunEvent - 14, // 31: Dispatcher.SendStepActionEvent:output_type -> ActionEventResponse - 14, // 32: Dispatcher.SendGroupKeyActionEvent:output_type -> ActionEventResponse - 21, // 33: Dispatcher.PutOverridesData:output_type -> OverridesDataResponse - 11, // 34: Dispatcher.Unsubscribe:output_type -> WorkerUnsubscribeResponse - 25, // 35: Dispatcher.RefreshTimeout:output_type -> RefreshTimeoutResponse - 27, // 36: Dispatcher.ReleaseSlot:output_type -> ReleaseSlotResponse - 25, // [25:37] is the sub-list for method output_type - 13, // [13:25] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name + 31, // 0: WorkerRegisterRequest.labels:type_name -> WorkerRegisterRequest.LabelsEntry + 32, // 1: UpsertWorkerLabelsRequest.labels:type_name -> UpsertWorkerLabelsRequest.LabelsEntry + 0, // 2: AssignedAction.actionType:type_name -> ActionType + 33, // 3: GroupKeyActionEvent.eventTimestamp:type_name -> google.protobuf.Timestamp + 1, // 4: GroupKeyActionEvent.eventType:type_name -> GroupKeyActionEventType + 33, // 5: StepActionEvent.eventTimestamp:type_name -> google.protobuf.Timestamp + 2, // 6: StepActionEvent.eventType:type_name -> StepActionEventType + 3, // 7: WorkflowEvent.resourceType:type_name -> ResourceType + 4, // 8: WorkflowEvent.eventType:type_name -> ResourceEventType + 33, // 9: WorkflowEvent.eventTimestamp:type_name -> google.protobuf.Timestamp + 5, // 10: WorkflowRunEvent.eventType:type_name -> WorkflowRunEventType + 33, // 11: WorkflowRunEvent.eventTimestamp:type_name -> google.protobuf.Timestamp + 22, // 12: WorkflowRunEvent.results:type_name -> StepRunResult + 33, // 13: HeartbeatRequest.heartbeatAt:type_name -> google.protobuf.Timestamp + 33, // 14: RefreshTimeoutResponse.timeoutAt:type_name -> google.protobuf.Timestamp + 6, // 15: WorkerRegisterRequest.LabelsEntry.value:type_name -> WorkerLabels + 6, // 16: UpsertWorkerLabelsRequest.LabelsEntry.value:type_name -> WorkerLabels + 7, // 17: Dispatcher.Register:input_type -> WorkerRegisterRequest + 12, // 18: Dispatcher.Listen:input_type -> WorkerListenRequest + 12, // 19: Dispatcher.ListenV2:input_type -> WorkerListenRequest + 25, // 20: Dispatcher.Heartbeat:input_type -> HeartbeatRequest + 18, // 21: Dispatcher.SubscribeToWorkflowEvents:input_type -> SubscribeToWorkflowEventsRequest + 19, // 22: Dispatcher.SubscribeToWorkflowRuns:input_type -> SubscribeToWorkflowRunsRequest + 16, // 23: Dispatcher.SendStepActionEvent:input_type -> StepActionEvent + 15, // 24: Dispatcher.SendGroupKeyActionEvent:input_type -> GroupKeyActionEvent + 23, // 25: Dispatcher.PutOverridesData:input_type -> OverridesData + 13, // 26: Dispatcher.Unsubscribe:input_type -> WorkerUnsubscribeRequest + 27, // 27: Dispatcher.RefreshTimeout:input_type -> RefreshTimeoutRequest + 29, // 28: Dispatcher.ReleaseSlot:input_type -> ReleaseSlotRequest + 9, // 29: Dispatcher.UpsertWorkerLabels:input_type -> UpsertWorkerLabelsRequest + 8, // 30: Dispatcher.Register:output_type -> WorkerRegisterResponse + 11, // 31: Dispatcher.Listen:output_type -> AssignedAction + 11, // 32: Dispatcher.ListenV2:output_type -> AssignedAction + 26, // 33: Dispatcher.Heartbeat:output_type -> HeartbeatResponse + 20, // 34: Dispatcher.SubscribeToWorkflowEvents:output_type -> WorkflowEvent + 21, // 35: Dispatcher.SubscribeToWorkflowRuns:output_type -> WorkflowRunEvent + 17, // 36: Dispatcher.SendStepActionEvent:output_type -> ActionEventResponse + 17, // 37: Dispatcher.SendGroupKeyActionEvent:output_type -> ActionEventResponse + 24, // 38: Dispatcher.PutOverridesData:output_type -> OverridesDataResponse + 14, // 39: Dispatcher.Unsubscribe:output_type -> WorkerUnsubscribeResponse + 28, // 40: Dispatcher.RefreshTimeout:output_type -> RefreshTimeoutResponse + 30, // 41: Dispatcher.ReleaseSlot:output_type -> ReleaseSlotResponse + 10, // 42: Dispatcher.UpsertWorkerLabels:output_type -> UpsertWorkerLabelsResponse + 30, // [30:43] is the sub-list for method output_type + 17, // [17:30] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name } func init() { file_dispatcher_proto_init() } @@ -2223,7 +2536,7 @@ func file_dispatcher_proto_init() { } if !protoimpl.UnsafeEnabled { file_dispatcher_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkerRegisterRequest); i { + switch v := v.(*WorkerLabels); i { case 0: return &v.state case 1: @@ -2235,7 +2548,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkerRegisterResponse); i { + switch v := v.(*WorkerRegisterRequest); i { case 0: return &v.state case 1: @@ -2247,7 +2560,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssignedAction); i { + switch v := v.(*WorkerRegisterResponse); i { case 0: return &v.state case 1: @@ -2259,7 +2572,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkerListenRequest); i { + switch v := v.(*UpsertWorkerLabelsRequest); i { case 0: return &v.state case 1: @@ -2271,7 +2584,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkerUnsubscribeRequest); i { + switch v := v.(*UpsertWorkerLabelsResponse); i { case 0: return &v.state case 1: @@ -2283,7 +2596,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkerUnsubscribeResponse); i { + switch v := v.(*AssignedAction); i { case 0: return &v.state case 1: @@ -2295,7 +2608,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupKeyActionEvent); i { + switch v := v.(*WorkerListenRequest); i { case 0: return &v.state case 1: @@ -2307,7 +2620,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StepActionEvent); i { + switch v := v.(*WorkerUnsubscribeRequest); i { case 0: return &v.state case 1: @@ -2319,7 +2632,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActionEventResponse); i { + switch v := v.(*WorkerUnsubscribeResponse); i { case 0: return &v.state case 1: @@ -2331,7 +2644,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubscribeToWorkflowEventsRequest); i { + switch v := v.(*GroupKeyActionEvent); i { case 0: return &v.state case 1: @@ -2343,7 +2656,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubscribeToWorkflowRunsRequest); i { + switch v := v.(*StepActionEvent); i { case 0: return &v.state case 1: @@ -2355,7 +2668,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowEvent); i { + switch v := v.(*ActionEventResponse); i { case 0: return &v.state case 1: @@ -2367,7 +2680,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowRunEvent); i { + switch v := v.(*SubscribeToWorkflowEventsRequest); i { case 0: return &v.state case 1: @@ -2379,7 +2692,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StepRunResult); i { + switch v := v.(*SubscribeToWorkflowRunsRequest); i { case 0: return &v.state case 1: @@ -2391,7 +2704,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OverridesData); i { + switch v := v.(*WorkflowEvent); i { case 0: return &v.state case 1: @@ -2403,7 +2716,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OverridesDataResponse); i { + switch v := v.(*WorkflowRunEvent); i { case 0: return &v.state case 1: @@ -2415,7 +2728,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HeartbeatRequest); i { + switch v := v.(*StepRunResult); i { case 0: return &v.state case 1: @@ -2427,7 +2740,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HeartbeatResponse); i { + switch v := v.(*OverridesData); i { case 0: return &v.state case 1: @@ -2439,7 +2752,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RefreshTimeoutRequest); i { + switch v := v.(*OverridesDataResponse); i { case 0: return &v.state case 1: @@ -2451,7 +2764,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RefreshTimeoutResponse); i { + switch v := v.(*HeartbeatRequest); i { case 0: return &v.state case 1: @@ -2463,7 +2776,7 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReleaseSlotRequest); i { + switch v := v.(*HeartbeatResponse); i { case 0: return &v.state case 1: @@ -2475,6 +2788,42 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshTimeoutRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dispatcher_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshTimeoutResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dispatcher_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReleaseSlotRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dispatcher_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReleaseSlotResponse); i { case 0: return &v.state @@ -2488,15 +2837,18 @@ func file_dispatcher_proto_init() { } } file_dispatcher_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_dispatcher_proto_msgTypes[11].OneofWrappers = []interface{}{} - file_dispatcher_proto_msgTypes[13].OneofWrappers = []interface{}{} + file_dispatcher_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_dispatcher_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_dispatcher_proto_msgTypes[12].OneofWrappers = []interface{}{} + file_dispatcher_proto_msgTypes[14].OneofWrappers = []interface{}{} + file_dispatcher_proto_msgTypes[16].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_dispatcher_proto_rawDesc, NumEnums: 6, - NumMessages: 22, + NumMessages: 27, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/services/dispatcher/contracts/dispatcher_grpc.pb.go b/internal/services/dispatcher/contracts/dispatcher_grpc.pb.go index 39c1b4d4a..b3d10d528 100644 --- a/internal/services/dispatcher/contracts/dispatcher_grpc.pb.go +++ b/internal/services/dispatcher/contracts/dispatcher_grpc.pb.go @@ -37,6 +37,7 @@ type DispatcherClient interface { Unsubscribe(ctx context.Context, in *WorkerUnsubscribeRequest, opts ...grpc.CallOption) (*WorkerUnsubscribeResponse, error) RefreshTimeout(ctx context.Context, in *RefreshTimeoutRequest, opts ...grpc.CallOption) (*RefreshTimeoutResponse, error) ReleaseSlot(ctx context.Context, in *ReleaseSlotRequest, opts ...grpc.CallOption) (*ReleaseSlotResponse, error) + UpsertWorkerLabels(ctx context.Context, in *UpsertWorkerLabelsRequest, opts ...grpc.CallOption) (*UpsertWorkerLabelsResponse, error) } type dispatcherClient struct { @@ -246,6 +247,15 @@ func (c *dispatcherClient) ReleaseSlot(ctx context.Context, in *ReleaseSlotReque return out, nil } +func (c *dispatcherClient) UpsertWorkerLabels(ctx context.Context, in *UpsertWorkerLabelsRequest, opts ...grpc.CallOption) (*UpsertWorkerLabelsResponse, error) { + out := new(UpsertWorkerLabelsResponse) + err := c.cc.Invoke(ctx, "/Dispatcher/UpsertWorkerLabels", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // DispatcherServer is the server API for Dispatcher service. // All implementations must embed UnimplementedDispatcherServer // for forward compatibility @@ -265,6 +275,7 @@ type DispatcherServer interface { Unsubscribe(context.Context, *WorkerUnsubscribeRequest) (*WorkerUnsubscribeResponse, error) RefreshTimeout(context.Context, *RefreshTimeoutRequest) (*RefreshTimeoutResponse, error) ReleaseSlot(context.Context, *ReleaseSlotRequest) (*ReleaseSlotResponse, error) + UpsertWorkerLabels(context.Context, *UpsertWorkerLabelsRequest) (*UpsertWorkerLabelsResponse, error) mustEmbedUnimplementedDispatcherServer() } @@ -308,6 +319,9 @@ func (UnimplementedDispatcherServer) RefreshTimeout(context.Context, *RefreshTim func (UnimplementedDispatcherServer) ReleaseSlot(context.Context, *ReleaseSlotRequest) (*ReleaseSlotResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ReleaseSlot not implemented") } +func (UnimplementedDispatcherServer) UpsertWorkerLabels(context.Context, *UpsertWorkerLabelsRequest) (*UpsertWorkerLabelsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpsertWorkerLabels not implemented") +} func (UnimplementedDispatcherServer) mustEmbedUnimplementedDispatcherServer() {} // UnsafeDispatcherServer may be embedded to opt out of forward compatibility for this service. @@ -554,6 +568,24 @@ func _Dispatcher_ReleaseSlot_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +func _Dispatcher_UpsertWorkerLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpsertWorkerLabelsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DispatcherServer).UpsertWorkerLabels(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/Dispatcher/UpsertWorkerLabels", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DispatcherServer).UpsertWorkerLabels(ctx, req.(*UpsertWorkerLabelsRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Dispatcher_ServiceDesc is the grpc.ServiceDesc for Dispatcher service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -593,6 +625,10 @@ var Dispatcher_ServiceDesc = grpc.ServiceDesc{ MethodName: "ReleaseSlot", Handler: _Dispatcher_ReleaseSlot_Handler, }, + { + MethodName: "UpsertWorkerLabels", + Handler: _Dispatcher_UpsertWorkerLabels_Handler, + }, }, Streams: []grpc.StreamDesc{ { diff --git a/internal/services/dispatcher/dispatcher.go b/internal/services/dispatcher/dispatcher.go index e822fdd40..e31db004e 100644 --- a/internal/services/dispatcher/dispatcher.go +++ b/internal/services/dispatcher/dispatcher.go @@ -21,6 +21,8 @@ import ( "github.com/hatchet-dev/hatchet/internal/telemetry/servertel" "github.com/hatchet-dev/hatchet/pkg/logger" "github.com/hatchet-dev/hatchet/pkg/repository" + "github.com/hatchet-dev/hatchet/pkg/repository/cache" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" "github.com/hatchet-dev/hatchet/pkg/validator" @@ -35,12 +37,13 @@ type Dispatcher interface { type DispatcherImpl struct { contracts.UnimplementedDispatcherServer - s gocron.Scheduler - mq msgqueue.MessageQueue - l *zerolog.Logger - dv datautils.DataDecoderValidator - v validator.Validator - repo repository.EngineRepository + s gocron.Scheduler + mq msgqueue.MessageQueue + l *zerolog.Logger + dv datautils.DataDecoderValidator + v validator.Validator + repo repository.EngineRepository + cache cache.Cacheable entitlements repository.EntitlementsRepository @@ -120,6 +123,7 @@ type DispatcherOpts struct { entitlements repository.EntitlementsRepository dispatcherId string alerter hatcheterrors.Alerter + cache cache.Cacheable } func defaultDispatcherOpts() *DispatcherOpts { @@ -176,6 +180,12 @@ func WithDispatcherId(dispatcherId string) DispatcherOpt { } } +func WithCache(cache cache.Cacheable) DispatcherOpt { + return func(opts *DispatcherOpts) { + opts.cache = cache + } +} + func New(fs ...DispatcherOpt) (*DispatcherImpl, error) { opts := defaultDispatcherOpts() @@ -195,6 +205,10 @@ func New(fs ...DispatcherOpt) (*DispatcherImpl, error) { return nil, fmt.Errorf("entitlements repository is required. use WithEntitlementsRepository") } + if opts.cache == nil { + return nil, fmt.Errorf("cache is required. use WithCache") + } + newLogger := opts.l.With().Str("service", "dispatcher").Logger() opts.l = &newLogger @@ -219,6 +233,7 @@ func New(fs ...DispatcherOpt) (*DispatcherImpl, error) { workers: &workers{}, s: s, a: a, + cache: opts.cache, }, nil } @@ -437,6 +452,11 @@ func (d *DispatcherImpl) handleStepRunAssignedTask(ctx context.Context, task *ms return fmt.Errorf("could not get worker: %w", err) } + if len(workers) == 0 { + d.l.Warn().Msgf("worker %s not found, ignoring task for step run %s", payload.WorkerId, payload.StepRunId) + return nil + } + // load the step run from the database stepRun, err := d.repo.StepRun().GetStepRunForEngine(ctx, metadata.TenantId, payload.StepRunId) @@ -444,16 +464,22 @@ func (d *DispatcherImpl) handleStepRunAssignedTask(ctx context.Context, task *ms return fmt.Errorf("could not get step run: %w", err) } + data, err := d.repo.StepRun().GetStepRunDataForEngine(ctx, metadata.TenantId, payload.StepRunId) + + if err != nil { + return fmt.Errorf("could not get step run data: %w", err) + } + servertel.WithStepRunModel(span, stepRun) var multiErr error var success bool - for _, w := range workers { - err = w.StartStepRun(ctx, metadata.TenantId, stepRun) + for i, w := range workers { + err = w.StartStepRun(ctx, metadata.TenantId, stepRun, data) if err != nil { - multiErr = multierror.Append(multiErr, fmt.Errorf("could not send step action to worker: %w", err)) + multiErr = multierror.Append(multiErr, fmt.Errorf("could not send step action to worker (%d): %w", i, err)) } else { success = true } @@ -463,6 +489,21 @@ func (d *DispatcherImpl) handleStepRunAssignedTask(ctx context.Context, task *ms return nil } + defer d.repo.StepRun().DeferredStepRunEvent( + stepRun.SRID, + dbsqlc.StepRunEventReasonREASSIGNED, + dbsqlc.StepRunEventSeverityWARNING, + "Could not send step run to assigned worker", + nil, + ) + + // we were unable to send the step run to any worker, revert the step run to pending assignment + err = d.repo.StepRun().UnassignStepRunFromWorker(ctx, metadata.TenantId, sqlchelpers.UUIDToStr(stepRun.SRID)) + + if err != nil { + multiErr = multierror.Append(multiErr, fmt.Errorf("💥 could not revert step run: %w", err)) + } + return multiErr } diff --git a/internal/services/dispatcher/server.go b/internal/services/dispatcher/server.go index 8a1418acb..2c594f867 100644 --- a/internal/services/dispatcher/server.go +++ b/internal/services/dispatcher/server.go @@ -2,6 +2,8 @@ package dispatcher import ( "context" + "crypto/sha256" + "encoding/base64" "encoding/json" "errors" "fmt" @@ -11,6 +13,7 @@ import ( "time" "github.com/google/uuid" + "github.com/jackc/pgx/v5/pgtype" "github.com/rs/zerolog" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -22,6 +25,7 @@ import ( "github.com/hatchet-dev/hatchet/internal/services/shared/tasktypes" "github.com/hatchet-dev/hatchet/internal/telemetry" "github.com/hatchet-dev/hatchet/pkg/repository" + "github.com/hatchet-dev/hatchet/pkg/repository/cache" "github.com/hatchet-dev/hatchet/pkg/repository/metered" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" @@ -39,32 +43,53 @@ func (worker *subscribedWorker) StartStepRun( ctx context.Context, tenantId string, stepRun *dbsqlc.GetStepRunForEngineRow, + stepRunData *dbsqlc.GetStepRunDataForEngineRow, ) error { ctx, span := telemetry.NewSpan(ctx, "start-step-run") // nolint:ineffassign defer span.End() inputBytes := []byte{} - if stepRun.StepRun.Input != nil { - inputBytes = stepRun.StepRun.Input + if stepRunData.Input != nil { + inputBytes = stepRunData.Input } stepName := stepRun.StepReadableId.String - return worker.stream.Send(&contracts.AssignedAction{ + action := &contracts.AssignedAction{ TenantId: tenantId, JobId: sqlchelpers.UUIDToStr(stepRun.JobId), JobName: stepRun.JobName, JobRunId: sqlchelpers.UUIDToStr(stepRun.JobRunId), StepId: sqlchelpers.UUIDToStr(stepRun.StepId), - StepRunId: sqlchelpers.UUIDToStr(stepRun.StepRun.ID), + StepRunId: sqlchelpers.UUIDToStr(stepRun.SRID), ActionType: contracts.ActionType_START_STEP_RUN, ActionId: stepRun.ActionId, ActionPayload: string(inputBytes), StepName: stepName, WorkflowRunId: sqlchelpers.UUIDToStr(stepRun.WorkflowRunId), - RetryCount: stepRun.StepRun.RetryCount, - }) + RetryCount: stepRun.SRRetryCount, + } + + if stepRunData.AdditionalMetadata != nil { + metadataStr := string(stepRunData.AdditionalMetadata) + action.AdditionalMetadata = &metadataStr + } + + if stepRunData.ChildIndex.Valid { + action.ChildWorkflowIndex = &stepRunData.ChildIndex.Int32 + } + + if stepRunData.ChildKey.Valid { + action.ChildWorkflowKey = &stepRunData.ChildKey.String + } + + if stepRunData.ParentId.Valid { + parentId := sqlchelpers.UUIDToStr(stepRunData.ParentId) + action.ParentWorkflowRunId = &parentId + } + + return worker.stream.Send(action) } func (worker *subscribedWorker) StartGroupKeyAction( @@ -103,11 +128,11 @@ func (worker *subscribedWorker) CancelStepRun( JobName: stepRun.JobName, JobRunId: sqlchelpers.UUIDToStr(stepRun.JobRunId), StepId: sqlchelpers.UUIDToStr(stepRun.StepId), - StepRunId: sqlchelpers.UUIDToStr(stepRun.StepRun.ID), + StepRunId: sqlchelpers.UUIDToStr(stepRun.SRID), ActionType: contracts.ActionType_CANCEL_STEP_RUN, StepName: stepRun.StepReadableId.String, WorkflowRunId: sqlchelpers.UUIDToStr(stepRun.WorkflowRunId), - RetryCount: stepRun.StepRun.RetryCount, + RetryCount: stepRun.SRRetryCount, }) } @@ -155,7 +180,13 @@ func (s *DispatcherImpl) Register(ctx context.Context, request *contracts.Worker workerId := sqlchelpers.UUIDToStr(worker.ID) - s.l.Debug().Msgf("Registered worker with ID: %s", workerId) + if request.Labels != nil { + _, err = s.upsertLabels(ctx, worker.ID, request.Labels) + + if err != nil { + return nil, err + } + } // return the worker id to the worker return &contracts.WorkerRegisterResponse{ @@ -165,6 +196,49 @@ func (s *DispatcherImpl) Register(ctx context.Context, request *contracts.Worker }, nil } +func (s *DispatcherImpl) UpsertWorkerLabels(ctx context.Context, request *contracts.UpsertWorkerLabelsRequest) (*contracts.UpsertWorkerLabelsResponse, error) { + tenant := ctx.Value("tenant").(*dbsqlc.Tenant) + + _, err := s.upsertLabels(ctx, sqlchelpers.UUIDFromStr(request.WorkerId), request.Labels) + + if err != nil { + return nil, err + } + + return &contracts.UpsertWorkerLabelsResponse{ + TenantId: sqlchelpers.UUIDToStr(tenant.ID), + WorkerId: request.WorkerId, + }, nil +} + +func (s *DispatcherImpl) upsertLabels(ctx context.Context, workerId pgtype.UUID, request map[string]*contracts.WorkerLabels) ([]*dbsqlc.WorkerLabel, error) { + affinities := make([]repository.UpsertWorkerLabelOpts, 0, len(request)) + + for key, config := range request { + + err := s.v.Validate(config) + + if err != nil { + return nil, status.Errorf(codes.InvalidArgument, "Invalid affinity config: %s", err.Error()) + } + + affinities = append(affinities, repository.UpsertWorkerLabelOpts{ + Key: key, + IntValue: config.IntValue, + StrValue: config.StrValue, + }) + } + + res, err := s.repo.Worker().UpsertWorkerLabels(ctx, workerId, affinities) + + if err != nil { + s.l.Error().Err(err).Msgf("could not upsert worker affinities for worker %s", sqlchelpers.UUIDToStr(workerId)) + return nil, err + } + + return res, nil +} + // Subscribe handles a subscribe request from a client func (s *DispatcherImpl) Listen(request *contracts.WorkerListenRequest, stream contracts.Dispatcher_ListenServer) error { tenant := stream.Context().Value("tenant").(*dbsqlc.Tenant) @@ -296,7 +370,13 @@ func (s *DispatcherImpl) ListenV2(request *contracts.WorkerListenRequest, stream _, err = s.repo.Worker().UpdateWorkerActiveStatus(ctx, tenantId, request.WorkerId, true, sessionEstablished) if err != nil { - s.l.Error().Err(err).Msgf("could not update worker %s active status", request.WorkerId) + lastSessionEstablished := "NULL" + + if worker.LastListenerEstablished.Valid { + lastSessionEstablished = worker.LastListenerEstablished.Time.String() + } + + s.l.Error().Err(err).Msgf("could not update worker %s active status to true (session established %s, last session established %s)", request.WorkerId, sessionEstablished.String(), lastSessionEstablished) return err } @@ -323,7 +403,7 @@ func (s *DispatcherImpl) ListenV2(request *contracts.WorkerListenRequest, stream _, err = s.repo.Worker().UpdateWorkerActiveStatus(ctx, tenantId, request.WorkerId, false, sessionEstablished) if err != nil { - s.l.Error().Err(err).Msgf("could not update worker %s active status", request.WorkerId) + s.l.Error().Err(err).Msgf("could not update worker %s active status to false due to worker stream closing (session established %s)", request.WorkerId, sessionEstablished.String()) return err } @@ -337,7 +417,7 @@ func (s *DispatcherImpl) ListenV2(request *contracts.WorkerListenRequest, stream _, err = s.repo.Worker().UpdateWorkerActiveStatus(ctx, tenantId, request.WorkerId, false, sessionEstablished) if err != nil { - s.l.Error().Err(err).Msgf("could not update worker %s active status", request.WorkerId) + s.l.Error().Err(err).Msgf("could not update worker %s active status due to worker disconnecting (session established %s)", request.WorkerId, sessionEstablished.String()) return err } @@ -407,12 +487,118 @@ func (s *DispatcherImpl) ReleaseSlot(ctx context.Context, req *contracts.Release return &contracts.ReleaseSlotResponse{}, nil } -// SubscribeToWorkflowEvents registers workflow events with the dispatcher func (s *DispatcherImpl) SubscribeToWorkflowEvents(request *contracts.SubscribeToWorkflowEventsRequest, stream contracts.Dispatcher_SubscribeToWorkflowEventsServer) error { + + fmt.Println("SubscribeToWorkflowEvents") + fmt.Println(request) + + if request.WorkflowRunId != nil { + return s.subscribeToWorkflowEventsByWorkflowRunId(*request.WorkflowRunId, stream) + } else if request.AdditionalMetaKey != nil && request.AdditionalMetaValue != nil { + return s.subscribeToWorkflowEventsByAdditionalMeta(*request.AdditionalMetaKey, *request.AdditionalMetaValue, stream) + } + + return status.Errorf(codes.InvalidArgument, "either workflow run id or additional meta key-value must be provided") +} + +// SubscribeToWorkflowEvents registers workflow events with the dispatcher +func (s *DispatcherImpl) subscribeToWorkflowEventsByAdditionalMeta(key string, value string, stream contracts.Dispatcher_SubscribeToWorkflowEventsServer) error { tenant := stream.Context().Value("tenant").(*dbsqlc.Tenant) tenantId := sqlchelpers.UUIDToStr(tenant.ID) - s.l.Debug().Msgf("Received subscribe request for workflow: %s", request.WorkflowRunId) + s.l.Error().Msgf("Received subscribe request for additional meta key-value: {%s: %s}", key, value) + + q, err := msgqueue.TenantEventConsumerQueue(tenantId) + if err != nil { + return err + } + + ctx, cancel := context.WithCancel(stream.Context()) + defer cancel() + + wg := sync.WaitGroup{} + + // Keep track of active workflow run IDs + activeRunIds := make(map[string]struct{}) + var mu sync.Mutex // Mutex to protect activeRunIds + + f := func(task *msgqueue.Message) error { + wg.Add(1) + defer wg.Done() + + e, err := s.tenantTaskToWorkflowEventByAdditionalMeta( + task, tenantId, key, value, + func(e *contracts.WorkflowEvent) (bool, error) { + mu.Lock() + defer mu.Unlock() + + if e.WorkflowRunId == "" { + return false, nil + } + + if e.ResourceType != contracts.ResourceType_RESOURCE_TYPE_WORKFLOW_RUN && + e.EventType != contracts.ResourceEventType_RESOURCE_EVENT_TYPE_COMPLETED { + // Add the run ID to active runs + activeRunIds[e.WorkflowRunId] = struct{}{} + } else { + // Remove the completed run from active runs + delete(activeRunIds, e.WorkflowRunId) + } + + // Only return true to hang up if we've seen at least one run and all runs are completed + if len(activeRunIds) == 0 { + return true, nil + } + + return false, nil + }) + + if err != nil { + s.l.Error().Err(err).Msgf("could not convert task to workflow event") + return nil + } else if e == nil { + return nil + } + + // send the task to the client + err = stream.Send(e) + + if err != nil { + cancel() // FIXME is this necessary? + s.l.Error().Err(err).Msgf("could not send workflow event to client") + return nil + } + + if e.Hangup { + cancel() + } + + return nil + } + + // subscribe to the task queue for the tenant + cleanupQueue, err := s.mq.Subscribe(q, msgqueue.NoOpHook, f) + + if err != nil { + return err + } + + <-ctx.Done() + if err := cleanupQueue(); err != nil { + return fmt.Errorf("could not cleanup queue: %w", err) + } + + waitFor(&wg, 60*time.Second, s.l) + + return nil +} + +// SubscribeToWorkflowEvents registers workflow events with the dispatcher +func (s *DispatcherImpl) subscribeToWorkflowEventsByWorkflowRunId(workflowRunId string, stream contracts.Dispatcher_SubscribeToWorkflowEventsServer) error { + tenant := stream.Context().Value("tenant").(*dbsqlc.Tenant) + tenantId := sqlchelpers.UUIDToStr(tenant.ID) + + s.l.Debug().Msgf("Received subscribe request for workflow: %s", workflowRunId) q, err := msgqueue.TenantEventConsumerQueue(tenantId) @@ -424,11 +610,11 @@ func (s *DispatcherImpl) SubscribeToWorkflowEvents(request *contracts.SubscribeT defer cancel() // if the workflow run is in a final state, hang up the connection - workflowRun, err := s.repo.WorkflowRun().GetWorkflowRunById(ctx, tenantId, request.WorkflowRunId) + workflowRun, err := s.repo.WorkflowRun().GetWorkflowRunById(ctx, tenantId, workflowRunId) if err != nil { if errors.Is(err, repository.ErrWorkflowRunNotFound) { - return status.Errorf(codes.NotFound, "workflow run %s not found", request.WorkflowRunId) + return status.Errorf(codes.NotFound, "workflow run %s not found", workflowRunId) } return err @@ -444,7 +630,7 @@ func (s *DispatcherImpl) SubscribeToWorkflowEvents(request *contracts.SubscribeT wg.Add(1) defer wg.Done() - e, err := s.tenantTaskToWorkflowEvent(task, tenantId, request.WorkflowRunId) + e, err := s.tenantTaskToWorkflowEventByRunId(task, tenantId, workflowRunId) if err != nil { s.l.Error().Err(err).Msgf("could not convert task to workflow event") @@ -628,6 +814,11 @@ func (s *DispatcherImpl) SubscribeToWorkflowRuns(server contracts.Dispatcher_Sub return } + if _, parseErr := uuid.Parse(req.WorkflowRunId); parseErr != nil { + s.l.Warn().Err(parseErr).Msg("invalid workflow run id") + continue + } + acks.addWorkflowRun(req.WorkflowRunId) if immediateSendFilter.canSend() { @@ -819,9 +1010,18 @@ func (s *DispatcherImpl) handleStepRunStarted(ctx context.Context, request *cont startedAt := request.EventTimestamp.AsTime() + sr, err := s.repo.StepRun().GetStepRunForEngine(ctx, tenantId, request.StepRunId) + + if err != nil { + return nil, err + } + payload, _ := datautils.ToJSONMap(tasktypes.StepRunStartedTaskPayload{ - StepRunId: request.StepRunId, - StartedAt: startedAt.Format(time.RFC3339), + StepRunId: request.StepRunId, + StartedAt: startedAt.Format(time.RFC3339), + WorkflowRunId: sqlchelpers.UUIDToStr(sr.WorkflowRunId), + StepRetries: &sr.StepRetries, + RetryCount: &sr.SRRetryCount, }) metadata, _ := datautils.ToJSONMap(tasktypes.StepRunStartedTaskMetadata{ @@ -829,7 +1029,7 @@ func (s *DispatcherImpl) handleStepRunStarted(ctx context.Context, request *cont }) // send the event to the jobs queue - err := s.mq.AddMessage(ctx, msgqueue.JOB_PROCESSING_QUEUE, &msgqueue.Message{ + err = s.mq.AddMessage(ctx, msgqueue.JOB_PROCESSING_QUEUE, &msgqueue.Message{ ID: "step-run-started", Payload: payload, Metadata: metadata, @@ -873,10 +1073,19 @@ func (s *DispatcherImpl) handleStepRunCompleted(ctx context.Context, request *co finishedAt := request.EventTimestamp.AsTime() + meta, err := s.repo.StepRun().GetStepRunMetaForEngine(ctx, tenantId, request.StepRunId) + + if err != nil { + return nil, err + } + payload, _ := datautils.ToJSONMap(tasktypes.StepRunFinishedTaskPayload{ + WorkflowRunId: sqlchelpers.UUIDToStr(meta.WorkflowRunId), StepRunId: request.StepRunId, FinishedAt: finishedAt.Format(time.RFC3339), StepOutputData: request.EventPayload, + StepRetries: &meta.Retries, + RetryCount: &meta.RetryCount, }) metadata, _ := datautils.ToJSONMap(tasktypes.StepRunFinishedTaskMetadata{ @@ -884,7 +1093,7 @@ func (s *DispatcherImpl) handleStepRunCompleted(ctx context.Context, request *co }) // send the event to the jobs queue - err := s.mq.AddMessage(ctx, msgqueue.JOB_PROCESSING_QUEUE, &msgqueue.Message{ + err = s.mq.AddMessage(ctx, msgqueue.JOB_PROCESSING_QUEUE, &msgqueue.Message{ ID: "step-run-finished", Payload: payload, Metadata: metadata, @@ -909,10 +1118,19 @@ func (s *DispatcherImpl) handleStepRunFailed(ctx context.Context, request *contr failedAt := request.EventTimestamp.AsTime() + meta, err := s.repo.StepRun().GetStepRunMetaForEngine(ctx, tenantId, request.StepRunId) + + if err != nil { + return nil, err + } + payload, _ := datautils.ToJSONMap(tasktypes.StepRunFailedTaskPayload{ - StepRunId: request.StepRunId, - FailedAt: failedAt.Format(time.RFC3339), - Error: request.EventPayload, + WorkflowRunId: sqlchelpers.UUIDToStr(meta.WorkflowRunId), + StepRunId: request.StepRunId, + FailedAt: failedAt.Format(time.RFC3339), + Error: request.EventPayload, + StepRetries: &meta.Retries, + RetryCount: &meta.RetryCount, }) metadata, _ := datautils.ToJSONMap(tasktypes.StepRunFailedTaskMetadata{ @@ -920,7 +1138,7 @@ func (s *DispatcherImpl) handleStepRunFailed(ctx context.Context, request *contr }) // send the event to the jobs queue - err := s.mq.AddMessage(ctx, msgqueue.JOB_PROCESSING_QUEUE, &msgqueue.Message{ + err = s.mq.AddMessage(ctx, msgqueue.JOB_PROCESSING_QUEUE, &msgqueue.Message{ ID: "step-run-failed", Payload: payload, Metadata: metadata, @@ -1044,68 +1262,143 @@ func (s *DispatcherImpl) handleGetGroupKeyRunFailed(ctx context.Context, request }, nil } -func (s *DispatcherImpl) tenantTaskToWorkflowEvent(task *msgqueue.Message, tenantId string, workflowRunIds ...string) (*contracts.WorkflowEvent, error) { +func UnmarshalPayload[T any](payload interface{}) (T, error) { + var result T + + // Convert the payload to JSON + jsonData, err := json.Marshal(payload) + if err != nil { + return result, fmt.Errorf("failed to marshal payload: %w", err) + } + + // Unmarshal JSON into the desired type + err = json.Unmarshal(jsonData, &result) + if err != nil { + return result, fmt.Errorf("failed to unmarshal payload: %w", err) + } + + return result, nil +} + +func (s *DispatcherImpl) taskToWorkflowEvent(task *msgqueue.Message, tenantId string, filter func(task *contracts.WorkflowEvent) (*bool, error), hangupFunc func(task *contracts.WorkflowEvent) (bool, error)) (*contracts.WorkflowEvent, error) { workflowEvent := &contracts.WorkflowEvent{} var stepRunId string switch task.ID { case "step-run-started": - stepRunId = task.Payload["step_run_id"].(string) + payload, err := UnmarshalPayload[tasktypes.StepRunStartedTaskPayload](task.Payload) + if err != nil { + return nil, err + } + workflowEvent.WorkflowRunId = payload.WorkflowRunId workflowEvent.ResourceType = contracts.ResourceType_RESOURCE_TYPE_STEP_RUN workflowEvent.ResourceId = stepRunId workflowEvent.EventType = contracts.ResourceEventType_RESOURCE_EVENT_TYPE_STARTED + workflowEvent.StepRetries = payload.StepRetries + workflowEvent.RetryCount = payload.RetryCount case "step-run-finished": + payload, err := UnmarshalPayload[tasktypes.StepRunFinishedTaskPayload](task.Payload) + if err != nil { + return nil, err + } + workflowEvent.WorkflowRunId = payload.WorkflowRunId stepRunId = task.Payload["step_run_id"].(string) workflowEvent.ResourceType = contracts.ResourceType_RESOURCE_TYPE_STEP_RUN workflowEvent.ResourceId = stepRunId workflowEvent.EventType = contracts.ResourceEventType_RESOURCE_EVENT_TYPE_COMPLETED - workflowEvent.EventPayload = task.Payload["step_output_data"].(string) + workflowEvent.EventPayload = payload.StepOutputData + + workflowEvent.StepRetries = payload.StepRetries + workflowEvent.RetryCount = payload.RetryCount case "step-run-failed": - stepRunId = task.Payload["step_run_id"].(string) + payload, err := UnmarshalPayload[tasktypes.StepRunFailedTaskPayload](task.Payload) + if err != nil { + return nil, err + } + workflowEvent.WorkflowRunId = payload.WorkflowRunId + stepRunId = payload.StepRunId workflowEvent.ResourceType = contracts.ResourceType_RESOURCE_TYPE_STEP_RUN workflowEvent.ResourceId = stepRunId workflowEvent.EventType = contracts.ResourceEventType_RESOURCE_EVENT_TYPE_FAILED - workflowEvent.EventPayload = task.Payload["error"].(string) + workflowEvent.EventPayload = payload.Error + + workflowEvent.StepRetries = payload.StepRetries + workflowEvent.RetryCount = payload.RetryCount case "step-run-cancelled": - stepRunId = task.Payload["step_run_id"].(string) + payload, err := UnmarshalPayload[tasktypes.StepRunCancelledTaskPayload](task.Payload) + if err != nil { + return nil, err + } + workflowEvent.WorkflowRunId = payload.WorkflowRunId + stepRunId = payload.StepRunId workflowEvent.ResourceType = contracts.ResourceType_RESOURCE_TYPE_STEP_RUN workflowEvent.ResourceId = stepRunId workflowEvent.EventType = contracts.ResourceEventType_RESOURCE_EVENT_TYPE_CANCELLED + + workflowEvent.StepRetries = payload.StepRetries + workflowEvent.RetryCount = payload.RetryCount case "step-run-timed-out": - stepRunId = task.Payload["step_run_id"].(string) + payload, err := UnmarshalPayload[tasktypes.StepRunTimedOutTaskPayload](task.Payload) + if err != nil { + return nil, err + } + workflowEvent.WorkflowRunId = payload.WorkflowRunId + stepRunId = payload.StepRunId workflowEvent.ResourceType = contracts.ResourceType_RESOURCE_TYPE_STEP_RUN workflowEvent.ResourceId = stepRunId workflowEvent.EventType = contracts.ResourceEventType_RESOURCE_EVENT_TYPE_TIMED_OUT + + workflowEvent.StepRetries = payload.StepRetries + workflowEvent.RetryCount = payload.RetryCount case "step-run-stream-event": - stepRunId = task.Payload["step_run_id"].(string) + payload, err := UnmarshalPayload[tasktypes.StepRunStreamEventTaskPayload](task.Payload) + if err != nil { + return nil, err + } + workflowEvent.WorkflowRunId = payload.WorkflowRunId + stepRunId = payload.StepRunId workflowEvent.ResourceType = contracts.ResourceType_RESOURCE_TYPE_STEP_RUN workflowEvent.ResourceId = stepRunId workflowEvent.EventType = contracts.ResourceEventType_RESOURCE_EVENT_TYPE_STREAM + + workflowEvent.StepRetries = payload.StepRetries + workflowEvent.RetryCount = payload.RetryCount case "workflow-run-finished": - workflowRunId := task.Payload["workflow_run_id"].(string) + payload, err := UnmarshalPayload[tasktypes.WorkflowRunFinishedTask](task.Payload) + if err != nil { + return nil, err + } + workflowRunId := payload.WorkflowRunId workflowEvent.ResourceType = contracts.ResourceType_RESOURCE_TYPE_WORKFLOW_RUN workflowEvent.ResourceId = workflowRunId + workflowEvent.WorkflowRunId = workflowRunId workflowEvent.EventType = contracts.ResourceEventType_RESOURCE_EVENT_TYPE_COMPLETED - workflowEvent.Hangup = true } - if workflowEvent.ResourceType == contracts.ResourceType_RESOURCE_TYPE_STEP_RUN { - // determine if this step run matches the workflow run id - stepRun, err := s.repo.StepRun().GetStepRunForEngine(context.Background(), tenantId, stepRunId) + match, err := filter(workflowEvent) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - if !contains(workflowRunIds, sqlchelpers.UUIDToStr(stepRun.WorkflowRunId)) { - // this is an expected error, so we don't return it - return nil, nil - } + if match != nil && !*match { + // if not a match, we don't return it + return nil, nil + } + + hangup, err := hangupFunc(workflowEvent) + + if err != nil { + return nil, err + } - workflowEvent.StepRetries = &stepRun.StepRetries - workflowEvent.RetryCount = &stepRun.StepRun.RetryCount + if hangup { + workflowEvent.Hangup = true + return workflowEvent, nil + } + if workflowEvent.ResourceType == contracts.ResourceType_RESOURCE_TYPE_STEP_RUN { if workflowEvent.EventType == contracts.ResourceEventType_RESOURCE_EVENT_TYPE_STREAM { streamEventId, err := strconv.ParseInt(task.Metadata["stream_event_id"].(string), 10, 64) if err != nil { @@ -1120,13 +1413,96 @@ func (s *DispatcherImpl) tenantTaskToWorkflowEvent(task *msgqueue.Message, tenan workflowEvent.EventPayload = string(streamEvent.Message) } + } - } else if workflowEvent.ResourceType == contracts.ResourceType_RESOURCE_TYPE_WORKFLOW_RUN { - if !contains(workflowRunIds, workflowEvent.ResourceId) { - return nil, nil - } + return workflowEvent, nil +} - workflowEvent.Hangup = true +func (s *DispatcherImpl) tenantTaskToWorkflowEventByRunId(task *msgqueue.Message, tenantId string, workflowRunIds ...string) (*contracts.WorkflowEvent, error) { + + workflowEvent, err := s.taskToWorkflowEvent(task, tenantId, + func(e *contracts.WorkflowEvent) (*bool, error) { + hit := contains(workflowRunIds, e.WorkflowRunId) + return &hit, nil + }, + func(e *contracts.WorkflowEvent) (bool, error) { + // hangup on complete + return e.ResourceType == contracts.ResourceType_RESOURCE_TYPE_WORKFLOW_RUN && + e.EventType == contracts.ResourceEventType_RESOURCE_EVENT_TYPE_COMPLETED, nil + }, + ) + + if err != nil { + return nil, err + } + + return workflowEvent, nil +} + +func tinyHash(key, value string) string { + // Combine key and value + combined := fmt.Sprintf("%s:%s", key, value) + + // Create SHA-256 hash + hash := sha256.Sum256([]byte(combined)) + + // Take first 8 bytes of the hash + shortHash := hash[:8] + + // Encode to base64 + encoded := base64.URLEncoding.EncodeToString(shortHash) + + // Remove padding + return encoded[:11] +} + +func (s *DispatcherImpl) tenantTaskToWorkflowEventByAdditionalMeta(task *msgqueue.Message, tenantId string, key string, value string, hangup func(e *contracts.WorkflowEvent) (bool, error)) (*contracts.WorkflowEvent, error) { + workflowEvent, err := s.taskToWorkflowEvent( + task, + tenantId, + func(e *contracts.WorkflowEvent) (*bool, error) { + return cache.MakeCacheable[bool]( + s.cache, + fmt.Sprintf("wfram-%s-%s-%s", tenantId, e.WorkflowRunId, tinyHash(key, value)), + func() (*bool, error) { + + if e.WorkflowRunId == "" { + return nil, nil + } + + am, err := s.repo.WorkflowRun().GetWorkflowRunAdditionalMeta(context.Background(), tenantId, e.WorkflowRunId) + + if err != nil { + return nil, err + } + + if am.AdditionalMetadata == nil { + f := false + return &f, nil + } + + var additionalMetaMap map[string]interface{} + err = json.Unmarshal(am.AdditionalMetadata, &additionalMetaMap) + if err != nil { + return nil, err + } + + if v, ok := (additionalMetaMap)[key]; ok && v == value { + t := true + return &t, nil + } + + f := false + return &f, nil + + }, + ) + }, + hangup, + ) + + if err != nil { + return nil, err } return workflowEvent, nil @@ -1192,23 +1568,30 @@ func (s *DispatcherImpl) getStepResultsForWorkflowRun(tenantId string, workflowR res := make(map[string][]*contracts.StepRunResult) for _, stepRun := range stepRuns { + + data, err := s.repo.StepRun().GetStepRunDataForEngine(context.Background(), tenantId, sqlchelpers.UUIDToStr(stepRun.SRID)) + + if err != nil { + return nil, fmt.Errorf("could not get step run data for %s, %e", sqlchelpers.UUIDToStr(stepRun.SRID), err) + } + resStepRun := &contracts.StepRunResult{ - StepRunId: sqlchelpers.UUIDToStr(stepRun.StepRun.ID), + StepRunId: sqlchelpers.UUIDToStr(stepRun.SRID), StepReadableId: stepRun.StepReadableId.String, JobRunId: sqlchelpers.UUIDToStr(stepRun.JobRunId), } - if stepRun.StepRun.Error.Valid { - resStepRun.Error = &stepRun.StepRun.Error.String + if data.Error.Valid { + resStepRun.Error = &data.Error.String } - if stepRun.StepRun.CancelledReason.Valid { - errString := fmt.Sprintf("this step run was cancelled due to %s", stepRun.StepRun.CancelledReason.String) + if stepRun.SRCancelledReason.Valid { + errString := fmt.Sprintf("this step run was cancelled due to %s", stepRun.SRCancelledReason.String) resStepRun.Error = &errString } - if stepRun.StepRun.Output != nil { - resStepRun.Output = repository.StringPtr(string(stepRun.StepRun.Output)) + if data.Output != nil { + resStepRun.Output = repository.StringPtr(string(data.Output)) } workflowRunId := sqlchelpers.UUIDToStr(stepRun.WorkflowRunId) diff --git a/internal/services/grpc/server.go b/internal/services/grpc/server.go index 09241a507..10121f536 100644 --- a/internal/services/grpc/server.go +++ b/internal/services/grpc/server.go @@ -259,6 +259,12 @@ func (s *Server) startGRPC() (func() error, error) { serverOpts = append(serverOpts, grpc.KeepaliveParams(kasp)) + serverOpts = append(serverOpts, grpc.MaxRecvMsgSize( + s.config.Runtime.GRPCMaxMsgSize, + ), grpc.MaxSendMsgSize( + s.config.Runtime.GRPCMaxMsgSize, + )) + grpcServer := grpc.NewServer(serverOpts...) if s.ingestor != nil { diff --git a/internal/services/ingestor/server.go b/internal/services/ingestor/server.go index 81ae50feb..fb78e8958 100644 --- a/internal/services/ingestor/server.go +++ b/internal/services/ingestor/server.go @@ -102,6 +102,12 @@ func (i *IngestorImpl) PutStreamEvent(ctx context.Context, req *contracts.PutStr return nil, status.Errorf(codes.InvalidArgument, "Invalid request: %s", err) } + meta, err := i.streamEventRepository.GetStreamEventMeta(ctx, tenantId, req.StepRunId) + + if err != nil { + return nil, err + } + streamEvent, err := i.streamEventRepository.PutStreamEvent(ctx, tenantId, &opts) if err != nil { @@ -114,7 +120,9 @@ func (i *IngestorImpl) PutStreamEvent(ctx context.Context, req *contracts.PutStr return nil, err } - err = i.mq.AddMessage(context.Background(), q, streamEventToTask(streamEvent)) + e := streamEventToTask(streamEvent, sqlchelpers.UUIDToStr(meta.WorkflowRunId), &meta.RetryCount, &meta.Retries) + + err = i.mq.AddMessage(context.Background(), q, e) if err != nil { return nil, err @@ -176,13 +184,16 @@ func toEvent(e *dbsqlc.Event) (*contracts.Event, error) { }, nil } -func streamEventToTask(e *dbsqlc.StreamEvent) *msgqueue.Message { +func streamEventToTask(e *dbsqlc.StreamEvent, workflowRunId string, retryCount *int32, retries *int32) *msgqueue.Message { tenantId := sqlchelpers.UUIDToStr(e.TenantId) payloadTyped := tasktypes.StepRunStreamEventTaskPayload{ + WorkflowRunId: workflowRunId, StepRunId: sqlchelpers.UUIDToStr(e.StepRunId), CreatedAt: e.CreatedAt.Time.String(), StreamEventId: strconv.FormatInt(e.ID, 10), + RetryCount: retryCount, + StepRetries: retries, } payload, _ := datautils.ToJSONMap(payloadTyped) diff --git a/internal/services/shared/tasktypes/step.go b/internal/services/shared/tasktypes/step.go index eacf6723f..32660649a 100644 --- a/internal/services/shared/tasktypes/step.go +++ b/internal/services/shared/tasktypes/step.go @@ -3,19 +3,20 @@ package tasktypes import ( "github.com/hatchet-dev/hatchet/internal/datautils" "github.com/hatchet-dev/hatchet/internal/msgqueue" - "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" ) type StepRunTaskPayload struct { - StepRunId string `json:"step_run_id" validate:"required,uuid"` - JobRunId string `json:"job_run_id" validate:"required,uuid"` + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` + StepRunId string `json:"step_run_id" validate:"required,uuid"` + JobRunId string `json:"job_run_id" validate:"required,uuid"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunTaskMetadata struct { - TenantId string `json:"tenant_id" validate:"required,uuid"` - + TenantId string `json:"tenant_id" validate:"required,uuid"` StepId string `json:"step_id" validate:"required,uuid"` ActionId string `json:"action_id" validate:"required,actionId"` JobId string `json:"job_id" validate:"required,uuid"` @@ -34,9 +35,12 @@ type StepRunAssignedTaskMetadata struct { } type StepRunCancelledTaskPayload struct { + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` StepRunId string `json:"step_run_id" validate:"required,uuid"` WorkerId string `json:"worker_id" validate:"required,uuid"` CancelledReason string `json:"cancelled_reason" validate:"required"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunCancelledTaskMetadata struct { @@ -53,8 +57,11 @@ type StepRunRequeueTaskMetadata struct { } type StepRunNotifyCancelTaskPayload struct { + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` StepRunId string `json:"step_run_id" validate:"required,uuid"` CancelledReason string `json:"cancelled_reason" validate:"required"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunNotifyCancelTaskMetadata struct { @@ -62,8 +69,11 @@ type StepRunNotifyCancelTaskMetadata struct { } type StepRunStartedTaskPayload struct { - StepRunId string `json:"step_run_id" validate:"required,uuid"` - StartedAt string `json:"started_at" validate:"required"` + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` + StepRunId string `json:"step_run_id" validate:"required,uuid"` + StartedAt string `json:"started_at" validate:"required"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunStartedTaskMetadata struct { @@ -71,9 +81,12 @@ type StepRunStartedTaskMetadata struct { } type StepRunFinishedTaskPayload struct { + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` StepRunId string `json:"step_run_id" validate:"required,uuid"` FinishedAt string `json:"finished_at" validate:"required"` StepOutputData string `json:"step_output_data"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunFinishedTaskMetadata struct { @@ -81,9 +94,12 @@ type StepRunFinishedTaskMetadata struct { } type StepRunStreamEventTaskPayload struct { + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` StepRunId string `json:"step_run_id" validate:"required,uuid"` CreatedAt string `json:"created_at" validate:"required"` StreamEventId string `json:"stream_event_id"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunStreamEventTaskMetadata struct { @@ -92,9 +108,12 @@ type StepRunStreamEventTaskMetadata struct { } type StepRunFailedTaskPayload struct { - StepRunId string `json:"step_run_id" validate:"required,uuid"` - FailedAt string `json:"failed_at" validate:"required"` - Error string `json:"error" validate:"required"` + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` + StepRunId string `json:"step_run_id" validate:"required,uuid"` + FailedAt string `json:"failed_at" validate:"required"` + Error string `json:"error" validate:"required"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunFailedTaskMetadata struct { @@ -102,7 +121,10 @@ type StepRunFailedTaskMetadata struct { } type StepRunTimedOutTaskPayload struct { - StepRunId string `json:"step_run_id" validate:"required,uuid"` + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` + StepRunId string `json:"step_run_id" validate:"required,uuid"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunTimedOutTaskMetadata struct { @@ -110,11 +132,15 @@ type StepRunTimedOutTaskMetadata struct { } type StepRunRetryTaskPayload struct { - StepRunId string `json:"step_run_id" validate:"required,uuid"` - JobRunId string `json:"job_run_id" validate:"required,uuid"` + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` + StepRunId string `json:"step_run_id" validate:"required,uuid"` + JobRunId string `json:"job_run_id" validate:"required,uuid"` // optional - if not provided, the step run will be retried with the same input InputData string `json:"input_data,omitempty"` + + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunRetryTaskMetadata struct { @@ -122,43 +148,33 @@ type StepRunRetryTaskMetadata struct { } type StepRunReplayTaskPayload struct { - StepRunId string `json:"step_run_id" validate:"required,uuid"` - JobRunId string `json:"job_run_id" validate:"required,uuid"` + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` + StepRunId string `json:"step_run_id" validate:"required,uuid"` + JobRunId string `json:"job_run_id" validate:"required,uuid"` // optional - if not provided, the step run will be retried with the same input - InputData string `json:"input_data,omitempty"` + InputData string `json:"input_data,omitempty"` + StepRetries *int32 `json:"step_retries,omitempty"` + RetryCount *int32 `json:"retry_count,omitempty"` } type StepRunReplayTaskMetadata struct { TenantId string `json:"tenant_id" validate:"required,uuid"` } -func TenantToStepRunRequeueTask(tenant db.TenantModel) *msgqueue.Message { - payload, _ := datautils.ToJSONMap(StepRunRequeueTaskPayload{ - TenantId: tenant.ID, - }) - - metadata, _ := datautils.ToJSONMap(StepRunRequeueTaskMetadata{ - TenantId: tenant.ID, - }) - - return &msgqueue.Message{ - ID: "step-run-requeue-ticker", - Payload: payload, - Metadata: metadata, - Retries: 3, - } -} - func StepRunRetryToTask(stepRun *dbsqlc.GetStepRunForEngineRow, inputData []byte) *msgqueue.Message { jobRunId := sqlchelpers.UUIDToStr(stepRun.JobRunId) - stepRunId := sqlchelpers.UUIDToStr(stepRun.StepRun.ID) - tenantId := sqlchelpers.UUIDToStr(stepRun.StepRun.TenantId) + stepRunId := sqlchelpers.UUIDToStr(stepRun.SRID) + tenantId := sqlchelpers.UUIDToStr(stepRun.SRTenantId) + workflowRunId := sqlchelpers.UUIDToStr(stepRun.WorkflowRunId) payload, _ := datautils.ToJSONMap(StepRunRetryTaskPayload{ - JobRunId: jobRunId, - StepRunId: stepRunId, - InputData: string(inputData), + WorkflowRunId: workflowRunId, + JobRunId: jobRunId, + StepRunId: stepRunId, + InputData: string(inputData), + StepRetries: &stepRun.StepRetries, + RetryCount: &stepRun.SRRetryCount, }) metadata, _ := datautils.ToJSONMap(StepRunRetryTaskMetadata{ @@ -175,13 +191,17 @@ func StepRunRetryToTask(stepRun *dbsqlc.GetStepRunForEngineRow, inputData []byte func StepRunReplayToTask(stepRun *dbsqlc.GetStepRunForEngineRow, inputData []byte) *msgqueue.Message { jobRunId := sqlchelpers.UUIDToStr(stepRun.JobRunId) - stepRunId := sqlchelpers.UUIDToStr(stepRun.StepRun.ID) - tenantId := sqlchelpers.UUIDToStr(stepRun.StepRun.TenantId) + stepRunId := sqlchelpers.UUIDToStr(stepRun.SRID) + tenantId := sqlchelpers.UUIDToStr(stepRun.SRTenantId) + workflowRunId := sqlchelpers.UUIDToStr(stepRun.WorkflowRunId) payload, _ := datautils.ToJSONMap(StepRunReplayTaskPayload{ - JobRunId: jobRunId, - StepRunId: stepRunId, - InputData: string(inputData), + WorkflowRunId: workflowRunId, + JobRunId: jobRunId, + StepRunId: stepRunId, + InputData: string(inputData), + StepRetries: &stepRun.StepRetries, + RetryCount: &stepRun.SRRetryCount, }) metadata, _ := datautils.ToJSONMap(StepRunReplayTaskMetadata{ @@ -197,12 +217,15 @@ func StepRunReplayToTask(stepRun *dbsqlc.GetStepRunForEngineRow, inputData []byt } func StepRunCancelToTask(stepRun *dbsqlc.GetStepRunForEngineRow, reason string) *msgqueue.Message { - stepRunId := sqlchelpers.UUIDToStr(stepRun.StepRun.ID) - tenantId := sqlchelpers.UUIDToStr(stepRun.StepRun.TenantId) + stepRunId := sqlchelpers.UUIDToStr(stepRun.SRID) + tenantId := sqlchelpers.UUIDToStr(stepRun.SRTenantId) payload, _ := datautils.ToJSONMap(StepRunNotifyCancelTaskPayload{ + WorkflowRunId: sqlchelpers.UUIDToStr(stepRun.WorkflowRunId), StepRunId: stepRunId, CancelledReason: reason, + StepRetries: &stepRun.StepRetries, + RetryCount: &stepRun.SRRetryCount, }) metadata, _ := datautils.ToJSONMap(StepRunNotifyCancelTaskMetadata{ @@ -219,8 +242,11 @@ func StepRunCancelToTask(stepRun *dbsqlc.GetStepRunForEngineRow, reason string) func StepRunQueuedToTask(stepRun *dbsqlc.GetStepRunForEngineRow) *msgqueue.Message { payload, _ := datautils.ToJSONMap(StepRunTaskPayload{ - JobRunId: sqlchelpers.UUIDToStr(stepRun.JobRunId), - StepRunId: sqlchelpers.UUIDToStr(stepRun.StepRun.ID), + WorkflowRunId: sqlchelpers.UUIDToStr(stepRun.WorkflowRunId), + JobRunId: sqlchelpers.UUIDToStr(stepRun.JobRunId), + StepRunId: sqlchelpers.UUIDToStr(stepRun.SRID), + StepRetries: &stepRun.StepRetries, + RetryCount: &stepRun.SRRetryCount, }) metadata, _ := datautils.ToJSONMap(StepRunTaskMetadata{ @@ -229,7 +255,7 @@ func StepRunQueuedToTask(stepRun *dbsqlc.GetStepRunForEngineRow) *msgqueue.Messa JobName: stepRun.JobName, JobId: sqlchelpers.UUIDToStr(stepRun.JobId), WorkflowVersionId: sqlchelpers.UUIDToStr(stepRun.WorkflowVersionId), - TenantId: sqlchelpers.UUIDToStr(stepRun.StepRun.TenantId), + TenantId: sqlchelpers.UUIDToStr(stepRun.SRTenantId), }) return &msgqueue.Message{ diff --git a/internal/services/shared/tasktypes/workflow.go b/internal/services/shared/tasktypes/workflow.go index a1a3e3ced..74480e7b5 100644 --- a/internal/services/shared/tasktypes/workflow.go +++ b/internal/services/shared/tasktypes/workflow.go @@ -5,6 +5,31 @@ import ( "github.com/hatchet-dev/hatchet/internal/msgqueue" ) +type ReplayWorkflowRunTaskPayload struct { + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` +} + +type ReplayWorkflowRunTaskMetadata struct { + TenantId string `json:"tenant_id" validate:"required,uuid"` +} + +func WorkflowRunReplayToTask(tenantId, workflowRunId string) *msgqueue.Message { + payload, _ := datautils.ToJSONMap(ReplayWorkflowRunTaskPayload{ + WorkflowRunId: workflowRunId, + }) + + metadata, _ := datautils.ToJSONMap(ReplayWorkflowRunTaskMetadata{ + TenantId: tenantId, + }) + + return &msgqueue.Message{ + ID: "replay-workflow-run", + Payload: payload, + Metadata: metadata, + Retries: 3, + } +} + type WorkflowRunQueuedTaskPayload struct { WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` } @@ -14,8 +39,9 @@ type WorkflowRunQueuedTaskMetadata struct { } type WorkflowRunFinishedTask struct { - WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` - Status string `json:"status" validate:"required"` + WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` + Status string `json:"status" validate:"required"` + AdditionalMetadata map[string]interface{} `json:"additional_metadata"` } type WorkflowRunFinishedTaskMetadata struct { diff --git a/internal/services/ticker/schedule_workflow.go b/internal/services/ticker/schedule_workflow.go index dfcaf43b9..c29c74482 100644 --- a/internal/services/ticker/schedule_workflow.go +++ b/internal/services/ticker/schedule_workflow.go @@ -2,6 +2,7 @@ package ticker import ( "context" + "encoding/json" "fmt" "time" @@ -135,11 +136,30 @@ func (t *TickerImpl) runScheduledWorkflow(tenantId, workflowVersionId, scheduled childKey = &scheduled.ChildKey.String } + parent, err := t.repo.WorkflowRun().GetWorkflowRunById(ctx, tenantId, sqlchelpers.UUIDToStr(scheduled.ParentWorkflowRunId)) + + if err != nil { + t.l.Err(err).Msg("could not get parent workflow run") + return + } + + var parentAdditionalMeta map[string]interface{} + + if parent.WorkflowRun.AdditionalMetadata != nil { + err := json.Unmarshal(parent.WorkflowRun.AdditionalMetadata, &parentAdditionalMeta) + if err != nil { + t.l.Err(err).Msg("could not unmarshal parent additional metadata") + return + } + } + fs = append(fs, repository.WithParent( sqlchelpers.UUIDToStr(scheduled.ParentWorkflowRunId), sqlchelpers.UUIDToStr(scheduled.ParentStepRunId), int(scheduled.ChildIndex.Int32), childKey, + nil, + parentAdditionalMeta, )) } diff --git a/internal/services/ticker/step_run_timeout.go b/internal/services/ticker/step_run_timeout.go deleted file mode 100644 index 5612ae8aa..000000000 --- a/internal/services/ticker/step_run_timeout.go +++ /dev/null @@ -1,59 +0,0 @@ -package ticker - -import ( - "context" - "time" - - "github.com/hatchet-dev/hatchet/internal/datautils" - "github.com/hatchet-dev/hatchet/internal/msgqueue" - "github.com/hatchet-dev/hatchet/internal/services/shared/tasktypes" - "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" -) - -func (t *TickerImpl) runPollStepRuns(ctx context.Context) func() { - return func() { - ctx, cancel := context.WithTimeout(ctx, 30*time.Second) - defer cancel() - - t.l.Debug().Msgf("ticker: polling step runs") - - stepRuns, err := t.repo.Ticker().PollStepRuns(ctx, t.tickerId) - - if err != nil { - t.l.Err(err).Msg("could not poll step runs") - return - } - - for _, stepRun := range stepRuns { - tenantId := sqlchelpers.UUIDToStr(stepRun.TenantId) - stepRunId := sqlchelpers.UUIDToStr(stepRun.ID) - - err := t.mq.AddMessage( - ctx, - msgqueue.JOB_PROCESSING_QUEUE, - taskStepRunTimedOut(tenantId, stepRunId), - ) - - if err != nil { - t.l.Err(err).Msg("could not add step run timeout task") - } - } - } -} - -func taskStepRunTimedOut(tenantId, stepRunId string) *msgqueue.Message { - payload, _ := datautils.ToJSONMap(tasktypes.StepRunTimedOutTaskPayload{ - StepRunId: stepRunId, - }) - - metadata, _ := datautils.ToJSONMap(tasktypes.StepRunTimedOutTaskMetadata{ - TenantId: tenantId, - }) - - return &msgqueue.Message{ - ID: "step-run-timed-out", - Payload: payload, - Metadata: metadata, - Retries: 3, - } -} diff --git a/internal/services/ticker/ticker.go b/internal/services/ticker/ticker.go index 1f4a100d1..50de39da0 100644 --- a/internal/services/ticker/ticker.go +++ b/internal/services/ticker/ticker.go @@ -9,12 +9,15 @@ import ( "github.com/go-co-op/gocron/v2" "github.com/google/uuid" "github.com/rs/zerolog" + "golang.org/x/sync/errgroup" "github.com/hatchet-dev/hatchet/internal/datautils" "github.com/hatchet-dev/hatchet/internal/integrations/alerting" "github.com/hatchet-dev/hatchet/internal/msgqueue" "github.com/hatchet-dev/hatchet/pkg/logger" "github.com/hatchet-dev/hatchet/pkg/repository" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" + "github.com/hatchet-dev/hatchet/pkg/repository/prisma/sqlchelpers" ) type Ticker interface { @@ -37,6 +40,8 @@ type TickerImpl struct { dv datautils.DataDecoderValidator tickerId string + + partitionId string } type TickerOpt func(*TickerOpts) @@ -51,6 +56,8 @@ type TickerOpts struct { ta *alerting.TenantAlertManager dv datautils.DataDecoderValidator + + partitionId string } func defaultTickerOpts() *TickerOpts { @@ -92,6 +99,12 @@ func WithTenantAlerter(ta *alerting.TenantAlertManager) TickerOpt { } } +func WithPartitionId(pid string) TickerOpt { + return func(opts *TickerOpts) { + opts.partitionId = pid + } +} + func New(fs ...TickerOpt) (*TickerImpl, error) { opts := defaultTickerOpts() @@ -115,6 +128,10 @@ func New(fs ...TickerOpt) (*TickerImpl, error) { return nil, fmt.Errorf("tenant alerter is required. use WithTenantAlerter") } + if opts.partitionId == "" { + return nil, fmt.Errorf("partition id is required. use WithPartitionId") + } + newLogger := opts.l.With().Str("service", "ticker").Logger() opts.l = &newLogger @@ -133,6 +150,7 @@ func New(fs ...TickerOpt) (*TickerImpl, error) { dv: opts.dv, tickerId: opts.tickerId, ta: opts.ta, + partitionId: opts.partitionId, }, nil } @@ -163,18 +181,6 @@ func (t *TickerImpl) Start() (func() error, error) { return nil, fmt.Errorf("could not create update heartbeat job: %w", err) } - _, err = t.s.NewJob( - gocron.DurationJob(time.Second*1), - gocron.NewTask( - t.runPollStepRuns(ctx), - ), - ) - - if err != nil { - cancel() - return nil, fmt.Errorf("could not create update heartbeat job: %w", err) - } - _, err = t.s.NewJob( gocron.DurationJob(time.Second*1), gocron.NewTask( @@ -277,6 +283,19 @@ func (t *TickerImpl) Start() (func() error, error) { return nil, fmt.Errorf("could not schedule worker semaphore slot resolver polling: %w", err) } + // poll to resolve unresolved failed step runs every 30 seconds + // _, err = t.s.NewJob( + // gocron.DurationJob(time.Second*30), + // gocron.NewTask( + // t.runResolveUnresolvedFailedSteps(ctx), + // ), + // ) + + // if err != nil { + // cancel() + // return nil, fmt.Errorf("could not resolve unresolved failed steps polling: %w", err) + // } + t.s.Start() cleanup := func() error { @@ -337,21 +356,93 @@ func (t *TickerImpl) runStreamEventCleanup(ctx context.Context) func() { } } +func (t *TickerImpl) runWorkerSemaphoreSlotResolverTenant(ctx context.Context, tenant *dbsqlc.Tenant) error { + tenantId := tenant.ID + + tenantIdStr := sqlchelpers.UUIDToStr(tenantId) + + t.l.Debug().Msgf("ticker: resolving orphaned worker semaphore slots for tenant %s", tenantIdStr) + + // keep resolving until the context is done + for { + select { + case <-ctx.Done(): + return nil + default: + } + + n, err := t.repo.Worker().ResolveWorkerSemaphoreSlots(ctx, tenantId) + + if err != nil { + t.l.Err(err).Msgf("could not resolve orphaned worker semaphore slots for tenant %s", tenantIdStr) + return err + } + + if n.HasResolved { + t.l.Warn().Msgf("resolved orphaned worker semaphore slots for tenant %s", tenantIdStr) + } + + if !n.HasMore { + return nil + } + } +} + func (t *TickerImpl) runWorkerSemaphoreSlotResolver(ctx context.Context) func() { return func() { - ctx, cancel := context.WithTimeout(ctx, 5*time.Second) + ctx, cancel := context.WithTimeout(ctx, 60*time.Second) defer cancel() t.l.Debug().Msgf("ticker: resolving orphaned worker semaphore slots") - n, err := t.repo.Worker().ResolveWorkerSemaphoreSlots(ctx) + // list all tenants + tenants, err := t.repo.Tenant().ListTenantsByControllerPartition(ctx, t.partitionId) - if n > 0 { - t.l.Warn().Msgf("resolved %d orphaned worker semaphore slots", n) + if err != nil { + t.l.Err(err).Msg("could not list tenants") + return } + g := new(errgroup.Group) + + for i := range tenants { + g.Go(func() error { + return t.runWorkerSemaphoreSlotResolverTenant(ctx, tenants[i]) + }) + } + + err = g.Wait() + if err != nil { - t.l.Err(err).Msg("could ") + t.l.Err(err).Msg("could not run worker semaphore slot resolver") } } } + +// func (t *TickerImpl) runResolveUnresolvedFailedSteps(ctx context.Context) func() { +// return func() { + +// ctx, cancel := context.WithTimeout(ctx, 5*time.Second) +// defer cancel() + +// toResolve, err := t.repo.Ticker().PollUnresolvedFailedStepRuns(ctx) + +// if err != nil { +// t.l.Err(err).Msg("could not poll unresolved failed step runs") +// return +// } + +// if len(toResolve) > 0 { +// t.l.Warn().Msgf("attempting to resolve %d unresolved failed step runs", len(toResolve)) +// } + +// for _, stepRun := range toResolve { +// _, err := t.repo.StepRun().ResolveRelatedStatuses(ctx, stepRun.TenantId, stepRun.ID) + +// if err != nil { +// t.l.Err(err).Msgf("could not resolve step run %s", sqlchelpers.UUIDToStr(stepRun.ID)) +// } +// } + +// } +// } diff --git a/internal/services/webhooks/webhooks.go b/internal/services/webhooks/webhooks.go index 04caf6306..7f7562ad4 100644 --- a/internal/services/webhooks/webhooks.go +++ b/internal/services/webhooks/webhooks.go @@ -129,7 +129,10 @@ func (c *WebhooksController) check() error { token = string(decTok) } else { - tok, err := c.sc.Auth.JWTManager.GenerateTenantToken(context.Background(), tenantId, "webhook-worker") + + expiresAt := time.Now().Add(100 * 365 * 24 * time.Hour) // 100 years + + tok, err := c.sc.Auth.JWTManager.GenerateTenantToken(context.Background(), tenantId, "webhook-worker", true, &expiresAt) if err != nil { c.sc.Logger.Error().Err(err).Msgf("could not generate token for webhook worker %s of tenant %s", id, tenantId) return @@ -174,8 +177,7 @@ func (c *WebhooksController) check() error { } type HealthCheckResponse struct { - Actions []string `json:"actions"` - Workflows []string `json:"workflows"` + Actions []string `json:"actions"` } func (c *WebhooksController) healthcheck(ww *dbsqlc.WebhookWorker) (*HealthCheckResponse, error) { @@ -213,14 +215,13 @@ func (c *WebhooksController) run(tenantId string, webhookWorker *dbsqlc.WebhookW } ww, err := webhook.New(webhook.WorkerOpts{ - Token: token, - ID: id, - Secret: secret, - URL: webhookWorker.Url, - Name: webhookWorker.Name, - TenantID: tenantId, - Actions: h.Actions, - Workflows: h.Workflows, + Token: token, + ID: id, + Secret: secret, + URL: webhookWorker.Url, + Name: webhookWorker.Name, + TenantID: tenantId, + Actions: h.Actions, }) if err != nil { return nil, fmt.Errorf("could not create webhook worker: %w", err) @@ -240,7 +241,7 @@ func (c *WebhooksController) run(tenantId string, webhookWorker *dbsqlc.WebhookW go func() { ticker := time.NewTicker(5 * time.Second) defer ticker.Stop() - wfsHashLast := hash(h.Workflows) + actionsHashLast := hash(h.Actions) healthCheckErrors := 0 @@ -269,10 +270,9 @@ func (c *WebhooksController) run(tenantId string, webhookWorker *dbsqlc.WebhookW continue } - wfsHash := hash(h.Workflows) actionsHash := hash(h.Actions) - if wfsHash != wfsHashLast || actionsHash != actionsHashLast { + if actionsHash != actionsHashLast { c.sc.Logger.Debug().Msgf("webhook worker %s of tenant %s health check changed, updating", id, tenantId) // update the webhook workflow, and restart worker @@ -297,7 +297,6 @@ func (c *WebhooksController) run(tenantId string, webhookWorker *dbsqlc.WebhookW continue } - wfsHashLast = wfsHash actionsHashLast = actionsHash if healthCheckErrors > 0 { diff --git a/internal/telemetry/servertel/attributes.go b/internal/telemetry/servertel/attributes.go index f1e624801..fdc913db8 100644 --- a/internal/telemetry/servertel/attributes.go +++ b/internal/telemetry/servertel/attributes.go @@ -13,8 +13,8 @@ import ( func WithStepRunModel(span trace.Span, stepRun *dbsqlc.GetStepRunForEngineRow) { telemetry.WithAttributes( span, - TenantId(stepRun.StepRun.TenantId), - StepRunId(stepRun.StepRun.ID), + TenantId(stepRun.SRTenantId), + StepRunId(stepRun.SRID), Step(stepRun.StepId), JobRunId(stepRun.JobRunId), ) diff --git a/internal/telemetry/telemetry.go b/internal/telemetry/telemetry.go index f7f364863..793c20256 100644 --- a/internal/telemetry/telemetry.go +++ b/internal/telemetry/telemetry.go @@ -3,6 +3,7 @@ package telemetry import ( "context" "fmt" + "strconv" "strings" "time" @@ -21,6 +22,7 @@ type TracerOpts struct { ServiceName string CollectorURL string Insecure bool + TraceIdRatio string } func InitTracer(opts *TracerOpts) (func(context.Context) error, error) { @@ -63,9 +65,19 @@ func InitTracer(opts *TracerOpts) (func(context.Context) error, error) { return nil, fmt.Errorf("failed to set resources: %w", err) } + var traceIdRatio float64 = 1 + + if opts.TraceIdRatio != "" { + traceIdRatio, err = strconv.ParseFloat(opts.TraceIdRatio, 64) + + if err != nil { + return nil, fmt.Errorf("failed to parse traceIdRatio: %w", err) + } + } + otel.SetTracerProvider( sdktrace.NewTracerProvider( - sdktrace.WithSampler(sdktrace.AlwaysSample()), + sdktrace.WithSampler(sdktrace.TraceIDRatioBased(traceIdRatio)), sdktrace.WithBatcher(exporter), sdktrace.WithResource(resources), ), diff --git a/internal/testutils/env.go b/internal/testutils/env.go index d0584d463..cf84a753d 100644 --- a/internal/testutils/env.go +++ b/internal/testutils/env.go @@ -79,7 +79,7 @@ func Prepare(t *testing.T) { } } - defaultTok, err := serverConf.Auth.JWTManager.GenerateTenantToken(context.Background(), tenantId, "default") + defaultTok, err := serverConf.Auth.JWTManager.GenerateTenantToken(context.Background(), tenantId, "default", false, nil) if err != nil { t.Fatalf("could not generate default token: %v", err) } diff --git a/pkg/auth/token/token.go b/pkg/auth/token/token.go index e0978384a..5fabf173b 100644 --- a/pkg/auth/token/token.go +++ b/pkg/auth/token/token.go @@ -13,8 +13,8 @@ import ( ) type JWTManager interface { - GenerateTenantToken(ctx context.Context, tenantId, name string) (*Token, error) - UpsertTenantToken(ctx context.Context, tenantId, name, id string) (string, error) + GenerateTenantToken(ctx context.Context, tenantId, name string, internal bool, expires *time.Time) (*Token, error) + UpsertTenantToken(ctx context.Context, tenantId, name, id string, internal bool, expires *time.Time) (string, error) ValidateTenantToken(ctx context.Context, token string) (string, error) } @@ -53,7 +53,7 @@ type Token struct { Token string } -func (j *jwtManagerImpl) createToken(ctx context.Context, tenantId, name string, id *string) (*Token, error) { +func (j *jwtManagerImpl) createToken(ctx context.Context, tenantId, name string, id *string, expires *time.Time) (*Token, error) { // Retrieve the JWT Signer primitive from privateKeysetHandle. signer, err := jwt.NewSigner(j.encryption.GetPrivateJWTHandle()) @@ -61,7 +61,7 @@ func (j *jwtManagerImpl) createToken(ctx context.Context, tenantId, name string, return nil, fmt.Errorf("failed to create JWT Signer: %v", err) } - tokenId, expiresAt, opts := j.getJWTOptionsForTenant(tenantId, id) + tokenId, expiresAt, opts := j.getJWTOptionsForTenant(tenantId, id, expires) rawJWT, err := jwt.NewRawJWT(opts) @@ -82,8 +82,8 @@ func (j *jwtManagerImpl) createToken(ctx context.Context, tenantId, name string, }, nil } -func (j *jwtManagerImpl) GenerateTenantToken(ctx context.Context, tenantId, name string) (*Token, error) { - token, err := j.createToken(ctx, tenantId, name, nil) +func (j *jwtManagerImpl) GenerateTenantToken(ctx context.Context, tenantId, name string, internal bool, expires *time.Time) (*Token, error) { + token, err := j.createToken(ctx, tenantId, name, nil, expires) if err != nil { return nil, err } @@ -94,6 +94,7 @@ func (j *jwtManagerImpl) GenerateTenantToken(ctx context.Context, tenantId, name ExpiresAt: token.ExpiresAt, TenantId: &tenantId, Name: &name, + Internal: internal, }) if err != nil { return nil, fmt.Errorf("failed to write token to database: %v", err) @@ -102,8 +103,8 @@ func (j *jwtManagerImpl) GenerateTenantToken(ctx context.Context, tenantId, name return token, nil } -func (j *jwtManagerImpl) UpsertTenantToken(ctx context.Context, tenantId, name, id string) (string, error) { - token, err := j.createToken(ctx, tenantId, name, &id) +func (j *jwtManagerImpl) UpsertTenantToken(ctx context.Context, tenantId, name, id string, internal bool, expires *time.Time) (string, error) { + token, err := j.createToken(ctx, tenantId, name, &id, expires) if err != nil { return "", err } @@ -114,6 +115,7 @@ func (j *jwtManagerImpl) UpsertTenantToken(ctx context.Context, tenantId, name, ExpiresAt: token.ExpiresAt, TenantId: &tenantId, Name: &name, + Internal: internal, }) if err != nil { return "", fmt.Errorf("failed to write token to database: %v", err) @@ -196,8 +198,14 @@ func (j *jwtManagerImpl) ValidateTenantToken(ctx context.Context, token string) return subject, nil } -func (j *jwtManagerImpl) getJWTOptionsForTenant(tenantId string, id *string) (tokenId string, expiresAt time.Time, opts *jwt.RawJWTOptions) { - expiresAt = time.Now().Add(90 * 24 * time.Hour) +func (j *jwtManagerImpl) getJWTOptionsForTenant(tenantId string, id *string, expires *time.Time) (tokenId string, expiresAt time.Time, opts *jwt.RawJWTOptions) { + + if expires != nil { + expiresAt = *expires + } else { + expiresAt = time.Now().Add(90 * 24 * time.Hour) + } + iAt := time.Now() audience := j.opts.Audience subject := tenantId diff --git a/pkg/auth/token/token_test.go b/pkg/auth/token/token_test.go index 9ed563e0d..3cfe40b25 100644 --- a/pkg/auth/token/token_test.go +++ b/pkg/auth/token/token_test.go @@ -42,7 +42,7 @@ func TestCreateTenantToken(t *testing.T) { // make sure no cache is used for tes t.Fatal(err.Error()) } - token, err := jwtManager.GenerateTenantToken(context.Background(), tenantId, "test token") + token, err := jwtManager.GenerateTenantToken(context.Background(), tenantId, "test token", false, nil) if err != nil { t.Fatal(err.Error()) @@ -83,7 +83,7 @@ func TestRevokeTenantToken(t *testing.T) { t.Fatal(err.Error()) } - token, err := jwtManager.GenerateTenantToken(context.Background(), tenantId, "test token") + token, err := jwtManager.GenerateTenantToken(context.Background(), tenantId, "test token", false, nil) if err != nil { t.Fatal(err.Error()) @@ -143,7 +143,7 @@ func TestRevokeTenantTokenCache(t *testing.T) { t.Fatal(err.Error()) } - token, err := jwtManager.GenerateTenantToken(context.Background(), tenantId, "test token") + token, err := jwtManager.GenerateTenantToken(context.Background(), tenantId, "test token", false, nil) if err != nil { t.Fatal(err.Error()) diff --git a/pkg/client/admin.go b/pkg/client/admin.go index 879347724..c89d6c938 100644 --- a/pkg/client/admin.go +++ b/pkg/client/admin.go @@ -9,6 +9,8 @@ import ( "github.com/rs/zerolog" "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "google.golang.org/protobuf/types/known/timestamppb" admincontracts "github.com/hatchet-dev/hatchet/internal/services/admin/contracts" @@ -21,6 +23,7 @@ type ChildWorkflowOpts struct { ParentStepRunId string ChildIndex int ChildKey *string + DesiredWorkerId *string } type AdminClient interface { @@ -35,6 +38,14 @@ type AdminClient interface { PutRateLimit(key string, opts *types.RateLimitOpts) error } +type DedupeViolationErr struct { + details string +} + +func (d *DedupeViolationErr) Error() string { + return fmt.Sprintf("DedupeViolationErr: %s", d.details) +} + type adminClientImpl struct { client admincontracts.WorkflowServiceClient @@ -190,6 +201,12 @@ func (a *adminClientImpl) RunWorkflow(workflowName string, input interface{}, op res, err := a.client.TriggerWorkflow(a.ctx.newContext(context.Background()), &request) if err != nil { + if status.Code(err) == codes.AlreadyExists { + return "", &DedupeViolationErr{ + details: fmt.Sprintf("could not trigger workflow: %s", err.Error()), + } + } + return "", fmt.Errorf("could not trigger workflow: %w", err) } @@ -216,9 +233,16 @@ func (a *adminClientImpl) RunChildWorkflow(workflowName string, input interface{ ParentStepRunId: &opts.ParentStepRunId, ChildIndex: &childIndex, ChildKey: opts.ChildKey, + DesiredWorkerId: opts.DesiredWorkerId, }) if err != nil { + if status.Code(err) == codes.AlreadyExists { + return "", &DedupeViolationErr{ + details: fmt.Sprintf("could not trigger child workflow: %s", err.Error()), + } + } + return "", fmt.Errorf("could not trigger child workflow: %w", err) } @@ -264,6 +288,11 @@ func (a *adminClientImpl) getPutRequest(workflow *types.Workflow) (*admincontrac CronTriggers: workflow.Triggers.Cron, } + if workflow.StickyStrategy != nil { + s := admincontracts.StickyStrategy(*workflow.StickyStrategy) + opts.Sticky = &s + } + if workflow.Concurrency != nil { opts.Concurrency = &admincontracts.WorkflowConcurrencyOpts{ Action: workflow.Concurrency.ActionID, @@ -284,6 +313,10 @@ func (a *adminClientImpl) getPutRequest(workflow *types.Workflow) (*admincontrac } } + if workflow.ScheduleTimeout != "" { + opts.ScheduleTimeout = &workflow.ScheduleTimeout + } + if workflow.OnFailureJob != nil { onFailureJob, err := a.getJobOpts("on-failure", workflow.OnFailureJob) @@ -352,6 +385,40 @@ func (a *adminClientImpl) getJobOpts(jobName string, job *types.WorkflowJob) (*a }) } + if step.DesiredLabels != nil { + stepOpt.WorkerLabels = make(map[string]*admincontracts.DesiredWorkerLabels, len(step.DesiredLabels)) + for key, desiredLabel := range step.DesiredLabels { + stepOpt.WorkerLabels[key] = &admincontracts.DesiredWorkerLabels{ + Required: &desiredLabel.Required, + Weight: &desiredLabel.Weight, + } + + switch value := desiredLabel.Value.(type) { + case string: + strValue := value + stepOpt.WorkerLabels[key].StrValue = &strValue + case int: + intValue := int32(value) + stepOpt.WorkerLabels[key].IntValue = &intValue + case int32: + stepOpt.WorkerLabels[key].IntValue = &value + case int64: + intValue := int32(value) + stepOpt.WorkerLabels[key].IntValue = &intValue + default: + // For any other type, convert to string + strValue := fmt.Sprintf("%v", value) + stepOpt.WorkerLabels[key].StrValue = &strValue + } + + if desiredLabel.Comparator != nil { + c := admincontracts.WorkerLabelComparator(*desiredLabel.Comparator) + stepOpt.WorkerLabels[key].Comparator = &c + } + + } + } + stepOpts[i] = stepOpt } diff --git a/pkg/client/dispatcher.go b/pkg/client/dispatcher.go index 14a620b00..0cc3c6474 100644 --- a/pkg/client/dispatcher.go +++ b/pkg/client/dispatcher.go @@ -17,7 +17,7 @@ import ( ) type DispatcherClient interface { - GetActionListener(ctx context.Context, req *GetActionListenerRequest) (WorkerActionListener, error) + GetActionListener(ctx context.Context, req *GetActionListenerRequest) (WorkerActionListener, *string, error) SendStepActionEvent(ctx context.Context, in *ActionEvent) (*ActionEventResponse, error) @@ -26,6 +26,8 @@ type DispatcherClient interface { ReleaseSlot(ctx context.Context, stepRunId string) error RefreshTimeout(ctx context.Context, stepRunId string, incrementTimeoutBy string) error + + UpsertWorkerLabels(ctx context.Context, workerId string, labels map[string]interface{}) error } const ( @@ -39,6 +41,7 @@ type GetActionListenerRequest struct { Services []string Actions []string MaxRuns *int + Labels map[string]interface{} } // ActionPayload unmarshals the action payload into the target. It also validates the resulting target. @@ -94,6 +97,18 @@ type Action struct { // the count of the retry attempt RetryCount int32 `json:"retryCount"` + + // the additional metadata for the workflow run + AdditionalMetadata map[string]string + + // the child index for the workflow run + ChildIndex *int32 + + // the child key for the workflow run + ChildKey *string + + // the parent workflow run id + ParentWorkflowRunId *string } type WorkerActionListener interface { @@ -179,10 +194,10 @@ type actionListenerImpl struct { listenerStrategy ListenerStrategy } -func (d *dispatcherClientImpl) newActionListener(ctx context.Context, req *GetActionListenerRequest) (*actionListenerImpl, error) { +func (d *dispatcherClientImpl) newActionListener(ctx context.Context, req *GetActionListenerRequest) (*actionListenerImpl, *string, error) { // validate the request if err := d.v.Validate(req); err != nil { - return nil, err + return nil, nil, err } registerReq := &dispatchercontracts.WorkerRegisterRequest{ @@ -191,6 +206,11 @@ func (d *dispatcherClientImpl) newActionListener(ctx context.Context, req *GetAc Services: req.Services, } + if req.Labels != nil { + + registerReq.Labels = mapLabels(req.Labels) + } + if req.MaxRuns != nil { mr := int32(*req.MaxRuns) registerReq.MaxRuns = &mr @@ -200,7 +220,7 @@ func (d *dispatcherClientImpl) newActionListener(ctx context.Context, req *GetAc resp, err := d.client.Register(d.ctx.newContext(ctx), registerReq) if err != nil { - return nil, fmt.Errorf("could not register the worker: %w", err) + return nil, nil, fmt.Errorf("could not register the worker: %w", err) } d.l.Debug().Msgf("Registered worker with id: %s", resp.WorkerId) @@ -211,7 +231,7 @@ func (d *dispatcherClientImpl) newActionListener(ctx context.Context, req *GetAc }) if err != nil { - return nil, fmt.Errorf("could not subscribe to the worker: %w", err) + return nil, nil, fmt.Errorf("could not subscribe to the worker: %w", err) } return &actionListenerImpl{ @@ -223,7 +243,7 @@ func (d *dispatcherClientImpl) newActionListener(ctx context.Context, req *GetAc tenantId: d.tenantId, ctx: d.ctx, listenerStrategy: ListenerStrategyV2, - }, nil + }, &resp.WorkerId, nil } func (a *actionListenerImpl) Actions(ctx context.Context) (<-chan *Action, error) { @@ -321,21 +341,36 @@ func (a *actionListenerImpl) Actions(ctx context.Context) (<-chan *Action, error unquoted := assignedAction.ActionPayload + var additionalMetadata map[string]string + + if assignedAction.AdditionalMetadata != nil { + err := json.Unmarshal([]byte(*assignedAction.AdditionalMetadata), &additionalMetadata) + + if err != nil { + a.l.Error().Err(err).Msgf("could not unmarshal additional metadata") + continue + } + } + ch <- &Action{ - TenantId: assignedAction.TenantId, - WorkflowRunId: assignedAction.WorkflowRunId, - GetGroupKeyRunId: assignedAction.GetGroupKeyRunId, - WorkerId: a.workerId, - JobId: assignedAction.JobId, - JobName: assignedAction.JobName, - JobRunId: assignedAction.JobRunId, - StepId: assignedAction.StepId, - StepName: assignedAction.StepName, - StepRunId: assignedAction.StepRunId, - ActionId: assignedAction.ActionId, - ActionType: actionType, - ActionPayload: []byte(unquoted), - RetryCount: assignedAction.RetryCount, + TenantId: assignedAction.TenantId, + WorkflowRunId: assignedAction.WorkflowRunId, + GetGroupKeyRunId: assignedAction.GetGroupKeyRunId, + WorkerId: a.workerId, + JobId: assignedAction.JobId, + JobName: assignedAction.JobName, + JobRunId: assignedAction.JobRunId, + StepId: assignedAction.StepId, + StepName: assignedAction.StepName, + StepRunId: assignedAction.StepRunId, + ActionId: assignedAction.ActionId, + ActionType: actionType, + ActionPayload: []byte(unquoted), + RetryCount: assignedAction.RetryCount, + AdditionalMetadata: additionalMetadata, + ChildIndex: assignedAction.ChildWorkflowIndex, + ChildKey: assignedAction.ChildWorkflowKey, + ParentWorkflowRunId: assignedAction.ParentWorkflowRunId, } } }() @@ -391,7 +426,7 @@ func (a *actionListenerImpl) Unregister() error { return nil } -func (d *dispatcherClientImpl) GetActionListener(ctx context.Context, req *GetActionListenerRequest) (WorkerActionListener, error) { +func (d *dispatcherClientImpl) GetActionListener(ctx context.Context, req *GetActionListenerRequest) (WorkerActionListener, *string, error) { return d.newActionListener(ctx, req) } @@ -511,3 +546,47 @@ func (a *dispatcherClientImpl) RefreshTimeout(ctx context.Context, stepRunId str return nil } + +func (a *dispatcherClientImpl) UpsertWorkerLabels(ctx context.Context, workerId string, req map[string]interface{}) error { + labels := mapLabels(req) + + _, err := a.client.UpsertWorkerLabels(a.ctx.newContext(ctx), &dispatchercontracts.UpsertWorkerLabelsRequest{ + WorkerId: workerId, + Labels: labels, + }) + + if err != nil { + return err + } + + return nil +} + +func mapLabels(req map[string]interface{}) map[string]*dispatchercontracts.WorkerLabels { + labels := map[string]*dispatchercontracts.WorkerLabels{} + + for k, v := range req { + label := dispatchercontracts.WorkerLabels{} + + switch value := v.(type) { + case string: + strValue := value + label.StrValue = &strValue + case int: + intValue := int32(value) + label.IntValue = &intValue + case int32: + label.IntValue = &value + case int64: + intValue := int32(value) + label.IntValue = &intValue + default: + // For any other type, convert to string + strValue := fmt.Sprintf("%v", value) + label.StrValue = &strValue + } + + labels[k] = &label + } + return labels +} diff --git a/pkg/client/listener.go b/pkg/client/listener.go index bc656dab0..f93c2fe42 100644 --- a/pkg/client/listener.go +++ b/pkg/client/listener.go @@ -228,6 +228,8 @@ type SubscribeClient interface { Stream(ctx context.Context, workflowRunId string, handler StreamHandler) error + StreamByAdditionalMetadata(ctx context.Context, key string, value string, handler StreamHandler) error + SubscribeToWorkflowRunEvents(ctx context.Context) (*WorkflowRunsListener, error) } @@ -256,7 +258,7 @@ func newSubscribe(conn *grpc.ClientConn, opts *sharedClientOpts) SubscribeClient func (r *subscribeClientImpl) On(ctx context.Context, workflowRunId string, handler RunHandler) error { stream, err := r.client.SubscribeToWorkflowEvents(r.ctx.newContext(ctx), &dispatchercontracts.SubscribeToWorkflowEventsRequest{ - WorkflowRunId: workflowRunId, + WorkflowRunId: &workflowRunId, }) if err != nil { @@ -286,7 +288,40 @@ func (r *subscribeClientImpl) On(ctx context.Context, workflowRunId string, hand func (r *subscribeClientImpl) Stream(ctx context.Context, workflowRunId string, handler StreamHandler) error { stream, err := r.client.SubscribeToWorkflowEvents(r.ctx.newContext(ctx), &dispatchercontracts.SubscribeToWorkflowEventsRequest{ - WorkflowRunId: workflowRunId, + WorkflowRunId: &workflowRunId, + }) + + if err != nil { + return err + } + + for { + event, err := stream.Recv() + + if err != nil { + if errors.Is(err, io.EOF) { + return nil + } + + return err + } + + if event.EventType != dispatchercontracts.ResourceEventType_RESOURCE_EVENT_TYPE_STREAM { + continue + } + + if err := handler(StreamEvent{ + Message: []byte(event.EventPayload), + }); err != nil { + return err + } + } +} + +func (r *subscribeClientImpl) StreamByAdditionalMetadata(ctx context.Context, key string, value string, handler StreamHandler) error { + stream, err := r.client.SubscribeToWorkflowEvents(r.ctx.newContext(ctx), &dispatchercontracts.SubscribeToWorkflowEventsRequest{ + AdditionalMetaKey: &key, + AdditionalMetaValue: &value, }) if err != nil { diff --git a/pkg/client/rest/gen.go b/pkg/client/rest/gen.go index 287f960fd..583f504b3 100644 --- a/pkg/client/rest/gen.go +++ b/pkg/client/rest/gen.go @@ -118,6 +118,7 @@ const ( const ( ACTIVE WorkerStatus = "ACTIVE" INACTIVE WorkerStatus = "INACTIVE" + PAUSED WorkerStatus = "PAUSED" ) // Defines values for WorkflowConcurrencyLimitStrategy. @@ -128,6 +129,27 @@ const ( QUEUENEWEST WorkflowConcurrencyLimitStrategy = "QUEUE_NEWEST" ) +// Defines values for WorkflowKind. +const ( + DAG WorkflowKind = "DAG" + DURABLE WorkflowKind = "DURABLE" + FUNCTION WorkflowKind = "FUNCTION" +) + +// Defines values for WorkflowRunOrderByDirection. +const ( + ASC WorkflowRunOrderByDirection = "ASC" + DESC WorkflowRunOrderByDirection = "DESC" +) + +// Defines values for WorkflowRunOrderByField. +const ( + CreatedAt WorkflowRunOrderByField = "createdAt" + Duration WorkflowRunOrderByField = "duration" + FinishedAt WorkflowRunOrderByField = "finishedAt" + StartedAt WorkflowRunOrderByField = "startedAt" +) + // Defines values for WorkflowRunStatus. const ( WorkflowRunStatusCANCELLED WorkflowRunStatus = "CANCELLED" @@ -208,7 +230,7 @@ type APIResourceMeta struct { CreatedAt time.Time `json:"createdAt"` // Id the id of this resource, in UUID format - Id openapi_types.UUID `json:"id"` + Id string `json:"id"` // UpdatedAt the time that this resource was last updated UpdatedAt time.Time `json:"updatedAt"` @@ -231,6 +253,9 @@ type AcceptInviteRequest struct { // CreateAPITokenRequest defines model for CreateAPITokenRequest. type CreateAPITokenRequest struct { + // ExpiresIn The duration for which the token is valid. + ExpiresIn *string `json:"expiresIn,omitempty" validate:"omitnil,duration"` + // Name A name for the API token. Name string `json:"name"` } @@ -469,6 +494,16 @@ type ReplayEventRequest struct { EventIds []openapi_types.UUID `json:"eventIds"` } +// ReplayWorkflowRunsRequest defines model for ReplayWorkflowRunsRequest. +type ReplayWorkflowRunsRequest struct { + WorkflowRunIds []openapi_types.UUID `json:"workflowRunIds"` +} + +// ReplayWorkflowRunsResponse defines model for ReplayWorkflowRunsResponse. +type ReplayWorkflowRunsResponse struct { + WorkflowRuns []WorkflowRun `json:"workflowRuns"` +} + // RerunStepRunRequest defines model for RerunStepRunRequest. type RerunStepRunRequest struct { Input map[string]interface{} `json:"input"` @@ -773,6 +808,12 @@ type UpdateTenantRequest struct { Name *string `json:"name,omitempty"` } +// UpdateWorkerRequest defines model for UpdateWorkerRequest. +type UpdateWorkerRequest struct { + // IsPaused Whether the worker is paused and cannot accept new runs. + IsPaused *bool `json:"isPaused,omitempty"` +} + // User defines model for User. type User struct { // Email The email address of the user. @@ -891,6 +932,9 @@ type Worker struct { // DispatcherId the id of the assigned dispatcher, in UUID format DispatcherId *openapi_types.UUID `json:"dispatcherId,omitempty"` + // Labels The current label state of the worker. + Labels *[]WorkerLabel `json:"labels,omitempty"` + // LastHeartbeatAt The time this worker last sent a heartbeat. LastHeartbeatAt *time.Time `json:"lastHeartbeatAt,omitempty"` @@ -914,6 +958,16 @@ type Worker struct { // WorkerStatus The status of the worker. type WorkerStatus string +// WorkerLabel defines model for WorkerLabel. +type WorkerLabel struct { + // Key The key of the label. + Key string `json:"key"` + Metadata APIResourceMeta `json:"metadata"` + + // Value The value of the label. + Value *string `json:"value,omitempty"` +} + // WorkerList defines model for WorkerList. type WorkerList struct { Pagination *PaginationResponse `json:"pagination,omitempty"` @@ -956,6 +1010,12 @@ type WorkflowConcurrencyLimitStrategy string // WorkflowID A workflow ID. type WorkflowID = string +// WorkflowKind defines model for WorkflowKind. +type WorkflowKind string + +// WorkflowKindList defines model for WorkflowKindList. +type WorkflowKindList = []WorkflowKind + // WorkflowList defines model for WorkflowList. type WorkflowList struct { Metadata *APIResourceMeta `json:"metadata,omitempty"` @@ -976,6 +1036,7 @@ type WorkflowMetrics struct { type WorkflowRun struct { AdditionalMetadata *map[string]interface{} `json:"additionalMetadata,omitempty"` DisplayName *string `json:"displayName,omitempty"` + Duration *int `json:"duration,omitempty"` Error *string `json:"error,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Input *map[string]interface{} `json:"input,omitempty"` @@ -997,6 +1058,12 @@ type WorkflowRunList struct { Rows *[]WorkflowRun `json:"rows,omitempty"` } +// WorkflowRunOrderByDirection defines model for WorkflowRunOrderByDirection. +type WorkflowRunOrderByDirection string + +// WorkflowRunOrderByField defines model for WorkflowRunOrderByField. +type WorkflowRunOrderByField string + // WorkflowRunStatus defines model for WorkflowRunStatus. type WorkflowRunStatus string @@ -1195,8 +1262,17 @@ type WorkflowRunListParams struct { // Statuses A list of workflow run statuses to filter by Statuses *WorkflowRunStatusList `form:"statuses,omitempty" json:"statuses,omitempty"` + // Kinds A list of workflow kinds to filter by + Kinds *WorkflowKindList `form:"kinds,omitempty" json:"kinds,omitempty"` + // AdditionalMetadata A list of metadata key value pairs to filter by AdditionalMetadata *[]string `form:"additionalMetadata,omitempty" json:"additionalMetadata,omitempty"` + + // OrderByField The order by field + OrderByField *WorkflowRunOrderByField `form:"orderByField,omitempty" json:"orderByField,omitempty"` + + // OrderByDirection The order by direction + OrderByDirection *WorkflowRunOrderByDirection `form:"orderByDirection,omitempty" json:"orderByDirection,omitempty"` } // WorkflowRunGetMetricsParams defines parameters for WorkflowRunGetMetrics. @@ -1280,6 +1356,9 @@ type StepRunUpdateRerunJSONRequestBody = RerunStepRunRequest // WebhookCreateJSONRequestBody defines body for WebhookCreate for application/json ContentType. type WebhookCreateJSONRequestBody = WebhookWorkerCreateRequest +// WorkflowRunUpdateReplayJSONRequestBody defines body for WorkflowRunUpdateReplay for application/json ContentType. +type WorkflowRunUpdateReplayJSONRequestBody = ReplayWorkflowRunsRequest + // WorkflowRunCancelJSONRequestBody defines body for WorkflowRunCancel for application/json ContentType. type WorkflowRunCancelJSONRequestBody = WorkflowRunsCancelRequest @@ -1298,6 +1377,9 @@ type UserUpdatePasswordJSONRequestBody = UserChangePasswordRequest // UserCreateJSONRequestBody defines body for UserCreate for application/json ContentType. type UserCreateJSONRequestBody = UserRegisterRequest +// WorkerUpdateJSONRequestBody defines body for WorkerUpdate for application/json ContentType. +type WorkerUpdateJSONRequestBody = UpdateWorkerRequest + // WorkflowRunCreateJSONRequestBody defines body for WorkflowRunCreate for application/json ContentType. type WorkflowRunCreateJSONRequestBody = TriggerWorkflowRunRequest @@ -1533,6 +1615,11 @@ type ClientInterface interface { // WorkerList request WorkerList(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // WorkflowRunUpdateReplayWithBody request with any body + WorkflowRunUpdateReplayWithBody(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkflowRunUpdateReplay(ctx context.Context, tenant openapi_types.UUID, body WorkflowRunUpdateReplayJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // WorkflowRunGet request WorkflowRunGet(ctx context.Context, tenant openapi_types.UUID, workflowRun openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -1608,6 +1695,14 @@ type ClientInterface interface { // WorkerGet request WorkerGet(ctx context.Context, worker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // WorkerUpdateWithBody request with any body + WorkerUpdateWithBody(ctx context.Context, worker openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkerUpdate(ctx context.Context, worker openapi_types.UUID, body WorkerUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkflowRunGetInput request + WorkflowRunGetInput(ctx context.Context, workflowRun openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) + // WorkflowDelete request WorkflowDelete(ctx context.Context, workflow openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -2313,6 +2408,30 @@ func (c *Client) WorkerList(ctx context.Context, tenant openapi_types.UUID, reqE return c.Client.Do(req) } +func (c *Client) WorkflowRunUpdateReplayWithBody(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkflowRunUpdateReplayRequestWithBody(c.Server, tenant, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkflowRunUpdateReplay(ctx context.Context, tenant openapi_types.UUID, body WorkflowRunUpdateReplayJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkflowRunUpdateReplayRequest(c.Server, tenant, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) WorkflowRunGet(ctx context.Context, tenant openapi_types.UUID, workflowRun openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewWorkflowRunGetRequest(c.Server, tenant, workflowRun) if err != nil { @@ -2637,6 +2756,42 @@ func (c *Client) WorkerGet(ctx context.Context, worker openapi_types.UUID, reqEd return c.Client.Do(req) } +func (c *Client) WorkerUpdateWithBody(ctx context.Context, worker openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkerUpdateRequestWithBody(c.Server, worker, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkerUpdate(ctx context.Context, worker openapi_types.UUID, body WorkerUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkerUpdateRequest(c.Server, worker, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WorkflowRunGetInput(ctx context.Context, workflowRun openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkflowRunGetInputRequest(c.Server, workflowRun) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) WorkflowDelete(ctx context.Context, workflow openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewWorkflowDeleteRequest(c.Server, workflow) if err != nil { @@ -4787,6 +4942,53 @@ func NewWorkerListRequest(server string, tenant openapi_types.UUID) (*http.Reque return req, nil } +// NewWorkflowRunUpdateReplayRequest calls the generic WorkflowRunUpdateReplay builder with application/json body +func NewWorkflowRunUpdateReplayRequest(server string, tenant openapi_types.UUID, body WorkflowRunUpdateReplayJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkflowRunUpdateReplayRequestWithBody(server, tenant, "application/json", bodyReader) +} + +// NewWorkflowRunUpdateReplayRequestWithBody generates requests for WorkflowRunUpdateReplay with any type of body +func NewWorkflowRunUpdateReplayRequestWithBody(server string, tenant openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tenant", runtime.ParamLocationPath, tenant) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/tenants/%s/workflow-runs/replay", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + // NewWorkflowRunGetRequest generates requests for WorkflowRunGet func NewWorkflowRunGetRequest(server string, tenant openapi_types.UUID, workflowRun openapi_types.UUID) (*http.Request, error) { var err error @@ -5050,6 +5252,22 @@ func NewWorkflowRunListRequest(server string, tenant openapi_types.UUID, params } + if params.Kinds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "kinds", runtime.ParamLocationQuery, *params.Kinds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.AdditionalMetadata != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "additionalMetadata", runtime.ParamLocationQuery, *params.AdditionalMetadata); err != nil { @@ -5066,6 +5284,38 @@ func NewWorkflowRunListRequest(server string, tenant openapi_types.UUID, params } + if params.OrderByField != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "orderByField", runtime.ParamLocationQuery, *params.OrderByField); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.OrderByDirection != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "orderByDirection", runtime.ParamLocationQuery, *params.OrderByDirection); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -5708,6 +5958,87 @@ func NewWorkerGetRequest(server string, worker openapi_types.UUID) (*http.Reques return req, nil } +// NewWorkerUpdateRequest calls the generic WorkerUpdate builder with application/json body +func NewWorkerUpdateRequest(server string, worker openapi_types.UUID, body WorkerUpdateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkerUpdateRequestWithBody(server, worker, "application/json", bodyReader) +} + +// NewWorkerUpdateRequestWithBody generates requests for WorkerUpdate with any type of body +func NewWorkerUpdateRequestWithBody(server string, worker openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "worker", runtime.ParamLocationPath, worker) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/workers/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewWorkflowRunGetInputRequest generates requests for WorkflowRunGetInput +func NewWorkflowRunGetInputRequest(server string, workflowRun openapi_types.UUID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workflow-run", runtime.ParamLocationPath, workflowRun) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v1/workflow-runs/%s/input", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + // NewWorkflowDeleteRequest generates requests for WorkflowDelete func NewWorkflowDeleteRequest(server string, workflow openapi_types.UUID) (*http.Request, error) { var err error @@ -6231,6 +6562,11 @@ type ClientWithResponsesInterface interface { // WorkerListWithResponse request WorkerListWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*WorkerListResponse, error) + // WorkflowRunUpdateReplayWithBodyWithResponse request with any body + WorkflowRunUpdateReplayWithBodyWithResponse(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WorkflowRunUpdateReplayResponse, error) + + WorkflowRunUpdateReplayWithResponse(ctx context.Context, tenant openapi_types.UUID, body WorkflowRunUpdateReplayJSONRequestBody, reqEditors ...RequestEditorFn) (*WorkflowRunUpdateReplayResponse, error) + // WorkflowRunGetWithResponse request WorkflowRunGetWithResponse(ctx context.Context, tenant openapi_types.UUID, workflowRun openapi_types.UUID, reqEditors ...RequestEditorFn) (*WorkflowRunGetResponse, error) @@ -6306,6 +6642,14 @@ type ClientWithResponsesInterface interface { // WorkerGetWithResponse request WorkerGetWithResponse(ctx context.Context, worker openapi_types.UUID, reqEditors ...RequestEditorFn) (*WorkerGetResponse, error) + // WorkerUpdateWithBodyWithResponse request with any body + WorkerUpdateWithBodyWithResponse(ctx context.Context, worker openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WorkerUpdateResponse, error) + + WorkerUpdateWithResponse(ctx context.Context, worker openapi_types.UUID, body WorkerUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*WorkerUpdateResponse, error) + + // WorkflowRunGetInputWithResponse request + WorkflowRunGetInputWithResponse(ctx context.Context, workflowRun openapi_types.UUID, reqEditors ...RequestEditorFn) (*WorkflowRunGetInputResponse, error) + // WorkflowDeleteWithResponse request WorkflowDeleteWithResponse(ctx context.Context, workflow openapi_types.UUID, reqEditors ...RequestEditorFn) (*WorkflowDeleteResponse, error) @@ -7404,6 +7748,31 @@ func (r WorkerListResponse) StatusCode() int { return 0 } +type WorkflowRunUpdateReplayResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReplayWorkflowRunsResponse + JSON400 *APIErrors + JSON403 *APIErrors + JSON429 *APIErrors +} + +// Status returns HTTPResponse.Status +func (r WorkflowRunUpdateReplayResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkflowRunUpdateReplayResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type WorkflowRunGetResponse struct { Body []byte HTTPResponse *http.Response @@ -7898,6 +8267,55 @@ func (r WorkerGetResponse) StatusCode() int { return 0 } +type WorkerUpdateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Worker + JSON400 *APIErrors + JSON403 *APIErrors +} + +// Status returns HTTPResponse.Status +func (r WorkerUpdateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkerUpdateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type WorkflowRunGetInputResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} + JSON400 *APIErrors + JSON403 *APIErrors + JSON404 *APIErrors +} + +// Status returns HTTPResponse.Status +func (r WorkflowRunGetInputResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkflowRunGetInputResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type WorkflowDeleteResponse struct { Body []byte HTTPResponse *http.Response @@ -8548,6 +8966,23 @@ func (c *ClientWithResponses) WorkerListWithResponse(ctx context.Context, tenant return ParseWorkerListResponse(rsp) } +// WorkflowRunUpdateReplayWithBodyWithResponse request with arbitrary body returning *WorkflowRunUpdateReplayResponse +func (c *ClientWithResponses) WorkflowRunUpdateReplayWithBodyWithResponse(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WorkflowRunUpdateReplayResponse, error) { + rsp, err := c.WorkflowRunUpdateReplayWithBody(ctx, tenant, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseWorkflowRunUpdateReplayResponse(rsp) +} + +func (c *ClientWithResponses) WorkflowRunUpdateReplayWithResponse(ctx context.Context, tenant openapi_types.UUID, body WorkflowRunUpdateReplayJSONRequestBody, reqEditors ...RequestEditorFn) (*WorkflowRunUpdateReplayResponse, error) { + rsp, err := c.WorkflowRunUpdateReplay(ctx, tenant, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseWorkflowRunUpdateReplayResponse(rsp) +} + // WorkflowRunGetWithResponse request returning *WorkflowRunGetResponse func (c *ClientWithResponses) WorkflowRunGetWithResponse(ctx context.Context, tenant openapi_types.UUID, workflowRun openapi_types.UUID, reqEditors ...RequestEditorFn) (*WorkflowRunGetResponse, error) { rsp, err := c.WorkflowRunGet(ctx, tenant, workflowRun, reqEditors...) @@ -8785,6 +9220,32 @@ func (c *ClientWithResponses) WorkerGetWithResponse(ctx context.Context, worker return ParseWorkerGetResponse(rsp) } +// WorkerUpdateWithBodyWithResponse request with arbitrary body returning *WorkerUpdateResponse +func (c *ClientWithResponses) WorkerUpdateWithBodyWithResponse(ctx context.Context, worker openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WorkerUpdateResponse, error) { + rsp, err := c.WorkerUpdateWithBody(ctx, worker, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseWorkerUpdateResponse(rsp) +} + +func (c *ClientWithResponses) WorkerUpdateWithResponse(ctx context.Context, worker openapi_types.UUID, body WorkerUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*WorkerUpdateResponse, error) { + rsp, err := c.WorkerUpdate(ctx, worker, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseWorkerUpdateResponse(rsp) +} + +// WorkflowRunGetInputWithResponse request returning *WorkflowRunGetInputResponse +func (c *ClientWithResponses) WorkflowRunGetInputWithResponse(ctx context.Context, workflowRun openapi_types.UUID, reqEditors ...RequestEditorFn) (*WorkflowRunGetInputResponse, error) { + rsp, err := c.WorkflowRunGetInput(ctx, workflowRun, reqEditors...) + if err != nil { + return nil, err + } + return ParseWorkflowRunGetInputResponse(rsp) +} + // WorkflowDeleteWithResponse request returning *WorkflowDeleteResponse func (c *ClientWithResponses) WorkflowDeleteWithResponse(ctx context.Context, workflow openapi_types.UUID, reqEditors ...RequestEditorFn) (*WorkflowDeleteResponse, error) { rsp, err := c.WorkflowDelete(ctx, workflow, reqEditors...) @@ -10617,6 +11078,53 @@ func ParseWorkerListResponse(rsp *http.Response) (*WorkerListResponse, error) { return response, nil } +// ParseWorkflowRunUpdateReplayResponse parses an HTTP response from a WorkflowRunUpdateReplayWithResponse call +func ParseWorkflowRunUpdateReplayResponse(rsp *http.Response) (*WorkflowRunUpdateReplayResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WorkflowRunUpdateReplayResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReplayWorkflowRunsResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIErrors + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APIErrors + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIErrors + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + } + + return response, nil +} + // ParseWorkflowRunGetResponse parses an HTTP response from a WorkflowRunGetWithResponse call func ParseWorkflowRunGetResponse(rsp *http.Response) (*WorkflowRunGetResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -11360,6 +11868,93 @@ func ParseWorkerGetResponse(rsp *http.Response) (*WorkerGetResponse, error) { return response, nil } +// ParseWorkerUpdateResponse parses an HTTP response from a WorkerUpdateWithResponse call +func ParseWorkerUpdateResponse(rsp *http.Response) (*WorkerUpdateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WorkerUpdateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Worker + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIErrors + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APIErrors + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + } + + return response, nil +} + +// ParseWorkflowRunGetInputResponse parses an HTTP response from a WorkflowRunGetInputWithResponse call +func ParseWorkflowRunGetInputResponse(rsp *http.Response) (*WorkflowRunGetInputResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WorkflowRunGetInputResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIErrors + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APIErrors + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest APIErrors + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + // ParseWorkflowDeleteResponse parses an HTTP response from a WorkflowDeleteWithResponse call func ParseWorkflowDeleteResponse(rsp *http.Response) (*WorkflowDeleteResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) diff --git a/pkg/client/types/file.go b/pkg/client/types/file.go index 6ce85aa0d..cf3210c8f 100644 --- a/pkg/client/types/file.go +++ b/pkg/client/types/file.go @@ -9,9 +9,22 @@ import ( "gopkg.in/yaml.v3" ) +type StickyStrategy int32 + +const ( + StickyStrategy_SOFT StickyStrategy = 0 + StickyStrategy_HARD StickyStrategy = 1 +) + +func StickyStrategyPtr(v StickyStrategy) *StickyStrategy { + return &v +} + type Workflow struct { Name string `yaml:"name,omitempty"` + ScheduleTimeout string `yaml:"scheduleTimeout,omitempty"` + Concurrency *WorkflowConcurrency `yaml:"concurrency,omitempty"` Version string `yaml:"version,omitempty"` @@ -23,6 +36,8 @@ type Workflow struct { Jobs map[string]WorkflowJob `yaml:"jobs"` OnFailureJob *WorkflowJob `yaml:"onFailureJob,omitempty"` + + StickyStrategy *StickyStrategy `yaml:"sticky,omitempty"` } type WorkflowConcurrencyLimitStrategy string @@ -68,15 +83,38 @@ type WorkflowJob struct { Steps []WorkflowStep `yaml:"steps"` } +type WorkerLabelComparator int32 + +const ( + WorkerLabelComparator_EQUAL WorkerLabelComparator = 0 + WorkerLabelComparator_NOT_EQUAL WorkerLabelComparator = 1 + WorkerLabelComparator_GREATER_THAN WorkerLabelComparator = 2 + WorkerLabelComparator_GREATER_THAN_OR_EQUAL WorkerLabelComparator = 3 + WorkerLabelComparator_LESS_THAN WorkerLabelComparator = 4 + WorkerLabelComparator_LESS_THAN_OR_EQUAL WorkerLabelComparator = 5 +) + +func ComparatorPtr(v WorkerLabelComparator) *WorkerLabelComparator { + return &v +} + +type DesiredWorkerLabel struct { + Value any `yaml:"value,omitempty"` + Required bool `yaml:"required,omitempty"` + Weight int32 `yaml:"weight,omitempty"` + Comparator *WorkerLabelComparator `yaml:"comparator,omitempty"` +} + type WorkflowStep struct { - Name string `yaml:"name,omitempty"` - ID string `yaml:"id,omitempty"` - ActionID string `yaml:"action"` - Timeout string `yaml:"timeout,omitempty"` - With map[string]interface{} `yaml:"with,omitempty"` - Parents []string `yaml:"parents,omitempty"` - Retries int `yaml:"retries"` - RateLimits []RateLimit `yaml:"rateLimits,omitempty"` + Name string `yaml:"name,omitempty"` + ID string `yaml:"id,omitempty"` + ActionID string `yaml:"action"` + Timeout string `yaml:"timeout,omitempty"` + With map[string]interface{} `yaml:"with,omitempty"` + Parents []string `yaml:"parents,omitempty"` + Retries int `yaml:"retries"` + RateLimits []RateLimit `yaml:"rateLimits,omitempty"` + DesiredLabels map[string]*DesiredWorkerLabel `yaml:"desiredLabels,omitempty"` } type RateLimit struct { diff --git a/pkg/config/database/config.go b/pkg/config/database/config.go index aecea4e0d..ffda6064c 100644 --- a/pkg/config/database/config.go +++ b/pkg/config/database/config.go @@ -18,7 +18,7 @@ type ConfigFile struct { PostgresDbName string `mapstructure:"dbName" json:"dbName,omitempty" default:"hatchet"` PostgresSSLMode string `mapstructure:"sslMode" json:"sslMode,omitempty" default:"disable"` - MaxConns int `mapstructure:"maxConns" json:"maxConns,omitempty" default:"5"` + MaxConns int `mapstructure:"maxConns" json:"maxConns,omitempty" default:"20"` Seed SeedConfigFile `mapstructure:"seed" json:"seed,omitempty"` diff --git a/pkg/config/loader/loader.go b/pkg/config/loader/loader.go index bdc65849e..52811f8ac 100644 --- a/pkg/config/loader/loader.go +++ b/pkg/config/loader/loader.go @@ -182,7 +182,7 @@ func GetDatabaseConfigFromConfigFile(cf *database.ConfigFile, runtime *server.Co }, Pool: pool, APIRepository: prisma.NewAPIRepository(c, pool, prisma.WithLogger(&l), prisma.WithCache(ch), prisma.WithMetered(meter)), - EngineRepository: prisma.NewEngineRepository(pool, prisma.WithLogger(&l), prisma.WithCache(ch), prisma.WithMetered(meter)), + EngineRepository: prisma.NewEngineRepository(pool, runtime, prisma.WithLogger(&l), prisma.WithCache(ch), prisma.WithMetered(meter)), EntitlementRepository: entitlementRepo, Seed: cf.Seed, }, nil @@ -220,6 +220,7 @@ func GetServerConfigFromConfigfile(dc *database.Config, cf *server.ServerConfigF cleanup1, mq = rabbitmq.New( rabbitmq.WithURL(cf.MessageQueue.RabbitMQ.URL), rabbitmq.WithLogger(&l), + rabbitmq.WithQos(cf.MessageQueue.RabbitMQ.Qos), ) ing, err = ingestor.NewIngestor( diff --git a/pkg/config/server/server.go b/pkg/config/server/server.go index 3bd99fd80..2e7cba688 100644 --- a/pkg/config/server/server.go +++ b/pkg/config/server/server.go @@ -37,7 +37,7 @@ type ServerConfigFile struct { MessageQueue MessageQueueConfigFile `mapstructure:"msgQueue" json:"msgQueue,omitempty"` - Services []string `mapstructure:"services" json:"services,omitempty" default:"[\"health\", \"ticker\", \"grpc\", \"eventscontroller\", \"queue\", \"webhookscontroller\", \"heartbeater\"]"` + Services []string `mapstructure:"services" json:"services,omitempty" default:"[\"health\", \"ticker\", \"grpc\", \"eventscontroller\", \"queue\", \"webhookscontroller\", \"heartbeater\", \"retention\"]"` TLS shared.TLSConfigFile `mapstructure:"tls" json:"tls,omitempty"` @@ -72,6 +72,9 @@ type ConfigFileRuntime struct { // GRPCInsecure controls whether the grpc server is insecure or uses certs GRPCInsecure bool `mapstructure:"grpcInsecure" json:"grpcInsecure,omitempty" default:"false"` + // GRPCMaxMsgSize is the maximum message size that the grpc server will accept + GRPCMaxMsgSize int `mapstructure:"grpcMaxMsgSize" json:"grpcMaxMsgSize,omitempty" default:"4194304"` + // ShutdownWait is the time between the readiness probe being offline when a shutdown is triggered and the actual start of cleaning up resources. ShutdownWait time.Duration `mapstructure:"shutdownWait" json:"shutdownWait,omitempty" default:"20s"` @@ -81,6 +84,9 @@ type ConfigFileRuntime struct { // Default limit values Limits LimitConfigFile `mapstructure:"limits" json:"limits,omitempty"` + // RequeueLimit is the number of times a message will be requeued in each attempt + RequeueLimit int `mapstructure:"requeueLimit" json:"requeueLimit,omitempty" default:"100"` + // Allow new tenants to be created AllowSignup bool `mapstructure:"allowSignup" json:"allowSignup,omitempty" default:"true"` @@ -100,6 +106,8 @@ type SecurityCheckConfigFile struct { } type LimitConfigFile struct { + DefaultTenantRetentionPeriod string `mapstructure:"defaultTenantRetentionPeriod" json:"defaultTenantRetentionPeriod,omitempty" default:"720h"` + DefaultWorkflowRunLimit int `mapstructure:"defaultWorkflowRunLimit" json:"defaultWorkflowRunLimit,omitempty" default:"1000"` DefaultWorkflowRunAlarmLimit int `mapstructure:"defaultWorkflowRunAlarmLimit" json:"defaultWorkflowRunAlarmLimit,omitempty" default:"750"` DefaultWorkflowRunWindow time.Duration `mapstructure:"defaultWorkflowRunWindow" json:"defaultWorkflowRunWindow,omitempty" default:"24h"` @@ -262,6 +270,7 @@ type MessageQueueConfigFile struct { type RabbitMQConfigFile struct { URL string `mapstructure:"url" json:"url,omitempty" validate:"required" default:"amqp://user:password@localhost:5672/"` + Qos int `mapstructure:"qos" json:"qos,omitempty" default:"100"` } type ConfigFileEmail struct { @@ -358,6 +367,7 @@ func BindAllEnv(v *viper.Viper) { _ = v.BindEnv("runtime.grpcBindAddress", "SERVER_GRPC_BIND_ADDRESS") _ = v.BindEnv("runtime.grpcBroadcastAddress", "SERVER_GRPC_BROADCAST_ADDRESS") _ = v.BindEnv("runtime.grpcInsecure", "SERVER_GRPC_INSECURE") + _ = v.BindEnv("runtime.grpcMaxMsgSize", "SERVER_GRPC_MAX_MSG_SIZE") _ = v.BindEnv("runtime.shutdownWait", "SERVER_SHUTDOWN_WAIT") _ = v.BindEnv("services", "SERVER_SERVICES") _ = v.BindEnv("runtime.enforceLimits", "SERVER_ENFORCE_LIMITS") @@ -371,6 +381,8 @@ func BindAllEnv(v *viper.Viper) { _ = v.BindEnv("securityCheck.endpoint", "SERVER_SECURITY_CHECK_ENDPOINT") // limit options + _ = v.BindEnv("runtime.limits.defaultTenantRetentionPeriod", "SERVER_LIMITS_DEFAULT_TENANT_RETENTION_PERIOD") + _ = v.BindEnv("runtime.limits.defaultWorkflowRunLimit", "SERVER_LIMITS_DEFAULT_WORKFLOW_RUN_LIMIT") _ = v.BindEnv("runtime.limits.defaultWorkflowRunAlarmLimit", "SERVER_LIMITS_DEFAULT_WORKFLOW_RUN_ALARM_LIMIT") _ = v.BindEnv("runtime.limits.defaultWorkflowRunWindow", "SERVER_LIMITS_DEFAULT_WORKFLOW_RUN_WINDOW") @@ -441,6 +453,10 @@ func BindAllEnv(v *viper.Viper) { _ = v.BindEnv("msgQueue.kind", "SERVER_MSGQUEUE_KIND") _ = v.BindEnv("msgQueue.rabbitmq.url", "SERVER_MSGQUEUE_RABBITMQ_URL") + // throughput options + _ = v.BindEnv("msgQueue.rabbitmq.qos", "SERVER_MSGQUEUE_RABBITMQ_QOS") + _ = v.BindEnv("runtime.requeueLimit", "SERVER_REQUEUE_LIMIT") + // tls options _ = v.BindEnv("tls.tlsStrategy", "SERVER_TLS_STRATEGY") _ = v.BindEnv("tls.tlsCert", "SERVER_TLS_CERT") @@ -458,6 +474,7 @@ func BindAllEnv(v *viper.Viper) { // otel options _ = v.BindEnv("otel.serviceName", "SERVER_OTEL_SERVICE_NAME") _ = v.BindEnv("otel.collectorURL", "SERVER_OTEL_COLLECTOR_URL") + _ = v.BindEnv("otel.traceIdRatio", "SERVER_OTEL_TRACE_ID_RATIO") // tenant alerting options _ = v.BindEnv("tenantAlerting.slack.enabled", "SERVER_TENANT_ALERTING_SLACK_ENABLED") diff --git a/pkg/config/shared/shared.go b/pkg/config/shared/shared.go index a91150faa..2c9b0e02a 100644 --- a/pkg/config/shared/shared.go +++ b/pkg/config/shared/shared.go @@ -22,4 +22,5 @@ type LoggerConfigFile struct { type OpenTelemetryConfigFile struct { CollectorURL string `mapstructure:"collectorURL" json:"collectorURL,omitempty"` ServiceName string `mapstructure:"serviceName" json:"serviceName,omitempty" default:"server"` + TraceIdRatio string `mapstructure:"traceIdRatio" json:"traceIdRatio,omitempty" default:"1"` } diff --git a/pkg/repository/api_token.go b/pkg/repository/api_token.go index 57b0e9a7d..2882d4fa5 100644 --- a/pkg/repository/api_token.go +++ b/pkg/repository/api_token.go @@ -20,6 +20,8 @@ type CreateAPITokenOpts struct { // (optional) A name for this API token Name *string `validate:"omitempty,max=255"` + + Internal bool } type APITokenRepository interface { diff --git a/pkg/repository/event.go b/pkg/repository/event.go index 0772ad584..f01dbdd68 100644 --- a/pkg/repository/event.go +++ b/pkg/repository/event.go @@ -2,6 +2,7 @@ package repository import ( "context" + "time" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" @@ -85,4 +86,12 @@ type EventEngineRepository interface { GetEventForEngine(ctx context.Context, tenantId, id string) (*dbsqlc.Event, error) ListEventsByIds(ctx context.Context, tenantId string, ids []string) ([]*dbsqlc.Event, error) + + // DeleteExpiredEvents deletes events that were created before the given time. It returns the number of deleted events + // and the number of non-deleted events that match the conditions. + SoftDeleteExpiredEvents(ctx context.Context, tenantId string, before time.Time) (bool, error) + + // ClearEventPayloadData removes the potentially large payload data of events that were created before the given time. + // It returns the number of events that were updated and the number of events that were not updated. + ClearEventPayloadData(ctx context.Context, tenantId string) (bool, error) } diff --git a/pkg/repository/job_run.go b/pkg/repository/job_run.go index 5aa43ae09..473ad9a81 100644 --- a/pkg/repository/job_run.go +++ b/pkg/repository/job_run.go @@ -38,4 +38,6 @@ type JobRunEngineRepository interface { ListJobRunsForWorkflowRun(ctx context.Context, tenantId, workflowRunId string) ([]*dbsqlc.ListJobRunsForWorkflowRunRow, error) GetJobRunByWorkflowRunIdAndJobId(ctx context.Context, tenantId, workflowRunId, jobId string) (*dbsqlc.GetJobRunByWorkflowRunIdAndJobIdRow, error) + + ClearJobRunPayloadData(ctx context.Context, tenantId string) (bool, error) } diff --git a/pkg/repository/prisma/api_token.go b/pkg/repository/prisma/api_token.go index 08af8a26c..b35e2eab9 100644 --- a/pkg/repository/prisma/api_token.go +++ b/pkg/repository/prisma/api_token.go @@ -45,6 +45,7 @@ func (a *apiTokenRepository) CreateAPIToken(opts *repository.CreateAPITokenOpts) optionals := []db.APITokenSetParam{ db.APIToken.ID.Set(opts.ID), db.APIToken.ExpiresAt.Set(opts.ExpiresAt), + db.APIToken.Internal.Set(opts.Internal), } if opts.TenantId != nil { @@ -77,6 +78,7 @@ func (a *apiTokenRepository) ListAPITokensByTenant(tenantId string) ([]db.APITok return a.client.APIToken.FindMany( db.APIToken.TenantID.Equals(tenantId), db.APIToken.Revoked.Equals(false), + db.APIToken.Internal.Equals(false), ).Exec(context.Background()) } @@ -108,6 +110,7 @@ func (a *engineTokenRepository) CreateAPIToken(ctx context.Context, opts *reposi createParams := dbsqlc.CreateAPITokenParams{ ID: sqlchelpers.UUIDFromStr(opts.ID), Expiresat: sqlchelpers.TimestampFromTime(opts.ExpiresAt), + Internal: sqlchelpers.BoolFromBoolean(opts.Internal), } if opts.TenantId != nil { diff --git a/pkg/repository/prisma/db/db_gen.go b/pkg/repository/prisma/db/db_gen.go index 39e5b5de4..7daf8e39d 100644 --- a/pkg/repository/prisma/db/db_gen.go +++ b/pkg/repository/prisma/db/db_gen.go @@ -245,6 +245,9 @@ model Tenant { workerPartition TenantWorkerPartition? @relation(fields: [workerPartitionId], references: [id], onDelete: SetNull, onUpdate: SetNull) workerPartitionId String? + // The data retention period for deletable resources. This is a Go duration string. + dataRetentionPeriod String @default("720h") + events Event[] workflows Workflow[] jobs Job[] @@ -277,6 +280,7 @@ model Tenant { limits TenantResourceLimit[] limitAlerts TenantResourceLimitAlert[] webhookWorkers WebhookWorker[] + dedupes WorkflowRunDedupe[] @@index([controllerPartitionId]) @@index([workerPartitionId]) @@ -440,6 +444,9 @@ model APIToken { // when to next alert about expiration nextAlertAt DateTime? + // whether this token is for internal (internal to Hatchet) use + internal Boolean @default(false) + // an optional name for the token name String? @@ -479,6 +486,10 @@ model Event { // the workflow runs that were triggered by this event workflowRuns WorkflowRunTriggeredBy[] + + @@index([tenantId]) + @@index([createdAt]) + @@index([tenantId, createdAt]) } model WorkflowTag { @@ -530,6 +541,18 @@ model Workflow { // workflow names are unique per tenant @@unique([tenantId, name]) + @@index([deletedAt]) +} + +enum StickyStrategy { + SOFT + HARD +} + +enum WorkflowKind { + FUNCTION + DURABLE + DAG } model WorkflowVersion { @@ -555,6 +578,9 @@ model WorkflowVersion { // concurrency limits for the workflow concurrency WorkflowConcurrency? + // sticky strategy for the workflow to assign steps to the same worker + sticky StickyStrategy? + // the declared jobs jobs Job[] @@ -568,8 +594,13 @@ model WorkflowVersion { // the scheduled runs for the workflow scheduled WorkflowTriggerScheduledRef[] + // the kind of workflow + kind WorkflowKind @default(DAG) + // the default amount of time to wait while scheduling a step run scheduleTimeout String @default("5m") + + @@index([deletedAt]) } enum ConcurrencyLimitStrategy { @@ -774,6 +805,27 @@ model Action { @@unique([tenantId, actionId]) } +model StepDesiredWorkerLabel { + id BigInt @id @default(autoincrement()) @db.BigInt + + createdAt DateTime @default(now()) + updatedAt DateTime @default(now()) @updatedAt + + step Step @relation(fields: [stepId], references: [id], onDelete: Cascade, onUpdate: Cascade) + stepId String @db.Uuid + + key String + strValue String? + intValue Int? + + required Boolean + comparator WorkerLabelComparator + weight Int + + @@unique([stepId, key]) + @@index([stepId]) +} + model Step { // base fields id String @id @unique @default(uuid()) @db.Uuid @@ -817,6 +869,8 @@ model Step { rateLimits StepRateLimit[] + workerLabels StepDesiredWorkerLabel[] + // readable ids are unique per job @@unique([jobId, readableId]) } @@ -870,6 +924,23 @@ enum WorkflowRunStatus { FAILED } +model WorkflowRunStickyState { + id BigInt @id @default(autoincrement()) @db.BigInt + createdAt DateTime @default(now()) + updatedAt DateTime @default(now()) @updatedAt + tenantId String @db.Uuid + + // the parent workflow run + workflowRun WorkflowRun @relation(fields: [workflowRunId], references: [id], onDelete: Cascade, onUpdate: Cascade) + workflowRunId String @unique @db.Uuid + + // the sticky state + desiredWorkerId String? @db.Uuid + + // the sticky state value + strategy StickyStrategy +} + model WorkflowRun { // base fields id String @id @unique @default(uuid()) @db.Uuid @@ -897,6 +968,8 @@ model WorkflowRun { triggeredBy WorkflowRunTriggeredBy? + sticky WorkflowRunStickyState? + // the run error error String? @@ -906,6 +979,9 @@ model WorkflowRun { // the run finished at finishedAt DateTime? + // the duration of the run (ms) + duration Int? + // a list of dependents for this workflow run children WorkflowRun[] @relation("WorkflowRunChild") scheduledChildren WorkflowTriggerScheduledRef[] @@ -927,6 +1003,36 @@ model WorkflowRun { additionalMetadata Json? @@unique([parentId, parentStepRunId, childKey]) + @@index([tenantId]) + @@index([workflowVersionId]) + @@index([createdAt]) + @@index([tenantId, createdAt]) + @@index([finishedAt]) + @@index([status]) + @@index([deletedAt]) +} + +model WorkflowRunDedupe { + id BigInt @unique @default(autoincrement()) @db.BigInt + createdAt DateTime @default(now()) + updatedAt DateTime @default(now()) @updatedAt + + // the parent tenant + tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade, onUpdate: Cascade) + tenantId String @db.Uuid + + // the parent workflow + workflowId String @db.Uuid + + // the workflow run id which used this dedupe value + workflowRunId String @db.Uuid + + // the dedupe value + value String + + // DO NOT REMOVE - this uniqueness constraint is cased on in code + @@unique([tenantId, workflowId, value]) + @@index([tenantId, value]) } model GetGroupKeyRun { @@ -934,7 +1040,7 @@ model GetGroupKeyRun { id String @id @unique @default(uuid()) @db.Uuid createdAt DateTime @default(now()) updatedAt DateTime @default(now()) @updatedAt - deletedAt DateTime? + deletedAt DateTime? // TODO verify we're setting this // the parent tenant tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade, onUpdate: Cascade) @@ -987,6 +1093,8 @@ model GetGroupKeyRun { // errors while cancelling the run cancelledError String? + + @@index([deletedAt]) } model WorkflowRunTriggeredBy { @@ -1018,6 +1126,10 @@ model WorkflowRunTriggeredBy { // a specific time that triggered this workflow scheduled WorkflowTriggerScheduledRef? @relation(fields: [scheduledId], references: [id]) scheduledId String? @unique @db.Uuid + + @@index([tenantId]) + @@index([eventId]) + @@index([parentId]) } enum JobRunStatus { @@ -1081,6 +1193,7 @@ model JobRun { // index for ResolveWorkflowRunStatus and ListJobRunsForWorkflowRun @@index([workflowRunId, tenantId]) + @@index([deletedAt]) } model JobRunLookupData { @@ -1216,8 +1329,9 @@ model StepRun { events StepRunEvent[] - // index for ListStepRunsToRequeue and ListStepRunsToReassign - @@index([tenantId, status, requeueAfter, createdAt]) + @@index([tenantId]) + @@index([workerId]) + @@index([createdAt]) // index for LinkStepRunParents @@index([stepId]) // index for ListStartableStepRuns @@ -1226,6 +1340,11 @@ model StepRun { @@index([id, tenantId]) // index for ResolveJobRunStatus, ResolveLaterStepRuns, and LinkStepRunParents @@index([jobRunId, tenantId, order]) + // index for ListStepRunsToRequeue, ListStepRunsToReassign + @@index([jobRunId, status, tenantId]) + // index for PollStepRuns + @@index([tenantId, status, timeoutAt]) + @@index([deletedAt]) } enum StepRunEventReason { @@ -1353,6 +1472,32 @@ model Ticker { tenantAlerts TenantAlertingSettings[] } +enum WorkerLabelComparator { + EQUAL + NOT_EQUAL + GREATER_THAN + GREATER_THAN_OR_EQUAL + LESS_THAN + LESS_THAN_OR_EQUAL +} + +model WorkerLabel { + id BigInt @id @default(autoincrement()) @db.BigInt + + createdAt DateTime @default(now()) + updatedAt DateTime @default(now()) @updatedAt + + worker Worker @relation(fields: [workerId], references: [id], onDelete: Cascade, onUpdate: Cascade) + workerId String @db.Uuid + + key String + strValue String? + intValue Int? + + @@unique([workerId, key]) + @@index([workerId]) +} + model Worker { // base fields id String @id @unique @default(uuid()) @db.Uuid @@ -1360,6 +1505,8 @@ model Worker { updatedAt DateTime @default(now()) @updatedAt deletedAt DateTime? + labels WorkerLabel[] + // the parent tenant tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade, onUpdate: Cascade) tenantId String @db.Uuid @@ -1367,7 +1514,10 @@ model Worker { // the last heartbeat time lastHeartbeatAt DateTime? - // whether this worker is active or not + // whether the worker has been marked as paused + isPaused Boolean @default(false) + + // whether this worker GRPC connection is active or not isActive Boolean @default(false) lastListenerEstablished DateTime? @@ -1571,7 +1721,7 @@ model SNSIntegration { } model SecurityCheckIdent { - id String @id @unique @default(uuid()) @db.Uuid + id String @id @unique @default(uuid()) @db.Uuid } ` const schemaDatasourceURL = "" @@ -1612,7 +1762,7 @@ func NewClient(options ...func(config *PrismaConfig)) *PrismaClient { url = os.Getenv(schemaEnvVarName) if url == "" { //panic("no connection string found") - println("WARNING: env var which was defined in the Prisma schema is not set" + schemaEnvVarName) + println("WARNING: env var which was defined in the Prisma schema is not set " + schemaEnvVarName) } } } @@ -1670,10 +1820,13 @@ func newClient() *PrismaClient { c.WorkflowTriggerScheduledRef = workflowTriggerScheduledRefActions{client: c} c.Job = jobActions{client: c} c.Action = actionActions{client: c} + c.StepDesiredWorkerLabel = stepDesiredWorkerLabelActions{client: c} c.Step = stepActions{client: c} c.StepRateLimit = stepRateLimitActions{client: c} c.RateLimit = rateLimitActions{client: c} + c.WorkflowRunStickyState = workflowRunStickyStateActions{client: c} c.WorkflowRun = workflowRunActions{client: c} + c.WorkflowRunDedupe = workflowRunDedupeActions{client: c} c.GetGroupKeyRun = getGroupKeyRunActions{client: c} c.WorkflowRunTriggeredBy = workflowRunTriggeredByActions{client: c} c.JobRun = jobRunActions{client: c} @@ -1683,6 +1836,7 @@ func newClient() *PrismaClient { c.StepRunResultArchive = stepRunResultArchiveActions{client: c} c.Dispatcher = dispatcherActions{client: c} c.Ticker = tickerActions{client: c} + c.WorkerLabel = workerLabelActions{client: c} c.Worker = workerActions{client: c} c.WorkerSemaphore = workerSemaphoreActions{client: c} c.WorkerSemaphoreSlot = workerSemaphoreSlotActions{client: c} @@ -1770,14 +1924,20 @@ type PrismaClient struct { Job jobActions // Action provides access to CRUD methods. Action actionActions + // StepDesiredWorkerLabel provides access to CRUD methods. + StepDesiredWorkerLabel stepDesiredWorkerLabelActions // Step provides access to CRUD methods. Step stepActions // StepRateLimit provides access to CRUD methods. StepRateLimit stepRateLimitActions // RateLimit provides access to CRUD methods. RateLimit rateLimitActions + // WorkflowRunStickyState provides access to CRUD methods. + WorkflowRunStickyState workflowRunStickyStateActions // WorkflowRun provides access to CRUD methods. WorkflowRun workflowRunActions + // WorkflowRunDedupe provides access to CRUD methods. + WorkflowRunDedupe workflowRunDedupeActions // GetGroupKeyRun provides access to CRUD methods. GetGroupKeyRun getGroupKeyRunActions // WorkflowRunTriggeredBy provides access to CRUD methods. @@ -1796,6 +1956,8 @@ type PrismaClient struct { Dispatcher dispatcherActions // Ticker provides access to CRUD methods. Ticker tickerActions + // WorkerLabel provides access to CRUD methods. + WorkerLabel workerLabelActions // Worker provides access to CRUD methods. Worker workerActions // WorkerSemaphore provides access to CRUD methods. @@ -1859,6 +2021,23 @@ const ( ) type RawInviteLinkStatus InviteLinkStatus +type StickyStrategy string + +const ( + StickyStrategySoft StickyStrategy = "SOFT" + StickyStrategyHard StickyStrategy = "HARD" +) + +type RawStickyStrategy StickyStrategy +type WorkflowKind string + +const ( + WorkflowKindFunction WorkflowKind = "FUNCTION" + WorkflowKindDurable WorkflowKind = "DURABLE" + WorkflowKindDag WorkflowKind = "DAG" +) + +type RawWorkflowKind WorkflowKind type ConcurrencyLimitStrategy string const ( @@ -1941,6 +2120,18 @@ const ( ) type RawStepRunEventSeverity StepRunEventSeverity +type WorkerLabelComparator string + +const ( + WorkerLabelComparatorEqual WorkerLabelComparator = "EQUAL" + WorkerLabelComparatorNotEqual WorkerLabelComparator = "NOT_EQUAL" + WorkerLabelComparatorGreaterThan WorkerLabelComparator = "GREATER_THAN" + WorkerLabelComparatorGreaterThanOrEqual WorkerLabelComparator = "GREATER_THAN_OR_EQUAL" + WorkerLabelComparatorLessThan WorkerLabelComparator = "LESS_THAN" + WorkerLabelComparatorLessThanOrEqual WorkerLabelComparator = "LESS_THAN_OR_EQUAL" +) + +type RawWorkerLabelComparator WorkerLabelComparator type VcsProvider string const ( @@ -2065,6 +2256,7 @@ const ( TenantScalarFieldEnumAnalyticsOptOut TenantScalarFieldEnum = "analyticsOptOut" TenantScalarFieldEnumControllerPartitionID TenantScalarFieldEnum = "controllerPartitionId" TenantScalarFieldEnumWorkerPartitionID TenantScalarFieldEnum = "workerPartitionId" + TenantScalarFieldEnumDataRetentionPeriod TenantScalarFieldEnum = "dataRetentionPeriod" TenantScalarFieldEnumAlertMemberEmails TenantScalarFieldEnum = "alertMemberEmails" ) @@ -2148,6 +2340,7 @@ const ( APITokenScalarFieldEnumExpiresAt APITokenScalarFieldEnum = "expiresAt" APITokenScalarFieldEnumRevoked APITokenScalarFieldEnum = "revoked" APITokenScalarFieldEnumNextAlertAt APITokenScalarFieldEnum = "nextAlertAt" + APITokenScalarFieldEnumInternal APITokenScalarFieldEnum = "internal" APITokenScalarFieldEnumName APITokenScalarFieldEnum = "name" APITokenScalarFieldEnumTenantID APITokenScalarFieldEnum = "tenantId" ) @@ -2200,7 +2393,9 @@ const ( WorkflowVersionScalarFieldEnumVersion WorkflowVersionScalarFieldEnum = "version" WorkflowVersionScalarFieldEnumOrder WorkflowVersionScalarFieldEnum = "order" WorkflowVersionScalarFieldEnumWorkflowID WorkflowVersionScalarFieldEnum = "workflowId" + WorkflowVersionScalarFieldEnumSticky WorkflowVersionScalarFieldEnum = "sticky" WorkflowVersionScalarFieldEnumOnFailureJobID WorkflowVersionScalarFieldEnum = "onFailureJobId" + WorkflowVersionScalarFieldEnumKind WorkflowVersionScalarFieldEnum = "kind" WorkflowVersionScalarFieldEnumScheduleTimeout WorkflowVersionScalarFieldEnum = "scheduleTimeout" ) @@ -2282,6 +2477,21 @@ const ( ActionScalarFieldEnumTenantID ActionScalarFieldEnum = "tenantId" ) +type StepDesiredWorkerLabelScalarFieldEnum string + +const ( + StepDesiredWorkerLabelScalarFieldEnumID StepDesiredWorkerLabelScalarFieldEnum = "id" + StepDesiredWorkerLabelScalarFieldEnumCreatedAt StepDesiredWorkerLabelScalarFieldEnum = "createdAt" + StepDesiredWorkerLabelScalarFieldEnumUpdatedAt StepDesiredWorkerLabelScalarFieldEnum = "updatedAt" + StepDesiredWorkerLabelScalarFieldEnumStepID StepDesiredWorkerLabelScalarFieldEnum = "stepId" + StepDesiredWorkerLabelScalarFieldEnumKey StepDesiredWorkerLabelScalarFieldEnum = "key" + StepDesiredWorkerLabelScalarFieldEnumStrValue StepDesiredWorkerLabelScalarFieldEnum = "strValue" + StepDesiredWorkerLabelScalarFieldEnumIntValue StepDesiredWorkerLabelScalarFieldEnum = "intValue" + StepDesiredWorkerLabelScalarFieldEnumRequired StepDesiredWorkerLabelScalarFieldEnum = "required" + StepDesiredWorkerLabelScalarFieldEnumComparator StepDesiredWorkerLabelScalarFieldEnum = "comparator" + StepDesiredWorkerLabelScalarFieldEnumWeight StepDesiredWorkerLabelScalarFieldEnum = "weight" +) + type StepScalarFieldEnum string const ( @@ -2319,6 +2529,18 @@ const ( RateLimitScalarFieldEnumLastRefill RateLimitScalarFieldEnum = "lastRefill" ) +type WorkflowRunStickyStateScalarFieldEnum string + +const ( + WorkflowRunStickyStateScalarFieldEnumID WorkflowRunStickyStateScalarFieldEnum = "id" + WorkflowRunStickyStateScalarFieldEnumCreatedAt WorkflowRunStickyStateScalarFieldEnum = "createdAt" + WorkflowRunStickyStateScalarFieldEnumUpdatedAt WorkflowRunStickyStateScalarFieldEnum = "updatedAt" + WorkflowRunStickyStateScalarFieldEnumTenantID WorkflowRunStickyStateScalarFieldEnum = "tenantId" + WorkflowRunStickyStateScalarFieldEnumWorkflowRunID WorkflowRunStickyStateScalarFieldEnum = "workflowRunId" + WorkflowRunStickyStateScalarFieldEnumDesiredWorkerID WorkflowRunStickyStateScalarFieldEnum = "desiredWorkerId" + WorkflowRunStickyStateScalarFieldEnumStrategy WorkflowRunStickyStateScalarFieldEnum = "strategy" +) + type WorkflowRunScalarFieldEnum string const ( @@ -2334,6 +2556,7 @@ const ( WorkflowRunScalarFieldEnumError WorkflowRunScalarFieldEnum = "error" WorkflowRunScalarFieldEnumStartedAt WorkflowRunScalarFieldEnum = "startedAt" WorkflowRunScalarFieldEnumFinishedAt WorkflowRunScalarFieldEnum = "finishedAt" + WorkflowRunScalarFieldEnumDuration WorkflowRunScalarFieldEnum = "duration" WorkflowRunScalarFieldEnumParentID WorkflowRunScalarFieldEnum = "parentId" WorkflowRunScalarFieldEnumParentStepRunID WorkflowRunScalarFieldEnum = "parentStepRunId" WorkflowRunScalarFieldEnumChildIndex WorkflowRunScalarFieldEnum = "childIndex" @@ -2341,6 +2564,18 @@ const ( WorkflowRunScalarFieldEnumAdditionalMetadata WorkflowRunScalarFieldEnum = "additionalMetadata" ) +type WorkflowRunDedupeScalarFieldEnum string + +const ( + WorkflowRunDedupeScalarFieldEnumID WorkflowRunDedupeScalarFieldEnum = "id" + WorkflowRunDedupeScalarFieldEnumCreatedAt WorkflowRunDedupeScalarFieldEnum = "createdAt" + WorkflowRunDedupeScalarFieldEnumUpdatedAt WorkflowRunDedupeScalarFieldEnum = "updatedAt" + WorkflowRunDedupeScalarFieldEnumTenantID WorkflowRunDedupeScalarFieldEnum = "tenantId" + WorkflowRunDedupeScalarFieldEnumWorkflowID WorkflowRunDedupeScalarFieldEnum = "workflowId" + WorkflowRunDedupeScalarFieldEnumWorkflowRunID WorkflowRunDedupeScalarFieldEnum = "workflowRunId" + WorkflowRunDedupeScalarFieldEnumValue WorkflowRunDedupeScalarFieldEnum = "value" +) + type GetGroupKeyRunScalarFieldEnum string const ( @@ -2502,6 +2737,18 @@ const ( TickerScalarFieldEnumIsActive TickerScalarFieldEnum = "isActive" ) +type WorkerLabelScalarFieldEnum string + +const ( + WorkerLabelScalarFieldEnumID WorkerLabelScalarFieldEnum = "id" + WorkerLabelScalarFieldEnumCreatedAt WorkerLabelScalarFieldEnum = "createdAt" + WorkerLabelScalarFieldEnumUpdatedAt WorkerLabelScalarFieldEnum = "updatedAt" + WorkerLabelScalarFieldEnumWorkerID WorkerLabelScalarFieldEnum = "workerId" + WorkerLabelScalarFieldEnumKey WorkerLabelScalarFieldEnum = "key" + WorkerLabelScalarFieldEnumStrValue WorkerLabelScalarFieldEnum = "strValue" + WorkerLabelScalarFieldEnumIntValue WorkerLabelScalarFieldEnum = "intValue" +) + type WorkerScalarFieldEnum string const ( @@ -2511,6 +2758,7 @@ const ( WorkerScalarFieldEnumDeletedAt WorkerScalarFieldEnum = "deletedAt" WorkerScalarFieldEnumTenantID WorkerScalarFieldEnum = "tenantId" WorkerScalarFieldEnumLastHeartbeatAt WorkerScalarFieldEnum = "lastHeartbeatAt" + WorkerScalarFieldEnumIsPaused WorkerScalarFieldEnum = "isPaused" WorkerScalarFieldEnumIsActive WorkerScalarFieldEnum = "isActive" WorkerScalarFieldEnumLastListenerEstablished WorkerScalarFieldEnum = "lastListenerEstablished" WorkerScalarFieldEnumName WorkerScalarFieldEnum = "name" @@ -2847,6 +3095,8 @@ const tenantFieldWorkerPartition tenantPrismaFields = "workerPartition" const tenantFieldWorkerPartitionID tenantPrismaFields = "workerPartitionId" +const tenantFieldDataRetentionPeriod tenantPrismaFields = "dataRetentionPeriod" + const tenantFieldEvents tenantPrismaFields = "events" const tenantFieldWorkflows tenantPrismaFields = "workflows" @@ -2909,6 +3159,8 @@ const tenantFieldLimitAlerts tenantPrismaFields = "limitAlerts" const tenantFieldWebhookWorkers tenantPrismaFields = "webhookWorkers" +const tenantFieldDedupes tenantPrismaFields = "dedupes" + type tenantResourceLimitPrismaFields = prismaFields const tenantResourceLimitFieldID tenantResourceLimitPrismaFields = "id" @@ -3043,6 +3295,8 @@ const aPITokenFieldRevoked aPITokenPrismaFields = "revoked" const aPITokenFieldNextAlertAt aPITokenPrismaFields = "nextAlertAt" +const aPITokenFieldInternal aPITokenPrismaFields = "internal" + const aPITokenFieldName aPITokenPrismaFields = "name" const aPITokenFieldTenant aPITokenPrismaFields = "tenant" @@ -3145,6 +3399,8 @@ const workflowVersionFieldTriggers workflowVersionPrismaFields = "triggers" const workflowVersionFieldConcurrency workflowVersionPrismaFields = "concurrency" +const workflowVersionFieldSticky workflowVersionPrismaFields = "sticky" + const workflowVersionFieldJobs workflowVersionPrismaFields = "jobs" const workflowVersionFieldOnFailureJob workflowVersionPrismaFields = "onFailureJob" @@ -3155,6 +3411,8 @@ const workflowVersionFieldRuns workflowVersionPrismaFields = "runs" const workflowVersionFieldScheduled workflowVersionPrismaFields = "scheduled" +const workflowVersionFieldKind workflowVersionPrismaFields = "kind" + const workflowVersionFieldScheduleTimeout workflowVersionPrismaFields = "scheduleTimeout" type workflowConcurrencyPrismaFields = prismaFields @@ -3305,6 +3563,30 @@ const actionFieldWorkers actionPrismaFields = "workers" const actionFieldConcurrency actionPrismaFields = "concurrency" +type stepDesiredWorkerLabelPrismaFields = prismaFields + +const stepDesiredWorkerLabelFieldID stepDesiredWorkerLabelPrismaFields = "id" + +const stepDesiredWorkerLabelFieldCreatedAt stepDesiredWorkerLabelPrismaFields = "createdAt" + +const stepDesiredWorkerLabelFieldUpdatedAt stepDesiredWorkerLabelPrismaFields = "updatedAt" + +const stepDesiredWorkerLabelFieldStep stepDesiredWorkerLabelPrismaFields = "step" + +const stepDesiredWorkerLabelFieldStepID stepDesiredWorkerLabelPrismaFields = "stepId" + +const stepDesiredWorkerLabelFieldKey stepDesiredWorkerLabelPrismaFields = "key" + +const stepDesiredWorkerLabelFieldStrValue stepDesiredWorkerLabelPrismaFields = "strValue" + +const stepDesiredWorkerLabelFieldIntValue stepDesiredWorkerLabelPrismaFields = "intValue" + +const stepDesiredWorkerLabelFieldRequired stepDesiredWorkerLabelPrismaFields = "required" + +const stepDesiredWorkerLabelFieldComparator stepDesiredWorkerLabelPrismaFields = "comparator" + +const stepDesiredWorkerLabelFieldWeight stepDesiredWorkerLabelPrismaFields = "weight" + type stepPrismaFields = prismaFields const stepFieldID stepPrismaFields = "id" @@ -3345,6 +3627,8 @@ const stepFieldScheduleTimeout stepPrismaFields = "scheduleTimeout" const stepFieldRateLimits stepPrismaFields = "rateLimits" +const stepFieldWorkerLabels stepPrismaFields = "workerLabels" + type stepRateLimitPrismaFields = prismaFields const stepRateLimitFieldUnits stepRateLimitPrismaFields = "units" @@ -3379,6 +3663,24 @@ const rateLimitFieldLastRefill rateLimitPrismaFields = "lastRefill" const rateLimitFieldStepRunLimits rateLimitPrismaFields = "stepRunLimits" +type workflowRunStickyStatePrismaFields = prismaFields + +const workflowRunStickyStateFieldID workflowRunStickyStatePrismaFields = "id" + +const workflowRunStickyStateFieldCreatedAt workflowRunStickyStatePrismaFields = "createdAt" + +const workflowRunStickyStateFieldUpdatedAt workflowRunStickyStatePrismaFields = "updatedAt" + +const workflowRunStickyStateFieldTenantID workflowRunStickyStatePrismaFields = "tenantId" + +const workflowRunStickyStateFieldWorkflowRun workflowRunStickyStatePrismaFields = "workflowRun" + +const workflowRunStickyStateFieldWorkflowRunID workflowRunStickyStatePrismaFields = "workflowRunId" + +const workflowRunStickyStateFieldDesiredWorkerID workflowRunStickyStatePrismaFields = "desiredWorkerId" + +const workflowRunStickyStateFieldStrategy workflowRunStickyStatePrismaFields = "strategy" + type workflowRunPrismaFields = prismaFields const workflowRunFieldID workflowRunPrismaFields = "id" @@ -3409,12 +3711,16 @@ const workflowRunFieldJobRuns workflowRunPrismaFields = "jobRuns" const workflowRunFieldTriggeredBy workflowRunPrismaFields = "triggeredBy" +const workflowRunFieldSticky workflowRunPrismaFields = "sticky" + const workflowRunFieldError workflowRunPrismaFields = "error" const workflowRunFieldStartedAt workflowRunPrismaFields = "startedAt" const workflowRunFieldFinishedAt workflowRunPrismaFields = "finishedAt" +const workflowRunFieldDuration workflowRunPrismaFields = "duration" + const workflowRunFieldChildren workflowRunPrismaFields = "children" const workflowRunFieldScheduledChildren workflowRunPrismaFields = "scheduledChildren" @@ -3433,6 +3739,24 @@ const workflowRunFieldChildKey workflowRunPrismaFields = "childKey" const workflowRunFieldAdditionalMetadata workflowRunPrismaFields = "additionalMetadata" +type workflowRunDedupePrismaFields = prismaFields + +const workflowRunDedupeFieldID workflowRunDedupePrismaFields = "id" + +const workflowRunDedupeFieldCreatedAt workflowRunDedupePrismaFields = "createdAt" + +const workflowRunDedupeFieldUpdatedAt workflowRunDedupePrismaFields = "updatedAt" + +const workflowRunDedupeFieldTenant workflowRunDedupePrismaFields = "tenant" + +const workflowRunDedupeFieldTenantID workflowRunDedupePrismaFields = "tenantId" + +const workflowRunDedupeFieldWorkflowID workflowRunDedupePrismaFields = "workflowId" + +const workflowRunDedupeFieldWorkflowRunID workflowRunDedupePrismaFields = "workflowRunId" + +const workflowRunDedupeFieldValue workflowRunDedupePrismaFields = "value" + type getGroupKeyRunPrismaFields = prismaFields const getGroupKeyRunFieldID getGroupKeyRunPrismaFields = "id" @@ -3763,6 +4087,24 @@ const tickerFieldGroupKeyRuns tickerPrismaFields = "groupKeyRuns" const tickerFieldTenantAlerts tickerPrismaFields = "tenantAlerts" +type workerLabelPrismaFields = prismaFields + +const workerLabelFieldID workerLabelPrismaFields = "id" + +const workerLabelFieldCreatedAt workerLabelPrismaFields = "createdAt" + +const workerLabelFieldUpdatedAt workerLabelPrismaFields = "updatedAt" + +const workerLabelFieldWorker workerLabelPrismaFields = "worker" + +const workerLabelFieldWorkerID workerLabelPrismaFields = "workerId" + +const workerLabelFieldKey workerLabelPrismaFields = "key" + +const workerLabelFieldStrValue workerLabelPrismaFields = "strValue" + +const workerLabelFieldIntValue workerLabelPrismaFields = "intValue" + type workerPrismaFields = prismaFields const workerFieldID workerPrismaFields = "id" @@ -3773,12 +4115,16 @@ const workerFieldUpdatedAt workerPrismaFields = "updatedAt" const workerFieldDeletedAt workerPrismaFields = "deletedAt" +const workerFieldLabels workerPrismaFields = "labels" + const workerFieldTenant workerPrismaFields = "tenant" const workerFieldTenantID workerPrismaFields = "tenantId" const workerFieldLastHeartbeatAt workerPrismaFields = "lastHeartbeatAt" +const workerFieldIsPaused workerPrismaFields = "isPaused" + const workerFieldIsActive workerPrismaFields = "isActive" const workerFieldLastListenerEstablished workerPrismaFields = "lastListenerEstablished" @@ -4071,6 +4417,10 @@ func NewMock() (*PrismaClient, *Mock, func(t *testing.T)) { mock: m, } + m.StepDesiredWorkerLabel = stepDesiredWorkerLabelMock{ + mock: m, + } + m.Step = stepMock{ mock: m, } @@ -4083,10 +4433,18 @@ func NewMock() (*PrismaClient, *Mock, func(t *testing.T)) { mock: m, } + m.WorkflowRunStickyState = workflowRunStickyStateMock{ + mock: m, + } + m.WorkflowRun = workflowRunMock{ mock: m, } + m.WorkflowRunDedupe = workflowRunDedupeMock{ + mock: m, + } + m.GetGroupKeyRun = getGroupKeyRunMock{ mock: m, } @@ -4123,6 +4481,10 @@ func NewMock() (*PrismaClient, *Mock, func(t *testing.T)) { mock: m, } + m.WorkerLabel = workerLabelMock{ + mock: m, + } + m.Worker = workerMock{ mock: m, } @@ -4225,14 +4587,20 @@ type Mock struct { Action actionMock + StepDesiredWorkerLabel stepDesiredWorkerLabelMock + Step stepMock StepRateLimit stepRateLimitMock RateLimit rateLimitMock + WorkflowRunStickyState workflowRunStickyStateMock + WorkflowRun workflowRunMock + WorkflowRunDedupe workflowRunDedupeMock + GetGroupKeyRun getGroupKeyRunMock WorkflowRunTriggeredBy workflowRunTriggeredByMock @@ -4251,6 +4619,8 @@ type Mock struct { Ticker tickerMock + WorkerLabel workerLabelMock + Worker workerMock WorkerSemaphore workerSemaphoreMock @@ -5366,6 +5736,48 @@ func (m *actionMockExec) Errors(err error) { }) } +type stepDesiredWorkerLabelMock struct { + mock *Mock +} + +type StepDesiredWorkerLabelMockExpectParam interface { + ExtractQuery() builder.Query + stepDesiredWorkerLabelModel() +} + +func (m *stepDesiredWorkerLabelMock) Expect(query StepDesiredWorkerLabelMockExpectParam) *stepDesiredWorkerLabelMockExec { + return &stepDesiredWorkerLabelMockExec{ + mock: m.mock, + query: query.ExtractQuery(), + } +} + +type stepDesiredWorkerLabelMockExec struct { + mock *Mock + query builder.Query +} + +func (m *stepDesiredWorkerLabelMockExec) Returns(v StepDesiredWorkerLabelModel) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + Want: &v, + }) +} + +func (m *stepDesiredWorkerLabelMockExec) ReturnsMany(v []StepDesiredWorkerLabelModel) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + Want: &v, + }) +} + +func (m *stepDesiredWorkerLabelMockExec) Errors(err error) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + WantErr: err, + }) +} + type stepMock struct { mock *Mock } @@ -5492,6 +5904,48 @@ func (m *rateLimitMockExec) Errors(err error) { }) } +type workflowRunStickyStateMock struct { + mock *Mock +} + +type WorkflowRunStickyStateMockExpectParam interface { + ExtractQuery() builder.Query + workflowRunStickyStateModel() +} + +func (m *workflowRunStickyStateMock) Expect(query WorkflowRunStickyStateMockExpectParam) *workflowRunStickyStateMockExec { + return &workflowRunStickyStateMockExec{ + mock: m.mock, + query: query.ExtractQuery(), + } +} + +type workflowRunStickyStateMockExec struct { + mock *Mock + query builder.Query +} + +func (m *workflowRunStickyStateMockExec) Returns(v WorkflowRunStickyStateModel) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + Want: &v, + }) +} + +func (m *workflowRunStickyStateMockExec) ReturnsMany(v []WorkflowRunStickyStateModel) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + Want: &v, + }) +} + +func (m *workflowRunStickyStateMockExec) Errors(err error) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + WantErr: err, + }) +} + type workflowRunMock struct { mock *Mock } @@ -5534,6 +5988,48 @@ func (m *workflowRunMockExec) Errors(err error) { }) } +type workflowRunDedupeMock struct { + mock *Mock +} + +type WorkflowRunDedupeMockExpectParam interface { + ExtractQuery() builder.Query + workflowRunDedupeModel() +} + +func (m *workflowRunDedupeMock) Expect(query WorkflowRunDedupeMockExpectParam) *workflowRunDedupeMockExec { + return &workflowRunDedupeMockExec{ + mock: m.mock, + query: query.ExtractQuery(), + } +} + +type workflowRunDedupeMockExec struct { + mock *Mock + query builder.Query +} + +func (m *workflowRunDedupeMockExec) Returns(v WorkflowRunDedupeModel) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + Want: &v, + }) +} + +func (m *workflowRunDedupeMockExec) ReturnsMany(v []WorkflowRunDedupeModel) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + Want: &v, + }) +} + +func (m *workflowRunDedupeMockExec) Errors(err error) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + WantErr: err, + }) +} + type getGroupKeyRunMock struct { mock *Mock } @@ -5912,6 +6408,48 @@ func (m *tickerMockExec) Errors(err error) { }) } +type workerLabelMock struct { + mock *Mock +} + +type WorkerLabelMockExpectParam interface { + ExtractQuery() builder.Query + workerLabelModel() +} + +func (m *workerLabelMock) Expect(query WorkerLabelMockExpectParam) *workerLabelMockExec { + return &workerLabelMockExec{ + mock: m.mock, + query: query.ExtractQuery(), + } +} + +type workerLabelMockExec struct { + mock *Mock + query builder.Query +} + +func (m *workerLabelMockExec) Returns(v WorkerLabelModel) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + Want: &v, + }) +} + +func (m *workerLabelMockExec) ReturnsMany(v []WorkerLabelModel) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + Want: &v, + }) +} + +func (m *workerLabelMockExec) Errors(err error) { + *m.mock.Expectations = append(*m.mock.Expectations, mock.Expectation{ + Query: m.query, + WantErr: err, + }) +} + type workerMock struct { mock *Mock } @@ -6809,6 +7347,7 @@ type InnerTenant struct { AnalyticsOptOut bool `json:"analyticsOptOut"` ControllerPartitionID *string `json:"controllerPartitionId,omitempty"` WorkerPartitionID *string `json:"workerPartitionId,omitempty"` + DataRetentionPeriod string `json:"dataRetentionPeriod"` AlertMemberEmails bool `json:"alertMemberEmails"` } @@ -6823,6 +7362,7 @@ type RawTenantModel struct { AnalyticsOptOut RawBoolean `json:"analyticsOptOut"` ControllerPartitionID *RawString `json:"controllerPartitionId,omitempty"` WorkerPartitionID *RawString `json:"workerPartitionId,omitempty"` + DataRetentionPeriod RawString `json:"dataRetentionPeriod"` AlertMemberEmails RawBoolean `json:"alertMemberEmails"` } @@ -6860,6 +7400,7 @@ type RelationsTenant struct { Limits []TenantResourceLimitModel `json:"limits,omitempty"` LimitAlerts []TenantResourceLimitAlertModel `json:"limitAlerts,omitempty"` WebhookWorkers []WebhookWorkerModel `json:"webhookWorkers,omitempty"` + Dedupes []WorkflowRunDedupeModel `json:"dedupes,omitempty"` } func (r TenantModel) DeletedAt() (value DateTime, ok bool) { @@ -7107,6 +7648,13 @@ func (r TenantModel) WebhookWorkers() (value []WebhookWorkerModel) { return r.RelationsTenant.WebhookWorkers } +func (r TenantModel) Dedupes() (value []WorkflowRunDedupeModel) { + if r.RelationsTenant.Dedupes == nil { + panic("attempted to access dedupes but did not fetch it using the .With() syntax") + } + return r.RelationsTenant.Dedupes +} + // TenantResourceLimitModel represents the TenantResourceLimit model and is a wrapper for accessing fields and methods type TenantResourceLimitModel struct { InnerTenantResourceLimit @@ -7410,6 +7958,7 @@ type InnerAPIToken struct { ExpiresAt *DateTime `json:"expiresAt,omitempty"` Revoked bool `json:"revoked"` NextAlertAt *DateTime `json:"nextAlertAt,omitempty"` + Internal bool `json:"internal"` Name *string `json:"name,omitempty"` TenantID *string `json:"tenantId,omitempty"` } @@ -7422,6 +7971,7 @@ type RawAPITokenModel struct { ExpiresAt *RawDateTime `json:"expiresAt,omitempty"` Revoked RawBoolean `json:"revoked"` NextAlertAt *RawDateTime `json:"nextAlertAt,omitempty"` + Internal RawBoolean `json:"internal"` Name *RawString `json:"name,omitempty"` TenantID *RawString `json:"tenantId,omitempty"` } @@ -7702,30 +8252,34 @@ type WorkflowVersionModel struct { // InnerWorkflowVersion holds the actual data type InnerWorkflowVersion struct { - ID string `json:"id"` - CreatedAt DateTime `json:"createdAt"` - UpdatedAt DateTime `json:"updatedAt"` - DeletedAt *DateTime `json:"deletedAt,omitempty"` - Checksum string `json:"checksum"` - Version *string `json:"version,omitempty"` - Order BigInt `json:"order"` - WorkflowID string `json:"workflowId"` - OnFailureJobID *string `json:"onFailureJobId,omitempty"` - ScheduleTimeout string `json:"scheduleTimeout"` + ID string `json:"id"` + CreatedAt DateTime `json:"createdAt"` + UpdatedAt DateTime `json:"updatedAt"` + DeletedAt *DateTime `json:"deletedAt,omitempty"` + Checksum string `json:"checksum"` + Version *string `json:"version,omitempty"` + Order BigInt `json:"order"` + WorkflowID string `json:"workflowId"` + Sticky *StickyStrategy `json:"sticky,omitempty"` + OnFailureJobID *string `json:"onFailureJobId,omitempty"` + Kind WorkflowKind `json:"kind"` + ScheduleTimeout string `json:"scheduleTimeout"` } // RawWorkflowVersionModel is a struct for WorkflowVersion when used in raw queries type RawWorkflowVersionModel struct { - ID RawString `json:"id"` - CreatedAt RawDateTime `json:"createdAt"` - UpdatedAt RawDateTime `json:"updatedAt"` - DeletedAt *RawDateTime `json:"deletedAt,omitempty"` - Checksum RawString `json:"checksum"` - Version *RawString `json:"version,omitempty"` - Order RawBigInt `json:"order"` - WorkflowID RawString `json:"workflowId"` - OnFailureJobID *RawString `json:"onFailureJobId,omitempty"` - ScheduleTimeout RawString `json:"scheduleTimeout"` + ID RawString `json:"id"` + CreatedAt RawDateTime `json:"createdAt"` + UpdatedAt RawDateTime `json:"updatedAt"` + DeletedAt *RawDateTime `json:"deletedAt,omitempty"` + Checksum RawString `json:"checksum"` + Version *RawString `json:"version,omitempty"` + Order RawBigInt `json:"order"` + WorkflowID RawString `json:"workflowId"` + Sticky *RawStickyStrategy `json:"sticky,omitempty"` + OnFailureJobID *RawString `json:"onFailureJobId,omitempty"` + Kind RawWorkflowKind `json:"kind"` + ScheduleTimeout RawString `json:"scheduleTimeout"` } // RelationsWorkflowVersion holds the relation data separately @@ -7774,6 +8328,13 @@ func (r WorkflowVersionModel) Concurrency() (value *WorkflowConcurrencyModel, ok return r.RelationsWorkflowVersion.Concurrency, true } +func (r WorkflowVersionModel) Sticky() (value StickyStrategy, ok bool) { + if r.InnerWorkflowVersion.Sticky == nil { + return value, false + } + return *r.InnerWorkflowVersion.Sticky, true +} + func (r WorkflowVersionModel) Jobs() (value []JobModel) { if r.RelationsWorkflowVersion.Jobs == nil { panic("attempted to access jobs but did not fetch it using the .With() syntax") @@ -8311,6 +8872,66 @@ func (r ActionModel) Concurrency() (value []WorkflowConcurrencyModel) { return r.RelationsAction.Concurrency } +// StepDesiredWorkerLabelModel represents the StepDesiredWorkerLabel model and is a wrapper for accessing fields and methods +type StepDesiredWorkerLabelModel struct { + InnerStepDesiredWorkerLabel + RelationsStepDesiredWorkerLabel +} + +// InnerStepDesiredWorkerLabel holds the actual data +type InnerStepDesiredWorkerLabel struct { + ID BigInt `json:"id"` + CreatedAt DateTime `json:"createdAt"` + UpdatedAt DateTime `json:"updatedAt"` + StepID string `json:"stepId"` + Key string `json:"key"` + StrValue *string `json:"strValue,omitempty"` + IntValue *int `json:"intValue,omitempty"` + Required bool `json:"required"` + Comparator WorkerLabelComparator `json:"comparator"` + Weight int `json:"weight"` +} + +// RawStepDesiredWorkerLabelModel is a struct for StepDesiredWorkerLabel when used in raw queries +type RawStepDesiredWorkerLabelModel struct { + ID RawBigInt `json:"id"` + CreatedAt RawDateTime `json:"createdAt"` + UpdatedAt RawDateTime `json:"updatedAt"` + StepID RawString `json:"stepId"` + Key RawString `json:"key"` + StrValue *RawString `json:"strValue,omitempty"` + IntValue *RawInt `json:"intValue,omitempty"` + Required RawBoolean `json:"required"` + Comparator RawWorkerLabelComparator `json:"comparator"` + Weight RawInt `json:"weight"` +} + +// RelationsStepDesiredWorkerLabel holds the relation data separately +type RelationsStepDesiredWorkerLabel struct { + Step *StepModel `json:"step,omitempty"` +} + +func (r StepDesiredWorkerLabelModel) Step() (value *StepModel) { + if r.RelationsStepDesiredWorkerLabel.Step == nil { + panic("attempted to access step but did not fetch it using the .With() syntax") + } + return r.RelationsStepDesiredWorkerLabel.Step +} + +func (r StepDesiredWorkerLabelModel) StrValue() (value String, ok bool) { + if r.InnerStepDesiredWorkerLabel.StrValue == nil { + return value, false + } + return *r.InnerStepDesiredWorkerLabel.StrValue, true +} + +func (r StepDesiredWorkerLabelModel) IntValue() (value Int, ok bool) { + if r.InnerStepDesiredWorkerLabel.IntValue == nil { + return value, false + } + return *r.InnerStepDesiredWorkerLabel.IntValue, true +} + // StepModel represents the Step model and is a wrapper for accessing fields and methods type StepModel struct { InnerStep @@ -8351,13 +8972,14 @@ type RawStepModel struct { // RelationsStep holds the relation data separately type RelationsStep struct { - Tenant *TenantModel `json:"tenant,omitempty"` - Job *JobModel `json:"job,omitempty"` - Action *ActionModel `json:"action,omitempty"` - Children []StepModel `json:"children,omitempty"` - Parents []StepModel `json:"parents,omitempty"` - StepRuns []StepRunModel `json:"stepRuns,omitempty"` - RateLimits []StepRateLimitModel `json:"rateLimits,omitempty"` + Tenant *TenantModel `json:"tenant,omitempty"` + Job *JobModel `json:"job,omitempty"` + Action *ActionModel `json:"action,omitempty"` + Children []StepModel `json:"children,omitempty"` + Parents []StepModel `json:"parents,omitempty"` + StepRuns []StepRunModel `json:"stepRuns,omitempty"` + RateLimits []StepRateLimitModel `json:"rateLimits,omitempty"` + WorkerLabels []StepDesiredWorkerLabelModel `json:"workerLabels,omitempty"` } func (r StepModel) DeletedAt() (value DateTime, ok bool) { @@ -8437,6 +9059,13 @@ func (r StepModel) RateLimits() (value []StepRateLimitModel) { return r.RelationsStep.RateLimits } +func (r StepModel) WorkerLabels() (value []StepDesiredWorkerLabelModel) { + if r.RelationsStep.WorkerLabels == nil { + panic("attempted to access workerLabels but did not fetch it using the .With() syntax") + } + return r.RelationsStep.WorkerLabels +} + // StepRateLimitModel represents the StepRateLimit model and is a wrapper for accessing fields and methods type StepRateLimitModel struct { InnerStepRateLimit @@ -8533,6 +9162,53 @@ func (r RateLimitModel) StepRunLimits() (value []StepRateLimitModel) { return r.RelationsRateLimit.StepRunLimits } +// WorkflowRunStickyStateModel represents the WorkflowRunStickyState model and is a wrapper for accessing fields and methods +type WorkflowRunStickyStateModel struct { + InnerWorkflowRunStickyState + RelationsWorkflowRunStickyState +} + +// InnerWorkflowRunStickyState holds the actual data +type InnerWorkflowRunStickyState struct { + ID BigInt `json:"id"` + CreatedAt DateTime `json:"createdAt"` + UpdatedAt DateTime `json:"updatedAt"` + TenantID string `json:"tenantId"` + WorkflowRunID string `json:"workflowRunId"` + DesiredWorkerID *string `json:"desiredWorkerId,omitempty"` + Strategy StickyStrategy `json:"strategy"` +} + +// RawWorkflowRunStickyStateModel is a struct for WorkflowRunStickyState when used in raw queries +type RawWorkflowRunStickyStateModel struct { + ID RawBigInt `json:"id"` + CreatedAt RawDateTime `json:"createdAt"` + UpdatedAt RawDateTime `json:"updatedAt"` + TenantID RawString `json:"tenantId"` + WorkflowRunID RawString `json:"workflowRunId"` + DesiredWorkerID *RawString `json:"desiredWorkerId,omitempty"` + Strategy RawStickyStrategy `json:"strategy"` +} + +// RelationsWorkflowRunStickyState holds the relation data separately +type RelationsWorkflowRunStickyState struct { + WorkflowRun *WorkflowRunModel `json:"workflowRun,omitempty"` +} + +func (r WorkflowRunStickyStateModel) WorkflowRun() (value *WorkflowRunModel) { + if r.RelationsWorkflowRunStickyState.WorkflowRun == nil { + panic("attempted to access workflowRun but did not fetch it using the .With() syntax") + } + return r.RelationsWorkflowRunStickyState.WorkflowRun +} + +func (r WorkflowRunStickyStateModel) DesiredWorkerID() (value String, ok bool) { + if r.InnerWorkflowRunStickyState.DesiredWorkerID == nil { + return value, false + } + return *r.InnerWorkflowRunStickyState.DesiredWorkerID, true +} + // WorkflowRunModel represents the WorkflowRun model and is a wrapper for accessing fields and methods type WorkflowRunModel struct { InnerWorkflowRun @@ -8553,6 +9229,7 @@ type InnerWorkflowRun struct { Error *string `json:"error,omitempty"` StartedAt *DateTime `json:"startedAt,omitempty"` FinishedAt *DateTime `json:"finishedAt,omitempty"` + Duration *int `json:"duration,omitempty"` ParentID *string `json:"parentId,omitempty"` ParentStepRunID *string `json:"parentStepRunId,omitempty"` ChildIndex *int `json:"childIndex,omitempty"` @@ -8574,6 +9251,7 @@ type RawWorkflowRunModel struct { Error *RawString `json:"error,omitempty"` StartedAt *RawDateTime `json:"startedAt,omitempty"` FinishedAt *RawDateTime `json:"finishedAt,omitempty"` + Duration *RawInt `json:"duration,omitempty"` ParentID *RawString `json:"parentId,omitempty"` ParentStepRunID *RawString `json:"parentStepRunId,omitempty"` ChildIndex *RawInt `json:"childIndex,omitempty"` @@ -8588,6 +9266,7 @@ type RelationsWorkflowRun struct { GetGroupKeyRun *GetGroupKeyRunModel `json:"getGroupKeyRun,omitempty"` JobRuns []JobRunModel `json:"jobRuns,omitempty"` TriggeredBy *WorkflowRunTriggeredByModel `json:"triggeredBy,omitempty"` + Sticky *WorkflowRunStickyStateModel `json:"sticky,omitempty"` Children []WorkflowRunModel `json:"children,omitempty"` ScheduledChildren []WorkflowTriggerScheduledRefModel `json:"scheduledChildren,omitempty"` Parent *WorkflowRunModel `json:"parent,omitempty"` @@ -8650,6 +9329,13 @@ func (r WorkflowRunModel) TriggeredBy() (value *WorkflowRunTriggeredByModel, ok return r.RelationsWorkflowRun.TriggeredBy, true } +func (r WorkflowRunModel) Sticky() (value *WorkflowRunStickyStateModel, ok bool) { + if r.RelationsWorkflowRun.Sticky == nil { + return value, false + } + return r.RelationsWorkflowRun.Sticky, true +} + func (r WorkflowRunModel) Error() (value String, ok bool) { if r.InnerWorkflowRun.Error == nil { return value, false @@ -8671,6 +9357,13 @@ func (r WorkflowRunModel) FinishedAt() (value DateTime, ok bool) { return *r.InnerWorkflowRun.FinishedAt, true } +func (r WorkflowRunModel) Duration() (value Int, ok bool) { + if r.InnerWorkflowRun.Duration == nil { + return value, false + } + return *r.InnerWorkflowRun.Duration, true +} + func (r WorkflowRunModel) Children() (value []WorkflowRunModel) { if r.RelationsWorkflowRun.Children == nil { panic("attempted to access children but did not fetch it using the .With() syntax") @@ -8734,6 +9427,46 @@ func (r WorkflowRunModel) AdditionalMetadata() (value JSON, ok bool) { return *r.InnerWorkflowRun.AdditionalMetadata, true } +// WorkflowRunDedupeModel represents the WorkflowRunDedupe model and is a wrapper for accessing fields and methods +type WorkflowRunDedupeModel struct { + InnerWorkflowRunDedupe + RelationsWorkflowRunDedupe +} + +// InnerWorkflowRunDedupe holds the actual data +type InnerWorkflowRunDedupe struct { + ID BigInt `json:"id"` + CreatedAt DateTime `json:"createdAt"` + UpdatedAt DateTime `json:"updatedAt"` + TenantID string `json:"tenantId"` + WorkflowID string `json:"workflowId"` + WorkflowRunID string `json:"workflowRunId"` + Value string `json:"value"` +} + +// RawWorkflowRunDedupeModel is a struct for WorkflowRunDedupe when used in raw queries +type RawWorkflowRunDedupeModel struct { + ID RawBigInt `json:"id"` + CreatedAt RawDateTime `json:"createdAt"` + UpdatedAt RawDateTime `json:"updatedAt"` + TenantID RawString `json:"tenantId"` + WorkflowID RawString `json:"workflowId"` + WorkflowRunID RawString `json:"workflowRunId"` + Value RawString `json:"value"` +} + +// RelationsWorkflowRunDedupe holds the relation data separately +type RelationsWorkflowRunDedupe struct { + Tenant *TenantModel `json:"tenant,omitempty"` +} + +func (r WorkflowRunDedupeModel) Tenant() (value *TenantModel) { + if r.RelationsWorkflowRunDedupe.Tenant == nil { + panic("attempted to access tenant but did not fetch it using the .With() syntax") + } + return r.RelationsWorkflowRunDedupe.Tenant +} + // GetGroupKeyRunModel represents the GetGroupKeyRun model and is a wrapper for accessing fields and methods type GetGroupKeyRunModel struct { InnerGetGroupKeyRun @@ -9882,6 +10615,60 @@ func (r TickerModel) TenantAlerts() (value []TenantAlertingSettingsModel) { return r.RelationsTicker.TenantAlerts } +// WorkerLabelModel represents the WorkerLabel model and is a wrapper for accessing fields and methods +type WorkerLabelModel struct { + InnerWorkerLabel + RelationsWorkerLabel +} + +// InnerWorkerLabel holds the actual data +type InnerWorkerLabel struct { + ID BigInt `json:"id"` + CreatedAt DateTime `json:"createdAt"` + UpdatedAt DateTime `json:"updatedAt"` + WorkerID string `json:"workerId"` + Key string `json:"key"` + StrValue *string `json:"strValue,omitempty"` + IntValue *int `json:"intValue,omitempty"` +} + +// RawWorkerLabelModel is a struct for WorkerLabel when used in raw queries +type RawWorkerLabelModel struct { + ID RawBigInt `json:"id"` + CreatedAt RawDateTime `json:"createdAt"` + UpdatedAt RawDateTime `json:"updatedAt"` + WorkerID RawString `json:"workerId"` + Key RawString `json:"key"` + StrValue *RawString `json:"strValue,omitempty"` + IntValue *RawInt `json:"intValue,omitempty"` +} + +// RelationsWorkerLabel holds the relation data separately +type RelationsWorkerLabel struct { + Worker *WorkerModel `json:"worker,omitempty"` +} + +func (r WorkerLabelModel) Worker() (value *WorkerModel) { + if r.RelationsWorkerLabel.Worker == nil { + panic("attempted to access worker but did not fetch it using the .With() syntax") + } + return r.RelationsWorkerLabel.Worker +} + +func (r WorkerLabelModel) StrValue() (value String, ok bool) { + if r.InnerWorkerLabel.StrValue == nil { + return value, false + } + return *r.InnerWorkerLabel.StrValue, true +} + +func (r WorkerLabelModel) IntValue() (value Int, ok bool) { + if r.InnerWorkerLabel.IntValue == nil { + return value, false + } + return *r.InnerWorkerLabel.IntValue, true +} + // WorkerModel represents the Worker model and is a wrapper for accessing fields and methods type WorkerModel struct { InnerWorker @@ -9896,6 +10683,7 @@ type InnerWorker struct { DeletedAt *DateTime `json:"deletedAt,omitempty"` TenantID string `json:"tenantId"` LastHeartbeatAt *DateTime `json:"lastHeartbeatAt,omitempty"` + IsPaused bool `json:"isPaused"` IsActive bool `json:"isActive"` LastListenerEstablished *DateTime `json:"lastListenerEstablished,omitempty"` Name string `json:"name"` @@ -9911,6 +10699,7 @@ type RawWorkerModel struct { DeletedAt *RawDateTime `json:"deletedAt,omitempty"` TenantID RawString `json:"tenantId"` LastHeartbeatAt *RawDateTime `json:"lastHeartbeatAt,omitempty"` + IsPaused RawBoolean `json:"isPaused"` IsActive RawBoolean `json:"isActive"` LastListenerEstablished *RawDateTime `json:"lastListenerEstablished,omitempty"` Name RawString `json:"name"` @@ -9920,6 +10709,7 @@ type RawWorkerModel struct { // RelationsWorker holds the relation data separately type RelationsWorker struct { + Labels []WorkerLabelModel `json:"labels,omitempty"` Tenant *TenantModel `json:"tenant,omitempty"` Dispatcher *DispatcherModel `json:"dispatcher,omitempty"` Services []ServiceModel `json:"services,omitempty"` @@ -9937,6 +10727,13 @@ func (r WorkerModel) DeletedAt() (value DateTime, ok bool) { return *r.InnerWorker.DeletedAt, true } +func (r WorkerModel) Labels() (value []WorkerLabelModel) { + if r.RelationsWorker.Labels == nil { + panic("attempted to access labels but did not fetch it using the .With() syntax") + } + return r.RelationsWorker.Labels +} + func (r WorkerModel) Tenant() (value *TenantModel) { if r.RelationsWorker.Tenant == nil { panic("attempted to access tenant but did not fetch it using the .With() syntax") @@ -27470,6 +28267,11 @@ type tenantQuery struct { // @optional WorkerPartitionID tenantQueryWorkerPartitionIDString + // DataRetentionPeriod + // + // @required + DataRetentionPeriod tenantQueryDataRetentionPeriodString + Events tenantQueryEventsRelations Workflows tenantQueryWorkflowsRelations @@ -27534,6 +28336,8 @@ type tenantQuery struct { LimitAlerts tenantQueryLimitAlertsRelations WebhookWorkers tenantQueryWebhookWorkersRelations + + Dedupes tenantQueryDedupesRelations } func (tenantQuery) Not(params ...TenantWhereParam) tenantDefaultParam { @@ -30634,6 +31438,353 @@ func (r tenantQueryWorkerPartitionIDString) Field() tenantPrismaFields { return tenantFieldWorkerPartitionID } +// base struct +type tenantQueryDataRetentionPeriodString struct{} + +// Set the required value of DataRetentionPeriod +func (r tenantQueryDataRetentionPeriodString) Set(value string) tenantSetParam { + + return tenantSetParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Value: value, + }, + } + +} + +// Set the optional value of DataRetentionPeriod dynamically +func (r tenantQueryDataRetentionPeriodString) SetIfPresent(value *String) tenantSetParam { + if value == nil { + return tenantSetParam{} + } + + return r.Set(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Equals(value string) tenantWithPrismaDataRetentionPeriodEqualsParam { + + return tenantWithPrismaDataRetentionPeriodEqualsParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) EqualsIfPresent(value *string) tenantWithPrismaDataRetentionPeriodEqualsParam { + if value == nil { + return tenantWithPrismaDataRetentionPeriodEqualsParam{} + } + return r.Equals(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Order(direction SortOrder) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Value: direction, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) Cursor(cursor string) tenantCursorParam { + return tenantCursorParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Value: cursor, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) In(value []string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) InIfPresent(value []string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.In(value) +} + +func (r tenantQueryDataRetentionPeriodString) NotIn(value []string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) NotInIfPresent(value []string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.NotIn(value) +} + +func (r tenantQueryDataRetentionPeriodString) Lt(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) LtIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.Lt(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Lte(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) LteIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.Lte(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Gt(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) GtIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.Gt(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Gte(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) GteIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.Gte(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Contains(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) ContainsIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.Contains(*value) +} + +func (r tenantQueryDataRetentionPeriodString) StartsWith(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) StartsWithIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r tenantQueryDataRetentionPeriodString) EndsWith(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) EndsWithIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Mode(value QueryMode) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) ModeIfPresent(value *QueryMode) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.Mode(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Not(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r tenantQueryDataRetentionPeriodString) NotIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r tenantQueryDataRetentionPeriodString) HasPrefix(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r tenantQueryDataRetentionPeriodString) HasPrefixIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r tenantQueryDataRetentionPeriodString) HasSuffix(value string) tenantDefaultParam { + return tenantDefaultParam{ + data: builder.Field{ + Name: "dataRetentionPeriod", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r tenantQueryDataRetentionPeriodString) HasSuffixIfPresent(value *string) tenantDefaultParam { + if value == nil { + return tenantDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r tenantQueryDataRetentionPeriodString) Field() tenantPrismaFields { + return tenantFieldDataRetentionPeriod +} + // base struct type tenantQueryEventsEvent struct{} @@ -35778,6 +36929,178 @@ func (r tenantQueryWebhookWorkersWebhookWorker) Field() tenantPrismaFields { return tenantFieldWebhookWorkers } +// base struct +type tenantQueryDedupesWorkflowRunDedupe struct{} + +type tenantQueryDedupesRelations struct{} + +// Tenant -> Dedupes +// +// @relation +// @required +func (tenantQueryDedupesRelations) Some( + params ...WorkflowRunDedupeWhereParam, +) tenantDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantDefaultParam{ + data: builder.Field{ + Name: "dedupes", + Fields: []builder.Field{ + { + Name: "some", + Fields: fields, + }, + }, + }, + } +} + +// Tenant -> Dedupes +// +// @relation +// @required +func (tenantQueryDedupesRelations) Every( + params ...WorkflowRunDedupeWhereParam, +) tenantDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantDefaultParam{ + data: builder.Field{ + Name: "dedupes", + Fields: []builder.Field{ + { + Name: "every", + Fields: fields, + }, + }, + }, + } +} + +// Tenant -> Dedupes +// +// @relation +// @required +func (tenantQueryDedupesRelations) None( + params ...WorkflowRunDedupeWhereParam, +) tenantDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantDefaultParam{ + data: builder.Field{ + Name: "dedupes", + Fields: []builder.Field{ + { + Name: "none", + Fields: fields, + }, + }, + }, + } +} + +func (tenantQueryDedupesRelations) Fetch( + + params ...WorkflowRunDedupeWhereParam, + +) tenantToDedupesFindMany { + var v tenantToDedupesFindMany + + v.query.Operation = "query" + v.query.Method = "dedupes" + v.query.Outputs = workflowRunDedupeOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantQueryDedupesRelations) Link( + params ...WorkflowRunDedupeWhereParam, +) tenantSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantSetParam{ + data: builder.Field{ + Name: "dedupes", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, + }, + }, + }, + } +} + +func (r tenantQueryDedupesRelations) Unlink( + params ...WorkflowRunDedupeWhereParam, +) tenantSetParam { + var v tenantSetParam + + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = tenantSetParam{ + data: builder.Field{ + Name: "dedupes", + Fields: []builder.Field{ + { + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), + }, + }, + }, + } + + return v +} + +func (r tenantQueryDedupesWorkflowRunDedupe) Field() tenantPrismaFields { + return tenantFieldDedupes +} + // TenantResourceLimit acts as a namespaces to access query methods for the TenantResourceLimit model var TenantResourceLimit = tenantResourceLimitQuery{} @@ -50796,6 +52119,11 @@ type aPITokenQuery struct { // @optional NextAlertAt aPITokenQueryNextAlertAtDateTime + // Internal + // + // @required + Internal aPITokenQueryInternalBoolean + // Name // // @optional @@ -52611,6 +53939,74 @@ func (r aPITokenQueryNextAlertAtDateTime) Field() aPITokenPrismaFields { return aPITokenFieldNextAlertAt } +// base struct +type aPITokenQueryInternalBoolean struct{} + +// Set the required value of Internal +func (r aPITokenQueryInternalBoolean) Set(value bool) aPITokenSetParam { + + return aPITokenSetParam{ + data: builder.Field{ + Name: "internal", + Value: value, + }, + } + +} + +// Set the optional value of Internal dynamically +func (r aPITokenQueryInternalBoolean) SetIfPresent(value *Boolean) aPITokenSetParam { + if value == nil { + return aPITokenSetParam{} + } + + return r.Set(*value) +} + +func (r aPITokenQueryInternalBoolean) Equals(value bool) aPITokenWithPrismaInternalEqualsParam { + + return aPITokenWithPrismaInternalEqualsParam{ + data: builder.Field{ + Name: "internal", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r aPITokenQueryInternalBoolean) EqualsIfPresent(value *bool) aPITokenWithPrismaInternalEqualsParam { + if value == nil { + return aPITokenWithPrismaInternalEqualsParam{} + } + return r.Equals(*value) +} + +func (r aPITokenQueryInternalBoolean) Order(direction SortOrder) aPITokenDefaultParam { + return aPITokenDefaultParam{ + data: builder.Field{ + Name: "internal", + Value: direction, + }, + } +} + +func (r aPITokenQueryInternalBoolean) Cursor(cursor bool) aPITokenCursorParam { + return aPITokenCursorParam{ + data: builder.Field{ + Name: "internal", + Value: cursor, + }, + } +} + +func (r aPITokenQueryInternalBoolean) Field() aPITokenPrismaFields { + return aPITokenFieldInternal +} + // base struct type aPITokenQueryNameString struct{} @@ -62993,6 +64389,11 @@ type workflowVersionQuery struct { Concurrency workflowVersionQueryConcurrencyRelations + // Sticky + // + // @optional + Sticky workflowVersionQueryStickyStickyStrategy + Jobs workflowVersionQueryJobsRelations OnFailureJob workflowVersionQueryOnFailureJobRelations @@ -63007,6 +64408,11 @@ type workflowVersionQuery struct { Scheduled workflowVersionQueryScheduledRelations + // Kind + // + // @required + Kind workflowVersionQueryKindWorkflowKind + // ScheduleTimeout // // @required @@ -66042,6 +67448,182 @@ func (r workflowVersionQueryConcurrencyWorkflowConcurrency) Field() workflowVers return workflowVersionFieldConcurrency } +// base struct +type workflowVersionQueryStickyStickyStrategy struct{} + +// Set the optional value of Sticky +func (r workflowVersionQueryStickyStickyStrategy) Set(value StickyStrategy) workflowVersionSetParam { + + return workflowVersionSetParam{ + data: builder.Field{ + Name: "sticky", + Value: value, + }, + } + +} + +// Set the optional value of Sticky dynamically +func (r workflowVersionQueryStickyStickyStrategy) SetIfPresent(value *StickyStrategy) workflowVersionSetParam { + if value == nil { + return workflowVersionSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of Sticky dynamically +func (r workflowVersionQueryStickyStickyStrategy) SetOptional(value *StickyStrategy) workflowVersionSetParam { + if value == nil { + + var v *StickyStrategy + return workflowVersionSetParam{ + data: builder.Field{ + Name: "sticky", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workflowVersionQueryStickyStickyStrategy) Equals(value StickyStrategy) workflowVersionWithPrismaStickyEqualsParam { + + return workflowVersionWithPrismaStickyEqualsParam{ + data: builder.Field{ + Name: "sticky", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryStickyStickyStrategy) EqualsIfPresent(value *StickyStrategy) workflowVersionWithPrismaStickyEqualsParam { + if value == nil { + return workflowVersionWithPrismaStickyEqualsParam{} + } + return r.Equals(*value) +} + +func (r workflowVersionQueryStickyStickyStrategy) EqualsOptional(value *StickyStrategy) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "sticky", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryStickyStickyStrategy) IsNull() workflowVersionDefaultParam { + var str *string = nil + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "sticky", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workflowVersionQueryStickyStickyStrategy) Order(direction SortOrder) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "sticky", + Value: direction, + }, + } +} + +func (r workflowVersionQueryStickyStickyStrategy) Cursor(cursor StickyStrategy) workflowVersionCursorParam { + return workflowVersionCursorParam{ + data: builder.Field{ + Name: "sticky", + Value: cursor, + }, + } +} + +func (r workflowVersionQueryStickyStickyStrategy) In(value []StickyStrategy) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "sticky", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryStickyStickyStrategy) InIfPresent(value []StickyStrategy) workflowVersionDefaultParam { + if value == nil { + return workflowVersionDefaultParam{} + } + return r.In(value) +} + +func (r workflowVersionQueryStickyStickyStrategy) NotIn(value []StickyStrategy) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "sticky", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryStickyStickyStrategy) NotInIfPresent(value []StickyStrategy) workflowVersionDefaultParam { + if value == nil { + return workflowVersionDefaultParam{} + } + return r.NotIn(value) +} + +func (r workflowVersionQueryStickyStickyStrategy) Not(value StickyStrategy) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "sticky", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryStickyStickyStrategy) NotIfPresent(value *StickyStrategy) workflowVersionDefaultParam { + if value == nil { + return workflowVersionDefaultParam{} + } + return r.Not(*value) +} + +func (r workflowVersionQueryStickyStickyStrategy) Field() workflowVersionPrismaFields { + return workflowVersionFieldSticky +} + // base struct type workflowVersionQueryJobsJob struct{} @@ -67038,6 +68620,137 @@ func (r workflowVersionQueryScheduledWorkflowTriggerScheduledRef) Field() workfl return workflowVersionFieldScheduled } +// base struct +type workflowVersionQueryKindWorkflowKind struct{} + +// Set the required value of Kind +func (r workflowVersionQueryKindWorkflowKind) Set(value WorkflowKind) workflowVersionSetParam { + + return workflowVersionSetParam{ + data: builder.Field{ + Name: "kind", + Value: value, + }, + } + +} + +// Set the optional value of Kind dynamically +func (r workflowVersionQueryKindWorkflowKind) SetIfPresent(value *WorkflowKind) workflowVersionSetParam { + if value == nil { + return workflowVersionSetParam{} + } + + return r.Set(*value) +} + +func (r workflowVersionQueryKindWorkflowKind) Equals(value WorkflowKind) workflowVersionWithPrismaKindEqualsParam { + + return workflowVersionWithPrismaKindEqualsParam{ + data: builder.Field{ + Name: "kind", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryKindWorkflowKind) EqualsIfPresent(value *WorkflowKind) workflowVersionWithPrismaKindEqualsParam { + if value == nil { + return workflowVersionWithPrismaKindEqualsParam{} + } + return r.Equals(*value) +} + +func (r workflowVersionQueryKindWorkflowKind) Order(direction SortOrder) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "kind", + Value: direction, + }, + } +} + +func (r workflowVersionQueryKindWorkflowKind) Cursor(cursor WorkflowKind) workflowVersionCursorParam { + return workflowVersionCursorParam{ + data: builder.Field{ + Name: "kind", + Value: cursor, + }, + } +} + +func (r workflowVersionQueryKindWorkflowKind) In(value []WorkflowKind) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "kind", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryKindWorkflowKind) InIfPresent(value []WorkflowKind) workflowVersionDefaultParam { + if value == nil { + return workflowVersionDefaultParam{} + } + return r.In(value) +} + +func (r workflowVersionQueryKindWorkflowKind) NotIn(value []WorkflowKind) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "kind", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryKindWorkflowKind) NotInIfPresent(value []WorkflowKind) workflowVersionDefaultParam { + if value == nil { + return workflowVersionDefaultParam{} + } + return r.NotIn(value) +} + +func (r workflowVersionQueryKindWorkflowKind) Not(value WorkflowKind) workflowVersionDefaultParam { + return workflowVersionDefaultParam{ + data: builder.Field{ + Name: "kind", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r workflowVersionQueryKindWorkflowKind) NotIfPresent(value *WorkflowKind) workflowVersionDefaultParam { + if value == nil { + return workflowVersionDefaultParam{} + } + return r.Not(*value) +} + +func (r workflowVersionQueryKindWorkflowKind) Field() workflowVersionPrismaFields { + return workflowVersionFieldKind +} + // base struct type workflowVersionQueryScheduleTimeoutString struct{} @@ -85497,95 +87210,73 @@ func (r actionQueryConcurrencyWorkflowConcurrency) Field() actionPrismaFields { return actionFieldConcurrency } -// Step acts as a namespaces to access query methods for the Step model -var Step = stepQuery{} +// StepDesiredWorkerLabel acts as a namespaces to access query methods for the StepDesiredWorkerLabel model +var StepDesiredWorkerLabel = stepDesiredWorkerLabelQuery{} -// stepQuery exposes query functions for the step model -type stepQuery struct { +// stepDesiredWorkerLabelQuery exposes query functions for the stepDesiredWorkerLabel model +type stepDesiredWorkerLabelQuery struct { // ID // // @required - ID stepQueryIDString + ID stepDesiredWorkerLabelQueryIDBigInt // CreatedAt // // @required - CreatedAt stepQueryCreatedAtDateTime + CreatedAt stepDesiredWorkerLabelQueryCreatedAtDateTime // UpdatedAt // // @required - UpdatedAt stepQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt stepQueryDeletedAtDateTime - - // ReadableID - // - // @optional - ReadableID stepQueryReadableIDString + UpdatedAt stepDesiredWorkerLabelQueryUpdatedAtDateTime - Tenant stepQueryTenantRelations + Step stepDesiredWorkerLabelQueryStepRelations - // TenantID + // StepID // // @required - TenantID stepQueryTenantIDString - - Job stepQueryJobRelations + StepID stepDesiredWorkerLabelQueryStepIDString - // JobID + // Key // // @required - JobID stepQueryJobIDString + Key stepDesiredWorkerLabelQueryKeyString - Action stepQueryActionRelations - - // ActionID + // StrValue // - // @required - ActionID stepQueryActionIDString + // @optional + StrValue stepDesiredWorkerLabelQueryStrValueString - // Timeout + // IntValue // // @optional - Timeout stepQueryTimeoutString + IntValue stepDesiredWorkerLabelQueryIntValueInt - // Retries + // Required // // @required - Retries stepQueryRetriesInt + Required stepDesiredWorkerLabelQueryRequiredBoolean - // CustomUserData + // Comparator // - // @optional - CustomUserData stepQueryCustomUserDataJson - - Children stepQueryChildrenRelations - - Parents stepQueryParentsRelations - - StepRuns stepQueryStepRunsRelations + // @required + Comparator stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator - // ScheduleTimeout + // Weight // // @required - ScheduleTimeout stepQueryScheduleTimeoutString - - RateLimits stepQueryRateLimitsRelations + Weight stepDesiredWorkerLabelQueryWeightInt } -func (stepQuery) Not(params ...StepWhereParam) stepDefaultParam { +func (stepDesiredWorkerLabelQuery) Not(params ...StepDesiredWorkerLabelWhereParam) stepDesiredWorkerLabelDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepDefaultParam{ + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "NOT", List: true, @@ -85595,14 +87286,14 @@ func (stepQuery) Not(params ...StepWhereParam) stepDefaultParam { } } -func (stepQuery) Or(params ...StepWhereParam) stepDefaultParam { +func (stepDesiredWorkerLabelQuery) Or(params ...StepDesiredWorkerLabelWhereParam) stepDesiredWorkerLabelDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepDefaultParam{ + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "OR", List: true, @@ -85612,14 +87303,14 @@ func (stepQuery) Or(params ...StepWhereParam) stepDefaultParam { } } -func (stepQuery) And(params ...StepWhereParam) stepDefaultParam { +func (stepDesiredWorkerLabelQuery) And(params ...StepDesiredWorkerLabelWhereParam) stepDesiredWorkerLabelDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepDefaultParam{ + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "AND", List: true, @@ -85629,31 +87320,31 @@ func (stepQuery) And(params ...StepWhereParam) stepDefaultParam { } } -func (stepQuery) JobIDReadableID( - _jobID StepWithPrismaJobIDWhereParam, +func (stepDesiredWorkerLabelQuery) StepIDKey( + _stepID StepDesiredWorkerLabelWithPrismaStepIDWhereParam, - _readableID StepWithPrismaReadableIDWhereParam, -) StepEqualsUniqueWhereParam { + _key StepDesiredWorkerLabelWithPrismaKeyWhereParam, +) StepDesiredWorkerLabelEqualsUniqueWhereParam { var fields []builder.Field - fields = append(fields, _jobID.field()) - fields = append(fields, _readableID.field()) + fields = append(fields, _stepID.field()) + fields = append(fields, _key.field()) - return stepEqualsUniqueParam{ + return stepDesiredWorkerLabelEqualsUniqueParam{ data: builder.Field{ - Name: "jobId_readableId", + Name: "stepId_key", Fields: builder.TransformEquals(fields), }, } } // base struct -type stepQueryIDString struct{} +type stepDesiredWorkerLabelQueryIDBigInt struct{} // Set the required value of ID -func (r stepQueryIDString) Set(value string) stepSetParam { +func (r stepDesiredWorkerLabelQueryIDBigInt) Set(value BigInt) stepDesiredWorkerLabelSetParam { - return stepSetParam{ + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ Name: "id", Value: value, @@ -85663,22 +87354,22 @@ func (r stepQueryIDString) Set(value string) stepSetParam { } // Set the optional value of ID dynamically -func (r stepQueryIDString) SetIfPresent(value *String) stepSetParam { +func (r stepDesiredWorkerLabelQueryIDBigInt) SetIfPresent(value *BigInt) stepDesiredWorkerLabelSetParam { if value == nil { - return stepSetParam{} + return stepDesiredWorkerLabelSetParam{} } return r.Set(*value) } -func (r stepQueryIDString) Equals(value string) stepWithPrismaIDEqualsUniqueParam { - - return stepWithPrismaIDEqualsUniqueParam{ +// Increment the required value of ID +func (r stepDesiredWorkerLabelQueryIDBigInt) Increment(value BigInt) stepDesiredWorkerLabelSetParam { + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "increment", Value: value, }, }, @@ -85686,38 +87377,21 @@ func (r stepQueryIDString) Equals(value string) stepWithPrismaIDEqualsUniquePara } } -func (r stepQueryIDString) EqualsIfPresent(value *string) stepWithPrismaIDEqualsUniqueParam { +func (r stepDesiredWorkerLabelQueryIDBigInt) IncrementIfPresent(value *BigInt) stepDesiredWorkerLabelSetParam { if value == nil { - return stepWithPrismaIDEqualsUniqueParam{} - } - return r.Equals(*value) -} - -func (r stepQueryIDString) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ - data: builder.Field{ - Name: "id", - Value: direction, - }, - } -} - -func (r stepQueryIDString) Cursor(cursor string) stepCursorParam { - return stepCursorParam{ - data: builder.Field{ - Name: "id", - Value: cursor, - }, + return stepDesiredWorkerLabelSetParam{} } + return r.Increment(*value) } -func (r stepQueryIDString) In(value []string) stepParamUnique { - return stepParamUnique{ +// Decrement the required value of ID +func (r stepDesiredWorkerLabelQueryIDBigInt) Decrement(value BigInt) stepDesiredWorkerLabelSetParam { + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "in", + builder.Field{ + Name: "decrement", Value: value, }, }, @@ -85725,20 +87399,21 @@ func (r stepQueryIDString) In(value []string) stepParamUnique { } } -func (r stepQueryIDString) InIfPresent(value []string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) DecrementIfPresent(value *BigInt) stepDesiredWorkerLabelSetParam { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelSetParam{} } - return r.In(value) + return r.Decrement(*value) } -func (r stepQueryIDString) NotIn(value []string) stepParamUnique { - return stepParamUnique{ +// Multiply the required value of ID +func (r stepDesiredWorkerLabelQueryIDBigInt) Multiply(value BigInt) stepDesiredWorkerLabelSetParam { + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "notIn", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -85746,20 +87421,21 @@ func (r stepQueryIDString) NotIn(value []string) stepParamUnique { } } -func (r stepQueryIDString) NotInIfPresent(value []string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) MultiplyIfPresent(value *BigInt) stepDesiredWorkerLabelSetParam { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelSetParam{} } - return r.NotIn(value) + return r.Multiply(*value) } -func (r stepQueryIDString) Lt(value string) stepParamUnique { - return stepParamUnique{ +// Divide the required value of ID +func (r stepDesiredWorkerLabelQueryIDBigInt) Divide(value BigInt) stepDesiredWorkerLabelSetParam { + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "lt", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -85767,20 +87443,21 @@ func (r stepQueryIDString) Lt(value string) stepParamUnique { } } -func (r stepQueryIDString) LtIfPresent(value *string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) DivideIfPresent(value *BigInt) stepDesiredWorkerLabelSetParam { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelSetParam{} } - return r.Lt(*value) + return r.Divide(*value) } -func (r stepQueryIDString) Lte(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) Equals(value BigInt) stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam { + + return stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "lte", + Name: "equals", Value: value, }, }, @@ -85788,62 +87465,38 @@ func (r stepQueryIDString) Lte(value string) stepParamUnique { } } -func (r stepQueryIDString) LteIfPresent(value *string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) EqualsIfPresent(value *BigInt) stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam{} } - return r.Lte(*value) + return r.Equals(*value) } -func (r stepQueryIDString) Gt(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, + Name: "id", + Value: direction, }, } } -func (r stepQueryIDString) GtIfPresent(value *string) stepParamUnique { - if value == nil { - return stepParamUnique{} - } - return r.Gt(*value) -} - -func (r stepQueryIDString) Gte(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) Cursor(cursor BigInt) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, + Name: "id", + Value: cursor, }, } } -func (r stepQueryIDString) GteIfPresent(value *string) stepParamUnique { - if value == nil { - return stepParamUnique{} - } - return r.Gte(*value) -} - -func (r stepQueryIDString) Contains(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) In(value []BigInt) stepDesiredWorkerLabelParamUnique { + return stepDesiredWorkerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "contains", + Name: "in", Value: value, }, }, @@ -85851,20 +87504,20 @@ func (r stepQueryIDString) Contains(value string) stepParamUnique { } } -func (r stepQueryIDString) ContainsIfPresent(value *string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) InIfPresent(value []BigInt) stepDesiredWorkerLabelParamUnique { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelParamUnique{} } - return r.Contains(*value) + return r.In(value) } -func (r stepQueryIDString) StartsWith(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) NotIn(value []BigInt) stepDesiredWorkerLabelParamUnique { + return stepDesiredWorkerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "startsWith", + Name: "notIn", Value: value, }, }, @@ -85872,20 +87525,20 @@ func (r stepQueryIDString) StartsWith(value string) stepParamUnique { } } -func (r stepQueryIDString) StartsWithIfPresent(value *string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) NotInIfPresent(value []BigInt) stepDesiredWorkerLabelParamUnique { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelParamUnique{} } - return r.StartsWith(*value) + return r.NotIn(value) } -func (r stepQueryIDString) EndsWith(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) Lt(value BigInt) stepDesiredWorkerLabelParamUnique { + return stepDesiredWorkerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -85893,20 +87546,20 @@ func (r stepQueryIDString) EndsWith(value string) stepParamUnique { } } -func (r stepQueryIDString) EndsWithIfPresent(value *string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) LtIfPresent(value *BigInt) stepDesiredWorkerLabelParamUnique { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelParamUnique{} } - return r.EndsWith(*value) + return r.Lt(*value) } -func (r stepQueryIDString) Mode(value QueryMode) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) Lte(value BigInt) stepDesiredWorkerLabelParamUnique { + return stepDesiredWorkerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -85914,20 +87567,20 @@ func (r stepQueryIDString) Mode(value QueryMode) stepParamUnique { } } -func (r stepQueryIDString) ModeIfPresent(value *QueryMode) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) LteIfPresent(value *BigInt) stepDesiredWorkerLabelParamUnique { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelParamUnique{} } - return r.Mode(*value) + return r.Lte(*value) } -func (r stepQueryIDString) Not(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) Gt(value BigInt) stepDesiredWorkerLabelParamUnique { + return stepDesiredWorkerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -85935,22 +87588,20 @@ func (r stepQueryIDString) Not(value string) stepParamUnique { } } -func (r stepQueryIDString) NotIfPresent(value *string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) GtIfPresent(value *BigInt) stepDesiredWorkerLabelParamUnique { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelParamUnique{} } - return r.Not(*value) + return r.Gt(*value) } -// deprecated: Use StartsWith instead. - -func (r stepQueryIDString) HasPrefix(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) Gte(value BigInt) stepDesiredWorkerLabelParamUnique { + return stepDesiredWorkerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gte", Value: value, }, }, @@ -85958,23 +87609,20 @@ func (r stepQueryIDString) HasPrefix(value string) stepParamUnique { } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepQueryIDString) HasPrefixIfPresent(value *string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) GteIfPresent(value *BigInt) stepDesiredWorkerLabelParamUnique { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelParamUnique{} } - return r.HasPrefix(*value) + return r.Gte(*value) } -// deprecated: Use EndsWith instead. - -func (r stepQueryIDString) HasSuffix(value string) stepParamUnique { - return stepParamUnique{ +func (r stepDesiredWorkerLabelQueryIDBigInt) Not(value BigInt) stepDesiredWorkerLabelParamUnique { + return stepDesiredWorkerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "ends_with", + Name: "not", Value: value, }, }, @@ -85982,25 +87630,24 @@ func (r stepQueryIDString) HasSuffix(value string) stepParamUnique { } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepQueryIDString) HasSuffixIfPresent(value *string) stepParamUnique { +func (r stepDesiredWorkerLabelQueryIDBigInt) NotIfPresent(value *BigInt) stepDesiredWorkerLabelParamUnique { if value == nil { - return stepParamUnique{} + return stepDesiredWorkerLabelParamUnique{} } - return r.HasSuffix(*value) + return r.Not(*value) } -func (r stepQueryIDString) Field() stepPrismaFields { - return stepFieldID +func (r stepDesiredWorkerLabelQueryIDBigInt) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldID } // base struct -type stepQueryCreatedAtDateTime struct{} +type stepDesiredWorkerLabelQueryCreatedAtDateTime struct{} // Set the required value of CreatedAt -func (r stepQueryCreatedAtDateTime) Set(value DateTime) stepSetParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Set(value DateTime) stepDesiredWorkerLabelSetParam { - return stepSetParam{ + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ Name: "createdAt", Value: value, @@ -86010,17 +87657,17 @@ func (r stepQueryCreatedAtDateTime) Set(value DateTime) stepSetParam { } // Set the optional value of CreatedAt dynamically -func (r stepQueryCreatedAtDateTime) SetIfPresent(value *DateTime) stepSetParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) SetIfPresent(value *DateTime) stepDesiredWorkerLabelSetParam { if value == nil { - return stepSetParam{} + return stepDesiredWorkerLabelSetParam{} } return r.Set(*value) } -func (r stepQueryCreatedAtDateTime) Equals(value DateTime) stepWithPrismaCreatedAtEqualsParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Equals(value DateTime) stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam { - return stepWithPrismaCreatedAtEqualsParam{ + return stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86033,15 +87680,15 @@ func (r stepQueryCreatedAtDateTime) Equals(value DateTime) stepWithPrismaCreated } } -func (r stepQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) stepWithPrismaCreatedAtEqualsParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam { if value == nil { - return stepWithPrismaCreatedAtEqualsParam{} + return stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r stepQueryCreatedAtDateTime) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Value: direction, @@ -86049,8 +87696,8 @@ func (r stepQueryCreatedAtDateTime) Order(direction SortOrder) stepDefaultParam } } -func (r stepQueryCreatedAtDateTime) Cursor(cursor DateTime) stepCursorParam { - return stepCursorParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Cursor(cursor DateTime) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ data: builder.Field{ Name: "createdAt", Value: cursor, @@ -86058,8 +87705,8 @@ func (r stepQueryCreatedAtDateTime) Cursor(cursor DateTime) stepCursorParam { } } -func (r stepQueryCreatedAtDateTime) In(value []DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) In(value []DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86072,15 +87719,15 @@ func (r stepQueryCreatedAtDateTime) In(value []DateTime) stepDefaultParam { } } -func (r stepQueryCreatedAtDateTime) InIfPresent(value []DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) InIfPresent(value []DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.In(value) } -func (r stepQueryCreatedAtDateTime) NotIn(value []DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) NotIn(value []DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86093,15 +87740,15 @@ func (r stepQueryCreatedAtDateTime) NotIn(value []DateTime) stepDefaultParam { } } -func (r stepQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.NotIn(value) } -func (r stepQueryCreatedAtDateTime) Lt(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Lt(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86114,15 +87761,15 @@ func (r stepQueryCreatedAtDateTime) Lt(value DateTime) stepDefaultParam { } } -func (r stepQueryCreatedAtDateTime) LtIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) LtIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lt(*value) } -func (r stepQueryCreatedAtDateTime) Lte(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Lte(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86135,15 +87782,15 @@ func (r stepQueryCreatedAtDateTime) Lte(value DateTime) stepDefaultParam { } } -func (r stepQueryCreatedAtDateTime) LteIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) LteIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lte(*value) } -func (r stepQueryCreatedAtDateTime) Gt(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Gt(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86156,15 +87803,15 @@ func (r stepQueryCreatedAtDateTime) Gt(value DateTime) stepDefaultParam { } } -func (r stepQueryCreatedAtDateTime) GtIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) GtIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gt(*value) } -func (r stepQueryCreatedAtDateTime) Gte(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Gte(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86177,15 +87824,15 @@ func (r stepQueryCreatedAtDateTime) Gte(value DateTime) stepDefaultParam { } } -func (r stepQueryCreatedAtDateTime) GteIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) GteIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gte(*value) } -func (r stepQueryCreatedAtDateTime) Not(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Not(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86198,17 +87845,17 @@ func (r stepQueryCreatedAtDateTime) Not(value DateTime) stepDefaultParam { } } -func (r stepQueryCreatedAtDateTime) NotIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) NotIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepQueryCreatedAtDateTime) Before(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Before(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86222,17 +87869,17 @@ func (r stepQueryCreatedAtDateTime) Before(value DateTime) stepDefaultParam { } // deprecated: Use LtIfPresent instead. -func (r stepQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepQueryCreatedAtDateTime) After(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) After(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86246,17 +87893,17 @@ func (r stepQueryCreatedAtDateTime) After(value DateTime) stepDefaultParam { } // deprecated: Use GtIfPresent instead. -func (r stepQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86270,17 +87917,17 @@ func (r stepQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepDefaultPara } // deprecated: Use LteIfPresent instead. -func (r stepQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepQueryCreatedAtDateTime) AfterEquals(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) AfterEquals(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -86294,24 +87941,24 @@ func (r stepQueryCreatedAtDateTime) AfterEquals(value DateTime) stepDefaultParam } // deprecated: Use GteIfPresent instead. -func (r stepQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.AfterEquals(*value) } -func (r stepQueryCreatedAtDateTime) Field() stepPrismaFields { - return stepFieldCreatedAt +func (r stepDesiredWorkerLabelQueryCreatedAtDateTime) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldCreatedAt } // base struct -type stepQueryUpdatedAtDateTime struct{} +type stepDesiredWorkerLabelQueryUpdatedAtDateTime struct{} // Set the required value of UpdatedAt -func (r stepQueryUpdatedAtDateTime) Set(value DateTime) stepSetParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Set(value DateTime) stepDesiredWorkerLabelSetParam { - return stepSetParam{ + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ Name: "updatedAt", Value: value, @@ -86321,17 +87968,17 @@ func (r stepQueryUpdatedAtDateTime) Set(value DateTime) stepSetParam { } // Set the optional value of UpdatedAt dynamically -func (r stepQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) stepSetParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) stepDesiredWorkerLabelSetParam { if value == nil { - return stepSetParam{} + return stepDesiredWorkerLabelSetParam{} } return r.Set(*value) } -func (r stepQueryUpdatedAtDateTime) Equals(value DateTime) stepWithPrismaUpdatedAtEqualsParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Equals(value DateTime) stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam { - return stepWithPrismaUpdatedAtEqualsParam{ + return stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86344,15 +87991,15 @@ func (r stepQueryUpdatedAtDateTime) Equals(value DateTime) stepWithPrismaUpdated } } -func (r stepQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) stepWithPrismaUpdatedAtEqualsParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam { if value == nil { - return stepWithPrismaUpdatedAtEqualsParam{} + return stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r stepQueryUpdatedAtDateTime) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Value: direction, @@ -86360,8 +88007,8 @@ func (r stepQueryUpdatedAtDateTime) Order(direction SortOrder) stepDefaultParam } } -func (r stepQueryUpdatedAtDateTime) Cursor(cursor DateTime) stepCursorParam { - return stepCursorParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Cursor(cursor DateTime) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ data: builder.Field{ Name: "updatedAt", Value: cursor, @@ -86369,8 +88016,8 @@ func (r stepQueryUpdatedAtDateTime) Cursor(cursor DateTime) stepCursorParam { } } -func (r stepQueryUpdatedAtDateTime) In(value []DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) In(value []DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86383,15 +88030,15 @@ func (r stepQueryUpdatedAtDateTime) In(value []DateTime) stepDefaultParam { } } -func (r stepQueryUpdatedAtDateTime) InIfPresent(value []DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) InIfPresent(value []DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.In(value) } -func (r stepQueryUpdatedAtDateTime) NotIn(value []DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) NotIn(value []DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86404,15 +88051,15 @@ func (r stepQueryUpdatedAtDateTime) NotIn(value []DateTime) stepDefaultParam { } } -func (r stepQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.NotIn(value) } -func (r stepQueryUpdatedAtDateTime) Lt(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Lt(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86425,15 +88072,15 @@ func (r stepQueryUpdatedAtDateTime) Lt(value DateTime) stepDefaultParam { } } -func (r stepQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lt(*value) } -func (r stepQueryUpdatedAtDateTime) Lte(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Lte(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86446,15 +88093,15 @@ func (r stepQueryUpdatedAtDateTime) Lte(value DateTime) stepDefaultParam { } } -func (r stepQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lte(*value) } -func (r stepQueryUpdatedAtDateTime) Gt(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Gt(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86467,15 +88114,15 @@ func (r stepQueryUpdatedAtDateTime) Gt(value DateTime) stepDefaultParam { } } -func (r stepQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gt(*value) } -func (r stepQueryUpdatedAtDateTime) Gte(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Gte(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86488,15 +88135,15 @@ func (r stepQueryUpdatedAtDateTime) Gte(value DateTime) stepDefaultParam { } } -func (r stepQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gte(*value) } -func (r stepQueryUpdatedAtDateTime) Not(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Not(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86509,17 +88156,17 @@ func (r stepQueryUpdatedAtDateTime) Not(value DateTime) stepDefaultParam { } } -func (r stepQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepQueryUpdatedAtDateTime) Before(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Before(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86533,17 +88180,17 @@ func (r stepQueryUpdatedAtDateTime) Before(value DateTime) stepDefaultParam { } // deprecated: Use LtIfPresent instead. -func (r stepQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepQueryUpdatedAtDateTime) After(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) After(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86557,17 +88204,17 @@ func (r stepQueryUpdatedAtDateTime) After(value DateTime) stepDefaultParam { } // deprecated: Use GtIfPresent instead. -func (r stepQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86581,17 +88228,17 @@ func (r stepQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepDefaultPara } // deprecated: Use LteIfPresent instead. -func (r stepQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -86605,130 +88252,173 @@ func (r stepQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepDefaultParam } // deprecated: Use GteIfPresent instead. -func (r stepQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.AfterEquals(*value) } -func (r stepQueryUpdatedAtDateTime) Field() stepPrismaFields { - return stepFieldUpdatedAt +func (r stepDesiredWorkerLabelQueryUpdatedAtDateTime) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldUpdatedAt } // base struct -type stepQueryDeletedAtDateTime struct{} +type stepDesiredWorkerLabelQueryStepStep struct{} -// Set the optional value of DeletedAt -func (r stepQueryDeletedAtDateTime) Set(value DateTime) stepSetParam { +type stepDesiredWorkerLabelQueryStepRelations struct{} - return stepSetParam{ +// StepDesiredWorkerLabel -> Step +// +// @relation +// @required +func (stepDesiredWorkerLabelQueryStepRelations) Where( + params ...StepWhereParam, +) stepDesiredWorkerLabelDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", - Value: value, + Name: "step", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, }, } - } -// Set the optional value of DeletedAt dynamically -func (r stepQueryDeletedAtDateTime) SetIfPresent(value *DateTime) stepSetParam { - if value == nil { - return stepSetParam{} - } +func (stepDesiredWorkerLabelQueryStepRelations) Fetch() stepDesiredWorkerLabelToStepFindUnique { + var v stepDesiredWorkerLabelToStepFindUnique - return r.Set(*value) + v.query.Operation = "query" + v.query.Method = "step" + v.query.Outputs = stepOutput + + return v } -// Set the optional value of DeletedAt dynamically -func (r stepQueryDeletedAtDateTime) SetOptional(value *DateTime) stepSetParam { - if value == nil { +func (r stepDesiredWorkerLabelQueryStepRelations) Link( + params StepWhereParam, +) stepDesiredWorkerLabelWithPrismaStepSetParam { + var fields []builder.Field - var v *DateTime - return stepSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, - }, - } + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepDesiredWorkerLabelWithPrismaStepSetParam{} } - return r.Set(*value) -} - -func (r stepQueryDeletedAtDateTime) Equals(value DateTime) stepWithPrismaDeletedAtEqualsParam { + fields = append(fields, f) - return stepWithPrismaDeletedAtEqualsParam{ + return stepDesiredWorkerLabelWithPrismaStepSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "step", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r stepQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) stepWithPrismaDeletedAtEqualsParam { - if value == nil { - return stepWithPrismaDeletedAtEqualsParam{} - } - return r.Equals(*value) -} +func (r stepDesiredWorkerLabelQueryStepRelations) Unlink() stepDesiredWorkerLabelWithPrismaStepSetParam { + var v stepDesiredWorkerLabelWithPrismaStepSetParam -func (r stepQueryDeletedAtDateTime) EqualsOptional(value *DateTime) stepDefaultParam { - return stepDefaultParam{ + v = stepDesiredWorkerLabelWithPrismaStepSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "step", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r stepQueryDeletedAtDateTime) IsNull() stepDefaultParam { - var str *string = nil - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepStep) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldStep +} + +// base struct +type stepDesiredWorkerLabelQueryStepIDString struct{} + +// Set the required value of StepID +func (r stepDesiredWorkerLabelQueryStepIDString) Set(value string) stepDesiredWorkerLabelSetParam { + + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", + Value: value, + }, + } + +} + +// Set the optional value of StepID dynamically +func (r stepDesiredWorkerLabelQueryStepIDString) SetIfPresent(value *String) stepDesiredWorkerLabelSetParam { + if value == nil { + return stepDesiredWorkerLabelSetParam{} + } + + return r.Set(*value) +} + +func (r stepDesiredWorkerLabelQueryStepIDString) Equals(value string) stepDesiredWorkerLabelWithPrismaStepIDEqualsParam { + + return stepDesiredWorkerLabelWithPrismaStepIDEqualsParam{ + data: builder.Field{ + Name: "stepId", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r stepQueryDeletedAtDateTime) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) EqualsIfPresent(value *string) stepDesiredWorkerLabelWithPrismaStepIDEqualsParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaStepIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r stepDesiredWorkerLabelQueryStepIDString) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Value: direction, }, } } -func (r stepQueryDeletedAtDateTime) Cursor(cursor DateTime) stepCursorParam { - return stepCursorParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Cursor(cursor string) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Value: cursor, }, } } -func (r stepQueryDeletedAtDateTime) In(value []DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) In(value []string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { Name: "in", @@ -86739,17 +88429,17 @@ func (r stepQueryDeletedAtDateTime) In(value []DateTime) stepDefaultParam { } } -func (r stepQueryDeletedAtDateTime) InIfPresent(value []DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) InIfPresent(value []string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.In(value) } -func (r stepQueryDeletedAtDateTime) NotIn(value []DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) NotIn(value []string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { Name: "notIn", @@ -86760,17 +88450,17 @@ func (r stepQueryDeletedAtDateTime) NotIn(value []DateTime) stepDefaultParam { } } -func (r stepQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) NotInIfPresent(value []string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.NotIn(value) } -func (r stepQueryDeletedAtDateTime) Lt(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Lt(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { Name: "lt", @@ -86781,17 +88471,17 @@ func (r stepQueryDeletedAtDateTime) Lt(value DateTime) stepDefaultParam { } } -func (r stepQueryDeletedAtDateTime) LtIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) LtIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lt(*value) } -func (r stepQueryDeletedAtDateTime) Lte(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Lte(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { Name: "lte", @@ -86802,17 +88492,17 @@ func (r stepQueryDeletedAtDateTime) Lte(value DateTime) stepDefaultParam { } } -func (r stepQueryDeletedAtDateTime) LteIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) LteIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lte(*value) } -func (r stepQueryDeletedAtDateTime) Gt(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Gt(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { Name: "gt", @@ -86823,17 +88513,17 @@ func (r stepQueryDeletedAtDateTime) Gt(value DateTime) stepDefaultParam { } } -func (r stepQueryDeletedAtDateTime) GtIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) GtIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gt(*value) } -func (r stepQueryDeletedAtDateTime) Gte(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Gte(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { Name: "gte", @@ -86844,20 +88534,20 @@ func (r stepQueryDeletedAtDateTime) Gte(value DateTime) stepDefaultParam { } } -func (r stepQueryDeletedAtDateTime) GteIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) GteIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gte(*value) } -func (r stepQueryDeletedAtDateTime) Not(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Contains(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -86865,22 +88555,20 @@ func (r stepQueryDeletedAtDateTime) Not(value DateTime) stepDefaultParam { } } -func (r stepQueryDeletedAtDateTime) NotIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) ContainsIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r stepQueryDeletedAtDateTime) Before(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) StartsWith(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -86888,23 +88576,20 @@ func (r stepQueryDeletedAtDateTime) Before(value DateTime) stepDefaultParam { } } -// deprecated: Use LtIfPresent instead. -func (r stepQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) StartsWithIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r stepQueryDeletedAtDateTime) After(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) EndsWith(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -86912,23 +88597,20 @@ func (r stepQueryDeletedAtDateTime) After(value DateTime) stepDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r stepQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) EndsWithIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r stepQueryDeletedAtDateTime) BeforeEquals(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Mode(value QueryMode) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -86936,23 +88618,20 @@ func (r stepQueryDeletedAtDateTime) BeforeEquals(value DateTime) stepDefaultPara } } -// deprecated: Use LteIfPresent instead. -func (r stepQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) ModeIfPresent(value *QueryMode) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r stepQueryDeletedAtDateTime) AfterEquals(value DateTime) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Not(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "stepId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -86960,66 +88639,46 @@ func (r stepQueryDeletedAtDateTime) AfterEquals(value DateTime) stepDefaultParam } } -// deprecated: Use GteIfPresent instead. -func (r stepQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStepIDString) NotIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r stepQueryDeletedAtDateTime) Field() stepPrismaFields { - return stepFieldDeletedAt + return r.Not(*value) } -// base struct -type stepQueryReadableIDString struct{} - -// Set the optional value of ReadableID -func (r stepQueryReadableIDString) Set(value string) stepSetParam { +// deprecated: Use StartsWith instead. - return stepSetParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) HasPrefix(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", - Value: value, + Name: "stepId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, }, } - -} - -// Set the optional value of ReadableID dynamically -func (r stepQueryReadableIDString) SetIfPresent(value *String) stepSetParam { - if value == nil { - return stepSetParam{} - } - - return r.Set(*value) } -// Set the optional value of ReadableID dynamically -func (r stepQueryReadableIDString) SetOptional(value *String) stepSetParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepDesiredWorkerLabelQueryStepIDString) HasPrefixIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - - var v *string - return stepSetParam{ - data: builder.Field{ - Name: "readableId", - Value: v, - }, - } + return stepDesiredWorkerLabelDefaultParam{} } - - return r.Set(*value) + return r.HasPrefix(*value) } -func (r stepQueryReadableIDString) Equals(value string) stepWithPrismaReadableIDEqualsParam { +// deprecated: Use EndsWith instead. - return stepWithPrismaReadableIDEqualsParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) HasSuffix(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "stepId", Fields: []builder.Field{ { - Name: "equals", + Name: "ends_with", Value: value, }, }, @@ -87027,64 +88686,86 @@ func (r stepQueryReadableIDString) Equals(value string) stepWithPrismaReadableID } } -func (r stepQueryReadableIDString) EqualsIfPresent(value *string) stepWithPrismaReadableIDEqualsParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepDesiredWorkerLabelQueryStepIDString) HasSuffixIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepWithPrismaReadableIDEqualsParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Equals(*value) + return r.HasSuffix(*value) } -func (r stepQueryReadableIDString) EqualsOptional(value *String) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStepIDString) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldStepID +} + +// base struct +type stepDesiredWorkerLabelQueryKeyString struct{} + +// Set the required value of Key +func (r stepDesiredWorkerLabelQueryKeyString) Set(value string) stepDesiredWorkerLabelWithPrismaKeySetParam { + + return stepDesiredWorkerLabelWithPrismaKeySetParam{ data: builder.Field{ - Name: "readableId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "key", + Value: value, }, } + } -func (r stepQueryReadableIDString) IsNull() stepDefaultParam { - var str *string = nil - return stepDefaultParam{ +// Set the optional value of Key dynamically +func (r stepDesiredWorkerLabelQueryKeyString) SetIfPresent(value *String) stepDesiredWorkerLabelWithPrismaKeySetParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaKeySetParam{} + } + + return r.Set(*value) +} + +func (r stepDesiredWorkerLabelQueryKeyString) Equals(value string) stepDesiredWorkerLabelWithPrismaKeyEqualsParam { + + return stepDesiredWorkerLabelWithPrismaKeyEqualsParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r stepQueryReadableIDString) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) EqualsIfPresent(value *string) stepDesiredWorkerLabelWithPrismaKeyEqualsParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaKeyEqualsParam{} + } + return r.Equals(*value) +} + +func (r stepDesiredWorkerLabelQueryKeyString) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Value: direction, }, } } -func (r stepQueryReadableIDString) Cursor(cursor string) stepCursorParam { - return stepCursorParam{ +func (r stepDesiredWorkerLabelQueryKeyString) Cursor(cursor string) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Value: cursor, }, } } -func (r stepQueryReadableIDString) In(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) In(value []string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "in", @@ -87095,17 +88776,17 @@ func (r stepQueryReadableIDString) In(value []string) stepDefaultParam { } } -func (r stepQueryReadableIDString) InIfPresent(value []string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) InIfPresent(value []string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.In(value) } -func (r stepQueryReadableIDString) NotIn(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) NotIn(value []string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "notIn", @@ -87116,17 +88797,17 @@ func (r stepQueryReadableIDString) NotIn(value []string) stepDefaultParam { } } -func (r stepQueryReadableIDString) NotInIfPresent(value []string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) NotInIfPresent(value []string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.NotIn(value) } -func (r stepQueryReadableIDString) Lt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) Lt(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "lt", @@ -87137,17 +88818,17 @@ func (r stepQueryReadableIDString) Lt(value string) stepDefaultParam { } } -func (r stepQueryReadableIDString) LtIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) LtIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lt(*value) } -func (r stepQueryReadableIDString) Lte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) Lte(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "lte", @@ -87158,17 +88839,17 @@ func (r stepQueryReadableIDString) Lte(value string) stepDefaultParam { } } -func (r stepQueryReadableIDString) LteIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) LteIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lte(*value) } -func (r stepQueryReadableIDString) Gt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) Gt(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "gt", @@ -87179,17 +88860,17 @@ func (r stepQueryReadableIDString) Gt(value string) stepDefaultParam { } } -func (r stepQueryReadableIDString) GtIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) GtIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gt(*value) } -func (r stepQueryReadableIDString) Gte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) Gte(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "gte", @@ -87200,17 +88881,17 @@ func (r stepQueryReadableIDString) Gte(value string) stepDefaultParam { } } -func (r stepQueryReadableIDString) GteIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) GteIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gte(*value) } -func (r stepQueryReadableIDString) Contains(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) Contains(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "contains", @@ -87221,17 +88902,17 @@ func (r stepQueryReadableIDString) Contains(value string) stepDefaultParam { } } -func (r stepQueryReadableIDString) ContainsIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) ContainsIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Contains(*value) } -func (r stepQueryReadableIDString) StartsWith(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) StartsWith(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "startsWith", @@ -87242,17 +88923,17 @@ func (r stepQueryReadableIDString) StartsWith(value string) stepDefaultParam { } } -func (r stepQueryReadableIDString) StartsWithIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) StartsWithIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.StartsWith(*value) } -func (r stepQueryReadableIDString) EndsWith(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) EndsWith(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "endsWith", @@ -87263,17 +88944,17 @@ func (r stepQueryReadableIDString) EndsWith(value string) stepDefaultParam { } } -func (r stepQueryReadableIDString) EndsWithIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) EndsWithIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.EndsWith(*value) } -func (r stepQueryReadableIDString) Mode(value QueryMode) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) Mode(value QueryMode) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "mode", @@ -87284,17 +88965,17 @@ func (r stepQueryReadableIDString) Mode(value QueryMode) stepDefaultParam { } } -func (r stepQueryReadableIDString) ModeIfPresent(value *QueryMode) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) ModeIfPresent(value *QueryMode) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Mode(*value) } -func (r stepQueryReadableIDString) Not(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) Not(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "not", @@ -87305,19 +88986,19 @@ func (r stepQueryReadableIDString) Not(value string) stepDefaultParam { } } -func (r stepQueryReadableIDString) NotIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) NotIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepQueryReadableIDString) HasPrefix(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) HasPrefix(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "starts_with", @@ -87329,19 +89010,19 @@ func (r stepQueryReadableIDString) HasPrefix(value string) stepDefaultParam { } // deprecated: Use StartsWithIfPresent instead. -func (r stepQueryReadableIDString) HasPrefixIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) HasPrefixIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepQueryReadableIDString) HasSuffix(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryKeyString) HasSuffix(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "readableId", + Name: "key", Fields: []builder.Field{ { Name: "ends_with", @@ -87353,134 +89034,83 @@ func (r stepQueryReadableIDString) HasSuffix(value string) stepDefaultParam { } // deprecated: Use EndsWithIfPresent instead. -func (r stepQueryReadableIDString) HasSuffixIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryKeyString) HasSuffixIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.HasSuffix(*value) } -func (r stepQueryReadableIDString) Field() stepPrismaFields { - return stepFieldReadableID +func (r stepDesiredWorkerLabelQueryKeyString) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldKey } // base struct -type stepQueryTenantTenant struct{} - -type stepQueryTenantRelations struct{} - -// Step -> Tenant -// -// @relation -// @required -func (stepQueryTenantRelations) Where( - params ...TenantWhereParam, -) stepDefaultParam { - var fields []builder.Field +type stepDesiredWorkerLabelQueryStrValueString struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the optional value of StrValue +func (r stepDesiredWorkerLabelQueryStrValueString) Set(value string) stepDesiredWorkerLabelSetParam { - return stepDefaultParam{ + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "strValue", + Value: value, }, } -} - -func (stepQueryTenantRelations) Fetch() stepToTenantFindUnique { - var v stepToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - return v } -func (r stepQueryTenantRelations) Link( - params TenantWhereParam, -) stepWithPrismaTenantSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepWithPrismaTenantSetParam{} +// Set the optional value of StrValue dynamically +func (r stepDesiredWorkerLabelQueryStrValueString) SetIfPresent(value *String) stepDesiredWorkerLabelSetParam { + if value == nil { + return stepDesiredWorkerLabelSetParam{} } - fields = append(fields, f) + return r.Set(*value) +} - return stepWithPrismaTenantSetParam{ - data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, +// Set the optional value of StrValue dynamically +func (r stepDesiredWorkerLabelQueryStrValueString) SetOptional(value *String) stepDesiredWorkerLabelSetParam { + if value == nil { + + var v *string + return stepDesiredWorkerLabelSetParam{ + data: builder.Field{ + Name: "strValue", + Value: v, }, - }, + } } + + return r.Set(*value) } -func (r stepQueryTenantRelations) Unlink() stepWithPrismaTenantSetParam { - var v stepWithPrismaTenantSetParam +func (r stepDesiredWorkerLabelQueryStrValueString) Equals(value string) stepDesiredWorkerLabelWithPrismaStrValueEqualsParam { - v = stepWithPrismaTenantSetParam{ + return stepDesiredWorkerLabelWithPrismaStrValueEqualsParam{ data: builder.Field{ - Name: "tenant", + Name: "strValue", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "equals", + Value: value, }, }, }, } - - return v -} - -func (r stepQueryTenantTenant) Field() stepPrismaFields { - return stepFieldTenant -} - -// base struct -type stepQueryTenantIDString struct{} - -// Set the required value of TenantID -func (r stepQueryTenantIDString) Set(value string) stepSetParam { - - return stepSetParam{ - data: builder.Field{ - Name: "tenantId", - Value: value, - }, - } - } -// Set the optional value of TenantID dynamically -func (r stepQueryTenantIDString) SetIfPresent(value *String) stepSetParam { +func (r stepDesiredWorkerLabelQueryStrValueString) EqualsIfPresent(value *string) stepDesiredWorkerLabelWithPrismaStrValueEqualsParam { if value == nil { - return stepSetParam{} + return stepDesiredWorkerLabelWithPrismaStrValueEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r stepQueryTenantIDString) Equals(value string) stepWithPrismaTenantIDEqualsParam { - - return stepWithPrismaTenantIDEqualsParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) EqualsOptional(value *String) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "equals", @@ -87491,35 +89121,43 @@ func (r stepQueryTenantIDString) Equals(value string) stepWithPrismaTenantIDEqua } } -func (r stepQueryTenantIDString) EqualsIfPresent(value *string) stepWithPrismaTenantIDEqualsParam { - if value == nil { - return stepWithPrismaTenantIDEqualsParam{} +func (r stepDesiredWorkerLabelQueryStrValueString) IsNull() stepDesiredWorkerLabelDefaultParam { + var str *string = nil + return stepDesiredWorkerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r stepQueryTenantIDString) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Value: direction, }, } } -func (r stepQueryTenantIDString) Cursor(cursor string) stepCursorParam { - return stepCursorParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Cursor(cursor string) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Value: cursor, }, } } -func (r stepQueryTenantIDString) In(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) In(value []string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "in", @@ -87530,17 +89168,17 @@ func (r stepQueryTenantIDString) In(value []string) stepDefaultParam { } } -func (r stepQueryTenantIDString) InIfPresent(value []string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) InIfPresent(value []string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.In(value) } -func (r stepQueryTenantIDString) NotIn(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) NotIn(value []string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "notIn", @@ -87551,17 +89189,17 @@ func (r stepQueryTenantIDString) NotIn(value []string) stepDefaultParam { } } -func (r stepQueryTenantIDString) NotInIfPresent(value []string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) NotInIfPresent(value []string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.NotIn(value) } -func (r stepQueryTenantIDString) Lt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Lt(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "lt", @@ -87572,17 +89210,17 @@ func (r stepQueryTenantIDString) Lt(value string) stepDefaultParam { } } -func (r stepQueryTenantIDString) LtIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) LtIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lt(*value) } -func (r stepQueryTenantIDString) Lte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Lte(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "lte", @@ -87593,17 +89231,17 @@ func (r stepQueryTenantIDString) Lte(value string) stepDefaultParam { } } -func (r stepQueryTenantIDString) LteIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) LteIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lte(*value) } -func (r stepQueryTenantIDString) Gt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Gt(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "gt", @@ -87614,17 +89252,17 @@ func (r stepQueryTenantIDString) Gt(value string) stepDefaultParam { } } -func (r stepQueryTenantIDString) GtIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) GtIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gt(*value) } -func (r stepQueryTenantIDString) Gte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Gte(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "gte", @@ -87635,17 +89273,17 @@ func (r stepQueryTenantIDString) Gte(value string) stepDefaultParam { } } -func (r stepQueryTenantIDString) GteIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) GteIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gte(*value) } -func (r stepQueryTenantIDString) Contains(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Contains(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "contains", @@ -87656,17 +89294,17 @@ func (r stepQueryTenantIDString) Contains(value string) stepDefaultParam { } } -func (r stepQueryTenantIDString) ContainsIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) ContainsIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Contains(*value) } -func (r stepQueryTenantIDString) StartsWith(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) StartsWith(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "startsWith", @@ -87677,17 +89315,17 @@ func (r stepQueryTenantIDString) StartsWith(value string) stepDefaultParam { } } -func (r stepQueryTenantIDString) StartsWithIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) StartsWithIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.StartsWith(*value) } -func (r stepQueryTenantIDString) EndsWith(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) EndsWith(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "endsWith", @@ -87698,17 +89336,17 @@ func (r stepQueryTenantIDString) EndsWith(value string) stepDefaultParam { } } -func (r stepQueryTenantIDString) EndsWithIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) EndsWithIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.EndsWith(*value) } -func (r stepQueryTenantIDString) Mode(value QueryMode) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Mode(value QueryMode) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "mode", @@ -87719,17 +89357,17 @@ func (r stepQueryTenantIDString) Mode(value QueryMode) stepDefaultParam { } } -func (r stepQueryTenantIDString) ModeIfPresent(value *QueryMode) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) ModeIfPresent(value *QueryMode) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Mode(*value) } -func (r stepQueryTenantIDString) Not(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) Not(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "not", @@ -87740,19 +89378,19 @@ func (r stepQueryTenantIDString) Not(value string) stepDefaultParam { } } -func (r stepQueryTenantIDString) NotIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) NotIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepQueryTenantIDString) HasPrefix(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) HasPrefix(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "starts_with", @@ -87764,19 +89402,19 @@ func (r stepQueryTenantIDString) HasPrefix(value string) stepDefaultParam { } // deprecated: Use StartsWithIfPresent instead. -func (r stepQueryTenantIDString) HasPrefixIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) HasPrefixIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepQueryTenantIDString) HasSuffix(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryStrValueString) HasSuffix(value string) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "strValue", Fields: []builder.Field{ { Name: "ends_with", @@ -87788,134 +89426,150 @@ func (r stepQueryTenantIDString) HasSuffix(value string) stepDefaultParam { } // deprecated: Use EndsWithIfPresent instead. -func (r stepQueryTenantIDString) HasSuffixIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryStrValueString) HasSuffixIfPresent(value *string) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.HasSuffix(*value) } -func (r stepQueryTenantIDString) Field() stepPrismaFields { - return stepFieldTenantID +func (r stepDesiredWorkerLabelQueryStrValueString) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldStrValue } // base struct -type stepQueryJobJob struct{} - -type stepQueryJobRelations struct{} - -// Step -> Job -// -// @relation -// @required -func (stepQueryJobRelations) Where( - params ...JobWhereParam, -) stepDefaultParam { - var fields []builder.Field +type stepDesiredWorkerLabelQueryIntValueInt struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the optional value of IntValue +func (r stepDesiredWorkerLabelQueryIntValueInt) Set(value int) stepDesiredWorkerLabelSetParam { - return stepDefaultParam{ + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ - Name: "job", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "intValue", + Value: value, }, } -} -func (stepQueryJobRelations) Fetch() stepToJobFindUnique { - var v stepToJobFindUnique +} - v.query.Operation = "query" - v.query.Method = "job" - v.query.Outputs = jobOutput +// Set the optional value of IntValue dynamically +func (r stepDesiredWorkerLabelQueryIntValueInt) SetIfPresent(value *Int) stepDesiredWorkerLabelSetParam { + if value == nil { + return stepDesiredWorkerLabelSetParam{} + } - return v + return r.Set(*value) } -func (r stepQueryJobRelations) Link( - params JobWhereParam, -) stepWithPrismaJobSetParam { - var fields []builder.Field +// Set the optional value of IntValue dynamically +func (r stepDesiredWorkerLabelQueryIntValueInt) SetOptional(value *Int) stepDesiredWorkerLabelSetParam { + if value == nil { - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepWithPrismaJobSetParam{} + var v *int + return stepDesiredWorkerLabelSetParam{ + data: builder.Field{ + Name: "intValue", + Value: v, + }, + } } - fields = append(fields, f) + return r.Set(*value) +} - return stepWithPrismaJobSetParam{ +// Increment the optional value of IntValue +func (r stepDesiredWorkerLabelQueryIntValueInt) Increment(value int) stepDesiredWorkerLabelSetParam { + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ - Name: "job", + Name: "intValue", Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), + builder.Field{ + Name: "increment", + Value: value, }, }, }, } } -func (r stepQueryJobRelations) Unlink() stepWithPrismaJobSetParam { - var v stepWithPrismaJobSetParam +func (r stepDesiredWorkerLabelQueryIntValueInt) IncrementIfPresent(value *int) stepDesiredWorkerLabelSetParam { + if value == nil { + return stepDesiredWorkerLabelSetParam{} + } + return r.Increment(*value) +} - v = stepWithPrismaJobSetParam{ +// Decrement the optional value of IntValue +func (r stepDesiredWorkerLabelQueryIntValueInt) Decrement(value int) stepDesiredWorkerLabelSetParam { + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ - Name: "job", + Name: "intValue", Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, + builder.Field{ + Name: "decrement", + Value: value, }, }, }, } - - return v } -func (r stepQueryJobJob) Field() stepPrismaFields { - return stepFieldJob +func (r stepDesiredWorkerLabelQueryIntValueInt) DecrementIfPresent(value *int) stepDesiredWorkerLabelSetParam { + if value == nil { + return stepDesiredWorkerLabelSetParam{} + } + return r.Decrement(*value) } -// base struct -type stepQueryJobIDString struct{} +// Multiply the optional value of IntValue +func (r stepDesiredWorkerLabelQueryIntValueInt) Multiply(value int) stepDesiredWorkerLabelSetParam { + return stepDesiredWorkerLabelSetParam{ + data: builder.Field{ + Name: "intValue", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } +} -// Set the required value of JobID -func (r stepQueryJobIDString) Set(value string) stepSetParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) MultiplyIfPresent(value *int) stepDesiredWorkerLabelSetParam { + if value == nil { + return stepDesiredWorkerLabelSetParam{} + } + return r.Multiply(*value) +} - return stepSetParam{ +// Divide the optional value of IntValue +func (r stepDesiredWorkerLabelQueryIntValueInt) Divide(value int) stepDesiredWorkerLabelSetParam { + return stepDesiredWorkerLabelSetParam{ data: builder.Field{ - Name: "jobId", - Value: value, + Name: "intValue", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, }, } - } -// Set the optional value of JobID dynamically -func (r stepQueryJobIDString) SetIfPresent(value *String) stepSetParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) DivideIfPresent(value *int) stepDesiredWorkerLabelSetParam { if value == nil { - return stepSetParam{} + return stepDesiredWorkerLabelSetParam{} } - - return r.Set(*value) + return r.Divide(*value) } -func (r stepQueryJobIDString) Equals(value string) stepWithPrismaJobIDEqualsParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) Equals(value int) stepDesiredWorkerLabelWithPrismaIntValueEqualsParam { - return stepWithPrismaJobIDEqualsParam{ + return stepDesiredWorkerLabelWithPrismaIntValueEqualsParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { Name: "equals", @@ -87926,35 +89580,64 @@ func (r stepQueryJobIDString) Equals(value string) stepWithPrismaJobIDEqualsPara } } -func (r stepQueryJobIDString) EqualsIfPresent(value *string) stepWithPrismaJobIDEqualsParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) EqualsIfPresent(value *int) stepDesiredWorkerLabelWithPrismaIntValueEqualsParam { if value == nil { - return stepWithPrismaJobIDEqualsParam{} + return stepDesiredWorkerLabelWithPrismaIntValueEqualsParam{} } return r.Equals(*value) } -func (r stepQueryJobIDString) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) EqualsOptional(value *Int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r stepDesiredWorkerLabelQueryIntValueInt) IsNull() stepDesiredWorkerLabelDefaultParam { + var str *string = nil + return stepDesiredWorkerLabelDefaultParam{ + data: builder.Field{ + Name: "intValue", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r stepDesiredWorkerLabelQueryIntValueInt) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ + data: builder.Field{ + Name: "intValue", Value: direction, }, } } -func (r stepQueryJobIDString) Cursor(cursor string) stepCursorParam { - return stepCursorParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) Cursor(cursor int) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Value: cursor, }, } } -func (r stepQueryJobIDString) In(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) In(value []int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { Name: "in", @@ -87965,17 +89648,17 @@ func (r stepQueryJobIDString) In(value []string) stepDefaultParam { } } -func (r stepQueryJobIDString) InIfPresent(value []string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) InIfPresent(value []int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.In(value) } -func (r stepQueryJobIDString) NotIn(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) NotIn(value []int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { Name: "notIn", @@ -87986,17 +89669,17 @@ func (r stepQueryJobIDString) NotIn(value []string) stepDefaultParam { } } -func (r stepQueryJobIDString) NotInIfPresent(value []string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) NotInIfPresent(value []int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.NotIn(value) } -func (r stepQueryJobIDString) Lt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) Lt(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { Name: "lt", @@ -88007,17 +89690,17 @@ func (r stepQueryJobIDString) Lt(value string) stepDefaultParam { } } -func (r stepQueryJobIDString) LtIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) LtIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lt(*value) } -func (r stepQueryJobIDString) Lte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) Lte(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { Name: "lte", @@ -88028,17 +89711,17 @@ func (r stepQueryJobIDString) Lte(value string) stepDefaultParam { } } -func (r stepQueryJobIDString) LteIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) LteIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lte(*value) } -func (r stepQueryJobIDString) Gt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) Gt(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { Name: "gt", @@ -88049,17 +89732,17 @@ func (r stepQueryJobIDString) Gt(value string) stepDefaultParam { } } -func (r stepQueryJobIDString) GtIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) GtIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gt(*value) } -func (r stepQueryJobIDString) Gte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) Gte(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { Name: "gte", @@ -88070,20 +89753,20 @@ func (r stepQueryJobIDString) Gte(value string) stepDefaultParam { } } -func (r stepQueryJobIDString) GteIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) GteIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gte(*value) } -func (r stepQueryJobIDString) Contains(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryIntValueInt) Not(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -88091,20 +89774,22 @@ func (r stepQueryJobIDString) Contains(value string) stepDefaultParam { } } -func (r stepQueryJobIDString) ContainsIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryIntValueInt) NotIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r stepQueryJobIDString) StartsWith(value string) stepDefaultParam { - return stepDefaultParam{ +// deprecated: Use Lt instead. + +func (r stepDesiredWorkerLabelQueryIntValueInt) LT(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -88112,20 +89797,23 @@ func (r stepQueryJobIDString) StartsWith(value string) stepDefaultParam { } } -func (r stepQueryJobIDString) StartsWithIfPresent(value *string) stepDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r stepDesiredWorkerLabelQueryIntValueInt) LTIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.StartsWith(*value) + return r.LT(*value) } -func (r stepQueryJobIDString) EndsWith(value string) stepDefaultParam { - return stepDefaultParam{ +// deprecated: Use Lte instead. + +func (r stepDesiredWorkerLabelQueryIntValueInt) LTE(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lte", Value: value, }, }, @@ -88133,20 +89821,23 @@ func (r stepQueryJobIDString) EndsWith(value string) stepDefaultParam { } } -func (r stepQueryJobIDString) EndsWithIfPresent(value *string) stepDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepDesiredWorkerLabelQueryIntValueInt) LTEIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.EndsWith(*value) + return r.LTE(*value) } -func (r stepQueryJobIDString) Mode(value QueryMode) stepDefaultParam { - return stepDefaultParam{ +// deprecated: Use Gt instead. + +func (r stepDesiredWorkerLabelQueryIntValueInt) GT(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { - Name: "mode", + Name: "gt", Value: value, }, }, @@ -88154,20 +89845,23 @@ func (r stepQueryJobIDString) Mode(value QueryMode) stepDefaultParam { } } -func (r stepQueryJobIDString) ModeIfPresent(value *QueryMode) stepDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepDesiredWorkerLabelQueryIntValueInt) GTIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Mode(*value) + return r.GT(*value) } -func (r stepQueryJobIDString) Not(value string) stepDefaultParam { - return stepDefaultParam{ +// deprecated: Use Gte instead. + +func (r stepDesiredWorkerLabelQueryIntValueInt) GTE(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "intValue", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -88175,46 +89869,50 @@ func (r stepQueryJobIDString) Not(value string) stepDefaultParam { } } -func (r stepQueryJobIDString) NotIfPresent(value *string) stepDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r stepDesiredWorkerLabelQueryIntValueInt) GTEIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Not(*value) + return r.GTE(*value) } -// deprecated: Use StartsWith instead. +func (r stepDesiredWorkerLabelQueryIntValueInt) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldIntValue +} -func (r stepQueryJobIDString) HasPrefix(value string) stepDefaultParam { - return stepDefaultParam{ +// base struct +type stepDesiredWorkerLabelQueryRequiredBoolean struct{} + +// Set the required value of Required +func (r stepDesiredWorkerLabelQueryRequiredBoolean) Set(value bool) stepDesiredWorkerLabelWithPrismaRequiredSetParam { + + return stepDesiredWorkerLabelWithPrismaRequiredSetParam{ data: builder.Field{ - Name: "jobId", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, + Name: "required", + Value: value, }, } + } -// deprecated: Use StartsWithIfPresent instead. -func (r stepQueryJobIDString) HasPrefixIfPresent(value *string) stepDefaultParam { +// Set the optional value of Required dynamically +func (r stepDesiredWorkerLabelQueryRequiredBoolean) SetIfPresent(value *Boolean) stepDesiredWorkerLabelWithPrismaRequiredSetParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelWithPrismaRequiredSetParam{} } - return r.HasPrefix(*value) + + return r.Set(*value) } -// deprecated: Use EndsWith instead. +func (r stepDesiredWorkerLabelQueryRequiredBoolean) Equals(value bool) stepDesiredWorkerLabelWithPrismaRequiredEqualsParam { -func (r stepQueryJobIDString) HasSuffix(value string) stepDefaultParam { - return stepDefaultParam{ + return stepDesiredWorkerLabelWithPrismaRequiredEqualsParam{ data: builder.Field{ - Name: "jobId", + Name: "required", Fields: []builder.Field{ { - Name: "ends_with", + Name: "equals", Value: value, }, }, @@ -88222,135 +89920,283 @@ func (r stepQueryJobIDString) HasSuffix(value string) stepDefaultParam { } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepQueryJobIDString) HasSuffixIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryRequiredBoolean) EqualsIfPresent(value *bool) stepDesiredWorkerLabelWithPrismaRequiredEqualsParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelWithPrismaRequiredEqualsParam{} } - return r.HasSuffix(*value) + return r.Equals(*value) } -func (r stepQueryJobIDString) Field() stepPrismaFields { - return stepFieldJobID +func (r stepDesiredWorkerLabelQueryRequiredBoolean) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ + data: builder.Field{ + Name: "required", + Value: direction, + }, + } +} + +func (r stepDesiredWorkerLabelQueryRequiredBoolean) Cursor(cursor bool) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ + data: builder.Field{ + Name: "required", + Value: cursor, + }, + } +} + +func (r stepDesiredWorkerLabelQueryRequiredBoolean) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldRequired } // base struct -type stepQueryActionAction struct{} +type stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator struct{} -type stepQueryActionRelations struct{} +// Set the required value of Comparator +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) Set(value WorkerLabelComparator) stepDesiredWorkerLabelWithPrismaComparatorSetParam { -// Step -> Action -// -// @relation -// @required -func (stepQueryActionRelations) Where( - params ...ActionWhereParam, -) stepDefaultParam { - var fields []builder.Field + return stepDesiredWorkerLabelWithPrismaComparatorSetParam{ + data: builder.Field{ + Name: "comparator", + Value: value, + }, + } - for _, q := range params { - fields = append(fields, q.field()) +} + +// Set the optional value of Comparator dynamically +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) SetIfPresent(value *WorkerLabelComparator) stepDesiredWorkerLabelWithPrismaComparatorSetParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaComparatorSetParam{} } - return stepDefaultParam{ + return r.Set(*value) +} + +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) Equals(value WorkerLabelComparator) stepDesiredWorkerLabelWithPrismaComparatorEqualsParam { + + return stepDesiredWorkerLabelWithPrismaComparatorEqualsParam{ data: builder.Field{ - Name: "action", + Name: "comparator", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -func (stepQueryActionRelations) Fetch() stepToActionFindUnique { - var v stepToActionFindUnique - - v.query.Operation = "query" - v.query.Method = "action" - v.query.Outputs = actionOutput +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) EqualsIfPresent(value *WorkerLabelComparator) stepDesiredWorkerLabelWithPrismaComparatorEqualsParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaComparatorEqualsParam{} + } + return r.Equals(*value) +} - return v +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ + data: builder.Field{ + Name: "comparator", + Value: direction, + }, + } } -func (r stepQueryActionRelations) Link( - params ActionWhereParam, -) stepWithPrismaActionSetParam { - var fields []builder.Field +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) Cursor(cursor WorkerLabelComparator) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ + data: builder.Field{ + Name: "comparator", + Value: cursor, + }, + } +} - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepWithPrismaActionSetParam{} +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) In(value []WorkerLabelComparator) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ + data: builder.Field{ + Name: "comparator", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, } +} - fields = append(fields, f) +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) InIfPresent(value []WorkerLabelComparator) stepDesiredWorkerLabelDefaultParam { + if value == nil { + return stepDesiredWorkerLabelDefaultParam{} + } + return r.In(value) +} - return stepWithPrismaActionSetParam{ +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) NotIn(value []WorkerLabelComparator) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "action", + Name: "comparator", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "notIn", + Value: value, }, }, }, } } -func (r stepQueryActionRelations) Unlink() stepWithPrismaActionSetParam { - var v stepWithPrismaActionSetParam +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) NotInIfPresent(value []WorkerLabelComparator) stepDesiredWorkerLabelDefaultParam { + if value == nil { + return stepDesiredWorkerLabelDefaultParam{} + } + return r.NotIn(value) +} - v = stepWithPrismaActionSetParam{ +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) Not(value WorkerLabelComparator) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "action", + Name: "comparator", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "not", + Value: value, }, }, }, } +} - return v +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) NotIfPresent(value *WorkerLabelComparator) stepDesiredWorkerLabelDefaultParam { + if value == nil { + return stepDesiredWorkerLabelDefaultParam{} + } + return r.Not(*value) } -func (r stepQueryActionAction) Field() stepPrismaFields { - return stepFieldAction +func (r stepDesiredWorkerLabelQueryComparatorWorkerLabelComparator) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldComparator } // base struct -type stepQueryActionIDString struct{} +type stepDesiredWorkerLabelQueryWeightInt struct{} -// Set the required value of ActionID -func (r stepQueryActionIDString) Set(value string) stepSetParam { +// Set the required value of Weight +func (r stepDesiredWorkerLabelQueryWeightInt) Set(value int) stepDesiredWorkerLabelWithPrismaWeightSetParam { - return stepSetParam{ + return stepDesiredWorkerLabelWithPrismaWeightSetParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Value: value, }, } } -// Set the optional value of ActionID dynamically -func (r stepQueryActionIDString) SetIfPresent(value *String) stepSetParam { +// Set the optional value of Weight dynamically +func (r stepDesiredWorkerLabelQueryWeightInt) SetIfPresent(value *Int) stepDesiredWorkerLabelWithPrismaWeightSetParam { if value == nil { - return stepSetParam{} + return stepDesiredWorkerLabelWithPrismaWeightSetParam{} } return r.Set(*value) } -func (r stepQueryActionIDString) Equals(value string) stepWithPrismaActionIDEqualsParam { +// Increment the required value of Weight +func (r stepDesiredWorkerLabelQueryWeightInt) Increment(value int) stepDesiredWorkerLabelWithPrismaWeightSetParam { + return stepDesiredWorkerLabelWithPrismaWeightSetParam{ + data: builder.Field{ + Name: "weight", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} - return stepWithPrismaActionIDEqualsParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) IncrementIfPresent(value *int) stepDesiredWorkerLabelWithPrismaWeightSetParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaWeightSetParam{} + } + return r.Increment(*value) +} + +// Decrement the required value of Weight +func (r stepDesiredWorkerLabelQueryWeightInt) Decrement(value int) stepDesiredWorkerLabelWithPrismaWeightSetParam { + return stepDesiredWorkerLabelWithPrismaWeightSetParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, + }, + }, + } +} + +func (r stepDesiredWorkerLabelQueryWeightInt) DecrementIfPresent(value *int) stepDesiredWorkerLabelWithPrismaWeightSetParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaWeightSetParam{} + } + return r.Decrement(*value) +} + +// Multiply the required value of Weight +func (r stepDesiredWorkerLabelQueryWeightInt) Multiply(value int) stepDesiredWorkerLabelWithPrismaWeightSetParam { + return stepDesiredWorkerLabelWithPrismaWeightSetParam{ + data: builder.Field{ + Name: "weight", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } +} + +func (r stepDesiredWorkerLabelQueryWeightInt) MultiplyIfPresent(value *int) stepDesiredWorkerLabelWithPrismaWeightSetParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaWeightSetParam{} + } + return r.Multiply(*value) +} + +// Divide the required value of Weight +func (r stepDesiredWorkerLabelQueryWeightInt) Divide(value int) stepDesiredWorkerLabelWithPrismaWeightSetParam { + return stepDesiredWorkerLabelWithPrismaWeightSetParam{ + data: builder.Field{ + Name: "weight", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, + }, + } +} + +func (r stepDesiredWorkerLabelQueryWeightInt) DivideIfPresent(value *int) stepDesiredWorkerLabelWithPrismaWeightSetParam { + if value == nil { + return stepDesiredWorkerLabelWithPrismaWeightSetParam{} + } + return r.Divide(*value) +} + +func (r stepDesiredWorkerLabelQueryWeightInt) Equals(value int) stepDesiredWorkerLabelWithPrismaWeightEqualsParam { + + return stepDesiredWorkerLabelWithPrismaWeightEqualsParam{ + data: builder.Field{ + Name: "weight", Fields: []builder.Field{ { Name: "equals", @@ -88361,35 +90207,35 @@ func (r stepQueryActionIDString) Equals(value string) stepWithPrismaActionIDEqua } } -func (r stepQueryActionIDString) EqualsIfPresent(value *string) stepWithPrismaActionIDEqualsParam { +func (r stepDesiredWorkerLabelQueryWeightInt) EqualsIfPresent(value *int) stepDesiredWorkerLabelWithPrismaWeightEqualsParam { if value == nil { - return stepWithPrismaActionIDEqualsParam{} + return stepDesiredWorkerLabelWithPrismaWeightEqualsParam{} } return r.Equals(*value) } -func (r stepQueryActionIDString) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) Order(direction SortOrder) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Value: direction, }, } } -func (r stepQueryActionIDString) Cursor(cursor string) stepCursorParam { - return stepCursorParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) Cursor(cursor int) stepDesiredWorkerLabelCursorParam { + return stepDesiredWorkerLabelCursorParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Value: cursor, }, } } -func (r stepQueryActionIDString) In(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) In(value []int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { Name: "in", @@ -88400,17 +90246,17 @@ func (r stepQueryActionIDString) In(value []string) stepDefaultParam { } } -func (r stepQueryActionIDString) InIfPresent(value []string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryWeightInt) InIfPresent(value []int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.In(value) } -func (r stepQueryActionIDString) NotIn(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) NotIn(value []int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { Name: "notIn", @@ -88421,17 +90267,17 @@ func (r stepQueryActionIDString) NotIn(value []string) stepDefaultParam { } } -func (r stepQueryActionIDString) NotInIfPresent(value []string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryWeightInt) NotInIfPresent(value []int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.NotIn(value) } -func (r stepQueryActionIDString) Lt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) Lt(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { Name: "lt", @@ -88442,17 +90288,17 @@ func (r stepQueryActionIDString) Lt(value string) stepDefaultParam { } } -func (r stepQueryActionIDString) LtIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryWeightInt) LtIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lt(*value) } -func (r stepQueryActionIDString) Lte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) Lte(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { Name: "lte", @@ -88463,17 +90309,17 @@ func (r stepQueryActionIDString) Lte(value string) stepDefaultParam { } } -func (r stepQueryActionIDString) LteIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryWeightInt) LteIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Lte(*value) } -func (r stepQueryActionIDString) Gt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) Gt(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { Name: "gt", @@ -88484,17 +90330,17 @@ func (r stepQueryActionIDString) Gt(value string) stepDefaultParam { } } -func (r stepQueryActionIDString) GtIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryWeightInt) GtIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gt(*value) } -func (r stepQueryActionIDString) Gte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) Gte(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { Name: "gte", @@ -88505,20 +90351,20 @@ func (r stepQueryActionIDString) Gte(value string) stepDefaultParam { } } -func (r stepQueryActionIDString) GteIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryWeightInt) GteIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } return r.Gte(*value) } -func (r stepQueryActionIDString) Contains(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepDesiredWorkerLabelQueryWeightInt) Not(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -88526,20 +90372,22 @@ func (r stepQueryActionIDString) Contains(value string) stepDefaultParam { } } -func (r stepQueryActionIDString) ContainsIfPresent(value *string) stepDefaultParam { +func (r stepDesiredWorkerLabelQueryWeightInt) NotIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r stepQueryActionIDString) StartsWith(value string) stepDefaultParam { - return stepDefaultParam{ +// deprecated: Use Lt instead. + +func (r stepDesiredWorkerLabelQueryWeightInt) LT(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -88547,20 +90395,23 @@ func (r stepQueryActionIDString) StartsWith(value string) stepDefaultParam { } } -func (r stepQueryActionIDString) StartsWithIfPresent(value *string) stepDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r stepDesiredWorkerLabelQueryWeightInt) LTIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.StartsWith(*value) + return r.LT(*value) } -func (r stepQueryActionIDString) EndsWith(value string) stepDefaultParam { - return stepDefaultParam{ +// deprecated: Use Lte instead. + +func (r stepDesiredWorkerLabelQueryWeightInt) LTE(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lte", Value: value, }, }, @@ -88568,20 +90419,23 @@ func (r stepQueryActionIDString) EndsWith(value string) stepDefaultParam { } } -func (r stepQueryActionIDString) EndsWithIfPresent(value *string) stepDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepDesiredWorkerLabelQueryWeightInt) LTEIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.EndsWith(*value) + return r.LTE(*value) } -func (r stepQueryActionIDString) Mode(value QueryMode) stepDefaultParam { - return stepDefaultParam{ +// deprecated: Use Gt instead. + +func (r stepDesiredWorkerLabelQueryWeightInt) GT(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { - Name: "mode", + Name: "gt", Value: value, }, }, @@ -88589,20 +90443,23 @@ func (r stepQueryActionIDString) Mode(value QueryMode) stepDefaultParam { } } -func (r stepQueryActionIDString) ModeIfPresent(value *QueryMode) stepDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepDesiredWorkerLabelQueryWeightInt) GTIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Mode(*value) + return r.GT(*value) } -func (r stepQueryActionIDString) Not(value string) stepDefaultParam { - return stepDefaultParam{ +// deprecated: Use Gte instead. + +func (r stepDesiredWorkerLabelQueryWeightInt) GTE(value int) stepDesiredWorkerLabelDefaultParam { + return stepDesiredWorkerLabelDefaultParam{ data: builder.Field{ - Name: "actionId", + Name: "weight", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -88610,82 +90467,187 @@ func (r stepQueryActionIDString) Not(value string) stepDefaultParam { } } -func (r stepQueryActionIDString) NotIfPresent(value *string) stepDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r stepDesiredWorkerLabelQueryWeightInt) GTEIfPresent(value *int) stepDesiredWorkerLabelDefaultParam { if value == nil { - return stepDefaultParam{} + return stepDesiredWorkerLabelDefaultParam{} } - return r.Not(*value) + return r.GTE(*value) } -// deprecated: Use StartsWith instead. +func (r stepDesiredWorkerLabelQueryWeightInt) Field() stepDesiredWorkerLabelPrismaFields { + return stepDesiredWorkerLabelFieldWeight +} + +// Step acts as a namespaces to access query methods for the Step model +var Step = stepQuery{} + +// stepQuery exposes query functions for the step model +type stepQuery struct { + + // ID + // + // @required + ID stepQueryIDString + + // CreatedAt + // + // @required + CreatedAt stepQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt stepQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt stepQueryDeletedAtDateTime + + // ReadableID + // + // @optional + ReadableID stepQueryReadableIDString + + Tenant stepQueryTenantRelations + + // TenantID + // + // @required + TenantID stepQueryTenantIDString + + Job stepQueryJobRelations + + // JobID + // + // @required + JobID stepQueryJobIDString + + Action stepQueryActionRelations + + // ActionID + // + // @required + ActionID stepQueryActionIDString + + // Timeout + // + // @optional + Timeout stepQueryTimeoutString + + // Retries + // + // @required + Retries stepQueryRetriesInt + + // CustomUserData + // + // @optional + CustomUserData stepQueryCustomUserDataJson + + Children stepQueryChildrenRelations + + Parents stepQueryParentsRelations + + StepRuns stepQueryStepRunsRelations + + // ScheduleTimeout + // + // @required + ScheduleTimeout stepQueryScheduleTimeoutString + + RateLimits stepQueryRateLimitsRelations + + WorkerLabels stepQueryWorkerLabelsRelations +} + +func (stepQuery) Not(params ...StepWhereParam) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } -func (r stepQueryActionIDString) HasPrefix(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "actionId", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepQueryActionIDString) HasPrefixIfPresent(value *string) stepDefaultParam { - if value == nil { - return stepDefaultParam{} - } - return r.HasPrefix(*value) -} +func (stepQuery) Or(params ...StepWhereParam) stepDefaultParam { + var fields []builder.Field -// deprecated: Use EndsWith instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r stepQueryActionIDString) HasSuffix(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "actionId", - Fields: []builder.Field{ - { - Name: "ends_with", - Value: value, - }, - }, + Name: "OR", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepQueryActionIDString) HasSuffixIfPresent(value *string) stepDefaultParam { - if value == nil { - return stepDefaultParam{} +func (stepQuery) And(params ...StepWhereParam) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, } - return r.HasSuffix(*value) } -func (r stepQueryActionIDString) Field() stepPrismaFields { - return stepFieldActionID +func (stepQuery) JobIDReadableID( + _jobID StepWithPrismaJobIDWhereParam, + + _readableID StepWithPrismaReadableIDWhereParam, +) StepEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _jobID.field()) + fields = append(fields, _readableID.field()) + + return stepEqualsUniqueParam{ + data: builder.Field{ + Name: "jobId_readableId", + Fields: builder.TransformEquals(fields), + }, + } } // base struct -type stepQueryTimeoutString struct{} +type stepQueryIDString struct{} -// Set the optional value of Timeout -func (r stepQueryTimeoutString) Set(value string) stepSetParam { +// Set the required value of ID +func (r stepQueryIDString) Set(value string) stepSetParam { return stepSetParam{ data: builder.Field{ - Name: "timeout", + Name: "id", Value: value, }, } } -// Set the optional value of Timeout dynamically -func (r stepQueryTimeoutString) SetIfPresent(value *String) stepSetParam { +// Set the optional value of ID dynamically +func (r stepQueryIDString) SetIfPresent(value *String) stepSetParam { if value == nil { return stepSetParam{} } @@ -88693,27 +90655,11 @@ func (r stepQueryTimeoutString) SetIfPresent(value *String) stepSetParam { return r.Set(*value) } -// Set the optional value of Timeout dynamically -func (r stepQueryTimeoutString) SetOptional(value *String) stepSetParam { - if value == nil { - - var v *string - return stepSetParam{ - data: builder.Field{ - Name: "timeout", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r stepQueryTimeoutString) Equals(value string) stepWithPrismaTimeoutEqualsParam { +func (r stepQueryIDString) Equals(value string) stepWithPrismaIDEqualsUniqueParam { - return stepWithPrismaTimeoutEqualsParam{ + return stepWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -88724,64 +90670,35 @@ func (r stepQueryTimeoutString) Equals(value string) stepWithPrismaTimeoutEquals } } -func (r stepQueryTimeoutString) EqualsIfPresent(value *string) stepWithPrismaTimeoutEqualsParam { +func (r stepQueryIDString) EqualsIfPresent(value *string) stepWithPrismaIDEqualsUniqueParam { if value == nil { - return stepWithPrismaTimeoutEqualsParam{} + return stepWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r stepQueryTimeoutString) EqualsOptional(value *String) stepDefaultParam { - return stepDefaultParam{ - data: builder.Field{ - Name: "timeout", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepQueryTimeoutString) IsNull() stepDefaultParam { - var str *string = nil - return stepDefaultParam{ - data: builder.Field{ - Name: "timeout", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r stepQueryTimeoutString) Order(direction SortOrder) stepDefaultParam { +func (r stepQueryIDString) Order(direction SortOrder) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "timeout", + Name: "id", Value: direction, }, } } -func (r stepQueryTimeoutString) Cursor(cursor string) stepCursorParam { +func (r stepQueryIDString) Cursor(cursor string) stepCursorParam { return stepCursorParam{ data: builder.Field{ - Name: "timeout", + Name: "id", Value: cursor, }, } } -func (r stepQueryTimeoutString) In(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) In(value []string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -88792,17 +90709,17 @@ func (r stepQueryTimeoutString) In(value []string) stepDefaultParam { } } -func (r stepQueryTimeoutString) InIfPresent(value []string) stepDefaultParam { +func (r stepQueryIDString) InIfPresent(value []string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.In(value) } -func (r stepQueryTimeoutString) NotIn(value []string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) NotIn(value []string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -88813,17 +90730,17 @@ func (r stepQueryTimeoutString) NotIn(value []string) stepDefaultParam { } } -func (r stepQueryTimeoutString) NotInIfPresent(value []string) stepDefaultParam { +func (r stepQueryIDString) NotInIfPresent(value []string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.NotIn(value) } -func (r stepQueryTimeoutString) Lt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) Lt(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -88834,17 +90751,17 @@ func (r stepQueryTimeoutString) Lt(value string) stepDefaultParam { } } -func (r stepQueryTimeoutString) LtIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) LtIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.Lt(*value) } -func (r stepQueryTimeoutString) Lte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) Lte(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -88855,17 +90772,17 @@ func (r stepQueryTimeoutString) Lte(value string) stepDefaultParam { } } -func (r stepQueryTimeoutString) LteIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) LteIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.Lte(*value) } -func (r stepQueryTimeoutString) Gt(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) Gt(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -88876,17 +90793,17 @@ func (r stepQueryTimeoutString) Gt(value string) stepDefaultParam { } } -func (r stepQueryTimeoutString) GtIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) GtIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.Gt(*value) } -func (r stepQueryTimeoutString) Gte(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) Gte(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -88897,17 +90814,17 @@ func (r stepQueryTimeoutString) Gte(value string) stepDefaultParam { } } -func (r stepQueryTimeoutString) GteIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) GteIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.Gte(*value) } -func (r stepQueryTimeoutString) Contains(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) Contains(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -88918,17 +90835,17 @@ func (r stepQueryTimeoutString) Contains(value string) stepDefaultParam { } } -func (r stepQueryTimeoutString) ContainsIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) ContainsIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.Contains(*value) } -func (r stepQueryTimeoutString) StartsWith(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) StartsWith(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -88939,17 +90856,17 @@ func (r stepQueryTimeoutString) StartsWith(value string) stepDefaultParam { } } -func (r stepQueryTimeoutString) StartsWithIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) StartsWithIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.StartsWith(*value) } -func (r stepQueryTimeoutString) EndsWith(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) EndsWith(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -88960,17 +90877,17 @@ func (r stepQueryTimeoutString) EndsWith(value string) stepDefaultParam { } } -func (r stepQueryTimeoutString) EndsWithIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) EndsWithIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.EndsWith(*value) } -func (r stepQueryTimeoutString) Mode(value QueryMode) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) Mode(value QueryMode) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -88981,17 +90898,17 @@ func (r stepQueryTimeoutString) Mode(value QueryMode) stepDefaultParam { } } -func (r stepQueryTimeoutString) ModeIfPresent(value *QueryMode) stepDefaultParam { +func (r stepQueryIDString) ModeIfPresent(value *QueryMode) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.Mode(*value) } -func (r stepQueryTimeoutString) Not(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) Not(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -89002,19 +90919,19 @@ func (r stepQueryTimeoutString) Not(value string) stepDefaultParam { } } -func (r stepQueryTimeoutString) NotIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) NotIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepQueryTimeoutString) HasPrefix(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) HasPrefix(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -89026,19 +90943,19 @@ func (r stepQueryTimeoutString) HasPrefix(value string) stepDefaultParam { } // deprecated: Use StartsWithIfPresent instead. -func (r stepQueryTimeoutString) HasPrefixIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) HasPrefixIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepQueryTimeoutString) HasSuffix(value string) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryIDString) HasSuffix(value string) stepParamUnique { + return stepParamUnique{ data: builder.Field{ - Name: "timeout", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -89050,34 +90967,34 @@ func (r stepQueryTimeoutString) HasSuffix(value string) stepDefaultParam { } // deprecated: Use EndsWithIfPresent instead. -func (r stepQueryTimeoutString) HasSuffixIfPresent(value *string) stepDefaultParam { +func (r stepQueryIDString) HasSuffixIfPresent(value *string) stepParamUnique { if value == nil { - return stepDefaultParam{} + return stepParamUnique{} } return r.HasSuffix(*value) } -func (r stepQueryTimeoutString) Field() stepPrismaFields { - return stepFieldTimeout +func (r stepQueryIDString) Field() stepPrismaFields { + return stepFieldID } // base struct -type stepQueryRetriesInt struct{} +type stepQueryCreatedAtDateTime struct{} -// Set the required value of Retries -func (r stepQueryRetriesInt) Set(value int) stepSetParam { +// Set the required value of CreatedAt +func (r stepQueryCreatedAtDateTime) Set(value DateTime) stepSetParam { return stepSetParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Value: value, }, } } -// Set the optional value of Retries dynamically -func (r stepQueryRetriesInt) SetIfPresent(value *Int) stepSetParam { +// Set the optional value of CreatedAt dynamically +func (r stepQueryCreatedAtDateTime) SetIfPresent(value *DateTime) stepSetParam { if value == nil { return stepSetParam{} } @@ -89085,14 +91002,14 @@ func (r stepQueryRetriesInt) SetIfPresent(value *Int) stepSetParam { return r.Set(*value) } -// Increment the required value of Retries -func (r stepQueryRetriesInt) Increment(value int) stepSetParam { - return stepSetParam{ +func (r stepQueryCreatedAtDateTime) Equals(value DateTime) stepWithPrismaCreatedAtEqualsParam { + + return stepWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ - builder.Field{ - Name: "increment", + { + Name: "equals", Value: value, }, }, @@ -89100,43 +91017,38 @@ func (r stepQueryRetriesInt) Increment(value int) stepSetParam { } } -func (r stepQueryRetriesInt) IncrementIfPresent(value *int) stepSetParam { +func (r stepQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) stepWithPrismaCreatedAtEqualsParam { if value == nil { - return stepSetParam{} + return stepWithPrismaCreatedAtEqualsParam{} } - return r.Increment(*value) + return r.Equals(*value) } -// Decrement the required value of Retries -func (r stepQueryRetriesInt) Decrement(value int) stepSetParam { - return stepSetParam{ +func (r stepQueryCreatedAtDateTime) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "retries", - Fields: []builder.Field{ - builder.Field{ - Name: "decrement", - Value: value, - }, - }, + Name: "createdAt", + Value: direction, }, } } -func (r stepQueryRetriesInt) DecrementIfPresent(value *int) stepSetParam { - if value == nil { - return stepSetParam{} +func (r stepQueryCreatedAtDateTime) Cursor(cursor DateTime) stepCursorParam { + return stepCursorParam{ + data: builder.Field{ + Name: "createdAt", + Value: cursor, + }, } - return r.Decrement(*value) } -// Multiply the required value of Retries -func (r stepQueryRetriesInt) Multiply(value int) stepSetParam { - return stepSetParam{ +func (r stepQueryCreatedAtDateTime) In(value []DateTime) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "in", Value: value, }, }, @@ -89144,100 +91056,17 @@ func (r stepQueryRetriesInt) Multiply(value int) stepSetParam { } } -func (r stepQueryRetriesInt) MultiplyIfPresent(value *int) stepSetParam { - if value == nil { - return stepSetParam{} - } - return r.Multiply(*value) -} - -// Divide the required value of Retries -func (r stepQueryRetriesInt) Divide(value int) stepSetParam { - return stepSetParam{ - data: builder.Field{ - Name: "retries", - Fields: []builder.Field{ - builder.Field{ - Name: "divide", - Value: value, - }, - }, - }, - } -} - -func (r stepQueryRetriesInt) DivideIfPresent(value *int) stepSetParam { - if value == nil { - return stepSetParam{} - } - return r.Divide(*value) -} - -func (r stepQueryRetriesInt) Equals(value int) stepWithPrismaRetriesEqualsParam { - - return stepWithPrismaRetriesEqualsParam{ - data: builder.Field{ - Name: "retries", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepQueryRetriesInt) EqualsIfPresent(value *int) stepWithPrismaRetriesEqualsParam { - if value == nil { - return stepWithPrismaRetriesEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepQueryRetriesInt) Order(direction SortOrder) stepDefaultParam { - return stepDefaultParam{ - data: builder.Field{ - Name: "retries", - Value: direction, - }, - } -} - -func (r stepQueryRetriesInt) Cursor(cursor int) stepCursorParam { - return stepCursorParam{ - data: builder.Field{ - Name: "retries", - Value: cursor, - }, - } -} - -func (r stepQueryRetriesInt) In(value []int) stepDefaultParam { - return stepDefaultParam{ - data: builder.Field{ - Name: "retries", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, - }, - } -} - -func (r stepQueryRetriesInt) InIfPresent(value []int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) InIfPresent(value []DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.In(value) } -func (r stepQueryRetriesInt) NotIn(value []int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) NotIn(value []DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -89248,17 +91077,17 @@ func (r stepQueryRetriesInt) NotIn(value []int) stepDefaultParam { } } -func (r stepQueryRetriesInt) NotInIfPresent(value []int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.NotIn(value) } -func (r stepQueryRetriesInt) Lt(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) Lt(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -89269,17 +91098,17 @@ func (r stepQueryRetriesInt) Lt(value int) stepDefaultParam { } } -func (r stepQueryRetriesInt) LtIfPresent(value *int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) LtIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Lt(*value) } -func (r stepQueryRetriesInt) Lte(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) Lte(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -89290,17 +91119,17 @@ func (r stepQueryRetriesInt) Lte(value int) stepDefaultParam { } } -func (r stepQueryRetriesInt) LteIfPresent(value *int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) LteIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Lte(*value) } -func (r stepQueryRetriesInt) Gt(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) Gt(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -89311,17 +91140,17 @@ func (r stepQueryRetriesInt) Gt(value int) stepDefaultParam { } } -func (r stepQueryRetriesInt) GtIfPresent(value *int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) GtIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Gt(*value) } -func (r stepQueryRetriesInt) Gte(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) Gte(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -89332,17 +91161,17 @@ func (r stepQueryRetriesInt) Gte(value int) stepDefaultParam { } } -func (r stepQueryRetriesInt) GteIfPresent(value *int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) GteIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Gte(*value) } -func (r stepQueryRetriesInt) Not(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) Not(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { Name: "not", @@ -89353,7 +91182,7 @@ func (r stepQueryRetriesInt) Not(value int) stepDefaultParam { } } -func (r stepQueryRetriesInt) NotIfPresent(value *int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) NotIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } @@ -89362,10 +91191,10 @@ func (r stepQueryRetriesInt) NotIfPresent(value *int) stepDefaultParam { // deprecated: Use Lt instead. -func (r stepQueryRetriesInt) LT(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) Before(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -89377,22 +91206,22 @@ func (r stepQueryRetriesInt) LT(value int) stepDefaultParam { } // deprecated: Use LtIfPresent instead. -func (r stepQueryRetriesInt) LTIfPresent(value *int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.LT(*value) + return r.Before(*value) } -// deprecated: Use Lte instead. +// deprecated: Use Gt instead. -func (r stepQueryRetriesInt) LTE(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) After(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -89400,23 +91229,23 @@ func (r stepQueryRetriesInt) LTE(value int) stepDefaultParam { } } -// deprecated: Use LteIfPresent instead. -func (r stepQueryRetriesInt) LTEIfPresent(value *int) stepDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.LTE(*value) + return r.After(*value) } -// deprecated: Use Gt instead. +// deprecated: Use Lte instead. -func (r stepQueryRetriesInt) GT(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -89424,20 +91253,20 @@ func (r stepQueryRetriesInt) GT(value int) stepDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r stepQueryRetriesInt) GTIfPresent(value *int) stepDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.GT(*value) + return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepQueryRetriesInt) GTE(value int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) AfterEquals(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "retries", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -89449,34 +91278,34 @@ func (r stepQueryRetriesInt) GTE(value int) stepDefaultParam { } // deprecated: Use GteIfPresent instead. -func (r stepQueryRetriesInt) GTEIfPresent(value *int) stepDefaultParam { +func (r stepQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.GTE(*value) + return r.AfterEquals(*value) } -func (r stepQueryRetriesInt) Field() stepPrismaFields { - return stepFieldRetries +func (r stepQueryCreatedAtDateTime) Field() stepPrismaFields { + return stepFieldCreatedAt } // base struct -type stepQueryCustomUserDataJson struct{} +type stepQueryUpdatedAtDateTime struct{} -// Set the optional value of CustomUserData -func (r stepQueryCustomUserDataJson) Set(value JSON) stepSetParam { +// Set the required value of UpdatedAt +func (r stepQueryUpdatedAtDateTime) Set(value DateTime) stepSetParam { return stepSetParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of CustomUserData dynamically -func (r stepQueryCustomUserDataJson) SetIfPresent(value *JSON) stepSetParam { +// Set the optional value of UpdatedAt dynamically +func (r stepQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) stepSetParam { if value == nil { return stepSetParam{} } @@ -89484,27 +91313,11 @@ func (r stepQueryCustomUserDataJson) SetIfPresent(value *JSON) stepSetParam { return r.Set(*value) } -// Set the optional value of CustomUserData dynamically -func (r stepQueryCustomUserDataJson) SetOptional(value *JSON) stepSetParam { - if value == nil { - - var v *JSON - return stepSetParam{ - data: builder.Field{ - Name: "customUserData", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r stepQueryCustomUserDataJson) Equals(value JSON) stepWithPrismaCustomUserDataEqualsParam { +func (r stepQueryUpdatedAtDateTime) Equals(value DateTime) stepWithPrismaUpdatedAtEqualsParam { - return stepWithPrismaCustomUserDataEqualsParam{ + return stepWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -89515,67 +91328,38 @@ func (r stepQueryCustomUserDataJson) Equals(value JSON) stepWithPrismaCustomUser } } -func (r stepQueryCustomUserDataJson) EqualsIfPresent(value *JSON) stepWithPrismaCustomUserDataEqualsParam { +func (r stepQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) stepWithPrismaUpdatedAtEqualsParam { if value == nil { - return stepWithPrismaCustomUserDataEqualsParam{} + return stepWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r stepQueryCustomUserDataJson) EqualsOptional(value *JSON) stepDefaultParam { - return stepDefaultParam{ - data: builder.Field{ - Name: "customUserData", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepQueryCustomUserDataJson) IsNull() stepDefaultParam { - var str *string = nil - return stepDefaultParam{ - data: builder.Field{ - Name: "customUserData", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r stepQueryCustomUserDataJson) Order(direction SortOrder) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) Order(direction SortOrder) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Value: direction, }, } } -func (r stepQueryCustomUserDataJson) Cursor(cursor JSON) stepCursorParam { +func (r stepQueryUpdatedAtDateTime) Cursor(cursor DateTime) stepCursorParam { return stepCursorParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Value: cursor, }, } } -func (r stepQueryCustomUserDataJson) Path(value []string) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) In(value []DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -89583,20 +91367,20 @@ func (r stepQueryCustomUserDataJson) Path(value []string) stepDefaultParam { } } -func (r stepQueryCustomUserDataJson) PathIfPresent(value []string) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) InIfPresent(value []DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r stepQueryCustomUserDataJson) StringContains(value string) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) NotIn(value []DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -89604,20 +91388,20 @@ func (r stepQueryCustomUserDataJson) StringContains(value string) stepDefaultPar } } -func (r stepQueryCustomUserDataJson) StringContainsIfPresent(value *string) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r stepQueryCustomUserDataJson) StringStartsWith(value string) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) Lt(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -89625,20 +91409,20 @@ func (r stepQueryCustomUserDataJson) StringStartsWith(value string) stepDefaultP } } -func (r stepQueryCustomUserDataJson) StringStartsWithIfPresent(value *string) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r stepQueryCustomUserDataJson) StringEndsWith(value string) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) Lte(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -89646,20 +91430,20 @@ func (r stepQueryCustomUserDataJson) StringEndsWith(value string) stepDefaultPar } } -func (r stepQueryCustomUserDataJson) StringEndsWithIfPresent(value *string) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r stepQueryCustomUserDataJson) ArrayContains(value JSON) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) Gt(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -89667,20 +91451,20 @@ func (r stepQueryCustomUserDataJson) ArrayContains(value JSON) stepDefaultParam } } -func (r stepQueryCustomUserDataJson) ArrayContainsIfPresent(value *JSON) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r stepQueryCustomUserDataJson) ArrayStartsWith(value JSON) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) Gte(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -89688,20 +91472,20 @@ func (r stepQueryCustomUserDataJson) ArrayStartsWith(value JSON) stepDefaultPara } } -func (r stepQueryCustomUserDataJson) ArrayStartsWithIfPresent(value *JSON) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r stepQueryCustomUserDataJson) ArrayEndsWith(value JSON) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) Not(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -89709,17 +91493,19 @@ func (r stepQueryCustomUserDataJson) ArrayEndsWith(value JSON) stepDefaultParam } } -func (r stepQueryCustomUserDataJson) ArrayEndsWithIfPresent(value *JSON) stepDefaultParam { +func (r stepQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r stepQueryCustomUserDataJson) Lt(value JSON) stepDefaultParam { +// deprecated: Use Lt instead. + +func (r stepQueryUpdatedAtDateTime) Before(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -89730,20 +91516,23 @@ func (r stepQueryCustomUserDataJson) Lt(value JSON) stepDefaultParam { } } -func (r stepQueryCustomUserDataJson) LtIfPresent(value *JSON) stepDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r stepQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.Lt(*value) + return r.Before(*value) } -func (r stepQueryCustomUserDataJson) Lte(value JSON) stepDefaultParam { +// deprecated: Use Gt instead. + +func (r stepQueryUpdatedAtDateTime) After(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -89751,20 +91540,23 @@ func (r stepQueryCustomUserDataJson) Lte(value JSON) stepDefaultParam { } } -func (r stepQueryCustomUserDataJson) LteIfPresent(value *JSON) stepDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.Lte(*value) + return r.After(*value) } -func (r stepQueryCustomUserDataJson) Gt(value JSON) stepDefaultParam { +// deprecated: Use Lte instead. + +func (r stepQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -89772,17 +91564,20 @@ func (r stepQueryCustomUserDataJson) Gt(value JSON) stepDefaultParam { } } -func (r stepQueryCustomUserDataJson) GtIfPresent(value *JSON) stepDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.Gt(*value) + return r.BeforeEquals(*value) } -func (r stepQueryCustomUserDataJson) Gte(value JSON) stepDefaultParam { +// deprecated: Use Gte instead. + +func (r stepQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "customUserData", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -89793,571 +91588,391 @@ func (r stepQueryCustomUserDataJson) Gte(value JSON) stepDefaultParam { } } -func (r stepQueryCustomUserDataJson) GteIfPresent(value *JSON) stepDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r stepQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepDefaultParam { if value == nil { return stepDefaultParam{} } - return r.Gte(*value) + return r.AfterEquals(*value) } -func (r stepQueryCustomUserDataJson) Not(value JSONNullValueFilter) stepDefaultParam { - return stepDefaultParam{ +func (r stepQueryUpdatedAtDateTime) Field() stepPrismaFields { + return stepFieldUpdatedAt +} + +// base struct +type stepQueryDeletedAtDateTime struct{} + +// Set the optional value of DeletedAt +func (r stepQueryDeletedAtDateTime) Set(value DateTime) stepSetParam { + + return stepSetParam{ data: builder.Field{ - Name: "customUserData", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, + Name: "deletedAt", + Value: value, }, } + } -func (r stepQueryCustomUserDataJson) NotIfPresent(value *JSONNullValueFilter) stepDefaultParam { +// Set the optional value of DeletedAt dynamically +func (r stepQueryDeletedAtDateTime) SetIfPresent(value *DateTime) stepSetParam { if value == nil { - return stepDefaultParam{} + return stepSetParam{} } - return r.Not(*value) -} -func (r stepQueryCustomUserDataJson) Field() stepPrismaFields { - return stepFieldCustomUserData + return r.Set(*value) } -// base struct -type stepQueryChildrenStep struct{} +// Set the optional value of DeletedAt dynamically +func (r stepQueryDeletedAtDateTime) SetOptional(value *DateTime) stepSetParam { + if value == nil { -type stepQueryChildrenRelations struct{} + var v *DateTime + return stepSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: v, + }, + } + } -// Step -> Children -// -// @relation -// @required -func (stepQueryChildrenRelations) Some( - params ...StepWhereParam, -) stepDefaultParam { - var fields []builder.Field + return r.Set(*value) +} - for _, q := range params { - fields = append(fields, q.field()) - } +func (r stepQueryDeletedAtDateTime) Equals(value DateTime) stepWithPrismaDeletedAtEqualsParam { - return stepDefaultParam{ + return stepWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "children", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -// Step -> Children -// -// @relation -// @required -func (stepQueryChildrenRelations) Every( - params ...StepWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) stepWithPrismaDeletedAtEqualsParam { + if value == nil { + return stepWithPrismaDeletedAtEqualsParam{} } + return r.Equals(*value) +} +func (r stepQueryDeletedAtDateTime) EqualsOptional(value *DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "children", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -// Step -> Children -// -// @relation -// @required -func (stepQueryChildrenRelations) None( - params ...StepWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - +func (r stepQueryDeletedAtDateTime) IsNull() stepDefaultParam { + var str *string = nil return stepDefaultParam{ data: builder.Field{ - Name: "children", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "equals", + Value: str, }, }, }, } } -func (stepQueryChildrenRelations) Fetch( - - params ...StepWhereParam, - -) stepToChildrenFindMany { - var v stepToChildrenFindMany - - v.query.Operation = "query" - v.query.Method = "children" - v.query.Outputs = stepOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepQueryDeletedAtDateTime) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Value: direction, + }, } - - return v } -func (r stepQueryChildrenRelations) Link( - params ...StepWhereParam, -) stepSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepSetParam{ +func (r stepQueryDeletedAtDateTime) Cursor(cursor DateTime) stepCursorParam { + return stepCursorParam{ data: builder.Field{ - Name: "children", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, - }, - }, + Name: "deletedAt", + Value: cursor, }, } } -func (r stepQueryChildrenRelations) Unlink( - params ...StepWhereParam, -) stepSetParam { - var v stepSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) - } - v = stepSetParam{ +func (r stepQueryDeletedAtDateTime) In(value []DateTime) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "children", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "in", + Value: value, }, }, }, } - - return v -} - -func (r stepQueryChildrenStep) Field() stepPrismaFields { - return stepFieldChildren } -// base struct -type stepQueryParentsStep struct{} - -type stepQueryParentsRelations struct{} - -// Step -> Parents -// -// @relation -// @required -func (stepQueryParentsRelations) Some( - params ...StepWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepQueryDeletedAtDateTime) InIfPresent(value []DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } + return r.In(value) +} +func (r stepQueryDeletedAtDateTime) NotIn(value []DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "parents", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "notIn", + Value: value, }, }, }, } } -// Step -> Parents -// -// @relation -// @required -func (stepQueryParentsRelations) Every( - params ...StepWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } + return r.NotIn(value) +} +func (r stepQueryDeletedAtDateTime) Lt(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "parents", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "lt", + Value: value, }, }, }, } } -// Step -> Parents -// -// @relation -// @required -func (stepQueryParentsRelations) None( - params ...StepWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepQueryDeletedAtDateTime) LtIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } + return r.Lt(*value) +} +func (r stepQueryDeletedAtDateTime) Lte(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "parents", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "lte", + Value: value, }, }, }, } } -func (stepQueryParentsRelations) Fetch( - - params ...StepWhereParam, - -) stepToParentsFindMany { - var v stepToParentsFindMany - - v.query.Operation = "query" - v.query.Method = "parents" - v.query.Outputs = stepOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepQueryDeletedAtDateTime) LteIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } - - return v + return r.Lte(*value) } -func (r stepQueryParentsRelations) Link( - params ...StepWhereParam, -) stepSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepSetParam{ +func (r stepQueryDeletedAtDateTime) Gt(value DateTime) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "parents", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "gt", + Value: value, }, }, }, } } -func (r stepQueryParentsRelations) Unlink( - params ...StepWhereParam, -) stepSetParam { - var v stepSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepQueryDeletedAtDateTime) GtIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } - v = stepSetParam{ + return r.Gt(*value) +} + +func (r stepQueryDeletedAtDateTime) Gte(value DateTime) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "parents", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "gte", + Value: value, }, }, }, } - - return v -} - -func (r stepQueryParentsStep) Field() stepPrismaFields { - return stepFieldParents } -// base struct -type stepQueryStepRunsStepRun struct{} - -type stepQueryStepRunsRelations struct{} - -// Step -> StepRuns -// -// @relation -// @required -func (stepQueryStepRunsRelations) Some( - params ...StepRunWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepQueryDeletedAtDateTime) GteIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } + return r.Gte(*value) +} +func (r stepQueryDeletedAtDateTime) Not(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "not", + Value: value, }, }, }, } } -// Step -> StepRuns -// -// @relation -// @required -func (stepQueryStepRunsRelations) Every( - params ...StepRunWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepQueryDeletedAtDateTime) NotIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } + return r.Not(*value) +} + +// deprecated: Use Lt instead. +func (r stepQueryDeletedAtDateTime) Before(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "lt", + Value: value, }, }, }, } } -// Step -> StepRuns -// -// @relation -// @required -func (stepQueryStepRunsRelations) None( - params ...StepRunWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use LtIfPresent instead. +func (r stepQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } + return r.Before(*value) +} +// deprecated: Use Gt instead. + +func (r stepQueryDeletedAtDateTime) After(value DateTime) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -func (stepQueryStepRunsRelations) Fetch( - - params ...StepRunWhereParam, - -) stepToStepRunsFindMany { - var v stepToStepRunsFindMany - - v.query.Operation = "query" - v.query.Method = "stepRuns" - v.query.Outputs = stepRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +// deprecated: Use GtIfPresent instead. +func (r stepQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } - - return v + return r.After(*value) } -func (r stepQueryStepRunsRelations) Link( - params ...StepRunWhereParam, -) stepSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use Lte instead. - return stepSetParam{ +func (r stepQueryDeletedAtDateTime) BeforeEquals(value DateTime) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "lte", + Value: value, }, }, }, } } -func (r stepQueryStepRunsRelations) Unlink( - params ...StepRunWhereParam, -) stepSetParam { - var v stepSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use LteIfPresent instead. +func (r stepQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} } - v = stepSetParam{ + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r stepQueryDeletedAtDateTime) AfterEquals(value DateTime) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "gte", + Value: value, }, }, }, } +} - return v +// deprecated: Use GteIfPresent instead. +func (r stepQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepDefaultParam { + if value == nil { + return stepDefaultParam{} + } + return r.AfterEquals(*value) } -func (r stepQueryStepRunsStepRun) Field() stepPrismaFields { - return stepFieldStepRuns +func (r stepQueryDeletedAtDateTime) Field() stepPrismaFields { + return stepFieldDeletedAt } // base struct -type stepQueryScheduleTimeoutString struct{} +type stepQueryReadableIDString struct{} -// Set the required value of ScheduleTimeout -func (r stepQueryScheduleTimeoutString) Set(value string) stepSetParam { +// Set the optional value of ReadableID +func (r stepQueryReadableIDString) Set(value string) stepSetParam { return stepSetParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Value: value, }, } } -// Set the optional value of ScheduleTimeout dynamically -func (r stepQueryScheduleTimeoutString) SetIfPresent(value *String) stepSetParam { +// Set the optional value of ReadableID dynamically +func (r stepQueryReadableIDString) SetIfPresent(value *String) stepSetParam { if value == nil { return stepSetParam{} } @@ -90365,11 +91980,27 @@ func (r stepQueryScheduleTimeoutString) SetIfPresent(value *String) stepSetParam return r.Set(*value) } -func (r stepQueryScheduleTimeoutString) Equals(value string) stepWithPrismaScheduleTimeoutEqualsParam { +// Set the optional value of ReadableID dynamically +func (r stepQueryReadableIDString) SetOptional(value *String) stepSetParam { + if value == nil { - return stepWithPrismaScheduleTimeoutEqualsParam{ + var v *string + return stepSetParam{ + data: builder.Field{ + Name: "readableId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepQueryReadableIDString) Equals(value string) stepWithPrismaReadableIDEqualsParam { + + return stepWithPrismaReadableIDEqualsParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "equals", @@ -90380,35 +92011,64 @@ func (r stepQueryScheduleTimeoutString) Equals(value string) stepWithPrismaSched } } -func (r stepQueryScheduleTimeoutString) EqualsIfPresent(value *string) stepWithPrismaScheduleTimeoutEqualsParam { +func (r stepQueryReadableIDString) EqualsIfPresent(value *string) stepWithPrismaReadableIDEqualsParam { if value == nil { - return stepWithPrismaScheduleTimeoutEqualsParam{} + return stepWithPrismaReadableIDEqualsParam{} } return r.Equals(*value) } -func (r stepQueryScheduleTimeoutString) Order(direction SortOrder) stepDefaultParam { +func (r stepQueryReadableIDString) EqualsOptional(value *String) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r stepQueryReadableIDString) IsNull() stepDefaultParam { + var str *string = nil + return stepDefaultParam{ + data: builder.Field{ + Name: "readableId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r stepQueryReadableIDString) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ + data: builder.Field{ + Name: "readableId", Value: direction, }, } } -func (r stepQueryScheduleTimeoutString) Cursor(cursor string) stepCursorParam { +func (r stepQueryReadableIDString) Cursor(cursor string) stepCursorParam { return stepCursorParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Value: cursor, }, } } -func (r stepQueryScheduleTimeoutString) In(value []string) stepDefaultParam { +func (r stepQueryReadableIDString) In(value []string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "in", @@ -90419,17 +92079,17 @@ func (r stepQueryScheduleTimeoutString) In(value []string) stepDefaultParam { } } -func (r stepQueryScheduleTimeoutString) InIfPresent(value []string) stepDefaultParam { +func (r stepQueryReadableIDString) InIfPresent(value []string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.In(value) } -func (r stepQueryScheduleTimeoutString) NotIn(value []string) stepDefaultParam { +func (r stepQueryReadableIDString) NotIn(value []string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "notIn", @@ -90440,17 +92100,17 @@ func (r stepQueryScheduleTimeoutString) NotIn(value []string) stepDefaultParam { } } -func (r stepQueryScheduleTimeoutString) NotInIfPresent(value []string) stepDefaultParam { +func (r stepQueryReadableIDString) NotInIfPresent(value []string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.NotIn(value) } -func (r stepQueryScheduleTimeoutString) Lt(value string) stepDefaultParam { +func (r stepQueryReadableIDString) Lt(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "lt", @@ -90461,17 +92121,17 @@ func (r stepQueryScheduleTimeoutString) Lt(value string) stepDefaultParam { } } -func (r stepQueryScheduleTimeoutString) LtIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) LtIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Lt(*value) } -func (r stepQueryScheduleTimeoutString) Lte(value string) stepDefaultParam { +func (r stepQueryReadableIDString) Lte(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "lte", @@ -90482,17 +92142,17 @@ func (r stepQueryScheduleTimeoutString) Lte(value string) stepDefaultParam { } } -func (r stepQueryScheduleTimeoutString) LteIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) LteIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Lte(*value) } -func (r stepQueryScheduleTimeoutString) Gt(value string) stepDefaultParam { +func (r stepQueryReadableIDString) Gt(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "gt", @@ -90503,17 +92163,17 @@ func (r stepQueryScheduleTimeoutString) Gt(value string) stepDefaultParam { } } -func (r stepQueryScheduleTimeoutString) GtIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) GtIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Gt(*value) } -func (r stepQueryScheduleTimeoutString) Gte(value string) stepDefaultParam { +func (r stepQueryReadableIDString) Gte(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "gte", @@ -90524,17 +92184,17 @@ func (r stepQueryScheduleTimeoutString) Gte(value string) stepDefaultParam { } } -func (r stepQueryScheduleTimeoutString) GteIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) GteIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Gte(*value) } -func (r stepQueryScheduleTimeoutString) Contains(value string) stepDefaultParam { +func (r stepQueryReadableIDString) Contains(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "contains", @@ -90545,17 +92205,17 @@ func (r stepQueryScheduleTimeoutString) Contains(value string) stepDefaultParam } } -func (r stepQueryScheduleTimeoutString) ContainsIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) ContainsIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Contains(*value) } -func (r stepQueryScheduleTimeoutString) StartsWith(value string) stepDefaultParam { +func (r stepQueryReadableIDString) StartsWith(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "startsWith", @@ -90566,17 +92226,17 @@ func (r stepQueryScheduleTimeoutString) StartsWith(value string) stepDefaultPara } } -func (r stepQueryScheduleTimeoutString) StartsWithIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) StartsWithIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.StartsWith(*value) } -func (r stepQueryScheduleTimeoutString) EndsWith(value string) stepDefaultParam { +func (r stepQueryReadableIDString) EndsWith(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "endsWith", @@ -90587,17 +92247,17 @@ func (r stepQueryScheduleTimeoutString) EndsWith(value string) stepDefaultParam } } -func (r stepQueryScheduleTimeoutString) EndsWithIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) EndsWithIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.EndsWith(*value) } -func (r stepQueryScheduleTimeoutString) Mode(value QueryMode) stepDefaultParam { +func (r stepQueryReadableIDString) Mode(value QueryMode) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "mode", @@ -90608,17 +92268,17 @@ func (r stepQueryScheduleTimeoutString) Mode(value QueryMode) stepDefaultParam { } } -func (r stepQueryScheduleTimeoutString) ModeIfPresent(value *QueryMode) stepDefaultParam { +func (r stepQueryReadableIDString) ModeIfPresent(value *QueryMode) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.Mode(*value) } -func (r stepQueryScheduleTimeoutString) Not(value string) stepDefaultParam { +func (r stepQueryReadableIDString) Not(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "not", @@ -90629,7 +92289,7 @@ func (r stepQueryScheduleTimeoutString) Not(value string) stepDefaultParam { } } -func (r stepQueryScheduleTimeoutString) NotIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) NotIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } @@ -90638,10 +92298,10 @@ func (r stepQueryScheduleTimeoutString) NotIfPresent(value *string) stepDefaultP // deprecated: Use StartsWith instead. -func (r stepQueryScheduleTimeoutString) HasPrefix(value string) stepDefaultParam { +func (r stepQueryReadableIDString) HasPrefix(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "starts_with", @@ -90653,7 +92313,7 @@ func (r stepQueryScheduleTimeoutString) HasPrefix(value string) stepDefaultParam } // deprecated: Use StartsWithIfPresent instead. -func (r stepQueryScheduleTimeoutString) HasPrefixIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) HasPrefixIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } @@ -90662,10 +92322,10 @@ func (r stepQueryScheduleTimeoutString) HasPrefixIfPresent(value *string) stepDe // deprecated: Use EndsWith instead. -func (r stepQueryScheduleTimeoutString) HasSuffix(value string) stepDefaultParam { +func (r stepQueryReadableIDString) HasSuffix(value string) stepDefaultParam { return stepDefaultParam{ data: builder.Field{ - Name: "scheduleTimeout", + Name: "readableId", Fields: []builder.Field{ { Name: "ends_with", @@ -90677,80 +92337,28 @@ func (r stepQueryScheduleTimeoutString) HasSuffix(value string) stepDefaultParam } // deprecated: Use EndsWithIfPresent instead. -func (r stepQueryScheduleTimeoutString) HasSuffixIfPresent(value *string) stepDefaultParam { +func (r stepQueryReadableIDString) HasSuffixIfPresent(value *string) stepDefaultParam { if value == nil { return stepDefaultParam{} } return r.HasSuffix(*value) } -func (r stepQueryScheduleTimeoutString) Field() stepPrismaFields { - return stepFieldScheduleTimeout +func (r stepQueryReadableIDString) Field() stepPrismaFields { + return stepFieldReadableID } // base struct -type stepQueryRateLimitsStepRateLimit struct{} - -type stepQueryRateLimitsRelations struct{} - -// Step -> RateLimits -// -// @relation -// @required -func (stepQueryRateLimitsRelations) Some( - params ...StepRateLimitWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepDefaultParam{ - data: builder.Field{ - Name: "rateLimits", - Fields: []builder.Field{ - { - Name: "some", - Fields: fields, - }, - }, - }, - } -} - -// Step -> RateLimits -// -// @relation -// @required -func (stepQueryRateLimitsRelations) Every( - params ...StepRateLimitWhereParam, -) stepDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +type stepQueryTenantTenant struct{} - return stepDefaultParam{ - data: builder.Field{ - Name: "rateLimits", - Fields: []builder.Field{ - { - Name: "every", - Fields: fields, - }, - }, - }, - } -} +type stepQueryTenantRelations struct{} -// Step -> RateLimits +// Step -> Tenant // // @relation // @required -func (stepQueryRateLimitsRelations) None( - params ...StepRateLimitWhereParam, +func (stepQueryTenantRelations) Where( + params ...TenantWhereParam, ) stepDefaultParam { var fields []builder.Field @@ -90760,10 +92368,10 @@ func (stepQueryRateLimitsRelations) None( return stepDefaultParam{ data: builder.Field{ - Name: "rateLimits", + Name: "tenant", Fields: []builder.Field{ { - Name: "none", + Name: "is", Fields: fields, }, }, @@ -90771,83 +92379,51 @@ func (stepQueryRateLimitsRelations) None( } } -func (stepQueryRateLimitsRelations) Fetch( - - params ...StepRateLimitWhereParam, - -) stepToRateLimitsFindMany { - var v stepToRateLimitsFindMany +func (stepQueryTenantRelations) Fetch() stepToTenantFindUnique { + var v stepToTenantFindUnique v.query.Operation = "query" - v.query.Method = "rateLimits" - v.query.Outputs = stepRateLimitOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } + v.query.Method = "tenant" + v.query.Outputs = tenantOutput return v } -func (r stepQueryRateLimitsRelations) Link( - params ...StepRateLimitWhereParam, -) stepSetParam { +func (r stepQueryTenantRelations) Link( + params TenantWhereParam, +) stepWithPrismaTenantSetParam { var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepWithPrismaTenantSetParam{} } - return stepSetParam{ + fields = append(fields, f) + + return stepWithPrismaTenantSetParam{ data: builder.Field{ - Name: "rateLimits", + Name: "tenant", Fields: []builder.Field{ { Name: "connect", Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, }, }, }, } } -func (r stepQueryRateLimitsRelations) Unlink( - params ...StepRateLimitWhereParam, -) stepSetParam { - var v stepSetParam +func (r stepQueryTenantRelations) Unlink() stepWithPrismaTenantSetParam { + var v stepWithPrismaTenantSetParam - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) - } - v = stepSetParam{ + v = stepWithPrismaTenantSetParam{ data: builder.Field{ - Name: "rateLimits", + Name: "tenant", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "disconnect", + Value: true, }, }, }, @@ -90856,144 +92432,42 @@ func (r stepQueryRateLimitsRelations) Unlink( return v } -func (r stepQueryRateLimitsStepRateLimit) Field() stepPrismaFields { - return stepFieldRateLimits -} - -// StepRateLimit acts as a namespaces to access query methods for the StepRateLimit model -var StepRateLimit = stepRateLimitQuery{} - -// stepRateLimitQuery exposes query functions for the stepRateLimit model -type stepRateLimitQuery struct { - - // Units - // - // @required - Units stepRateLimitQueryUnitsInt - - Step stepRateLimitQueryStepRelations - - // StepID - // - // @required - StepID stepRateLimitQueryStepIDString - - RateLimit stepRateLimitQueryRateLimitRelations - - // RateLimitKey - // - // @required - RateLimitKey stepRateLimitQueryRateLimitKeyString - - Tenant stepRateLimitQueryTenantRelations - - // TenantID - // - // @required - TenantID stepRateLimitQueryTenantIDString -} - -func (stepRateLimitQuery) Not(params ...StepRateLimitWhereParam) stepRateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRateLimitDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (stepRateLimitQuery) Or(params ...StepRateLimitWhereParam) stepRateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRateLimitDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (stepRateLimitQuery) And(params ...StepRateLimitWhereParam) stepRateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRateLimitDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (stepRateLimitQuery) StepIDRateLimitKey( - _stepID StepRateLimitWithPrismaStepIDWhereParam, - - _rateLimitKey StepRateLimitWithPrismaRateLimitKeyWhereParam, -) StepRateLimitEqualsUniqueWhereParam { - var fields []builder.Field - - fields = append(fields, _stepID.field()) - fields = append(fields, _rateLimitKey.field()) - - return stepRateLimitEqualsUniqueParam{ - data: builder.Field{ - Name: "stepId_rateLimitKey", - Fields: builder.TransformEquals(fields), - }, - } +func (r stepQueryTenantTenant) Field() stepPrismaFields { + return stepFieldTenant } // base struct -type stepRateLimitQueryUnitsInt struct{} +type stepQueryTenantIDString struct{} -// Set the required value of Units -func (r stepRateLimitQueryUnitsInt) Set(value int) stepRateLimitWithPrismaUnitsSetParam { +// Set the required value of TenantID +func (r stepQueryTenantIDString) Set(value string) stepSetParam { - return stepRateLimitWithPrismaUnitsSetParam{ + return stepSetParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Value: value, }, } } -// Set the optional value of Units dynamically -func (r stepRateLimitQueryUnitsInt) SetIfPresent(value *Int) stepRateLimitWithPrismaUnitsSetParam { +// Set the optional value of TenantID dynamically +func (r stepQueryTenantIDString) SetIfPresent(value *String) stepSetParam { if value == nil { - return stepRateLimitWithPrismaUnitsSetParam{} + return stepSetParam{} } return r.Set(*value) } -// Increment the required value of Units -func (r stepRateLimitQueryUnitsInt) Increment(value int) stepRateLimitWithPrismaUnitsSetParam { - return stepRateLimitWithPrismaUnitsSetParam{ +func (r stepQueryTenantIDString) Equals(value string) stepWithPrismaTenantIDEqualsParam { + + return stepWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ - builder.Field{ - Name: "increment", + { + Name: "equals", Value: value, }, }, @@ -91001,65 +92475,38 @@ func (r stepRateLimitQueryUnitsInt) Increment(value int) stepRateLimitWithPrisma } } -func (r stepRateLimitQueryUnitsInt) IncrementIfPresent(value *int) stepRateLimitWithPrismaUnitsSetParam { +func (r stepQueryTenantIDString) EqualsIfPresent(value *string) stepWithPrismaTenantIDEqualsParam { if value == nil { - return stepRateLimitWithPrismaUnitsSetParam{} + return stepWithPrismaTenantIDEqualsParam{} } - return r.Increment(*value) + return r.Equals(*value) } -// Decrement the required value of Units -func (r stepRateLimitQueryUnitsInt) Decrement(value int) stepRateLimitWithPrismaUnitsSetParam { - return stepRateLimitWithPrismaUnitsSetParam{ +func (r stepQueryTenantIDString) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", - Fields: []builder.Field{ - builder.Field{ - Name: "decrement", - Value: value, - }, - }, + Name: "tenantId", + Value: direction, }, } } -func (r stepRateLimitQueryUnitsInt) DecrementIfPresent(value *int) stepRateLimitWithPrismaUnitsSetParam { - if value == nil { - return stepRateLimitWithPrismaUnitsSetParam{} - } - return r.Decrement(*value) -} - -// Multiply the required value of Units -func (r stepRateLimitQueryUnitsInt) Multiply(value int) stepRateLimitWithPrismaUnitsSetParam { - return stepRateLimitWithPrismaUnitsSetParam{ +func (r stepQueryTenantIDString) Cursor(cursor string) stepCursorParam { + return stepCursorParam{ data: builder.Field{ - Name: "units", - Fields: []builder.Field{ - builder.Field{ - Name: "multiply", - Value: value, - }, - }, + Name: "tenantId", + Value: cursor, }, } } -func (r stepRateLimitQueryUnitsInt) MultiplyIfPresent(value *int) stepRateLimitWithPrismaUnitsSetParam { - if value == nil { - return stepRateLimitWithPrismaUnitsSetParam{} - } - return r.Multiply(*value) -} - -// Divide the required value of Units -func (r stepRateLimitQueryUnitsInt) Divide(value int) stepRateLimitWithPrismaUnitsSetParam { - return stepRateLimitWithPrismaUnitsSetParam{ +func (r stepQueryTenantIDString) In(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "in", Value: value, }, }, @@ -91067,21 +92514,20 @@ func (r stepRateLimitQueryUnitsInt) Divide(value int) stepRateLimitWithPrismaUni } } -func (r stepRateLimitQueryUnitsInt) DivideIfPresent(value *int) stepRateLimitWithPrismaUnitsSetParam { +func (r stepQueryTenantIDString) InIfPresent(value []string) stepDefaultParam { if value == nil { - return stepRateLimitWithPrismaUnitsSetParam{} + return stepDefaultParam{} } - return r.Divide(*value) + return r.In(value) } -func (r stepRateLimitQueryUnitsInt) Equals(value int) stepRateLimitWithPrismaUnitsEqualsParam { - - return stepRateLimitWithPrismaUnitsEqualsParam{ +func (r stepQueryTenantIDString) NotIn(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "equals", + Name: "notIn", Value: value, }, }, @@ -91089,38 +92535,20 @@ func (r stepRateLimitQueryUnitsInt) Equals(value int) stepRateLimitWithPrismaUni } } -func (r stepRateLimitQueryUnitsInt) EqualsIfPresent(value *int) stepRateLimitWithPrismaUnitsEqualsParam { +func (r stepQueryTenantIDString) NotInIfPresent(value []string) stepDefaultParam { if value == nil { - return stepRateLimitWithPrismaUnitsEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepRateLimitQueryUnitsInt) Order(direction SortOrder) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ - data: builder.Field{ - Name: "units", - Value: direction, - }, - } -} - -func (r stepRateLimitQueryUnitsInt) Cursor(cursor int) stepRateLimitCursorParam { - return stepRateLimitCursorParam{ - data: builder.Field{ - Name: "units", - Value: cursor, - }, + return stepDefaultParam{} } + return r.NotIn(value) } -func (r stepRateLimitQueryUnitsInt) In(value []int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) Lt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "in", + Name: "lt", Value: value, }, }, @@ -91128,20 +92556,20 @@ func (r stepRateLimitQueryUnitsInt) In(value []int) stepRateLimitDefaultParam { } } -func (r stepRateLimitQueryUnitsInt) InIfPresent(value []int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) LtIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.In(value) + return r.Lt(*value) } -func (r stepRateLimitQueryUnitsInt) NotIn(value []int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) Lte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "notIn", + Name: "lte", Value: value, }, }, @@ -91149,20 +92577,20 @@ func (r stepRateLimitQueryUnitsInt) NotIn(value []int) stepRateLimitDefaultParam } } -func (r stepRateLimitQueryUnitsInt) NotInIfPresent(value []int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) LteIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.NotIn(value) + return r.Lte(*value) } -func (r stepRateLimitQueryUnitsInt) Lt(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) Gt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lt", + Name: "gt", Value: value, }, }, @@ -91170,20 +92598,20 @@ func (r stepRateLimitQueryUnitsInt) Lt(value int) stepRateLimitDefaultParam { } } -func (r stepRateLimitQueryUnitsInt) LtIfPresent(value *int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) GtIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Lt(*value) + return r.Gt(*value) } -func (r stepRateLimitQueryUnitsInt) Lte(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) Gte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lte", + Name: "gte", Value: value, }, }, @@ -91191,20 +92619,20 @@ func (r stepRateLimitQueryUnitsInt) Lte(value int) stepRateLimitDefaultParam { } } -func (r stepRateLimitQueryUnitsInt) LteIfPresent(value *int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) GteIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Lte(*value) + return r.Gte(*value) } -func (r stepRateLimitQueryUnitsInt) Gt(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) Contains(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gt", + Name: "contains", Value: value, }, }, @@ -91212,20 +92640,20 @@ func (r stepRateLimitQueryUnitsInt) Gt(value int) stepRateLimitDefaultParam { } } -func (r stepRateLimitQueryUnitsInt) GtIfPresent(value *int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) ContainsIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Gt(*value) + return r.Contains(*value) } -func (r stepRateLimitQueryUnitsInt) Gte(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) StartsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gte", + Name: "startsWith", Value: value, }, }, @@ -91233,20 +92661,20 @@ func (r stepRateLimitQueryUnitsInt) Gte(value int) stepRateLimitDefaultParam { } } -func (r stepRateLimitQueryUnitsInt) GteIfPresent(value *int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) StartsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Gte(*value) + return r.StartsWith(*value) } -func (r stepRateLimitQueryUnitsInt) Not(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) EndsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "not", + Name: "endsWith", Value: value, }, }, @@ -91254,22 +92682,20 @@ func (r stepRateLimitQueryUnitsInt) Not(value int) stepRateLimitDefaultParam { } } -func (r stepRateLimitQueryUnitsInt) NotIfPresent(value *int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) EndsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Not(*value) + return r.EndsWith(*value) } -// deprecated: Use Lt instead. - -func (r stepRateLimitQueryUnitsInt) LT(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) Mode(value QueryMode) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lt", + Name: "mode", Value: value, }, }, @@ -91277,23 +92703,20 @@ func (r stepRateLimitQueryUnitsInt) LT(value int) stepRateLimitDefaultParam { } } -// deprecated: Use LtIfPresent instead. -func (r stepRateLimitQueryUnitsInt) LTIfPresent(value *int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) ModeIfPresent(value *QueryMode) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.LT(*value) + return r.Mode(*value) } -// deprecated: Use Lte instead. - -func (r stepRateLimitQueryUnitsInt) LTE(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) Not(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lte", + Name: "not", Value: value, }, }, @@ -91301,23 +92724,22 @@ func (r stepRateLimitQueryUnitsInt) LTE(value int) stepRateLimitDefaultParam { } } -// deprecated: Use LteIfPresent instead. -func (r stepRateLimitQueryUnitsInt) LTEIfPresent(value *int) stepRateLimitDefaultParam { +func (r stepQueryTenantIDString) NotIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.LTE(*value) + return r.Not(*value) } -// deprecated: Use Gt instead. +// deprecated: Use StartsWith instead. -func (r stepRateLimitQueryUnitsInt) GT(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) HasPrefix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gt", + Name: "starts_with", Value: value, }, }, @@ -91325,23 +92747,23 @@ func (r stepRateLimitQueryUnitsInt) GT(value int) stepRateLimitDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r stepRateLimitQueryUnitsInt) GTIfPresent(value *int) stepRateLimitDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepQueryTenantIDString) HasPrefixIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.GT(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r stepRateLimitQueryUnitsInt) GTE(value int) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTenantIDString) HasSuffix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "units", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -91349,39 +92771,39 @@ func (r stepRateLimitQueryUnitsInt) GTE(value int) stepRateLimitDefaultParam { } } -// deprecated: Use GteIfPresent instead. -func (r stepRateLimitQueryUnitsInt) GTEIfPresent(value *int) stepRateLimitDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepQueryTenantIDString) HasSuffixIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } - return r.GTE(*value) + return r.HasSuffix(*value) } -func (r stepRateLimitQueryUnitsInt) Field() stepRateLimitPrismaFields { - return stepRateLimitFieldUnits +func (r stepQueryTenantIDString) Field() stepPrismaFields { + return stepFieldTenantID } // base struct -type stepRateLimitQueryStepStep struct{} +type stepQueryJobJob struct{} -type stepRateLimitQueryStepRelations struct{} +type stepQueryJobRelations struct{} -// StepRateLimit -> Step +// Step -> Job // // @relation // @required -func (stepRateLimitQueryStepRelations) Where( - params ...StepWhereParam, -) stepRateLimitDefaultParam { +func (stepQueryJobRelations) Where( + params ...JobWhereParam, +) stepDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepRateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "step", + Name: "job", Fields: []builder.Field{ { Name: "is", @@ -91392,31 +92814,31 @@ func (stepRateLimitQueryStepRelations) Where( } } -func (stepRateLimitQueryStepRelations) Fetch() stepRateLimitToStepFindUnique { - var v stepRateLimitToStepFindUnique +func (stepQueryJobRelations) Fetch() stepToJobFindUnique { + var v stepToJobFindUnique v.query.Operation = "query" - v.query.Method = "step" - v.query.Outputs = stepOutput + v.query.Method = "job" + v.query.Outputs = jobOutput return v } -func (r stepRateLimitQueryStepRelations) Link( - params StepWhereParam, -) stepRateLimitWithPrismaStepSetParam { +func (r stepQueryJobRelations) Link( + params JobWhereParam, +) stepWithPrismaJobSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return stepRateLimitWithPrismaStepSetParam{} + return stepWithPrismaJobSetParam{} } fields = append(fields, f) - return stepRateLimitWithPrismaStepSetParam{ + return stepWithPrismaJobSetParam{ data: builder.Field{ - Name: "step", + Name: "job", Fields: []builder.Field{ { Name: "connect", @@ -91427,12 +92849,12 @@ func (r stepRateLimitQueryStepRelations) Link( } } -func (r stepRateLimitQueryStepRelations) Unlink() stepRateLimitWithPrismaStepSetParam { - var v stepRateLimitWithPrismaStepSetParam +func (r stepQueryJobRelations) Unlink() stepWithPrismaJobSetParam { + var v stepWithPrismaJobSetParam - v = stepRateLimitWithPrismaStepSetParam{ + v = stepWithPrismaJobSetParam{ data: builder.Field{ - Name: "step", + Name: "job", Fields: []builder.Field{ { Name: "disconnect", @@ -91445,39 +92867,39 @@ func (r stepRateLimitQueryStepRelations) Unlink() stepRateLimitWithPrismaStepSet return v } -func (r stepRateLimitQueryStepStep) Field() stepRateLimitPrismaFields { - return stepRateLimitFieldStep +func (r stepQueryJobJob) Field() stepPrismaFields { + return stepFieldJob } // base struct -type stepRateLimitQueryStepIDString struct{} +type stepQueryJobIDString struct{} -// Set the required value of StepID -func (r stepRateLimitQueryStepIDString) Set(value string) stepRateLimitSetParam { +// Set the required value of JobID +func (r stepQueryJobIDString) Set(value string) stepSetParam { - return stepRateLimitSetParam{ + return stepSetParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Value: value, }, } } -// Set the optional value of StepID dynamically -func (r stepRateLimitQueryStepIDString) SetIfPresent(value *String) stepRateLimitSetParam { +// Set the optional value of JobID dynamically +func (r stepQueryJobIDString) SetIfPresent(value *String) stepSetParam { if value == nil { - return stepRateLimitSetParam{} + return stepSetParam{} } return r.Set(*value) } -func (r stepRateLimitQueryStepIDString) Equals(value string) stepRateLimitWithPrismaStepIDEqualsParam { +func (r stepQueryJobIDString) Equals(value string) stepWithPrismaJobIDEqualsParam { - return stepRateLimitWithPrismaStepIDEqualsParam{ + return stepWithPrismaJobIDEqualsParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "equals", @@ -91488,35 +92910,35 @@ func (r stepRateLimitQueryStepIDString) Equals(value string) stepRateLimitWithPr } } -func (r stepRateLimitQueryStepIDString) EqualsIfPresent(value *string) stepRateLimitWithPrismaStepIDEqualsParam { +func (r stepQueryJobIDString) EqualsIfPresent(value *string) stepWithPrismaJobIDEqualsParam { if value == nil { - return stepRateLimitWithPrismaStepIDEqualsParam{} + return stepWithPrismaJobIDEqualsParam{} } return r.Equals(*value) } -func (r stepRateLimitQueryStepIDString) Order(direction SortOrder) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Value: direction, }, } } -func (r stepRateLimitQueryStepIDString) Cursor(cursor string) stepRateLimitCursorParam { - return stepRateLimitCursorParam{ +func (r stepQueryJobIDString) Cursor(cursor string) stepCursorParam { + return stepCursorParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Value: cursor, }, } } -func (r stepRateLimitQueryStepIDString) In(value []string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) In(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "in", @@ -91527,17 +92949,17 @@ func (r stepRateLimitQueryStepIDString) In(value []string) stepRateLimitDefaultP } } -func (r stepRateLimitQueryStepIDString) InIfPresent(value []string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) InIfPresent(value []string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.In(value) } -func (r stepRateLimitQueryStepIDString) NotIn(value []string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) NotIn(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "notIn", @@ -91548,17 +92970,17 @@ func (r stepRateLimitQueryStepIDString) NotIn(value []string) stepRateLimitDefau } } -func (r stepRateLimitQueryStepIDString) NotInIfPresent(value []string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) NotInIfPresent(value []string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.NotIn(value) } -func (r stepRateLimitQueryStepIDString) Lt(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) Lt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "lt", @@ -91569,17 +92991,17 @@ func (r stepRateLimitQueryStepIDString) Lt(value string) stepRateLimitDefaultPar } } -func (r stepRateLimitQueryStepIDString) LtIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) LtIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lt(*value) } -func (r stepRateLimitQueryStepIDString) Lte(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) Lte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "lte", @@ -91590,17 +93012,17 @@ func (r stepRateLimitQueryStepIDString) Lte(value string) stepRateLimitDefaultPa } } -func (r stepRateLimitQueryStepIDString) LteIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) LteIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lte(*value) } -func (r stepRateLimitQueryStepIDString) Gt(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) Gt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "gt", @@ -91611,17 +93033,17 @@ func (r stepRateLimitQueryStepIDString) Gt(value string) stepRateLimitDefaultPar } } -func (r stepRateLimitQueryStepIDString) GtIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) GtIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gt(*value) } -func (r stepRateLimitQueryStepIDString) Gte(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) Gte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "gte", @@ -91632,17 +93054,17 @@ func (r stepRateLimitQueryStepIDString) Gte(value string) stepRateLimitDefaultPa } } -func (r stepRateLimitQueryStepIDString) GteIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) GteIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gte(*value) } -func (r stepRateLimitQueryStepIDString) Contains(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) Contains(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "contains", @@ -91653,17 +93075,17 @@ func (r stepRateLimitQueryStepIDString) Contains(value string) stepRateLimitDefa } } -func (r stepRateLimitQueryStepIDString) ContainsIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) ContainsIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Contains(*value) } -func (r stepRateLimitQueryStepIDString) StartsWith(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) StartsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "startsWith", @@ -91674,17 +93096,17 @@ func (r stepRateLimitQueryStepIDString) StartsWith(value string) stepRateLimitDe } } -func (r stepRateLimitQueryStepIDString) StartsWithIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) StartsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.StartsWith(*value) } -func (r stepRateLimitQueryStepIDString) EndsWith(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) EndsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "endsWith", @@ -91695,17 +93117,17 @@ func (r stepRateLimitQueryStepIDString) EndsWith(value string) stepRateLimitDefa } } -func (r stepRateLimitQueryStepIDString) EndsWithIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) EndsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.EndsWith(*value) } -func (r stepRateLimitQueryStepIDString) Mode(value QueryMode) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) Mode(value QueryMode) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "mode", @@ -91716,17 +93138,17 @@ func (r stepRateLimitQueryStepIDString) Mode(value QueryMode) stepRateLimitDefau } } -func (r stepRateLimitQueryStepIDString) ModeIfPresent(value *QueryMode) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) ModeIfPresent(value *QueryMode) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Mode(*value) } -func (r stepRateLimitQueryStepIDString) Not(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) Not(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "not", @@ -91737,19 +93159,19 @@ func (r stepRateLimitQueryStepIDString) Not(value string) stepRateLimitDefaultPa } } -func (r stepRateLimitQueryStepIDString) NotIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) NotIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRateLimitQueryStepIDString) HasPrefix(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) HasPrefix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "starts_with", @@ -91761,19 +93183,19 @@ func (r stepRateLimitQueryStepIDString) HasPrefix(value string) stepRateLimitDef } // deprecated: Use StartsWithIfPresent instead. -func (r stepRateLimitQueryStepIDString) HasPrefixIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) HasPrefixIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRateLimitQueryStepIDString) HasSuffix(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryJobIDString) HasSuffix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "jobId", Fields: []builder.Field{ { Name: "ends_with", @@ -91785,38 +93207,38 @@ func (r stepRateLimitQueryStepIDString) HasSuffix(value string) stepRateLimitDef } // deprecated: Use EndsWithIfPresent instead. -func (r stepRateLimitQueryStepIDString) HasSuffixIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryJobIDString) HasSuffixIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRateLimitQueryStepIDString) Field() stepRateLimitPrismaFields { - return stepRateLimitFieldStepID +func (r stepQueryJobIDString) Field() stepPrismaFields { + return stepFieldJobID } // base struct -type stepRateLimitQueryRateLimitRateLimit struct{} +type stepQueryActionAction struct{} -type stepRateLimitQueryRateLimitRelations struct{} +type stepQueryActionRelations struct{} -// StepRateLimit -> RateLimit +// Step -> Action // // @relation // @required -func (stepRateLimitQueryRateLimitRelations) Where( - params ...RateLimitWhereParam, -) stepRateLimitDefaultParam { +func (stepQueryActionRelations) Where( + params ...ActionWhereParam, +) stepDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepRateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimit", + Name: "action", Fields: []builder.Field{ { Name: "is", @@ -91827,31 +93249,31 @@ func (stepRateLimitQueryRateLimitRelations) Where( } } -func (stepRateLimitQueryRateLimitRelations) Fetch() stepRateLimitToRateLimitFindUnique { - var v stepRateLimitToRateLimitFindUnique +func (stepQueryActionRelations) Fetch() stepToActionFindUnique { + var v stepToActionFindUnique v.query.Operation = "query" - v.query.Method = "rateLimit" - v.query.Outputs = rateLimitOutput + v.query.Method = "action" + v.query.Outputs = actionOutput return v } -func (r stepRateLimitQueryRateLimitRelations) Link( - params RateLimitWhereParam, -) stepRateLimitWithPrismaRateLimitSetParam { +func (r stepQueryActionRelations) Link( + params ActionWhereParam, +) stepWithPrismaActionSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return stepRateLimitWithPrismaRateLimitSetParam{} + return stepWithPrismaActionSetParam{} } fields = append(fields, f) - return stepRateLimitWithPrismaRateLimitSetParam{ + return stepWithPrismaActionSetParam{ data: builder.Field{ - Name: "rateLimit", + Name: "action", Fields: []builder.Field{ { Name: "connect", @@ -91862,12 +93284,12 @@ func (r stepRateLimitQueryRateLimitRelations) Link( } } -func (r stepRateLimitQueryRateLimitRelations) Unlink() stepRateLimitWithPrismaRateLimitSetParam { - var v stepRateLimitWithPrismaRateLimitSetParam +func (r stepQueryActionRelations) Unlink() stepWithPrismaActionSetParam { + var v stepWithPrismaActionSetParam - v = stepRateLimitWithPrismaRateLimitSetParam{ + v = stepWithPrismaActionSetParam{ data: builder.Field{ - Name: "rateLimit", + Name: "action", Fields: []builder.Field{ { Name: "disconnect", @@ -91880,39 +93302,39 @@ func (r stepRateLimitQueryRateLimitRelations) Unlink() stepRateLimitWithPrismaRa return v } -func (r stepRateLimitQueryRateLimitRateLimit) Field() stepRateLimitPrismaFields { - return stepRateLimitFieldRateLimit +func (r stepQueryActionAction) Field() stepPrismaFields { + return stepFieldAction } // base struct -type stepRateLimitQueryRateLimitKeyString struct{} +type stepQueryActionIDString struct{} -// Set the required value of RateLimitKey -func (r stepRateLimitQueryRateLimitKeyString) Set(value string) stepRateLimitSetParam { +// Set the required value of ActionID +func (r stepQueryActionIDString) Set(value string) stepSetParam { - return stepRateLimitSetParam{ + return stepSetParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Value: value, }, } } -// Set the optional value of RateLimitKey dynamically -func (r stepRateLimitQueryRateLimitKeyString) SetIfPresent(value *String) stepRateLimitSetParam { +// Set the optional value of ActionID dynamically +func (r stepQueryActionIDString) SetIfPresent(value *String) stepSetParam { if value == nil { - return stepRateLimitSetParam{} + return stepSetParam{} } return r.Set(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Equals(value string) stepRateLimitWithPrismaRateLimitKeyEqualsParam { +func (r stepQueryActionIDString) Equals(value string) stepWithPrismaActionIDEqualsParam { - return stepRateLimitWithPrismaRateLimitKeyEqualsParam{ + return stepWithPrismaActionIDEqualsParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "equals", @@ -91923,35 +93345,35 @@ func (r stepRateLimitQueryRateLimitKeyString) Equals(value string) stepRateLimit } } -func (r stepRateLimitQueryRateLimitKeyString) EqualsIfPresent(value *string) stepRateLimitWithPrismaRateLimitKeyEqualsParam { +func (r stepQueryActionIDString) EqualsIfPresent(value *string) stepWithPrismaActionIDEqualsParam { if value == nil { - return stepRateLimitWithPrismaRateLimitKeyEqualsParam{} + return stepWithPrismaActionIDEqualsParam{} } return r.Equals(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Order(direction SortOrder) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Value: direction, }, } } -func (r stepRateLimitQueryRateLimitKeyString) Cursor(cursor string) stepRateLimitCursorParam { - return stepRateLimitCursorParam{ +func (r stepQueryActionIDString) Cursor(cursor string) stepCursorParam { + return stepCursorParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Value: cursor, }, } } -func (r stepRateLimitQueryRateLimitKeyString) In(value []string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) In(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "in", @@ -91962,17 +93384,17 @@ func (r stepRateLimitQueryRateLimitKeyString) In(value []string) stepRateLimitDe } } -func (r stepRateLimitQueryRateLimitKeyString) InIfPresent(value []string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) InIfPresent(value []string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.In(value) } -func (r stepRateLimitQueryRateLimitKeyString) NotIn(value []string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) NotIn(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "notIn", @@ -91983,17 +93405,17 @@ func (r stepRateLimitQueryRateLimitKeyString) NotIn(value []string) stepRateLimi } } -func (r stepRateLimitQueryRateLimitKeyString) NotInIfPresent(value []string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) NotInIfPresent(value []string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.NotIn(value) } -func (r stepRateLimitQueryRateLimitKeyString) Lt(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) Lt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "lt", @@ -92004,17 +93426,17 @@ func (r stepRateLimitQueryRateLimitKeyString) Lt(value string) stepRateLimitDefa } } -func (r stepRateLimitQueryRateLimitKeyString) LtIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) LtIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lt(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Lte(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) Lte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "lte", @@ -92025,17 +93447,17 @@ func (r stepRateLimitQueryRateLimitKeyString) Lte(value string) stepRateLimitDef } } -func (r stepRateLimitQueryRateLimitKeyString) LteIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) LteIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lte(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Gt(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) Gt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "gt", @@ -92046,17 +93468,17 @@ func (r stepRateLimitQueryRateLimitKeyString) Gt(value string) stepRateLimitDefa } } -func (r stepRateLimitQueryRateLimitKeyString) GtIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) GtIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gt(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Gte(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) Gte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "gte", @@ -92067,17 +93489,17 @@ func (r stepRateLimitQueryRateLimitKeyString) Gte(value string) stepRateLimitDef } } -func (r stepRateLimitQueryRateLimitKeyString) GteIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) GteIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gte(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Contains(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) Contains(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "contains", @@ -92088,17 +93510,17 @@ func (r stepRateLimitQueryRateLimitKeyString) Contains(value string) stepRateLim } } -func (r stepRateLimitQueryRateLimitKeyString) ContainsIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) ContainsIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Contains(*value) } -func (r stepRateLimitQueryRateLimitKeyString) StartsWith(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) StartsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "startsWith", @@ -92109,17 +93531,17 @@ func (r stepRateLimitQueryRateLimitKeyString) StartsWith(value string) stepRateL } } -func (r stepRateLimitQueryRateLimitKeyString) StartsWithIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) StartsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.StartsWith(*value) } -func (r stepRateLimitQueryRateLimitKeyString) EndsWith(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) EndsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "endsWith", @@ -92130,17 +93552,17 @@ func (r stepRateLimitQueryRateLimitKeyString) EndsWith(value string) stepRateLim } } -func (r stepRateLimitQueryRateLimitKeyString) EndsWithIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) EndsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.EndsWith(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Mode(value QueryMode) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) Mode(value QueryMode) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "mode", @@ -92151,17 +93573,17 @@ func (r stepRateLimitQueryRateLimitKeyString) Mode(value QueryMode) stepRateLimi } } -func (r stepRateLimitQueryRateLimitKeyString) ModeIfPresent(value *QueryMode) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) ModeIfPresent(value *QueryMode) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Mode(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Not(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) Not(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "not", @@ -92172,19 +93594,19 @@ func (r stepRateLimitQueryRateLimitKeyString) Not(value string) stepRateLimitDef } } -func (r stepRateLimitQueryRateLimitKeyString) NotIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) NotIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRateLimitQueryRateLimitKeyString) HasPrefix(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) HasPrefix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "starts_with", @@ -92196,19 +93618,19 @@ func (r stepRateLimitQueryRateLimitKeyString) HasPrefix(value string) stepRateLi } // deprecated: Use StartsWithIfPresent instead. -func (r stepRateLimitQueryRateLimitKeyString) HasPrefixIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) HasPrefixIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRateLimitQueryRateLimitKeyString) HasSuffix(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryActionIDString) HasSuffix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "rateLimitKey", + Name: "actionId", Fields: []builder.Field{ { Name: "ends_with", @@ -92220,134 +93642,83 @@ func (r stepRateLimitQueryRateLimitKeyString) HasSuffix(value string) stepRateLi } // deprecated: Use EndsWithIfPresent instead. -func (r stepRateLimitQueryRateLimitKeyString) HasSuffixIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryActionIDString) HasSuffixIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRateLimitQueryRateLimitKeyString) Field() stepRateLimitPrismaFields { - return stepRateLimitFieldRateLimitKey +func (r stepQueryActionIDString) Field() stepPrismaFields { + return stepFieldActionID } // base struct -type stepRateLimitQueryTenantTenant struct{} +type stepQueryTimeoutString struct{} -type stepRateLimitQueryTenantRelations struct{} +// Set the optional value of Timeout +func (r stepQueryTimeoutString) Set(value string) stepSetParam { -// StepRateLimit -> Tenant -// -// @relation -// @required -func (stepRateLimitQueryTenantRelations) Where( - params ...TenantWhereParam, -) stepRateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRateLimitDefaultParam{ + return stepSetParam{ data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "timeout", + Value: value, }, } -} - -func (stepRateLimitQueryTenantRelations) Fetch() stepRateLimitToTenantFindUnique { - var v stepRateLimitToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - return v } -func (r stepRateLimitQueryTenantRelations) Link( - params TenantWhereParam, -) stepRateLimitWithPrismaTenantSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepRateLimitWithPrismaTenantSetParam{} +// Set the optional value of Timeout dynamically +func (r stepQueryTimeoutString) SetIfPresent(value *String) stepSetParam { + if value == nil { + return stepSetParam{} } - fields = append(fields, f) + return r.Set(*value) +} - return stepRateLimitWithPrismaTenantSetParam{ - data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, +// Set the optional value of Timeout dynamically +func (r stepQueryTimeoutString) SetOptional(value *String) stepSetParam { + if value == nil { + + var v *string + return stepSetParam{ + data: builder.Field{ + Name: "timeout", + Value: v, }, - }, + } } + + return r.Set(*value) } -func (r stepRateLimitQueryTenantRelations) Unlink() stepRateLimitWithPrismaTenantSetParam { - var v stepRateLimitWithPrismaTenantSetParam +func (r stepQueryTimeoutString) Equals(value string) stepWithPrismaTimeoutEqualsParam { - v = stepRateLimitWithPrismaTenantSetParam{ + return stepWithPrismaTimeoutEqualsParam{ data: builder.Field{ - Name: "tenant", + Name: "timeout", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "equals", + Value: value, }, }, }, } - - return v -} - -func (r stepRateLimitQueryTenantTenant) Field() stepRateLimitPrismaFields { - return stepRateLimitFieldTenant -} - -// base struct -type stepRateLimitQueryTenantIDString struct{} - -// Set the required value of TenantID -func (r stepRateLimitQueryTenantIDString) Set(value string) stepRateLimitSetParam { - - return stepRateLimitSetParam{ - data: builder.Field{ - Name: "tenantId", - Value: value, - }, - } - } -// Set the optional value of TenantID dynamically -func (r stepRateLimitQueryTenantIDString) SetIfPresent(value *String) stepRateLimitSetParam { +func (r stepQueryTimeoutString) EqualsIfPresent(value *string) stepWithPrismaTimeoutEqualsParam { if value == nil { - return stepRateLimitSetParam{} + return stepWithPrismaTimeoutEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r stepRateLimitQueryTenantIDString) Equals(value string) stepRateLimitWithPrismaTenantIDEqualsParam { - - return stepRateLimitWithPrismaTenantIDEqualsParam{ +func (r stepQueryTimeoutString) EqualsOptional(value *String) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "equals", @@ -92358,35 +93729,43 @@ func (r stepRateLimitQueryTenantIDString) Equals(value string) stepRateLimitWith } } -func (r stepRateLimitQueryTenantIDString) EqualsIfPresent(value *string) stepRateLimitWithPrismaTenantIDEqualsParam { - if value == nil { - return stepRateLimitWithPrismaTenantIDEqualsParam{} +func (r stepQueryTimeoutString) IsNull() stepDefaultParam { + var str *string = nil + return stepDefaultParam{ + data: builder.Field{ + Name: "timeout", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r stepRateLimitQueryTenantIDString) Order(direction SortOrder) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Value: direction, }, } } -func (r stepRateLimitQueryTenantIDString) Cursor(cursor string) stepRateLimitCursorParam { - return stepRateLimitCursorParam{ +func (r stepQueryTimeoutString) Cursor(cursor string) stepCursorParam { + return stepCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Value: cursor, }, } } -func (r stepRateLimitQueryTenantIDString) In(value []string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) In(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "in", @@ -92397,17 +93776,17 @@ func (r stepRateLimitQueryTenantIDString) In(value []string) stepRateLimitDefaul } } -func (r stepRateLimitQueryTenantIDString) InIfPresent(value []string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) InIfPresent(value []string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.In(value) } -func (r stepRateLimitQueryTenantIDString) NotIn(value []string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) NotIn(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "notIn", @@ -92418,17 +93797,17 @@ func (r stepRateLimitQueryTenantIDString) NotIn(value []string) stepRateLimitDef } } -func (r stepRateLimitQueryTenantIDString) NotInIfPresent(value []string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) NotInIfPresent(value []string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.NotIn(value) } -func (r stepRateLimitQueryTenantIDString) Lt(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) Lt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "lt", @@ -92439,17 +93818,17 @@ func (r stepRateLimitQueryTenantIDString) Lt(value string) stepRateLimitDefaultP } } -func (r stepRateLimitQueryTenantIDString) LtIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) LtIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lt(*value) } -func (r stepRateLimitQueryTenantIDString) Lte(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) Lte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "lte", @@ -92460,17 +93839,17 @@ func (r stepRateLimitQueryTenantIDString) Lte(value string) stepRateLimitDefault } } -func (r stepRateLimitQueryTenantIDString) LteIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) LteIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lte(*value) } -func (r stepRateLimitQueryTenantIDString) Gt(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) Gt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "gt", @@ -92481,17 +93860,17 @@ func (r stepRateLimitQueryTenantIDString) Gt(value string) stepRateLimitDefaultP } } -func (r stepRateLimitQueryTenantIDString) GtIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) GtIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gt(*value) } -func (r stepRateLimitQueryTenantIDString) Gte(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) Gte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "gte", @@ -92502,17 +93881,17 @@ func (r stepRateLimitQueryTenantIDString) Gte(value string) stepRateLimitDefault } } -func (r stepRateLimitQueryTenantIDString) GteIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) GteIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gte(*value) } -func (r stepRateLimitQueryTenantIDString) Contains(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) Contains(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "contains", @@ -92523,17 +93902,17 @@ func (r stepRateLimitQueryTenantIDString) Contains(value string) stepRateLimitDe } } -func (r stepRateLimitQueryTenantIDString) ContainsIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) ContainsIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Contains(*value) } -func (r stepRateLimitQueryTenantIDString) StartsWith(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) StartsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "startsWith", @@ -92544,17 +93923,17 @@ func (r stepRateLimitQueryTenantIDString) StartsWith(value string) stepRateLimit } } -func (r stepRateLimitQueryTenantIDString) StartsWithIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) StartsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.StartsWith(*value) } -func (r stepRateLimitQueryTenantIDString) EndsWith(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) EndsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "endsWith", @@ -92565,17 +93944,17 @@ func (r stepRateLimitQueryTenantIDString) EndsWith(value string) stepRateLimitDe } } -func (r stepRateLimitQueryTenantIDString) EndsWithIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) EndsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.EndsWith(*value) } -func (r stepRateLimitQueryTenantIDString) Mode(value QueryMode) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) Mode(value QueryMode) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "mode", @@ -92586,17 +93965,17 @@ func (r stepRateLimitQueryTenantIDString) Mode(value QueryMode) stepRateLimitDef } } -func (r stepRateLimitQueryTenantIDString) ModeIfPresent(value *QueryMode) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) ModeIfPresent(value *QueryMode) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Mode(*value) } -func (r stepRateLimitQueryTenantIDString) Not(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) Not(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "not", @@ -92607,19 +93986,19 @@ func (r stepRateLimitQueryTenantIDString) Not(value string) stepRateLimitDefault } } -func (r stepRateLimitQueryTenantIDString) NotIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) NotIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRateLimitQueryTenantIDString) HasPrefix(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) HasPrefix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "starts_with", @@ -92631,19 +94010,19 @@ func (r stepRateLimitQueryTenantIDString) HasPrefix(value string) stepRateLimitD } // deprecated: Use StartsWithIfPresent instead. -func (r stepRateLimitQueryTenantIDString) HasPrefixIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) HasPrefixIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRateLimitQueryTenantIDString) HasSuffix(value string) stepRateLimitDefaultParam { - return stepRateLimitDefaultParam{ +func (r stepQueryTimeoutString) HasSuffix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "timeout", Fields: []builder.Field{ { Name: "ends_with", @@ -92655,243 +94034,134 @@ func (r stepRateLimitQueryTenantIDString) HasSuffix(value string) stepRateLimitD } // deprecated: Use EndsWithIfPresent instead. -func (r stepRateLimitQueryTenantIDString) HasSuffixIfPresent(value *string) stepRateLimitDefaultParam { +func (r stepQueryTimeoutString) HasSuffixIfPresent(value *string) stepDefaultParam { if value == nil { - return stepRateLimitDefaultParam{} + return stepDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRateLimitQueryTenantIDString) Field() stepRateLimitPrismaFields { - return stepRateLimitFieldTenantID -} - -// RateLimit acts as a namespaces to access query methods for the RateLimit model -var RateLimit = rateLimitQuery{} - -// rateLimitQuery exposes query functions for the rateLimit model -type rateLimitQuery struct { - Tenant rateLimitQueryTenantRelations - - // TenantID - // - // @required - TenantID rateLimitQueryTenantIDString - - // Key - // - // @required - Key rateLimitQueryKeyString - - // LimitValue - // - // @required - LimitValue rateLimitQueryLimitValueInt - - // Value - // - // @required - Value rateLimitQueryValueInt - - // Window - // - // @required - Window rateLimitQueryWindowString - - // LastRefill - // - // @required - LastRefill rateLimitQueryLastRefillDateTime - - StepRunLimits rateLimitQueryStepRunLimitsRelations +func (r stepQueryTimeoutString) Field() stepPrismaFields { + return stepFieldTimeout } -func (rateLimitQuery) Not(params ...RateLimitWhereParam) rateLimitDefaultParam { - var fields []builder.Field +// base struct +type stepQueryRetriesInt struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the required value of Retries +func (r stepQueryRetriesInt) Set(value int) stepSetParam { - return rateLimitDefaultParam{ + return stepSetParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "retries", + Value: value, }, } -} - -func (rateLimitQuery) Or(params ...RateLimitWhereParam) rateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, - } } -func (rateLimitQuery) And(params ...RateLimitWhereParam) rateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, +// Set the optional value of Retries dynamically +func (r stepQueryRetriesInt) SetIfPresent(value *Int) stepSetParam { + if value == nil { + return stepSetParam{} } -} - -func (rateLimitQuery) TenantIDKey( - _tenantID RateLimitWithPrismaTenantIDWhereParam, - - _key RateLimitWithPrismaKeyWhereParam, -) RateLimitEqualsUniqueWhereParam { - var fields []builder.Field - - fields = append(fields, _tenantID.field()) - fields = append(fields, _key.field()) - return rateLimitEqualsUniqueParam{ - data: builder.Field{ - Name: "tenantId_key", - Fields: builder.TransformEquals(fields), - }, - } + return r.Set(*value) } -// base struct -type rateLimitQueryTenantTenant struct{} - -type rateLimitQueryTenantRelations struct{} - -// RateLimit -> Tenant -// -// @relation -// @required -func (rateLimitQueryTenantRelations) Where( - params ...TenantWhereParam, -) rateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return rateLimitDefaultParam{ +// Increment the required value of Retries +func (r stepQueryRetriesInt) Increment(value int) stepSetParam { + return stepSetParam{ data: builder.Field{ - Name: "tenant", + Name: "retries", Fields: []builder.Field{ - { - Name: "is", - Fields: fields, + builder.Field{ + Name: "increment", + Value: value, }, }, }, } } -func (rateLimitQueryTenantRelations) Fetch() rateLimitToTenantFindUnique { - var v rateLimitToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - - return v -} - -func (r rateLimitQueryTenantRelations) Link( - params TenantWhereParam, -) rateLimitWithPrismaTenantSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return rateLimitWithPrismaTenantSetParam{} +func (r stepQueryRetriesInt) IncrementIfPresent(value *int) stepSetParam { + if value == nil { + return stepSetParam{} } + return r.Increment(*value) +} - fields = append(fields, f) - - return rateLimitWithPrismaTenantSetParam{ +// Decrement the required value of Retries +func (r stepQueryRetriesInt) Decrement(value int) stepSetParam { + return stepSetParam{ data: builder.Field{ - Name: "tenant", + Name: "retries", Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), + builder.Field{ + Name: "decrement", + Value: value, }, }, }, } } -func (r rateLimitQueryTenantRelations) Unlink() rateLimitWithPrismaTenantSetParam { - var v rateLimitWithPrismaTenantSetParam +func (r stepQueryRetriesInt) DecrementIfPresent(value *int) stepSetParam { + if value == nil { + return stepSetParam{} + } + return r.Decrement(*value) +} - v = rateLimitWithPrismaTenantSetParam{ +// Multiply the required value of Retries +func (r stepQueryRetriesInt) Multiply(value int) stepSetParam { + return stepSetParam{ data: builder.Field{ - Name: "tenant", + Name: "retries", Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, + builder.Field{ + Name: "multiply", + Value: value, }, }, }, } - - return v } -func (r rateLimitQueryTenantTenant) Field() rateLimitPrismaFields { - return rateLimitFieldTenant +func (r stepQueryRetriesInt) MultiplyIfPresent(value *int) stepSetParam { + if value == nil { + return stepSetParam{} + } + return r.Multiply(*value) } -// base struct -type rateLimitQueryTenantIDString struct{} - -// Set the required value of TenantID -func (r rateLimitQueryTenantIDString) Set(value string) rateLimitSetParam { - - return rateLimitSetParam{ +// Divide the required value of Retries +func (r stepQueryRetriesInt) Divide(value int) stepSetParam { + return stepSetParam{ data: builder.Field{ - Name: "tenantId", - Value: value, + Name: "retries", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, }, } - } -// Set the optional value of TenantID dynamically -func (r rateLimitQueryTenantIDString) SetIfPresent(value *String) rateLimitSetParam { +func (r stepQueryRetriesInt) DivideIfPresent(value *int) stepSetParam { if value == nil { - return rateLimitSetParam{} + return stepSetParam{} } - - return r.Set(*value) + return r.Divide(*value) } -func (r rateLimitQueryTenantIDString) Equals(value string) rateLimitWithPrismaTenantIDEqualsParam { +func (r stepQueryRetriesInt) Equals(value int) stepWithPrismaRetriesEqualsParam { - return rateLimitWithPrismaTenantIDEqualsParam{ + return stepWithPrismaRetriesEqualsParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { Name: "equals", @@ -92902,35 +94172,35 @@ func (r rateLimitQueryTenantIDString) Equals(value string) rateLimitWithPrismaTe } } -func (r rateLimitQueryTenantIDString) EqualsIfPresent(value *string) rateLimitWithPrismaTenantIDEqualsParam { +func (r stepQueryRetriesInt) EqualsIfPresent(value *int) stepWithPrismaRetriesEqualsParam { if value == nil { - return rateLimitWithPrismaTenantIDEqualsParam{} + return stepWithPrismaRetriesEqualsParam{} } return r.Equals(*value) } -func (r rateLimitQueryTenantIDString) Order(direction SortOrder) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Value: direction, }, } } -func (r rateLimitQueryTenantIDString) Cursor(cursor string) rateLimitCursorParam { - return rateLimitCursorParam{ +func (r stepQueryRetriesInt) Cursor(cursor int) stepCursorParam { + return stepCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Value: cursor, }, } } -func (r rateLimitQueryTenantIDString) In(value []string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) In(value []int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { Name: "in", @@ -92941,17 +94211,17 @@ func (r rateLimitQueryTenantIDString) In(value []string) rateLimitDefaultParam { } } -func (r rateLimitQueryTenantIDString) InIfPresent(value []string) rateLimitDefaultParam { +func (r stepQueryRetriesInt) InIfPresent(value []int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.In(value) } -func (r rateLimitQueryTenantIDString) NotIn(value []string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) NotIn(value []int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { Name: "notIn", @@ -92962,17 +94232,17 @@ func (r rateLimitQueryTenantIDString) NotIn(value []string) rateLimitDefaultPara } } -func (r rateLimitQueryTenantIDString) NotInIfPresent(value []string) rateLimitDefaultParam { +func (r stepQueryRetriesInt) NotInIfPresent(value []int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.NotIn(value) } -func (r rateLimitQueryTenantIDString) Lt(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) Lt(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { Name: "lt", @@ -92983,17 +94253,17 @@ func (r rateLimitQueryTenantIDString) Lt(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryTenantIDString) LtIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryRetriesInt) LtIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lt(*value) } -func (r rateLimitQueryTenantIDString) Lte(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) Lte(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { Name: "lte", @@ -93004,17 +94274,17 @@ func (r rateLimitQueryTenantIDString) Lte(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryTenantIDString) LteIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryRetriesInt) LteIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lte(*value) } -func (r rateLimitQueryTenantIDString) Gt(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) Gt(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { Name: "gt", @@ -93025,17 +94295,17 @@ func (r rateLimitQueryTenantIDString) Gt(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryTenantIDString) GtIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryRetriesInt) GtIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gt(*value) } -func (r rateLimitQueryTenantIDString) Gte(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) Gte(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { Name: "gte", @@ -93046,20 +94316,20 @@ func (r rateLimitQueryTenantIDString) Gte(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryTenantIDString) GteIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryRetriesInt) GteIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gte(*value) } -func (r rateLimitQueryTenantIDString) Contains(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) Not(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -93067,41 +94337,22 @@ func (r rateLimitQueryTenantIDString) Contains(value string) rateLimitDefaultPar } } -func (r rateLimitQueryTenantIDString) ContainsIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryRetriesInt) NotIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} - } - return r.Contains(*value) -} - -func (r rateLimitQueryTenantIDString) StartsWith(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "tenantId", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return stepDefaultParam{} } + return r.Not(*value) } -func (r rateLimitQueryTenantIDString) StartsWithIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r rateLimitQueryTenantIDString) EndsWith(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) LT(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -93109,41 +94360,23 @@ func (r rateLimitQueryTenantIDString) EndsWith(value string) rateLimitDefaultPar } } -func (r rateLimitQueryTenantIDString) EndsWithIfPresent(value *string) rateLimitDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r stepQueryRetriesInt) LTIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r rateLimitQueryTenantIDString) Mode(value QueryMode) rateLimitDefaultParam { - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "tenantId", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return stepDefaultParam{} } + return r.LT(*value) } -func (r rateLimitQueryTenantIDString) ModeIfPresent(value *QueryMode) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Lte instead. -func (r rateLimitQueryTenantIDString) Not(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) LTE(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { - Name: "not", + Name: "lte", Value: value, }, }, @@ -93151,22 +94384,23 @@ func (r rateLimitQueryTenantIDString) Not(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryTenantIDString) NotIfPresent(value *string) rateLimitDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepQueryRetriesInt) LTEIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Not(*value) + return r.LTE(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Gt instead. -func (r rateLimitQueryTenantIDString) HasPrefix(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) GT(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gt", Value: value, }, }, @@ -93174,23 +94408,23 @@ func (r rateLimitQueryTenantIDString) HasPrefix(value string) rateLimitDefaultPa } } -// deprecated: Use StartsWithIfPresent instead. -func (r rateLimitQueryTenantIDString) HasPrefixIfPresent(value *string) rateLimitDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepQueryRetriesInt) GTIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.HasPrefix(*value) + return r.GT(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r rateLimitQueryTenantIDString) HasSuffix(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryRetriesInt) GTE(value int) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "retries", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -93198,47 +94432,63 @@ func (r rateLimitQueryTenantIDString) HasSuffix(value string) rateLimitDefaultPa } } -// deprecated: Use EndsWithIfPresent instead. -func (r rateLimitQueryTenantIDString) HasSuffixIfPresent(value *string) rateLimitDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r stepQueryRetriesInt) GTEIfPresent(value *int) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.HasSuffix(*value) + return r.GTE(*value) } -func (r rateLimitQueryTenantIDString) Field() rateLimitPrismaFields { - return rateLimitFieldTenantID +func (r stepQueryRetriesInt) Field() stepPrismaFields { + return stepFieldRetries } // base struct -type rateLimitQueryKeyString struct{} +type stepQueryCustomUserDataJson struct{} -// Set the required value of Key -func (r rateLimitQueryKeyString) Set(value string) rateLimitWithPrismaKeySetParam { +// Set the optional value of CustomUserData +func (r stepQueryCustomUserDataJson) Set(value JSON) stepSetParam { - return rateLimitWithPrismaKeySetParam{ + return stepSetParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Value: value, }, } } -// Set the optional value of Key dynamically -func (r rateLimitQueryKeyString) SetIfPresent(value *String) rateLimitWithPrismaKeySetParam { +// Set the optional value of CustomUserData dynamically +func (r stepQueryCustomUserDataJson) SetIfPresent(value *JSON) stepSetParam { if value == nil { - return rateLimitWithPrismaKeySetParam{} + return stepSetParam{} } return r.Set(*value) } -func (r rateLimitQueryKeyString) Equals(value string) rateLimitWithPrismaKeyEqualsParam { +// Set the optional value of CustomUserData dynamically +func (r stepQueryCustomUserDataJson) SetOptional(value *JSON) stepSetParam { + if value == nil { - return rateLimitWithPrismaKeyEqualsParam{ + var v *JSON + return stepSetParam{ + data: builder.Field{ + Name: "customUserData", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepQueryCustomUserDataJson) Equals(value JSON) stepWithPrismaCustomUserDataEqualsParam { + + return stepWithPrismaCustomUserDataEqualsParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { Name: "equals", @@ -93249,59 +94499,67 @@ func (r rateLimitQueryKeyString) Equals(value string) rateLimitWithPrismaKeyEqua } } -func (r rateLimitQueryKeyString) EqualsIfPresent(value *string) rateLimitWithPrismaKeyEqualsParam { +func (r stepQueryCustomUserDataJson) EqualsIfPresent(value *JSON) stepWithPrismaCustomUserDataEqualsParam { if value == nil { - return rateLimitWithPrismaKeyEqualsParam{} + return stepWithPrismaCustomUserDataEqualsParam{} } return r.Equals(*value) } -func (r rateLimitQueryKeyString) Order(direction SortOrder) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) EqualsOptional(value *JSON) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", - Value: direction, + Name: "customUserData", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } } -func (r rateLimitQueryKeyString) Cursor(cursor string) rateLimitCursorParam { - return rateLimitCursorParam{ +func (r stepQueryCustomUserDataJson) IsNull() stepDefaultParam { + var str *string = nil + return stepDefaultParam{ data: builder.Field{ - Name: "key", - Value: cursor, + Name: "customUserData", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, }, } } -func (r rateLimitQueryKeyString) In(value []string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, + Name: "customUserData", + Value: direction, }, } } -func (r rateLimitQueryKeyString) InIfPresent(value []string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +func (r stepQueryCustomUserDataJson) Cursor(cursor JSON) stepCursorParam { + return stepCursorParam{ + data: builder.Field{ + Name: "customUserData", + Value: cursor, + }, } - return r.In(value) } -func (r rateLimitQueryKeyString) NotIn(value []string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) Path(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "notIn", + Name: "path", Value: value, }, }, @@ -93309,20 +94567,20 @@ func (r rateLimitQueryKeyString) NotIn(value []string) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) NotInIfPresent(value []string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) PathIfPresent(value []string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.NotIn(value) + return r.Path(value) } -func (r rateLimitQueryKeyString) Lt(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) StringContains(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "lt", + Name: "string_contains", Value: value, }, }, @@ -93330,20 +94588,20 @@ func (r rateLimitQueryKeyString) Lt(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) LtIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) StringContainsIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Lt(*value) + return r.StringContains(*value) } -func (r rateLimitQueryKeyString) Lte(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) StringStartsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "lte", + Name: "string_starts_with", Value: value, }, }, @@ -93351,20 +94609,20 @@ func (r rateLimitQueryKeyString) Lte(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) LteIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) StringStartsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Lte(*value) + return r.StringStartsWith(*value) } -func (r rateLimitQueryKeyString) Gt(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) StringEndsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "gt", + Name: "string_ends_with", Value: value, }, }, @@ -93372,20 +94630,20 @@ func (r rateLimitQueryKeyString) Gt(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) GtIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) StringEndsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Gt(*value) + return r.StringEndsWith(*value) } -func (r rateLimitQueryKeyString) Gte(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) ArrayContains(value JSON) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "gte", + Name: "array_contains", Value: value, }, }, @@ -93393,20 +94651,20 @@ func (r rateLimitQueryKeyString) Gte(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) GteIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) ArrayContainsIfPresent(value *JSON) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Gte(*value) + return r.ArrayContains(*value) } -func (r rateLimitQueryKeyString) Contains(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) ArrayStartsWith(value JSON) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "contains", + Name: "array_starts_with", Value: value, }, }, @@ -93414,20 +94672,20 @@ func (r rateLimitQueryKeyString) Contains(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) ContainsIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) ArrayStartsWithIfPresent(value *JSON) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Contains(*value) + return r.ArrayStartsWith(*value) } -func (r rateLimitQueryKeyString) StartsWith(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) ArrayEndsWith(value JSON) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "startsWith", + Name: "array_ends_with", Value: value, }, }, @@ -93435,20 +94693,20 @@ func (r rateLimitQueryKeyString) StartsWith(value string) rateLimitDefaultParam } } -func (r rateLimitQueryKeyString) StartsWithIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) ArrayEndsWithIfPresent(value *JSON) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.StartsWith(*value) + return r.ArrayEndsWith(*value) } -func (r rateLimitQueryKeyString) EndsWith(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) Lt(value JSON) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -93456,20 +94714,20 @@ func (r rateLimitQueryKeyString) EndsWith(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) EndsWithIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) LtIfPresent(value *JSON) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.EndsWith(*value) + return r.Lt(*value) } -func (r rateLimitQueryKeyString) Mode(value QueryMode) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) Lte(value JSON) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -93477,20 +94735,20 @@ func (r rateLimitQueryKeyString) Mode(value QueryMode) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) ModeIfPresent(value *QueryMode) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) LteIfPresent(value *JSON) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Mode(*value) + return r.Lte(*value) } -func (r rateLimitQueryKeyString) Not(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) Gt(value JSON) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -93498,22 +94756,20 @@ func (r rateLimitQueryKeyString) Not(value string) rateLimitDefaultParam { } } -func (r rateLimitQueryKeyString) NotIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) GtIfPresent(value *JSON) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Not(*value) + return r.Gt(*value) } -// deprecated: Use StartsWith instead. - -func (r rateLimitQueryKeyString) HasPrefix(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) Gte(value JSON) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gte", Value: value, }, }, @@ -93521,23 +94777,20 @@ func (r rateLimitQueryKeyString) HasPrefix(value string) rateLimitDefaultParam { } } -// deprecated: Use StartsWithIfPresent instead. -func (r rateLimitQueryKeyString) HasPrefixIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) GteIfPresent(value *JSON) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.HasPrefix(*value) + return r.Gte(*value) } -// deprecated: Use EndsWith instead. - -func (r rateLimitQueryKeyString) HasSuffix(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryCustomUserDataJson) Not(value JSONNullValueFilter) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "key", + Name: "customUserData", Fields: []builder.Field{ { - Name: "ends_with", + Name: "not", Value: value, }, }, @@ -93545,534 +94798,562 @@ func (r rateLimitQueryKeyString) HasSuffix(value string) rateLimitDefaultParam { } } -// deprecated: Use EndsWithIfPresent instead. -func (r rateLimitQueryKeyString) HasSuffixIfPresent(value *string) rateLimitDefaultParam { +func (r stepQueryCustomUserDataJson) NotIfPresent(value *JSONNullValueFilter) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.HasSuffix(*value) + return r.Not(*value) } -func (r rateLimitQueryKeyString) Field() rateLimitPrismaFields { - return rateLimitFieldKey +func (r stepQueryCustomUserDataJson) Field() stepPrismaFields { + return stepFieldCustomUserData } // base struct -type rateLimitQueryLimitValueInt struct{} - -// Set the required value of LimitValue -func (r rateLimitQueryLimitValueInt) Set(value int) rateLimitWithPrismaLimitValueSetParam { +type stepQueryChildrenStep struct{} - return rateLimitWithPrismaLimitValueSetParam{ - data: builder.Field{ - Name: "limitValue", - Value: value, - }, - } +type stepQueryChildrenRelations struct{} -} +// Step -> Children +// +// @relation +// @required +func (stepQueryChildrenRelations) Some( + params ...StepWhereParam, +) stepDefaultParam { + var fields []builder.Field -// Set the optional value of LimitValue dynamically -func (r rateLimitQueryLimitValueInt) SetIfPresent(value *Int) rateLimitWithPrismaLimitValueSetParam { - if value == nil { - return rateLimitWithPrismaLimitValueSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) -} - -// Increment the required value of LimitValue -func (r rateLimitQueryLimitValueInt) Increment(value int) rateLimitWithPrismaLimitValueSetParam { - return rateLimitWithPrismaLimitValueSetParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "children", Fields: []builder.Field{ - builder.Field{ - Name: "increment", - Value: value, - }, - }, - }, - } -} - -func (r rateLimitQueryLimitValueInt) IncrementIfPresent(value *int) rateLimitWithPrismaLimitValueSetParam { - if value == nil { - return rateLimitWithPrismaLimitValueSetParam{} - } - return r.Increment(*value) -} - -// Decrement the required value of LimitValue -func (r rateLimitQueryLimitValueInt) Decrement(value int) rateLimitWithPrismaLimitValueSetParam { - return rateLimitWithPrismaLimitValueSetParam{ - data: builder.Field{ - Name: "limitValue", - Fields: []builder.Field{ - builder.Field{ - Name: "decrement", - Value: value, + { + Name: "some", + Fields: fields, }, }, }, } } -func (r rateLimitQueryLimitValueInt) DecrementIfPresent(value *int) rateLimitWithPrismaLimitValueSetParam { - if value == nil { - return rateLimitWithPrismaLimitValueSetParam{} +// Step -> Children +// +// @relation +// @required +func (stepQueryChildrenRelations) Every( + params ...StepWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Decrement(*value) -} -// Multiply the required value of LimitValue -func (r rateLimitQueryLimitValueInt) Multiply(value int) rateLimitWithPrismaLimitValueSetParam { - return rateLimitWithPrismaLimitValueSetParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "children", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", - Value: value, + { + Name: "every", + Fields: fields, }, }, }, } } -func (r rateLimitQueryLimitValueInt) MultiplyIfPresent(value *int) rateLimitWithPrismaLimitValueSetParam { - if value == nil { - return rateLimitWithPrismaLimitValueSetParam{} +// Step -> Children +// +// @relation +// @required +func (stepQueryChildrenRelations) None( + params ...StepWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Multiply(*value) -} -// Divide the required value of LimitValue -func (r rateLimitQueryLimitValueInt) Divide(value int) rateLimitWithPrismaLimitValueSetParam { - return rateLimitWithPrismaLimitValueSetParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "children", Fields: []builder.Field{ - builder.Field{ - Name: "divide", - Value: value, + { + Name: "none", + Fields: fields, }, }, }, } } -func (r rateLimitQueryLimitValueInt) DivideIfPresent(value *int) rateLimitWithPrismaLimitValueSetParam { - if value == nil { - return rateLimitWithPrismaLimitValueSetParam{} - } - return r.Divide(*value) -} +func (stepQueryChildrenRelations) Fetch( -func (r rateLimitQueryLimitValueInt) Equals(value int) rateLimitWithPrismaLimitValueEqualsParam { + params ...StepWhereParam, - return rateLimitWithPrismaLimitValueEqualsParam{ - data: builder.Field{ - Name: "limitValue", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} +) stepToChildrenFindMany { + var v stepToChildrenFindMany -func (r rateLimitQueryLimitValueInt) EqualsIfPresent(value *int) rateLimitWithPrismaLimitValueEqualsParam { - if value == nil { - return rateLimitWithPrismaLimitValueEqualsParam{} + v.query.Operation = "query" + v.query.Method = "children" + v.query.Outputs = stepOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Equals(*value) -} -func (r rateLimitQueryLimitValueInt) Order(direction SortOrder) rateLimitDefaultParam { - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "limitValue", - Value: direction, - }, + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } + + return v } -func (r rateLimitQueryLimitValueInt) Cursor(cursor int) rateLimitCursorParam { - return rateLimitCursorParam{ - data: builder.Field{ - Name: "limitValue", - Value: cursor, - }, +func (r stepQueryChildrenRelations) Link( + params ...StepWhereParam, +) stepSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r rateLimitQueryLimitValueInt) In(value []int) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepSetParam{ data: builder.Field{ - Name: "limitValue", + Name: "children", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r rateLimitQueryLimitValueInt) InIfPresent(value []int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.In(value) -} +func (r stepQueryChildrenRelations) Unlink( + params ...StepWhereParam, +) stepSetParam { + var v stepSetParam -func (r rateLimitQueryLimitValueInt) NotIn(value []int) rateLimitDefaultParam { - return rateLimitDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepSetParam{ data: builder.Field{ - Name: "limitValue", + Name: "children", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r rateLimitQueryLimitValueInt) NotInIfPresent(value []int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.NotIn(value) +func (r stepQueryChildrenStep) Field() stepPrismaFields { + return stepFieldChildren } -func (r rateLimitQueryLimitValueInt) Lt(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +// base struct +type stepQueryParentsStep struct{} + +type stepQueryParentsRelations struct{} + +// Step -> Parents +// +// @relation +// @required +func (stepQueryParentsRelations) Some( + params ...StepWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "parents", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r rateLimitQueryLimitValueInt) LtIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +// Step -> Parents +// +// @relation +// @required +func (stepQueryParentsRelations) Every( + params ...StepWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Lt(*value) -} -func (r rateLimitQueryLimitValueInt) Lte(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "parents", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r rateLimitQueryLimitValueInt) LteIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +// Step -> Parents +// +// @relation +// @required +func (stepQueryParentsRelations) None( + params ...StepWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Lte(*value) -} -func (r rateLimitQueryLimitValueInt) Gt(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "parents", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r rateLimitQueryLimitValueInt) GtIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +func (stepQueryParentsRelations) Fetch( + + params ...StepWhereParam, + +) stepToParentsFindMany { + var v stepToParentsFindMany + + v.query.Operation = "query" + v.query.Method = "parents" + v.query.Outputs = stepOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Gt(*value) -} -func (r rateLimitQueryLimitValueInt) Gte(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "limitValue", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } + + return v } -func (r rateLimitQueryLimitValueInt) GteIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +func (r stepQueryParentsRelations) Link( + params ...StepWhereParam, +) stepSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Gte(*value) -} -func (r rateLimitQueryLimitValueInt) Not(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepSetParam{ data: builder.Field{ - Name: "limitValue", + Name: "parents", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r rateLimitQueryLimitValueInt) NotIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.Not(*value) -} - -// deprecated: Use Lt instead. +func (r stepQueryParentsRelations) Unlink( + params ...StepWhereParam, +) stepSetParam { + var v stepSetParam -func (r rateLimitQueryLimitValueInt) LT(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepSetParam{ data: builder.Field{ - Name: "limitValue", + Name: "parents", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -// deprecated: Use LtIfPresent instead. -func (r rateLimitQueryLimitValueInt) LTIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.LT(*value) +func (r stepQueryParentsStep) Field() stepPrismaFields { + return stepFieldParents } -// deprecated: Use Lte instead. +// base struct +type stepQueryStepRunsStepRun struct{} -func (r rateLimitQueryLimitValueInt) LTE(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +type stepQueryStepRunsRelations struct{} + +// Step -> StepRuns +// +// @relation +// @required +func (stepQueryStepRunsRelations) Some( + params ...StepRunWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -// deprecated: Use LteIfPresent instead. -func (r rateLimitQueryLimitValueInt) LTEIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.LTE(*value) -} +// Step -> StepRuns +// +// @relation +// @required +func (stepQueryStepRunsRelations) Every( + params ...StepRunWhereParam, +) stepDefaultParam { + var fields []builder.Field -// deprecated: Use Gt instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r rateLimitQueryLimitValueInt) GT(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -// deprecated: Use GtIfPresent instead. -func (r rateLimitQueryLimitValueInt) GTIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.GT(*value) -} +// Step -> StepRuns +// +// @relation +// @required +func (stepQueryStepRunsRelations) None( + params ...StepRunWhereParam, +) stepDefaultParam { + var fields []builder.Field -// deprecated: Use Gte instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r rateLimitQueryLimitValueInt) GTE(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "limitValue", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -// deprecated: Use GteIfPresent instead. -func (r rateLimitQueryLimitValueInt) GTEIfPresent(value *int) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.GTE(*value) -} +func (stepQueryStepRunsRelations) Fetch( -func (r rateLimitQueryLimitValueInt) Field() rateLimitPrismaFields { - return rateLimitFieldLimitValue -} + params ...StepRunWhereParam, -// base struct -type rateLimitQueryValueInt struct{} +) stepToStepRunsFindMany { + var v stepToStepRunsFindMany -// Set the required value of Value -func (r rateLimitQueryValueInt) Set(value int) rateLimitWithPrismaValueSetParam { + v.query.Operation = "query" + v.query.Method = "stepRuns" + v.query.Outputs = stepRunOutput - return rateLimitWithPrismaValueSetParam{ - data: builder.Field{ - Name: "value", - Value: value, - }, + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } -} - -// Set the optional value of Value dynamically -func (r rateLimitQueryValueInt) SetIfPresent(value *Int) rateLimitWithPrismaValueSetParam { - if value == nil { - return rateLimitWithPrismaValueSetParam{} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - return r.Set(*value) + return v } -// Increment the required value of Value -func (r rateLimitQueryValueInt) Increment(value int) rateLimitWithPrismaValueSetParam { - return rateLimitWithPrismaValueSetParam{ - data: builder.Field{ - Name: "value", - Fields: []builder.Field{ - builder.Field{ - Name: "increment", - Value: value, - }, - }, - }, - } -} +func (r stepQueryStepRunsRelations) Link( + params ...StepRunWhereParam, +) stepSetParam { + var fields []builder.Field -func (r rateLimitQueryValueInt) IncrementIfPresent(value *int) rateLimitWithPrismaValueSetParam { - if value == nil { - return rateLimitWithPrismaValueSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - return r.Increment(*value) -} -// Decrement the required value of Value -func (r rateLimitQueryValueInt) Decrement(value int) rateLimitWithPrismaValueSetParam { - return rateLimitWithPrismaValueSetParam{ + return stepSetParam{ data: builder.Field{ - Name: "value", + Name: "stepRuns", Fields: []builder.Field{ - builder.Field{ - Name: "decrement", - Value: value, + { + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r rateLimitQueryValueInt) DecrementIfPresent(value *int) rateLimitWithPrismaValueSetParam { - if value == nil { - return rateLimitWithPrismaValueSetParam{} - } - return r.Decrement(*value) -} +func (r stepQueryStepRunsRelations) Unlink( + params ...StepRunWhereParam, +) stepSetParam { + var v stepSetParam -// Multiply the required value of Value -func (r rateLimitQueryValueInt) Multiply(value int) rateLimitWithPrismaValueSetParam { - return rateLimitWithPrismaValueSetParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepSetParam{ data: builder.Field{ - Name: "value", + Name: "stepRuns", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", - Value: value, + { + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r rateLimitQueryValueInt) MultiplyIfPresent(value *int) rateLimitWithPrismaValueSetParam { - if value == nil { - return rateLimitWithPrismaValueSetParam{} - } - return r.Multiply(*value) +func (r stepQueryStepRunsStepRun) Field() stepPrismaFields { + return stepFieldStepRuns } -// Divide the required value of Value -func (r rateLimitQueryValueInt) Divide(value int) rateLimitWithPrismaValueSetParam { - return rateLimitWithPrismaValueSetParam{ +// base struct +type stepQueryScheduleTimeoutString struct{} + +// Set the required value of ScheduleTimeout +func (r stepQueryScheduleTimeoutString) Set(value string) stepSetParam { + + return stepSetParam{ data: builder.Field{ - Name: "value", - Fields: []builder.Field{ - builder.Field{ - Name: "divide", - Value: value, - }, - }, + Name: "scheduleTimeout", + Value: value, }, } + } -func (r rateLimitQueryValueInt) DivideIfPresent(value *int) rateLimitWithPrismaValueSetParam { +// Set the optional value of ScheduleTimeout dynamically +func (r stepQueryScheduleTimeoutString) SetIfPresent(value *String) stepSetParam { if value == nil { - return rateLimitWithPrismaValueSetParam{} + return stepSetParam{} } - return r.Divide(*value) + + return r.Set(*value) } -func (r rateLimitQueryValueInt) Equals(value int) rateLimitWithPrismaValueEqualsParam { +func (r stepQueryScheduleTimeoutString) Equals(value string) stepWithPrismaScheduleTimeoutEqualsParam { - return rateLimitWithPrismaValueEqualsParam{ + return stepWithPrismaScheduleTimeoutEqualsParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { Name: "equals", @@ -94083,35 +95364,35 @@ func (r rateLimitQueryValueInt) Equals(value int) rateLimitWithPrismaValueEquals } } -func (r rateLimitQueryValueInt) EqualsIfPresent(value *int) rateLimitWithPrismaValueEqualsParam { +func (r stepQueryScheduleTimeoutString) EqualsIfPresent(value *string) stepWithPrismaScheduleTimeoutEqualsParam { if value == nil { - return rateLimitWithPrismaValueEqualsParam{} + return stepWithPrismaScheduleTimeoutEqualsParam{} } return r.Equals(*value) } -func (r rateLimitQueryValueInt) Order(direction SortOrder) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) Order(direction SortOrder) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Value: direction, }, } } -func (r rateLimitQueryValueInt) Cursor(cursor int) rateLimitCursorParam { - return rateLimitCursorParam{ +func (r stepQueryScheduleTimeoutString) Cursor(cursor string) stepCursorParam { + return stepCursorParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Value: cursor, }, } } -func (r rateLimitQueryValueInt) In(value []int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) In(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { Name: "in", @@ -94122,17 +95403,17 @@ func (r rateLimitQueryValueInt) In(value []int) rateLimitDefaultParam { } } -func (r rateLimitQueryValueInt) InIfPresent(value []int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) InIfPresent(value []string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.In(value) } -func (r rateLimitQueryValueInt) NotIn(value []int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) NotIn(value []string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { Name: "notIn", @@ -94143,17 +95424,17 @@ func (r rateLimitQueryValueInt) NotIn(value []int) rateLimitDefaultParam { } } -func (r rateLimitQueryValueInt) NotInIfPresent(value []int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) NotInIfPresent(value []string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.NotIn(value) } -func (r rateLimitQueryValueInt) Lt(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) Lt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { Name: "lt", @@ -94164,17 +95445,17 @@ func (r rateLimitQueryValueInt) Lt(value int) rateLimitDefaultParam { } } -func (r rateLimitQueryValueInt) LtIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) LtIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lt(*value) } -func (r rateLimitQueryValueInt) Lte(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) Lte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { Name: "lte", @@ -94185,17 +95466,17 @@ func (r rateLimitQueryValueInt) Lte(value int) rateLimitDefaultParam { } } -func (r rateLimitQueryValueInt) LteIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) LteIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.Lte(*value) } -func (r rateLimitQueryValueInt) Gt(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) Gt(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { Name: "gt", @@ -94206,17 +95487,17 @@ func (r rateLimitQueryValueInt) Gt(value int) rateLimitDefaultParam { } } -func (r rateLimitQueryValueInt) GtIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) GtIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gt(*value) } -func (r rateLimitQueryValueInt) Gte(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) Gte(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { Name: "gte", @@ -94227,20 +95508,20 @@ func (r rateLimitQueryValueInt) Gte(value int) rateLimitDefaultParam { } } -func (r rateLimitQueryValueInt) GteIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) GteIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } return r.Gte(*value) } -func (r rateLimitQueryValueInt) Not(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) Contains(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -94248,22 +95529,20 @@ func (r rateLimitQueryValueInt) Not(value int) rateLimitDefaultParam { } } -func (r rateLimitQueryValueInt) NotIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) ContainsIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r rateLimitQueryValueInt) LT(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) StartsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -94271,23 +95550,20 @@ func (r rateLimitQueryValueInt) LT(value int) rateLimitDefaultParam { } } -// deprecated: Use LtIfPresent instead. -func (r rateLimitQueryValueInt) LTIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) StartsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.LT(*value) + return r.StartsWith(*value) } -// deprecated: Use Lte instead. - -func (r rateLimitQueryValueInt) LTE(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) EndsWith(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { - Name: "lte", + Name: "endsWith", Value: value, }, }, @@ -94295,23 +95571,20 @@ func (r rateLimitQueryValueInt) LTE(value int) rateLimitDefaultParam { } } -// deprecated: Use LteIfPresent instead. -func (r rateLimitQueryValueInt) LTEIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) EndsWithIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.LTE(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. - -func (r rateLimitQueryValueInt) GT(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) Mode(value QueryMode) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { - Name: "gt", + Name: "mode", Value: value, }, }, @@ -94319,23 +95592,20 @@ func (r rateLimitQueryValueInt) GT(value int) rateLimitDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r rateLimitQueryValueInt) GTIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) ModeIfPresent(value *QueryMode) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.GT(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r rateLimitQueryValueInt) GTE(value int) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryScheduleTimeoutString) Not(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "value", + Name: "scheduleTimeout", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -94343,50 +95613,46 @@ func (r rateLimitQueryValueInt) GTE(value int) rateLimitDefaultParam { } } -// deprecated: Use GteIfPresent instead. -func (r rateLimitQueryValueInt) GTEIfPresent(value *int) rateLimitDefaultParam { +func (r stepQueryScheduleTimeoutString) NotIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepDefaultParam{} } - return r.GTE(*value) -} - -func (r rateLimitQueryValueInt) Field() rateLimitPrismaFields { - return rateLimitFieldValue + return r.Not(*value) } -// base struct -type rateLimitQueryWindowString struct{} - -// Set the required value of Window -func (r rateLimitQueryWindowString) Set(value string) rateLimitWithPrismaWindowSetParam { +// deprecated: Use StartsWith instead. - return rateLimitWithPrismaWindowSetParam{ +func (r stepQueryScheduleTimeoutString) HasPrefix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "window", - Value: value, + Name: "scheduleTimeout", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, }, } - } -// Set the optional value of Window dynamically -func (r rateLimitQueryWindowString) SetIfPresent(value *String) rateLimitWithPrismaWindowSetParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepQueryScheduleTimeoutString) HasPrefixIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitWithPrismaWindowSetParam{} + return stepDefaultParam{} } - - return r.Set(*value) + return r.HasPrefix(*value) } -func (r rateLimitQueryWindowString) Equals(value string) rateLimitWithPrismaWindowEqualsParam { +// deprecated: Use EndsWith instead. - return rateLimitWithPrismaWindowEqualsParam{ +func (r stepQueryScheduleTimeoutString) HasSuffix(value string) stepDefaultParam { + return stepDefaultParam{ data: builder.Field{ - Name: "window", + Name: "scheduleTimeout", Fields: []builder.Field{ { - Name: "equals", + Name: "ends_with", Value: value, }, }, @@ -94394,271 +95660,496 @@ func (r rateLimitQueryWindowString) Equals(value string) rateLimitWithPrismaWind } } -func (r rateLimitQueryWindowString) EqualsIfPresent(value *string) rateLimitWithPrismaWindowEqualsParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepQueryScheduleTimeoutString) HasSuffixIfPresent(value *string) stepDefaultParam { if value == nil { - return rateLimitWithPrismaWindowEqualsParam{} + return stepDefaultParam{} } - return r.Equals(*value) + return r.HasSuffix(*value) } -func (r rateLimitQueryWindowString) Order(direction SortOrder) rateLimitDefaultParam { - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "window", - Value: direction, - }, - } +func (r stepQueryScheduleTimeoutString) Field() stepPrismaFields { + return stepFieldScheduleTimeout } -func (r rateLimitQueryWindowString) Cursor(cursor string) rateLimitCursorParam { - return rateLimitCursorParam{ - data: builder.Field{ - Name: "window", - Value: cursor, - }, +// base struct +type stepQueryRateLimitsStepRateLimit struct{} + +type stepQueryRateLimitsRelations struct{} + +// Step -> RateLimits +// +// @relation +// @required +func (stepQueryRateLimitsRelations) Some( + params ...StepRateLimitWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r rateLimitQueryWindowString) In(value []string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "window", + Name: "rateLimits", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r rateLimitQueryWindowString) InIfPresent(value []string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +// Step -> RateLimits +// +// @relation +// @required +func (stepQueryRateLimitsRelations) Every( + params ...StepRateLimitWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.In(value) -} -func (r rateLimitQueryWindowString) NotIn(value []string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "window", + Name: "rateLimits", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r rateLimitQueryWindowString) NotInIfPresent(value []string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +// Step -> RateLimits +// +// @relation +// @required +func (stepQueryRateLimitsRelations) None( + params ...StepRateLimitWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.NotIn(value) -} -func (r rateLimitQueryWindowString) Lt(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "window", + Name: "rateLimits", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r rateLimitQueryWindowString) LtIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +func (stepQueryRateLimitsRelations) Fetch( + + params ...StepRateLimitWhereParam, + +) stepToRateLimitsFindMany { + var v stepToRateLimitsFindMany + + v.query.Operation = "query" + v.query.Method = "rateLimits" + v.query.Outputs = stepRateLimitOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Lt(*value) -} -func (r rateLimitQueryWindowString) Lte(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "window", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } + + return v } -func (r rateLimitQueryWindowString) LteIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +func (r stepQueryRateLimitsRelations) Link( + params ...StepRateLimitWhereParam, +) stepSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Lte(*value) -} -func (r rateLimitQueryWindowString) Gt(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepSetParam{ data: builder.Field{ - Name: "window", + Name: "rateLimits", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r rateLimitQueryWindowString) GtIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.Gt(*value) -} +func (r stepQueryRateLimitsRelations) Unlink( + params ...StepRateLimitWhereParam, +) stepSetParam { + var v stepSetParam -func (r rateLimitQueryWindowString) Gte(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepSetParam{ data: builder.Field{ - Name: "window", + Name: "rateLimits", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r rateLimitQueryWindowString) GteIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.Gte(*value) +func (r stepQueryRateLimitsStepRateLimit) Field() stepPrismaFields { + return stepFieldRateLimits } -func (r rateLimitQueryWindowString) Contains(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +// base struct +type stepQueryWorkerLabelsStepDesiredWorkerLabel struct{} + +type stepQueryWorkerLabelsRelations struct{} + +// Step -> WorkerLabels +// +// @relation +// @required +func (stepQueryWorkerLabelsRelations) Some( + params ...StepDesiredWorkerLabelWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepDefaultParam{ data: builder.Field{ - Name: "window", + Name: "workerLabels", Fields: []builder.Field{ { - Name: "contains", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r rateLimitQueryWindowString) ContainsIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +// Step -> WorkerLabels +// +// @relation +// @required +func (stepQueryWorkerLabelsRelations) Every( + params ...StepDesiredWorkerLabelWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Contains(*value) -} -func (r rateLimitQueryWindowString) StartsWith(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "window", + Name: "workerLabels", Fields: []builder.Field{ { - Name: "startsWith", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r rateLimitQueryWindowString) StartsWithIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +// Step -> WorkerLabels +// +// @relation +// @required +func (stepQueryWorkerLabelsRelations) None( + params ...StepDesiredWorkerLabelWhereParam, +) stepDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.StartsWith(*value) -} -func (r rateLimitQueryWindowString) EndsWith(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + return stepDefaultParam{ data: builder.Field{ - Name: "window", + Name: "workerLabels", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r rateLimitQueryWindowString) EndsWithIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +func (stepQueryWorkerLabelsRelations) Fetch( + + params ...StepDesiredWorkerLabelWhereParam, + +) stepToWorkerLabelsFindMany { + var v stepToWorkerLabelsFindMany + + v.query.Operation = "query" + v.query.Method = "workerLabels" + v.query.Outputs = stepDesiredWorkerLabelOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.EndsWith(*value) + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v } -func (r rateLimitQueryWindowString) Mode(value QueryMode) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepQueryWorkerLabelsRelations) Link( + params ...StepDesiredWorkerLabelWhereParam, +) stepSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepSetParam{ data: builder.Field{ - Name: "window", + Name: "workerLabels", Fields: []builder.Field{ { - Name: "mode", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r rateLimitQueryWindowString) ModeIfPresent(value *QueryMode) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} - } - return r.Mode(*value) -} +func (r stepQueryWorkerLabelsRelations) Unlink( + params ...StepDesiredWorkerLabelWhereParam, +) stepSetParam { + var v stepSetParam -func (r rateLimitQueryWindowString) Not(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepSetParam{ data: builder.Field{ - Name: "window", + Name: "workerLabels", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r rateLimitQueryWindowString) NotIfPresent(value *string) rateLimitDefaultParam { - if value == nil { - return rateLimitDefaultParam{} +func (r stepQueryWorkerLabelsStepDesiredWorkerLabel) Field() stepPrismaFields { + return stepFieldWorkerLabels +} + +// StepRateLimit acts as a namespaces to access query methods for the StepRateLimit model +var StepRateLimit = stepRateLimitQuery{} + +// stepRateLimitQuery exposes query functions for the stepRateLimit model +type stepRateLimitQuery struct { + + // Units + // + // @required + Units stepRateLimitQueryUnitsInt + + Step stepRateLimitQueryStepRelations + + // StepID + // + // @required + StepID stepRateLimitQueryStepIDString + + RateLimit stepRateLimitQueryRateLimitRelations + + // RateLimitKey + // + // @required + RateLimitKey stepRateLimitQueryRateLimitKeyString + + Tenant stepRateLimitQueryTenantRelations + + // TenantID + // + // @required + TenantID stepRateLimitQueryTenantIDString +} + +func (stepRateLimitQuery) Not(params ...StepRateLimitWhereParam) stepRateLimitDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRateLimitDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, } - return r.Not(*value) } -// deprecated: Use StartsWith instead. +func (stepRateLimitQuery) Or(params ...StepRateLimitWhereParam) stepRateLimitDefaultParam { + var fields []builder.Field -func (r rateLimitQueryWindowString) HasPrefix(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "window", + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (stepRateLimitQuery) And(params ...StepRateLimitWhereParam) stepRateLimitDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRateLimitDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (stepRateLimitQuery) StepIDRateLimitKey( + _stepID StepRateLimitWithPrismaStepIDWhereParam, + + _rateLimitKey StepRateLimitWithPrismaRateLimitKeyWhereParam, +) StepRateLimitEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _stepID.field()) + fields = append(fields, _rateLimitKey.field()) + + return stepRateLimitEqualsUniqueParam{ + data: builder.Field{ + Name: "stepId_rateLimitKey", + Fields: builder.TransformEquals(fields), + }, + } +} + +// base struct +type stepRateLimitQueryUnitsInt struct{} + +// Set the required value of Units +func (r stepRateLimitQueryUnitsInt) Set(value int) stepRateLimitWithPrismaUnitsSetParam { + + return stepRateLimitWithPrismaUnitsSetParam{ + data: builder.Field{ + Name: "units", + Value: value, + }, + } + +} + +// Set the optional value of Units dynamically +func (r stepRateLimitQueryUnitsInt) SetIfPresent(value *Int) stepRateLimitWithPrismaUnitsSetParam { + if value == nil { + return stepRateLimitWithPrismaUnitsSetParam{} + } + + return r.Set(*value) +} + +// Increment the required value of Units +func (r stepRateLimitQueryUnitsInt) Increment(value int) stepRateLimitWithPrismaUnitsSetParam { + return stepRateLimitWithPrismaUnitsSetParam{ + data: builder.Field{ + Name: "units", Fields: []builder.Field{ - { - Name: "starts_with", + builder.Field{ + Name: "increment", Value: value, }, }, @@ -94666,23 +96157,21 @@ func (r rateLimitQueryWindowString) HasPrefix(value string) rateLimitDefaultPara } } -// deprecated: Use StartsWithIfPresent instead. -func (r rateLimitQueryWindowString) HasPrefixIfPresent(value *string) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) IncrementIfPresent(value *int) stepRateLimitWithPrismaUnitsSetParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitWithPrismaUnitsSetParam{} } - return r.HasPrefix(*value) + return r.Increment(*value) } -// deprecated: Use EndsWith instead. - -func (r rateLimitQueryWindowString) HasSuffix(value string) rateLimitDefaultParam { - return rateLimitDefaultParam{ +// Decrement the required value of Units +func (r stepRateLimitQueryUnitsInt) Decrement(value int) stepRateLimitWithPrismaUnitsSetParam { + return stepRateLimitWithPrismaUnitsSetParam{ data: builder.Field{ - Name: "window", + Name: "units", Fields: []builder.Field{ - { - Name: "ends_with", + builder.Field{ + Name: "decrement", Value: value, }, }, @@ -94690,47 +96179,62 @@ func (r rateLimitQueryWindowString) HasSuffix(value string) rateLimitDefaultPara } } -// deprecated: Use EndsWithIfPresent instead. -func (r rateLimitQueryWindowString) HasSuffixIfPresent(value *string) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) DecrementIfPresent(value *int) stepRateLimitWithPrismaUnitsSetParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitWithPrismaUnitsSetParam{} } - return r.HasSuffix(*value) + return r.Decrement(*value) } -func (r rateLimitQueryWindowString) Field() rateLimitPrismaFields { - return rateLimitFieldWindow +// Multiply the required value of Units +func (r stepRateLimitQueryUnitsInt) Multiply(value int) stepRateLimitWithPrismaUnitsSetParam { + return stepRateLimitWithPrismaUnitsSetParam{ + data: builder.Field{ + Name: "units", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } } -// base struct -type rateLimitQueryLastRefillDateTime struct{} - -// Set the required value of LastRefill -func (r rateLimitQueryLastRefillDateTime) Set(value DateTime) rateLimitSetParam { +func (r stepRateLimitQueryUnitsInt) MultiplyIfPresent(value *int) stepRateLimitWithPrismaUnitsSetParam { + if value == nil { + return stepRateLimitWithPrismaUnitsSetParam{} + } + return r.Multiply(*value) +} - return rateLimitSetParam{ +// Divide the required value of Units +func (r stepRateLimitQueryUnitsInt) Divide(value int) stepRateLimitWithPrismaUnitsSetParam { + return stepRateLimitWithPrismaUnitsSetParam{ data: builder.Field{ - Name: "lastRefill", - Value: value, + Name: "units", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, }, } - } -// Set the optional value of LastRefill dynamically -func (r rateLimitQueryLastRefillDateTime) SetIfPresent(value *DateTime) rateLimitSetParam { +func (r stepRateLimitQueryUnitsInt) DivideIfPresent(value *int) stepRateLimitWithPrismaUnitsSetParam { if value == nil { - return rateLimitSetParam{} + return stepRateLimitWithPrismaUnitsSetParam{} } - - return r.Set(*value) + return r.Divide(*value) } -func (r rateLimitQueryLastRefillDateTime) Equals(value DateTime) rateLimitWithPrismaLastRefillEqualsParam { +func (r stepRateLimitQueryUnitsInt) Equals(value int) stepRateLimitWithPrismaUnitsEqualsParam { - return rateLimitWithPrismaLastRefillEqualsParam{ + return stepRateLimitWithPrismaUnitsEqualsParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "equals", @@ -94741,35 +96245,35 @@ func (r rateLimitQueryLastRefillDateTime) Equals(value DateTime) rateLimitWithPr } } -func (r rateLimitQueryLastRefillDateTime) EqualsIfPresent(value *DateTime) rateLimitWithPrismaLastRefillEqualsParam { +func (r stepRateLimitQueryUnitsInt) EqualsIfPresent(value *int) stepRateLimitWithPrismaUnitsEqualsParam { if value == nil { - return rateLimitWithPrismaLastRefillEqualsParam{} + return stepRateLimitWithPrismaUnitsEqualsParam{} } return r.Equals(*value) } -func (r rateLimitQueryLastRefillDateTime) Order(direction SortOrder) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) Order(direction SortOrder) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Value: direction, }, } } -func (r rateLimitQueryLastRefillDateTime) Cursor(cursor DateTime) rateLimitCursorParam { - return rateLimitCursorParam{ +func (r stepRateLimitQueryUnitsInt) Cursor(cursor int) stepRateLimitCursorParam { + return stepRateLimitCursorParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Value: cursor, }, } } -func (r rateLimitQueryLastRefillDateTime) In(value []DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) In(value []int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "in", @@ -94780,17 +96284,17 @@ func (r rateLimitQueryLastRefillDateTime) In(value []DateTime) rateLimitDefaultP } } -func (r rateLimitQueryLastRefillDateTime) InIfPresent(value []DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) InIfPresent(value []int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } return r.In(value) } -func (r rateLimitQueryLastRefillDateTime) NotIn(value []DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) NotIn(value []int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "notIn", @@ -94801,17 +96305,17 @@ func (r rateLimitQueryLastRefillDateTime) NotIn(value []DateTime) rateLimitDefau } } -func (r rateLimitQueryLastRefillDateTime) NotInIfPresent(value []DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) NotInIfPresent(value []int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } return r.NotIn(value) } -func (r rateLimitQueryLastRefillDateTime) Lt(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) Lt(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "lt", @@ -94822,17 +96326,17 @@ func (r rateLimitQueryLastRefillDateTime) Lt(value DateTime) rateLimitDefaultPar } } -func (r rateLimitQueryLastRefillDateTime) LtIfPresent(value *DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) LtIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Lt(*value) } -func (r rateLimitQueryLastRefillDateTime) Lte(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) Lte(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "lte", @@ -94843,17 +96347,17 @@ func (r rateLimitQueryLastRefillDateTime) Lte(value DateTime) rateLimitDefaultPa } } -func (r rateLimitQueryLastRefillDateTime) LteIfPresent(value *DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) LteIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Lte(*value) } -func (r rateLimitQueryLastRefillDateTime) Gt(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) Gt(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "gt", @@ -94864,17 +96368,17 @@ func (r rateLimitQueryLastRefillDateTime) Gt(value DateTime) rateLimitDefaultPar } } -func (r rateLimitQueryLastRefillDateTime) GtIfPresent(value *DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) GtIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Gt(*value) } -func (r rateLimitQueryLastRefillDateTime) Gte(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) Gte(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "gte", @@ -94885,17 +96389,17 @@ func (r rateLimitQueryLastRefillDateTime) Gte(value DateTime) rateLimitDefaultPa } } -func (r rateLimitQueryLastRefillDateTime) GteIfPresent(value *DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) GteIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Gte(*value) } -func (r rateLimitQueryLastRefillDateTime) Not(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) Not(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "not", @@ -94906,19 +96410,19 @@ func (r rateLimitQueryLastRefillDateTime) Not(value DateTime) rateLimitDefaultPa } } -func (r rateLimitQueryLastRefillDateTime) NotIfPresent(value *DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) NotIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r rateLimitQueryLastRefillDateTime) Before(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) LT(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "lt", @@ -94930,22 +96434,22 @@ func (r rateLimitQueryLastRefillDateTime) Before(value DateTime) rateLimitDefaul } // deprecated: Use LtIfPresent instead. -func (r rateLimitQueryLastRefillDateTime) BeforeIfPresent(value *DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) LTIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.Before(*value) + return r.LT(*value) } -// deprecated: Use Gt instead. +// deprecated: Use Lte instead. -func (r rateLimitQueryLastRefillDateTime) After(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) LTE(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -94953,23 +96457,23 @@ func (r rateLimitQueryLastRefillDateTime) After(value DateTime) rateLimitDefault } } -// deprecated: Use GtIfPresent instead. -func (r rateLimitQueryLastRefillDateTime) AfterIfPresent(value *DateTime) rateLimitDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepRateLimitQueryUnitsInt) LTEIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.After(*value) + return r.LTE(*value) } -// deprecated: Use Lte instead. +// deprecated: Use Gt instead. -func (r rateLimitQueryLastRefillDateTime) BeforeEquals(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) GT(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -94977,20 +96481,20 @@ func (r rateLimitQueryLastRefillDateTime) BeforeEquals(value DateTime) rateLimit } } -// deprecated: Use LteIfPresent instead. -func (r rateLimitQueryLastRefillDateTime) BeforeEqualsIfPresent(value *DateTime) rateLimitDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepRateLimitQueryUnitsInt) GTIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.BeforeEquals(*value) + return r.GT(*value) } // deprecated: Use Gte instead. -func (r rateLimitQueryLastRefillDateTime) AfterEquals(value DateTime) rateLimitDefaultParam { - return rateLimitDefaultParam{ +func (r stepRateLimitQueryUnitsInt) GTE(value int) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "lastRefill", + Name: "units", Fields: []builder.Field{ { Name: "gte", @@ -95002,93 +96506,41 @@ func (r rateLimitQueryLastRefillDateTime) AfterEquals(value DateTime) rateLimitD } // deprecated: Use GteIfPresent instead. -func (r rateLimitQueryLastRefillDateTime) AfterEqualsIfPresent(value *DateTime) rateLimitDefaultParam { +func (r stepRateLimitQueryUnitsInt) GTEIfPresent(value *int) stepRateLimitDefaultParam { if value == nil { - return rateLimitDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.AfterEquals(*value) + return r.GTE(*value) } -func (r rateLimitQueryLastRefillDateTime) Field() rateLimitPrismaFields { - return rateLimitFieldLastRefill +func (r stepRateLimitQueryUnitsInt) Field() stepRateLimitPrismaFields { + return stepRateLimitFieldUnits } // base struct -type rateLimitQueryStepRunLimitsStepRateLimit struct{} - -type rateLimitQueryStepRunLimitsRelations struct{} - -// RateLimit -> StepRunLimits -// -// @relation -// @required -func (rateLimitQueryStepRunLimitsRelations) Some( - params ...StepRateLimitWhereParam, -) rateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "stepRunLimits", - Fields: []builder.Field{ - { - Name: "some", - Fields: fields, - }, - }, - }, - } -} - -// RateLimit -> StepRunLimits -// -// @relation -// @required -func (rateLimitQueryStepRunLimitsRelations) Every( - params ...StepRateLimitWhereParam, -) rateLimitDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +type stepRateLimitQueryStepStep struct{} - return rateLimitDefaultParam{ - data: builder.Field{ - Name: "stepRunLimits", - Fields: []builder.Field{ - { - Name: "every", - Fields: fields, - }, - }, - }, - } -} +type stepRateLimitQueryStepRelations struct{} -// RateLimit -> StepRunLimits +// StepRateLimit -> Step // // @relation // @required -func (rateLimitQueryStepRunLimitsRelations) None( - params ...StepRateLimitWhereParam, -) rateLimitDefaultParam { +func (stepRateLimitQueryStepRelations) Where( + params ...StepWhereParam, +) stepRateLimitDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return rateLimitDefaultParam{ + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "stepRunLimits", + Name: "step", Fields: []builder.Field{ { - Name: "none", + Name: "is", Fields: fields, }, }, @@ -95096,83 +96548,51 @@ func (rateLimitQueryStepRunLimitsRelations) None( } } -func (rateLimitQueryStepRunLimitsRelations) Fetch( - - params ...StepRateLimitWhereParam, - -) rateLimitToStepRunLimitsFindMany { - var v rateLimitToStepRunLimitsFindMany +func (stepRateLimitQueryStepRelations) Fetch() stepRateLimitToStepFindUnique { + var v stepRateLimitToStepFindUnique v.query.Operation = "query" - v.query.Method = "stepRunLimits" - v.query.Outputs = stepRateLimitOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } + v.query.Method = "step" + v.query.Outputs = stepOutput return v } -func (r rateLimitQueryStepRunLimitsRelations) Link( - params ...StepRateLimitWhereParam, -) rateLimitSetParam { +func (r stepRateLimitQueryStepRelations) Link( + params StepWhereParam, +) stepRateLimitWithPrismaStepSetParam { var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRateLimitWithPrismaStepSetParam{} } - return rateLimitSetParam{ + fields = append(fields, f) + + return stepRateLimitWithPrismaStepSetParam{ data: builder.Field{ - Name: "stepRunLimits", + Name: "step", Fields: []builder.Field{ { Name: "connect", Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, }, }, }, } } -func (r rateLimitQueryStepRunLimitsRelations) Unlink( - params ...StepRateLimitWhereParam, -) rateLimitSetParam { - var v rateLimitSetParam +func (r stepRateLimitQueryStepRelations) Unlink() stepRateLimitWithPrismaStepSetParam { + var v stepRateLimitWithPrismaStepSetParam - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) - } - v = rateLimitSetParam{ + v = stepRateLimitWithPrismaStepSetParam{ data: builder.Field{ - Name: "stepRunLimits", + Name: "step", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "disconnect", + Value: true, }, }, }, @@ -95181,221 +96601,39 @@ func (r rateLimitQueryStepRunLimitsRelations) Unlink( return v } -func (r rateLimitQueryStepRunLimitsStepRateLimit) Field() rateLimitPrismaFields { - return rateLimitFieldStepRunLimits -} - -// WorkflowRun acts as a namespaces to access query methods for the WorkflowRun model -var WorkflowRun = workflowRunQuery{} - -// workflowRunQuery exposes query functions for the workflowRun model -type workflowRunQuery struct { - - // ID - // - // @required - ID workflowRunQueryIDString - - // CreatedAt - // - // @required - CreatedAt workflowRunQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt workflowRunQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt workflowRunQueryDeletedAtDateTime - - // DisplayName - // - // @optional - DisplayName workflowRunQueryDisplayNameString - - Tenant workflowRunQueryTenantRelations - - // TenantID - // - // @required - TenantID workflowRunQueryTenantIDString - - WorkflowVersion workflowRunQueryWorkflowVersionRelations - - // WorkflowVersionID - // - // @required - WorkflowVersionID workflowRunQueryWorkflowVersionIDString - - // ConcurrencyGroupID - // - // @optional - ConcurrencyGroupID workflowRunQueryConcurrencyGroupIDString - - GetGroupKeyRun workflowRunQueryGetGroupKeyRunRelations - - // Status - // - // @required - Status workflowRunQueryStatusWorkflowRunStatus - - JobRuns workflowRunQueryJobRunsRelations - - TriggeredBy workflowRunQueryTriggeredByRelations - - // Error - // - // @optional - Error workflowRunQueryErrorString - - // StartedAt - // - // @optional - StartedAt workflowRunQueryStartedAtDateTime - - // FinishedAt - // - // @optional - FinishedAt workflowRunQueryFinishedAtDateTime - - Children workflowRunQueryChildrenRelations - - ScheduledChildren workflowRunQueryScheduledChildrenRelations - - Parent workflowRunQueryParentRelations - - // ParentID - // - // @optional - ParentID workflowRunQueryParentIDString - - ParentStepRun workflowRunQueryParentStepRunRelations - - // ParentStepRunID - // - // @optional - ParentStepRunID workflowRunQueryParentStepRunIDString - - // ChildIndex - // - // @optional - ChildIndex workflowRunQueryChildIndexInt - - // ChildKey - // - // @optional - ChildKey workflowRunQueryChildKeyString - - // AdditionalMetadata - // - // @optional - AdditionalMetadata workflowRunQueryAdditionalMetadataJson -} - -func (workflowRunQuery) Not(params ...WorkflowRunWhereParam) workflowRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (workflowRunQuery) Or(params ...WorkflowRunWhereParam) workflowRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (workflowRunQuery) And(params ...WorkflowRunWhereParam) workflowRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (workflowRunQuery) ParentIDParentStepRunIDChildKey( - _parentID WorkflowRunWithPrismaParentIDWhereParam, - - _parentStepRunID WorkflowRunWithPrismaParentStepRunIDWhereParam, - - _childKey WorkflowRunWithPrismaChildKeyWhereParam, -) WorkflowRunEqualsUniqueWhereParam { - var fields []builder.Field - - fields = append(fields, _parentID.field()) - fields = append(fields, _parentStepRunID.field()) - fields = append(fields, _childKey.field()) - - return workflowRunEqualsUniqueParam{ - data: builder.Field{ - Name: "parentId_parentStepRunId_childKey", - Fields: builder.TransformEquals(fields), - }, - } +func (r stepRateLimitQueryStepStep) Field() stepRateLimitPrismaFields { + return stepRateLimitFieldStep } // base struct -type workflowRunQueryIDString struct{} +type stepRateLimitQueryStepIDString struct{} -// Set the required value of ID -func (r workflowRunQueryIDString) Set(value string) workflowRunSetParam { +// Set the required value of StepID +func (r stepRateLimitQueryStepIDString) Set(value string) stepRateLimitSetParam { - return workflowRunSetParam{ + return stepRateLimitSetParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Value: value, }, } } -// Set the optional value of ID dynamically -func (r workflowRunQueryIDString) SetIfPresent(value *String) workflowRunSetParam { +// Set the optional value of StepID dynamically +func (r stepRateLimitQueryStepIDString) SetIfPresent(value *String) stepRateLimitSetParam { if value == nil { - return workflowRunSetParam{} + return stepRateLimitSetParam{} } return r.Set(*value) } -func (r workflowRunQueryIDString) Equals(value string) workflowRunWithPrismaIDEqualsUniqueParam { +func (r stepRateLimitQueryStepIDString) Equals(value string) stepRateLimitWithPrismaStepIDEqualsParam { - return workflowRunWithPrismaIDEqualsUniqueParam{ + return stepRateLimitWithPrismaStepIDEqualsParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "equals", @@ -95406,35 +96644,35 @@ func (r workflowRunQueryIDString) Equals(value string) workflowRunWithPrismaIDEq } } -func (r workflowRunQueryIDString) EqualsIfPresent(value *string) workflowRunWithPrismaIDEqualsUniqueParam { +func (r stepRateLimitQueryStepIDString) EqualsIfPresent(value *string) stepRateLimitWithPrismaStepIDEqualsParam { if value == nil { - return workflowRunWithPrismaIDEqualsUniqueParam{} + return stepRateLimitWithPrismaStepIDEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryIDString) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryStepIDString) Order(direction SortOrder) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Value: direction, }, } } -func (r workflowRunQueryIDString) Cursor(cursor string) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r stepRateLimitQueryStepIDString) Cursor(cursor string) stepRateLimitCursorParam { + return stepRateLimitCursorParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Value: cursor, }, } } -func (r workflowRunQueryIDString) In(value []string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) In(value []string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "in", @@ -95445,17 +96683,17 @@ func (r workflowRunQueryIDString) In(value []string) workflowRunParamUnique { } } -func (r workflowRunQueryIDString) InIfPresent(value []string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) InIfPresent(value []string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.In(value) } -func (r workflowRunQueryIDString) NotIn(value []string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) NotIn(value []string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "notIn", @@ -95466,17 +96704,17 @@ func (r workflowRunQueryIDString) NotIn(value []string) workflowRunParamUnique { } } -func (r workflowRunQueryIDString) NotInIfPresent(value []string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) NotInIfPresent(value []string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryIDString) Lt(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) Lt(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "lt", @@ -95487,17 +96725,17 @@ func (r workflowRunQueryIDString) Lt(value string) workflowRunParamUnique { } } -func (r workflowRunQueryIDString) LtIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) LtIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryIDString) Lte(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) Lte(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "lte", @@ -95508,17 +96746,17 @@ func (r workflowRunQueryIDString) Lte(value string) workflowRunParamUnique { } } -func (r workflowRunQueryIDString) LteIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) LteIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryIDString) Gt(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) Gt(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "gt", @@ -95529,17 +96767,17 @@ func (r workflowRunQueryIDString) Gt(value string) workflowRunParamUnique { } } -func (r workflowRunQueryIDString) GtIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) GtIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryIDString) Gte(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) Gte(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "gte", @@ -95550,17 +96788,17 @@ func (r workflowRunQueryIDString) Gte(value string) workflowRunParamUnique { } } -func (r workflowRunQueryIDString) GteIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) GteIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryIDString) Contains(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) Contains(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "contains", @@ -95571,17 +96809,17 @@ func (r workflowRunQueryIDString) Contains(value string) workflowRunParamUnique } } -func (r workflowRunQueryIDString) ContainsIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) ContainsIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.Contains(*value) } -func (r workflowRunQueryIDString) StartsWith(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) StartsWith(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "startsWith", @@ -95592,17 +96830,17 @@ func (r workflowRunQueryIDString) StartsWith(value string) workflowRunParamUniqu } } -func (r workflowRunQueryIDString) StartsWithIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) StartsWithIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.StartsWith(*value) } -func (r workflowRunQueryIDString) EndsWith(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) EndsWith(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "endsWith", @@ -95613,17 +96851,17 @@ func (r workflowRunQueryIDString) EndsWith(value string) workflowRunParamUnique } } -func (r workflowRunQueryIDString) EndsWithIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) EndsWithIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.EndsWith(*value) } -func (r workflowRunQueryIDString) Mode(value QueryMode) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) Mode(value QueryMode) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "mode", @@ -95634,17 +96872,17 @@ func (r workflowRunQueryIDString) Mode(value QueryMode) workflowRunParamUnique { } } -func (r workflowRunQueryIDString) ModeIfPresent(value *QueryMode) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) ModeIfPresent(value *QueryMode) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.Mode(*value) } -func (r workflowRunQueryIDString) Not(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) Not(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "not", @@ -95655,19 +96893,19 @@ func (r workflowRunQueryIDString) Not(value string) workflowRunParamUnique { } } -func (r workflowRunQueryIDString) NotIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) NotIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunQueryIDString) HasPrefix(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) HasPrefix(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "starts_with", @@ -95679,19 +96917,19 @@ func (r workflowRunQueryIDString) HasPrefix(value string) workflowRunParamUnique } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryIDString) HasPrefixIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) HasPrefixIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunQueryIDString) HasSuffix(value string) workflowRunParamUnique { - return workflowRunParamUnique{ +func (r stepRateLimitQueryStepIDString) HasSuffix(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepId", Fields: []builder.Field{ { Name: "ends_with", @@ -95703,46 +96941,134 @@ func (r workflowRunQueryIDString) HasSuffix(value string) workflowRunParamUnique } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryIDString) HasSuffixIfPresent(value *string) workflowRunParamUnique { +func (r stepRateLimitQueryStepIDString) HasSuffixIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunParamUnique{} + return stepRateLimitDefaultParam{} } return r.HasSuffix(*value) } -func (r workflowRunQueryIDString) Field() workflowRunPrismaFields { - return workflowRunFieldID +func (r stepRateLimitQueryStepIDString) Field() stepRateLimitPrismaFields { + return stepRateLimitFieldStepID } // base struct -type workflowRunQueryCreatedAtDateTime struct{} +type stepRateLimitQueryRateLimitRateLimit struct{} -// Set the required value of CreatedAt -func (r workflowRunQueryCreatedAtDateTime) Set(value DateTime) workflowRunSetParam { +type stepRateLimitQueryRateLimitRelations struct{} - return workflowRunSetParam{ - data: builder.Field{ - Name: "createdAt", - Value: value, - }, +// StepRateLimit -> RateLimit +// +// @relation +// @required +func (stepRateLimitQueryRateLimitRelations) Where( + params ...RateLimitWhereParam, +) stepRateLimitDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } + return stepRateLimitDefaultParam{ + data: builder.Field{ + Name: "rateLimit", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } } -// Set the optional value of CreatedAt dynamically -func (r workflowRunQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { +func (stepRateLimitQueryRateLimitRelations) Fetch() stepRateLimitToRateLimitFindUnique { + var v stepRateLimitToRateLimitFindUnique + + v.query.Operation = "query" + v.query.Method = "rateLimit" + v.query.Outputs = rateLimitOutput + + return v +} + +func (r stepRateLimitQueryRateLimitRelations) Link( + params RateLimitWhereParam, +) stepRateLimitWithPrismaRateLimitSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRateLimitWithPrismaRateLimitSetParam{} + } + + fields = append(fields, f) + + return stepRateLimitWithPrismaRateLimitSetParam{ + data: builder.Field{ + Name: "rateLimit", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r stepRateLimitQueryRateLimitRelations) Unlink() stepRateLimitWithPrismaRateLimitSetParam { + var v stepRateLimitWithPrismaRateLimitSetParam + + v = stepRateLimitWithPrismaRateLimitSetParam{ + data: builder.Field{ + Name: "rateLimit", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r stepRateLimitQueryRateLimitRateLimit) Field() stepRateLimitPrismaFields { + return stepRateLimitFieldRateLimit +} + +// base struct +type stepRateLimitQueryRateLimitKeyString struct{} + +// Set the required value of RateLimitKey +func (r stepRateLimitQueryRateLimitKeyString) Set(value string) stepRateLimitSetParam { + + return stepRateLimitSetParam{ + data: builder.Field{ + Name: "rateLimitKey", + Value: value, + }, + } + +} + +// Set the optional value of RateLimitKey dynamically +func (r stepRateLimitQueryRateLimitKeyString) SetIfPresent(value *String) stepRateLimitSetParam { if value == nil { - return workflowRunSetParam{} + return stepRateLimitSetParam{} } return r.Set(*value) } -func (r workflowRunQueryCreatedAtDateTime) Equals(value DateTime) workflowRunWithPrismaCreatedAtEqualsParam { +func (r stepRateLimitQueryRateLimitKeyString) Equals(value string) stepRateLimitWithPrismaRateLimitKeyEqualsParam { - return workflowRunWithPrismaCreatedAtEqualsParam{ + return stepRateLimitWithPrismaRateLimitKeyEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { Name: "equals", @@ -95753,35 +97079,35 @@ func (r workflowRunQueryCreatedAtDateTime) Equals(value DateTime) workflowRunWit } } -func (r workflowRunQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaCreatedAtEqualsParam { +func (r stepRateLimitQueryRateLimitKeyString) EqualsIfPresent(value *string) stepRateLimitWithPrismaRateLimitKeyEqualsParam { if value == nil { - return workflowRunWithPrismaCreatedAtEqualsParam{} + return stepRateLimitWithPrismaRateLimitKeyEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryCreatedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) Order(direction SortOrder) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Value: direction, }, } } -func (r workflowRunQueryCreatedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r stepRateLimitQueryRateLimitKeyString) Cursor(cursor string) stepRateLimitCursorParam { + return stepRateLimitCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Value: cursor, }, } } -func (r workflowRunQueryCreatedAtDateTime) In(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) In(value []string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { Name: "in", @@ -95792,17 +97118,17 @@ func (r workflowRunQueryCreatedAtDateTime) In(value []DateTime) workflowRunDefau } } -func (r workflowRunQueryCreatedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) InIfPresent(value []string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.In(value) } -func (r workflowRunQueryCreatedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) NotIn(value []string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { Name: "notIn", @@ -95813,17 +97139,17 @@ func (r workflowRunQueryCreatedAtDateTime) NotIn(value []DateTime) workflowRunDe } } -func (r workflowRunQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) NotInIfPresent(value []string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryCreatedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) Lt(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { Name: "lt", @@ -95834,17 +97160,17 @@ func (r workflowRunQueryCreatedAtDateTime) Lt(value DateTime) workflowRunDefault } } -func (r workflowRunQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) LtIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryCreatedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) Lte(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { Name: "lte", @@ -95855,17 +97181,17 @@ func (r workflowRunQueryCreatedAtDateTime) Lte(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) LteIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryCreatedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) Gt(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { Name: "gt", @@ -95876,17 +97202,17 @@ func (r workflowRunQueryCreatedAtDateTime) Gt(value DateTime) workflowRunDefault } } -func (r workflowRunQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) GtIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryCreatedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) Gte(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { Name: "gte", @@ -95897,20 +97223,20 @@ func (r workflowRunQueryCreatedAtDateTime) Gte(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) GteIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryCreatedAtDateTime) Not(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) Contains(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -95918,22 +97244,41 @@ func (r workflowRunQueryCreatedAtDateTime) Not(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) ContainsIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r stepRateLimitQueryRateLimitKeyString) StartsWith(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ + data: builder.Field{ + Name: "rateLimitKey", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r workflowRunQueryCreatedAtDateTime) Before(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) StartsWithIfPresent(value *string) stepRateLimitDefaultParam { + if value == nil { + return stepRateLimitDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r stepRateLimitQueryRateLimitKeyString) EndsWith(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -95941,23 +97286,41 @@ func (r workflowRunQueryCreatedAtDateTime) Before(value DateTime) workflowRunDef } } -// deprecated: Use LtIfPresent instead. -func (r workflowRunQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) EndsWithIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r stepRateLimitQueryRateLimitKeyString) Mode(value QueryMode) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ + data: builder.Field{ + Name: "rateLimitKey", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r workflowRunQueryCreatedAtDateTime) After(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) ModeIfPresent(value *QueryMode) stepRateLimitDefaultParam { + if value == nil { + return stepRateLimitDefaultParam{} + } + return r.Mode(*value) +} + +func (r stepRateLimitQueryRateLimitKeyString) Not(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -95965,23 +97328,22 @@ func (r workflowRunQueryCreatedAtDateTime) After(value DateTime) workflowRunDefa } } -// deprecated: Use GtIfPresent instead. -func (r workflowRunQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryRateLimitKeyString) NotIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r workflowRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) HasPrefix(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -95989,23 +97351,23 @@ func (r workflowRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) workflow } } -// deprecated: Use LteIfPresent instead. -func (r workflowRunQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRateLimitQueryRateLimitKeyString) HasPrefixIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r workflowRunQueryCreatedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryRateLimitKeyString) HasSuffix(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "rateLimitKey", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -96013,47 +97375,135 @@ func (r workflowRunQueryCreatedAtDateTime) AfterEquals(value DateTime) workflowR } } -// deprecated: Use GteIfPresent instead. -func (r workflowRunQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRateLimitQueryRateLimitKeyString) HasSuffixIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r workflowRunQueryCreatedAtDateTime) Field() workflowRunPrismaFields { - return workflowRunFieldCreatedAt +func (r stepRateLimitQueryRateLimitKeyString) Field() stepRateLimitPrismaFields { + return stepRateLimitFieldRateLimitKey } // base struct -type workflowRunQueryUpdatedAtDateTime struct{} +type stepRateLimitQueryTenantTenant struct{} -// Set the required value of UpdatedAt -func (r workflowRunQueryUpdatedAtDateTime) Set(value DateTime) workflowRunSetParam { +type stepRateLimitQueryTenantRelations struct{} - return workflowRunSetParam{ +// StepRateLimit -> Tenant +// +// @relation +// @required +func (stepRateLimitQueryTenantRelations) Where( + params ...TenantWhereParam, +) stepRateLimitDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenant", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (stepRateLimitQueryTenantRelations) Fetch() stepRateLimitToTenantFindUnique { + var v stepRateLimitToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v +} + +func (r stepRateLimitQueryTenantRelations) Link( + params TenantWhereParam, +) stepRateLimitWithPrismaTenantSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRateLimitWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return stepRateLimitWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r stepRateLimitQueryTenantRelations) Unlink() stepRateLimitWithPrismaTenantSetParam { + var v stepRateLimitWithPrismaTenantSetParam + + v = stepRateLimitWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r stepRateLimitQueryTenantTenant) Field() stepRateLimitPrismaFields { + return stepRateLimitFieldTenant +} + +// base struct +type stepRateLimitQueryTenantIDString struct{} + +// Set the required value of TenantID +func (r stepRateLimitQueryTenantIDString) Set(value string) stepRateLimitSetParam { + + return stepRateLimitSetParam{ + data: builder.Field{ + Name: "tenantId", Value: value, }, } } -// Set the optional value of UpdatedAt dynamically -func (r workflowRunQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { +// Set the optional value of TenantID dynamically +func (r stepRateLimitQueryTenantIDString) SetIfPresent(value *String) stepRateLimitSetParam { if value == nil { - return workflowRunSetParam{} + return stepRateLimitSetParam{} } return r.Set(*value) } -func (r workflowRunQueryUpdatedAtDateTime) Equals(value DateTime) workflowRunWithPrismaUpdatedAtEqualsParam { +func (r stepRateLimitQueryTenantIDString) Equals(value string) stepRateLimitWithPrismaTenantIDEqualsParam { - return workflowRunWithPrismaUpdatedAtEqualsParam{ + return stepRateLimitWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "equals", @@ -96064,35 +97514,35 @@ func (r workflowRunQueryUpdatedAtDateTime) Equals(value DateTime) workflowRunWit } } -func (r workflowRunQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaUpdatedAtEqualsParam { +func (r stepRateLimitQueryTenantIDString) EqualsIfPresent(value *string) stepRateLimitWithPrismaTenantIDEqualsParam { if value == nil { - return workflowRunWithPrismaUpdatedAtEqualsParam{} + return stepRateLimitWithPrismaTenantIDEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryUpdatedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) Order(direction SortOrder) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Value: direction, }, } } -func (r workflowRunQueryUpdatedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r stepRateLimitQueryTenantIDString) Cursor(cursor string) stepRateLimitCursorParam { + return stepRateLimitCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Value: cursor, }, } } -func (r workflowRunQueryUpdatedAtDateTime) In(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) In(value []string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "in", @@ -96103,17 +97553,17 @@ func (r workflowRunQueryUpdatedAtDateTime) In(value []DateTime) workflowRunDefau } } -func (r workflowRunQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) InIfPresent(value []string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.In(value) } -func (r workflowRunQueryUpdatedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) NotIn(value []string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "notIn", @@ -96124,17 +97574,17 @@ func (r workflowRunQueryUpdatedAtDateTime) NotIn(value []DateTime) workflowRunDe } } -func (r workflowRunQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) NotInIfPresent(value []string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryUpdatedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) Lt(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lt", @@ -96145,17 +97595,17 @@ func (r workflowRunQueryUpdatedAtDateTime) Lt(value DateTime) workflowRunDefault } } -func (r workflowRunQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) LtIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryUpdatedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) Lte(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lte", @@ -96166,17 +97616,17 @@ func (r workflowRunQueryUpdatedAtDateTime) Lte(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) LteIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryUpdatedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) Gt(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gt", @@ -96187,17 +97637,17 @@ func (r workflowRunQueryUpdatedAtDateTime) Gt(value DateTime) workflowRunDefault } } -func (r workflowRunQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) GtIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryUpdatedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) Gte(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gte", @@ -96208,20 +97658,20 @@ func (r workflowRunQueryUpdatedAtDateTime) Gte(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) GteIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryUpdatedAtDateTime) Not(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) Contains(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -96229,22 +97679,41 @@ func (r workflowRunQueryUpdatedAtDateTime) Not(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) ContainsIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r stepRateLimitQueryTenantIDString) StartsWith(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r workflowRunQueryUpdatedAtDateTime) Before(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) StartsWithIfPresent(value *string) stepRateLimitDefaultParam { + if value == nil { + return stepRateLimitDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r stepRateLimitQueryTenantIDString) EndsWith(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -96252,23 +97721,41 @@ func (r workflowRunQueryUpdatedAtDateTime) Before(value DateTime) workflowRunDef } } -// deprecated: Use LtIfPresent instead. -func (r workflowRunQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) EndsWithIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r stepRateLimitQueryTenantIDString) Mode(value QueryMode) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r workflowRunQueryUpdatedAtDateTime) After(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) ModeIfPresent(value *QueryMode) stepRateLimitDefaultParam { + if value == nil { + return stepRateLimitDefaultParam{} + } + return r.Mode(*value) +} + +func (r stepRateLimitQueryTenantIDString) Not(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -96276,23 +97763,22 @@ func (r workflowRunQueryUpdatedAtDateTime) After(value DateTime) workflowRunDefa } } -// deprecated: Use GtIfPresent instead. -func (r workflowRunQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { +func (r stepRateLimitQueryTenantIDString) NotIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r workflowRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) HasPrefix(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -96300,23 +97786,23 @@ func (r workflowRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workflow } } -// deprecated: Use LteIfPresent instead. -func (r workflowRunQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRateLimitQueryTenantIDString) HasPrefixIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r workflowRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r stepRateLimitQueryTenantIDString) HasSuffix(value string) stepRateLimitDefaultParam { + return stepRateLimitDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -96324,131 +97810,283 @@ func (r workflowRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) workflowR } } -// deprecated: Use GteIfPresent instead. -func (r workflowRunQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRateLimitQueryTenantIDString) HasSuffixIfPresent(value *string) stepRateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return stepRateLimitDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r workflowRunQueryUpdatedAtDateTime) Field() workflowRunPrismaFields { - return workflowRunFieldUpdatedAt +func (r stepRateLimitQueryTenantIDString) Field() stepRateLimitPrismaFields { + return stepRateLimitFieldTenantID } -// base struct -type workflowRunQueryDeletedAtDateTime struct{} +// RateLimit acts as a namespaces to access query methods for the RateLimit model +var RateLimit = rateLimitQuery{} -// Set the optional value of DeletedAt -func (r workflowRunQueryDeletedAtDateTime) Set(value DateTime) workflowRunSetParam { +// rateLimitQuery exposes query functions for the rateLimit model +type rateLimitQuery struct { + Tenant rateLimitQueryTenantRelations - return workflowRunSetParam{ + // TenantID + // + // @required + TenantID rateLimitQueryTenantIDString + + // Key + // + // @required + Key rateLimitQueryKeyString + + // LimitValue + // + // @required + LimitValue rateLimitQueryLimitValueInt + + // Value + // + // @required + Value rateLimitQueryValueInt + + // Window + // + // @required + Window rateLimitQueryWindowString + + // LastRefill + // + // @required + LastRefill rateLimitQueryLastRefillDateTime + + StepRunLimits rateLimitQueryStepRunLimitsRelations +} + +func (rateLimitQuery) Not(params ...RateLimitWhereParam) rateLimitDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", - Value: value, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } - } -// Set the optional value of DeletedAt dynamically -func (r workflowRunQueryDeletedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} +func (rateLimitQuery) Or(params ...RateLimitWhereParam) rateLimitDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) + return rateLimitDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } } -// Set the optional value of DeletedAt dynamically -func (r workflowRunQueryDeletedAtDateTime) SetOptional(value *DateTime) workflowRunSetParam { - if value == nil { +func (rateLimitQuery) And(params ...RateLimitWhereParam) rateLimitDefaultParam { + var fields []builder.Field - var v *DateTime - return workflowRunSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, - }, - } + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) + return rateLimitDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } -func (r workflowRunQueryDeletedAtDateTime) Equals(value DateTime) workflowRunWithPrismaDeletedAtEqualsParam { +func (rateLimitQuery) TenantIDKey( + _tenantID RateLimitWithPrismaTenantIDWhereParam, - return workflowRunWithPrismaDeletedAtEqualsParam{ + _key RateLimitWithPrismaKeyWhereParam, +) RateLimitEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _tenantID.field()) + fields = append(fields, _key.field()) + + return rateLimitEqualsUniqueParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId_key", + Fields: builder.TransformEquals(fields), + }, + } +} + +// base struct +type rateLimitQueryTenantTenant struct{} + +type rateLimitQueryTenantRelations struct{} + +// RateLimit -> Tenant +// +// @relation +// @required +func (rateLimitQueryTenantRelations) Where( + params ...TenantWhereParam, +) rateLimitDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return rateLimitDefaultParam{ + data: builder.Field{ + Name: "tenant", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r workflowRunQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaDeletedAtEqualsParam { - if value == nil { - return workflowRunWithPrismaDeletedAtEqualsParam{} +func (rateLimitQueryTenantRelations) Fetch() rateLimitToTenantFindUnique { + var v rateLimitToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v +} + +func (r rateLimitQueryTenantRelations) Link( + params TenantWhereParam, +) rateLimitWithPrismaTenantSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return rateLimitWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return rateLimitWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, } - return r.Equals(*value) } -func (r workflowRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantRelations) Unlink() rateLimitWithPrismaTenantSetParam { + var v rateLimitWithPrismaTenantSetParam + + v = rateLimitWithPrismaTenantSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenant", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r workflowRunQueryDeletedAtDateTime) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantTenant) Field() rateLimitPrismaFields { + return rateLimitFieldTenant +} + +// base struct +type rateLimitQueryTenantIDString struct{} + +// Set the required value of TenantID +func (r rateLimitQueryTenantIDString) Set(value string) rateLimitSetParam { + + return rateLimitSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", + Value: value, + }, + } + +} + +// Set the optional value of TenantID dynamically +func (r rateLimitQueryTenantIDString) SetIfPresent(value *String) rateLimitSetParam { + if value == nil { + return rateLimitSetParam{} + } + + return r.Set(*value) +} + +func (r rateLimitQueryTenantIDString) Equals(value string) rateLimitWithPrismaTenantIDEqualsParam { + + return rateLimitWithPrismaTenantIDEqualsParam{ + data: builder.Field{ + Name: "tenantId", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r workflowRunQueryDeletedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) EqualsIfPresent(value *string) rateLimitWithPrismaTenantIDEqualsParam { + if value == nil { + return rateLimitWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r rateLimitQueryTenantIDString) Order(direction SortOrder) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Value: direction, }, } } -func (r workflowRunQueryDeletedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r rateLimitQueryTenantIDString) Cursor(cursor string) rateLimitCursorParam { + return rateLimitCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Value: cursor, }, } } -func (r workflowRunQueryDeletedAtDateTime) In(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) In(value []string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "in", @@ -96459,17 +98097,17 @@ func (r workflowRunQueryDeletedAtDateTime) In(value []DateTime) workflowRunDefau } } -func (r workflowRunQueryDeletedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) InIfPresent(value []string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.In(value) } -func (r workflowRunQueryDeletedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) NotIn(value []string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "notIn", @@ -96480,17 +98118,17 @@ func (r workflowRunQueryDeletedAtDateTime) NotIn(value []DateTime) workflowRunDe } } -func (r workflowRunQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) NotInIfPresent(value []string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryDeletedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) Lt(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lt", @@ -96501,17 +98139,17 @@ func (r workflowRunQueryDeletedAtDateTime) Lt(value DateTime) workflowRunDefault } } -func (r workflowRunQueryDeletedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) LtIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryDeletedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) Lte(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lte", @@ -96522,17 +98160,17 @@ func (r workflowRunQueryDeletedAtDateTime) Lte(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryDeletedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) LteIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryDeletedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) Gt(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gt", @@ -96543,17 +98181,17 @@ func (r workflowRunQueryDeletedAtDateTime) Gt(value DateTime) workflowRunDefault } } -func (r workflowRunQueryDeletedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) GtIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryDeletedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) Gte(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gte", @@ -96564,20 +98202,20 @@ func (r workflowRunQueryDeletedAtDateTime) Gte(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryDeletedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) GteIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryDeletedAtDateTime) Not(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) Contains(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -96585,22 +98223,20 @@ func (r workflowRunQueryDeletedAtDateTime) Not(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryDeletedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) ContainsIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r workflowRunQueryDeletedAtDateTime) Before(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) StartsWith(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -96608,23 +98244,20 @@ func (r workflowRunQueryDeletedAtDateTime) Before(value DateTime) workflowRunDef } } -// deprecated: Use LtIfPresent instead. -func (r workflowRunQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) StartsWithIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r workflowRunQueryDeletedAtDateTime) After(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) EndsWith(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -96632,23 +98265,20 @@ func (r workflowRunQueryDeletedAtDateTime) After(value DateTime) workflowRunDefa } } -// deprecated: Use GtIfPresent instead. -func (r workflowRunQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) EndsWithIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r workflowRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) Mode(value QueryMode) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -96656,23 +98286,20 @@ func (r workflowRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) workflow } } -// deprecated: Use LteIfPresent instead. -func (r workflowRunQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) ModeIfPresent(value *QueryMode) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r workflowRunQueryDeletedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) Not(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -96680,66 +98307,46 @@ func (r workflowRunQueryDeletedAtDateTime) AfterEquals(value DateTime) workflowR } } -// deprecated: Use GteIfPresent instead. -func (r workflowRunQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +func (r rateLimitQueryTenantIDString) NotIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r workflowRunQueryDeletedAtDateTime) Field() workflowRunPrismaFields { - return workflowRunFieldDeletedAt + return r.Not(*value) } -// base struct -type workflowRunQueryDisplayNameString struct{} - -// Set the optional value of DisplayName -func (r workflowRunQueryDisplayNameString) Set(value string) workflowRunSetParam { +// deprecated: Use StartsWith instead. - return workflowRunSetParam{ +func (r rateLimitQueryTenantIDString) HasPrefix(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", - Value: value, + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, }, } - } -// Set the optional value of DisplayName dynamically -func (r workflowRunQueryDisplayNameString) SetIfPresent(value *String) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of DisplayName dynamically -func (r workflowRunQueryDisplayNameString) SetOptional(value *String) workflowRunSetParam { +// deprecated: Use StartsWithIfPresent instead. +func (r rateLimitQueryTenantIDString) HasPrefixIfPresent(value *string) rateLimitDefaultParam { if value == nil { - - var v *string - return workflowRunSetParam{ - data: builder.Field{ - Name: "displayName", - Value: v, - }, - } + return rateLimitDefaultParam{} } - - return r.Set(*value) + return r.HasPrefix(*value) } -func (r workflowRunQueryDisplayNameString) Equals(value string) workflowRunWithPrismaDisplayNameEqualsParam { +// deprecated: Use EndsWith instead. - return workflowRunWithPrismaDisplayNameEqualsParam{ +func (r rateLimitQueryTenantIDString) HasSuffix(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "tenantId", Fields: []builder.Field{ { - Name: "equals", + Name: "ends_with", Value: value, }, }, @@ -96747,64 +98354,86 @@ func (r workflowRunQueryDisplayNameString) Equals(value string) workflowRunWithP } } -func (r workflowRunQueryDisplayNameString) EqualsIfPresent(value *string) workflowRunWithPrismaDisplayNameEqualsParam { +// deprecated: Use EndsWithIfPresent instead. +func (r rateLimitQueryTenantIDString) HasSuffixIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunWithPrismaDisplayNameEqualsParam{} + return rateLimitDefaultParam{} } - return r.Equals(*value) + return r.HasSuffix(*value) } -func (r workflowRunQueryDisplayNameString) EqualsOptional(value *String) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryTenantIDString) Field() rateLimitPrismaFields { + return rateLimitFieldTenantID +} + +// base struct +type rateLimitQueryKeyString struct{} + +// Set the required value of Key +func (r rateLimitQueryKeyString) Set(value string) rateLimitWithPrismaKeySetParam { + + return rateLimitWithPrismaKeySetParam{ data: builder.Field{ - Name: "displayName", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "key", + Value: value, }, } + +} + +// Set the optional value of Key dynamically +func (r rateLimitQueryKeyString) SetIfPresent(value *String) rateLimitWithPrismaKeySetParam { + if value == nil { + return rateLimitWithPrismaKeySetParam{} + } + + return r.Set(*value) } -func (r workflowRunQueryDisplayNameString) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) Equals(value string) rateLimitWithPrismaKeyEqualsParam { + + return rateLimitWithPrismaKeyEqualsParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r workflowRunQueryDisplayNameString) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) EqualsIfPresent(value *string) rateLimitWithPrismaKeyEqualsParam { + if value == nil { + return rateLimitWithPrismaKeyEqualsParam{} + } + return r.Equals(*value) +} + +func (r rateLimitQueryKeyString) Order(direction SortOrder) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Value: direction, }, } } -func (r workflowRunQueryDisplayNameString) Cursor(cursor string) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r rateLimitQueryKeyString) Cursor(cursor string) rateLimitCursorParam { + return rateLimitCursorParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Value: cursor, }, } } -func (r workflowRunQueryDisplayNameString) In(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) In(value []string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "in", @@ -96815,17 +98444,17 @@ func (r workflowRunQueryDisplayNameString) In(value []string) workflowRunDefault } } -func (r workflowRunQueryDisplayNameString) InIfPresent(value []string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) InIfPresent(value []string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.In(value) } -func (r workflowRunQueryDisplayNameString) NotIn(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) NotIn(value []string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "notIn", @@ -96836,17 +98465,17 @@ func (r workflowRunQueryDisplayNameString) NotIn(value []string) workflowRunDefa } } -func (r workflowRunQueryDisplayNameString) NotInIfPresent(value []string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) NotInIfPresent(value []string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryDisplayNameString) Lt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) Lt(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "lt", @@ -96857,17 +98486,17 @@ func (r workflowRunQueryDisplayNameString) Lt(value string) workflowRunDefaultPa } } -func (r workflowRunQueryDisplayNameString) LtIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) LtIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryDisplayNameString) Lte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) Lte(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "lte", @@ -96878,17 +98507,17 @@ func (r workflowRunQueryDisplayNameString) Lte(value string) workflowRunDefaultP } } -func (r workflowRunQueryDisplayNameString) LteIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) LteIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryDisplayNameString) Gt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) Gt(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "gt", @@ -96899,17 +98528,17 @@ func (r workflowRunQueryDisplayNameString) Gt(value string) workflowRunDefaultPa } } -func (r workflowRunQueryDisplayNameString) GtIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) GtIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryDisplayNameString) Gte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) Gte(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "gte", @@ -96920,17 +98549,17 @@ func (r workflowRunQueryDisplayNameString) Gte(value string) workflowRunDefaultP } } -func (r workflowRunQueryDisplayNameString) GteIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) GteIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryDisplayNameString) Contains(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) Contains(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "contains", @@ -96941,17 +98570,17 @@ func (r workflowRunQueryDisplayNameString) Contains(value string) workflowRunDef } } -func (r workflowRunQueryDisplayNameString) ContainsIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) ContainsIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Contains(*value) } -func (r workflowRunQueryDisplayNameString) StartsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) StartsWith(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "startsWith", @@ -96962,17 +98591,17 @@ func (r workflowRunQueryDisplayNameString) StartsWith(value string) workflowRunD } } -func (r workflowRunQueryDisplayNameString) StartsWithIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) StartsWithIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.StartsWith(*value) } -func (r workflowRunQueryDisplayNameString) EndsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) EndsWith(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "endsWith", @@ -96983,17 +98612,17 @@ func (r workflowRunQueryDisplayNameString) EndsWith(value string) workflowRunDef } } -func (r workflowRunQueryDisplayNameString) EndsWithIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) EndsWithIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.EndsWith(*value) } -func (r workflowRunQueryDisplayNameString) Mode(value QueryMode) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) Mode(value QueryMode) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "mode", @@ -97004,17 +98633,17 @@ func (r workflowRunQueryDisplayNameString) Mode(value QueryMode) workflowRunDefa } } -func (r workflowRunQueryDisplayNameString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) ModeIfPresent(value *QueryMode) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Mode(*value) } -func (r workflowRunQueryDisplayNameString) Not(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) Not(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "not", @@ -97025,19 +98654,19 @@ func (r workflowRunQueryDisplayNameString) Not(value string) workflowRunDefaultP } } -func (r workflowRunQueryDisplayNameString) NotIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) NotIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunQueryDisplayNameString) HasPrefix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) HasPrefix(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "starts_with", @@ -97049,19 +98678,19 @@ func (r workflowRunQueryDisplayNameString) HasPrefix(value string) workflowRunDe } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryDisplayNameString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) HasPrefixIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunQueryDisplayNameString) HasSuffix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryKeyString) HasSuffix(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "displayName", + Name: "key", Fields: []builder.Field{ { Name: "ends_with", @@ -97073,134 +98702,134 @@ func (r workflowRunQueryDisplayNameString) HasSuffix(value string) workflowRunDe } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryDisplayNameString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryKeyString) HasSuffixIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.HasSuffix(*value) } -func (r workflowRunQueryDisplayNameString) Field() workflowRunPrismaFields { - return workflowRunFieldDisplayName +func (r rateLimitQueryKeyString) Field() rateLimitPrismaFields { + return rateLimitFieldKey } // base struct -type workflowRunQueryTenantTenant struct{} +type rateLimitQueryLimitValueInt struct{} -type workflowRunQueryTenantRelations struct{} +// Set the required value of LimitValue +func (r rateLimitQueryLimitValueInt) Set(value int) rateLimitWithPrismaLimitValueSetParam { -// WorkflowRun -> Tenant -// -// @relation -// @required -func (workflowRunQueryTenantRelations) Where( - params ...TenantWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field + return rateLimitWithPrismaLimitValueSetParam{ + data: builder.Field{ + Name: "limitValue", + Value: value, + }, + } - for _, q := range params { - fields = append(fields, q.field()) +} + +// Set the optional value of LimitValue dynamically +func (r rateLimitQueryLimitValueInt) SetIfPresent(value *Int) rateLimitWithPrismaLimitValueSetParam { + if value == nil { + return rateLimitWithPrismaLimitValueSetParam{} } - return workflowRunDefaultParam{ + return r.Set(*value) +} + +// Increment the required value of LimitValue +func (r rateLimitQueryLimitValueInt) Increment(value int) rateLimitWithPrismaLimitValueSetParam { + return rateLimitWithPrismaLimitValueSetParam{ data: builder.Field{ - Name: "tenant", + Name: "limitValue", Fields: []builder.Field{ - { - Name: "is", - Fields: fields, + builder.Field{ + Name: "increment", + Value: value, }, }, }, } } -func (workflowRunQueryTenantRelations) Fetch() workflowRunToTenantFindUnique { - var v workflowRunToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - - return v -} - -func (r workflowRunQueryTenantRelations) Link( - params TenantWhereParam, -) workflowRunWithPrismaTenantSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunWithPrismaTenantSetParam{} +func (r rateLimitQueryLimitValueInt) IncrementIfPresent(value *int) rateLimitWithPrismaLimitValueSetParam { + if value == nil { + return rateLimitWithPrismaLimitValueSetParam{} } + return r.Increment(*value) +} - fields = append(fields, f) - - return workflowRunWithPrismaTenantSetParam{ +// Decrement the required value of LimitValue +func (r rateLimitQueryLimitValueInt) Decrement(value int) rateLimitWithPrismaLimitValueSetParam { + return rateLimitWithPrismaLimitValueSetParam{ data: builder.Field{ - Name: "tenant", + Name: "limitValue", Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), + builder.Field{ + Name: "decrement", + Value: value, }, }, }, } } -func (r workflowRunQueryTenantRelations) Unlink() workflowRunWithPrismaTenantSetParam { - var v workflowRunWithPrismaTenantSetParam +func (r rateLimitQueryLimitValueInt) DecrementIfPresent(value *int) rateLimitWithPrismaLimitValueSetParam { + if value == nil { + return rateLimitWithPrismaLimitValueSetParam{} + } + return r.Decrement(*value) +} - v = workflowRunWithPrismaTenantSetParam{ +// Multiply the required value of LimitValue +func (r rateLimitQueryLimitValueInt) Multiply(value int) rateLimitWithPrismaLimitValueSetParam { + return rateLimitWithPrismaLimitValueSetParam{ data: builder.Field{ - Name: "tenant", + Name: "limitValue", Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, + builder.Field{ + Name: "multiply", + Value: value, }, }, }, } - - return v } -func (r workflowRunQueryTenantTenant) Field() workflowRunPrismaFields { - return workflowRunFieldTenant +func (r rateLimitQueryLimitValueInt) MultiplyIfPresent(value *int) rateLimitWithPrismaLimitValueSetParam { + if value == nil { + return rateLimitWithPrismaLimitValueSetParam{} + } + return r.Multiply(*value) } -// base struct -type workflowRunQueryTenantIDString struct{} - -// Set the required value of TenantID -func (r workflowRunQueryTenantIDString) Set(value string) workflowRunSetParam { - - return workflowRunSetParam{ +// Divide the required value of LimitValue +func (r rateLimitQueryLimitValueInt) Divide(value int) rateLimitWithPrismaLimitValueSetParam { + return rateLimitWithPrismaLimitValueSetParam{ data: builder.Field{ - Name: "tenantId", - Value: value, + Name: "limitValue", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, }, } - } -// Set the optional value of TenantID dynamically -func (r workflowRunQueryTenantIDString) SetIfPresent(value *String) workflowRunSetParam { +func (r rateLimitQueryLimitValueInt) DivideIfPresent(value *int) rateLimitWithPrismaLimitValueSetParam { if value == nil { - return workflowRunSetParam{} + return rateLimitWithPrismaLimitValueSetParam{} } - - return r.Set(*value) + return r.Divide(*value) } -func (r workflowRunQueryTenantIDString) Equals(value string) workflowRunWithPrismaTenantIDEqualsParam { +func (r rateLimitQueryLimitValueInt) Equals(value int) rateLimitWithPrismaLimitValueEqualsParam { - return workflowRunWithPrismaTenantIDEqualsParam{ + return rateLimitWithPrismaLimitValueEqualsParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { Name: "equals", @@ -97211,35 +98840,35 @@ func (r workflowRunQueryTenantIDString) Equals(value string) workflowRunWithPris } } -func (r workflowRunQueryTenantIDString) EqualsIfPresent(value *string) workflowRunWithPrismaTenantIDEqualsParam { +func (r rateLimitQueryLimitValueInt) EqualsIfPresent(value *int) rateLimitWithPrismaLimitValueEqualsParam { if value == nil { - return workflowRunWithPrismaTenantIDEqualsParam{} + return rateLimitWithPrismaLimitValueEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryTenantIDString) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLimitValueInt) Order(direction SortOrder) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Value: direction, }, } } -func (r workflowRunQueryTenantIDString) Cursor(cursor string) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r rateLimitQueryLimitValueInt) Cursor(cursor int) rateLimitCursorParam { + return rateLimitCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Value: cursor, }, } } -func (r workflowRunQueryTenantIDString) In(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLimitValueInt) In(value []int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { Name: "in", @@ -97250,17 +98879,17 @@ func (r workflowRunQueryTenantIDString) In(value []string) workflowRunDefaultPar } } -func (r workflowRunQueryTenantIDString) InIfPresent(value []string) workflowRunDefaultParam { +func (r rateLimitQueryLimitValueInt) InIfPresent(value []int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.In(value) } -func (r workflowRunQueryTenantIDString) NotIn(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLimitValueInt) NotIn(value []int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { Name: "notIn", @@ -97271,17 +98900,17 @@ func (r workflowRunQueryTenantIDString) NotIn(value []string) workflowRunDefault } } -func (r workflowRunQueryTenantIDString) NotInIfPresent(value []string) workflowRunDefaultParam { +func (r rateLimitQueryLimitValueInt) NotInIfPresent(value []int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryTenantIDString) Lt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLimitValueInt) Lt(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { Name: "lt", @@ -97292,17 +98921,17 @@ func (r workflowRunQueryTenantIDString) Lt(value string) workflowRunDefaultParam } } -func (r workflowRunQueryTenantIDString) LtIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryLimitValueInt) LtIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryTenantIDString) Lte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLimitValueInt) Lte(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { Name: "lte", @@ -97313,17 +98942,17 @@ func (r workflowRunQueryTenantIDString) Lte(value string) workflowRunDefaultPara } } -func (r workflowRunQueryTenantIDString) LteIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryLimitValueInt) LteIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryTenantIDString) Gt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLimitValueInt) Gt(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { Name: "gt", @@ -97334,17 +98963,17 @@ func (r workflowRunQueryTenantIDString) Gt(value string) workflowRunDefaultParam } } -func (r workflowRunQueryTenantIDString) GtIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryLimitValueInt) GtIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryTenantIDString) Gte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLimitValueInt) Gte(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { Name: "gte", @@ -97355,20 +98984,20 @@ func (r workflowRunQueryTenantIDString) Gte(value string) workflowRunDefaultPara } } -func (r workflowRunQueryTenantIDString) GteIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryLimitValueInt) GteIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryTenantIDString) Contains(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLimitValueInt) Not(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -97376,20 +99005,22 @@ func (r workflowRunQueryTenantIDString) Contains(value string) workflowRunDefaul } } -func (r workflowRunQueryTenantIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryLimitValueInt) NotIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r workflowRunQueryTenantIDString) StartsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// deprecated: Use Lt instead. + +func (r rateLimitQueryLimitValueInt) LT(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -97397,20 +99028,23 @@ func (r workflowRunQueryTenantIDString) StartsWith(value string) workflowRunDefa } } -func (r workflowRunQueryTenantIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r rateLimitQueryLimitValueInt) LTIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.StartsWith(*value) + return r.LT(*value) } -func (r workflowRunQueryTenantIDString) EndsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// deprecated: Use Lte instead. + +func (r rateLimitQueryLimitValueInt) LTE(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lte", Value: value, }, }, @@ -97418,20 +99052,23 @@ func (r workflowRunQueryTenantIDString) EndsWith(value string) workflowRunDefaul } } -func (r workflowRunQueryTenantIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r rateLimitQueryLimitValueInt) LTEIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.EndsWith(*value) + return r.LTE(*value) } -func (r workflowRunQueryTenantIDString) Mode(value QueryMode) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// deprecated: Use Gt instead. + +func (r rateLimitQueryLimitValueInt) GT(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { - Name: "mode", + Name: "gt", Value: value, }, }, @@ -97439,20 +99076,23 @@ func (r workflowRunQueryTenantIDString) Mode(value QueryMode) workflowRunDefault } } -func (r workflowRunQueryTenantIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r rateLimitQueryLimitValueInt) GTIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.Mode(*value) + return r.GT(*value) } -func (r workflowRunQueryTenantIDString) Not(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// deprecated: Use Gte instead. + +func (r rateLimitQueryLimitValueInt) GTE(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "limitValue", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -97460,46 +99100,50 @@ func (r workflowRunQueryTenantIDString) Not(value string) workflowRunDefaultPara } } -func (r workflowRunQueryTenantIDString) NotIfPresent(value *string) workflowRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r rateLimitQueryLimitValueInt) GTEIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.Not(*value) + return r.GTE(*value) } -// deprecated: Use StartsWith instead. +func (r rateLimitQueryLimitValueInt) Field() rateLimitPrismaFields { + return rateLimitFieldLimitValue +} -func (r workflowRunQueryTenantIDString) HasPrefix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// base struct +type rateLimitQueryValueInt struct{} + +// Set the required value of Value +func (r rateLimitQueryValueInt) Set(value int) rateLimitWithPrismaValueSetParam { + + return rateLimitWithPrismaValueSetParam{ data: builder.Field{ - Name: "tenantId", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, + Name: "value", + Value: value, }, } + } -// deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryTenantIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { +// Set the optional value of Value dynamically +func (r rateLimitQueryValueInt) SetIfPresent(value *Int) rateLimitWithPrismaValueSetParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitWithPrismaValueSetParam{} } - return r.HasPrefix(*value) -} -// deprecated: Use EndsWith instead. + return r.Set(*value) +} -func (r workflowRunQueryTenantIDString) HasSuffix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// Increment the required value of Value +func (r rateLimitQueryValueInt) Increment(value int) rateLimitWithPrismaValueSetParam { + return rateLimitWithPrismaValueSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ - { - Name: "ends_with", + builder.Field{ + Name: "increment", Value: value, }, }, @@ -97507,135 +99151,84 @@ func (r workflowRunQueryTenantIDString) HasSuffix(value string) workflowRunDefau } } -// deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryTenantIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryValueInt) IncrementIfPresent(value *int) rateLimitWithPrismaValueSetParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitWithPrismaValueSetParam{} } - return r.HasSuffix(*value) -} - -func (r workflowRunQueryTenantIDString) Field() workflowRunPrismaFields { - return workflowRunFieldTenantID + return r.Increment(*value) } -// base struct -type workflowRunQueryWorkflowVersionWorkflowVersion struct{} - -type workflowRunQueryWorkflowVersionRelations struct{} - -// WorkflowRun -> WorkflowVersion -// -// @relation -// @required -func (workflowRunQueryWorkflowVersionRelations) Where( - params ...WorkflowVersionWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workflowRunDefaultParam{ +// Decrement the required value of Value +func (r rateLimitQueryValueInt) Decrement(value int) rateLimitWithPrismaValueSetParam { + return rateLimitWithPrismaValueSetParam{ data: builder.Field{ - Name: "workflowVersion", + Name: "value", Fields: []builder.Field{ - { - Name: "is", - Fields: fields, + builder.Field{ + Name: "decrement", + Value: value, }, }, }, } } -func (workflowRunQueryWorkflowVersionRelations) Fetch() workflowRunToWorkflowVersionFindUnique { - var v workflowRunToWorkflowVersionFindUnique - - v.query.Operation = "query" - v.query.Method = "workflowVersion" - v.query.Outputs = workflowVersionOutput - - return v -} - -func (r workflowRunQueryWorkflowVersionRelations) Link( - params WorkflowVersionWhereParam, -) workflowRunWithPrismaWorkflowVersionSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunWithPrismaWorkflowVersionSetParam{} +func (r rateLimitQueryValueInt) DecrementIfPresent(value *int) rateLimitWithPrismaValueSetParam { + if value == nil { + return rateLimitWithPrismaValueSetParam{} } + return r.Decrement(*value) +} - fields = append(fields, f) - - return workflowRunWithPrismaWorkflowVersionSetParam{ +// Multiply the required value of Value +func (r rateLimitQueryValueInt) Multiply(value int) rateLimitWithPrismaValueSetParam { + return rateLimitWithPrismaValueSetParam{ data: builder.Field{ - Name: "workflowVersion", + Name: "value", Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), + builder.Field{ + Name: "multiply", + Value: value, }, }, }, } } -func (r workflowRunQueryWorkflowVersionRelations) Unlink() workflowRunWithPrismaWorkflowVersionSetParam { - var v workflowRunWithPrismaWorkflowVersionSetParam +func (r rateLimitQueryValueInt) MultiplyIfPresent(value *int) rateLimitWithPrismaValueSetParam { + if value == nil { + return rateLimitWithPrismaValueSetParam{} + } + return r.Multiply(*value) +} - v = workflowRunWithPrismaWorkflowVersionSetParam{ +// Divide the required value of Value +func (r rateLimitQueryValueInt) Divide(value int) rateLimitWithPrismaValueSetParam { + return rateLimitWithPrismaValueSetParam{ data: builder.Field{ - Name: "workflowVersion", + Name: "value", Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, + builder.Field{ + Name: "divide", + Value: value, }, }, }, } - - return v -} - -func (r workflowRunQueryWorkflowVersionWorkflowVersion) Field() workflowRunPrismaFields { - return workflowRunFieldWorkflowVersion -} - -// base struct -type workflowRunQueryWorkflowVersionIDString struct{} - -// Set the required value of WorkflowVersionID -func (r workflowRunQueryWorkflowVersionIDString) Set(value string) workflowRunSetParam { - - return workflowRunSetParam{ - data: builder.Field{ - Name: "workflowVersionId", - Value: value, - }, - } - } -// Set the optional value of WorkflowVersionID dynamically -func (r workflowRunQueryWorkflowVersionIDString) SetIfPresent(value *String) workflowRunSetParam { +func (r rateLimitQueryValueInt) DivideIfPresent(value *int) rateLimitWithPrismaValueSetParam { if value == nil { - return workflowRunSetParam{} + return rateLimitWithPrismaValueSetParam{} } - - return r.Set(*value) + return r.Divide(*value) } -func (r workflowRunQueryWorkflowVersionIDString) Equals(value string) workflowRunWithPrismaWorkflowVersionIDEqualsParam { +func (r rateLimitQueryValueInt) Equals(value int) rateLimitWithPrismaValueEqualsParam { - return workflowRunWithPrismaWorkflowVersionIDEqualsParam{ + return rateLimitWithPrismaValueEqualsParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { Name: "equals", @@ -97646,35 +99239,35 @@ func (r workflowRunQueryWorkflowVersionIDString) Equals(value string) workflowRu } } -func (r workflowRunQueryWorkflowVersionIDString) EqualsIfPresent(value *string) workflowRunWithPrismaWorkflowVersionIDEqualsParam { +func (r rateLimitQueryValueInt) EqualsIfPresent(value *int) rateLimitWithPrismaValueEqualsParam { if value == nil { - return workflowRunWithPrismaWorkflowVersionIDEqualsParam{} + return rateLimitWithPrismaValueEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryWorkflowVersionIDString) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) Order(direction SortOrder) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Value: direction, }, } } -func (r workflowRunQueryWorkflowVersionIDString) Cursor(cursor string) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r rateLimitQueryValueInt) Cursor(cursor int) rateLimitCursorParam { + return rateLimitCursorParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Value: cursor, }, } } -func (r workflowRunQueryWorkflowVersionIDString) In(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) In(value []int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { Name: "in", @@ -97685,17 +99278,17 @@ func (r workflowRunQueryWorkflowVersionIDString) In(value []string) workflowRunD } } -func (r workflowRunQueryWorkflowVersionIDString) InIfPresent(value []string) workflowRunDefaultParam { +func (r rateLimitQueryValueInt) InIfPresent(value []int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.In(value) } -func (r workflowRunQueryWorkflowVersionIDString) NotIn(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) NotIn(value []int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { Name: "notIn", @@ -97706,17 +99299,17 @@ func (r workflowRunQueryWorkflowVersionIDString) NotIn(value []string) workflowR } } -func (r workflowRunQueryWorkflowVersionIDString) NotInIfPresent(value []string) workflowRunDefaultParam { +func (r rateLimitQueryValueInt) NotInIfPresent(value []int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryWorkflowVersionIDString) Lt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) Lt(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { Name: "lt", @@ -97727,17 +99320,17 @@ func (r workflowRunQueryWorkflowVersionIDString) Lt(value string) workflowRunDef } } -func (r workflowRunQueryWorkflowVersionIDString) LtIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryValueInt) LtIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryWorkflowVersionIDString) Lte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) Lte(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { Name: "lte", @@ -97748,17 +99341,17 @@ func (r workflowRunQueryWorkflowVersionIDString) Lte(value string) workflowRunDe } } -func (r workflowRunQueryWorkflowVersionIDString) LteIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryValueInt) LteIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryWorkflowVersionIDString) Gt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) Gt(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { Name: "gt", @@ -97769,17 +99362,17 @@ func (r workflowRunQueryWorkflowVersionIDString) Gt(value string) workflowRunDef } } -func (r workflowRunQueryWorkflowVersionIDString) GtIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryValueInt) GtIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryWorkflowVersionIDString) Gte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) Gte(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { Name: "gte", @@ -97790,20 +99383,20 @@ func (r workflowRunQueryWorkflowVersionIDString) Gte(value string) workflowRunDe } } -func (r workflowRunQueryWorkflowVersionIDString) GteIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryValueInt) GteIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryWorkflowVersionIDString) Contains(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) Not(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -97811,41 +99404,22 @@ func (r workflowRunQueryWorkflowVersionIDString) Contains(value string) workflow } } -func (r workflowRunQueryWorkflowVersionIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryValueInt) NotIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} - } - return r.Contains(*value) -} - -func (r workflowRunQueryWorkflowVersionIDString) StartsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "workflowVersionId", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return rateLimitDefaultParam{} } + return r.Not(*value) } -func (r workflowRunQueryWorkflowVersionIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r workflowRunQueryWorkflowVersionIDString) EndsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) LT(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -97853,41 +99427,23 @@ func (r workflowRunQueryWorkflowVersionIDString) EndsWith(value string) workflow } } -func (r workflowRunQueryWorkflowVersionIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r rateLimitQueryValueInt) LTIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r workflowRunQueryWorkflowVersionIDString) Mode(value QueryMode) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "workflowVersionId", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return rateLimitDefaultParam{} } + return r.LT(*value) } -func (r workflowRunQueryWorkflowVersionIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Lte instead. -func (r workflowRunQueryWorkflowVersionIDString) Not(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) LTE(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { - Name: "not", + Name: "lte", Value: value, }, }, @@ -97895,22 +99451,23 @@ func (r workflowRunQueryWorkflowVersionIDString) Not(value string) workflowRunDe } } -func (r workflowRunQueryWorkflowVersionIDString) NotIfPresent(value *string) workflowRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r rateLimitQueryValueInt) LTEIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.Not(*value) + return r.LTE(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Gt instead. -func (r workflowRunQueryWorkflowVersionIDString) HasPrefix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) GT(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gt", Value: value, }, }, @@ -97918,23 +99475,23 @@ func (r workflowRunQueryWorkflowVersionIDString) HasPrefix(value string) workflo } } -// deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryWorkflowVersionIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r rateLimitQueryValueInt) GTIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.HasPrefix(*value) + return r.GT(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r workflowRunQueryWorkflowVersionIDString) HasSuffix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryValueInt) GTE(value int) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "workflowVersionId", + Name: "value", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -97942,63 +99499,47 @@ func (r workflowRunQueryWorkflowVersionIDString) HasSuffix(value string) workflo } } -// deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryWorkflowVersionIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r rateLimitQueryValueInt) GTEIfPresent(value *int) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.HasSuffix(*value) + return r.GTE(*value) } -func (r workflowRunQueryWorkflowVersionIDString) Field() workflowRunPrismaFields { - return workflowRunFieldWorkflowVersionID +func (r rateLimitQueryValueInt) Field() rateLimitPrismaFields { + return rateLimitFieldValue } // base struct -type workflowRunQueryConcurrencyGroupIDString struct{} +type rateLimitQueryWindowString struct{} -// Set the optional value of ConcurrencyGroupID -func (r workflowRunQueryConcurrencyGroupIDString) Set(value string) workflowRunSetParam { +// Set the required value of Window +func (r rateLimitQueryWindowString) Set(value string) rateLimitWithPrismaWindowSetParam { - return workflowRunSetParam{ + return rateLimitWithPrismaWindowSetParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Value: value, }, } } -// Set the optional value of ConcurrencyGroupID dynamically -func (r workflowRunQueryConcurrencyGroupIDString) SetIfPresent(value *String) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of ConcurrencyGroupID dynamically -func (r workflowRunQueryConcurrencyGroupIDString) SetOptional(value *String) workflowRunSetParam { +// Set the optional value of Window dynamically +func (r rateLimitQueryWindowString) SetIfPresent(value *String) rateLimitWithPrismaWindowSetParam { if value == nil { - - var v *string - return workflowRunSetParam{ - data: builder.Field{ - Name: "concurrencyGroupId", - Value: v, - }, - } + return rateLimitWithPrismaWindowSetParam{} } return r.Set(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) Equals(value string) workflowRunWithPrismaConcurrencyGroupIDEqualsParam { +func (r rateLimitQueryWindowString) Equals(value string) rateLimitWithPrismaWindowEqualsParam { - return workflowRunWithPrismaConcurrencyGroupIDEqualsParam{ + return rateLimitWithPrismaWindowEqualsParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "equals", @@ -98009,64 +99550,35 @@ func (r workflowRunQueryConcurrencyGroupIDString) Equals(value string) workflowR } } -func (r workflowRunQueryConcurrencyGroupIDString) EqualsIfPresent(value *string) workflowRunWithPrismaConcurrencyGroupIDEqualsParam { +func (r rateLimitQueryWindowString) EqualsIfPresent(value *string) rateLimitWithPrismaWindowEqualsParam { if value == nil { - return workflowRunWithPrismaConcurrencyGroupIDEqualsParam{} + return rateLimitWithPrismaWindowEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) EqualsOptional(value *String) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "concurrencyGroupId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryConcurrencyGroupIDString) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "concurrencyGroupId", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunQueryConcurrencyGroupIDString) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) Order(direction SortOrder) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Value: direction, }, } } -func (r workflowRunQueryConcurrencyGroupIDString) Cursor(cursor string) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r rateLimitQueryWindowString) Cursor(cursor string) rateLimitCursorParam { + return rateLimitCursorParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Value: cursor, }, } } -func (r workflowRunQueryConcurrencyGroupIDString) In(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) In(value []string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "in", @@ -98077,17 +99589,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) In(value []string) workflowRun } } -func (r workflowRunQueryConcurrencyGroupIDString) InIfPresent(value []string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) InIfPresent(value []string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.In(value) } -func (r workflowRunQueryConcurrencyGroupIDString) NotIn(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) NotIn(value []string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "notIn", @@ -98098,17 +99610,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) NotIn(value []string) workflow } } -func (r workflowRunQueryConcurrencyGroupIDString) NotInIfPresent(value []string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) NotInIfPresent(value []string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryConcurrencyGroupIDString) Lt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) Lt(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "lt", @@ -98119,17 +99631,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) Lt(value string) workflowRunDe } } -func (r workflowRunQueryConcurrencyGroupIDString) LtIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) LtIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) Lte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) Lte(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "lte", @@ -98140,17 +99652,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) Lte(value string) workflowRunD } } -func (r workflowRunQueryConcurrencyGroupIDString) LteIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) LteIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) Gt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) Gt(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "gt", @@ -98161,17 +99673,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) Gt(value string) workflowRunDe } } -func (r workflowRunQueryConcurrencyGroupIDString) GtIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) GtIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) Gte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) Gte(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "gte", @@ -98182,17 +99694,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) Gte(value string) workflowRunD } } -func (r workflowRunQueryConcurrencyGroupIDString) GteIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) GteIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) Contains(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) Contains(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "contains", @@ -98203,17 +99715,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) Contains(value string) workflo } } -func (r workflowRunQueryConcurrencyGroupIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) ContainsIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Contains(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) StartsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) StartsWith(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "startsWith", @@ -98224,17 +99736,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) StartsWith(value string) workf } } -func (r workflowRunQueryConcurrencyGroupIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) StartsWithIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.StartsWith(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) EndsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) EndsWith(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "endsWith", @@ -98245,17 +99757,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) EndsWith(value string) workflo } } -func (r workflowRunQueryConcurrencyGroupIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) EndsWithIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.EndsWith(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) Mode(value QueryMode) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) Mode(value QueryMode) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "mode", @@ -98266,17 +99778,17 @@ func (r workflowRunQueryConcurrencyGroupIDString) Mode(value QueryMode) workflow } } -func (r workflowRunQueryConcurrencyGroupIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) ModeIfPresent(value *QueryMode) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Mode(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) Not(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) Not(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "not", @@ -98287,19 +99799,19 @@ func (r workflowRunQueryConcurrencyGroupIDString) Not(value string) workflowRunD } } -func (r workflowRunQueryConcurrencyGroupIDString) NotIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) NotIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunQueryConcurrencyGroupIDString) HasPrefix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) HasPrefix(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "starts_with", @@ -98311,19 +99823,19 @@ func (r workflowRunQueryConcurrencyGroupIDString) HasPrefix(value string) workfl } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryConcurrencyGroupIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) HasPrefixIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunQueryConcurrencyGroupIDString) HasSuffix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryWindowString) HasSuffix(value string) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "concurrencyGroupId", + Name: "window", Fields: []builder.Field{ { Name: "ends_with", @@ -98335,137 +99847,193 @@ func (r workflowRunQueryConcurrencyGroupIDString) HasSuffix(value string) workfl } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryConcurrencyGroupIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { +func (r rateLimitQueryWindowString) HasSuffixIfPresent(value *string) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } return r.HasSuffix(*value) } -func (r workflowRunQueryConcurrencyGroupIDString) Field() workflowRunPrismaFields { - return workflowRunFieldConcurrencyGroupID +func (r rateLimitQueryWindowString) Field() rateLimitPrismaFields { + return rateLimitFieldWindow } // base struct -type workflowRunQueryGetGroupKeyRunGetGroupKeyRun struct{} +type rateLimitQueryLastRefillDateTime struct{} -type workflowRunQueryGetGroupKeyRunRelations struct{} +// Set the required value of LastRefill +func (r rateLimitQueryLastRefillDateTime) Set(value DateTime) rateLimitSetParam { -// WorkflowRun -> GetGroupKeyRun -// -// @relation -// @optional -func (workflowRunQueryGetGroupKeyRunRelations) Where( - params ...GetGroupKeyRunWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field + return rateLimitSetParam{ + data: builder.Field{ + Name: "lastRefill", + Value: value, + }, + } - for _, q := range params { - fields = append(fields, q.field()) +} + +// Set the optional value of LastRefill dynamically +func (r rateLimitQueryLastRefillDateTime) SetIfPresent(value *DateTime) rateLimitSetParam { + if value == nil { + return rateLimitSetParam{} } - return workflowRunDefaultParam{ + return r.Set(*value) +} + +func (r rateLimitQueryLastRefillDateTime) Equals(value DateTime) rateLimitWithPrismaLastRefillEqualsParam { + + return rateLimitWithPrismaLastRefillEqualsParam{ data: builder.Field{ - Name: "getGroupKeyRun", + Name: "lastRefill", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -func (workflowRunQueryGetGroupKeyRunRelations) Fetch() workflowRunToGetGroupKeyRunFindUnique { - var v workflowRunToGetGroupKeyRunFindUnique - - v.query.Operation = "query" - v.query.Method = "getGroupKeyRun" - v.query.Outputs = getGroupKeyRunOutput - - return v +func (r rateLimitQueryLastRefillDateTime) EqualsIfPresent(value *DateTime) rateLimitWithPrismaLastRefillEqualsParam { + if value == nil { + return rateLimitWithPrismaLastRefillEqualsParam{} + } + return r.Equals(*value) } -func (r workflowRunQueryGetGroupKeyRunRelations) Link( - params GetGroupKeyRunWhereParam, -) workflowRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunSetParam{} +func (r rateLimitQueryLastRefillDateTime) Order(direction SortOrder) rateLimitDefaultParam { + return rateLimitDefaultParam{ + data: builder.Field{ + Name: "lastRefill", + Value: direction, + }, } +} - fields = append(fields, f) +func (r rateLimitQueryLastRefillDateTime) Cursor(cursor DateTime) rateLimitCursorParam { + return rateLimitCursorParam{ + data: builder.Field{ + Name: "lastRefill", + Value: cursor, + }, + } +} - return workflowRunSetParam{ +func (r rateLimitQueryLastRefillDateTime) In(value []DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "getGroupKeyRun", + Name: "lastRefill", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "in", + Value: value, }, }, }, } } -func (r workflowRunQueryGetGroupKeyRunRelations) Unlink() workflowRunSetParam { - var v workflowRunSetParam +func (r rateLimitQueryLastRefillDateTime) InIfPresent(value []DateTime) rateLimitDefaultParam { + if value == nil { + return rateLimitDefaultParam{} + } + return r.In(value) +} - v = workflowRunSetParam{ +func (r rateLimitQueryLastRefillDateTime) NotIn(value []DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "getGroupKeyRun", + Name: "lastRefill", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "notIn", + Value: value, }, }, }, } - - return v } -func (r workflowRunQueryGetGroupKeyRunGetGroupKeyRun) Field() workflowRunPrismaFields { - return workflowRunFieldGetGroupKeyRun +func (r rateLimitQueryLastRefillDateTime) NotInIfPresent(value []DateTime) rateLimitDefaultParam { + if value == nil { + return rateLimitDefaultParam{} + } + return r.NotIn(value) } -// base struct -type workflowRunQueryStatusWorkflowRunStatus struct{} +func (r rateLimitQueryLastRefillDateTime) Lt(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ + data: builder.Field{ + Name: "lastRefill", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} -// Set the required value of Status -func (r workflowRunQueryStatusWorkflowRunStatus) Set(value WorkflowRunStatus) workflowRunSetParam { +func (r rateLimitQueryLastRefillDateTime) LtIfPresent(value *DateTime) rateLimitDefaultParam { + if value == nil { + return rateLimitDefaultParam{} + } + return r.Lt(*value) +} - return workflowRunSetParam{ +func (r rateLimitQueryLastRefillDateTime) Lte(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "status", - Value: value, + Name: "lastRefill", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, }, } - } -// Set the optional value of Status dynamically -func (r workflowRunQueryStatusWorkflowRunStatus) SetIfPresent(value *WorkflowRunStatus) workflowRunSetParam { +func (r rateLimitQueryLastRefillDateTime) LteIfPresent(value *DateTime) rateLimitDefaultParam { if value == nil { - return workflowRunSetParam{} + return rateLimitDefaultParam{} } + return r.Lte(*value) +} - return r.Set(*value) +func (r rateLimitQueryLastRefillDateTime) Gt(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ + data: builder.Field{ + Name: "lastRefill", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } } -func (r workflowRunQueryStatusWorkflowRunStatus) Equals(value WorkflowRunStatus) workflowRunWithPrismaStatusEqualsParam { +func (r rateLimitQueryLastRefillDateTime) GtIfPresent(value *DateTime) rateLimitDefaultParam { + if value == nil { + return rateLimitDefaultParam{} + } + return r.Gt(*value) +} - return workflowRunWithPrismaStatusEqualsParam{ +func (r rateLimitQueryLastRefillDateTime) Gte(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "status", + Name: "lastRefill", Fields: []builder.Field{ { - Name: "equals", + Name: "gte", Value: value, }, }, @@ -98473,38 +100041,67 @@ func (r workflowRunQueryStatusWorkflowRunStatus) Equals(value WorkflowRunStatus) } } -func (r workflowRunQueryStatusWorkflowRunStatus) EqualsIfPresent(value *WorkflowRunStatus) workflowRunWithPrismaStatusEqualsParam { +func (r rateLimitQueryLastRefillDateTime) GteIfPresent(value *DateTime) rateLimitDefaultParam { if value == nil { - return workflowRunWithPrismaStatusEqualsParam{} + return rateLimitDefaultParam{} } - return r.Equals(*value) + return r.Gte(*value) } -func (r workflowRunQueryStatusWorkflowRunStatus) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r rateLimitQueryLastRefillDateTime) Not(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "status", - Value: direction, + Name: "lastRefill", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, }, } } -func (r workflowRunQueryStatusWorkflowRunStatus) Cursor(cursor WorkflowRunStatus) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r rateLimitQueryLastRefillDateTime) NotIfPresent(value *DateTime) rateLimitDefaultParam { + if value == nil { + return rateLimitDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r rateLimitQueryLastRefillDateTime) Before(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "status", - Value: cursor, + Name: "lastRefill", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, }, } } -func (r workflowRunQueryStatusWorkflowRunStatus) In(value []WorkflowRunStatus) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// deprecated: Use LtIfPresent instead. +func (r rateLimitQueryLastRefillDateTime) BeforeIfPresent(value *DateTime) rateLimitDefaultParam { + if value == nil { + return rateLimitDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r rateLimitQueryLastRefillDateTime) After(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "status", + Name: "lastRefill", Fields: []builder.Field{ { - Name: "in", + Name: "gt", Value: value, }, }, @@ -98512,20 +100109,23 @@ func (r workflowRunQueryStatusWorkflowRunStatus) In(value []WorkflowRunStatus) w } } -func (r workflowRunQueryStatusWorkflowRunStatus) InIfPresent(value []WorkflowRunStatus) workflowRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r rateLimitQueryLastRefillDateTime) AfterIfPresent(value *DateTime) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.In(value) + return r.After(*value) } -func (r workflowRunQueryStatusWorkflowRunStatus) NotIn(value []WorkflowRunStatus) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// deprecated: Use Lte instead. + +func (r rateLimitQueryLastRefillDateTime) BeforeEquals(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "status", + Name: "lastRefill", Fields: []builder.Field{ { - Name: "notIn", + Name: "lte", Value: value, }, }, @@ -98533,20 +100133,23 @@ func (r workflowRunQueryStatusWorkflowRunStatus) NotIn(value []WorkflowRunStatus } } -func (r workflowRunQueryStatusWorkflowRunStatus) NotInIfPresent(value []WorkflowRunStatus) workflowRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r rateLimitQueryLastRefillDateTime) BeforeEqualsIfPresent(value *DateTime) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.NotIn(value) + return r.BeforeEquals(*value) } -func (r workflowRunQueryStatusWorkflowRunStatus) Not(value WorkflowRunStatus) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// deprecated: Use Gte instead. + +func (r rateLimitQueryLastRefillDateTime) AfterEquals(value DateTime) rateLimitDefaultParam { + return rateLimitDefaultParam{ data: builder.Field{ - Name: "status", + Name: "lastRefill", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -98554,38 +100157,39 @@ func (r workflowRunQueryStatusWorkflowRunStatus) Not(value WorkflowRunStatus) wo } } -func (r workflowRunQueryStatusWorkflowRunStatus) NotIfPresent(value *WorkflowRunStatus) workflowRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r rateLimitQueryLastRefillDateTime) AfterEqualsIfPresent(value *DateTime) rateLimitDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return rateLimitDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -func (r workflowRunQueryStatusWorkflowRunStatus) Field() workflowRunPrismaFields { - return workflowRunFieldStatus +func (r rateLimitQueryLastRefillDateTime) Field() rateLimitPrismaFields { + return rateLimitFieldLastRefill } // base struct -type workflowRunQueryJobRunsJobRun struct{} +type rateLimitQueryStepRunLimitsStepRateLimit struct{} -type workflowRunQueryJobRunsRelations struct{} +type rateLimitQueryStepRunLimitsRelations struct{} -// WorkflowRun -> JobRuns +// RateLimit -> StepRunLimits // // @relation // @required -func (workflowRunQueryJobRunsRelations) Some( - params ...JobRunWhereParam, -) workflowRunDefaultParam { +func (rateLimitQueryStepRunLimitsRelations) Some( + params ...StepRateLimitWhereParam, +) rateLimitDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workflowRunDefaultParam{ + return rateLimitDefaultParam{ data: builder.Field{ - Name: "jobRuns", + Name: "stepRunLimits", Fields: []builder.Field{ { Name: "some", @@ -98596,22 +100200,22 @@ func (workflowRunQueryJobRunsRelations) Some( } } -// WorkflowRun -> JobRuns +// RateLimit -> StepRunLimits // // @relation // @required -func (workflowRunQueryJobRunsRelations) Every( - params ...JobRunWhereParam, -) workflowRunDefaultParam { +func (rateLimitQueryStepRunLimitsRelations) Every( + params ...StepRateLimitWhereParam, +) rateLimitDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workflowRunDefaultParam{ + return rateLimitDefaultParam{ data: builder.Field{ - Name: "jobRuns", + Name: "stepRunLimits", Fields: []builder.Field{ { Name: "every", @@ -98622,22 +100226,22 @@ func (workflowRunQueryJobRunsRelations) Every( } } -// WorkflowRun -> JobRuns +// RateLimit -> StepRunLimits // // @relation // @required -func (workflowRunQueryJobRunsRelations) None( - params ...JobRunWhereParam, -) workflowRunDefaultParam { +func (rateLimitQueryStepRunLimitsRelations) None( + params ...StepRateLimitWhereParam, +) rateLimitDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workflowRunDefaultParam{ + return rateLimitDefaultParam{ data: builder.Field{ - Name: "jobRuns", + Name: "stepRunLimits", Fields: []builder.Field{ { Name: "none", @@ -98648,16 +100252,16 @@ func (workflowRunQueryJobRunsRelations) None( } } -func (workflowRunQueryJobRunsRelations) Fetch( +func (rateLimitQueryStepRunLimitsRelations) Fetch( - params ...JobRunWhereParam, + params ...StepRateLimitWhereParam, -) workflowRunToJobRunsFindMany { - var v workflowRunToJobRunsFindMany +) rateLimitToStepRunLimitsFindMany { + var v rateLimitToStepRunLimitsFindMany v.query.Operation = "query" - v.query.Method = "jobRuns" - v.query.Outputs = jobRunOutput + v.query.Method = "stepRunLimits" + v.query.Outputs = stepRateLimitOutput var where []builder.Field for _, q := range params { @@ -98682,18 +100286,18 @@ func (workflowRunQueryJobRunsRelations) Fetch( return v } -func (r workflowRunQueryJobRunsRelations) Link( - params ...JobRunWhereParam, -) workflowRunSetParam { +func (r rateLimitQueryStepRunLimitsRelations) Link( + params ...StepRateLimitWhereParam, +) rateLimitSetParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workflowRunSetParam{ + return rateLimitSetParam{ data: builder.Field{ - Name: "jobRuns", + Name: "stepRunLimits", Fields: []builder.Field{ { Name: "connect", @@ -98707,18 +100311,18 @@ func (r workflowRunQueryJobRunsRelations) Link( } } -func (r workflowRunQueryJobRunsRelations) Unlink( - params ...JobRunWhereParam, -) workflowRunSetParam { - var v workflowRunSetParam +func (r rateLimitQueryStepRunLimitsRelations) Unlink( + params ...StepRateLimitWhereParam, +) rateLimitSetParam { + var v rateLimitSetParam var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - v = workflowRunSetParam{ + v = rateLimitSetParam{ data: builder.Field{ - Name: "jobRuns", + Name: "stepRunLimits", Fields: []builder.Field{ { Name: "disconnect", @@ -98733,146 +100337,138 @@ func (r workflowRunQueryJobRunsRelations) Unlink( return v } -func (r workflowRunQueryJobRunsJobRun) Field() workflowRunPrismaFields { - return workflowRunFieldJobRuns +func (r rateLimitQueryStepRunLimitsStepRateLimit) Field() rateLimitPrismaFields { + return rateLimitFieldStepRunLimits } -// base struct -type workflowRunQueryTriggeredByWorkflowRunTriggeredBy struct{} +// WorkflowRunStickyState acts as a namespaces to access query methods for the WorkflowRunStickyState model +var WorkflowRunStickyState = workflowRunStickyStateQuery{} -type workflowRunQueryTriggeredByRelations struct{} +// workflowRunStickyStateQuery exposes query functions for the workflowRunStickyState model +type workflowRunStickyStateQuery struct { -// WorkflowRun -> TriggeredBy -// -// @relation -// @optional -func (workflowRunQueryTriggeredByRelations) Where( - params ...WorkflowRunTriggeredByWhereParam, -) workflowRunDefaultParam { + // ID + // + // @required + ID workflowRunStickyStateQueryIDBigInt + + // CreatedAt + // + // @required + CreatedAt workflowRunStickyStateQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt workflowRunStickyStateQueryUpdatedAtDateTime + + // TenantID + // + // @required + TenantID workflowRunStickyStateQueryTenantIDString + + WorkflowRun workflowRunStickyStateQueryWorkflowRunRelations + + // WorkflowRunID + // + // @required + // @unique + WorkflowRunID workflowRunStickyStateQueryWorkflowRunIDString + + // DesiredWorkerID + // + // @optional + DesiredWorkerID workflowRunStickyStateQueryDesiredWorkerIDString + + // Strategy + // + // @required + Strategy workflowRunStickyStateQueryStrategyStickyStrategy +} + +func (workflowRunStickyStateQuery) Not(params ...WorkflowRunStickyStateWhereParam) workflowRunStickyStateDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workflowRunDefaultParam{ + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "triggeredBy", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -func (workflowRunQueryTriggeredByRelations) Fetch() workflowRunToTriggeredByFindUnique { - var v workflowRunToTriggeredByFindUnique - - v.query.Operation = "query" - v.query.Method = "triggeredBy" - v.query.Outputs = workflowRunTriggeredByOutput - - return v -} - -func (r workflowRunQueryTriggeredByRelations) Link( - params WorkflowRunTriggeredByWhereParam, -) workflowRunSetParam { +func (workflowRunStickyStateQuery) Or(params ...WorkflowRunStickyStateWhereParam) workflowRunStickyStateDefaultParam { var fields []builder.Field - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - fields = append(fields, f) - - return workflowRunSetParam{ + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "triggeredBy", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, + Name: "OR", + List: true, + WrapList: true, + Fields: fields, }, } } -func (r workflowRunQueryTriggeredByRelations) Unlink() workflowRunSetParam { - var v workflowRunSetParam +func (workflowRunStickyStateQuery) And(params ...WorkflowRunStickyStateWhereParam) workflowRunStickyStateDefaultParam { + var fields []builder.Field - v = workflowRunSetParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "triggeredBy", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, + Name: "AND", + List: true, + WrapList: true, + Fields: fields, }, } - - return v -} - -func (r workflowRunQueryTriggeredByWorkflowRunTriggeredBy) Field() workflowRunPrismaFields { - return workflowRunFieldTriggeredBy } // base struct -type workflowRunQueryErrorString struct{} +type workflowRunStickyStateQueryIDBigInt struct{} -// Set the optional value of Error -func (r workflowRunQueryErrorString) Set(value string) workflowRunSetParam { +// Set the required value of ID +func (r workflowRunStickyStateQueryIDBigInt) Set(value BigInt) workflowRunStickyStateSetParam { - return workflowRunSetParam{ + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "error", + Name: "id", Value: value, }, } } -// Set the optional value of Error dynamically -func (r workflowRunQueryErrorString) SetIfPresent(value *String) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of Error dynamically -func (r workflowRunQueryErrorString) SetOptional(value *String) workflowRunSetParam { +// Set the optional value of ID dynamically +func (r workflowRunStickyStateQueryIDBigInt) SetIfPresent(value *BigInt) workflowRunStickyStateSetParam { if value == nil { - - var v *string - return workflowRunSetParam{ - data: builder.Field{ - Name: "error", - Value: v, - }, - } + return workflowRunStickyStateSetParam{} } return r.Set(*value) } -func (r workflowRunQueryErrorString) Equals(value string) workflowRunWithPrismaErrorEqualsParam { - - return workflowRunWithPrismaErrorEqualsParam{ +// Increment the required value of ID +func (r workflowRunStickyStateQueryIDBigInt) Increment(value BigInt) workflowRunStickyStateSetParam { + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "increment", Value: value, }, }, @@ -98880,67 +100476,21 @@ func (r workflowRunQueryErrorString) Equals(value string) workflowRunWithPrismaE } } -func (r workflowRunQueryErrorString) EqualsIfPresent(value *string) workflowRunWithPrismaErrorEqualsParam { +func (r workflowRunStickyStateQueryIDBigInt) IncrementIfPresent(value *BigInt) workflowRunStickyStateSetParam { if value == nil { - return workflowRunWithPrismaErrorEqualsParam{} - } - return r.Equals(*value) -} - -func (r workflowRunQueryErrorString) EqualsOptional(value *String) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryErrorString) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunQueryErrorString) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "error", - Value: direction, - }, - } -} - -func (r workflowRunQueryErrorString) Cursor(cursor string) workflowRunCursorParam { - return workflowRunCursorParam{ - data: builder.Field{ - Name: "error", - Value: cursor, - }, + return workflowRunStickyStateSetParam{} } + return r.Increment(*value) } -func (r workflowRunQueryErrorString) In(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// Decrement the required value of ID +func (r workflowRunStickyStateQueryIDBigInt) Decrement(value BigInt) workflowRunStickyStateSetParam { + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ - { - Name: "in", + builder.Field{ + Name: "decrement", Value: value, }, }, @@ -98948,20 +100498,21 @@ func (r workflowRunQueryErrorString) In(value []string) workflowRunDefaultParam } } -func (r workflowRunQueryErrorString) InIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) DecrementIfPresent(value *BigInt) workflowRunStickyStateSetParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateSetParam{} } - return r.In(value) + return r.Decrement(*value) } -func (r workflowRunQueryErrorString) NotIn(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// Multiply the required value of ID +func (r workflowRunStickyStateQueryIDBigInt) Multiply(value BigInt) workflowRunStickyStateSetParam { + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ - { - Name: "notIn", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -98969,20 +100520,21 @@ func (r workflowRunQueryErrorString) NotIn(value []string) workflowRunDefaultPar } } -func (r workflowRunQueryErrorString) NotInIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) MultiplyIfPresent(value *BigInt) workflowRunStickyStateSetParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateSetParam{} } - return r.NotIn(value) + return r.Multiply(*value) } -func (r workflowRunQueryErrorString) Lt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +// Divide the required value of ID +func (r workflowRunStickyStateQueryIDBigInt) Divide(value BigInt) workflowRunStickyStateSetParam { + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ - { - Name: "lt", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -98990,20 +100542,21 @@ func (r workflowRunQueryErrorString) Lt(value string) workflowRunDefaultParam { } } -func (r workflowRunQueryErrorString) LtIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) DivideIfPresent(value *BigInt) workflowRunStickyStateSetParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateSetParam{} } - return r.Lt(*value) + return r.Divide(*value) } -func (r workflowRunQueryErrorString) Lte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) Equals(value BigInt) workflowRunStickyStateWithPrismaIDEqualsUniqueParam { + + return workflowRunStickyStateWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { - Name: "lte", + Name: "equals", Value: value, }, }, @@ -99011,62 +100564,38 @@ func (r workflowRunQueryErrorString) Lte(value string) workflowRunDefaultParam { } } -func (r workflowRunQueryErrorString) LteIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) EqualsIfPresent(value *BigInt) workflowRunStickyStateWithPrismaIDEqualsUniqueParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateWithPrismaIDEqualsUniqueParam{} } - return r.Lte(*value) + return r.Equals(*value) } -func (r workflowRunQueryErrorString) Gt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) Order(direction SortOrder) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, + Name: "id", + Value: direction, }, } } -func (r workflowRunQueryErrorString) GtIfPresent(value *string) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.Gt(*value) -} - -func (r workflowRunQueryErrorString) Gte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) Cursor(cursor BigInt) workflowRunStickyStateCursorParam { + return workflowRunStickyStateCursorParam{ data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, + Name: "id", + Value: cursor, }, } } -func (r workflowRunQueryErrorString) GteIfPresent(value *string) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.Gte(*value) -} - -func (r workflowRunQueryErrorString) Contains(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) In(value []BigInt) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { - Name: "contains", + Name: "in", Value: value, }, }, @@ -99074,20 +100603,20 @@ func (r workflowRunQueryErrorString) Contains(value string) workflowRunDefaultPa } } -func (r workflowRunQueryErrorString) ContainsIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) InIfPresent(value []BigInt) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } - return r.Contains(*value) + return r.In(value) } -func (r workflowRunQueryErrorString) StartsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) NotIn(value []BigInt) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { - Name: "startsWith", + Name: "notIn", Value: value, }, }, @@ -99095,20 +100624,20 @@ func (r workflowRunQueryErrorString) StartsWith(value string) workflowRunDefault } } -func (r workflowRunQueryErrorString) StartsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) NotInIfPresent(value []BigInt) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } - return r.StartsWith(*value) + return r.NotIn(value) } -func (r workflowRunQueryErrorString) EndsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) Lt(value BigInt) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -99116,20 +100645,20 @@ func (r workflowRunQueryErrorString) EndsWith(value string) workflowRunDefaultPa } } -func (r workflowRunQueryErrorString) EndsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) LtIfPresent(value *BigInt) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } - return r.EndsWith(*value) + return r.Lt(*value) } -func (r workflowRunQueryErrorString) Mode(value QueryMode) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) Lte(value BigInt) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -99137,20 +100666,20 @@ func (r workflowRunQueryErrorString) Mode(value QueryMode) workflowRunDefaultPar } } -func (r workflowRunQueryErrorString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) LteIfPresent(value *BigInt) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } - return r.Mode(*value) + return r.Lte(*value) } -func (r workflowRunQueryErrorString) Not(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) Gt(value BigInt) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -99158,22 +100687,20 @@ func (r workflowRunQueryErrorString) Not(value string) workflowRunDefaultParam { } } -func (r workflowRunQueryErrorString) NotIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) GtIfPresent(value *BigInt) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } - return r.Not(*value) + return r.Gt(*value) } -// deprecated: Use StartsWith instead. - -func (r workflowRunQueryErrorString) HasPrefix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) Gte(value BigInt) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gte", Value: value, }, }, @@ -99181,23 +100708,20 @@ func (r workflowRunQueryErrorString) HasPrefix(value string) workflowRunDefaultP } } -// deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryErrorString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) GteIfPresent(value *BigInt) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } - return r.HasPrefix(*value) + return r.Gte(*value) } -// deprecated: Use EndsWith instead. - -func (r workflowRunQueryErrorString) HasSuffix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryIDBigInt) Not(value BigInt) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { - Name: "ends_with", + Name: "not", Value: value, }, }, @@ -99205,63 +100729,46 @@ func (r workflowRunQueryErrorString) HasSuffix(value string) workflowRunDefaultP } } -// deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryErrorString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryIDBigInt) NotIfPresent(value *BigInt) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } - return r.HasSuffix(*value) + return r.Not(*value) } -func (r workflowRunQueryErrorString) Field() workflowRunPrismaFields { - return workflowRunFieldError +func (r workflowRunStickyStateQueryIDBigInt) Field() workflowRunStickyStatePrismaFields { + return workflowRunStickyStateFieldID } // base struct -type workflowRunQueryStartedAtDateTime struct{} +type workflowRunStickyStateQueryCreatedAtDateTime struct{} -// Set the optional value of StartedAt -func (r workflowRunQueryStartedAtDateTime) Set(value DateTime) workflowRunSetParam { +// Set the required value of CreatedAt +func (r workflowRunStickyStateQueryCreatedAtDateTime) Set(value DateTime) workflowRunStickyStateSetParam { - return workflowRunSetParam{ + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Value: value, }, } } -// Set the optional value of StartedAt dynamically -func (r workflowRunQueryStartedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of StartedAt dynamically -func (r workflowRunQueryStartedAtDateTime) SetOptional(value *DateTime) workflowRunSetParam { +// Set the optional value of CreatedAt dynamically +func (r workflowRunStickyStateQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workflowRunStickyStateSetParam { if value == nil { - - var v *DateTime - return workflowRunSetParam{ - data: builder.Field{ - Name: "startedAt", - Value: v, - }, - } + return workflowRunStickyStateSetParam{} } return r.Set(*value) } -func (r workflowRunQueryStartedAtDateTime) Equals(value DateTime) workflowRunWithPrismaStartedAtEqualsParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) Equals(value DateTime) workflowRunStickyStateWithPrismaCreatedAtEqualsParam { - return workflowRunWithPrismaStartedAtEqualsParam{ + return workflowRunStickyStateWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -99272,64 +100779,35 @@ func (r workflowRunQueryStartedAtDateTime) Equals(value DateTime) workflowRunWit } } -func (r workflowRunQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaStartedAtEqualsParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunStickyStateWithPrismaCreatedAtEqualsParam { if value == nil { - return workflowRunWithPrismaStartedAtEqualsParam{} + return workflowRunStickyStateWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "startedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryStartedAtDateTime) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "startedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunQueryStartedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) Order(direction SortOrder) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Value: direction, }, } } -func (r workflowRunQueryStartedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) Cursor(cursor DateTime) workflowRunStickyStateCursorParam { + return workflowRunStickyStateCursorParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Value: cursor, }, } } -func (r workflowRunQueryStartedAtDateTime) In(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) In(value []DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -99340,17 +100818,17 @@ func (r workflowRunQueryStartedAtDateTime) In(value []DateTime) workflowRunDefau } } -func (r workflowRunQueryStartedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) InIfPresent(value []DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.In(value) } -func (r workflowRunQueryStartedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) NotIn(value []DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -99361,17 +100839,17 @@ func (r workflowRunQueryStartedAtDateTime) NotIn(value []DateTime) workflowRunDe } } -func (r workflowRunQueryStartedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryStartedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) Lt(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -99382,17 +100860,17 @@ func (r workflowRunQueryStartedAtDateTime) Lt(value DateTime) workflowRunDefault } } -func (r workflowRunQueryStartedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryStartedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) Lte(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -99403,17 +100881,17 @@ func (r workflowRunQueryStartedAtDateTime) Lte(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryStartedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryStartedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) Gt(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -99424,17 +100902,17 @@ func (r workflowRunQueryStartedAtDateTime) Gt(value DateTime) workflowRunDefault } } -func (r workflowRunQueryStartedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryStartedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) Gte(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -99445,17 +100923,17 @@ func (r workflowRunQueryStartedAtDateTime) Gte(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryStartedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryStartedAtDateTime) Not(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) Not(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "not", @@ -99466,19 +100944,19 @@ func (r workflowRunQueryStartedAtDateTime) Not(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryStartedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r workflowRunQueryStartedAtDateTime) Before(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) Before(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -99490,19 +100968,19 @@ func (r workflowRunQueryStartedAtDateTime) Before(value DateTime) workflowRunDef } // deprecated: Use LtIfPresent instead. -func (r workflowRunQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r workflowRunQueryStartedAtDateTime) After(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) After(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -99514,19 +100992,19 @@ func (r workflowRunQueryStartedAtDateTime) After(value DateTime) workflowRunDefa } // deprecated: Use GtIfPresent instead. -func (r workflowRunQueryStartedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r workflowRunQueryStartedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) BeforeEquals(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -99538,19 +101016,19 @@ func (r workflowRunQueryStartedAtDateTime) BeforeEquals(value DateTime) workflow } // deprecated: Use LteIfPresent instead. -func (r workflowRunQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r workflowRunQueryStartedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryCreatedAtDateTime) AfterEquals(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -99562,62 +101040,46 @@ func (r workflowRunQueryStartedAtDateTime) AfterEquals(value DateTime) workflowR } // deprecated: Use GteIfPresent instead. -func (r workflowRunQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.AfterEquals(*value) } -func (r workflowRunQueryStartedAtDateTime) Field() workflowRunPrismaFields { - return workflowRunFieldStartedAt +func (r workflowRunStickyStateQueryCreatedAtDateTime) Field() workflowRunStickyStatePrismaFields { + return workflowRunStickyStateFieldCreatedAt } // base struct -type workflowRunQueryFinishedAtDateTime struct{} +type workflowRunStickyStateQueryUpdatedAtDateTime struct{} -// Set the optional value of FinishedAt -func (r workflowRunQueryFinishedAtDateTime) Set(value DateTime) workflowRunSetParam { +// Set the required value of UpdatedAt +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Set(value DateTime) workflowRunStickyStateSetParam { - return workflowRunSetParam{ + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of FinishedAt dynamically -func (r workflowRunQueryFinishedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of FinishedAt dynamically -func (r workflowRunQueryFinishedAtDateTime) SetOptional(value *DateTime) workflowRunSetParam { +// Set the optional value of UpdatedAt dynamically +func (r workflowRunStickyStateQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workflowRunStickyStateSetParam { if value == nil { - - var v *DateTime - return workflowRunSetParam{ - data: builder.Field{ - Name: "finishedAt", - Value: v, - }, - } + return workflowRunStickyStateSetParam{} } return r.Set(*value) } -func (r workflowRunQueryFinishedAtDateTime) Equals(value DateTime) workflowRunWithPrismaFinishedAtEqualsParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Equals(value DateTime) workflowRunStickyStateWithPrismaUpdatedAtEqualsParam { - return workflowRunWithPrismaFinishedAtEqualsParam{ + return workflowRunStickyStateWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -99628,20 +101090,38 @@ func (r workflowRunQueryFinishedAtDateTime) Equals(value DateTime) workflowRunWi } } -func (r workflowRunQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaFinishedAtEqualsParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunStickyStateWithPrismaUpdatedAtEqualsParam { if value == nil { - return workflowRunWithPrismaFinishedAtEqualsParam{} + return workflowRunStickyStateWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Order(direction SortOrder) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", + Value: direction, + }, + } +} + +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Cursor(cursor DateTime) workflowRunStickyStateCursorParam { + return workflowRunStickyStateCursorParam{ + data: builder.Field{ + Name: "updatedAt", + Value: cursor, + }, + } +} + +func (r workflowRunStickyStateQueryUpdatedAtDateTime) In(value []DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ + data: builder.Field{ + Name: "updatedAt", Fields: []builder.Field{ { - Name: "equals", + Name: "in", Value: value, }, }, @@ -99649,64 +101129,17 @@ func (r workflowRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) work } } -func (r workflowRunQueryFinishedAtDateTime) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "finishedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunQueryFinishedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "finishedAt", - Value: direction, - }, - } -} - -func (r workflowRunQueryFinishedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { - return workflowRunCursorParam{ - data: builder.Field{ - Name: "finishedAt", - Value: cursor, - }, - } -} - -func (r workflowRunQueryFinishedAtDateTime) In(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "finishedAt", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryFinishedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.In(value) } -func (r workflowRunQueryFinishedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) NotIn(value []DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -99717,17 +101150,17 @@ func (r workflowRunQueryFinishedAtDateTime) NotIn(value []DateTime) workflowRunD } } -func (r workflowRunQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryFinishedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Lt(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -99738,17 +101171,17 @@ func (r workflowRunQueryFinishedAtDateTime) Lt(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryFinishedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryFinishedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Lte(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -99759,17 +101192,17 @@ func (r workflowRunQueryFinishedAtDateTime) Lte(value DateTime) workflowRunDefau } } -func (r workflowRunQueryFinishedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryFinishedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Gt(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -99780,17 +101213,17 @@ func (r workflowRunQueryFinishedAtDateTime) Gt(value DateTime) workflowRunDefaul } } -func (r workflowRunQueryFinishedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryFinishedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Gte(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -99801,17 +101234,17 @@ func (r workflowRunQueryFinishedAtDateTime) Gte(value DateTime) workflowRunDefau } } -func (r workflowRunQueryFinishedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryFinishedAtDateTime) Not(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Not(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "not", @@ -99822,19 +101255,19 @@ func (r workflowRunQueryFinishedAtDateTime) Not(value DateTime) workflowRunDefau } } -func (r workflowRunQueryFinishedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r workflowRunQueryFinishedAtDateTime) Before(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Before(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -99846,19 +101279,19 @@ func (r workflowRunQueryFinishedAtDateTime) Before(value DateTime) workflowRunDe } // deprecated: Use LtIfPresent instead. -func (r workflowRunQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r workflowRunQueryFinishedAtDateTime) After(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) After(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -99870,19 +101303,19 @@ func (r workflowRunQueryFinishedAtDateTime) After(value DateTime) workflowRunDef } // deprecated: Use GtIfPresent instead. -func (r workflowRunQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r workflowRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -99894,19 +101327,19 @@ func (r workflowRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) workflo } // deprecated: Use LteIfPresent instead. -func (r workflowRunQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r workflowRunQueryFinishedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryUpdatedAtDateTime) AfterEquals(value DateTime) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -99918,382 +101351,385 @@ func (r workflowRunQueryFinishedAtDateTime) AfterEquals(value DateTime) workflow } // deprecated: Use GteIfPresent instead. -func (r workflowRunQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.AfterEquals(*value) } -func (r workflowRunQueryFinishedAtDateTime) Field() workflowRunPrismaFields { - return workflowRunFieldFinishedAt +func (r workflowRunStickyStateQueryUpdatedAtDateTime) Field() workflowRunStickyStatePrismaFields { + return workflowRunStickyStateFieldUpdatedAt } // base struct -type workflowRunQueryChildrenWorkflowRun struct{} +type workflowRunStickyStateQueryTenantIDString struct{} -type workflowRunQueryChildrenRelations struct{} +// Set the required value of TenantID +func (r workflowRunStickyStateQueryTenantIDString) Set(value string) workflowRunStickyStateWithPrismaTenantIDSetParam { -// WorkflowRun -> Children -// -// @relation -// @required -func (workflowRunQueryChildrenRelations) Some( - params ...WorkflowRunWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field + return workflowRunStickyStateWithPrismaTenantIDSetParam{ + data: builder.Field{ + Name: "tenantId", + Value: value, + }, + } - for _, q := range params { - fields = append(fields, q.field()) +} + +// Set the optional value of TenantID dynamically +func (r workflowRunStickyStateQueryTenantIDString) SetIfPresent(value *String) workflowRunStickyStateWithPrismaTenantIDSetParam { + if value == nil { + return workflowRunStickyStateWithPrismaTenantIDSetParam{} } - return workflowRunDefaultParam{ + return r.Set(*value) +} + +func (r workflowRunStickyStateQueryTenantIDString) Equals(value string) workflowRunStickyStateWithPrismaTenantIDEqualsParam { + + return workflowRunStickyStateWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "children", + Name: "tenantId", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -// WorkflowRun -> Children -// -// @relation -// @required -func (workflowRunQueryChildrenRelations) Every( - params ...WorkflowRunWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field +func (r workflowRunStickyStateQueryTenantIDString) EqualsIfPresent(value *string) workflowRunStickyStateWithPrismaTenantIDEqualsParam { + if value == nil { + return workflowRunStickyStateWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) +} - for _, q := range params { - fields = append(fields, q.field()) +func (r workflowRunStickyStateQueryTenantIDString) Order(direction SortOrder) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Value: direction, + }, } +} - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryTenantIDString) Cursor(cursor string) workflowRunStickyStateCursorParam { + return workflowRunStickyStateCursorParam{ data: builder.Field{ - Name: "children", + Name: "tenantId", + Value: cursor, + }, + } +} + +func (r workflowRunStickyStateQueryTenantIDString) In(value []string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ + data: builder.Field{ + Name: "tenantId", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -// WorkflowRun -> Children -// -// @relation -// @required -func (workflowRunQueryChildrenRelations) None( - params ...WorkflowRunWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r workflowRunStickyStateQueryTenantIDString) InIfPresent(value []string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } + return r.In(value) +} - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryTenantIDString) NotIn(value []string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "children", + Name: "tenantId", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "notIn", + Value: value, }, }, }, } } -func (workflowRunQueryChildrenRelations) Fetch( - - params ...WorkflowRunWhereParam, - -) workflowRunToChildrenFindMany { - var v workflowRunToChildrenFindMany - - v.query.Operation = "query" - v.query.Method = "children" - v.query.Outputs = workflowRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } +func (r workflowRunStickyStateQueryTenantIDString) NotInIfPresent(value []string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } + return r.NotIn(value) +} - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r workflowRunStickyStateQueryTenantIDString) Lt(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, } - - return v } -func (r workflowRunQueryChildrenRelations) Link( - params ...WorkflowRunWhereParam, -) workflowRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r workflowRunStickyStateQueryTenantIDString) LtIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } + return r.Lt(*value) +} - return workflowRunSetParam{ +func (r workflowRunStickyStateQueryTenantIDString) Lte(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "children", + Name: "tenantId", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "lte", + Value: value, }, }, }, } } -func (r workflowRunQueryChildrenRelations) Unlink( - params ...WorkflowRunWhereParam, -) workflowRunSetParam { - var v workflowRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r workflowRunStickyStateQueryTenantIDString) LteIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } - v = workflowRunSetParam{ + return r.Lte(*value) +} + +func (r workflowRunStickyStateQueryTenantIDString) Gt(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "children", + Name: "tenantId", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "gt", + Value: value, }, }, }, } - - return v } -func (r workflowRunQueryChildrenWorkflowRun) Field() workflowRunPrismaFields { - return workflowRunFieldChildren +func (r workflowRunStickyStateQueryTenantIDString) GtIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} + } + return r.Gt(*value) } -// base struct -type workflowRunQueryScheduledChildrenWorkflowTriggerScheduledRef struct{} - -type workflowRunQueryScheduledChildrenRelations struct{} - -// WorkflowRun -> ScheduledChildren -// -// @relation -// @required -func (workflowRunQueryScheduledChildrenRelations) Some( - params ...WorkflowTriggerScheduledRefWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field +func (r workflowRunStickyStateQueryTenantIDString) Gte(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} - for _, q := range params { - fields = append(fields, q.field()) +func (r workflowRunStickyStateQueryTenantIDString) GteIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } + return r.Gte(*value) +} - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryTenantIDString) Contains(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "scheduledChildren", + Name: "tenantId", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "contains", + Value: value, }, }, }, } } -// WorkflowRun -> ScheduledChildren -// -// @relation -// @required -func (workflowRunQueryScheduledChildrenRelations) Every( - params ...WorkflowTriggerScheduledRefWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r workflowRunStickyStateQueryTenantIDString) ContainsIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } + return r.Contains(*value) +} - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryTenantIDString) StartsWith(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "scheduledChildren", + Name: "tenantId", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "startsWith", + Value: value, }, }, }, } } -// WorkflowRun -> ScheduledChildren -// -// @relation -// @required -func (workflowRunQueryScheduledChildrenRelations) None( - params ...WorkflowTriggerScheduledRefWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r workflowRunStickyStateQueryTenantIDString) StartsWithIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } + return r.StartsWith(*value) +} - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryTenantIDString) EndsWith(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "scheduledChildren", + Name: "tenantId", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "endsWith", + Value: value, }, }, }, } } -func (workflowRunQueryScheduledChildrenRelations) Fetch( - - params ...WorkflowTriggerScheduledRefWhereParam, - -) workflowRunToScheduledChildrenFindMany { - var v workflowRunToScheduledChildrenFindMany - - v.query.Operation = "query" - v.query.Method = "scheduledChildren" - v.query.Outputs = workflowTriggerScheduledRefOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } +func (r workflowRunStickyStateQueryTenantIDString) EndsWithIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } + return r.EndsWith(*value) +} - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r workflowRunStickyStateQueryTenantIDString) Mode(value QueryMode) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, } +} - return v +func (r workflowRunStickyStateQueryTenantIDString) ModeIfPresent(value *QueryMode) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} + } + return r.Mode(*value) } -func (r workflowRunQueryScheduledChildrenRelations) Link( - params ...WorkflowTriggerScheduledRefWhereParam, -) workflowRunSetParam { - var fields []builder.Field +func (r workflowRunStickyStateQueryTenantIDString) Not(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} - for _, q := range params { - fields = append(fields, q.field()) +func (r workflowRunStickyStateQueryTenantIDString) NotIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } + return r.Not(*value) +} - return workflowRunSetParam{ +// deprecated: Use StartsWith instead. + +func (r workflowRunStickyStateQueryTenantIDString) HasPrefix(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "scheduledChildren", + Name: "tenantId", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "starts_with", + Value: value, }, }, }, } } -func (r workflowRunQueryScheduledChildrenRelations) Unlink( - params ...WorkflowTriggerScheduledRefWhereParam, -) workflowRunSetParam { - var v workflowRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunStickyStateQueryTenantIDString) HasPrefixIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} } - v = workflowRunSetParam{ + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r workflowRunStickyStateQueryTenantIDString) HasSuffix(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "scheduledChildren", + Name: "tenantId", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "ends_with", + Value: value, }, }, }, } +} - return v +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunStickyStateQueryTenantIDString) HasSuffixIfPresent(value *string) workflowRunStickyStateDefaultParam { + if value == nil { + return workflowRunStickyStateDefaultParam{} + } + return r.HasSuffix(*value) } -func (r workflowRunQueryScheduledChildrenWorkflowTriggerScheduledRef) Field() workflowRunPrismaFields { - return workflowRunFieldScheduledChildren +func (r workflowRunStickyStateQueryTenantIDString) Field() workflowRunStickyStatePrismaFields { + return workflowRunStickyStateFieldTenantID } // base struct -type workflowRunQueryParentWorkflowRun struct{} +type workflowRunStickyStateQueryWorkflowRunWorkflowRun struct{} -type workflowRunQueryParentRelations struct{} +type workflowRunStickyStateQueryWorkflowRunRelations struct{} -// WorkflowRun -> Parent +// WorkflowRunStickyState -> WorkflowRun // // @relation -// @optional -func (workflowRunQueryParentRelations) Where( +// @required +func (workflowRunStickyStateQueryWorkflowRunRelations) Where( params ...WorkflowRunWhereParam, -) workflowRunDefaultParam { +) workflowRunStickyStateDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workflowRunDefaultParam{ + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parent", + Name: "workflowRun", Fields: []builder.Field{ { Name: "is", @@ -100304,31 +101740,31 @@ func (workflowRunQueryParentRelations) Where( } } -func (workflowRunQueryParentRelations) Fetch() workflowRunToParentFindUnique { - var v workflowRunToParentFindUnique +func (workflowRunStickyStateQueryWorkflowRunRelations) Fetch() workflowRunStickyStateToWorkflowRunFindUnique { + var v workflowRunStickyStateToWorkflowRunFindUnique v.query.Operation = "query" - v.query.Method = "parent" + v.query.Method = "workflowRun" v.query.Outputs = workflowRunOutput return v } -func (r workflowRunQueryParentRelations) Link( +func (r workflowRunStickyStateQueryWorkflowRunRelations) Link( params WorkflowRunWhereParam, -) workflowRunSetParam { +) workflowRunStickyStateWithPrismaWorkflowRunSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return workflowRunSetParam{} + return workflowRunStickyStateWithPrismaWorkflowRunSetParam{} } fields = append(fields, f) - return workflowRunSetParam{ + return workflowRunStickyStateWithPrismaWorkflowRunSetParam{ data: builder.Field{ - Name: "parent", + Name: "workflowRun", Fields: []builder.Field{ { Name: "connect", @@ -100339,12 +101775,12 @@ func (r workflowRunQueryParentRelations) Link( } } -func (r workflowRunQueryParentRelations) Unlink() workflowRunSetParam { - var v workflowRunSetParam +func (r workflowRunStickyStateQueryWorkflowRunRelations) Unlink() workflowRunStickyStateWithPrismaWorkflowRunSetParam { + var v workflowRunStickyStateWithPrismaWorkflowRunSetParam - v = workflowRunSetParam{ + v = workflowRunStickyStateWithPrismaWorkflowRunSetParam{ data: builder.Field{ - Name: "parent", + Name: "workflowRun", Fields: []builder.Field{ { Name: "disconnect", @@ -100357,55 +101793,39 @@ func (r workflowRunQueryParentRelations) Unlink() workflowRunSetParam { return v } -func (r workflowRunQueryParentWorkflowRun) Field() workflowRunPrismaFields { - return workflowRunFieldParent +func (r workflowRunStickyStateQueryWorkflowRunWorkflowRun) Field() workflowRunStickyStatePrismaFields { + return workflowRunStickyStateFieldWorkflowRun } // base struct -type workflowRunQueryParentIDString struct{} +type workflowRunStickyStateQueryWorkflowRunIDString struct{} -// Set the optional value of ParentID -func (r workflowRunQueryParentIDString) Set(value string) workflowRunSetParam { +// Set the required value of WorkflowRunID +func (r workflowRunStickyStateQueryWorkflowRunIDString) Set(value string) workflowRunStickyStateSetParam { - return workflowRunSetParam{ + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Value: value, }, } } -// Set the optional value of ParentID dynamically -func (r workflowRunQueryParentIDString) SetIfPresent(value *String) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of ParentID dynamically -func (r workflowRunQueryParentIDString) SetOptional(value *String) workflowRunSetParam { +// Set the optional value of WorkflowRunID dynamically +func (r workflowRunStickyStateQueryWorkflowRunIDString) SetIfPresent(value *String) workflowRunStickyStateSetParam { if value == nil { - - var v *string - return workflowRunSetParam{ - data: builder.Field{ - Name: "parentId", - Value: v, - }, - } + return workflowRunStickyStateSetParam{} } return r.Set(*value) } -func (r workflowRunQueryParentIDString) Equals(value string) workflowRunWithPrismaParentIDEqualsParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) Equals(value string) workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam { - return workflowRunWithPrismaParentIDEqualsParam{ + return workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "equals", @@ -100416,64 +101836,35 @@ func (r workflowRunQueryParentIDString) Equals(value string) workflowRunWithPris } } -func (r workflowRunQueryParentIDString) EqualsIfPresent(value *string) workflowRunWithPrismaParentIDEqualsParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) EqualsIfPresent(value *string) workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam { if value == nil { - return workflowRunWithPrismaParentIDEqualsParam{} + return workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r workflowRunQueryParentIDString) EqualsOptional(value *String) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "parentId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryParentIDString) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "parentId", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunQueryParentIDString) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Order(direction SortOrder) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Value: direction, }, } } -func (r workflowRunQueryParentIDString) Cursor(cursor string) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Cursor(cursor string) workflowRunStickyStateCursorParam { + return workflowRunStickyStateCursorParam{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Value: cursor, }, } } -func (r workflowRunQueryParentIDString) In(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) In(value []string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "in", @@ -100484,17 +101875,17 @@ func (r workflowRunQueryParentIDString) In(value []string) workflowRunDefaultPar } } -func (r workflowRunQueryParentIDString) InIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) InIfPresent(value []string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.In(value) } -func (r workflowRunQueryParentIDString) NotIn(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) NotIn(value []string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "notIn", @@ -100505,17 +101896,17 @@ func (r workflowRunQueryParentIDString) NotIn(value []string) workflowRunDefault } } -func (r workflowRunQueryParentIDString) NotInIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) NotInIfPresent(value []string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.NotIn(value) } -func (r workflowRunQueryParentIDString) Lt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Lt(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "lt", @@ -100526,17 +101917,17 @@ func (r workflowRunQueryParentIDString) Lt(value string) workflowRunDefaultParam } } -func (r workflowRunQueryParentIDString) LtIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) LtIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.Lt(*value) } -func (r workflowRunQueryParentIDString) Lte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Lte(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "lte", @@ -100547,17 +101938,17 @@ func (r workflowRunQueryParentIDString) Lte(value string) workflowRunDefaultPara } } -func (r workflowRunQueryParentIDString) LteIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) LteIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.Lte(*value) } -func (r workflowRunQueryParentIDString) Gt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Gt(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "gt", @@ -100568,17 +101959,17 @@ func (r workflowRunQueryParentIDString) Gt(value string) workflowRunDefaultParam } } -func (r workflowRunQueryParentIDString) GtIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) GtIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.Gt(*value) } -func (r workflowRunQueryParentIDString) Gte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Gte(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "gte", @@ -100589,17 +101980,17 @@ func (r workflowRunQueryParentIDString) Gte(value string) workflowRunDefaultPara } } -func (r workflowRunQueryParentIDString) GteIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) GteIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.Gte(*value) } -func (r workflowRunQueryParentIDString) Contains(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Contains(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "contains", @@ -100610,17 +102001,17 @@ func (r workflowRunQueryParentIDString) Contains(value string) workflowRunDefaul } } -func (r workflowRunQueryParentIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) ContainsIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.Contains(*value) } -func (r workflowRunQueryParentIDString) StartsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) StartsWith(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "startsWith", @@ -100631,17 +102022,17 @@ func (r workflowRunQueryParentIDString) StartsWith(value string) workflowRunDefa } } -func (r workflowRunQueryParentIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) StartsWithIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.StartsWith(*value) } -func (r workflowRunQueryParentIDString) EndsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) EndsWith(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "endsWith", @@ -100652,17 +102043,17 @@ func (r workflowRunQueryParentIDString) EndsWith(value string) workflowRunDefaul } } -func (r workflowRunQueryParentIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) EndsWithIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.EndsWith(*value) } -func (r workflowRunQueryParentIDString) Mode(value QueryMode) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Mode(value QueryMode) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "mode", @@ -100673,17 +102064,17 @@ func (r workflowRunQueryParentIDString) Mode(value QueryMode) workflowRunDefault } } -func (r workflowRunQueryParentIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) ModeIfPresent(value *QueryMode) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.Mode(*value) } -func (r workflowRunQueryParentIDString) Not(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) Not(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "not", @@ -100694,19 +102085,19 @@ func (r workflowRunQueryParentIDString) Not(value string) workflowRunDefaultPara } } -func (r workflowRunQueryParentIDString) NotIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) NotIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunQueryParentIDString) HasPrefix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) HasPrefix(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "starts_with", @@ -100718,19 +102109,19 @@ func (r workflowRunQueryParentIDString) HasPrefix(value string) workflowRunDefau } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryParentIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) HasPrefixIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunQueryParentIDString) HasSuffix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryWorkflowRunIDString) HasSuffix(value string) workflowRunStickyStateParamUnique { + return workflowRunStickyStateParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "ends_with", @@ -100742,137 +102133,49 @@ func (r workflowRunQueryParentIDString) HasSuffix(value string) workflowRunDefau } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryParentIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryWorkflowRunIDString) HasSuffixIfPresent(value *string) workflowRunStickyStateParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateParamUnique{} } return r.HasSuffix(*value) } -func (r workflowRunQueryParentIDString) Field() workflowRunPrismaFields { - return workflowRunFieldParentID -} - -// base struct -type workflowRunQueryParentStepRunStepRun struct{} - -type workflowRunQueryParentStepRunRelations struct{} - -// WorkflowRun -> ParentStepRun -// -// @relation -// @optional -func (workflowRunQueryParentStepRunRelations) Where( - params ...StepRunWhereParam, -) workflowRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "parentStepRun", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, - }, - } -} - -func (workflowRunQueryParentStepRunRelations) Fetch() workflowRunToParentStepRunFindUnique { - var v workflowRunToParentStepRunFindUnique - - v.query.Operation = "query" - v.query.Method = "parentStepRun" - v.query.Outputs = stepRunOutput - - return v -} - -func (r workflowRunQueryParentStepRunRelations) Link( - params StepRunWhereParam, -) workflowRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunSetParam{} - } - - fields = append(fields, f) - - return workflowRunSetParam{ - data: builder.Field{ - Name: "parentStepRun", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, - }, - } -} - -func (r workflowRunQueryParentStepRunRelations) Unlink() workflowRunSetParam { - var v workflowRunSetParam - - v = workflowRunSetParam{ - data: builder.Field{ - Name: "parentStepRun", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, - } - - return v -} - -func (r workflowRunQueryParentStepRunStepRun) Field() workflowRunPrismaFields { - return workflowRunFieldParentStepRun +func (r workflowRunStickyStateQueryWorkflowRunIDString) Field() workflowRunStickyStatePrismaFields { + return workflowRunStickyStateFieldWorkflowRunID } // base struct -type workflowRunQueryParentStepRunIDString struct{} +type workflowRunStickyStateQueryDesiredWorkerIDString struct{} -// Set the optional value of ParentStepRunID -func (r workflowRunQueryParentStepRunIDString) Set(value string) workflowRunSetParam { +// Set the optional value of DesiredWorkerID +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Set(value string) workflowRunStickyStateSetParam { - return workflowRunSetParam{ + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Value: value, }, } } -// Set the optional value of ParentStepRunID dynamically -func (r workflowRunQueryParentStepRunIDString) SetIfPresent(value *String) workflowRunSetParam { +// Set the optional value of DesiredWorkerID dynamically +func (r workflowRunStickyStateQueryDesiredWorkerIDString) SetIfPresent(value *String) workflowRunStickyStateSetParam { if value == nil { - return workflowRunSetParam{} + return workflowRunStickyStateSetParam{} } return r.Set(*value) } -// Set the optional value of ParentStepRunID dynamically -func (r workflowRunQueryParentStepRunIDString) SetOptional(value *String) workflowRunSetParam { +// Set the optional value of DesiredWorkerID dynamically +func (r workflowRunStickyStateQueryDesiredWorkerIDString) SetOptional(value *String) workflowRunStickyStateSetParam { if value == nil { var v *string - return workflowRunSetParam{ + return workflowRunStickyStateSetParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Value: v, }, } @@ -100881,11 +102184,11 @@ func (r workflowRunQueryParentStepRunIDString) SetOptional(value *String) workfl return r.Set(*value) } -func (r workflowRunQueryParentStepRunIDString) Equals(value string) workflowRunWithPrismaParentStepRunIDEqualsParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Equals(value string) workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam { - return workflowRunWithPrismaParentStepRunIDEqualsParam{ + return workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "equals", @@ -100896,17 +102199,17 @@ func (r workflowRunQueryParentStepRunIDString) Equals(value string) workflowRunW } } -func (r workflowRunQueryParentStepRunIDString) EqualsIfPresent(value *string) workflowRunWithPrismaParentStepRunIDEqualsParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) EqualsIfPresent(value *string) workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam { if value == nil { - return workflowRunWithPrismaParentStepRunIDEqualsParam{} + return workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryParentStepRunIDString) EqualsOptional(value *String) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) EqualsOptional(value *String) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "equals", @@ -100917,11 +102220,11 @@ func (r workflowRunQueryParentStepRunIDString) EqualsOptional(value *String) wor } } -func (r workflowRunQueryParentStepRunIDString) IsNull() workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) IsNull() workflowRunStickyStateDefaultParam { var str *string = nil - return workflowRunDefaultParam{ + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "equals", @@ -100932,28 +102235,28 @@ func (r workflowRunQueryParentStepRunIDString) IsNull() workflowRunDefaultParam } } -func (r workflowRunQueryParentStepRunIDString) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Order(direction SortOrder) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Value: direction, }, } } -func (r workflowRunQueryParentStepRunIDString) Cursor(cursor string) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Cursor(cursor string) workflowRunStickyStateCursorParam { + return workflowRunStickyStateCursorParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Value: cursor, }, } } -func (r workflowRunQueryParentStepRunIDString) In(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) In(value []string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "in", @@ -100964,17 +102267,17 @@ func (r workflowRunQueryParentStepRunIDString) In(value []string) workflowRunDef } } -func (r workflowRunQueryParentStepRunIDString) InIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) InIfPresent(value []string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.In(value) } -func (r workflowRunQueryParentStepRunIDString) NotIn(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) NotIn(value []string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "notIn", @@ -100985,17 +102288,17 @@ func (r workflowRunQueryParentStepRunIDString) NotIn(value []string) workflowRun } } -func (r workflowRunQueryParentStepRunIDString) NotInIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) NotInIfPresent(value []string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryParentStepRunIDString) Lt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Lt(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "lt", @@ -101006,17 +102309,17 @@ func (r workflowRunQueryParentStepRunIDString) Lt(value string) workflowRunDefau } } -func (r workflowRunQueryParentStepRunIDString) LtIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) LtIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Lt(*value) } -func (r workflowRunQueryParentStepRunIDString) Lte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Lte(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "lte", @@ -101027,17 +102330,17 @@ func (r workflowRunQueryParentStepRunIDString) Lte(value string) workflowRunDefa } } -func (r workflowRunQueryParentStepRunIDString) LteIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) LteIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Lte(*value) } -func (r workflowRunQueryParentStepRunIDString) Gt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Gt(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "gt", @@ -101048,17 +102351,17 @@ func (r workflowRunQueryParentStepRunIDString) Gt(value string) workflowRunDefau } } -func (r workflowRunQueryParentStepRunIDString) GtIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) GtIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Gt(*value) } -func (r workflowRunQueryParentStepRunIDString) Gte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Gte(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "gte", @@ -101069,17 +102372,17 @@ func (r workflowRunQueryParentStepRunIDString) Gte(value string) workflowRunDefa } } -func (r workflowRunQueryParentStepRunIDString) GteIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) GteIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Gte(*value) } -func (r workflowRunQueryParentStepRunIDString) Contains(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Contains(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "contains", @@ -101090,17 +102393,17 @@ func (r workflowRunQueryParentStepRunIDString) Contains(value string) workflowRu } } -func (r workflowRunQueryParentStepRunIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) ContainsIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Contains(*value) } -func (r workflowRunQueryParentStepRunIDString) StartsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) StartsWith(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "startsWith", @@ -101111,17 +102414,17 @@ func (r workflowRunQueryParentStepRunIDString) StartsWith(value string) workflow } } -func (r workflowRunQueryParentStepRunIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) StartsWithIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.StartsWith(*value) } -func (r workflowRunQueryParentStepRunIDString) EndsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) EndsWith(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "endsWith", @@ -101132,17 +102435,17 @@ func (r workflowRunQueryParentStepRunIDString) EndsWith(value string) workflowRu } } -func (r workflowRunQueryParentStepRunIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) EndsWithIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.EndsWith(*value) } -func (r workflowRunQueryParentStepRunIDString) Mode(value QueryMode) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Mode(value QueryMode) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "mode", @@ -101153,17 +102456,17 @@ func (r workflowRunQueryParentStepRunIDString) Mode(value QueryMode) workflowRun } } -func (r workflowRunQueryParentStepRunIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) ModeIfPresent(value *QueryMode) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Mode(*value) } -func (r workflowRunQueryParentStepRunIDString) Not(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Not(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "not", @@ -101174,19 +102477,19 @@ func (r workflowRunQueryParentStepRunIDString) Not(value string) workflowRunDefa } } -func (r workflowRunQueryParentStepRunIDString) NotIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) NotIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunQueryParentStepRunIDString) HasPrefix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) HasPrefix(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "starts_with", @@ -101198,19 +102501,19 @@ func (r workflowRunQueryParentStepRunIDString) HasPrefix(value string) workflowR } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryParentStepRunIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) HasPrefixIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunQueryParentStepRunIDString) HasSuffix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryDesiredWorkerIDString) HasSuffix(value string) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "parentStepRunId", + Name: "desiredWorkerId", Fields: []builder.Field{ { Name: "ends_with", @@ -101222,150 +102525,46 @@ func (r workflowRunQueryParentStepRunIDString) HasSuffix(value string) workflowR } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryParentStepRunIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryDesiredWorkerIDString) HasSuffixIfPresent(value *string) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.HasSuffix(*value) } -func (r workflowRunQueryParentStepRunIDString) Field() workflowRunPrismaFields { - return workflowRunFieldParentStepRunID +func (r workflowRunStickyStateQueryDesiredWorkerIDString) Field() workflowRunStickyStatePrismaFields { + return workflowRunStickyStateFieldDesiredWorkerID } // base struct -type workflowRunQueryChildIndexInt struct{} +type workflowRunStickyStateQueryStrategyStickyStrategy struct{} -// Set the optional value of ChildIndex -func (r workflowRunQueryChildIndexInt) Set(value int) workflowRunSetParam { +// Set the required value of Strategy +func (r workflowRunStickyStateQueryStrategyStickyStrategy) Set(value StickyStrategy) workflowRunStickyStateWithPrismaStrategySetParam { - return workflowRunSetParam{ + return workflowRunStickyStateWithPrismaStrategySetParam{ data: builder.Field{ - Name: "childIndex", + Name: "strategy", Value: value, }, } } -// Set the optional value of ChildIndex dynamically -func (r workflowRunQueryChildIndexInt) SetIfPresent(value *Int) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of ChildIndex dynamically -func (r workflowRunQueryChildIndexInt) SetOptional(value *Int) workflowRunSetParam { +// Set the optional value of Strategy dynamically +func (r workflowRunStickyStateQueryStrategyStickyStrategy) SetIfPresent(value *StickyStrategy) workflowRunStickyStateWithPrismaStrategySetParam { if value == nil { - - var v *int - return workflowRunSetParam{ - data: builder.Field{ - Name: "childIndex", - Value: v, - }, - } + return workflowRunStickyStateWithPrismaStrategySetParam{} } return r.Set(*value) } -// Increment the optional value of ChildIndex -func (r workflowRunQueryChildIndexInt) Increment(value int) workflowRunSetParam { - return workflowRunSetParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - builder.Field{ - Name: "increment", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryChildIndexInt) IncrementIfPresent(value *int) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - return r.Increment(*value) -} - -// Decrement the optional value of ChildIndex -func (r workflowRunQueryChildIndexInt) Decrement(value int) workflowRunSetParam { - return workflowRunSetParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - builder.Field{ - Name: "decrement", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryChildIndexInt) DecrementIfPresent(value *int) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - return r.Decrement(*value) -} - -// Multiply the optional value of ChildIndex -func (r workflowRunQueryChildIndexInt) Multiply(value int) workflowRunSetParam { - return workflowRunSetParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - builder.Field{ - Name: "multiply", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryChildIndexInt) MultiplyIfPresent(value *int) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - return r.Multiply(*value) -} - -// Divide the optional value of ChildIndex -func (r workflowRunQueryChildIndexInt) Divide(value int) workflowRunSetParam { - return workflowRunSetParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - builder.Field{ - Name: "divide", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryChildIndexInt) DivideIfPresent(value *int) workflowRunSetParam { - if value == nil { - return workflowRunSetParam{} - } - return r.Divide(*value) -} - -func (r workflowRunQueryChildIndexInt) Equals(value int) workflowRunWithPrismaChildIndexEqualsParam { +func (r workflowRunStickyStateQueryStrategyStickyStrategy) Equals(value StickyStrategy) workflowRunStickyStateWithPrismaStrategyEqualsParam { - return workflowRunWithPrismaChildIndexEqualsParam{ + return workflowRunStickyStateWithPrismaStrategyEqualsParam{ data: builder.Field{ - Name: "childIndex", + Name: "strategy", Fields: []builder.Field{ { Name: "equals", @@ -101376,64 +102575,35 @@ func (r workflowRunQueryChildIndexInt) Equals(value int) workflowRunWithPrismaCh } } -func (r workflowRunQueryChildIndexInt) EqualsIfPresent(value *int) workflowRunWithPrismaChildIndexEqualsParam { +func (r workflowRunStickyStateQueryStrategyStickyStrategy) EqualsIfPresent(value *StickyStrategy) workflowRunStickyStateWithPrismaStrategyEqualsParam { if value == nil { - return workflowRunWithPrismaChildIndexEqualsParam{} + return workflowRunStickyStateWithPrismaStrategyEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryChildIndexInt) EqualsOptional(value *Int) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryChildIndexInt) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunQueryChildIndexInt) Order(direction SortOrder) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryStrategyStickyStrategy) Order(direction SortOrder) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "childIndex", + Name: "strategy", Value: direction, }, } } -func (r workflowRunQueryChildIndexInt) Cursor(cursor int) workflowRunCursorParam { - return workflowRunCursorParam{ +func (r workflowRunStickyStateQueryStrategyStickyStrategy) Cursor(cursor StickyStrategy) workflowRunStickyStateCursorParam { + return workflowRunStickyStateCursorParam{ data: builder.Field{ - Name: "childIndex", + Name: "strategy", Value: cursor, }, } } -func (r workflowRunQueryChildIndexInt) In(value []int) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryStrategyStickyStrategy) In(value []StickyStrategy) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "childIndex", + Name: "strategy", Fields: []builder.Field{ { Name: "in", @@ -101444,17 +102614,17 @@ func (r workflowRunQueryChildIndexInt) In(value []int) workflowRunDefaultParam { } } -func (r workflowRunQueryChildIndexInt) InIfPresent(value []int) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryStrategyStickyStrategy) InIfPresent(value []StickyStrategy) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.In(value) } -func (r workflowRunQueryChildIndexInt) NotIn(value []int) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryStrategyStickyStrategy) NotIn(value []StickyStrategy) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "childIndex", + Name: "strategy", Fields: []builder.Field{ { Name: "notIn", @@ -101465,20 +102635,20 @@ func (r workflowRunQueryChildIndexInt) NotIn(value []int) workflowRunDefaultPara } } -func (r workflowRunQueryChildIndexInt) NotInIfPresent(value []int) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryStrategyStickyStrategy) NotInIfPresent(value []StickyStrategy) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} + return workflowRunStickyStateDefaultParam{} } return r.NotIn(value) } -func (r workflowRunQueryChildIndexInt) Lt(value int) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunStickyStateQueryStrategyStickyStrategy) Not(value StickyStrategy) workflowRunStickyStateDefaultParam { + return workflowRunStickyStateDefaultParam{ data: builder.Field{ - Name: "childIndex", + Name: "strategy", Fields: []builder.Field{ { - Name: "lt", + Name: "not", Value: value, }, }, @@ -101486,214 +102656,223 @@ func (r workflowRunQueryChildIndexInt) Lt(value int) workflowRunDefaultParam { } } -func (r workflowRunQueryChildIndexInt) LtIfPresent(value *int) workflowRunDefaultParam { +func (r workflowRunStickyStateQueryStrategyStickyStrategy) NotIfPresent(value *StickyStrategy) workflowRunStickyStateDefaultParam { if value == nil { - return workflowRunDefaultParam{} - } - return r.Lt(*value) -} - -func (r workflowRunQueryChildIndexInt) Lte(value int) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + return workflowRunStickyStateDefaultParam{} } + return r.Not(*value) } -func (r workflowRunQueryChildIndexInt) LteIfPresent(value *int) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.Lte(*value) +func (r workflowRunStickyStateQueryStrategyStickyStrategy) Field() workflowRunStickyStatePrismaFields { + return workflowRunStickyStateFieldStrategy } -func (r workflowRunQueryChildIndexInt) Gt(value int) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, - }, - } -} +// WorkflowRun acts as a namespaces to access query methods for the WorkflowRun model +var WorkflowRun = workflowRunQuery{} -func (r workflowRunQueryChildIndexInt) GtIfPresent(value *int) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.Gt(*value) -} +// workflowRunQuery exposes query functions for the workflowRun model +type workflowRunQuery struct { -func (r workflowRunQueryChildIndexInt) Gte(value int) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, - } -} + // ID + // + // @required + ID workflowRunQueryIDString -func (r workflowRunQueryChildIndexInt) GteIfPresent(value *int) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.Gte(*value) -} + // CreatedAt + // + // @required + CreatedAt workflowRunQueryCreatedAtDateTime -func (r workflowRunQueryChildIndexInt) Not(value int) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, - }, - } -} + // UpdatedAt + // + // @required + UpdatedAt workflowRunQueryUpdatedAtDateTime -func (r workflowRunQueryChildIndexInt) NotIfPresent(value *int) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.Not(*value) + // DeletedAt + // + // @optional + DeletedAt workflowRunQueryDeletedAtDateTime + + // DisplayName + // + // @optional + DisplayName workflowRunQueryDisplayNameString + + Tenant workflowRunQueryTenantRelations + + // TenantID + // + // @required + TenantID workflowRunQueryTenantIDString + + WorkflowVersion workflowRunQueryWorkflowVersionRelations + + // WorkflowVersionID + // + // @required + WorkflowVersionID workflowRunQueryWorkflowVersionIDString + + // ConcurrencyGroupID + // + // @optional + ConcurrencyGroupID workflowRunQueryConcurrencyGroupIDString + + GetGroupKeyRun workflowRunQueryGetGroupKeyRunRelations + + // Status + // + // @required + Status workflowRunQueryStatusWorkflowRunStatus + + JobRuns workflowRunQueryJobRunsRelations + + TriggeredBy workflowRunQueryTriggeredByRelations + + Sticky workflowRunQueryStickyRelations + + // Error + // + // @optional + Error workflowRunQueryErrorString + + // StartedAt + // + // @optional + StartedAt workflowRunQueryStartedAtDateTime + + // FinishedAt + // + // @optional + FinishedAt workflowRunQueryFinishedAtDateTime + + // Duration + // + // @optional + Duration workflowRunQueryDurationInt + + Children workflowRunQueryChildrenRelations + + ScheduledChildren workflowRunQueryScheduledChildrenRelations + + Parent workflowRunQueryParentRelations + + // ParentID + // + // @optional + ParentID workflowRunQueryParentIDString + + ParentStepRun workflowRunQueryParentStepRunRelations + + // ParentStepRunID + // + // @optional + ParentStepRunID workflowRunQueryParentStepRunIDString + + // ChildIndex + // + // @optional + ChildIndex workflowRunQueryChildIndexInt + + // ChildKey + // + // @optional + ChildKey workflowRunQueryChildKeyString + + // AdditionalMetadata + // + // @optional + AdditionalMetadata workflowRunQueryAdditionalMetadataJson } -// deprecated: Use Lt instead. +func (workflowRunQuery) Not(params ...WorkflowRunWhereParam) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } -func (r workflowRunQueryChildIndexInt) LT(value int) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use LtIfPresent instead. -func (r workflowRunQueryChildIndexInt) LTIfPresent(value *int) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.LT(*value) -} +func (workflowRunQuery) Or(params ...WorkflowRunWhereParam) workflowRunDefaultParam { + var fields []builder.Field -// deprecated: Use Lte instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r workflowRunQueryChildIndexInt) LTE(value int) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, + Name: "OR", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use LteIfPresent instead. -func (r workflowRunQueryChildIndexInt) LTEIfPresent(value *int) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.LTE(*value) -} +func (workflowRunQuery) And(params ...WorkflowRunWhereParam) workflowRunDefaultParam { + var fields []builder.Field -// deprecated: Use Gt instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r workflowRunQueryChildIndexInt) GT(value int) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, + Name: "AND", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use GtIfPresent instead. -func (r workflowRunQueryChildIndexInt) GTIfPresent(value *int) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.GT(*value) -} +func (workflowRunQuery) ParentIDParentStepRunIDChildKey( + _parentID WorkflowRunWithPrismaParentIDWhereParam, -// deprecated: Use Gte instead. + _parentStepRunID WorkflowRunWithPrismaParentStepRunIDWhereParam, -func (r workflowRunQueryChildIndexInt) GTE(value int) workflowRunDefaultParam { - return workflowRunDefaultParam{ + _childKey WorkflowRunWithPrismaChildKeyWhereParam, +) WorkflowRunEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _parentID.field()) + fields = append(fields, _parentStepRunID.field()) + fields = append(fields, _childKey.field()) + + return workflowRunEqualsUniqueParam{ data: builder.Field{ - Name: "childIndex", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, + Name: "parentId_parentStepRunId_childKey", + Fields: builder.TransformEquals(fields), }, } } -// deprecated: Use GteIfPresent instead. -func (r workflowRunQueryChildIndexInt) GTEIfPresent(value *int) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.GTE(*value) -} - -func (r workflowRunQueryChildIndexInt) Field() workflowRunPrismaFields { - return workflowRunFieldChildIndex -} - // base struct -type workflowRunQueryChildKeyString struct{} +type workflowRunQueryIDString struct{} -// Set the optional value of ChildKey -func (r workflowRunQueryChildKeyString) Set(value string) workflowRunSetParam { +// Set the required value of ID +func (r workflowRunQueryIDString) Set(value string) workflowRunSetParam { return workflowRunSetParam{ data: builder.Field{ - Name: "childKey", + Name: "id", Value: value, }, } } -// Set the optional value of ChildKey dynamically -func (r workflowRunQueryChildKeyString) SetIfPresent(value *String) workflowRunSetParam { +// Set the optional value of ID dynamically +func (r workflowRunQueryIDString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { return workflowRunSetParam{} } @@ -101701,27 +102880,11 @@ func (r workflowRunQueryChildKeyString) SetIfPresent(value *String) workflowRunS return r.Set(*value) } -// Set the optional value of ChildKey dynamically -func (r workflowRunQueryChildKeyString) SetOptional(value *String) workflowRunSetParam { - if value == nil { - - var v *string - return workflowRunSetParam{ - data: builder.Field{ - Name: "childKey", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r workflowRunQueryChildKeyString) Equals(value string) workflowRunWithPrismaChildKeyEqualsParam { +func (r workflowRunQueryIDString) Equals(value string) workflowRunWithPrismaIDEqualsUniqueParam { - return workflowRunWithPrismaChildKeyEqualsParam{ + return workflowRunWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -101732,64 +102895,35 @@ func (r workflowRunQueryChildKeyString) Equals(value string) workflowRunWithPris } } -func (r workflowRunQueryChildKeyString) EqualsIfPresent(value *string) workflowRunWithPrismaChildKeyEqualsParam { +func (r workflowRunQueryIDString) EqualsIfPresent(value *string) workflowRunWithPrismaIDEqualsUniqueParam { if value == nil { - return workflowRunWithPrismaChildKeyEqualsParam{} + return workflowRunWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r workflowRunQueryChildKeyString) EqualsOptional(value *String) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "childKey", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryChildKeyString) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "childKey", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunQueryChildKeyString) Order(direction SortOrder) workflowRunDefaultParam { +func (r workflowRunQueryIDString) Order(direction SortOrder) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "childKey", + Name: "id", Value: direction, }, } } -func (r workflowRunQueryChildKeyString) Cursor(cursor string) workflowRunCursorParam { +func (r workflowRunQueryIDString) Cursor(cursor string) workflowRunCursorParam { return workflowRunCursorParam{ data: builder.Field{ - Name: "childKey", + Name: "id", Value: cursor, }, } } -func (r workflowRunQueryChildKeyString) In(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) In(value []string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -101800,17 +102934,17 @@ func (r workflowRunQueryChildKeyString) In(value []string) workflowRunDefaultPar } } -func (r workflowRunQueryChildKeyString) InIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) InIfPresent(value []string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.In(value) } -func (r workflowRunQueryChildKeyString) NotIn(value []string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) NotIn(value []string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -101821,17 +102955,17 @@ func (r workflowRunQueryChildKeyString) NotIn(value []string) workflowRunDefault } } -func (r workflowRunQueryChildKeyString) NotInIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) NotInIfPresent(value []string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.NotIn(value) } -func (r workflowRunQueryChildKeyString) Lt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) Lt(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -101842,17 +102976,17 @@ func (r workflowRunQueryChildKeyString) Lt(value string) workflowRunDefaultParam } } -func (r workflowRunQueryChildKeyString) LtIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) LtIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.Lt(*value) } -func (r workflowRunQueryChildKeyString) Lte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) Lte(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -101863,17 +102997,17 @@ func (r workflowRunQueryChildKeyString) Lte(value string) workflowRunDefaultPara } } -func (r workflowRunQueryChildKeyString) LteIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) LteIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.Lte(*value) } -func (r workflowRunQueryChildKeyString) Gt(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) Gt(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -101884,17 +103018,17 @@ func (r workflowRunQueryChildKeyString) Gt(value string) workflowRunDefaultParam } } -func (r workflowRunQueryChildKeyString) GtIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) GtIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.Gt(*value) } -func (r workflowRunQueryChildKeyString) Gte(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) Gte(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -101905,17 +103039,17 @@ func (r workflowRunQueryChildKeyString) Gte(value string) workflowRunDefaultPara } } -func (r workflowRunQueryChildKeyString) GteIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) GteIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.Gte(*value) } -func (r workflowRunQueryChildKeyString) Contains(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) Contains(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -101926,17 +103060,17 @@ func (r workflowRunQueryChildKeyString) Contains(value string) workflowRunDefaul } } -func (r workflowRunQueryChildKeyString) ContainsIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) ContainsIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.Contains(*value) } -func (r workflowRunQueryChildKeyString) StartsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) StartsWith(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -101947,17 +103081,17 @@ func (r workflowRunQueryChildKeyString) StartsWith(value string) workflowRunDefa } } -func (r workflowRunQueryChildKeyString) StartsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) StartsWithIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.StartsWith(*value) } -func (r workflowRunQueryChildKeyString) EndsWith(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) EndsWith(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -101968,17 +103102,17 @@ func (r workflowRunQueryChildKeyString) EndsWith(value string) workflowRunDefaul } } -func (r workflowRunQueryChildKeyString) EndsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) EndsWithIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.EndsWith(*value) } -func (r workflowRunQueryChildKeyString) Mode(value QueryMode) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) Mode(value QueryMode) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -101989,17 +103123,17 @@ func (r workflowRunQueryChildKeyString) Mode(value QueryMode) workflowRunDefault } } -func (r workflowRunQueryChildKeyString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { +func (r workflowRunQueryIDString) ModeIfPresent(value *QueryMode) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.Mode(*value) } -func (r workflowRunQueryChildKeyString) Not(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) Not(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -102010,19 +103144,19 @@ func (r workflowRunQueryChildKeyString) Not(value string) workflowRunDefaultPara } } -func (r workflowRunQueryChildKeyString) NotIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) NotIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunQueryChildKeyString) HasPrefix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) HasPrefix(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -102034,19 +103168,19 @@ func (r workflowRunQueryChildKeyString) HasPrefix(value string) workflowRunDefau } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunQueryChildKeyString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) HasPrefixIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunQueryChildKeyString) HasSuffix(value string) workflowRunDefaultParam { - return workflowRunDefaultParam{ +func (r workflowRunQueryIDString) HasSuffix(value string) workflowRunParamUnique { + return workflowRunParamUnique{ data: builder.Field{ - Name: "childKey", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -102058,34 +103192,34 @@ func (r workflowRunQueryChildKeyString) HasSuffix(value string) workflowRunDefau } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunQueryChildKeyString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryIDString) HasSuffixIfPresent(value *string) workflowRunParamUnique { if value == nil { - return workflowRunDefaultParam{} + return workflowRunParamUnique{} } return r.HasSuffix(*value) } -func (r workflowRunQueryChildKeyString) Field() workflowRunPrismaFields { - return workflowRunFieldChildKey +func (r workflowRunQueryIDString) Field() workflowRunPrismaFields { + return workflowRunFieldID } // base struct -type workflowRunQueryAdditionalMetadataJson struct{} +type workflowRunQueryCreatedAtDateTime struct{} -// Set the optional value of AdditionalMetadata -func (r workflowRunQueryAdditionalMetadataJson) Set(value JSON) workflowRunSetParam { +// Set the required value of CreatedAt +func (r workflowRunQueryCreatedAtDateTime) Set(value DateTime) workflowRunSetParam { return workflowRunSetParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Value: value, }, } } -// Set the optional value of AdditionalMetadata dynamically -func (r workflowRunQueryAdditionalMetadataJson) SetIfPresent(value *JSON) workflowRunSetParam { +// Set the optional value of CreatedAt dynamically +func (r workflowRunQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { if value == nil { return workflowRunSetParam{} } @@ -102093,27 +103227,11 @@ func (r workflowRunQueryAdditionalMetadataJson) SetIfPresent(value *JSON) workfl return r.Set(*value) } -// Set the optional value of AdditionalMetadata dynamically -func (r workflowRunQueryAdditionalMetadataJson) SetOptional(value *JSON) workflowRunSetParam { - if value == nil { - - var v *JSON - return workflowRunSetParam{ - data: builder.Field{ - Name: "additionalMetadata", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r workflowRunQueryAdditionalMetadataJson) Equals(value JSON) workflowRunWithPrismaAdditionalMetadataEqualsParam { +func (r workflowRunQueryCreatedAtDateTime) Equals(value DateTime) workflowRunWithPrismaCreatedAtEqualsParam { - return workflowRunWithPrismaAdditionalMetadataEqualsParam{ + return workflowRunWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -102124,67 +103242,38 @@ func (r workflowRunQueryAdditionalMetadataJson) Equals(value JSON) workflowRunWi } } -func (r workflowRunQueryAdditionalMetadataJson) EqualsIfPresent(value *JSON) workflowRunWithPrismaAdditionalMetadataEqualsParam { +func (r workflowRunQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaCreatedAtEqualsParam { if value == nil { - return workflowRunWithPrismaAdditionalMetadataEqualsParam{} + return workflowRunWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r workflowRunQueryAdditionalMetadataJson) EqualsOptional(value *JSON) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "additionalMetadata", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunQueryAdditionalMetadataJson) IsNull() workflowRunDefaultParam { - var str *string = nil - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "additionalMetadata", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunQueryAdditionalMetadataJson) Order(direction SortOrder) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Value: direction, }, } } -func (r workflowRunQueryAdditionalMetadataJson) Cursor(cursor JSON) workflowRunCursorParam { +func (r workflowRunQueryCreatedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { return workflowRunCursorParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Value: cursor, }, } } -func (r workflowRunQueryAdditionalMetadataJson) Path(value []string) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) In(value []DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -102192,20 +103281,20 @@ func (r workflowRunQueryAdditionalMetadataJson) Path(value []string) workflowRun } } -func (r workflowRunQueryAdditionalMetadataJson) PathIfPresent(value []string) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r workflowRunQueryAdditionalMetadataJson) StringContains(value string) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -102213,20 +103302,20 @@ func (r workflowRunQueryAdditionalMetadataJson) StringContains(value string) wor } } -func (r workflowRunQueryAdditionalMetadataJson) StringContainsIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r workflowRunQueryAdditionalMetadataJson) StringStartsWith(value string) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -102234,20 +103323,20 @@ func (r workflowRunQueryAdditionalMetadataJson) StringStartsWith(value string) w } } -func (r workflowRunQueryAdditionalMetadataJson) StringStartsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r workflowRunQueryAdditionalMetadataJson) StringEndsWith(value string) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -102255,20 +103344,20 @@ func (r workflowRunQueryAdditionalMetadataJson) StringEndsWith(value string) wor } } -func (r workflowRunQueryAdditionalMetadataJson) StringEndsWithIfPresent(value *string) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r workflowRunQueryAdditionalMetadataJson) ArrayContains(value JSON) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -102276,20 +103365,20 @@ func (r workflowRunQueryAdditionalMetadataJson) ArrayContains(value JSON) workfl } } -func (r workflowRunQueryAdditionalMetadataJson) ArrayContainsIfPresent(value *JSON) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r workflowRunQueryAdditionalMetadataJson) ArrayStartsWith(value JSON) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -102297,20 +103386,20 @@ func (r workflowRunQueryAdditionalMetadataJson) ArrayStartsWith(value JSON) work } } -func (r workflowRunQueryAdditionalMetadataJson) ArrayStartsWithIfPresent(value *JSON) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r workflowRunQueryAdditionalMetadataJson) ArrayEndsWith(value JSON) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) Not(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -102318,17 +103407,19 @@ func (r workflowRunQueryAdditionalMetadataJson) ArrayEndsWith(value JSON) workfl } } -func (r workflowRunQueryAdditionalMetadataJson) ArrayEndsWithIfPresent(value *JSON) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r workflowRunQueryAdditionalMetadataJson) Lt(value JSON) workflowRunDefaultParam { +// deprecated: Use Lt instead. + +func (r workflowRunQueryCreatedAtDateTime) Before(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -102339,38 +103430,20 @@ func (r workflowRunQueryAdditionalMetadataJson) Lt(value JSON) workflowRunDefaul } } -func (r workflowRunQueryAdditionalMetadataJson) LtIfPresent(value *JSON) workflowRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r workflowRunQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.Lt(*value) -} - -func (r workflowRunQueryAdditionalMetadataJson) Lte(value JSON) workflowRunDefaultParam { - return workflowRunDefaultParam{ - data: builder.Field{ - Name: "additionalMetadata", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, - } + return r.Before(*value) } -func (r workflowRunQueryAdditionalMetadataJson) LteIfPresent(value *JSON) workflowRunDefaultParam { - if value == nil { - return workflowRunDefaultParam{} - } - return r.Lte(*value) -} +// deprecated: Use Gt instead. -func (r workflowRunQueryAdditionalMetadataJson) Gt(value JSON) workflowRunDefaultParam { +func (r workflowRunQueryCreatedAtDateTime) After(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -102381,20 +103454,23 @@ func (r workflowRunQueryAdditionalMetadataJson) Gt(value JSON) workflowRunDefaul } } -func (r workflowRunQueryAdditionalMetadataJson) GtIfPresent(value *JSON) workflowRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workflowRunQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.Gt(*value) + return r.After(*value) } -func (r workflowRunQueryAdditionalMetadataJson) Gte(value JSON) workflowRunDefaultParam { +// deprecated: Use Lte instead. + +func (r workflowRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "gte", + Name: "lte", Value: value, }, }, @@ -102402,20 +103478,23 @@ func (r workflowRunQueryAdditionalMetadataJson) Gte(value JSON) workflowRunDefau } } -func (r workflowRunQueryAdditionalMetadataJson) GteIfPresent(value *JSON) workflowRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workflowRunQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.Gte(*value) + return r.BeforeEquals(*value) } -func (r workflowRunQueryAdditionalMetadataJson) Not(value JSONNullValueFilter) workflowRunDefaultParam { +// deprecated: Use Gte instead. + +func (r workflowRunQueryCreatedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { return workflowRunDefaultParam{ data: builder.Field{ - Name: "additionalMetadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -102423,213 +103502,47 @@ func (r workflowRunQueryAdditionalMetadataJson) Not(value JSONNullValueFilter) w } } -func (r workflowRunQueryAdditionalMetadataJson) NotIfPresent(value *JSONNullValueFilter) workflowRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r workflowRunQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { return workflowRunDefaultParam{} } - return r.Not(*value) -} - -func (r workflowRunQueryAdditionalMetadataJson) Field() workflowRunPrismaFields { - return workflowRunFieldAdditionalMetadata -} - -// GetGroupKeyRun acts as a namespaces to access query methods for the GetGroupKeyRun model -var GetGroupKeyRun = getGroupKeyRunQuery{} - -// getGroupKeyRunQuery exposes query functions for the getGroupKeyRun model -type getGroupKeyRunQuery struct { - - // ID - // - // @required - ID getGroupKeyRunQueryIDString - - // CreatedAt - // - // @required - CreatedAt getGroupKeyRunQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt getGroupKeyRunQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt getGroupKeyRunQueryDeletedAtDateTime - - Tenant getGroupKeyRunQueryTenantRelations - - // TenantID - // - // @required - TenantID getGroupKeyRunQueryTenantIDString - - WorkflowRun getGroupKeyRunQueryWorkflowRunRelations - - // WorkflowRunID - // - // @required - // @unique - WorkflowRunID getGroupKeyRunQueryWorkflowRunIDString - - Worker getGroupKeyRunQueryWorkerRelations - - // WorkerID - // - // @optional - WorkerID getGroupKeyRunQueryWorkerIDString - - Ticker getGroupKeyRunQueryTickerRelations - - // TickerID - // - // @optional - TickerID getGroupKeyRunQueryTickerIDString - - // Status - // - // @required - Status getGroupKeyRunQueryStatusStepRunStatus - - // Input - // - // @optional - Input getGroupKeyRunQueryInputJson - - // Output - // - // @optional - Output getGroupKeyRunQueryOutputString - - // RequeueAfter - // - // @optional - RequeueAfter getGroupKeyRunQueryRequeueAfterDateTime - - // ScheduleTimeoutAt - // - // @optional - ScheduleTimeoutAt getGroupKeyRunQueryScheduleTimeoutAtDateTime - - // Error - // - // @optional - Error getGroupKeyRunQueryErrorString - - // StartedAt - // - // @optional - StartedAt getGroupKeyRunQueryStartedAtDateTime - - // FinishedAt - // - // @optional - FinishedAt getGroupKeyRunQueryFinishedAtDateTime - - // TimeoutAt - // - // @optional - TimeoutAt getGroupKeyRunQueryTimeoutAtDateTime - - // CancelledAt - // - // @optional - CancelledAt getGroupKeyRunQueryCancelledAtDateTime - - // CancelledReason - // - // @optional - CancelledReason getGroupKeyRunQueryCancelledReasonString - - // CancelledError - // - // @optional - CancelledError getGroupKeyRunQueryCancelledErrorString -} - -func (getGroupKeyRunQuery) Not(params ...GetGroupKeyRunWhereParam) getGroupKeyRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (getGroupKeyRunQuery) Or(params ...GetGroupKeyRunWhereParam) getGroupKeyRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, - } + return r.AfterEquals(*value) } -func (getGroupKeyRunQuery) And(params ...GetGroupKeyRunWhereParam) getGroupKeyRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } +func (r workflowRunQueryCreatedAtDateTime) Field() workflowRunPrismaFields { + return workflowRunFieldCreatedAt } // base struct -type getGroupKeyRunQueryIDString struct{} +type workflowRunQueryUpdatedAtDateTime struct{} -// Set the required value of ID -func (r getGroupKeyRunQueryIDString) Set(value string) getGroupKeyRunSetParam { +// Set the required value of UpdatedAt +func (r workflowRunQueryUpdatedAtDateTime) Set(value DateTime) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of ID dynamically -func (r getGroupKeyRunQueryIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { +// Set the optional value of UpdatedAt dynamically +func (r workflowRunQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -func (r getGroupKeyRunQueryIDString) Equals(value string) getGroupKeyRunWithPrismaIDEqualsUniqueParam { +func (r workflowRunQueryUpdatedAtDateTime) Equals(value DateTime) workflowRunWithPrismaUpdatedAtEqualsParam { - return getGroupKeyRunWithPrismaIDEqualsUniqueParam{ + return workflowRunWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -102640,35 +103553,35 @@ func (r getGroupKeyRunQueryIDString) Equals(value string) getGroupKeyRunWithPris } } -func (r getGroupKeyRunQueryIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaIDEqualsUniqueParam { +func (r workflowRunQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaUpdatedAtEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaIDEqualsUniqueParam{} + return workflowRunWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryUpdatedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: direction, }, } } -func (r getGroupKeyRunQueryIDString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryUpdatedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: cursor, }, } } -func (r getGroupKeyRunQueryIDString) In(value []string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryUpdatedAtDateTime) In(value []DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -102679,17 +103592,17 @@ func (r getGroupKeyRunQueryIDString) In(value []string) getGroupKeyRunParamUniqu } } -func (r getGroupKeyRunQueryIDString) InIfPresent(value []string) getGroupKeyRunParamUnique { +func (r workflowRunQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryIDString) NotIn(value []string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryUpdatedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -102700,17 +103613,17 @@ func (r getGroupKeyRunQueryIDString) NotIn(value []string) getGroupKeyRunParamUn } } -func (r getGroupKeyRunQueryIDString) NotInIfPresent(value []string) getGroupKeyRunParamUnique { +func (r workflowRunQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryIDString) Lt(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryUpdatedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -102721,17 +103634,17 @@ func (r getGroupKeyRunQueryIDString) Lt(value string) getGroupKeyRunParamUnique } } -func (r getGroupKeyRunQueryIDString) LtIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryIDString) Lte(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryUpdatedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -102742,17 +103655,17 @@ func (r getGroupKeyRunQueryIDString) Lte(value string) getGroupKeyRunParamUnique } } -func (r getGroupKeyRunQueryIDString) LteIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryIDString) Gt(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryUpdatedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -102763,17 +103676,17 @@ func (r getGroupKeyRunQueryIDString) Gt(value string) getGroupKeyRunParamUnique } } -func (r getGroupKeyRunQueryIDString) GtIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryIDString) Gte(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryUpdatedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -102784,20 +103697,20 @@ func (r getGroupKeyRunQueryIDString) Gte(value string) getGroupKeyRunParamUnique } } -func (r getGroupKeyRunQueryIDString) GteIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryIDString) Contains(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryUpdatedAtDateTime) Not(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -102805,20 +103718,22 @@ func (r getGroupKeyRunQueryIDString) Contains(value string) getGroupKeyRunParamU } } -func (r getGroupKeyRunQueryIDString) ContainsIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r getGroupKeyRunQueryIDString) StartsWith(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +// deprecated: Use Lt instead. + +func (r workflowRunQueryUpdatedAtDateTime) Before(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -102826,20 +103741,23 @@ func (r getGroupKeyRunQueryIDString) StartsWith(value string) getGroupKeyRunPara } } -func (r getGroupKeyRunQueryIDString) StartsWithIfPresent(value *string) getGroupKeyRunParamUnique { +// deprecated: Use LtIfPresent instead. +func (r workflowRunQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r getGroupKeyRunQueryIDString) EndsWith(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +// deprecated: Use Gt instead. + +func (r workflowRunQueryUpdatedAtDateTime) After(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -102847,20 +103765,23 @@ func (r getGroupKeyRunQueryIDString) EndsWith(value string) getGroupKeyRunParamU } } -func (r getGroupKeyRunQueryIDString) EndsWithIfPresent(value *string) getGroupKeyRunParamUnique { +// deprecated: Use GtIfPresent instead. +func (r workflowRunQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r getGroupKeyRunQueryIDString) Mode(value QueryMode) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +// deprecated: Use Lte instead. + +func (r workflowRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -102868,67 +103789,23 @@ func (r getGroupKeyRunQueryIDString) Mode(value QueryMode) getGroupKeyRunParamUn } } -func (r getGroupKeyRunQueryIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunParamUnique { - if value == nil { - return getGroupKeyRunParamUnique{} - } - return r.Mode(*value) -} - -func (r getGroupKeyRunQueryIDString) Not(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ - data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryIDString) NotIfPresent(value *string) getGroupKeyRunParamUnique { - if value == nil { - return getGroupKeyRunParamUnique{} - } - return r.Not(*value) -} - -// deprecated: Use StartsWith instead. - -func (r getGroupKeyRunQueryIDString) HasPrefix(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ - data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryIDString) HasPrefixIfPresent(value *string) getGroupKeyRunParamUnique { +// deprecated: Use LteIfPresent instead. +func (r workflowRunQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r getGroupKeyRunQueryIDString) HasSuffix(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -102936,286 +103813,66 @@ func (r getGroupKeyRunQueryIDString) HasSuffix(value string) getGroupKeyRunParam } } -// deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryIDString) HasSuffixIfPresent(value *string) getGroupKeyRunParamUnique { +// deprecated: Use GteIfPresent instead. +func (r workflowRunQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } - return r.HasSuffix(*value) + return r.AfterEquals(*value) } -func (r getGroupKeyRunQueryIDString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldID +func (r workflowRunQueryUpdatedAtDateTime) Field() workflowRunPrismaFields { + return workflowRunFieldUpdatedAt } // base struct -type getGroupKeyRunQueryCreatedAtDateTime struct{} +type workflowRunQueryDeletedAtDateTime struct{} -// Set the required value of CreatedAt -func (r getGroupKeyRunQueryCreatedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { +// Set the optional value of DeletedAt +func (r workflowRunQueryDeletedAtDateTime) Set(value DateTime) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Value: value, }, } } -// Set the optional value of CreatedAt dynamically -func (r getGroupKeyRunQueryCreatedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of DeletedAt dynamically +func (r workflowRunQueryDeletedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -func (r getGroupKeyRunQueryCreatedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaCreatedAtEqualsParam { - - return getGroupKeyRunWithPrismaCreatedAtEqualsParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaCreatedAtEqualsParam { - if value == nil { - return getGroupKeyRunWithPrismaCreatedAtEqualsParam{} - } - return r.Equals(*value) -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Value: direction, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ - data: builder.Field{ - Name: "createdAt", - Value: cursor, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.In(value) -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "notIn", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.NotIn(value) -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Lt(*value) -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Lte(*value) -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Gt(*value) -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Gte(*value) -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Not(*value) -} - -// deprecated: Use Lt instead. - -func (r getGroupKeyRunQueryCreatedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// Set the optional value of DeletedAt dynamically +func (r workflowRunQueryDeletedAtDateTime) SetOptional(value *DateTime) workflowRunSetParam { if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Before(*value) -} -// deprecated: Use Gt instead. - -func (r getGroupKeyRunQueryCreatedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, + var v *DateTime + return workflowRunSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: v, }, - }, + } } -} -// deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.After(*value) + return r.Set(*value) } -// deprecated: Use Lte instead. +func (r workflowRunQueryDeletedAtDateTime) Equals(value DateTime) workflowRunWithPrismaDeletedAtEqualsParam { -func (r getGroupKeyRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "lte", + Name: "equals", Value: value, }, }, @@ -103223,23 +103880,20 @@ func (r getGroupKeyRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) getGr } } -// deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaDeletedAtEqualsParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunWithPrismaDeletedAtEqualsParam{} } - return r.BeforeEquals(*value) + return r.Equals(*value) } -// deprecated: Use Gte instead. - -func (r getGroupKeyRunQueryCreatedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "gte", + Name: "equals", Value: value, }, }, @@ -103247,86 +103901,43 @@ func (r getGroupKeyRunQueryCreatedAtDateTime) AfterEquals(value DateTime) getGro } } -// deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.AfterEquals(*value) -} - -func (r getGroupKeyRunQueryCreatedAtDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldCreatedAt -} - -// base struct -type getGroupKeyRunQueryUpdatedAtDateTime struct{} - -// Set the required value of UpdatedAt -func (r getGroupKeyRunQueryUpdatedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { - - return getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "updatedAt", - Value: value, - }, - } - -} - -// Set the optional value of UpdatedAt dynamically -func (r getGroupKeyRunQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { - if value == nil { - return getGroupKeyRunSetParam{} - } - - return r.Set(*value) -} - -func (r getGroupKeyRunQueryUpdatedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaUpdatedAtEqualsParam { - - return getGroupKeyRunWithPrismaUpdatedAtEqualsParam{ +func (r workflowRunQueryDeletedAtDateTime) IsNull() workflowRunDefaultParam { + var str *string = nil + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", - Value: value, + Value: str, }, }, }, } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaUpdatedAtEqualsParam { - if value == nil { - return getGroupKeyRunWithPrismaUpdatedAtEqualsParam{} - } - return r.Equals(*value) -} - -func (r getGroupKeyRunQueryUpdatedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Value: direction, }, } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryDeletedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Value: cursor, }, } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) In(value []DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "in", @@ -103337,17 +103948,17 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) In(value []DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryUpdatedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "notIn", @@ -103358,17 +103969,17 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) NotIn(value []DateTime) getGroupKe } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryUpdatedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -103379,17 +103990,17 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) Lt(value DateTime) getGroupKeyRunD } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryUpdatedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -103400,17 +104011,17 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) Lte(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryUpdatedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -103421,17 +104032,17 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) Gt(value DateTime) getGroupKeyRunD } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryUpdatedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -103442,17 +104053,17 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) Gte(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryUpdatedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) Not(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "not", @@ -103463,19 +104074,19 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) Not(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r getGroupKeyRunQueryUpdatedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) Before(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -103487,19 +104098,19 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) Before(value DateTime) getGroupKey } // deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r getGroupKeyRunQueryUpdatedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) After(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -103511,19 +104122,19 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) After(value DateTime) getGroupKeyR } // deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r getGroupKeyRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -103535,19 +104146,19 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) getGr } // deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r getGroupKeyRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDeletedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -103559,49 +104170,49 @@ func (r getGroupKeyRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) getGro } // deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.AfterEquals(*value) } -func (r getGroupKeyRunQueryUpdatedAtDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldUpdatedAt +func (r workflowRunQueryDeletedAtDateTime) Field() workflowRunPrismaFields { + return workflowRunFieldDeletedAt } // base struct -type getGroupKeyRunQueryDeletedAtDateTime struct{} +type workflowRunQueryDisplayNameString struct{} -// Set the optional value of DeletedAt -func (r getGroupKeyRunQueryDeletedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { +// Set the optional value of DisplayName +func (r workflowRunQueryDisplayNameString) Set(value string) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Value: value, }, } } -// Set the optional value of DeletedAt dynamically -func (r getGroupKeyRunQueryDeletedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of DisplayName dynamically +func (r workflowRunQueryDisplayNameString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of DeletedAt dynamically -func (r getGroupKeyRunQueryDeletedAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of DisplayName dynamically +func (r workflowRunQueryDisplayNameString) SetOptional(value *String) workflowRunSetParam { if value == nil { - var v *DateTime - return getGroupKeyRunSetParam{ + var v *string + return workflowRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Value: v, }, } @@ -103610,11 +104221,11 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) SetOptional(value *DateTime) getGr return r.Set(*value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaDeletedAtEqualsParam { +func (r workflowRunQueryDisplayNameString) Equals(value string) workflowRunWithPrismaDisplayNameEqualsParam { - return getGroupKeyRunWithPrismaDeletedAtEqualsParam{ + return workflowRunWithPrismaDisplayNameEqualsParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "equals", @@ -103625,17 +104236,17 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) Equals(value DateTime) getGroupKey } } -func (r getGroupKeyRunQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaDeletedAtEqualsParam { +func (r workflowRunQueryDisplayNameString) EqualsIfPresent(value *string) workflowRunWithPrismaDisplayNameEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaDeletedAtEqualsParam{} + return workflowRunWithPrismaDisplayNameEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) EqualsOptional(value *String) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "equals", @@ -103646,11 +104257,11 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) ge } } -func (r getGroupKeyRunQueryDeletedAtDateTime) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "equals", @@ -103661,28 +104272,28 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) IsNull() getGroupKeyRunDefaultPara } } -func (r getGroupKeyRunQueryDeletedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Value: direction, }, } } -func (r getGroupKeyRunQueryDeletedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryDisplayNameString) Cursor(cursor string) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Value: cursor, }, } } -func (r getGroupKeyRunQueryDeletedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) In(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "in", @@ -103693,17 +104304,17 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) In(value []DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryDeletedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) InIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) NotIn(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "notIn", @@ -103714,17 +104325,17 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) NotIn(value []DateTime) getGroupKe } } -func (r getGroupKeyRunQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) NotInIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) Lt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "lt", @@ -103735,17 +104346,17 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) Lt(value DateTime) getGroupKeyRunD } } -func (r getGroupKeyRunQueryDeletedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) LtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) Lte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "lte", @@ -103756,17 +104367,17 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) Lte(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryDeletedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) LteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) Gt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "gt", @@ -103777,17 +104388,17 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) Gt(value DateTime) getGroupKeyRunD } } -func (r getGroupKeyRunQueryDeletedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) GtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) Gte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { Name: "gte", @@ -103798,20 +104409,20 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) Gte(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryDeletedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) GteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) Contains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -103819,22 +104430,41 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) Not(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryDeletedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) ContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r workflowRunQueryDisplayNameString) StartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "displayName", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r getGroupKeyRunQueryDeletedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) StartsWithIfPresent(value *string) workflowRunDefaultParam { + if value == nil { + return workflowRunDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r workflowRunQueryDisplayNameString) EndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -103842,23 +104472,41 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) Before(value DateTime) getGroupKey } } -// deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) EndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r workflowRunQueryDisplayNameString) Mode(value QueryMode) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "displayName", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r getGroupKeyRunQueryDeletedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { + if value == nil { + return workflowRunDefaultParam{} + } + return r.Mode(*value) +} + +func (r workflowRunQueryDisplayNameString) Not(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -103866,23 +104514,22 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) After(value DateTime) getGroupKeyR } } -// deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDisplayNameString) NotIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r getGroupKeyRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) HasPrefix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -103890,23 +104537,23 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) getGr } } -// deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunQueryDisplayNameString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r getGroupKeyRunQueryDeletedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDisplayNameString) HasSuffix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "displayName", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -103914,37 +104561,37 @@ func (r getGroupKeyRunQueryDeletedAtDateTime) AfterEquals(value DateTime) getGro } } -// deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunQueryDisplayNameString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryDeletedAtDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldDeletedAt +func (r workflowRunQueryDisplayNameString) Field() workflowRunPrismaFields { + return workflowRunFieldDisplayName } // base struct -type getGroupKeyRunQueryTenantTenant struct{} +type workflowRunQueryTenantTenant struct{} -type getGroupKeyRunQueryTenantRelations struct{} +type workflowRunQueryTenantRelations struct{} -// GetGroupKeyRun -> Tenant +// WorkflowRun -> Tenant // // @relation // @required -func (getGroupKeyRunQueryTenantRelations) Where( +func (workflowRunQueryTenantRelations) Where( params ...TenantWhereParam, -) getGroupKeyRunDefaultParam { +) workflowRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -103957,8 +104604,8 @@ func (getGroupKeyRunQueryTenantRelations) Where( } } -func (getGroupKeyRunQueryTenantRelations) Fetch() getGroupKeyRunToTenantFindUnique { - var v getGroupKeyRunToTenantFindUnique +func (workflowRunQueryTenantRelations) Fetch() workflowRunToTenantFindUnique { + var v workflowRunToTenantFindUnique v.query.Operation = "query" v.query.Method = "tenant" @@ -103967,19 +104614,19 @@ func (getGroupKeyRunQueryTenantRelations) Fetch() getGroupKeyRunToTenantFindUniq return v } -func (r getGroupKeyRunQueryTenantRelations) Link( +func (r workflowRunQueryTenantRelations) Link( params TenantWhereParam, -) getGroupKeyRunWithPrismaTenantSetParam { +) workflowRunWithPrismaTenantSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return getGroupKeyRunWithPrismaTenantSetParam{} + return workflowRunWithPrismaTenantSetParam{} } fields = append(fields, f) - return getGroupKeyRunWithPrismaTenantSetParam{ + return workflowRunWithPrismaTenantSetParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -103992,10 +104639,10 @@ func (r getGroupKeyRunQueryTenantRelations) Link( } } -func (r getGroupKeyRunQueryTenantRelations) Unlink() getGroupKeyRunWithPrismaTenantSetParam { - var v getGroupKeyRunWithPrismaTenantSetParam +func (r workflowRunQueryTenantRelations) Unlink() workflowRunWithPrismaTenantSetParam { + var v workflowRunWithPrismaTenantSetParam - v = getGroupKeyRunWithPrismaTenantSetParam{ + v = workflowRunWithPrismaTenantSetParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -104010,17 +104657,17 @@ func (r getGroupKeyRunQueryTenantRelations) Unlink() getGroupKeyRunWithPrismaTen return v } -func (r getGroupKeyRunQueryTenantTenant) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldTenant +func (r workflowRunQueryTenantTenant) Field() workflowRunPrismaFields { + return workflowRunFieldTenant } // base struct -type getGroupKeyRunQueryTenantIDString struct{} +type workflowRunQueryTenantIDString struct{} // Set the required value of TenantID -func (r getGroupKeyRunQueryTenantIDString) Set(value string) getGroupKeyRunSetParam { +func (r workflowRunQueryTenantIDString) Set(value string) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ Name: "tenantId", Value: value, @@ -104030,17 +104677,17 @@ func (r getGroupKeyRunQueryTenantIDString) Set(value string) getGroupKeyRunSetPa } // Set the optional value of TenantID dynamically -func (r getGroupKeyRunQueryTenantIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { +func (r workflowRunQueryTenantIDString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -func (r getGroupKeyRunQueryTenantIDString) Equals(value string) getGroupKeyRunWithPrismaTenantIDEqualsParam { +func (r workflowRunQueryTenantIDString) Equals(value string) workflowRunWithPrismaTenantIDEqualsParam { - return getGroupKeyRunWithPrismaTenantIDEqualsParam{ + return workflowRunWithPrismaTenantIDEqualsParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104053,15 +104700,15 @@ func (r getGroupKeyRunQueryTenantIDString) Equals(value string) getGroupKeyRunWi } } -func (r getGroupKeyRunQueryTenantIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaTenantIDEqualsParam { +func (r workflowRunQueryTenantIDString) EqualsIfPresent(value *string) workflowRunWithPrismaTenantIDEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaTenantIDEqualsParam{} + return workflowRunWithPrismaTenantIDEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryTenantIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Value: direction, @@ -104069,8 +104716,8 @@ func (r getGroupKeyRunQueryTenantIDString) Order(direction SortOrder) getGroupKe } } -func (r getGroupKeyRunQueryTenantIDString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryTenantIDString) Cursor(cursor string) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ Name: "tenantId", Value: cursor, @@ -104078,8 +104725,8 @@ func (r getGroupKeyRunQueryTenantIDString) Cursor(cursor string) getGroupKeyRunC } } -func (r getGroupKeyRunQueryTenantIDString) In(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) In(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104092,15 +104739,15 @@ func (r getGroupKeyRunQueryTenantIDString) In(value []string) getGroupKeyRunDefa } } -func (r getGroupKeyRunQueryTenantIDString) InIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) InIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryTenantIDString) NotIn(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) NotIn(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104113,15 +104760,15 @@ func (r getGroupKeyRunQueryTenantIDString) NotIn(value []string) getGroupKeyRunD } } -func (r getGroupKeyRunQueryTenantIDString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) NotInIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryTenantIDString) Lt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) Lt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104134,15 +104781,15 @@ func (r getGroupKeyRunQueryTenantIDString) Lt(value string) getGroupKeyRunDefaul } } -func (r getGroupKeyRunQueryTenantIDString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) LtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryTenantIDString) Lte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) Lte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104155,15 +104802,15 @@ func (r getGroupKeyRunQueryTenantIDString) Lte(value string) getGroupKeyRunDefau } } -func (r getGroupKeyRunQueryTenantIDString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) LteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryTenantIDString) Gt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) Gt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104176,15 +104823,15 @@ func (r getGroupKeyRunQueryTenantIDString) Gt(value string) getGroupKeyRunDefaul } } -func (r getGroupKeyRunQueryTenantIDString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) GtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryTenantIDString) Gte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) Gte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104197,15 +104844,15 @@ func (r getGroupKeyRunQueryTenantIDString) Gte(value string) getGroupKeyRunDefau } } -func (r getGroupKeyRunQueryTenantIDString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) GteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryTenantIDString) Contains(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) Contains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104218,15 +104865,15 @@ func (r getGroupKeyRunQueryTenantIDString) Contains(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryTenantIDString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Contains(*value) } -func (r getGroupKeyRunQueryTenantIDString) StartsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) StartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104239,15 +104886,15 @@ func (r getGroupKeyRunQueryTenantIDString) StartsWith(value string) getGroupKeyR } } -func (r getGroupKeyRunQueryTenantIDString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.StartsWith(*value) } -func (r getGroupKeyRunQueryTenantIDString) EndsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) EndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104260,15 +104907,15 @@ func (r getGroupKeyRunQueryTenantIDString) EndsWith(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryTenantIDString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.EndsWith(*value) } -func (r getGroupKeyRunQueryTenantIDString) Mode(value QueryMode) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) Mode(value QueryMode) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104281,15 +104928,15 @@ func (r getGroupKeyRunQueryTenantIDString) Mode(value QueryMode) getGroupKeyRunD } } -func (r getGroupKeyRunQueryTenantIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Mode(*value) } -func (r getGroupKeyRunQueryTenantIDString) Not(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) Not(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104302,17 +104949,17 @@ func (r getGroupKeyRunQueryTenantIDString) Not(value string) getGroupKeyRunDefau } } -func (r getGroupKeyRunQueryTenantIDString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) NotIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r getGroupKeyRunQueryTenantIDString) HasPrefix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) HasPrefix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104326,17 +104973,17 @@ func (r getGroupKeyRunQueryTenantIDString) HasPrefix(value string) getGroupKeyRu } // deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryTenantIDString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r getGroupKeyRunQueryTenantIDString) HasSuffix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTenantIDString) HasSuffix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -104350,38 +104997,38 @@ func (r getGroupKeyRunQueryTenantIDString) HasSuffix(value string) getGroupKeyRu } // deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryTenantIDString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryTenantIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryTenantIDString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldTenantID +func (r workflowRunQueryTenantIDString) Field() workflowRunPrismaFields { + return workflowRunFieldTenantID } // base struct -type getGroupKeyRunQueryWorkflowRunWorkflowRun struct{} +type workflowRunQueryWorkflowVersionWorkflowVersion struct{} -type getGroupKeyRunQueryWorkflowRunRelations struct{} +type workflowRunQueryWorkflowVersionRelations struct{} -// GetGroupKeyRun -> WorkflowRun +// WorkflowRun -> WorkflowVersion // // @relation // @required -func (getGroupKeyRunQueryWorkflowRunRelations) Where( - params ...WorkflowRunWhereParam, -) getGroupKeyRunDefaultParam { +func (workflowRunQueryWorkflowVersionRelations) Where( + params ...WorkflowVersionWhereParam, +) workflowRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRun", + Name: "workflowVersion", Fields: []builder.Field{ { Name: "is", @@ -104392,31 +105039,31 @@ func (getGroupKeyRunQueryWorkflowRunRelations) Where( } } -func (getGroupKeyRunQueryWorkflowRunRelations) Fetch() getGroupKeyRunToWorkflowRunFindUnique { - var v getGroupKeyRunToWorkflowRunFindUnique +func (workflowRunQueryWorkflowVersionRelations) Fetch() workflowRunToWorkflowVersionFindUnique { + var v workflowRunToWorkflowVersionFindUnique v.query.Operation = "query" - v.query.Method = "workflowRun" - v.query.Outputs = workflowRunOutput + v.query.Method = "workflowVersion" + v.query.Outputs = workflowVersionOutput return v } -func (r getGroupKeyRunQueryWorkflowRunRelations) Link( - params WorkflowRunWhereParam, -) getGroupKeyRunWithPrismaWorkflowRunSetParam { +func (r workflowRunQueryWorkflowVersionRelations) Link( + params WorkflowVersionWhereParam, +) workflowRunWithPrismaWorkflowVersionSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return getGroupKeyRunWithPrismaWorkflowRunSetParam{} + return workflowRunWithPrismaWorkflowVersionSetParam{} } fields = append(fields, f) - return getGroupKeyRunWithPrismaWorkflowRunSetParam{ + return workflowRunWithPrismaWorkflowVersionSetParam{ data: builder.Field{ - Name: "workflowRun", + Name: "workflowVersion", Fields: []builder.Field{ { Name: "connect", @@ -104427,12 +105074,12 @@ func (r getGroupKeyRunQueryWorkflowRunRelations) Link( } } -func (r getGroupKeyRunQueryWorkflowRunRelations) Unlink() getGroupKeyRunWithPrismaWorkflowRunSetParam { - var v getGroupKeyRunWithPrismaWorkflowRunSetParam +func (r workflowRunQueryWorkflowVersionRelations) Unlink() workflowRunWithPrismaWorkflowVersionSetParam { + var v workflowRunWithPrismaWorkflowVersionSetParam - v = getGroupKeyRunWithPrismaWorkflowRunSetParam{ + v = workflowRunWithPrismaWorkflowVersionSetParam{ data: builder.Field{ - Name: "workflowRun", + Name: "workflowVersion", Fields: []builder.Field{ { Name: "disconnect", @@ -104445,39 +105092,39 @@ func (r getGroupKeyRunQueryWorkflowRunRelations) Unlink() getGroupKeyRunWithPris return v } -func (r getGroupKeyRunQueryWorkflowRunWorkflowRun) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldWorkflowRun +func (r workflowRunQueryWorkflowVersionWorkflowVersion) Field() workflowRunPrismaFields { + return workflowRunFieldWorkflowVersion } // base struct -type getGroupKeyRunQueryWorkflowRunIDString struct{} +type workflowRunQueryWorkflowVersionIDString struct{} -// Set the required value of WorkflowRunID -func (r getGroupKeyRunQueryWorkflowRunIDString) Set(value string) getGroupKeyRunSetParam { +// Set the required value of WorkflowVersionID +func (r workflowRunQueryWorkflowVersionIDString) Set(value string) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Value: value, }, } } -// Set the optional value of WorkflowRunID dynamically -func (r getGroupKeyRunQueryWorkflowRunIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { +// Set the optional value of WorkflowVersionID dynamically +func (r workflowRunQueryWorkflowVersionIDString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Equals(value string) getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam { +func (r workflowRunQueryWorkflowVersionIDString) Equals(value string) workflowRunWithPrismaWorkflowVersionIDEqualsParam { - return getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam{ + return workflowRunWithPrismaWorkflowVersionIDEqualsParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "equals", @@ -104488,35 +105135,35 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) Equals(value string) getGroupKey } } -func (r getGroupKeyRunQueryWorkflowRunIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam { +func (r workflowRunQueryWorkflowVersionIDString) EqualsIfPresent(value *string) workflowRunWithPrismaWorkflowVersionIDEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam{} + return workflowRunWithPrismaWorkflowVersionIDEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryWorkflowVersionIDString) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Value: direction, }, } } -func (r getGroupKeyRunQueryWorkflowRunIDString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryWorkflowVersionIDString) Cursor(cursor string) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Value: cursor, }, } } -func (r getGroupKeyRunQueryWorkflowRunIDString) In(value []string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) In(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "in", @@ -104527,17 +105174,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) In(value []string) getGroupKeyRu } } -func (r getGroupKeyRunQueryWorkflowRunIDString) InIfPresent(value []string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) InIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) NotIn(value []string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) NotIn(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "notIn", @@ -104548,17 +105195,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) NotIn(value []string) getGroupKe } } -func (r getGroupKeyRunQueryWorkflowRunIDString) NotInIfPresent(value []string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) NotInIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Lt(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) Lt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "lt", @@ -104569,17 +105216,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) Lt(value string) getGroupKeyRunP } } -func (r getGroupKeyRunQueryWorkflowRunIDString) LtIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) LtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Lte(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) Lte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "lte", @@ -104590,17 +105237,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) Lte(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryWorkflowRunIDString) LteIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) LteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Gt(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) Gt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "gt", @@ -104611,17 +105258,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) Gt(value string) getGroupKeyRunP } } -func (r getGroupKeyRunQueryWorkflowRunIDString) GtIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) GtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Gte(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) Gte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "gte", @@ -104632,17 +105279,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) Gte(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryWorkflowRunIDString) GteIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) GteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Contains(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) Contains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "contains", @@ -104653,17 +105300,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) Contains(value string) getGroupK } } -func (r getGroupKeyRunQueryWorkflowRunIDString) ContainsIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Contains(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) StartsWith(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) StartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "startsWith", @@ -104674,17 +105321,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) StartsWith(value string) getGrou } } -func (r getGroupKeyRunQueryWorkflowRunIDString) StartsWithIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.StartsWith(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) EndsWith(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) EndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "endsWith", @@ -104695,17 +105342,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) EndsWith(value string) getGroupK } } -func (r getGroupKeyRunQueryWorkflowRunIDString) EndsWithIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.EndsWith(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Mode(value QueryMode) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) Mode(value QueryMode) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "mode", @@ -104716,17 +105363,17 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) Mode(value QueryMode) getGroupKe } } -func (r getGroupKeyRunQueryWorkflowRunIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Mode(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Not(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) Not(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "not", @@ -104737,19 +105384,19 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) Not(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryWorkflowRunIDString) NotIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) NotIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r getGroupKeyRunQueryWorkflowRunIDString) HasPrefix(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) HasPrefix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "starts_with", @@ -104761,19 +105408,19 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) HasPrefix(value string) getGroup } // deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryWorkflowRunIDString) HasPrefixIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r getGroupKeyRunQueryWorkflowRunIDString) HasSuffix(value string) getGroupKeyRunParamUnique { - return getGroupKeyRunParamUnique{ +func (r workflowRunQueryWorkflowVersionIDString) HasSuffix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "workflowVersionId", Fields: []builder.Field{ { Name: "ends_with", @@ -104785,137 +105432,49 @@ func (r getGroupKeyRunQueryWorkflowRunIDString) HasSuffix(value string) getGroup } // deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryWorkflowRunIDString) HasSuffixIfPresent(value *string) getGroupKeyRunParamUnique { +func (r workflowRunQueryWorkflowVersionIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunParamUnique{} + return workflowRunDefaultParam{} } return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryWorkflowRunIDString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldWorkflowRunID -} - -// base struct -type getGroupKeyRunQueryWorkerWorker struct{} - -type getGroupKeyRunQueryWorkerRelations struct{} - -// GetGroupKeyRun -> Worker -// -// @relation -// @optional -func (getGroupKeyRunQueryWorkerRelations) Where( - params ...WorkerWhereParam, -) getGroupKeyRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "worker", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, - }, - } -} - -func (getGroupKeyRunQueryWorkerRelations) Fetch() getGroupKeyRunToWorkerFindUnique { - var v getGroupKeyRunToWorkerFindUnique - - v.query.Operation = "query" - v.query.Method = "worker" - v.query.Outputs = workerOutput - - return v -} - -func (r getGroupKeyRunQueryWorkerRelations) Link( - params WorkerWhereParam, -) getGroupKeyRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return getGroupKeyRunSetParam{} - } - - fields = append(fields, f) - - return getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "worker", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryWorkerRelations) Unlink() getGroupKeyRunSetParam { - var v getGroupKeyRunSetParam - - v = getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "worker", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, - } - - return v -} - -func (r getGroupKeyRunQueryWorkerWorker) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldWorker +func (r workflowRunQueryWorkflowVersionIDString) Field() workflowRunPrismaFields { + return workflowRunFieldWorkflowVersionID } // base struct -type getGroupKeyRunQueryWorkerIDString struct{} +type workflowRunQueryConcurrencyGroupIDString struct{} -// Set the optional value of WorkerID -func (r getGroupKeyRunQueryWorkerIDString) Set(value string) getGroupKeyRunSetParam { +// Set the optional value of ConcurrencyGroupID +func (r workflowRunQueryConcurrencyGroupIDString) Set(value string) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Value: value, }, } } -// Set the optional value of WorkerID dynamically -func (r getGroupKeyRunQueryWorkerIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { +// Set the optional value of ConcurrencyGroupID dynamically +func (r workflowRunQueryConcurrencyGroupIDString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of WorkerID dynamically -func (r getGroupKeyRunQueryWorkerIDString) SetOptional(value *String) getGroupKeyRunSetParam { +// Set the optional value of ConcurrencyGroupID dynamically +func (r workflowRunQueryConcurrencyGroupIDString) SetOptional(value *String) workflowRunSetParam { if value == nil { var v *string - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Value: v, }, } @@ -104924,11 +105483,11 @@ func (r getGroupKeyRunQueryWorkerIDString) SetOptional(value *String) getGroupKe return r.Set(*value) } -func (r getGroupKeyRunQueryWorkerIDString) Equals(value string) getGroupKeyRunWithPrismaWorkerIDEqualsParam { +func (r workflowRunQueryConcurrencyGroupIDString) Equals(value string) workflowRunWithPrismaConcurrencyGroupIDEqualsParam { - return getGroupKeyRunWithPrismaWorkerIDEqualsParam{ + return workflowRunWithPrismaConcurrencyGroupIDEqualsParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "equals", @@ -104939,17 +105498,17 @@ func (r getGroupKeyRunQueryWorkerIDString) Equals(value string) getGroupKeyRunWi } } -func (r getGroupKeyRunQueryWorkerIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaWorkerIDEqualsParam { +func (r workflowRunQueryConcurrencyGroupIDString) EqualsIfPresent(value *string) workflowRunWithPrismaConcurrencyGroupIDEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaWorkerIDEqualsParam{} + return workflowRunWithPrismaConcurrencyGroupIDEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryWorkerIDString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) EqualsOptional(value *String) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "equals", @@ -104960,11 +105519,11 @@ func (r getGroupKeyRunQueryWorkerIDString) EqualsOptional(value *String) getGrou } } -func (r getGroupKeyRunQueryWorkerIDString) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "equals", @@ -104975,28 +105534,28 @@ func (r getGroupKeyRunQueryWorkerIDString) IsNull() getGroupKeyRunDefaultParam { } } -func (r getGroupKeyRunQueryWorkerIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Value: direction, }, } } -func (r getGroupKeyRunQueryWorkerIDString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Cursor(cursor string) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Value: cursor, }, } } -func (r getGroupKeyRunQueryWorkerIDString) In(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) In(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "in", @@ -105007,17 +105566,17 @@ func (r getGroupKeyRunQueryWorkerIDString) In(value []string) getGroupKeyRunDefa } } -func (r getGroupKeyRunQueryWorkerIDString) InIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) InIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryWorkerIDString) NotIn(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) NotIn(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "notIn", @@ -105028,17 +105587,17 @@ func (r getGroupKeyRunQueryWorkerIDString) NotIn(value []string) getGroupKeyRunD } } -func (r getGroupKeyRunQueryWorkerIDString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) NotInIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryWorkerIDString) Lt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Lt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "lt", @@ -105049,17 +105608,17 @@ func (r getGroupKeyRunQueryWorkerIDString) Lt(value string) getGroupKeyRunDefaul } } -func (r getGroupKeyRunQueryWorkerIDString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) LtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryWorkerIDString) Lte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Lte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "lte", @@ -105070,17 +105629,17 @@ func (r getGroupKeyRunQueryWorkerIDString) Lte(value string) getGroupKeyRunDefau } } -func (r getGroupKeyRunQueryWorkerIDString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) LteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryWorkerIDString) Gt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Gt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "gt", @@ -105091,17 +105650,17 @@ func (r getGroupKeyRunQueryWorkerIDString) Gt(value string) getGroupKeyRunDefaul } } -func (r getGroupKeyRunQueryWorkerIDString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) GtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryWorkerIDString) Gte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Gte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "gte", @@ -105112,17 +105671,17 @@ func (r getGroupKeyRunQueryWorkerIDString) Gte(value string) getGroupKeyRunDefau } } -func (r getGroupKeyRunQueryWorkerIDString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) GteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryWorkerIDString) Contains(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Contains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "contains", @@ -105133,17 +105692,17 @@ func (r getGroupKeyRunQueryWorkerIDString) Contains(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryWorkerIDString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Contains(*value) } -func (r getGroupKeyRunQueryWorkerIDString) StartsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) StartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "startsWith", @@ -105154,17 +105713,17 @@ func (r getGroupKeyRunQueryWorkerIDString) StartsWith(value string) getGroupKeyR } } -func (r getGroupKeyRunQueryWorkerIDString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.StartsWith(*value) } -func (r getGroupKeyRunQueryWorkerIDString) EndsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) EndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "endsWith", @@ -105175,17 +105734,17 @@ func (r getGroupKeyRunQueryWorkerIDString) EndsWith(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryWorkerIDString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.EndsWith(*value) } -func (r getGroupKeyRunQueryWorkerIDString) Mode(value QueryMode) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Mode(value QueryMode) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "mode", @@ -105196,17 +105755,17 @@ func (r getGroupKeyRunQueryWorkerIDString) Mode(value QueryMode) getGroupKeyRunD } } -func (r getGroupKeyRunQueryWorkerIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Mode(*value) } -func (r getGroupKeyRunQueryWorkerIDString) Not(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) Not(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "not", @@ -105217,19 +105776,19 @@ func (r getGroupKeyRunQueryWorkerIDString) Not(value string) getGroupKeyRunDefau } } -func (r getGroupKeyRunQueryWorkerIDString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) NotIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r getGroupKeyRunQueryWorkerIDString) HasPrefix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) HasPrefix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "starts_with", @@ -105241,19 +105800,19 @@ func (r getGroupKeyRunQueryWorkerIDString) HasPrefix(value string) getGroupKeyRu } // deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryWorkerIDString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r getGroupKeyRunQueryWorkerIDString) HasSuffix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryConcurrencyGroupIDString) HasSuffix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "concurrencyGroupId", Fields: []builder.Field{ { Name: "ends_with", @@ -105265,38 +105824,38 @@ func (r getGroupKeyRunQueryWorkerIDString) HasSuffix(value string) getGroupKeyRu } // deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryWorkerIDString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryConcurrencyGroupIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryWorkerIDString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldWorkerID +func (r workflowRunQueryConcurrencyGroupIDString) Field() workflowRunPrismaFields { + return workflowRunFieldConcurrencyGroupID } // base struct -type getGroupKeyRunQueryTickerTicker struct{} +type workflowRunQueryGetGroupKeyRunGetGroupKeyRun struct{} -type getGroupKeyRunQueryTickerRelations struct{} +type workflowRunQueryGetGroupKeyRunRelations struct{} -// GetGroupKeyRun -> Ticker +// WorkflowRun -> GetGroupKeyRun // // @relation // @optional -func (getGroupKeyRunQueryTickerRelations) Where( - params ...TickerWhereParam, -) getGroupKeyRunDefaultParam { +func (workflowRunQueryGetGroupKeyRunRelations) Where( + params ...GetGroupKeyRunWhereParam, +) workflowRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "ticker", + Name: "getGroupKeyRun", Fields: []builder.Field{ { Name: "is", @@ -105307,31 +105866,31 @@ func (getGroupKeyRunQueryTickerRelations) Where( } } -func (getGroupKeyRunQueryTickerRelations) Fetch() getGroupKeyRunToTickerFindUnique { - var v getGroupKeyRunToTickerFindUnique +func (workflowRunQueryGetGroupKeyRunRelations) Fetch() workflowRunToGetGroupKeyRunFindUnique { + var v workflowRunToGetGroupKeyRunFindUnique v.query.Operation = "query" - v.query.Method = "ticker" - v.query.Outputs = tickerOutput + v.query.Method = "getGroupKeyRun" + v.query.Outputs = getGroupKeyRunOutput return v } -func (r getGroupKeyRunQueryTickerRelations) Link( - params TickerWhereParam, -) getGroupKeyRunSetParam { +func (r workflowRunQueryGetGroupKeyRunRelations) Link( + params GetGroupKeyRunWhereParam, +) workflowRunSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } fields = append(fields, f) - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "ticker", + Name: "getGroupKeyRun", Fields: []builder.Field{ { Name: "connect", @@ -105342,12 +105901,12 @@ func (r getGroupKeyRunQueryTickerRelations) Link( } } -func (r getGroupKeyRunQueryTickerRelations) Unlink() getGroupKeyRunSetParam { - var v getGroupKeyRunSetParam +func (r workflowRunQueryGetGroupKeyRunRelations) Unlink() workflowRunSetParam { + var v workflowRunSetParam - v = getGroupKeyRunSetParam{ + v = workflowRunSetParam{ data: builder.Field{ - Name: "ticker", + Name: "getGroupKeyRun", Fields: []builder.Field{ { Name: "disconnect", @@ -105360,55 +105919,39 @@ func (r getGroupKeyRunQueryTickerRelations) Unlink() getGroupKeyRunSetParam { return v } -func (r getGroupKeyRunQueryTickerTicker) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldTicker +func (r workflowRunQueryGetGroupKeyRunGetGroupKeyRun) Field() workflowRunPrismaFields { + return workflowRunFieldGetGroupKeyRun } // base struct -type getGroupKeyRunQueryTickerIDString struct{} +type workflowRunQueryStatusWorkflowRunStatus struct{} -// Set the optional value of TickerID -func (r getGroupKeyRunQueryTickerIDString) Set(value string) getGroupKeyRunSetParam { +// Set the required value of Status +func (r workflowRunQueryStatusWorkflowRunStatus) Set(value WorkflowRunStatus) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Value: value, }, } } -// Set the optional value of TickerID dynamically -func (r getGroupKeyRunQueryTickerIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { - if value == nil { - return getGroupKeyRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of TickerID dynamically -func (r getGroupKeyRunQueryTickerIDString) SetOptional(value *String) getGroupKeyRunSetParam { +// Set the optional value of Status dynamically +func (r workflowRunQueryStatusWorkflowRunStatus) SetIfPresent(value *WorkflowRunStatus) workflowRunSetParam { if value == nil { - - var v *string - return getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "tickerId", - Value: v, - }, - } + return workflowRunSetParam{} } return r.Set(*value) } -func (r getGroupKeyRunQueryTickerIDString) Equals(value string) getGroupKeyRunWithPrismaTickerIDEqualsParam { +func (r workflowRunQueryStatusWorkflowRunStatus) Equals(value WorkflowRunStatus) workflowRunWithPrismaStatusEqualsParam { - return getGroupKeyRunWithPrismaTickerIDEqualsParam{ + return workflowRunWithPrismaStatusEqualsParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Fields: []builder.Field{ { Name: "equals", @@ -105419,64 +105962,35 @@ func (r getGroupKeyRunQueryTickerIDString) Equals(value string) getGroupKeyRunWi } } -func (r getGroupKeyRunQueryTickerIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaTickerIDEqualsParam { +func (r workflowRunQueryStatusWorkflowRunStatus) EqualsIfPresent(value *WorkflowRunStatus) workflowRunWithPrismaStatusEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaTickerIDEqualsParam{} + return workflowRunWithPrismaStatusEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryTickerIDString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "tickerId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryTickerIDString) IsNull() getGroupKeyRunDefaultParam { - var str *string = nil - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "tickerId", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryTickerIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStatusWorkflowRunStatus) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Value: direction, }, } } -func (r getGroupKeyRunQueryTickerIDString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryStatusWorkflowRunStatus) Cursor(cursor WorkflowRunStatus) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Value: cursor, }, } } -func (r getGroupKeyRunQueryTickerIDString) In(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStatusWorkflowRunStatus) In(value []WorkflowRunStatus) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Fields: []builder.Field{ { Name: "in", @@ -105487,17 +106001,17 @@ func (r getGroupKeyRunQueryTickerIDString) In(value []string) getGroupKeyRunDefa } } -func (r getGroupKeyRunQueryTickerIDString) InIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStatusWorkflowRunStatus) InIfPresent(value []WorkflowRunStatus) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryTickerIDString) NotIn(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStatusWorkflowRunStatus) NotIn(value []WorkflowRunStatus) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Fields: []builder.Field{ { Name: "notIn", @@ -105508,20 +106022,20 @@ func (r getGroupKeyRunQueryTickerIDString) NotIn(value []string) getGroupKeyRunD } } -func (r getGroupKeyRunQueryTickerIDString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStatusWorkflowRunStatus) NotInIfPresent(value []WorkflowRunStatus) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryTickerIDString) Lt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStatusWorkflowRunStatus) Not(value WorkflowRunStatus) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Fields: []builder.Field{ { - Name: "lt", + Name: "not", Value: value, }, }, @@ -105529,262 +106043,410 @@ func (r getGroupKeyRunQueryTickerIDString) Lt(value string) getGroupKeyRunDefaul } } -func (r getGroupKeyRunQueryTickerIDString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStatusWorkflowRunStatus) NotIfPresent(value *WorkflowRunStatus) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Lt(*value) + return r.Not(*value) } -func (r getGroupKeyRunQueryTickerIDString) Lte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStatusWorkflowRunStatus) Field() workflowRunPrismaFields { + return workflowRunFieldStatus +} + +// base struct +type workflowRunQueryJobRunsJobRun struct{} + +type workflowRunQueryJobRunsRelations struct{} + +// WorkflowRun -> JobRuns +// +// @relation +// @required +func (workflowRunQueryJobRunsRelations) Some( + params ...JobRunWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryTickerIDString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +// WorkflowRun -> JobRuns +// +// @relation +// @required +func (workflowRunQueryJobRunsRelations) Every( + params ...JobRunWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Lte(*value) -} -func (r getGroupKeyRunQueryTickerIDString) Gt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryTickerIDString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +// WorkflowRun -> JobRuns +// +// @relation +// @required +func (workflowRunQueryJobRunsRelations) None( + params ...JobRunWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Gt(*value) -} -func (r getGroupKeyRunQueryTickerIDString) Gte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryTickerIDString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +func (workflowRunQueryJobRunsRelations) Fetch( + + params ...JobRunWhereParam, + +) workflowRunToJobRunsFindMany { + var v workflowRunToJobRunsFindMany + + v.query.Operation = "query" + v.query.Method = "jobRuns" + v.query.Outputs = jobRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Gte(*value) + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v } -func (r getGroupKeyRunQueryTickerIDString) Contains(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryJobRunsRelations) Link( + params ...JobRunWhereParam, +) workflowRunSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "contains", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r getGroupKeyRunQueryTickerIDString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Contains(*value) -} +func (r workflowRunQueryJobRunsRelations) Unlink( + params ...JobRunWhereParam, +) workflowRunSetParam { + var v workflowRunSetParam -func (r getGroupKeyRunQueryTickerIDString) StartsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workflowRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "startsWith", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r getGroupKeyRunQueryTickerIDString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.StartsWith(*value) +func (r workflowRunQueryJobRunsJobRun) Field() workflowRunPrismaFields { + return workflowRunFieldJobRuns } -func (r getGroupKeyRunQueryTickerIDString) EndsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +// base struct +type workflowRunQueryTriggeredByWorkflowRunTriggeredBy struct{} + +type workflowRunQueryTriggeredByRelations struct{} + +// WorkflowRun -> TriggeredBy +// +// @relation +// @optional +func (workflowRunQueryTriggeredByRelations) Where( + params ...WorkflowRunTriggeredByWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "triggeredBy", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryTickerIDString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.EndsWith(*value) +func (workflowRunQueryTriggeredByRelations) Fetch() workflowRunToTriggeredByFindUnique { + var v workflowRunToTriggeredByFindUnique + + v.query.Operation = "query" + v.query.Method = "triggeredBy" + v.query.Outputs = workflowRunTriggeredByOutput + + return v } -func (r getGroupKeyRunQueryTickerIDString) Mode(value QueryMode) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryTriggeredByRelations) Link( + params WorkflowRunTriggeredByWhereParam, +) workflowRunSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunSetParam{} + } + + fields = append(fields, f) + + return workflowRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "triggeredBy", Fields: []builder.Field{ { - Name: "mode", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r getGroupKeyRunQueryTickerIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Mode(*value) -} +func (r workflowRunQueryTriggeredByRelations) Unlink() workflowRunSetParam { + var v workflowRunSetParam -func (r getGroupKeyRunQueryTickerIDString) Not(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + v = workflowRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "triggeredBy", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r getGroupKeyRunQueryTickerIDString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Not(*value) +func (r workflowRunQueryTriggeredByWorkflowRunTriggeredBy) Field() workflowRunPrismaFields { + return workflowRunFieldTriggeredBy } -// deprecated: Use StartsWith instead. +// base struct +type workflowRunQueryStickyWorkflowRunStickyState struct{} -func (r getGroupKeyRunQueryTickerIDString) HasPrefix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +type workflowRunQueryStickyRelations struct{} + +// WorkflowRun -> Sticky +// +// @relation +// @optional +func (workflowRunQueryStickyRelations) Where( + params ...WorkflowRunStickyStateWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "sticky", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryTickerIDString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.HasPrefix(*value) +func (workflowRunQueryStickyRelations) Fetch() workflowRunToStickyFindUnique { + var v workflowRunToStickyFindUnique + + v.query.Operation = "query" + v.query.Method = "sticky" + v.query.Outputs = workflowRunStickyStateOutput + + return v } -// deprecated: Use EndsWith instead. +func (r workflowRunQueryStickyRelations) Link( + params WorkflowRunStickyStateWhereParam, +) workflowRunSetParam { + var fields []builder.Field -func (r getGroupKeyRunQueryTickerIDString) HasSuffix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunSetParam{} + } + + fields = append(fields, f) + + return workflowRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "sticky", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryTickerIDString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +func (r workflowRunQueryStickyRelations) Unlink() workflowRunSetParam { + var v workflowRunSetParam + + v = workflowRunSetParam{ + data: builder.Field{ + Name: "sticky", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, } - return r.HasSuffix(*value) + + return v } -func (r getGroupKeyRunQueryTickerIDString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldTickerID +func (r workflowRunQueryStickyWorkflowRunStickyState) Field() workflowRunPrismaFields { + return workflowRunFieldSticky } // base struct -type getGroupKeyRunQueryStatusStepRunStatus struct{} +type workflowRunQueryErrorString struct{} -// Set the required value of Status -func (r getGroupKeyRunQueryStatusStepRunStatus) Set(value StepRunStatus) getGroupKeyRunSetParam { +// Set the optional value of Error +func (r workflowRunQueryErrorString) Set(value string) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "status", + Name: "error", Value: value, }, } } -// Set the optional value of Status dynamically -func (r getGroupKeyRunQueryStatusStepRunStatus) SetIfPresent(value *StepRunStatus) getGroupKeyRunSetParam { +// Set the optional value of Error dynamically +func (r workflowRunQueryErrorString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -func (r getGroupKeyRunQueryStatusStepRunStatus) Equals(value StepRunStatus) getGroupKeyRunWithPrismaStatusEqualsParam { +// Set the optional value of Error dynamically +func (r workflowRunQueryErrorString) SetOptional(value *String) workflowRunSetParam { + if value == nil { - return getGroupKeyRunWithPrismaStatusEqualsParam{ + var v *string + return workflowRunSetParam{ + data: builder.Field{ + Name: "error", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workflowRunQueryErrorString) Equals(value string) workflowRunWithPrismaErrorEqualsParam { + + return workflowRunWithPrismaErrorEqualsParam{ data: builder.Field{ - Name: "status", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -105795,35 +106457,64 @@ func (r getGroupKeyRunQueryStatusStepRunStatus) Equals(value StepRunStatus) getG } } -func (r getGroupKeyRunQueryStatusStepRunStatus) EqualsIfPresent(value *StepRunStatus) getGroupKeyRunWithPrismaStatusEqualsParam { +func (r workflowRunQueryErrorString) EqualsIfPresent(value *string) workflowRunWithPrismaErrorEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaStatusEqualsParam{} + return workflowRunWithPrismaErrorEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryStatusStepRunStatus) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) EqualsOptional(value *String) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "error", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunQueryErrorString) IsNull() workflowRunDefaultParam { + var str *string = nil + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "error", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workflowRunQueryErrorString) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "error", Value: direction, }, } } -func (r getGroupKeyRunQueryStatusStepRunStatus) Cursor(cursor StepRunStatus) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryErrorString) Cursor(cursor string) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "status", + Name: "error", Value: cursor, }, } } -func (r getGroupKeyRunQueryStatusStepRunStatus) In(value []StepRunStatus) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) In(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "error", Fields: []builder.Field{ { Name: "in", @@ -105834,17 +106525,17 @@ func (r getGroupKeyRunQueryStatusStepRunStatus) In(value []StepRunStatus) getGro } } -func (r getGroupKeyRunQueryStatusStepRunStatus) InIfPresent(value []StepRunStatus) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) InIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryStatusStepRunStatus) NotIn(value []StepRunStatus) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) NotIn(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "error", Fields: []builder.Field{ { Name: "notIn", @@ -105855,20 +106546,20 @@ func (r getGroupKeyRunQueryStatusStepRunStatus) NotIn(value []StepRunStatus) get } } -func (r getGroupKeyRunQueryStatusStepRunStatus) NotInIfPresent(value []StepRunStatus) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) NotInIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryStatusStepRunStatus) Not(value StepRunStatus) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) Lt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "error", Fields: []builder.Field{ { - Name: "not", + Name: "lt", Value: value, }, }, @@ -105876,133 +106567,20 @@ func (r getGroupKeyRunQueryStatusStepRunStatus) Not(value StepRunStatus) getGrou } } -func (r getGroupKeyRunQueryStatusStepRunStatus) NotIfPresent(value *StepRunStatus) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Not(*value) -} - -func (r getGroupKeyRunQueryStatusStepRunStatus) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldStatus -} - -// base struct -type getGroupKeyRunQueryInputJson struct{} - -// Set the optional value of Input -func (r getGroupKeyRunQueryInputJson) Set(value JSON) getGroupKeyRunSetParam { - - return getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "input", - Value: value, - }, - } - -} - -// Set the optional value of Input dynamically -func (r getGroupKeyRunQueryInputJson) SetIfPresent(value *JSON) getGroupKeyRunSetParam { - if value == nil { - return getGroupKeyRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of Input dynamically -func (r getGroupKeyRunQueryInputJson) SetOptional(value *JSON) getGroupKeyRunSetParam { - if value == nil { - - var v *JSON - return getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "input", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r getGroupKeyRunQueryInputJson) Equals(value JSON) getGroupKeyRunWithPrismaInputEqualsParam { - - return getGroupKeyRunWithPrismaInputEqualsParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryInputJson) EqualsIfPresent(value *JSON) getGroupKeyRunWithPrismaInputEqualsParam { +func (r workflowRunQueryErrorString) LtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunWithPrismaInputEqualsParam{} - } - return r.Equals(*value) -} - -func (r getGroupKeyRunQueryInputJson) EqualsOptional(value *JSON) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryInputJson) IsNull() getGroupKeyRunDefaultParam { - var str *string = nil - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryInputJson) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "input", - Value: direction, - }, - } -} - -func (r getGroupKeyRunQueryInputJson) Cursor(cursor JSON) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ - data: builder.Field{ - Name: "input", - Value: cursor, - }, + return workflowRunDefaultParam{} } + return r.Lt(*value) } -func (r getGroupKeyRunQueryInputJson) Path(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) Lte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "path", + Name: "lte", Value: value, }, }, @@ -106010,20 +106588,20 @@ func (r getGroupKeyRunQueryInputJson) Path(value []string) getGroupKeyRunDefault } } -func (r getGroupKeyRunQueryInputJson) PathIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) LteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Path(value) + return r.Lte(*value) } -func (r getGroupKeyRunQueryInputJson) StringContains(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) Gt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "string_contains", + Name: "gt", Value: value, }, }, @@ -106031,20 +106609,20 @@ func (r getGroupKeyRunQueryInputJson) StringContains(value string) getGroupKeyRu } } -func (r getGroupKeyRunQueryInputJson) StringContainsIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) GtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.StringContains(*value) + return r.Gt(*value) } -func (r getGroupKeyRunQueryInputJson) StringStartsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) Gte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "gte", Value: value, }, }, @@ -106052,20 +106630,20 @@ func (r getGroupKeyRunQueryInputJson) StringStartsWith(value string) getGroupKey } } -func (r getGroupKeyRunQueryInputJson) StringStartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) GteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Gte(*value) } -func (r getGroupKeyRunQueryInputJson) StringEndsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) Contains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "contains", Value: value, }, }, @@ -106073,20 +106651,20 @@ func (r getGroupKeyRunQueryInputJson) StringEndsWith(value string) getGroupKeyRu } } -func (r getGroupKeyRunQueryInputJson) StringEndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) ContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Contains(*value) } -func (r getGroupKeyRunQueryInputJson) ArrayContains(value JSON) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) StartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "array_contains", + Name: "startsWith", Value: value, }, }, @@ -106094,20 +106672,20 @@ func (r getGroupKeyRunQueryInputJson) ArrayContains(value JSON) getGroupKeyRunDe } } -func (r getGroupKeyRunQueryInputJson) ArrayContainsIfPresent(value *JSON) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) StartsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.ArrayContains(*value) + return r.StartsWith(*value) } -func (r getGroupKeyRunQueryInputJson) ArrayStartsWith(value JSON) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) EndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "endsWith", Value: value, }, }, @@ -106115,20 +106693,20 @@ func (r getGroupKeyRunQueryInputJson) ArrayStartsWith(value JSON) getGroupKeyRun } } -func (r getGroupKeyRunQueryInputJson) ArrayStartsWithIfPresent(value *JSON) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) EndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.EndsWith(*value) } -func (r getGroupKeyRunQueryInputJson) ArrayEndsWith(value JSON) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) Mode(value QueryMode) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "mode", Value: value, }, }, @@ -106136,20 +106714,20 @@ func (r getGroupKeyRunQueryInputJson) ArrayEndsWith(value JSON) getGroupKeyRunDe } } -func (r getGroupKeyRunQueryInputJson) ArrayEndsWithIfPresent(value *JSON) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Mode(*value) } -func (r getGroupKeyRunQueryInputJson) Lt(value JSON) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) Not(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "lt", + Name: "not", Value: value, }, }, @@ -106157,41 +106735,22 @@ func (r getGroupKeyRunQueryInputJson) Lt(value JSON) getGroupKeyRunDefaultParam } } -func (r getGroupKeyRunQueryInputJson) LtIfPresent(value *JSON) getGroupKeyRunDefaultParam { +func (r workflowRunQueryErrorString) NotIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Lt(*value) -} - -func (r getGroupKeyRunQueryInputJson) Lte(value JSON) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + return workflowRunDefaultParam{} } + return r.Not(*value) } -func (r getGroupKeyRunQueryInputJson) LteIfPresent(value *JSON) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Lte(*value) -} +// deprecated: Use StartsWith instead. -func (r getGroupKeyRunQueryInputJson) Gt(value JSON) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) HasPrefix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "gt", + Name: "starts_with", Value: value, }, }, @@ -106199,41 +106758,23 @@ func (r getGroupKeyRunQueryInputJson) Gt(value JSON) getGroupKeyRunDefaultParam } } -func (r getGroupKeyRunQueryInputJson) GtIfPresent(value *JSON) getGroupKeyRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunQueryErrorString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Gt(*value) -} - -func (r getGroupKeyRunQueryInputJson) Gte(value JSON) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, + return workflowRunDefaultParam{} } + return r.HasPrefix(*value) } -func (r getGroupKeyRunQueryInputJson) GteIfPresent(value *JSON) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Gte(*value) -} +// deprecated: Use EndsWith instead. -func (r getGroupKeyRunQueryInputJson) Not(value JSONNullValueFilter) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryErrorString) HasSuffix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "error", Fields: []builder.Field{ { - Name: "not", + Name: "ends_with", Value: value, }, }, @@ -106241,49 +106782,50 @@ func (r getGroupKeyRunQueryInputJson) Not(value JSONNullValueFilter) getGroupKey } } -func (r getGroupKeyRunQueryInputJson) NotIfPresent(value *JSONNullValueFilter) getGroupKeyRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunQueryErrorString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Not(*value) + return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryInputJson) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldInput +func (r workflowRunQueryErrorString) Field() workflowRunPrismaFields { + return workflowRunFieldError } // base struct -type getGroupKeyRunQueryOutputString struct{} +type workflowRunQueryStartedAtDateTime struct{} -// Set the optional value of Output -func (r getGroupKeyRunQueryOutputString) Set(value string) getGroupKeyRunSetParam { +// Set the optional value of StartedAt +func (r workflowRunQueryStartedAtDateTime) Set(value DateTime) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Value: value, }, } } -// Set the optional value of Output dynamically -func (r getGroupKeyRunQueryOutputString) SetIfPresent(value *String) getGroupKeyRunSetParam { +// Set the optional value of StartedAt dynamically +func (r workflowRunQueryStartedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of Output dynamically -func (r getGroupKeyRunQueryOutputString) SetOptional(value *String) getGroupKeyRunSetParam { +// Set the optional value of StartedAt dynamically +func (r workflowRunQueryStartedAtDateTime) SetOptional(value *DateTime) workflowRunSetParam { if value == nil { - var v *string - return getGroupKeyRunSetParam{ + var v *DateTime + return workflowRunSetParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Value: v, }, } @@ -106292,11 +106834,11 @@ func (r getGroupKeyRunQueryOutputString) SetOptional(value *String) getGroupKeyR return r.Set(*value) } -func (r getGroupKeyRunQueryOutputString) Equals(value string) getGroupKeyRunWithPrismaOutputEqualsParam { +func (r workflowRunQueryStartedAtDateTime) Equals(value DateTime) workflowRunWithPrismaStartedAtEqualsParam { - return getGroupKeyRunWithPrismaOutputEqualsParam{ + return workflowRunWithPrismaStartedAtEqualsParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -106307,17 +106849,17 @@ func (r getGroupKeyRunQueryOutputString) Equals(value string) getGroupKeyRunWith } } -func (r getGroupKeyRunQueryOutputString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaOutputEqualsParam { +func (r workflowRunQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaStartedAtEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaOutputEqualsParam{} + return workflowRunWithPrismaStartedAtEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryOutputString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -106328,11 +106870,11 @@ func (r getGroupKeyRunQueryOutputString) EqualsOptional(value *String) getGroupK } } -func (r getGroupKeyRunQueryOutputString) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryStartedAtDateTime) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -106343,28 +106885,28 @@ func (r getGroupKeyRunQueryOutputString) IsNull() getGroupKeyRunDefaultParam { } } -func (r getGroupKeyRunQueryOutputString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Value: direction, }, } } -func (r getGroupKeyRunQueryOutputString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryStartedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Value: cursor, }, } } -func (r getGroupKeyRunQueryOutputString) In(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) In(value []DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "in", @@ -106375,17 +106917,17 @@ func (r getGroupKeyRunQueryOutputString) In(value []string) getGroupKeyRunDefaul } } -func (r getGroupKeyRunQueryOutputString) InIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStartedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryOutputString) NotIn(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "notIn", @@ -106396,17 +106938,17 @@ func (r getGroupKeyRunQueryOutputString) NotIn(value []string) getGroupKeyRunDef } } -func (r getGroupKeyRunQueryOutputString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStartedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryOutputString) Lt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "lt", @@ -106417,17 +106959,17 @@ func (r getGroupKeyRunQueryOutputString) Lt(value string) getGroupKeyRunDefaultP } } -func (r getGroupKeyRunQueryOutputString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStartedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryOutputString) Lte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "lte", @@ -106438,17 +106980,17 @@ func (r getGroupKeyRunQueryOutputString) Lte(value string) getGroupKeyRunDefault } } -func (r getGroupKeyRunQueryOutputString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStartedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryOutputString) Gt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "gt", @@ -106459,17 +107001,17 @@ func (r getGroupKeyRunQueryOutputString) Gt(value string) getGroupKeyRunDefaultP } } -func (r getGroupKeyRunQueryOutputString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStartedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryOutputString) Gte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { Name: "gte", @@ -106480,20 +107022,20 @@ func (r getGroupKeyRunQueryOutputString) Gte(value string) getGroupKeyRunDefault } } -func (r getGroupKeyRunQueryOutputString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStartedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryOutputString) Contains(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) Not(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -106501,41 +107043,22 @@ func (r getGroupKeyRunQueryOutputString) Contains(value string) getGroupKeyRunDe } } -func (r getGroupKeyRunQueryOutputString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryStartedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Contains(*value) -} - -func (r getGroupKeyRunQueryOutputString) StartsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "output", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return workflowRunDefaultParam{} } + return r.Not(*value) } -func (r getGroupKeyRunQueryOutputString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r getGroupKeyRunQueryOutputString) EndsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) Before(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -106543,41 +107066,23 @@ func (r getGroupKeyRunQueryOutputString) EndsWith(value string) getGroupKeyRunDe } } -func (r getGroupKeyRunQueryOutputString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r workflowRunQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r getGroupKeyRunQueryOutputString) Mode(value QueryMode) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "output", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return workflowRunDefaultParam{} } + return r.Before(*value) } -func (r getGroupKeyRunQueryOutputString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Gt instead. -func (r getGroupKeyRunQueryOutputString) Not(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) After(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -106585,22 +107090,23 @@ func (r getGroupKeyRunQueryOutputString) Not(value string) getGroupKeyRunDefault } } -func (r getGroupKeyRunQueryOutputString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workflowRunQueryStartedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r getGroupKeyRunQueryOutputString) HasPrefix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -106608,23 +107114,23 @@ func (r getGroupKeyRunQueryOutputString) HasPrefix(value string) getGroupKeyRunD } } -// deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryOutputString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workflowRunQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r getGroupKeyRunQueryOutputString) HasSuffix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryStartedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "startedAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -106632,50 +107138,50 @@ func (r getGroupKeyRunQueryOutputString) HasSuffix(value string) getGroupKeyRunD } } -// deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryOutputString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r workflowRunQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.HasSuffix(*value) + return r.AfterEquals(*value) } -func (r getGroupKeyRunQueryOutputString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldOutput +func (r workflowRunQueryStartedAtDateTime) Field() workflowRunPrismaFields { + return workflowRunFieldStartedAt } // base struct -type getGroupKeyRunQueryRequeueAfterDateTime struct{} +type workflowRunQueryFinishedAtDateTime struct{} -// Set the optional value of RequeueAfter -func (r getGroupKeyRunQueryRequeueAfterDateTime) Set(value DateTime) getGroupKeyRunSetParam { +// Set the optional value of FinishedAt +func (r workflowRunQueryFinishedAtDateTime) Set(value DateTime) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Value: value, }, } } -// Set the optional value of RequeueAfter dynamically -func (r getGroupKeyRunQueryRequeueAfterDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of FinishedAt dynamically +func (r workflowRunQueryFinishedAtDateTime) SetIfPresent(value *DateTime) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of RequeueAfter dynamically -func (r getGroupKeyRunQueryRequeueAfterDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of FinishedAt dynamically +func (r workflowRunQueryFinishedAtDateTime) SetOptional(value *DateTime) workflowRunSetParam { if value == nil { var v *DateTime - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Value: v, }, } @@ -106684,11 +107190,11 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) SetOptional(value *DateTime) ge return r.Set(*value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaRequeueAfterEqualsParam { +func (r workflowRunQueryFinishedAtDateTime) Equals(value DateTime) workflowRunWithPrismaFinishedAtEqualsParam { - return getGroupKeyRunWithPrismaRequeueAfterEqualsParam{ + return workflowRunWithPrismaFinishedAtEqualsParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -106699,17 +107205,17 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) Equals(value DateTime) getGroup } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaRequeueAfterEqualsParam { +func (r workflowRunQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunWithPrismaFinishedAtEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaRequeueAfterEqualsParam{} + return workflowRunWithPrismaFinishedAtEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -106720,11 +107226,11 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) EqualsOptional(value *DateTime) } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -106735,28 +107241,28 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) IsNull() getGroupKeyRunDefaultP } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Value: direction, }, } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryFinishedAtDateTime) Cursor(cursor DateTime) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Value: cursor, }, } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) In(value []DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "in", @@ -106767,17 +107273,17 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) In(value []DateTime) getGroupKe } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) InIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) NotIn(value []DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "notIn", @@ -106788,17 +107294,17 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) NotIn(value []DateTime) getGrou } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) Lt(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "lt", @@ -106809,17 +107315,17 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) Lt(value DateTime) getGroupKeyR } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) LtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) Lte(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "lte", @@ -106830,17 +107336,17 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) Lte(value DateTime) getGroupKey } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) LteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) Gt(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "gt", @@ -106851,17 +107357,17 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) Gt(value DateTime) getGroupKeyR } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) GtIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) Gte(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "gte", @@ -106872,17 +107378,17 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) Gte(value DateTime) getGroupKey } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) GteIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) Not(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "not", @@ -106893,19 +107399,19 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) Not(value DateTime) getGroupKey } } -func (r getGroupKeyRunQueryRequeueAfterDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) NotIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r getGroupKeyRunQueryRequeueAfterDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) Before(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "lt", @@ -106917,19 +107423,19 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) Before(value DateTime) getGroup } // deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryRequeueAfterDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r getGroupKeyRunQueryRequeueAfterDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) After(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "gt", @@ -106941,19 +107447,19 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) After(value DateTime) getGroupK } // deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryRequeueAfterDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r getGroupKeyRunQueryRequeueAfterDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "lte", @@ -106965,19 +107471,19 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) BeforeEquals(value DateTime) ge } // deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryRequeueAfterDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r getGroupKeyRunQueryRequeueAfterDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryFinishedAtDateTime) AfterEquals(value DateTime) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "finishedAt", Fields: []builder.Field{ { Name: "gte", @@ -106989,49 +107495,49 @@ func (r getGroupKeyRunQueryRequeueAfterDateTime) AfterEquals(value DateTime) get } // deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryRequeueAfterDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.AfterEquals(*value) } -func (r getGroupKeyRunQueryRequeueAfterDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldRequeueAfter +func (r workflowRunQueryFinishedAtDateTime) Field() workflowRunPrismaFields { + return workflowRunFieldFinishedAt } // base struct -type getGroupKeyRunQueryScheduleTimeoutAtDateTime struct{} +type workflowRunQueryDurationInt struct{} -// Set the optional value of ScheduleTimeoutAt -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { +// Set the optional value of Duration +func (r workflowRunQueryDurationInt) Set(value int) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Value: value, }, } } -// Set the optional value of ScheduleTimeoutAt dynamically -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of Duration dynamically +func (r workflowRunQueryDurationInt) SetIfPresent(value *Int) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of ScheduleTimeoutAt dynamically -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of Duration dynamically +func (r workflowRunQueryDurationInt) SetOptional(value *Int) workflowRunSetParam { if value == nil { - var v *DateTime - return getGroupKeyRunSetParam{ + var v *int + return workflowRunSetParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Value: v, }, } @@ -107040,11 +107546,99 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) SetOptional(value *DateTim return r.Set(*value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam { +// Increment the optional value of Duration +func (r workflowRunQueryDurationInt) Increment(value int) workflowRunSetParam { + return workflowRunSetParam{ + data: builder.Field{ + Name: "duration", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} - return getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam{ +func (r workflowRunQueryDurationInt) IncrementIfPresent(value *int) workflowRunSetParam { + if value == nil { + return workflowRunSetParam{} + } + return r.Increment(*value) +} + +// Decrement the optional value of Duration +func (r workflowRunQueryDurationInt) Decrement(value int) workflowRunSetParam { + return workflowRunSetParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunQueryDurationInt) DecrementIfPresent(value *int) workflowRunSetParam { + if value == nil { + return workflowRunSetParam{} + } + return r.Decrement(*value) +} + +// Multiply the optional value of Duration +func (r workflowRunQueryDurationInt) Multiply(value int) workflowRunSetParam { + return workflowRunSetParam{ + data: builder.Field{ + Name: "duration", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunQueryDurationInt) MultiplyIfPresent(value *int) workflowRunSetParam { + if value == nil { + return workflowRunSetParam{} + } + return r.Multiply(*value) +} + +// Divide the optional value of Duration +func (r workflowRunQueryDurationInt) Divide(value int) workflowRunSetParam { + return workflowRunSetParam{ + data: builder.Field{ + Name: "duration", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunQueryDurationInt) DivideIfPresent(value *int) workflowRunSetParam { + if value == nil { + return workflowRunSetParam{} + } + return r.Divide(*value) +} + +func (r workflowRunQueryDurationInt) Equals(value int) workflowRunWithPrismaDurationEqualsParam { + + return workflowRunWithPrismaDurationEqualsParam{ + data: builder.Field{ + Name: "duration", Fields: []builder.Field{ { Name: "equals", @@ -107055,17 +107649,17 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Equals(value DateTime) get } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam { +func (r workflowRunQueryDurationInt) EqualsIfPresent(value *int) workflowRunWithPrismaDurationEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam{} + return workflowRunWithPrismaDurationEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) EqualsOptional(value *Int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "equals", @@ -107076,11 +107670,11 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) EqualsOptional(value *Date } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "equals", @@ -107091,28 +107685,28 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) IsNull() getGroupKeyRunDef } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Value: direction, }, } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryDurationInt) Cursor(cursor int) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Value: cursor, }, } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) In(value []int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "in", @@ -107123,17 +107717,17 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) In(value []DateTime) getGr } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) InIfPresent(value []int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) NotIn(value []int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "notIn", @@ -107144,17 +107738,17 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) NotIn(value []DateTime) ge } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) NotInIfPresent(value []int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) Lt(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "lt", @@ -107165,17 +107759,17 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Lt(value DateTime) getGrou } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) LtIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) Lte(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "lte", @@ -107186,17 +107780,17 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Lte(value DateTime) getGro } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) LteIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) Gt(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "gt", @@ -107207,17 +107801,17 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Gt(value DateTime) getGrou } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) GtIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) Gte(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "gte", @@ -107228,17 +107822,17 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Gte(value DateTime) getGro } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) GteIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) Not(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "not", @@ -107249,19 +107843,19 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Not(value DateTime) getGro } } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) NotIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) LT(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "lt", @@ -107273,22 +107867,22 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Before(value DateTime) get } // deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) LTIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Before(*value) + return r.LT(*value) } -// deprecated: Use Gt instead. +// deprecated: Use Lte instead. -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) LTE(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -107296,23 +107890,23 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) After(value DateTime) getG } } -// deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workflowRunQueryDurationInt) LTEIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.After(*value) + return r.LTE(*value) } -// deprecated: Use Lte instead. +// deprecated: Use Gt instead. -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) GT(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -107320,20 +107914,20 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) BeforeEquals(value DateTim } } -// deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workflowRunQueryDurationInt) GTIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.GT(*value) } // deprecated: Use Gte instead. -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryDurationInt) GTE(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "duration", Fields: []builder.Field{ { Name: "gte", @@ -107345,441 +107939,481 @@ func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) AfterEquals(value DateTime } // deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryDurationInt) GTEIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.AfterEquals(*value) + return r.GTE(*value) } -func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldScheduleTimeoutAt +func (r workflowRunQueryDurationInt) Field() workflowRunPrismaFields { + return workflowRunFieldDuration } // base struct -type getGroupKeyRunQueryErrorString struct{} - -// Set the optional value of Error -func (r getGroupKeyRunQueryErrorString) Set(value string) getGroupKeyRunSetParam { - - return getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "error", - Value: value, - }, - } - -} - -// Set the optional value of Error dynamically -func (r getGroupKeyRunQueryErrorString) SetIfPresent(value *String) getGroupKeyRunSetParam { - if value == nil { - return getGroupKeyRunSetParam{} - } +type workflowRunQueryChildrenWorkflowRun struct{} - return r.Set(*value) -} +type workflowRunQueryChildrenRelations struct{} -// Set the optional value of Error dynamically -func (r getGroupKeyRunQueryErrorString) SetOptional(value *String) getGroupKeyRunSetParam { - if value == nil { +// WorkflowRun -> Children +// +// @relation +// @required +func (workflowRunQueryChildrenRelations) Some( + params ...WorkflowRunWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field - var v *string - return getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "error", - Value: v, - }, - } + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) -} - -func (r getGroupKeyRunQueryErrorString) Equals(value string) getGroupKeyRunWithPrismaErrorEqualsParam { - - return getGroupKeyRunWithPrismaErrorEqualsParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "children", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaErrorEqualsParam { - if value == nil { - return getGroupKeyRunWithPrismaErrorEqualsParam{} +// WorkflowRun -> Children +// +// @relation +// @required +func (workflowRunQueryChildrenRelations) Every( + params ...WorkflowRunWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Equals(*value) -} -func (r getGroupKeyRunQueryErrorString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "children", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) IsNull() getGroupKeyRunDefaultParam { - var str *string = nil - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r getGroupKeyRunQueryErrorString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "error", - Value: direction, - }, - } -} +// WorkflowRun -> Children +// +// @relation +// @required +func (workflowRunQueryChildrenRelations) None( + params ...WorkflowRunWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field -func (r getGroupKeyRunQueryErrorString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ - data: builder.Field{ - Name: "error", - Value: cursor, - }, + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r getGroupKeyRunQueryErrorString) In(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "children", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) InIfPresent(value []string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +func (workflowRunQueryChildrenRelations) Fetch( + + params ...WorkflowRunWhereParam, + +) workflowRunToChildrenFindMany { + var v workflowRunToChildrenFindMany + + v.query.Operation = "query" + v.query.Method = "children" + v.query.Outputs = workflowRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.In(value) -} -func (r getGroupKeyRunQueryErrorString) NotIn(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "notIn", - Value: value, - }, - }, - }, + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } + + return v } -func (r getGroupKeyRunQueryErrorString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +func (r workflowRunQueryChildrenRelations) Link( + params ...WorkflowRunWhereParam, +) workflowRunSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.NotIn(value) -} -func (r getGroupKeyRunQueryErrorString) Lt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "error", + Name: "children", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Lt(*value) -} +func (r workflowRunQueryChildrenRelations) Unlink( + params ...WorkflowRunWhereParam, +) workflowRunSetParam { + var v workflowRunSetParam -func (r getGroupKeyRunQueryErrorString) Lte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workflowRunSetParam{ data: builder.Field{ - Name: "error", + Name: "children", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r getGroupKeyRunQueryErrorString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Lte(*value) +func (r workflowRunQueryChildrenWorkflowRun) Field() workflowRunPrismaFields { + return workflowRunFieldChildren } -func (r getGroupKeyRunQueryErrorString) Gt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +// base struct +type workflowRunQueryScheduledChildrenWorkflowTriggerScheduledRef struct{} + +type workflowRunQueryScheduledChildrenRelations struct{} + +// WorkflowRun -> ScheduledChildren +// +// @relation +// @required +func (workflowRunQueryScheduledChildrenRelations) Some( + params ...WorkflowTriggerScheduledRefWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "scheduledChildren", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +// WorkflowRun -> ScheduledChildren +// +// @relation +// @required +func (workflowRunQueryScheduledChildrenRelations) Every( + params ...WorkflowTriggerScheduledRefWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Gt(*value) -} -func (r getGroupKeyRunQueryErrorString) Gte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "scheduledChildren", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +// WorkflowRun -> ScheduledChildren +// +// @relation +// @required +func (workflowRunQueryScheduledChildrenRelations) None( + params ...WorkflowTriggerScheduledRefWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Gte(*value) -} -func (r getGroupKeyRunQueryErrorString) Contains(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "scheduledChildren", Fields: []builder.Field{ { - Name: "contains", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +func (workflowRunQueryScheduledChildrenRelations) Fetch( + + params ...WorkflowTriggerScheduledRefWhereParam, + +) workflowRunToScheduledChildrenFindMany { + var v workflowRunToScheduledChildrenFindMany + + v.query.Operation = "query" + v.query.Method = "scheduledChildren" + v.query.Outputs = workflowTriggerScheduledRefOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Contains(*value) -} -func (r getGroupKeyRunQueryErrorString) StartsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } + + return v } -func (r getGroupKeyRunQueryErrorString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +func (r workflowRunQueryScheduledChildrenRelations) Link( + params ...WorkflowTriggerScheduledRefWhereParam, +) workflowRunSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.StartsWith(*value) -} -func (r getGroupKeyRunQueryErrorString) EndsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "error", + Name: "scheduledChildren", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.EndsWith(*value) -} +func (r workflowRunQueryScheduledChildrenRelations) Unlink( + params ...WorkflowTriggerScheduledRefWhereParam, +) workflowRunSetParam { + var v workflowRunSetParam -func (r getGroupKeyRunQueryErrorString) Mode(value QueryMode) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workflowRunSetParam{ data: builder.Field{ - Name: "error", + Name: "scheduledChildren", Fields: []builder.Field{ { - Name: "mode", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r getGroupKeyRunQueryErrorString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Mode(*value) +func (r workflowRunQueryScheduledChildrenWorkflowTriggerScheduledRef) Field() workflowRunPrismaFields { + return workflowRunFieldScheduledChildren } -func (r getGroupKeyRunQueryErrorString) Not(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +// base struct +type workflowRunQueryParentWorkflowRun struct{} + +type workflowRunQueryParentRelations struct{} + +// WorkflowRun -> Parent +// +// @relation +// @optional +func (workflowRunQueryParentRelations) Where( + params ...WorkflowRunWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "parent", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r getGroupKeyRunQueryErrorString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.Not(*value) +func (workflowRunQueryParentRelations) Fetch() workflowRunToParentFindUnique { + var v workflowRunToParentFindUnique + + v.query.Operation = "query" + v.query.Method = "parent" + v.query.Outputs = workflowRunOutput + + return v } -// deprecated: Use StartsWith instead. +func (r workflowRunQueryParentRelations) Link( + params WorkflowRunWhereParam, +) workflowRunSetParam { + var fields []builder.Field -func (r getGroupKeyRunQueryErrorString) HasPrefix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunSetParam{} + } + + fields = append(fields, f) + + return workflowRunSetParam{ data: builder.Field{ - Name: "error", + Name: "parent", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryErrorString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.HasPrefix(*value) -} - -// deprecated: Use EndsWith instead. +func (r workflowRunQueryParentRelations) Unlink() workflowRunSetParam { + var v workflowRunSetParam -func (r getGroupKeyRunQueryErrorString) HasSuffix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ + v = workflowRunSetParam{ data: builder.Field{ - Name: "error", + Name: "parent", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } -} -// deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryErrorString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} - } - return r.HasSuffix(*value) + return v } -func (r getGroupKeyRunQueryErrorString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldError +func (r workflowRunQueryParentWorkflowRun) Field() workflowRunPrismaFields { + return workflowRunFieldParent } // base struct -type getGroupKeyRunQueryStartedAtDateTime struct{} +type workflowRunQueryParentIDString struct{} -// Set the optional value of StartedAt -func (r getGroupKeyRunQueryStartedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { +// Set the optional value of ParentID +func (r workflowRunQueryParentIDString) Set(value string) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Value: value, }, } } -// Set the optional value of StartedAt dynamically -func (r getGroupKeyRunQueryStartedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of ParentID dynamically +func (r workflowRunQueryParentIDString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of StartedAt dynamically -func (r getGroupKeyRunQueryStartedAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of ParentID dynamically +func (r workflowRunQueryParentIDString) SetOptional(value *String) workflowRunSetParam { if value == nil { - var v *DateTime - return getGroupKeyRunSetParam{ + var v *string + return workflowRunSetParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Value: v, }, } @@ -107788,11 +108422,11 @@ func (r getGroupKeyRunQueryStartedAtDateTime) SetOptional(value *DateTime) getGr return r.Set(*value) } -func (r getGroupKeyRunQueryStartedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaStartedAtEqualsParam { +func (r workflowRunQueryParentIDString) Equals(value string) workflowRunWithPrismaParentIDEqualsParam { - return getGroupKeyRunWithPrismaStartedAtEqualsParam{ + return workflowRunWithPrismaParentIDEqualsParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "equals", @@ -107803,17 +108437,17 @@ func (r getGroupKeyRunQueryStartedAtDateTime) Equals(value DateTime) getGroupKey } } -func (r getGroupKeyRunQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaStartedAtEqualsParam { +func (r workflowRunQueryParentIDString) EqualsIfPresent(value *string) workflowRunWithPrismaParentIDEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaStartedAtEqualsParam{} + return workflowRunWithPrismaParentIDEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) EqualsOptional(value *String) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "equals", @@ -107824,11 +108458,11 @@ func (r getGroupKeyRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) ge } } -func (r getGroupKeyRunQueryStartedAtDateTime) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "equals", @@ -107839,28 +108473,28 @@ func (r getGroupKeyRunQueryStartedAtDateTime) IsNull() getGroupKeyRunDefaultPara } } -func (r getGroupKeyRunQueryStartedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Value: direction, }, } } -func (r getGroupKeyRunQueryStartedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryParentIDString) Cursor(cursor string) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Value: cursor, }, } } -func (r getGroupKeyRunQueryStartedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) In(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "in", @@ -107871,17 +108505,17 @@ func (r getGroupKeyRunQueryStartedAtDateTime) In(value []DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryStartedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) InIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryStartedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) NotIn(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "notIn", @@ -107892,17 +108526,17 @@ func (r getGroupKeyRunQueryStartedAtDateTime) NotIn(value []DateTime) getGroupKe } } -func (r getGroupKeyRunQueryStartedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) NotInIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryStartedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) Lt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "lt", @@ -107913,17 +108547,17 @@ func (r getGroupKeyRunQueryStartedAtDateTime) Lt(value DateTime) getGroupKeyRunD } } -func (r getGroupKeyRunQueryStartedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) LtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryStartedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) Lte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "lte", @@ -107934,17 +108568,17 @@ func (r getGroupKeyRunQueryStartedAtDateTime) Lte(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryStartedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) LteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryStartedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) Gt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "gt", @@ -107955,17 +108589,17 @@ func (r getGroupKeyRunQueryStartedAtDateTime) Gt(value DateTime) getGroupKeyRunD } } -func (r getGroupKeyRunQueryStartedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) GtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryStartedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) Gte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "gte", @@ -107976,20 +108610,20 @@ func (r getGroupKeyRunQueryStartedAtDateTime) Gte(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryStartedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) GteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryStartedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) Contains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -107997,22 +108631,41 @@ func (r getGroupKeyRunQueryStartedAtDateTime) Not(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryStartedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r workflowRunQueryParentIDString) StartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "parentId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r getGroupKeyRunQueryStartedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { + if value == nil { + return workflowRunDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r workflowRunQueryParentIDString) EndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -108020,23 +108673,41 @@ func (r getGroupKeyRunQueryStartedAtDateTime) Before(value DateTime) getGroupKey } } -// deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r workflowRunQueryParentIDString) Mode(value QueryMode) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "parentId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r getGroupKeyRunQueryStartedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { + if value == nil { + return workflowRunDefaultParam{} + } + return r.Mode(*value) +} + +func (r workflowRunQueryParentIDString) Not(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -108044,23 +108715,22 @@ func (r getGroupKeyRunQueryStartedAtDateTime) After(value DateTime) getGroupKeyR } } -// deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryStartedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentIDString) NotIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r getGroupKeyRunQueryStartedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) HasPrefix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -108068,23 +108738,23 @@ func (r getGroupKeyRunQueryStartedAtDateTime) BeforeEquals(value DateTime) getGr } } -// deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunQueryParentIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r getGroupKeyRunQueryStartedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentIDString) HasSuffix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -108092,50 +108762,138 @@ func (r getGroupKeyRunQueryStartedAtDateTime) AfterEquals(value DateTime) getGro } } -// deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunQueryParentIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryStartedAtDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldStartedAt +func (r workflowRunQueryParentIDString) Field() workflowRunPrismaFields { + return workflowRunFieldParentID } // base struct -type getGroupKeyRunQueryFinishedAtDateTime struct{} +type workflowRunQueryParentStepRunStepRun struct{} -// Set the optional value of FinishedAt -func (r getGroupKeyRunQueryFinishedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { +type workflowRunQueryParentStepRunRelations struct{} - return getGroupKeyRunSetParam{ +// WorkflowRun -> ParentStepRun +// +// @relation +// @optional +func (workflowRunQueryParentStepRunRelations) Where( + params ...StepRunWhereParam, +) workflowRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRun", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (workflowRunQueryParentStepRunRelations) Fetch() workflowRunToParentStepRunFindUnique { + var v workflowRunToParentStepRunFindUnique + + v.query.Operation = "query" + v.query.Method = "parentStepRun" + v.query.Outputs = stepRunOutput + + return v +} + +func (r workflowRunQueryParentStepRunRelations) Link( + params StepRunWhereParam, +) workflowRunSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunSetParam{} + } + + fields = append(fields, f) + + return workflowRunSetParam{ + data: builder.Field{ + Name: "parentStepRun", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r workflowRunQueryParentStepRunRelations) Unlink() workflowRunSetParam { + var v workflowRunSetParam + + v = workflowRunSetParam{ + data: builder.Field{ + Name: "parentStepRun", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r workflowRunQueryParentStepRunStepRun) Field() workflowRunPrismaFields { + return workflowRunFieldParentStepRun +} + +// base struct +type workflowRunQueryParentStepRunIDString struct{} + +// Set the optional value of ParentStepRunID +func (r workflowRunQueryParentStepRunIDString) Set(value string) workflowRunSetParam { + + return workflowRunSetParam{ + data: builder.Field{ + Name: "parentStepRunId", Value: value, }, } } -// Set the optional value of FinishedAt dynamically -func (r getGroupKeyRunQueryFinishedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of ParentStepRunID dynamically +func (r workflowRunQueryParentStepRunIDString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of FinishedAt dynamically -func (r getGroupKeyRunQueryFinishedAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of ParentStepRunID dynamically +func (r workflowRunQueryParentStepRunIDString) SetOptional(value *String) workflowRunSetParam { if value == nil { - var v *DateTime - return getGroupKeyRunSetParam{ + var v *string + return workflowRunSetParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Value: v, }, } @@ -108144,11 +108902,11 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) SetOptional(value *DateTime) getG return r.Set(*value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaFinishedAtEqualsParam { +func (r workflowRunQueryParentStepRunIDString) Equals(value string) workflowRunWithPrismaParentStepRunIDEqualsParam { - return getGroupKeyRunWithPrismaFinishedAtEqualsParam{ + return workflowRunWithPrismaParentStepRunIDEqualsParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "equals", @@ -108159,17 +108917,17 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) Equals(value DateTime) getGroupKe } } -func (r getGroupKeyRunQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaFinishedAtEqualsParam { +func (r workflowRunQueryParentStepRunIDString) EqualsIfPresent(value *string) workflowRunWithPrismaParentStepRunIDEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaFinishedAtEqualsParam{} + return workflowRunWithPrismaParentStepRunIDEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) EqualsOptional(value *String) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "equals", @@ -108180,11 +108938,11 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) g } } -func (r getGroupKeyRunQueryFinishedAtDateTime) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "equals", @@ -108195,28 +108953,28 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) IsNull() getGroupKeyRunDefaultPar } } -func (r getGroupKeyRunQueryFinishedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Value: direction, }, } } -func (r getGroupKeyRunQueryFinishedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryParentStepRunIDString) Cursor(cursor string) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Value: cursor, }, } } -func (r getGroupKeyRunQueryFinishedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) In(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "in", @@ -108227,17 +108985,17 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) In(value []DateTime) getGroupKeyR } } -func (r getGroupKeyRunQueryFinishedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) InIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) NotIn(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "notIn", @@ -108248,17 +109006,17 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) NotIn(value []DateTime) getGroupK } } -func (r getGroupKeyRunQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) NotInIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) Lt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "lt", @@ -108269,17 +109027,17 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) Lt(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryFinishedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) LtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) Lte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "lte", @@ -108290,17 +109048,17 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) Lte(value DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryFinishedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) LteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) Gt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "gt", @@ -108311,17 +109069,17 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) Gt(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryFinishedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) GtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) Gte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { Name: "gte", @@ -108332,20 +109090,20 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) Gte(value DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryFinishedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) GteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) Contains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -108353,22 +109111,41 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) Not(value DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryFinishedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) ContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r workflowRunQueryParentStepRunIDString) StartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "parentStepRunId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r getGroupKeyRunQueryFinishedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) StartsWithIfPresent(value *string) workflowRunDefaultParam { + if value == nil { + return workflowRunDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r workflowRunQueryParentStepRunIDString) EndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -108376,23 +109153,41 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) Before(value DateTime) getGroupKe } } -// deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) EndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r workflowRunQueryParentStepRunIDString) Mode(value QueryMode) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "parentStepRunId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r getGroupKeyRunQueryFinishedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { + if value == nil { + return workflowRunDefaultParam{} + } + return r.Mode(*value) +} + +func (r workflowRunQueryParentStepRunIDString) Not(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -108400,23 +109195,22 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) After(value DateTime) getGroupKey } } -// deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryParentStepRunIDString) NotIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r getGroupKeyRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) HasPrefix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -108424,23 +109218,23 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) getG } } -// deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunQueryParentStepRunIDString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r getGroupKeyRunQueryFinishedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryParentStepRunIDString) HasSuffix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "parentStepRunId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -108448,50 +109242,50 @@ func (r getGroupKeyRunQueryFinishedAtDateTime) AfterEquals(value DateTime) getGr } } -// deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunQueryParentStepRunIDString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryFinishedAtDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldFinishedAt +func (r workflowRunQueryParentStepRunIDString) Field() workflowRunPrismaFields { + return workflowRunFieldParentStepRunID } // base struct -type getGroupKeyRunQueryTimeoutAtDateTime struct{} +type workflowRunQueryChildIndexInt struct{} -// Set the optional value of TimeoutAt -func (r getGroupKeyRunQueryTimeoutAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { +// Set the optional value of ChildIndex +func (r workflowRunQueryChildIndexInt) Set(value int) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Value: value, }, } } -// Set the optional value of TimeoutAt dynamically -func (r getGroupKeyRunQueryTimeoutAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of ChildIndex dynamically +func (r workflowRunQueryChildIndexInt) SetIfPresent(value *Int) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of TimeoutAt dynamically -func (r getGroupKeyRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of ChildIndex dynamically +func (r workflowRunQueryChildIndexInt) SetOptional(value *Int) workflowRunSetParam { if value == nil { - var v *DateTime - return getGroupKeyRunSetParam{ + var v *int + return workflowRunSetParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Value: v, }, } @@ -108500,11 +109294,99 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) getGr return r.Set(*value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaTimeoutAtEqualsParam { - - return getGroupKeyRunWithPrismaTimeoutAtEqualsParam{ +// Increment the optional value of ChildIndex +func (r workflowRunQueryChildIndexInt) Increment(value int) workflowRunSetParam { + return workflowRunSetParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunQueryChildIndexInt) IncrementIfPresent(value *int) workflowRunSetParam { + if value == nil { + return workflowRunSetParam{} + } + return r.Increment(*value) +} + +// Decrement the optional value of ChildIndex +func (r workflowRunQueryChildIndexInt) Decrement(value int) workflowRunSetParam { + return workflowRunSetParam{ + data: builder.Field{ + Name: "childIndex", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunQueryChildIndexInt) DecrementIfPresent(value *int) workflowRunSetParam { + if value == nil { + return workflowRunSetParam{} + } + return r.Decrement(*value) +} + +// Multiply the optional value of ChildIndex +func (r workflowRunQueryChildIndexInt) Multiply(value int) workflowRunSetParam { + return workflowRunSetParam{ + data: builder.Field{ + Name: "childIndex", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunQueryChildIndexInt) MultiplyIfPresent(value *int) workflowRunSetParam { + if value == nil { + return workflowRunSetParam{} + } + return r.Multiply(*value) +} + +// Divide the optional value of ChildIndex +func (r workflowRunQueryChildIndexInt) Divide(value int) workflowRunSetParam { + return workflowRunSetParam{ + data: builder.Field{ + Name: "childIndex", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunQueryChildIndexInt) DivideIfPresent(value *int) workflowRunSetParam { + if value == nil { + return workflowRunSetParam{} + } + return r.Divide(*value) +} + +func (r workflowRunQueryChildIndexInt) Equals(value int) workflowRunWithPrismaChildIndexEqualsParam { + + return workflowRunWithPrismaChildIndexEqualsParam{ + data: builder.Field{ + Name: "childIndex", Fields: []builder.Field{ { Name: "equals", @@ -108515,17 +109397,17 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) Equals(value DateTime) getGroupKey } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaTimeoutAtEqualsParam { +func (r workflowRunQueryChildIndexInt) EqualsIfPresent(value *int) workflowRunWithPrismaChildIndexEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaTimeoutAtEqualsParam{} + return workflowRunWithPrismaChildIndexEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) EqualsOptional(value *Int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "equals", @@ -108536,11 +109418,11 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) ge } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "equals", @@ -108551,28 +109433,28 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) IsNull() getGroupKeyRunDefaultPara } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Value: direction, }, } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryChildIndexInt) Cursor(cursor int) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Value: cursor, }, } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) In(value []int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "in", @@ -108583,17 +109465,17 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) In(value []DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) InIfPresent(value []int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) NotIn(value []int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "notIn", @@ -108604,17 +109486,17 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) NotIn(value []DateTime) getGroupKe } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) NotInIfPresent(value []int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) Lt(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "lt", @@ -108625,17 +109507,17 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) Lt(value DateTime) getGroupKeyRunD } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) LtIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) Lte(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "lte", @@ -108646,17 +109528,17 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) Lte(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) LteIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) Gt(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "gt", @@ -108667,17 +109549,17 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) Gt(value DateTime) getGroupKeyRunD } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) GtIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) Gte(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "gte", @@ -108688,17 +109570,17 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) Gte(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) GteIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) Not(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "not", @@ -108709,19 +109591,19 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) Not(value DateTime) getGroupKeyRun } } -func (r getGroupKeyRunQueryTimeoutAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) NotIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r getGroupKeyRunQueryTimeoutAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) LT(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "lt", @@ -108733,22 +109615,22 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) Before(value DateTime) getGroupKey } // deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryTimeoutAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) LTIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Before(*value) + return r.LT(*value) } -// deprecated: Use Gt instead. +// deprecated: Use Lte instead. -func (r getGroupKeyRunQueryTimeoutAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) LTE(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -108756,23 +109638,23 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) After(value DateTime) getGroupKeyR } } -// deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryTimeoutAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workflowRunQueryChildIndexInt) LTEIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.After(*value) + return r.LTE(*value) } -// deprecated: Use Lte instead. +// deprecated: Use Gt instead. -func (r getGroupKeyRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) GT(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -108780,20 +109662,20 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) getGr } } -// deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workflowRunQueryChildIndexInt) GTIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.GT(*value) } // deprecated: Use Gte instead. -func (r getGroupKeyRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildIndexInt) GTE(value int) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "childIndex", Fields: []builder.Field{ { Name: "gte", @@ -108805,49 +109687,49 @@ func (r getGroupKeyRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) getGro } // deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildIndexInt) GTEIfPresent(value *int) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.AfterEquals(*value) + return r.GTE(*value) } -func (r getGroupKeyRunQueryTimeoutAtDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldTimeoutAt +func (r workflowRunQueryChildIndexInt) Field() workflowRunPrismaFields { + return workflowRunFieldChildIndex } // base struct -type getGroupKeyRunQueryCancelledAtDateTime struct{} +type workflowRunQueryChildKeyString struct{} -// Set the optional value of CancelledAt -func (r getGroupKeyRunQueryCancelledAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { +// Set the optional value of ChildKey +func (r workflowRunQueryChildKeyString) Set(value string) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Value: value, }, } } -// Set the optional value of CancelledAt dynamically -func (r getGroupKeyRunQueryCancelledAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of ChildKey dynamically +func (r workflowRunQueryChildKeyString) SetIfPresent(value *String) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of CancelledAt dynamically -func (r getGroupKeyRunQueryCancelledAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { +// Set the optional value of ChildKey dynamically +func (r workflowRunQueryChildKeyString) SetOptional(value *String) workflowRunSetParam { if value == nil { - var v *DateTime - return getGroupKeyRunSetParam{ + var v *string + return workflowRunSetParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Value: v, }, } @@ -108856,11 +109738,11 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) SetOptional(value *DateTime) get return r.Set(*value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaCancelledAtEqualsParam { +func (r workflowRunQueryChildKeyString) Equals(value string) workflowRunWithPrismaChildKeyEqualsParam { - return getGroupKeyRunWithPrismaCancelledAtEqualsParam{ + return workflowRunWithPrismaChildKeyEqualsParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "equals", @@ -108871,17 +109753,17 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) Equals(value DateTime) getGroupK } } -func (r getGroupKeyRunQueryCancelledAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaCancelledAtEqualsParam { +func (r workflowRunQueryChildKeyString) EqualsIfPresent(value *string) workflowRunWithPrismaChildKeyEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaCancelledAtEqualsParam{} + return workflowRunWithPrismaChildKeyEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) EqualsOptional(value *String) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "equals", @@ -108892,11 +109774,11 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) EqualsOptional(value *DateTime) } } -func (r getGroupKeyRunQueryCancelledAtDateTime) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "equals", @@ -108907,28 +109789,28 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) IsNull() getGroupKeyRunDefaultPa } } -func (r getGroupKeyRunQueryCancelledAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Value: direction, }, } } -func (r getGroupKeyRunQueryCancelledAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryChildKeyString) Cursor(cursor string) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Value: cursor, }, } } -func (r getGroupKeyRunQueryCancelledAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) In(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "in", @@ -108939,17 +109821,17 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) In(value []DateTime) getGroupKey } } -func (r getGroupKeyRunQueryCancelledAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) InIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.In(value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) NotIn(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "notIn", @@ -108960,17 +109842,17 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) NotIn(value []DateTime) getGroup } } -func (r getGroupKeyRunQueryCancelledAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) NotInIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) Lt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "lt", @@ -108981,17 +109863,17 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) Lt(value DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryCancelledAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) LtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) Lte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "lte", @@ -109002,17 +109884,17 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) Lte(value DateTime) getGroupKeyR } } -func (r getGroupKeyRunQueryCancelledAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) LteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) Gt(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "gt", @@ -109023,17 +109905,17 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) Gt(value DateTime) getGroupKeyRu } } -func (r getGroupKeyRunQueryCancelledAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) GtIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) Gte(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { Name: "gte", @@ -109044,20 +109926,20 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) Gte(value DateTime) getGroupKeyR } } -func (r getGroupKeyRunQueryCancelledAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) GteIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) Contains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -109065,22 +109947,41 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) Not(value DateTime) getGroupKeyR } } -func (r getGroupKeyRunQueryCancelledAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) ContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r workflowRunQueryChildKeyString) StartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "childKey", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r getGroupKeyRunQueryCancelledAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) StartsWithIfPresent(value *string) workflowRunDefaultParam { + if value == nil { + return workflowRunDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r workflowRunQueryChildKeyString) EndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -109088,23 +109989,41 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) Before(value DateTime) getGroupK } } -// deprecated: Use LtIfPresent instead. -func (r getGroupKeyRunQueryCancelledAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) EndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r workflowRunQueryChildKeyString) Mode(value QueryMode) workflowRunDefaultParam { + return workflowRunDefaultParam{ + data: builder.Field{ + Name: "childKey", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r getGroupKeyRunQueryCancelledAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) ModeIfPresent(value *QueryMode) workflowRunDefaultParam { + if value == nil { + return workflowRunDefaultParam{} + } + return r.Mode(*value) +} + +func (r workflowRunQueryChildKeyString) Not(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -109112,23 +110031,22 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) After(value DateTime) getGroupKe } } -// deprecated: Use GtIfPresent instead. -func (r getGroupKeyRunQueryCancelledAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +func (r workflowRunQueryChildKeyString) NotIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r getGroupKeyRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) HasPrefix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -109136,23 +110054,23 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) get } } -// deprecated: Use LteIfPresent instead. -func (r getGroupKeyRunQueryCancelledAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunQueryChildKeyString) HasPrefixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r getGroupKeyRunQueryCancelledAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryChildKeyString) HasSuffix(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "childKey", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -109160,50 +110078,50 @@ func (r getGroupKeyRunQueryCancelledAtDateTime) AfterEquals(value DateTime) getG } } -// deprecated: Use GteIfPresent instead. -func (r getGroupKeyRunQueryCancelledAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunQueryChildKeyString) HasSuffixIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryCancelledAtDateTime) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldCancelledAt +func (r workflowRunQueryChildKeyString) Field() workflowRunPrismaFields { + return workflowRunFieldChildKey } // base struct -type getGroupKeyRunQueryCancelledReasonString struct{} +type workflowRunQueryAdditionalMetadataJson struct{} -// Set the optional value of CancelledReason -func (r getGroupKeyRunQueryCancelledReasonString) Set(value string) getGroupKeyRunSetParam { +// Set the optional value of AdditionalMetadata +func (r workflowRunQueryAdditionalMetadataJson) Set(value JSON) workflowRunSetParam { - return getGroupKeyRunSetParam{ + return workflowRunSetParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Value: value, }, } } -// Set the optional value of CancelledReason dynamically -func (r getGroupKeyRunQueryCancelledReasonString) SetIfPresent(value *String) getGroupKeyRunSetParam { +// Set the optional value of AdditionalMetadata dynamically +func (r workflowRunQueryAdditionalMetadataJson) SetIfPresent(value *JSON) workflowRunSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunSetParam{} } return r.Set(*value) } -// Set the optional value of CancelledReason dynamically -func (r getGroupKeyRunQueryCancelledReasonString) SetOptional(value *String) getGroupKeyRunSetParam { +// Set the optional value of AdditionalMetadata dynamically +func (r workflowRunQueryAdditionalMetadataJson) SetOptional(value *JSON) workflowRunSetParam { if value == nil { - var v *string - return getGroupKeyRunSetParam{ + var v *JSON + return workflowRunSetParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Value: v, }, } @@ -109212,11 +110130,11 @@ func (r getGroupKeyRunQueryCancelledReasonString) SetOptional(value *String) get return r.Set(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Equals(value string) getGroupKeyRunWithPrismaCancelledReasonEqualsParam { +func (r workflowRunQueryAdditionalMetadataJson) Equals(value JSON) workflowRunWithPrismaAdditionalMetadataEqualsParam { - return getGroupKeyRunWithPrismaCancelledReasonEqualsParam{ + return workflowRunWithPrismaAdditionalMetadataEqualsParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { Name: "equals", @@ -109227,17 +110145,17 @@ func (r getGroupKeyRunQueryCancelledReasonString) Equals(value string) getGroupK } } -func (r getGroupKeyRunQueryCancelledReasonString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaCancelledReasonEqualsParam { +func (r workflowRunQueryAdditionalMetadataJson) EqualsIfPresent(value *JSON) workflowRunWithPrismaAdditionalMetadataEqualsParam { if value == nil { - return getGroupKeyRunWithPrismaCancelledReasonEqualsParam{} + return workflowRunWithPrismaAdditionalMetadataEqualsParam{} } return r.Equals(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) EqualsOptional(value *JSON) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { Name: "equals", @@ -109248,11 +110166,11 @@ func (r getGroupKeyRunQueryCancelledReasonString) EqualsOptional(value *String) } } -func (r getGroupKeyRunQueryCancelledReasonString) IsNull() getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) IsNull() workflowRunDefaultParam { var str *string = nil - return getGroupKeyRunDefaultParam{ + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { Name: "equals", @@ -109263,31 +110181,31 @@ func (r getGroupKeyRunQueryCancelledReasonString) IsNull() getGroupKeyRunDefault } } -func (r getGroupKeyRunQueryCancelledReasonString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) Order(direction SortOrder) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Value: direction, }, } } -func (r getGroupKeyRunQueryCancelledReasonString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunQueryAdditionalMetadataJson) Cursor(cursor JSON) workflowRunCursorParam { + return workflowRunCursorParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Value: cursor, }, } } -func (r getGroupKeyRunQueryCancelledReasonString) In(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) Path(value []string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "in", + Name: "path", Value: value, }, }, @@ -109295,20 +110213,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) In(value []string) getGroupKey } } -func (r getGroupKeyRunQueryCancelledReasonString) InIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) PathIfPresent(value []string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.In(value) + return r.Path(value) } -func (r getGroupKeyRunQueryCancelledReasonString) NotIn(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) StringContains(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "notIn", + Name: "string_contains", Value: value, }, }, @@ -109316,20 +110234,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) NotIn(value []string) getGroup } } -func (r getGroupKeyRunQueryCancelledReasonString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) StringContainsIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.NotIn(value) + return r.StringContains(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Lt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) StringStartsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "lt", + Name: "string_starts_with", Value: value, }, }, @@ -109337,20 +110255,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) Lt(value string) getGroupKeyRu } } -func (r getGroupKeyRunQueryCancelledReasonString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) StringStartsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Lt(*value) + return r.StringStartsWith(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Lte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) StringEndsWith(value string) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "lte", + Name: "string_ends_with", Value: value, }, }, @@ -109358,20 +110276,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) Lte(value string) getGroupKeyR } } -func (r getGroupKeyRunQueryCancelledReasonString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) StringEndsWithIfPresent(value *string) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Lte(*value) + return r.StringEndsWith(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Gt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) ArrayContains(value JSON) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "gt", + Name: "array_contains", Value: value, }, }, @@ -109379,20 +110297,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) Gt(value string) getGroupKeyRu } } -func (r getGroupKeyRunQueryCancelledReasonString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) ArrayContainsIfPresent(value *JSON) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Gt(*value) + return r.ArrayContains(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Gte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) ArrayStartsWith(value JSON) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "gte", + Name: "array_starts_with", Value: value, }, }, @@ -109400,20 +110318,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) Gte(value string) getGroupKeyR } } -func (r getGroupKeyRunQueryCancelledReasonString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) ArrayStartsWithIfPresent(value *JSON) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Gte(*value) + return r.ArrayStartsWith(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Contains(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) ArrayEndsWith(value JSON) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "contains", + Name: "array_ends_with", Value: value, }, }, @@ -109421,20 +110339,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) Contains(value string) getGrou } } -func (r getGroupKeyRunQueryCancelledReasonString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) ArrayEndsWithIfPresent(value *JSON) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Contains(*value) + return r.ArrayEndsWith(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) StartsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) Lt(value JSON) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -109442,20 +110360,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) StartsWith(value string) getGr } } -func (r getGroupKeyRunQueryCancelledReasonString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) LtIfPresent(value *JSON) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.StartsWith(*value) + return r.Lt(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) EndsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) Lte(value JSON) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lte", Value: value, }, }, @@ -109463,20 +110381,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) EndsWith(value string) getGrou } } -func (r getGroupKeyRunQueryCancelledReasonString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) LteIfPresent(value *JSON) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.EndsWith(*value) + return r.Lte(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Mode(value QueryMode) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) Gt(value JSON) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "mode", + Name: "gt", Value: value, }, }, @@ -109484,20 +110402,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) Mode(value QueryMode) getGroup } } -func (r getGroupKeyRunQueryCancelledReasonString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) GtIfPresent(value *JSON) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Mode(*value) + return r.Gt(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Not(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) Gte(value JSON) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -109505,22 +110423,20 @@ func (r getGroupKeyRunQueryCancelledReasonString) Not(value string) getGroupKeyR } } -func (r getGroupKeyRunQueryCancelledReasonString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) GteIfPresent(value *JSON) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.Not(*value) + return r.Gte(*value) } -// deprecated: Use StartsWith instead. - -func (r getGroupKeyRunQueryCancelledReasonString) HasPrefix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunQueryAdditionalMetadataJson) Not(value JSONNullValueFilter) workflowRunDefaultParam { + return workflowRunDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "additionalMetadata", Fields: []builder.Field{ { - Name: "starts_with", + Name: "not", Value: value, }, }, @@ -109528,90 +110444,210 @@ func (r getGroupKeyRunQueryCancelledReasonString) HasPrefix(value string) getGro } } -// deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryCancelledReasonString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunQueryAdditionalMetadataJson) NotIfPresent(value *JSONNullValueFilter) workflowRunDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDefaultParam{} } - return r.HasPrefix(*value) + return r.Not(*value) } -// deprecated: Use EndsWith instead. +func (r workflowRunQueryAdditionalMetadataJson) Field() workflowRunPrismaFields { + return workflowRunFieldAdditionalMetadata +} -func (r getGroupKeyRunQueryCancelledReasonString) HasSuffix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +// WorkflowRunDedupe acts as a namespaces to access query methods for the WorkflowRunDedupe model +var WorkflowRunDedupe = workflowRunDedupeQuery{} + +// workflowRunDedupeQuery exposes query functions for the workflowRunDedupe model +type workflowRunDedupeQuery struct { + + // ID + // + // @required + // @unique + ID workflowRunDedupeQueryIDBigInt + + // CreatedAt + // + // @required + CreatedAt workflowRunDedupeQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt workflowRunDedupeQueryUpdatedAtDateTime + + Tenant workflowRunDedupeQueryTenantRelations + + // TenantID + // + // @required + TenantID workflowRunDedupeQueryTenantIDString + + // WorkflowID + // + // @required + WorkflowID workflowRunDedupeQueryWorkflowIDString + + // WorkflowRunID + // + // @required + WorkflowRunID workflowRunDedupeQueryWorkflowRunIDString + + // Value + // + // @required + Value workflowRunDedupeQueryValueString +} + +func (workflowRunDedupeQuery) Not(params ...WorkflowRunDedupeWhereParam) workflowRunDedupeDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "cancelledReason", - Fields: []builder.Field{ - { - Name: "ends_with", - Value: value, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryCancelledReasonString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +func (workflowRunDedupeQuery) Or(params ...WorkflowRunDedupeWhereParam) workflowRunDedupeDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, } - return r.HasSuffix(*value) } -func (r getGroupKeyRunQueryCancelledReasonString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldCancelledReason +func (workflowRunDedupeQuery) And(params ...WorkflowRunDedupeWhereParam) workflowRunDedupeDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (workflowRunDedupeQuery) TenantIDWorkflowIDValue( + _tenantID WorkflowRunDedupeWithPrismaTenantIDWhereParam, + + _workflowID WorkflowRunDedupeWithPrismaWorkflowIDWhereParam, + + _value WorkflowRunDedupeWithPrismaValueWhereParam, +) WorkflowRunDedupeEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _tenantID.field()) + fields = append(fields, _workflowID.field()) + fields = append(fields, _value.field()) + + return workflowRunDedupeEqualsUniqueParam{ + data: builder.Field{ + Name: "tenantId_workflowId_value", + Fields: builder.TransformEquals(fields), + }, + } } // base struct -type getGroupKeyRunQueryCancelledErrorString struct{} +type workflowRunDedupeQueryIDBigInt struct{} -// Set the optional value of CancelledError -func (r getGroupKeyRunQueryCancelledErrorString) Set(value string) getGroupKeyRunSetParam { +// Set the required value of ID +func (r workflowRunDedupeQueryIDBigInt) Set(value BigInt) workflowRunDedupeSetParam { - return getGroupKeyRunSetParam{ + return workflowRunDedupeSetParam{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Value: value, }, } } -// Set the optional value of CancelledError dynamically -func (r getGroupKeyRunQueryCancelledErrorString) SetIfPresent(value *String) getGroupKeyRunSetParam { +// Set the optional value of ID dynamically +func (r workflowRunDedupeQueryIDBigInt) SetIfPresent(value *BigInt) workflowRunDedupeSetParam { if value == nil { - return getGroupKeyRunSetParam{} + return workflowRunDedupeSetParam{} } return r.Set(*value) } -// Set the optional value of CancelledError dynamically -func (r getGroupKeyRunQueryCancelledErrorString) SetOptional(value *String) getGroupKeyRunSetParam { +// Increment the required value of ID +func (r workflowRunDedupeQueryIDBigInt) Increment(value BigInt) workflowRunDedupeSetParam { + return workflowRunDedupeSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunDedupeQueryIDBigInt) IncrementIfPresent(value *BigInt) workflowRunDedupeSetParam { if value == nil { + return workflowRunDedupeSetParam{} + } + return r.Increment(*value) +} - var v *string - return getGroupKeyRunSetParam{ - data: builder.Field{ - Name: "cancelledError", - Value: v, +// Decrement the required value of ID +func (r workflowRunDedupeQueryIDBigInt) Decrement(value BigInt) workflowRunDedupeSetParam { + return workflowRunDedupeSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, }, - } + }, } - - return r.Set(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) Equals(value string) getGroupKeyRunWithPrismaCancelledErrorEqualsParam { +func (r workflowRunDedupeQueryIDBigInt) DecrementIfPresent(value *BigInt) workflowRunDedupeSetParam { + if value == nil { + return workflowRunDedupeSetParam{} + } + return r.Decrement(*value) +} - return getGroupKeyRunWithPrismaCancelledErrorEqualsParam{ +// Multiply the required value of ID +func (r workflowRunDedupeQueryIDBigInt) Multiply(value BigInt) workflowRunDedupeSetParam { + return workflowRunDedupeSetParam{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -109619,20 +110655,21 @@ func (r getGroupKeyRunQueryCancelledErrorString) Equals(value string) getGroupKe } } -func (r getGroupKeyRunQueryCancelledErrorString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaCancelledErrorEqualsParam { +func (r workflowRunDedupeQueryIDBigInt) MultiplyIfPresent(value *BigInt) workflowRunDedupeSetParam { if value == nil { - return getGroupKeyRunWithPrismaCancelledErrorEqualsParam{} + return workflowRunDedupeSetParam{} } - return r.Equals(*value) + return r.Multiply(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +// Divide the required value of ID +func (r workflowRunDedupeQueryIDBigInt) Divide(value BigInt) workflowRunDedupeSetParam { + return workflowRunDedupeSetParam{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -109640,43 +110677,57 @@ func (r getGroupKeyRunQueryCancelledErrorString) EqualsOptional(value *String) g } } -func (r getGroupKeyRunQueryCancelledErrorString) IsNull() getGroupKeyRunDefaultParam { - var str *string = nil - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) DivideIfPresent(value *BigInt) workflowRunDedupeSetParam { + if value == nil { + return workflowRunDedupeSetParam{} + } + return r.Divide(*value) +} + +func (r workflowRunDedupeQueryIDBigInt) Equals(value BigInt) workflowRunDedupeWithPrismaIDEqualsUniqueParam { + + return workflowRunDedupeWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r getGroupKeyRunQueryCancelledErrorString) Order(direction SortOrder) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) EqualsIfPresent(value *BigInt) workflowRunDedupeWithPrismaIDEqualsUniqueParam { + if value == nil { + return workflowRunDedupeWithPrismaIDEqualsUniqueParam{} + } + return r.Equals(*value) +} + +func (r workflowRunDedupeQueryIDBigInt) Order(direction SortOrder) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Value: direction, }, } } -func (r getGroupKeyRunQueryCancelledErrorString) Cursor(cursor string) getGroupKeyRunCursorParam { - return getGroupKeyRunCursorParam{ +func (r workflowRunDedupeQueryIDBigInt) Cursor(cursor BigInt) workflowRunDedupeCursorParam { + return workflowRunDedupeCursorParam{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Value: cursor, }, } } -func (r getGroupKeyRunQueryCancelledErrorString) In(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) In(value []BigInt) workflowRunDedupeParamUnique { + return workflowRunDedupeParamUnique{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -109687,17 +110738,17 @@ func (r getGroupKeyRunQueryCancelledErrorString) In(value []string) getGroupKeyR } } -func (r getGroupKeyRunQueryCancelledErrorString) InIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryIDBigInt) InIfPresent(value []BigInt) workflowRunDedupeParamUnique { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeParamUnique{} } return r.In(value) } -func (r getGroupKeyRunQueryCancelledErrorString) NotIn(value []string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) NotIn(value []BigInt) workflowRunDedupeParamUnique { + return workflowRunDedupeParamUnique{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -109708,17 +110759,17 @@ func (r getGroupKeyRunQueryCancelledErrorString) NotIn(value []string) getGroupK } } -func (r getGroupKeyRunQueryCancelledErrorString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryIDBigInt) NotInIfPresent(value []BigInt) workflowRunDedupeParamUnique { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeParamUnique{} } return r.NotIn(value) } -func (r getGroupKeyRunQueryCancelledErrorString) Lt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) Lt(value BigInt) workflowRunDedupeParamUnique { + return workflowRunDedupeParamUnique{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -109729,17 +110780,17 @@ func (r getGroupKeyRunQueryCancelledErrorString) Lt(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryCancelledErrorString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryIDBigInt) LtIfPresent(value *BigInt) workflowRunDedupeParamUnique { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeParamUnique{} } return r.Lt(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) Lte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) Lte(value BigInt) workflowRunDedupeParamUnique { + return workflowRunDedupeParamUnique{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -109750,17 +110801,17 @@ func (r getGroupKeyRunQueryCancelledErrorString) Lte(value string) getGroupKeyRu } } -func (r getGroupKeyRunQueryCancelledErrorString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryIDBigInt) LteIfPresent(value *BigInt) workflowRunDedupeParamUnique { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeParamUnique{} } return r.Lte(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) Gt(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) Gt(value BigInt) workflowRunDedupeParamUnique { + return workflowRunDedupeParamUnique{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -109771,17 +110822,17 @@ func (r getGroupKeyRunQueryCancelledErrorString) Gt(value string) getGroupKeyRun } } -func (r getGroupKeyRunQueryCancelledErrorString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryIDBigInt) GtIfPresent(value *BigInt) workflowRunDedupeParamUnique { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeParamUnique{} } return r.Gt(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) Gte(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) Gte(value BigInt) workflowRunDedupeParamUnique { + return workflowRunDedupeParamUnique{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -109792,20 +110843,20 @@ func (r getGroupKeyRunQueryCancelledErrorString) Gte(value string) getGroupKeyRu } } -func (r getGroupKeyRunQueryCancelledErrorString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryIDBigInt) GteIfPresent(value *BigInt) workflowRunDedupeParamUnique { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeParamUnique{} } return r.Gte(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) Contains(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) Not(value BigInt) workflowRunDedupeParamUnique { + return workflowRunDedupeParamUnique{ data: builder.Field{ - Name: "cancelledError", + Name: "id", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -109813,41 +110864,49 @@ func (r getGroupKeyRunQueryCancelledErrorString) Contains(value string) getGroup } } -func (r getGroupKeyRunQueryCancelledErrorString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryIDBigInt) NotIfPresent(value *BigInt) workflowRunDedupeParamUnique { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeParamUnique{} } - return r.Contains(*value) + return r.Not(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) StartsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryIDBigInt) Field() workflowRunDedupePrismaFields { + return workflowRunDedupeFieldID +} + +// base struct +type workflowRunDedupeQueryCreatedAtDateTime struct{} + +// Set the required value of CreatedAt +func (r workflowRunDedupeQueryCreatedAtDateTime) Set(value DateTime) workflowRunDedupeSetParam { + + return workflowRunDedupeSetParam{ data: builder.Field{ - Name: "cancelledError", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, + Name: "createdAt", + Value: value, }, } + } -func (r getGroupKeyRunQueryCancelledErrorString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +// Set the optional value of CreatedAt dynamically +func (r workflowRunDedupeQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workflowRunDedupeSetParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeSetParam{} } - return r.StartsWith(*value) + + return r.Set(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) EndsWith(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryCreatedAtDateTime) Equals(value DateTime) workflowRunDedupeWithPrismaCreatedAtEqualsParam { + + return workflowRunDedupeWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "equals", Value: value, }, }, @@ -109855,41 +110914,38 @@ func (r getGroupKeyRunQueryCancelledErrorString) EndsWith(value string) getGroup } } -func (r getGroupKeyRunQueryCancelledErrorString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunDedupeWithPrismaCreatedAtEqualsParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeWithPrismaCreatedAtEqualsParam{} } - return r.EndsWith(*value) + return r.Equals(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) Mode(value QueryMode) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryCreatedAtDateTime) Order(direction SortOrder) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "cancelledError", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + Name: "createdAt", + Value: direction, + }, } } -func (r getGroupKeyRunQueryCancelledErrorString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { - if value == nil { - return getGroupKeyRunDefaultParam{} +func (r workflowRunDedupeQueryCreatedAtDateTime) Cursor(cursor DateTime) workflowRunDedupeCursorParam { + return workflowRunDedupeCursorParam{ + data: builder.Field{ + Name: "createdAt", + Value: cursor, + }, } - return r.Mode(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) Not(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryCreatedAtDateTime) In(value []DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "not", + Name: "in", Value: value, }, }, @@ -109897,22 +110953,20 @@ func (r getGroupKeyRunQueryCancelledErrorString) Not(value string) getGroupKeyRu } } -func (r getGroupKeyRunQueryCancelledErrorString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryCreatedAtDateTime) InIfPresent(value []DateTime) workflowRunDedupeDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.Not(*value) + return r.In(value) } -// deprecated: Use StartsWith instead. - -func (r getGroupKeyRunQueryCancelledErrorString) HasPrefix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryCreatedAtDateTime) NotIn(value []DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "notIn", Value: value, }, }, @@ -109920,23 +110974,20 @@ func (r getGroupKeyRunQueryCancelledErrorString) HasPrefix(value string) getGrou } } -// deprecated: Use StartsWithIfPresent instead. -func (r getGroupKeyRunQueryCancelledErrorString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDedupeDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.HasPrefix(*value) + return r.NotIn(value) } -// deprecated: Use EndsWith instead. - -func (r getGroupKeyRunQueryCancelledErrorString) HasSuffix(value string) getGroupKeyRunDefaultParam { - return getGroupKeyRunDefaultParam{ +func (r workflowRunDedupeQueryCreatedAtDateTime) Lt(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "lt", Value: value, }, }, @@ -109944,172 +110995,226 @@ func (r getGroupKeyRunQueryCancelledErrorString) HasSuffix(value string) getGrou } } -// deprecated: Use EndsWithIfPresent instead. -func (r getGroupKeyRunQueryCancelledErrorString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { +func (r workflowRunDedupeQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return getGroupKeyRunDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.HasSuffix(*value) + return r.Lt(*value) } -func (r getGroupKeyRunQueryCancelledErrorString) Field() getGroupKeyRunPrismaFields { - return getGroupKeyRunFieldCancelledError +func (r workflowRunDedupeQueryCreatedAtDateTime) Lte(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } } -// WorkflowRunTriggeredBy acts as a namespaces to access query methods for the WorkflowRunTriggeredBy model -var WorkflowRunTriggeredBy = workflowRunTriggeredByQuery{} - -// workflowRunTriggeredByQuery exposes query functions for the workflowRunTriggeredBy model -type workflowRunTriggeredByQuery struct { - - // ID - // - // @required - ID workflowRunTriggeredByQueryIDString - - // CreatedAt - // - // @required - CreatedAt workflowRunTriggeredByQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt workflowRunTriggeredByQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt workflowRunTriggeredByQueryDeletedAtDateTime - - Tenant workflowRunTriggeredByQueryTenantRelations - - // TenantID - // - // @required - TenantID workflowRunTriggeredByQueryTenantIDString - - Parent workflowRunTriggeredByQueryParentRelations - - // ParentID - // - // @required - // @unique - ParentID workflowRunTriggeredByQueryParentIDString +func (r workflowRunDedupeQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} + } + return r.Lte(*value) +} - // Input - // - // @optional - Input workflowRunTriggeredByQueryInputJson +func (r workflowRunDedupeQueryCreatedAtDateTime) Gt(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} - Event workflowRunTriggeredByQueryEventRelations +func (r workflowRunDedupeQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} + } + return r.Gt(*value) +} - // EventID - // - // @optional - EventID workflowRunTriggeredByQueryEventIDString +func (r workflowRunDedupeQueryCreatedAtDateTime) Gte(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} - Cron workflowRunTriggeredByQueryCronRelations +func (r workflowRunDedupeQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} + } + return r.Gte(*value) +} - // CronParentID - // - // @optional - CronParentID workflowRunTriggeredByQueryCronParentIDString +func (r workflowRunDedupeQueryCreatedAtDateTime) Not(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} - // CronSchedule - // - // @optional - CronSchedule workflowRunTriggeredByQueryCronScheduleString +func (r workflowRunDedupeQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} + } + return r.Not(*value) +} - Scheduled workflowRunTriggeredByQueryScheduledRelations +// deprecated: Use Lt instead. - // ScheduledID - // - // @optional - // @unique - ScheduledID workflowRunTriggeredByQueryScheduledIDString +func (r workflowRunDedupeQueryCreatedAtDateTime) Before(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } } -func (workflowRunTriggeredByQuery) Not(params ...WorkflowRunTriggeredByWhereParam) workflowRunTriggeredByDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use LtIfPresent instead. +func (r workflowRunDedupeQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} } + return r.Before(*value) +} - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Gt instead. + +func (r workflowRunDedupeQueryCreatedAtDateTime) After(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, }, } } -func (workflowRunTriggeredByQuery) Or(params ...WorkflowRunTriggeredByWhereParam) workflowRunTriggeredByDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use GtIfPresent instead. +func (r workflowRunDedupeQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} } + return r.After(*value) +} - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Lte instead. + +func (r workflowRunDedupeQueryCreatedAtDateTime) BeforeEquals(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, }, } } -func (workflowRunTriggeredByQuery) And(params ...WorkflowRunTriggeredByWhereParam) workflowRunTriggeredByDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use LteIfPresent instead. +func (r workflowRunDedupeQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} } + return r.BeforeEquals(*value) +} - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Gte instead. + +func (r workflowRunDedupeQueryCreatedAtDateTime) AfterEquals(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, }, } } +// deprecated: Use GteIfPresent instead. +func (r workflowRunDedupeQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r workflowRunDedupeQueryCreatedAtDateTime) Field() workflowRunDedupePrismaFields { + return workflowRunDedupeFieldCreatedAt +} + // base struct -type workflowRunTriggeredByQueryIDString struct{} +type workflowRunDedupeQueryUpdatedAtDateTime struct{} -// Set the required value of ID -func (r workflowRunTriggeredByQueryIDString) Set(value string) workflowRunTriggeredBySetParam { +// Set the required value of UpdatedAt +func (r workflowRunDedupeQueryUpdatedAtDateTime) Set(value DateTime) workflowRunDedupeSetParam { - return workflowRunTriggeredBySetParam{ + return workflowRunDedupeSetParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of ID dynamically -func (r workflowRunTriggeredByQueryIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { +// Set the optional value of UpdatedAt dynamically +func (r workflowRunDedupeQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workflowRunDedupeSetParam { if value == nil { - return workflowRunTriggeredBySetParam{} + return workflowRunDedupeSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryIDString) Equals(value string) workflowRunTriggeredByWithPrismaIDEqualsUniqueParam { +func (r workflowRunDedupeQueryUpdatedAtDateTime) Equals(value DateTime) workflowRunDedupeWithPrismaUpdatedAtEqualsParam { - return workflowRunTriggeredByWithPrismaIDEqualsUniqueParam{ + return workflowRunDedupeWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -110120,35 +111225,35 @@ func (r workflowRunTriggeredByQueryIDString) Equals(value string) workflowRunTri } } -func (r workflowRunTriggeredByQueryIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaIDEqualsUniqueParam { +func (r workflowRunDedupeQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunDedupeWithPrismaUpdatedAtEqualsParam { if value == nil { - return workflowRunTriggeredByWithPrismaIDEqualsUniqueParam{} + return workflowRunDedupeWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) Order(direction SortOrder) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: direction, }, } } -func (r workflowRunTriggeredByQueryIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) Cursor(cursor DateTime) workflowRunDedupeCursorParam { + return workflowRunDedupeCursorParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryIDString) In(value []string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) In(value []DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -110159,17 +111264,17 @@ func (r workflowRunTriggeredByQueryIDString) In(value []string) workflowRunTrigg } } -func (r workflowRunTriggeredByQueryIDString) InIfPresent(value []string) workflowRunTriggeredByParamUnique { +func (r workflowRunDedupeQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } return r.In(value) } -func (r workflowRunTriggeredByQueryIDString) NotIn(value []string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) NotIn(value []DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -110180,17 +111285,17 @@ func (r workflowRunTriggeredByQueryIDString) NotIn(value []string) workflowRunTr } } -func (r workflowRunTriggeredByQueryIDString) NotInIfPresent(value []string) workflowRunTriggeredByParamUnique { +func (r workflowRunDedupeQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryIDString) Lt(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) Lt(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -110201,17 +111306,17 @@ func (r workflowRunTriggeredByQueryIDString) Lt(value string) workflowRunTrigger } } -func (r workflowRunTriggeredByQueryIDString) LtIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r workflowRunDedupeQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryIDString) Lte(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) Lte(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -110222,17 +111327,17 @@ func (r workflowRunTriggeredByQueryIDString) Lte(value string) workflowRunTrigge } } -func (r workflowRunTriggeredByQueryIDString) LteIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r workflowRunDedupeQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryIDString) Gt(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) Gt(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -110243,17 +111348,17 @@ func (r workflowRunTriggeredByQueryIDString) Gt(value string) workflowRunTrigger } } -func (r workflowRunTriggeredByQueryIDString) GtIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r workflowRunDedupeQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryIDString) Gte(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) Gte(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -110264,20 +111369,20 @@ func (r workflowRunTriggeredByQueryIDString) Gte(value string) workflowRunTrigge } } -func (r workflowRunTriggeredByQueryIDString) GteIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r workflowRunDedupeQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryIDString) Contains(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r workflowRunDedupeQueryUpdatedAtDateTime) Not(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -110285,20 +111390,22 @@ func (r workflowRunTriggeredByQueryIDString) Contains(value string) workflowRunT } } -func (r workflowRunTriggeredByQueryIDString) ContainsIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r workflowRunDedupeQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r workflowRunTriggeredByQueryIDString) StartsWith(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +// deprecated: Use Lt instead. + +func (r workflowRunDedupeQueryUpdatedAtDateTime) Before(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -110306,20 +111413,23 @@ func (r workflowRunTriggeredByQueryIDString) StartsWith(value string) workflowRu } } -func (r workflowRunTriggeredByQueryIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { +// deprecated: Use LtIfPresent instead. +func (r workflowRunDedupeQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r workflowRunTriggeredByQueryIDString) EndsWith(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +// deprecated: Use Gt instead. + +func (r workflowRunDedupeQueryUpdatedAtDateTime) After(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -110327,20 +111437,23 @@ func (r workflowRunTriggeredByQueryIDString) EndsWith(value string) workflowRunT } } -func (r workflowRunTriggeredByQueryIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { +// deprecated: Use GtIfPresent instead. +func (r workflowRunDedupeQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r workflowRunTriggeredByQueryIDString) Mode(value QueryMode) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +// deprecated: Use Lte instead. + +func (r workflowRunDedupeQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -110348,20 +111461,23 @@ func (r workflowRunTriggeredByQueryIDString) Mode(value QueryMode) workflowRunTr } } -func (r workflowRunTriggeredByQueryIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByParamUnique { +// deprecated: Use LteIfPresent instead. +func (r workflowRunDedupeQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r workflowRunTriggeredByQueryIDString) Not(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +// deprecated: Use Gte instead. + +func (r workflowRunDedupeQueryUpdatedAtDateTime) AfterEquals(value DateTime) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -110369,94 +111485,135 @@ func (r workflowRunTriggeredByQueryIDString) Not(value string) workflowRunTrigge } } -func (r workflowRunTriggeredByQueryIDString) NotIfPresent(value *string) workflowRunTriggeredByParamUnique { +// deprecated: Use GteIfPresent instead. +func (r workflowRunDedupeQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByParamUnique{} + return workflowRunDedupeDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r workflowRunDedupeQueryUpdatedAtDateTime) Field() workflowRunDedupePrismaFields { + return workflowRunDedupeFieldUpdatedAt +} -func (r workflowRunTriggeredByQueryIDString) HasPrefix(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +// base struct +type workflowRunDedupeQueryTenantTenant struct{} + +type workflowRunDedupeQueryTenantRelations struct{} + +// WorkflowRunDedupe -> Tenant +// +// @relation +// @required +func (workflowRunDedupeQueryTenantRelations) Where( + params ...TenantWhereParam, +) workflowRunDedupeDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenant", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r workflowRunTriggeredByQueryIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByParamUnique { - if value == nil { - return workflowRunTriggeredByParamUnique{} - } - return r.HasPrefix(*value) +func (workflowRunDedupeQueryTenantRelations) Fetch() workflowRunDedupeToTenantFindUnique { + var v workflowRunDedupeToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v } -// deprecated: Use EndsWith instead. +func (r workflowRunDedupeQueryTenantRelations) Link( + params TenantWhereParam, +) workflowRunDedupeWithPrismaTenantSetParam { + var fields []builder.Field -func (r workflowRunTriggeredByQueryIDString) HasSuffix(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunDedupeWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return workflowRunDedupeWithPrismaTenantSetParam{ data: builder.Field{ - Name: "id", + Name: "tenant", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r workflowRunTriggeredByQueryIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByParamUnique { - if value == nil { - return workflowRunTriggeredByParamUnique{} +func (r workflowRunDedupeQueryTenantRelations) Unlink() workflowRunDedupeWithPrismaTenantSetParam { + var v workflowRunDedupeWithPrismaTenantSetParam + + v = workflowRunDedupeWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, } - return r.HasSuffix(*value) + + return v } -func (r workflowRunTriggeredByQueryIDString) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldID +func (r workflowRunDedupeQueryTenantTenant) Field() workflowRunDedupePrismaFields { + return workflowRunDedupeFieldTenant } // base struct -type workflowRunTriggeredByQueryCreatedAtDateTime struct{} +type workflowRunDedupeQueryTenantIDString struct{} -// Set the required value of CreatedAt -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Set(value DateTime) workflowRunTriggeredBySetParam { +// Set the required value of TenantID +func (r workflowRunDedupeQueryTenantIDString) Set(value string) workflowRunDedupeSetParam { - return workflowRunTriggeredBySetParam{ + return workflowRunDedupeSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Value: value, }, } } -// Set the optional value of CreatedAt dynamically -func (r workflowRunTriggeredByQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workflowRunTriggeredBySetParam { +// Set the optional value of TenantID dynamically +func (r workflowRunDedupeQueryTenantIDString) SetIfPresent(value *String) workflowRunDedupeSetParam { if value == nil { - return workflowRunTriggeredBySetParam{} + return workflowRunDedupeSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Equals(value DateTime) workflowRunTriggeredByWithPrismaCreatedAtEqualsParam { +func (r workflowRunDedupeQueryTenantIDString) Equals(value string) workflowRunDedupeWithPrismaTenantIDEqualsParam { - return workflowRunTriggeredByWithPrismaCreatedAtEqualsParam{ + return workflowRunDedupeWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "equals", @@ -110467,35 +111624,35 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) Equals(value DateTime) wor } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunTriggeredByWithPrismaCreatedAtEqualsParam { +func (r workflowRunDedupeQueryTenantIDString) EqualsIfPresent(value *string) workflowRunDedupeWithPrismaTenantIDEqualsParam { if value == nil { - return workflowRunTriggeredByWithPrismaCreatedAtEqualsParam{} + return workflowRunDedupeWithPrismaTenantIDEqualsParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) Order(direction SortOrder) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Value: direction, }, } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Cursor(cursor DateTime) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r workflowRunDedupeQueryTenantIDString) Cursor(cursor string) workflowRunDedupeCursorParam { + return workflowRunDedupeCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) In(value []DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) In(value []string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "in", @@ -110506,17 +111663,17 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) In(value []DateTime) workf } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) InIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) InIfPresent(value []string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.In(value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) NotIn(value []DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) NotIn(value []string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "notIn", @@ -110527,17 +111684,17 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) NotIn(value []DateTime) wo } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) NotInIfPresent(value []string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Lt(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) Lt(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lt", @@ -110548,17 +111705,17 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) Lt(value DateTime) workflo } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) LtIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Lte(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) Lte(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lte", @@ -110569,17 +111726,17 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) Lte(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) LteIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Gt(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) Gt(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gt", @@ -110590,17 +111747,17 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) Gt(value DateTime) workflo } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) GtIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Gte(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) Gte(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gte", @@ -110611,20 +111768,20 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) Gte(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) GteIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Not(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) Contains(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -110632,22 +111789,41 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) Not(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) ContainsIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r workflowRunDedupeQueryTenantIDString) StartsWith(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Before(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) StartsWithIfPresent(value *string) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r workflowRunDedupeQueryTenantIDString) EndsWith(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -110655,23 +111831,41 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) Before(value DateTime) wor } } -// deprecated: Use LtIfPresent instead. -func (r workflowRunTriggeredByQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) EndsWithIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r workflowRunDedupeQueryTenantIDString) Mode(value QueryMode) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r workflowRunTriggeredByQueryCreatedAtDateTime) After(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) ModeIfPresent(value *QueryMode) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} + } + return r.Mode(*value) +} + +func (r workflowRunDedupeQueryTenantIDString) Not(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -110679,23 +111873,22 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) After(value DateTime) work } } -// deprecated: Use GtIfPresent instead. -func (r workflowRunTriggeredByQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryTenantIDString) NotIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r workflowRunTriggeredByQueryCreatedAtDateTime) BeforeEquals(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) HasPrefix(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -110703,23 +111896,23 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) BeforeEquals(value DateTim } } -// deprecated: Use LteIfPresent instead. -func (r workflowRunTriggeredByQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunDedupeQueryTenantIDString) HasPrefixIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r workflowRunTriggeredByQueryCreatedAtDateTime) AfterEquals(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryTenantIDString) HasSuffix(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -110727,47 +111920,47 @@ func (r workflowRunTriggeredByQueryCreatedAtDateTime) AfterEquals(value DateTime } } -// deprecated: Use GteIfPresent instead. -func (r workflowRunTriggeredByQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunDedupeQueryTenantIDString) HasSuffixIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r workflowRunTriggeredByQueryCreatedAtDateTime) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldCreatedAt +func (r workflowRunDedupeQueryTenantIDString) Field() workflowRunDedupePrismaFields { + return workflowRunDedupeFieldTenantID } // base struct -type workflowRunTriggeredByQueryUpdatedAtDateTime struct{} +type workflowRunDedupeQueryWorkflowIDString struct{} -// Set the required value of UpdatedAt -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Set(value DateTime) workflowRunTriggeredBySetParam { +// Set the required value of WorkflowID +func (r workflowRunDedupeQueryWorkflowIDString) Set(value string) workflowRunDedupeWithPrismaWorkflowIDSetParam { - return workflowRunTriggeredBySetParam{ + return workflowRunDedupeWithPrismaWorkflowIDSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Value: value, }, } } -// Set the optional value of UpdatedAt dynamically -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workflowRunTriggeredBySetParam { +// Set the optional value of WorkflowID dynamically +func (r workflowRunDedupeQueryWorkflowIDString) SetIfPresent(value *String) workflowRunDedupeWithPrismaWorkflowIDSetParam { if value == nil { - return workflowRunTriggeredBySetParam{} + return workflowRunDedupeWithPrismaWorkflowIDSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Equals(value DateTime) workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam { +func (r workflowRunDedupeQueryWorkflowIDString) Equals(value string) workflowRunDedupeWithPrismaWorkflowIDEqualsParam { - return workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam{ + return workflowRunDedupeWithPrismaWorkflowIDEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { Name: "equals", @@ -110778,35 +111971,35 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Equals(value DateTime) wor } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam { +func (r workflowRunDedupeQueryWorkflowIDString) EqualsIfPresent(value *string) workflowRunDedupeWithPrismaWorkflowIDEqualsParam { if value == nil { - return workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam{} + return workflowRunDedupeWithPrismaWorkflowIDEqualsParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Order(direction SortOrder) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Value: direction, }, } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Cursor(cursor DateTime) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Cursor(cursor string) workflowRunDedupeCursorParam { + return workflowRunDedupeCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) In(value []DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) In(value []string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { Name: "in", @@ -110817,17 +112010,17 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) In(value []DateTime) workf } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) InIfPresent(value []string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.In(value) } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) NotIn(value []DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) NotIn(value []string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { Name: "notIn", @@ -110838,17 +112031,17 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) NotIn(value []DateTime) wo } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) NotInIfPresent(value []string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Lt(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Lt(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { Name: "lt", @@ -110859,17 +112052,17 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Lt(value DateTime) workflo } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) LtIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Lte(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Lte(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { Name: "lte", @@ -110880,17 +112073,17 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Lte(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) LteIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Gt(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Gt(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { Name: "gt", @@ -110901,17 +112094,17 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Gt(value DateTime) workflo } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) GtIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Gte(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Gte(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { Name: "gte", @@ -110922,20 +112115,20 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Gte(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) GteIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Not(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Contains(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -110943,22 +112136,20 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Not(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) ContainsIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Before(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) StartsWith(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -110966,23 +112157,20 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Before(value DateTime) wor } } -// deprecated: Use LtIfPresent instead. -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) StartsWithIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) After(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) EndsWith(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -110990,23 +112178,20 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) After(value DateTime) work } } -// deprecated: Use GtIfPresent instead. -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) EndsWithIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Mode(value QueryMode) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -111014,23 +112199,20 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) BeforeEquals(value DateTim } } -// deprecated: Use LteIfPresent instead. -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) ModeIfPresent(value *QueryMode) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) AfterEquals(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Not(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "workflowId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -111038,66 +112220,46 @@ func (r workflowRunTriggeredByQueryUpdatedAtDateTime) AfterEquals(value DateTime } } -// deprecated: Use GteIfPresent instead. -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowIDString) NotIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldUpdatedAt + return r.Not(*value) } -// base struct -type workflowRunTriggeredByQueryDeletedAtDateTime struct{} - -// Set the optional value of DeletedAt -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Set(value DateTime) workflowRunTriggeredBySetParam { +// deprecated: Use StartsWith instead. - return workflowRunTriggeredBySetParam{ +func (r workflowRunDedupeQueryWorkflowIDString) HasPrefix(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", - Value: value, + Name: "workflowId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, }, } - -} - -// Set the optional value of DeletedAt dynamically -func (r workflowRunTriggeredByQueryDeletedAtDateTime) SetIfPresent(value *DateTime) workflowRunTriggeredBySetParam { - if value == nil { - return workflowRunTriggeredBySetParam{} - } - - return r.Set(*value) } -// Set the optional value of DeletedAt dynamically -func (r workflowRunTriggeredByQueryDeletedAtDateTime) SetOptional(value *DateTime) workflowRunTriggeredBySetParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunDedupeQueryWorkflowIDString) HasPrefixIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - - var v *DateTime - return workflowRunTriggeredBySetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, - }, - } + return workflowRunDedupeDefaultParam{} } - - return r.Set(*value) + return r.HasPrefix(*value) } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Equals(value DateTime) workflowRunTriggeredByWithPrismaDeletedAtEqualsParam { +// deprecated: Use EndsWith instead. - return workflowRunTriggeredByWithPrismaDeletedAtEqualsParam{ +func (r workflowRunDedupeQueryWorkflowIDString) HasSuffix(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowId", Fields: []builder.Field{ { - Name: "equals", + Name: "ends_with", Value: value, }, }, @@ -111105,64 +112267,86 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) Equals(value DateTime) wor } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunTriggeredByWithPrismaDeletedAtEqualsParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunDedupeQueryWorkflowIDString) HasSuffixIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByWithPrismaDeletedAtEqualsParam{} + return workflowRunDedupeDefaultParam{} } - return r.Equals(*value) + return r.HasSuffix(*value) } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) EqualsOptional(value *DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowIDString) Field() workflowRunDedupePrismaFields { + return workflowRunDedupeFieldWorkflowID +} + +// base struct +type workflowRunDedupeQueryWorkflowRunIDString struct{} + +// Set the required value of WorkflowRunID +func (r workflowRunDedupeQueryWorkflowRunIDString) Set(value string) workflowRunDedupeWithPrismaWorkflowRunIDSetParam { + + return workflowRunDedupeWithPrismaWorkflowRunIDSetParam{ data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "workflowRunId", + Value: value, }, } + } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) IsNull() workflowRunTriggeredByDefaultParam { - var str *string = nil - return workflowRunTriggeredByDefaultParam{ +// Set the optional value of WorkflowRunID dynamically +func (r workflowRunDedupeQueryWorkflowRunIDString) SetIfPresent(value *String) workflowRunDedupeWithPrismaWorkflowRunIDSetParam { + if value == nil { + return workflowRunDedupeWithPrismaWorkflowRunIDSetParam{} + } + + return r.Set(*value) +} + +func (r workflowRunDedupeQueryWorkflowRunIDString) Equals(value string) workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam { + + return workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) EqualsIfPresent(value *string) workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam { + if value == nil { + return workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r workflowRunDedupeQueryWorkflowRunIDString) Order(direction SortOrder) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Value: direction, }, } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Cursor(cursor DateTime) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) Cursor(cursor string) workflowRunDedupeCursorParam { + return workflowRunDedupeCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) In(value []DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) In(value []string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "in", @@ -111173,17 +112357,17 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) In(value []DateTime) workf } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) InIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) InIfPresent(value []string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.In(value) } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) NotIn(value []DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) NotIn(value []string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "notIn", @@ -111194,17 +112378,17 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) NotIn(value []DateTime) wo } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) NotInIfPresent(value []string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Lt(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) Lt(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "lt", @@ -111215,17 +112399,17 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) Lt(value DateTime) workflo } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) LtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) LtIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Lte(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) Lte(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "lte", @@ -111236,17 +112420,17 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) Lte(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) LteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) LteIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Gt(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) Gt(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "gt", @@ -111257,17 +112441,17 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) Gt(value DateTime) workflo } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) GtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) GtIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Gte(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) Gte(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "gte", @@ -111278,20 +112462,20 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) Gte(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) GteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) GteIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Not(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) Contains(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -111299,22 +112483,20 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) Not(value DateTime) workfl } } -func (r workflowRunTriggeredByQueryDeletedAtDateTime) NotIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) ContainsIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Before(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) StartsWith(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -111322,23 +112504,20 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) Before(value DateTime) wor } } -// deprecated: Use LtIfPresent instead. -func (r workflowRunTriggeredByQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) StartsWithIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r workflowRunTriggeredByQueryDeletedAtDateTime) After(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) EndsWith(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -111346,23 +112525,20 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) After(value DateTime) work } } -// deprecated: Use GtIfPresent instead. -func (r workflowRunTriggeredByQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) EndsWithIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r workflowRunTriggeredByQueryDeletedAtDateTime) BeforeEquals(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) Mode(value QueryMode) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -111370,23 +112546,20 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) BeforeEquals(value DateTim } } -// deprecated: Use LteIfPresent instead. -func (r workflowRunTriggeredByQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) ModeIfPresent(value *QueryMode) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r workflowRunTriggeredByQueryDeletedAtDateTime) AfterEquals(value DateTime) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) Not(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workflowRunId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -111394,135 +112567,94 @@ func (r workflowRunTriggeredByQueryDeletedAtDateTime) AfterEquals(value DateTime } } -// deprecated: Use GteIfPresent instead. -func (r workflowRunTriggeredByQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryWorkflowRunIDString) NotIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r workflowRunTriggeredByQueryDeletedAtDateTime) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldDeletedAt + return r.Not(*value) } -// base struct -type workflowRunTriggeredByQueryTenantTenant struct{} - -type workflowRunTriggeredByQueryTenantRelations struct{} - -// WorkflowRunTriggeredBy -> Tenant -// -// @relation -// @required -func (workflowRunTriggeredByQueryTenantRelations) Where( - params ...TenantWhereParam, -) workflowRunTriggeredByDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use StartsWith instead. - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) HasPrefix(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "workflowRunId", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "starts_with", + Value: value, }, }, }, } } -func (workflowRunTriggeredByQueryTenantRelations) Fetch() workflowRunTriggeredByToTenantFindUnique { - var v workflowRunTriggeredByToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - - return v -} - -func (r workflowRunTriggeredByQueryTenantRelations) Link( - params TenantWhereParam, -) workflowRunTriggeredByWithPrismaTenantSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunTriggeredByWithPrismaTenantSetParam{} +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunDedupeQueryWorkflowRunIDString) HasPrefixIfPresent(value *string) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} } + return r.HasPrefix(*value) +} - fields = append(fields, f) +// deprecated: Use EndsWith instead. - return workflowRunTriggeredByWithPrismaTenantSetParam{ +func (r workflowRunDedupeQueryWorkflowRunIDString) HasSuffix(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "workflowRunId", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "ends_with", + Value: value, }, }, }, } } -func (r workflowRunTriggeredByQueryTenantRelations) Unlink() workflowRunTriggeredByWithPrismaTenantSetParam { - var v workflowRunTriggeredByWithPrismaTenantSetParam - - v = workflowRunTriggeredByWithPrismaTenantSetParam{ - data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunDedupeQueryWorkflowRunIDString) HasSuffixIfPresent(value *string) workflowRunDedupeDefaultParam { + if value == nil { + return workflowRunDedupeDefaultParam{} } - - return v + return r.HasSuffix(*value) } -func (r workflowRunTriggeredByQueryTenantTenant) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldTenant +func (r workflowRunDedupeQueryWorkflowRunIDString) Field() workflowRunDedupePrismaFields { + return workflowRunDedupeFieldWorkflowRunID } // base struct -type workflowRunTriggeredByQueryTenantIDString struct{} +type workflowRunDedupeQueryValueString struct{} -// Set the required value of TenantID -func (r workflowRunTriggeredByQueryTenantIDString) Set(value string) workflowRunTriggeredBySetParam { +// Set the required value of Value +func (r workflowRunDedupeQueryValueString) Set(value string) workflowRunDedupeWithPrismaValueSetParam { - return workflowRunTriggeredBySetParam{ + return workflowRunDedupeWithPrismaValueSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Value: value, }, } } -// Set the optional value of TenantID dynamically -func (r workflowRunTriggeredByQueryTenantIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { +// Set the optional value of Value dynamically +func (r workflowRunDedupeQueryValueString) SetIfPresent(value *String) workflowRunDedupeWithPrismaValueSetParam { if value == nil { - return workflowRunTriggeredBySetParam{} + return workflowRunDedupeWithPrismaValueSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Equals(value string) workflowRunTriggeredByWithPrismaTenantIDEqualsParam { +func (r workflowRunDedupeQueryValueString) Equals(value string) workflowRunDedupeWithPrismaValueEqualsParam { - return workflowRunTriggeredByWithPrismaTenantIDEqualsParam{ + return workflowRunDedupeWithPrismaValueEqualsParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "equals", @@ -111533,35 +112665,35 @@ func (r workflowRunTriggeredByQueryTenantIDString) Equals(value string) workflow } } -func (r workflowRunTriggeredByQueryTenantIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaTenantIDEqualsParam { +func (r workflowRunDedupeQueryValueString) EqualsIfPresent(value *string) workflowRunDedupeWithPrismaValueEqualsParam { if value == nil { - return workflowRunTriggeredByWithPrismaTenantIDEqualsParam{} + return workflowRunDedupeWithPrismaValueEqualsParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) Order(direction SortOrder) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Value: direction, }, } } -func (r workflowRunTriggeredByQueryTenantIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r workflowRunDedupeQueryValueString) Cursor(cursor string) workflowRunDedupeCursorParam { + return workflowRunDedupeCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryTenantIDString) In(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) In(value []string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "in", @@ -111572,17 +112704,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) In(value []string) workflowRu } } -func (r workflowRunTriggeredByQueryTenantIDString) InIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) InIfPresent(value []string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.In(value) } -func (r workflowRunTriggeredByQueryTenantIDString) NotIn(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) NotIn(value []string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "notIn", @@ -111593,17 +112725,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) NotIn(value []string) workflo } } -func (r workflowRunTriggeredByQueryTenantIDString) NotInIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) NotInIfPresent(value []string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryTenantIDString) Lt(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) Lt(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "lt", @@ -111614,17 +112746,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) Lt(value string) workflowRunT } } -func (r workflowRunTriggeredByQueryTenantIDString) LtIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) LtIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Lte(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) Lte(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "lte", @@ -111635,17 +112767,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) Lte(value string) workflowRun } } -func (r workflowRunTriggeredByQueryTenantIDString) LteIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) LteIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Gt(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) Gt(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "gt", @@ -111656,17 +112788,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) Gt(value string) workflowRunT } } -func (r workflowRunTriggeredByQueryTenantIDString) GtIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) GtIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Gte(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) Gte(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "gte", @@ -111677,17 +112809,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) Gte(value string) workflowRun } } -func (r workflowRunTriggeredByQueryTenantIDString) GteIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) GteIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Contains(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) Contains(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "contains", @@ -111698,17 +112830,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) Contains(value string) workfl } } -func (r workflowRunTriggeredByQueryTenantIDString) ContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) ContainsIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Contains(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) StartsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) StartsWith(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "startsWith", @@ -111719,17 +112851,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) StartsWith(value string) work } } -func (r workflowRunTriggeredByQueryTenantIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) StartsWithIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.StartsWith(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) EndsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) EndsWith(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "endsWith", @@ -111740,17 +112872,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) EndsWith(value string) workfl } } -func (r workflowRunTriggeredByQueryTenantIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) EndsWithIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.EndsWith(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Mode(value QueryMode) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) Mode(value QueryMode) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "mode", @@ -111761,17 +112893,17 @@ func (r workflowRunTriggeredByQueryTenantIDString) Mode(value QueryMode) workflo } } -func (r workflowRunTriggeredByQueryTenantIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) ModeIfPresent(value *QueryMode) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Mode(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Not(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) Not(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "not", @@ -111782,19 +112914,19 @@ func (r workflowRunTriggeredByQueryTenantIDString) Not(value string) workflowRun } } -func (r workflowRunTriggeredByQueryTenantIDString) NotIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) NotIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunTriggeredByQueryTenantIDString) HasPrefix(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) HasPrefix(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "starts_with", @@ -111806,19 +112938,19 @@ func (r workflowRunTriggeredByQueryTenantIDString) HasPrefix(value string) workf } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunTriggeredByQueryTenantIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) HasPrefixIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunTriggeredByQueryTenantIDString) HasSuffix(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r workflowRunDedupeQueryValueString) HasSuffix(value string) workflowRunDedupeDefaultParam { + return workflowRunDedupeDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "value", Fields: []builder.Field{ { Name: "ends_with", @@ -111830,134 +112962,213 @@ func (r workflowRunTriggeredByQueryTenantIDString) HasSuffix(value string) workf } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunTriggeredByQueryTenantIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r workflowRunDedupeQueryValueString) HasSuffixIfPresent(value *string) workflowRunDedupeDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return workflowRunDedupeDefaultParam{} } return r.HasSuffix(*value) } -func (r workflowRunTriggeredByQueryTenantIDString) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldTenantID +func (r workflowRunDedupeQueryValueString) Field() workflowRunDedupePrismaFields { + return workflowRunDedupeFieldValue } -// base struct -type workflowRunTriggeredByQueryParentWorkflowRun struct{} +// GetGroupKeyRun acts as a namespaces to access query methods for the GetGroupKeyRun model +var GetGroupKeyRun = getGroupKeyRunQuery{} -type workflowRunTriggeredByQueryParentRelations struct{} +// getGroupKeyRunQuery exposes query functions for the getGroupKeyRun model +type getGroupKeyRunQuery struct { -// WorkflowRunTriggeredBy -> Parent -// -// @relation -// @required -func (workflowRunTriggeredByQueryParentRelations) Where( - params ...WorkflowRunWhereParam, -) workflowRunTriggeredByDefaultParam { + // ID + // + // @required + ID getGroupKeyRunQueryIDString + + // CreatedAt + // + // @required + CreatedAt getGroupKeyRunQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt getGroupKeyRunQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt getGroupKeyRunQueryDeletedAtDateTime + + Tenant getGroupKeyRunQueryTenantRelations + + // TenantID + // + // @required + TenantID getGroupKeyRunQueryTenantIDString + + WorkflowRun getGroupKeyRunQueryWorkflowRunRelations + + // WorkflowRunID + // + // @required + // @unique + WorkflowRunID getGroupKeyRunQueryWorkflowRunIDString + + Worker getGroupKeyRunQueryWorkerRelations + + // WorkerID + // + // @optional + WorkerID getGroupKeyRunQueryWorkerIDString + + Ticker getGroupKeyRunQueryTickerRelations + + // TickerID + // + // @optional + TickerID getGroupKeyRunQueryTickerIDString + + // Status + // + // @required + Status getGroupKeyRunQueryStatusStepRunStatus + + // Input + // + // @optional + Input getGroupKeyRunQueryInputJson + + // Output + // + // @optional + Output getGroupKeyRunQueryOutputString + + // RequeueAfter + // + // @optional + RequeueAfter getGroupKeyRunQueryRequeueAfterDateTime + + // ScheduleTimeoutAt + // + // @optional + ScheduleTimeoutAt getGroupKeyRunQueryScheduleTimeoutAtDateTime + + // Error + // + // @optional + Error getGroupKeyRunQueryErrorString + + // StartedAt + // + // @optional + StartedAt getGroupKeyRunQueryStartedAtDateTime + + // FinishedAt + // + // @optional + FinishedAt getGroupKeyRunQueryFinishedAtDateTime + + // TimeoutAt + // + // @optional + TimeoutAt getGroupKeyRunQueryTimeoutAtDateTime + + // CancelledAt + // + // @optional + CancelledAt getGroupKeyRunQueryCancelledAtDateTime + + // CancelledReason + // + // @optional + CancelledReason getGroupKeyRunQueryCancelledReasonString + + // CancelledError + // + // @optional + CancelledError getGroupKeyRunQueryCancelledErrorString +} + +func (getGroupKeyRunQuery) Not(params ...GetGroupKeyRunWhereParam) getGroupKeyRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workflowRunTriggeredByDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "parent", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -func (workflowRunTriggeredByQueryParentRelations) Fetch() workflowRunTriggeredByToParentFindUnique { - var v workflowRunTriggeredByToParentFindUnique - - v.query.Operation = "query" - v.query.Method = "parent" - v.query.Outputs = workflowRunOutput - - return v -} - -func (r workflowRunTriggeredByQueryParentRelations) Link( - params WorkflowRunWhereParam, -) workflowRunTriggeredByWithPrismaParentSetParam { +func (getGroupKeyRunQuery) Or(params ...GetGroupKeyRunWhereParam) getGroupKeyRunDefaultParam { var fields []builder.Field - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunTriggeredByWithPrismaParentSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - fields = append(fields, f) - - return workflowRunTriggeredByWithPrismaParentSetParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "parent", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, + Name: "OR", + List: true, + WrapList: true, + Fields: fields, }, } } -func (r workflowRunTriggeredByQueryParentRelations) Unlink() workflowRunTriggeredByWithPrismaParentSetParam { - var v workflowRunTriggeredByWithPrismaParentSetParam +func (getGroupKeyRunQuery) And(params ...GetGroupKeyRunWhereParam) getGroupKeyRunDefaultParam { + var fields []builder.Field - v = workflowRunTriggeredByWithPrismaParentSetParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "parent", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, + Name: "AND", + List: true, + WrapList: true, + Fields: fields, }, } - - return v -} - -func (r workflowRunTriggeredByQueryParentWorkflowRun) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldParent } // base struct -type workflowRunTriggeredByQueryParentIDString struct{} +type getGroupKeyRunQueryIDString struct{} -// Set the required value of ParentID -func (r workflowRunTriggeredByQueryParentIDString) Set(value string) workflowRunTriggeredBySetParam { +// Set the required value of ID +func (r getGroupKeyRunQueryIDString) Set(value string) getGroupKeyRunSetParam { - return workflowRunTriggeredBySetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "parentId", + Name: "id", Value: value, }, } } -// Set the optional value of ParentID dynamically -func (r workflowRunTriggeredByQueryParentIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { +// Set the optional value of ID dynamically +func (r getGroupKeyRunQueryIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { if value == nil { - return workflowRunTriggeredBySetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Equals(value string) workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam { +func (r getGroupKeyRunQueryIDString) Equals(value string) getGroupKeyRunWithPrismaIDEqualsUniqueParam { - return workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam{ + return getGroupKeyRunWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -111968,35 +113179,35 @@ func (r workflowRunTriggeredByQueryParentIDString) Equals(value string) workflow } } -func (r workflowRunTriggeredByQueryParentIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam { +func (r getGroupKeyRunQueryIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaIDEqualsUniqueParam { if value == nil { - return workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam{} + return getGroupKeyRunWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "parentId", + Name: "id", Value: direction, }, } } -func (r workflowRunTriggeredByQueryParentIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r getGroupKeyRunQueryIDString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "parentId", + Name: "id", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryParentIDString) In(value []string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) In(value []string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -112007,17 +113218,17 @@ func (r workflowRunTriggeredByQueryParentIDString) In(value []string) workflowRu } } -func (r workflowRunTriggeredByQueryParentIDString) InIfPresent(value []string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) InIfPresent(value []string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.In(value) } -func (r workflowRunTriggeredByQueryParentIDString) NotIn(value []string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) NotIn(value []string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -112028,17 +113239,17 @@ func (r workflowRunTriggeredByQueryParentIDString) NotIn(value []string) workflo } } -func (r workflowRunTriggeredByQueryParentIDString) NotInIfPresent(value []string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) NotInIfPresent(value []string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryParentIDString) Lt(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) Lt(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -112049,17 +113260,17 @@ func (r workflowRunTriggeredByQueryParentIDString) Lt(value string) workflowRunT } } -func (r workflowRunTriggeredByQueryParentIDString) LtIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) LtIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Lte(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) Lte(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -112070,17 +113281,17 @@ func (r workflowRunTriggeredByQueryParentIDString) Lte(value string) workflowRun } } -func (r workflowRunTriggeredByQueryParentIDString) LteIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) LteIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Gt(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) Gt(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -112091,17 +113302,17 @@ func (r workflowRunTriggeredByQueryParentIDString) Gt(value string) workflowRunT } } -func (r workflowRunTriggeredByQueryParentIDString) GtIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) GtIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Gte(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) Gte(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -112112,17 +113323,17 @@ func (r workflowRunTriggeredByQueryParentIDString) Gte(value string) workflowRun } } -func (r workflowRunTriggeredByQueryParentIDString) GteIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) GteIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Contains(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) Contains(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -112133,17 +113344,17 @@ func (r workflowRunTriggeredByQueryParentIDString) Contains(value string) workfl } } -func (r workflowRunTriggeredByQueryParentIDString) ContainsIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) ContainsIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Contains(*value) } -func (r workflowRunTriggeredByQueryParentIDString) StartsWith(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) StartsWith(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -112154,17 +113365,17 @@ func (r workflowRunTriggeredByQueryParentIDString) StartsWith(value string) work } } -func (r workflowRunTriggeredByQueryParentIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) StartsWithIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.StartsWith(*value) } -func (r workflowRunTriggeredByQueryParentIDString) EndsWith(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) EndsWith(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -112175,17 +113386,17 @@ func (r workflowRunTriggeredByQueryParentIDString) EndsWith(value string) workfl } } -func (r workflowRunTriggeredByQueryParentIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) EndsWithIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.EndsWith(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Mode(value QueryMode) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) Mode(value QueryMode) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -112196,17 +113407,17 @@ func (r workflowRunTriggeredByQueryParentIDString) Mode(value QueryMode) workflo } } -func (r workflowRunTriggeredByQueryParentIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Mode(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Not(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) Not(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -112217,19 +113428,19 @@ func (r workflowRunTriggeredByQueryParentIDString) Not(value string) workflowRun } } -func (r workflowRunTriggeredByQueryParentIDString) NotIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) NotIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunTriggeredByQueryParentIDString) HasPrefix(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) HasPrefix(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -112241,19 +113452,19 @@ func (r workflowRunTriggeredByQueryParentIDString) HasPrefix(value string) workf } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunTriggeredByQueryParentIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) HasPrefixIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunTriggeredByQueryParentIDString) HasSuffix(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryIDString) HasSuffix(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "parentId", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -112265,62 +113476,46 @@ func (r workflowRunTriggeredByQueryParentIDString) HasSuffix(value string) workf } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunTriggeredByQueryParentIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryIDString) HasSuffixIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.HasSuffix(*value) } -func (r workflowRunTriggeredByQueryParentIDString) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldParentID +func (r getGroupKeyRunQueryIDString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldID } // base struct -type workflowRunTriggeredByQueryInputJson struct{} +type getGroupKeyRunQueryCreatedAtDateTime struct{} -// Set the optional value of Input -func (r workflowRunTriggeredByQueryInputJson) Set(value JSON) workflowRunTriggeredBySetParam { +// Set the required value of CreatedAt +func (r getGroupKeyRunQueryCreatedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { - return workflowRunTriggeredBySetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Value: value, }, } } -// Set the optional value of Input dynamically -func (r workflowRunTriggeredByQueryInputJson) SetIfPresent(value *JSON) workflowRunTriggeredBySetParam { - if value == nil { - return workflowRunTriggeredBySetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of Input dynamically -func (r workflowRunTriggeredByQueryInputJson) SetOptional(value *JSON) workflowRunTriggeredBySetParam { +// Set the optional value of CreatedAt dynamically +func (r getGroupKeyRunQueryCreatedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { if value == nil { - - var v *JSON - return workflowRunTriggeredBySetParam{ - data: builder.Field{ - Name: "input", - Value: v, - }, - } + return getGroupKeyRunSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryInputJson) Equals(value JSON) workflowRunTriggeredByWithPrismaInputEqualsParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaCreatedAtEqualsParam { - return workflowRunTriggeredByWithPrismaInputEqualsParam{ + return getGroupKeyRunWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -112331,67 +113526,38 @@ func (r workflowRunTriggeredByQueryInputJson) Equals(value JSON) workflowRunTrig } } -func (r workflowRunTriggeredByQueryInputJson) EqualsIfPresent(value *JSON) workflowRunTriggeredByWithPrismaInputEqualsParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaCreatedAtEqualsParam { if value == nil { - return workflowRunTriggeredByWithPrismaInputEqualsParam{} + return getGroupKeyRunWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryInputJson) EqualsOptional(value *JSON) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryInputJson) IsNull() workflowRunTriggeredByDefaultParam { - var str *string = nil - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryInputJson) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Value: direction, }, } } -func (r workflowRunTriggeredByQueryInputJson) Cursor(cursor JSON) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryInputJson) Path(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -112399,20 +113565,20 @@ func (r workflowRunTriggeredByQueryInputJson) Path(value []string) workflowRunTr } } -func (r workflowRunTriggeredByQueryInputJson) PathIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r workflowRunTriggeredByQueryInputJson) StringContains(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -112420,20 +113586,20 @@ func (r workflowRunTriggeredByQueryInputJson) StringContains(value string) workf } } -func (r workflowRunTriggeredByQueryInputJson) StringContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r workflowRunTriggeredByQueryInputJson) StringStartsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -112441,20 +113607,20 @@ func (r workflowRunTriggeredByQueryInputJson) StringStartsWith(value string) wor } } -func (r workflowRunTriggeredByQueryInputJson) StringStartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r workflowRunTriggeredByQueryInputJson) StringEndsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -112462,20 +113628,20 @@ func (r workflowRunTriggeredByQueryInputJson) StringEndsWith(value string) workf } } -func (r workflowRunTriggeredByQueryInputJson) StringEndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r workflowRunTriggeredByQueryInputJson) ArrayContains(value JSON) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -112483,20 +113649,20 @@ func (r workflowRunTriggeredByQueryInputJson) ArrayContains(value JSON) workflow } } -func (r workflowRunTriggeredByQueryInputJson) ArrayContainsIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r workflowRunTriggeredByQueryInputJson) ArrayStartsWith(value JSON) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -112504,20 +113670,20 @@ func (r workflowRunTriggeredByQueryInputJson) ArrayStartsWith(value JSON) workfl } } -func (r workflowRunTriggeredByQueryInputJson) ArrayStartsWithIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r workflowRunTriggeredByQueryInputJson) ArrayEndsWith(value JSON) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -112525,17 +113691,19 @@ func (r workflowRunTriggeredByQueryInputJson) ArrayEndsWith(value JSON) workflow } } -func (r workflowRunTriggeredByQueryInputJson) ArrayEndsWithIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryCreatedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r workflowRunTriggeredByQueryInputJson) Lt(value JSON) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Lt instead. + +func (r getGroupKeyRunQueryCreatedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -112546,38 +113714,20 @@ func (r workflowRunTriggeredByQueryInputJson) Lt(value JSON) workflowRunTriggere } } -func (r workflowRunTriggeredByQueryInputJson) LtIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r getGroupKeyRunQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.Lt(*value) -} - -func (r workflowRunTriggeredByQueryInputJson) Lte(value JSON) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + return getGroupKeyRunDefaultParam{} } + return r.Before(*value) } -func (r workflowRunTriggeredByQueryInputJson) LteIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { - if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.Lte(*value) -} +// deprecated: Use Gt instead. -func (r workflowRunTriggeredByQueryInputJson) Gt(value JSON) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -112588,41 +113738,23 @@ func (r workflowRunTriggeredByQueryInputJson) Gt(value JSON) workflowRunTriggere } } -func (r workflowRunTriggeredByQueryInputJson) GtIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r getGroupKeyRunQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.Gt(*value) -} - -func (r workflowRunTriggeredByQueryInputJson) Gte(value JSON) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, + return getGroupKeyRunDefaultParam{} } + return r.After(*value) } -func (r workflowRunTriggeredByQueryInputJson) GteIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { - if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.Gte(*value) -} +// deprecated: Use Lte instead. -func (r workflowRunTriggeredByQueryInputJson) Not(value JSONNullValueFilter) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "createdAt", Fields: []builder.Field{ { - Name: "not", + Name: "lte", Value: value, }, }, @@ -112630,150 +113762,71 @@ func (r workflowRunTriggeredByQueryInputJson) Not(value JSONNullValueFilter) wor } } -func (r workflowRunTriggeredByQueryInputJson) NotIfPresent(value *JSONNullValueFilter) workflowRunTriggeredByDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r getGroupKeyRunQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.Not(*value) -} - -func (r workflowRunTriggeredByQueryInputJson) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldInput -} - -// base struct -type workflowRunTriggeredByQueryEventEvent struct{} - -type workflowRunTriggeredByQueryEventRelations struct{} - -// WorkflowRunTriggeredBy -> Event -// -// @relation -// @optional -func (workflowRunTriggeredByQueryEventRelations) Where( - params ...EventWhereParam, -) workflowRunTriggeredByDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "event", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, - }, + return getGroupKeyRunDefaultParam{} } + return r.BeforeEquals(*value) } -func (workflowRunTriggeredByQueryEventRelations) Fetch() workflowRunTriggeredByToEventFindUnique { - var v workflowRunTriggeredByToEventFindUnique - - v.query.Operation = "query" - v.query.Method = "event" - v.query.Outputs = eventOutput - - return v -} - -func (r workflowRunTriggeredByQueryEventRelations) Link( - params EventWhereParam, -) workflowRunTriggeredBySetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunTriggeredBySetParam{} - } - - fields = append(fields, f) +// deprecated: Use Gte instead. - return workflowRunTriggeredBySetParam{ +func (r getGroupKeyRunQueryCreatedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "event", + Name: "createdAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "gte", + Value: value, }, }, }, } } -func (r workflowRunTriggeredByQueryEventRelations) Unlink() workflowRunTriggeredBySetParam { - var v workflowRunTriggeredBySetParam - - v = workflowRunTriggeredBySetParam{ - data: builder.Field{ - Name: "event", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, +// deprecated: Use GteIfPresent instead. +func (r getGroupKeyRunQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} } - - return v + return r.AfterEquals(*value) } -func (r workflowRunTriggeredByQueryEventEvent) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldEvent +func (r getGroupKeyRunQueryCreatedAtDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldCreatedAt } // base struct -type workflowRunTriggeredByQueryEventIDString struct{} +type getGroupKeyRunQueryUpdatedAtDateTime struct{} -// Set the optional value of EventID -func (r workflowRunTriggeredByQueryEventIDString) Set(value string) workflowRunTriggeredBySetParam { +// Set the required value of UpdatedAt +func (r getGroupKeyRunQueryUpdatedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { - return workflowRunTriggeredBySetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of EventID dynamically -func (r workflowRunTriggeredByQueryEventIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { - if value == nil { - return workflowRunTriggeredBySetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of EventID dynamically -func (r workflowRunTriggeredByQueryEventIDString) SetOptional(value *String) workflowRunTriggeredBySetParam { +// Set the optional value of UpdatedAt dynamically +func (r getGroupKeyRunQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { if value == nil { - - var v *string - return workflowRunTriggeredBySetParam{ - data: builder.Field{ - Name: "eventId", - Value: v, - }, - } + return getGroupKeyRunSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryEventIDString) Equals(value string) workflowRunTriggeredByWithPrismaEventIDEqualsParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaUpdatedAtEqualsParam { - return workflowRunTriggeredByWithPrismaEventIDEqualsParam{ + return getGroupKeyRunWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -112784,64 +113837,35 @@ func (r workflowRunTriggeredByQueryEventIDString) Equals(value string) workflowR } } -func (r workflowRunTriggeredByQueryEventIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaEventIDEqualsParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaUpdatedAtEqualsParam { if value == nil { - return workflowRunTriggeredByWithPrismaEventIDEqualsParam{} + return getGroupKeyRunWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryEventIDString) EqualsOptional(value *String) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "eventId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryEventIDString) IsNull() workflowRunTriggeredByDefaultParam { - var str *string = nil - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "eventId", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryEventIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Value: direction, }, } } -func (r workflowRunTriggeredByQueryEventIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryEventIDString) In(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -112852,17 +113876,17 @@ func (r workflowRunTriggeredByQueryEventIDString) In(value []string) workflowRun } } -func (r workflowRunTriggeredByQueryEventIDString) InIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r workflowRunTriggeredByQueryEventIDString) NotIn(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -112873,17 +113897,17 @@ func (r workflowRunTriggeredByQueryEventIDString) NotIn(value []string) workflow } } -func (r workflowRunTriggeredByQueryEventIDString) NotInIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryEventIDString) Lt(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -112894,17 +113918,17 @@ func (r workflowRunTriggeredByQueryEventIDString) Lt(value string) workflowRunTr } } -func (r workflowRunTriggeredByQueryEventIDString) LtIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryEventIDString) Lte(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -112915,17 +113939,17 @@ func (r workflowRunTriggeredByQueryEventIDString) Lte(value string) workflowRunT } } -func (r workflowRunTriggeredByQueryEventIDString) LteIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryEventIDString) Gt(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -112936,17 +113960,17 @@ func (r workflowRunTriggeredByQueryEventIDString) Gt(value string) workflowRunTr } } -func (r workflowRunTriggeredByQueryEventIDString) GtIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryEventIDString) Gte(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -112957,20 +113981,20 @@ func (r workflowRunTriggeredByQueryEventIDString) Gte(value string) workflowRunT } } -func (r workflowRunTriggeredByQueryEventIDString) GteIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryEventIDString) Contains(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -112978,20 +114002,22 @@ func (r workflowRunTriggeredByQueryEventIDString) Contains(value string) workflo } } -func (r workflowRunTriggeredByQueryEventIDString) ContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r workflowRunTriggeredByQueryEventIDString) StartsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Lt instead. + +func (r getGroupKeyRunQueryUpdatedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -112999,20 +114025,23 @@ func (r workflowRunTriggeredByQueryEventIDString) StartsWith(value string) workf } } -func (r workflowRunTriggeredByQueryEventIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r getGroupKeyRunQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r workflowRunTriggeredByQueryEventIDString) EndsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Gt instead. + +func (r getGroupKeyRunQueryUpdatedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -113020,20 +114049,23 @@ func (r workflowRunTriggeredByQueryEventIDString) EndsWith(value string) workflo } } -func (r workflowRunTriggeredByQueryEventIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r getGroupKeyRunQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r workflowRunTriggeredByQueryEventIDString) Mode(value QueryMode) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Lte instead. + +func (r getGroupKeyRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -113041,67 +114073,23 @@ func (r workflowRunTriggeredByQueryEventIDString) Mode(value QueryMode) workflow } } -func (r workflowRunTriggeredByQueryEventIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByDefaultParam { - if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.Mode(*value) -} - -func (r workflowRunTriggeredByQueryEventIDString) Not(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "eventId", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryEventIDString) NotIfPresent(value *string) workflowRunTriggeredByDefaultParam { - if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.Not(*value) -} - -// deprecated: Use StartsWith instead. - -func (r workflowRunTriggeredByQueryEventIDString) HasPrefix(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "eventId", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use StartsWithIfPresent instead. -func (r workflowRunTriggeredByQueryEventIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r getGroupKeyRunQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r workflowRunTriggeredByQueryEventIDString) HasSuffix(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "eventId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -113109,138 +114097,50 @@ func (r workflowRunTriggeredByQueryEventIDString) HasSuffix(value string) workfl } } -// deprecated: Use EndsWithIfPresent instead. -func (r workflowRunTriggeredByQueryEventIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r getGroupKeyRunQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.HasSuffix(*value) -} - -func (r workflowRunTriggeredByQueryEventIDString) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldEventID -} - -// base struct -type workflowRunTriggeredByQueryCronWorkflowTriggerCronRef struct{} - -type workflowRunTriggeredByQueryCronRelations struct{} - -// WorkflowRunTriggeredBy -> Cron -// -// @relation -// @optional -func (workflowRunTriggeredByQueryCronRelations) Where( - params ...WorkflowTriggerCronRefWhereParam, -) workflowRunTriggeredByDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "cron", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, - }, - } -} - -func (workflowRunTriggeredByQueryCronRelations) Fetch() workflowRunTriggeredByToCronFindUnique { - var v workflowRunTriggeredByToCronFindUnique - - v.query.Operation = "query" - v.query.Method = "cron" - v.query.Outputs = workflowTriggerCronRefOutput - - return v -} - -func (r workflowRunTriggeredByQueryCronRelations) Link( - params WorkflowTriggerCronRefWhereParam, -) workflowRunTriggeredBySetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workflowRunTriggeredBySetParam{} - } - - fields = append(fields, f) - - return workflowRunTriggeredBySetParam{ - data: builder.Field{ - Name: "cron", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryCronRelations) Unlink() workflowRunTriggeredBySetParam { - var v workflowRunTriggeredBySetParam - - v = workflowRunTriggeredBySetParam{ - data: builder.Field{ - Name: "cron", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, + return getGroupKeyRunDefaultParam{} } - - return v + return r.AfterEquals(*value) } -func (r workflowRunTriggeredByQueryCronWorkflowTriggerCronRef) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldCron +func (r getGroupKeyRunQueryUpdatedAtDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldUpdatedAt } // base struct -type workflowRunTriggeredByQueryCronParentIDString struct{} +type getGroupKeyRunQueryDeletedAtDateTime struct{} -// Set the optional value of CronParentID -func (r workflowRunTriggeredByQueryCronParentIDString) Set(value string) workflowRunTriggeredBySetParam { +// Set the optional value of DeletedAt +func (r getGroupKeyRunQueryDeletedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { - return workflowRunTriggeredBySetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Value: value, }, } } -// Set the optional value of CronParentID dynamically -func (r workflowRunTriggeredByQueryCronParentIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { +// Set the optional value of DeletedAt dynamically +func (r getGroupKeyRunQueryDeletedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { if value == nil { - return workflowRunTriggeredBySetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -// Set the optional value of CronParentID dynamically -func (r workflowRunTriggeredByQueryCronParentIDString) SetOptional(value *String) workflowRunTriggeredBySetParam { +// Set the optional value of DeletedAt dynamically +func (r getGroupKeyRunQueryDeletedAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { if value == nil { - var v *string - return workflowRunTriggeredBySetParam{ + var v *DateTime + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Value: v, }, } @@ -113249,11 +114149,11 @@ func (r workflowRunTriggeredByQueryCronParentIDString) SetOptional(value *String return r.Set(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) Equals(value string) workflowRunTriggeredByWithPrismaCronParentIDEqualsParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaDeletedAtEqualsParam { - return workflowRunTriggeredByWithPrismaCronParentIDEqualsParam{ + return getGroupKeyRunWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -113264,17 +114164,17 @@ func (r workflowRunTriggeredByQueryCronParentIDString) Equals(value string) work } } -func (r workflowRunTriggeredByQueryCronParentIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaCronParentIDEqualsParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaDeletedAtEqualsParam { if value == nil { - return workflowRunTriggeredByWithPrismaCronParentIDEqualsParam{} + return getGroupKeyRunWithPrismaDeletedAtEqualsParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) EqualsOptional(value *String) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -113285,11 +114185,11 @@ func (r workflowRunTriggeredByQueryCronParentIDString) EqualsOptional(value *Str } } -func (r workflowRunTriggeredByQueryCronParentIDString) IsNull() workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) IsNull() getGroupKeyRunDefaultParam { var str *string = nil - return workflowRunTriggeredByDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -113300,28 +114200,28 @@ func (r workflowRunTriggeredByQueryCronParentIDString) IsNull() workflowRunTrigg } } -func (r workflowRunTriggeredByQueryCronParentIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Value: direction, }, } } -func (r workflowRunTriggeredByQueryCronParentIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryCronParentIDString) In(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "in", @@ -113332,17 +114232,17 @@ func (r workflowRunTriggeredByQueryCronParentIDString) In(value []string) workfl } } -func (r workflowRunTriggeredByQueryCronParentIDString) InIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r workflowRunTriggeredByQueryCronParentIDString) NotIn(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "notIn", @@ -113353,17 +114253,17 @@ func (r workflowRunTriggeredByQueryCronParentIDString) NotIn(value []string) wor } } -func (r workflowRunTriggeredByQueryCronParentIDString) NotInIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryCronParentIDString) Lt(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -113374,17 +114274,17 @@ func (r workflowRunTriggeredByQueryCronParentIDString) Lt(value string) workflow } } -func (r workflowRunTriggeredByQueryCronParentIDString) LtIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) Lte(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -113395,17 +114295,17 @@ func (r workflowRunTriggeredByQueryCronParentIDString) Lte(value string) workflo } } -func (r workflowRunTriggeredByQueryCronParentIDString) LteIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) Gt(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -113416,17 +114316,17 @@ func (r workflowRunTriggeredByQueryCronParentIDString) Gt(value string) workflow } } -func (r workflowRunTriggeredByQueryCronParentIDString) GtIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) Gte(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -113437,20 +114337,20 @@ func (r workflowRunTriggeredByQueryCronParentIDString) Gte(value string) workflo } } -func (r workflowRunTriggeredByQueryCronParentIDString) GteIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) Contains(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryDeletedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -113458,20 +114358,22 @@ func (r workflowRunTriggeredByQueryCronParentIDString) Contains(value string) wo } } -func (r workflowRunTriggeredByQueryCronParentIDString) ContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryDeletedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) StartsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Lt instead. + +func (r getGroupKeyRunQueryDeletedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -113479,20 +114381,23 @@ func (r workflowRunTriggeredByQueryCronParentIDString) StartsWith(value string) } } -func (r workflowRunTriggeredByQueryCronParentIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r getGroupKeyRunQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) EndsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Gt instead. + +func (r getGroupKeyRunQueryDeletedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -113500,20 +114405,23 @@ func (r workflowRunTriggeredByQueryCronParentIDString) EndsWith(value string) wo } } -func (r workflowRunTriggeredByQueryCronParentIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r getGroupKeyRunQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) Mode(value QueryMode) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Lte instead. + +func (r getGroupKeyRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -113521,20 +114429,23 @@ func (r workflowRunTriggeredByQueryCronParentIDString) Mode(value QueryMode) wor } } -func (r workflowRunTriggeredByQueryCronParentIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r getGroupKeyRunQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r workflowRunTriggeredByQueryCronParentIDString) Not(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// deprecated: Use Gte instead. + +func (r getGroupKeyRunQueryDeletedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -113542,110 +114453,135 @@ func (r workflowRunTriggeredByQueryCronParentIDString) Not(value string) workflo } } -func (r workflowRunTriggeredByQueryCronParentIDString) NotIfPresent(value *string) workflowRunTriggeredByDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r getGroupKeyRunQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r getGroupKeyRunQueryDeletedAtDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldDeletedAt +} -func (r workflowRunTriggeredByQueryCronParentIDString) HasPrefix(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +// base struct +type getGroupKeyRunQueryTenantTenant struct{} + +type getGroupKeyRunQueryTenantRelations struct{} + +// GetGroupKeyRun -> Tenant +// +// @relation +// @required +func (getGroupKeyRunQueryTenantRelations) Where( + params ...TenantWhereParam, +) getGroupKeyRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronParentId", + Name: "tenant", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r workflowRunTriggeredByQueryCronParentIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByDefaultParam { - if value == nil { - return workflowRunTriggeredByDefaultParam{} - } - return r.HasPrefix(*value) +func (getGroupKeyRunQueryTenantRelations) Fetch() getGroupKeyRunToTenantFindUnique { + var v getGroupKeyRunToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v } -// deprecated: Use EndsWith instead. +func (r getGroupKeyRunQueryTenantRelations) Link( + params TenantWhereParam, +) getGroupKeyRunWithPrismaTenantSetParam { + var fields []builder.Field -func (r workflowRunTriggeredByQueryCronParentIDString) HasSuffix(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return getGroupKeyRunWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return getGroupKeyRunWithPrismaTenantSetParam{ data: builder.Field{ - Name: "cronParentId", + Name: "tenant", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r workflowRunTriggeredByQueryCronParentIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByDefaultParam { - if value == nil { - return workflowRunTriggeredByDefaultParam{} +func (r getGroupKeyRunQueryTenantRelations) Unlink() getGroupKeyRunWithPrismaTenantSetParam { + var v getGroupKeyRunWithPrismaTenantSetParam + + v = getGroupKeyRunWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, } - return r.HasSuffix(*value) + + return v } -func (r workflowRunTriggeredByQueryCronParentIDString) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldCronParentID +func (r getGroupKeyRunQueryTenantTenant) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldTenant } // base struct -type workflowRunTriggeredByQueryCronScheduleString struct{} +type getGroupKeyRunQueryTenantIDString struct{} -// Set the optional value of CronSchedule -func (r workflowRunTriggeredByQueryCronScheduleString) Set(value string) workflowRunTriggeredBySetParam { +// Set the required value of TenantID +func (r getGroupKeyRunQueryTenantIDString) Set(value string) getGroupKeyRunSetParam { - return workflowRunTriggeredBySetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Value: value, }, } } -// Set the optional value of CronSchedule dynamically -func (r workflowRunTriggeredByQueryCronScheduleString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { - if value == nil { - return workflowRunTriggeredBySetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of CronSchedule dynamically -func (r workflowRunTriggeredByQueryCronScheduleString) SetOptional(value *String) workflowRunTriggeredBySetParam { +// Set the optional value of TenantID dynamically +func (r getGroupKeyRunQueryTenantIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { if value == nil { - - var v *string - return workflowRunTriggeredBySetParam{ - data: builder.Field{ - Name: "cronSchedule", - Value: v, - }, - } + return getGroupKeyRunSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Equals(value string) workflowRunTriggeredByWithPrismaCronScheduleEqualsParam { +func (r getGroupKeyRunQueryTenantIDString) Equals(value string) getGroupKeyRunWithPrismaTenantIDEqualsParam { - return workflowRunTriggeredByWithPrismaCronScheduleEqualsParam{ + return getGroupKeyRunWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "equals", @@ -113656,64 +114592,35 @@ func (r workflowRunTriggeredByQueryCronScheduleString) Equals(value string) work } } -func (r workflowRunTriggeredByQueryCronScheduleString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaCronScheduleEqualsParam { +func (r getGroupKeyRunQueryTenantIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaTenantIDEqualsParam { if value == nil { - return workflowRunTriggeredByWithPrismaCronScheduleEqualsParam{} + return getGroupKeyRunWithPrismaTenantIDEqualsParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) EqualsOptional(value *String) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "cronSchedule", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryCronScheduleString) IsNull() workflowRunTriggeredByDefaultParam { - var str *string = nil - return workflowRunTriggeredByDefaultParam{ - data: builder.Field{ - Name: "cronSchedule", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryCronScheduleString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Value: direction, }, } } -func (r workflowRunTriggeredByQueryCronScheduleString) Cursor(cursor string) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r getGroupKeyRunQueryTenantIDString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryCronScheduleString) In(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) In(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "in", @@ -113724,17 +114631,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) In(value []string) workfl } } -func (r workflowRunTriggeredByQueryCronScheduleString) InIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) InIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r workflowRunTriggeredByQueryCronScheduleString) NotIn(value []string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) NotIn(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "notIn", @@ -113745,17 +114652,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) NotIn(value []string) wor } } -func (r workflowRunTriggeredByQueryCronScheduleString) NotInIfPresent(value []string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Lt(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) Lt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "lt", @@ -113766,17 +114673,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) Lt(value string) workflow } } -func (r workflowRunTriggeredByQueryCronScheduleString) LtIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Lte(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) Lte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "lte", @@ -113787,17 +114694,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) Lte(value string) workflo } } -func (r workflowRunTriggeredByQueryCronScheduleString) LteIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Gt(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) Gt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "gt", @@ -113808,17 +114715,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) Gt(value string) workflow } } -func (r workflowRunTriggeredByQueryCronScheduleString) GtIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Gte(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) Gte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "gte", @@ -113829,17 +114736,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) Gte(value string) workflo } } -func (r workflowRunTriggeredByQueryCronScheduleString) GteIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Contains(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) Contains(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "contains", @@ -113850,17 +114757,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) Contains(value string) wo } } -func (r workflowRunTriggeredByQueryCronScheduleString) ContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Contains(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) StartsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) StartsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "startsWith", @@ -113871,17 +114778,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) StartsWith(value string) } } -func (r workflowRunTriggeredByQueryCronScheduleString) StartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.StartsWith(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) EndsWith(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) EndsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "endsWith", @@ -113892,17 +114799,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) EndsWith(value string) wo } } -func (r workflowRunTriggeredByQueryCronScheduleString) EndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.EndsWith(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Mode(value QueryMode) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) Mode(value QueryMode) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "mode", @@ -113913,17 +114820,17 @@ func (r workflowRunTriggeredByQueryCronScheduleString) Mode(value QueryMode) wor } } -func (r workflowRunTriggeredByQueryCronScheduleString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Mode(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Not(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) Not(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "not", @@ -113934,19 +114841,19 @@ func (r workflowRunTriggeredByQueryCronScheduleString) Not(value string) workflo } } -func (r workflowRunTriggeredByQueryCronScheduleString) NotIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunTriggeredByQueryCronScheduleString) HasPrefix(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) HasPrefix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "starts_with", @@ -113958,19 +114865,19 @@ func (r workflowRunTriggeredByQueryCronScheduleString) HasPrefix(value string) w } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunTriggeredByQueryCronScheduleString) HasPrefixIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunTriggeredByQueryCronScheduleString) HasSuffix(value string) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryTenantIDString) HasSuffix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cronSchedule", + Name: "tenantId", Fields: []builder.Field{ { Name: "ends_with", @@ -113982,38 +114889,38 @@ func (r workflowRunTriggeredByQueryCronScheduleString) HasSuffix(value string) w } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunTriggeredByQueryCronScheduleString) HasSuffixIfPresent(value *string) workflowRunTriggeredByDefaultParam { +func (r getGroupKeyRunQueryTenantIDString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return workflowRunTriggeredByDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.HasSuffix(*value) } -func (r workflowRunTriggeredByQueryCronScheduleString) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldCronSchedule +func (r getGroupKeyRunQueryTenantIDString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldTenantID } // base struct -type workflowRunTriggeredByQueryScheduledWorkflowTriggerScheduledRef struct{} +type getGroupKeyRunQueryWorkflowRunWorkflowRun struct{} -type workflowRunTriggeredByQueryScheduledRelations struct{} +type getGroupKeyRunQueryWorkflowRunRelations struct{} -// WorkflowRunTriggeredBy -> Scheduled +// GetGroupKeyRun -> WorkflowRun // // @relation -// @optional -func (workflowRunTriggeredByQueryScheduledRelations) Where( - params ...WorkflowTriggerScheduledRefWhereParam, -) workflowRunTriggeredByDefaultParam { +// @required +func (getGroupKeyRunQueryWorkflowRunRelations) Where( + params ...WorkflowRunWhereParam, +) getGroupKeyRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workflowRunTriggeredByDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "scheduled", + Name: "workflowRun", Fields: []builder.Field{ { Name: "is", @@ -114024,31 +114931,31 @@ func (workflowRunTriggeredByQueryScheduledRelations) Where( } } -func (workflowRunTriggeredByQueryScheduledRelations) Fetch() workflowRunTriggeredByToScheduledFindUnique { - var v workflowRunTriggeredByToScheduledFindUnique +func (getGroupKeyRunQueryWorkflowRunRelations) Fetch() getGroupKeyRunToWorkflowRunFindUnique { + var v getGroupKeyRunToWorkflowRunFindUnique v.query.Operation = "query" - v.query.Method = "scheduled" - v.query.Outputs = workflowTriggerScheduledRefOutput + v.query.Method = "workflowRun" + v.query.Outputs = workflowRunOutput return v } -func (r workflowRunTriggeredByQueryScheduledRelations) Link( - params WorkflowTriggerScheduledRefWhereParam, -) workflowRunTriggeredBySetParam { +func (r getGroupKeyRunQueryWorkflowRunRelations) Link( + params WorkflowRunWhereParam, +) getGroupKeyRunWithPrismaWorkflowRunSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return workflowRunTriggeredBySetParam{} + return getGroupKeyRunWithPrismaWorkflowRunSetParam{} } fields = append(fields, f) - return workflowRunTriggeredBySetParam{ + return getGroupKeyRunWithPrismaWorkflowRunSetParam{ data: builder.Field{ - Name: "scheduled", + Name: "workflowRun", Fields: []builder.Field{ { Name: "connect", @@ -114059,12 +114966,12 @@ func (r workflowRunTriggeredByQueryScheduledRelations) Link( } } -func (r workflowRunTriggeredByQueryScheduledRelations) Unlink() workflowRunTriggeredBySetParam { - var v workflowRunTriggeredBySetParam +func (r getGroupKeyRunQueryWorkflowRunRelations) Unlink() getGroupKeyRunWithPrismaWorkflowRunSetParam { + var v getGroupKeyRunWithPrismaWorkflowRunSetParam - v = workflowRunTriggeredBySetParam{ + v = getGroupKeyRunWithPrismaWorkflowRunSetParam{ data: builder.Field{ - Name: "scheduled", + Name: "workflowRun", Fields: []builder.Field{ { Name: "disconnect", @@ -114077,55 +114984,39 @@ func (r workflowRunTriggeredByQueryScheduledRelations) Unlink() workflowRunTrigg return v } -func (r workflowRunTriggeredByQueryScheduledWorkflowTriggerScheduledRef) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldScheduled +func (r getGroupKeyRunQueryWorkflowRunWorkflowRun) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldWorkflowRun } // base struct -type workflowRunTriggeredByQueryScheduledIDString struct{} +type getGroupKeyRunQueryWorkflowRunIDString struct{} -// Set the optional value of ScheduledID -func (r workflowRunTriggeredByQueryScheduledIDString) Set(value string) workflowRunTriggeredBySetParam { +// Set the required value of WorkflowRunID +func (r getGroupKeyRunQueryWorkflowRunIDString) Set(value string) getGroupKeyRunSetParam { - return workflowRunTriggeredBySetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Value: value, }, } } -// Set the optional value of ScheduledID dynamically -func (r workflowRunTriggeredByQueryScheduledIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { - if value == nil { - return workflowRunTriggeredBySetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of ScheduledID dynamically -func (r workflowRunTriggeredByQueryScheduledIDString) SetOptional(value *String) workflowRunTriggeredBySetParam { +// Set the optional value of WorkflowRunID dynamically +func (r getGroupKeyRunQueryWorkflowRunIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { if value == nil { - - var v *string - return workflowRunTriggeredBySetParam{ - data: builder.Field{ - Name: "scheduledId", - Value: v, - }, - } + return getGroupKeyRunSetParam{} } return r.Set(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Equals(value string) workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam { +func (r getGroupKeyRunQueryWorkflowRunIDString) Equals(value string) getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam { - return workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam{ + return getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "equals", @@ -114136,64 +115027,35 @@ func (r workflowRunTriggeredByQueryScheduledIDString) Equals(value string) workf } } -func (r workflowRunTriggeredByQueryScheduledIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam { +func (r getGroupKeyRunQueryWorkflowRunIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam { if value == nil { - return workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam{} + return getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) EqualsOptional(value *String) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ - data: builder.Field{ - Name: "scheduledId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryScheduledIDString) IsNull() workflowRunTriggeredByParamUnique { - var str *string = nil - return workflowRunTriggeredByParamUnique{ - data: builder.Field{ - Name: "scheduledId", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workflowRunTriggeredByQueryScheduledIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { - return workflowRunTriggeredByDefaultParam{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Value: direction, }, } } -func (r workflowRunTriggeredByQueryScheduledIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { - return workflowRunTriggeredByCursorParam{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Value: cursor, }, } } -func (r workflowRunTriggeredByQueryScheduledIDString) In(value []string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) In(value []string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "in", @@ -114204,17 +115066,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) In(value []string) workflo } } -func (r workflowRunTriggeredByQueryScheduledIDString) InIfPresent(value []string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) InIfPresent(value []string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.In(value) } -func (r workflowRunTriggeredByQueryScheduledIDString) NotIn(value []string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) NotIn(value []string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "notIn", @@ -114225,17 +115087,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) NotIn(value []string) work } } -func (r workflowRunTriggeredByQueryScheduledIDString) NotInIfPresent(value []string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) NotInIfPresent(value []string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.NotIn(value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Lt(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Lt(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "lt", @@ -114246,17 +115108,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) Lt(value string) workflowR } } -func (r workflowRunTriggeredByQueryScheduledIDString) LtIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) LtIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Lt(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Lte(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Lte(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "lte", @@ -114267,17 +115129,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) Lte(value string) workflow } } -func (r workflowRunTriggeredByQueryScheduledIDString) LteIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) LteIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Lte(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Gt(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Gt(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "gt", @@ -114288,17 +115150,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) Gt(value string) workflowR } } -func (r workflowRunTriggeredByQueryScheduledIDString) GtIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) GtIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Gt(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Gte(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Gte(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "gte", @@ -114309,17 +115171,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) Gte(value string) workflow } } -func (r workflowRunTriggeredByQueryScheduledIDString) GteIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) GteIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Gte(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Contains(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Contains(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "contains", @@ -114330,17 +115192,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) Contains(value string) wor } } -func (r workflowRunTriggeredByQueryScheduledIDString) ContainsIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) ContainsIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Contains(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) StartsWith(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) StartsWith(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "startsWith", @@ -114351,17 +115213,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) StartsWith(value string) w } } -func (r workflowRunTriggeredByQueryScheduledIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) StartsWithIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.StartsWith(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) EndsWith(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) EndsWith(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "endsWith", @@ -114372,17 +115234,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) EndsWith(value string) wor } } -func (r workflowRunTriggeredByQueryScheduledIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) EndsWithIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.EndsWith(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Mode(value QueryMode) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Mode(value QueryMode) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "mode", @@ -114393,17 +115255,17 @@ func (r workflowRunTriggeredByQueryScheduledIDString) Mode(value QueryMode) work } } -func (r workflowRunTriggeredByQueryScheduledIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Mode(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Not(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) Not(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "not", @@ -114414,19 +115276,19 @@ func (r workflowRunTriggeredByQueryScheduledIDString) Not(value string) workflow } } -func (r workflowRunTriggeredByQueryScheduledIDString) NotIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) NotIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workflowRunTriggeredByQueryScheduledIDString) HasPrefix(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) HasPrefix(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "starts_with", @@ -114438,19 +115300,19 @@ func (r workflowRunTriggeredByQueryScheduledIDString) HasPrefix(value string) wo } // deprecated: Use StartsWithIfPresent instead. -func (r workflowRunTriggeredByQueryScheduledIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) HasPrefixIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workflowRunTriggeredByQueryScheduledIDString) HasSuffix(value string) workflowRunTriggeredByParamUnique { - return workflowRunTriggeredByParamUnique{ +func (r getGroupKeyRunQueryWorkflowRunIDString) HasSuffix(value string) getGroupKeyRunParamUnique { + return getGroupKeyRunParamUnique{ data: builder.Field{ - Name: "scheduledId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "ends_with", @@ -114462,196 +115324,150 @@ func (r workflowRunTriggeredByQueryScheduledIDString) HasSuffix(value string) wo } // deprecated: Use EndsWithIfPresent instead. -func (r workflowRunTriggeredByQueryScheduledIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByParamUnique { +func (r getGroupKeyRunQueryWorkflowRunIDString) HasSuffixIfPresent(value *string) getGroupKeyRunParamUnique { if value == nil { - return workflowRunTriggeredByParamUnique{} + return getGroupKeyRunParamUnique{} } return r.HasSuffix(*value) } -func (r workflowRunTriggeredByQueryScheduledIDString) Field() workflowRunTriggeredByPrismaFields { - return workflowRunTriggeredByFieldScheduledID +func (r getGroupKeyRunQueryWorkflowRunIDString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldWorkflowRunID } -// JobRun acts as a namespaces to access query methods for the JobRun model -var JobRun = jobRunQuery{} - -// jobRunQuery exposes query functions for the jobRun model -type jobRunQuery struct { - - // ID - // - // @required - ID jobRunQueryIDString - - // CreatedAt - // - // @required - CreatedAt jobRunQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt jobRunQueryUpdatedAtDateTime +// base struct +type getGroupKeyRunQueryWorkerWorker struct{} - // DeletedAt - // - // @optional - DeletedAt jobRunQueryDeletedAtDateTime +type getGroupKeyRunQueryWorkerRelations struct{} - Tenant jobRunQueryTenantRelations +// GetGroupKeyRun -> Worker +// +// @relation +// @optional +func (getGroupKeyRunQueryWorkerRelations) Where( + params ...WorkerWhereParam, +) getGroupKeyRunDefaultParam { + var fields []builder.Field - // TenantID - // - // @required - TenantID jobRunQueryTenantIDString + for _, q := range params { + fields = append(fields, q.field()) + } - WorkflowRun jobRunQueryWorkflowRunRelations + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "worker", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} - // WorkflowRunID - // - // @required - WorkflowRunID jobRunQueryWorkflowRunIDString +func (getGroupKeyRunQueryWorkerRelations) Fetch() getGroupKeyRunToWorkerFindUnique { + var v getGroupKeyRunToWorkerFindUnique - Job jobRunQueryJobRelations + v.query.Operation = "query" + v.query.Method = "worker" + v.query.Outputs = workerOutput - // JobID - // - // @required - JobID jobRunQueryJobIDString + return v +} - Ticker jobRunQueryTickerRelations +func (r getGroupKeyRunQueryWorkerRelations) Link( + params WorkerWhereParam, +) getGroupKeyRunSetParam { + var fields []builder.Field - // TickerID - // - // @optional - TickerID jobRunQueryTickerIDString + f := params.field() + if f.Fields == nil && f.Value == nil { + return getGroupKeyRunSetParam{} + } - StepRuns jobRunQueryStepRunsRelations + fields = append(fields, f) - // Status - // - // @required - Status jobRunQueryStatusJobRunStatus - - LookupData jobRunQueryLookupDataRelations - - // Result - // - // @optional - Result jobRunQueryResultJson - - // StartedAt - // - // @optional - StartedAt jobRunQueryStartedAtDateTime - - // FinishedAt - // - // @optional - FinishedAt jobRunQueryFinishedAtDateTime - - // TimeoutAt - // - // @optional - TimeoutAt jobRunQueryTimeoutAtDateTime - - // CancelledAt - // - // @optional - CancelledAt jobRunQueryCancelledAtDateTime - - // CancelledReason - // - // @optional - CancelledReason jobRunQueryCancelledReasonString - - // CancelledError - // - // @optional - CancelledError jobRunQueryCancelledErrorString -} - -func (jobRunQuery) Not(params ...JobRunWhereParam) jobRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return jobRunDefaultParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "worker", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, }, } } -func (jobRunQuery) Or(params ...JobRunWhereParam) jobRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +func (r getGroupKeyRunQueryWorkerRelations) Unlink() getGroupKeyRunSetParam { + var v getGroupKeyRunSetParam - return jobRunDefaultParam{ + v = getGroupKeyRunSetParam{ data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, + Name: "worker", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, }, } -} - -func (jobRunQuery) And(params ...JobRunWhereParam) jobRunDefaultParam { - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) - } + return v +} - return jobRunDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } +func (r getGroupKeyRunQueryWorkerWorker) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldWorker } // base struct -type jobRunQueryIDString struct{} +type getGroupKeyRunQueryWorkerIDString struct{} -// Set the required value of ID -func (r jobRunQueryIDString) Set(value string) jobRunSetParam { +// Set the optional value of WorkerID +func (r getGroupKeyRunQueryWorkerIDString) Set(value string) getGroupKeyRunSetParam { - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Value: value, }, } } -// Set the optional value of ID dynamically -func (r jobRunQueryIDString) SetIfPresent(value *String) jobRunSetParam { +// Set the optional value of WorkerID dynamically +func (r getGroupKeyRunQueryWorkerIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -func (r jobRunQueryIDString) Equals(value string) jobRunWithPrismaIDEqualsUniqueParam { +// Set the optional value of WorkerID dynamically +func (r getGroupKeyRunQueryWorkerIDString) SetOptional(value *String) getGroupKeyRunSetParam { + if value == nil { - return jobRunWithPrismaIDEqualsUniqueParam{ + var v *string + return getGroupKeyRunSetParam{ + data: builder.Field{ + Name: "workerId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r getGroupKeyRunQueryWorkerIDString) Equals(value string) getGroupKeyRunWithPrismaWorkerIDEqualsParam { + + return getGroupKeyRunWithPrismaWorkerIDEqualsParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "equals", @@ -114662,35 +115478,64 @@ func (r jobRunQueryIDString) Equals(value string) jobRunWithPrismaIDEqualsUnique } } -func (r jobRunQueryIDString) EqualsIfPresent(value *string) jobRunWithPrismaIDEqualsUniqueParam { +func (r getGroupKeyRunQueryWorkerIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaWorkerIDEqualsParam { if value == nil { - return jobRunWithPrismaIDEqualsUniqueParam{} + return getGroupKeyRunWithPrismaWorkerIDEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryIDString) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryWorkerIDString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r getGroupKeyRunQueryWorkerIDString) IsNull() getGroupKeyRunDefaultParam { + var str *string = nil + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "workerId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r getGroupKeyRunQueryWorkerIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "workerId", Value: direction, }, } } -func (r jobRunQueryIDString) Cursor(cursor string) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryWorkerIDString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Value: cursor, }, } } -func (r jobRunQueryIDString) In(value []string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) In(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "in", @@ -114701,17 +115546,17 @@ func (r jobRunQueryIDString) In(value []string) jobRunParamUnique { } } -func (r jobRunQueryIDString) InIfPresent(value []string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) InIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryIDString) NotIn(value []string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) NotIn(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "notIn", @@ -114722,17 +115567,17 @@ func (r jobRunQueryIDString) NotIn(value []string) jobRunParamUnique { } } -func (r jobRunQueryIDString) NotInIfPresent(value []string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryIDString) Lt(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) Lt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "lt", @@ -114743,17 +115588,17 @@ func (r jobRunQueryIDString) Lt(value string) jobRunParamUnique { } } -func (r jobRunQueryIDString) LtIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryIDString) Lte(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) Lte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "lte", @@ -114764,17 +115609,17 @@ func (r jobRunQueryIDString) Lte(value string) jobRunParamUnique { } } -func (r jobRunQueryIDString) LteIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryIDString) Gt(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) Gt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "gt", @@ -114785,17 +115630,17 @@ func (r jobRunQueryIDString) Gt(value string) jobRunParamUnique { } } -func (r jobRunQueryIDString) GtIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryIDString) Gte(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) Gte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "gte", @@ -114806,17 +115651,17 @@ func (r jobRunQueryIDString) Gte(value string) jobRunParamUnique { } } -func (r jobRunQueryIDString) GteIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryIDString) Contains(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) Contains(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "contains", @@ -114827,17 +115672,17 @@ func (r jobRunQueryIDString) Contains(value string) jobRunParamUnique { } } -func (r jobRunQueryIDString) ContainsIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.Contains(*value) } -func (r jobRunQueryIDString) StartsWith(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) StartsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "startsWith", @@ -114848,17 +115693,17 @@ func (r jobRunQueryIDString) StartsWith(value string) jobRunParamUnique { } } -func (r jobRunQueryIDString) StartsWithIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.StartsWith(*value) } -func (r jobRunQueryIDString) EndsWith(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) EndsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "endsWith", @@ -114869,17 +115714,17 @@ func (r jobRunQueryIDString) EndsWith(value string) jobRunParamUnique { } } -func (r jobRunQueryIDString) EndsWithIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.EndsWith(*value) } -func (r jobRunQueryIDString) Mode(value QueryMode) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) Mode(value QueryMode) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "mode", @@ -114890,17 +115735,17 @@ func (r jobRunQueryIDString) Mode(value QueryMode) jobRunParamUnique { } } -func (r jobRunQueryIDString) ModeIfPresent(value *QueryMode) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.Mode(*value) } -func (r jobRunQueryIDString) Not(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) Not(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "not", @@ -114911,19 +115756,19 @@ func (r jobRunQueryIDString) Not(value string) jobRunParamUnique { } } -func (r jobRunQueryIDString) NotIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r jobRunQueryIDString) HasPrefix(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) HasPrefix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "starts_with", @@ -114935,19 +115780,19 @@ func (r jobRunQueryIDString) HasPrefix(value string) jobRunParamUnique { } // deprecated: Use StartsWithIfPresent instead. -func (r jobRunQueryIDString) HasPrefixIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r jobRunQueryIDString) HasSuffix(value string) jobRunParamUnique { - return jobRunParamUnique{ +func (r getGroupKeyRunQueryWorkerIDString) HasSuffix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { Name: "ends_with", @@ -114959,130 +115804,153 @@ func (r jobRunQueryIDString) HasSuffix(value string) jobRunParamUnique { } // deprecated: Use EndsWithIfPresent instead. -func (r jobRunQueryIDString) HasSuffixIfPresent(value *string) jobRunParamUnique { +func (r getGroupKeyRunQueryWorkerIDString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunParamUnique{} + return getGroupKeyRunDefaultParam{} } return r.HasSuffix(*value) } -func (r jobRunQueryIDString) Field() jobRunPrismaFields { - return jobRunFieldID +func (r getGroupKeyRunQueryWorkerIDString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldWorkerID } // base struct -type jobRunQueryCreatedAtDateTime struct{} - -// Set the required value of CreatedAt -func (r jobRunQueryCreatedAtDateTime) Set(value DateTime) jobRunSetParam { +type getGroupKeyRunQueryTickerTicker struct{} - return jobRunSetParam{ - data: builder.Field{ - Name: "createdAt", - Value: value, - }, - } +type getGroupKeyRunQueryTickerRelations struct{} -} +// GetGroupKeyRun -> Ticker +// +// @relation +// @optional +func (getGroupKeyRunQueryTickerRelations) Where( + params ...TickerWhereParam, +) getGroupKeyRunDefaultParam { + var fields []builder.Field -// Set the optional value of CreatedAt dynamically -func (r jobRunQueryCreatedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { - if value == nil { - return jobRunSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) -} - -func (r jobRunQueryCreatedAtDateTime) Equals(value DateTime) jobRunWithPrismaCreatedAtEqualsParam { - - return jobRunWithPrismaCreatedAtEqualsParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "ticker", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r jobRunQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaCreatedAtEqualsParam { - if value == nil { - return jobRunWithPrismaCreatedAtEqualsParam{} - } - return r.Equals(*value) +func (getGroupKeyRunQueryTickerRelations) Fetch() getGroupKeyRunToTickerFindUnique { + var v getGroupKeyRunToTickerFindUnique + + v.query.Operation = "query" + v.query.Method = "ticker" + v.query.Outputs = tickerOutput + + return v } -func (r jobRunQueryCreatedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Value: direction, - }, +func (r getGroupKeyRunQueryTickerRelations) Link( + params TickerWhereParam, +) getGroupKeyRunSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return getGroupKeyRunSetParam{} } -} -func (r jobRunQueryCreatedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { - return jobRunCursorParam{ + fields = append(fields, f) + + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "createdAt", - Value: cursor, + Name: "ticker", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, }, } } -func (r jobRunQueryCreatedAtDateTime) In(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerRelations) Unlink() getGroupKeyRunSetParam { + var v getGroupKeyRunSetParam + + v = getGroupKeyRunSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "ticker", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r jobRunQueryCreatedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.In(value) +func (r getGroupKeyRunQueryTickerTicker) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldTicker } -func (r jobRunQueryCreatedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +// base struct +type getGroupKeyRunQueryTickerIDString struct{} + +// Set the optional value of TickerID +func (r getGroupKeyRunQueryTickerIDString) Set(value string) getGroupKeyRunSetParam { + + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "notIn", - Value: value, - }, - }, + Name: "tickerId", + Value: value, }, } + } -func (r jobRunQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { +// Set the optional value of TickerID dynamically +func (r getGroupKeyRunQueryTickerIDString) SetIfPresent(value *String) getGroupKeyRunSetParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunSetParam{} } - return r.NotIn(value) + + return r.Set(*value) } -func (r jobRunQueryCreatedAtDateTime) Lt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +// Set the optional value of TickerID dynamically +func (r getGroupKeyRunQueryTickerIDString) SetOptional(value *String) getGroupKeyRunSetParam { + if value == nil { + + var v *string + return getGroupKeyRunSetParam{ + data: builder.Field{ + Name: "tickerId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r getGroupKeyRunQueryTickerIDString) Equals(value string) getGroupKeyRunWithPrismaTickerIDEqualsParam { + + return getGroupKeyRunWithPrismaTickerIDEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "lt", + Name: "equals", Value: value, }, }, @@ -115090,20 +115958,20 @@ func (r jobRunQueryCreatedAtDateTime) Lt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCreatedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaTickerIDEqualsParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunWithPrismaTickerIDEqualsParam{} } - return r.Lt(*value) + return r.Equals(*value) } -func (r jobRunQueryCreatedAtDateTime) Lte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "lte", + Name: "equals", Value: value, }, }, @@ -115111,41 +115979,46 @@ func (r jobRunQueryCreatedAtDateTime) Lte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCreatedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.Lte(*value) -} - -func (r jobRunQueryCreatedAtDateTime) Gt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) IsNull() getGroupKeyRunDefaultParam { + var str *string = nil + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "equals", + Value: str, }, }, }, } } -func (r jobRunQueryCreatedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} +func (r getGroupKeyRunQueryTickerIDString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "tickerId", + Value: direction, + }, } - return r.Gt(*value) } -func (r jobRunQueryCreatedAtDateTime) Gte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", + Value: cursor, + }, + } +} + +func (r getGroupKeyRunQueryTickerIDString) In(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "tickerId", Fields: []builder.Field{ { - Name: "gte", + Name: "in", Value: value, }, }, @@ -115153,20 +116026,20 @@ func (r jobRunQueryCreatedAtDateTime) Gte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCreatedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) InIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Gte(*value) + return r.In(value) } -func (r jobRunQueryCreatedAtDateTime) Not(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) NotIn(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "not", + Name: "notIn", Value: value, }, }, @@ -115174,19 +116047,17 @@ func (r jobRunQueryCreatedAtDateTime) Not(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCreatedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) + return r.NotIn(value) } -// deprecated: Use Lt instead. - -func (r jobRunQueryCreatedAtDateTime) Before(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) Lt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", Fields: []builder.Field{ { Name: "lt", @@ -115197,23 +116068,20 @@ func (r jobRunQueryCreatedAtDateTime) Before(value DateTime) jobRunDefaultParam } } -// deprecated: Use LtIfPresent instead. -func (r jobRunQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Before(*value) + return r.Lt(*value) } -// deprecated: Use Gt instead. - -func (r jobRunQueryCreatedAtDateTime) After(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) Lte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -115221,23 +116089,20 @@ func (r jobRunQueryCreatedAtDateTime) After(value DateTime) jobRunDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r jobRunQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.After(*value) + return r.Lte(*value) } -// deprecated: Use Lte instead. - -func (r jobRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) Gt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -115245,20 +116110,17 @@ func (r jobRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) jobRunDefault } } -// deprecated: Use LteIfPresent instead. -func (r jobRunQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.Gt(*value) } -// deprecated: Use Gte instead. - -func (r jobRunQueryCreatedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) Gte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tickerId", Fields: []builder.Field{ { Name: "gte", @@ -115269,50 +116131,41 @@ func (r jobRunQueryCreatedAtDateTime) AfterEquals(value DateTime) jobRunDefaultP } } -// deprecated: Use GteIfPresent instead. -func (r jobRunQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r jobRunQueryCreatedAtDateTime) Field() jobRunPrismaFields { - return jobRunFieldCreatedAt + return r.Gte(*value) } -// base struct -type jobRunQueryUpdatedAtDateTime struct{} - -// Set the required value of UpdatedAt -func (r jobRunQueryUpdatedAtDateTime) Set(value DateTime) jobRunSetParam { - - return jobRunSetParam{ +func (r getGroupKeyRunQueryTickerIDString) Contains(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", - Value: value, + Name: "tickerId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, }, } - } -// Set the optional value of UpdatedAt dynamically -func (r jobRunQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { +func (r getGroupKeyRunQueryTickerIDString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunDefaultParam{} } - - return r.Set(*value) + return r.Contains(*value) } -func (r jobRunQueryUpdatedAtDateTime) Equals(value DateTime) jobRunWithPrismaUpdatedAtEqualsParam { - - return jobRunWithPrismaUpdatedAtEqualsParam{ +func (r getGroupKeyRunQueryTickerIDString) StartsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "equals", + Name: "startsWith", Value: value, }, }, @@ -115320,38 +116173,20 @@ func (r jobRunQueryUpdatedAtDateTime) Equals(value DateTime) jobRunWithPrismaUpd } } -func (r jobRunQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaUpdatedAtEqualsParam { +func (r getGroupKeyRunQueryTickerIDString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunWithPrismaUpdatedAtEqualsParam{} - } - return r.Equals(*value) -} - -func (r jobRunQueryUpdatedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "updatedAt", - Value: direction, - }, - } -} - -func (r jobRunQueryUpdatedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { - return jobRunCursorParam{ - data: builder.Field{ - Name: "updatedAt", - Value: cursor, - }, + return getGroupKeyRunDefaultParam{} } + return r.StartsWith(*value) } -func (r jobRunQueryUpdatedAtDateTime) In(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) EndsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "in", + Name: "endsWith", Value: value, }, }, @@ -115359,20 +116194,20 @@ func (r jobRunQueryUpdatedAtDateTime) In(value []DateTime) jobRunDefaultParam { } } -func (r jobRunQueryUpdatedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.In(value) + return r.EndsWith(*value) } -func (r jobRunQueryUpdatedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) Mode(value QueryMode) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "notIn", + Name: "mode", Value: value, }, }, @@ -115380,20 +116215,20 @@ func (r jobRunQueryUpdatedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam } } -func (r jobRunQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.NotIn(value) + return r.Mode(*value) } -func (r jobRunQueryUpdatedAtDateTime) Lt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) Not(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "lt", + Name: "not", Value: value, }, }, @@ -115401,20 +116236,22 @@ func (r jobRunQueryUpdatedAtDateTime) Lt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTickerIDString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Lt(*value) + return r.Not(*value) } -func (r jobRunQueryUpdatedAtDateTime) Lte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r getGroupKeyRunQueryTickerIDString) HasPrefix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -115422,20 +116259,23 @@ func (r jobRunQueryUpdatedAtDateTime) Lte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r getGroupKeyRunQueryTickerIDString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Lte(*value) + return r.HasPrefix(*value) } -func (r jobRunQueryUpdatedAtDateTime) Gt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use EndsWith instead. + +func (r getGroupKeyRunQueryTickerIDString) HasSuffix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tickerId", Fields: []builder.Field{ { - Name: "gt", + Name: "ends_with", Value: value, }, }, @@ -115443,41 +116283,50 @@ func (r jobRunQueryUpdatedAtDateTime) Gt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r getGroupKeyRunQueryTickerIDString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Gt(*value) + return r.HasSuffix(*value) } -func (r jobRunQueryUpdatedAtDateTime) Gte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTickerIDString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldTickerID +} + +// base struct +type getGroupKeyRunQueryStatusStepRunStatus struct{} + +// Set the required value of Status +func (r getGroupKeyRunQueryStatusStepRunStatus) Set(value StepRunStatus) getGroupKeyRunSetParam { + + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "updatedAt", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, + Name: "status", + Value: value, }, } + } -func (r jobRunQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { +// Set the optional value of Status dynamically +func (r getGroupKeyRunQueryStatusStepRunStatus) SetIfPresent(value *StepRunStatus) getGroupKeyRunSetParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunSetParam{} } - return r.Gte(*value) + + return r.Set(*value) } -func (r jobRunQueryUpdatedAtDateTime) Not(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStatusStepRunStatus) Equals(value StepRunStatus) getGroupKeyRunWithPrismaStatusEqualsParam { + + return getGroupKeyRunWithPrismaStatusEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "status", Fields: []builder.Field{ { - Name: "not", + Name: "equals", Value: value, }, }, @@ -115485,46 +116334,38 @@ func (r jobRunQueryUpdatedAtDateTime) Not(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryStatusStepRunStatus) EqualsIfPresent(value *StepRunStatus) getGroupKeyRunWithPrismaStatusEqualsParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunWithPrismaStatusEqualsParam{} } - return r.Not(*value) + return r.Equals(*value) } -// deprecated: Use Lt instead. - -func (r jobRunQueryUpdatedAtDateTime) Before(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStatusStepRunStatus) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, + Name: "status", + Value: direction, }, } } -// deprecated: Use LtIfPresent instead. -func (r jobRunQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} +func (r getGroupKeyRunQueryStatusStepRunStatus) Cursor(cursor StepRunStatus) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ + data: builder.Field{ + Name: "status", + Value: cursor, + }, } - return r.Before(*value) } -// deprecated: Use Gt instead. - -func (r jobRunQueryUpdatedAtDateTime) After(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStatusStepRunStatus) In(value []StepRunStatus) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "status", Fields: []builder.Field{ { - Name: "gt", + Name: "in", Value: value, }, }, @@ -115532,23 +116373,20 @@ func (r jobRunQueryUpdatedAtDateTime) After(value DateTime) jobRunDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r jobRunQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryStatusStepRunStatus) InIfPresent(value []StepRunStatus) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.After(*value) + return r.In(value) } -// deprecated: Use Lte instead. - -func (r jobRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStatusStepRunStatus) NotIn(value []StepRunStatus) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "status", Fields: []builder.Field{ { - Name: "lte", + Name: "notIn", Value: value, }, }, @@ -115556,23 +116394,20 @@ func (r jobRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) jobRunDefault } } -// deprecated: Use LteIfPresent instead. -func (r jobRunQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryStatusStepRunStatus) NotInIfPresent(value []StepRunStatus) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.NotIn(value) } -// deprecated: Use Gte instead. - -func (r jobRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStatusStepRunStatus) Not(value StepRunStatus) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "status", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -115580,50 +116415,49 @@ func (r jobRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) jobRunDefaultP } } -// deprecated: Use GteIfPresent instead. -func (r jobRunQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryStatusStepRunStatus) NotIfPresent(value *StepRunStatus) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.AfterEquals(*value) + return r.Not(*value) } -func (r jobRunQueryUpdatedAtDateTime) Field() jobRunPrismaFields { - return jobRunFieldUpdatedAt +func (r getGroupKeyRunQueryStatusStepRunStatus) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldStatus } // base struct -type jobRunQueryDeletedAtDateTime struct{} +type getGroupKeyRunQueryInputJson struct{} -// Set the optional value of DeletedAt -func (r jobRunQueryDeletedAtDateTime) Set(value DateTime) jobRunSetParam { +// Set the optional value of Input +func (r getGroupKeyRunQueryInputJson) Set(value JSON) getGroupKeyRunSetParam { - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Value: value, }, } } -// Set the optional value of DeletedAt dynamically -func (r jobRunQueryDeletedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { +// Set the optional value of Input dynamically +func (r getGroupKeyRunQueryInputJson) SetIfPresent(value *JSON) getGroupKeyRunSetParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -// Set the optional value of DeletedAt dynamically -func (r jobRunQueryDeletedAtDateTime) SetOptional(value *DateTime) jobRunSetParam { +// Set the optional value of Input dynamically +func (r getGroupKeyRunQueryInputJson) SetOptional(value *JSON) getGroupKeyRunSetParam { if value == nil { - var v *DateTime - return jobRunSetParam{ + var v *JSON + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Value: v, }, } @@ -115632,11 +116466,11 @@ func (r jobRunQueryDeletedAtDateTime) SetOptional(value *DateTime) jobRunSetPara return r.Set(*value) } -func (r jobRunQueryDeletedAtDateTime) Equals(value DateTime) jobRunWithPrismaDeletedAtEqualsParam { +func (r getGroupKeyRunQueryInputJson) Equals(value JSON) getGroupKeyRunWithPrismaInputEqualsParam { - return jobRunWithPrismaDeletedAtEqualsParam{ + return getGroupKeyRunWithPrismaInputEqualsParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { Name: "equals", @@ -115647,17 +116481,17 @@ func (r jobRunQueryDeletedAtDateTime) Equals(value DateTime) jobRunWithPrismaDel } } -func (r jobRunQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaDeletedAtEqualsParam { +func (r getGroupKeyRunQueryInputJson) EqualsIfPresent(value *JSON) getGroupKeyRunWithPrismaInputEqualsParam { if value == nil { - return jobRunWithPrismaDeletedAtEqualsParam{} + return getGroupKeyRunWithPrismaInputEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) EqualsOptional(value *JSON) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { Name: "equals", @@ -115668,11 +116502,11 @@ func (r jobRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) jobRunDefa } } -func (r jobRunQueryDeletedAtDateTime) IsNull() jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) IsNull() getGroupKeyRunDefaultParam { var str *string = nil - return jobRunDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { Name: "equals", @@ -115683,31 +116517,31 @@ func (r jobRunQueryDeletedAtDateTime) IsNull() jobRunDefaultParam { } } -func (r jobRunQueryDeletedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Value: direction, }, } } -func (r jobRunQueryDeletedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryInputJson) Cursor(cursor JSON) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Value: cursor, }, } } -func (r jobRunQueryDeletedAtDateTime) In(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) Path(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "in", + Name: "path", Value: value, }, }, @@ -115715,20 +116549,20 @@ func (r jobRunQueryDeletedAtDateTime) In(value []DateTime) jobRunDefaultParam { } } -func (r jobRunQueryDeletedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) PathIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.In(value) + return r.Path(value) } -func (r jobRunQueryDeletedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) StringContains(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "notIn", + Name: "string_contains", Value: value, }, }, @@ -115736,20 +116570,20 @@ func (r jobRunQueryDeletedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam } } -func (r jobRunQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) StringContainsIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.NotIn(value) + return r.StringContains(*value) } -func (r jobRunQueryDeletedAtDateTime) Lt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) StringStartsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "lt", + Name: "string_starts_with", Value: value, }, }, @@ -115757,20 +116591,20 @@ func (r jobRunQueryDeletedAtDateTime) Lt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryDeletedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) StringStartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Lt(*value) + return r.StringStartsWith(*value) } -func (r jobRunQueryDeletedAtDateTime) Lte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) StringEndsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "lte", + Name: "string_ends_with", Value: value, }, }, @@ -115778,20 +116612,20 @@ func (r jobRunQueryDeletedAtDateTime) Lte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryDeletedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) StringEndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Lte(*value) + return r.StringEndsWith(*value) } -func (r jobRunQueryDeletedAtDateTime) Gt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) ArrayContains(value JSON) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "gt", + Name: "array_contains", Value: value, }, }, @@ -115799,20 +116633,20 @@ func (r jobRunQueryDeletedAtDateTime) Gt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryDeletedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) ArrayContainsIfPresent(value *JSON) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Gt(*value) + return r.ArrayContains(*value) } -func (r jobRunQueryDeletedAtDateTime) Gte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) ArrayStartsWith(value JSON) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "gte", + Name: "array_starts_with", Value: value, }, }, @@ -115820,20 +116654,20 @@ func (r jobRunQueryDeletedAtDateTime) Gte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryDeletedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) ArrayStartsWithIfPresent(value *JSON) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Gte(*value) + return r.ArrayStartsWith(*value) } -func (r jobRunQueryDeletedAtDateTime) Not(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) ArrayEndsWith(value JSON) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "not", + Name: "array_ends_with", Value: value, }, }, @@ -115841,19 +116675,17 @@ func (r jobRunQueryDeletedAtDateTime) Not(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryDeletedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) ArrayEndsWithIfPresent(value *JSON) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) + return r.ArrayEndsWith(*value) } -// deprecated: Use Lt instead. - -func (r jobRunQueryDeletedAtDateTime) Before(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) Lt(value JSON) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { Name: "lt", @@ -115864,23 +116696,20 @@ func (r jobRunQueryDeletedAtDateTime) Before(value DateTime) jobRunDefaultParam } } -// deprecated: Use LtIfPresent instead. -func (r jobRunQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) LtIfPresent(value *JSON) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Before(*value) + return r.Lt(*value) } -// deprecated: Use Gt instead. - -func (r jobRunQueryDeletedAtDateTime) After(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) Lte(value JSON) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -115888,23 +116717,20 @@ func (r jobRunQueryDeletedAtDateTime) After(value DateTime) jobRunDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r jobRunQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) LteIfPresent(value *JSON) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.After(*value) + return r.Lte(*value) } -// deprecated: Use Lte instead. - -func (r jobRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) Gt(value JSON) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -115912,20 +116738,17 @@ func (r jobRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) jobRunDefault } } -// deprecated: Use LteIfPresent instead. -func (r jobRunQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) GtIfPresent(value *JSON) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.Gt(*value) } -// deprecated: Use Gte instead. - -func (r jobRunQueryDeletedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) Gte(value JSON) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "input", Fields: []builder.Field{ { Name: "gte", @@ -115936,135 +116759,104 @@ func (r jobRunQueryDeletedAtDateTime) AfterEquals(value DateTime) jobRunDefaultP } } -// deprecated: Use GteIfPresent instead. -func (r jobRunQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryInputJson) GteIfPresent(value *JSON) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r jobRunQueryDeletedAtDateTime) Field() jobRunPrismaFields { - return jobRunFieldDeletedAt + return r.Gte(*value) } -// base struct -type jobRunQueryTenantTenant struct{} - -type jobRunQueryTenantRelations struct{} - -// JobRun -> Tenant -// -// @relation -// @required -func (jobRunQueryTenantRelations) Where( - params ...TenantWhereParam, -) jobRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryInputJson) Not(value JSONNullValueFilter) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "input", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "not", + Value: value, }, }, }, } } -func (jobRunQueryTenantRelations) Fetch() jobRunToTenantFindUnique { - var v jobRunToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - - return v +func (r getGroupKeyRunQueryInputJson) NotIfPresent(value *JSONNullValueFilter) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} + } + return r.Not(*value) } -func (r jobRunQueryTenantRelations) Link( - params TenantWhereParam, -) jobRunWithPrismaTenantSetParam { - var fields []builder.Field +func (r getGroupKeyRunQueryInputJson) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldInput +} - f := params.field() - if f.Fields == nil && f.Value == nil { - return jobRunWithPrismaTenantSetParam{} - } +// base struct +type getGroupKeyRunQueryOutputString struct{} - fields = append(fields, f) +// Set the optional value of Output +func (r getGroupKeyRunQueryOutputString) Set(value string) getGroupKeyRunSetParam { - return jobRunWithPrismaTenantSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, + Name: "output", + Value: value, }, } -} -func (r jobRunQueryTenantRelations) Unlink() jobRunWithPrismaTenantSetParam { - var v jobRunWithPrismaTenantSetParam +} - v = jobRunWithPrismaTenantSetParam{ - data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, +// Set the optional value of Output dynamically +func (r getGroupKeyRunQueryOutputString) SetIfPresent(value *String) getGroupKeyRunSetParam { + if value == nil { + return getGroupKeyRunSetParam{} } - return v + return r.Set(*value) } -func (r jobRunQueryTenantTenant) Field() jobRunPrismaFields { - return jobRunFieldTenant -} +// Set the optional value of Output dynamically +func (r getGroupKeyRunQueryOutputString) SetOptional(value *String) getGroupKeyRunSetParam { + if value == nil { -// base struct -type jobRunQueryTenantIDString struct{} + var v *string + return getGroupKeyRunSetParam{ + data: builder.Field{ + Name: "output", + Value: v, + }, + } + } -// Set the required value of TenantID -func (r jobRunQueryTenantIDString) Set(value string) jobRunSetParam { + return r.Set(*value) +} - return jobRunSetParam{ +func (r getGroupKeyRunQueryOutputString) Equals(value string) getGroupKeyRunWithPrismaOutputEqualsParam { + + return getGroupKeyRunWithPrismaOutputEqualsParam{ data: builder.Field{ - Name: "tenantId", - Value: value, + Name: "output", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } - } -// Set the optional value of TenantID dynamically -func (r jobRunQueryTenantIDString) SetIfPresent(value *String) jobRunSetParam { +func (r getGroupKeyRunQueryOutputString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaOutputEqualsParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunWithPrismaOutputEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r jobRunQueryTenantIDString) Equals(value string) jobRunWithPrismaTenantIDEqualsParam { - - return jobRunWithPrismaTenantIDEqualsParam{ +func (r getGroupKeyRunQueryOutputString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "equals", @@ -116075,35 +116867,43 @@ func (r jobRunQueryTenantIDString) Equals(value string) jobRunWithPrismaTenantID } } -func (r jobRunQueryTenantIDString) EqualsIfPresent(value *string) jobRunWithPrismaTenantIDEqualsParam { - if value == nil { - return jobRunWithPrismaTenantIDEqualsParam{} +func (r getGroupKeyRunQueryOutputString) IsNull() getGroupKeyRunDefaultParam { + var str *string = nil + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "output", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r jobRunQueryTenantIDString) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Value: direction, }, } } -func (r jobRunQueryTenantIDString) Cursor(cursor string) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryOutputString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Value: cursor, }, } } -func (r jobRunQueryTenantIDString) In(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) In(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "in", @@ -116114,17 +116914,17 @@ func (r jobRunQueryTenantIDString) In(value []string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) InIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) InIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryTenantIDString) NotIn(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) NotIn(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "notIn", @@ -116135,17 +116935,17 @@ func (r jobRunQueryTenantIDString) NotIn(value []string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) NotInIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryTenantIDString) Lt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) Lt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "lt", @@ -116156,17 +116956,17 @@ func (r jobRunQueryTenantIDString) Lt(value string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) LtIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryTenantIDString) Lte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) Lte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "lte", @@ -116177,17 +116977,17 @@ func (r jobRunQueryTenantIDString) Lte(value string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) LteIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryTenantIDString) Gt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) Gt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "gt", @@ -116198,17 +116998,17 @@ func (r jobRunQueryTenantIDString) Gt(value string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) GtIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryTenantIDString) Gte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) Gte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "gte", @@ -116219,17 +117019,17 @@ func (r jobRunQueryTenantIDString) Gte(value string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) GteIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryTenantIDString) Contains(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) Contains(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "contains", @@ -116240,17 +117040,17 @@ func (r jobRunQueryTenantIDString) Contains(value string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) ContainsIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Contains(*value) } -func (r jobRunQueryTenantIDString) StartsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) StartsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "startsWith", @@ -116261,17 +117061,17 @@ func (r jobRunQueryTenantIDString) StartsWith(value string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) StartsWithIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.StartsWith(*value) } -func (r jobRunQueryTenantIDString) EndsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) EndsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "endsWith", @@ -116282,17 +117082,17 @@ func (r jobRunQueryTenantIDString) EndsWith(value string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) EndsWithIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.EndsWith(*value) } -func (r jobRunQueryTenantIDString) Mode(value QueryMode) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) Mode(value QueryMode) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "mode", @@ -116303,17 +117103,17 @@ func (r jobRunQueryTenantIDString) Mode(value QueryMode) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Mode(*value) } -func (r jobRunQueryTenantIDString) Not(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) Not(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "not", @@ -116324,19 +117124,19 @@ func (r jobRunQueryTenantIDString) Not(value string) jobRunDefaultParam { } } -func (r jobRunQueryTenantIDString) NotIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r jobRunQueryTenantIDString) HasPrefix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) HasPrefix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "starts_with", @@ -116348,19 +117148,19 @@ func (r jobRunQueryTenantIDString) HasPrefix(value string) jobRunDefaultParam { } // deprecated: Use StartsWithIfPresent instead. -func (r jobRunQueryTenantIDString) HasPrefixIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r jobRunQueryTenantIDString) HasSuffix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryOutputString) HasSuffix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "output", Fields: []builder.Field{ { Name: "ends_with", @@ -116372,134 +117172,83 @@ func (r jobRunQueryTenantIDString) HasSuffix(value string) jobRunDefaultParam { } // deprecated: Use EndsWithIfPresent instead. -func (r jobRunQueryTenantIDString) HasSuffixIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryOutputString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.HasSuffix(*value) } -func (r jobRunQueryTenantIDString) Field() jobRunPrismaFields { - return jobRunFieldTenantID +func (r getGroupKeyRunQueryOutputString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldOutput } // base struct -type jobRunQueryWorkflowRunWorkflowRun struct{} - -type jobRunQueryWorkflowRunRelations struct{} - -// JobRun -> WorkflowRun -// -// @relation -// @required -func (jobRunQueryWorkflowRunRelations) Where( - params ...WorkflowRunWhereParam, -) jobRunDefaultParam { - var fields []builder.Field +type getGroupKeyRunQueryRequeueAfterDateTime struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the optional value of RequeueAfter +func (r getGroupKeyRunQueryRequeueAfterDateTime) Set(value DateTime) getGroupKeyRunSetParam { - return jobRunDefaultParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "workflowRun", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "requeueAfter", + Value: value, }, } -} - -func (jobRunQueryWorkflowRunRelations) Fetch() jobRunToWorkflowRunFindUnique { - var v jobRunToWorkflowRunFindUnique - - v.query.Operation = "query" - v.query.Method = "workflowRun" - v.query.Outputs = workflowRunOutput - return v } -func (r jobRunQueryWorkflowRunRelations) Link( - params WorkflowRunWhereParam, -) jobRunWithPrismaWorkflowRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return jobRunWithPrismaWorkflowRunSetParam{} +// Set the optional value of RequeueAfter dynamically +func (r getGroupKeyRunQueryRequeueAfterDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { + if value == nil { + return getGroupKeyRunSetParam{} } - fields = append(fields, f) + return r.Set(*value) +} - return jobRunWithPrismaWorkflowRunSetParam{ - data: builder.Field{ - Name: "workflowRun", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, +// Set the optional value of RequeueAfter dynamically +func (r getGroupKeyRunQueryRequeueAfterDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { + if value == nil { + + var v *DateTime + return getGroupKeyRunSetParam{ + data: builder.Field{ + Name: "requeueAfter", + Value: v, }, - }, + } } + + return r.Set(*value) } -func (r jobRunQueryWorkflowRunRelations) Unlink() jobRunWithPrismaWorkflowRunSetParam { - var v jobRunWithPrismaWorkflowRunSetParam +func (r getGroupKeyRunQueryRequeueAfterDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaRequeueAfterEqualsParam { - v = jobRunWithPrismaWorkflowRunSetParam{ + return getGroupKeyRunWithPrismaRequeueAfterEqualsParam{ data: builder.Field{ - Name: "workflowRun", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "equals", + Value: value, }, }, }, } - - return v -} - -func (r jobRunQueryWorkflowRunWorkflowRun) Field() jobRunPrismaFields { - return jobRunFieldWorkflowRun -} - -// base struct -type jobRunQueryWorkflowRunIDString struct{} - -// Set the required value of WorkflowRunID -func (r jobRunQueryWorkflowRunIDString) Set(value string) jobRunSetParam { - - return jobRunSetParam{ - data: builder.Field{ - Name: "workflowRunId", - Value: value, - }, - } - } -// Set the optional value of WorkflowRunID dynamically -func (r jobRunQueryWorkflowRunIDString) SetIfPresent(value *String) jobRunSetParam { +func (r getGroupKeyRunQueryRequeueAfterDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaRequeueAfterEqualsParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunWithPrismaRequeueAfterEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r jobRunQueryWorkflowRunIDString) Equals(value string) jobRunWithPrismaWorkflowRunIDEqualsParam { - - return jobRunWithPrismaWorkflowRunIDEqualsParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "equals", @@ -116510,35 +117259,43 @@ func (r jobRunQueryWorkflowRunIDString) Equals(value string) jobRunWithPrismaWor } } -func (r jobRunQueryWorkflowRunIDString) EqualsIfPresent(value *string) jobRunWithPrismaWorkflowRunIDEqualsParam { - if value == nil { - return jobRunWithPrismaWorkflowRunIDEqualsParam{} +func (r getGroupKeyRunQueryRequeueAfterDateTime) IsNull() getGroupKeyRunDefaultParam { + var str *string = nil + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "requeueAfter", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r jobRunQueryWorkflowRunIDString) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Value: direction, }, } } -func (r jobRunQueryWorkflowRunIDString) Cursor(cursor string) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Value: cursor, }, } } -func (r jobRunQueryWorkflowRunIDString) In(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "in", @@ -116549,17 +117306,17 @@ func (r jobRunQueryWorkflowRunIDString) In(value []string) jobRunDefaultParam { } } -func (r jobRunQueryWorkflowRunIDString) InIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryRequeueAfterDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryWorkflowRunIDString) NotIn(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "notIn", @@ -116570,17 +117327,17 @@ func (r jobRunQueryWorkflowRunIDString) NotIn(value []string) jobRunDefaultParam } } -func (r jobRunQueryWorkflowRunIDString) NotInIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryRequeueAfterDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryWorkflowRunIDString) Lt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "lt", @@ -116591,17 +117348,17 @@ func (r jobRunQueryWorkflowRunIDString) Lt(value string) jobRunDefaultParam { } } -func (r jobRunQueryWorkflowRunIDString) LtIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryRequeueAfterDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryWorkflowRunIDString) Lte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "lte", @@ -116612,17 +117369,17 @@ func (r jobRunQueryWorkflowRunIDString) Lte(value string) jobRunDefaultParam { } } -func (r jobRunQueryWorkflowRunIDString) LteIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryRequeueAfterDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryWorkflowRunIDString) Gt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "gt", @@ -116633,17 +117390,17 @@ func (r jobRunQueryWorkflowRunIDString) Gt(value string) jobRunDefaultParam { } } -func (r jobRunQueryWorkflowRunIDString) GtIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryRequeueAfterDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryWorkflowRunIDString) Gte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "gte", @@ -116654,20 +117411,20 @@ func (r jobRunQueryWorkflowRunIDString) Gte(value string) jobRunDefaultParam { } } -func (r jobRunQueryWorkflowRunIDString) GteIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryRequeueAfterDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryWorkflowRunIDString) Contains(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -116675,41 +117432,22 @@ func (r jobRunQueryWorkflowRunIDString) Contains(value string) jobRunDefaultPara } } -func (r jobRunQueryWorkflowRunIDString) ContainsIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryRequeueAfterDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} - } - return r.Contains(*value) -} - -func (r jobRunQueryWorkflowRunIDString) StartsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "workflowRunId", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return getGroupKeyRunDefaultParam{} } + return r.Not(*value) } -func (r jobRunQueryWorkflowRunIDString) StartsWithIfPresent(value *string) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r jobRunQueryWorkflowRunIDString) EndsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -116717,41 +117455,23 @@ func (r jobRunQueryWorkflowRunIDString) EndsWith(value string) jobRunDefaultPara } } -func (r jobRunQueryWorkflowRunIDString) EndsWithIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r getGroupKeyRunQueryRequeueAfterDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r jobRunQueryWorkflowRunIDString) Mode(value QueryMode) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "workflowRunId", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return getGroupKeyRunDefaultParam{} } + return r.Before(*value) } -func (r jobRunQueryWorkflowRunIDString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Gt instead. -func (r jobRunQueryWorkflowRunIDString) Not(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -116759,22 +117479,23 @@ func (r jobRunQueryWorkflowRunIDString) Not(value string) jobRunDefaultParam { } } -func (r jobRunQueryWorkflowRunIDString) NotIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r getGroupKeyRunQueryRequeueAfterDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r jobRunQueryWorkflowRunIDString) HasPrefix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -116782,23 +117503,23 @@ func (r jobRunQueryWorkflowRunIDString) HasPrefix(value string) jobRunDefaultPar } } -// deprecated: Use StartsWithIfPresent instead. -func (r jobRunQueryWorkflowRunIDString) HasPrefixIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r getGroupKeyRunQueryRequeueAfterDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r jobRunQueryWorkflowRunIDString) HasSuffix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryRequeueAfterDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "workflowRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -116806,135 +117527,84 @@ func (r jobRunQueryWorkflowRunIDString) HasSuffix(value string) jobRunDefaultPar } } -// deprecated: Use EndsWithIfPresent instead. -func (r jobRunQueryWorkflowRunIDString) HasSuffixIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r getGroupKeyRunQueryRequeueAfterDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.HasSuffix(*value) + return r.AfterEquals(*value) } -func (r jobRunQueryWorkflowRunIDString) Field() jobRunPrismaFields { - return jobRunFieldWorkflowRunID +func (r getGroupKeyRunQueryRequeueAfterDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldRequeueAfter } // base struct -type jobRunQueryJobJob struct{} - -type jobRunQueryJobRelations struct{} - -// JobRun -> Job -// -// @relation -// @required -func (jobRunQueryJobRelations) Where( - params ...JobWhereParam, -) jobRunDefaultParam { - var fields []builder.Field +type getGroupKeyRunQueryScheduleTimeoutAtDateTime struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the optional value of ScheduleTimeoutAt +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { - return jobRunDefaultParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "job", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "scheduleTimeoutAt", + Value: value, }, } -} - -func (jobRunQueryJobRelations) Fetch() jobRunToJobFindUnique { - var v jobRunToJobFindUnique - - v.query.Operation = "query" - v.query.Method = "job" - v.query.Outputs = jobOutput - return v } -func (r jobRunQueryJobRelations) Link( - params JobWhereParam, -) jobRunWithPrismaJobSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return jobRunWithPrismaJobSetParam{} +// Set the optional value of ScheduleTimeoutAt dynamically +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { + if value == nil { + return getGroupKeyRunSetParam{} } - fields = append(fields, f) + return r.Set(*value) +} - return jobRunWithPrismaJobSetParam{ - data: builder.Field{ - Name: "job", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, +// Set the optional value of ScheduleTimeoutAt dynamically +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { + if value == nil { + + var v *DateTime + return getGroupKeyRunSetParam{ + data: builder.Field{ + Name: "scheduleTimeoutAt", + Value: v, }, - }, + } } + + return r.Set(*value) } -func (r jobRunQueryJobRelations) Unlink() jobRunWithPrismaJobSetParam { - var v jobRunWithPrismaJobSetParam +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam { - v = jobRunWithPrismaJobSetParam{ + return getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam{ data: builder.Field{ - Name: "job", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "equals", + Value: value, }, }, }, } - - return v -} - -func (r jobRunQueryJobJob) Field() jobRunPrismaFields { - return jobRunFieldJob -} - -// base struct -type jobRunQueryJobIDString struct{} - -// Set the required value of JobID -func (r jobRunQueryJobIDString) Set(value string) jobRunSetParam { - - return jobRunSetParam{ - data: builder.Field{ - Name: "jobId", - Value: value, - }, - } - } -// Set the optional value of JobID dynamically -func (r jobRunQueryJobIDString) SetIfPresent(value *String) jobRunSetParam { +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r jobRunQueryJobIDString) Equals(value string) jobRunWithPrismaJobIDEqualsParam { - - return jobRunWithPrismaJobIDEqualsParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { Name: "equals", @@ -116945,35 +117615,43 @@ func (r jobRunQueryJobIDString) Equals(value string) jobRunWithPrismaJobIDEquals } } -func (r jobRunQueryJobIDString) EqualsIfPresent(value *string) jobRunWithPrismaJobIDEqualsParam { - if value == nil { - return jobRunWithPrismaJobIDEqualsParam{} +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) IsNull() getGroupKeyRunDefaultParam { + var str *string = nil + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "scheduleTimeoutAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r jobRunQueryJobIDString) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Value: direction, }, } } -func (r jobRunQueryJobIDString) Cursor(cursor string) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Value: cursor, }, } } -func (r jobRunQueryJobIDString) In(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { Name: "in", @@ -116984,17 +117662,17 @@ func (r jobRunQueryJobIDString) In(value []string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) InIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryJobIDString) NotIn(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { Name: "notIn", @@ -117005,17 +117683,17 @@ func (r jobRunQueryJobIDString) NotIn(value []string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) NotInIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryJobIDString) Lt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { Name: "lt", @@ -117026,17 +117704,17 @@ func (r jobRunQueryJobIDString) Lt(value string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) LtIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryJobIDString) Lte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { Name: "lte", @@ -117047,17 +117725,17 @@ func (r jobRunQueryJobIDString) Lte(value string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) LteIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryJobIDString) Gt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { Name: "gt", @@ -117068,17 +117746,17 @@ func (r jobRunQueryJobIDString) Gt(value string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) GtIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryJobIDString) Gte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { Name: "gte", @@ -117089,20 +117767,20 @@ func (r jobRunQueryJobIDString) Gte(value string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) GteIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryJobIDString) Contains(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -117110,20 +117788,22 @@ func (r jobRunQueryJobIDString) Contains(value string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) ContainsIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r jobRunQueryJobIDString) StartsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use Lt instead. + +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -117131,20 +117811,23 @@ func (r jobRunQueryJobIDString) StartsWith(value string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) StartsWithIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r jobRunQueryJobIDString) EndsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use Gt instead. + +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -117152,20 +117835,23 @@ func (r jobRunQueryJobIDString) EndsWith(value string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) EndsWithIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r jobRunQueryJobIDString) Mode(value QueryMode) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use Lte instead. + +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -117173,20 +117859,23 @@ func (r jobRunQueryJobIDString) Mode(value QueryMode) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r jobRunQueryJobIDString) Not(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use Gte instead. + +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "jobId", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -117194,185 +117883,50 @@ func (r jobRunQueryJobIDString) Not(value string) jobRunDefaultParam { } } -func (r jobRunQueryJobIDString) NotIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r getGroupKeyRunQueryScheduleTimeoutAtDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldScheduleTimeoutAt +} -func (r jobRunQueryJobIDString) HasPrefix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +// base struct +type getGroupKeyRunQueryErrorString struct{} + +// Set the optional value of Error +func (r getGroupKeyRunQueryErrorString) Set(value string) getGroupKeyRunSetParam { + + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "jobId", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use StartsWithIfPresent instead. -func (r jobRunQueryJobIDString) HasPrefixIfPresent(value *string) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.HasPrefix(*value) -} - -// deprecated: Use EndsWith instead. - -func (r jobRunQueryJobIDString) HasSuffix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "jobId", - Fields: []builder.Field{ - { - Name: "ends_with", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use EndsWithIfPresent instead. -func (r jobRunQueryJobIDString) HasSuffixIfPresent(value *string) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.HasSuffix(*value) -} - -func (r jobRunQueryJobIDString) Field() jobRunPrismaFields { - return jobRunFieldJobID -} - -// base struct -type jobRunQueryTickerTicker struct{} - -type jobRunQueryTickerRelations struct{} - -// JobRun -> Ticker -// -// @relation -// @optional -func (jobRunQueryTickerRelations) Where( - params ...TickerWhereParam, -) jobRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return jobRunDefaultParam{ - data: builder.Field{ - Name: "ticker", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, - }, - } -} - -func (jobRunQueryTickerRelations) Fetch() jobRunToTickerFindUnique { - var v jobRunToTickerFindUnique - - v.query.Operation = "query" - v.query.Method = "ticker" - v.query.Outputs = tickerOutput - - return v -} - -func (r jobRunQueryTickerRelations) Link( - params TickerWhereParam, -) jobRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return jobRunSetParam{} - } - - fields = append(fields, f) - - return jobRunSetParam{ - data: builder.Field{ - Name: "ticker", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, - }, - } -} - -func (r jobRunQueryTickerRelations) Unlink() jobRunSetParam { - var v jobRunSetParam - - v = jobRunSetParam{ - data: builder.Field{ - Name: "ticker", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, - } - - return v -} - -func (r jobRunQueryTickerTicker) Field() jobRunPrismaFields { - return jobRunFieldTicker -} - -// base struct -type jobRunQueryTickerIDString struct{} - -// Set the optional value of TickerID -func (r jobRunQueryTickerIDString) Set(value string) jobRunSetParam { - - return jobRunSetParam{ - data: builder.Field{ - Name: "tickerId", + Name: "error", Value: value, }, } } -// Set the optional value of TickerID dynamically -func (r jobRunQueryTickerIDString) SetIfPresent(value *String) jobRunSetParam { +// Set the optional value of Error dynamically +func (r getGroupKeyRunQueryErrorString) SetIfPresent(value *String) getGroupKeyRunSetParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -// Set the optional value of TickerID dynamically -func (r jobRunQueryTickerIDString) SetOptional(value *String) jobRunSetParam { +// Set the optional value of Error dynamically +func (r getGroupKeyRunQueryErrorString) SetOptional(value *String) getGroupKeyRunSetParam { if value == nil { var v *string - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Value: v, }, } @@ -117381,11 +117935,11 @@ func (r jobRunQueryTickerIDString) SetOptional(value *String) jobRunSetParam { return r.Set(*value) } -func (r jobRunQueryTickerIDString) Equals(value string) jobRunWithPrismaTickerIDEqualsParam { +func (r getGroupKeyRunQueryErrorString) Equals(value string) getGroupKeyRunWithPrismaErrorEqualsParam { - return jobRunWithPrismaTickerIDEqualsParam{ + return getGroupKeyRunWithPrismaErrorEqualsParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -117396,17 +117950,17 @@ func (r jobRunQueryTickerIDString) Equals(value string) jobRunWithPrismaTickerID } } -func (r jobRunQueryTickerIDString) EqualsIfPresent(value *string) jobRunWithPrismaTickerIDEqualsParam { +func (r getGroupKeyRunQueryErrorString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaErrorEqualsParam { if value == nil { - return jobRunWithPrismaTickerIDEqualsParam{} + return getGroupKeyRunWithPrismaErrorEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryTickerIDString) EqualsOptional(value *String) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -117417,11 +117971,11 @@ func (r jobRunQueryTickerIDString) EqualsOptional(value *String) jobRunDefaultPa } } -func (r jobRunQueryTickerIDString) IsNull() jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) IsNull() getGroupKeyRunDefaultParam { var str *string = nil - return jobRunDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -117432,28 +117986,28 @@ func (r jobRunQueryTickerIDString) IsNull() jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Value: direction, }, } } -func (r jobRunQueryTickerIDString) Cursor(cursor string) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryErrorString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Value: cursor, }, } } -func (r jobRunQueryTickerIDString) In(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) In(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "in", @@ -117464,17 +118018,17 @@ func (r jobRunQueryTickerIDString) In(value []string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) InIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) InIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryTickerIDString) NotIn(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) NotIn(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "notIn", @@ -117485,17 +118039,17 @@ func (r jobRunQueryTickerIDString) NotIn(value []string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) NotInIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryTickerIDString) Lt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) Lt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "lt", @@ -117506,17 +118060,17 @@ func (r jobRunQueryTickerIDString) Lt(value string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) LtIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryTickerIDString) Lte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) Lte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "lte", @@ -117527,17 +118081,17 @@ func (r jobRunQueryTickerIDString) Lte(value string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) LteIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryTickerIDString) Gt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) Gt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "gt", @@ -117548,17 +118102,17 @@ func (r jobRunQueryTickerIDString) Gt(value string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) GtIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryTickerIDString) Gte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) Gte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "gte", @@ -117569,17 +118123,17 @@ func (r jobRunQueryTickerIDString) Gte(value string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) GteIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryTickerIDString) Contains(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) Contains(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "contains", @@ -117590,17 +118144,17 @@ func (r jobRunQueryTickerIDString) Contains(value string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) ContainsIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Contains(*value) } -func (r jobRunQueryTickerIDString) StartsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) StartsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "startsWith", @@ -117611,17 +118165,17 @@ func (r jobRunQueryTickerIDString) StartsWith(value string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) StartsWithIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.StartsWith(*value) } -func (r jobRunQueryTickerIDString) EndsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) EndsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "endsWith", @@ -117632,17 +118186,17 @@ func (r jobRunQueryTickerIDString) EndsWith(value string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) EndsWithIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.EndsWith(*value) } -func (r jobRunQueryTickerIDString) Mode(value QueryMode) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) Mode(value QueryMode) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "mode", @@ -117653,17 +118207,17 @@ func (r jobRunQueryTickerIDString) Mode(value QueryMode) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Mode(*value) } -func (r jobRunQueryTickerIDString) Not(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) Not(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "not", @@ -117674,19 +118228,19 @@ func (r jobRunQueryTickerIDString) Not(value string) jobRunDefaultParam { } } -func (r jobRunQueryTickerIDString) NotIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r jobRunQueryTickerIDString) HasPrefix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) HasPrefix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "starts_with", @@ -117698,19 +118252,19 @@ func (r jobRunQueryTickerIDString) HasPrefix(value string) jobRunDefaultParam { } // deprecated: Use StartsWithIfPresent instead. -func (r jobRunQueryTickerIDString) HasPrefixIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r jobRunQueryTickerIDString) HasSuffix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryErrorString) HasSuffix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "error", Fields: []builder.Field{ { Name: "ends_with", @@ -117722,221 +118276,196 @@ func (r jobRunQueryTickerIDString) HasSuffix(value string) jobRunDefaultParam { } // deprecated: Use EndsWithIfPresent instead. -func (r jobRunQueryTickerIDString) HasSuffixIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryErrorString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.HasSuffix(*value) } -func (r jobRunQueryTickerIDString) Field() jobRunPrismaFields { - return jobRunFieldTickerID +func (r getGroupKeyRunQueryErrorString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldError } // base struct -type jobRunQueryStepRunsStepRun struct{} +type getGroupKeyRunQueryStartedAtDateTime struct{} -type jobRunQueryStepRunsRelations struct{} +// Set the optional value of StartedAt +func (r getGroupKeyRunQueryStartedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { -// JobRun -> StepRuns -// -// @relation -// @required -func (jobRunQueryStepRunsRelations) Some( - params ...StepRunWhereParam, -) jobRunDefaultParam { - var fields []builder.Field + return getGroupKeyRunSetParam{ + data: builder.Field{ + Name: "startedAt", + Value: value, + }, + } - for _, q := range params { - fields = append(fields, q.field()) +} + +// Set the optional value of StartedAt dynamically +func (r getGroupKeyRunQueryStartedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { + if value == nil { + return getGroupKeyRunSetParam{} } - return jobRunDefaultParam{ + return r.Set(*value) +} + +// Set the optional value of StartedAt dynamically +func (r getGroupKeyRunQueryStartedAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { + if value == nil { + + var v *DateTime + return getGroupKeyRunSetParam{ + data: builder.Field{ + Name: "startedAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r getGroupKeyRunQueryStartedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaStartedAtEqualsParam { + + return getGroupKeyRunWithPrismaStartedAtEqualsParam{ data: builder.Field{ - Name: "stepRuns", + Name: "startedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -// JobRun -> StepRuns -// -// @relation -// @required -func (jobRunQueryStepRunsRelations) Every( - params ...StepRunWhereParam, -) jobRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r getGroupKeyRunQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaStartedAtEqualsParam { + if value == nil { + return getGroupKeyRunWithPrismaStartedAtEqualsParam{} } + return r.Equals(*value) +} - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "startedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -// JobRun -> StepRuns -// -// @relation -// @required -func (jobRunQueryStepRunsRelations) None( - params ...StepRunWhereParam, -) jobRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) IsNull() getGroupKeyRunDefaultParam { + var str *string = nil + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "startedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "equals", + Value: str, }, }, }, } } -func (jobRunQueryStepRunsRelations) Fetch( - - params ...StepRunWhereParam, - -) jobRunToStepRunsFindMany { - var v jobRunToStepRunsFindMany - - v.query.Operation = "query" - v.query.Method = "stepRuns" - v.query.Outputs = stepRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r getGroupKeyRunQueryStartedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "startedAt", + Value: direction, + }, } - - return v } -func (r jobRunQueryStepRunsRelations) Link( - params ...StepRunWhereParam, -) jobRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r getGroupKeyRunQueryStartedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ + data: builder.Field{ + Name: "startedAt", + Value: cursor, + }, } +} - return jobRunSetParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "startedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "in", + Value: value, }, }, }, } } -func (r jobRunQueryStepRunsRelations) Unlink( - params ...StepRunWhereParam, -) jobRunSetParam { - var v jobRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r getGroupKeyRunQueryStartedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} } - v = jobRunSetParam{ + return r.In(value) +} + +func (r getGroupKeyRunQueryStartedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "startedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "notIn", + Value: value, }, }, }, } - - return v } -func (r jobRunQueryStepRunsStepRun) Field() jobRunPrismaFields { - return jobRunFieldStepRuns +func (r getGroupKeyRunQueryStartedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} + } + return r.NotIn(value) } -// base struct -type jobRunQueryStatusJobRunStatus struct{} - -// Set the required value of Status -func (r jobRunQueryStatusJobRunStatus) Set(value JobRunStatus) jobRunSetParam { - - return jobRunSetParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "status", - Value: value, + Name: "startedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, }, } - } -// Set the optional value of Status dynamically -func (r jobRunQueryStatusJobRunStatus) SetIfPresent(value *JobRunStatus) jobRunSetParam { +func (r getGroupKeyRunQueryStartedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunDefaultParam{} } - - return r.Set(*value) + return r.Lt(*value) } -func (r jobRunQueryStatusJobRunStatus) Equals(value JobRunStatus) jobRunWithPrismaStatusEqualsParam { - - return jobRunWithPrismaStatusEqualsParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "startedAt", Fields: []builder.Field{ { - Name: "equals", + Name: "lte", Value: value, }, }, @@ -117944,38 +118473,41 @@ func (r jobRunQueryStatusJobRunStatus) Equals(value JobRunStatus) jobRunWithPris } } -func (r jobRunQueryStatusJobRunStatus) EqualsIfPresent(value *JobRunStatus) jobRunWithPrismaStatusEqualsParam { +func (r getGroupKeyRunQueryStartedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunWithPrismaStatusEqualsParam{} + return getGroupKeyRunDefaultParam{} } - return r.Equals(*value) + return r.Lte(*value) } -func (r jobRunQueryStatusJobRunStatus) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "status", - Value: direction, + Name: "startedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, }, } } -func (r jobRunQueryStatusJobRunStatus) Cursor(cursor JobRunStatus) jobRunCursorParam { - return jobRunCursorParam{ - data: builder.Field{ - Name: "status", - Value: cursor, - }, +func (r getGroupKeyRunQueryStartedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} } + return r.Gt(*value) } -func (r jobRunQueryStatusJobRunStatus) In(value []JobRunStatus) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "startedAt", Fields: []builder.Field{ { - Name: "in", + Name: "gte", Value: value, }, }, @@ -117983,20 +118515,20 @@ func (r jobRunQueryStatusJobRunStatus) In(value []JobRunStatus) jobRunDefaultPar } } -func (r jobRunQueryStatusJobRunStatus) InIfPresent(value []JobRunStatus) jobRunDefaultParam { +func (r getGroupKeyRunQueryStartedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.In(value) + return r.Gte(*value) } -func (r jobRunQueryStatusJobRunStatus) NotIn(value []JobRunStatus) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "startedAt", Fields: []builder.Field{ { - Name: "notIn", + Name: "not", Value: value, }, }, @@ -118004,20 +118536,22 @@ func (r jobRunQueryStatusJobRunStatus) NotIn(value []JobRunStatus) jobRunDefault } } -func (r jobRunQueryStatusJobRunStatus) NotInIfPresent(value []JobRunStatus) jobRunDefaultParam { +func (r getGroupKeyRunQueryStartedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.NotIn(value) + return r.Not(*value) } -func (r jobRunQueryStatusJobRunStatus) Not(value JobRunStatus) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use Lt instead. + +func (r getGroupKeyRunQueryStartedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "startedAt", Fields: []builder.Field{ { - Name: "not", + Name: "lt", Value: value, }, }, @@ -118025,137 +118559,122 @@ func (r jobRunQueryStatusJobRunStatus) Not(value JobRunStatus) jobRunDefaultPara } } -func (r jobRunQueryStatusJobRunStatus) NotIfPresent(value *JobRunStatus) jobRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r getGroupKeyRunQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) -} - -func (r jobRunQueryStatusJobRunStatus) Field() jobRunPrismaFields { - return jobRunFieldStatus + return r.Before(*value) } -// base struct -type jobRunQueryLookupDataJobRunLookupData struct{} - -type jobRunQueryLookupDataRelations struct{} - -// JobRun -> LookupData -// -// @relation -// @optional -func (jobRunQueryLookupDataRelations) Where( - params ...JobRunLookupDataWhereParam, -) jobRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use Gt instead. - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "lookupData", + Name: "startedAt", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -func (jobRunQueryLookupDataRelations) Fetch() jobRunToLookupDataFindUnique { - var v jobRunToLookupDataFindUnique - - v.query.Operation = "query" - v.query.Method = "lookupData" - v.query.Outputs = jobRunLookupDataOutput - - return v -} - -func (r jobRunQueryLookupDataRelations) Link( - params JobRunLookupDataWhereParam, -) jobRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return jobRunSetParam{} +// deprecated: Use GtIfPresent instead. +func (r getGroupKeyRunQueryStartedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} } + return r.After(*value) +} - fields = append(fields, f) +// deprecated: Use Lte instead. - return jobRunSetParam{ +func (r getGroupKeyRunQueryStartedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "lookupData", + Name: "startedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "lte", + Value: value, }, }, }, } } -func (r jobRunQueryLookupDataRelations) Unlink() jobRunSetParam { - var v jobRunSetParam +// deprecated: Use LteIfPresent instead. +func (r getGroupKeyRunQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} + } + return r.BeforeEquals(*value) +} - v = jobRunSetParam{ +// deprecated: Use Gte instead. + +func (r getGroupKeyRunQueryStartedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "lookupData", + Name: "startedAt", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "gte", + Value: value, }, }, }, } +} - return v +// deprecated: Use GteIfPresent instead. +func (r getGroupKeyRunQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} + } + return r.AfterEquals(*value) } -func (r jobRunQueryLookupDataJobRunLookupData) Field() jobRunPrismaFields { - return jobRunFieldLookupData +func (r getGroupKeyRunQueryStartedAtDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldStartedAt } // base struct -type jobRunQueryResultJson struct{} +type getGroupKeyRunQueryFinishedAtDateTime struct{} -// Set the optional value of Result -func (r jobRunQueryResultJson) Set(value JSON) jobRunSetParam { +// Set the optional value of FinishedAt +func (r getGroupKeyRunQueryFinishedAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Value: value, }, } } -// Set the optional value of Result dynamically -func (r jobRunQueryResultJson) SetIfPresent(value *JSON) jobRunSetParam { +// Set the optional value of FinishedAt dynamically +func (r getGroupKeyRunQueryFinishedAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -// Set the optional value of Result dynamically -func (r jobRunQueryResultJson) SetOptional(value *JSON) jobRunSetParam { +// Set the optional value of FinishedAt dynamically +func (r getGroupKeyRunQueryFinishedAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { if value == nil { - var v *JSON - return jobRunSetParam{ + var v *DateTime + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Value: v, }, } @@ -118164,11 +118683,11 @@ func (r jobRunQueryResultJson) SetOptional(value *JSON) jobRunSetParam { return r.Set(*value) } -func (r jobRunQueryResultJson) Equals(value JSON) jobRunWithPrismaResultEqualsParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaFinishedAtEqualsParam { - return jobRunWithPrismaResultEqualsParam{ + return getGroupKeyRunWithPrismaFinishedAtEqualsParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -118179,17 +118698,17 @@ func (r jobRunQueryResultJson) Equals(value JSON) jobRunWithPrismaResultEqualsPa } } -func (r jobRunQueryResultJson) EqualsIfPresent(value *JSON) jobRunWithPrismaResultEqualsParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaFinishedAtEqualsParam { if value == nil { - return jobRunWithPrismaResultEqualsParam{} + return getGroupKeyRunWithPrismaFinishedAtEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryResultJson) EqualsOptional(value *JSON) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -118200,11 +118719,11 @@ func (r jobRunQueryResultJson) EqualsOptional(value *JSON) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) IsNull() jobRunDefaultParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) IsNull() getGroupKeyRunDefaultParam { var str *string = nil - return jobRunDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -118215,31 +118734,31 @@ func (r jobRunQueryResultJson) IsNull() jobRunDefaultParam { } } -func (r jobRunQueryResultJson) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Value: direction, }, } } -func (r jobRunQueryResultJson) Cursor(cursor JSON) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Value: cursor, }, } } -func (r jobRunQueryResultJson) Path(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -118247,20 +118766,20 @@ func (r jobRunQueryResultJson) Path(value []string) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) PathIfPresent(value []string) jobRunDefaultParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r jobRunQueryResultJson) StringContains(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -118268,20 +118787,20 @@ func (r jobRunQueryResultJson) StringContains(value string) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) StringContainsIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r jobRunQueryResultJson) StringStartsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -118289,20 +118808,20 @@ func (r jobRunQueryResultJson) StringStartsWith(value string) jobRunDefaultParam } } -func (r jobRunQueryResultJson) StringStartsWithIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r jobRunQueryResultJson) StringEndsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -118310,20 +118829,20 @@ func (r jobRunQueryResultJson) StringEndsWith(value string) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) StringEndsWithIfPresent(value *string) jobRunDefaultParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r jobRunQueryResultJson) ArrayContains(value JSON) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -118331,20 +118850,20 @@ func (r jobRunQueryResultJson) ArrayContains(value JSON) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) ArrayContainsIfPresent(value *JSON) jobRunDefaultParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r jobRunQueryResultJson) ArrayStartsWith(value JSON) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -118352,20 +118871,20 @@ func (r jobRunQueryResultJson) ArrayStartsWith(value JSON) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) ArrayStartsWithIfPresent(value *JSON) jobRunDefaultParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r jobRunQueryResultJson) ArrayEndsWith(value JSON) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -118373,17 +118892,19 @@ func (r jobRunQueryResultJson) ArrayEndsWith(value JSON) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) ArrayEndsWithIfPresent(value *JSON) jobRunDefaultParam { +func (r getGroupKeyRunQueryFinishedAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r jobRunQueryResultJson) Lt(value JSON) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use Lt instead. + +func (r getGroupKeyRunQueryFinishedAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { Name: "lt", @@ -118394,38 +118915,20 @@ func (r jobRunQueryResultJson) Lt(value JSON) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) LtIfPresent(value *JSON) jobRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r getGroupKeyRunQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} - } - return r.Lt(*value) -} - -func (r jobRunQueryResultJson) Lte(value JSON) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "result", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + return getGroupKeyRunDefaultParam{} } + return r.Before(*value) } -func (r jobRunQueryResultJson) LteIfPresent(value *JSON) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.Lte(*value) -} +// deprecated: Use Gt instead. -func (r jobRunQueryResultJson) Gt(value JSON) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryFinishedAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { Name: "gt", @@ -118436,20 +118939,23 @@ func (r jobRunQueryResultJson) Gt(value JSON) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) GtIfPresent(value *JSON) jobRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r getGroupKeyRunQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Gt(*value) + return r.After(*value) } -func (r jobRunQueryResultJson) Gte(value JSON) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use Lte instead. + +func (r getGroupKeyRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "gte", + Name: "lte", Value: value, }, }, @@ -118457,20 +118963,23 @@ func (r jobRunQueryResultJson) Gte(value JSON) jobRunDefaultParam { } } -func (r jobRunQueryResultJson) GteIfPresent(value *JSON) jobRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r getGroupKeyRunQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Gte(*value) + return r.BeforeEquals(*value) } -func (r jobRunQueryResultJson) Not(value JSONNullValueFilter) jobRunDefaultParam { - return jobRunDefaultParam{ +// deprecated: Use Gte instead. + +func (r getGroupKeyRunQueryFinishedAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "result", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -118478,49 +118987,50 @@ func (r jobRunQueryResultJson) Not(value JSONNullValueFilter) jobRunDefaultParam } } -func (r jobRunQueryResultJson) NotIfPresent(value *JSONNullValueFilter) jobRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r getGroupKeyRunQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -func (r jobRunQueryResultJson) Field() jobRunPrismaFields { - return jobRunFieldResult +func (r getGroupKeyRunQueryFinishedAtDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldFinishedAt } // base struct -type jobRunQueryStartedAtDateTime struct{} +type getGroupKeyRunQueryTimeoutAtDateTime struct{} -// Set the optional value of StartedAt -func (r jobRunQueryStartedAtDateTime) Set(value DateTime) jobRunSetParam { +// Set the optional value of TimeoutAt +func (r getGroupKeyRunQueryTimeoutAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Value: value, }, } } -// Set the optional value of StartedAt dynamically -func (r jobRunQueryStartedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { +// Set the optional value of TimeoutAt dynamically +func (r getGroupKeyRunQueryTimeoutAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -// Set the optional value of StartedAt dynamically -func (r jobRunQueryStartedAtDateTime) SetOptional(value *DateTime) jobRunSetParam { +// Set the optional value of TimeoutAt dynamically +func (r getGroupKeyRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { if value == nil { var v *DateTime - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Value: v, }, } @@ -118529,11 +119039,11 @@ func (r jobRunQueryStartedAtDateTime) SetOptional(value *DateTime) jobRunSetPara return r.Set(*value) } -func (r jobRunQueryStartedAtDateTime) Equals(value DateTime) jobRunWithPrismaStartedAtEqualsParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaTimeoutAtEqualsParam { - return jobRunWithPrismaStartedAtEqualsParam{ + return getGroupKeyRunWithPrismaTimeoutAtEqualsParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "equals", @@ -118544,17 +119054,17 @@ func (r jobRunQueryStartedAtDateTime) Equals(value DateTime) jobRunWithPrismaSta } } -func (r jobRunQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaStartedAtEqualsParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaTimeoutAtEqualsParam { if value == nil { - return jobRunWithPrismaStartedAtEqualsParam{} + return getGroupKeyRunWithPrismaTimeoutAtEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "equals", @@ -118565,11 +119075,11 @@ func (r jobRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) jobRunDefa } } -func (r jobRunQueryStartedAtDateTime) IsNull() jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) IsNull() getGroupKeyRunDefaultParam { var str *string = nil - return jobRunDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "equals", @@ -118580,28 +119090,28 @@ func (r jobRunQueryStartedAtDateTime) IsNull() jobRunDefaultParam { } } -func (r jobRunQueryStartedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Value: direction, }, } } -func (r jobRunQueryStartedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Value: cursor, }, } } -func (r jobRunQueryStartedAtDateTime) In(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "in", @@ -118612,17 +119122,17 @@ func (r jobRunQueryStartedAtDateTime) In(value []DateTime) jobRunDefaultParam { } } -func (r jobRunQueryStartedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryStartedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "notIn", @@ -118633,17 +119143,17 @@ func (r jobRunQueryStartedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam } } -func (r jobRunQueryStartedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryStartedAtDateTime) Lt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "lt", @@ -118654,17 +119164,17 @@ func (r jobRunQueryStartedAtDateTime) Lt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryStartedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryStartedAtDateTime) Lte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "lte", @@ -118675,17 +119185,17 @@ func (r jobRunQueryStartedAtDateTime) Lte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryStartedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryStartedAtDateTime) Gt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "gt", @@ -118696,17 +119206,17 @@ func (r jobRunQueryStartedAtDateTime) Gt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryStartedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryStartedAtDateTime) Gte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "gte", @@ -118717,17 +119227,17 @@ func (r jobRunQueryStartedAtDateTime) Gte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryStartedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryStartedAtDateTime) Not(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "not", @@ -118738,19 +119248,19 @@ func (r jobRunQueryStartedAtDateTime) Not(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryStartedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r jobRunQueryStartedAtDateTime) Before(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "lt", @@ -118762,19 +119272,19 @@ func (r jobRunQueryStartedAtDateTime) Before(value DateTime) jobRunDefaultParam } // deprecated: Use LtIfPresent instead. -func (r jobRunQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r jobRunQueryStartedAtDateTime) After(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "gt", @@ -118786,19 +119296,19 @@ func (r jobRunQueryStartedAtDateTime) After(value DateTime) jobRunDefaultParam { } // deprecated: Use GtIfPresent instead. -func (r jobRunQueryStartedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r jobRunQueryStartedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "lte", @@ -118810,19 +119320,19 @@ func (r jobRunQueryStartedAtDateTime) BeforeEquals(value DateTime) jobRunDefault } // deprecated: Use LteIfPresent instead. -func (r jobRunQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r jobRunQueryStartedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "gte", @@ -118834,49 +119344,49 @@ func (r jobRunQueryStartedAtDateTime) AfterEquals(value DateTime) jobRunDefaultP } // deprecated: Use GteIfPresent instead. -func (r jobRunQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.AfterEquals(*value) } -func (r jobRunQueryStartedAtDateTime) Field() jobRunPrismaFields { - return jobRunFieldStartedAt +func (r getGroupKeyRunQueryTimeoutAtDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldTimeoutAt } // base struct -type jobRunQueryFinishedAtDateTime struct{} +type getGroupKeyRunQueryCancelledAtDateTime struct{} -// Set the optional value of FinishedAt -func (r jobRunQueryFinishedAtDateTime) Set(value DateTime) jobRunSetParam { +// Set the optional value of CancelledAt +func (r getGroupKeyRunQueryCancelledAtDateTime) Set(value DateTime) getGroupKeyRunSetParam { - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Value: value, }, } } -// Set the optional value of FinishedAt dynamically -func (r jobRunQueryFinishedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { +// Set the optional value of CancelledAt dynamically +func (r getGroupKeyRunQueryCancelledAtDateTime) SetIfPresent(value *DateTime) getGroupKeyRunSetParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -// Set the optional value of FinishedAt dynamically -func (r jobRunQueryFinishedAtDateTime) SetOptional(value *DateTime) jobRunSetParam { +// Set the optional value of CancelledAt dynamically +func (r getGroupKeyRunQueryCancelledAtDateTime) SetOptional(value *DateTime) getGroupKeyRunSetParam { if value == nil { var v *DateTime - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Value: v, }, } @@ -118885,11 +119395,11 @@ func (r jobRunQueryFinishedAtDateTime) SetOptional(value *DateTime) jobRunSetPar return r.Set(*value) } -func (r jobRunQueryFinishedAtDateTime) Equals(value DateTime) jobRunWithPrismaFinishedAtEqualsParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) Equals(value DateTime) getGroupKeyRunWithPrismaCancelledAtEqualsParam { - return jobRunWithPrismaFinishedAtEqualsParam{ + return getGroupKeyRunWithPrismaCancelledAtEqualsParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "equals", @@ -118900,17 +119410,17 @@ func (r jobRunQueryFinishedAtDateTime) Equals(value DateTime) jobRunWithPrismaFi } } -func (r jobRunQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaFinishedAtEqualsParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) EqualsIfPresent(value *DateTime) getGroupKeyRunWithPrismaCancelledAtEqualsParam { if value == nil { - return jobRunWithPrismaFinishedAtEqualsParam{} + return getGroupKeyRunWithPrismaCancelledAtEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) EqualsOptional(value *DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "equals", @@ -118921,11 +119431,11 @@ func (r jobRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) jobRunDef } } -func (r jobRunQueryFinishedAtDateTime) IsNull() jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) IsNull() getGroupKeyRunDefaultParam { var str *string = nil - return jobRunDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "equals", @@ -118936,28 +119446,28 @@ func (r jobRunQueryFinishedAtDateTime) IsNull() jobRunDefaultParam { } } -func (r jobRunQueryFinishedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Value: direction, }, } } -func (r jobRunQueryFinishedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) Cursor(cursor DateTime) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Value: cursor, }, } } -func (r jobRunQueryFinishedAtDateTime) In(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) In(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "in", @@ -118968,17 +119478,17 @@ func (r jobRunQueryFinishedAtDateTime) In(value []DateTime) jobRunDefaultParam { } } -func (r jobRunQueryFinishedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) InIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryFinishedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) NotIn(value []DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "notIn", @@ -118989,17 +119499,17 @@ func (r jobRunQueryFinishedAtDateTime) NotIn(value []DateTime) jobRunDefaultPara } } -func (r jobRunQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) NotInIfPresent(value []DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryFinishedAtDateTime) Lt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) Lt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "lt", @@ -119010,17 +119520,17 @@ func (r jobRunQueryFinishedAtDateTime) Lt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryFinishedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) LtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryFinishedAtDateTime) Lte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) Lte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "lte", @@ -119031,17 +119541,17 @@ func (r jobRunQueryFinishedAtDateTime) Lte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryFinishedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) LteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryFinishedAtDateTime) Gt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) Gt(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "gt", @@ -119052,17 +119562,17 @@ func (r jobRunQueryFinishedAtDateTime) Gt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryFinishedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) GtIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryFinishedAtDateTime) Gte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) Gte(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "gte", @@ -119073,17 +119583,17 @@ func (r jobRunQueryFinishedAtDateTime) Gte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryFinishedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) GteIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryFinishedAtDateTime) Not(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) Not(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "not", @@ -119094,19 +119604,19 @@ func (r jobRunQueryFinishedAtDateTime) Not(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryFinishedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) NotIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r jobRunQueryFinishedAtDateTime) Before(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) Before(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "lt", @@ -119118,19 +119628,19 @@ func (r jobRunQueryFinishedAtDateTime) Before(value DateTime) jobRunDefaultParam } // deprecated: Use LtIfPresent instead. -func (r jobRunQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) BeforeIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r jobRunQueryFinishedAtDateTime) After(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) After(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "gt", @@ -119142,19 +119652,19 @@ func (r jobRunQueryFinishedAtDateTime) After(value DateTime) jobRunDefaultParam } // deprecated: Use GtIfPresent instead. -func (r jobRunQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) AfterIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r jobRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "lte", @@ -119166,19 +119676,19 @@ func (r jobRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) jobRunDefaul } // deprecated: Use LteIfPresent instead. -func (r jobRunQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) BeforeEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r jobRunQueryFinishedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledAtDateTime) AfterEquals(value DateTime) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "gte", @@ -119190,49 +119700,49 @@ func (r jobRunQueryFinishedAtDateTime) AfterEquals(value DateTime) jobRunDefault } // deprecated: Use GteIfPresent instead. -func (r jobRunQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledAtDateTime) AfterEqualsIfPresent(value *DateTime) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.AfterEquals(*value) } -func (r jobRunQueryFinishedAtDateTime) Field() jobRunPrismaFields { - return jobRunFieldFinishedAt +func (r getGroupKeyRunQueryCancelledAtDateTime) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldCancelledAt } // base struct -type jobRunQueryTimeoutAtDateTime struct{} +type getGroupKeyRunQueryCancelledReasonString struct{} -// Set the optional value of TimeoutAt -func (r jobRunQueryTimeoutAtDateTime) Set(value DateTime) jobRunSetParam { +// Set the optional value of CancelledReason +func (r getGroupKeyRunQueryCancelledReasonString) Set(value string) getGroupKeyRunSetParam { - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Value: value, }, } } -// Set the optional value of TimeoutAt dynamically -func (r jobRunQueryTimeoutAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { +// Set the optional value of CancelledReason dynamically +func (r getGroupKeyRunQueryCancelledReasonString) SetIfPresent(value *String) getGroupKeyRunSetParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -// Set the optional value of TimeoutAt dynamically -func (r jobRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) jobRunSetParam { +// Set the optional value of CancelledReason dynamically +func (r getGroupKeyRunQueryCancelledReasonString) SetOptional(value *String) getGroupKeyRunSetParam { if value == nil { - var v *DateTime - return jobRunSetParam{ + var v *string + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Value: v, }, } @@ -119241,11 +119751,11 @@ func (r jobRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) jobRunSetPara return r.Set(*value) } -func (r jobRunQueryTimeoutAtDateTime) Equals(value DateTime) jobRunWithPrismaTimeoutAtEqualsParam { +func (r getGroupKeyRunQueryCancelledReasonString) Equals(value string) getGroupKeyRunWithPrismaCancelledReasonEqualsParam { - return jobRunWithPrismaTimeoutAtEqualsParam{ + return getGroupKeyRunWithPrismaCancelledReasonEqualsParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "equals", @@ -119256,17 +119766,17 @@ func (r jobRunQueryTimeoutAtDateTime) Equals(value DateTime) jobRunWithPrismaTim } } -func (r jobRunQueryTimeoutAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaTimeoutAtEqualsParam { +func (r getGroupKeyRunQueryCancelledReasonString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaCancelledReasonEqualsParam { if value == nil { - return jobRunWithPrismaTimeoutAtEqualsParam{} + return getGroupKeyRunWithPrismaCancelledReasonEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "equals", @@ -119277,11 +119787,11 @@ func (r jobRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) jobRunDefa } } -func (r jobRunQueryTimeoutAtDateTime) IsNull() jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) IsNull() getGroupKeyRunDefaultParam { var str *string = nil - return jobRunDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "equals", @@ -119292,28 +119802,28 @@ func (r jobRunQueryTimeoutAtDateTime) IsNull() jobRunDefaultParam { } } -func (r jobRunQueryTimeoutAtDateTime) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Value: direction, }, } } -func (r jobRunQueryTimeoutAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryCancelledReasonString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Value: cursor, }, } } -func (r jobRunQueryTimeoutAtDateTime) In(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) In(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "in", @@ -119324,17 +119834,17 @@ func (r jobRunQueryTimeoutAtDateTime) In(value []DateTime) jobRunDefaultParam { } } -func (r jobRunQueryTimeoutAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) InIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryTimeoutAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) NotIn(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "notIn", @@ -119345,17 +119855,17 @@ func (r jobRunQueryTimeoutAtDateTime) NotIn(value []DateTime) jobRunDefaultParam } } -func (r jobRunQueryTimeoutAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryTimeoutAtDateTime) Lt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) Lt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "lt", @@ -119366,17 +119876,17 @@ func (r jobRunQueryTimeoutAtDateTime) Lt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryTimeoutAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryTimeoutAtDateTime) Lte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) Lte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "lte", @@ -119387,17 +119897,17 @@ func (r jobRunQueryTimeoutAtDateTime) Lte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryTimeoutAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryTimeoutAtDateTime) Gt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) Gt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "gt", @@ -119408,17 +119918,17 @@ func (r jobRunQueryTimeoutAtDateTime) Gt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryTimeoutAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryTimeoutAtDateTime) Gte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) Gte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "gte", @@ -119429,20 +119939,20 @@ func (r jobRunQueryTimeoutAtDateTime) Gte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryTimeoutAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryTimeoutAtDateTime) Not(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) Contains(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -119450,22 +119960,41 @@ func (r jobRunQueryTimeoutAtDateTime) Not(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryTimeoutAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r getGroupKeyRunQueryCancelledReasonString) StartsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "cancelledReason", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r jobRunQueryTimeoutAtDateTime) Before(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r getGroupKeyRunQueryCancelledReasonString) EndsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -119473,23 +120002,41 @@ func (r jobRunQueryTimeoutAtDateTime) Before(value DateTime) jobRunDefaultParam } } -// deprecated: Use LtIfPresent instead. -func (r jobRunQueryTimeoutAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r getGroupKeyRunQueryCancelledReasonString) Mode(value QueryMode) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "cancelledReason", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r jobRunQueryTimeoutAtDateTime) After(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} + } + return r.Mode(*value) +} + +func (r getGroupKeyRunQueryCancelledReasonString) Not(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -119497,23 +120044,22 @@ func (r jobRunQueryTimeoutAtDateTime) After(value DateTime) jobRunDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r jobRunQueryTimeoutAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledReasonString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r jobRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) HasPrefix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -119521,23 +120067,23 @@ func (r jobRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) jobRunDefault } } -// deprecated: Use LteIfPresent instead. -func (r jobRunQueryTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r getGroupKeyRunQueryCancelledReasonString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r jobRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledReasonString) HasSuffix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -119545,50 +120091,50 @@ func (r jobRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) jobRunDefaultP } } -// deprecated: Use GteIfPresent instead. -func (r jobRunQueryTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r getGroupKeyRunQueryCancelledReasonString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r jobRunQueryTimeoutAtDateTime) Field() jobRunPrismaFields { - return jobRunFieldTimeoutAt +func (r getGroupKeyRunQueryCancelledReasonString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldCancelledReason } // base struct -type jobRunQueryCancelledAtDateTime struct{} +type getGroupKeyRunQueryCancelledErrorString struct{} -// Set the optional value of CancelledAt -func (r jobRunQueryCancelledAtDateTime) Set(value DateTime) jobRunSetParam { +// Set the optional value of CancelledError +func (r getGroupKeyRunQueryCancelledErrorString) Set(value string) getGroupKeyRunSetParam { - return jobRunSetParam{ + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Value: value, }, } } -// Set the optional value of CancelledAt dynamically -func (r jobRunQueryCancelledAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { +// Set the optional value of CancelledError dynamically +func (r getGroupKeyRunQueryCancelledErrorString) SetIfPresent(value *String) getGroupKeyRunSetParam { if value == nil { - return jobRunSetParam{} + return getGroupKeyRunSetParam{} } return r.Set(*value) } -// Set the optional value of CancelledAt dynamically -func (r jobRunQueryCancelledAtDateTime) SetOptional(value *DateTime) jobRunSetParam { +// Set the optional value of CancelledError dynamically +func (r getGroupKeyRunQueryCancelledErrorString) SetOptional(value *String) getGroupKeyRunSetParam { if value == nil { - var v *DateTime - return jobRunSetParam{ + var v *string + return getGroupKeyRunSetParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Value: v, }, } @@ -119597,11 +120143,11 @@ func (r jobRunQueryCancelledAtDateTime) SetOptional(value *DateTime) jobRunSetPa return r.Set(*value) } -func (r jobRunQueryCancelledAtDateTime) Equals(value DateTime) jobRunWithPrismaCancelledAtEqualsParam { +func (r getGroupKeyRunQueryCancelledErrorString) Equals(value string) getGroupKeyRunWithPrismaCancelledErrorEqualsParam { - return jobRunWithPrismaCancelledAtEqualsParam{ + return getGroupKeyRunWithPrismaCancelledErrorEqualsParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "equals", @@ -119612,17 +120158,17 @@ func (r jobRunQueryCancelledAtDateTime) Equals(value DateTime) jobRunWithPrismaC } } -func (r jobRunQueryCancelledAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaCancelledAtEqualsParam { +func (r getGroupKeyRunQueryCancelledErrorString) EqualsIfPresent(value *string) getGroupKeyRunWithPrismaCancelledErrorEqualsParam { if value == nil { - return jobRunWithPrismaCancelledAtEqualsParam{} + return getGroupKeyRunWithPrismaCancelledErrorEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryCancelledAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) EqualsOptional(value *String) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "equals", @@ -119633,11 +120179,11 @@ func (r jobRunQueryCancelledAtDateTime) EqualsOptional(value *DateTime) jobRunDe } } -func (r jobRunQueryCancelledAtDateTime) IsNull() jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) IsNull() getGroupKeyRunDefaultParam { var str *string = nil - return jobRunDefaultParam{ + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "equals", @@ -119648,28 +120194,28 @@ func (r jobRunQueryCancelledAtDateTime) IsNull() jobRunDefaultParam { } } -func (r jobRunQueryCancelledAtDateTime) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) Order(direction SortOrder) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Value: direction, }, } } -func (r jobRunQueryCancelledAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { - return jobRunCursorParam{ +func (r getGroupKeyRunQueryCancelledErrorString) Cursor(cursor string) getGroupKeyRunCursorParam { + return getGroupKeyRunCursorParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Value: cursor, }, } } -func (r jobRunQueryCancelledAtDateTime) In(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) In(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "in", @@ -119680,17 +120226,17 @@ func (r jobRunQueryCancelledAtDateTime) In(value []DateTime) jobRunDefaultParam } } -func (r jobRunQueryCancelledAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) InIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.In(value) } -func (r jobRunQueryCancelledAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) NotIn(value []string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "notIn", @@ -119701,17 +120247,17 @@ func (r jobRunQueryCancelledAtDateTime) NotIn(value []DateTime) jobRunDefaultPar } } -func (r jobRunQueryCancelledAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) NotInIfPresent(value []string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryCancelledAtDateTime) Lt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) Lt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "lt", @@ -119722,17 +120268,17 @@ func (r jobRunQueryCancelledAtDateTime) Lt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCancelledAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) LtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryCancelledAtDateTime) Lte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) Lte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "lte", @@ -119743,17 +120289,17 @@ func (r jobRunQueryCancelledAtDateTime) Lte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCancelledAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) LteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryCancelledAtDateTime) Gt(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) Gt(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "gt", @@ -119764,17 +120310,17 @@ func (r jobRunQueryCancelledAtDateTime) Gt(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCancelledAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) GtIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryCancelledAtDateTime) Gte(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) Gte(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { Name: "gte", @@ -119785,20 +120331,20 @@ func (r jobRunQueryCancelledAtDateTime) Gte(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCancelledAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) GteIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryCancelledAtDateTime) Not(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) Contains(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -119806,22 +120352,41 @@ func (r jobRunQueryCancelledAtDateTime) Not(value DateTime) jobRunDefaultParam { } } -func (r jobRunQueryCancelledAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) ContainsIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r getGroupKeyRunQueryCancelledErrorString) StartsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "cancelledError", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r jobRunQueryCancelledAtDateTime) Before(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) StartsWithIfPresent(value *string) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r getGroupKeyRunQueryCancelledErrorString) EndsWith(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -119829,23 +120394,41 @@ func (r jobRunQueryCancelledAtDateTime) Before(value DateTime) jobRunDefaultPara } } -// deprecated: Use LtIfPresent instead. -func (r jobRunQueryCancelledAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) EndsWithIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r getGroupKeyRunQueryCancelledErrorString) Mode(value QueryMode) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ + data: builder.Field{ + Name: "cancelledError", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r jobRunQueryCancelledAtDateTime) After(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) ModeIfPresent(value *QueryMode) getGroupKeyRunDefaultParam { + if value == nil { + return getGroupKeyRunDefaultParam{} + } + return r.Mode(*value) +} + +func (r getGroupKeyRunQueryCancelledErrorString) Not(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -119853,23 +120436,22 @@ func (r jobRunQueryCancelledAtDateTime) After(value DateTime) jobRunDefaultParam } } -// deprecated: Use GtIfPresent instead. -func (r jobRunQueryCancelledAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { +func (r getGroupKeyRunQueryCancelledErrorString) NotIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r jobRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) HasPrefix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -119877,23 +120459,23 @@ func (r jobRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) jobRunDefau } } -// deprecated: Use LteIfPresent instead. -func (r jobRunQueryCancelledAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r getGroupKeyRunQueryCancelledErrorString) HasPrefixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r jobRunQueryCancelledAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r getGroupKeyRunQueryCancelledErrorString) HasSuffix(value string) getGroupKeyRunDefaultParam { + return getGroupKeyRunDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -119901,84 +120483,172 @@ func (r jobRunQueryCancelledAtDateTime) AfterEquals(value DateTime) jobRunDefaul } } -// deprecated: Use GteIfPresent instead. -func (r jobRunQueryCancelledAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r getGroupKeyRunQueryCancelledErrorString) HasSuffixIfPresent(value *string) getGroupKeyRunDefaultParam { if value == nil { - return jobRunDefaultParam{} + return getGroupKeyRunDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r jobRunQueryCancelledAtDateTime) Field() jobRunPrismaFields { - return jobRunFieldCancelledAt +func (r getGroupKeyRunQueryCancelledErrorString) Field() getGroupKeyRunPrismaFields { + return getGroupKeyRunFieldCancelledError } -// base struct -type jobRunQueryCancelledReasonString struct{} +// WorkflowRunTriggeredBy acts as a namespaces to access query methods for the WorkflowRunTriggeredBy model +var WorkflowRunTriggeredBy = workflowRunTriggeredByQuery{} -// Set the optional value of CancelledReason -func (r jobRunQueryCancelledReasonString) Set(value string) jobRunSetParam { +// workflowRunTriggeredByQuery exposes query functions for the workflowRunTriggeredBy model +type workflowRunTriggeredByQuery struct { - return jobRunSetParam{ + // ID + // + // @required + ID workflowRunTriggeredByQueryIDString + + // CreatedAt + // + // @required + CreatedAt workflowRunTriggeredByQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt workflowRunTriggeredByQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt workflowRunTriggeredByQueryDeletedAtDateTime + + Tenant workflowRunTriggeredByQueryTenantRelations + + // TenantID + // + // @required + TenantID workflowRunTriggeredByQueryTenantIDString + + Parent workflowRunTriggeredByQueryParentRelations + + // ParentID + // + // @required + // @unique + ParentID workflowRunTriggeredByQueryParentIDString + + // Input + // + // @optional + Input workflowRunTriggeredByQueryInputJson + + Event workflowRunTriggeredByQueryEventRelations + + // EventID + // + // @optional + EventID workflowRunTriggeredByQueryEventIDString + + Cron workflowRunTriggeredByQueryCronRelations + + // CronParentID + // + // @optional + CronParentID workflowRunTriggeredByQueryCronParentIDString + + // CronSchedule + // + // @optional + CronSchedule workflowRunTriggeredByQueryCronScheduleString + + Scheduled workflowRunTriggeredByQueryScheduledRelations + + // ScheduledID + // + // @optional + // @unique + ScheduledID workflowRunTriggeredByQueryScheduledIDString +} + +func (workflowRunTriggeredByQuery) Not(params ...WorkflowRunTriggeredByWhereParam) workflowRunTriggeredByDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledReason", - Value: value, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } - } -// Set the optional value of CancelledReason dynamically -func (r jobRunQueryCancelledReasonString) SetIfPresent(value *String) jobRunSetParam { - if value == nil { - return jobRunSetParam{} +func (workflowRunTriggeredByQuery) Or(params ...WorkflowRunTriggeredByWhereParam) workflowRunTriggeredByDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } } -// Set the optional value of CancelledReason dynamically -func (r jobRunQueryCancelledReasonString) SetOptional(value *String) jobRunSetParam { - if value == nil { +func (workflowRunTriggeredByQuery) And(params ...WorkflowRunTriggeredByWhereParam) workflowRunTriggeredByDefaultParam { + var fields []builder.Field - var v *string - return jobRunSetParam{ - data: builder.Field{ - Name: "cancelledReason", - Value: v, - }, - } + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } -func (r jobRunQueryCancelledReasonString) Equals(value string) jobRunWithPrismaCancelledReasonEqualsParam { +// base struct +type workflowRunTriggeredByQueryIDString struct{} - return jobRunWithPrismaCancelledReasonEqualsParam{ +// Set the required value of ID +func (r workflowRunTriggeredByQueryIDString) Set(value string) workflowRunTriggeredBySetParam { + + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "cancelledReason", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "id", + Value: value, }, } + } -func (r jobRunQueryCancelledReasonString) EqualsIfPresent(value *string) jobRunWithPrismaCancelledReasonEqualsParam { +// Set the optional value of ID dynamically +func (r workflowRunTriggeredByQueryIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { if value == nil { - return jobRunWithPrismaCancelledReasonEqualsParam{} + return workflowRunTriggeredBySetParam{} } - return r.Equals(*value) + + return r.Set(*value) } -func (r jobRunQueryCancelledReasonString) EqualsOptional(value *String) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Equals(value string) workflowRunTriggeredByWithPrismaIDEqualsUniqueParam { + + return workflowRunTriggeredByWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -119989,43 +120659,35 @@ func (r jobRunQueryCancelledReasonString) EqualsOptional(value *String) jobRunDe } } -func (r jobRunQueryCancelledReasonString) IsNull() jobRunDefaultParam { - var str *string = nil - return jobRunDefaultParam{ - data: builder.Field{ - Name: "cancelledReason", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, +func (r workflowRunTriggeredByQueryIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaIDEqualsUniqueParam { + if value == nil { + return workflowRunTriggeredByWithPrismaIDEqualsUniqueParam{} } + return r.Equals(*value) } -func (r jobRunQueryCancelledReasonString) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Value: direction, }, } } -func (r jobRunQueryCancelledReasonString) Cursor(cursor string) jobRunCursorParam { - return jobRunCursorParam{ +func (r workflowRunTriggeredByQueryIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Value: cursor, }, } } -func (r jobRunQueryCancelledReasonString) In(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) In(value []string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -120036,17 +120698,17 @@ func (r jobRunQueryCancelledReasonString) In(value []string) jobRunDefaultParam } } -func (r jobRunQueryCancelledReasonString) InIfPresent(value []string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) InIfPresent(value []string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.In(value) } -func (r jobRunQueryCancelledReasonString) NotIn(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) NotIn(value []string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -120057,17 +120719,17 @@ func (r jobRunQueryCancelledReasonString) NotIn(value []string) jobRunDefaultPar } } -func (r jobRunQueryCancelledReasonString) NotInIfPresent(value []string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) NotInIfPresent(value []string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.NotIn(value) } -func (r jobRunQueryCancelledReasonString) Lt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Lt(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -120078,17 +120740,17 @@ func (r jobRunQueryCancelledReasonString) Lt(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledReasonString) LtIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) LtIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Lt(*value) } -func (r jobRunQueryCancelledReasonString) Lte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Lte(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -120099,17 +120761,17 @@ func (r jobRunQueryCancelledReasonString) Lte(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledReasonString) LteIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) LteIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Lte(*value) } -func (r jobRunQueryCancelledReasonString) Gt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Gt(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -120120,17 +120782,17 @@ func (r jobRunQueryCancelledReasonString) Gt(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledReasonString) GtIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) GtIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Gt(*value) } -func (r jobRunQueryCancelledReasonString) Gte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Gte(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -120141,17 +120803,17 @@ func (r jobRunQueryCancelledReasonString) Gte(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledReasonString) GteIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) GteIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Gte(*value) } -func (r jobRunQueryCancelledReasonString) Contains(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Contains(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -120162,17 +120824,17 @@ func (r jobRunQueryCancelledReasonString) Contains(value string) jobRunDefaultPa } } -func (r jobRunQueryCancelledReasonString) ContainsIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) ContainsIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Contains(*value) } -func (r jobRunQueryCancelledReasonString) StartsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) StartsWith(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -120183,17 +120845,17 @@ func (r jobRunQueryCancelledReasonString) StartsWith(value string) jobRunDefault } } -func (r jobRunQueryCancelledReasonString) StartsWithIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.StartsWith(*value) } -func (r jobRunQueryCancelledReasonString) EndsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) EndsWith(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -120204,17 +120866,17 @@ func (r jobRunQueryCancelledReasonString) EndsWith(value string) jobRunDefaultPa } } -func (r jobRunQueryCancelledReasonString) EndsWithIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.EndsWith(*value) } -func (r jobRunQueryCancelledReasonString) Mode(value QueryMode) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Mode(value QueryMode) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -120225,17 +120887,17 @@ func (r jobRunQueryCancelledReasonString) Mode(value QueryMode) jobRunDefaultPar } } -func (r jobRunQueryCancelledReasonString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Mode(*value) } -func (r jobRunQueryCancelledReasonString) Not(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) Not(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -120246,19 +120908,19 @@ func (r jobRunQueryCancelledReasonString) Not(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledReasonString) NotIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) NotIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r jobRunQueryCancelledReasonString) HasPrefix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) HasPrefix(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -120270,19 +120932,19 @@ func (r jobRunQueryCancelledReasonString) HasPrefix(value string) jobRunDefaultP } // deprecated: Use StartsWithIfPresent instead. -func (r jobRunQueryCancelledReasonString) HasPrefixIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r jobRunQueryCancelledReasonString) HasSuffix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryIDString) HasSuffix(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "cancelledReason", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -120294,62 +120956,46 @@ func (r jobRunQueryCancelledReasonString) HasSuffix(value string) jobRunDefaultP } // deprecated: Use EndsWithIfPresent instead. -func (r jobRunQueryCancelledReasonString) HasSuffixIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.HasSuffix(*value) } -func (r jobRunQueryCancelledReasonString) Field() jobRunPrismaFields { - return jobRunFieldCancelledReason +func (r workflowRunTriggeredByQueryIDString) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldID } // base struct -type jobRunQueryCancelledErrorString struct{} +type workflowRunTriggeredByQueryCreatedAtDateTime struct{} -// Set the optional value of CancelledError -func (r jobRunQueryCancelledErrorString) Set(value string) jobRunSetParam { +// Set the required value of CreatedAt +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Set(value DateTime) workflowRunTriggeredBySetParam { - return jobRunSetParam{ + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Value: value, }, } } -// Set the optional value of CancelledError dynamically -func (r jobRunQueryCancelledErrorString) SetIfPresent(value *String) jobRunSetParam { - if value == nil { - return jobRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of CancelledError dynamically -func (r jobRunQueryCancelledErrorString) SetOptional(value *String) jobRunSetParam { +// Set the optional value of CreatedAt dynamically +func (r workflowRunTriggeredByQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workflowRunTriggeredBySetParam { if value == nil { - - var v *string - return jobRunSetParam{ - data: builder.Field{ - Name: "cancelledError", - Value: v, - }, - } + return workflowRunTriggeredBySetParam{} } return r.Set(*value) } -func (r jobRunQueryCancelledErrorString) Equals(value string) jobRunWithPrismaCancelledErrorEqualsParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Equals(value DateTime) workflowRunTriggeredByWithPrismaCreatedAtEqualsParam { - return jobRunWithPrismaCancelledErrorEqualsParam{ + return workflowRunTriggeredByWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -120360,64 +121006,35 @@ func (r jobRunQueryCancelledErrorString) Equals(value string) jobRunWithPrismaCa } } -func (r jobRunQueryCancelledErrorString) EqualsIfPresent(value *string) jobRunWithPrismaCancelledErrorEqualsParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunTriggeredByWithPrismaCreatedAtEqualsParam { if value == nil { - return jobRunWithPrismaCancelledErrorEqualsParam{} + return workflowRunTriggeredByWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r jobRunQueryCancelledErrorString) EqualsOptional(value *String) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "cancelledError", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r jobRunQueryCancelledErrorString) IsNull() jobRunDefaultParam { - var str *string = nil - return jobRunDefaultParam{ - data: builder.Field{ - Name: "cancelledError", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r jobRunQueryCancelledErrorString) Order(direction SortOrder) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Value: direction, }, } } -func (r jobRunQueryCancelledErrorString) Cursor(cursor string) jobRunCursorParam { - return jobRunCursorParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Cursor(cursor DateTime) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Value: cursor, }, } } -func (r jobRunQueryCancelledErrorString) In(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) In(value []DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -120428,17 +121045,17 @@ func (r jobRunQueryCancelledErrorString) In(value []string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledErrorString) InIfPresent(value []string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) InIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.In(value) } -func (r jobRunQueryCancelledErrorString) NotIn(value []string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) NotIn(value []DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -120449,17 +121066,17 @@ func (r jobRunQueryCancelledErrorString) NotIn(value []string) jobRunDefaultPara } } -func (r jobRunQueryCancelledErrorString) NotInIfPresent(value []string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.NotIn(value) } -func (r jobRunQueryCancelledErrorString) Lt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Lt(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -120470,17 +121087,17 @@ func (r jobRunQueryCancelledErrorString) Lt(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledErrorString) LtIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Lt(*value) } -func (r jobRunQueryCancelledErrorString) Lte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Lte(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -120491,17 +121108,17 @@ func (r jobRunQueryCancelledErrorString) Lte(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledErrorString) LteIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Lte(*value) } -func (r jobRunQueryCancelledErrorString) Gt(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Gt(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -120512,17 +121129,17 @@ func (r jobRunQueryCancelledErrorString) Gt(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledErrorString) GtIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Gt(*value) } -func (r jobRunQueryCancelledErrorString) Gte(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Gte(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -120533,20 +121150,20 @@ func (r jobRunQueryCancelledErrorString) Gte(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledErrorString) GteIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Gte(*value) } -func (r jobRunQueryCancelledErrorString) Contains(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Not(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -120554,41 +121171,22 @@ func (r jobRunQueryCancelledErrorString) Contains(value string) jobRunDefaultPar } } -func (r jobRunQueryCancelledErrorString) ContainsIfPresent(value *string) jobRunDefaultParam { +func (r workflowRunTriggeredByQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} - } - return r.Contains(*value) -} - -func (r jobRunQueryCancelledErrorString) StartsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "cancelledError", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return workflowRunTriggeredByDefaultParam{} } + return r.Not(*value) } -func (r jobRunQueryCancelledErrorString) StartsWithIfPresent(value *string) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r jobRunQueryCancelledErrorString) EndsWith(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Before(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -120596,41 +121194,23 @@ func (r jobRunQueryCancelledErrorString) EndsWith(value string) jobRunDefaultPar } } -func (r jobRunQueryCancelledErrorString) EndsWithIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r workflowRunTriggeredByQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r jobRunQueryCancelledErrorString) Mode(value QueryMode) jobRunDefaultParam { - return jobRunDefaultParam{ - data: builder.Field{ - Name: "cancelledError", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return workflowRunTriggeredByDefaultParam{} } + return r.Before(*value) } -func (r jobRunQueryCancelledErrorString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { - if value == nil { - return jobRunDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Gt instead. -func (r jobRunQueryCancelledErrorString) Not(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) After(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -120638,22 +121218,23 @@ func (r jobRunQueryCancelledErrorString) Not(value string) jobRunDefaultParam { } } -func (r jobRunQueryCancelledErrorString) NotIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workflowRunTriggeredByQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r jobRunQueryCancelledErrorString) HasPrefix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) BeforeEquals(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -120661,23 +121242,23 @@ func (r jobRunQueryCancelledErrorString) HasPrefix(value string) jobRunDefaultPa } } -// deprecated: Use StartsWithIfPresent instead. -func (r jobRunQueryCancelledErrorString) HasPrefixIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workflowRunTriggeredByQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r jobRunQueryCancelledErrorString) HasSuffix(value string) jobRunDefaultParam { - return jobRunDefaultParam{ +func (r workflowRunTriggeredByQueryCreatedAtDateTime) AfterEquals(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "createdAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -120685,163 +121266,47 @@ func (r jobRunQueryCancelledErrorString) HasSuffix(value string) jobRunDefaultPa } } -// deprecated: Use EndsWithIfPresent instead. -func (r jobRunQueryCancelledErrorString) HasSuffixIfPresent(value *string) jobRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r workflowRunTriggeredByQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunDefaultParam{} - } - return r.HasSuffix(*value) -} - -func (r jobRunQueryCancelledErrorString) Field() jobRunPrismaFields { - return jobRunFieldCancelledError -} - -// JobRunLookupData acts as a namespaces to access query methods for the JobRunLookupData model -var JobRunLookupData = jobRunLookupDataQuery{} - -// jobRunLookupDataQuery exposes query functions for the jobRunLookupData model -type jobRunLookupDataQuery struct { - - // ID - // - // @required - ID jobRunLookupDataQueryIDString - - // CreatedAt - // - // @required - CreatedAt jobRunLookupDataQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt jobRunLookupDataQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt jobRunLookupDataQueryDeletedAtDateTime - - JobRun jobRunLookupDataQueryJobRunRelations - - // JobRunID - // - // @required - // @unique - JobRunID jobRunLookupDataQueryJobRunIDString - - Tenant jobRunLookupDataQueryTenantRelations - - // TenantID - // - // @required - TenantID jobRunLookupDataQueryTenantIDString - - // Data - // - // @optional - Data jobRunLookupDataQueryDataJson -} - -func (jobRunLookupDataQuery) Not(params ...JobRunLookupDataWhereParam) jobRunLookupDataDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return jobRunLookupDataDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (jobRunLookupDataQuery) Or(params ...JobRunLookupDataWhereParam) jobRunLookupDataDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return jobRunLookupDataDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (jobRunLookupDataQuery) And(params ...JobRunLookupDataWhereParam) jobRunLookupDataDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return jobRunLookupDataDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, + return workflowRunTriggeredByDefaultParam{} } + return r.AfterEquals(*value) } -func (jobRunLookupDataQuery) JobRunIDTenantID( - _jobRunID JobRunLookupDataWithPrismaJobRunIDWhereParam, - - _tenantID JobRunLookupDataWithPrismaTenantIDWhereParam, -) JobRunLookupDataEqualsUniqueWhereParam { - var fields []builder.Field - - fields = append(fields, _jobRunID.field()) - fields = append(fields, _tenantID.field()) - - return jobRunLookupDataEqualsUniqueParam{ - data: builder.Field{ - Name: "jobRunId_tenantId", - Fields: builder.TransformEquals(fields), - }, - } +func (r workflowRunTriggeredByQueryCreatedAtDateTime) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldCreatedAt } // base struct -type jobRunLookupDataQueryIDString struct{} +type workflowRunTriggeredByQueryUpdatedAtDateTime struct{} -// Set the required value of ID -func (r jobRunLookupDataQueryIDString) Set(value string) jobRunLookupDataSetParam { +// Set the required value of UpdatedAt +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Set(value DateTime) workflowRunTriggeredBySetParam { - return jobRunLookupDataSetParam{ + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of ID dynamically -func (r jobRunLookupDataQueryIDString) SetIfPresent(value *String) jobRunLookupDataSetParam { +// Set the optional value of UpdatedAt dynamically +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workflowRunTriggeredBySetParam { if value == nil { - return jobRunLookupDataSetParam{} + return workflowRunTriggeredBySetParam{} } return r.Set(*value) } -func (r jobRunLookupDataQueryIDString) Equals(value string) jobRunLookupDataWithPrismaIDEqualsUniqueParam { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Equals(value DateTime) workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam { - return jobRunLookupDataWithPrismaIDEqualsUniqueParam{ + return workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -120852,35 +121317,35 @@ func (r jobRunLookupDataQueryIDString) Equals(value string) jobRunLookupDataWith } } -func (r jobRunLookupDataQueryIDString) EqualsIfPresent(value *string) jobRunLookupDataWithPrismaIDEqualsUniqueParam { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam { if value == nil { - return jobRunLookupDataWithPrismaIDEqualsUniqueParam{} + return workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r jobRunLookupDataQueryIDString) Order(direction SortOrder) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: direction, }, } } -func (r jobRunLookupDataQueryIDString) Cursor(cursor string) jobRunLookupDataCursorParam { - return jobRunLookupDataCursorParam{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Cursor(cursor DateTime) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: cursor, }, } } -func (r jobRunLookupDataQueryIDString) In(value []string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) In(value []DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -120891,17 +121356,17 @@ func (r jobRunLookupDataQueryIDString) In(value []string) jobRunLookupDataParamU } } -func (r jobRunLookupDataQueryIDString) InIfPresent(value []string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.In(value) } -func (r jobRunLookupDataQueryIDString) NotIn(value []string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) NotIn(value []DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -120912,17 +121377,17 @@ func (r jobRunLookupDataQueryIDString) NotIn(value []string) jobRunLookupDataPar } } -func (r jobRunLookupDataQueryIDString) NotInIfPresent(value []string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.NotIn(value) } -func (r jobRunLookupDataQueryIDString) Lt(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Lt(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -120933,17 +121398,17 @@ func (r jobRunLookupDataQueryIDString) Lt(value string) jobRunLookupDataParamUni } } -func (r jobRunLookupDataQueryIDString) LtIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Lt(*value) } -func (r jobRunLookupDataQueryIDString) Lte(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Lte(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -120954,17 +121419,17 @@ func (r jobRunLookupDataQueryIDString) Lte(value string) jobRunLookupDataParamUn } } -func (r jobRunLookupDataQueryIDString) LteIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Lte(*value) } -func (r jobRunLookupDataQueryIDString) Gt(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Gt(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -120975,17 +121440,17 @@ func (r jobRunLookupDataQueryIDString) Gt(value string) jobRunLookupDataParamUni } } -func (r jobRunLookupDataQueryIDString) GtIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Gt(*value) } -func (r jobRunLookupDataQueryIDString) Gte(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Gte(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -120996,20 +121461,20 @@ func (r jobRunLookupDataQueryIDString) Gte(value string) jobRunLookupDataParamUn } } -func (r jobRunLookupDataQueryIDString) GteIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Gte(*value) } -func (r jobRunLookupDataQueryIDString) Contains(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Not(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -121017,20 +121482,22 @@ func (r jobRunLookupDataQueryIDString) Contains(value string) jobRunLookupDataPa } } -func (r jobRunLookupDataQueryIDString) ContainsIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r jobRunLookupDataQueryIDString) StartsWith(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +// deprecated: Use Lt instead. + +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Before(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -121038,20 +121505,23 @@ func (r jobRunLookupDataQueryIDString) StartsWith(value string) jobRunLookupData } } -func (r jobRunLookupDataQueryIDString) StartsWithIfPresent(value *string) jobRunLookupDataParamUnique { +// deprecated: Use LtIfPresent instead. +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r jobRunLookupDataQueryIDString) EndsWith(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +// deprecated: Use Gt instead. + +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) After(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -121059,20 +121529,23 @@ func (r jobRunLookupDataQueryIDString) EndsWith(value string) jobRunLookupDataPa } } -func (r jobRunLookupDataQueryIDString) EndsWithIfPresent(value *string) jobRunLookupDataParamUnique { +// deprecated: Use GtIfPresent instead. +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r jobRunLookupDataQueryIDString) Mode(value QueryMode) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +// deprecated: Use Lte instead. + +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -121080,20 +121553,23 @@ func (r jobRunLookupDataQueryIDString) Mode(value QueryMode) jobRunLookupDataPar } } -func (r jobRunLookupDataQueryIDString) ModeIfPresent(value *QueryMode) jobRunLookupDataParamUnique { +// deprecated: Use LteIfPresent instead. +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r jobRunLookupDataQueryIDString) Not(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +// deprecated: Use Gte instead. + +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) AfterEquals(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -121101,94 +121577,84 @@ func (r jobRunLookupDataQueryIDString) Not(value string) jobRunLookupDataParamUn } } -func (r jobRunLookupDataQueryIDString) NotIfPresent(value *string) jobRunLookupDataParamUnique { +// deprecated: Use GteIfPresent instead. +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r workflowRunTriggeredByQueryUpdatedAtDateTime) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldUpdatedAt +} -func (r jobRunLookupDataQueryIDString) HasPrefix(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +// base struct +type workflowRunTriggeredByQueryDeletedAtDateTime struct{} + +// Set the optional value of DeletedAt +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Set(value DateTime) workflowRunTriggeredBySetParam { + + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, + Name: "deletedAt", + Value: value, }, } + } -// deprecated: Use StartsWithIfPresent instead. -func (r jobRunLookupDataQueryIDString) HasPrefixIfPresent(value *string) jobRunLookupDataParamUnique { +// Set the optional value of DeletedAt dynamically +func (r workflowRunTriggeredByQueryDeletedAtDateTime) SetIfPresent(value *DateTime) workflowRunTriggeredBySetParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredBySetParam{} } - return r.HasPrefix(*value) -} - -// deprecated: Use EndsWith instead. -func (r jobRunLookupDataQueryIDString) HasSuffix(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ - data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "ends_with", - Value: value, - }, - }, - }, - } + return r.Set(*value) } -// deprecated: Use EndsWithIfPresent instead. -func (r jobRunLookupDataQueryIDString) HasSuffixIfPresent(value *string) jobRunLookupDataParamUnique { +// Set the optional value of DeletedAt dynamically +func (r workflowRunTriggeredByQueryDeletedAtDateTime) SetOptional(value *DateTime) workflowRunTriggeredBySetParam { if value == nil { - return jobRunLookupDataParamUnique{} + + var v *DateTime + return workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: v, + }, + } } - return r.HasSuffix(*value) -} -func (r jobRunLookupDataQueryIDString) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldID + return r.Set(*value) } -// base struct -type jobRunLookupDataQueryCreatedAtDateTime struct{} - -// Set the required value of CreatedAt -func (r jobRunLookupDataQueryCreatedAtDateTime) Set(value DateTime) jobRunLookupDataSetParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Equals(value DateTime) workflowRunTriggeredByWithPrismaDeletedAtEqualsParam { - return jobRunLookupDataSetParam{ + return workflowRunTriggeredByWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "createdAt", - Value: value, + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } - } -// Set the optional value of CreatedAt dynamically -func (r jobRunLookupDataQueryCreatedAtDateTime) SetIfPresent(value *DateTime) jobRunLookupDataSetParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) workflowRunTriggeredByWithPrismaDeletedAtEqualsParam { if value == nil { - return jobRunLookupDataSetParam{} + return workflowRunTriggeredByWithPrismaDeletedAtEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) Equals(value DateTime) jobRunLookupDataWithPrismaCreatedAtEqualsParam { - - return jobRunLookupDataWithPrismaCreatedAtEqualsParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) EqualsOptional(value *DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -121199,35 +121665,43 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) Equals(value DateTime) jobRunLoo } } -func (r jobRunLookupDataQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) jobRunLookupDataWithPrismaCreatedAtEqualsParam { - if value == nil { - return jobRunLookupDataWithPrismaCreatedAtEqualsParam{} +func (r workflowRunTriggeredByQueryDeletedAtDateTime) IsNull() workflowRunTriggeredByDefaultParam { + var str *string = nil + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) Order(direction SortOrder) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Value: direction, }, } } -func (r jobRunLookupDataQueryCreatedAtDateTime) Cursor(cursor DateTime) jobRunLookupDataCursorParam { - return jobRunLookupDataCursorParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Cursor(cursor DateTime) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Value: cursor, }, } } -func (r jobRunLookupDataQueryCreatedAtDateTime) In(value []DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) In(value []DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "in", @@ -121238,17 +121712,17 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) In(value []DateTime) jobRunLooku } } -func (r jobRunLookupDataQueryCreatedAtDateTime) InIfPresent(value []DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) InIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.In(value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) NotIn(value []DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) NotIn(value []DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "notIn", @@ -121259,17 +121733,17 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) NotIn(value []DateTime) jobRunLo } } -func (r jobRunLookupDataQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.NotIn(value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) Lt(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Lt(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -121280,17 +121754,17 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) Lt(value DateTime) jobRunLookupD } } -func (r jobRunLookupDataQueryCreatedAtDateTime) LtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) LtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Lt(*value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) Lte(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Lte(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -121301,17 +121775,17 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) Lte(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryCreatedAtDateTime) LteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) LteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Lte(*value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) Gt(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Gt(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -121322,17 +121796,17 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) Gt(value DateTime) jobRunLookupD } } -func (r jobRunLookupDataQueryCreatedAtDateTime) GtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) GtIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Gt(*value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) Gte(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Gte(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -121343,17 +121817,17 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) Gte(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryCreatedAtDateTime) GteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) GteIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Gte(*value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) Not(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Not(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "not", @@ -121364,19 +121838,19 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) Not(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryCreatedAtDateTime) NotIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) NotIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r jobRunLookupDataQueryCreatedAtDateTime) Before(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Before(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -121388,19 +121862,19 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) Before(value DateTime) jobRunLoo } // deprecated: Use LtIfPresent instead. -func (r jobRunLookupDataQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r jobRunLookupDataQueryCreatedAtDateTime) After(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) After(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -121412,19 +121886,19 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) After(value DateTime) jobRunLook } // deprecated: Use GtIfPresent instead. -func (r jobRunLookupDataQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r jobRunLookupDataQueryCreatedAtDateTime) BeforeEquals(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) BeforeEquals(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -121436,19 +121910,19 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) BeforeEquals(value DateTime) job } // deprecated: Use LteIfPresent instead. -func (r jobRunLookupDataQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r jobRunLookupDataQueryCreatedAtDateTime) AfterEquals(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryDeletedAtDateTime) AfterEquals(value DateTime) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -121460,88 +121934,137 @@ func (r jobRunLookupDataQueryCreatedAtDateTime) AfterEquals(value DateTime) jobR } // deprecated: Use GteIfPresent instead. -func (r jobRunLookupDataQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.AfterEquals(*value) } -func (r jobRunLookupDataQueryCreatedAtDateTime) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldCreatedAt +func (r workflowRunTriggeredByQueryDeletedAtDateTime) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldDeletedAt } // base struct -type jobRunLookupDataQueryUpdatedAtDateTime struct{} +type workflowRunTriggeredByQueryTenantTenant struct{} -// Set the required value of UpdatedAt -func (r jobRunLookupDataQueryUpdatedAtDateTime) Set(value DateTime) jobRunLookupDataSetParam { +type workflowRunTriggeredByQueryTenantRelations struct{} - return jobRunLookupDataSetParam{ +// WorkflowRunTriggeredBy -> Tenant +// +// @relation +// @required +func (workflowRunTriggeredByQueryTenantRelations) Where( + params ...TenantWhereParam, +) workflowRunTriggeredByDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", - Value: value, + Name: "tenant", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, }, } +} + +func (workflowRunTriggeredByQueryTenantRelations) Fetch() workflowRunTriggeredByToTenantFindUnique { + var v workflowRunTriggeredByToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + return v } -// Set the optional value of UpdatedAt dynamically -func (r jobRunLookupDataQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) jobRunLookupDataSetParam { - if value == nil { - return jobRunLookupDataSetParam{} +func (r workflowRunTriggeredByQueryTenantRelations) Link( + params TenantWhereParam, +) workflowRunTriggeredByWithPrismaTenantSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunTriggeredByWithPrismaTenantSetParam{} } - return r.Set(*value) + fields = append(fields, f) + + return workflowRunTriggeredByWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Equals(value DateTime) jobRunLookupDataWithPrismaUpdatedAtEqualsParam { +func (r workflowRunTriggeredByQueryTenantRelations) Unlink() workflowRunTriggeredByWithPrismaTenantSetParam { + var v workflowRunTriggeredByWithPrismaTenantSetParam - return jobRunLookupDataWithPrismaUpdatedAtEqualsParam{ + v = workflowRunTriggeredByWithPrismaTenantSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenant", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r jobRunLookupDataQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) jobRunLookupDataWithPrismaUpdatedAtEqualsParam { - if value == nil { - return jobRunLookupDataWithPrismaUpdatedAtEqualsParam{} - } - return r.Equals(*value) +func (r workflowRunTriggeredByQueryTenantTenant) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldTenant } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Order(direction SortOrder) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +// base struct +type workflowRunTriggeredByQueryTenantIDString struct{} + +// Set the required value of TenantID +func (r workflowRunTriggeredByQueryTenantIDString) Set(value string) workflowRunTriggeredBySetParam { + + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "updatedAt", - Value: direction, + Name: "tenantId", + Value: value, }, } + } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Cursor(cursor DateTime) jobRunLookupDataCursorParam { - return jobRunLookupDataCursorParam{ - data: builder.Field{ - Name: "updatedAt", - Value: cursor, - }, +// Set the optional value of TenantID dynamically +func (r workflowRunTriggeredByQueryTenantIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { + if value == nil { + return workflowRunTriggeredBySetParam{} } + + return r.Set(*value) } -func (r jobRunLookupDataQueryUpdatedAtDateTime) In(value []DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) Equals(value string) workflowRunTriggeredByWithPrismaTenantIDEqualsParam { + + return workflowRunTriggeredByWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "in", + Name: "equals", Value: value, }, }, @@ -121549,17 +122072,56 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) In(value []DateTime) jobRunLooku } } -func (r jobRunLookupDataQueryUpdatedAtDateTime) InIfPresent(value []DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaTenantIDEqualsParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r workflowRunTriggeredByQueryTenantIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Value: direction, + }, + } +} + +func (r workflowRunTriggeredByQueryTenantIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ + data: builder.Field{ + Name: "tenantId", + Value: cursor, + }, + } +} + +func (r workflowRunTriggeredByQueryTenantIDString) In(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunTriggeredByQueryTenantIDString) InIfPresent(value []string) workflowRunTriggeredByDefaultParam { + if value == nil { + return workflowRunTriggeredByDefaultParam{} } return r.In(value) } -func (r jobRunLookupDataQueryUpdatedAtDateTime) NotIn(value []DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) NotIn(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "notIn", @@ -121570,17 +122132,17 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) NotIn(value []DateTime) jobRunLo } } -func (r jobRunLookupDataQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) NotInIfPresent(value []string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.NotIn(value) } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Lt(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) Lt(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lt", @@ -121591,17 +122153,17 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) Lt(value DateTime) jobRunLookupD } } -func (r jobRunLookupDataQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) LtIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Lt(*value) } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Lte(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) Lte(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lte", @@ -121612,17 +122174,17 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) Lte(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) LteIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Lte(*value) } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Gt(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) Gt(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gt", @@ -121633,17 +122195,17 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) Gt(value DateTime) jobRunLookupD } } -func (r jobRunLookupDataQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) GtIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Gt(*value) } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Gte(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) Gte(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gte", @@ -121654,20 +122216,20 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) Gte(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) GteIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Gte(*value) } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Not(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) Contains(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -121675,22 +122237,20 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) Not(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) ContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r jobRunLookupDataQueryUpdatedAtDateTime) Before(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) StartsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -121698,23 +122258,20 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) Before(value DateTime) jobRunLoo } } -// deprecated: Use LtIfPresent instead. -func (r jobRunLookupDataQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r jobRunLookupDataQueryUpdatedAtDateTime) After(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) EndsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -121722,23 +122279,20 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) After(value DateTime) jobRunLook } } -// deprecated: Use GtIfPresent instead. -func (r jobRunLookupDataQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r jobRunLookupDataQueryUpdatedAtDateTime) BeforeEquals(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) Mode(value QueryMode) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -121746,23 +122300,20 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) BeforeEquals(value DateTime) job } } -// deprecated: Use LteIfPresent instead. -func (r jobRunLookupDataQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r jobRunLookupDataQueryUpdatedAtDateTime) AfterEquals(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryTenantIDString) Not(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -121770,131 +122321,221 @@ func (r jobRunLookupDataQueryUpdatedAtDateTime) AfterEquals(value DateTime) jobR } } -// deprecated: Use GteIfPresent instead. -func (r jobRunLookupDataQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryTenantIDString) NotIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.AfterEquals(*value) + return r.Not(*value) } -func (r jobRunLookupDataQueryUpdatedAtDateTime) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldUpdatedAt +// deprecated: Use StartsWith instead. + +func (r workflowRunTriggeredByQueryTenantIDString) HasPrefix(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } } -// base struct -type jobRunLookupDataQueryDeletedAtDateTime struct{} +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunTriggeredByQueryTenantIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByDefaultParam { + if value == nil { + return workflowRunTriggeredByDefaultParam{} + } + return r.HasPrefix(*value) +} -// Set the optional value of DeletedAt -func (r jobRunLookupDataQueryDeletedAtDateTime) Set(value DateTime) jobRunLookupDataSetParam { +// deprecated: Use EndsWith instead. - return jobRunLookupDataSetParam{ +func (r workflowRunTriggeredByQueryTenantIDString) HasSuffix(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "deletedAt", - Value: value, + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, }, } - } -// Set the optional value of DeletedAt dynamically -func (r jobRunLookupDataQueryDeletedAtDateTime) SetIfPresent(value *DateTime) jobRunLookupDataSetParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunTriggeredByQueryTenantIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataSetParam{} + return workflowRunTriggeredByDefaultParam{} } + return r.HasSuffix(*value) +} - return r.Set(*value) +func (r workflowRunTriggeredByQueryTenantIDString) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldTenantID } -// Set the optional value of DeletedAt dynamically -func (r jobRunLookupDataQueryDeletedAtDateTime) SetOptional(value *DateTime) jobRunLookupDataSetParam { - if value == nil { +// base struct +type workflowRunTriggeredByQueryParentWorkflowRun struct{} - var v *DateTime - return jobRunLookupDataSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, +type workflowRunTriggeredByQueryParentRelations struct{} + +// WorkflowRunTriggeredBy -> Parent +// +// @relation +// @required +func (workflowRunTriggeredByQueryParentRelations) Where( + params ...WorkflowRunWhereParam, +) workflowRunTriggeredByDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "parent", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, }, - } + }, } +} - return r.Set(*value) +func (workflowRunTriggeredByQueryParentRelations) Fetch() workflowRunTriggeredByToParentFindUnique { + var v workflowRunTriggeredByToParentFindUnique + + v.query.Operation = "query" + v.query.Method = "parent" + v.query.Outputs = workflowRunOutput + + return v } -func (r jobRunLookupDataQueryDeletedAtDateTime) Equals(value DateTime) jobRunLookupDataWithPrismaDeletedAtEqualsParam { +func (r workflowRunTriggeredByQueryParentRelations) Link( + params WorkflowRunWhereParam, +) workflowRunTriggeredByWithPrismaParentSetParam { + var fields []builder.Field - return jobRunLookupDataWithPrismaDeletedAtEqualsParam{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunTriggeredByWithPrismaParentSetParam{} + } + + fields = append(fields, f) + + return workflowRunTriggeredByWithPrismaParentSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "parent", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r jobRunLookupDataQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) jobRunLookupDataWithPrismaDeletedAtEqualsParam { - if value == nil { - return jobRunLookupDataWithPrismaDeletedAtEqualsParam{} - } - return r.Equals(*value) -} +func (r workflowRunTriggeredByQueryParentRelations) Unlink() workflowRunTriggeredByWithPrismaParentSetParam { + var v workflowRunTriggeredByWithPrismaParentSetParam -func (r jobRunLookupDataQueryDeletedAtDateTime) EqualsOptional(value *DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ + v = workflowRunTriggeredByWithPrismaParentSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "parent", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r jobRunLookupDataQueryDeletedAtDateTime) IsNull() jobRunLookupDataDefaultParam { - var str *string = nil - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentWorkflowRun) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldParent +} + +// base struct +type workflowRunTriggeredByQueryParentIDString struct{} + +// Set the required value of ParentID +func (r workflowRunTriggeredByQueryParentIDString) Set(value string) workflowRunTriggeredBySetParam { + + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", + Value: value, + }, + } + +} + +// Set the optional value of ParentID dynamically +func (r workflowRunTriggeredByQueryParentIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { + if value == nil { + return workflowRunTriggeredBySetParam{} + } + + return r.Set(*value) +} + +func (r workflowRunTriggeredByQueryParentIDString) Equals(value string) workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam { + + return workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam{ + data: builder.Field{ + Name: "parentId", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r jobRunLookupDataQueryDeletedAtDateTime) Order(direction SortOrder) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam { + if value == nil { + return workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam{} + } + return r.Equals(*value) +} + +func (r workflowRunTriggeredByQueryParentIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Value: direction, }, } } -func (r jobRunLookupDataQueryDeletedAtDateTime) Cursor(cursor DateTime) jobRunLookupDataCursorParam { - return jobRunLookupDataCursorParam{ +func (r workflowRunTriggeredByQueryParentIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Value: cursor, }, } } -func (r jobRunLookupDataQueryDeletedAtDateTime) In(value []DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) In(value []string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "in", @@ -121905,17 +122546,17 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) In(value []DateTime) jobRunLooku } } -func (r jobRunLookupDataQueryDeletedAtDateTime) InIfPresent(value []DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) InIfPresent(value []string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.In(value) } -func (r jobRunLookupDataQueryDeletedAtDateTime) NotIn(value []DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) NotIn(value []string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "notIn", @@ -121926,17 +122567,17 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) NotIn(value []DateTime) jobRunLo } } -func (r jobRunLookupDataQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) NotInIfPresent(value []string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.NotIn(value) } -func (r jobRunLookupDataQueryDeletedAtDateTime) Lt(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) Lt(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "lt", @@ -121947,17 +122588,17 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) Lt(value DateTime) jobRunLookupD } } -func (r jobRunLookupDataQueryDeletedAtDateTime) LtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) LtIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Lt(*value) } -func (r jobRunLookupDataQueryDeletedAtDateTime) Lte(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) Lte(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "lte", @@ -121968,17 +122609,17 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) Lte(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryDeletedAtDateTime) LteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) LteIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Lte(*value) } -func (r jobRunLookupDataQueryDeletedAtDateTime) Gt(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) Gt(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "gt", @@ -121989,17 +122630,17 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) Gt(value DateTime) jobRunLookupD } } -func (r jobRunLookupDataQueryDeletedAtDateTime) GtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) GtIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Gt(*value) } -func (r jobRunLookupDataQueryDeletedAtDateTime) Gte(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) Gte(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { Name: "gte", @@ -122010,20 +122651,20 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) Gte(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryDeletedAtDateTime) GteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) GteIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Gte(*value) } -func (r jobRunLookupDataQueryDeletedAtDateTime) Not(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) Contains(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -122031,22 +122672,20 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) Not(value DateTime) jobRunLookup } } -func (r jobRunLookupDataQueryDeletedAtDateTime) NotIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) ContainsIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r jobRunLookupDataQueryDeletedAtDateTime) Before(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) StartsWith(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -122054,23 +122693,20 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) Before(value DateTime) jobRunLoo } } -// deprecated: Use LtIfPresent instead. -func (r jobRunLookupDataQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r jobRunLookupDataQueryDeletedAtDateTime) After(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) EndsWith(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -122078,23 +122714,20 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) After(value DateTime) jobRunLook } } -// deprecated: Use GtIfPresent instead. -func (r jobRunLookupDataQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r jobRunLookupDataQueryDeletedAtDateTime) BeforeEquals(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) Mode(value QueryMode) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -122102,23 +122735,20 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) BeforeEquals(value DateTime) job } } -// deprecated: Use LteIfPresent instead. -func (r jobRunLookupDataQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r jobRunLookupDataQueryDeletedAtDateTime) AfterEquals(value DateTime) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) Not(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "parentId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -122126,135 +122756,110 @@ func (r jobRunLookupDataQueryDeletedAtDateTime) AfterEquals(value DateTime) jobR } } -// deprecated: Use GteIfPresent instead. -func (r jobRunLookupDataQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryParentIDString) NotIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.AfterEquals(*value) -} - -func (r jobRunLookupDataQueryDeletedAtDateTime) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldDeletedAt + return r.Not(*value) } -// base struct -type jobRunLookupDataQueryJobRunJobRun struct{} - -type jobRunLookupDataQueryJobRunRelations struct{} - -// JobRunLookupData -> JobRun -// -// @relation -// @required -func (jobRunLookupDataQueryJobRunRelations) Where( - params ...JobRunWhereParam, -) jobRunLookupDataDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use StartsWith instead. - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryParentIDString) HasPrefix(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "jobRun", + Name: "parentId", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "starts_with", + Value: value, }, }, }, } } -func (jobRunLookupDataQueryJobRunRelations) Fetch() jobRunLookupDataToJobRunFindUnique { - var v jobRunLookupDataToJobRunFindUnique - - v.query.Operation = "query" - v.query.Method = "jobRun" - v.query.Outputs = jobRunOutput - - return v -} - -func (r jobRunLookupDataQueryJobRunRelations) Link( - params JobRunWhereParam, -) jobRunLookupDataWithPrismaJobRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return jobRunLookupDataWithPrismaJobRunSetParam{} +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunTriggeredByQueryParentIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByParamUnique { + if value == nil { + return workflowRunTriggeredByParamUnique{} } + return r.HasPrefix(*value) +} - fields = append(fields, f) +// deprecated: Use EndsWith instead. - return jobRunLookupDataWithPrismaJobRunSetParam{ +func (r workflowRunTriggeredByQueryParentIDString) HasSuffix(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "jobRun", + Name: "parentId", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "ends_with", + Value: value, }, }, }, } } -func (r jobRunLookupDataQueryJobRunRelations) Unlink() jobRunLookupDataWithPrismaJobRunSetParam { - var v jobRunLookupDataWithPrismaJobRunSetParam - - v = jobRunLookupDataWithPrismaJobRunSetParam{ - data: builder.Field{ - Name: "jobRun", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunTriggeredByQueryParentIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByParamUnique { + if value == nil { + return workflowRunTriggeredByParamUnique{} } - - return v + return r.HasSuffix(*value) } -func (r jobRunLookupDataQueryJobRunJobRun) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldJobRun +func (r workflowRunTriggeredByQueryParentIDString) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldParentID } // base struct -type jobRunLookupDataQueryJobRunIDString struct{} +type workflowRunTriggeredByQueryInputJson struct{} -// Set the required value of JobRunID -func (r jobRunLookupDataQueryJobRunIDString) Set(value string) jobRunLookupDataSetParam { +// Set the optional value of Input +func (r workflowRunTriggeredByQueryInputJson) Set(value JSON) workflowRunTriggeredBySetParam { - return jobRunLookupDataSetParam{ + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Value: value, }, } } -// Set the optional value of JobRunID dynamically -func (r jobRunLookupDataQueryJobRunIDString) SetIfPresent(value *String) jobRunLookupDataSetParam { +// Set the optional value of Input dynamically +func (r workflowRunTriggeredByQueryInputJson) SetIfPresent(value *JSON) workflowRunTriggeredBySetParam { if value == nil { - return jobRunLookupDataSetParam{} + return workflowRunTriggeredBySetParam{} } return r.Set(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Equals(value string) jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam { +// Set the optional value of Input dynamically +func (r workflowRunTriggeredByQueryInputJson) SetOptional(value *JSON) workflowRunTriggeredBySetParam { + if value == nil { - return jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam{ + var v *JSON + return workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "input", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workflowRunTriggeredByQueryInputJson) Equals(value JSON) workflowRunTriggeredByWithPrismaInputEqualsParam { + + return workflowRunTriggeredByWithPrismaInputEqualsParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { Name: "equals", @@ -122265,59 +122870,67 @@ func (r jobRunLookupDataQueryJobRunIDString) Equals(value string) jobRunLookupDa } } -func (r jobRunLookupDataQueryJobRunIDString) EqualsIfPresent(value *string) jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam { +func (r workflowRunTriggeredByQueryInputJson) EqualsIfPresent(value *JSON) workflowRunTriggeredByWithPrismaInputEqualsParam { if value == nil { - return jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam{} + return workflowRunTriggeredByWithPrismaInputEqualsParam{} } return r.Equals(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Order(direction SortOrder) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryInputJson) EqualsOptional(value *JSON) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", - Value: direction, + Name: "input", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } } -func (r jobRunLookupDataQueryJobRunIDString) Cursor(cursor string) jobRunLookupDataCursorParam { - return jobRunLookupDataCursorParam{ +func (r workflowRunTriggeredByQueryInputJson) IsNull() workflowRunTriggeredByDefaultParam { + var str *string = nil + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", - Value: cursor, + Name: "input", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, }, } } -func (r jobRunLookupDataQueryJobRunIDString) In(value []string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, + Name: "input", + Value: direction, }, } } -func (r jobRunLookupDataQueryJobRunIDString) InIfPresent(value []string) jobRunLookupDataParamUnique { - if value == nil { - return jobRunLookupDataParamUnique{} +func (r workflowRunTriggeredByQueryInputJson) Cursor(cursor JSON) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ + data: builder.Field{ + Name: "input", + Value: cursor, + }, } - return r.In(value) } -func (r jobRunLookupDataQueryJobRunIDString) NotIn(value []string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) Path(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "notIn", + Name: "path", Value: value, }, }, @@ -122325,20 +122938,20 @@ func (r jobRunLookupDataQueryJobRunIDString) NotIn(value []string) jobRunLookupD } } -func (r jobRunLookupDataQueryJobRunIDString) NotInIfPresent(value []string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) PathIfPresent(value []string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.NotIn(value) + return r.Path(value) } -func (r jobRunLookupDataQueryJobRunIDString) Lt(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) StringContains(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "lt", + Name: "string_contains", Value: value, }, }, @@ -122346,20 +122959,20 @@ func (r jobRunLookupDataQueryJobRunIDString) Lt(value string) jobRunLookupDataPa } } -func (r jobRunLookupDataQueryJobRunIDString) LtIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) StringContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Lt(*value) + return r.StringContains(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Lte(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) StringStartsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "lte", + Name: "string_starts_with", Value: value, }, }, @@ -122367,20 +122980,20 @@ func (r jobRunLookupDataQueryJobRunIDString) Lte(value string) jobRunLookupDataP } } -func (r jobRunLookupDataQueryJobRunIDString) LteIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) StringStartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Lte(*value) + return r.StringStartsWith(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Gt(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) StringEndsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "gt", + Name: "string_ends_with", Value: value, }, }, @@ -122388,20 +123001,20 @@ func (r jobRunLookupDataQueryJobRunIDString) Gt(value string) jobRunLookupDataPa } } -func (r jobRunLookupDataQueryJobRunIDString) GtIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) StringEndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Gt(*value) + return r.StringEndsWith(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Gte(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) ArrayContains(value JSON) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "gte", + Name: "array_contains", Value: value, }, }, @@ -122409,20 +123022,20 @@ func (r jobRunLookupDataQueryJobRunIDString) Gte(value string) jobRunLookupDataP } } -func (r jobRunLookupDataQueryJobRunIDString) GteIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) ArrayContainsIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Gte(*value) + return r.ArrayContains(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Contains(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) ArrayStartsWith(value JSON) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "contains", + Name: "array_starts_with", Value: value, }, }, @@ -122430,20 +123043,20 @@ func (r jobRunLookupDataQueryJobRunIDString) Contains(value string) jobRunLookup } } -func (r jobRunLookupDataQueryJobRunIDString) ContainsIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) ArrayStartsWithIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Contains(*value) + return r.ArrayStartsWith(*value) } -func (r jobRunLookupDataQueryJobRunIDString) StartsWith(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) ArrayEndsWith(value JSON) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "startsWith", + Name: "array_ends_with", Value: value, }, }, @@ -122451,20 +123064,20 @@ func (r jobRunLookupDataQueryJobRunIDString) StartsWith(value string) jobRunLook } } -func (r jobRunLookupDataQueryJobRunIDString) StartsWithIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) ArrayEndsWithIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.StartsWith(*value) + return r.ArrayEndsWith(*value) } -func (r jobRunLookupDataQueryJobRunIDString) EndsWith(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) Lt(value JSON) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -122472,20 +123085,20 @@ func (r jobRunLookupDataQueryJobRunIDString) EndsWith(value string) jobRunLookup } } -func (r jobRunLookupDataQueryJobRunIDString) EndsWithIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) LtIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.EndsWith(*value) + return r.Lt(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Mode(value QueryMode) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) Lte(value JSON) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -122493,20 +123106,20 @@ func (r jobRunLookupDataQueryJobRunIDString) Mode(value QueryMode) jobRunLookupD } } -func (r jobRunLookupDataQueryJobRunIDString) ModeIfPresent(value *QueryMode) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) LteIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Mode(*value) + return r.Lte(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Not(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) Gt(value JSON) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -122514,22 +123127,20 @@ func (r jobRunLookupDataQueryJobRunIDString) Not(value string) jobRunLookupDataP } } -func (r jobRunLookupDataQueryJobRunIDString) NotIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) GtIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.Not(*value) + return r.Gt(*value) } -// deprecated: Use StartsWith instead. - -func (r jobRunLookupDataQueryJobRunIDString) HasPrefix(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) Gte(value JSON) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gte", Value: value, }, }, @@ -122537,23 +123148,20 @@ func (r jobRunLookupDataQueryJobRunIDString) HasPrefix(value string) jobRunLooku } } -// deprecated: Use StartsWithIfPresent instead. -func (r jobRunLookupDataQueryJobRunIDString) HasPrefixIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) GteIfPresent(value *JSON) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.HasPrefix(*value) + return r.Gte(*value) } -// deprecated: Use EndsWith instead. - -func (r jobRunLookupDataQueryJobRunIDString) HasSuffix(value string) jobRunLookupDataParamUnique { - return jobRunLookupDataParamUnique{ +func (r workflowRunTriggeredByQueryInputJson) Not(value JSONNullValueFilter) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "input", Fields: []builder.Field{ { - Name: "ends_with", + Name: "not", Value: value, }, }, @@ -122561,39 +123169,38 @@ func (r jobRunLookupDataQueryJobRunIDString) HasSuffix(value string) jobRunLooku } } -// deprecated: Use EndsWithIfPresent instead. -func (r jobRunLookupDataQueryJobRunIDString) HasSuffixIfPresent(value *string) jobRunLookupDataParamUnique { +func (r workflowRunTriggeredByQueryInputJson) NotIfPresent(value *JSONNullValueFilter) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataParamUnique{} + return workflowRunTriggeredByDefaultParam{} } - return r.HasSuffix(*value) + return r.Not(*value) } -func (r jobRunLookupDataQueryJobRunIDString) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldJobRunID +func (r workflowRunTriggeredByQueryInputJson) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldInput } // base struct -type jobRunLookupDataQueryTenantTenant struct{} +type workflowRunTriggeredByQueryEventEvent struct{} -type jobRunLookupDataQueryTenantRelations struct{} +type workflowRunTriggeredByQueryEventRelations struct{} -// JobRunLookupData -> Tenant +// WorkflowRunTriggeredBy -> Event // // @relation -// @required -func (jobRunLookupDataQueryTenantRelations) Where( - params ...TenantWhereParam, -) jobRunLookupDataDefaultParam { +// @optional +func (workflowRunTriggeredByQueryEventRelations) Where( + params ...EventWhereParam, +) workflowRunTriggeredByDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return jobRunLookupDataDefaultParam{ + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "event", Fields: []builder.Field{ { Name: "is", @@ -122604,31 +123211,31 @@ func (jobRunLookupDataQueryTenantRelations) Where( } } -func (jobRunLookupDataQueryTenantRelations) Fetch() jobRunLookupDataToTenantFindUnique { - var v jobRunLookupDataToTenantFindUnique +func (workflowRunTriggeredByQueryEventRelations) Fetch() workflowRunTriggeredByToEventFindUnique { + var v workflowRunTriggeredByToEventFindUnique v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput + v.query.Method = "event" + v.query.Outputs = eventOutput return v } -func (r jobRunLookupDataQueryTenantRelations) Link( - params TenantWhereParam, -) jobRunLookupDataWithPrismaTenantSetParam { +func (r workflowRunTriggeredByQueryEventRelations) Link( + params EventWhereParam, +) workflowRunTriggeredBySetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return jobRunLookupDataWithPrismaTenantSetParam{} + return workflowRunTriggeredBySetParam{} } fields = append(fields, f) - return jobRunLookupDataWithPrismaTenantSetParam{ + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "tenant", + Name: "event", Fields: []builder.Field{ { Name: "connect", @@ -122639,12 +123246,12 @@ func (r jobRunLookupDataQueryTenantRelations) Link( } } -func (r jobRunLookupDataQueryTenantRelations) Unlink() jobRunLookupDataWithPrismaTenantSetParam { - var v jobRunLookupDataWithPrismaTenantSetParam +func (r workflowRunTriggeredByQueryEventRelations) Unlink() workflowRunTriggeredBySetParam { + var v workflowRunTriggeredBySetParam - v = jobRunLookupDataWithPrismaTenantSetParam{ + v = workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "tenant", + Name: "event", Fields: []builder.Field{ { Name: "disconnect", @@ -122657,39 +123264,55 @@ func (r jobRunLookupDataQueryTenantRelations) Unlink() jobRunLookupDataWithPrism return v } -func (r jobRunLookupDataQueryTenantTenant) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldTenant +func (r workflowRunTriggeredByQueryEventEvent) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldEvent } // base struct -type jobRunLookupDataQueryTenantIDString struct{} +type workflowRunTriggeredByQueryEventIDString struct{} -// Set the required value of TenantID -func (r jobRunLookupDataQueryTenantIDString) Set(value string) jobRunLookupDataSetParam { +// Set the optional value of EventID +func (r workflowRunTriggeredByQueryEventIDString) Set(value string) workflowRunTriggeredBySetParam { - return jobRunLookupDataSetParam{ + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Value: value, }, } } -// Set the optional value of TenantID dynamically -func (r jobRunLookupDataQueryTenantIDString) SetIfPresent(value *String) jobRunLookupDataSetParam { +// Set the optional value of EventID dynamically +func (r workflowRunTriggeredByQueryEventIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { if value == nil { - return jobRunLookupDataSetParam{} + return workflowRunTriggeredBySetParam{} } return r.Set(*value) } -func (r jobRunLookupDataQueryTenantIDString) Equals(value string) jobRunLookupDataWithPrismaTenantIDEqualsParam { +// Set the optional value of EventID dynamically +func (r workflowRunTriggeredByQueryEventIDString) SetOptional(value *String) workflowRunTriggeredBySetParam { + if value == nil { - return jobRunLookupDataWithPrismaTenantIDEqualsParam{ + var v *string + return workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "eventId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workflowRunTriggeredByQueryEventIDString) Equals(value string) workflowRunTriggeredByWithPrismaEventIDEqualsParam { + + return workflowRunTriggeredByWithPrismaEventIDEqualsParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "equals", @@ -122700,35 +123323,64 @@ func (r jobRunLookupDataQueryTenantIDString) Equals(value string) jobRunLookupDa } } -func (r jobRunLookupDataQueryTenantIDString) EqualsIfPresent(value *string) jobRunLookupDataWithPrismaTenantIDEqualsParam { +func (r workflowRunTriggeredByQueryEventIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaEventIDEqualsParam { if value == nil { - return jobRunLookupDataWithPrismaTenantIDEqualsParam{} + return workflowRunTriggeredByWithPrismaEventIDEqualsParam{} } return r.Equals(*value) } -func (r jobRunLookupDataQueryTenantIDString) Order(direction SortOrder) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) EqualsOptional(value *String) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunTriggeredByQueryEventIDString) IsNull() workflowRunTriggeredByDefaultParam { + var str *string = nil + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "eventId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workflowRunTriggeredByQueryEventIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "eventId", Value: direction, }, } } -func (r jobRunLookupDataQueryTenantIDString) Cursor(cursor string) jobRunLookupDataCursorParam { - return jobRunLookupDataCursorParam{ +func (r workflowRunTriggeredByQueryEventIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Value: cursor, }, } } -func (r jobRunLookupDataQueryTenantIDString) In(value []string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) In(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "in", @@ -122739,17 +123391,17 @@ func (r jobRunLookupDataQueryTenantIDString) In(value []string) jobRunLookupData } } -func (r jobRunLookupDataQueryTenantIDString) InIfPresent(value []string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) InIfPresent(value []string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.In(value) } -func (r jobRunLookupDataQueryTenantIDString) NotIn(value []string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) NotIn(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "notIn", @@ -122760,17 +123412,17 @@ func (r jobRunLookupDataQueryTenantIDString) NotIn(value []string) jobRunLookupD } } -func (r jobRunLookupDataQueryTenantIDString) NotInIfPresent(value []string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) NotInIfPresent(value []string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.NotIn(value) } -func (r jobRunLookupDataQueryTenantIDString) Lt(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) Lt(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "lt", @@ -122781,17 +123433,17 @@ func (r jobRunLookupDataQueryTenantIDString) Lt(value string) jobRunLookupDataDe } } -func (r jobRunLookupDataQueryTenantIDString) LtIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) LtIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Lt(*value) } -func (r jobRunLookupDataQueryTenantIDString) Lte(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) Lte(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "lte", @@ -122802,17 +123454,17 @@ func (r jobRunLookupDataQueryTenantIDString) Lte(value string) jobRunLookupDataD } } -func (r jobRunLookupDataQueryTenantIDString) LteIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) LteIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Lte(*value) } -func (r jobRunLookupDataQueryTenantIDString) Gt(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) Gt(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "gt", @@ -122823,17 +123475,17 @@ func (r jobRunLookupDataQueryTenantIDString) Gt(value string) jobRunLookupDataDe } } -func (r jobRunLookupDataQueryTenantIDString) GtIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) GtIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Gt(*value) } -func (r jobRunLookupDataQueryTenantIDString) Gte(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) Gte(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "gte", @@ -122844,17 +123496,17 @@ func (r jobRunLookupDataQueryTenantIDString) Gte(value string) jobRunLookupDataD } } -func (r jobRunLookupDataQueryTenantIDString) GteIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) GteIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Gte(*value) } -func (r jobRunLookupDataQueryTenantIDString) Contains(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) Contains(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "contains", @@ -122865,17 +123517,17 @@ func (r jobRunLookupDataQueryTenantIDString) Contains(value string) jobRunLookup } } -func (r jobRunLookupDataQueryTenantIDString) ContainsIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) ContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Contains(*value) } -func (r jobRunLookupDataQueryTenantIDString) StartsWith(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) StartsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "startsWith", @@ -122886,17 +123538,17 @@ func (r jobRunLookupDataQueryTenantIDString) StartsWith(value string) jobRunLook } } -func (r jobRunLookupDataQueryTenantIDString) StartsWithIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.StartsWith(*value) } -func (r jobRunLookupDataQueryTenantIDString) EndsWith(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) EndsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "endsWith", @@ -122907,17 +123559,17 @@ func (r jobRunLookupDataQueryTenantIDString) EndsWith(value string) jobRunLookup } } -func (r jobRunLookupDataQueryTenantIDString) EndsWithIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.EndsWith(*value) } -func (r jobRunLookupDataQueryTenantIDString) Mode(value QueryMode) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) Mode(value QueryMode) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "mode", @@ -122928,17 +123580,17 @@ func (r jobRunLookupDataQueryTenantIDString) Mode(value QueryMode) jobRunLookupD } } -func (r jobRunLookupDataQueryTenantIDString) ModeIfPresent(value *QueryMode) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Mode(*value) } -func (r jobRunLookupDataQueryTenantIDString) Not(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) Not(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "not", @@ -122949,19 +123601,19 @@ func (r jobRunLookupDataQueryTenantIDString) Not(value string) jobRunLookupDataD } } -func (r jobRunLookupDataQueryTenantIDString) NotIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) NotIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r jobRunLookupDataQueryTenantIDString) HasPrefix(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) HasPrefix(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "starts_with", @@ -122973,19 +123625,19 @@ func (r jobRunLookupDataQueryTenantIDString) HasPrefix(value string) jobRunLooku } // deprecated: Use StartsWithIfPresent instead. -func (r jobRunLookupDataQueryTenantIDString) HasPrefixIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r jobRunLookupDataQueryTenantIDString) HasSuffix(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryEventIDString) HasSuffix(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "eventId", Fields: []builder.Field{ { Name: "ends_with", @@ -122997,49 +123649,137 @@ func (r jobRunLookupDataQueryTenantIDString) HasSuffix(value string) jobRunLooku } // deprecated: Use EndsWithIfPresent instead. -func (r jobRunLookupDataQueryTenantIDString) HasSuffixIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryEventIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } return r.HasSuffix(*value) } -func (r jobRunLookupDataQueryTenantIDString) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldTenantID +func (r workflowRunTriggeredByQueryEventIDString) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldEventID } // base struct -type jobRunLookupDataQueryDataJson struct{} +type workflowRunTriggeredByQueryCronWorkflowTriggerCronRef struct{} -// Set the optional value of Data -func (r jobRunLookupDataQueryDataJson) Set(value JSON) jobRunLookupDataSetParam { +type workflowRunTriggeredByQueryCronRelations struct{} - return jobRunLookupDataSetParam{ +// WorkflowRunTriggeredBy -> Cron +// +// @relation +// @optional +func (workflowRunTriggeredByQueryCronRelations) Where( + params ...WorkflowTriggerCronRefWhereParam, +) workflowRunTriggeredByDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cron", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (workflowRunTriggeredByQueryCronRelations) Fetch() workflowRunTriggeredByToCronFindUnique { + var v workflowRunTriggeredByToCronFindUnique + + v.query.Operation = "query" + v.query.Method = "cron" + v.query.Outputs = workflowTriggerCronRefOutput + + return v +} + +func (r workflowRunTriggeredByQueryCronRelations) Link( + params WorkflowTriggerCronRefWhereParam, +) workflowRunTriggeredBySetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunTriggeredBySetParam{} + } + + fields = append(fields, f) + + return workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "cron", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r workflowRunTriggeredByQueryCronRelations) Unlink() workflowRunTriggeredBySetParam { + var v workflowRunTriggeredBySetParam + + v = workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "cron", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r workflowRunTriggeredByQueryCronWorkflowTriggerCronRef) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldCron +} + +// base struct +type workflowRunTriggeredByQueryCronParentIDString struct{} + +// Set the optional value of CronParentID +func (r workflowRunTriggeredByQueryCronParentIDString) Set(value string) workflowRunTriggeredBySetParam { + + return workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "cronParentId", Value: value, }, } } -// Set the optional value of Data dynamically -func (r jobRunLookupDataQueryDataJson) SetIfPresent(value *JSON) jobRunLookupDataSetParam { +// Set the optional value of CronParentID dynamically +func (r workflowRunTriggeredByQueryCronParentIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { if value == nil { - return jobRunLookupDataSetParam{} + return workflowRunTriggeredBySetParam{} } return r.Set(*value) } -// Set the optional value of Data dynamically -func (r jobRunLookupDataQueryDataJson) SetOptional(value *JSON) jobRunLookupDataSetParam { +// Set the optional value of CronParentID dynamically +func (r workflowRunTriggeredByQueryCronParentIDString) SetOptional(value *String) workflowRunTriggeredBySetParam { if value == nil { - var v *JSON - return jobRunLookupDataSetParam{ + var v *string + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Value: v, }, } @@ -123048,11 +123788,11 @@ func (r jobRunLookupDataQueryDataJson) SetOptional(value *JSON) jobRunLookupData return r.Set(*value) } -func (r jobRunLookupDataQueryDataJson) Equals(value JSON) jobRunLookupDataWithPrismaDataEqualsParam { +func (r workflowRunTriggeredByQueryCronParentIDString) Equals(value string) workflowRunTriggeredByWithPrismaCronParentIDEqualsParam { - return jobRunLookupDataWithPrismaDataEqualsParam{ + return workflowRunTriggeredByWithPrismaCronParentIDEqualsParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { Name: "equals", @@ -123063,17 +123803,17 @@ func (r jobRunLookupDataQueryDataJson) Equals(value JSON) jobRunLookupDataWithPr } } -func (r jobRunLookupDataQueryDataJson) EqualsIfPresent(value *JSON) jobRunLookupDataWithPrismaDataEqualsParam { +func (r workflowRunTriggeredByQueryCronParentIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaCronParentIDEqualsParam { if value == nil { - return jobRunLookupDataWithPrismaDataEqualsParam{} + return workflowRunTriggeredByWithPrismaCronParentIDEqualsParam{} } return r.Equals(*value) } -func (r jobRunLookupDataQueryDataJson) EqualsOptional(value *JSON) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) EqualsOptional(value *String) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { Name: "equals", @@ -123084,11 +123824,11 @@ func (r jobRunLookupDataQueryDataJson) EqualsOptional(value *JSON) jobRunLookupD } } -func (r jobRunLookupDataQueryDataJson) IsNull() jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) IsNull() workflowRunTriggeredByDefaultParam { var str *string = nil - return jobRunLookupDataDefaultParam{ + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { Name: "equals", @@ -123099,31 +123839,31 @@ func (r jobRunLookupDataQueryDataJson) IsNull() jobRunLookupDataDefaultParam { } } -func (r jobRunLookupDataQueryDataJson) Order(direction SortOrder) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Value: direction, }, } } -func (r jobRunLookupDataQueryDataJson) Cursor(cursor JSON) jobRunLookupDataCursorParam { - return jobRunLookupDataCursorParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Value: cursor, }, } } -func (r jobRunLookupDataQueryDataJson) Path(value []string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) In(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -123131,20 +123871,20 @@ func (r jobRunLookupDataQueryDataJson) Path(value []string) jobRunLookupDataDefa } } -func (r jobRunLookupDataQueryDataJson) PathIfPresent(value []string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) InIfPresent(value []string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r jobRunLookupDataQueryDataJson) StringContains(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) NotIn(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -123152,20 +123892,20 @@ func (r jobRunLookupDataQueryDataJson) StringContains(value string) jobRunLookup } } -func (r jobRunLookupDataQueryDataJson) StringContainsIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) NotInIfPresent(value []string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r jobRunLookupDataQueryDataJson) StringStartsWith(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Lt(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -123173,20 +123913,20 @@ func (r jobRunLookupDataQueryDataJson) StringStartsWith(value string) jobRunLook } } -func (r jobRunLookupDataQueryDataJson) StringStartsWithIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) LtIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r jobRunLookupDataQueryDataJson) StringEndsWith(value string) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Lte(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -123194,20 +123934,20 @@ func (r jobRunLookupDataQueryDataJson) StringEndsWith(value string) jobRunLookup } } -func (r jobRunLookupDataQueryDataJson) StringEndsWithIfPresent(value *string) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) LteIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r jobRunLookupDataQueryDataJson) ArrayContains(value JSON) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Gt(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -123215,20 +123955,20 @@ func (r jobRunLookupDataQueryDataJson) ArrayContains(value JSON) jobRunLookupDat } } -func (r jobRunLookupDataQueryDataJson) ArrayContainsIfPresent(value *JSON) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) GtIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r jobRunLookupDataQueryDataJson) ArrayStartsWith(value JSON) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Gte(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -123236,20 +123976,20 @@ func (r jobRunLookupDataQueryDataJson) ArrayStartsWith(value JSON) jobRunLookupD } } -func (r jobRunLookupDataQueryDataJson) ArrayStartsWithIfPresent(value *JSON) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) GteIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r jobRunLookupDataQueryDataJson) ArrayEndsWith(value JSON) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Contains(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "contains", Value: value, }, }, @@ -123257,20 +123997,20 @@ func (r jobRunLookupDataQueryDataJson) ArrayEndsWith(value JSON) jobRunLookupDat } } -func (r jobRunLookupDataQueryDataJson) ArrayEndsWithIfPresent(value *JSON) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) ContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Contains(*value) } -func (r jobRunLookupDataQueryDataJson) Lt(value JSON) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) StartsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -123278,20 +124018,20 @@ func (r jobRunLookupDataQueryDataJson) Lt(value JSON) jobRunLookupDataDefaultPar } } -func (r jobRunLookupDataQueryDataJson) LtIfPresent(value *JSON) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Lt(*value) + return r.StartsWith(*value) } -func (r jobRunLookupDataQueryDataJson) Lte(value JSON) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) EndsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "lte", + Name: "endsWith", Value: value, }, }, @@ -123299,20 +124039,20 @@ func (r jobRunLookupDataQueryDataJson) Lte(value JSON) jobRunLookupDataDefaultPa } } -func (r jobRunLookupDataQueryDataJson) LteIfPresent(value *JSON) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Lte(*value) + return r.EndsWith(*value) } -func (r jobRunLookupDataQueryDataJson) Gt(value JSON) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Mode(value QueryMode) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "gt", + Name: "mode", Value: value, }, }, @@ -123320,20 +124060,20 @@ func (r jobRunLookupDataQueryDataJson) Gt(value JSON) jobRunLookupDataDefaultPar } } -func (r jobRunLookupDataQueryDataJson) GtIfPresent(value *JSON) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Gt(*value) + return r.Mode(*value) } -func (r jobRunLookupDataQueryDataJson) Gte(value JSON) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +func (r workflowRunTriggeredByQueryCronParentIDString) Not(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -123341,20 +124081,22 @@ func (r jobRunLookupDataQueryDataJson) Gte(value JSON) jobRunLookupDataDefaultPa } } -func (r jobRunLookupDataQueryDataJson) GteIfPresent(value *JSON) jobRunLookupDataDefaultParam { +func (r workflowRunTriggeredByQueryCronParentIDString) NotIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Gte(*value) + return r.Not(*value) } -func (r jobRunLookupDataQueryDataJson) Not(value JSONNullValueFilter) jobRunLookupDataDefaultParam { - return jobRunLookupDataDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r workflowRunTriggeredByQueryCronParentIDString) HasPrefix(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "data", + Name: "cronParentId", Fields: []builder.Field{ { - Name: "not", + Name: "starts_with", Value: value, }, }, @@ -123362,267 +124104,108 @@ func (r jobRunLookupDataQueryDataJson) Not(value JSONNullValueFilter) jobRunLook } } -func (r jobRunLookupDataQueryDataJson) NotIfPresent(value *JSONNullValueFilter) jobRunLookupDataDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunTriggeredByQueryCronParentIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return jobRunLookupDataDefaultParam{} + return workflowRunTriggeredByDefaultParam{} } - return r.Not(*value) -} - -func (r jobRunLookupDataQueryDataJson) Field() jobRunLookupDataPrismaFields { - return jobRunLookupDataFieldData + return r.HasPrefix(*value) } -// StepRun acts as a namespaces to access query methods for the StepRun model -var StepRun = stepRunQuery{} - -// stepRunQuery exposes query functions for the stepRun model -type stepRunQuery struct { - - // ID - // - // @required - ID stepRunQueryIDString - - // CreatedAt - // - // @required - CreatedAt stepRunQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt stepRunQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt stepRunQueryDeletedAtDateTime - - Tenant stepRunQueryTenantRelations - - // TenantID - // - // @required - TenantID stepRunQueryTenantIDString - - JobRun stepRunQueryJobRunRelations - - // JobRunID - // - // @required - JobRunID stepRunQueryJobRunIDString - - Step stepRunQueryStepRelations - - // StepID - // - // @required - StepID stepRunQueryStepIDString - - Children stepRunQueryChildrenRelations - - Parents stepRunQueryParentsRelations - - // Order - // - // @required - Order stepRunQueryOrderBigInt - - Worker stepRunQueryWorkerRelations - - // WorkerID - // - // @optional - WorkerID stepRunQueryWorkerIDString - - Ticker stepRunQueryTickerRelations - - // TickerID - // - // @optional - TickerID stepRunQueryTickerIDString - - // Status - // - // @required - Status stepRunQueryStatusStepRunStatus - - // Input - // - // @optional - Input stepRunQueryInputJson - - // Output - // - // @optional - Output stepRunQueryOutputJson - - // InputSchema - // - // @optional - InputSchema stepRunQueryInputSchemaJson - - // RequeueAfter - // - // @optional - RequeueAfter stepRunQueryRequeueAfterDateTime - - // ScheduleTimeoutAt - // - // @optional - ScheduleTimeoutAt stepRunQueryScheduleTimeoutAtDateTime - - // RetryCount - // - // @required - RetryCount stepRunQueryRetryCountInt - - // Error - // - // @optional - Error stepRunQueryErrorString - - // StartedAt - // - // @optional - StartedAt stepRunQueryStartedAtDateTime - - // FinishedAt - // - // @optional - FinishedAt stepRunQueryFinishedAtDateTime - - // TimeoutAt - // - // @optional - TimeoutAt stepRunQueryTimeoutAtDateTime - - // CancelledAt - // - // @optional - CancelledAt stepRunQueryCancelledAtDateTime - - // CancelledReason - // - // @optional - CancelledReason stepRunQueryCancelledReasonString - - // CancelledError - // - // @optional - CancelledError stepRunQueryCancelledErrorString - - // CallerFiles - // - // @optional - CallerFiles stepRunQueryCallerFilesJson - - // GitRepoBranch - // - // @optional - GitRepoBranch stepRunQueryGitRepoBranchString - - // SemaphoreReleased - // - // @required - SemaphoreReleased stepRunQuerySemaphoreReleasedBoolean - - SemaphoreSlot stepRunQuerySemaphoreSlotRelations - - ArchivedResults stepRunQueryArchivedResultsRelations - - StreamEvents stepRunQueryStreamEventsRelations - - Logs stepRunQueryLogsRelations +// deprecated: Use EndsWith instead. - ChildWorkflowRuns stepRunQueryChildWorkflowRunsRelations +func (r workflowRunTriggeredByQueryCronParentIDString) HasSuffix(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "cronParentId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} - ChildSchedules stepRunQueryChildSchedulesRelations +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunTriggeredByQueryCronParentIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByDefaultParam { + if value == nil { + return workflowRunTriggeredByDefaultParam{} + } + return r.HasSuffix(*value) +} - Events stepRunQueryEventsRelations +func (r workflowRunTriggeredByQueryCronParentIDString) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldCronParentID } -func (stepRunQuery) Not(params ...StepRunWhereParam) stepRunDefaultParam { - var fields []builder.Field +// base struct +type workflowRunTriggeredByQueryCronScheduleString struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the optional value of CronSchedule +func (r workflowRunTriggeredByQueryCronScheduleString) Set(value string) workflowRunTriggeredBySetParam { - return stepRunDefaultParam{ + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "cronSchedule", + Value: value, }, } -} -func (stepRunQuery) Or(params ...StepRunWhereParam) stepRunDefaultParam { - var fields []builder.Field +} - for _, q := range params { - fields = append(fields, q.field()) +// Set the optional value of CronSchedule dynamically +func (r workflowRunTriggeredByQueryCronScheduleString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { + if value == nil { + return workflowRunTriggeredBySetParam{} } - return stepRunDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, - } + return r.Set(*value) } -func (stepRunQuery) And(params ...StepRunWhereParam) stepRunDefaultParam { - var fields []builder.Field +// Set the optional value of CronSchedule dynamically +func (r workflowRunTriggeredByQueryCronScheduleString) SetOptional(value *String) workflowRunTriggeredBySetParam { + if value == nil { - for _, q := range params { - fields = append(fields, q.field()) + var v *string + return workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "cronSchedule", + Value: v, + }, + } } - return stepRunDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } + return r.Set(*value) } -// base struct -type stepRunQueryIDString struct{} - -// Set the required value of ID -func (r stepRunQueryIDString) Set(value string) stepRunSetParam { +func (r workflowRunTriggeredByQueryCronScheduleString) Equals(value string) workflowRunTriggeredByWithPrismaCronScheduleEqualsParam { - return stepRunSetParam{ + return workflowRunTriggeredByWithPrismaCronScheduleEqualsParam{ data: builder.Field{ - Name: "id", - Value: value, + Name: "cronSchedule", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } - } -// Set the optional value of ID dynamically -func (r stepRunQueryIDString) SetIfPresent(value *String) stepRunSetParam { +func (r workflowRunTriggeredByQueryCronScheduleString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaCronScheduleEqualsParam { if value == nil { - return stepRunSetParam{} + return workflowRunTriggeredByWithPrismaCronScheduleEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r stepRunQueryIDString) Equals(value string) stepRunWithPrismaIDEqualsUniqueParam { - - return stepRunWithPrismaIDEqualsUniqueParam{ +func (r workflowRunTriggeredByQueryCronScheduleString) EqualsOptional(value *String) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "equals", @@ -123633,35 +124216,43 @@ func (r stepRunQueryIDString) Equals(value string) stepRunWithPrismaIDEqualsUniq } } -func (r stepRunQueryIDString) EqualsIfPresent(value *string) stepRunWithPrismaIDEqualsUniqueParam { - if value == nil { - return stepRunWithPrismaIDEqualsUniqueParam{} +func (r workflowRunTriggeredByQueryCronScheduleString) IsNull() workflowRunTriggeredByDefaultParam { + var str *string = nil + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "cronSchedule", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r stepRunQueryIDString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryCronScheduleString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Value: direction, }, } } -func (r stepRunQueryIDString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r workflowRunTriggeredByQueryCronScheduleString) Cursor(cursor string) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Value: cursor, }, } } -func (r stepRunQueryIDString) In(value []string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) In(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "in", @@ -123672,17 +124263,17 @@ func (r stepRunQueryIDString) In(value []string) stepRunParamUnique { } } -func (r stepRunQueryIDString) InIfPresent(value []string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) InIfPresent(value []string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.In(value) } -func (r stepRunQueryIDString) NotIn(value []string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) NotIn(value []string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "notIn", @@ -123693,17 +124284,17 @@ func (r stepRunQueryIDString) NotIn(value []string) stepRunParamUnique { } } -func (r stepRunQueryIDString) NotInIfPresent(value []string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) NotInIfPresent(value []string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryIDString) Lt(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) Lt(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "lt", @@ -123714,17 +124305,17 @@ func (r stepRunQueryIDString) Lt(value string) stepRunParamUnique { } } -func (r stepRunQueryIDString) LtIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) LtIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryIDString) Lte(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) Lte(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "lte", @@ -123735,17 +124326,17 @@ func (r stepRunQueryIDString) Lte(value string) stepRunParamUnique { } } -func (r stepRunQueryIDString) LteIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) LteIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryIDString) Gt(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) Gt(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "gt", @@ -123756,17 +124347,17 @@ func (r stepRunQueryIDString) Gt(value string) stepRunParamUnique { } } -func (r stepRunQueryIDString) GtIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) GtIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryIDString) Gte(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) Gte(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "gte", @@ -123777,17 +124368,17 @@ func (r stepRunQueryIDString) Gte(value string) stepRunParamUnique { } } -func (r stepRunQueryIDString) GteIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) GteIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryIDString) Contains(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) Contains(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "contains", @@ -123798,17 +124389,17 @@ func (r stepRunQueryIDString) Contains(value string) stepRunParamUnique { } } -func (r stepRunQueryIDString) ContainsIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) ContainsIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Contains(*value) } -func (r stepRunQueryIDString) StartsWith(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) StartsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "startsWith", @@ -123819,17 +124410,17 @@ func (r stepRunQueryIDString) StartsWith(value string) stepRunParamUnique { } } -func (r stepRunQueryIDString) StartsWithIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) StartsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.StartsWith(*value) } -func (r stepRunQueryIDString) EndsWith(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) EndsWith(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "endsWith", @@ -123840,17 +124431,17 @@ func (r stepRunQueryIDString) EndsWith(value string) stepRunParamUnique { } } -func (r stepRunQueryIDString) EndsWithIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) EndsWithIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.EndsWith(*value) } -func (r stepRunQueryIDString) Mode(value QueryMode) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) Mode(value QueryMode) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "mode", @@ -123861,17 +124452,17 @@ func (r stepRunQueryIDString) Mode(value QueryMode) stepRunParamUnique { } } -func (r stepRunQueryIDString) ModeIfPresent(value *QueryMode) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Mode(*value) } -func (r stepRunQueryIDString) Not(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) Not(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "not", @@ -123882,19 +124473,19 @@ func (r stepRunQueryIDString) Not(value string) stepRunParamUnique { } } -func (r stepRunQueryIDString) NotIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) NotIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRunQueryIDString) HasPrefix(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) HasPrefix(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "starts_with", @@ -123906,19 +124497,19 @@ func (r stepRunQueryIDString) HasPrefix(value string) stepRunParamUnique { } // deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryIDString) HasPrefixIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) HasPrefixIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRunQueryIDString) HasSuffix(value string) stepRunParamUnique { - return stepRunParamUnique{ +func (r workflowRunTriggeredByQueryCronScheduleString) HasSuffix(value string) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "id", + Name: "cronSchedule", Fields: []builder.Field{ { Name: "ends_with", @@ -123930,88 +124521,153 @@ func (r stepRunQueryIDString) HasSuffix(value string) stepRunParamUnique { } // deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryIDString) HasSuffixIfPresent(value *string) stepRunParamUnique { +func (r workflowRunTriggeredByQueryCronScheduleString) HasSuffixIfPresent(value *string) workflowRunTriggeredByDefaultParam { if value == nil { - return stepRunParamUnique{} + return workflowRunTriggeredByDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRunQueryIDString) Field() stepRunPrismaFields { - return stepRunFieldID +func (r workflowRunTriggeredByQueryCronScheduleString) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldCronSchedule } // base struct -type stepRunQueryCreatedAtDateTime struct{} +type workflowRunTriggeredByQueryScheduledWorkflowTriggerScheduledRef struct{} -// Set the required value of CreatedAt -func (r stepRunQueryCreatedAtDateTime) Set(value DateTime) stepRunSetParam { +type workflowRunTriggeredByQueryScheduledRelations struct{} - return stepRunSetParam{ +// WorkflowRunTriggeredBy -> Scheduled +// +// @relation +// @optional +func (workflowRunTriggeredByQueryScheduledRelations) Where( + params ...WorkflowTriggerScheduledRefWhereParam, +) workflowRunTriggeredByDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workflowRunTriggeredByDefaultParam{ data: builder.Field{ - Name: "createdAt", - Value: value, + Name: "scheduled", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, }, } +} +func (workflowRunTriggeredByQueryScheduledRelations) Fetch() workflowRunTriggeredByToScheduledFindUnique { + var v workflowRunTriggeredByToScheduledFindUnique + + v.query.Operation = "query" + v.query.Method = "scheduled" + v.query.Outputs = workflowTriggerScheduledRefOutput + + return v } -// Set the optional value of CreatedAt dynamically -func (r stepRunQueryCreatedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { - if value == nil { - return stepRunSetParam{} +func (r workflowRunTriggeredByQueryScheduledRelations) Link( + params WorkflowTriggerScheduledRefWhereParam, +) workflowRunTriggeredBySetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return workflowRunTriggeredBySetParam{} } - return r.Set(*value) + fields = append(fields, f) + + return workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "scheduled", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } } -func (r stepRunQueryCreatedAtDateTime) Equals(value DateTime) stepRunWithPrismaCreatedAtEqualsParam { +func (r workflowRunTriggeredByQueryScheduledRelations) Unlink() workflowRunTriggeredBySetParam { + var v workflowRunTriggeredBySetParam - return stepRunWithPrismaCreatedAtEqualsParam{ + v = workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "createdAt", + Name: "scheduled", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r stepRunQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaCreatedAtEqualsParam { - if value == nil { - return stepRunWithPrismaCreatedAtEqualsParam{} - } - return r.Equals(*value) +func (r workflowRunTriggeredByQueryScheduledWorkflowTriggerScheduledRef) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldScheduled } -func (r stepRunQueryCreatedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +// base struct +type workflowRunTriggeredByQueryScheduledIDString struct{} + +// Set the optional value of ScheduledID +func (r workflowRunTriggeredByQueryScheduledIDString) Set(value string) workflowRunTriggeredBySetParam { + + return workflowRunTriggeredBySetParam{ data: builder.Field{ - Name: "createdAt", - Value: direction, + Name: "scheduledId", + Value: value, }, } + } -func (r stepRunQueryCreatedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ - data: builder.Field{ - Name: "createdAt", - Value: cursor, - }, +// Set the optional value of ScheduledID dynamically +func (r workflowRunTriggeredByQueryScheduledIDString) SetIfPresent(value *String) workflowRunTriggeredBySetParam { + if value == nil { + return workflowRunTriggeredBySetParam{} } + + return r.Set(*value) } -func (r stepRunQueryCreatedAtDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +// Set the optional value of ScheduledID dynamically +func (r workflowRunTriggeredByQueryScheduledIDString) SetOptional(value *String) workflowRunTriggeredBySetParam { + if value == nil { + + var v *string + return workflowRunTriggeredBySetParam{ + data: builder.Field{ + Name: "scheduledId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workflowRunTriggeredByQueryScheduledIDString) Equals(value string) workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam { + + return workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { - Name: "in", + Name: "equals", Value: value, }, }, @@ -124019,20 +124675,20 @@ func (r stepRunQueryCreatedAtDateTime) In(value []DateTime) stepRunDefaultParam } } -func (r stepRunQueryCreatedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) EqualsIfPresent(value *string) workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam{} } - return r.In(value) + return r.Equals(*value) } -func (r stepRunQueryCreatedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) EqualsOptional(value *String) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { - Name: "notIn", + Name: "equals", Value: value, }, }, @@ -124040,17 +124696,85 @@ func (r stepRunQueryCreatedAtDateTime) NotIn(value []DateTime) stepRunDefaultPar } } -func (r stepRunQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) IsNull() workflowRunTriggeredByParamUnique { + var str *string = nil + return workflowRunTriggeredByParamUnique{ + data: builder.Field{ + Name: "scheduledId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workflowRunTriggeredByQueryScheduledIDString) Order(direction SortOrder) workflowRunTriggeredByDefaultParam { + return workflowRunTriggeredByDefaultParam{ + data: builder.Field{ + Name: "scheduledId", + Value: direction, + }, + } +} + +func (r workflowRunTriggeredByQueryScheduledIDString) Cursor(cursor string) workflowRunTriggeredByCursorParam { + return workflowRunTriggeredByCursorParam{ + data: builder.Field{ + Name: "scheduledId", + Value: cursor, + }, + } +} + +func (r workflowRunTriggeredByQueryScheduledIDString) In(value []string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ + data: builder.Field{ + Name: "scheduledId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunTriggeredByQueryScheduledIDString) InIfPresent(value []string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} + } + return r.In(value) +} + +func (r workflowRunTriggeredByQueryScheduledIDString) NotIn(value []string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ + data: builder.Field{ + Name: "scheduledId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r workflowRunTriggeredByQueryScheduledIDString) NotInIfPresent(value []string) workflowRunTriggeredByParamUnique { + if value == nil { + return workflowRunTriggeredByParamUnique{} } return r.NotIn(value) } -func (r stepRunQueryCreatedAtDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) Lt(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { Name: "lt", @@ -124061,17 +124785,17 @@ func (r stepRunQueryCreatedAtDateTime) Lt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryCreatedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) LtIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Lt(*value) } -func (r stepRunQueryCreatedAtDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) Lte(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { Name: "lte", @@ -124082,17 +124806,17 @@ func (r stepRunQueryCreatedAtDateTime) Lte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryCreatedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) LteIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Lte(*value) } -func (r stepRunQueryCreatedAtDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) Gt(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { Name: "gt", @@ -124103,17 +124827,17 @@ func (r stepRunQueryCreatedAtDateTime) Gt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryCreatedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) GtIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Gt(*value) } -func (r stepRunQueryCreatedAtDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) Gte(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { Name: "gte", @@ -124124,20 +124848,20 @@ func (r stepRunQueryCreatedAtDateTime) Gte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryCreatedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) GteIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } return r.Gte(*value) } -func (r stepRunQueryCreatedAtDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) Contains(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -124145,22 +124869,41 @@ func (r stepRunQueryCreatedAtDateTime) Not(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryCreatedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) ContainsIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r workflowRunTriggeredByQueryScheduledIDString) StartsWith(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ + data: builder.Field{ + Name: "scheduledId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r stepRunQueryCreatedAtDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) StartsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { + if value == nil { + return workflowRunTriggeredByParamUnique{} + } + return r.StartsWith(*value) +} + +func (r workflowRunTriggeredByQueryScheduledIDString) EndsWith(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -124168,23 +124911,41 @@ func (r stepRunQueryCreatedAtDateTime) Before(value DateTime) stepRunDefaultPara } } -// deprecated: Use LtIfPresent instead. -func (r stepRunQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) EndsWithIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r workflowRunTriggeredByQueryScheduledIDString) Mode(value QueryMode) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ + data: builder.Field{ + Name: "scheduledId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r stepRunQueryCreatedAtDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) ModeIfPresent(value *QueryMode) workflowRunTriggeredByParamUnique { + if value == nil { + return workflowRunTriggeredByParamUnique{} + } + return r.Mode(*value) +} + +func (r workflowRunTriggeredByQueryScheduledIDString) Not(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -124192,23 +124953,22 @@ func (r stepRunQueryCreatedAtDateTime) After(value DateTime) stepRunDefaultParam } } -// deprecated: Use GtIfPresent instead. -func (r stepRunQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r workflowRunTriggeredByQueryScheduledIDString) NotIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r stepRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) HasPrefix(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -124216,23 +124976,23 @@ func (r stepRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepRunDefau } } -// deprecated: Use LteIfPresent instead. -func (r stepRunQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workflowRunTriggeredByQueryScheduledIDString) HasPrefixIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r stepRunQueryCreatedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r workflowRunTriggeredByQueryScheduledIDString) HasSuffix(value string) workflowRunTriggeredByParamUnique { + return workflowRunTriggeredByParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "scheduledId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -124240,47 +125000,197 @@ func (r stepRunQueryCreatedAtDateTime) AfterEquals(value DateTime) stepRunDefaul } } -// deprecated: Use GteIfPresent instead. -func (r stepRunQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workflowRunTriggeredByQueryScheduledIDString) HasSuffixIfPresent(value *string) workflowRunTriggeredByParamUnique { if value == nil { - return stepRunDefaultParam{} + return workflowRunTriggeredByParamUnique{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r stepRunQueryCreatedAtDateTime) Field() stepRunPrismaFields { - return stepRunFieldCreatedAt +func (r workflowRunTriggeredByQueryScheduledIDString) Field() workflowRunTriggeredByPrismaFields { + return workflowRunTriggeredByFieldScheduledID +} + +// JobRun acts as a namespaces to access query methods for the JobRun model +var JobRun = jobRunQuery{} + +// jobRunQuery exposes query functions for the jobRun model +type jobRunQuery struct { + + // ID + // + // @required + ID jobRunQueryIDString + + // CreatedAt + // + // @required + CreatedAt jobRunQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt jobRunQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt jobRunQueryDeletedAtDateTime + + Tenant jobRunQueryTenantRelations + + // TenantID + // + // @required + TenantID jobRunQueryTenantIDString + + WorkflowRun jobRunQueryWorkflowRunRelations + + // WorkflowRunID + // + // @required + WorkflowRunID jobRunQueryWorkflowRunIDString + + Job jobRunQueryJobRelations + + // JobID + // + // @required + JobID jobRunQueryJobIDString + + Ticker jobRunQueryTickerRelations + + // TickerID + // + // @optional + TickerID jobRunQueryTickerIDString + + StepRuns jobRunQueryStepRunsRelations + + // Status + // + // @required + Status jobRunQueryStatusJobRunStatus + + LookupData jobRunQueryLookupDataRelations + + // Result + // + // @optional + Result jobRunQueryResultJson + + // StartedAt + // + // @optional + StartedAt jobRunQueryStartedAtDateTime + + // FinishedAt + // + // @optional + FinishedAt jobRunQueryFinishedAtDateTime + + // TimeoutAt + // + // @optional + TimeoutAt jobRunQueryTimeoutAtDateTime + + // CancelledAt + // + // @optional + CancelledAt jobRunQueryCancelledAtDateTime + + // CancelledReason + // + // @optional + CancelledReason jobRunQueryCancelledReasonString + + // CancelledError + // + // @optional + CancelledError jobRunQueryCancelledErrorString +} + +func (jobRunQuery) Not(params ...JobRunWhereParam) jobRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return jobRunDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (jobRunQuery) Or(params ...JobRunWhereParam) jobRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return jobRunDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (jobRunQuery) And(params ...JobRunWhereParam) jobRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return jobRunDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } // base struct -type stepRunQueryUpdatedAtDateTime struct{} +type jobRunQueryIDString struct{} -// Set the required value of UpdatedAt -func (r stepRunQueryUpdatedAtDateTime) Set(value DateTime) stepRunSetParam { +// Set the required value of ID +func (r jobRunQueryIDString) Set(value string) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Value: value, }, } } -// Set the optional value of UpdatedAt dynamically -func (r stepRunQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { +// Set the optional value of ID dynamically +func (r jobRunQueryIDString) SetIfPresent(value *String) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -func (r stepRunQueryUpdatedAtDateTime) Equals(value DateTime) stepRunWithPrismaUpdatedAtEqualsParam { +func (r jobRunQueryIDString) Equals(value string) jobRunWithPrismaIDEqualsUniqueParam { - return stepRunWithPrismaUpdatedAtEqualsParam{ + return jobRunWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -124291,35 +125201,35 @@ func (r stepRunQueryUpdatedAtDateTime) Equals(value DateTime) stepRunWithPrismaU } } -func (r stepRunQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaUpdatedAtEqualsParam { +func (r jobRunQueryIDString) EqualsIfPresent(value *string) jobRunWithPrismaIDEqualsUniqueParam { if value == nil { - return stepRunWithPrismaUpdatedAtEqualsParam{} + return jobRunWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r stepRunQueryUpdatedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Value: direction, }, } } -func (r stepRunQueryUpdatedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryIDString) Cursor(cursor string) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Value: cursor, }, } } -func (r stepRunQueryUpdatedAtDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) In(value []string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -124330,17 +125240,17 @@ func (r stepRunQueryUpdatedAtDateTime) In(value []DateTime) stepRunDefaultParam } } -func (r stepRunQueryUpdatedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) InIfPresent(value []string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } return r.In(value) } -func (r stepRunQueryUpdatedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) NotIn(value []string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -124351,17 +125261,17 @@ func (r stepRunQueryUpdatedAtDateTime) NotIn(value []DateTime) stepRunDefaultPar } } -func (r stepRunQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) NotInIfPresent(value []string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } return r.NotIn(value) } -func (r stepRunQueryUpdatedAtDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Lt(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -124372,17 +125282,17 @@ func (r stepRunQueryUpdatedAtDateTime) Lt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) LtIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } return r.Lt(*value) } -func (r stepRunQueryUpdatedAtDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Lte(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -124393,17 +125303,17 @@ func (r stepRunQueryUpdatedAtDateTime) Lte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) LteIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } return r.Lte(*value) } -func (r stepRunQueryUpdatedAtDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Gt(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -124414,17 +125324,17 @@ func (r stepRunQueryUpdatedAtDateTime) Gt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) GtIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } return r.Gt(*value) } -func (r stepRunQueryUpdatedAtDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Gte(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -124435,20 +125345,20 @@ func (r stepRunQueryUpdatedAtDateTime) Gte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) GteIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } return r.Gte(*value) } -func (r stepRunQueryUpdatedAtDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Contains(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -124456,22 +125366,20 @@ func (r stepRunQueryUpdatedAtDateTime) Not(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) ContainsIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r stepRunQueryUpdatedAtDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) StartsWith(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -124479,23 +125387,20 @@ func (r stepRunQueryUpdatedAtDateTime) Before(value DateTime) stepRunDefaultPara } } -// deprecated: Use LtIfPresent instead. -func (r stepRunQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) StartsWithIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r stepRunQueryUpdatedAtDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) EndsWith(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -124503,23 +125408,20 @@ func (r stepRunQueryUpdatedAtDateTime) After(value DateTime) stepRunDefaultParam } } -// deprecated: Use GtIfPresent instead. -func (r stepRunQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) EndsWithIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r stepRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Mode(value QueryMode) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -124527,23 +125429,20 @@ func (r stepRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepRunDefau } } -// deprecated: Use LteIfPresent instead. -func (r stepRunQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) ModeIfPresent(value *QueryMode) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r stepRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Not(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "updatedAt", + Name: "id", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -124551,66 +125450,46 @@ func (r stepRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepRunDefaul } } -// deprecated: Use GteIfPresent instead. -func (r stepRunQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryIDString) NotIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunParamUnique{} } - return r.AfterEquals(*value) -} - -func (r stepRunQueryUpdatedAtDateTime) Field() stepRunPrismaFields { - return stepRunFieldUpdatedAt + return r.Not(*value) } -// base struct -type stepRunQueryDeletedAtDateTime struct{} - -// Set the optional value of DeletedAt -func (r stepRunQueryDeletedAtDateTime) Set(value DateTime) stepRunSetParam { +// deprecated: Use StartsWith instead. - return stepRunSetParam{ +func (r jobRunQueryIDString) HasPrefix(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "deletedAt", - Value: value, + Name: "id", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, }, } - -} - -// Set the optional value of DeletedAt dynamically -func (r stepRunQueryDeletedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { - if value == nil { - return stepRunSetParam{} - } - - return r.Set(*value) } -// Set the optional value of DeletedAt dynamically -func (r stepRunQueryDeletedAtDateTime) SetOptional(value *DateTime) stepRunSetParam { +// deprecated: Use StartsWithIfPresent instead. +func (r jobRunQueryIDString) HasPrefixIfPresent(value *string) jobRunParamUnique { if value == nil { - - var v *DateTime - return stepRunSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, - }, - } + return jobRunParamUnique{} } - - return r.Set(*value) + return r.HasPrefix(*value) } -func (r stepRunQueryDeletedAtDateTime) Equals(value DateTime) stepRunWithPrismaDeletedAtEqualsParam { +// deprecated: Use EndsWith instead. - return stepRunWithPrismaDeletedAtEqualsParam{ +func (r jobRunQueryIDString) HasSuffix(value string) jobRunParamUnique { + return jobRunParamUnique{ data: builder.Field{ - Name: "deletedAt", + Name: "id", Fields: []builder.Field{ { - Name: "equals", + Name: "ends_with", Value: value, }, }, @@ -124618,64 +125497,86 @@ func (r stepRunQueryDeletedAtDateTime) Equals(value DateTime) stepRunWithPrismaD } } -func (r stepRunQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaDeletedAtEqualsParam { +// deprecated: Use EndsWithIfPresent instead. +func (r jobRunQueryIDString) HasSuffixIfPresent(value *string) jobRunParamUnique { if value == nil { - return stepRunWithPrismaDeletedAtEqualsParam{} + return jobRunParamUnique{} } - return r.Equals(*value) + return r.HasSuffix(*value) } -func (r stepRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryIDString) Field() jobRunPrismaFields { + return jobRunFieldID +} + +// base struct +type jobRunQueryCreatedAtDateTime struct{} + +// Set the required value of CreatedAt +func (r jobRunQueryCreatedAtDateTime) Set(value DateTime) jobRunSetParam { + + return jobRunSetParam{ data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "createdAt", + Value: value, }, } + } -func (r stepRunQueryDeletedAtDateTime) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ +// Set the optional value of CreatedAt dynamically +func (r jobRunQueryCreatedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { + if value == nil { + return jobRunSetParam{} + } + + return r.Set(*value) +} + +func (r jobRunQueryCreatedAtDateTime) Equals(value DateTime) jobRunWithPrismaCreatedAtEqualsParam { + + return jobRunWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r stepRunQueryDeletedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaCreatedAtEqualsParam { + if value == nil { + return jobRunWithPrismaCreatedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r jobRunQueryCreatedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Value: direction, }, } } -func (r stepRunQueryDeletedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryCreatedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Value: cursor, }, } } -func (r stepRunQueryDeletedAtDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) In(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -124686,17 +125587,17 @@ func (r stepRunQueryDeletedAtDateTime) In(value []DateTime) stepRunDefaultParam } } -func (r stepRunQueryDeletedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryDeletedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -124707,17 +125608,17 @@ func (r stepRunQueryDeletedAtDateTime) NotIn(value []DateTime) stepRunDefaultPar } } -func (r stepRunQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryDeletedAtDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) Lt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -124728,17 +125629,17 @@ func (r stepRunQueryDeletedAtDateTime) Lt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryDeletedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryDeletedAtDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) Lte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -124749,17 +125650,17 @@ func (r stepRunQueryDeletedAtDateTime) Lte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryDeletedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryDeletedAtDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) Gt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -124770,17 +125671,17 @@ func (r stepRunQueryDeletedAtDateTime) Gt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryDeletedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryDeletedAtDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) Gte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -124791,17 +125692,17 @@ func (r stepRunQueryDeletedAtDateTime) Gte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryDeletedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryDeletedAtDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) Not(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "not", @@ -124812,19 +125713,19 @@ func (r stepRunQueryDeletedAtDateTime) Not(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryDeletedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunQueryDeletedAtDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) Before(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -124836,19 +125737,19 @@ func (r stepRunQueryDeletedAtDateTime) Before(value DateTime) stepRunDefaultPara } // deprecated: Use LtIfPresent instead. -func (r stepRunQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunQueryDeletedAtDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) After(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -124860,19 +125761,19 @@ func (r stepRunQueryDeletedAtDateTime) After(value DateTime) stepRunDefaultParam } // deprecated: Use GtIfPresent instead. -func (r stepRunQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -124884,19 +125785,19 @@ func (r stepRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) stepRunDefau } // deprecated: Use LteIfPresent instead. -func (r stepRunQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunQueryDeletedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCreatedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -124908,134 +125809,46 @@ func (r stepRunQueryDeletedAtDateTime) AfterEquals(value DateTime) stepRunDefaul } // deprecated: Use GteIfPresent instead. -func (r stepRunQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunQueryDeletedAtDateTime) Field() stepRunPrismaFields { - return stepRunFieldDeletedAt -} - -// base struct -type stepRunQueryTenantTenant struct{} - -type stepRunQueryTenantRelations struct{} - -// StepRun -> Tenant -// -// @relation -// @required -func (stepRunQueryTenantRelations) Where( - params ...TenantWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunDefaultParam{ - data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, - }, - } -} - -func (stepRunQueryTenantRelations) Fetch() stepRunToTenantFindUnique { - var v stepRunToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - - return v -} - -func (r stepRunQueryTenantRelations) Link( - params TenantWhereParam, -) stepRunWithPrismaTenantSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepRunWithPrismaTenantSetParam{} - } - - fields = append(fields, f) - - return stepRunWithPrismaTenantSetParam{ - data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, - }, - } -} - -func (r stepRunQueryTenantRelations) Unlink() stepRunWithPrismaTenantSetParam { - var v stepRunWithPrismaTenantSetParam - - v = stepRunWithPrismaTenantSetParam{ - data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, - } - - return v -} - -func (r stepRunQueryTenantTenant) Field() stepRunPrismaFields { - return stepRunFieldTenant +func (r jobRunQueryCreatedAtDateTime) Field() jobRunPrismaFields { + return jobRunFieldCreatedAt } // base struct -type stepRunQueryTenantIDString struct{} +type jobRunQueryUpdatedAtDateTime struct{} -// Set the required value of TenantID -func (r stepRunQueryTenantIDString) Set(value string) stepRunSetParam { +// Set the required value of UpdatedAt +func (r jobRunQueryUpdatedAtDateTime) Set(value DateTime) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of TenantID dynamically -func (r stepRunQueryTenantIDString) SetIfPresent(value *String) stepRunSetParam { +// Set the optional value of UpdatedAt dynamically +func (r jobRunQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -func (r stepRunQueryTenantIDString) Equals(value string) stepRunWithPrismaTenantIDEqualsParam { +func (r jobRunQueryUpdatedAtDateTime) Equals(value DateTime) jobRunWithPrismaUpdatedAtEqualsParam { - return stepRunWithPrismaTenantIDEqualsParam{ + return jobRunWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -125046,35 +125859,35 @@ func (r stepRunQueryTenantIDString) Equals(value string) stepRunWithPrismaTenant } } -func (r stepRunQueryTenantIDString) EqualsIfPresent(value *string) stepRunWithPrismaTenantIDEqualsParam { +func (r jobRunQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaUpdatedAtEqualsParam { if value == nil { - return stepRunWithPrismaTenantIDEqualsParam{} + return jobRunWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryTenantIDString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryUpdatedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Value: direction, }, } } -func (r stepRunQueryTenantIDString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryUpdatedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Value: cursor, }, } } -func (r stepRunQueryTenantIDString) In(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryUpdatedAtDateTime) In(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -125085,17 +125898,17 @@ func (r stepRunQueryTenantIDString) In(value []string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) InIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryUpdatedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryTenantIDString) NotIn(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryUpdatedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -125106,17 +125919,17 @@ func (r stepRunQueryTenantIDString) NotIn(value []string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryTenantIDString) Lt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryUpdatedAtDateTime) Lt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -125127,17 +125940,17 @@ func (r stepRunQueryTenantIDString) Lt(value string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) LtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryTenantIDString) Lte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryUpdatedAtDateTime) Lte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -125148,17 +125961,17 @@ func (r stepRunQueryTenantIDString) Lte(value string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) LteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryTenantIDString) Gt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryUpdatedAtDateTime) Gt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -125169,17 +125982,17 @@ func (r stepRunQueryTenantIDString) Gt(value string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) GtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryTenantIDString) Gte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryUpdatedAtDateTime) Gte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -125190,20 +126003,20 @@ func (r stepRunQueryTenantIDString) Gte(value string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) GteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryTenantIDString) Contains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryUpdatedAtDateTime) Not(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -125211,20 +126024,22 @@ func (r stepRunQueryTenantIDString) Contains(value string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) ContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r stepRunQueryTenantIDString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Lt instead. + +func (r jobRunQueryUpdatedAtDateTime) Before(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -125232,20 +126047,23 @@ func (r stepRunQueryTenantIDString) StartsWith(value string) stepRunDefaultParam } } -func (r stepRunQueryTenantIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r jobRunQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r stepRunQueryTenantIDString) EndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Gt instead. + +func (r jobRunQueryUpdatedAtDateTime) After(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -125253,20 +126071,23 @@ func (r stepRunQueryTenantIDString) EndsWith(value string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r jobRunQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r stepRunQueryTenantIDString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Lte instead. + +func (r jobRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -125274,17 +126095,281 @@ func (r stepRunQueryTenantIDString) Mode(value QueryMode) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r jobRunQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r stepRunQueryTenantIDString) Not(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Gte instead. + +func (r jobRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r jobRunQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r jobRunQueryUpdatedAtDateTime) Field() jobRunPrismaFields { + return jobRunFieldUpdatedAt +} + +// base struct +type jobRunQueryDeletedAtDateTime struct{} + +// Set the optional value of DeletedAt +func (r jobRunQueryDeletedAtDateTime) Set(value DateTime) jobRunSetParam { + + return jobRunSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: value, + }, + } + +} + +// Set the optional value of DeletedAt dynamically +func (r jobRunQueryDeletedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { + if value == nil { + return jobRunSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of DeletedAt dynamically +func (r jobRunQueryDeletedAtDateTime) SetOptional(value *DateTime) jobRunSetParam { + if value == nil { + + var v *DateTime + return jobRunSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r jobRunQueryDeletedAtDateTime) Equals(value DateTime) jobRunWithPrismaDeletedAtEqualsParam { + + return jobRunWithPrismaDeletedAtEqualsParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaDeletedAtEqualsParam { + if value == nil { + return jobRunWithPrismaDeletedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r jobRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) IsNull() jobRunDefaultParam { + var str *string = nil + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Value: direction, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { + return jobRunCursorParam{ + data: builder.Field{ + Name: "deletedAt", + Value: cursor, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) In(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.In(value) +} + +func (r jobRunQueryDeletedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.NotIn(value) +} + +func (r jobRunQueryDeletedAtDateTime) Lt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.Lt(*value) +} + +func (r jobRunQueryDeletedAtDateTime) Lte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.Lte(*value) +} + +func (r jobRunQueryDeletedAtDateTime) Gt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.Gt(*value) +} + +func (r jobRunQueryDeletedAtDateTime) Gte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r jobRunQueryDeletedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.Gte(*value) +} + +func (r jobRunQueryDeletedAtDateTime) Not(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", Fields: []builder.Field{ { Name: "not", @@ -125295,22 +126380,22 @@ func (r stepRunQueryTenantIDString) Not(value string) stepRunDefaultParam { } } -func (r stepRunQueryTenantIDString) NotIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryDeletedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Not(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lt instead. -func (r stepRunQueryTenantIDString) HasPrefix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryDeletedAtDateTime) Before(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lt", Value: value, }, }, @@ -125318,23 +126403,23 @@ func (r stepRunQueryTenantIDString) HasPrefix(value string) stepRunDefaultParam } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryTenantIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r jobRunQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.HasPrefix(*value) + return r.Before(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gt instead. -func (r stepRunQueryTenantIDString) HasSuffix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryDeletedAtDateTime) After(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gt", Value: value, }, }, @@ -125342,39 +126427,87 @@ func (r stepRunQueryTenantIDString) HasSuffix(value string) stepRunDefaultParam } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryTenantIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r jobRunQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.HasSuffix(*value) + return r.After(*value) } -func (r stepRunQueryTenantIDString) Field() stepRunPrismaFields { - return stepRunFieldTenantID +// deprecated: Use Lte instead. + +func (r jobRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r jobRunQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r jobRunQueryDeletedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r jobRunQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r jobRunQueryDeletedAtDateTime) Field() jobRunPrismaFields { + return jobRunFieldDeletedAt } // base struct -type stepRunQueryJobRunJobRun struct{} +type jobRunQueryTenantTenant struct{} -type stepRunQueryJobRunRelations struct{} +type jobRunQueryTenantRelations struct{} -// StepRun -> JobRun +// JobRun -> Tenant // // @relation // @required -func (stepRunQueryJobRunRelations) Where( - params ...JobRunWhereParam, -) stepRunDefaultParam { +func (jobRunQueryTenantRelations) Where( + params ...TenantWhereParam, +) jobRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRun", + Name: "tenant", Fields: []builder.Field{ { Name: "is", @@ -125385,31 +126518,31 @@ func (stepRunQueryJobRunRelations) Where( } } -func (stepRunQueryJobRunRelations) Fetch() stepRunToJobRunFindUnique { - var v stepRunToJobRunFindUnique +func (jobRunQueryTenantRelations) Fetch() jobRunToTenantFindUnique { + var v jobRunToTenantFindUnique v.query.Operation = "query" - v.query.Method = "jobRun" - v.query.Outputs = jobRunOutput + v.query.Method = "tenant" + v.query.Outputs = tenantOutput return v } -func (r stepRunQueryJobRunRelations) Link( - params JobRunWhereParam, -) stepRunWithPrismaJobRunSetParam { +func (r jobRunQueryTenantRelations) Link( + params TenantWhereParam, +) jobRunWithPrismaTenantSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return stepRunWithPrismaJobRunSetParam{} + return jobRunWithPrismaTenantSetParam{} } fields = append(fields, f) - return stepRunWithPrismaJobRunSetParam{ + return jobRunWithPrismaTenantSetParam{ data: builder.Field{ - Name: "jobRun", + Name: "tenant", Fields: []builder.Field{ { Name: "connect", @@ -125420,12 +126553,12 @@ func (r stepRunQueryJobRunRelations) Link( } } -func (r stepRunQueryJobRunRelations) Unlink() stepRunWithPrismaJobRunSetParam { - var v stepRunWithPrismaJobRunSetParam +func (r jobRunQueryTenantRelations) Unlink() jobRunWithPrismaTenantSetParam { + var v jobRunWithPrismaTenantSetParam - v = stepRunWithPrismaJobRunSetParam{ + v = jobRunWithPrismaTenantSetParam{ data: builder.Field{ - Name: "jobRun", + Name: "tenant", Fields: []builder.Field{ { Name: "disconnect", @@ -125438,39 +126571,39 @@ func (r stepRunQueryJobRunRelations) Unlink() stepRunWithPrismaJobRunSetParam { return v } -func (r stepRunQueryJobRunJobRun) Field() stepRunPrismaFields { - return stepRunFieldJobRun +func (r jobRunQueryTenantTenant) Field() jobRunPrismaFields { + return jobRunFieldTenant } // base struct -type stepRunQueryJobRunIDString struct{} +type jobRunQueryTenantIDString struct{} -// Set the required value of JobRunID -func (r stepRunQueryJobRunIDString) Set(value string) stepRunSetParam { +// Set the required value of TenantID +func (r jobRunQueryTenantIDString) Set(value string) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Value: value, }, } } -// Set the optional value of JobRunID dynamically -func (r stepRunQueryJobRunIDString) SetIfPresent(value *String) stepRunSetParam { +// Set the optional value of TenantID dynamically +func (r jobRunQueryTenantIDString) SetIfPresent(value *String) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -func (r stepRunQueryJobRunIDString) Equals(value string) stepRunWithPrismaJobRunIDEqualsParam { +func (r jobRunQueryTenantIDString) Equals(value string) jobRunWithPrismaTenantIDEqualsParam { - return stepRunWithPrismaJobRunIDEqualsParam{ + return jobRunWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "equals", @@ -125481,35 +126614,35 @@ func (r stepRunQueryJobRunIDString) Equals(value string) stepRunWithPrismaJobRun } } -func (r stepRunQueryJobRunIDString) EqualsIfPresent(value *string) stepRunWithPrismaJobRunIDEqualsParam { +func (r jobRunQueryTenantIDString) EqualsIfPresent(value *string) jobRunWithPrismaTenantIDEqualsParam { if value == nil { - return stepRunWithPrismaJobRunIDEqualsParam{} + return jobRunWithPrismaTenantIDEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryJobRunIDString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Value: direction, }, } } -func (r stepRunQueryJobRunIDString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryTenantIDString) Cursor(cursor string) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Value: cursor, }, } } -func (r stepRunQueryJobRunIDString) In(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) In(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "in", @@ -125520,17 +126653,17 @@ func (r stepRunQueryJobRunIDString) In(value []string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) InIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) InIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryJobRunIDString) NotIn(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) NotIn(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "notIn", @@ -125541,17 +126674,17 @@ func (r stepRunQueryJobRunIDString) NotIn(value []string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) NotInIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryJobRunIDString) Lt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) Lt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "lt", @@ -125562,17 +126695,17 @@ func (r stepRunQueryJobRunIDString) Lt(value string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) LtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) LtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryJobRunIDString) Lte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) Lte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "lte", @@ -125583,17 +126716,17 @@ func (r stepRunQueryJobRunIDString) Lte(value string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) LteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) LteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryJobRunIDString) Gt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) Gt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "gt", @@ -125604,17 +126737,17 @@ func (r stepRunQueryJobRunIDString) Gt(value string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) GtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) GtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryJobRunIDString) Gte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) Gte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "gte", @@ -125625,17 +126758,17 @@ func (r stepRunQueryJobRunIDString) Gte(value string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) GteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) GteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryJobRunIDString) Contains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) Contains(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "contains", @@ -125646,17 +126779,17 @@ func (r stepRunQueryJobRunIDString) Contains(value string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) ContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) ContainsIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Contains(*value) } -func (r stepRunQueryJobRunIDString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) StartsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "startsWith", @@ -125667,17 +126800,17 @@ func (r stepRunQueryJobRunIDString) StartsWith(value string) stepRunDefaultParam } } -func (r stepRunQueryJobRunIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) StartsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.StartsWith(*value) } -func (r stepRunQueryJobRunIDString) EndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) EndsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "endsWith", @@ -125688,17 +126821,17 @@ func (r stepRunQueryJobRunIDString) EndsWith(value string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) EndsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.EndsWith(*value) } -func (r stepRunQueryJobRunIDString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) Mode(value QueryMode) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "mode", @@ -125709,17 +126842,17 @@ func (r stepRunQueryJobRunIDString) Mode(value QueryMode) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Mode(*value) } -func (r stepRunQueryJobRunIDString) Not(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) Not(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "not", @@ -125730,19 +126863,19 @@ func (r stepRunQueryJobRunIDString) Not(value string) stepRunDefaultParam { } } -func (r stepRunQueryJobRunIDString) NotIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) NotIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRunQueryJobRunIDString) HasPrefix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) HasPrefix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "starts_with", @@ -125754,19 +126887,19 @@ func (r stepRunQueryJobRunIDString) HasPrefix(value string) stepRunDefaultParam } // deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryJobRunIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) HasPrefixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRunQueryJobRunIDString) HasSuffix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTenantIDString) HasSuffix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "jobRunId", + Name: "tenantId", Fields: []builder.Field{ { Name: "ends_with", @@ -125778,38 +126911,38 @@ func (r stepRunQueryJobRunIDString) HasSuffix(value string) stepRunDefaultParam } // deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryJobRunIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTenantIDString) HasSuffixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRunQueryJobRunIDString) Field() stepRunPrismaFields { - return stepRunFieldJobRunID +func (r jobRunQueryTenantIDString) Field() jobRunPrismaFields { + return jobRunFieldTenantID } // base struct -type stepRunQueryStepStep struct{} +type jobRunQueryWorkflowRunWorkflowRun struct{} -type stepRunQueryStepRelations struct{} +type jobRunQueryWorkflowRunRelations struct{} -// StepRun -> Step +// JobRun -> WorkflowRun // // @relation // @required -func (stepRunQueryStepRelations) Where( - params ...StepWhereParam, -) stepRunDefaultParam { +func (jobRunQueryWorkflowRunRelations) Where( + params ...WorkflowRunWhereParam, +) jobRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "step", + Name: "workflowRun", Fields: []builder.Field{ { Name: "is", @@ -125820,31 +126953,31 @@ func (stepRunQueryStepRelations) Where( } } -func (stepRunQueryStepRelations) Fetch() stepRunToStepFindUnique { - var v stepRunToStepFindUnique +func (jobRunQueryWorkflowRunRelations) Fetch() jobRunToWorkflowRunFindUnique { + var v jobRunToWorkflowRunFindUnique v.query.Operation = "query" - v.query.Method = "step" - v.query.Outputs = stepOutput + v.query.Method = "workflowRun" + v.query.Outputs = workflowRunOutput return v } -func (r stepRunQueryStepRelations) Link( - params StepWhereParam, -) stepRunWithPrismaStepSetParam { +func (r jobRunQueryWorkflowRunRelations) Link( + params WorkflowRunWhereParam, +) jobRunWithPrismaWorkflowRunSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return stepRunWithPrismaStepSetParam{} + return jobRunWithPrismaWorkflowRunSetParam{} } fields = append(fields, f) - return stepRunWithPrismaStepSetParam{ + return jobRunWithPrismaWorkflowRunSetParam{ data: builder.Field{ - Name: "step", + Name: "workflowRun", Fields: []builder.Field{ { Name: "connect", @@ -125855,12 +126988,12 @@ func (r stepRunQueryStepRelations) Link( } } -func (r stepRunQueryStepRelations) Unlink() stepRunWithPrismaStepSetParam { - var v stepRunWithPrismaStepSetParam +func (r jobRunQueryWorkflowRunRelations) Unlink() jobRunWithPrismaWorkflowRunSetParam { + var v jobRunWithPrismaWorkflowRunSetParam - v = stepRunWithPrismaStepSetParam{ + v = jobRunWithPrismaWorkflowRunSetParam{ data: builder.Field{ - Name: "step", + Name: "workflowRun", Fields: []builder.Field{ { Name: "disconnect", @@ -125873,39 +127006,39 @@ func (r stepRunQueryStepRelations) Unlink() stepRunWithPrismaStepSetParam { return v } -func (r stepRunQueryStepStep) Field() stepRunPrismaFields { - return stepRunFieldStep +func (r jobRunQueryWorkflowRunWorkflowRun) Field() jobRunPrismaFields { + return jobRunFieldWorkflowRun } // base struct -type stepRunQueryStepIDString struct{} +type jobRunQueryWorkflowRunIDString struct{} -// Set the required value of StepID -func (r stepRunQueryStepIDString) Set(value string) stepRunSetParam { +// Set the required value of WorkflowRunID +func (r jobRunQueryWorkflowRunIDString) Set(value string) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Value: value, }, } } -// Set the optional value of StepID dynamically -func (r stepRunQueryStepIDString) SetIfPresent(value *String) stepRunSetParam { +// Set the optional value of WorkflowRunID dynamically +func (r jobRunQueryWorkflowRunIDString) SetIfPresent(value *String) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -func (r stepRunQueryStepIDString) Equals(value string) stepRunWithPrismaStepIDEqualsParam { +func (r jobRunQueryWorkflowRunIDString) Equals(value string) jobRunWithPrismaWorkflowRunIDEqualsParam { - return stepRunWithPrismaStepIDEqualsParam{ + return jobRunWithPrismaWorkflowRunIDEqualsParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "equals", @@ -125916,35 +127049,35 @@ func (r stepRunQueryStepIDString) Equals(value string) stepRunWithPrismaStepIDEq } } -func (r stepRunQueryStepIDString) EqualsIfPresent(value *string) stepRunWithPrismaStepIDEqualsParam { +func (r jobRunQueryWorkflowRunIDString) EqualsIfPresent(value *string) jobRunWithPrismaWorkflowRunIDEqualsParam { if value == nil { - return stepRunWithPrismaStepIDEqualsParam{} + return jobRunWithPrismaWorkflowRunIDEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryStepIDString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Value: direction, }, } } -func (r stepRunQueryStepIDString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryWorkflowRunIDString) Cursor(cursor string) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Value: cursor, }, } } -func (r stepRunQueryStepIDString) In(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) In(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "in", @@ -125955,17 +127088,17 @@ func (r stepRunQueryStepIDString) In(value []string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) InIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) InIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryStepIDString) NotIn(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) NotIn(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "notIn", @@ -125976,17 +127109,17 @@ func (r stepRunQueryStepIDString) NotIn(value []string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) NotInIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryStepIDString) Lt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) Lt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "lt", @@ -125997,17 +127130,17 @@ func (r stepRunQueryStepIDString) Lt(value string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) LtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) LtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryStepIDString) Lte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) Lte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "lte", @@ -126018,17 +127151,17 @@ func (r stepRunQueryStepIDString) Lte(value string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) LteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) LteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryStepIDString) Gt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) Gt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "gt", @@ -126039,17 +127172,17 @@ func (r stepRunQueryStepIDString) Gt(value string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) GtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) GtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryStepIDString) Gte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) Gte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "gte", @@ -126060,17 +127193,17 @@ func (r stepRunQueryStepIDString) Gte(value string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) GteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) GteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryStepIDString) Contains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) Contains(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "contains", @@ -126081,17 +127214,17 @@ func (r stepRunQueryStepIDString) Contains(value string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) ContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) ContainsIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Contains(*value) } -func (r stepRunQueryStepIDString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) StartsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "startsWith", @@ -126102,17 +127235,17 @@ func (r stepRunQueryStepIDString) StartsWith(value string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) StartsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.StartsWith(*value) } -func (r stepRunQueryStepIDString) EndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) EndsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "endsWith", @@ -126123,17 +127256,17 @@ func (r stepRunQueryStepIDString) EndsWith(value string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) EndsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.EndsWith(*value) } -func (r stepRunQueryStepIDString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) Mode(value QueryMode) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "mode", @@ -126144,17 +127277,17 @@ func (r stepRunQueryStepIDString) Mode(value QueryMode) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Mode(*value) } -func (r stepRunQueryStepIDString) Not(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) Not(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "not", @@ -126165,19 +127298,19 @@ func (r stepRunQueryStepIDString) Not(value string) stepRunDefaultParam { } } -func (r stepRunQueryStepIDString) NotIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) NotIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRunQueryStepIDString) HasPrefix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) HasPrefix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "starts_with", @@ -126189,19 +127322,19 @@ func (r stepRunQueryStepIDString) HasPrefix(value string) stepRunDefaultParam { } // deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryStepIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) HasPrefixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRunQueryStepIDString) HasSuffix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryWorkflowRunIDString) HasSuffix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "stepId", + Name: "workflowRunId", Fields: []builder.Field{ { Name: "ends_with", @@ -126213,41 +127346,41 @@ func (r stepRunQueryStepIDString) HasSuffix(value string) stepRunDefaultParam { } // deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryStepIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryWorkflowRunIDString) HasSuffixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRunQueryStepIDString) Field() stepRunPrismaFields { - return stepRunFieldStepID +func (r jobRunQueryWorkflowRunIDString) Field() jobRunPrismaFields { + return jobRunFieldWorkflowRunID } // base struct -type stepRunQueryChildrenStepRun struct{} +type jobRunQueryJobJob struct{} -type stepRunQueryChildrenRelations struct{} +type jobRunQueryJobRelations struct{} -// StepRun -> Children +// JobRun -> Job // // @relation // @required -func (stepRunQueryChildrenRelations) Some( - params ...StepRunWhereParam, -) stepRunDefaultParam { +func (jobRunQueryJobRelations) Where( + params ...JobWhereParam, +) jobRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "children", + Name: "job", Fields: []builder.Field{ { - Name: "some", + Name: "is", Fields: fields, }, }, @@ -126255,351 +127388,155 @@ func (stepRunQueryChildrenRelations) Some( } } -// StepRun -> Children -// -// @relation -// @required -func (stepRunQueryChildrenRelations) Every( - params ...StepRunWhereParam, -) stepRunDefaultParam { +func (jobRunQueryJobRelations) Fetch() jobRunToJobFindUnique { + var v jobRunToJobFindUnique + + v.query.Operation = "query" + v.query.Method = "job" + v.query.Outputs = jobOutput + + return v +} + +func (r jobRunQueryJobRelations) Link( + params JobWhereParam, +) jobRunWithPrismaJobSetParam { var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) + f := params.field() + if f.Fields == nil && f.Value == nil { + return jobRunWithPrismaJobSetParam{} } - return stepRunDefaultParam{ + fields = append(fields, f) + + return jobRunWithPrismaJobSetParam{ data: builder.Field{ - Name: "children", + Name: "job", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// StepRun -> Children -// -// @relation -// @required -func (stepRunQueryChildrenRelations) None( - params ...StepRunWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +func (r jobRunQueryJobRelations) Unlink() jobRunWithPrismaJobSetParam { + var v jobRunWithPrismaJobSetParam - return stepRunDefaultParam{ + v = jobRunWithPrismaJobSetParam{ data: builder.Field{ - Name: "children", + Name: "job", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "disconnect", + Value: true, }, }, }, } -} -func (stepRunQueryChildrenRelations) Fetch( + return v +} - params ...StepRunWhereParam, +func (r jobRunQueryJobJob) Field() jobRunPrismaFields { + return jobRunFieldJob +} -) stepRunToChildrenFindMany { - var v stepRunToChildrenFindMany +// base struct +type jobRunQueryJobIDString struct{} - v.query.Operation = "query" - v.query.Method = "children" - v.query.Outputs = stepRunOutput +// Set the required value of JobID +func (r jobRunQueryJobIDString) Set(value string) jobRunSetParam { - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } + return jobRunSetParam{ + data: builder.Field{ + Name: "jobId", + Value: value, + }, } - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +} + +// Set the optional value of JobID dynamically +func (r jobRunQueryJobIDString) SetIfPresent(value *String) jobRunSetParam { + if value == nil { + return jobRunSetParam{} } - return v + return r.Set(*value) } -func (r stepRunQueryChildrenRelations) Link( - params ...StepRunWhereParam, -) stepRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +func (r jobRunQueryJobIDString) Equals(value string) jobRunWithPrismaJobIDEqualsParam { - return stepRunSetParam{ + return jobRunWithPrismaJobIDEqualsParam{ data: builder.Field{ - Name: "children", + Name: "jobId", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "equals", + Value: value, }, }, }, } } -func (r stepRunQueryChildrenRelations) Unlink( - params ...StepRunWhereParam, -) stepRunSetParam { - var v stepRunSetParam +func (r jobRunQueryJobIDString) EqualsIfPresent(value *string) jobRunWithPrismaJobIDEqualsParam { + if value == nil { + return jobRunWithPrismaJobIDEqualsParam{} + } + return r.Equals(*value) +} - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r jobRunQueryJobIDString) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "jobId", + Value: direction, + }, } - v = stepRunSetParam{ +} + +func (r jobRunQueryJobIDString) Cursor(cursor string) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "children", + Name: "jobId", + Value: cursor, + }, + } +} + +func (r jobRunQueryJobIDString) In(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "jobId", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "in", + Value: value, }, }, }, } +} - return v +func (r jobRunQueryJobIDString) InIfPresent(value []string) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.In(value) } -func (r stepRunQueryChildrenStepRun) Field() stepRunPrismaFields { - return stepRunFieldChildren -} - -// base struct -type stepRunQueryParentsStepRun struct{} - -type stepRunQueryParentsRelations struct{} - -// StepRun -> Parents -// -// @relation -// @required -func (stepRunQueryParentsRelations) Some( - params ...StepRunWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunDefaultParam{ - data: builder.Field{ - Name: "parents", - Fields: []builder.Field{ - { - Name: "some", - Fields: fields, - }, - }, - }, - } -} - -// StepRun -> Parents -// -// @relation -// @required -func (stepRunQueryParentsRelations) Every( - params ...StepRunWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunDefaultParam{ - data: builder.Field{ - Name: "parents", - Fields: []builder.Field{ - { - Name: "every", - Fields: fields, - }, - }, - }, - } -} - -// StepRun -> Parents -// -// @relation -// @required -func (stepRunQueryParentsRelations) None( - params ...StepRunWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunDefaultParam{ - data: builder.Field{ - Name: "parents", - Fields: []builder.Field{ - { - Name: "none", - Fields: fields, - }, - }, - }, - } -} - -func (stepRunQueryParentsRelations) Fetch( - - params ...StepRunWhereParam, - -) stepRunToParentsFindMany { - var v stepRunToParentsFindMany - - v.query.Operation = "query" - v.query.Method = "parents" - v.query.Outputs = stepRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} - -func (r stepRunQueryParentsRelations) Link( - params ...StepRunWhereParam, -) stepRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunSetParam{ - data: builder.Field{ - Name: "parents", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, - }, - }, - }, - } -} - -func (r stepRunQueryParentsRelations) Unlink( - params ...StepRunWhereParam, -) stepRunSetParam { - var v stepRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) - } - v = stepRunSetParam{ +func (r jobRunQueryJobIDString) NotIn(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "parents", + Name: "jobId", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), - }, - }, - }, - } - - return v -} - -func (r stepRunQueryParentsStepRun) Field() stepRunPrismaFields { - return stepRunFieldParents -} - -// base struct -type stepRunQueryOrderBigInt struct{} - -// Set the required value of Order -func (r stepRunQueryOrderBigInt) Set(value BigInt) stepRunSetParam { - - return stepRunSetParam{ - data: builder.Field{ - Name: "order", - Value: value, - }, - } - -} - -// Set the optional value of Order dynamically -func (r stepRunQueryOrderBigInt) SetIfPresent(value *BigInt) stepRunSetParam { - if value == nil { - return stepRunSetParam{} - } - - return r.Set(*value) -} - -// Increment the required value of Order -func (r stepRunQueryOrderBigInt) Increment(value BigInt) stepRunSetParam { - return stepRunSetParam{ - data: builder.Field{ - Name: "order", - Fields: []builder.Field{ - builder.Field{ - Name: "increment", + Name: "notIn", Value: value, }, }, @@ -126607,21 +127544,20 @@ func (r stepRunQueryOrderBigInt) Increment(value BigInt) stepRunSetParam { } } -func (r stepRunQueryOrderBigInt) IncrementIfPresent(value *BigInt) stepRunSetParam { +func (r jobRunQueryJobIDString) NotInIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunSetParam{} + return jobRunDefaultParam{} } - return r.Increment(*value) + return r.NotIn(value) } -// Decrement the required value of Order -func (r stepRunQueryOrderBigInt) Decrement(value BigInt) stepRunSetParam { - return stepRunSetParam{ +func (r jobRunQueryJobIDString) Lt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ - builder.Field{ - Name: "decrement", + { + Name: "lt", Value: value, }, }, @@ -126629,21 +127565,20 @@ func (r stepRunQueryOrderBigInt) Decrement(value BigInt) stepRunSetParam { } } -func (r stepRunQueryOrderBigInt) DecrementIfPresent(value *BigInt) stepRunSetParam { +func (r jobRunQueryJobIDString) LtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunSetParam{} + return jobRunDefaultParam{} } - return r.Decrement(*value) + return r.Lt(*value) } -// Multiply the required value of Order -func (r stepRunQueryOrderBigInt) Multiply(value BigInt) stepRunSetParam { - return stepRunSetParam{ +func (r jobRunQueryJobIDString) Lte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "lte", Value: value, }, }, @@ -126651,21 +127586,20 @@ func (r stepRunQueryOrderBigInt) Multiply(value BigInt) stepRunSetParam { } } -func (r stepRunQueryOrderBigInt) MultiplyIfPresent(value *BigInt) stepRunSetParam { +func (r jobRunQueryJobIDString) LteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunSetParam{} + return jobRunDefaultParam{} } - return r.Multiply(*value) + return r.Lte(*value) } -// Divide the required value of Order -func (r stepRunQueryOrderBigInt) Divide(value BigInt) stepRunSetParam { - return stepRunSetParam{ +func (r jobRunQueryJobIDString) Gt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "gt", Value: value, }, }, @@ -126673,21 +127607,20 @@ func (r stepRunQueryOrderBigInt) Divide(value BigInt) stepRunSetParam { } } -func (r stepRunQueryOrderBigInt) DivideIfPresent(value *BigInt) stepRunSetParam { +func (r jobRunQueryJobIDString) GtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunSetParam{} + return jobRunDefaultParam{} } - return r.Divide(*value) + return r.Gt(*value) } -func (r stepRunQueryOrderBigInt) Equals(value BigInt) stepRunWithPrismaOrderEqualsParam { - - return stepRunWithPrismaOrderEqualsParam{ +func (r jobRunQueryJobIDString) Gte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ { - Name: "equals", + Name: "gte", Value: value, }, }, @@ -126695,38 +127628,20 @@ func (r stepRunQueryOrderBigInt) Equals(value BigInt) stepRunWithPrismaOrderEqua } } -func (r stepRunQueryOrderBigInt) EqualsIfPresent(value *BigInt) stepRunWithPrismaOrderEqualsParam { +func (r jobRunQueryJobIDString) GteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunWithPrismaOrderEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepRunQueryOrderBigInt) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "order", - Value: direction, - }, - } -} - -func (r stepRunQueryOrderBigInt) Cursor(cursor BigInt) stepRunCursorParam { - return stepRunCursorParam{ - data: builder.Field{ - Name: "order", - Value: cursor, - }, + return jobRunDefaultParam{} } + return r.Gte(*value) } -func (r stepRunQueryOrderBigInt) In(value []BigInt) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryJobIDString) Contains(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ { - Name: "in", + Name: "contains", Value: value, }, }, @@ -126734,20 +127649,20 @@ func (r stepRunQueryOrderBigInt) In(value []BigInt) stepRunDefaultParam { } } -func (r stepRunQueryOrderBigInt) InIfPresent(value []BigInt) stepRunDefaultParam { +func (r jobRunQueryJobIDString) ContainsIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.In(value) + return r.Contains(*value) } -func (r stepRunQueryOrderBigInt) NotIn(value []BigInt) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryJobIDString) StartsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ { - Name: "notIn", + Name: "startsWith", Value: value, }, }, @@ -126755,20 +127670,20 @@ func (r stepRunQueryOrderBigInt) NotIn(value []BigInt) stepRunDefaultParam { } } -func (r stepRunQueryOrderBigInt) NotInIfPresent(value []BigInt) stepRunDefaultParam { +func (r jobRunQueryJobIDString) StartsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.NotIn(value) + return r.StartsWith(*value) } -func (r stepRunQueryOrderBigInt) Lt(value BigInt) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryJobIDString) EndsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -126776,20 +127691,20 @@ func (r stepRunQueryOrderBigInt) Lt(value BigInt) stepRunDefaultParam { } } -func (r stepRunQueryOrderBigInt) LtIfPresent(value *BigInt) stepRunDefaultParam { +func (r jobRunQueryJobIDString) EndsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Lt(*value) + return r.EndsWith(*value) } -func (r stepRunQueryOrderBigInt) Lte(value BigInt) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryJobIDString) Mode(value QueryMode) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -126797,20 +127712,20 @@ func (r stepRunQueryOrderBigInt) Lte(value BigInt) stepRunDefaultParam { } } -func (r stepRunQueryOrderBigInt) LteIfPresent(value *BigInt) stepRunDefaultParam { +func (r jobRunQueryJobIDString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Lte(*value) + return r.Mode(*value) } -func (r stepRunQueryOrderBigInt) Gt(value BigInt) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryJobIDString) Not(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -126818,20 +127733,22 @@ func (r stepRunQueryOrderBigInt) Gt(value BigInt) stepRunDefaultParam { } } -func (r stepRunQueryOrderBigInt) GtIfPresent(value *BigInt) stepRunDefaultParam { +func (r jobRunQueryJobIDString) NotIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Gt(*value) + return r.Not(*value) } -func (r stepRunQueryOrderBigInt) Gte(value BigInt) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r jobRunQueryJobIDString) HasPrefix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ { - Name: "gte", + Name: "starts_with", Value: value, }, }, @@ -126839,20 +127756,23 @@ func (r stepRunQueryOrderBigInt) Gte(value BigInt) stepRunDefaultParam { } } -func (r stepRunQueryOrderBigInt) GteIfPresent(value *BigInt) stepRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r jobRunQueryJobIDString) HasPrefixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Gte(*value) + return r.HasPrefix(*value) } -func (r stepRunQueryOrderBigInt) Not(value BigInt) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use EndsWith instead. + +func (r jobRunQueryJobIDString) HasSuffix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "jobId", Fields: []builder.Field{ { - Name: "not", + Name: "ends_with", Value: value, }, }, @@ -126860,38 +127780,39 @@ func (r stepRunQueryOrderBigInt) Not(value BigInt) stepRunDefaultParam { } } -func (r stepRunQueryOrderBigInt) NotIfPresent(value *BigInt) stepRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r jobRunQueryJobIDString) HasSuffixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Not(*value) + return r.HasSuffix(*value) } -func (r stepRunQueryOrderBigInt) Field() stepRunPrismaFields { - return stepRunFieldOrder +func (r jobRunQueryJobIDString) Field() jobRunPrismaFields { + return jobRunFieldJobID } // base struct -type stepRunQueryWorkerWorker struct{} +type jobRunQueryTickerTicker struct{} -type stepRunQueryWorkerRelations struct{} +type jobRunQueryTickerRelations struct{} -// StepRun -> Worker +// JobRun -> Ticker // // @relation // @optional -func (stepRunQueryWorkerRelations) Where( - params ...WorkerWhereParam, -) stepRunDefaultParam { +func (jobRunQueryTickerRelations) Where( + params ...TickerWhereParam, +) jobRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "worker", + Name: "ticker", Fields: []builder.Field{ { Name: "is", @@ -126902,31 +127823,31 @@ func (stepRunQueryWorkerRelations) Where( } } -func (stepRunQueryWorkerRelations) Fetch() stepRunToWorkerFindUnique { - var v stepRunToWorkerFindUnique +func (jobRunQueryTickerRelations) Fetch() jobRunToTickerFindUnique { + var v jobRunToTickerFindUnique v.query.Operation = "query" - v.query.Method = "worker" - v.query.Outputs = workerOutput + v.query.Method = "ticker" + v.query.Outputs = tickerOutput return v } -func (r stepRunQueryWorkerRelations) Link( - params WorkerWhereParam, -) stepRunSetParam { +func (r jobRunQueryTickerRelations) Link( + params TickerWhereParam, +) jobRunSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } fields = append(fields, f) - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "worker", + Name: "ticker", Fields: []builder.Field{ { Name: "connect", @@ -126937,12 +127858,12 @@ func (r stepRunQueryWorkerRelations) Link( } } -func (r stepRunQueryWorkerRelations) Unlink() stepRunSetParam { - var v stepRunSetParam +func (r jobRunQueryTickerRelations) Unlink() jobRunSetParam { + var v jobRunSetParam - v = stepRunSetParam{ + v = jobRunSetParam{ data: builder.Field{ - Name: "worker", + Name: "ticker", Fields: []builder.Field{ { Name: "disconnect", @@ -126955,42 +127876,42 @@ func (r stepRunQueryWorkerRelations) Unlink() stepRunSetParam { return v } -func (r stepRunQueryWorkerWorker) Field() stepRunPrismaFields { - return stepRunFieldWorker +func (r jobRunQueryTickerTicker) Field() jobRunPrismaFields { + return jobRunFieldTicker } // base struct -type stepRunQueryWorkerIDString struct{} +type jobRunQueryTickerIDString struct{} -// Set the optional value of WorkerID -func (r stepRunQueryWorkerIDString) Set(value string) stepRunSetParam { +// Set the optional value of TickerID +func (r jobRunQueryTickerIDString) Set(value string) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Value: value, }, } } -// Set the optional value of WorkerID dynamically -func (r stepRunQueryWorkerIDString) SetIfPresent(value *String) stepRunSetParam { +// Set the optional value of TickerID dynamically +func (r jobRunQueryTickerIDString) SetIfPresent(value *String) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -// Set the optional value of WorkerID dynamically -func (r stepRunQueryWorkerIDString) SetOptional(value *String) stepRunSetParam { +// Set the optional value of TickerID dynamically +func (r jobRunQueryTickerIDString) SetOptional(value *String) jobRunSetParam { if value == nil { var v *string - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Value: v, }, } @@ -126999,11 +127920,11 @@ func (r stepRunQueryWorkerIDString) SetOptional(value *String) stepRunSetParam { return r.Set(*value) } -func (r stepRunQueryWorkerIDString) Equals(value string) stepRunWithPrismaWorkerIDEqualsParam { +func (r jobRunQueryTickerIDString) Equals(value string) jobRunWithPrismaTickerIDEqualsParam { - return stepRunWithPrismaWorkerIDEqualsParam{ + return jobRunWithPrismaTickerIDEqualsParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "equals", @@ -127014,17 +127935,17 @@ func (r stepRunQueryWorkerIDString) Equals(value string) stepRunWithPrismaWorker } } -func (r stepRunQueryWorkerIDString) EqualsIfPresent(value *string) stepRunWithPrismaWorkerIDEqualsParam { +func (r jobRunQueryTickerIDString) EqualsIfPresent(value *string) jobRunWithPrismaTickerIDEqualsParam { if value == nil { - return stepRunWithPrismaWorkerIDEqualsParam{} + return jobRunWithPrismaTickerIDEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryWorkerIDString) EqualsOptional(value *String) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) EqualsOptional(value *String) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "equals", @@ -127035,11 +127956,11 @@ func (r stepRunQueryWorkerIDString) EqualsOptional(value *String) stepRunDefault } } -func (r stepRunQueryWorkerIDString) IsNull() stepRunDefaultParam { +func (r jobRunQueryTickerIDString) IsNull() jobRunDefaultParam { var str *string = nil - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "equals", @@ -127050,28 +127971,28 @@ func (r stepRunQueryWorkerIDString) IsNull() stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Value: direction, }, } } -func (r stepRunQueryWorkerIDString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryTickerIDString) Cursor(cursor string) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Value: cursor, }, } } -func (r stepRunQueryWorkerIDString) In(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) In(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "in", @@ -127082,17 +128003,17 @@ func (r stepRunQueryWorkerIDString) In(value []string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) InIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) InIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryWorkerIDString) NotIn(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) NotIn(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "notIn", @@ -127103,17 +128024,17 @@ func (r stepRunQueryWorkerIDString) NotIn(value []string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) NotInIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryWorkerIDString) Lt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) Lt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "lt", @@ -127124,17 +128045,17 @@ func (r stepRunQueryWorkerIDString) Lt(value string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) LtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) LtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryWorkerIDString) Lte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) Lte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "lte", @@ -127145,17 +128066,17 @@ func (r stepRunQueryWorkerIDString) Lte(value string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) LteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) LteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryWorkerIDString) Gt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) Gt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "gt", @@ -127166,17 +128087,17 @@ func (r stepRunQueryWorkerIDString) Gt(value string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) GtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) GtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryWorkerIDString) Gte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) Gte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "gte", @@ -127187,17 +128108,17 @@ func (r stepRunQueryWorkerIDString) Gte(value string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) GteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) GteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryWorkerIDString) Contains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) Contains(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "contains", @@ -127208,17 +128129,17 @@ func (r stepRunQueryWorkerIDString) Contains(value string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) ContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) ContainsIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Contains(*value) } -func (r stepRunQueryWorkerIDString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) StartsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "startsWith", @@ -127229,17 +128150,17 @@ func (r stepRunQueryWorkerIDString) StartsWith(value string) stepRunDefaultParam } } -func (r stepRunQueryWorkerIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) StartsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.StartsWith(*value) } -func (r stepRunQueryWorkerIDString) EndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) EndsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "endsWith", @@ -127250,17 +128171,17 @@ func (r stepRunQueryWorkerIDString) EndsWith(value string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) EndsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.EndsWith(*value) } -func (r stepRunQueryWorkerIDString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) Mode(value QueryMode) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "mode", @@ -127271,17 +128192,17 @@ func (r stepRunQueryWorkerIDString) Mode(value QueryMode) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Mode(*value) } -func (r stepRunQueryWorkerIDString) Not(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) Not(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "not", @@ -127292,19 +128213,19 @@ func (r stepRunQueryWorkerIDString) Not(value string) stepRunDefaultParam { } } -func (r stepRunQueryWorkerIDString) NotIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) NotIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRunQueryWorkerIDString) HasPrefix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) HasPrefix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "starts_with", @@ -127316,19 +128237,19 @@ func (r stepRunQueryWorkerIDString) HasPrefix(value string) stepRunDefaultParam } // deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryWorkerIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) HasPrefixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRunQueryWorkerIDString) HasSuffix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTickerIDString) HasSuffix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "tickerId", Fields: []builder.Field{ { Name: "ends_with", @@ -127340,41 +128261,41 @@ func (r stepRunQueryWorkerIDString) HasSuffix(value string) stepRunDefaultParam } // deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryWorkerIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTickerIDString) HasSuffixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRunQueryWorkerIDString) Field() stepRunPrismaFields { - return stepRunFieldWorkerID +func (r jobRunQueryTickerIDString) Field() jobRunPrismaFields { + return jobRunFieldTickerID } // base struct -type stepRunQueryTickerTicker struct{} +type jobRunQueryStepRunsStepRun struct{} -type stepRunQueryTickerRelations struct{} +type jobRunQueryStepRunsRelations struct{} -// StepRun -> Ticker +// JobRun -> StepRuns // // @relation -// @optional -func (stepRunQueryTickerRelations) Where( - params ...TickerWhereParam, -) stepRunDefaultParam { +// @required +func (jobRunQueryStepRunsRelations) Some( + params ...StepRunWhereParam, +) jobRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "ticker", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "is", + Name: "some", Fields: fields, }, }, @@ -127382,51 +128303,135 @@ func (stepRunQueryTickerRelations) Where( } } -func (stepRunQueryTickerRelations) Fetch() stepRunToTickerFindUnique { - var v stepRunToTickerFindUnique +// JobRun -> StepRuns +// +// @relation +// @required +func (jobRunQueryStepRunsRelations) Every( + params ...StepRunWhereParam, +) jobRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return jobRunDefaultParam{ + data: builder.Field{ + Name: "stepRuns", + Fields: []builder.Field{ + { + Name: "every", + Fields: fields, + }, + }, + }, + } +} + +// JobRun -> StepRuns +// +// @relation +// @required +func (jobRunQueryStepRunsRelations) None( + params ...StepRunWhereParam, +) jobRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return jobRunDefaultParam{ + data: builder.Field{ + Name: "stepRuns", + Fields: []builder.Field{ + { + Name: "none", + Fields: fields, + }, + }, + }, + } +} + +func (jobRunQueryStepRunsRelations) Fetch( + + params ...StepRunWhereParam, + +) jobRunToStepRunsFindMany { + var v jobRunToStepRunsFindMany v.query.Operation = "query" - v.query.Method = "ticker" - v.query.Outputs = tickerOutput + v.query.Method = "stepRuns" + v.query.Outputs = stepRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } return v } -func (r stepRunQueryTickerRelations) Link( - params TickerWhereParam, -) stepRunSetParam { +func (r jobRunQueryStepRunsRelations) Link( + params ...StepRunWhereParam, +) jobRunSetParam { var fields []builder.Field - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepRunSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - fields = append(fields, f) - - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "ticker", + Name: "stepRuns", Fields: []builder.Field{ { Name: "connect", Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r stepRunQueryTickerRelations) Unlink() stepRunSetParam { - var v stepRunSetParam +func (r jobRunQueryStepRunsRelations) Unlink( + params ...StepRunWhereParam, +) jobRunSetParam { + var v jobRunSetParam - v = stepRunSetParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = jobRunSetParam{ data: builder.Field{ - Name: "ticker", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, @@ -127435,55 +128440,39 @@ func (r stepRunQueryTickerRelations) Unlink() stepRunSetParam { return v } -func (r stepRunQueryTickerTicker) Field() stepRunPrismaFields { - return stepRunFieldTicker +func (r jobRunQueryStepRunsStepRun) Field() jobRunPrismaFields { + return jobRunFieldStepRuns } // base struct -type stepRunQueryTickerIDString struct{} +type jobRunQueryStatusJobRunStatus struct{} -// Set the optional value of TickerID -func (r stepRunQueryTickerIDString) Set(value string) stepRunSetParam { +// Set the required value of Status +func (r jobRunQueryStatusJobRunStatus) Set(value JobRunStatus) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Value: value, }, } } -// Set the optional value of TickerID dynamically -func (r stepRunQueryTickerIDString) SetIfPresent(value *String) stepRunSetParam { - if value == nil { - return stepRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of TickerID dynamically -func (r stepRunQueryTickerIDString) SetOptional(value *String) stepRunSetParam { +// Set the optional value of Status dynamically +func (r jobRunQueryStatusJobRunStatus) SetIfPresent(value *JobRunStatus) jobRunSetParam { if value == nil { - - var v *string - return stepRunSetParam{ - data: builder.Field{ - Name: "tickerId", - Value: v, - }, - } + return jobRunSetParam{} } return r.Set(*value) } -func (r stepRunQueryTickerIDString) Equals(value string) stepRunWithPrismaTickerIDEqualsParam { +func (r jobRunQueryStatusJobRunStatus) Equals(value JobRunStatus) jobRunWithPrismaStatusEqualsParam { - return stepRunWithPrismaTickerIDEqualsParam{ + return jobRunWithPrismaStatusEqualsParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Fields: []builder.Field{ { Name: "equals", @@ -127494,64 +128483,35 @@ func (r stepRunQueryTickerIDString) Equals(value string) stepRunWithPrismaTicker } } -func (r stepRunQueryTickerIDString) EqualsIfPresent(value *string) stepRunWithPrismaTickerIDEqualsParam { +func (r jobRunQueryStatusJobRunStatus) EqualsIfPresent(value *JobRunStatus) jobRunWithPrismaStatusEqualsParam { if value == nil { - return stepRunWithPrismaTickerIDEqualsParam{} + return jobRunWithPrismaStatusEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryTickerIDString) EqualsOptional(value *String) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "tickerId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepRunQueryTickerIDString) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ - data: builder.Field{ - Name: "tickerId", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r stepRunQueryTickerIDString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStatusJobRunStatus) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Value: direction, }, } } -func (r stepRunQueryTickerIDString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryStatusJobRunStatus) Cursor(cursor JobRunStatus) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Value: cursor, }, } } -func (r stepRunQueryTickerIDString) In(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStatusJobRunStatus) In(value []JobRunStatus) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Fields: []builder.Field{ { Name: "in", @@ -127562,17 +128522,17 @@ func (r stepRunQueryTickerIDString) In(value []string) stepRunDefaultParam { } } -func (r stepRunQueryTickerIDString) InIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryStatusJobRunStatus) InIfPresent(value []JobRunStatus) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryTickerIDString) NotIn(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStatusJobRunStatus) NotIn(value []JobRunStatus) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Fields: []builder.Field{ { Name: "notIn", @@ -127583,20 +128543,20 @@ func (r stepRunQueryTickerIDString) NotIn(value []string) stepRunDefaultParam { } } -func (r stepRunQueryTickerIDString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryStatusJobRunStatus) NotInIfPresent(value []JobRunStatus) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryTickerIDString) Lt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStatusJobRunStatus) Not(value JobRunStatus) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "status", Fields: []builder.Field{ { - Name: "lt", + Name: "not", Value: value, }, }, @@ -127604,104 +128564,153 @@ func (r stepRunQueryTickerIDString) Lt(value string) stepRunDefaultParam { } } -func (r stepRunQueryTickerIDString) LtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryStatusJobRunStatus) NotIfPresent(value *JobRunStatus) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Lt(*value) + return r.Not(*value) } -func (r stepRunQueryTickerIDString) Lte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStatusJobRunStatus) Field() jobRunPrismaFields { + return jobRunFieldStatus +} + +// base struct +type jobRunQueryLookupDataJobRunLookupData struct{} + +type jobRunQueryLookupDataRelations struct{} + +// JobRun -> LookupData +// +// @relation +// @optional +func (jobRunQueryLookupDataRelations) Where( + params ...JobRunLookupDataWhereParam, +) jobRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "lookupData", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r stepRunQueryTickerIDString) LteIfPresent(value *string) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} - } - return r.Lte(*value) +func (jobRunQueryLookupDataRelations) Fetch() jobRunToLookupDataFindUnique { + var v jobRunToLookupDataFindUnique + + v.query.Operation = "query" + v.query.Method = "lookupData" + v.query.Outputs = jobRunLookupDataOutput + + return v } -func (r stepRunQueryTickerIDString) Gt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryLookupDataRelations) Link( + params JobRunLookupDataWhereParam, +) jobRunSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return jobRunSetParam{} + } + + fields = append(fields, f) + + return jobRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "lookupData", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r stepRunQueryTickerIDString) GtIfPresent(value *string) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} - } - return r.Gt(*value) -} +func (r jobRunQueryLookupDataRelations) Unlink() jobRunSetParam { + var v jobRunSetParam -func (r stepRunQueryTickerIDString) Gte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ + v = jobRunSetParam{ data: builder.Field{ - Name: "tickerId", + Name: "lookupData", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r stepRunQueryTickerIDString) GteIfPresent(value *string) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} - } - return r.Gte(*value) +func (r jobRunQueryLookupDataJobRunLookupData) Field() jobRunPrismaFields { + return jobRunFieldLookupData } -func (r stepRunQueryTickerIDString) Contains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +// base struct +type jobRunQueryResultJson struct{} + +// Set the optional value of Result +func (r jobRunQueryResultJson) Set(value JSON) jobRunSetParam { + + return jobRunSetParam{ data: builder.Field{ - Name: "tickerId", - Fields: []builder.Field{ - { - Name: "contains", - Value: value, - }, - }, + Name: "result", + Value: value, }, } + } -func (r stepRunQueryTickerIDString) ContainsIfPresent(value *string) stepRunDefaultParam { +// Set the optional value of Result dynamically +func (r jobRunQueryResultJson) SetIfPresent(value *JSON) jobRunSetParam { if value == nil { - return stepRunDefaultParam{} + return jobRunSetParam{} } - return r.Contains(*value) + + return r.Set(*value) } -func (r stepRunQueryTickerIDString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +// Set the optional value of Result dynamically +func (r jobRunQueryResultJson) SetOptional(value *JSON) jobRunSetParam { + if value == nil { + + var v *JSON + return jobRunSetParam{ + data: builder.Field{ + Name: "result", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r jobRunQueryResultJson) Equals(value JSON) jobRunWithPrismaResultEqualsParam { + + return jobRunWithPrismaResultEqualsParam{ data: builder.Field{ - Name: "tickerId", + Name: "result", Fields: []builder.Field{ { - Name: "startsWith", + Name: "equals", Value: value, }, }, @@ -127709,20 +128718,20 @@ func (r stepRunQueryTickerIDString) StartsWith(value string) stepRunDefaultParam } } -func (r stepRunQueryTickerIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryResultJson) EqualsIfPresent(value *JSON) jobRunWithPrismaResultEqualsParam { if value == nil { - return stepRunDefaultParam{} + return jobRunWithPrismaResultEqualsParam{} } - return r.StartsWith(*value) + return r.Equals(*value) } -func (r stepRunQueryTickerIDString) EndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) EqualsOptional(value *JSON) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "result", Fields: []builder.Field{ { - Name: "endsWith", + Name: "equals", Value: value, }, }, @@ -127730,20 +128739,46 @@ func (r stepRunQueryTickerIDString) EndsWith(value string) stepRunDefaultParam { } } -func (r stepRunQueryTickerIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} +func (r jobRunQueryResultJson) IsNull() jobRunDefaultParam { + var str *string = nil + return jobRunDefaultParam{ + data: builder.Field{ + Name: "result", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.EndsWith(*value) } -func (r stepRunQueryTickerIDString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "result", + Value: direction, + }, + } +} + +func (r jobRunQueryResultJson) Cursor(cursor JSON) jobRunCursorParam { + return jobRunCursorParam{ + data: builder.Field{ + Name: "result", + Value: cursor, + }, + } +} + +func (r jobRunQueryResultJson) Path(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "result", Fields: []builder.Field{ { - Name: "mode", + Name: "path", Value: value, }, }, @@ -127751,20 +128786,20 @@ func (r stepRunQueryTickerIDString) Mode(value QueryMode) stepRunDefaultParam { } } -func (r stepRunQueryTickerIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { +func (r jobRunQueryResultJson) PathIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Mode(*value) + return r.Path(value) } -func (r stepRunQueryTickerIDString) Not(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) StringContains(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "result", Fields: []builder.Field{ { - Name: "not", + Name: "string_contains", Value: value, }, }, @@ -127772,22 +128807,20 @@ func (r stepRunQueryTickerIDString) Not(value string) stepRunDefaultParam { } } -func (r stepRunQueryTickerIDString) NotIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryResultJson) StringContainsIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Not(*value) + return r.StringContains(*value) } -// deprecated: Use StartsWith instead. - -func (r stepRunQueryTickerIDString) HasPrefix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) StringStartsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "result", Fields: []builder.Field{ { - Name: "starts_with", + Name: "string_starts_with", Value: value, }, }, @@ -127795,23 +128828,20 @@ func (r stepRunQueryTickerIDString) HasPrefix(value string) stepRunDefaultParam } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryTickerIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryResultJson) StringStartsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.HasPrefix(*value) + return r.StringStartsWith(*value) } -// deprecated: Use EndsWith instead. - -func (r stepRunQueryTickerIDString) HasSuffix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) StringEndsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "tickerId", + Name: "result", Fields: []builder.Field{ { - Name: "ends_with", + Name: "string_ends_with", Value: value, }, }, @@ -127819,50 +128849,62 @@ func (r stepRunQueryTickerIDString) HasSuffix(value string) stepRunDefaultParam } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryTickerIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryResultJson) StringEndsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.HasSuffix(*value) + return r.StringEndsWith(*value) } -func (r stepRunQueryTickerIDString) Field() stepRunPrismaFields { - return stepRunFieldTickerID +func (r jobRunQueryResultJson) ArrayContains(value JSON) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "result", + Fields: []builder.Field{ + { + Name: "array_contains", + Value: value, + }, + }, + }, + } } -// base struct -type stepRunQueryStatusStepRunStatus struct{} - -// Set the required value of Status -func (r stepRunQueryStatusStepRunStatus) Set(value StepRunStatus) stepRunSetParam { +func (r jobRunQueryResultJson) ArrayContainsIfPresent(value *JSON) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.ArrayContains(*value) +} - return stepRunSetParam{ +func (r jobRunQueryResultJson) ArrayStartsWith(value JSON) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "status", - Value: value, + Name: "result", + Fields: []builder.Field{ + { + Name: "array_starts_with", + Value: value, + }, + }, }, } - } -// Set the optional value of Status dynamically -func (r stepRunQueryStatusStepRunStatus) SetIfPresent(value *StepRunStatus) stepRunSetParam { +func (r jobRunQueryResultJson) ArrayStartsWithIfPresent(value *JSON) jobRunDefaultParam { if value == nil { - return stepRunSetParam{} + return jobRunDefaultParam{} } - - return r.Set(*value) + return r.ArrayStartsWith(*value) } -func (r stepRunQueryStatusStepRunStatus) Equals(value StepRunStatus) stepRunWithPrismaStatusEqualsParam { - - return stepRunWithPrismaStatusEqualsParam{ +func (r jobRunQueryResultJson) ArrayEndsWith(value JSON) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "result", Fields: []builder.Field{ { - Name: "equals", + Name: "array_ends_with", Value: value, }, }, @@ -127870,38 +128912,62 @@ func (r stepRunQueryStatusStepRunStatus) Equals(value StepRunStatus) stepRunWith } } -func (r stepRunQueryStatusStepRunStatus) EqualsIfPresent(value *StepRunStatus) stepRunWithPrismaStatusEqualsParam { +func (r jobRunQueryResultJson) ArrayEndsWithIfPresent(value *JSON) jobRunDefaultParam { if value == nil { - return stepRunWithPrismaStatusEqualsParam{} + return jobRunDefaultParam{} } - return r.Equals(*value) + return r.ArrayEndsWith(*value) } -func (r stepRunQueryStatusStepRunStatus) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) Lt(value JSON) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "status", - Value: direction, + Name: "result", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, }, } } -func (r stepRunQueryStatusStepRunStatus) Cursor(cursor StepRunStatus) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryResultJson) LtIfPresent(value *JSON) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.Lt(*value) +} + +func (r jobRunQueryResultJson) Lte(value JSON) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "status", - Value: cursor, + Name: "result", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, }, } } -func (r stepRunQueryStatusStepRunStatus) In(value []StepRunStatus) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) LteIfPresent(value *JSON) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.Lte(*value) +} + +func (r jobRunQueryResultJson) Gt(value JSON) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "result", Fields: []builder.Field{ { - Name: "in", + Name: "gt", Value: value, }, }, @@ -127909,20 +128975,20 @@ func (r stepRunQueryStatusStepRunStatus) In(value []StepRunStatus) stepRunDefaul } } -func (r stepRunQueryStatusStepRunStatus) InIfPresent(value []StepRunStatus) stepRunDefaultParam { +func (r jobRunQueryResultJson) GtIfPresent(value *JSON) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.In(value) + return r.Gt(*value) } -func (r stepRunQueryStatusStepRunStatus) NotIn(value []StepRunStatus) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) Gte(value JSON) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "result", Fields: []builder.Field{ { - Name: "notIn", + Name: "gte", Value: value, }, }, @@ -127930,17 +128996,17 @@ func (r stepRunQueryStatusStepRunStatus) NotIn(value []StepRunStatus) stepRunDef } } -func (r stepRunQueryStatusStepRunStatus) NotInIfPresent(value []StepRunStatus) stepRunDefaultParam { +func (r jobRunQueryResultJson) GteIfPresent(value *JSON) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.NotIn(value) + return r.Gte(*value) } -func (r stepRunQueryStatusStepRunStatus) Not(value StepRunStatus) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryResultJson) Not(value JSONNullValueFilter) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "status", + Name: "result", Fields: []builder.Field{ { Name: "not", @@ -127951,49 +129017,49 @@ func (r stepRunQueryStatusStepRunStatus) Not(value StepRunStatus) stepRunDefault } } -func (r stepRunQueryStatusStepRunStatus) NotIfPresent(value *StepRunStatus) stepRunDefaultParam { +func (r jobRunQueryResultJson) NotIfPresent(value *JSONNullValueFilter) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Not(*value) } -func (r stepRunQueryStatusStepRunStatus) Field() stepRunPrismaFields { - return stepRunFieldStatus +func (r jobRunQueryResultJson) Field() jobRunPrismaFields { + return jobRunFieldResult } // base struct -type stepRunQueryInputJson struct{} +type jobRunQueryStartedAtDateTime struct{} -// Set the optional value of Input -func (r stepRunQueryInputJson) Set(value JSON) stepRunSetParam { +// Set the optional value of StartedAt +func (r jobRunQueryStartedAtDateTime) Set(value DateTime) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Value: value, }, } } -// Set the optional value of Input dynamically -func (r stepRunQueryInputJson) SetIfPresent(value *JSON) stepRunSetParam { +// Set the optional value of StartedAt dynamically +func (r jobRunQueryStartedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -// Set the optional value of Input dynamically -func (r stepRunQueryInputJson) SetOptional(value *JSON) stepRunSetParam { +// Set the optional value of StartedAt dynamically +func (r jobRunQueryStartedAtDateTime) SetOptional(value *DateTime) jobRunSetParam { if value == nil { - var v *JSON - return stepRunSetParam{ + var v *DateTime + return jobRunSetParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Value: v, }, } @@ -128002,11 +129068,11 @@ func (r stepRunQueryInputJson) SetOptional(value *JSON) stepRunSetParam { return r.Set(*value) } -func (r stepRunQueryInputJson) Equals(value JSON) stepRunWithPrismaInputEqualsParam { +func (r jobRunQueryStartedAtDateTime) Equals(value DateTime) jobRunWithPrismaStartedAtEqualsParam { - return stepRunWithPrismaInputEqualsParam{ + return jobRunWithPrismaStartedAtEqualsParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -128017,17 +129083,17 @@ func (r stepRunQueryInputJson) Equals(value JSON) stepRunWithPrismaInputEqualsPa } } -func (r stepRunQueryInputJson) EqualsIfPresent(value *JSON) stepRunWithPrismaInputEqualsParam { +func (r jobRunQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaStartedAtEqualsParam { if value == nil { - return stepRunWithPrismaInputEqualsParam{} + return jobRunWithPrismaStartedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryInputJson) EqualsOptional(value *JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -128038,11 +129104,11 @@ func (r stepRunQueryInputJson) EqualsOptional(value *JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputJson) IsNull() stepRunDefaultParam { +func (r jobRunQueryStartedAtDateTime) IsNull() jobRunDefaultParam { var str *string = nil - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -128053,31 +129119,31 @@ func (r stepRunQueryInputJson) IsNull() stepRunDefaultParam { } } -func (r stepRunQueryInputJson) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Value: direction, }, } } -func (r stepRunQueryInputJson) Cursor(cursor JSON) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryStartedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Value: cursor, }, } } -func (r stepRunQueryInputJson) Path(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) In(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -128085,20 +129151,20 @@ func (r stepRunQueryInputJson) Path(value []string) stepRunDefaultParam { } } -func (r stepRunQueryInputJson) PathIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryStartedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r stepRunQueryInputJson) StringContains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -128106,20 +129172,20 @@ func (r stepRunQueryInputJson) StringContains(value string) stepRunDefaultParam } } -func (r stepRunQueryInputJson) StringContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryStartedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r stepRunQueryInputJson) StringStartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) Lt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -128127,20 +129193,20 @@ func (r stepRunQueryInputJson) StringStartsWith(value string) stepRunDefaultPara } } -func (r stepRunQueryInputJson) StringStartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryStartedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r stepRunQueryInputJson) StringEndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) Lte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -128148,20 +129214,20 @@ func (r stepRunQueryInputJson) StringEndsWith(value string) stepRunDefaultParam } } -func (r stepRunQueryInputJson) StringEndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryStartedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r stepRunQueryInputJson) ArrayContains(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) Gt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -128169,20 +129235,20 @@ func (r stepRunQueryInputJson) ArrayContains(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputJson) ArrayContainsIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryStartedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r stepRunQueryInputJson) ArrayStartsWith(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) Gte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -128190,20 +129256,20 @@ func (r stepRunQueryInputJson) ArrayStartsWith(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputJson) ArrayStartsWithIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryStartedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r stepRunQueryInputJson) ArrayEndsWith(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) Not(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -128211,17 +129277,19 @@ func (r stepRunQueryInputJson) ArrayEndsWith(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputJson) ArrayEndsWithIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryStartedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r stepRunQueryInputJson) Lt(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Lt instead. + +func (r jobRunQueryStartedAtDateTime) Before(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { Name: "lt", @@ -128232,38 +129300,20 @@ func (r stepRunQueryInputJson) Lt(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputJson) LtIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r jobRunQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} - } - return r.Lt(*value) -} - -func (r stepRunQueryInputJson) Lte(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + return jobRunDefaultParam{} } + return r.Before(*value) } -func (r stepRunQueryInputJson) LteIfPresent(value *JSON) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} - } - return r.Lte(*value) -} +// deprecated: Use Gt instead. -func (r stepRunQueryInputJson) Gt(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryStartedAtDateTime) After(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { Name: "gt", @@ -128274,20 +129324,23 @@ func (r stepRunQueryInputJson) Gt(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputJson) GtIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r jobRunQueryStartedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Gt(*value) + return r.After(*value) } -func (r stepRunQueryInputJson) Gte(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Lte instead. + +func (r jobRunQueryStartedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "gte", + Name: "lte", Value: value, }, }, @@ -128295,20 +129348,23 @@ func (r stepRunQueryInputJson) Gte(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputJson) GteIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r jobRunQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Gte(*value) + return r.BeforeEquals(*value) } -func (r stepRunQueryInputJson) Not(value JSONNullValueFilter) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Gte instead. + +func (r jobRunQueryStartedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "startedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -128316,49 +129372,50 @@ func (r stepRunQueryInputJson) Not(value JSONNullValueFilter) stepRunDefaultPara } } -func (r stepRunQueryInputJson) NotIfPresent(value *JSONNullValueFilter) stepRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r jobRunQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -func (r stepRunQueryInputJson) Field() stepRunPrismaFields { - return stepRunFieldInput +func (r jobRunQueryStartedAtDateTime) Field() jobRunPrismaFields { + return jobRunFieldStartedAt } // base struct -type stepRunQueryOutputJson struct{} +type jobRunQueryFinishedAtDateTime struct{} -// Set the optional value of Output -func (r stepRunQueryOutputJson) Set(value JSON) stepRunSetParam { +// Set the optional value of FinishedAt +func (r jobRunQueryFinishedAtDateTime) Set(value DateTime) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Value: value, }, } } -// Set the optional value of Output dynamically -func (r stepRunQueryOutputJson) SetIfPresent(value *JSON) stepRunSetParam { +// Set the optional value of FinishedAt dynamically +func (r jobRunQueryFinishedAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -// Set the optional value of Output dynamically -func (r stepRunQueryOutputJson) SetOptional(value *JSON) stepRunSetParam { +// Set the optional value of FinishedAt dynamically +func (r jobRunQueryFinishedAtDateTime) SetOptional(value *DateTime) jobRunSetParam { if value == nil { - var v *JSON - return stepRunSetParam{ + var v *DateTime + return jobRunSetParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Value: v, }, } @@ -128367,11 +129424,11 @@ func (r stepRunQueryOutputJson) SetOptional(value *JSON) stepRunSetParam { return r.Set(*value) } -func (r stepRunQueryOutputJson) Equals(value JSON) stepRunWithPrismaOutputEqualsParam { +func (r jobRunQueryFinishedAtDateTime) Equals(value DateTime) jobRunWithPrismaFinishedAtEqualsParam { - return stepRunWithPrismaOutputEqualsParam{ + return jobRunWithPrismaFinishedAtEqualsParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -128382,17 +129439,17 @@ func (r stepRunQueryOutputJson) Equals(value JSON) stepRunWithPrismaOutputEquals } } -func (r stepRunQueryOutputJson) EqualsIfPresent(value *JSON) stepRunWithPrismaOutputEqualsParam { +func (r jobRunQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaFinishedAtEqualsParam { if value == nil { - return stepRunWithPrismaOutputEqualsParam{} + return jobRunWithPrismaFinishedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryOutputJson) EqualsOptional(value *JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -128403,11 +129460,11 @@ func (r stepRunQueryOutputJson) EqualsOptional(value *JSON) stepRunDefaultParam } } -func (r stepRunQueryOutputJson) IsNull() stepRunDefaultParam { +func (r jobRunQueryFinishedAtDateTime) IsNull() jobRunDefaultParam { var str *string = nil - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { Name: "equals", @@ -128418,31 +129475,31 @@ func (r stepRunQueryOutputJson) IsNull() stepRunDefaultParam { } } -func (r stepRunQueryOutputJson) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Value: direction, }, } } -func (r stepRunQueryOutputJson) Cursor(cursor JSON) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryFinishedAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Value: cursor, }, } } -func (r stepRunQueryOutputJson) Path(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) In(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -128450,20 +129507,20 @@ func (r stepRunQueryOutputJson) Path(value []string) stepRunDefaultParam { } } -func (r stepRunQueryOutputJson) PathIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryFinishedAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r stepRunQueryOutputJson) StringContains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -128471,20 +129528,20 @@ func (r stepRunQueryOutputJson) StringContains(value string) stepRunDefaultParam } } -func (r stepRunQueryOutputJson) StringContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r stepRunQueryOutputJson) StringStartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) Lt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -128492,20 +129549,20 @@ func (r stepRunQueryOutputJson) StringStartsWith(value string) stepRunDefaultPar } } -func (r stepRunQueryOutputJson) StringStartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryFinishedAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r stepRunQueryOutputJson) StringEndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) Lte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -128513,20 +129570,20 @@ func (r stepRunQueryOutputJson) StringEndsWith(value string) stepRunDefaultParam } } -func (r stepRunQueryOutputJson) StringEndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryFinishedAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r stepRunQueryOutputJson) ArrayContains(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) Gt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -128534,20 +129591,20 @@ func (r stepRunQueryOutputJson) ArrayContains(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryOutputJson) ArrayContainsIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryFinishedAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r stepRunQueryOutputJson) ArrayStartsWith(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) Gte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -128555,20 +129612,20 @@ func (r stepRunQueryOutputJson) ArrayStartsWith(value JSON) stepRunDefaultParam } } -func (r stepRunQueryOutputJson) ArrayStartsWithIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryFinishedAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r stepRunQueryOutputJson) ArrayEndsWith(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) Not(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -128576,17 +129633,19 @@ func (r stepRunQueryOutputJson) ArrayEndsWith(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryOutputJson) ArrayEndsWithIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryFinishedAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r stepRunQueryOutputJson) Lt(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Lt instead. + +func (r jobRunQueryFinishedAtDateTime) Before(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { Name: "lt", @@ -128597,38 +129656,20 @@ func (r stepRunQueryOutputJson) Lt(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryOutputJson) LtIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r jobRunQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} - } - return r.Lt(*value) -} - -func (r stepRunQueryOutputJson) Lte(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "output", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + return jobRunDefaultParam{} } + return r.Before(*value) } -func (r stepRunQueryOutputJson) LteIfPresent(value *JSON) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} - } - return r.Lte(*value) -} +// deprecated: Use Gt instead. -func (r stepRunQueryOutputJson) Gt(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryFinishedAtDateTime) After(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { Name: "gt", @@ -128639,20 +129680,23 @@ func (r stepRunQueryOutputJson) Gt(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryOutputJson) GtIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r jobRunQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Gt(*value) + return r.After(*value) } -func (r stepRunQueryOutputJson) Gte(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Lte instead. + +func (r jobRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "gte", + Name: "lte", Value: value, }, }, @@ -128660,20 +129704,23 @@ func (r stepRunQueryOutputJson) Gte(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryOutputJson) GteIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r jobRunQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Gte(*value) + return r.BeforeEquals(*value) } -func (r stepRunQueryOutputJson) Not(value JSONNullValueFilter) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Gte instead. + +func (r jobRunQueryFinishedAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -128681,49 +129728,50 @@ func (r stepRunQueryOutputJson) Not(value JSONNullValueFilter) stepRunDefaultPar } } -func (r stepRunQueryOutputJson) NotIfPresent(value *JSONNullValueFilter) stepRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r jobRunQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -func (r stepRunQueryOutputJson) Field() stepRunPrismaFields { - return stepRunFieldOutput +func (r jobRunQueryFinishedAtDateTime) Field() jobRunPrismaFields { + return jobRunFieldFinishedAt } // base struct -type stepRunQueryInputSchemaJson struct{} +type jobRunQueryTimeoutAtDateTime struct{} -// Set the optional value of InputSchema -func (r stepRunQueryInputSchemaJson) Set(value JSON) stepRunSetParam { +// Set the optional value of TimeoutAt +func (r jobRunQueryTimeoutAtDateTime) Set(value DateTime) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Value: value, }, } } -// Set the optional value of InputSchema dynamically -func (r stepRunQueryInputSchemaJson) SetIfPresent(value *JSON) stepRunSetParam { +// Set the optional value of TimeoutAt dynamically +func (r jobRunQueryTimeoutAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -// Set the optional value of InputSchema dynamically -func (r stepRunQueryInputSchemaJson) SetOptional(value *JSON) stepRunSetParam { +// Set the optional value of TimeoutAt dynamically +func (r jobRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) jobRunSetParam { if value == nil { - var v *JSON - return stepRunSetParam{ + var v *DateTime + return jobRunSetParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Value: v, }, } @@ -128732,11 +129780,11 @@ func (r stepRunQueryInputSchemaJson) SetOptional(value *JSON) stepRunSetParam { return r.Set(*value) } -func (r stepRunQueryInputSchemaJson) Equals(value JSON) stepRunWithPrismaInputSchemaEqualsParam { +func (r jobRunQueryTimeoutAtDateTime) Equals(value DateTime) jobRunWithPrismaTimeoutAtEqualsParam { - return stepRunWithPrismaInputSchemaEqualsParam{ + return jobRunWithPrismaTimeoutAtEqualsParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "equals", @@ -128747,17 +129795,17 @@ func (r stepRunQueryInputSchemaJson) Equals(value JSON) stepRunWithPrismaInputSc } } -func (r stepRunQueryInputSchemaJson) EqualsIfPresent(value *JSON) stepRunWithPrismaInputSchemaEqualsParam { +func (r jobRunQueryTimeoutAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaTimeoutAtEqualsParam { if value == nil { - return stepRunWithPrismaInputSchemaEqualsParam{} + return jobRunWithPrismaTimeoutAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryInputSchemaJson) EqualsOptional(value *JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "equals", @@ -128768,11 +129816,11 @@ func (r stepRunQueryInputSchemaJson) EqualsOptional(value *JSON) stepRunDefaultP } } -func (r stepRunQueryInputSchemaJson) IsNull() stepRunDefaultParam { +func (r jobRunQueryTimeoutAtDateTime) IsNull() jobRunDefaultParam { var str *string = nil - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "equals", @@ -128783,31 +129831,31 @@ func (r stepRunQueryInputSchemaJson) IsNull() stepRunDefaultParam { } } -func (r stepRunQueryInputSchemaJson) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Value: direction, }, } } -func (r stepRunQueryInputSchemaJson) Cursor(cursor JSON) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryTimeoutAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Value: cursor, }, } } -func (r stepRunQueryInputSchemaJson) Path(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) In(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -128815,20 +129863,20 @@ func (r stepRunQueryInputSchemaJson) Path(value []string) stepRunDefaultParam { } } -func (r stepRunQueryInputSchemaJson) PathIfPresent(value []string) stepRunDefaultParam { +func (r jobRunQueryTimeoutAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r stepRunQueryInputSchemaJson) StringContains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -128836,20 +129884,20 @@ func (r stepRunQueryInputSchemaJson) StringContains(value string) stepRunDefault } } -func (r stepRunQueryInputSchemaJson) StringContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTimeoutAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r stepRunQueryInputSchemaJson) StringStartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) Lt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -128857,20 +129905,20 @@ func (r stepRunQueryInputSchemaJson) StringStartsWith(value string) stepRunDefau } } -func (r stepRunQueryInputSchemaJson) StringStartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTimeoutAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r stepRunQueryInputSchemaJson) StringEndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) Lte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -128878,20 +129926,20 @@ func (r stepRunQueryInputSchemaJson) StringEndsWith(value string) stepRunDefault } } -func (r stepRunQueryInputSchemaJson) StringEndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunQueryTimeoutAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r stepRunQueryInputSchemaJson) ArrayContains(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) Gt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -128899,20 +129947,20 @@ func (r stepRunQueryInputSchemaJson) ArrayContains(value JSON) stepRunDefaultPar } } -func (r stepRunQueryInputSchemaJson) ArrayContainsIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryTimeoutAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r stepRunQueryInputSchemaJson) ArrayStartsWith(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) Gte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -128920,20 +129968,20 @@ func (r stepRunQueryInputSchemaJson) ArrayStartsWith(value JSON) stepRunDefaultP } } -func (r stepRunQueryInputSchemaJson) ArrayStartsWithIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryTimeoutAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r stepRunQueryInputSchemaJson) ArrayEndsWith(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) Not(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -128941,17 +129989,19 @@ func (r stepRunQueryInputSchemaJson) ArrayEndsWith(value JSON) stepRunDefaultPar } } -func (r stepRunQueryInputSchemaJson) ArrayEndsWithIfPresent(value *JSON) stepRunDefaultParam { +func (r jobRunQueryTimeoutAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r stepRunQueryInputSchemaJson) Lt(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Lt instead. + +func (r jobRunQueryTimeoutAtDateTime) Before(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "lt", @@ -128962,20 +130012,23 @@ func (r stepRunQueryInputSchemaJson) Lt(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputSchemaJson) LtIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r jobRunQueryTimeoutAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Lt(*value) + return r.Before(*value) } -func (r stepRunQueryInputSchemaJson) Lte(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Gt instead. + +func (r jobRunQueryTimeoutAtDateTime) After(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -128983,20 +130036,23 @@ func (r stepRunQueryInputSchemaJson) Lte(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputSchemaJson) LteIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r jobRunQueryTimeoutAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Lte(*value) + return r.After(*value) } -func (r stepRunQueryInputSchemaJson) Gt(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Lte instead. + +func (r jobRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -129004,17 +130060,20 @@ func (r stepRunQueryInputSchemaJson) Gt(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputSchemaJson) GtIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r jobRunQueryTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Gt(*value) + return r.BeforeEquals(*value) } -func (r stepRunQueryInputSchemaJson) Gte(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use Gte instead. + +func (r jobRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "inputSchema", + Name: "timeoutAt", Fields: []builder.Field{ { Name: "gte", @@ -129025,70 +130084,50 @@ func (r stepRunQueryInputSchemaJson) Gte(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryInputSchemaJson) GteIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r jobRunQueryTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Gte(*value) + return r.AfterEquals(*value) } -func (r stepRunQueryInputSchemaJson) Not(value JSONNullValueFilter) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryTimeoutAtDateTime) Field() jobRunPrismaFields { + return jobRunFieldTimeoutAt +} + +// base struct +type jobRunQueryCancelledAtDateTime struct{} + +// Set the optional value of CancelledAt +func (r jobRunQueryCancelledAtDateTime) Set(value DateTime) jobRunSetParam { + + return jobRunSetParam{ data: builder.Field{ - Name: "inputSchema", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, + Name: "cancelledAt", + Value: value, }, } + } -func (r stepRunQueryInputSchemaJson) NotIfPresent(value *JSONNullValueFilter) stepRunDefaultParam { +// Set the optional value of CancelledAt dynamically +func (r jobRunQueryCancelledAtDateTime) SetIfPresent(value *DateTime) jobRunSetParam { if value == nil { - return stepRunDefaultParam{} - } - return r.Not(*value) -} - -func (r stepRunQueryInputSchemaJson) Field() stepRunPrismaFields { - return stepRunFieldInputSchema -} - -// base struct -type stepRunQueryRequeueAfterDateTime struct{} - -// Set the optional value of RequeueAfter -func (r stepRunQueryRequeueAfterDateTime) Set(value DateTime) stepRunSetParam { - - return stepRunSetParam{ - data: builder.Field{ - Name: "requeueAfter", - Value: value, - }, - } - -} - -// Set the optional value of RequeueAfter dynamically -func (r stepRunQueryRequeueAfterDateTime) SetIfPresent(value *DateTime) stepRunSetParam { - if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -// Set the optional value of RequeueAfter dynamically -func (r stepRunQueryRequeueAfterDateTime) SetOptional(value *DateTime) stepRunSetParam { +// Set the optional value of CancelledAt dynamically +func (r jobRunQueryCancelledAtDateTime) SetOptional(value *DateTime) jobRunSetParam { if value == nil { var v *DateTime - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Value: v, }, } @@ -129097,11 +130136,11 @@ func (r stepRunQueryRequeueAfterDateTime) SetOptional(value *DateTime) stepRunSe return r.Set(*value) } -func (r stepRunQueryRequeueAfterDateTime) Equals(value DateTime) stepRunWithPrismaRequeueAfterEqualsParam { +func (r jobRunQueryCancelledAtDateTime) Equals(value DateTime) jobRunWithPrismaCancelledAtEqualsParam { - return stepRunWithPrismaRequeueAfterEqualsParam{ + return jobRunWithPrismaCancelledAtEqualsParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "equals", @@ -129112,17 +130151,17 @@ func (r stepRunQueryRequeueAfterDateTime) Equals(value DateTime) stepRunWithPris } } -func (r stepRunQueryRequeueAfterDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaRequeueAfterEqualsParam { +func (r jobRunQueryCancelledAtDateTime) EqualsIfPresent(value *DateTime) jobRunWithPrismaCancelledAtEqualsParam { if value == nil { - return stepRunWithPrismaRequeueAfterEqualsParam{} + return jobRunWithPrismaCancelledAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryRequeueAfterDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) EqualsOptional(value *DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "equals", @@ -129133,11 +130172,11 @@ func (r stepRunQueryRequeueAfterDateTime) EqualsOptional(value *DateTime) stepRu } } -func (r stepRunQueryRequeueAfterDateTime) IsNull() stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) IsNull() jobRunDefaultParam { var str *string = nil - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "equals", @@ -129148,28 +130187,28 @@ func (r stepRunQueryRequeueAfterDateTime) IsNull() stepRunDefaultParam { } } -func (r stepRunQueryRequeueAfterDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Value: direction, }, } } -func (r stepRunQueryRequeueAfterDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryCancelledAtDateTime) Cursor(cursor DateTime) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Value: cursor, }, } } -func (r stepRunQueryRequeueAfterDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) In(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "in", @@ -129180,17 +130219,17 @@ func (r stepRunQueryRequeueAfterDateTime) In(value []DateTime) stepRunDefaultPar } } -func (r stepRunQueryRequeueAfterDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) InIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryRequeueAfterDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) NotIn(value []DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "notIn", @@ -129201,17 +130240,17 @@ func (r stepRunQueryRequeueAfterDateTime) NotIn(value []DateTime) stepRunDefault } } -func (r stepRunQueryRequeueAfterDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) NotInIfPresent(value []DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryRequeueAfterDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) Lt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "lt", @@ -129222,17 +130261,17 @@ func (r stepRunQueryRequeueAfterDateTime) Lt(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryRequeueAfterDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) LtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryRequeueAfterDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) Lte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "lte", @@ -129243,17 +130282,17 @@ func (r stepRunQueryRequeueAfterDateTime) Lte(value DateTime) stepRunDefaultPara } } -func (r stepRunQueryRequeueAfterDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) LteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryRequeueAfterDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) Gt(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "gt", @@ -129264,17 +130303,17 @@ func (r stepRunQueryRequeueAfterDateTime) Gt(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryRequeueAfterDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) GtIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryRequeueAfterDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) Gte(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "gte", @@ -129285,17 +130324,17 @@ func (r stepRunQueryRequeueAfterDateTime) Gte(value DateTime) stepRunDefaultPara } } -func (r stepRunQueryRequeueAfterDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) GteIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryRequeueAfterDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) Not(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "not", @@ -129306,19 +130345,19 @@ func (r stepRunQueryRequeueAfterDateTime) Not(value DateTime) stepRunDefaultPara } } -func (r stepRunQueryRequeueAfterDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) NotIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunQueryRequeueAfterDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) Before(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "lt", @@ -129330,19 +130369,19 @@ func (r stepRunQueryRequeueAfterDateTime) Before(value DateTime) stepRunDefaultP } // deprecated: Use LtIfPresent instead. -func (r stepRunQueryRequeueAfterDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) BeforeIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunQueryRequeueAfterDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) After(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "gt", @@ -129354,19 +130393,19 @@ func (r stepRunQueryRequeueAfterDateTime) After(value DateTime) stepRunDefaultPa } // deprecated: Use GtIfPresent instead. -func (r stepRunQueryRequeueAfterDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) AfterIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunQueryRequeueAfterDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "lte", @@ -129378,19 +130417,19 @@ func (r stepRunQueryRequeueAfterDateTime) BeforeEquals(value DateTime) stepRunDe } // deprecated: Use LteIfPresent instead. -func (r stepRunQueryRequeueAfterDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunQueryRequeueAfterDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledAtDateTime) AfterEquals(value DateTime) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "requeueAfter", + Name: "cancelledAt", Fields: []builder.Field{ { Name: "gte", @@ -129402,49 +130441,49 @@ func (r stepRunQueryRequeueAfterDateTime) AfterEquals(value DateTime) stepRunDef } // deprecated: Use GteIfPresent instead. -func (r stepRunQueryRequeueAfterDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunQueryRequeueAfterDateTime) Field() stepRunPrismaFields { - return stepRunFieldRequeueAfter +func (r jobRunQueryCancelledAtDateTime) Field() jobRunPrismaFields { + return jobRunFieldCancelledAt } // base struct -type stepRunQueryScheduleTimeoutAtDateTime struct{} +type jobRunQueryCancelledReasonString struct{} -// Set the optional value of ScheduleTimeoutAt -func (r stepRunQueryScheduleTimeoutAtDateTime) Set(value DateTime) stepRunSetParam { +// Set the optional value of CancelledReason +func (r jobRunQueryCancelledReasonString) Set(value string) jobRunSetParam { - return stepRunSetParam{ + return jobRunSetParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Value: value, }, } } -// Set the optional value of ScheduleTimeoutAt dynamically -func (r stepRunQueryScheduleTimeoutAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { +// Set the optional value of CancelledReason dynamically +func (r jobRunQueryCancelledReasonString) SetIfPresent(value *String) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } return r.Set(*value) } -// Set the optional value of ScheduleTimeoutAt dynamically -func (r stepRunQueryScheduleTimeoutAtDateTime) SetOptional(value *DateTime) stepRunSetParam { +// Set the optional value of CancelledReason dynamically +func (r jobRunQueryCancelledReasonString) SetOptional(value *String) jobRunSetParam { if value == nil { - var v *DateTime - return stepRunSetParam{ + var v *string + return jobRunSetParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Value: v, }, } @@ -129453,11 +130492,11 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) SetOptional(value *DateTime) step return r.Set(*value) } -func (r stepRunQueryScheduleTimeoutAtDateTime) Equals(value DateTime) stepRunWithPrismaScheduleTimeoutAtEqualsParam { +func (r jobRunQueryCancelledReasonString) Equals(value string) jobRunWithPrismaCancelledReasonEqualsParam { - return stepRunWithPrismaScheduleTimeoutAtEqualsParam{ + return jobRunWithPrismaCancelledReasonEqualsParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "equals", @@ -129468,17 +130507,17 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) Equals(value DateTime) stepRunWit } } -func (r stepRunQueryScheduleTimeoutAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaScheduleTimeoutAtEqualsParam { +func (r jobRunQueryCancelledReasonString) EqualsIfPresent(value *string) jobRunWithPrismaCancelledReasonEqualsParam { if value == nil { - return stepRunWithPrismaScheduleTimeoutAtEqualsParam{} + return jobRunWithPrismaCancelledReasonEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryScheduleTimeoutAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) EqualsOptional(value *String) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "equals", @@ -129489,11 +130528,11 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) EqualsOptional(value *DateTime) s } } -func (r stepRunQueryScheduleTimeoutAtDateTime) IsNull() stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) IsNull() jobRunDefaultParam { var str *string = nil - return stepRunDefaultParam{ + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "equals", @@ -129504,28 +130543,28 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) IsNull() stepRunDefaultParam { } } -func (r stepRunQueryScheduleTimeoutAtDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Value: direction, }, } } -func (r stepRunQueryScheduleTimeoutAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryCancelledReasonString) Cursor(cursor string) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Value: cursor, }, } } -func (r stepRunQueryScheduleTimeoutAtDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) In(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "in", @@ -129536,17 +130575,17 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) In(value []DateTime) stepRunDefau } } -func (r stepRunQueryScheduleTimeoutAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) InIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryScheduleTimeoutAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) NotIn(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "notIn", @@ -129557,17 +130596,17 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) NotIn(value []DateTime) stepRunDe } } -func (r stepRunQueryScheduleTimeoutAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) NotInIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryScheduleTimeoutAtDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) Lt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "lt", @@ -129578,17 +130617,17 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) Lt(value DateTime) stepRunDefault } } -func (r stepRunQueryScheduleTimeoutAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) LtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryScheduleTimeoutAtDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) Lte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "lte", @@ -129599,17 +130638,17 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) Lte(value DateTime) stepRunDefaul } } -func (r stepRunQueryScheduleTimeoutAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) LteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryScheduleTimeoutAtDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) Gt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "gt", @@ -129620,17 +130659,17 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) Gt(value DateTime) stepRunDefault } } -func (r stepRunQueryScheduleTimeoutAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) GtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryScheduleTimeoutAtDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) Gte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "gte", @@ -129641,20 +130680,20 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) Gte(value DateTime) stepRunDefaul } } -func (r stepRunQueryScheduleTimeoutAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) GteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryScheduleTimeoutAtDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) Contains(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -129662,22 +130701,20 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) Not(value DateTime) stepRunDefaul } } -func (r stepRunQueryScheduleTimeoutAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) ContainsIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r stepRunQueryScheduleTimeoutAtDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) StartsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -129685,23 +130722,20 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) Before(value DateTime) stepRunDef } } -// deprecated: Use LtIfPresent instead. -func (r stepRunQueryScheduleTimeoutAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) StartsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r stepRunQueryScheduleTimeoutAtDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) EndsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -129709,23 +130743,20 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) After(value DateTime) stepRunDefa } } -// deprecated: Use GtIfPresent instead. -func (r stepRunQueryScheduleTimeoutAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) EndsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r stepRunQueryScheduleTimeoutAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) Mode(value QueryMode) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -129733,23 +130764,20 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) BeforeEquals(value DateTime) step } } -// deprecated: Use LteIfPresent instead. -func (r stepRunQueryScheduleTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r stepRunQueryScheduleTimeoutAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledReasonString) Not(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "scheduleTimeoutAt", + Name: "cancelledReason", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -129757,50 +130785,46 @@ func (r stepRunQueryScheduleTimeoutAtDateTime) AfterEquals(value DateTime) stepR } } -// deprecated: Use GteIfPresent instead. -func (r stepRunQueryScheduleTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunQueryCancelledReasonString) NotIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r stepRunQueryScheduleTimeoutAtDateTime) Field() stepRunPrismaFields { - return stepRunFieldScheduleTimeoutAt + return r.Not(*value) } -// base struct -type stepRunQueryRetryCountInt struct{} - -// Set the required value of RetryCount -func (r stepRunQueryRetryCountInt) Set(value int) stepRunSetParam { +// deprecated: Use StartsWith instead. - return stepRunSetParam{ +func (r jobRunQueryCancelledReasonString) HasPrefix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", - Value: value, + Name: "cancelledReason", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, }, } - } -// Set the optional value of RetryCount dynamically -func (r stepRunQueryRetryCountInt) SetIfPresent(value *Int) stepRunSetParam { +// deprecated: Use StartsWithIfPresent instead. +func (r jobRunQueryCancelledReasonString) HasPrefixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunSetParam{} + return jobRunDefaultParam{} } - - return r.Set(*value) + return r.HasPrefix(*value) } -// Increment the required value of RetryCount -func (r stepRunQueryRetryCountInt) Increment(value int) stepRunSetParam { - return stepRunSetParam{ +// deprecated: Use EndsWith instead. + +func (r jobRunQueryCancelledReasonString) HasSuffix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledReason", Fields: []builder.Field{ - builder.Field{ - Name: "increment", + { + Name: "ends_with", Value: value, }, }, @@ -129808,65 +130832,66 @@ func (r stepRunQueryRetryCountInt) Increment(value int) stepRunSetParam { } } -func (r stepRunQueryRetryCountInt) IncrementIfPresent(value *int) stepRunSetParam { +// deprecated: Use EndsWithIfPresent instead. +func (r jobRunQueryCancelledReasonString) HasSuffixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunSetParam{} + return jobRunDefaultParam{} } - return r.Increment(*value) + return r.HasSuffix(*value) } -// Decrement the required value of RetryCount -func (r stepRunQueryRetryCountInt) Decrement(value int) stepRunSetParam { - return stepRunSetParam{ +func (r jobRunQueryCancelledReasonString) Field() jobRunPrismaFields { + return jobRunFieldCancelledReason +} + +// base struct +type jobRunQueryCancelledErrorString struct{} + +// Set the optional value of CancelledError +func (r jobRunQueryCancelledErrorString) Set(value string) jobRunSetParam { + + return jobRunSetParam{ data: builder.Field{ - Name: "retryCount", - Fields: []builder.Field{ - builder.Field{ - Name: "decrement", - Value: value, - }, - }, + Name: "cancelledError", + Value: value, }, } + } -func (r stepRunQueryRetryCountInt) DecrementIfPresent(value *int) stepRunSetParam { +// Set the optional value of CancelledError dynamically +func (r jobRunQueryCancelledErrorString) SetIfPresent(value *String) jobRunSetParam { if value == nil { - return stepRunSetParam{} + return jobRunSetParam{} } - return r.Decrement(*value) -} -// Multiply the required value of RetryCount -func (r stepRunQueryRetryCountInt) Multiply(value int) stepRunSetParam { - return stepRunSetParam{ - data: builder.Field{ - Name: "retryCount", - Fields: []builder.Field{ - builder.Field{ - Name: "multiply", - Value: value, - }, - }, - }, - } + return r.Set(*value) } -func (r stepRunQueryRetryCountInt) MultiplyIfPresent(value *int) stepRunSetParam { +// Set the optional value of CancelledError dynamically +func (r jobRunQueryCancelledErrorString) SetOptional(value *String) jobRunSetParam { if value == nil { - return stepRunSetParam{} + + var v *string + return jobRunSetParam{ + data: builder.Field{ + Name: "cancelledError", + Value: v, + }, + } } - return r.Multiply(*value) + + return r.Set(*value) } -// Divide the required value of RetryCount -func (r stepRunQueryRetryCountInt) Divide(value int) stepRunSetParam { - return stepRunSetParam{ +func (r jobRunQueryCancelledErrorString) Equals(value string) jobRunWithPrismaCancelledErrorEqualsParam { + + return jobRunWithPrismaCancelledErrorEqualsParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "equals", Value: value, }, }, @@ -129874,18 +130899,17 @@ func (r stepRunQueryRetryCountInt) Divide(value int) stepRunSetParam { } } -func (r stepRunQueryRetryCountInt) DivideIfPresent(value *int) stepRunSetParam { +func (r jobRunQueryCancelledErrorString) EqualsIfPresent(value *string) jobRunWithPrismaCancelledErrorEqualsParam { if value == nil { - return stepRunSetParam{} + return jobRunWithPrismaCancelledErrorEqualsParam{} } - return r.Divide(*value) + return r.Equals(*value) } -func (r stepRunQueryRetryCountInt) Equals(value int) stepRunWithPrismaRetryCountEqualsParam { - - return stepRunWithPrismaRetryCountEqualsParam{ +func (r jobRunQueryCancelledErrorString) EqualsOptional(value *String) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { Name: "equals", @@ -129896,35 +130920,43 @@ func (r stepRunQueryRetryCountInt) Equals(value int) stepRunWithPrismaRetryCount } } -func (r stepRunQueryRetryCountInt) EqualsIfPresent(value *int) stepRunWithPrismaRetryCountEqualsParam { - if value == nil { - return stepRunWithPrismaRetryCountEqualsParam{} +func (r jobRunQueryCancelledErrorString) IsNull() jobRunDefaultParam { + var str *string = nil + return jobRunDefaultParam{ + data: builder.Field{ + Name: "cancelledError", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r stepRunQueryRetryCountInt) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) Order(direction SortOrder) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Value: direction, }, } } -func (r stepRunQueryRetryCountInt) Cursor(cursor int) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunQueryCancelledErrorString) Cursor(cursor string) jobRunCursorParam { + return jobRunCursorParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Value: cursor, }, } } -func (r stepRunQueryRetryCountInt) In(value []int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) In(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { Name: "in", @@ -129935,17 +130967,17 @@ func (r stepRunQueryRetryCountInt) In(value []int) stepRunDefaultParam { } } -func (r stepRunQueryRetryCountInt) InIfPresent(value []int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) InIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryRetryCountInt) NotIn(value []int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) NotIn(value []string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { Name: "notIn", @@ -129956,17 +130988,17 @@ func (r stepRunQueryRetryCountInt) NotIn(value []int) stepRunDefaultParam { } } -func (r stepRunQueryRetryCountInt) NotInIfPresent(value []int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) NotInIfPresent(value []string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryRetryCountInt) Lt(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) Lt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { Name: "lt", @@ -129977,17 +131009,17 @@ func (r stepRunQueryRetryCountInt) Lt(value int) stepRunDefaultParam { } } -func (r stepRunQueryRetryCountInt) LtIfPresent(value *int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) LtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryRetryCountInt) Lte(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) Lte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { Name: "lte", @@ -129998,17 +131030,17 @@ func (r stepRunQueryRetryCountInt) Lte(value int) stepRunDefaultParam { } } -func (r stepRunQueryRetryCountInt) LteIfPresent(value *int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) LteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryRetryCountInt) Gt(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) Gt(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { Name: "gt", @@ -130019,17 +131051,17 @@ func (r stepRunQueryRetryCountInt) Gt(value int) stepRunDefaultParam { } } -func (r stepRunQueryRetryCountInt) GtIfPresent(value *int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) GtIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryRetryCountInt) Gte(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) Gte(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { Name: "gte", @@ -130040,20 +131072,20 @@ func (r stepRunQueryRetryCountInt) Gte(value int) stepRunDefaultParam { } } -func (r stepRunQueryRetryCountInt) GteIfPresent(value *int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) GteIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryRetryCountInt) Not(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) Contains(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -130061,22 +131093,41 @@ func (r stepRunQueryRetryCountInt) Not(value int) stepRunDefaultParam { } } -func (r stepRunQueryRetryCountInt) NotIfPresent(value *int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) ContainsIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r jobRunQueryCancelledErrorString) StartsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "cancelledError", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r stepRunQueryRetryCountInt) LT(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) StartsWithIfPresent(value *string) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r jobRunQueryCancelledErrorString) EndsWith(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -130084,23 +131135,41 @@ func (r stepRunQueryRetryCountInt) LT(value int) stepRunDefaultParam { } } -// deprecated: Use LtIfPresent instead. -func (r stepRunQueryRetryCountInt) LTIfPresent(value *int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) EndsWithIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.LT(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. +func (r jobRunQueryCancelledErrorString) Mode(value QueryMode) jobRunDefaultParam { + return jobRunDefaultParam{ + data: builder.Field{ + Name: "cancelledError", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r stepRunQueryRetryCountInt) LTE(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) ModeIfPresent(value *QueryMode) jobRunDefaultParam { + if value == nil { + return jobRunDefaultParam{} + } + return r.Mode(*value) +} + +func (r jobRunQueryCancelledErrorString) Not(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "lte", + Name: "not", Value: value, }, }, @@ -130108,23 +131177,22 @@ func (r stepRunQueryRetryCountInt) LTE(value int) stepRunDefaultParam { } } -// deprecated: Use LteIfPresent instead. -func (r stepRunQueryRetryCountInt) LTEIfPresent(value *int) stepRunDefaultParam { +func (r jobRunQueryCancelledErrorString) NotIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.LTE(*value) + return r.Not(*value) } -// deprecated: Use Gt instead. +// deprecated: Use StartsWith instead. -func (r stepRunQueryRetryCountInt) GT(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) HasPrefix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "gt", + Name: "starts_with", Value: value, }, }, @@ -130132,23 +131200,23 @@ func (r stepRunQueryRetryCountInt) GT(value int) stepRunDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r stepRunQueryRetryCountInt) GTIfPresent(value *int) stepRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r jobRunQueryCancelledErrorString) HasPrefixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.GT(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r stepRunQueryRetryCountInt) GTE(value int) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunQueryCancelledErrorString) HasSuffix(value string) jobRunDefaultParam { + return jobRunDefaultParam{ data: builder.Field{ - Name: "retryCount", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -130156,84 +131224,163 @@ func (r stepRunQueryRetryCountInt) GTE(value int) stepRunDefaultParam { } } -// deprecated: Use GteIfPresent instead. -func (r stepRunQueryRetryCountInt) GTEIfPresent(value *int) stepRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r jobRunQueryCancelledErrorString) HasSuffixIfPresent(value *string) jobRunDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunDefaultParam{} } - return r.GTE(*value) + return r.HasSuffix(*value) } -func (r stepRunQueryRetryCountInt) Field() stepRunPrismaFields { - return stepRunFieldRetryCount +func (r jobRunQueryCancelledErrorString) Field() jobRunPrismaFields { + return jobRunFieldCancelledError } -// base struct -type stepRunQueryErrorString struct{} +// JobRunLookupData acts as a namespaces to access query methods for the JobRunLookupData model +var JobRunLookupData = jobRunLookupDataQuery{} -// Set the optional value of Error -func (r stepRunQueryErrorString) Set(value string) stepRunSetParam { +// jobRunLookupDataQuery exposes query functions for the jobRunLookupData model +type jobRunLookupDataQuery struct { - return stepRunSetParam{ + // ID + // + // @required + ID jobRunLookupDataQueryIDString + + // CreatedAt + // + // @required + CreatedAt jobRunLookupDataQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt jobRunLookupDataQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt jobRunLookupDataQueryDeletedAtDateTime + + JobRun jobRunLookupDataQueryJobRunRelations + + // JobRunID + // + // @required + // @unique + JobRunID jobRunLookupDataQueryJobRunIDString + + Tenant jobRunLookupDataQueryTenantRelations + + // TenantID + // + // @required + TenantID jobRunLookupDataQueryTenantIDString + + // Data + // + // @optional + Data jobRunLookupDataQueryDataJson +} + +func (jobRunLookupDataQuery) Not(params ...JobRunLookupDataWhereParam) jobRunLookupDataDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "error", - Value: value, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } - } -// Set the optional value of Error dynamically -func (r stepRunQueryErrorString) SetIfPresent(value *String) stepRunSetParam { - if value == nil { - return stepRunSetParam{} +func (jobRunLookupDataQuery) Or(params ...JobRunLookupDataWhereParam) jobRunLookupDataDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) + return jobRunLookupDataDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } } -// Set the optional value of Error dynamically -func (r stepRunQueryErrorString) SetOptional(value *String) stepRunSetParam { - if value == nil { +func (jobRunLookupDataQuery) And(params ...JobRunLookupDataWhereParam) jobRunLookupDataDefaultParam { + var fields []builder.Field - var v *string - return stepRunSetParam{ - data: builder.Field{ - Name: "error", - Value: v, - }, - } + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) + return jobRunLookupDataDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } -func (r stepRunQueryErrorString) Equals(value string) stepRunWithPrismaErrorEqualsParam { +func (jobRunLookupDataQuery) JobRunIDTenantID( + _jobRunID JobRunLookupDataWithPrismaJobRunIDWhereParam, - return stepRunWithPrismaErrorEqualsParam{ + _tenantID JobRunLookupDataWithPrismaTenantIDWhereParam, +) JobRunLookupDataEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _jobRunID.field()) + fields = append(fields, _tenantID.field()) + + return jobRunLookupDataEqualsUniqueParam{ data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "jobRunId_tenantId", + Fields: builder.TransformEquals(fields), }, } } -func (r stepRunQueryErrorString) EqualsIfPresent(value *string) stepRunWithPrismaErrorEqualsParam { +// base struct +type jobRunLookupDataQueryIDString struct{} + +// Set the required value of ID +func (r jobRunLookupDataQueryIDString) Set(value string) jobRunLookupDataSetParam { + + return jobRunLookupDataSetParam{ + data: builder.Field{ + Name: "id", + Value: value, + }, + } + +} + +// Set the optional value of ID dynamically +func (r jobRunLookupDataQueryIDString) SetIfPresent(value *String) jobRunLookupDataSetParam { if value == nil { - return stepRunWithPrismaErrorEqualsParam{} + return jobRunLookupDataSetParam{} } - return r.Equals(*value) + + return r.Set(*value) } -func (r stepRunQueryErrorString) EqualsOptional(value *String) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Equals(value string) jobRunLookupDataWithPrismaIDEqualsUniqueParam { + + return jobRunLookupDataWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -130244,43 +131391,35 @@ func (r stepRunQueryErrorString) EqualsOptional(value *String) stepRunDefaultPar } } -func (r stepRunQueryErrorString) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, +func (r jobRunLookupDataQueryIDString) EqualsIfPresent(value *string) jobRunLookupDataWithPrismaIDEqualsUniqueParam { + if value == nil { + return jobRunLookupDataWithPrismaIDEqualsUniqueParam{} } + return r.Equals(*value) } -func (r stepRunQueryErrorString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Order(direction SortOrder) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "error", + Name: "id", Value: direction, }, } } -func (r stepRunQueryErrorString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunLookupDataQueryIDString) Cursor(cursor string) jobRunLookupDataCursorParam { + return jobRunLookupDataCursorParam{ data: builder.Field{ - Name: "error", + Name: "id", Value: cursor, }, } } -func (r stepRunQueryErrorString) In(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) In(value []string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -130291,17 +131430,17 @@ func (r stepRunQueryErrorString) In(value []string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) InIfPresent(value []string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) InIfPresent(value []string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.In(value) } -func (r stepRunQueryErrorString) NotIn(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) NotIn(value []string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -130312,17 +131451,17 @@ func (r stepRunQueryErrorString) NotIn(value []string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) NotInIfPresent(value []string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.NotIn(value) } -func (r stepRunQueryErrorString) Lt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Lt(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -130333,17 +131472,17 @@ func (r stepRunQueryErrorString) Lt(value string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) LtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) LtIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Lt(*value) } -func (r stepRunQueryErrorString) Lte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Lte(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -130354,17 +131493,17 @@ func (r stepRunQueryErrorString) Lte(value string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) LteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) LteIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Lte(*value) } -func (r stepRunQueryErrorString) Gt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Gt(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -130375,17 +131514,17 @@ func (r stepRunQueryErrorString) Gt(value string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) GtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) GtIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Gt(*value) } -func (r stepRunQueryErrorString) Gte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Gte(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -130396,17 +131535,17 @@ func (r stepRunQueryErrorString) Gte(value string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) GteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) GteIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Gte(*value) } -func (r stepRunQueryErrorString) Contains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Contains(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -130417,17 +131556,17 @@ func (r stepRunQueryErrorString) Contains(value string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) ContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) ContainsIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Contains(*value) } -func (r stepRunQueryErrorString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) StartsWith(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -130438,17 +131577,17 @@ func (r stepRunQueryErrorString) StartsWith(value string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) StartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) StartsWithIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.StartsWith(*value) } -func (r stepRunQueryErrorString) EndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) EndsWith(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -130459,17 +131598,17 @@ func (r stepRunQueryErrorString) EndsWith(value string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) EndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) EndsWithIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.EndsWith(*value) } -func (r stepRunQueryErrorString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Mode(value QueryMode) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -130480,17 +131619,17 @@ func (r stepRunQueryErrorString) Mode(value QueryMode) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) ModeIfPresent(value *QueryMode) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Mode(*value) } -func (r stepRunQueryErrorString) Not(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) Not(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -130501,19 +131640,19 @@ func (r stepRunQueryErrorString) Not(value string) stepRunDefaultParam { } } -func (r stepRunQueryErrorString) NotIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) NotIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRunQueryErrorString) HasPrefix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) HasPrefix(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -130525,19 +131664,19 @@ func (r stepRunQueryErrorString) HasPrefix(value string) stepRunDefaultParam { } // deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryErrorString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) HasPrefixIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRunQueryErrorString) HasSuffix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryIDString) HasSuffix(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "error", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -130549,62 +131688,46 @@ func (r stepRunQueryErrorString) HasSuffix(value string) stepRunDefaultParam { } // deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryErrorString) HasSuffixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryIDString) HasSuffixIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.HasSuffix(*value) } -func (r stepRunQueryErrorString) Field() stepRunPrismaFields { - return stepRunFieldError +func (r jobRunLookupDataQueryIDString) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldID } // base struct -type stepRunQueryStartedAtDateTime struct{} +type jobRunLookupDataQueryCreatedAtDateTime struct{} -// Set the optional value of StartedAt -func (r stepRunQueryStartedAtDateTime) Set(value DateTime) stepRunSetParam { +// Set the required value of CreatedAt +func (r jobRunLookupDataQueryCreatedAtDateTime) Set(value DateTime) jobRunLookupDataSetParam { - return stepRunSetParam{ + return jobRunLookupDataSetParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Value: value, }, } } -// Set the optional value of StartedAt dynamically -func (r stepRunQueryStartedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { - if value == nil { - return stepRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of StartedAt dynamically -func (r stepRunQueryStartedAtDateTime) SetOptional(value *DateTime) stepRunSetParam { +// Set the optional value of CreatedAt dynamically +func (r jobRunLookupDataQueryCreatedAtDateTime) SetIfPresent(value *DateTime) jobRunLookupDataSetParam { if value == nil { - - var v *DateTime - return stepRunSetParam{ - data: builder.Field{ - Name: "startedAt", - Value: v, - }, - } + return jobRunLookupDataSetParam{} } return r.Set(*value) } -func (r stepRunQueryStartedAtDateTime) Equals(value DateTime) stepRunWithPrismaStartedAtEqualsParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) Equals(value DateTime) jobRunLookupDataWithPrismaCreatedAtEqualsParam { - return stepRunWithPrismaStartedAtEqualsParam{ + return jobRunLookupDataWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -130615,64 +131738,35 @@ func (r stepRunQueryStartedAtDateTime) Equals(value DateTime) stepRunWithPrismaS } } -func (r stepRunQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaStartedAtEqualsParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) jobRunLookupDataWithPrismaCreatedAtEqualsParam { if value == nil { - return stepRunWithPrismaStartedAtEqualsParam{} + return jobRunLookupDataWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "startedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepRunQueryStartedAtDateTime) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ - data: builder.Field{ - Name: "startedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r stepRunQueryStartedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) Order(direction SortOrder) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Value: direction, }, } } -func (r stepRunQueryStartedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) Cursor(cursor DateTime) jobRunLookupDataCursorParam { + return jobRunLookupDataCursorParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Value: cursor, }, } } -func (r stepRunQueryStartedAtDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) In(value []DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -130683,17 +131777,17 @@ func (r stepRunQueryStartedAtDateTime) In(value []DateTime) stepRunDefaultParam } } -func (r stepRunQueryStartedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) InIfPresent(value []DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.In(value) } -func (r stepRunQueryStartedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) NotIn(value []DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -130704,17 +131798,17 @@ func (r stepRunQueryStartedAtDateTime) NotIn(value []DateTime) stepRunDefaultPar } } -func (r stepRunQueryStartedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryStartedAtDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) Lt(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -130725,17 +131819,17 @@ func (r stepRunQueryStartedAtDateTime) Lt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryStartedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) LtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryStartedAtDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) Lte(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -130746,17 +131840,17 @@ func (r stepRunQueryStartedAtDateTime) Lte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryStartedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) LteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryStartedAtDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) Gt(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -130767,17 +131861,17 @@ func (r stepRunQueryStartedAtDateTime) Gt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryStartedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) GtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryStartedAtDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) Gte(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -130788,17 +131882,17 @@ func (r stepRunQueryStartedAtDateTime) Gte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryStartedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) GteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryStartedAtDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) Not(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "not", @@ -130809,19 +131903,19 @@ func (r stepRunQueryStartedAtDateTime) Not(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryStartedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) NotIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunQueryStartedAtDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) Before(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -130833,19 +131927,19 @@ func (r stepRunQueryStartedAtDateTime) Before(value DateTime) stepRunDefaultPara } // deprecated: Use LtIfPresent instead. -func (r stepRunQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunQueryStartedAtDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) After(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -130857,19 +131951,19 @@ func (r stepRunQueryStartedAtDateTime) After(value DateTime) stepRunDefaultParam } // deprecated: Use GtIfPresent instead. -func (r stepRunQueryStartedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunQueryStartedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) BeforeEquals(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -130881,19 +131975,19 @@ func (r stepRunQueryStartedAtDateTime) BeforeEquals(value DateTime) stepRunDefau } // deprecated: Use LteIfPresent instead. -func (r stepRunQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunQueryStartedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryCreatedAtDateTime) AfterEquals(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "startedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -130905,62 +131999,46 @@ func (r stepRunQueryStartedAtDateTime) AfterEquals(value DateTime) stepRunDefaul } // deprecated: Use GteIfPresent instead. -func (r stepRunQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunQueryStartedAtDateTime) Field() stepRunPrismaFields { - return stepRunFieldStartedAt +func (r jobRunLookupDataQueryCreatedAtDateTime) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldCreatedAt } // base struct -type stepRunQueryFinishedAtDateTime struct{} +type jobRunLookupDataQueryUpdatedAtDateTime struct{} -// Set the optional value of FinishedAt -func (r stepRunQueryFinishedAtDateTime) Set(value DateTime) stepRunSetParam { +// Set the required value of UpdatedAt +func (r jobRunLookupDataQueryUpdatedAtDateTime) Set(value DateTime) jobRunLookupDataSetParam { - return stepRunSetParam{ + return jobRunLookupDataSetParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of FinishedAt dynamically -func (r stepRunQueryFinishedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { - if value == nil { - return stepRunSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of FinishedAt dynamically -func (r stepRunQueryFinishedAtDateTime) SetOptional(value *DateTime) stepRunSetParam { +// Set the optional value of UpdatedAt dynamically +func (r jobRunLookupDataQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) jobRunLookupDataSetParam { if value == nil { - - var v *DateTime - return stepRunSetParam{ - data: builder.Field{ - Name: "finishedAt", - Value: v, - }, - } + return jobRunLookupDataSetParam{} } return r.Set(*value) } -func (r stepRunQueryFinishedAtDateTime) Equals(value DateTime) stepRunWithPrismaFinishedAtEqualsParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) Equals(value DateTime) jobRunLookupDataWithPrismaUpdatedAtEqualsParam { - return stepRunWithPrismaFinishedAtEqualsParam{ + return jobRunLookupDataWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -130971,64 +132049,35 @@ func (r stepRunQueryFinishedAtDateTime) Equals(value DateTime) stepRunWithPrisma } } -func (r stepRunQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaFinishedAtEqualsParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) jobRunLookupDataWithPrismaUpdatedAtEqualsParam { if value == nil { - return stepRunWithPrismaFinishedAtEqualsParam{} + return jobRunLookupDataWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "finishedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepRunQueryFinishedAtDateTime) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ - data: builder.Field{ - Name: "finishedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r stepRunQueryFinishedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) Order(direction SortOrder) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Value: direction, }, } } -func (r stepRunQueryFinishedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) Cursor(cursor DateTime) jobRunLookupDataCursorParam { + return jobRunLookupDataCursorParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Value: cursor, }, } } -func (r stepRunQueryFinishedAtDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) In(value []DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -131039,17 +132088,17 @@ func (r stepRunQueryFinishedAtDateTime) In(value []DateTime) stepRunDefaultParam } } -func (r stepRunQueryFinishedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) InIfPresent(value []DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.In(value) } -func (r stepRunQueryFinishedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) NotIn(value []DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -131060,17 +132109,17 @@ func (r stepRunQueryFinishedAtDateTime) NotIn(value []DateTime) stepRunDefaultPa } } -func (r stepRunQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryFinishedAtDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) Lt(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -131081,17 +132130,17 @@ func (r stepRunQueryFinishedAtDateTime) Lt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryFinishedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryFinishedAtDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) Lte(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -131102,17 +132151,17 @@ func (r stepRunQueryFinishedAtDateTime) Lte(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryFinishedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryFinishedAtDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) Gt(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -131123,17 +132172,17 @@ func (r stepRunQueryFinishedAtDateTime) Gt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryFinishedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryFinishedAtDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) Gte(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -131144,17 +132193,17 @@ func (r stepRunQueryFinishedAtDateTime) Gte(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryFinishedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryFinishedAtDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) Not(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "not", @@ -131165,19 +132214,19 @@ func (r stepRunQueryFinishedAtDateTime) Not(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryFinishedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunQueryFinishedAtDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) Before(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -131189,19 +132238,19 @@ func (r stepRunQueryFinishedAtDateTime) Before(value DateTime) stepRunDefaultPar } // deprecated: Use LtIfPresent instead. -func (r stepRunQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunQueryFinishedAtDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) After(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -131213,19 +132262,19 @@ func (r stepRunQueryFinishedAtDateTime) After(value DateTime) stepRunDefaultPara } // deprecated: Use GtIfPresent instead. -func (r stepRunQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) BeforeEquals(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -131237,19 +132286,19 @@ func (r stepRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) stepRunDefa } // deprecated: Use LteIfPresent instead. -func (r stepRunQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunQueryFinishedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryUpdatedAtDateTime) AfterEquals(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "finishedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -131261,49 +132310,49 @@ func (r stepRunQueryFinishedAtDateTime) AfterEquals(value DateTime) stepRunDefau } // deprecated: Use GteIfPresent instead. -func (r stepRunQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunQueryFinishedAtDateTime) Field() stepRunPrismaFields { - return stepRunFieldFinishedAt +func (r jobRunLookupDataQueryUpdatedAtDateTime) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldUpdatedAt } // base struct -type stepRunQueryTimeoutAtDateTime struct{} +type jobRunLookupDataQueryDeletedAtDateTime struct{} -// Set the optional value of TimeoutAt -func (r stepRunQueryTimeoutAtDateTime) Set(value DateTime) stepRunSetParam { +// Set the optional value of DeletedAt +func (r jobRunLookupDataQueryDeletedAtDateTime) Set(value DateTime) jobRunLookupDataSetParam { - return stepRunSetParam{ + return jobRunLookupDataSetParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Value: value, }, } } -// Set the optional value of TimeoutAt dynamically -func (r stepRunQueryTimeoutAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { +// Set the optional value of DeletedAt dynamically +func (r jobRunLookupDataQueryDeletedAtDateTime) SetIfPresent(value *DateTime) jobRunLookupDataSetParam { if value == nil { - return stepRunSetParam{} + return jobRunLookupDataSetParam{} } return r.Set(*value) } -// Set the optional value of TimeoutAt dynamically -func (r stepRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) stepRunSetParam { +// Set the optional value of DeletedAt dynamically +func (r jobRunLookupDataQueryDeletedAtDateTime) SetOptional(value *DateTime) jobRunLookupDataSetParam { if value == nil { var v *DateTime - return stepRunSetParam{ + return jobRunLookupDataSetParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Value: v, }, } @@ -131312,11 +132361,11 @@ func (r stepRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) stepRunSetPa return r.Set(*value) } -func (r stepRunQueryTimeoutAtDateTime) Equals(value DateTime) stepRunWithPrismaTimeoutAtEqualsParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) Equals(value DateTime) jobRunLookupDataWithPrismaDeletedAtEqualsParam { - return stepRunWithPrismaTimeoutAtEqualsParam{ + return jobRunLookupDataWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -131327,17 +132376,17 @@ func (r stepRunQueryTimeoutAtDateTime) Equals(value DateTime) stepRunWithPrismaT } } -func (r stepRunQueryTimeoutAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaTimeoutAtEqualsParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) jobRunLookupDataWithPrismaDeletedAtEqualsParam { if value == nil { - return stepRunWithPrismaTimeoutAtEqualsParam{} + return jobRunLookupDataWithPrismaDeletedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) EqualsOptional(value *DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -131348,11 +132397,11 @@ func (r stepRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) stepRunDe } } -func (r stepRunQueryTimeoutAtDateTime) IsNull() stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) IsNull() jobRunLookupDataDefaultParam { var str *string = nil - return stepRunDefaultParam{ + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -131363,28 +132412,28 @@ func (r stepRunQueryTimeoutAtDateTime) IsNull() stepRunDefaultParam { } } -func (r stepRunQueryTimeoutAtDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) Order(direction SortOrder) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Value: direction, }, } } -func (r stepRunQueryTimeoutAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) Cursor(cursor DateTime) jobRunLookupDataCursorParam { + return jobRunLookupDataCursorParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Value: cursor, }, } } -func (r stepRunQueryTimeoutAtDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) In(value []DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "in", @@ -131395,17 +132444,17 @@ func (r stepRunQueryTimeoutAtDateTime) In(value []DateTime) stepRunDefaultParam } } -func (r stepRunQueryTimeoutAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) InIfPresent(value []DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.In(value) } -func (r stepRunQueryTimeoutAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) NotIn(value []DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "notIn", @@ -131416,17 +132465,17 @@ func (r stepRunQueryTimeoutAtDateTime) NotIn(value []DateTime) stepRunDefaultPar } } -func (r stepRunQueryTimeoutAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryTimeoutAtDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) Lt(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -131437,17 +132486,17 @@ func (r stepRunQueryTimeoutAtDateTime) Lt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryTimeoutAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) LtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryTimeoutAtDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) Lte(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -131458,17 +132507,17 @@ func (r stepRunQueryTimeoutAtDateTime) Lte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryTimeoutAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) LteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryTimeoutAtDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) Gt(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -131479,17 +132528,17 @@ func (r stepRunQueryTimeoutAtDateTime) Gt(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryTimeoutAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) GtIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryTimeoutAtDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) Gte(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -131500,17 +132549,17 @@ func (r stepRunQueryTimeoutAtDateTime) Gte(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryTimeoutAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) GteIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryTimeoutAtDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) Not(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "not", @@ -131521,19 +132570,19 @@ func (r stepRunQueryTimeoutAtDateTime) Not(value DateTime) stepRunDefaultParam { } } -func (r stepRunQueryTimeoutAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) NotIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunQueryTimeoutAtDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) Before(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -131545,19 +132594,19 @@ func (r stepRunQueryTimeoutAtDateTime) Before(value DateTime) stepRunDefaultPara } // deprecated: Use LtIfPresent instead. -func (r stepRunQueryTimeoutAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunQueryTimeoutAtDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) After(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -131569,19 +132618,19 @@ func (r stepRunQueryTimeoutAtDateTime) After(value DateTime) stepRunDefaultParam } // deprecated: Use GtIfPresent instead. -func (r stepRunQueryTimeoutAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) BeforeEquals(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -131593,19 +132642,19 @@ func (r stepRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) stepRunDefau } // deprecated: Use LteIfPresent instead. -func (r stepRunQueryTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDeletedAtDateTime) AfterEquals(value DateTime) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "timeoutAt", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -131617,130 +132666,173 @@ func (r stepRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) stepRunDefaul } // deprecated: Use GteIfPresent instead. -func (r stepRunQueryTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunQueryTimeoutAtDateTime) Field() stepRunPrismaFields { - return stepRunFieldTimeoutAt +func (r jobRunLookupDataQueryDeletedAtDateTime) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldDeletedAt } // base struct -type stepRunQueryCancelledAtDateTime struct{} +type jobRunLookupDataQueryJobRunJobRun struct{} -// Set the optional value of CancelledAt -func (r stepRunQueryCancelledAtDateTime) Set(value DateTime) stepRunSetParam { +type jobRunLookupDataQueryJobRunRelations struct{} - return stepRunSetParam{ +// JobRunLookupData -> JobRun +// +// @relation +// @required +func (jobRunLookupDataQueryJobRunRelations) Where( + params ...JobRunWhereParam, +) jobRunLookupDataDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledAt", - Value: value, + Name: "jobRun", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, }, } - } -// Set the optional value of CancelledAt dynamically -func (r stepRunQueryCancelledAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { - if value == nil { - return stepRunSetParam{} - } +func (jobRunLookupDataQueryJobRunRelations) Fetch() jobRunLookupDataToJobRunFindUnique { + var v jobRunLookupDataToJobRunFindUnique - return r.Set(*value) + v.query.Operation = "query" + v.query.Method = "jobRun" + v.query.Outputs = jobRunOutput + + return v } -// Set the optional value of CancelledAt dynamically -func (r stepRunQueryCancelledAtDateTime) SetOptional(value *DateTime) stepRunSetParam { - if value == nil { +func (r jobRunLookupDataQueryJobRunRelations) Link( + params JobRunWhereParam, +) jobRunLookupDataWithPrismaJobRunSetParam { + var fields []builder.Field - var v *DateTime - return stepRunSetParam{ - data: builder.Field{ - Name: "cancelledAt", - Value: v, - }, - } + f := params.field() + if f.Fields == nil && f.Value == nil { + return jobRunLookupDataWithPrismaJobRunSetParam{} } - return r.Set(*value) -} - -func (r stepRunQueryCancelledAtDateTime) Equals(value DateTime) stepRunWithPrismaCancelledAtEqualsParam { + fields = append(fields, f) - return stepRunWithPrismaCancelledAtEqualsParam{ + return jobRunLookupDataWithPrismaJobRunSetParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRun", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r stepRunQueryCancelledAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaCancelledAtEqualsParam { - if value == nil { - return stepRunWithPrismaCancelledAtEqualsParam{} - } - return r.Equals(*value) -} +func (r jobRunLookupDataQueryJobRunRelations) Unlink() jobRunLookupDataWithPrismaJobRunSetParam { + var v jobRunLookupDataWithPrismaJobRunSetParam -func (r stepRunQueryCancelledAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ + v = jobRunLookupDataWithPrismaJobRunSetParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRun", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r stepRunQueryCancelledAtDateTime) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunJobRun) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldJobRun +} + +// base struct +type jobRunLookupDataQueryJobRunIDString struct{} + +// Set the required value of JobRunID +func (r jobRunLookupDataQueryJobRunIDString) Set(value string) jobRunLookupDataSetParam { + + return jobRunLookupDataSetParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", + Value: value, + }, + } + +} + +// Set the optional value of JobRunID dynamically +func (r jobRunLookupDataQueryJobRunIDString) SetIfPresent(value *String) jobRunLookupDataSetParam { + if value == nil { + return jobRunLookupDataSetParam{} + } + + return r.Set(*value) +} + +func (r jobRunLookupDataQueryJobRunIDString) Equals(value string) jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam { + + return jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam{ + data: builder.Field{ + Name: "jobRunId", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r stepRunQueryCancelledAtDateTime) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) EqualsIfPresent(value *string) jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam { + if value == nil { + return jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam{} + } + return r.Equals(*value) +} + +func (r jobRunLookupDataQueryJobRunIDString) Order(direction SortOrder) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Value: direction, }, } } -func (r stepRunQueryCancelledAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunLookupDataQueryJobRunIDString) Cursor(cursor string) jobRunLookupDataCursorParam { + return jobRunLookupDataCursorParam{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Value: cursor, }, } } -func (r stepRunQueryCancelledAtDateTime) In(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) In(value []string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { Name: "in", @@ -131751,17 +132843,17 @@ func (r stepRunQueryCancelledAtDateTime) In(value []DateTime) stepRunDefaultPara } } -func (r stepRunQueryCancelledAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) InIfPresent(value []string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.In(value) } -func (r stepRunQueryCancelledAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) NotIn(value []string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { Name: "notIn", @@ -131772,17 +132864,17 @@ func (r stepRunQueryCancelledAtDateTime) NotIn(value []DateTime) stepRunDefaultP } } -func (r stepRunQueryCancelledAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) NotInIfPresent(value []string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.NotIn(value) } -func (r stepRunQueryCancelledAtDateTime) Lt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) Lt(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { Name: "lt", @@ -131793,17 +132885,17 @@ func (r stepRunQueryCancelledAtDateTime) Lt(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryCancelledAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) LtIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Lt(*value) } -func (r stepRunQueryCancelledAtDateTime) Lte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) Lte(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { Name: "lte", @@ -131814,17 +132906,17 @@ func (r stepRunQueryCancelledAtDateTime) Lte(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryCancelledAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) LteIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Lte(*value) } -func (r stepRunQueryCancelledAtDateTime) Gt(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) Gt(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { Name: "gt", @@ -131835,17 +132927,17 @@ func (r stepRunQueryCancelledAtDateTime) Gt(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryCancelledAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) GtIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Gt(*value) } -func (r stepRunQueryCancelledAtDateTime) Gte(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) Gte(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { Name: "gte", @@ -131856,20 +132948,20 @@ func (r stepRunQueryCancelledAtDateTime) Gte(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryCancelledAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) GteIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } return r.Gte(*value) } -func (r stepRunQueryCancelledAtDateTime) Not(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) Contains(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -131877,22 +132969,20 @@ func (r stepRunQueryCancelledAtDateTime) Not(value DateTime) stepRunDefaultParam } } -func (r stepRunQueryCancelledAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) ContainsIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r stepRunQueryCancelledAtDateTime) Before(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) StartsWith(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -131900,23 +132990,20 @@ func (r stepRunQueryCancelledAtDateTime) Before(value DateTime) stepRunDefaultPa } } -// deprecated: Use LtIfPresent instead. -func (r stepRunQueryCancelledAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) StartsWithIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r stepRunQueryCancelledAtDateTime) After(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) EndsWith(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -131924,23 +133011,20 @@ func (r stepRunQueryCancelledAtDateTime) After(value DateTime) stepRunDefaultPar } } -// deprecated: Use GtIfPresent instead. -func (r stepRunQueryCancelledAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) EndsWithIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r stepRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) Mode(value QueryMode) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -131948,23 +133032,20 @@ func (r stepRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) stepRunDef } } -// deprecated: Use LteIfPresent instead. -func (r stepRunQueryCancelledAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) ModeIfPresent(value *QueryMode) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r stepRunQueryCancelledAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryJobRunIDString) Not(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledAt", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -131972,131 +133053,221 @@ func (r stepRunQueryCancelledAtDateTime) AfterEquals(value DateTime) stepRunDefa } } -// deprecated: Use GteIfPresent instead. -func (r stepRunQueryCancelledAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { +func (r jobRunLookupDataQueryJobRunIDString) NotIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataParamUnique{} } - return r.AfterEquals(*value) + return r.Not(*value) } -func (r stepRunQueryCancelledAtDateTime) Field() stepRunPrismaFields { - return stepRunFieldCancelledAt +// deprecated: Use StartsWith instead. + +func (r jobRunLookupDataQueryJobRunIDString) HasPrefix(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ + data: builder.Field{ + Name: "jobRunId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } } -// base struct -type stepRunQueryCancelledReasonString struct{} +// deprecated: Use StartsWithIfPresent instead. +func (r jobRunLookupDataQueryJobRunIDString) HasPrefixIfPresent(value *string) jobRunLookupDataParamUnique { + if value == nil { + return jobRunLookupDataParamUnique{} + } + return r.HasPrefix(*value) +} -// Set the optional value of CancelledReason -func (r stepRunQueryCancelledReasonString) Set(value string) stepRunSetParam { +// deprecated: Use EndsWith instead. - return stepRunSetParam{ +func (r jobRunLookupDataQueryJobRunIDString) HasSuffix(value string) jobRunLookupDataParamUnique { + return jobRunLookupDataParamUnique{ data: builder.Field{ - Name: "cancelledReason", - Value: value, + Name: "jobRunId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, }, } - } -// Set the optional value of CancelledReason dynamically -func (r stepRunQueryCancelledReasonString) SetIfPresent(value *String) stepRunSetParam { +// deprecated: Use EndsWithIfPresent instead. +func (r jobRunLookupDataQueryJobRunIDString) HasSuffixIfPresent(value *string) jobRunLookupDataParamUnique { if value == nil { - return stepRunSetParam{} + return jobRunLookupDataParamUnique{} } + return r.HasSuffix(*value) +} - return r.Set(*value) +func (r jobRunLookupDataQueryJobRunIDString) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldJobRunID } -// Set the optional value of CancelledReason dynamically -func (r stepRunQueryCancelledReasonString) SetOptional(value *String) stepRunSetParam { - if value == nil { +// base struct +type jobRunLookupDataQueryTenantTenant struct{} - var v *string - return stepRunSetParam{ - data: builder.Field{ - Name: "cancelledReason", - Value: v, - }, - } - } +type jobRunLookupDataQueryTenantRelations struct{} - return r.Set(*value) -} +// JobRunLookupData -> Tenant +// +// @relation +// @required +func (jobRunLookupDataQueryTenantRelations) Where( + params ...TenantWhereParam, +) jobRunLookupDataDefaultParam { + var fields []builder.Field -func (r stepRunQueryCancelledReasonString) Equals(value string) stepRunWithPrismaCancelledReasonEqualsParam { + for _, q := range params { + fields = append(fields, q.field()) + } - return stepRunWithPrismaCancelledReasonEqualsParam{ + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenant", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r stepRunQueryCancelledReasonString) EqualsIfPresent(value *string) stepRunWithPrismaCancelledReasonEqualsParam { - if value == nil { - return stepRunWithPrismaCancelledReasonEqualsParam{} - } - return r.Equals(*value) +func (jobRunLookupDataQueryTenantRelations) Fetch() jobRunLookupDataToTenantFindUnique { + var v jobRunLookupDataToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v } -func (r stepRunQueryCancelledReasonString) EqualsOptional(value *String) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantRelations) Link( + params TenantWhereParam, +) jobRunLookupDataWithPrismaTenantSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return jobRunLookupDataWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return jobRunLookupDataWithPrismaTenantSetParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenant", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r stepRunQueryCancelledReasonString) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantRelations) Unlink() jobRunLookupDataWithPrismaTenantSetParam { + var v jobRunLookupDataWithPrismaTenantSetParam + + v = jobRunLookupDataWithPrismaTenantSetParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenant", Fields: []builder.Field{ { - Name: "equals", - Value: str, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r stepRunQueryCancelledReasonString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantTenant) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldTenant +} + +// base struct +type jobRunLookupDataQueryTenantIDString struct{} + +// Set the required value of TenantID +func (r jobRunLookupDataQueryTenantIDString) Set(value string) jobRunLookupDataSetParam { + + return jobRunLookupDataSetParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", + Value: value, + }, + } + +} + +// Set the optional value of TenantID dynamically +func (r jobRunLookupDataQueryTenantIDString) SetIfPresent(value *String) jobRunLookupDataSetParam { + if value == nil { + return jobRunLookupDataSetParam{} + } + + return r.Set(*value) +} + +func (r jobRunLookupDataQueryTenantIDString) Equals(value string) jobRunLookupDataWithPrismaTenantIDEqualsParam { + + return jobRunLookupDataWithPrismaTenantIDEqualsParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r jobRunLookupDataQueryTenantIDString) EqualsIfPresent(value *string) jobRunLookupDataWithPrismaTenantIDEqualsParam { + if value == nil { + return jobRunLookupDataWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r jobRunLookupDataQueryTenantIDString) Order(direction SortOrder) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ + data: builder.Field{ + Name: "tenantId", Value: direction, }, } } -func (r stepRunQueryCancelledReasonString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunLookupDataQueryTenantIDString) Cursor(cursor string) jobRunLookupDataCursorParam { + return jobRunLookupDataCursorParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Value: cursor, }, } } -func (r stepRunQueryCancelledReasonString) In(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) In(value []string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "in", @@ -132107,17 +133278,17 @@ func (r stepRunQueryCancelledReasonString) In(value []string) stepRunDefaultPara } } -func (r stepRunQueryCancelledReasonString) InIfPresent(value []string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) InIfPresent(value []string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.In(value) } -func (r stepRunQueryCancelledReasonString) NotIn(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) NotIn(value []string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "notIn", @@ -132128,17 +133299,17 @@ func (r stepRunQueryCancelledReasonString) NotIn(value []string) stepRunDefaultP } } -func (r stepRunQueryCancelledReasonString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) NotInIfPresent(value []string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryCancelledReasonString) Lt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) Lt(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "lt", @@ -132149,17 +133320,17 @@ func (r stepRunQueryCancelledReasonString) Lt(value string) stepRunDefaultParam } } -func (r stepRunQueryCancelledReasonString) LtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) LtIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryCancelledReasonString) Lte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) Lte(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "lte", @@ -132170,17 +133341,17 @@ func (r stepRunQueryCancelledReasonString) Lte(value string) stepRunDefaultParam } } -func (r stepRunQueryCancelledReasonString) LteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) LteIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryCancelledReasonString) Gt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) Gt(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "gt", @@ -132191,17 +133362,17 @@ func (r stepRunQueryCancelledReasonString) Gt(value string) stepRunDefaultParam } } -func (r stepRunQueryCancelledReasonString) GtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) GtIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryCancelledReasonString) Gte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) Gte(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "gte", @@ -132212,17 +133383,17 @@ func (r stepRunQueryCancelledReasonString) Gte(value string) stepRunDefaultParam } } -func (r stepRunQueryCancelledReasonString) GteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) GteIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryCancelledReasonString) Contains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) Contains(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "contains", @@ -132233,17 +133404,17 @@ func (r stepRunQueryCancelledReasonString) Contains(value string) stepRunDefault } } -func (r stepRunQueryCancelledReasonString) ContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) ContainsIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Contains(*value) } -func (r stepRunQueryCancelledReasonString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) StartsWith(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "startsWith", @@ -132254,17 +133425,17 @@ func (r stepRunQueryCancelledReasonString) StartsWith(value string) stepRunDefau } } -func (r stepRunQueryCancelledReasonString) StartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) StartsWithIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.StartsWith(*value) } -func (r stepRunQueryCancelledReasonString) EndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) EndsWith(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "endsWith", @@ -132275,17 +133446,17 @@ func (r stepRunQueryCancelledReasonString) EndsWith(value string) stepRunDefault } } -func (r stepRunQueryCancelledReasonString) EndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) EndsWithIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.EndsWith(*value) } -func (r stepRunQueryCancelledReasonString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) Mode(value QueryMode) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "mode", @@ -132296,17 +133467,17 @@ func (r stepRunQueryCancelledReasonString) Mode(value QueryMode) stepRunDefaultP } } -func (r stepRunQueryCancelledReasonString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) ModeIfPresent(value *QueryMode) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Mode(*value) } -func (r stepRunQueryCancelledReasonString) Not(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) Not(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "not", @@ -132317,19 +133488,19 @@ func (r stepRunQueryCancelledReasonString) Not(value string) stepRunDefaultParam } } -func (r stepRunQueryCancelledReasonString) NotIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) NotIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRunQueryCancelledReasonString) HasPrefix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) HasPrefix(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "starts_with", @@ -132341,19 +133512,19 @@ func (r stepRunQueryCancelledReasonString) HasPrefix(value string) stepRunDefaul } // deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryCancelledReasonString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) HasPrefixIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRunQueryCancelledReasonString) HasSuffix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryTenantIDString) HasSuffix(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledReason", + Name: "tenantId", Fields: []builder.Field{ { Name: "ends_with", @@ -132365,49 +133536,49 @@ func (r stepRunQueryCancelledReasonString) HasSuffix(value string) stepRunDefaul } // deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryCancelledReasonString) HasSuffixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryTenantIDString) HasSuffixIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRunQueryCancelledReasonString) Field() stepRunPrismaFields { - return stepRunFieldCancelledReason +func (r jobRunLookupDataQueryTenantIDString) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldTenantID } // base struct -type stepRunQueryCancelledErrorString struct{} +type jobRunLookupDataQueryDataJson struct{} -// Set the optional value of CancelledError -func (r stepRunQueryCancelledErrorString) Set(value string) stepRunSetParam { +// Set the optional value of Data +func (r jobRunLookupDataQueryDataJson) Set(value JSON) jobRunLookupDataSetParam { - return stepRunSetParam{ + return jobRunLookupDataSetParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Value: value, }, } } -// Set the optional value of CancelledError dynamically -func (r stepRunQueryCancelledErrorString) SetIfPresent(value *String) stepRunSetParam { +// Set the optional value of Data dynamically +func (r jobRunLookupDataQueryDataJson) SetIfPresent(value *JSON) jobRunLookupDataSetParam { if value == nil { - return stepRunSetParam{} + return jobRunLookupDataSetParam{} } return r.Set(*value) } -// Set the optional value of CancelledError dynamically -func (r stepRunQueryCancelledErrorString) SetOptional(value *String) stepRunSetParam { +// Set the optional value of Data dynamically +func (r jobRunLookupDataQueryDataJson) SetOptional(value *JSON) jobRunLookupDataSetParam { if value == nil { - var v *string - return stepRunSetParam{ + var v *JSON + return jobRunLookupDataSetParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Value: v, }, } @@ -132416,11 +133587,11 @@ func (r stepRunQueryCancelledErrorString) SetOptional(value *String) stepRunSetP return r.Set(*value) } -func (r stepRunQueryCancelledErrorString) Equals(value string) stepRunWithPrismaCancelledErrorEqualsParam { +func (r jobRunLookupDataQueryDataJson) Equals(value JSON) jobRunLookupDataWithPrismaDataEqualsParam { - return stepRunWithPrismaCancelledErrorEqualsParam{ + return jobRunLookupDataWithPrismaDataEqualsParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { Name: "equals", @@ -132431,17 +133602,17 @@ func (r stepRunQueryCancelledErrorString) Equals(value string) stepRunWithPrisma } } -func (r stepRunQueryCancelledErrorString) EqualsIfPresent(value *string) stepRunWithPrismaCancelledErrorEqualsParam { +func (r jobRunLookupDataQueryDataJson) EqualsIfPresent(value *JSON) jobRunLookupDataWithPrismaDataEqualsParam { if value == nil { - return stepRunWithPrismaCancelledErrorEqualsParam{} + return jobRunLookupDataWithPrismaDataEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryCancelledErrorString) EqualsOptional(value *String) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) EqualsOptional(value *JSON) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { Name: "equals", @@ -132452,11 +133623,11 @@ func (r stepRunQueryCancelledErrorString) EqualsOptional(value *String) stepRunD } } -func (r stepRunQueryCancelledErrorString) IsNull() stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) IsNull() jobRunLookupDataDefaultParam { var str *string = nil - return stepRunDefaultParam{ + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { Name: "equals", @@ -132467,31 +133638,31 @@ func (r stepRunQueryCancelledErrorString) IsNull() stepRunDefaultParam { } } -func (r stepRunQueryCancelledErrorString) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) Order(direction SortOrder) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Value: direction, }, } } -func (r stepRunQueryCancelledErrorString) Cursor(cursor string) stepRunCursorParam { - return stepRunCursorParam{ +func (r jobRunLookupDataQueryDataJson) Cursor(cursor JSON) jobRunLookupDataCursorParam { + return jobRunLookupDataCursorParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Value: cursor, }, } } -func (r stepRunQueryCancelledErrorString) In(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) Path(value []string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "in", + Name: "path", Value: value, }, }, @@ -132499,20 +133670,20 @@ func (r stepRunQueryCancelledErrorString) In(value []string) stepRunDefaultParam } } -func (r stepRunQueryCancelledErrorString) InIfPresent(value []string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) PathIfPresent(value []string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.In(value) + return r.Path(value) } -func (r stepRunQueryCancelledErrorString) NotIn(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) StringContains(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "notIn", + Name: "string_contains", Value: value, }, }, @@ -132520,20 +133691,20 @@ func (r stepRunQueryCancelledErrorString) NotIn(value []string) stepRunDefaultPa } } -func (r stepRunQueryCancelledErrorString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) StringContainsIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.NotIn(value) + return r.StringContains(*value) } -func (r stepRunQueryCancelledErrorString) Lt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) StringStartsWith(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "lt", + Name: "string_starts_with", Value: value, }, }, @@ -132541,20 +133712,20 @@ func (r stepRunQueryCancelledErrorString) Lt(value string) stepRunDefaultParam { } } -func (r stepRunQueryCancelledErrorString) LtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) StringStartsWithIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.Lt(*value) + return r.StringStartsWith(*value) } -func (r stepRunQueryCancelledErrorString) Lte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) StringEndsWith(value string) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "lte", + Name: "string_ends_with", Value: value, }, }, @@ -132562,20 +133733,20 @@ func (r stepRunQueryCancelledErrorString) Lte(value string) stepRunDefaultParam } } -func (r stepRunQueryCancelledErrorString) LteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) StringEndsWithIfPresent(value *string) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.Lte(*value) + return r.StringEndsWith(*value) } -func (r stepRunQueryCancelledErrorString) Gt(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) ArrayContains(value JSON) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "gt", + Name: "array_contains", Value: value, }, }, @@ -132583,20 +133754,20 @@ func (r stepRunQueryCancelledErrorString) Gt(value string) stepRunDefaultParam { } } -func (r stepRunQueryCancelledErrorString) GtIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) ArrayContainsIfPresent(value *JSON) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.Gt(*value) + return r.ArrayContains(*value) } -func (r stepRunQueryCancelledErrorString) Gte(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) ArrayStartsWith(value JSON) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "gte", + Name: "array_starts_with", Value: value, }, }, @@ -132604,20 +133775,20 @@ func (r stepRunQueryCancelledErrorString) Gte(value string) stepRunDefaultParam } } -func (r stepRunQueryCancelledErrorString) GteIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) ArrayStartsWithIfPresent(value *JSON) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.Gte(*value) + return r.ArrayStartsWith(*value) } -func (r stepRunQueryCancelledErrorString) Contains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) ArrayEndsWith(value JSON) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "contains", + Name: "array_ends_with", Value: value, }, }, @@ -132625,20 +133796,20 @@ func (r stepRunQueryCancelledErrorString) Contains(value string) stepRunDefaultP } } -func (r stepRunQueryCancelledErrorString) ContainsIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) ArrayEndsWithIfPresent(value *JSON) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.Contains(*value) + return r.ArrayEndsWith(*value) } -func (r stepRunQueryCancelledErrorString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) Lt(value JSON) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -132646,20 +133817,20 @@ func (r stepRunQueryCancelledErrorString) StartsWith(value string) stepRunDefaul } } -func (r stepRunQueryCancelledErrorString) StartsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) LtIfPresent(value *JSON) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.StartsWith(*value) + return r.Lt(*value) } -func (r stepRunQueryCancelledErrorString) EndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) Lte(value JSON) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lte", Value: value, }, }, @@ -132667,20 +133838,20 @@ func (r stepRunQueryCancelledErrorString) EndsWith(value string) stepRunDefaultP } } -func (r stepRunQueryCancelledErrorString) EndsWithIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) LteIfPresent(value *JSON) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.EndsWith(*value) + return r.Lte(*value) } -func (r stepRunQueryCancelledErrorString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) Gt(value JSON) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "mode", + Name: "gt", Value: value, }, }, @@ -132688,20 +133859,20 @@ func (r stepRunQueryCancelledErrorString) Mode(value QueryMode) stepRunDefaultPa } } -func (r stepRunQueryCancelledErrorString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) GtIfPresent(value *JSON) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.Mode(*value) + return r.Gt(*value) } -func (r stepRunQueryCancelledErrorString) Not(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) Gte(value JSON) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -132709,22 +133880,20 @@ func (r stepRunQueryCancelledErrorString) Not(value string) stepRunDefaultParam } } -func (r stepRunQueryCancelledErrorString) NotIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) GteIfPresent(value *JSON) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.Not(*value) + return r.Gte(*value) } -// deprecated: Use StartsWith instead. - -func (r stepRunQueryCancelledErrorString) HasPrefix(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r jobRunLookupDataQueryDataJson) Not(value JSONNullValueFilter) jobRunLookupDataDefaultParam { + return jobRunLookupDataDefaultParam{ data: builder.Field{ - Name: "cancelledError", + Name: "data", Fields: []builder.Field{ { - Name: "starts_with", + Name: "not", Value: value, }, }, @@ -132732,59 +133901,255 @@ func (r stepRunQueryCancelledErrorString) HasPrefix(value string) stepRunDefault } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryCancelledErrorString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +func (r jobRunLookupDataQueryDataJson) NotIfPresent(value *JSONNullValueFilter) jobRunLookupDataDefaultParam { if value == nil { - return stepRunDefaultParam{} + return jobRunLookupDataDefaultParam{} } - return r.HasPrefix(*value) + return r.Not(*value) } -// deprecated: Use EndsWith instead. +func (r jobRunLookupDataQueryDataJson) Field() jobRunLookupDataPrismaFields { + return jobRunLookupDataFieldData +} + +// StepRun acts as a namespaces to access query methods for the StepRun model +var StepRun = stepRunQuery{} + +// stepRunQuery exposes query functions for the stepRun model +type stepRunQuery struct { + + // ID + // + // @required + ID stepRunQueryIDString + + // CreatedAt + // + // @required + CreatedAt stepRunQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt stepRunQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt stepRunQueryDeletedAtDateTime + + Tenant stepRunQueryTenantRelations + + // TenantID + // + // @required + TenantID stepRunQueryTenantIDString + + JobRun stepRunQueryJobRunRelations + + // JobRunID + // + // @required + JobRunID stepRunQueryJobRunIDString + + Step stepRunQueryStepRelations + + // StepID + // + // @required + StepID stepRunQueryStepIDString + + Children stepRunQueryChildrenRelations + + Parents stepRunQueryParentsRelations + + // Order + // + // @required + Order stepRunQueryOrderBigInt + + Worker stepRunQueryWorkerRelations + + // WorkerID + // + // @optional + WorkerID stepRunQueryWorkerIDString + + Ticker stepRunQueryTickerRelations + + // TickerID + // + // @optional + TickerID stepRunQueryTickerIDString + + // Status + // + // @required + Status stepRunQueryStatusStepRunStatus + + // Input + // + // @optional + Input stepRunQueryInputJson + + // Output + // + // @optional + Output stepRunQueryOutputJson + + // InputSchema + // + // @optional + InputSchema stepRunQueryInputSchemaJson + + // RequeueAfter + // + // @optional + RequeueAfter stepRunQueryRequeueAfterDateTime + + // ScheduleTimeoutAt + // + // @optional + ScheduleTimeoutAt stepRunQueryScheduleTimeoutAtDateTime + + // RetryCount + // + // @required + RetryCount stepRunQueryRetryCountInt + + // Error + // + // @optional + Error stepRunQueryErrorString + + // StartedAt + // + // @optional + StartedAt stepRunQueryStartedAtDateTime + + // FinishedAt + // + // @optional + FinishedAt stepRunQueryFinishedAtDateTime + + // TimeoutAt + // + // @optional + TimeoutAt stepRunQueryTimeoutAtDateTime + + // CancelledAt + // + // @optional + CancelledAt stepRunQueryCancelledAtDateTime + + // CancelledReason + // + // @optional + CancelledReason stepRunQueryCancelledReasonString + + // CancelledError + // + // @optional + CancelledError stepRunQueryCancelledErrorString + + // CallerFiles + // + // @optional + CallerFiles stepRunQueryCallerFilesJson + + // GitRepoBranch + // + // @optional + GitRepoBranch stepRunQueryGitRepoBranchString + + // SemaphoreReleased + // + // @required + SemaphoreReleased stepRunQuerySemaphoreReleasedBoolean + + SemaphoreSlot stepRunQuerySemaphoreSlotRelations + + ArchivedResults stepRunQueryArchivedResultsRelations + + StreamEvents stepRunQueryStreamEventsRelations + + Logs stepRunQueryLogsRelations + + ChildWorkflowRuns stepRunQueryChildWorkflowRunsRelations + + ChildSchedules stepRunQueryChildSchedulesRelations + + Events stepRunQueryEventsRelations +} + +func (stepRunQuery) Not(params ...StepRunWhereParam) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } -func (r stepRunQueryCancelledErrorString) HasSuffix(value string) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "cancelledError", - Fields: []builder.Field{ - { - Name: "ends_with", - Value: value, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryCancelledErrorString) HasSuffixIfPresent(value *string) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} +func (stepRunQuery) Or(params ...StepRunWhereParam) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, } - return r.HasSuffix(*value) } -func (r stepRunQueryCancelledErrorString) Field() stepRunPrismaFields { - return stepRunFieldCancelledError +func (stepRunQuery) And(params ...StepRunWhereParam) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } // base struct -type stepRunQueryCallerFilesJson struct{} +type stepRunQueryIDString struct{} -// Set the optional value of CallerFiles -func (r stepRunQueryCallerFilesJson) Set(value JSON) stepRunSetParam { +// Set the required value of ID +func (r stepRunQueryIDString) Set(value string) stepRunSetParam { return stepRunSetParam{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Value: value, }, } } -// Set the optional value of CallerFiles dynamically -func (r stepRunQueryCallerFilesJson) SetIfPresent(value *JSON) stepRunSetParam { +// Set the optional value of ID dynamically +func (r stepRunQueryIDString) SetIfPresent(value *String) stepRunSetParam { if value == nil { return stepRunSetParam{} } @@ -132792,27 +134157,11 @@ func (r stepRunQueryCallerFilesJson) SetIfPresent(value *JSON) stepRunSetParam { return r.Set(*value) } -// Set the optional value of CallerFiles dynamically -func (r stepRunQueryCallerFilesJson) SetOptional(value *JSON) stepRunSetParam { - if value == nil { - - var v *JSON - return stepRunSetParam{ - data: builder.Field{ - Name: "callerFiles", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r stepRunQueryCallerFilesJson) Equals(value JSON) stepRunWithPrismaCallerFilesEqualsParam { +func (r stepRunQueryIDString) Equals(value string) stepRunWithPrismaIDEqualsUniqueParam { - return stepRunWithPrismaCallerFilesEqualsParam{ + return stepRunWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -132823,67 +134172,59 @@ func (r stepRunQueryCallerFilesJson) Equals(value JSON) stepRunWithPrismaCallerF } } -func (r stepRunQueryCallerFilesJson) EqualsIfPresent(value *JSON) stepRunWithPrismaCallerFilesEqualsParam { +func (r stepRunQueryIDString) EqualsIfPresent(value *string) stepRunWithPrismaIDEqualsUniqueParam { if value == nil { - return stepRunWithPrismaCallerFilesEqualsParam{} + return stepRunWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r stepRunQueryCallerFilesJson) EqualsOptional(value *JSON) stepRunDefaultParam { +func (r stepRunQueryIDString) Order(direction SortOrder) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "callerFiles", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "id", + Value: direction, }, } } -func (r stepRunQueryCallerFilesJson) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ +func (r stepRunQueryIDString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "callerFiles", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, + Name: "id", + Value: cursor, }, } } -func (r stepRunQueryCallerFilesJson) Order(direction SortOrder) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) In(value []string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", - Value: direction, + Name: "id", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, }, } } -func (r stepRunQueryCallerFilesJson) Cursor(cursor JSON) stepRunCursorParam { - return stepRunCursorParam{ - data: builder.Field{ - Name: "callerFiles", - Value: cursor, - }, +func (r stepRunQueryIDString) InIfPresent(value []string) stepRunParamUnique { + if value == nil { + return stepRunParamUnique{} } + return r.In(value) } -func (r stepRunQueryCallerFilesJson) Path(value []string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) NotIn(value []string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "path", + Name: "notIn", Value: value, }, }, @@ -132891,20 +134232,20 @@ func (r stepRunQueryCallerFilesJson) Path(value []string) stepRunDefaultParam { } } -func (r stepRunQueryCallerFilesJson) PathIfPresent(value []string) stepRunDefaultParam { +func (r stepRunQueryIDString) NotInIfPresent(value []string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.Path(value) + return r.NotIn(value) } -func (r stepRunQueryCallerFilesJson) StringContains(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) Lt(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "string_contains", + Name: "lt", Value: value, }, }, @@ -132912,20 +134253,20 @@ func (r stepRunQueryCallerFilesJson) StringContains(value string) stepRunDefault } } -func (r stepRunQueryCallerFilesJson) StringContainsIfPresent(value *string) stepRunDefaultParam { +func (r stepRunQueryIDString) LtIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.StringContains(*value) + return r.Lt(*value) } -func (r stepRunQueryCallerFilesJson) StringStartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) Lte(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lte", Value: value, }, }, @@ -132933,20 +134274,20 @@ func (r stepRunQueryCallerFilesJson) StringStartsWith(value string) stepRunDefau } } -func (r stepRunQueryCallerFilesJson) StringStartsWithIfPresent(value *string) stepRunDefaultParam { +func (r stepRunQueryIDString) LteIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.StringStartsWith(*value) + return r.Lte(*value) } -func (r stepRunQueryCallerFilesJson) StringEndsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) Gt(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "gt", Value: value, }, }, @@ -132954,20 +134295,20 @@ func (r stepRunQueryCallerFilesJson) StringEndsWith(value string) stepRunDefault } } -func (r stepRunQueryCallerFilesJson) StringEndsWithIfPresent(value *string) stepRunDefaultParam { +func (r stepRunQueryIDString) GtIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.StringEndsWith(*value) + return r.Gt(*value) } -func (r stepRunQueryCallerFilesJson) ArrayContains(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) Gte(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gte", Value: value, }, }, @@ -132975,20 +134316,20 @@ func (r stepRunQueryCallerFilesJson) ArrayContains(value JSON) stepRunDefaultPar } } -func (r stepRunQueryCallerFilesJson) ArrayContainsIfPresent(value *JSON) stepRunDefaultParam { +func (r stepRunQueryIDString) GteIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.ArrayContains(*value) + return r.Gte(*value) } -func (r stepRunQueryCallerFilesJson) ArrayStartsWith(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) Contains(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "contains", Value: value, }, }, @@ -132996,20 +134337,20 @@ func (r stepRunQueryCallerFilesJson) ArrayStartsWith(value JSON) stepRunDefaultP } } -func (r stepRunQueryCallerFilesJson) ArrayStartsWithIfPresent(value *JSON) stepRunDefaultParam { +func (r stepRunQueryIDString) ContainsIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.ArrayStartsWith(*value) + return r.Contains(*value) } -func (r stepRunQueryCallerFilesJson) ArrayEndsWith(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) StartsWith(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "startsWith", Value: value, }, }, @@ -133017,20 +134358,20 @@ func (r stepRunQueryCallerFilesJson) ArrayEndsWith(value JSON) stepRunDefaultPar } } -func (r stepRunQueryCallerFilesJson) ArrayEndsWithIfPresent(value *JSON) stepRunDefaultParam { +func (r stepRunQueryIDString) StartsWithIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.ArrayEndsWith(*value) + return r.StartsWith(*value) } -func (r stepRunQueryCallerFilesJson) Lt(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) EndsWith(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -133038,20 +134379,20 @@ func (r stepRunQueryCallerFilesJson) Lt(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryCallerFilesJson) LtIfPresent(value *JSON) stepRunDefaultParam { +func (r stepRunQueryIDString) EndsWithIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.Lt(*value) + return r.EndsWith(*value) } -func (r stepRunQueryCallerFilesJson) Lte(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) Mode(value QueryMode) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -133059,20 +134400,20 @@ func (r stepRunQueryCallerFilesJson) Lte(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryCallerFilesJson) LteIfPresent(value *JSON) stepRunDefaultParam { +func (r stepRunQueryIDString) ModeIfPresent(value *QueryMode) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.Lte(*value) + return r.Mode(*value) } -func (r stepRunQueryCallerFilesJson) Gt(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +func (r stepRunQueryIDString) Not(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -133080,20 +134421,22 @@ func (r stepRunQueryCallerFilesJson) Gt(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryCallerFilesJson) GtIfPresent(value *JSON) stepRunDefaultParam { +func (r stepRunQueryIDString) NotIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.Gt(*value) + return r.Not(*value) } -func (r stepRunQueryCallerFilesJson) Gte(value JSON) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r stepRunQueryIDString) HasPrefix(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "gte", + Name: "starts_with", Value: value, }, }, @@ -133101,20 +134444,23 @@ func (r stepRunQueryCallerFilesJson) Gte(value JSON) stepRunDefaultParam { } } -func (r stepRunQueryCallerFilesJson) GteIfPresent(value *JSON) stepRunDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunQueryIDString) HasPrefixIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.Gte(*value) + return r.HasPrefix(*value) } -func (r stepRunQueryCallerFilesJson) Not(value JSONNullValueFilter) stepRunDefaultParam { - return stepRunDefaultParam{ +// deprecated: Use EndsWith instead. + +func (r stepRunQueryIDString) HasSuffix(value string) stepRunParamUnique { + return stepRunParamUnique{ data: builder.Field{ - Name: "callerFiles", + Name: "id", Fields: []builder.Field{ { - Name: "not", + Name: "ends_with", Value: value, }, }, @@ -133122,34 +134468,35 @@ func (r stepRunQueryCallerFilesJson) Not(value JSONNullValueFilter) stepRunDefau } } -func (r stepRunQueryCallerFilesJson) NotIfPresent(value *JSONNullValueFilter) stepRunDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunQueryIDString) HasSuffixIfPresent(value *string) stepRunParamUnique { if value == nil { - return stepRunDefaultParam{} + return stepRunParamUnique{} } - return r.Not(*value) + return r.HasSuffix(*value) } -func (r stepRunQueryCallerFilesJson) Field() stepRunPrismaFields { - return stepRunFieldCallerFiles +func (r stepRunQueryIDString) Field() stepRunPrismaFields { + return stepRunFieldID } // base struct -type stepRunQueryGitRepoBranchString struct{} +type stepRunQueryCreatedAtDateTime struct{} -// Set the optional value of GitRepoBranch -func (r stepRunQueryGitRepoBranchString) Set(value string) stepRunSetParam { +// Set the required value of CreatedAt +func (r stepRunQueryCreatedAtDateTime) Set(value DateTime) stepRunSetParam { return stepRunSetParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Value: value, }, } } -// Set the optional value of GitRepoBranch dynamically -func (r stepRunQueryGitRepoBranchString) SetIfPresent(value *String) stepRunSetParam { +// Set the optional value of CreatedAt dynamically +func (r stepRunQueryCreatedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { if value == nil { return stepRunSetParam{} } @@ -133157,27 +134504,11 @@ func (r stepRunQueryGitRepoBranchString) SetIfPresent(value *String) stepRunSetP return r.Set(*value) } -// Set the optional value of GitRepoBranch dynamically -func (r stepRunQueryGitRepoBranchString) SetOptional(value *String) stepRunSetParam { - if value == nil { - - var v *string - return stepRunSetParam{ - data: builder.Field{ - Name: "gitRepoBranch", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r stepRunQueryGitRepoBranchString) Equals(value string) stepRunWithPrismaGitRepoBranchEqualsParam { +func (r stepRunQueryCreatedAtDateTime) Equals(value DateTime) stepRunWithPrismaCreatedAtEqualsParam { - return stepRunWithPrismaGitRepoBranchEqualsParam{ + return stepRunWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -133188,64 +134519,35 @@ func (r stepRunQueryGitRepoBranchString) Equals(value string) stepRunWithPrismaG } } -func (r stepRunQueryGitRepoBranchString) EqualsIfPresent(value *string) stepRunWithPrismaGitRepoBranchEqualsParam { +func (r stepRunQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaCreatedAtEqualsParam { if value == nil { - return stepRunWithPrismaGitRepoBranchEqualsParam{} + return stepRunWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQueryGitRepoBranchString) EqualsOptional(value *String) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "gitRepoBranch", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepRunQueryGitRepoBranchString) IsNull() stepRunDefaultParam { - var str *string = nil - return stepRunDefaultParam{ - data: builder.Field{ - Name: "gitRepoBranch", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r stepRunQueryGitRepoBranchString) Order(direction SortOrder) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Value: direction, }, } } -func (r stepRunQueryGitRepoBranchString) Cursor(cursor string) stepRunCursorParam { +func (r stepRunQueryCreatedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { return stepRunCursorParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Value: cursor, }, } } -func (r stepRunQueryGitRepoBranchString) In(value []string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) In(value []DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -133256,17 +134558,17 @@ func (r stepRunQueryGitRepoBranchString) In(value []string) stepRunDefaultParam } } -func (r stepRunQueryGitRepoBranchString) InIfPresent(value []string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunQueryGitRepoBranchString) NotIn(value []string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -133277,17 +134579,17 @@ func (r stepRunQueryGitRepoBranchString) NotIn(value []string) stepRunDefaultPar } } -func (r stepRunQueryGitRepoBranchString) NotInIfPresent(value []string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunQueryGitRepoBranchString) Lt(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) Lt(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -133298,17 +134600,17 @@ func (r stepRunQueryGitRepoBranchString) Lt(value string) stepRunDefaultParam { } } -func (r stepRunQueryGitRepoBranchString) LtIfPresent(value *string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunQueryGitRepoBranchString) Lte(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) Lte(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -133319,17 +134621,17 @@ func (r stepRunQueryGitRepoBranchString) Lte(value string) stepRunDefaultParam { } } -func (r stepRunQueryGitRepoBranchString) LteIfPresent(value *string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunQueryGitRepoBranchString) Gt(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) Gt(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -133340,17 +134642,17 @@ func (r stepRunQueryGitRepoBranchString) Gt(value string) stepRunDefaultParam { } } -func (r stepRunQueryGitRepoBranchString) GtIfPresent(value *string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunQueryGitRepoBranchString) Gte(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) Gte(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -133361,20 +134663,20 @@ func (r stepRunQueryGitRepoBranchString) Gte(value string) stepRunDefaultParam { } } -func (r stepRunQueryGitRepoBranchString) GteIfPresent(value *string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunQueryGitRepoBranchString) Contains(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) Not(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -133382,41 +134684,22 @@ func (r stepRunQueryGitRepoBranchString) Contains(value string) stepRunDefaultPa } } -func (r stepRunQueryGitRepoBranchString) ContainsIfPresent(value *string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } - return r.Contains(*value) -} - -func (r stepRunQueryGitRepoBranchString) StartsWith(value string) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "gitRepoBranch", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, - } + return r.Not(*value) } -func (r stepRunQueryGitRepoBranchString) StartsWithIfPresent(value *string) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r stepRunQueryGitRepoBranchString) EndsWith(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) Before(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -133424,41 +134707,23 @@ func (r stepRunQueryGitRepoBranchString) EndsWith(value string) stepRunDefaultPa } } -func (r stepRunQueryGitRepoBranchString) EndsWithIfPresent(value *string) stepRunDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r stepRunQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } - return r.EndsWith(*value) -} - -func (r stepRunQueryGitRepoBranchString) Mode(value QueryMode) stepRunDefaultParam { - return stepRunDefaultParam{ - data: builder.Field{ - Name: "gitRepoBranch", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, - } + return r.Before(*value) } -func (r stepRunQueryGitRepoBranchString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { - if value == nil { - return stepRunDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Gt instead. -func (r stepRunQueryGitRepoBranchString) Not(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) After(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -133466,22 +134731,23 @@ func (r stepRunQueryGitRepoBranchString) Not(value string) stepRunDefaultParam { } } -func (r stepRunQueryGitRepoBranchString) NotIfPresent(value *string) stepRunDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepRunQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r stepRunQueryGitRepoBranchString) HasPrefix(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -133489,23 +134755,23 @@ func (r stepRunQueryGitRepoBranchString) HasPrefix(value string) stepRunDefaultP } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunQueryGitRepoBranchString) HasPrefixIfPresent(value *string) stepRunDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepRunQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r stepRunQueryGitRepoBranchString) HasSuffix(value string) stepRunDefaultParam { +func (r stepRunQueryCreatedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "gitRepoBranch", + Name: "createdAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -133513,35 +134779,35 @@ func (r stepRunQueryGitRepoBranchString) HasSuffix(value string) stepRunDefaultP } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunQueryGitRepoBranchString) HasSuffixIfPresent(value *string) stepRunDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r stepRunQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { return stepRunDefaultParam{} } - return r.HasSuffix(*value) + return r.AfterEquals(*value) } -func (r stepRunQueryGitRepoBranchString) Field() stepRunPrismaFields { - return stepRunFieldGitRepoBranch +func (r stepRunQueryCreatedAtDateTime) Field() stepRunPrismaFields { + return stepRunFieldCreatedAt } // base struct -type stepRunQuerySemaphoreReleasedBoolean struct{} +type stepRunQueryUpdatedAtDateTime struct{} -// Set the required value of SemaphoreReleased -func (r stepRunQuerySemaphoreReleasedBoolean) Set(value bool) stepRunSetParam { +// Set the required value of UpdatedAt +func (r stepRunQueryUpdatedAtDateTime) Set(value DateTime) stepRunSetParam { return stepRunSetParam{ data: builder.Field{ - Name: "semaphoreReleased", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of SemaphoreReleased dynamically -func (r stepRunQuerySemaphoreReleasedBoolean) SetIfPresent(value *Boolean) stepRunSetParam { +// Set the optional value of UpdatedAt dynamically +func (r stepRunQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { if value == nil { return stepRunSetParam{} } @@ -133549,11 +134815,11 @@ func (r stepRunQuerySemaphoreReleasedBoolean) SetIfPresent(value *Boolean) stepR return r.Set(*value) } -func (r stepRunQuerySemaphoreReleasedBoolean) Equals(value bool) stepRunWithPrismaSemaphoreReleasedEqualsParam { +func (r stepRunQueryUpdatedAtDateTime) Equals(value DateTime) stepRunWithPrismaUpdatedAtEqualsParam { - return stepRunWithPrismaSemaphoreReleasedEqualsParam{ + return stepRunWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "semaphoreReleased", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -133564,822 +134830,645 @@ func (r stepRunQuerySemaphoreReleasedBoolean) Equals(value bool) stepRunWithPris } } -func (r stepRunQuerySemaphoreReleasedBoolean) EqualsIfPresent(value *bool) stepRunWithPrismaSemaphoreReleasedEqualsParam { +func (r stepRunQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaUpdatedAtEqualsParam { if value == nil { - return stepRunWithPrismaSemaphoreReleasedEqualsParam{} + return stepRunWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunQuerySemaphoreReleasedBoolean) Order(direction SortOrder) stepRunDefaultParam { +func (r stepRunQueryUpdatedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "semaphoreReleased", + Name: "updatedAt", Value: direction, }, } } -func (r stepRunQuerySemaphoreReleasedBoolean) Cursor(cursor bool) stepRunCursorParam { +func (r stepRunQueryUpdatedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { return stepRunCursorParam{ data: builder.Field{ - Name: "semaphoreReleased", + Name: "updatedAt", Value: cursor, }, } } -func (r stepRunQuerySemaphoreReleasedBoolean) Field() stepRunPrismaFields { - return stepRunFieldSemaphoreReleased -} - -// base struct -type stepRunQuerySemaphoreSlotWorkerSemaphoreSlot struct{} - -type stepRunQuerySemaphoreSlotRelations struct{} - -// StepRun -> SemaphoreSlot -// -// @relation -// @optional -func (stepRunQuerySemaphoreSlotRelations) Where( - params ...WorkerSemaphoreSlotWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - +func (r stepRunQueryUpdatedAtDateTime) In(value []DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "semaphoreSlot", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -func (stepRunQuerySemaphoreSlotRelations) Fetch() stepRunToSemaphoreSlotFindUnique { - var v stepRunToSemaphoreSlotFindUnique - - v.query.Operation = "query" - v.query.Method = "semaphoreSlot" - v.query.Outputs = workerSemaphoreSlotOutput - - return v -} - -func (r stepRunQuerySemaphoreSlotRelations) Link( - params WorkerSemaphoreSlotWhereParam, -) stepRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepRunSetParam{} +func (r stepRunQueryUpdatedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.In(value) +} - fields = append(fields, f) - - return stepRunSetParam{ +func (r stepRunQueryUpdatedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "semaphoreSlot", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "notIn", + Value: value, }, }, }, } } -func (r stepRunQuerySemaphoreSlotRelations) Unlink() stepRunSetParam { - var v stepRunSetParam +func (r stepRunQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.NotIn(value) +} - v = stepRunSetParam{ +func (r stepRunQueryUpdatedAtDateTime) Lt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "semaphoreSlot", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "lt", + Value: value, }, }, }, } - - return v -} - -func (r stepRunQuerySemaphoreSlotWorkerSemaphoreSlot) Field() stepRunPrismaFields { - return stepRunFieldSemaphoreSlot } -// base struct -type stepRunQueryArchivedResultsStepRunResultArchive struct{} - -type stepRunQueryArchivedResultsRelations struct{} - -// StepRun -> ArchivedResults -// -// @relation -// @required -func (stepRunQueryArchivedResultsRelations) Some( - params ...StepRunResultArchiveWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.Lt(*value) +} +func (r stepRunQueryUpdatedAtDateTime) Lte(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "archivedResults", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "lte", + Value: value, }, }, }, } } -// StepRun -> ArchivedResults -// -// @relation -// @required -func (stepRunQueryArchivedResultsRelations) Every( - params ...StepRunResultArchiveWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.Lte(*value) +} +func (r stepRunQueryUpdatedAtDateTime) Gt(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "archivedResults", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -// StepRun -> ArchivedResults -// -// @relation -// @required -func (stepRunQueryArchivedResultsRelations) None( - params ...StepRunResultArchiveWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.Gt(*value) +} +func (r stepRunQueryUpdatedAtDateTime) Gte(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "archivedResults", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "gte", + Value: value, }, }, }, } } -func (stepRunQueryArchivedResultsRelations) Fetch( - - params ...StepRunResultArchiveWhereParam, - -) stepRunToArchivedResultsFindMany { - var v stepRunToArchivedResultsFindMany - - v.query.Operation = "query" - v.query.Method = "archivedResults" - v.query.Outputs = stepRunResultArchiveOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepRunQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } - - return v + return r.Gte(*value) } -func (r stepRunQueryArchivedResultsRelations) Link( - params ...StepRunResultArchiveWhereParam, -) stepRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunSetParam{ +func (r stepRunQueryUpdatedAtDateTime) Not(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "archivedResults", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "not", + Value: value, }, }, }, } } -func (r stepRunQueryArchivedResultsRelations) Unlink( - params ...StepRunResultArchiveWhereParam, -) stepRunSetParam { - var v stepRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } - v = stepRunSetParam{ + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r stepRunQueryUpdatedAtDateTime) Before(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "archivedResults", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "lt", + Value: value, }, }, }, } - - return v } -func (r stepRunQueryArchivedResultsStepRunResultArchive) Field() stepRunPrismaFields { - return stepRunFieldArchivedResults +// deprecated: Use LtIfPresent instead. +func (r stepRunQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.Before(*value) } -// base struct -type stepRunQueryStreamEventsStreamEvent struct{} - -type stepRunQueryStreamEventsRelations struct{} - -// StepRun -> StreamEvents -// -// @relation -// @required -func (stepRunQueryStreamEventsRelations) Some( - params ...StreamEventWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use Gt instead. +func (r stepRunQueryUpdatedAtDateTime) After(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "streamEvents", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -// StepRun -> StreamEvents -// -// @relation -// @required -func (stepRunQueryStreamEventsRelations) Every( - params ...StreamEventWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use GtIfPresent instead. +func (r stepRunQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.After(*value) +} + +// deprecated: Use Lte instead. +func (r stepRunQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "streamEvents", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "lte", + Value: value, }, }, }, } } -// StepRun -> StreamEvents -// -// @relation -// @required -func (stepRunQueryStreamEventsRelations) None( - params ...StreamEventWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use LteIfPresent instead. +func (r stepRunQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.BeforeEquals(*value) +} +// deprecated: Use Gte instead. + +func (r stepRunQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "streamEvents", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "gte", + Value: value, }, }, }, } } -func (stepRunQueryStreamEventsRelations) Fetch( +// deprecated: Use GteIfPresent instead. +func (r stepRunQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.AfterEquals(*value) +} - params ...StreamEventWhereParam, +func (r stepRunQueryUpdatedAtDateTime) Field() stepRunPrismaFields { + return stepRunFieldUpdatedAt +} -) stepRunToStreamEventsFindMany { - var v stepRunToStreamEventsFindMany +// base struct +type stepRunQueryDeletedAtDateTime struct{} - v.query.Operation = "query" - v.query.Method = "streamEvents" - v.query.Outputs = streamEventOutput +// Set the optional value of DeletedAt +func (r stepRunQueryDeletedAtDateTime) Set(value DateTime) stepRunSetParam { - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } + return stepRunSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: value, + }, } - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +} + +// Set the optional value of DeletedAt dynamically +func (r stepRunQueryDeletedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { + if value == nil { + return stepRunSetParam{} } - return v + return r.Set(*value) } -func (r stepRunQueryStreamEventsRelations) Link( - params ...StreamEventWhereParam, -) stepRunSetParam { - var fields []builder.Field +// Set the optional value of DeletedAt dynamically +func (r stepRunQueryDeletedAtDateTime) SetOptional(value *DateTime) stepRunSetParam { + if value == nil { - for _, q := range params { - fields = append(fields, q.field()) + var v *DateTime + return stepRunSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: v, + }, + } } - return stepRunSetParam{ + return r.Set(*value) +} + +func (r stepRunQueryDeletedAtDateTime) Equals(value DateTime) stepRunWithPrismaDeletedAtEqualsParam { + + return stepRunWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "streamEvents", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "equals", + Value: value, }, }, }, } } -func (r stepRunQueryStreamEventsRelations) Unlink( - params ...StreamEventWhereParam, -) stepRunSetParam { - var v stepRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaDeletedAtEqualsParam { + if value == nil { + return stepRunWithPrismaDeletedAtEqualsParam{} } - v = stepRunSetParam{ + return r.Equals(*value) +} + +func (r stepRunQueryDeletedAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "streamEvents", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "equals", + Value: value, }, }, }, } - - return v -} - -func (r stepRunQueryStreamEventsStreamEvent) Field() stepRunPrismaFields { - return stepRunFieldStreamEvents } -// base struct -type stepRunQueryLogsLogLine struct{} - -type stepRunQueryLogsRelations struct{} - -// StepRun -> Logs -// -// @relation -// @required -func (stepRunQueryLogsRelations) Some( - params ...LogLineWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - +func (r stepRunQueryDeletedAtDateTime) IsNull() stepRunDefaultParam { + var str *string = nil return stepRunDefaultParam{ data: builder.Field{ - Name: "logs", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "equals", + Value: str, }, }, }, } } -// StepRun -> Logs -// -// @relation -// @required -func (stepRunQueryLogsRelations) Every( - params ...LogLineWhereParam, -) stepRunDefaultParam { - var fields []builder.Field +func (r stepRunQueryDeletedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Value: direction, + }, + } +} - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryDeletedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { + return stepRunCursorParam{ + data: builder.Field{ + Name: "deletedAt", + Value: cursor, + }, } +} +func (r stepRunQueryDeletedAtDateTime) In(value []DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "logs", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -// StepRun -> Logs -// -// @relation -// @required -func (stepRunQueryLogsRelations) None( - params ...LogLineWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryDeletedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.In(value) +} +func (r stepRunQueryDeletedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "logs", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "notIn", + Value: value, }, }, }, } } -func (stepRunQueryLogsRelations) Fetch( - - params ...LogLineWhereParam, - -) stepRunToLogsFindMany { - var v stepRunToLogsFindMany - - v.query.Operation = "query" - v.query.Method = "logs" - v.query.Outputs = logLineOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } +func (r stepRunQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.NotIn(value) +} - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepRunQueryDeletedAtDateTime) Lt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, } - - return v } -func (r stepRunQueryLogsRelations) Link( - params ...LogLineWhereParam, -) stepRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryDeletedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.Lt(*value) +} - return stepRunSetParam{ +func (r stepRunQueryDeletedAtDateTime) Lte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "logs", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "lte", + Value: value, }, }, }, } } -func (r stepRunQueryLogsRelations) Unlink( - params ...LogLineWhereParam, -) stepRunSetParam { - var v stepRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryDeletedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } - v = stepRunSetParam{ + return r.Lte(*value) +} + +func (r stepRunQueryDeletedAtDateTime) Gt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "logs", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "gt", + Value: value, }, }, }, } - - return v -} - -func (r stepRunQueryLogsLogLine) Field() stepRunPrismaFields { - return stepRunFieldLogs } -// base struct -type stepRunQueryChildWorkflowRunsWorkflowRun struct{} - -type stepRunQueryChildWorkflowRunsRelations struct{} - -// StepRun -> ChildWorkflowRuns -// -// @relation -// @required -func (stepRunQueryChildWorkflowRunsRelations) Some( - params ...WorkflowRunWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryDeletedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.Gt(*value) +} +func (r stepRunQueryDeletedAtDateTime) Gte(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "childWorkflowRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "gte", + Value: value, }, }, }, } } -// StepRun -> ChildWorkflowRuns -// -// @relation -// @required -func (stepRunQueryChildWorkflowRunsRelations) Every( - params ...WorkflowRunWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryDeletedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.Gte(*value) +} +func (r stepRunQueryDeletedAtDateTime) Not(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "childWorkflowRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "not", + Value: value, }, }, }, } } -// StepRun -> ChildWorkflowRuns -// -// @relation -// @required -func (stepRunQueryChildWorkflowRunsRelations) None( - params ...WorkflowRunWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryDeletedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.Not(*value) +} + +// deprecated: Use Lt instead. +func (r stepRunQueryDeletedAtDateTime) Before(value DateTime) stepRunDefaultParam { return stepRunDefaultParam{ data: builder.Field{ - Name: "childWorkflowRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "lt", + Value: value, }, }, }, } } -func (stepRunQueryChildWorkflowRunsRelations) Fetch( - - params ...WorkflowRunWhereParam, - -) stepRunToChildWorkflowRunsFindMany { - var v stepRunToChildWorkflowRunsFindMany +// deprecated: Use LtIfPresent instead. +func (r stepRunQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.Before(*value) +} - v.query.Operation = "query" - v.query.Method = "childWorkflowRuns" - v.query.Outputs = workflowRunOutput +// deprecated: Use Gt instead. - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } +func (r stepRunQueryDeletedAtDateTime) After(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, } +} - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +// deprecated: Use GtIfPresent instead. +func (r stepRunQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } - - return v + return r.After(*value) } -func (r stepRunQueryChildWorkflowRunsRelations) Link( - params ...WorkflowRunWhereParam, -) stepRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use Lte instead. - return stepRunSetParam{ +func (r stepRunQueryDeletedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "childWorkflowRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "lte", + Value: value, }, }, }, } } -func (r stepRunQueryChildWorkflowRunsRelations) Unlink( - params ...WorkflowRunWhereParam, -) stepRunSetParam { - var v stepRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use LteIfPresent instead. +func (r stepRunQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } - v = stepRunSetParam{ + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r stepRunQueryDeletedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "childWorkflowRuns", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "gte", + Value: value, }, }, }, } +} - return v +// deprecated: Use GteIfPresent instead. +func (r stepRunQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.AfterEquals(*value) } -func (r stepRunQueryChildWorkflowRunsWorkflowRun) Field() stepRunPrismaFields { - return stepRunFieldChildWorkflowRuns +func (r stepRunQueryDeletedAtDateTime) Field() stepRunPrismaFields { + return stepRunFieldDeletedAt } // base struct -type stepRunQueryChildSchedulesWorkflowTriggerScheduledRef struct{} +type stepRunQueryTenantTenant struct{} -type stepRunQueryChildSchedulesRelations struct{} +type stepRunQueryTenantRelations struct{} -// StepRun -> ChildSchedules +// StepRun -> Tenant // // @relation // @required -func (stepRunQueryChildSchedulesRelations) Some( - params ...WorkflowTriggerScheduledRefWhereParam, +func (stepRunQueryTenantRelations) Where( + params ...TenantWhereParam, ) stepRunDefaultParam { var fields []builder.Field @@ -134389,10 +135478,10 @@ func (stepRunQueryChildSchedulesRelations) Some( return stepRunDefaultParam{ data: builder.Field{ - Name: "childSchedules", + Name: "tenant", Fields: []builder.Field{ { - Name: "some", + Name: "is", Fields: fields, }, }, @@ -134400,135 +135489,51 @@ func (stepRunQueryChildSchedulesRelations) Some( } } -// StepRun -> ChildSchedules -// -// @relation -// @required -func (stepRunQueryChildSchedulesRelations) Every( - params ...WorkflowTriggerScheduledRefWhereParam, -) stepRunDefaultParam { - var fields []builder.Field +func (stepRunQueryTenantRelations) Fetch() stepRunToTenantFindUnique { + var v stepRunToTenantFindUnique - for _, q := range params { - fields = append(fields, q.field()) - } + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput - return stepRunDefaultParam{ - data: builder.Field{ - Name: "childSchedules", - Fields: []builder.Field{ - { - Name: "every", - Fields: fields, - }, - }, - }, - } + return v } -// StepRun -> ChildSchedules -// -// @relation -// @required -func (stepRunQueryChildSchedulesRelations) None( - params ...WorkflowTriggerScheduledRefWhereParam, -) stepRunDefaultParam { +func (r stepRunQueryTenantRelations) Link( + params TenantWhereParam, +) stepRunWithPrismaTenantSetParam { var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRunWithPrismaTenantSetParam{} } - return stepRunDefaultParam{ + fields = append(fields, f) + + return stepRunWithPrismaTenantSetParam{ data: builder.Field{ - Name: "childSchedules", + Name: "tenant", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (stepRunQueryChildSchedulesRelations) Fetch( - - params ...WorkflowTriggerScheduledRefWhereParam, - -) stepRunToChildSchedulesFindMany { - var v stepRunToChildSchedulesFindMany - - v.query.Operation = "query" - v.query.Method = "childSchedules" - v.query.Outputs = workflowTriggerScheduledRefOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} - -func (r stepRunQueryChildSchedulesRelations) Link( - params ...WorkflowTriggerScheduledRefWhereParam, -) stepRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunSetParam{ - data: builder.Field{ - Name: "childSchedules", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, - }, - }, - }, - } -} - -func (r stepRunQueryChildSchedulesRelations) Unlink( - params ...WorkflowTriggerScheduledRefWhereParam, -) stepRunSetParam { - var v stepRunSetParam +func (r stepRunQueryTenantRelations) Unlink() stepRunWithPrismaTenantSetParam { + var v stepRunWithPrismaTenantSetParam - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) - } - v = stepRunSetParam{ + v = stepRunWithPrismaTenantSetParam{ data: builder.Field{ - Name: "childSchedules", + Name: "tenant", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "disconnect", + Value: true, }, }, }, @@ -134537,320 +135542,144 @@ func (r stepRunQueryChildSchedulesRelations) Unlink( return v } -func (r stepRunQueryChildSchedulesWorkflowTriggerScheduledRef) Field() stepRunPrismaFields { - return stepRunFieldChildSchedules +func (r stepRunQueryTenantTenant) Field() stepRunPrismaFields { + return stepRunFieldTenant } // base struct -type stepRunQueryEventsStepRunEvent struct{} - -type stepRunQueryEventsRelations struct{} - -// StepRun -> Events -// -// @relation -// @required -func (stepRunQueryEventsRelations) Some( - params ...StepRunEventWhereParam, -) stepRunDefaultParam { - var fields []builder.Field +type stepRunQueryTenantIDString struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the required value of TenantID +func (r stepRunQueryTenantIDString) Set(value string) stepRunSetParam { - return stepRunDefaultParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "events", - Fields: []builder.Field{ - { - Name: "some", - Fields: fields, - }, - }, + Name: "tenantId", + Value: value, }, } -} -// StepRun -> Events -// -// @relation -// @required -func (stepRunQueryEventsRelations) Every( - params ...StepRunEventWhereParam, -) stepRunDefaultParam { - var fields []builder.Field +} - for _, q := range params { - fields = append(fields, q.field()) +// Set the optional value of TenantID dynamically +func (r stepRunQueryTenantIDString) SetIfPresent(value *String) stepRunSetParam { + if value == nil { + return stepRunSetParam{} } - return stepRunDefaultParam{ - data: builder.Field{ - Name: "events", - Fields: []builder.Field{ - { - Name: "every", - Fields: fields, - }, - }, - }, - } + return r.Set(*value) } -// StepRun -> Events -// -// @relation -// @required -func (stepRunQueryEventsRelations) None( - params ...StepRunEventWhereParam, -) stepRunDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +func (r stepRunQueryTenantIDString) Equals(value string) stepRunWithPrismaTenantIDEqualsParam { - return stepRunDefaultParam{ + return stepRunWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "events", + Name: "tenantId", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -func (stepRunQueryEventsRelations) Fetch( - - params ...StepRunEventWhereParam, - -) stepRunToEventsFindMany { - var v stepRunToEventsFindMany - - v.query.Operation = "query" - v.query.Method = "events" - v.query.Outputs = stepRunEventOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepRunQueryTenantIDString) EqualsIfPresent(value *string) stepRunWithPrismaTenantIDEqualsParam { + if value == nil { + return stepRunWithPrismaTenantIDEqualsParam{} } - - return v + return r.Equals(*value) } -func (r stepRunQueryEventsRelations) Link( - params ...StepRunEventWhereParam, -) stepRunSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunQueryTenantIDString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Value: direction, + }, } +} - return stepRunSetParam{ +func (r stepRunQueryTenantIDString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "events", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, - }, - }, + Name: "tenantId", + Value: cursor, }, } } -func (r stepRunQueryEventsRelations) Unlink( - params ...StepRunEventWhereParam, -) stepRunSetParam { - var v stepRunSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) - } - v = stepRunSetParam{ +func (r stepRunQueryTenantIDString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "events", + Name: "tenantId", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "in", + Value: value, }, }, }, } - - return v -} - -func (r stepRunQueryEventsStepRunEvent) Field() stepRunPrismaFields { - return stepRunFieldEvents -} - -// StepRunEvent acts as a namespaces to access query methods for the StepRunEvent model -var StepRunEvent = stepRunEventQuery{} - -// stepRunEventQuery exposes query functions for the stepRunEvent model -type stepRunEventQuery struct { - - // ID - // - // @required - // @unique - ID stepRunEventQueryIDBigInt - - // TimeFirstSeen - // - // @required - TimeFirstSeen stepRunEventQueryTimeFirstSeenDateTime - - // TimeLastSeen - // - // @required - TimeLastSeen stepRunEventQueryTimeLastSeenDateTime - - StepRun stepRunEventQueryStepRunRelations - - // StepRunID - // - // @required - StepRunID stepRunEventQueryStepRunIDString - - // Reason - // - // @required - Reason stepRunEventQueryReasonStepRunEventReason - - // Severity - // - // @required - Severity stepRunEventQuerySeverityStepRunEventSeverity - - // Message - // - // @required - Message stepRunEventQueryMessageString - - // Count - // - // @required - Count stepRunEventQueryCountInt - - // Data - // - // @optional - Data stepRunEventQueryDataJson } -func (stepRunEventQuery) Not(params ...StepRunEventWhereParam) stepRunEventDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, +func (r stepRunQueryTenantIDString) InIfPresent(value []string) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.In(value) } -func (stepRunEventQuery) Or(params ...StepRunEventWhereParam) stepRunEventDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunEventDefaultParam{ +func (r stepRunQueryTenantIDString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, }, } } -func (stepRunEventQuery) And(params ...StepRunEventWhereParam) stepRunEventDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, +func (r stepRunQueryTenantIDString) NotInIfPresent(value []string) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.NotIn(value) } -// base struct -type stepRunEventQueryIDBigInt struct{} - -// Set the required value of ID -func (r stepRunEventQueryIDBigInt) Set(value BigInt) stepRunEventSetParam { - - return stepRunEventSetParam{ +func (r stepRunQueryTenantIDString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", - Value: value, + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, }, } - } -// Set the optional value of ID dynamically -func (r stepRunEventQueryIDBigInt) SetIfPresent(value *BigInt) stepRunEventSetParam { +func (r stepRunQueryTenantIDString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventSetParam{} + return stepRunDefaultParam{} } - - return r.Set(*value) + return r.Lt(*value) } -// Increment the required value of ID -func (r stepRunEventQueryIDBigInt) Increment(value BigInt) stepRunEventSetParam { - return stepRunEventSetParam{ +func (r stepRunQueryTenantIDString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ - builder.Field{ - Name: "increment", + { + Name: "lte", Value: value, }, }, @@ -134858,21 +135687,20 @@ func (r stepRunEventQueryIDBigInt) Increment(value BigInt) stepRunEventSetParam } } -func (r stepRunEventQueryIDBigInt) IncrementIfPresent(value *BigInt) stepRunEventSetParam { +func (r stepRunQueryTenantIDString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventSetParam{} + return stepRunDefaultParam{} } - return r.Increment(*value) + return r.Lte(*value) } -// Decrement the required value of ID -func (r stepRunEventQueryIDBigInt) Decrement(value BigInt) stepRunEventSetParam { - return stepRunEventSetParam{ +func (r stepRunQueryTenantIDString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ - builder.Field{ - Name: "decrement", + { + Name: "gt", Value: value, }, }, @@ -134880,21 +135708,20 @@ func (r stepRunEventQueryIDBigInt) Decrement(value BigInt) stepRunEventSetParam } } -func (r stepRunEventQueryIDBigInt) DecrementIfPresent(value *BigInt) stepRunEventSetParam { +func (r stepRunQueryTenantIDString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventSetParam{} + return stepRunDefaultParam{} } - return r.Decrement(*value) + return r.Gt(*value) } -// Multiply the required value of ID -func (r stepRunEventQueryIDBigInt) Multiply(value BigInt) stepRunEventSetParam { - return stepRunEventSetParam{ +func (r stepRunQueryTenantIDString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "gte", Value: value, }, }, @@ -134902,21 +135729,20 @@ func (r stepRunEventQueryIDBigInt) Multiply(value BigInt) stepRunEventSetParam { } } -func (r stepRunEventQueryIDBigInt) MultiplyIfPresent(value *BigInt) stepRunEventSetParam { +func (r stepRunQueryTenantIDString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventSetParam{} + return stepRunDefaultParam{} } - return r.Multiply(*value) + return r.Gte(*value) } -// Divide the required value of ID -func (r stepRunEventQueryIDBigInt) Divide(value BigInt) stepRunEventSetParam { - return stepRunEventSetParam{ +func (r stepRunQueryTenantIDString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "contains", Value: value, }, }, @@ -134924,21 +135750,20 @@ func (r stepRunEventQueryIDBigInt) Divide(value BigInt) stepRunEventSetParam { } } -func (r stepRunEventQueryIDBigInt) DivideIfPresent(value *BigInt) stepRunEventSetParam { +func (r stepRunQueryTenantIDString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventSetParam{} + return stepRunDefaultParam{} } - return r.Divide(*value) + return r.Contains(*value) } -func (r stepRunEventQueryIDBigInt) Equals(value BigInt) stepRunEventWithPrismaIDEqualsUniqueParam { - - return stepRunEventWithPrismaIDEqualsUniqueParam{ +func (r stepRunQueryTenantIDString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ { - Name: "equals", + Name: "startsWith", Value: value, }, }, @@ -134946,38 +135771,41 @@ func (r stepRunEventQueryIDBigInt) Equals(value BigInt) stepRunEventWithPrismaID } } -func (r stepRunEventQueryIDBigInt) EqualsIfPresent(value *BigInt) stepRunEventWithPrismaIDEqualsUniqueParam { +func (r stepRunQueryTenantIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventWithPrismaIDEqualsUniqueParam{} + return stepRunDefaultParam{} } - return r.Equals(*value) + return r.StartsWith(*value) } -func (r stepRunEventQueryIDBigInt) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTenantIDString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", - Value: direction, + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, }, } } -func (r stepRunEventQueryIDBigInt) Cursor(cursor BigInt) stepRunEventCursorParam { - return stepRunEventCursorParam{ - data: builder.Field{ - Name: "id", - Value: cursor, - }, +func (r stepRunQueryTenantIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.EndsWith(*value) } -func (r stepRunEventQueryIDBigInt) In(value []BigInt) stepRunEventParamUnique { - return stepRunEventParamUnique{ +func (r stepRunQueryTenantIDString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ { - Name: "in", + Name: "mode", Value: value, }, }, @@ -134985,20 +135813,20 @@ func (r stepRunEventQueryIDBigInt) In(value []BigInt) stepRunEventParamUnique { } } -func (r stepRunEventQueryIDBigInt) InIfPresent(value []BigInt) stepRunEventParamUnique { +func (r stepRunQueryTenantIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { if value == nil { - return stepRunEventParamUnique{} + return stepRunDefaultParam{} } - return r.In(value) + return r.Mode(*value) } -func (r stepRunEventQueryIDBigInt) NotIn(value []BigInt) stepRunEventParamUnique { - return stepRunEventParamUnique{ +func (r stepRunQueryTenantIDString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ { - Name: "notIn", + Name: "not", Value: value, }, }, @@ -135006,20 +135834,22 @@ func (r stepRunEventQueryIDBigInt) NotIn(value []BigInt) stepRunEventParamUnique } } -func (r stepRunEventQueryIDBigInt) NotInIfPresent(value []BigInt) stepRunEventParamUnique { +func (r stepRunQueryTenantIDString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventParamUnique{} + return stepRunDefaultParam{} } - return r.NotIn(value) + return r.Not(*value) } -func (r stepRunEventQueryIDBigInt) Lt(value BigInt) stepRunEventParamUnique { - return stepRunEventParamUnique{ +// deprecated: Use StartsWith instead. + +func (r stepRunQueryTenantIDString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lt", + Name: "starts_with", Value: value, }, }, @@ -135027,20 +135857,23 @@ func (r stepRunEventQueryIDBigInt) Lt(value BigInt) stepRunEventParamUnique { } } -func (r stepRunEventQueryIDBigInt) LtIfPresent(value *BigInt) stepRunEventParamUnique { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunQueryTenantIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventParamUnique{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.HasPrefix(*value) } -func (r stepRunEventQueryIDBigInt) Lte(value BigInt) stepRunEventParamUnique { - return stepRunEventParamUnique{ +// deprecated: Use EndsWith instead. + +func (r stepRunQueryTenantIDString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lte", + Name: "ends_with", Value: value, }, }, @@ -135048,109 +135881,135 @@ func (r stepRunEventQueryIDBigInt) Lte(value BigInt) stepRunEventParamUnique { } } -func (r stepRunEventQueryIDBigInt) LteIfPresent(value *BigInt) stepRunEventParamUnique { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunQueryTenantIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventParamUnique{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.HasSuffix(*value) } -func (r stepRunEventQueryIDBigInt) Gt(value BigInt) stepRunEventParamUnique { - return stepRunEventParamUnique{ +func (r stepRunQueryTenantIDString) Field() stepRunPrismaFields { + return stepRunFieldTenantID +} + +// base struct +type stepRunQueryJobRunJobRun struct{} + +type stepRunQueryJobRunRelations struct{} + +// StepRun -> JobRun +// +// @relation +// @required +func (stepRunQueryJobRunRelations) Where( + params ...JobRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "jobRun", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r stepRunEventQueryIDBigInt) GtIfPresent(value *BigInt) stepRunEventParamUnique { - if value == nil { - return stepRunEventParamUnique{} - } - return r.Gt(*value) +func (stepRunQueryJobRunRelations) Fetch() stepRunToJobRunFindUnique { + var v stepRunToJobRunFindUnique + + v.query.Operation = "query" + v.query.Method = "jobRun" + v.query.Outputs = jobRunOutput + + return v } -func (r stepRunEventQueryIDBigInt) Gte(value BigInt) stepRunEventParamUnique { - return stepRunEventParamUnique{ +func (r stepRunQueryJobRunRelations) Link( + params JobRunWhereParam, +) stepRunWithPrismaJobRunSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRunWithPrismaJobRunSetParam{} + } + + fields = append(fields, f) + + return stepRunWithPrismaJobRunSetParam{ data: builder.Field{ - Name: "id", + Name: "jobRun", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r stepRunEventQueryIDBigInt) GteIfPresent(value *BigInt) stepRunEventParamUnique { - if value == nil { - return stepRunEventParamUnique{} - } - return r.Gte(*value) -} +func (r stepRunQueryJobRunRelations) Unlink() stepRunWithPrismaJobRunSetParam { + var v stepRunWithPrismaJobRunSetParam -func (r stepRunEventQueryIDBigInt) Not(value BigInt) stepRunEventParamUnique { - return stepRunEventParamUnique{ + v = stepRunWithPrismaJobRunSetParam{ data: builder.Field{ - Name: "id", + Name: "jobRun", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } -} -func (r stepRunEventQueryIDBigInt) NotIfPresent(value *BigInt) stepRunEventParamUnique { - if value == nil { - return stepRunEventParamUnique{} - } - return r.Not(*value) + return v } -func (r stepRunEventQueryIDBigInt) Field() stepRunEventPrismaFields { - return stepRunEventFieldID +func (r stepRunQueryJobRunJobRun) Field() stepRunPrismaFields { + return stepRunFieldJobRun } // base struct -type stepRunEventQueryTimeFirstSeenDateTime struct{} +type stepRunQueryJobRunIDString struct{} -// Set the required value of TimeFirstSeen -func (r stepRunEventQueryTimeFirstSeenDateTime) Set(value DateTime) stepRunEventSetParam { +// Set the required value of JobRunID +func (r stepRunQueryJobRunIDString) Set(value string) stepRunSetParam { - return stepRunEventSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Value: value, }, } } -// Set the optional value of TimeFirstSeen dynamically -func (r stepRunEventQueryTimeFirstSeenDateTime) SetIfPresent(value *DateTime) stepRunEventSetParam { +// Set the optional value of JobRunID dynamically +func (r stepRunQueryJobRunIDString) SetIfPresent(value *String) stepRunSetParam { if value == nil { - return stepRunEventSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -func (r stepRunEventQueryTimeFirstSeenDateTime) Equals(value DateTime) stepRunEventWithPrismaTimeFirstSeenEqualsParam { +func (r stepRunQueryJobRunIDString) Equals(value string) stepRunWithPrismaJobRunIDEqualsParam { - return stepRunEventWithPrismaTimeFirstSeenEqualsParam{ + return stepRunWithPrismaJobRunIDEqualsParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { Name: "equals", @@ -135161,35 +136020,35 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) Equals(value DateTime) stepRunEv } } -func (r stepRunEventQueryTimeFirstSeenDateTime) EqualsIfPresent(value *DateTime) stepRunEventWithPrismaTimeFirstSeenEqualsParam { +func (r stepRunQueryJobRunIDString) EqualsIfPresent(value *string) stepRunWithPrismaJobRunIDEqualsParam { if value == nil { - return stepRunEventWithPrismaTimeFirstSeenEqualsParam{} + return stepRunWithPrismaJobRunIDEqualsParam{} } return r.Equals(*value) } -func (r stepRunEventQueryTimeFirstSeenDateTime) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Value: direction, }, } } -func (r stepRunEventQueryTimeFirstSeenDateTime) Cursor(cursor DateTime) stepRunEventCursorParam { - return stepRunEventCursorParam{ +func (r stepRunQueryJobRunIDString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Value: cursor, }, } } -func (r stepRunEventQueryTimeFirstSeenDateTime) In(value []DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { Name: "in", @@ -135200,17 +136059,17 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) In(value []DateTime) stepRunEven } } -func (r stepRunEventQueryTimeFirstSeenDateTime) InIfPresent(value []DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) InIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunEventQueryTimeFirstSeenDateTime) NotIn(value []DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { Name: "notIn", @@ -135221,17 +136080,17 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) NotIn(value []DateTime) stepRunE } } -func (r stepRunEventQueryTimeFirstSeenDateTime) NotInIfPresent(value []DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) NotInIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunEventQueryTimeFirstSeenDateTime) Lt(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { Name: "lt", @@ -135242,17 +136101,17 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) Lt(value DateTime) stepRunEventD } } -func (r stepRunEventQueryTimeFirstSeenDateTime) LtIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunEventQueryTimeFirstSeenDateTime) Lte(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { Name: "lte", @@ -135263,17 +136122,17 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) Lte(value DateTime) stepRunEvent } } -func (r stepRunEventQueryTimeFirstSeenDateTime) LteIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunEventQueryTimeFirstSeenDateTime) Gt(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { Name: "gt", @@ -135284,17 +136143,17 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) Gt(value DateTime) stepRunEventD } } -func (r stepRunEventQueryTimeFirstSeenDateTime) GtIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunEventQueryTimeFirstSeenDateTime) Gte(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { Name: "gte", @@ -135305,20 +136164,20 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) Gte(value DateTime) stepRunEvent } } -func (r stepRunEventQueryTimeFirstSeenDateTime) GteIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunEventQueryTimeFirstSeenDateTime) Not(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -135326,22 +136185,20 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) Not(value DateTime) stepRunEvent } } -func (r stepRunEventQueryTimeFirstSeenDateTime) NotIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r stepRunEventQueryTimeFirstSeenDateTime) Before(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -135349,23 +136206,20 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) Before(value DateTime) stepRunEv } } -// deprecated: Use LtIfPresent instead. -func (r stepRunEventQueryTimeFirstSeenDateTime) BeforeIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r stepRunEventQueryTimeFirstSeenDateTime) After(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -135373,23 +136227,20 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) After(value DateTime) stepRunEve } } -// deprecated: Use GtIfPresent instead. -func (r stepRunEventQueryTimeFirstSeenDateTime) AfterIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r stepRunEventQueryTimeFirstSeenDateTime) BeforeEquals(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -135397,23 +136248,20 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) BeforeEquals(value DateTime) ste } } -// deprecated: Use LteIfPresent instead. -func (r stepRunEventQueryTimeFirstSeenDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r stepRunEventQueryTimeFirstSeenDateTime) AfterEquals(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryJobRunIDString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeFirstSeen", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -135421,50 +136269,46 @@ func (r stepRunEventQueryTimeFirstSeenDateTime) AfterEquals(value DateTime) step } } -// deprecated: Use GteIfPresent instead. -func (r stepRunEventQueryTimeFirstSeenDateTime) AfterEqualsIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryJobRunIDString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r stepRunEventQueryTimeFirstSeenDateTime) Field() stepRunEventPrismaFields { - return stepRunEventFieldTimeFirstSeen + return r.Not(*value) } -// base struct -type stepRunEventQueryTimeLastSeenDateTime struct{} - -// Set the required value of TimeLastSeen -func (r stepRunEventQueryTimeLastSeenDateTime) Set(value DateTime) stepRunEventSetParam { +// deprecated: Use StartsWith instead. - return stepRunEventSetParam{ +func (r stepRunQueryJobRunIDString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeLastSeen", - Value: value, + Name: "jobRunId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, }, } - } -// Set the optional value of TimeLastSeen dynamically -func (r stepRunEventQueryTimeLastSeenDateTime) SetIfPresent(value *DateTime) stepRunEventSetParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunQueryJobRunIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventSetParam{} + return stepRunDefaultParam{} } - - return r.Set(*value) + return r.HasPrefix(*value) } -func (r stepRunEventQueryTimeLastSeenDateTime) Equals(value DateTime) stepRunEventWithPrismaTimeLastSeenEqualsParam { +// deprecated: Use EndsWith instead. - return stepRunEventWithPrismaTimeLastSeenEqualsParam{ +func (r stepRunQueryJobRunIDString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "jobRunId", Fields: []builder.Field{ { - Name: "equals", + Name: "ends_with", Value: value, }, }, @@ -135472,122 +136316,138 @@ func (r stepRunEventQueryTimeLastSeenDateTime) Equals(value DateTime) stepRunEve } } -func (r stepRunEventQueryTimeLastSeenDateTime) EqualsIfPresent(value *DateTime) stepRunEventWithPrismaTimeLastSeenEqualsParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunQueryJobRunIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventWithPrismaTimeLastSeenEqualsParam{} + return stepRunDefaultParam{} } - return r.Equals(*value) + return r.HasSuffix(*value) } -func (r stepRunEventQueryTimeLastSeenDateTime) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "timeLastSeen", - Value: direction, - }, - } +func (r stepRunQueryJobRunIDString) Field() stepRunPrismaFields { + return stepRunFieldJobRunID } -func (r stepRunEventQueryTimeLastSeenDateTime) Cursor(cursor DateTime) stepRunEventCursorParam { - return stepRunEventCursorParam{ - data: builder.Field{ - Name: "timeLastSeen", - Value: cursor, - }, +// base struct +type stepRunQueryStepStep struct{} + +type stepRunQueryStepRelations struct{} + +// StepRun -> Step +// +// @relation +// @required +func (stepRunQueryStepRelations) Where( + params ...StepWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r stepRunEventQueryTimeLastSeenDateTime) In(value []DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "step", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r stepRunEventQueryTimeLastSeenDateTime) InIfPresent(value []DateTime) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.In(value) +func (stepRunQueryStepRelations) Fetch() stepRunToStepFindUnique { + var v stepRunToStepFindUnique + + v.query.Operation = "query" + v.query.Method = "step" + v.query.Outputs = stepOutput + + return v } -func (r stepRunEventQueryTimeLastSeenDateTime) NotIn(value []DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepRelations) Link( + params StepWhereParam, +) stepRunWithPrismaStepSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRunWithPrismaStepSetParam{} + } + + fields = append(fields, f) + + return stepRunWithPrismaStepSetParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "step", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r stepRunEventQueryTimeLastSeenDateTime) NotInIfPresent(value []DateTime) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.NotIn(value) -} +func (r stepRunQueryStepRelations) Unlink() stepRunWithPrismaStepSetParam { + var v stepRunWithPrismaStepSetParam -func (r stepRunEventQueryTimeLastSeenDateTime) Lt(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + v = stepRunWithPrismaStepSetParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "step", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r stepRunEventQueryTimeLastSeenDateTime) LtIfPresent(value *DateTime) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.Lt(*value) +func (r stepRunQueryStepStep) Field() stepRunPrismaFields { + return stepRunFieldStep } -func (r stepRunEventQueryTimeLastSeenDateTime) Lte(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// base struct +type stepRunQueryStepIDString struct{} + +// Set the required value of StepID +func (r stepRunQueryStepIDString) Set(value string) stepRunSetParam { + + return stepRunSetParam{ data: builder.Field{ - Name: "timeLastSeen", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, + Name: "stepId", + Value: value, }, } + } -func (r stepRunEventQueryTimeLastSeenDateTime) LteIfPresent(value *DateTime) stepRunEventDefaultParam { +// Set the optional value of StepID dynamically +func (r stepRunQueryStepIDString) SetIfPresent(value *String) stepRunSetParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunSetParam{} } - return r.Lte(*value) + + return r.Set(*value) } -func (r stepRunEventQueryTimeLastSeenDateTime) Gt(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) Equals(value string) stepRunWithPrismaStepIDEqualsParam { + + return stepRunWithPrismaStepIDEqualsParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "stepId", Fields: []builder.Field{ { - Name: "gt", + Name: "equals", Value: value, }, }, @@ -135595,41 +136455,38 @@ func (r stepRunEventQueryTimeLastSeenDateTime) Gt(value DateTime) stepRunEventDe } } -func (r stepRunEventQueryTimeLastSeenDateTime) GtIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) EqualsIfPresent(value *string) stepRunWithPrismaStepIDEqualsParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunWithPrismaStepIDEqualsParam{} } - return r.Gt(*value) + return r.Equals(*value) } -func (r stepRunEventQueryTimeLastSeenDateTime) Gte(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "timeLastSeen", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, +func (r stepRunQueryStepIDString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "stepId", + Value: direction, }, } } -func (r stepRunEventQueryTimeLastSeenDateTime) GteIfPresent(value *DateTime) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} +func (r stepRunQueryStepIDString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ + data: builder.Field{ + Name: "stepId", + Value: cursor, + }, } - return r.Gte(*value) } -func (r stepRunEventQueryTimeLastSeenDateTime) Not(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "stepId", Fields: []builder.Field{ { - Name: "not", + Name: "in", Value: value, }, }, @@ -135637,22 +136494,20 @@ func (r stepRunEventQueryTimeLastSeenDateTime) Not(value DateTime) stepRunEventD } } -func (r stepRunEventQueryTimeLastSeenDateTime) NotIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) InIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.In(value) } -// deprecated: Use Lt instead. - -func (r stepRunEventQueryTimeLastSeenDateTime) Before(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "stepId", Fields: []builder.Field{ { - Name: "lt", + Name: "notIn", Value: value, }, }, @@ -135660,23 +136515,20 @@ func (r stepRunEventQueryTimeLastSeenDateTime) Before(value DateTime) stepRunEve } } -// deprecated: Use LtIfPresent instead. -func (r stepRunEventQueryTimeLastSeenDateTime) BeforeIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) NotInIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Before(*value) + return r.NotIn(value) } -// deprecated: Use Gt instead. - -func (r stepRunEventQueryTimeLastSeenDateTime) After(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "stepId", Fields: []builder.Field{ { - Name: "gt", + Name: "lt", Value: value, }, }, @@ -135684,20 +136536,17 @@ func (r stepRunEventQueryTimeLastSeenDateTime) After(value DateTime) stepRunEven } } -// deprecated: Use GtIfPresent instead. -func (r stepRunEventQueryTimeLastSeenDateTime) AfterIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.After(*value) + return r.Lt(*value) } -// deprecated: Use Lte instead. - -func (r stepRunEventQueryTimeLastSeenDateTime) BeforeEquals(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "stepId", Fields: []builder.Field{ { Name: "lte", @@ -135708,23 +136557,20 @@ func (r stepRunEventQueryTimeLastSeenDateTime) BeforeEquals(value DateTime) step } } -// deprecated: Use LteIfPresent instead. -func (r stepRunEventQueryTimeLastSeenDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.Lte(*value) } -// deprecated: Use Gte instead. - -func (r stepRunEventQueryTimeLastSeenDateTime) AfterEquals(value DateTime) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "timeLastSeen", + Name: "stepId", Fields: []builder.Field{ { - Name: "gte", + Name: "gt", Value: value, }, }, @@ -135732,138 +136578,41 @@ func (r stepRunEventQueryTimeLastSeenDateTime) AfterEquals(value DateTime) stepR } } -// deprecated: Use GteIfPresent instead. -func (r stepRunEventQueryTimeLastSeenDateTime) AfterEqualsIfPresent(value *DateTime) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} - } - return r.AfterEquals(*value) -} - -func (r stepRunEventQueryTimeLastSeenDateTime) Field() stepRunEventPrismaFields { - return stepRunEventFieldTimeLastSeen -} - -// base struct -type stepRunEventQueryStepRunStepRun struct{} - -type stepRunEventQueryStepRunRelations struct{} - -// StepRunEvent -> StepRun -// -// @relation -// @required -func (stepRunEventQueryStepRunRelations) Where( - params ...StepRunWhereParam, -) stepRunEventDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "stepRun", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, - }, - } -} - -func (stepRunEventQueryStepRunRelations) Fetch() stepRunEventToStepRunFindUnique { - var v stepRunEventToStepRunFindUnique - - v.query.Operation = "query" - v.query.Method = "stepRun" - v.query.Outputs = stepRunOutput - - return v -} - -func (r stepRunEventQueryStepRunRelations) Link( - params StepRunWhereParam, -) stepRunEventWithPrismaStepRunSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepRunEventWithPrismaStepRunSetParam{} - } - - fields = append(fields, f) - - return stepRunEventWithPrismaStepRunSetParam{ - data: builder.Field{ - Name: "stepRun", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, - }, + return stepRunDefaultParam{} } + return r.Gt(*value) } -func (r stepRunEventQueryStepRunRelations) Unlink() stepRunEventWithPrismaStepRunSetParam { - var v stepRunEventWithPrismaStepRunSetParam - - v = stepRunEventWithPrismaStepRunSetParam{ +func (r stepRunQueryStepIDString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRun", + Name: "stepId", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "gte", + Value: value, }, }, }, } - - return v -} - -func (r stepRunEventQueryStepRunStepRun) Field() stepRunEventPrismaFields { - return stepRunEventFieldStepRun -} - -// base struct -type stepRunEventQueryStepRunIDString struct{} - -// Set the required value of StepRunID -func (r stepRunEventQueryStepRunIDString) Set(value string) stepRunEventSetParam { - - return stepRunEventSetParam{ - data: builder.Field{ - Name: "stepRunId", - Value: value, - }, - } - } -// Set the optional value of StepRunID dynamically -func (r stepRunEventQueryStepRunIDString) SetIfPresent(value *String) stepRunEventSetParam { +func (r stepRunQueryStepIDString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventSetParam{} + return stepRunDefaultParam{} } - - return r.Set(*value) + return r.Gte(*value) } -func (r stepRunEventQueryStepRunIDString) Equals(value string) stepRunEventWithPrismaStepRunIDEqualsParam { - - return stepRunEventWithPrismaStepRunIDEqualsParam{ +func (r stepRunQueryStepIDString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "stepId", Fields: []builder.Field{ { - Name: "equals", + Name: "contains", Value: value, }, }, @@ -135871,38 +136620,20 @@ func (r stepRunEventQueryStepRunIDString) Equals(value string) stepRunEventWithP } } -func (r stepRunEventQueryStepRunIDString) EqualsIfPresent(value *string) stepRunEventWithPrismaStepRunIDEqualsParam { +func (r stepRunQueryStepIDString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventWithPrismaStepRunIDEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepRunEventQueryStepRunIDString) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Value: direction, - }, - } -} - -func (r stepRunEventQueryStepRunIDString) Cursor(cursor string) stepRunEventCursorParam { - return stepRunEventCursorParam{ - data: builder.Field{ - Name: "stepRunId", - Value: cursor, - }, + return stepRunDefaultParam{} } + return r.Contains(*value) } -func (r stepRunEventQueryStepRunIDString) In(value []string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "stepId", Fields: []builder.Field{ { - Name: "in", + Name: "startsWith", Value: value, }, }, @@ -135910,20 +136641,20 @@ func (r stepRunEventQueryStepRunIDString) In(value []string) stepRunEventDefault } } -func (r stepRunEventQueryStepRunIDString) InIfPresent(value []string) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.In(value) + return r.StartsWith(*value) } -func (r stepRunEventQueryStepRunIDString) NotIn(value []string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "stepId", Fields: []builder.Field{ { - Name: "notIn", + Name: "endsWith", Value: value, }, }, @@ -135931,20 +136662,20 @@ func (r stepRunEventQueryStepRunIDString) NotIn(value []string) stepRunEventDefa } } -func (r stepRunEventQueryStepRunIDString) NotInIfPresent(value []string) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.NotIn(value) + return r.EndsWith(*value) } -func (r stepRunEventQueryStepRunIDString) Lt(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "stepId", Fields: []builder.Field{ { - Name: "lt", + Name: "mode", Value: value, }, }, @@ -135952,20 +136683,20 @@ func (r stepRunEventQueryStepRunIDString) Lt(value string) stepRunEventDefaultPa } } -func (r stepRunEventQueryStepRunIDString) LtIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.Mode(*value) } -func (r stepRunEventQueryStepRunIDString) Lte(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryStepIDString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "stepId", Fields: []builder.Field{ { - Name: "lte", + Name: "not", Value: value, }, }, @@ -135973,20 +136704,22 @@ func (r stepRunEventQueryStepRunIDString) Lte(value string) stepRunEventDefaultP } } -func (r stepRunEventQueryStepRunIDString) LteIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryStepIDString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.Not(*value) } -func (r stepRunEventQueryStepRunIDString) Gt(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r stepRunQueryStepIDString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "stepId", Fields: []builder.Field{ { - Name: "gt", + Name: "starts_with", Value: value, }, }, @@ -135994,20 +136727,23 @@ func (r stepRunEventQueryStepRunIDString) Gt(value string) stepRunEventDefaultPa } } -func (r stepRunEventQueryStepRunIDString) GtIfPresent(value *string) stepRunEventDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunQueryStepIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Gt(*value) + return r.HasPrefix(*value) } -func (r stepRunEventQueryStepRunIDString) Gte(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// deprecated: Use EndsWith instead. + +func (r stepRunQueryStepIDString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "stepId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -136015,333 +136751,394 @@ func (r stepRunEventQueryStepRunIDString) Gte(value string) stepRunEventDefaultP } } -func (r stepRunEventQueryStepRunIDString) GteIfPresent(value *string) stepRunEventDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunQueryStepIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Gte(*value) + return r.HasSuffix(*value) } -func (r stepRunEventQueryStepRunIDString) Contains(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "contains", - Value: value, - }, - }, - }, - } +func (r stepRunQueryStepIDString) Field() stepRunPrismaFields { + return stepRunFieldStepID } -func (r stepRunEventQueryStepRunIDString) ContainsIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} +// base struct +type stepRunQueryChildrenStepRun struct{} + +type stepRunQueryChildrenRelations struct{} + +// StepRun -> Children +// +// @relation +// @required +func (stepRunQueryChildrenRelations) Some( + params ...StepRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Contains(*value) -} -func (r stepRunEventQueryStepRunIDString) StartsWith(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "children", Fields: []builder.Field{ { - Name: "startsWith", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r stepRunEventQueryStepRunIDString) StartsWithIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} +// StepRun -> Children +// +// @relation +// @required +func (stepRunQueryChildrenRelations) Every( + params ...StepRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.StartsWith(*value) -} -func (r stepRunEventQueryStepRunIDString) EndsWith(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "children", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r stepRunEventQueryStepRunIDString) EndsWithIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} +// StepRun -> Children +// +// @relation +// @required +func (stepRunQueryChildrenRelations) None( + params ...StepRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.EndsWith(*value) -} -func (r stepRunEventQueryStepRunIDString) Mode(value QueryMode) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "children", Fields: []builder.Field{ { - Name: "mode", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r stepRunEventQueryStepRunIDString) ModeIfPresent(value *QueryMode) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.Mode(*value) -} +func (stepRunQueryChildrenRelations) Fetch( -func (r stepRunEventQueryStepRunIDString) Not(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, - }, + params ...StepRunWhereParam, + +) stepRunToChildrenFindMany { + var v stepRunToChildrenFindMany + + v.query.Operation = "query" + v.query.Method = "children" + v.query.Outputs = stepRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } -} -func (r stepRunEventQueryStepRunIDString) NotIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - return r.Not(*value) + + return v } -// deprecated: Use StartsWith instead. +func (r stepRunQueryChildrenRelations) Link( + params ...StepRunWhereParam, +) stepRunSetParam { + var fields []builder.Field -func (r stepRunEventQueryStepRunIDString) HasPrefix(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunSetParam{ data: builder.Field{ - Name: "stepRunId", + Name: "children", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunEventQueryStepRunIDString) HasPrefixIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.HasPrefix(*value) -} - -// deprecated: Use EndsWith instead. +func (r stepRunQueryChildrenRelations) Unlink( + params ...StepRunWhereParam, +) stepRunSetParam { + var v stepRunSetParam -func (r stepRunEventQueryStepRunIDString) HasSuffix(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepRunSetParam{ data: builder.Field{ - Name: "stepRunId", + Name: "children", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } -} -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunEventQueryStepRunIDString) HasSuffixIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.HasSuffix(*value) + return v } -func (r stepRunEventQueryStepRunIDString) Field() stepRunEventPrismaFields { - return stepRunEventFieldStepRunID +func (r stepRunQueryChildrenStepRun) Field() stepRunPrismaFields { + return stepRunFieldChildren } // base struct -type stepRunEventQueryReasonStepRunEventReason struct{} - -// Set the required value of Reason -func (r stepRunEventQueryReasonStepRunEventReason) Set(value StepRunEventReason) stepRunEventWithPrismaReasonSetParam { +type stepRunQueryParentsStepRun struct{} - return stepRunEventWithPrismaReasonSetParam{ - data: builder.Field{ - Name: "reason", - Value: value, - }, - } +type stepRunQueryParentsRelations struct{} -} +// StepRun -> Parents +// +// @relation +// @required +func (stepRunQueryParentsRelations) Some( + params ...StepRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -// Set the optional value of Reason dynamically -func (r stepRunEventQueryReasonStepRunEventReason) SetIfPresent(value *StepRunEventReason) stepRunEventWithPrismaReasonSetParam { - if value == nil { - return stepRunEventWithPrismaReasonSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) -} - -func (r stepRunEventQueryReasonStepRunEventReason) Equals(value StepRunEventReason) stepRunEventWithPrismaReasonEqualsParam { - - return stepRunEventWithPrismaReasonEqualsParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "reason", + Name: "parents", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r stepRunEventQueryReasonStepRunEventReason) EqualsIfPresent(value *StepRunEventReason) stepRunEventWithPrismaReasonEqualsParam { - if value == nil { - return stepRunEventWithPrismaReasonEqualsParam{} +// StepRun -> Parents +// +// @relation +// @required +func (stepRunQueryParentsRelations) Every( + params ...StepRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Equals(*value) -} -func (r stepRunEventQueryReasonStepRunEventReason) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "reason", - Value: direction, + Name: "parents", + Fields: []builder.Field{ + { + Name: "every", + Fields: fields, + }, + }, }, } } -func (r stepRunEventQueryReasonStepRunEventReason) Cursor(cursor StepRunEventReason) stepRunEventCursorParam { - return stepRunEventCursorParam{ - data: builder.Field{ - Name: "reason", - Value: cursor, - }, +// StepRun -> Parents +// +// @relation +// @required +func (stepRunQueryParentsRelations) None( + params ...StepRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r stepRunEventQueryReasonStepRunEventReason) In(value []StepRunEventReason) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "reason", + Name: "parents", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r stepRunEventQueryReasonStepRunEventReason) InIfPresent(value []StepRunEventReason) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} +func (stepRunQueryParentsRelations) Fetch( + + params ...StepRunWhereParam, + +) stepRunToParentsFindMany { + var v stepRunToParentsFindMany + + v.query.Operation = "query" + v.query.Method = "parents" + v.query.Outputs = stepRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.In(value) + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v } -func (r stepRunEventQueryReasonStepRunEventReason) NotIn(value []StepRunEventReason) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryParentsRelations) Link( + params ...StepRunWhereParam, +) stepRunSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunSetParam{ data: builder.Field{ - Name: "reason", + Name: "parents", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r stepRunEventQueryReasonStepRunEventReason) NotInIfPresent(value []StepRunEventReason) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.NotIn(value) -} +func (r stepRunQueryParentsRelations) Unlink( + params ...StepRunWhereParam, +) stepRunSetParam { + var v stepRunSetParam -func (r stepRunEventQueryReasonStepRunEventReason) Not(value StepRunEventReason) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepRunSetParam{ data: builder.Field{ - Name: "reason", + Name: "parents", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } -} -func (r stepRunEventQueryReasonStepRunEventReason) NotIfPresent(value *StepRunEventReason) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.Not(*value) + return v } -func (r stepRunEventQueryReasonStepRunEventReason) Field() stepRunEventPrismaFields { - return stepRunEventFieldReason +func (r stepRunQueryParentsStepRun) Field() stepRunPrismaFields { + return stepRunFieldParents } // base struct -type stepRunEventQuerySeverityStepRunEventSeverity struct{} +type stepRunQueryOrderBigInt struct{} -// Set the required value of Severity -func (r stepRunEventQuerySeverityStepRunEventSeverity) Set(value StepRunEventSeverity) stepRunEventWithPrismaSeveritySetParam { +// Set the required value of Order +func (r stepRunQueryOrderBigInt) Set(value BigInt) stepRunSetParam { - return stepRunEventWithPrismaSeveritySetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "severity", + Name: "order", Value: value, }, } } -// Set the optional value of Severity dynamically -func (r stepRunEventQuerySeverityStepRunEventSeverity) SetIfPresent(value *StepRunEventSeverity) stepRunEventWithPrismaSeveritySetParam { +// Set the optional value of Order dynamically +func (r stepRunQueryOrderBigInt) SetIfPresent(value *BigInt) stepRunSetParam { if value == nil { - return stepRunEventWithPrismaSeveritySetParam{} + return stepRunSetParam{} } return r.Set(*value) } -func (r stepRunEventQuerySeverityStepRunEventSeverity) Equals(value StepRunEventSeverity) stepRunEventWithPrismaSeverityEqualsParam { - - return stepRunEventWithPrismaSeverityEqualsParam{ +// Increment the required value of Order +func (r stepRunQueryOrderBigInt) Increment(value BigInt) stepRunSetParam { + return stepRunSetParam{ data: builder.Field{ - Name: "severity", + Name: "order", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "increment", Value: value, }, }, @@ -136349,38 +137146,21 @@ func (r stepRunEventQuerySeverityStepRunEventSeverity) Equals(value StepRunEvent } } -func (r stepRunEventQuerySeverityStepRunEventSeverity) EqualsIfPresent(value *StepRunEventSeverity) stepRunEventWithPrismaSeverityEqualsParam { +func (r stepRunQueryOrderBigInt) IncrementIfPresent(value *BigInt) stepRunSetParam { if value == nil { - return stepRunEventWithPrismaSeverityEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepRunEventQuerySeverityStepRunEventSeverity) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "severity", - Value: direction, - }, - } -} - -func (r stepRunEventQuerySeverityStepRunEventSeverity) Cursor(cursor StepRunEventSeverity) stepRunEventCursorParam { - return stepRunEventCursorParam{ - data: builder.Field{ - Name: "severity", - Value: cursor, - }, + return stepRunSetParam{} } + return r.Increment(*value) } -func (r stepRunEventQuerySeverityStepRunEventSeverity) In(value []StepRunEventSeverity) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// Decrement the required value of Order +func (r stepRunQueryOrderBigInt) Decrement(value BigInt) stepRunSetParam { + return stepRunSetParam{ data: builder.Field{ - Name: "severity", + Name: "order", Fields: []builder.Field{ - { - Name: "in", + builder.Field{ + Name: "decrement", Value: value, }, }, @@ -136388,20 +137168,21 @@ func (r stepRunEventQuerySeverityStepRunEventSeverity) In(value []StepRunEventSe } } -func (r stepRunEventQuerySeverityStepRunEventSeverity) InIfPresent(value []StepRunEventSeverity) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) DecrementIfPresent(value *BigInt) stepRunSetParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunSetParam{} } - return r.In(value) + return r.Decrement(*value) } -func (r stepRunEventQuerySeverityStepRunEventSeverity) NotIn(value []StepRunEventSeverity) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// Multiply the required value of Order +func (r stepRunQueryOrderBigInt) Multiply(value BigInt) stepRunSetParam { + return stepRunSetParam{ data: builder.Field{ - Name: "severity", + Name: "order", Fields: []builder.Field{ - { - Name: "notIn", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -136409,20 +137190,21 @@ func (r stepRunEventQuerySeverityStepRunEventSeverity) NotIn(value []StepRunEven } } -func (r stepRunEventQuerySeverityStepRunEventSeverity) NotInIfPresent(value []StepRunEventSeverity) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) MultiplyIfPresent(value *BigInt) stepRunSetParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunSetParam{} } - return r.NotIn(value) + return r.Multiply(*value) } -func (r stepRunEventQuerySeverityStepRunEventSeverity) Not(value StepRunEventSeverity) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// Divide the required value of Order +func (r stepRunQueryOrderBigInt) Divide(value BigInt) stepRunSetParam { + return stepRunSetParam{ data: builder.Field{ - Name: "severity", + Name: "order", Fields: []builder.Field{ - { - Name: "not", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -136430,46 +137212,18 @@ func (r stepRunEventQuerySeverityStepRunEventSeverity) Not(value StepRunEventSev } } -func (r stepRunEventQuerySeverityStepRunEventSeverity) NotIfPresent(value *StepRunEventSeverity) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.Not(*value) -} - -func (r stepRunEventQuerySeverityStepRunEventSeverity) Field() stepRunEventPrismaFields { - return stepRunEventFieldSeverity -} - -// base struct -type stepRunEventQueryMessageString struct{} - -// Set the required value of Message -func (r stepRunEventQueryMessageString) Set(value string) stepRunEventWithPrismaMessageSetParam { - - return stepRunEventWithPrismaMessageSetParam{ - data: builder.Field{ - Name: "message", - Value: value, - }, - } - -} - -// Set the optional value of Message dynamically -func (r stepRunEventQueryMessageString) SetIfPresent(value *String) stepRunEventWithPrismaMessageSetParam { +func (r stepRunQueryOrderBigInt) DivideIfPresent(value *BigInt) stepRunSetParam { if value == nil { - return stepRunEventWithPrismaMessageSetParam{} + return stepRunSetParam{} } - - return r.Set(*value) + return r.Divide(*value) } -func (r stepRunEventQueryMessageString) Equals(value string) stepRunEventWithPrismaMessageEqualsParam { +func (r stepRunQueryOrderBigInt) Equals(value BigInt) stepRunWithPrismaOrderEqualsParam { - return stepRunEventWithPrismaMessageEqualsParam{ + return stepRunWithPrismaOrderEqualsParam{ data: builder.Field{ - Name: "message", + Name: "order", Fields: []builder.Field{ { Name: "equals", @@ -136480,35 +137234,35 @@ func (r stepRunEventQueryMessageString) Equals(value string) stepRunEventWithPri } } -func (r stepRunEventQueryMessageString) EqualsIfPresent(value *string) stepRunEventWithPrismaMessageEqualsParam { +func (r stepRunQueryOrderBigInt) EqualsIfPresent(value *BigInt) stepRunWithPrismaOrderEqualsParam { if value == nil { - return stepRunEventWithPrismaMessageEqualsParam{} + return stepRunWithPrismaOrderEqualsParam{} } return r.Equals(*value) } -func (r stepRunEventQueryMessageString) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "order", Value: direction, }, } } -func (r stepRunEventQueryMessageString) Cursor(cursor string) stepRunEventCursorParam { - return stepRunEventCursorParam{ +func (r stepRunQueryOrderBigInt) Cursor(cursor BigInt) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "message", + Name: "order", Value: cursor, }, } } -func (r stepRunEventQueryMessageString) In(value []string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) In(value []BigInt) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "order", Fields: []builder.Field{ { Name: "in", @@ -136519,17 +137273,17 @@ func (r stepRunEventQueryMessageString) In(value []string) stepRunEventDefaultPa } } -func (r stepRunEventQueryMessageString) InIfPresent(value []string) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) InIfPresent(value []BigInt) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunEventQueryMessageString) NotIn(value []string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) NotIn(value []BigInt) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "order", Fields: []builder.Field{ { Name: "notIn", @@ -136540,17 +137294,17 @@ func (r stepRunEventQueryMessageString) NotIn(value []string) stepRunEventDefaul } } -func (r stepRunEventQueryMessageString) NotInIfPresent(value []string) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) NotInIfPresent(value []BigInt) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunEventQueryMessageString) Lt(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) Lt(value BigInt) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "order", Fields: []builder.Field{ { Name: "lt", @@ -136561,17 +137315,17 @@ func (r stepRunEventQueryMessageString) Lt(value string) stepRunEventDefaultPara } } -func (r stepRunEventQueryMessageString) LtIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) LtIfPresent(value *BigInt) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunEventQueryMessageString) Lte(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) Lte(value BigInt) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "order", Fields: []builder.Field{ { Name: "lte", @@ -136582,17 +137336,17 @@ func (r stepRunEventQueryMessageString) Lte(value string) stepRunEventDefaultPar } } -func (r stepRunEventQueryMessageString) LteIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) LteIfPresent(value *BigInt) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunEventQueryMessageString) Gt(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) Gt(value BigInt) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "order", Fields: []builder.Field{ { Name: "gt", @@ -136603,17 +137357,17 @@ func (r stepRunEventQueryMessageString) Gt(value string) stepRunEventDefaultPara } } -func (r stepRunEventQueryMessageString) GtIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) GtIfPresent(value *BigInt) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunEventQueryMessageString) Gte(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) Gte(value BigInt) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "order", Fields: []builder.Field{ { Name: "gte", @@ -136624,20 +137378,20 @@ func (r stepRunEventQueryMessageString) Gte(value string) stepRunEventDefaultPar } } -func (r stepRunEventQueryMessageString) GteIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) GteIfPresent(value *BigInt) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunEventQueryMessageString) Contains(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) Not(value BigInt) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "order", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -136645,106 +137399,153 @@ func (r stepRunEventQueryMessageString) Contains(value string) stepRunEventDefau } } -func (r stepRunEventQueryMessageString) ContainsIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryOrderBigInt) NotIfPresent(value *BigInt) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r stepRunEventQueryMessageString) StartsWith(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryOrderBigInt) Field() stepRunPrismaFields { + return stepRunFieldOrder +} + +// base struct +type stepRunQueryWorkerWorker struct{} + +type stepRunQueryWorkerRelations struct{} + +// StepRun -> Worker +// +// @relation +// @optional +func (stepRunQueryWorkerRelations) Where( + params ...WorkerWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "worker", Fields: []builder.Field{ { - Name: "startsWith", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r stepRunEventQueryMessageString) StartsWithIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.StartsWith(*value) +func (stepRunQueryWorkerRelations) Fetch() stepRunToWorkerFindUnique { + var v stepRunToWorkerFindUnique + + v.query.Operation = "query" + v.query.Method = "worker" + v.query.Outputs = workerOutput + + return v } -func (r stepRunEventQueryMessageString) EndsWith(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerRelations) Link( + params WorkerWhereParam, +) stepRunSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRunSetParam{} + } + + fields = append(fields, f) + + return stepRunSetParam{ data: builder.Field{ - Name: "message", + Name: "worker", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r stepRunEventQueryMessageString) EndsWithIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.EndsWith(*value) -} +func (r stepRunQueryWorkerRelations) Unlink() stepRunSetParam { + var v stepRunSetParam -func (r stepRunEventQueryMessageString) Mode(value QueryMode) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + v = stepRunSetParam{ data: builder.Field{ - Name: "message", + Name: "worker", Fields: []builder.Field{ { - Name: "mode", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r stepRunEventQueryMessageString) ModeIfPresent(value *QueryMode) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.Mode(*value) +func (r stepRunQueryWorkerWorker) Field() stepRunPrismaFields { + return stepRunFieldWorker } -func (r stepRunEventQueryMessageString) Not(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// base struct +type stepRunQueryWorkerIDString struct{} + +// Set the optional value of WorkerID +func (r stepRunQueryWorkerIDString) Set(value string) stepRunSetParam { + + return stepRunSetParam{ data: builder.Field{ - Name: "message", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, + Name: "workerId", + Value: value, }, } + } -func (r stepRunEventQueryMessageString) NotIfPresent(value *string) stepRunEventDefaultParam { +// Set the optional value of WorkerID dynamically +func (r stepRunQueryWorkerIDString) SetIfPresent(value *String) stepRunSetParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunSetParam{} } - return r.Not(*value) + + return r.Set(*value) } -// deprecated: Use StartsWith instead. +// Set the optional value of WorkerID dynamically +func (r stepRunQueryWorkerIDString) SetOptional(value *String) stepRunSetParam { + if value == nil { -func (r stepRunEventQueryMessageString) HasPrefix(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + var v *string + return stepRunSetParam{ + data: builder.Field{ + Name: "workerId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepRunQueryWorkerIDString) Equals(value string) stepRunWithPrismaWorkerIDEqualsParam { + + return stepRunWithPrismaWorkerIDEqualsParam{ data: builder.Field{ - Name: "message", + Name: "workerId", Fields: []builder.Field{ { - Name: "starts_with", + Name: "equals", Value: value, }, }, @@ -136752,23 +137553,20 @@ func (r stepRunEventQueryMessageString) HasPrefix(value string) stepRunEventDefa } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunEventQueryMessageString) HasPrefixIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryWorkerIDString) EqualsIfPresent(value *string) stepRunWithPrismaWorkerIDEqualsParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunWithPrismaWorkerIDEqualsParam{} } - return r.HasPrefix(*value) + return r.Equals(*value) } -// deprecated: Use EndsWith instead. - -func (r stepRunEventQueryMessageString) HasSuffix(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerIDString) EqualsOptional(value *String) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "message", + Name: "workerId", Fields: []builder.Field{ { - Name: "ends_with", + Name: "equals", Value: value, }, }, @@ -136776,50 +137574,46 @@ func (r stepRunEventQueryMessageString) HasSuffix(value string) stepRunEventDefa } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunEventQueryMessageString) HasSuffixIfPresent(value *string) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} +func (r stepRunQueryWorkerIDString) IsNull() stepRunDefaultParam { + var str *string = nil + return stepRunDefaultParam{ + data: builder.Field{ + Name: "workerId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.HasSuffix(*value) -} - -func (r stepRunEventQueryMessageString) Field() stepRunEventPrismaFields { - return stepRunEventFieldMessage } -// base struct -type stepRunEventQueryCountInt struct{} - -// Set the required value of Count -func (r stepRunEventQueryCountInt) Set(value int) stepRunEventWithPrismaCountSetParam { - - return stepRunEventWithPrismaCountSetParam{ +func (r stepRunQueryWorkerIDString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", - Value: value, + Name: "workerId", + Value: direction, }, } - } -// Set the optional value of Count dynamically -func (r stepRunEventQueryCountInt) SetIfPresent(value *Int) stepRunEventWithPrismaCountSetParam { - if value == nil { - return stepRunEventWithPrismaCountSetParam{} +func (r stepRunQueryWorkerIDString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ + data: builder.Field{ + Name: "workerId", + Value: cursor, + }, } - - return r.Set(*value) } -// Increment the required value of Count -func (r stepRunEventQueryCountInt) Increment(value int) stepRunEventWithPrismaCountSetParam { - return stepRunEventWithPrismaCountSetParam{ +func (r stepRunQueryWorkerIDString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ - builder.Field{ - Name: "increment", + { + Name: "in", Value: value, }, }, @@ -136827,21 +137621,20 @@ func (r stepRunEventQueryCountInt) Increment(value int) stepRunEventWithPrismaCo } } -func (r stepRunEventQueryCountInt) IncrementIfPresent(value *int) stepRunEventWithPrismaCountSetParam { +func (r stepRunQueryWorkerIDString) InIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunEventWithPrismaCountSetParam{} + return stepRunDefaultParam{} } - return r.Increment(*value) + return r.In(value) } -// Decrement the required value of Count -func (r stepRunEventQueryCountInt) Decrement(value int) stepRunEventWithPrismaCountSetParam { - return stepRunEventWithPrismaCountSetParam{ +func (r stepRunQueryWorkerIDString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ - builder.Field{ - Name: "decrement", + { + Name: "notIn", Value: value, }, }, @@ -136849,21 +137642,20 @@ func (r stepRunEventQueryCountInt) Decrement(value int) stepRunEventWithPrismaCo } } -func (r stepRunEventQueryCountInt) DecrementIfPresent(value *int) stepRunEventWithPrismaCountSetParam { +func (r stepRunQueryWorkerIDString) NotInIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunEventWithPrismaCountSetParam{} + return stepRunDefaultParam{} } - return r.Decrement(*value) + return r.NotIn(value) } -// Multiply the required value of Count -func (r stepRunEventQueryCountInt) Multiply(value int) stepRunEventWithPrismaCountSetParam { - return stepRunEventWithPrismaCountSetParam{ +func (r stepRunQueryWorkerIDString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "lt", Value: value, }, }, @@ -136871,21 +137663,20 @@ func (r stepRunEventQueryCountInt) Multiply(value int) stepRunEventWithPrismaCou } } -func (r stepRunEventQueryCountInt) MultiplyIfPresent(value *int) stepRunEventWithPrismaCountSetParam { +func (r stepRunQueryWorkerIDString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventWithPrismaCountSetParam{} + return stepRunDefaultParam{} } - return r.Multiply(*value) + return r.Lt(*value) } -// Divide the required value of Count -func (r stepRunEventQueryCountInt) Divide(value int) stepRunEventWithPrismaCountSetParam { - return stepRunEventWithPrismaCountSetParam{ +func (r stepRunQueryWorkerIDString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "lte", Value: value, }, }, @@ -136893,21 +137684,20 @@ func (r stepRunEventQueryCountInt) Divide(value int) stepRunEventWithPrismaCount } } -func (r stepRunEventQueryCountInt) DivideIfPresent(value *int) stepRunEventWithPrismaCountSetParam { +func (r stepRunQueryWorkerIDString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventWithPrismaCountSetParam{} + return stepRunDefaultParam{} } - return r.Divide(*value) + return r.Lte(*value) } -func (r stepRunEventQueryCountInt) Equals(value int) stepRunEventWithPrismaCountEqualsParam { - - return stepRunEventWithPrismaCountEqualsParam{ +func (r stepRunQueryWorkerIDString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "equals", + Name: "gt", Value: value, }, }, @@ -136915,38 +137705,20 @@ func (r stepRunEventQueryCountInt) Equals(value int) stepRunEventWithPrismaCount } } -func (r stepRunEventQueryCountInt) EqualsIfPresent(value *int) stepRunEventWithPrismaCountEqualsParam { +func (r stepRunQueryWorkerIDString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventWithPrismaCountEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepRunEventQueryCountInt) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ - data: builder.Field{ - Name: "count", - Value: direction, - }, - } -} - -func (r stepRunEventQueryCountInt) Cursor(cursor int) stepRunEventCursorParam { - return stepRunEventCursorParam{ - data: builder.Field{ - Name: "count", - Value: cursor, - }, + return stepRunDefaultParam{} } + return r.Gt(*value) } -func (r stepRunEventQueryCountInt) In(value []int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerIDString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "in", + Name: "gte", Value: value, }, }, @@ -136954,20 +137726,20 @@ func (r stepRunEventQueryCountInt) In(value []int) stepRunEventDefaultParam { } } -func (r stepRunEventQueryCountInt) InIfPresent(value []int) stepRunEventDefaultParam { +func (r stepRunQueryWorkerIDString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.In(value) + return r.Gte(*value) } -func (r stepRunEventQueryCountInt) NotIn(value []int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerIDString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "notIn", + Name: "contains", Value: value, }, }, @@ -136975,20 +137747,20 @@ func (r stepRunEventQueryCountInt) NotIn(value []int) stepRunEventDefaultParam { } } -func (r stepRunEventQueryCountInt) NotInIfPresent(value []int) stepRunEventDefaultParam { +func (r stepRunQueryWorkerIDString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.NotIn(value) + return r.Contains(*value) } -func (r stepRunEventQueryCountInt) Lt(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerIDString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -136996,20 +137768,20 @@ func (r stepRunEventQueryCountInt) Lt(value int) stepRunEventDefaultParam { } } -func (r stepRunEventQueryCountInt) LtIfPresent(value *int) stepRunEventDefaultParam { +func (r stepRunQueryWorkerIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.StartsWith(*value) } -func (r stepRunEventQueryCountInt) Lte(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerIDString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "lte", + Name: "endsWith", Value: value, }, }, @@ -137017,20 +137789,20 @@ func (r stepRunEventQueryCountInt) Lte(value int) stepRunEventDefaultParam { } } -func (r stepRunEventQueryCountInt) LteIfPresent(value *int) stepRunEventDefaultParam { +func (r stepRunQueryWorkerIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.EndsWith(*value) } -func (r stepRunEventQueryCountInt) Gt(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerIDString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "gt", + Name: "mode", Value: value, }, }, @@ -137038,20 +137810,20 @@ func (r stepRunEventQueryCountInt) Gt(value int) stepRunEventDefaultParam { } } -func (r stepRunEventQueryCountInt) GtIfPresent(value *int) stepRunEventDefaultParam { +func (r stepRunQueryWorkerIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Gt(*value) + return r.Mode(*value) } -func (r stepRunEventQueryCountInt) Gte(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerIDString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -137059,20 +137831,22 @@ func (r stepRunEventQueryCountInt) Gte(value int) stepRunEventDefaultParam { } } -func (r stepRunEventQueryCountInt) GteIfPresent(value *int) stepRunEventDefaultParam { +func (r stepRunQueryWorkerIDString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Gte(*value) + return r.Not(*value) } -func (r stepRunEventQueryCountInt) Not(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r stepRunQueryWorkerIDString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "not", + Name: "starts_with", Value: value, }, }, @@ -137080,22 +137854,23 @@ func (r stepRunEventQueryCountInt) Not(value int) stepRunEventDefaultParam { } } -func (r stepRunEventQueryCountInt) NotIfPresent(value *int) stepRunEventDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunQueryWorkerIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.HasPrefix(*value) } -// deprecated: Use Lt instead. +// deprecated: Use EndsWith instead. -func (r stepRunEventQueryCountInt) LT(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryWorkerIDString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "workerId", Fields: []builder.Field{ { - Name: "lt", + Name: "ends_with", Value: value, }, }, @@ -137103,122 +137878,138 @@ func (r stepRunEventQueryCountInt) LT(value int) stepRunEventDefaultParam { } } -// deprecated: Use LtIfPresent instead. -func (r stepRunEventQueryCountInt) LTIfPresent(value *int) stepRunEventDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunQueryWorkerIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.LT(*value) + return r.HasSuffix(*value) } -// deprecated: Use Lte instead. +func (r stepRunQueryWorkerIDString) Field() stepRunPrismaFields { + return stepRunFieldWorkerID +} -func (r stepRunEventQueryCountInt) LTE(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// base struct +type stepRunQueryTickerTicker struct{} + +type stepRunQueryTickerRelations struct{} + +// StepRun -> Ticker +// +// @relation +// @optional +func (stepRunQueryTickerRelations) Where( + params ...TickerWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunDefaultParam{ data: builder.Field{ - Name: "count", + Name: "ticker", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -// deprecated: Use LteIfPresent instead. -func (r stepRunEventQueryCountInt) LTEIfPresent(value *int) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.LTE(*value) +func (stepRunQueryTickerRelations) Fetch() stepRunToTickerFindUnique { + var v stepRunToTickerFindUnique + + v.query.Operation = "query" + v.query.Method = "ticker" + v.query.Outputs = tickerOutput + + return v } -// deprecated: Use Gt instead. +func (r stepRunQueryTickerRelations) Link( + params TickerWhereParam, +) stepRunSetParam { + var fields []builder.Field -func (r stepRunEventQueryCountInt) GT(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRunSetParam{} + } + + fields = append(fields, f) + + return stepRunSetParam{ data: builder.Field{ - Name: "count", + Name: "ticker", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// deprecated: Use GtIfPresent instead. -func (r stepRunEventQueryCountInt) GTIfPresent(value *int) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.GT(*value) -} - -// deprecated: Use Gte instead. +func (r stepRunQueryTickerRelations) Unlink() stepRunSetParam { + var v stepRunSetParam -func (r stepRunEventQueryCountInt) GTE(value int) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ + v = stepRunSetParam{ data: builder.Field{ - Name: "count", + Name: "ticker", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } -} -// deprecated: Use GteIfPresent instead. -func (r stepRunEventQueryCountInt) GTEIfPresent(value *int) stepRunEventDefaultParam { - if value == nil { - return stepRunEventDefaultParam{} - } - return r.GTE(*value) + return v } -func (r stepRunEventQueryCountInt) Field() stepRunEventPrismaFields { - return stepRunEventFieldCount +func (r stepRunQueryTickerTicker) Field() stepRunPrismaFields { + return stepRunFieldTicker } // base struct -type stepRunEventQueryDataJson struct{} +type stepRunQueryTickerIDString struct{} -// Set the optional value of Data -func (r stepRunEventQueryDataJson) Set(value JSON) stepRunEventSetParam { +// Set the optional value of TickerID +func (r stepRunQueryTickerIDString) Set(value string) stepRunSetParam { - return stepRunEventSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Value: value, }, } } -// Set the optional value of Data dynamically -func (r stepRunEventQueryDataJson) SetIfPresent(value *JSON) stepRunEventSetParam { +// Set the optional value of TickerID dynamically +func (r stepRunQueryTickerIDString) SetIfPresent(value *String) stepRunSetParam { if value == nil { - return stepRunEventSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -// Set the optional value of Data dynamically -func (r stepRunEventQueryDataJson) SetOptional(value *JSON) stepRunEventSetParam { +// Set the optional value of TickerID dynamically +func (r stepRunQueryTickerIDString) SetOptional(value *String) stepRunSetParam { if value == nil { - var v *JSON - return stepRunEventSetParam{ + var v *string + return stepRunSetParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Value: v, }, } @@ -137227,11 +138018,11 @@ func (r stepRunEventQueryDataJson) SetOptional(value *JSON) stepRunEventSetParam return r.Set(*value) } -func (r stepRunEventQueryDataJson) Equals(value JSON) stepRunEventWithPrismaDataEqualsParam { +func (r stepRunQueryTickerIDString) Equals(value string) stepRunWithPrismaTickerIDEqualsParam { - return stepRunEventWithPrismaDataEqualsParam{ + return stepRunWithPrismaTickerIDEqualsParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { Name: "equals", @@ -137242,17 +138033,17 @@ func (r stepRunEventQueryDataJson) Equals(value JSON) stepRunEventWithPrismaData } } -func (r stepRunEventQueryDataJson) EqualsIfPresent(value *JSON) stepRunEventWithPrismaDataEqualsParam { +func (r stepRunQueryTickerIDString) EqualsIfPresent(value *string) stepRunWithPrismaTickerIDEqualsParam { if value == nil { - return stepRunEventWithPrismaDataEqualsParam{} + return stepRunWithPrismaTickerIDEqualsParam{} } return r.Equals(*value) } -func (r stepRunEventQueryDataJson) EqualsOptional(value *JSON) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) EqualsOptional(value *String) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { Name: "equals", @@ -137263,11 +138054,11 @@ func (r stepRunEventQueryDataJson) EqualsOptional(value *JSON) stepRunEventDefau } } -func (r stepRunEventQueryDataJson) IsNull() stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunEventDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { Name: "equals", @@ -137278,31 +138069,31 @@ func (r stepRunEventQueryDataJson) IsNull() stepRunEventDefaultParam { } } -func (r stepRunEventQueryDataJson) Order(direction SortOrder) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Value: direction, }, } } -func (r stepRunEventQueryDataJson) Cursor(cursor JSON) stepRunEventCursorParam { - return stepRunEventCursorParam{ +func (r stepRunQueryTickerIDString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Value: cursor, }, } } -func (r stepRunEventQueryDataJson) Path(value []string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -137310,20 +138101,20 @@ func (r stepRunEventQueryDataJson) Path(value []string) stepRunEventDefaultParam } } -func (r stepRunEventQueryDataJson) PathIfPresent(value []string) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) InIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r stepRunEventQueryDataJson) StringContains(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -137331,20 +138122,20 @@ func (r stepRunEventQueryDataJson) StringContains(value string) stepRunEventDefa } } -func (r stepRunEventQueryDataJson) StringContainsIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) NotInIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r stepRunEventQueryDataJson) StringStartsWith(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -137352,20 +138143,20 @@ func (r stepRunEventQueryDataJson) StringStartsWith(value string) stepRunEventDe } } -func (r stepRunEventQueryDataJson) StringStartsWithIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r stepRunEventQueryDataJson) StringEndsWith(value string) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -137373,20 +138164,20 @@ func (r stepRunEventQueryDataJson) StringEndsWith(value string) stepRunEventDefa } } -func (r stepRunEventQueryDataJson) StringEndsWithIfPresent(value *string) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r stepRunEventQueryDataJson) ArrayContains(value JSON) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -137394,20 +138185,20 @@ func (r stepRunEventQueryDataJson) ArrayContains(value JSON) stepRunEventDefault } } -func (r stepRunEventQueryDataJson) ArrayContainsIfPresent(value *JSON) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r stepRunEventQueryDataJson) ArrayStartsWith(value JSON) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -137415,20 +138206,20 @@ func (r stepRunEventQueryDataJson) ArrayStartsWith(value JSON) stepRunEventDefau } } -func (r stepRunEventQueryDataJson) ArrayStartsWithIfPresent(value *JSON) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r stepRunEventQueryDataJson) ArrayEndsWith(value JSON) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "contains", Value: value, }, }, @@ -137436,20 +138227,20 @@ func (r stepRunEventQueryDataJson) ArrayEndsWith(value JSON) stepRunEventDefault } } -func (r stepRunEventQueryDataJson) ArrayEndsWithIfPresent(value *JSON) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Contains(*value) } -func (r stepRunEventQueryDataJson) Lt(value JSON) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -137457,20 +138248,20 @@ func (r stepRunEventQueryDataJson) Lt(value JSON) stepRunEventDefaultParam { } } -func (r stepRunEventQueryDataJson) LtIfPresent(value *JSON) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) StartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.StartsWith(*value) } -func (r stepRunEventQueryDataJson) Lte(value JSON) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "lte", + Name: "endsWith", Value: value, }, }, @@ -137478,20 +138269,20 @@ func (r stepRunEventQueryDataJson) Lte(value JSON) stepRunEventDefaultParam { } } -func (r stepRunEventQueryDataJson) LteIfPresent(value *JSON) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) EndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.EndsWith(*value) } -func (r stepRunEventQueryDataJson) Gt(value JSON) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "gt", + Name: "mode", Value: value, }, }, @@ -137499,20 +138290,20 @@ func (r stepRunEventQueryDataJson) Gt(value JSON) stepRunEventDefaultParam { } } -func (r stepRunEventQueryDataJson) GtIfPresent(value *JSON) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Gt(*value) + return r.Mode(*value) } -func (r stepRunEventQueryDataJson) Gte(value JSON) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +func (r stepRunQueryTickerIDString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -137520,20 +138311,22 @@ func (r stepRunEventQueryDataJson) Gte(value JSON) stepRunEventDefaultParam { } } -func (r stepRunEventQueryDataJson) GteIfPresent(value *JSON) stepRunEventDefaultParam { +func (r stepRunQueryTickerIDString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Gte(*value) + return r.Not(*value) } -func (r stepRunEventQueryDataJson) Not(value JSONNullValueFilter) stepRunEventDefaultParam { - return stepRunEventDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r stepRunQueryTickerIDString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "data", + Name: "tickerId", Fields: []builder.Field{ { - Name: "not", + Name: "starts_with", Value: value, }, }, @@ -137541,181 +138334,71 @@ func (r stepRunEventQueryDataJson) Not(value JSONNullValueFilter) stepRunEventDe } } -func (r stepRunEventQueryDataJson) NotIfPresent(value *JSONNullValueFilter) stepRunEventDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunQueryTickerIDString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunEventDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) -} - -func (r stepRunEventQueryDataJson) Field() stepRunEventPrismaFields { - return stepRunEventFieldData -} - -// StepRunResultArchive acts as a namespaces to access query methods for the StepRunResultArchive model -var StepRunResultArchive = stepRunResultArchiveQuery{} - -// stepRunResultArchiveQuery exposes query functions for the stepRunResultArchive model -type stepRunResultArchiveQuery struct { - - // ID - // - // @required - ID stepRunResultArchiveQueryIDString - - // CreatedAt - // - // @required - CreatedAt stepRunResultArchiveQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt stepRunResultArchiveQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt stepRunResultArchiveQueryDeletedAtDateTime - - StepRun stepRunResultArchiveQueryStepRunRelations - - // StepRunID - // - // @required - StepRunID stepRunResultArchiveQueryStepRunIDString - - // Order - // - // @required - Order stepRunResultArchiveQueryOrderBigInt - - // Input - // - // @optional - Input stepRunResultArchiveQueryInputJson - - // Output - // - // @optional - Output stepRunResultArchiveQueryOutputJson - - // Error - // - // @optional - Error stepRunResultArchiveQueryErrorString - - // StartedAt - // - // @optional - StartedAt stepRunResultArchiveQueryStartedAtDateTime - - // FinishedAt - // - // @optional - FinishedAt stepRunResultArchiveQueryFinishedAtDateTime - - // TimeoutAt - // - // @optional - TimeoutAt stepRunResultArchiveQueryTimeoutAtDateTime - - // CancelledAt - // - // @optional - CancelledAt stepRunResultArchiveQueryCancelledAtDateTime - - // CancelledReason - // - // @optional - CancelledReason stepRunResultArchiveQueryCancelledReasonString - - // CancelledError - // - // @optional - CancelledError stepRunResultArchiveQueryCancelledErrorString + return r.HasPrefix(*value) } -func (stepRunResultArchiveQuery) Not(params ...StepRunResultArchiveWhereParam) stepRunResultArchiveDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use EndsWith instead. - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTickerIDString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "tickerId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, }, } } -func (stepRunResultArchiveQuery) Or(params ...StepRunResultArchiveWhereParam) stepRunResultArchiveDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunQueryTickerIDString) HasSuffixIfPresent(value *string) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.HasSuffix(*value) } -func (stepRunResultArchiveQuery) And(params ...StepRunResultArchiveWhereParam) stepRunResultArchiveDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } +func (r stepRunQueryTickerIDString) Field() stepRunPrismaFields { + return stepRunFieldTickerID } // base struct -type stepRunResultArchiveQueryIDString struct{} +type stepRunQueryStatusStepRunStatus struct{} -// Set the required value of ID -func (r stepRunResultArchiveQueryIDString) Set(value string) stepRunResultArchiveSetParam { +// Set the required value of Status +func (r stepRunQueryStatusStepRunStatus) Set(value StepRunStatus) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "id", + Name: "status", Value: value, }, } } -// Set the optional value of ID dynamically -func (r stepRunResultArchiveQueryIDString) SetIfPresent(value *String) stepRunResultArchiveSetParam { +// Set the optional value of Status dynamically +func (r stepRunQueryStatusStepRunStatus) SetIfPresent(value *StepRunStatus) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -func (r stepRunResultArchiveQueryIDString) Equals(value string) stepRunResultArchiveWithPrismaIDEqualsUniqueParam { +func (r stepRunQueryStatusStepRunStatus) Equals(value StepRunStatus) stepRunWithPrismaStatusEqualsParam { - return stepRunResultArchiveWithPrismaIDEqualsUniqueParam{ + return stepRunWithPrismaStatusEqualsParam{ data: builder.Field{ - Name: "id", + Name: "status", Fields: []builder.Field{ { Name: "equals", @@ -137726,35 +138409,35 @@ func (r stepRunResultArchiveQueryIDString) Equals(value string) stepRunResultArc } } -func (r stepRunResultArchiveQueryIDString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaIDEqualsUniqueParam { +func (r stepRunQueryStatusStepRunStatus) EqualsIfPresent(value *StepRunStatus) stepRunWithPrismaStatusEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaIDEqualsUniqueParam{} + return stepRunWithPrismaStatusEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryIDString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStatusStepRunStatus) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "status", Value: direction, }, } } -func (r stepRunResultArchiveQueryIDString) Cursor(cursor string) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryStatusStepRunStatus) Cursor(cursor StepRunStatus) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "id", + Name: "status", Value: cursor, }, } } -func (r stepRunResultArchiveQueryIDString) In(value []string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryStatusStepRunStatus) In(value []StepRunStatus) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "status", Fields: []builder.Field{ { Name: "in", @@ -137765,17 +138448,17 @@ func (r stepRunResultArchiveQueryIDString) In(value []string) stepRunResultArchi } } -func (r stepRunResultArchiveQueryIDString) InIfPresent(value []string) stepRunResultArchiveParamUnique { +func (r stepRunQueryStatusStepRunStatus) InIfPresent(value []StepRunStatus) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveParamUnique{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunResultArchiveQueryIDString) NotIn(value []string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryStatusStepRunStatus) NotIn(value []StepRunStatus) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "status", Fields: []builder.Field{ { Name: "notIn", @@ -137786,20 +138469,20 @@ func (r stepRunResultArchiveQueryIDString) NotIn(value []string) stepRunResultAr } } -func (r stepRunResultArchiveQueryIDString) NotInIfPresent(value []string) stepRunResultArchiveParamUnique { +func (r stepRunQueryStatusStepRunStatus) NotInIfPresent(value []StepRunStatus) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveParamUnique{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunResultArchiveQueryIDString) Lt(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryStatusStepRunStatus) Not(value StepRunStatus) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "status", Fields: []builder.Field{ { - Name: "lt", + Name: "not", Value: value, }, }, @@ -137807,41 +138490,65 @@ func (r stepRunResultArchiveQueryIDString) Lt(value string) stepRunResultArchive } } -func (r stepRunResultArchiveQueryIDString) LtIfPresent(value *string) stepRunResultArchiveParamUnique { +func (r stepRunQueryStatusStepRunStatus) NotIfPresent(value *StepRunStatus) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveParamUnique{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.Not(*value) } -func (r stepRunResultArchiveQueryIDString) Lte(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryStatusStepRunStatus) Field() stepRunPrismaFields { + return stepRunFieldStatus +} + +// base struct +type stepRunQueryInputJson struct{} + +// Set the optional value of Input +func (r stepRunQueryInputJson) Set(value JSON) stepRunSetParam { + + return stepRunSetParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, + Name: "input", + Value: value, }, } + } -func (r stepRunResultArchiveQueryIDString) LteIfPresent(value *string) stepRunResultArchiveParamUnique { +// Set the optional value of Input dynamically +func (r stepRunQueryInputJson) SetIfPresent(value *JSON) stepRunSetParam { if value == nil { - return stepRunResultArchiveParamUnique{} + return stepRunSetParam{} } - return r.Lte(*value) + + return r.Set(*value) } -func (r stepRunResultArchiveQueryIDString) Gt(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +// Set the optional value of Input dynamically +func (r stepRunQueryInputJson) SetOptional(value *JSON) stepRunSetParam { + if value == nil { + + var v *JSON + return stepRunSetParam{ + data: builder.Field{ + Name: "input", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepRunQueryInputJson) Equals(value JSON) stepRunWithPrismaInputEqualsParam { + + return stepRunWithPrismaInputEqualsParam{ data: builder.Field{ - Name: "id", + Name: "input", Fields: []builder.Field{ { - Name: "gt", + Name: "equals", Value: value, }, }, @@ -137849,20 +138556,20 @@ func (r stepRunResultArchiveQueryIDString) Gt(value string) stepRunResultArchive } } -func (r stepRunResultArchiveQueryIDString) GtIfPresent(value *string) stepRunResultArchiveParamUnique { +func (r stepRunQueryInputJson) EqualsIfPresent(value *JSON) stepRunWithPrismaInputEqualsParam { if value == nil { - return stepRunResultArchiveParamUnique{} + return stepRunWithPrismaInputEqualsParam{} } - return r.Gt(*value) + return r.Equals(*value) } -func (r stepRunResultArchiveQueryIDString) Gte(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryInputJson) EqualsOptional(value *JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "input", Fields: []builder.Field{ { - Name: "gte", + Name: "equals", Value: value, }, }, @@ -137870,41 +138577,46 @@ func (r stepRunResultArchiveQueryIDString) Gte(value string) stepRunResultArchiv } } -func (r stepRunResultArchiveQueryIDString) GteIfPresent(value *string) stepRunResultArchiveParamUnique { - if value == nil { - return stepRunResultArchiveParamUnique{} - } - return r.Gte(*value) -} - -func (r stepRunResultArchiveQueryIDString) Contains(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryInputJson) IsNull() stepRunDefaultParam { + var str *string = nil + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "input", Fields: []builder.Field{ { - Name: "contains", - Value: value, + Name: "equals", + Value: str, }, }, }, } } -func (r stepRunResultArchiveQueryIDString) ContainsIfPresent(value *string) stepRunResultArchiveParamUnique { - if value == nil { - return stepRunResultArchiveParamUnique{} +func (r stepRunQueryInputJson) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "input", + Value: direction, + }, } - return r.Contains(*value) } -func (r stepRunResultArchiveQueryIDString) StartsWith(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryInputJson) Cursor(cursor JSON) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "id", + Name: "input", + Value: cursor, + }, + } +} + +func (r stepRunQueryInputJson) Path(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "input", Fields: []builder.Field{ { - Name: "startsWith", + Name: "path", Value: value, }, }, @@ -137912,62 +138624,20 @@ func (r stepRunResultArchiveQueryIDString) StartsWith(value string) stepRunResul } } -func (r stepRunResultArchiveQueryIDString) StartsWithIfPresent(value *string) stepRunResultArchiveParamUnique { +func (r stepRunQueryInputJson) PathIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveParamUnique{} + return stepRunDefaultParam{} } - return r.StartsWith(*value) -} - -func (r stepRunResultArchiveQueryIDString) EndsWith(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ - data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "endsWith", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryIDString) EndsWithIfPresent(value *string) stepRunResultArchiveParamUnique { - if value == nil { - return stepRunResultArchiveParamUnique{} - } - return r.EndsWith(*value) -} - -func (r stepRunResultArchiveQueryIDString) Mode(value QueryMode) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ - data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryIDString) ModeIfPresent(value *QueryMode) stepRunResultArchiveParamUnique { - if value == nil { - return stepRunResultArchiveParamUnique{} - } - return r.Mode(*value) + return r.Path(value) } -func (r stepRunResultArchiveQueryIDString) Not(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryInputJson) StringContains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "input", Fields: []builder.Field{ { - Name: "not", + Name: "string_contains", Value: value, }, }, @@ -137975,22 +138645,20 @@ func (r stepRunResultArchiveQueryIDString) Not(value string) stepRunResultArchiv } } -func (r stepRunResultArchiveQueryIDString) NotIfPresent(value *string) stepRunResultArchiveParamUnique { +func (r stepRunQueryInputJson) StringContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveParamUnique{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.StringContains(*value) } -// deprecated: Use StartsWith instead. - -func (r stepRunResultArchiveQueryIDString) HasPrefix(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryInputJson) StringStartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "input", Fields: []builder.Field{ { - Name: "starts_with", + Name: "string_starts_with", Value: value, }, }, @@ -137998,23 +138666,20 @@ func (r stepRunResultArchiveQueryIDString) HasPrefix(value string) stepRunResult } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunResultArchiveQueryIDString) HasPrefixIfPresent(value *string) stepRunResultArchiveParamUnique { +func (r stepRunQueryInputJson) StringStartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveParamUnique{} + return stepRunDefaultParam{} } - return r.HasPrefix(*value) + return r.StringStartsWith(*value) } -// deprecated: Use EndsWith instead. - -func (r stepRunResultArchiveQueryIDString) HasSuffix(value string) stepRunResultArchiveParamUnique { - return stepRunResultArchiveParamUnique{ +func (r stepRunQueryInputJson) StringEndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "input", Fields: []builder.Field{ { - Name: "ends_with", + Name: "string_ends_with", Value: value, }, }, @@ -138022,50 +138687,20 @@ func (r stepRunResultArchiveQueryIDString) HasSuffix(value string) stepRunResult } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunResultArchiveQueryIDString) HasSuffixIfPresent(value *string) stepRunResultArchiveParamUnique { - if value == nil { - return stepRunResultArchiveParamUnique{} - } - return r.HasSuffix(*value) -} - -func (r stepRunResultArchiveQueryIDString) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldID -} - -// base struct -type stepRunResultArchiveQueryCreatedAtDateTime struct{} - -// Set the required value of CreatedAt -func (r stepRunResultArchiveQueryCreatedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - - return stepRunResultArchiveSetParam{ - data: builder.Field{ - Name: "createdAt", - Value: value, - }, - } - -} - -// Set the optional value of CreatedAt dynamically -func (r stepRunResultArchiveQueryCreatedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryInputJson) StringEndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunDefaultParam{} } - - return r.Set(*value) + return r.StringEndsWith(*value) } -func (r stepRunResultArchiveQueryCreatedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaCreatedAtEqualsParam { - - return stepRunResultArchiveWithPrismaCreatedAtEqualsParam{ +func (r stepRunQueryInputJson) ArrayContains(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "input", Fields: []builder.Field{ { - Name: "equals", + Name: "array_contains", Value: value, }, }, @@ -138073,38 +138708,20 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) Equals(value DateTime) stepR } } -func (r stepRunResultArchiveQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaCreatedAtEqualsParam { +func (r stepRunQueryInputJson) ArrayContainsIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveWithPrismaCreatedAtEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepRunResultArchiveQueryCreatedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Value: direction, - }, - } -} - -func (r stepRunResultArchiveQueryCreatedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ - data: builder.Field{ - Name: "createdAt", - Value: cursor, - }, + return stepRunDefaultParam{} } + return r.ArrayContains(*value) } -func (r stepRunResultArchiveQueryCreatedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputJson) ArrayStartsWith(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "input", Fields: []builder.Field{ { - Name: "in", + Name: "array_starts_with", Value: value, }, }, @@ -138112,20 +138729,20 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) In(value []DateTime) stepRun } } -func (r stepRunResultArchiveQueryCreatedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputJson) ArrayStartsWithIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.In(value) + return r.ArrayStartsWith(*value) } -func (r stepRunResultArchiveQueryCreatedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputJson) ArrayEndsWith(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "input", Fields: []builder.Field{ { - Name: "notIn", + Name: "array_ends_with", Value: value, }, }, @@ -138133,17 +138750,17 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) NotIn(value []DateTime) step } } -func (r stepRunResultArchiveQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputJson) ArrayEndsWithIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.NotIn(value) + return r.ArrayEndsWith(*value) } -func (r stepRunResultArchiveQueryCreatedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputJson) Lt(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "input", Fields: []builder.Field{ { Name: "lt", @@ -138154,17 +138771,17 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) Lt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryCreatedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputJson) LtIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunResultArchiveQueryCreatedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputJson) Lte(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "input", Fields: []builder.Field{ { Name: "lte", @@ -138175,17 +138792,17 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) Lte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryCreatedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputJson) LteIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunResultArchiveQueryCreatedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputJson) Gt(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "input", Fields: []builder.Field{ { Name: "gt", @@ -138196,17 +138813,17 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) Gt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryCreatedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputJson) GtIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunResultArchiveQueryCreatedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputJson) Gte(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "input", Fields: []builder.Field{ { Name: "gte", @@ -138217,17 +138834,17 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) Gte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryCreatedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputJson) GteIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunResultArchiveQueryCreatedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputJson) Not(value JSONNullValueFilter) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "input", Fields: []builder.Field{ { Name: "not", @@ -138238,70 +138855,65 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) Not(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryCreatedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputJson) NotIfPresent(value *JSONNullValueFilter) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Not(*value) } -// deprecated: Use Lt instead. +func (r stepRunQueryInputJson) Field() stepRunPrismaFields { + return stepRunFieldInput +} -func (r stepRunResultArchiveQueryCreatedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// base struct +type stepRunQueryOutputJson struct{} + +// Set the optional value of Output +func (r stepRunQueryOutputJson) Set(value JSON) stepRunSetParam { + + return stepRunSetParam{ data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, + Name: "output", + Value: value, }, } + } -// deprecated: Use LtIfPresent instead. -func (r stepRunResultArchiveQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +// Set the optional value of Output dynamically +func (r stepRunQueryOutputJson) SetIfPresent(value *JSON) stepRunSetParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunSetParam{} } - return r.Before(*value) + + return r.Set(*value) } -// deprecated: Use Gt instead. +// Set the optional value of Output dynamically +func (r stepRunQueryOutputJson) SetOptional(value *JSON) stepRunSetParam { + if value == nil { -func (r stepRunResultArchiveQueryCreatedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "createdAt", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, + var v *JSON + return stepRunSetParam{ + data: builder.Field{ + Name: "output", + Value: v, }, - }, + } } -} -// deprecated: Use GtIfPresent instead. -func (r stepRunResultArchiveQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.After(*value) + return r.Set(*value) } -// deprecated: Use Lte instead. +func (r stepRunQueryOutputJson) Equals(value JSON) stepRunWithPrismaOutputEqualsParam { -func (r stepRunResultArchiveQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ + return stepRunWithPrismaOutputEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "output", Fields: []builder.Field{ { - Name: "lte", + Name: "equals", Value: value, }, }, @@ -138309,23 +138921,20 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) BeforeEquals(value DateTime) } } -// deprecated: Use LteIfPresent instead. -func (r stepRunResultArchiveQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) EqualsIfPresent(value *JSON) stepRunWithPrismaOutputEqualsParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunWithPrismaOutputEqualsParam{} } - return r.BeforeEquals(*value) + return r.Equals(*value) } -// deprecated: Use Gte instead. - -func (r stepRunResultArchiveQueryCreatedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) EqualsOptional(value *JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "output", Fields: []builder.Field{ { - Name: "gte", + Name: "equals", Value: value, }, }, @@ -138333,50 +138942,46 @@ func (r stepRunResultArchiveQueryCreatedAtDateTime) AfterEquals(value DateTime) } } -// deprecated: Use GteIfPresent instead. -func (r stepRunResultArchiveQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} +func (r stepRunQueryOutputJson) IsNull() stepRunDefaultParam { + var str *string = nil + return stepRunDefaultParam{ + data: builder.Field{ + Name: "output", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.AfterEquals(*value) -} - -func (r stepRunResultArchiveQueryCreatedAtDateTime) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldCreatedAt } -// base struct -type stepRunResultArchiveQueryUpdatedAtDateTime struct{} - -// Set the required value of UpdatedAt -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - - return stepRunResultArchiveSetParam{ +func (r stepRunQueryOutputJson) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", - Value: value, + Name: "output", + Value: direction, }, } - } -// Set the optional value of UpdatedAt dynamically -func (r stepRunResultArchiveQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { - if value == nil { - return stepRunResultArchiveSetParam{} +func (r stepRunQueryOutputJson) Cursor(cursor JSON) stepRunCursorParam { + return stepRunCursorParam{ + data: builder.Field{ + Name: "output", + Value: cursor, + }, } - - return r.Set(*value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaUpdatedAtEqualsParam { - - return stepRunResultArchiveWithPrismaUpdatedAtEqualsParam{ +func (r stepRunQueryOutputJson) Path(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "equals", + Name: "path", Value: value, }, }, @@ -138384,38 +138989,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) Equals(value DateTime) stepR } } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaUpdatedAtEqualsParam { +func (r stepRunQueryOutputJson) PathIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveWithPrismaUpdatedAtEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "updatedAt", - Value: direction, - }, - } -} - -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ - data: builder.Field{ - Name: "updatedAt", - Value: cursor, - }, + return stepRunDefaultParam{} } + return r.Path(value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) StringContains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "in", + Name: "string_contains", Value: value, }, }, @@ -138423,20 +139010,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) In(value []DateTime) stepRun } } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) StringContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.In(value) + return r.StringContains(*value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) StringStartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "notIn", + Name: "string_starts_with", Value: value, }, }, @@ -138444,20 +139031,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) NotIn(value []DateTime) step } } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) StringStartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.NotIn(value) + return r.StringStartsWith(*value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) StringEndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "lt", + Name: "string_ends_with", Value: value, }, }, @@ -138465,20 +139052,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) Lt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) StringEndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.StringEndsWith(*value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) ArrayContains(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "lte", + Name: "array_contains", Value: value, }, }, @@ -138486,20 +139073,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) Lte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) ArrayContainsIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.ArrayContains(*value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) ArrayStartsWith(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "gt", + Name: "array_starts_with", Value: value, }, }, @@ -138507,20 +139094,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) Gt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) ArrayStartsWithIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Gt(*value) + return r.ArrayStartsWith(*value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) ArrayEndsWith(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "gte", + Name: "array_ends_with", Value: value, }, }, @@ -138528,20 +139115,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) Gte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) ArrayEndsWithIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Gte(*value) + return r.ArrayEndsWith(*value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) Lt(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "not", + Name: "lt", Value: value, }, }, @@ -138549,22 +139136,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) Not(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) LtIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.Lt(*value) } -// deprecated: Use Lt instead. - -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) Lte(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "lt", + Name: "lte", Value: value, }, }, @@ -138572,20 +139157,17 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) Before(value DateTime) stepR } } -// deprecated: Use LtIfPresent instead. -func (r stepRunResultArchiveQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) LteIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Before(*value) + return r.Lte(*value) } -// deprecated: Use Gt instead. - -func (r stepRunResultArchiveQueryUpdatedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) Gt(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { Name: "gt", @@ -138596,23 +139178,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) After(value DateTime) stepRu } } -// deprecated: Use GtIfPresent instead. -func (r stepRunResultArchiveQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) GtIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.After(*value) + return r.Gt(*value) } -// deprecated: Use Lte instead. - -func (r stepRunResultArchiveQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) Gte(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "lte", + Name: "gte", Value: value, }, }, @@ -138620,23 +139199,20 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) BeforeEquals(value DateTime) } } -// deprecated: Use LteIfPresent instead. -func (r stepRunResultArchiveQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) GteIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.Gte(*value) } -// deprecated: Use Gte instead. - -func (r stepRunResultArchiveQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryOutputJson) Not(value JSONNullValueFilter) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "output", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -138644,50 +139220,49 @@ func (r stepRunResultArchiveQueryUpdatedAtDateTime) AfterEquals(value DateTime) } } -// deprecated: Use GteIfPresent instead. -func (r stepRunResultArchiveQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryOutputJson) NotIfPresent(value *JSONNullValueFilter) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.AfterEquals(*value) + return r.Not(*value) } -func (r stepRunResultArchiveQueryUpdatedAtDateTime) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldUpdatedAt +func (r stepRunQueryOutputJson) Field() stepRunPrismaFields { + return stepRunFieldOutput } // base struct -type stepRunResultArchiveQueryDeletedAtDateTime struct{} +type stepRunQueryInputSchemaJson struct{} -// Set the optional value of DeletedAt -func (r stepRunResultArchiveQueryDeletedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { +// Set the optional value of InputSchema +func (r stepRunQueryInputSchemaJson) Set(value JSON) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Value: value, }, } } -// Set the optional value of DeletedAt dynamically -func (r stepRunResultArchiveQueryDeletedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { +// Set the optional value of InputSchema dynamically +func (r stepRunQueryInputSchemaJson) SetIfPresent(value *JSON) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -// Set the optional value of DeletedAt dynamically -func (r stepRunResultArchiveQueryDeletedAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { +// Set the optional value of InputSchema dynamically +func (r stepRunQueryInputSchemaJson) SetOptional(value *JSON) stepRunSetParam { if value == nil { - var v *DateTime - return stepRunResultArchiveSetParam{ + var v *JSON + return stepRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Value: v, }, } @@ -138696,11 +139271,11 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) SetOptional(value *DateTime) return r.Set(*value) } -func (r stepRunResultArchiveQueryDeletedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaDeletedAtEqualsParam { +func (r stepRunQueryInputSchemaJson) Equals(value JSON) stepRunWithPrismaInputSchemaEqualsParam { - return stepRunResultArchiveWithPrismaDeletedAtEqualsParam{ + return stepRunWithPrismaInputSchemaEqualsParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { Name: "equals", @@ -138711,17 +139286,17 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) Equals(value DateTime) stepR } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaDeletedAtEqualsParam { +func (r stepRunQueryInputSchemaJson) EqualsIfPresent(value *JSON) stepRunWithPrismaInputSchemaEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaDeletedAtEqualsParam{} + return stepRunWithPrismaInputSchemaEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryDeletedAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) EqualsOptional(value *JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { Name: "equals", @@ -138732,11 +139307,11 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) EqualsOptional(value *DateTi } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) IsNull() stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunResultArchiveDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { Name: "equals", @@ -138747,31 +139322,31 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) IsNull() stepRunResultArchiv } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Value: direction, }, } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryInputSchemaJson) Cursor(cursor JSON) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Value: cursor, }, } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) Path(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "in", + Name: "path", Value: value, }, }, @@ -138779,20 +139354,20 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) In(value []DateTime) stepRun } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) PathIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.In(value) + return r.Path(value) } -func (r stepRunResultArchiveQueryDeletedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) StringContains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "notIn", + Name: "string_contains", Value: value, }, }, @@ -138800,20 +139375,20 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) NotIn(value []DateTime) step } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) StringContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.NotIn(value) + return r.StringContains(*value) } -func (r stepRunResultArchiveQueryDeletedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) StringStartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "lt", + Name: "string_starts_with", Value: value, }, }, @@ -138821,20 +139396,20 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) Lt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) StringStartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.StringStartsWith(*value) } -func (r stepRunResultArchiveQueryDeletedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) StringEndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "lte", + Name: "string_ends_with", Value: value, }, }, @@ -138842,20 +139417,20 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) Lte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) StringEndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.StringEndsWith(*value) } -func (r stepRunResultArchiveQueryDeletedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) ArrayContains(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "gt", + Name: "array_contains", Value: value, }, }, @@ -138863,20 +139438,20 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) Gt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) ArrayContainsIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Gt(*value) + return r.ArrayContains(*value) } -func (r stepRunResultArchiveQueryDeletedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) ArrayStartsWith(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "gte", + Name: "array_starts_with", Value: value, }, }, @@ -138884,20 +139459,20 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) Gte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) ArrayStartsWithIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Gte(*value) + return r.ArrayStartsWith(*value) } -func (r stepRunResultArchiveQueryDeletedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) ArrayEndsWith(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "not", + Name: "array_ends_with", Value: value, }, }, @@ -138905,19 +139480,17 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) Not(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryDeletedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) ArrayEndsWithIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.ArrayEndsWith(*value) } -// deprecated: Use Lt instead. - -func (r stepRunResultArchiveQueryDeletedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) Lt(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { Name: "lt", @@ -138928,23 +139501,20 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) Before(value DateTime) stepR } } -// deprecated: Use LtIfPresent instead. -func (r stepRunResultArchiveQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) LtIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Before(*value) + return r.Lt(*value) } -// deprecated: Use Gt instead. - -func (r stepRunResultArchiveQueryDeletedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) Lte(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -138952,23 +139522,20 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) After(value DateTime) stepRu } } -// deprecated: Use GtIfPresent instead. -func (r stepRunResultArchiveQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) LteIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.After(*value) + return r.Lte(*value) } -// deprecated: Use Lte instead. - -func (r stepRunResultArchiveQueryDeletedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) Gt(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -138976,20 +139543,17 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) BeforeEquals(value DateTime) } } -// deprecated: Use LteIfPresent instead. -func (r stepRunResultArchiveQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) GtIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.Gt(*value) } -// deprecated: Use Gte instead. - -func (r stepRunResultArchiveQueryDeletedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) Gte(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "inputSchema", Fields: []builder.Field{ { Name: "gte", @@ -139000,135 +139564,104 @@ func (r stepRunResultArchiveQueryDeletedAtDateTime) AfterEquals(value DateTime) } } -// deprecated: Use GteIfPresent instead. -func (r stepRunResultArchiveQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryInputSchemaJson) GteIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r stepRunResultArchiveQueryDeletedAtDateTime) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldDeletedAt + return r.Gte(*value) } -// base struct -type stepRunResultArchiveQueryStepRunStepRun struct{} - -type stepRunResultArchiveQueryStepRunRelations struct{} - -// StepRunResultArchive -> StepRun -// -// @relation -// @required -func (stepRunResultArchiveQueryStepRunRelations) Where( - params ...StepRunWhereParam, -) stepRunResultArchiveDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryInputSchemaJson) Not(value JSONNullValueFilter) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRun", + Name: "inputSchema", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "not", + Value: value, }, }, }, } } -func (stepRunResultArchiveQueryStepRunRelations) Fetch() stepRunResultArchiveToStepRunFindUnique { - var v stepRunResultArchiveToStepRunFindUnique - - v.query.Operation = "query" - v.query.Method = "stepRun" - v.query.Outputs = stepRunOutput - - return v +func (r stepRunQueryInputSchemaJson) NotIfPresent(value *JSONNullValueFilter) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.Not(*value) } -func (r stepRunResultArchiveQueryStepRunRelations) Link( - params StepRunWhereParam, -) stepRunResultArchiveWithPrismaStepRunSetParam { - var fields []builder.Field +func (r stepRunQueryInputSchemaJson) Field() stepRunPrismaFields { + return stepRunFieldInputSchema +} - f := params.field() - if f.Fields == nil && f.Value == nil { - return stepRunResultArchiveWithPrismaStepRunSetParam{} - } +// base struct +type stepRunQueryRequeueAfterDateTime struct{} - fields = append(fields, f) +// Set the optional value of RequeueAfter +func (r stepRunQueryRequeueAfterDateTime) Set(value DateTime) stepRunSetParam { - return stepRunResultArchiveWithPrismaStepRunSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "stepRun", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, + Name: "requeueAfter", + Value: value, }, } -} -func (r stepRunResultArchiveQueryStepRunRelations) Unlink() stepRunResultArchiveWithPrismaStepRunSetParam { - var v stepRunResultArchiveWithPrismaStepRunSetParam +} - v = stepRunResultArchiveWithPrismaStepRunSetParam{ - data: builder.Field{ - Name: "stepRun", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, +// Set the optional value of RequeueAfter dynamically +func (r stepRunQueryRequeueAfterDateTime) SetIfPresent(value *DateTime) stepRunSetParam { + if value == nil { + return stepRunSetParam{} } - return v + return r.Set(*value) } -func (r stepRunResultArchiveQueryStepRunStepRun) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldStepRun -} +// Set the optional value of RequeueAfter dynamically +func (r stepRunQueryRequeueAfterDateTime) SetOptional(value *DateTime) stepRunSetParam { + if value == nil { -// base struct -type stepRunResultArchiveQueryStepRunIDString struct{} + var v *DateTime + return stepRunSetParam{ + data: builder.Field{ + Name: "requeueAfter", + Value: v, + }, + } + } -// Set the required value of StepRunID -func (r stepRunResultArchiveQueryStepRunIDString) Set(value string) stepRunResultArchiveSetParam { + return r.Set(*value) +} - return stepRunResultArchiveSetParam{ +func (r stepRunQueryRequeueAfterDateTime) Equals(value DateTime) stepRunWithPrismaRequeueAfterEqualsParam { + + return stepRunWithPrismaRequeueAfterEqualsParam{ data: builder.Field{ - Name: "stepRunId", - Value: value, + Name: "requeueAfter", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } - } -// Set the optional value of StepRunID dynamically -func (r stepRunResultArchiveQueryStepRunIDString) SetIfPresent(value *String) stepRunResultArchiveSetParam { +func (r stepRunQueryRequeueAfterDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaRequeueAfterEqualsParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunWithPrismaRequeueAfterEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) Equals(value string) stepRunResultArchiveWithPrismaStepRunIDEqualsParam { - - return stepRunResultArchiveWithPrismaStepRunIDEqualsParam{ +func (r stepRunQueryRequeueAfterDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "equals", @@ -139139,35 +139672,43 @@ func (r stepRunResultArchiveQueryStepRunIDString) Equals(value string) stepRunRe } } -func (r stepRunResultArchiveQueryStepRunIDString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaStepRunIDEqualsParam { - if value == nil { - return stepRunResultArchiveWithPrismaStepRunIDEqualsParam{} +func (r stepRunQueryRequeueAfterDateTime) IsNull() stepRunDefaultParam { + var str *string = nil + return stepRunDefaultParam{ + data: builder.Field{ + Name: "requeueAfter", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Value: direction, }, } } -func (r stepRunResultArchiveQueryStepRunIDString) Cursor(cursor string) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryRequeueAfterDateTime) Cursor(cursor DateTime) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Value: cursor, }, } } -func (r stepRunResultArchiveQueryStepRunIDString) In(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) In(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "in", @@ -139178,17 +139719,17 @@ func (r stepRunResultArchiveQueryStepRunIDString) In(value []string) stepRunResu } } -func (r stepRunResultArchiveQueryStepRunIDString) InIfPresent(value []string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRequeueAfterDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunResultArchiveQueryStepRunIDString) NotIn(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) NotIn(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "notIn", @@ -139199,17 +139740,17 @@ func (r stepRunResultArchiveQueryStepRunIDString) NotIn(value []string) stepRunR } } -func (r stepRunResultArchiveQueryStepRunIDString) NotInIfPresent(value []string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRequeueAfterDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunResultArchiveQueryStepRunIDString) Lt(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) Lt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "lt", @@ -139220,17 +139761,17 @@ func (r stepRunResultArchiveQueryStepRunIDString) Lt(value string) stepRunResult } } -func (r stepRunResultArchiveQueryStepRunIDString) LtIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRequeueAfterDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) Lte(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) Lte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "lte", @@ -139241,17 +139782,17 @@ func (r stepRunResultArchiveQueryStepRunIDString) Lte(value string) stepRunResul } } -func (r stepRunResultArchiveQueryStepRunIDString) LteIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRequeueAfterDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) Gt(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) Gt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "gt", @@ -139262,17 +139803,17 @@ func (r stepRunResultArchiveQueryStepRunIDString) Gt(value string) stepRunResult } } -func (r stepRunResultArchiveQueryStepRunIDString) GtIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRequeueAfterDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) Gte(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) Gte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { Name: "gte", @@ -139283,20 +139824,20 @@ func (r stepRunResultArchiveQueryStepRunIDString) Gte(value string) stepRunResul } } -func (r stepRunResultArchiveQueryStepRunIDString) GteIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRequeueAfterDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) Contains(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) Not(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -139304,41 +139845,22 @@ func (r stepRunResultArchiveQueryStepRunIDString) Contains(value string) stepRun } } -func (r stepRunResultArchiveQueryStepRunIDString) ContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRequeueAfterDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Contains(*value) -} - -func (r stepRunResultArchiveQueryStepRunIDString) StartsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return stepRunDefaultParam{} } + return r.Not(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) StartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r stepRunResultArchiveQueryStepRunIDString) EndsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) Before(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -139346,41 +139868,23 @@ func (r stepRunResultArchiveQueryStepRunIDString) EndsWith(value string) stepRun } } -func (r stepRunResultArchiveQueryStepRunIDString) EndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r stepRunQueryRequeueAfterDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r stepRunResultArchiveQueryStepRunIDString) Mode(value QueryMode) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return stepRunDefaultParam{} } + return r.Before(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) ModeIfPresent(value *QueryMode) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Gt instead. -func (r stepRunResultArchiveQueryStepRunIDString) Not(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) After(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -139388,22 +139892,23 @@ func (r stepRunResultArchiveQueryStepRunIDString) Not(value string) stepRunResul } } -func (r stepRunResultArchiveQueryStepRunIDString) NotIfPresent(value *string) stepRunResultArchiveDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepRunQueryRequeueAfterDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r stepRunResultArchiveQueryStepRunIDString) HasPrefix(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -139411,23 +139916,23 @@ func (r stepRunResultArchiveQueryStepRunIDString) HasPrefix(value string) stepRu } } -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunResultArchiveQueryStepRunIDString) HasPrefixIfPresent(value *string) stepRunResultArchiveDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepRunQueryRequeueAfterDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r stepRunResultArchiveQueryStepRunIDString) HasSuffix(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRequeueAfterDateTime) AfterEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "requeueAfter", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -139435,50 +139940,66 @@ func (r stepRunResultArchiveQueryStepRunIDString) HasSuffix(value string) stepRu } } -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunResultArchiveQueryStepRunIDString) HasSuffixIfPresent(value *string) stepRunResultArchiveDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r stepRunQueryRequeueAfterDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.HasSuffix(*value) + return r.AfterEquals(*value) } -func (r stepRunResultArchiveQueryStepRunIDString) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldStepRunID +func (r stepRunQueryRequeueAfterDateTime) Field() stepRunPrismaFields { + return stepRunFieldRequeueAfter } // base struct -type stepRunResultArchiveQueryOrderBigInt struct{} +type stepRunQueryScheduleTimeoutAtDateTime struct{} -// Set the required value of Order -func (r stepRunResultArchiveQueryOrderBigInt) Set(value BigInt) stepRunResultArchiveSetParam { +// Set the optional value of ScheduleTimeoutAt +func (r stepRunQueryScheduleTimeoutAtDateTime) Set(value DateTime) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Value: value, }, } } -// Set the optional value of Order dynamically -func (r stepRunResultArchiveQueryOrderBigInt) SetIfPresent(value *BigInt) stepRunResultArchiveSetParam { +// Set the optional value of ScheduleTimeoutAt dynamically +func (r stepRunQueryScheduleTimeoutAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -// Increment the required value of Order -func (r stepRunResultArchiveQueryOrderBigInt) Increment(value BigInt) stepRunResultArchiveSetParam { - return stepRunResultArchiveSetParam{ +// Set the optional value of ScheduleTimeoutAt dynamically +func (r stepRunQueryScheduleTimeoutAtDateTime) SetOptional(value *DateTime) stepRunSetParam { + if value == nil { + + var v *DateTime + return stepRunSetParam{ + data: builder.Field{ + Name: "scheduleTimeoutAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepRunQueryScheduleTimeoutAtDateTime) Equals(value DateTime) stepRunWithPrismaScheduleTimeoutAtEqualsParam { + + return stepRunWithPrismaScheduleTimeoutAtEqualsParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ - builder.Field{ - Name: "increment", + { + Name: "equals", Value: value, }, }, @@ -139486,21 +140007,20 @@ func (r stepRunResultArchiveQueryOrderBigInt) Increment(value BigInt) stepRunRes } } -func (r stepRunResultArchiveQueryOrderBigInt) IncrementIfPresent(value *BigInt) stepRunResultArchiveSetParam { +func (r stepRunQueryScheduleTimeoutAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaScheduleTimeoutAtEqualsParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunWithPrismaScheduleTimeoutAtEqualsParam{} } - return r.Increment(*value) + return r.Equals(*value) } -// Decrement the required value of Order -func (r stepRunResultArchiveQueryOrderBigInt) Decrement(value BigInt) stepRunResultArchiveSetParam { - return stepRunResultArchiveSetParam{ +func (r stepRunQueryScheduleTimeoutAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ - builder.Field{ - Name: "decrement", + { + Name: "equals", Value: value, }, }, @@ -139508,21 +140028,46 @@ func (r stepRunResultArchiveQueryOrderBigInt) Decrement(value BigInt) stepRunRes } } -func (r stepRunResultArchiveQueryOrderBigInt) DecrementIfPresent(value *BigInt) stepRunResultArchiveSetParam { - if value == nil { - return stepRunResultArchiveSetParam{} +func (r stepRunQueryScheduleTimeoutAtDateTime) IsNull() stepRunDefaultParam { + var str *string = nil + return stepRunDefaultParam{ + data: builder.Field{ + Name: "scheduleTimeoutAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Decrement(*value) } -// Multiply the required value of Order -func (r stepRunResultArchiveQueryOrderBigInt) Multiply(value BigInt) stepRunResultArchiveSetParam { - return stepRunResultArchiveSetParam{ +func (r stepRunQueryScheduleTimeoutAtDateTime) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", + Value: direction, + }, + } +} + +func (r stepRunQueryScheduleTimeoutAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { + return stepRunCursorParam{ + data: builder.Field{ + Name: "scheduleTimeoutAt", + Value: cursor, + }, + } +} + +func (r stepRunQueryScheduleTimeoutAtDateTime) In(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "scheduleTimeoutAt", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "in", Value: value, }, }, @@ -139530,21 +140075,20 @@ func (r stepRunResultArchiveQueryOrderBigInt) Multiply(value BigInt) stepRunResu } } -func (r stepRunResultArchiveQueryOrderBigInt) MultiplyIfPresent(value *BigInt) stepRunResultArchiveSetParam { +func (r stepRunQueryScheduleTimeoutAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunDefaultParam{} } - return r.Multiply(*value) + return r.In(value) } -// Divide the required value of Order -func (r stepRunResultArchiveQueryOrderBigInt) Divide(value BigInt) stepRunResultArchiveSetParam { - return stepRunResultArchiveSetParam{ +func (r stepRunQueryScheduleTimeoutAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "notIn", Value: value, }, }, @@ -139552,21 +140096,20 @@ func (r stepRunResultArchiveQueryOrderBigInt) Divide(value BigInt) stepRunResult } } -func (r stepRunResultArchiveQueryOrderBigInt) DivideIfPresent(value *BigInt) stepRunResultArchiveSetParam { +func (r stepRunQueryScheduleTimeoutAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunDefaultParam{} } - return r.Divide(*value) + return r.NotIn(value) } -func (r stepRunResultArchiveQueryOrderBigInt) Equals(value BigInt) stepRunResultArchiveWithPrismaOrderEqualsParam { - - return stepRunResultArchiveWithPrismaOrderEqualsParam{ +func (r stepRunQueryScheduleTimeoutAtDateTime) Lt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "equals", + Name: "lt", Value: value, }, }, @@ -139574,38 +140117,41 @@ func (r stepRunResultArchiveQueryOrderBigInt) Equals(value BigInt) stepRunResult } } -func (r stepRunResultArchiveQueryOrderBigInt) EqualsIfPresent(value *BigInt) stepRunResultArchiveWithPrismaOrderEqualsParam { +func (r stepRunQueryScheduleTimeoutAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveWithPrismaOrderEqualsParam{} + return stepRunDefaultParam{} } - return r.Equals(*value) + return r.Lt(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryScheduleTimeoutAtDateTime) Lte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", - Value: direction, + Name: "scheduleTimeoutAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, }, } } -func (r stepRunResultArchiveQueryOrderBigInt) Cursor(cursor BigInt) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ - data: builder.Field{ - Name: "order", - Value: cursor, - }, +func (r stepRunQueryScheduleTimeoutAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} } + return r.Lte(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) In(value []BigInt) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryScheduleTimeoutAtDateTime) Gt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "in", + Name: "gt", Value: value, }, }, @@ -139613,20 +140159,20 @@ func (r stepRunResultArchiveQueryOrderBigInt) In(value []BigInt) stepRunResultAr } } -func (r stepRunResultArchiveQueryOrderBigInt) InIfPresent(value []BigInt) stepRunResultArchiveDefaultParam { +func (r stepRunQueryScheduleTimeoutAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.In(value) + return r.Gt(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) NotIn(value []BigInt) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryScheduleTimeoutAtDateTime) Gte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "notIn", + Name: "gte", Value: value, }, }, @@ -139634,20 +140180,20 @@ func (r stepRunResultArchiveQueryOrderBigInt) NotIn(value []BigInt) stepRunResul } } -func (r stepRunResultArchiveQueryOrderBigInt) NotInIfPresent(value []BigInt) stepRunResultArchiveDefaultParam { +func (r stepRunQueryScheduleTimeoutAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.NotIn(value) + return r.Gte(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) Lt(value BigInt) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryScheduleTimeoutAtDateTime) Not(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "lt", + Name: "not", Value: value, }, }, @@ -139655,20 +140201,22 @@ func (r stepRunResultArchiveQueryOrderBigInt) Lt(value BigInt) stepRunResultArch } } -func (r stepRunResultArchiveQueryOrderBigInt) LtIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { +func (r stepRunQueryScheduleTimeoutAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.Not(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) Lte(value BigInt) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// deprecated: Use Lt instead. + +func (r stepRunQueryScheduleTimeoutAtDateTime) Before(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "lte", + Name: "lt", Value: value, }, }, @@ -139676,17 +140224,20 @@ func (r stepRunResultArchiveQueryOrderBigInt) Lte(value BigInt) stepRunResultArc } } -func (r stepRunResultArchiveQueryOrderBigInt) LteIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r stepRunQueryScheduleTimeoutAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.Before(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) Gt(value BigInt) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// deprecated: Use Gt instead. + +func (r stepRunQueryScheduleTimeoutAtDateTime) After(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { Name: "gt", @@ -139697,20 +140248,23 @@ func (r stepRunResultArchiveQueryOrderBigInt) Gt(value BigInt) stepRunResultArch } } -func (r stepRunResultArchiveQueryOrderBigInt) GtIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepRunQueryScheduleTimeoutAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Gt(*value) + return r.After(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) Gte(value BigInt) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// deprecated: Use Lte instead. + +func (r stepRunQueryScheduleTimeoutAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "gte", + Name: "lte", Value: value, }, }, @@ -139718,20 +140272,23 @@ func (r stepRunResultArchiveQueryOrderBigInt) Gte(value BigInt) stepRunResultArc } } -func (r stepRunResultArchiveQueryOrderBigInt) GteIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepRunQueryScheduleTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Gte(*value) + return r.BeforeEquals(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) Not(value BigInt) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// deprecated: Use Gte instead. + +func (r stepRunQueryScheduleTimeoutAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "order", + Name: "scheduleTimeoutAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -139739,65 +140296,94 @@ func (r stepRunResultArchiveQueryOrderBigInt) Not(value BigInt) stepRunResultArc } } -func (r stepRunResultArchiveQueryOrderBigInt) NotIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r stepRunQueryScheduleTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -func (r stepRunResultArchiveQueryOrderBigInt) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldOrder +func (r stepRunQueryScheduleTimeoutAtDateTime) Field() stepRunPrismaFields { + return stepRunFieldScheduleTimeoutAt } // base struct -type stepRunResultArchiveQueryInputJson struct{} +type stepRunQueryRetryCountInt struct{} -// Set the optional value of Input -func (r stepRunResultArchiveQueryInputJson) Set(value JSON) stepRunResultArchiveSetParam { +// Set the required value of RetryCount +func (r stepRunQueryRetryCountInt) Set(value int) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Value: value, }, } } -// Set the optional value of Input dynamically -func (r stepRunResultArchiveQueryInputJson) SetIfPresent(value *JSON) stepRunResultArchiveSetParam { +// Set the optional value of RetryCount dynamically +func (r stepRunQueryRetryCountInt) SetIfPresent(value *Int) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -// Set the optional value of Input dynamically -func (r stepRunResultArchiveQueryInputJson) SetOptional(value *JSON) stepRunResultArchiveSetParam { +// Increment the required value of RetryCount +func (r stepRunQueryRetryCountInt) Increment(value int) stepRunSetParam { + return stepRunSetParam{ + data: builder.Field{ + Name: "retryCount", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} + +func (r stepRunQueryRetryCountInt) IncrementIfPresent(value *int) stepRunSetParam { if value == nil { + return stepRunSetParam{} + } + return r.Increment(*value) +} - var v *JSON - return stepRunResultArchiveSetParam{ - data: builder.Field{ - Name: "input", - Value: v, +// Decrement the required value of RetryCount +func (r stepRunQueryRetryCountInt) Decrement(value int) stepRunSetParam { + return stepRunSetParam{ + data: builder.Field{ + Name: "retryCount", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, }, - } + }, } - - return r.Set(*value) } -func (r stepRunResultArchiveQueryInputJson) Equals(value JSON) stepRunResultArchiveWithPrismaInputEqualsParam { +func (r stepRunQueryRetryCountInt) DecrementIfPresent(value *int) stepRunSetParam { + if value == nil { + return stepRunSetParam{} + } + return r.Decrement(*value) +} - return stepRunResultArchiveWithPrismaInputEqualsParam{ +// Multiply the required value of RetryCount +func (r stepRunQueryRetryCountInt) Multiply(value int) stepRunSetParam { + return stepRunSetParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -139805,20 +140391,21 @@ func (r stepRunResultArchiveQueryInputJson) Equals(value JSON) stepRunResultArch } } -func (r stepRunResultArchiveQueryInputJson) EqualsIfPresent(value *JSON) stepRunResultArchiveWithPrismaInputEqualsParam { +func (r stepRunQueryRetryCountInt) MultiplyIfPresent(value *int) stepRunSetParam { if value == nil { - return stepRunResultArchiveWithPrismaInputEqualsParam{} + return stepRunSetParam{} } - return r.Equals(*value) + return r.Multiply(*value) } -func (r stepRunResultArchiveQueryInputJson) EqualsOptional(value *JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// Divide the required value of RetryCount +func (r stepRunQueryRetryCountInt) Divide(value int) stepRunSetParam { + return stepRunSetParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -139826,46 +140413,60 @@ func (r stepRunResultArchiveQueryInputJson) EqualsOptional(value *JSON) stepRunR } } -func (r stepRunResultArchiveQueryInputJson) IsNull() stepRunResultArchiveDefaultParam { - var str *string = nil - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) DivideIfPresent(value *int) stepRunSetParam { + if value == nil { + return stepRunSetParam{} + } + return r.Divide(*value) +} + +func (r stepRunQueryRetryCountInt) Equals(value int) stepRunWithPrismaRetryCountEqualsParam { + + return stepRunWithPrismaRetryCountEqualsParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r stepRunResultArchiveQueryInputJson) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) EqualsIfPresent(value *int) stepRunWithPrismaRetryCountEqualsParam { + if value == nil { + return stepRunWithPrismaRetryCountEqualsParam{} + } + return r.Equals(*value) +} + +func (r stepRunQueryRetryCountInt) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Value: direction, }, } } -func (r stepRunResultArchiveQueryInputJson) Cursor(cursor JSON) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryRetryCountInt) Cursor(cursor int) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Value: cursor, }, } } -func (r stepRunResultArchiveQueryInputJson) Path(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) In(value []int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -139873,20 +140474,20 @@ func (r stepRunResultArchiveQueryInputJson) Path(value []string) stepRunResultAr } } -func (r stepRunResultArchiveQueryInputJson) PathIfPresent(value []string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRetryCountInt) InIfPresent(value []int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r stepRunResultArchiveQueryInputJson) StringContains(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) NotIn(value []int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -139894,20 +140495,20 @@ func (r stepRunResultArchiveQueryInputJson) StringContains(value string) stepRun } } -func (r stepRunResultArchiveQueryInputJson) StringContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRetryCountInt) NotInIfPresent(value []int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r stepRunResultArchiveQueryInputJson) StringStartsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) Lt(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -139915,20 +140516,20 @@ func (r stepRunResultArchiveQueryInputJson) StringStartsWith(value string) stepR } } -func (r stepRunResultArchiveQueryInputJson) StringStartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRetryCountInt) LtIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r stepRunResultArchiveQueryInputJson) StringEndsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) Lte(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -139936,20 +140537,20 @@ func (r stepRunResultArchiveQueryInputJson) StringEndsWith(value string) stepRun } } -func (r stepRunResultArchiveQueryInputJson) StringEndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRetryCountInt) LteIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r stepRunResultArchiveQueryInputJson) ArrayContains(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) Gt(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -139957,20 +140558,20 @@ func (r stepRunResultArchiveQueryInputJson) ArrayContains(value JSON) stepRunRes } } -func (r stepRunResultArchiveQueryInputJson) ArrayContainsIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRetryCountInt) GtIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r stepRunResultArchiveQueryInputJson) ArrayStartsWith(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) Gte(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -139978,20 +140579,20 @@ func (r stepRunResultArchiveQueryInputJson) ArrayStartsWith(value JSON) stepRunR } } -func (r stepRunResultArchiveQueryInputJson) ArrayStartsWithIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRetryCountInt) GteIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r stepRunResultArchiveQueryInputJson) ArrayEndsWith(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) Not(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -139999,17 +140600,19 @@ func (r stepRunResultArchiveQueryInputJson) ArrayEndsWith(value JSON) stepRunRes } } -func (r stepRunResultArchiveQueryInputJson) ArrayEndsWithIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryRetryCountInt) NotIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r stepRunResultArchiveQueryInputJson) Lt(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// deprecated: Use Lt instead. + +func (r stepRunQueryRetryCountInt) LT(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { Name: "lt", @@ -140020,17 +140623,20 @@ func (r stepRunResultArchiveQueryInputJson) Lt(value JSON) stepRunResultArchiveD } } -func (r stepRunResultArchiveQueryInputJson) LtIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r stepRunQueryRetryCountInt) LTIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.LT(*value) } -func (r stepRunResultArchiveQueryInputJson) Lte(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// deprecated: Use Lte instead. + +func (r stepRunQueryRetryCountInt) LTE(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { Name: "lte", @@ -140041,17 +140647,20 @@ func (r stepRunResultArchiveQueryInputJson) Lte(value JSON) stepRunResultArchive } } -func (r stepRunResultArchiveQueryInputJson) LteIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepRunQueryRetryCountInt) LTEIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.LTE(*value) } -func (r stepRunResultArchiveQueryInputJson) Gt(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// deprecated: Use Gt instead. + +func (r stepRunQueryRetryCountInt) GT(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { Name: "gt", @@ -140062,41 +140671,23 @@ func (r stepRunResultArchiveQueryInputJson) Gt(value JSON) stepRunResultArchiveD } } -func (r stepRunResultArchiveQueryInputJson) GtIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepRunQueryRetryCountInt) GTIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Gt(*value) -} - -func (r stepRunResultArchiveQueryInputJson) Gte(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "input", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, + return stepRunDefaultParam{} } + return r.GT(*value) } -func (r stepRunResultArchiveQueryInputJson) GteIfPresent(value *JSON) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Gte(*value) -} +// deprecated: Use Gte instead. -func (r stepRunResultArchiveQueryInputJson) Not(value JSONNullValueFilter) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryRetryCountInt) GTE(value int) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "input", + Name: "retryCount", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -140104,49 +140695,50 @@ func (r stepRunResultArchiveQueryInputJson) Not(value JSONNullValueFilter) stepR } } -func (r stepRunResultArchiveQueryInputJson) NotIfPresent(value *JSONNullValueFilter) stepRunResultArchiveDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r stepRunQueryRetryCountInt) GTEIfPresent(value *int) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.GTE(*value) } -func (r stepRunResultArchiveQueryInputJson) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldInput +func (r stepRunQueryRetryCountInt) Field() stepRunPrismaFields { + return stepRunFieldRetryCount } // base struct -type stepRunResultArchiveQueryOutputJson struct{} +type stepRunQueryErrorString struct{} -// Set the optional value of Output -func (r stepRunResultArchiveQueryOutputJson) Set(value JSON) stepRunResultArchiveSetParam { +// Set the optional value of Error +func (r stepRunQueryErrorString) Set(value string) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "output", + Name: "error", Value: value, }, } } -// Set the optional value of Output dynamically -func (r stepRunResultArchiveQueryOutputJson) SetIfPresent(value *JSON) stepRunResultArchiveSetParam { +// Set the optional value of Error dynamically +func (r stepRunQueryErrorString) SetIfPresent(value *String) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -// Set the optional value of Output dynamically -func (r stepRunResultArchiveQueryOutputJson) SetOptional(value *JSON) stepRunResultArchiveSetParam { +// Set the optional value of Error dynamically +func (r stepRunQueryErrorString) SetOptional(value *String) stepRunSetParam { if value == nil { - var v *JSON - return stepRunResultArchiveSetParam{ + var v *string + return stepRunSetParam{ data: builder.Field{ - Name: "output", + Name: "error", Value: v, }, } @@ -140155,11 +140747,11 @@ func (r stepRunResultArchiveQueryOutputJson) SetOptional(value *JSON) stepRunRes return r.Set(*value) } -func (r stepRunResultArchiveQueryOutputJson) Equals(value JSON) stepRunResultArchiveWithPrismaOutputEqualsParam { +func (r stepRunQueryErrorString) Equals(value string) stepRunWithPrismaErrorEqualsParam { - return stepRunResultArchiveWithPrismaOutputEqualsParam{ + return stepRunWithPrismaErrorEqualsParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -140170,17 +140762,17 @@ func (r stepRunResultArchiveQueryOutputJson) Equals(value JSON) stepRunResultArc } } -func (r stepRunResultArchiveQueryOutputJson) EqualsIfPresent(value *JSON) stepRunResultArchiveWithPrismaOutputEqualsParam { +func (r stepRunQueryErrorString) EqualsIfPresent(value *string) stepRunWithPrismaErrorEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaOutputEqualsParam{} + return stepRunWithPrismaErrorEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryOutputJson) EqualsOptional(value *JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) EqualsOptional(value *String) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -140191,11 +140783,11 @@ func (r stepRunResultArchiveQueryOutputJson) EqualsOptional(value *JSON) stepRun } } -func (r stepRunResultArchiveQueryOutputJson) IsNull() stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunResultArchiveDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -140206,31 +140798,31 @@ func (r stepRunResultArchiveQueryOutputJson) IsNull() stepRunResultArchiveDefaul } } -func (r stepRunResultArchiveQueryOutputJson) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Value: direction, }, } } -func (r stepRunResultArchiveQueryOutputJson) Cursor(cursor JSON) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryErrorString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "output", + Name: "error", Value: cursor, }, } } -func (r stepRunResultArchiveQueryOutputJson) Path(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -140238,20 +140830,20 @@ func (r stepRunResultArchiveQueryOutputJson) Path(value []string) stepRunResultA } } -func (r stepRunResultArchiveQueryOutputJson) PathIfPresent(value []string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) InIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r stepRunResultArchiveQueryOutputJson) StringContains(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -140259,20 +140851,20 @@ func (r stepRunResultArchiveQueryOutputJson) StringContains(value string) stepRu } } -func (r stepRunResultArchiveQueryOutputJson) StringContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) NotInIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r stepRunResultArchiveQueryOutputJson) StringStartsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -140280,20 +140872,20 @@ func (r stepRunResultArchiveQueryOutputJson) StringStartsWith(value string) step } } -func (r stepRunResultArchiveQueryOutputJson) StringStartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r stepRunResultArchiveQueryOutputJson) StringEndsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -140301,20 +140893,20 @@ func (r stepRunResultArchiveQueryOutputJson) StringEndsWith(value string) stepRu } } -func (r stepRunResultArchiveQueryOutputJson) StringEndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r stepRunResultArchiveQueryOutputJson) ArrayContains(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -140322,20 +140914,20 @@ func (r stepRunResultArchiveQueryOutputJson) ArrayContains(value JSON) stepRunRe } } -func (r stepRunResultArchiveQueryOutputJson) ArrayContainsIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r stepRunResultArchiveQueryOutputJson) ArrayStartsWith(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -140343,20 +140935,20 @@ func (r stepRunResultArchiveQueryOutputJson) ArrayStartsWith(value JSON) stepRun } } -func (r stepRunResultArchiveQueryOutputJson) ArrayStartsWithIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r stepRunResultArchiveQueryOutputJson) ArrayEndsWith(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "contains", Value: value, }, }, @@ -140364,20 +140956,20 @@ func (r stepRunResultArchiveQueryOutputJson) ArrayEndsWith(value JSON) stepRunRe } } -func (r stepRunResultArchiveQueryOutputJson) ArrayEndsWithIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Contains(*value) } -func (r stepRunResultArchiveQueryOutputJson) Lt(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -140385,20 +140977,20 @@ func (r stepRunResultArchiveQueryOutputJson) Lt(value JSON) stepRunResultArchive } } -func (r stepRunResultArchiveQueryOutputJson) LtIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) StartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.StartsWith(*value) } -func (r stepRunResultArchiveQueryOutputJson) Lte(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "lte", + Name: "endsWith", Value: value, }, }, @@ -140406,20 +140998,20 @@ func (r stepRunResultArchiveQueryOutputJson) Lte(value JSON) stepRunResultArchiv } } -func (r stepRunResultArchiveQueryOutputJson) LteIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) EndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.EndsWith(*value) } -func (r stepRunResultArchiveQueryOutputJson) Gt(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "gt", + Name: "mode", Value: value, }, }, @@ -140427,20 +141019,20 @@ func (r stepRunResultArchiveQueryOutputJson) Gt(value JSON) stepRunResultArchive } } -func (r stepRunResultArchiveQueryOutputJson) GtIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Gt(*value) + return r.Mode(*value) } -func (r stepRunResultArchiveQueryOutputJson) Gte(value JSON) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryErrorString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -140448,20 +141040,22 @@ func (r stepRunResultArchiveQueryOutputJson) Gte(value JSON) stepRunResultArchiv } } -func (r stepRunResultArchiveQueryOutputJson) GteIfPresent(value *JSON) stepRunResultArchiveDefaultParam { +func (r stepRunQueryErrorString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Gte(*value) + return r.Not(*value) } -func (r stepRunResultArchiveQueryOutputJson) Not(value JSONNullValueFilter) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r stepRunQueryErrorString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "output", + Name: "error", Fields: []builder.Field{ { - Name: "not", + Name: "starts_with", Value: value, }, }, @@ -140469,49 +141063,74 @@ func (r stepRunResultArchiveQueryOutputJson) Not(value JSONNullValueFilter) step } } -func (r stepRunResultArchiveQueryOutputJson) NotIfPresent(value *JSONNullValueFilter) stepRunResultArchiveDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunQueryErrorString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.HasPrefix(*value) } -func (r stepRunResultArchiveQueryOutputJson) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldOutput +// deprecated: Use EndsWith instead. + +func (r stepRunQueryErrorString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "error", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunQueryErrorString) HasSuffixIfPresent(value *string) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r stepRunQueryErrorString) Field() stepRunPrismaFields { + return stepRunFieldError } // base struct -type stepRunResultArchiveQueryErrorString struct{} +type stepRunQueryStartedAtDateTime struct{} -// Set the optional value of Error -func (r stepRunResultArchiveQueryErrorString) Set(value string) stepRunResultArchiveSetParam { +// Set the optional value of StartedAt +func (r stepRunQueryStartedAtDateTime) Set(value DateTime) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "error", + Name: "startedAt", Value: value, }, } } -// Set the optional value of Error dynamically -func (r stepRunResultArchiveQueryErrorString) SetIfPresent(value *String) stepRunResultArchiveSetParam { +// Set the optional value of StartedAt dynamically +func (r stepRunQueryStartedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -// Set the optional value of Error dynamically -func (r stepRunResultArchiveQueryErrorString) SetOptional(value *String) stepRunResultArchiveSetParam { +// Set the optional value of StartedAt dynamically +func (r stepRunQueryStartedAtDateTime) SetOptional(value *DateTime) stepRunSetParam { if value == nil { - var v *string - return stepRunResultArchiveSetParam{ + var v *DateTime + return stepRunSetParam{ data: builder.Field{ - Name: "error", + Name: "startedAt", Value: v, }, } @@ -140520,11 +141139,11 @@ func (r stepRunResultArchiveQueryErrorString) SetOptional(value *String) stepRun return r.Set(*value) } -func (r stepRunResultArchiveQueryErrorString) Equals(value string) stepRunResultArchiveWithPrismaErrorEqualsParam { +func (r stepRunQueryStartedAtDateTime) Equals(value DateTime) stepRunWithPrismaStartedAtEqualsParam { - return stepRunResultArchiveWithPrismaErrorEqualsParam{ + return stepRunWithPrismaStartedAtEqualsParam{ data: builder.Field{ - Name: "error", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -140535,17 +141154,17 @@ func (r stepRunResultArchiveQueryErrorString) Equals(value string) stepRunResult } } -func (r stepRunResultArchiveQueryErrorString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaErrorEqualsParam { +func (r stepRunQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaStartedAtEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaErrorEqualsParam{} + return stepRunWithPrismaStartedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryErrorString) EqualsOptional(value *String) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -140556,11 +141175,11 @@ func (r stepRunResultArchiveQueryErrorString) EqualsOptional(value *String) step } } -func (r stepRunResultArchiveQueryErrorString) IsNull() stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunResultArchiveDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", @@ -140571,418 +141190,26 @@ func (r stepRunResultArchiveQueryErrorString) IsNull() stepRunResultArchiveDefau } } -func (r stepRunResultArchiveQueryErrorString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "error", + Name: "startedAt", Value: direction, }, } } -func (r stepRunResultArchiveQueryErrorString) Cursor(cursor string) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryStartedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "error", + Name: "startedAt", Value: cursor, }, } } -func (r stepRunResultArchiveQueryErrorString) In(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) InIfPresent(value []string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.In(value) -} - -func (r stepRunResultArchiveQueryErrorString) NotIn(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "notIn", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) NotInIfPresent(value []string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.NotIn(value) -} - -func (r stepRunResultArchiveQueryErrorString) Lt(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) LtIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Lt(*value) -} - -func (r stepRunResultArchiveQueryErrorString) Lte(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) LteIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Lte(*value) -} - -func (r stepRunResultArchiveQueryErrorString) Gt(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) GtIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Gt(*value) -} - -func (r stepRunResultArchiveQueryErrorString) Gte(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) GteIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Gte(*value) -} - -func (r stepRunResultArchiveQueryErrorString) Contains(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "contains", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) ContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Contains(*value) -} - -func (r stepRunResultArchiveQueryErrorString) StartsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) StartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.StartsWith(*value) -} - -func (r stepRunResultArchiveQueryErrorString) EndsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "endsWith", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) EndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r stepRunResultArchiveQueryErrorString) Mode(value QueryMode) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) ModeIfPresent(value *QueryMode) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Mode(*value) -} - -func (r stepRunResultArchiveQueryErrorString) Not(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryErrorString) NotIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.Not(*value) -} - -// deprecated: Use StartsWith instead. - -func (r stepRunResultArchiveQueryErrorString) HasPrefix(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use StartsWithIfPresent instead. -func (r stepRunResultArchiveQueryErrorString) HasPrefixIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.HasPrefix(*value) -} - -// deprecated: Use EndsWith instead. - -func (r stepRunResultArchiveQueryErrorString) HasSuffix(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "error", - Fields: []builder.Field{ - { - Name: "ends_with", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use EndsWithIfPresent instead. -func (r stepRunResultArchiveQueryErrorString) HasSuffixIfPresent(value *string) stepRunResultArchiveDefaultParam { - if value == nil { - return stepRunResultArchiveDefaultParam{} - } - return r.HasSuffix(*value) -} - -func (r stepRunResultArchiveQueryErrorString) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldError -} - -// base struct -type stepRunResultArchiveQueryStartedAtDateTime struct{} - -// Set the optional value of StartedAt -func (r stepRunResultArchiveQueryStartedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - - return stepRunResultArchiveSetParam{ - data: builder.Field{ - Name: "startedAt", - Value: value, - }, - } - -} - -// Set the optional value of StartedAt dynamically -func (r stepRunResultArchiveQueryStartedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { - if value == nil { - return stepRunResultArchiveSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of StartedAt dynamically -func (r stepRunResultArchiveQueryStartedAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { - if value == nil { - - var v *DateTime - return stepRunResultArchiveSetParam{ - data: builder.Field{ - Name: "startedAt", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r stepRunResultArchiveQueryStartedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaStartedAtEqualsParam { - - return stepRunResultArchiveWithPrismaStartedAtEqualsParam{ - data: builder.Field{ - Name: "startedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaStartedAtEqualsParam { - if value == nil { - return stepRunResultArchiveWithPrismaStartedAtEqualsParam{} - } - return r.Equals(*value) -} - -func (r stepRunResultArchiveQueryStartedAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "startedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryStartedAtDateTime) IsNull() stepRunResultArchiveDefaultParam { - var str *string = nil - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "startedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r stepRunResultArchiveQueryStartedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ - data: builder.Field{ - Name: "startedAt", - Value: direction, - }, - } -} - -func (r stepRunResultArchiveQueryStartedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ - data: builder.Field{ - Name: "startedAt", - Value: cursor, - }, - } -} - -func (r stepRunResultArchiveQueryStartedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) In(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -140995,15 +141222,15 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) In(value []DateTime) stepRun } } -func (r stepRunResultArchiveQueryStartedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunResultArchiveQueryStartedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141016,15 +141243,15 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) NotIn(value []DateTime) step } } -func (r stepRunResultArchiveQueryStartedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunResultArchiveQueryStartedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) Lt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141037,15 +141264,15 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) Lt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryStartedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunResultArchiveQueryStartedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) Lte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141058,15 +141285,15 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) Lte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryStartedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunResultArchiveQueryStartedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) Gt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141079,15 +141306,15 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) Gt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryStartedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunResultArchiveQueryStartedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) Gte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141100,15 +141327,15 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) Gte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryStartedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunResultArchiveQueryStartedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) Not(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141121,17 +141348,17 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) Not(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryStartedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunResultArchiveQueryStartedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) Before(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141145,17 +141372,17 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) Before(value DateTime) stepR } // deprecated: Use LtIfPresent instead. -func (r stepRunResultArchiveQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunResultArchiveQueryStartedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) After(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141169,17 +141396,17 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) After(value DateTime) stepRu } // deprecated: Use GtIfPresent instead. -func (r stepRunResultArchiveQueryStartedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunResultArchiveQueryStartedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141193,17 +141420,17 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) BeforeEquals(value DateTime) } // deprecated: Use LteIfPresent instead. -func (r stepRunResultArchiveQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunResultArchiveQueryStartedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryStartedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "startedAt", Fields: []builder.Field{ @@ -141217,24 +141444,24 @@ func (r stepRunResultArchiveQueryStartedAtDateTime) AfterEquals(value DateTime) } // deprecated: Use GteIfPresent instead. -func (r stepRunResultArchiveQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunResultArchiveQueryStartedAtDateTime) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldStartedAt +func (r stepRunQueryStartedAtDateTime) Field() stepRunPrismaFields { + return stepRunFieldStartedAt } // base struct -type stepRunResultArchiveQueryFinishedAtDateTime struct{} +type stepRunQueryFinishedAtDateTime struct{} // Set the optional value of FinishedAt -func (r stepRunResultArchiveQueryFinishedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryFinishedAtDateTime) Set(value DateTime) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "finishedAt", Value: value, @@ -141244,20 +141471,20 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Set(value DateTime) stepRun } // Set the optional value of FinishedAt dynamically -func (r stepRunResultArchiveQueryFinishedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryFinishedAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } // Set the optional value of FinishedAt dynamically -func (r stepRunResultArchiveQueryFinishedAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryFinishedAtDateTime) SetOptional(value *DateTime) stepRunSetParam { if value == nil { var v *DateTime - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "finishedAt", Value: v, @@ -141268,9 +141495,9 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) SetOptional(value *DateTime return r.Set(*value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaFinishedAtEqualsParam { +func (r stepRunQueryFinishedAtDateTime) Equals(value DateTime) stepRunWithPrismaFinishedAtEqualsParam { - return stepRunResultArchiveWithPrismaFinishedAtEqualsParam{ + return stepRunWithPrismaFinishedAtEqualsParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141283,15 +141510,15 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Equals(value DateTime) step } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaFinishedAtEqualsParam { +func (r stepRunQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaFinishedAtEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaFinishedAtEqualsParam{} + return stepRunWithPrismaFinishedAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141304,9 +141531,9 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) EqualsOptional(value *DateT } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) IsNull() stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunResultArchiveDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141319,8 +141546,8 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) IsNull() stepRunResultArchi } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Value: direction, @@ -141328,8 +141555,8 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Order(direction SortOrder) } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryFinishedAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ Name: "finishedAt", Value: cursor, @@ -141337,8 +141564,8 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Cursor(cursor DateTime) ste } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) In(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141351,15 +141578,15 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) In(value []DateTime) stepRu } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141372,15 +141599,15 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) NotIn(value []DateTime) ste } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) Lt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141393,15 +141620,15 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Lt(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) Lte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141414,15 +141641,15 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Lte(value DateTime) stepRun } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) Gt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141435,15 +141662,15 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Gt(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) Gte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141456,15 +141683,15 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Gte(value DateTime) stepRun } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) Not(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141477,17 +141704,17 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Not(value DateTime) stepRun } } -func (r stepRunResultArchiveQueryFinishedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunResultArchiveQueryFinishedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) Before(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141501,17 +141728,17 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) Before(value DateTime) step } // deprecated: Use LtIfPresent instead. -func (r stepRunResultArchiveQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunResultArchiveQueryFinishedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) After(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141525,17 +141752,17 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) After(value DateTime) stepR } // deprecated: Use GtIfPresent instead. -func (r stepRunResultArchiveQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunResultArchiveQueryFinishedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141549,17 +141776,17 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) BeforeEquals(value DateTime } // deprecated: Use LteIfPresent instead. -func (r stepRunResultArchiveQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunResultArchiveQueryFinishedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryFinishedAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "finishedAt", Fields: []builder.Field{ @@ -141573,24 +141800,24 @@ func (r stepRunResultArchiveQueryFinishedAtDateTime) AfterEquals(value DateTime) } // deprecated: Use GteIfPresent instead. -func (r stepRunResultArchiveQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunResultArchiveQueryFinishedAtDateTime) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldFinishedAt +func (r stepRunQueryFinishedAtDateTime) Field() stepRunPrismaFields { + return stepRunFieldFinishedAt } // base struct -type stepRunResultArchiveQueryTimeoutAtDateTime struct{} +type stepRunQueryTimeoutAtDateTime struct{} // Set the optional value of TimeoutAt -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryTimeoutAtDateTime) Set(value DateTime) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "timeoutAt", Value: value, @@ -141600,20 +141827,20 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Set(value DateTime) stepRunR } // Set the optional value of TimeoutAt dynamically -func (r stepRunResultArchiveQueryTimeoutAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryTimeoutAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } // Set the optional value of TimeoutAt dynamically -func (r stepRunResultArchiveQueryTimeoutAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryTimeoutAtDateTime) SetOptional(value *DateTime) stepRunSetParam { if value == nil { var v *DateTime - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "timeoutAt", Value: v, @@ -141624,9 +141851,9 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) SetOptional(value *DateTime) return r.Set(*value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaTimeoutAtEqualsParam { +func (r stepRunQueryTimeoutAtDateTime) Equals(value DateTime) stepRunWithPrismaTimeoutAtEqualsParam { - return stepRunResultArchiveWithPrismaTimeoutAtEqualsParam{ + return stepRunWithPrismaTimeoutAtEqualsParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141639,15 +141866,15 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Equals(value DateTime) stepR } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaTimeoutAtEqualsParam { +func (r stepRunQueryTimeoutAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaTimeoutAtEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaTimeoutAtEqualsParam{} + return stepRunWithPrismaTimeoutAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141660,9 +141887,9 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) EqualsOptional(value *DateTi } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) IsNull() stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunResultArchiveDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141675,8 +141902,8 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) IsNull() stepRunResultArchiv } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Value: direction, @@ -141684,8 +141911,8 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Order(direction SortOrder) s } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryTimeoutAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ Name: "timeoutAt", Value: cursor, @@ -141693,8 +141920,8 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Cursor(cursor DateTime) step } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) In(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141707,15 +141934,15 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) In(value []DateTime) stepRun } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141728,15 +141955,15 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) NotIn(value []DateTime) step } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) Lt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141749,15 +141976,15 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Lt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) Lte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141770,15 +141997,15 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Lte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) Gt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141791,15 +142018,15 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Gt(value DateTime) stepRunRe } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) Gte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141812,15 +142039,15 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Gte(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) Not(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141833,17 +142060,17 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Not(value DateTime) stepRunR } } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) Before(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141857,17 +142084,17 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) Before(value DateTime) stepR } // deprecated: Use LtIfPresent instead. -func (r stepRunResultArchiveQueryTimeoutAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunResultArchiveQueryTimeoutAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) After(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141881,17 +142108,17 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) After(value DateTime) stepRu } // deprecated: Use GtIfPresent instead. -func (r stepRunResultArchiveQueryTimeoutAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunResultArchiveQueryTimeoutAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141905,17 +142132,17 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) BeforeEquals(value DateTime) } // deprecated: Use LteIfPresent instead. -func (r stepRunResultArchiveQueryTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunResultArchiveQueryTimeoutAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryTimeoutAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "timeoutAt", Fields: []builder.Field{ @@ -141929,24 +142156,24 @@ func (r stepRunResultArchiveQueryTimeoutAtDateTime) AfterEquals(value DateTime) } // deprecated: Use GteIfPresent instead. -func (r stepRunResultArchiveQueryTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunResultArchiveQueryTimeoutAtDateTime) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldTimeoutAt +func (r stepRunQueryTimeoutAtDateTime) Field() stepRunPrismaFields { + return stepRunFieldTimeoutAt } // base struct -type stepRunResultArchiveQueryCancelledAtDateTime struct{} +type stepRunQueryCancelledAtDateTime struct{} // Set the optional value of CancelledAt -func (r stepRunResultArchiveQueryCancelledAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledAtDateTime) Set(value DateTime) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "cancelledAt", Value: value, @@ -141956,20 +142183,20 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Set(value DateTime) stepRu } // Set the optional value of CancelledAt dynamically -func (r stepRunResultArchiveQueryCancelledAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledAtDateTime) SetIfPresent(value *DateTime) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } // Set the optional value of CancelledAt dynamically -func (r stepRunResultArchiveQueryCancelledAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledAtDateTime) SetOptional(value *DateTime) stepRunSetParam { if value == nil { var v *DateTime - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "cancelledAt", Value: v, @@ -141980,9 +142207,9 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) SetOptional(value *DateTim return r.Set(*value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaCancelledAtEqualsParam { +func (r stepRunQueryCancelledAtDateTime) Equals(value DateTime) stepRunWithPrismaCancelledAtEqualsParam { - return stepRunResultArchiveWithPrismaCancelledAtEqualsParam{ + return stepRunWithPrismaCancelledAtEqualsParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -141995,15 +142222,15 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Equals(value DateTime) ste } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaCancelledAtEqualsParam { +func (r stepRunQueryCancelledAtDateTime) EqualsIfPresent(value *DateTime) stepRunWithPrismaCancelledAtEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaCancelledAtEqualsParam{} + return stepRunWithPrismaCancelledAtEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) EqualsOptional(value *DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142016,9 +142243,9 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) EqualsOptional(value *Date } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) IsNull() stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunResultArchiveDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142031,8 +142258,8 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) IsNull() stepRunResultArch } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Value: direction, @@ -142040,8 +142267,8 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Order(direction SortOrder) } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryCancelledAtDateTime) Cursor(cursor DateTime) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ Name: "cancelledAt", Value: cursor, @@ -142049,8 +142276,8 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Cursor(cursor DateTime) st } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) In(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142063,15 +142290,15 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) In(value []DateTime) stepR } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) InIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) NotIn(value []DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142084,15 +142311,15 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) NotIn(value []DateTime) st } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) NotInIfPresent(value []DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) Lt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142105,15 +142332,15 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Lt(value DateTime) stepRun } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) LtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) Lte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142126,15 +142353,15 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Lte(value DateTime) stepRu } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) LteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) Gt(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142147,15 +142374,15 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Gt(value DateTime) stepRun } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) GtIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) Gte(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142168,15 +142395,15 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Gte(value DateTime) stepRu } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) GteIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) Not(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142189,17 +142416,17 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Not(value DateTime) stepRu } } -func (r stepRunResultArchiveQueryCancelledAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) NotIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r stepRunResultArchiveQueryCancelledAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) Before(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142213,17 +142440,17 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) Before(value DateTime) ste } // deprecated: Use LtIfPresent instead. -func (r stepRunResultArchiveQueryCancelledAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) BeforeIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r stepRunResultArchiveQueryCancelledAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) After(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142237,17 +142464,17 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) After(value DateTime) step } // deprecated: Use GtIfPresent instead. -func (r stepRunResultArchiveQueryCancelledAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) AfterIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r stepRunResultArchiveQueryCancelledAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) BeforeEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142261,17 +142488,17 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) BeforeEquals(value DateTim } // deprecated: Use LteIfPresent instead. -func (r stepRunResultArchiveQueryCancelledAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r stepRunResultArchiveQueryCancelledAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledAtDateTime) AfterEquals(value DateTime) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledAt", Fields: []builder.Field{ @@ -142285,24 +142512,24 @@ func (r stepRunResultArchiveQueryCancelledAtDateTime) AfterEquals(value DateTime } // deprecated: Use GteIfPresent instead. -func (r stepRunResultArchiveQueryCancelledAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.AfterEquals(*value) } -func (r stepRunResultArchiveQueryCancelledAtDateTime) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldCancelledAt +func (r stepRunQueryCancelledAtDateTime) Field() stepRunPrismaFields { + return stepRunFieldCancelledAt } // base struct -type stepRunResultArchiveQueryCancelledReasonString struct{} +type stepRunQueryCancelledReasonString struct{} // Set the optional value of CancelledReason -func (r stepRunResultArchiveQueryCancelledReasonString) Set(value string) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledReasonString) Set(value string) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "cancelledReason", Value: value, @@ -142312,20 +142539,20 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Set(value string) stepRu } // Set the optional value of CancelledReason dynamically -func (r stepRunResultArchiveQueryCancelledReasonString) SetIfPresent(value *String) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledReasonString) SetIfPresent(value *String) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } // Set the optional value of CancelledReason dynamically -func (r stepRunResultArchiveQueryCancelledReasonString) SetOptional(value *String) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledReasonString) SetOptional(value *String) stepRunSetParam { if value == nil { var v *string - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "cancelledReason", Value: v, @@ -142336,9 +142563,9 @@ func (r stepRunResultArchiveQueryCancelledReasonString) SetOptional(value *Strin return r.Set(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Equals(value string) stepRunResultArchiveWithPrismaCancelledReasonEqualsParam { +func (r stepRunQueryCancelledReasonString) Equals(value string) stepRunWithPrismaCancelledReasonEqualsParam { - return stepRunResultArchiveWithPrismaCancelledReasonEqualsParam{ + return stepRunWithPrismaCancelledReasonEqualsParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142351,15 +142578,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Equals(value string) ste } } -func (r stepRunResultArchiveQueryCancelledReasonString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaCancelledReasonEqualsParam { +func (r stepRunQueryCancelledReasonString) EqualsIfPresent(value *string) stepRunWithPrismaCancelledReasonEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaCancelledReasonEqualsParam{} + return stepRunWithPrismaCancelledReasonEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) EqualsOptional(value *String) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) EqualsOptional(value *String) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142372,9 +142599,9 @@ func (r stepRunResultArchiveQueryCancelledReasonString) EqualsOptional(value *St } } -func (r stepRunResultArchiveQueryCancelledReasonString) IsNull() stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunResultArchiveDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142387,8 +142614,8 @@ func (r stepRunResultArchiveQueryCancelledReasonString) IsNull() stepRunResultAr } } -func (r stepRunResultArchiveQueryCancelledReasonString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Value: direction, @@ -142396,8 +142623,8 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Order(direction SortOrde } } -func (r stepRunResultArchiveQueryCancelledReasonString) Cursor(cursor string) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryCancelledReasonString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ Name: "cancelledReason", Value: cursor, @@ -142405,8 +142632,8 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Cursor(cursor string) st } } -func (r stepRunResultArchiveQueryCancelledReasonString) In(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142419,15 +142646,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) In(value []string) stepR } } -func (r stepRunResultArchiveQueryCancelledReasonString) InIfPresent(value []string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) InIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunResultArchiveQueryCancelledReasonString) NotIn(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142440,15 +142667,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) NotIn(value []string) st } } -func (r stepRunResultArchiveQueryCancelledReasonString) NotInIfPresent(value []string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) NotInIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Lt(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142461,15 +142688,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Lt(value string) stepRun } } -func (r stepRunResultArchiveQueryCancelledReasonString) LtIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Lte(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142482,15 +142709,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Lte(value string) stepRu } } -func (r stepRunResultArchiveQueryCancelledReasonString) LteIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Gt(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142503,15 +142730,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Gt(value string) stepRun } } -func (r stepRunResultArchiveQueryCancelledReasonString) GtIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Gte(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142524,15 +142751,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Gte(value string) stepRu } } -func (r stepRunResultArchiveQueryCancelledReasonString) GteIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Contains(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142545,15 +142772,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Contains(value string) s } } -func (r stepRunResultArchiveQueryCancelledReasonString) ContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Contains(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) StartsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142566,15 +142793,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) StartsWith(value string) } } -func (r stepRunResultArchiveQueryCancelledReasonString) StartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) StartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.StartsWith(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) EndsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142587,15 +142814,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) EndsWith(value string) s } } -func (r stepRunResultArchiveQueryCancelledReasonString) EndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) EndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.EndsWith(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Mode(value QueryMode) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142608,15 +142835,15 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Mode(value QueryMode) st } } -func (r stepRunResultArchiveQueryCancelledReasonString) ModeIfPresent(value *QueryMode) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Mode(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Not(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142629,17 +142856,17 @@ func (r stepRunResultArchiveQueryCancelledReasonString) Not(value string) stepRu } } -func (r stepRunResultArchiveQueryCancelledReasonString) NotIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRunResultArchiveQueryCancelledReasonString) HasPrefix(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142653,17 +142880,17 @@ func (r stepRunResultArchiveQueryCancelledReasonString) HasPrefix(value string) } // deprecated: Use StartsWithIfPresent instead. -func (r stepRunResultArchiveQueryCancelledReasonString) HasPrefixIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRunResultArchiveQueryCancelledReasonString) HasSuffix(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledReasonString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledReason", Fields: []builder.Field{ @@ -142677,24 +142904,24 @@ func (r stepRunResultArchiveQueryCancelledReasonString) HasSuffix(value string) } // deprecated: Use EndsWithIfPresent instead. -func (r stepRunResultArchiveQueryCancelledReasonString) HasSuffixIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledReasonString) HasSuffixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRunResultArchiveQueryCancelledReasonString) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldCancelledReason +func (r stepRunQueryCancelledReasonString) Field() stepRunPrismaFields { + return stepRunFieldCancelledReason } // base struct -type stepRunResultArchiveQueryCancelledErrorString struct{} +type stepRunQueryCancelledErrorString struct{} // Set the optional value of CancelledError -func (r stepRunResultArchiveQueryCancelledErrorString) Set(value string) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledErrorString) Set(value string) stepRunSetParam { - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "cancelledError", Value: value, @@ -142704,20 +142931,20 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Set(value string) stepRun } // Set the optional value of CancelledError dynamically -func (r stepRunResultArchiveQueryCancelledErrorString) SetIfPresent(value *String) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledErrorString) SetIfPresent(value *String) stepRunSetParam { if value == nil { - return stepRunResultArchiveSetParam{} + return stepRunSetParam{} } return r.Set(*value) } // Set the optional value of CancelledError dynamically -func (r stepRunResultArchiveQueryCancelledErrorString) SetOptional(value *String) stepRunResultArchiveSetParam { +func (r stepRunQueryCancelledErrorString) SetOptional(value *String) stepRunSetParam { if value == nil { var v *string - return stepRunResultArchiveSetParam{ + return stepRunSetParam{ data: builder.Field{ Name: "cancelledError", Value: v, @@ -142728,9 +142955,9 @@ func (r stepRunResultArchiveQueryCancelledErrorString) SetOptional(value *String return r.Set(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Equals(value string) stepRunResultArchiveWithPrismaCancelledErrorEqualsParam { +func (r stepRunQueryCancelledErrorString) Equals(value string) stepRunWithPrismaCancelledErrorEqualsParam { - return stepRunResultArchiveWithPrismaCancelledErrorEqualsParam{ + return stepRunWithPrismaCancelledErrorEqualsParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142743,15 +142970,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Equals(value string) step } } -func (r stepRunResultArchiveQueryCancelledErrorString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaCancelledErrorEqualsParam { +func (r stepRunQueryCancelledErrorString) EqualsIfPresent(value *string) stepRunWithPrismaCancelledErrorEqualsParam { if value == nil { - return stepRunResultArchiveWithPrismaCancelledErrorEqualsParam{} + return stepRunWithPrismaCancelledErrorEqualsParam{} } return r.Equals(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) EqualsOptional(value *String) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) EqualsOptional(value *String) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142764,9 +142991,9 @@ func (r stepRunResultArchiveQueryCancelledErrorString) EqualsOptional(value *Str } } -func (r stepRunResultArchiveQueryCancelledErrorString) IsNull() stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) IsNull() stepRunDefaultParam { var str *string = nil - return stepRunResultArchiveDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142779,8 +143006,8 @@ func (r stepRunResultArchiveQueryCancelledErrorString) IsNull() stepRunResultArc } } -func (r stepRunResultArchiveQueryCancelledErrorString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Value: direction, @@ -142788,8 +143015,8 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Order(direction SortOrder } } -func (r stepRunResultArchiveQueryCancelledErrorString) Cursor(cursor string) stepRunResultArchiveCursorParam { - return stepRunResultArchiveCursorParam{ +func (r stepRunQueryCancelledErrorString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ Name: "cancelledError", Value: cursor, @@ -142797,8 +143024,8 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Cursor(cursor string) ste } } -func (r stepRunResultArchiveQueryCancelledErrorString) In(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142811,15 +143038,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) In(value []string) stepRu } } -func (r stepRunResultArchiveQueryCancelledErrorString) InIfPresent(value []string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) InIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r stepRunResultArchiveQueryCancelledErrorString) NotIn(value []string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142832,15 +143059,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) NotIn(value []string) ste } } -func (r stepRunResultArchiveQueryCancelledErrorString) NotInIfPresent(value []string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) NotInIfPresent(value []string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Lt(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142853,15 +143080,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Lt(value string) stepRunR } } -func (r stepRunResultArchiveQueryCancelledErrorString) LtIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Lte(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142874,15 +143101,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Lte(value string) stepRun } } -func (r stepRunResultArchiveQueryCancelledErrorString) LteIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Gt(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142895,15 +143122,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Gt(value string) stepRunR } } -func (r stepRunResultArchiveQueryCancelledErrorString) GtIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Gte(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142916,15 +143143,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Gte(value string) stepRun } } -func (r stepRunResultArchiveQueryCancelledErrorString) GteIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Contains(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142937,15 +143164,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Contains(value string) st } } -func (r stepRunResultArchiveQueryCancelledErrorString) ContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Contains(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) StartsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142958,15 +143185,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) StartsWith(value string) } } -func (r stepRunResultArchiveQueryCancelledErrorString) StartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) StartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.StartsWith(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) EndsWith(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -142979,15 +143206,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) EndsWith(value string) st } } -func (r stepRunResultArchiveQueryCancelledErrorString) EndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) EndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.EndsWith(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Mode(value QueryMode) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -143000,15 +143227,15 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Mode(value QueryMode) ste } } -func (r stepRunResultArchiveQueryCancelledErrorString) ModeIfPresent(value *QueryMode) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Mode(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Not(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -143021,17 +143248,17 @@ func (r stepRunResultArchiveQueryCancelledErrorString) Not(value string) stepRun } } -func (r stepRunResultArchiveQueryCancelledErrorString) NotIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r stepRunResultArchiveQueryCancelledErrorString) HasPrefix(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -143045,17 +143272,17 @@ func (r stepRunResultArchiveQueryCancelledErrorString) HasPrefix(value string) s } // deprecated: Use StartsWithIfPresent instead. -func (r stepRunResultArchiveQueryCancelledErrorString) HasPrefixIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r stepRunResultArchiveQueryCancelledErrorString) HasSuffix(value string) stepRunResultArchiveDefaultParam { - return stepRunResultArchiveDefaultParam{ +func (r stepRunQueryCancelledErrorString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ Name: "cancelledError", Fields: []builder.Field{ @@ -143069,136 +143296,62 @@ func (r stepRunResultArchiveQueryCancelledErrorString) HasSuffix(value string) s } // deprecated: Use EndsWithIfPresent instead. -func (r stepRunResultArchiveQueryCancelledErrorString) HasSuffixIfPresent(value *string) stepRunResultArchiveDefaultParam { +func (r stepRunQueryCancelledErrorString) HasSuffixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return stepRunResultArchiveDefaultParam{} + return stepRunDefaultParam{} } return r.HasSuffix(*value) } -func (r stepRunResultArchiveQueryCancelledErrorString) Field() stepRunResultArchivePrismaFields { - return stepRunResultArchiveFieldCancelledError -} - -// Dispatcher acts as a namespaces to access query methods for the Dispatcher model -var Dispatcher = dispatcherQuery{} - -// dispatcherQuery exposes query functions for the dispatcher model -type dispatcherQuery struct { - - // ID - // - // @required - ID dispatcherQueryIDString - - // CreatedAt - // - // @required - CreatedAt dispatcherQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt dispatcherQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt dispatcherQueryDeletedAtDateTime - - // LastHeartbeatAt - // - // @optional - LastHeartbeatAt dispatcherQueryLastHeartbeatAtDateTime - - // IsActive - // - // @required - IsActive dispatcherQueryIsActiveBoolean - - Workers dispatcherQueryWorkersRelations -} - -func (dispatcherQuery) Not(params ...DispatcherWhereParam) dispatcherDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, - } +func (r stepRunQueryCancelledErrorString) Field() stepRunPrismaFields { + return stepRunFieldCancelledError } -func (dispatcherQuery) Or(params ...DispatcherWhereParam) dispatcherDefaultParam { - var fields []builder.Field +// base struct +type stepRunQueryCallerFilesJson struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the optional value of CallerFiles +func (r stepRunQueryCallerFilesJson) Set(value JSON) stepRunSetParam { - return dispatcherDefaultParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, + Name: "callerFiles", + Value: value, }, } -} - -func (dispatcherQuery) And(params ...DispatcherWhereParam) dispatcherDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } } -// base struct -type dispatcherQueryIDString struct{} - -// Set the required value of ID -func (r dispatcherQueryIDString) Set(value string) dispatcherSetParam { - - return dispatcherSetParam{ - data: builder.Field{ - Name: "id", - Value: value, - }, +// Set the optional value of CallerFiles dynamically +func (r stepRunQueryCallerFilesJson) SetIfPresent(value *JSON) stepRunSetParam { + if value == nil { + return stepRunSetParam{} } + return r.Set(*value) } -// Set the optional value of ID dynamically -func (r dispatcherQueryIDString) SetIfPresent(value *String) dispatcherSetParam { +// Set the optional value of CallerFiles dynamically +func (r stepRunQueryCallerFilesJson) SetOptional(value *JSON) stepRunSetParam { if value == nil { - return dispatcherSetParam{} + + var v *JSON + return stepRunSetParam{ + data: builder.Field{ + Name: "callerFiles", + Value: v, + }, + } } return r.Set(*value) } -func (r dispatcherQueryIDString) Equals(value string) dispatcherWithPrismaIDEqualsUniqueParam { +func (r stepRunQueryCallerFilesJson) Equals(value JSON) stepRunWithPrismaCallerFilesEqualsParam { - return dispatcherWithPrismaIDEqualsUniqueParam{ + return stepRunWithPrismaCallerFilesEqualsParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { Name: "equals", @@ -143209,59 +143362,67 @@ func (r dispatcherQueryIDString) Equals(value string) dispatcherWithPrismaIDEqua } } -func (r dispatcherQueryIDString) EqualsIfPresent(value *string) dispatcherWithPrismaIDEqualsUniqueParam { +func (r stepRunQueryCallerFilesJson) EqualsIfPresent(value *JSON) stepRunWithPrismaCallerFilesEqualsParam { if value == nil { - return dispatcherWithPrismaIDEqualsUniqueParam{} + return stepRunWithPrismaCallerFilesEqualsParam{} } return r.Equals(*value) } -func (r dispatcherQueryIDString) Order(direction SortOrder) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryCallerFilesJson) EqualsOptional(value *JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", - Value: direction, + Name: "callerFiles", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } } -func (r dispatcherQueryIDString) Cursor(cursor string) dispatcherCursorParam { - return dispatcherCursorParam{ +func (r stepRunQueryCallerFilesJson) IsNull() stepRunDefaultParam { + var str *string = nil + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", - Value: cursor, + Name: "callerFiles", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, }, } } -func (r dispatcherQueryIDString) In(value []string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, + Name: "callerFiles", + Value: direction, }, } } -func (r dispatcherQueryIDString) InIfPresent(value []string) dispatcherParamUnique { - if value == nil { - return dispatcherParamUnique{} +func (r stepRunQueryCallerFilesJson) Cursor(cursor JSON) stepRunCursorParam { + return stepRunCursorParam{ + data: builder.Field{ + Name: "callerFiles", + Value: cursor, + }, } - return r.In(value) } -func (r dispatcherQueryIDString) NotIn(value []string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) Path(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "notIn", + Name: "path", Value: value, }, }, @@ -143269,20 +143430,20 @@ func (r dispatcherQueryIDString) NotIn(value []string) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) NotInIfPresent(value []string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) PathIfPresent(value []string) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.NotIn(value) + return r.Path(value) } -func (r dispatcherQueryIDString) Lt(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) StringContains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "lt", + Name: "string_contains", Value: value, }, }, @@ -143290,20 +143451,20 @@ func (r dispatcherQueryIDString) Lt(value string) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) LtIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) StringContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.Lt(*value) + return r.StringContains(*value) } -func (r dispatcherQueryIDString) Lte(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) StringStartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "lte", + Name: "string_starts_with", Value: value, }, }, @@ -143311,20 +143472,20 @@ func (r dispatcherQueryIDString) Lte(value string) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) LteIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) StringStartsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.Lte(*value) + return r.StringStartsWith(*value) } -func (r dispatcherQueryIDString) Gt(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) StringEndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "gt", + Name: "string_ends_with", Value: value, }, }, @@ -143332,20 +143493,20 @@ func (r dispatcherQueryIDString) Gt(value string) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) GtIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) StringEndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.Gt(*value) + return r.StringEndsWith(*value) } -func (r dispatcherQueryIDString) Gte(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) ArrayContains(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "gte", + Name: "array_contains", Value: value, }, }, @@ -143353,20 +143514,20 @@ func (r dispatcherQueryIDString) Gte(value string) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) GteIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) ArrayContainsIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.Gte(*value) + return r.ArrayContains(*value) } -func (r dispatcherQueryIDString) Contains(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) ArrayStartsWith(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "contains", + Name: "array_starts_with", Value: value, }, }, @@ -143374,20 +143535,20 @@ func (r dispatcherQueryIDString) Contains(value string) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) ContainsIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) ArrayStartsWithIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.Contains(*value) + return r.ArrayStartsWith(*value) } -func (r dispatcherQueryIDString) StartsWith(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) ArrayEndsWith(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "startsWith", + Name: "array_ends_with", Value: value, }, }, @@ -143395,20 +143556,20 @@ func (r dispatcherQueryIDString) StartsWith(value string) dispatcherParamUnique } } -func (r dispatcherQueryIDString) StartsWithIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) ArrayEndsWithIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.StartsWith(*value) + return r.ArrayEndsWith(*value) } -func (r dispatcherQueryIDString) EndsWith(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) Lt(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -143416,20 +143577,20 @@ func (r dispatcherQueryIDString) EndsWith(value string) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) EndsWithIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) LtIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.EndsWith(*value) + return r.Lt(*value) } -func (r dispatcherQueryIDString) Mode(value QueryMode) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) Lte(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -143437,20 +143598,20 @@ func (r dispatcherQueryIDString) Mode(value QueryMode) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) ModeIfPresent(value *QueryMode) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) LteIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.Mode(*value) + return r.Lte(*value) } -func (r dispatcherQueryIDString) Not(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) Gt(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -143458,22 +143619,20 @@ func (r dispatcherQueryIDString) Not(value string) dispatcherParamUnique { } } -func (r dispatcherQueryIDString) NotIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) GtIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.Gt(*value) } -// deprecated: Use StartsWith instead. - -func (r dispatcherQueryIDString) HasPrefix(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) Gte(value JSON) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gte", Value: value, }, }, @@ -143481,23 +143640,20 @@ func (r dispatcherQueryIDString) HasPrefix(value string) dispatcherParamUnique { } } -// deprecated: Use StartsWithIfPresent instead. -func (r dispatcherQueryIDString) HasPrefixIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) GteIfPresent(value *JSON) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.HasPrefix(*value) + return r.Gte(*value) } -// deprecated: Use EndsWith instead. - -func (r dispatcherQueryIDString) HasSuffix(value string) dispatcherParamUnique { - return dispatcherParamUnique{ +func (r stepRunQueryCallerFilesJson) Not(value JSONNullValueFilter) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "id", + Name: "callerFiles", Fields: []builder.Field{ { - Name: "ends_with", + Name: "not", Value: value, }, }, @@ -143505,47 +143661,62 @@ func (r dispatcherQueryIDString) HasSuffix(value string) dispatcherParamUnique { } } -// deprecated: Use EndsWithIfPresent instead. -func (r dispatcherQueryIDString) HasSuffixIfPresent(value *string) dispatcherParamUnique { +func (r stepRunQueryCallerFilesJson) NotIfPresent(value *JSONNullValueFilter) stepRunDefaultParam { if value == nil { - return dispatcherParamUnique{} + return stepRunDefaultParam{} } - return r.HasSuffix(*value) + return r.Not(*value) } -func (r dispatcherQueryIDString) Field() dispatcherPrismaFields { - return dispatcherFieldID +func (r stepRunQueryCallerFilesJson) Field() stepRunPrismaFields { + return stepRunFieldCallerFiles } // base struct -type dispatcherQueryCreatedAtDateTime struct{} +type stepRunQueryGitRepoBranchString struct{} -// Set the required value of CreatedAt -func (r dispatcherQueryCreatedAtDateTime) Set(value DateTime) dispatcherSetParam { +// Set the optional value of GitRepoBranch +func (r stepRunQueryGitRepoBranchString) Set(value string) stepRunSetParam { - return dispatcherSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Value: value, }, } } -// Set the optional value of CreatedAt dynamically -func (r dispatcherQueryCreatedAtDateTime) SetIfPresent(value *DateTime) dispatcherSetParam { +// Set the optional value of GitRepoBranch dynamically +func (r stepRunQueryGitRepoBranchString) SetIfPresent(value *String) stepRunSetParam { if value == nil { - return dispatcherSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -func (r dispatcherQueryCreatedAtDateTime) Equals(value DateTime) dispatcherWithPrismaCreatedAtEqualsParam { +// Set the optional value of GitRepoBranch dynamically +func (r stepRunQueryGitRepoBranchString) SetOptional(value *String) stepRunSetParam { + if value == nil { - return dispatcherWithPrismaCreatedAtEqualsParam{ + var v *string + return stepRunSetParam{ + data: builder.Field{ + Name: "gitRepoBranch", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepRunQueryGitRepoBranchString) Equals(value string) stepRunWithPrismaGitRepoBranchEqualsParam { + + return stepRunWithPrismaGitRepoBranchEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { Name: "equals", @@ -143556,35 +143727,64 @@ func (r dispatcherQueryCreatedAtDateTime) Equals(value DateTime) dispatcherWithP } } -func (r dispatcherQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) dispatcherWithPrismaCreatedAtEqualsParam { +func (r stepRunQueryGitRepoBranchString) EqualsIfPresent(value *string) stepRunWithPrismaGitRepoBranchEqualsParam { if value == nil { - return dispatcherWithPrismaCreatedAtEqualsParam{} + return stepRunWithPrismaGitRepoBranchEqualsParam{} } return r.Equals(*value) } -func (r dispatcherQueryCreatedAtDateTime) Order(direction SortOrder) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) EqualsOptional(value *String) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r stepRunQueryGitRepoBranchString) IsNull() stepRunDefaultParam { + var str *string = nil + return stepRunDefaultParam{ + data: builder.Field{ + Name: "gitRepoBranch", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r stepRunQueryGitRepoBranchString) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "gitRepoBranch", Value: direction, }, } } -func (r dispatcherQueryCreatedAtDateTime) Cursor(cursor DateTime) dispatcherCursorParam { - return dispatcherCursorParam{ +func (r stepRunQueryGitRepoBranchString) Cursor(cursor string) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Value: cursor, }, } } -func (r dispatcherQueryCreatedAtDateTime) In(value []DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) In(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { Name: "in", @@ -143595,17 +143795,17 @@ func (r dispatcherQueryCreatedAtDateTime) In(value []DateTime) dispatcherDefault } } -func (r dispatcherQueryCreatedAtDateTime) InIfPresent(value []DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) InIfPresent(value []string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } return r.In(value) } -func (r dispatcherQueryCreatedAtDateTime) NotIn(value []DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) NotIn(value []string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { Name: "notIn", @@ -143616,17 +143816,17 @@ func (r dispatcherQueryCreatedAtDateTime) NotIn(value []DateTime) dispatcherDefa } } -func (r dispatcherQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) NotInIfPresent(value []string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } return r.NotIn(value) } -func (r dispatcherQueryCreatedAtDateTime) Lt(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) Lt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { Name: "lt", @@ -143637,17 +143837,17 @@ func (r dispatcherQueryCreatedAtDateTime) Lt(value DateTime) dispatcherDefaultPa } } -func (r dispatcherQueryCreatedAtDateTime) LtIfPresent(value *DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) LtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } return r.Lt(*value) } -func (r dispatcherQueryCreatedAtDateTime) Lte(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) Lte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { Name: "lte", @@ -143658,17 +143858,17 @@ func (r dispatcherQueryCreatedAtDateTime) Lte(value DateTime) dispatcherDefaultP } } -func (r dispatcherQueryCreatedAtDateTime) LteIfPresent(value *DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) LteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } return r.Lte(*value) } -func (r dispatcherQueryCreatedAtDateTime) Gt(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) Gt(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { Name: "gt", @@ -143679,17 +143879,17 @@ func (r dispatcherQueryCreatedAtDateTime) Gt(value DateTime) dispatcherDefaultPa } } -func (r dispatcherQueryCreatedAtDateTime) GtIfPresent(value *DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) GtIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } return r.Gt(*value) } -func (r dispatcherQueryCreatedAtDateTime) Gte(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) Gte(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { Name: "gte", @@ -143700,20 +143900,20 @@ func (r dispatcherQueryCreatedAtDateTime) Gte(value DateTime) dispatcherDefaultP } } -func (r dispatcherQueryCreatedAtDateTime) GteIfPresent(value *DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) GteIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } return r.Gte(*value) } -func (r dispatcherQueryCreatedAtDateTime) Not(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) Contains(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -143721,22 +143921,41 @@ func (r dispatcherQueryCreatedAtDateTime) Not(value DateTime) dispatcherDefaultP } } -func (r dispatcherQueryCreatedAtDateTime) NotIfPresent(value *DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) ContainsIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r stepRunQueryGitRepoBranchString) StartsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "gitRepoBranch", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r dispatcherQueryCreatedAtDateTime) Before(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) StartsWithIfPresent(value *string) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r stepRunQueryGitRepoBranchString) EndsWith(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -143744,23 +143963,41 @@ func (r dispatcherQueryCreatedAtDateTime) Before(value DateTime) dispatcherDefau } } -// deprecated: Use LtIfPresent instead. -func (r dispatcherQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) EndsWithIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r stepRunQueryGitRepoBranchString) Mode(value QueryMode) stepRunDefaultParam { + return stepRunDefaultParam{ + data: builder.Field{ + Name: "gitRepoBranch", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r dispatcherQueryCreatedAtDateTime) After(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) ModeIfPresent(value *QueryMode) stepRunDefaultParam { + if value == nil { + return stepRunDefaultParam{} + } + return r.Mode(*value) +} + +func (r stepRunQueryGitRepoBranchString) Not(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -143768,23 +144005,22 @@ func (r dispatcherQueryCreatedAtDateTime) After(value DateTime) dispatcherDefaul } } -// deprecated: Use GtIfPresent instead. -func (r dispatcherQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) dispatcherDefaultParam { +func (r stepRunQueryGitRepoBranchString) NotIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r dispatcherQueryCreatedAtDateTime) BeforeEquals(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) HasPrefix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -143792,23 +144028,23 @@ func (r dispatcherQueryCreatedAtDateTime) BeforeEquals(value DateTime) dispatche } } -// deprecated: Use LteIfPresent instead. -func (r dispatcherQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) dispatcherDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunQueryGitRepoBranchString) HasPrefixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r dispatcherQueryCreatedAtDateTime) AfterEquals(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQueryGitRepoBranchString) HasSuffix(value string) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "gitRepoBranch", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -143816,47 +144052,47 @@ func (r dispatcherQueryCreatedAtDateTime) AfterEquals(value DateTime) dispatcher } } -// deprecated: Use GteIfPresent instead. -func (r dispatcherQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) dispatcherDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunQueryGitRepoBranchString) HasSuffixIfPresent(value *string) stepRunDefaultParam { if value == nil { - return dispatcherDefaultParam{} + return stepRunDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r dispatcherQueryCreatedAtDateTime) Field() dispatcherPrismaFields { - return dispatcherFieldCreatedAt +func (r stepRunQueryGitRepoBranchString) Field() stepRunPrismaFields { + return stepRunFieldGitRepoBranch } // base struct -type dispatcherQueryUpdatedAtDateTime struct{} +type stepRunQuerySemaphoreReleasedBoolean struct{} -// Set the required value of UpdatedAt -func (r dispatcherQueryUpdatedAtDateTime) Set(value DateTime) dispatcherSetParam { +// Set the required value of SemaphoreReleased +func (r stepRunQuerySemaphoreReleasedBoolean) Set(value bool) stepRunSetParam { - return dispatcherSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "semaphoreReleased", Value: value, }, } } -// Set the optional value of UpdatedAt dynamically -func (r dispatcherQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) dispatcherSetParam { +// Set the optional value of SemaphoreReleased dynamically +func (r stepRunQuerySemaphoreReleasedBoolean) SetIfPresent(value *Boolean) stepRunSetParam { if value == nil { - return dispatcherSetParam{} + return stepRunSetParam{} } return r.Set(*value) } -func (r dispatcherQueryUpdatedAtDateTime) Equals(value DateTime) dispatcherWithPrismaUpdatedAtEqualsParam { +func (r stepRunQuerySemaphoreReleasedBoolean) Equals(value bool) stepRunWithPrismaSemaphoreReleasedEqualsParam { - return dispatcherWithPrismaUpdatedAtEqualsParam{ + return stepRunWithPrismaSemaphoreReleasedEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "semaphoreReleased", Fields: []builder.Field{ { Name: "equals", @@ -143867,1079 +144103,832 @@ func (r dispatcherQueryUpdatedAtDateTime) Equals(value DateTime) dispatcherWithP } } -func (r dispatcherQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) dispatcherWithPrismaUpdatedAtEqualsParam { +func (r stepRunQuerySemaphoreReleasedBoolean) EqualsIfPresent(value *bool) stepRunWithPrismaSemaphoreReleasedEqualsParam { if value == nil { - return dispatcherWithPrismaUpdatedAtEqualsParam{} + return stepRunWithPrismaSemaphoreReleasedEqualsParam{} } return r.Equals(*value) } -func (r dispatcherQueryUpdatedAtDateTime) Order(direction SortOrder) dispatcherDefaultParam { - return dispatcherDefaultParam{ +func (r stepRunQuerySemaphoreReleasedBoolean) Order(direction SortOrder) stepRunDefaultParam { + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "semaphoreReleased", Value: direction, }, } } -func (r dispatcherQueryUpdatedAtDateTime) Cursor(cursor DateTime) dispatcherCursorParam { - return dispatcherCursorParam{ +func (r stepRunQuerySemaphoreReleasedBoolean) Cursor(cursor bool) stepRunCursorParam { + return stepRunCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "semaphoreReleased", Value: cursor, }, } } -func (r dispatcherQueryUpdatedAtDateTime) In(value []DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "updatedAt", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, - }, - } +func (r stepRunQuerySemaphoreReleasedBoolean) Field() stepRunPrismaFields { + return stepRunFieldSemaphoreReleased } -func (r dispatcherQueryUpdatedAtDateTime) InIfPresent(value []DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} +// base struct +type stepRunQuerySemaphoreSlotWorkerSemaphoreSlot struct{} + +type stepRunQuerySemaphoreSlotRelations struct{} + +// StepRun -> SemaphoreSlot +// +// @relation +// @optional +func (stepRunQuerySemaphoreSlotRelations) Where( + params ...WorkerSemaphoreSlotWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.In(value) -} -func (r dispatcherQueryUpdatedAtDateTime) NotIn(value []DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "semaphoreSlot", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r dispatcherQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.NotIn(value) -} +func (stepRunQuerySemaphoreSlotRelations) Fetch() stepRunToSemaphoreSlotFindUnique { + var v stepRunToSemaphoreSlotFindUnique -func (r dispatcherQueryUpdatedAtDateTime) Lt(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "updatedAt", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, - }, - } + v.query.Operation = "query" + v.query.Method = "semaphoreSlot" + v.query.Outputs = workerSemaphoreSlotOutput + + return v } -func (r dispatcherQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} +func (r stepRunQuerySemaphoreSlotRelations) Link( + params WorkerSemaphoreSlotWhereParam, +) stepRunSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRunSetParam{} } - return r.Lt(*value) -} -func (r dispatcherQueryUpdatedAtDateTime) Lte(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + fields = append(fields, f) + + return stepRunSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "semaphoreSlot", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r dispatcherQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Lte(*value) -} +func (r stepRunQuerySemaphoreSlotRelations) Unlink() stepRunSetParam { + var v stepRunSetParam -func (r dispatcherQueryUpdatedAtDateTime) Gt(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + v = stepRunSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "semaphoreSlot", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } -} -func (r dispatcherQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Gt(*value) + return v } -func (r dispatcherQueryUpdatedAtDateTime) Gte(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "updatedAt", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, - } +func (r stepRunQuerySemaphoreSlotWorkerSemaphoreSlot) Field() stepRunPrismaFields { + return stepRunFieldSemaphoreSlot } -func (r dispatcherQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} +// base struct +type stepRunQueryArchivedResultsStepRunResultArchive struct{} + +type stepRunQueryArchivedResultsRelations struct{} + +// StepRun -> ArchivedResults +// +// @relation +// @required +func (stepRunQueryArchivedResultsRelations) Some( + params ...StepRunResultArchiveWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Gte(*value) -} -func (r dispatcherQueryUpdatedAtDateTime) Not(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "archivedResults", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r dispatcherQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Not(*value) -} +// StepRun -> ArchivedResults +// +// @relation +// @required +func (stepRunQueryArchivedResultsRelations) Every( + params ...StepRunResultArchiveWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -// deprecated: Use Lt instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r dispatcherQueryUpdatedAtDateTime) Before(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "archivedResults", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -// deprecated: Use LtIfPresent instead. -func (r dispatcherQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Before(*value) -} +// StepRun -> ArchivedResults +// +// @relation +// @required +func (stepRunQueryArchivedResultsRelations) None( + params ...StepRunResultArchiveWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -// deprecated: Use Gt instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r dispatcherQueryUpdatedAtDateTime) After(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "archivedResults", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -// deprecated: Use GtIfPresent instead. -func (r dispatcherQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.After(*value) -} - -// deprecated: Use Lte instead. - -func (r dispatcherQueryUpdatedAtDateTime) BeforeEquals(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "updatedAt", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use LteIfPresent instead. -func (r dispatcherQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.BeforeEquals(*value) -} - -// deprecated: Use Gte instead. - -func (r dispatcherQueryUpdatedAtDateTime) AfterEquals(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "updatedAt", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use GteIfPresent instead. -func (r dispatcherQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.AfterEquals(*value) -} +func (stepRunQueryArchivedResultsRelations) Fetch( -func (r dispatcherQueryUpdatedAtDateTime) Field() dispatcherPrismaFields { - return dispatcherFieldUpdatedAt -} + params ...StepRunResultArchiveWhereParam, -// base struct -type dispatcherQueryDeletedAtDateTime struct{} +) stepRunToArchivedResultsFindMany { + var v stepRunToArchivedResultsFindMany -// Set the optional value of DeletedAt -func (r dispatcherQueryDeletedAtDateTime) Set(value DateTime) dispatcherSetParam { + v.query.Operation = "query" + v.query.Method = "archivedResults" + v.query.Outputs = stepRunResultArchiveOutput - return dispatcherSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: value, - }, + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } -} - -// Set the optional value of DeletedAt dynamically -func (r dispatcherQueryDeletedAtDateTime) SetIfPresent(value *DateTime) dispatcherSetParam { - if value == nil { - return dispatcherSetParam{} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - return r.Set(*value) + return v } -// Set the optional value of DeletedAt dynamically -func (r dispatcherQueryDeletedAtDateTime) SetOptional(value *DateTime) dispatcherSetParam { - if value == nil { +func (r stepRunQueryArchivedResultsRelations) Link( + params ...StepRunResultArchiveWhereParam, +) stepRunSetParam { + var fields []builder.Field - var v *DateTime - return dispatcherSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, - }, - } + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) -} - -func (r dispatcherQueryDeletedAtDateTime) Equals(value DateTime) dispatcherWithPrismaDeletedAtEqualsParam { - - return dispatcherWithPrismaDeletedAtEqualsParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "archivedResults", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r dispatcherQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) dispatcherWithPrismaDeletedAtEqualsParam { - if value == nil { - return dispatcherWithPrismaDeletedAtEqualsParam{} - } - return r.Equals(*value) -} +func (r stepRunQueryArchivedResultsRelations) Unlink( + params ...StepRunResultArchiveWhereParam, +) stepRunSetParam { + var v stepRunSetParam -func (r dispatcherQueryDeletedAtDateTime) EqualsOptional(value *DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) } -} - -func (r dispatcherQueryDeletedAtDateTime) IsNull() dispatcherDefaultParam { - var str *string = nil - return dispatcherDefaultParam{ + v = stepRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "archivedResults", Fields: []builder.Field{ { - Name: "equals", - Value: str, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } -} -func (r dispatcherQueryDeletedAtDateTime) Order(direction SortOrder) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Value: direction, - }, - } + return v } -func (r dispatcherQueryDeletedAtDateTime) Cursor(cursor DateTime) dispatcherCursorParam { - return dispatcherCursorParam{ - data: builder.Field{ - Name: "deletedAt", - Value: cursor, - }, - } +func (r stepRunQueryArchivedResultsStepRunResultArchive) Field() stepRunPrismaFields { + return stepRunFieldArchivedResults } -func (r dispatcherQueryDeletedAtDateTime) In(value []DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "in", - Value: value, - }, - }, - }, - } -} +// base struct +type stepRunQueryStreamEventsStreamEvent struct{} -func (r dispatcherQueryDeletedAtDateTime) InIfPresent(value []DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.In(value) -} +type stepRunQueryStreamEventsRelations struct{} -func (r dispatcherQueryDeletedAtDateTime) NotIn(value []DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "notIn", - Value: value, - }, - }, - }, - } -} +// StepRun -> StreamEvents +// +// @relation +// @required +func (stepRunQueryStreamEventsRelations) Some( + params ...StreamEventWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -func (r dispatcherQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} + for _, q := range params { + fields = append(fields, q.field()) } - return r.NotIn(value) -} -func (r dispatcherQueryDeletedAtDateTime) Lt(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "streamEvents", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r dispatcherQueryDeletedAtDateTime) LtIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Lt(*value) -} - -func (r dispatcherQueryDeletedAtDateTime) Lte(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, - } -} +// StepRun -> StreamEvents +// +// @relation +// @required +func (stepRunQueryStreamEventsRelations) Every( + params ...StreamEventWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -func (r dispatcherQueryDeletedAtDateTime) LteIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} + for _, q := range params { + fields = append(fields, q.field()) } - return r.Lte(*value) -} -func (r dispatcherQueryDeletedAtDateTime) Gt(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "streamEvents", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r dispatcherQueryDeletedAtDateTime) GtIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} +// StepRun -> StreamEvents +// +// @relation +// @required +func (stepRunQueryStreamEventsRelations) None( + params ...StreamEventWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Gt(*value) -} -func (r dispatcherQueryDeletedAtDateTime) Gte(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "streamEvents", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r dispatcherQueryDeletedAtDateTime) GteIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Gte(*value) -} +func (stepRunQueryStreamEventsRelations) Fetch( -func (r dispatcherQueryDeletedAtDateTime) Not(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, - }, - } -} + params ...StreamEventWhereParam, -func (r dispatcherQueryDeletedAtDateTime) NotIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Not(*value) -} +) stepRunToStreamEventsFindMany { + var v stepRunToStreamEventsFindMany -// deprecated: Use Lt instead. + v.query.Operation = "query" + v.query.Method = "streamEvents" + v.query.Outputs = streamEventOutput -func (r dispatcherQueryDeletedAtDateTime) Before(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, - }, + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } -} -// deprecated: Use LtIfPresent instead. -func (r dispatcherQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - return r.Before(*value) -} - -// deprecated: Use Gt instead. -func (r dispatcherQueryDeletedAtDateTime) After(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, - }, - } + return v } -// deprecated: Use GtIfPresent instead. -func (r dispatcherQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.After(*value) -} +func (r stepRunQueryStreamEventsRelations) Link( + params ...StreamEventWhereParam, +) stepRunSetParam { + var fields []builder.Field -// deprecated: Use Lte instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r dispatcherQueryDeletedAtDateTime) BeforeEquals(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "streamEvents", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -// deprecated: Use LteIfPresent instead. -func (r dispatcherQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.BeforeEquals(*value) -} - -// deprecated: Use Gte instead. +func (r stepRunQueryStreamEventsRelations) Unlink( + params ...StreamEventWhereParam, +) stepRunSetParam { + var v stepRunSetParam -func (r dispatcherQueryDeletedAtDateTime) AfterEquals(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepRunSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "streamEvents", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } -} -// deprecated: Use GteIfPresent instead. -func (r dispatcherQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.AfterEquals(*value) + return v } -func (r dispatcherQueryDeletedAtDateTime) Field() dispatcherPrismaFields { - return dispatcherFieldDeletedAt +func (r stepRunQueryStreamEventsStreamEvent) Field() stepRunPrismaFields { + return stepRunFieldStreamEvents } // base struct -type dispatcherQueryLastHeartbeatAtDateTime struct{} - -// Set the optional value of LastHeartbeatAt -func (r dispatcherQueryLastHeartbeatAtDateTime) Set(value DateTime) dispatcherSetParam { - - return dispatcherSetParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Value: value, - }, - } - -} - -// Set the optional value of LastHeartbeatAt dynamically -func (r dispatcherQueryLastHeartbeatAtDateTime) SetIfPresent(value *DateTime) dispatcherSetParam { - if value == nil { - return dispatcherSetParam{} - } +type stepRunQueryLogsLogLine struct{} - return r.Set(*value) -} +type stepRunQueryLogsRelations struct{} -// Set the optional value of LastHeartbeatAt dynamically -func (r dispatcherQueryLastHeartbeatAtDateTime) SetOptional(value *DateTime) dispatcherSetParam { - if value == nil { +// StepRun -> Logs +// +// @relation +// @required +func (stepRunQueryLogsRelations) Some( + params ...LogLineWhereParam, +) stepRunDefaultParam { + var fields []builder.Field - var v *DateTime - return dispatcherSetParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Value: v, - }, - } + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) -} - -func (r dispatcherQueryLastHeartbeatAtDateTime) Equals(value DateTime) dispatcherWithPrismaLastHeartbeatAtEqualsParam { - - return dispatcherWithPrismaLastHeartbeatAtEqualsParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "logs", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r dispatcherQueryLastHeartbeatAtDateTime) EqualsIfPresent(value *DateTime) dispatcherWithPrismaLastHeartbeatAtEqualsParam { - if value == nil { - return dispatcherWithPrismaLastHeartbeatAtEqualsParam{} - } - return r.Equals(*value) -} +// StepRun -> Logs +// +// @relation +// @required +func (stepRunQueryLogsRelations) Every( + params ...LogLineWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -func (r dispatcherQueryLastHeartbeatAtDateTime) EqualsOptional(value *DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r dispatcherQueryLastHeartbeatAtDateTime) IsNull() dispatcherDefaultParam { - var str *string = nil - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "logs", Fields: []builder.Field{ { - Name: "equals", - Value: str, + Name: "every", + Fields: fields, }, }, }, } } -func (r dispatcherQueryLastHeartbeatAtDateTime) Order(direction SortOrder) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Value: direction, - }, - } -} +// StepRun -> Logs +// +// @relation +// @required +func (stepRunQueryLogsRelations) None( + params ...LogLineWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -func (r dispatcherQueryLastHeartbeatAtDateTime) Cursor(cursor DateTime) dispatcherCursorParam { - return dispatcherCursorParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Value: cursor, - }, + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r dispatcherQueryLastHeartbeatAtDateTime) In(value []DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "logs", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r dispatcherQueryLastHeartbeatAtDateTime) InIfPresent(value []DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.In(value) -} +func (stepRunQueryLogsRelations) Fetch( -func (r dispatcherQueryLastHeartbeatAtDateTime) NotIn(value []DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "notIn", - Value: value, - }, - }, - }, - } -} + params ...LogLineWhereParam, -func (r dispatcherQueryLastHeartbeatAtDateTime) NotInIfPresent(value []DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.NotIn(value) -} +) stepRunToLogsFindMany { + var v stepRunToLogsFindMany -func (r dispatcherQueryLastHeartbeatAtDateTime) Lt(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, - }, - } -} + v.query.Operation = "query" + v.query.Method = "logs" + v.query.Outputs = logLineOutput -func (r dispatcherQueryLastHeartbeatAtDateTime) LtIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Lt(*value) -} -func (r dispatcherQueryLastHeartbeatAtDateTime) Lte(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } -} -func (r dispatcherQueryLastHeartbeatAtDateTime) LteIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Lte(*value) + return v } -func (r dispatcherQueryLastHeartbeatAtDateTime) Gt(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, - }, - } -} +func (r stepRunQueryLogsRelations) Link( + params ...LogLineWhereParam, +) stepRunSetParam { + var fields []builder.Field -func (r dispatcherQueryLastHeartbeatAtDateTime) GtIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} + for _, q := range params { + fields = append(fields, q.field()) } - return r.Gt(*value) -} -func (r dispatcherQueryLastHeartbeatAtDateTime) Gte(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "logs", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r dispatcherQueryLastHeartbeatAtDateTime) GteIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Gte(*value) -} +func (r stepRunQueryLogsRelations) Unlink( + params ...LogLineWhereParam, +) stepRunSetParam { + var v stepRunSetParam -func (r dispatcherQueryLastHeartbeatAtDateTime) Not(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepRunSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "logs", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r dispatcherQueryLastHeartbeatAtDateTime) NotIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Not(*value) +func (r stepRunQueryLogsLogLine) Field() stepRunPrismaFields { + return stepRunFieldLogs } -// deprecated: Use Lt instead. +// base struct +type stepRunQueryChildWorkflowRunsWorkflowRun struct{} -func (r dispatcherQueryLastHeartbeatAtDateTime) Before(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, - }, - } -} +type stepRunQueryChildWorkflowRunsRelations struct{} -// deprecated: Use LtIfPresent instead. -func (r dispatcherQueryLastHeartbeatAtDateTime) BeforeIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.Before(*value) -} +// StepRun -> ChildWorkflowRuns +// +// @relation +// @required +func (stepRunQueryChildWorkflowRunsRelations) Some( + params ...WorkflowRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -// deprecated: Use Gt instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r dispatcherQueryLastHeartbeatAtDateTime) After(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "childWorkflowRuns", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -// deprecated: Use GtIfPresent instead. -func (r dispatcherQueryLastHeartbeatAtDateTime) AfterIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.After(*value) -} +// StepRun -> ChildWorkflowRuns +// +// @relation +// @required +func (stepRunQueryChildWorkflowRunsRelations) Every( + params ...WorkflowRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -// deprecated: Use Lte instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r dispatcherQueryLastHeartbeatAtDateTime) BeforeEquals(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "childWorkflowRuns", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -// deprecated: Use LteIfPresent instead. -func (r dispatcherQueryLastHeartbeatAtDateTime) BeforeEqualsIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.BeforeEquals(*value) -} +// StepRun -> ChildWorkflowRuns +// +// @relation +// @required +func (stepRunQueryChildWorkflowRunsRelations) None( + params ...WorkflowRunWhereParam, +) stepRunDefaultParam { + var fields []builder.Field -// deprecated: Use Gte instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r dispatcherQueryLastHeartbeatAtDateTime) AfterEquals(value DateTime) dispatcherDefaultParam { - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "childWorkflowRuns", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -// deprecated: Use GteIfPresent instead. -func (r dispatcherQueryLastHeartbeatAtDateTime) AfterEqualsIfPresent(value *DateTime) dispatcherDefaultParam { - if value == nil { - return dispatcherDefaultParam{} - } - return r.AfterEquals(*value) -} +func (stepRunQueryChildWorkflowRunsRelations) Fetch( -func (r dispatcherQueryLastHeartbeatAtDateTime) Field() dispatcherPrismaFields { - return dispatcherFieldLastHeartbeatAt -} + params ...WorkflowRunWhereParam, -// base struct -type dispatcherQueryIsActiveBoolean struct{} +) stepRunToChildWorkflowRunsFindMany { + var v stepRunToChildWorkflowRunsFindMany -// Set the required value of IsActive -func (r dispatcherQueryIsActiveBoolean) Set(value bool) dispatcherSetParam { + v.query.Operation = "query" + v.query.Method = "childWorkflowRuns" + v.query.Outputs = workflowRunOutput - return dispatcherSetParam{ - data: builder.Field{ - Name: "isActive", - Value: value, - }, + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } -} - -// Set the optional value of IsActive dynamically -func (r dispatcherQueryIsActiveBoolean) SetIfPresent(value *Boolean) dispatcherSetParam { - if value == nil { - return dispatcherSetParam{} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - return r.Set(*value) + return v } -func (r dispatcherQueryIsActiveBoolean) Equals(value bool) dispatcherWithPrismaIsActiveEqualsParam { +func (r stepRunQueryChildWorkflowRunsRelations) Link( + params ...WorkflowRunWhereParam, +) stepRunSetParam { + var fields []builder.Field - return dispatcherWithPrismaIsActiveEqualsParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunSetParam{ data: builder.Field{ - Name: "isActive", + Name: "childWorkflowRuns", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r dispatcherQueryIsActiveBoolean) EqualsIfPresent(value *bool) dispatcherWithPrismaIsActiveEqualsParam { - if value == nil { - return dispatcherWithPrismaIsActiveEqualsParam{} - } - return r.Equals(*value) -} +func (r stepRunQueryChildWorkflowRunsRelations) Unlink( + params ...WorkflowRunWhereParam, +) stepRunSetParam { + var v stepRunSetParam -func (r dispatcherQueryIsActiveBoolean) Order(direction SortOrder) dispatcherDefaultParam { - return dispatcherDefaultParam{ - data: builder.Field{ - Name: "isActive", - Value: direction, - }, + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) } -} - -func (r dispatcherQueryIsActiveBoolean) Cursor(cursor bool) dispatcherCursorParam { - return dispatcherCursorParam{ + v = stepRunSetParam{ data: builder.Field{ - Name: "isActive", - Value: cursor, + Name: "childWorkflowRuns", + Fields: []builder.Field{ + { + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), + }, + }, }, } + + return v } -func (r dispatcherQueryIsActiveBoolean) Field() dispatcherPrismaFields { - return dispatcherFieldIsActive +func (r stepRunQueryChildWorkflowRunsWorkflowRun) Field() stepRunPrismaFields { + return stepRunFieldChildWorkflowRuns } // base struct -type dispatcherQueryWorkersWorker struct{} +type stepRunQueryChildSchedulesWorkflowTriggerScheduledRef struct{} -type dispatcherQueryWorkersRelations struct{} +type stepRunQueryChildSchedulesRelations struct{} -// Dispatcher -> Workers +// StepRun -> ChildSchedules // // @relation // @required -func (dispatcherQueryWorkersRelations) Some( - params ...WorkerWhereParam, -) dispatcherDefaultParam { +func (stepRunQueryChildSchedulesRelations) Some( + params ...WorkflowTriggerScheduledRefWhereParam, +) stepRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "workers", + Name: "childSchedules", Fields: []builder.Field{ { Name: "some", @@ -144950,22 +144939,22 @@ func (dispatcherQueryWorkersRelations) Some( } } -// Dispatcher -> Workers +// StepRun -> ChildSchedules // // @relation // @required -func (dispatcherQueryWorkersRelations) Every( - params ...WorkerWhereParam, -) dispatcherDefaultParam { +func (stepRunQueryChildSchedulesRelations) Every( + params ...WorkflowTriggerScheduledRefWhereParam, +) stepRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "workers", + Name: "childSchedules", Fields: []builder.Field{ { Name: "every", @@ -144976,22 +144965,22 @@ func (dispatcherQueryWorkersRelations) Every( } } -// Dispatcher -> Workers +// StepRun -> ChildSchedules // // @relation // @required -func (dispatcherQueryWorkersRelations) None( - params ...WorkerWhereParam, -) dispatcherDefaultParam { +func (stepRunQueryChildSchedulesRelations) None( + params ...WorkflowTriggerScheduledRefWhereParam, +) stepRunDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return dispatcherDefaultParam{ + return stepRunDefaultParam{ data: builder.Field{ - Name: "workers", + Name: "childSchedules", Fields: []builder.Field{ { Name: "none", @@ -145002,16 +144991,16 @@ func (dispatcherQueryWorkersRelations) None( } } -func (dispatcherQueryWorkersRelations) Fetch( +func (stepRunQueryChildSchedulesRelations) Fetch( - params ...WorkerWhereParam, + params ...WorkflowTriggerScheduledRefWhereParam, -) dispatcherToWorkersFindMany { - var v dispatcherToWorkersFindMany +) stepRunToChildSchedulesFindMany { + var v stepRunToChildSchedulesFindMany v.query.Operation = "query" - v.query.Method = "workers" - v.query.Outputs = workerOutput + v.query.Method = "childSchedules" + v.query.Outputs = workflowTriggerScheduledRefOutput var where []builder.Field for _, q := range params { @@ -145036,18 +145025,18 @@ func (dispatcherQueryWorkersRelations) Fetch( return v } -func (r dispatcherQueryWorkersRelations) Link( - params ...WorkerWhereParam, -) dispatcherSetParam { +func (r stepRunQueryChildSchedulesRelations) Link( + params ...WorkflowTriggerScheduledRefWhereParam, +) stepRunSetParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return dispatcherSetParam{ + return stepRunSetParam{ data: builder.Field{ - Name: "workers", + Name: "childSchedules", Fields: []builder.Field{ { Name: "connect", @@ -145061,18 +145050,18 @@ func (r dispatcherQueryWorkersRelations) Link( } } -func (r dispatcherQueryWorkersRelations) Unlink( - params ...WorkerWhereParam, -) dispatcherSetParam { - var v dispatcherSetParam +func (r stepRunQueryChildSchedulesRelations) Unlink( + params ...WorkflowTriggerScheduledRefWhereParam, +) stepRunSetParam { + var v stepRunSetParam var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - v = dispatcherSetParam{ + v = stepRunSetParam{ data: builder.Field{ - Name: "workers", + Name: "childSchedules", Fields: []builder.Field{ { Name: "disconnect", @@ -145087,62 +145076,245 @@ func (r dispatcherQueryWorkersRelations) Unlink( return v } -func (r dispatcherQueryWorkersWorker) Field() dispatcherPrismaFields { - return dispatcherFieldWorkers +func (r stepRunQueryChildSchedulesWorkflowTriggerScheduledRef) Field() stepRunPrismaFields { + return stepRunFieldChildSchedules } -// Ticker acts as a namespaces to access query methods for the Ticker model -var Ticker = tickerQuery{} +// base struct +type stepRunQueryEventsStepRunEvent struct{} -// tickerQuery exposes query functions for the ticker model -type tickerQuery struct { +type stepRunQueryEventsRelations struct{} + +// StepRun -> Events +// +// @relation +// @required +func (stepRunQueryEventsRelations) Some( + params ...StepRunEventWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunDefaultParam{ + data: builder.Field{ + Name: "events", + Fields: []builder.Field{ + { + Name: "some", + Fields: fields, + }, + }, + }, + } +} + +// StepRun -> Events +// +// @relation +// @required +func (stepRunQueryEventsRelations) Every( + params ...StepRunEventWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunDefaultParam{ + data: builder.Field{ + Name: "events", + Fields: []builder.Field{ + { + Name: "every", + Fields: fields, + }, + }, + }, + } +} + +// StepRun -> Events +// +// @relation +// @required +func (stepRunQueryEventsRelations) None( + params ...StepRunEventWhereParam, +) stepRunDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunDefaultParam{ + data: builder.Field{ + Name: "events", + Fields: []builder.Field{ + { + Name: "none", + Fields: fields, + }, + }, + }, + } +} + +func (stepRunQueryEventsRelations) Fetch( + + params ...StepRunEventWhereParam, + +) stepRunToEventsFindMany { + var v stepRunToEventsFindMany + + v.query.Operation = "query" + v.query.Method = "events" + v.query.Outputs = stepRunEventOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRunQueryEventsRelations) Link( + params ...StepRunEventWhereParam, +) stepRunSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunSetParam{ + data: builder.Field{ + Name: "events", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, + }, + }, + }, + } +} + +func (r stepRunQueryEventsRelations) Unlink( + params ...StepRunEventWhereParam, +) stepRunSetParam { + var v stepRunSetParam + + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = stepRunSetParam{ + data: builder.Field{ + Name: "events", + Fields: []builder.Field{ + { + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), + }, + }, + }, + } + + return v +} + +func (r stepRunQueryEventsStepRunEvent) Field() stepRunPrismaFields { + return stepRunFieldEvents +} + +// StepRunEvent acts as a namespaces to access query methods for the StepRunEvent model +var StepRunEvent = stepRunEventQuery{} + +// stepRunEventQuery exposes query functions for the stepRunEvent model +type stepRunEventQuery struct { // ID // // @required - ID tickerQueryIDString + // @unique + ID stepRunEventQueryIDBigInt - // CreatedAt + // TimeFirstSeen // // @required - CreatedAt tickerQueryCreatedAtDateTime + TimeFirstSeen stepRunEventQueryTimeFirstSeenDateTime - // UpdatedAt + // TimeLastSeen // // @required - UpdatedAt tickerQueryUpdatedAtDateTime + TimeLastSeen stepRunEventQueryTimeLastSeenDateTime - // LastHeartbeatAt - // - // @optional - LastHeartbeatAt tickerQueryLastHeartbeatAtDateTime + StepRun stepRunEventQueryStepRunRelations - // IsActive + // StepRunID // // @required - IsActive tickerQueryIsActiveBoolean - - JobRuns tickerQueryJobRunsRelations + StepRunID stepRunEventQueryStepRunIDString - StepRuns tickerQueryStepRunsRelations + // Reason + // + // @required + Reason stepRunEventQueryReasonStepRunEventReason - Crons tickerQueryCronsRelations + // Severity + // + // @required + Severity stepRunEventQuerySeverityStepRunEventSeverity - Scheduled tickerQueryScheduledRelations + // Message + // + // @required + Message stepRunEventQueryMessageString - GroupKeyRuns tickerQueryGroupKeyRunsRelations + // Count + // + // @required + Count stepRunEventQueryCountInt - TenantAlerts tickerQueryTenantAlertsRelations + // Data + // + // @optional + Data stepRunEventQueryDataJson } -func (tickerQuery) Not(params ...TickerWhereParam) tickerDefaultParam { +func (stepRunEventQuery) Not(params ...StepRunEventWhereParam) stepRunEventDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tickerDefaultParam{ + return stepRunEventDefaultParam{ data: builder.Field{ Name: "NOT", List: true, @@ -145152,14 +145324,14 @@ func (tickerQuery) Not(params ...TickerWhereParam) tickerDefaultParam { } } -func (tickerQuery) Or(params ...TickerWhereParam) tickerDefaultParam { +func (stepRunEventQuery) Or(params ...StepRunEventWhereParam) stepRunEventDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tickerDefaultParam{ + return stepRunEventDefaultParam{ data: builder.Field{ Name: "OR", List: true, @@ -145169,14 +145341,14 @@ func (tickerQuery) Or(params ...TickerWhereParam) tickerDefaultParam { } } -func (tickerQuery) And(params ...TickerWhereParam) tickerDefaultParam { +func (stepRunEventQuery) And(params ...StepRunEventWhereParam) stepRunEventDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tickerDefaultParam{ + return stepRunEventDefaultParam{ data: builder.Field{ Name: "AND", List: true, @@ -145187,12 +145359,12 @@ func (tickerQuery) And(params ...TickerWhereParam) tickerDefaultParam { } // base struct -type tickerQueryIDString struct{} +type stepRunEventQueryIDBigInt struct{} // Set the required value of ID -func (r tickerQueryIDString) Set(value string) tickerSetParam { +func (r stepRunEventQueryIDBigInt) Set(value BigInt) stepRunEventSetParam { - return tickerSetParam{ + return stepRunEventSetParam{ data: builder.Field{ Name: "id", Value: value, @@ -145202,22 +145374,22 @@ func (r tickerQueryIDString) Set(value string) tickerSetParam { } // Set the optional value of ID dynamically -func (r tickerQueryIDString) SetIfPresent(value *String) tickerSetParam { +func (r stepRunEventQueryIDBigInt) SetIfPresent(value *BigInt) stepRunEventSetParam { if value == nil { - return tickerSetParam{} + return stepRunEventSetParam{} } return r.Set(*value) } -func (r tickerQueryIDString) Equals(value string) tickerWithPrismaIDEqualsUniqueParam { - - return tickerWithPrismaIDEqualsUniqueParam{ +// Increment the required value of ID +func (r stepRunEventQueryIDBigInt) Increment(value BigInt) stepRunEventSetParam { + return stepRunEventSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "increment", Value: value, }, }, @@ -145225,38 +145397,21 @@ func (r tickerQueryIDString) Equals(value string) tickerWithPrismaIDEqualsUnique } } -func (r tickerQueryIDString) EqualsIfPresent(value *string) tickerWithPrismaIDEqualsUniqueParam { +func (r stepRunEventQueryIDBigInt) IncrementIfPresent(value *BigInt) stepRunEventSetParam { if value == nil { - return tickerWithPrismaIDEqualsUniqueParam{} - } - return r.Equals(*value) -} - -func (r tickerQueryIDString) Order(direction SortOrder) tickerDefaultParam { - return tickerDefaultParam{ - data: builder.Field{ - Name: "id", - Value: direction, - }, - } -} - -func (r tickerQueryIDString) Cursor(cursor string) tickerCursorParam { - return tickerCursorParam{ - data: builder.Field{ - Name: "id", - Value: cursor, - }, + return stepRunEventSetParam{} } + return r.Increment(*value) } -func (r tickerQueryIDString) In(value []string) tickerParamUnique { - return tickerParamUnique{ +// Decrement the required value of ID +func (r stepRunEventQueryIDBigInt) Decrement(value BigInt) stepRunEventSetParam { + return stepRunEventSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "in", + builder.Field{ + Name: "decrement", Value: value, }, }, @@ -145264,20 +145419,21 @@ func (r tickerQueryIDString) In(value []string) tickerParamUnique { } } -func (r tickerQueryIDString) InIfPresent(value []string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) DecrementIfPresent(value *BigInt) stepRunEventSetParam { if value == nil { - return tickerParamUnique{} + return stepRunEventSetParam{} } - return r.In(value) + return r.Decrement(*value) } -func (r tickerQueryIDString) NotIn(value []string) tickerParamUnique { - return tickerParamUnique{ +// Multiply the required value of ID +func (r stepRunEventQueryIDBigInt) Multiply(value BigInt) stepRunEventSetParam { + return stepRunEventSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "notIn", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -145285,20 +145441,21 @@ func (r tickerQueryIDString) NotIn(value []string) tickerParamUnique { } } -func (r tickerQueryIDString) NotInIfPresent(value []string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) MultiplyIfPresent(value *BigInt) stepRunEventSetParam { if value == nil { - return tickerParamUnique{} + return stepRunEventSetParam{} } - return r.NotIn(value) + return r.Multiply(*value) } -func (r tickerQueryIDString) Lt(value string) tickerParamUnique { - return tickerParamUnique{ +// Divide the required value of ID +func (r stepRunEventQueryIDBigInt) Divide(value BigInt) stepRunEventSetParam { + return stepRunEventSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "lt", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -145306,20 +145463,21 @@ func (r tickerQueryIDString) Lt(value string) tickerParamUnique { } } -func (r tickerQueryIDString) LtIfPresent(value *string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) DivideIfPresent(value *BigInt) stepRunEventSetParam { if value == nil { - return tickerParamUnique{} + return stepRunEventSetParam{} } - return r.Lt(*value) + return r.Divide(*value) } -func (r tickerQueryIDString) Lte(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) Equals(value BigInt) stepRunEventWithPrismaIDEqualsUniqueParam { + + return stepRunEventWithPrismaIDEqualsUniqueParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "lte", + Name: "equals", Value: value, }, }, @@ -145327,62 +145485,38 @@ func (r tickerQueryIDString) Lte(value string) tickerParamUnique { } } -func (r tickerQueryIDString) LteIfPresent(value *string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) EqualsIfPresent(value *BigInt) stepRunEventWithPrismaIDEqualsUniqueParam { if value == nil { - return tickerParamUnique{} + return stepRunEventWithPrismaIDEqualsUniqueParam{} } - return r.Lte(*value) + return r.Equals(*value) } -func (r tickerQueryIDString) Gt(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, + Name: "id", + Value: direction, }, } } -func (r tickerQueryIDString) GtIfPresent(value *string) tickerParamUnique { - if value == nil { - return tickerParamUnique{} - } - return r.Gt(*value) -} - -func (r tickerQueryIDString) Gte(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) Cursor(cursor BigInt) stepRunEventCursorParam { + return stepRunEventCursorParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, + Name: "id", + Value: cursor, }, } } -func (r tickerQueryIDString) GteIfPresent(value *string) tickerParamUnique { - if value == nil { - return tickerParamUnique{} - } - return r.Gte(*value) -} - -func (r tickerQueryIDString) Contains(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) In(value []BigInt) stepRunEventParamUnique { + return stepRunEventParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "contains", + Name: "in", Value: value, }, }, @@ -145390,20 +145524,20 @@ func (r tickerQueryIDString) Contains(value string) tickerParamUnique { } } -func (r tickerQueryIDString) ContainsIfPresent(value *string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) InIfPresent(value []BigInt) stepRunEventParamUnique { if value == nil { - return tickerParamUnique{} + return stepRunEventParamUnique{} } - return r.Contains(*value) + return r.In(value) } -func (r tickerQueryIDString) StartsWith(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) NotIn(value []BigInt) stepRunEventParamUnique { + return stepRunEventParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "startsWith", + Name: "notIn", Value: value, }, }, @@ -145411,20 +145545,20 @@ func (r tickerQueryIDString) StartsWith(value string) tickerParamUnique { } } -func (r tickerQueryIDString) StartsWithIfPresent(value *string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) NotInIfPresent(value []BigInt) stepRunEventParamUnique { if value == nil { - return tickerParamUnique{} + return stepRunEventParamUnique{} } - return r.StartsWith(*value) + return r.NotIn(value) } -func (r tickerQueryIDString) EndsWith(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) Lt(value BigInt) stepRunEventParamUnique { + return stepRunEventParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -145432,20 +145566,20 @@ func (r tickerQueryIDString) EndsWith(value string) tickerParamUnique { } } -func (r tickerQueryIDString) EndsWithIfPresent(value *string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) LtIfPresent(value *BigInt) stepRunEventParamUnique { if value == nil { - return tickerParamUnique{} + return stepRunEventParamUnique{} } - return r.EndsWith(*value) + return r.Lt(*value) } -func (r tickerQueryIDString) Mode(value QueryMode) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) Lte(value BigInt) stepRunEventParamUnique { + return stepRunEventParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -145453,20 +145587,20 @@ func (r tickerQueryIDString) Mode(value QueryMode) tickerParamUnique { } } -func (r tickerQueryIDString) ModeIfPresent(value *QueryMode) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) LteIfPresent(value *BigInt) stepRunEventParamUnique { if value == nil { - return tickerParamUnique{} + return stepRunEventParamUnique{} } - return r.Mode(*value) + return r.Lte(*value) } -func (r tickerQueryIDString) Not(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) Gt(value BigInt) stepRunEventParamUnique { + return stepRunEventParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -145474,22 +145608,20 @@ func (r tickerQueryIDString) Not(value string) tickerParamUnique { } } -func (r tickerQueryIDString) NotIfPresent(value *string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) GtIfPresent(value *BigInt) stepRunEventParamUnique { if value == nil { - return tickerParamUnique{} + return stepRunEventParamUnique{} } - return r.Not(*value) + return r.Gt(*value) } -// deprecated: Use StartsWith instead. - -func (r tickerQueryIDString) HasPrefix(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) Gte(value BigInt) stepRunEventParamUnique { + return stepRunEventParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gte", Value: value, }, }, @@ -145497,23 +145629,20 @@ func (r tickerQueryIDString) HasPrefix(value string) tickerParamUnique { } } -// deprecated: Use StartsWithIfPresent instead. -func (r tickerQueryIDString) HasPrefixIfPresent(value *string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) GteIfPresent(value *BigInt) stepRunEventParamUnique { if value == nil { - return tickerParamUnique{} + return stepRunEventParamUnique{} } - return r.HasPrefix(*value) + return r.Gte(*value) } -// deprecated: Use EndsWith instead. - -func (r tickerQueryIDString) HasSuffix(value string) tickerParamUnique { - return tickerParamUnique{ +func (r stepRunEventQueryIDBigInt) Not(value BigInt) stepRunEventParamUnique { + return stepRunEventParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "ends_with", + Name: "not", Value: value, }, }, @@ -145521,47 +145650,46 @@ func (r tickerQueryIDString) HasSuffix(value string) tickerParamUnique { } } -// deprecated: Use EndsWithIfPresent instead. -func (r tickerQueryIDString) HasSuffixIfPresent(value *string) tickerParamUnique { +func (r stepRunEventQueryIDBigInt) NotIfPresent(value *BigInt) stepRunEventParamUnique { if value == nil { - return tickerParamUnique{} + return stepRunEventParamUnique{} } - return r.HasSuffix(*value) + return r.Not(*value) } -func (r tickerQueryIDString) Field() tickerPrismaFields { - return tickerFieldID +func (r stepRunEventQueryIDBigInt) Field() stepRunEventPrismaFields { + return stepRunEventFieldID } // base struct -type tickerQueryCreatedAtDateTime struct{} +type stepRunEventQueryTimeFirstSeenDateTime struct{} -// Set the required value of CreatedAt -func (r tickerQueryCreatedAtDateTime) Set(value DateTime) tickerSetParam { +// Set the required value of TimeFirstSeen +func (r stepRunEventQueryTimeFirstSeenDateTime) Set(value DateTime) stepRunEventSetParam { - return tickerSetParam{ + return stepRunEventSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Value: value, }, } } -// Set the optional value of CreatedAt dynamically -func (r tickerQueryCreatedAtDateTime) SetIfPresent(value *DateTime) tickerSetParam { +// Set the optional value of TimeFirstSeen dynamically +func (r stepRunEventQueryTimeFirstSeenDateTime) SetIfPresent(value *DateTime) stepRunEventSetParam { if value == nil { - return tickerSetParam{} + return stepRunEventSetParam{} } return r.Set(*value) } -func (r tickerQueryCreatedAtDateTime) Equals(value DateTime) tickerWithPrismaCreatedAtEqualsParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) Equals(value DateTime) stepRunEventWithPrismaTimeFirstSeenEqualsParam { - return tickerWithPrismaCreatedAtEqualsParam{ + return stepRunEventWithPrismaTimeFirstSeenEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "equals", @@ -145572,35 +145700,35 @@ func (r tickerQueryCreatedAtDateTime) Equals(value DateTime) tickerWithPrismaCre } } -func (r tickerQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) tickerWithPrismaCreatedAtEqualsParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) EqualsIfPresent(value *DateTime) stepRunEventWithPrismaTimeFirstSeenEqualsParam { if value == nil { - return tickerWithPrismaCreatedAtEqualsParam{} + return stepRunEventWithPrismaTimeFirstSeenEqualsParam{} } return r.Equals(*value) } -func (r tickerQueryCreatedAtDateTime) Order(direction SortOrder) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Value: direction, }, } } -func (r tickerQueryCreatedAtDateTime) Cursor(cursor DateTime) tickerCursorParam { - return tickerCursorParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) Cursor(cursor DateTime) stepRunEventCursorParam { + return stepRunEventCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Value: cursor, }, } } -func (r tickerQueryCreatedAtDateTime) In(value []DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) In(value []DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "in", @@ -145611,17 +145739,17 @@ func (r tickerQueryCreatedAtDateTime) In(value []DateTime) tickerDefaultParam { } } -func (r tickerQueryCreatedAtDateTime) InIfPresent(value []DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) InIfPresent(value []DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.In(value) } -func (r tickerQueryCreatedAtDateTime) NotIn(value []DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) NotIn(value []DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "notIn", @@ -145632,17 +145760,17 @@ func (r tickerQueryCreatedAtDateTime) NotIn(value []DateTime) tickerDefaultParam } } -func (r tickerQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) NotInIfPresent(value []DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.NotIn(value) } -func (r tickerQueryCreatedAtDateTime) Lt(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) Lt(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "lt", @@ -145653,17 +145781,17 @@ func (r tickerQueryCreatedAtDateTime) Lt(value DateTime) tickerDefaultParam { } } -func (r tickerQueryCreatedAtDateTime) LtIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) LtIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Lt(*value) } -func (r tickerQueryCreatedAtDateTime) Lte(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) Lte(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "lte", @@ -145674,17 +145802,17 @@ func (r tickerQueryCreatedAtDateTime) Lte(value DateTime) tickerDefaultParam { } } -func (r tickerQueryCreatedAtDateTime) LteIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) LteIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Lte(*value) } -func (r tickerQueryCreatedAtDateTime) Gt(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) Gt(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "gt", @@ -145695,17 +145823,17 @@ func (r tickerQueryCreatedAtDateTime) Gt(value DateTime) tickerDefaultParam { } } -func (r tickerQueryCreatedAtDateTime) GtIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) GtIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Gt(*value) } -func (r tickerQueryCreatedAtDateTime) Gte(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) Gte(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "gte", @@ -145716,17 +145844,17 @@ func (r tickerQueryCreatedAtDateTime) Gte(value DateTime) tickerDefaultParam { } } -func (r tickerQueryCreatedAtDateTime) GteIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) GteIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Gte(*value) } -func (r tickerQueryCreatedAtDateTime) Not(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) Not(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "not", @@ -145737,19 +145865,19 @@ func (r tickerQueryCreatedAtDateTime) Not(value DateTime) tickerDefaultParam { } } -func (r tickerQueryCreatedAtDateTime) NotIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) NotIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r tickerQueryCreatedAtDateTime) Before(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) Before(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "lt", @@ -145761,19 +145889,19 @@ func (r tickerQueryCreatedAtDateTime) Before(value DateTime) tickerDefaultParam } // deprecated: Use LtIfPresent instead. -func (r tickerQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) BeforeIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r tickerQueryCreatedAtDateTime) After(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) After(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "gt", @@ -145785,19 +145913,19 @@ func (r tickerQueryCreatedAtDateTime) After(value DateTime) tickerDefaultParam { } // deprecated: Use GtIfPresent instead. -func (r tickerQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) AfterIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r tickerQueryCreatedAtDateTime) BeforeEquals(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) BeforeEquals(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "lte", @@ -145809,19 +145937,19 @@ func (r tickerQueryCreatedAtDateTime) BeforeEquals(value DateTime) tickerDefault } // deprecated: Use LteIfPresent instead. -func (r tickerQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r tickerQueryCreatedAtDateTime) AfterEquals(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeFirstSeenDateTime) AfterEquals(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "timeFirstSeen", Fields: []builder.Field{ { Name: "gte", @@ -145833,46 +145961,46 @@ func (r tickerQueryCreatedAtDateTime) AfterEquals(value DateTime) tickerDefaultP } // deprecated: Use GteIfPresent instead. -func (r tickerQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeFirstSeenDateTime) AfterEqualsIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.AfterEquals(*value) } -func (r tickerQueryCreatedAtDateTime) Field() tickerPrismaFields { - return tickerFieldCreatedAt +func (r stepRunEventQueryTimeFirstSeenDateTime) Field() stepRunEventPrismaFields { + return stepRunEventFieldTimeFirstSeen } // base struct -type tickerQueryUpdatedAtDateTime struct{} +type stepRunEventQueryTimeLastSeenDateTime struct{} -// Set the required value of UpdatedAt -func (r tickerQueryUpdatedAtDateTime) Set(value DateTime) tickerSetParam { +// Set the required value of TimeLastSeen +func (r stepRunEventQueryTimeLastSeenDateTime) Set(value DateTime) stepRunEventSetParam { - return tickerSetParam{ + return stepRunEventSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Value: value, }, } } -// Set the optional value of UpdatedAt dynamically -func (r tickerQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) tickerSetParam { +// Set the optional value of TimeLastSeen dynamically +func (r stepRunEventQueryTimeLastSeenDateTime) SetIfPresent(value *DateTime) stepRunEventSetParam { if value == nil { - return tickerSetParam{} + return stepRunEventSetParam{} } return r.Set(*value) } -func (r tickerQueryUpdatedAtDateTime) Equals(value DateTime) tickerWithPrismaUpdatedAtEqualsParam { +func (r stepRunEventQueryTimeLastSeenDateTime) Equals(value DateTime) stepRunEventWithPrismaTimeLastSeenEqualsParam { - return tickerWithPrismaUpdatedAtEqualsParam{ + return stepRunEventWithPrismaTimeLastSeenEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "equals", @@ -145883,35 +146011,35 @@ func (r tickerQueryUpdatedAtDateTime) Equals(value DateTime) tickerWithPrismaUpd } } -func (r tickerQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) tickerWithPrismaUpdatedAtEqualsParam { +func (r stepRunEventQueryTimeLastSeenDateTime) EqualsIfPresent(value *DateTime) stepRunEventWithPrismaTimeLastSeenEqualsParam { if value == nil { - return tickerWithPrismaUpdatedAtEqualsParam{} + return stepRunEventWithPrismaTimeLastSeenEqualsParam{} } return r.Equals(*value) } -func (r tickerQueryUpdatedAtDateTime) Order(direction SortOrder) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Value: direction, }, } } -func (r tickerQueryUpdatedAtDateTime) Cursor(cursor DateTime) tickerCursorParam { - return tickerCursorParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) Cursor(cursor DateTime) stepRunEventCursorParam { + return stepRunEventCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Value: cursor, }, } } -func (r tickerQueryUpdatedAtDateTime) In(value []DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) In(value []DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "in", @@ -145922,17 +146050,17 @@ func (r tickerQueryUpdatedAtDateTime) In(value []DateTime) tickerDefaultParam { } } -func (r tickerQueryUpdatedAtDateTime) InIfPresent(value []DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) InIfPresent(value []DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.In(value) } -func (r tickerQueryUpdatedAtDateTime) NotIn(value []DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) NotIn(value []DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "notIn", @@ -145943,17 +146071,17 @@ func (r tickerQueryUpdatedAtDateTime) NotIn(value []DateTime) tickerDefaultParam } } -func (r tickerQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) NotInIfPresent(value []DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.NotIn(value) } -func (r tickerQueryUpdatedAtDateTime) Lt(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) Lt(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "lt", @@ -145964,17 +146092,17 @@ func (r tickerQueryUpdatedAtDateTime) Lt(value DateTime) tickerDefaultParam { } } -func (r tickerQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) LtIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Lt(*value) } -func (r tickerQueryUpdatedAtDateTime) Lte(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) Lte(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "lte", @@ -145985,17 +146113,17 @@ func (r tickerQueryUpdatedAtDateTime) Lte(value DateTime) tickerDefaultParam { } } -func (r tickerQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) LteIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Lte(*value) } -func (r tickerQueryUpdatedAtDateTime) Gt(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) Gt(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "gt", @@ -146006,17 +146134,17 @@ func (r tickerQueryUpdatedAtDateTime) Gt(value DateTime) tickerDefaultParam { } } -func (r tickerQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) GtIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Gt(*value) } -func (r tickerQueryUpdatedAtDateTime) Gte(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) Gte(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "gte", @@ -146027,17 +146155,17 @@ func (r tickerQueryUpdatedAtDateTime) Gte(value DateTime) tickerDefaultParam { } } -func (r tickerQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) GteIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Gte(*value) } -func (r tickerQueryUpdatedAtDateTime) Not(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) Not(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "not", @@ -146048,19 +146176,19 @@ func (r tickerQueryUpdatedAtDateTime) Not(value DateTime) tickerDefaultParam { } } -func (r tickerQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) NotIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r tickerQueryUpdatedAtDateTime) Before(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) Before(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "lt", @@ -146072,19 +146200,19 @@ func (r tickerQueryUpdatedAtDateTime) Before(value DateTime) tickerDefaultParam } // deprecated: Use LtIfPresent instead. -func (r tickerQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) BeforeIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r tickerQueryUpdatedAtDateTime) After(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) After(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "gt", @@ -146096,19 +146224,19 @@ func (r tickerQueryUpdatedAtDateTime) After(value DateTime) tickerDefaultParam { } // deprecated: Use GtIfPresent instead. -func (r tickerQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) AfterIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r tickerQueryUpdatedAtDateTime) BeforeEquals(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) BeforeEquals(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "lte", @@ -146120,19 +146248,19 @@ func (r tickerQueryUpdatedAtDateTime) BeforeEquals(value DateTime) tickerDefault } // deprecated: Use LteIfPresent instead. -func (r tickerQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r tickerQueryUpdatedAtDateTime) AfterEquals(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryTimeLastSeenDateTime) AfterEquals(value DateTime) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "timeLastSeen", Fields: []builder.Field{ { Name: "gte", @@ -146144,130 +146272,173 @@ func (r tickerQueryUpdatedAtDateTime) AfterEquals(value DateTime) tickerDefaultP } // deprecated: Use GteIfPresent instead. -func (r tickerQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryTimeLastSeenDateTime) AfterEqualsIfPresent(value *DateTime) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.AfterEquals(*value) } -func (r tickerQueryUpdatedAtDateTime) Field() tickerPrismaFields { - return tickerFieldUpdatedAt +func (r stepRunEventQueryTimeLastSeenDateTime) Field() stepRunEventPrismaFields { + return stepRunEventFieldTimeLastSeen } // base struct -type tickerQueryLastHeartbeatAtDateTime struct{} +type stepRunEventQueryStepRunStepRun struct{} -// Set the optional value of LastHeartbeatAt -func (r tickerQueryLastHeartbeatAtDateTime) Set(value DateTime) tickerSetParam { +type stepRunEventQueryStepRunRelations struct{} - return tickerSetParam{ +// StepRunEvent -> StepRun +// +// @relation +// @required +func (stepRunEventQueryStepRunRelations) Where( + params ...StepRunWhereParam, +) stepRunEventDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", - Value: value, + Name: "stepRun", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, }, } - } -// Set the optional value of LastHeartbeatAt dynamically -func (r tickerQueryLastHeartbeatAtDateTime) SetIfPresent(value *DateTime) tickerSetParam { - if value == nil { - return tickerSetParam{} - } +func (stepRunEventQueryStepRunRelations) Fetch() stepRunEventToStepRunFindUnique { + var v stepRunEventToStepRunFindUnique - return r.Set(*value) + v.query.Operation = "query" + v.query.Method = "stepRun" + v.query.Outputs = stepRunOutput + + return v } -// Set the optional value of LastHeartbeatAt dynamically -func (r tickerQueryLastHeartbeatAtDateTime) SetOptional(value *DateTime) tickerSetParam { - if value == nil { +func (r stepRunEventQueryStepRunRelations) Link( + params StepRunWhereParam, +) stepRunEventWithPrismaStepRunSetParam { + var fields []builder.Field - var v *DateTime - return tickerSetParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Value: v, - }, - } + f := params.field() + if f.Fields == nil && f.Value == nil { + return stepRunEventWithPrismaStepRunSetParam{} } - return r.Set(*value) -} - -func (r tickerQueryLastHeartbeatAtDateTime) Equals(value DateTime) tickerWithPrismaLastHeartbeatAtEqualsParam { + fields = append(fields, f) - return tickerWithPrismaLastHeartbeatAtEqualsParam{ + return stepRunEventWithPrismaStepRunSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRun", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r tickerQueryLastHeartbeatAtDateTime) EqualsIfPresent(value *DateTime) tickerWithPrismaLastHeartbeatAtEqualsParam { - if value == nil { - return tickerWithPrismaLastHeartbeatAtEqualsParam{} - } - return r.Equals(*value) -} +func (r stepRunEventQueryStepRunRelations) Unlink() stepRunEventWithPrismaStepRunSetParam { + var v stepRunEventWithPrismaStepRunSetParam -func (r tickerQueryLastHeartbeatAtDateTime) EqualsOptional(value *DateTime) tickerDefaultParam { - return tickerDefaultParam{ + v = stepRunEventWithPrismaStepRunSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRun", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r tickerQueryLastHeartbeatAtDateTime) IsNull() tickerDefaultParam { - var str *string = nil - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunStepRun) Field() stepRunEventPrismaFields { + return stepRunEventFieldStepRun +} + +// base struct +type stepRunEventQueryStepRunIDString struct{} + +// Set the required value of StepRunID +func (r stepRunEventQueryStepRunIDString) Set(value string) stepRunEventSetParam { + + return stepRunEventSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", + Value: value, + }, + } + +} + +// Set the optional value of StepRunID dynamically +func (r stepRunEventQueryStepRunIDString) SetIfPresent(value *String) stepRunEventSetParam { + if value == nil { + return stepRunEventSetParam{} + } + + return r.Set(*value) +} + +func (r stepRunEventQueryStepRunIDString) Equals(value string) stepRunEventWithPrismaStepRunIDEqualsParam { + + return stepRunEventWithPrismaStepRunIDEqualsParam{ + data: builder.Field{ + Name: "stepRunId", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r tickerQueryLastHeartbeatAtDateTime) Order(direction SortOrder) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) EqualsIfPresent(value *string) stepRunEventWithPrismaStepRunIDEqualsParam { + if value == nil { + return stepRunEventWithPrismaStepRunIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r stepRunEventQueryStepRunIDString) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Value: direction, }, } } -func (r tickerQueryLastHeartbeatAtDateTime) Cursor(cursor DateTime) tickerCursorParam { - return tickerCursorParam{ +func (r stepRunEventQueryStepRunIDString) Cursor(cursor string) stepRunEventCursorParam { + return stepRunEventCursorParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Value: cursor, }, } } -func (r tickerQueryLastHeartbeatAtDateTime) In(value []DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) In(value []string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "in", @@ -146278,17 +146449,17 @@ func (r tickerQueryLastHeartbeatAtDateTime) In(value []DateTime) tickerDefaultPa } } -func (r tickerQueryLastHeartbeatAtDateTime) InIfPresent(value []DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) InIfPresent(value []string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.In(value) } -func (r tickerQueryLastHeartbeatAtDateTime) NotIn(value []DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) NotIn(value []string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "notIn", @@ -146299,17 +146470,17 @@ func (r tickerQueryLastHeartbeatAtDateTime) NotIn(value []DateTime) tickerDefaul } } -func (r tickerQueryLastHeartbeatAtDateTime) NotInIfPresent(value []DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) NotInIfPresent(value []string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.NotIn(value) } -func (r tickerQueryLastHeartbeatAtDateTime) Lt(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) Lt(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "lt", @@ -146320,17 +146491,17 @@ func (r tickerQueryLastHeartbeatAtDateTime) Lt(value DateTime) tickerDefaultPara } } -func (r tickerQueryLastHeartbeatAtDateTime) LtIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) LtIfPresent(value *string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Lt(*value) } -func (r tickerQueryLastHeartbeatAtDateTime) Lte(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) Lte(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "lte", @@ -146341,17 +146512,17 @@ func (r tickerQueryLastHeartbeatAtDateTime) Lte(value DateTime) tickerDefaultPar } } -func (r tickerQueryLastHeartbeatAtDateTime) LteIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) LteIfPresent(value *string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Lte(*value) } -func (r tickerQueryLastHeartbeatAtDateTime) Gt(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) Gt(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "gt", @@ -146362,17 +146533,17 @@ func (r tickerQueryLastHeartbeatAtDateTime) Gt(value DateTime) tickerDefaultPara } } -func (r tickerQueryLastHeartbeatAtDateTime) GtIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) GtIfPresent(value *string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Gt(*value) } -func (r tickerQueryLastHeartbeatAtDateTime) Gte(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) Gte(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "gte", @@ -146383,20 +146554,20 @@ func (r tickerQueryLastHeartbeatAtDateTime) Gte(value DateTime) tickerDefaultPar } } -func (r tickerQueryLastHeartbeatAtDateTime) GteIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) GteIfPresent(value *string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } return r.Gte(*value) } -func (r tickerQueryLastHeartbeatAtDateTime) Not(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) Contains(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -146404,22 +146575,20 @@ func (r tickerQueryLastHeartbeatAtDateTime) Not(value DateTime) tickerDefaultPar } } -func (r tickerQueryLastHeartbeatAtDateTime) NotIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) ContainsIfPresent(value *string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r tickerQueryLastHeartbeatAtDateTime) Before(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) StartsWith(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -146427,23 +146596,41 @@ func (r tickerQueryLastHeartbeatAtDateTime) Before(value DateTime) tickerDefault } } -// deprecated: Use LtIfPresent instead. -func (r tickerQueryLastHeartbeatAtDateTime) BeforeIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) StartsWithIfPresent(value *string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. +func (r stepRunEventQueryStepRunIDString) EndsWith(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} -func (r tickerQueryLastHeartbeatAtDateTime) After(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) EndsWithIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r stepRunEventQueryStepRunIDString) Mode(value QueryMode) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "gt", + Name: "mode", Value: value, }, }, @@ -146451,23 +146638,43 @@ func (r tickerQueryLastHeartbeatAtDateTime) After(value DateTime) tickerDefaultP } } -// deprecated: Use GtIfPresent instead. -func (r tickerQueryLastHeartbeatAtDateTime) AfterIfPresent(value *DateTime) tickerDefaultParam { +func (r stepRunEventQueryStepRunIDString) ModeIfPresent(value *QueryMode) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } - return r.After(*value) + return r.Mode(*value) } -// deprecated: Use Lte instead. +func (r stepRunEventQueryStepRunIDString) Not(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} -func (r tickerQueryLastHeartbeatAtDateTime) BeforeEquals(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) NotIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r stepRunEventQueryStepRunIDString) HasPrefix(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -146475,23 +146682,23 @@ func (r tickerQueryLastHeartbeatAtDateTime) BeforeEquals(value DateTime) tickerD } } -// deprecated: Use LteIfPresent instead. -func (r tickerQueryLastHeartbeatAtDateTime) BeforeEqualsIfPresent(value *DateTime) tickerDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunEventQueryStepRunIDString) HasPrefixIfPresent(value *string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r tickerQueryLastHeartbeatAtDateTime) AfterEquals(value DateTime) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryStepRunIDString) HasSuffix(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -146499,47 +146706,47 @@ func (r tickerQueryLastHeartbeatAtDateTime) AfterEquals(value DateTime) tickerDe } } -// deprecated: Use GteIfPresent instead. -func (r tickerQueryLastHeartbeatAtDateTime) AfterEqualsIfPresent(value *DateTime) tickerDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunEventQueryStepRunIDString) HasSuffixIfPresent(value *string) stepRunEventDefaultParam { if value == nil { - return tickerDefaultParam{} + return stepRunEventDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r tickerQueryLastHeartbeatAtDateTime) Field() tickerPrismaFields { - return tickerFieldLastHeartbeatAt +func (r stepRunEventQueryStepRunIDString) Field() stepRunEventPrismaFields { + return stepRunEventFieldStepRunID } // base struct -type tickerQueryIsActiveBoolean struct{} +type stepRunEventQueryReasonStepRunEventReason struct{} -// Set the required value of IsActive -func (r tickerQueryIsActiveBoolean) Set(value bool) tickerSetParam { +// Set the required value of Reason +func (r stepRunEventQueryReasonStepRunEventReason) Set(value StepRunEventReason) stepRunEventWithPrismaReasonSetParam { - return tickerSetParam{ + return stepRunEventWithPrismaReasonSetParam{ data: builder.Field{ - Name: "isActive", + Name: "reason", Value: value, }, } } -// Set the optional value of IsActive dynamically -func (r tickerQueryIsActiveBoolean) SetIfPresent(value *Boolean) tickerSetParam { +// Set the optional value of Reason dynamically +func (r stepRunEventQueryReasonStepRunEventReason) SetIfPresent(value *StepRunEventReason) stepRunEventWithPrismaReasonSetParam { if value == nil { - return tickerSetParam{} + return stepRunEventWithPrismaReasonSetParam{} } return r.Set(*value) } -func (r tickerQueryIsActiveBoolean) Equals(value bool) tickerWithPrismaIsActiveEqualsParam { +func (r stepRunEventQueryReasonStepRunEventReason) Equals(value StepRunEventReason) stepRunEventWithPrismaReasonEqualsParam { - return tickerWithPrismaIsActiveEqualsParam{ + return stepRunEventWithPrismaReasonEqualsParam{ data: builder.Field{ - Name: "isActive", + Name: "reason", Fields: []builder.Field{ { Name: "equals", @@ -146550,1153 +146757,1432 @@ func (r tickerQueryIsActiveBoolean) Equals(value bool) tickerWithPrismaIsActiveE } } -func (r tickerQueryIsActiveBoolean) EqualsIfPresent(value *bool) tickerWithPrismaIsActiveEqualsParam { +func (r stepRunEventQueryReasonStepRunEventReason) EqualsIfPresent(value *StepRunEventReason) stepRunEventWithPrismaReasonEqualsParam { if value == nil { - return tickerWithPrismaIsActiveEqualsParam{} + return stepRunEventWithPrismaReasonEqualsParam{} } return r.Equals(*value) } -func (r tickerQueryIsActiveBoolean) Order(direction SortOrder) tickerDefaultParam { - return tickerDefaultParam{ +func (r stepRunEventQueryReasonStepRunEventReason) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "isActive", + Name: "reason", Value: direction, }, } } -func (r tickerQueryIsActiveBoolean) Cursor(cursor bool) tickerCursorParam { - return tickerCursorParam{ +func (r stepRunEventQueryReasonStepRunEventReason) Cursor(cursor StepRunEventReason) stepRunEventCursorParam { + return stepRunEventCursorParam{ data: builder.Field{ - Name: "isActive", + Name: "reason", Value: cursor, }, } } -func (r tickerQueryIsActiveBoolean) Field() tickerPrismaFields { - return tickerFieldIsActive -} - -// base struct -type tickerQueryJobRunsJobRun struct{} - -type tickerQueryJobRunsRelations struct{} - -// Ticker -> JobRuns -// -// @relation -// @required -func (tickerQueryJobRunsRelations) Some( - params ...JobRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return tickerDefaultParam{ +func (r stepRunEventQueryReasonStepRunEventReason) In(value []StepRunEventReason) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "jobRuns", + Name: "reason", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -// Ticker -> JobRuns -// -// @relation -// @required -func (tickerQueryJobRunsRelations) Every( - params ...JobRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryReasonStepRunEventReason) InIfPresent(value []StepRunEventReason) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.In(value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryReasonStepRunEventReason) NotIn(value []StepRunEventReason) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "jobRuns", + Name: "reason", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "notIn", + Value: value, }, }, }, } } -// Ticker -> JobRuns -// -// @relation -// @required -func (tickerQueryJobRunsRelations) None( - params ...JobRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryReasonStepRunEventReason) NotInIfPresent(value []StepRunEventReason) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.NotIn(value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryReasonStepRunEventReason) Not(value StepRunEventReason) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "jobRuns", + Name: "reason", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "not", + Value: value, }, }, }, } } -func (tickerQueryJobRunsRelations) Fetch( +func (r stepRunEventQueryReasonStepRunEventReason) NotIfPresent(value *StepRunEventReason) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Not(*value) +} - params ...JobRunWhereParam, +func (r stepRunEventQueryReasonStepRunEventReason) Field() stepRunEventPrismaFields { + return stepRunEventFieldReason +} -) tickerToJobRunsFindMany { - var v tickerToJobRunsFindMany +// base struct +type stepRunEventQuerySeverityStepRunEventSeverity struct{} - v.query.Operation = "query" - v.query.Method = "jobRuns" - v.query.Outputs = jobRunOutput +// Set the required value of Severity +func (r stepRunEventQuerySeverityStepRunEventSeverity) Set(value StepRunEventSeverity) stepRunEventWithPrismaSeveritySetParam { - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } + return stepRunEventWithPrismaSeveritySetParam{ + data: builder.Field{ + Name: "severity", + Value: value, + }, } - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +} + +// Set the optional value of Severity dynamically +func (r stepRunEventQuerySeverityStepRunEventSeverity) SetIfPresent(value *StepRunEventSeverity) stepRunEventWithPrismaSeveritySetParam { + if value == nil { + return stepRunEventWithPrismaSeveritySetParam{} } - return v + return r.Set(*value) } -func (r tickerQueryJobRunsRelations) Link( - params ...JobRunWhereParam, -) tickerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +func (r stepRunEventQuerySeverityStepRunEventSeverity) Equals(value StepRunEventSeverity) stepRunEventWithPrismaSeverityEqualsParam { - return tickerSetParam{ + return stepRunEventWithPrismaSeverityEqualsParam{ data: builder.Field{ - Name: "jobRuns", + Name: "severity", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "equals", + Value: value, }, }, }, } } -func (r tickerQueryJobRunsRelations) Unlink( - params ...JobRunWhereParam, -) tickerSetParam { - var v tickerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQuerySeverityStepRunEventSeverity) EqualsIfPresent(value *StepRunEventSeverity) stepRunEventWithPrismaSeverityEqualsParam { + if value == nil { + return stepRunEventWithPrismaSeverityEqualsParam{} } - v = tickerSetParam{ + return r.Equals(*value) +} + +func (r stepRunEventQuerySeverityStepRunEventSeverity) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "jobRuns", - Fields: []builder.Field{ - { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), - }, - }, + Name: "severity", + Value: direction, }, } - - return v -} - -func (r tickerQueryJobRunsJobRun) Field() tickerPrismaFields { - return tickerFieldJobRuns } -// base struct -type tickerQueryStepRunsStepRun struct{} - -type tickerQueryStepRunsRelations struct{} - -// Ticker -> StepRuns -// -// @relation -// @required -func (tickerQueryStepRunsRelations) Some( - params ...StepRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQuerySeverityStepRunEventSeverity) Cursor(cursor StepRunEventSeverity) stepRunEventCursorParam { + return stepRunEventCursorParam{ + data: builder.Field{ + Name: "severity", + Value: cursor, + }, } +} - return tickerDefaultParam{ +func (r stepRunEventQuerySeverityStepRunEventSeverity) In(value []StepRunEventSeverity) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "severity", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -// Ticker -> StepRuns -// -// @relation -// @required -func (tickerQueryStepRunsRelations) Every( - params ...StepRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQuerySeverityStepRunEventSeverity) InIfPresent(value []StepRunEventSeverity) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.In(value) +} - return tickerDefaultParam{ +func (r stepRunEventQuerySeverityStepRunEventSeverity) NotIn(value []StepRunEventSeverity) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "severity", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "notIn", + Value: value, }, }, }, } } -// Ticker -> StepRuns -// -// @relation -// @required -func (tickerQueryStepRunsRelations) None( - params ...StepRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQuerySeverityStepRunEventSeverity) NotInIfPresent(value []StepRunEventSeverity) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.NotIn(value) +} - return tickerDefaultParam{ +func (r stepRunEventQuerySeverityStepRunEventSeverity) Not(value StepRunEventSeverity) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "severity", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "not", + Value: value, }, }, }, } } -func (tickerQueryStepRunsRelations) Fetch( +func (r stepRunEventQuerySeverityStepRunEventSeverity) NotIfPresent(value *StepRunEventSeverity) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Not(*value) +} - params ...StepRunWhereParam, +func (r stepRunEventQuerySeverityStepRunEventSeverity) Field() stepRunEventPrismaFields { + return stepRunEventFieldSeverity +} -) tickerToStepRunsFindMany { - var v tickerToStepRunsFindMany +// base struct +type stepRunEventQueryMessageString struct{} - v.query.Operation = "query" - v.query.Method = "stepRuns" - v.query.Outputs = stepRunOutput +// Set the required value of Message +func (r stepRunEventQueryMessageString) Set(value string) stepRunEventWithPrismaMessageSetParam { - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } + return stepRunEventWithPrismaMessageSetParam{ + data: builder.Field{ + Name: "message", + Value: value, + }, } - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +} + +// Set the optional value of Message dynamically +func (r stepRunEventQueryMessageString) SetIfPresent(value *String) stepRunEventWithPrismaMessageSetParam { + if value == nil { + return stepRunEventWithPrismaMessageSetParam{} } - return v + return r.Set(*value) } -func (r tickerQueryStepRunsRelations) Link( - params ...StepRunWhereParam, -) tickerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +func (r stepRunEventQueryMessageString) Equals(value string) stepRunEventWithPrismaMessageEqualsParam { - return tickerSetParam{ + return stepRunEventWithPrismaMessageEqualsParam{ data: builder.Field{ - Name: "stepRuns", + Name: "message", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "equals", + Value: value, }, }, }, } } -func (r tickerQueryStepRunsRelations) Unlink( - params ...StepRunWhereParam, -) tickerSetParam { - var v tickerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) EqualsIfPresent(value *string) stepRunEventWithPrismaMessageEqualsParam { + if value == nil { + return stepRunEventWithPrismaMessageEqualsParam{} } - v = tickerSetParam{ + return r.Equals(*value) +} + +func (r stepRunEventQueryMessageString) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "stepRuns", - Fields: []builder.Field{ - { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), - }, - }, + Name: "message", + Value: direction, }, } - - return v -} - -func (r tickerQueryStepRunsStepRun) Field() tickerPrismaFields { - return tickerFieldStepRuns } -// base struct -type tickerQueryCronsWorkflowTriggerCronRef struct{} - -type tickerQueryCronsRelations struct{} - -// Ticker -> Crons -// -// @relation -// @required -func (tickerQueryCronsRelations) Some( - params ...WorkflowTriggerCronRefWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) Cursor(cursor string) stepRunEventCursorParam { + return stepRunEventCursorParam{ + data: builder.Field{ + Name: "message", + Value: cursor, + }, } +} - return tickerDefaultParam{ +func (r stepRunEventQueryMessageString) In(value []string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "crons", + Name: "message", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -// Ticker -> Crons -// -// @relation -// @required -func (tickerQueryCronsRelations) Every( - params ...WorkflowTriggerCronRefWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) InIfPresent(value []string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.In(value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryMessageString) NotIn(value []string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "crons", + Name: "message", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "notIn", + Value: value, }, }, }, } } -// Ticker -> Crons -// -// @relation -// @required -func (tickerQueryCronsRelations) None( - params ...WorkflowTriggerCronRefWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) NotInIfPresent(value []string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.NotIn(value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryMessageString) Lt(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "crons", + Name: "message", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "lt", + Value: value, }, }, }, } } -func (tickerQueryCronsRelations) Fetch( - - params ...WorkflowTriggerCronRefWhereParam, - -) tickerToCronsFindMany { - var v tickerToCronsFindMany - - v.query.Operation = "query" - v.query.Method = "crons" - v.query.Outputs = workflowTriggerCronRefOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepRunEventQueryMessageString) LtIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } - - return v + return r.Lt(*value) } -func (r tickerQueryCronsRelations) Link( - params ...WorkflowTriggerCronRefWhereParam, -) tickerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return tickerSetParam{ +func (r stepRunEventQueryMessageString) Lte(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "crons", + Name: "message", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "lte", + Value: value, }, }, }, } } -func (r tickerQueryCronsRelations) Unlink( - params ...WorkflowTriggerCronRefWhereParam, -) tickerSetParam { - var v tickerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) LteIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } - v = tickerSetParam{ + return r.Lte(*value) +} + +func (r stepRunEventQueryMessageString) Gt(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "crons", + Name: "message", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "gt", + Value: value, }, }, }, } - - return v } -func (r tickerQueryCronsWorkflowTriggerCronRef) Field() tickerPrismaFields { - return tickerFieldCrons -} - -// base struct -type tickerQueryScheduledWorkflowTriggerScheduledRef struct{} - -type tickerQueryScheduledRelations struct{} - -// Ticker -> Scheduled -// -// @relation -// @required -func (tickerQueryScheduledRelations) Some( - params ...WorkflowTriggerScheduledRefWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) GtIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.Gt(*value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryMessageString) Gte(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "scheduled", + Name: "message", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "gte", + Value: value, }, }, }, } } -// Ticker -> Scheduled -// -// @relation -// @required -func (tickerQueryScheduledRelations) Every( - params ...WorkflowTriggerScheduledRefWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) GteIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.Gte(*value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryMessageString) Contains(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "scheduled", + Name: "message", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "contains", + Value: value, }, }, }, } } -// Ticker -> Scheduled -// -// @relation -// @required -func (tickerQueryScheduledRelations) None( - params ...WorkflowTriggerScheduledRefWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) ContainsIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.Contains(*value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryMessageString) StartsWith(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "scheduled", + Name: "message", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "startsWith", + Value: value, }, }, }, } } -func (tickerQueryScheduledRelations) Fetch( - - params ...WorkflowTriggerScheduledRefWhereParam, - -) tickerToScheduledFindMany { - var v tickerToScheduledFindMany - - v.query.Operation = "query" - v.query.Method = "scheduled" - v.query.Outputs = workflowTriggerScheduledRefOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepRunEventQueryMessageString) StartsWithIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } - - return v + return r.StartsWith(*value) } -func (r tickerQueryScheduledRelations) Link( - params ...WorkflowTriggerScheduledRefWhereParam, -) tickerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return tickerSetParam{ +func (r stepRunEventQueryMessageString) EndsWith(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "scheduled", + Name: "message", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "endsWith", + Value: value, }, }, }, } } -func (r tickerQueryScheduledRelations) Unlink( - params ...WorkflowTriggerScheduledRefWhereParam, -) tickerSetParam { - var v tickerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) EndsWithIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } - v = tickerSetParam{ + return r.EndsWith(*value) +} + +func (r stepRunEventQueryMessageString) Mode(value QueryMode) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "scheduled", + Name: "message", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "mode", + Value: value, }, }, }, } - - return v -} - -func (r tickerQueryScheduledWorkflowTriggerScheduledRef) Field() tickerPrismaFields { - return tickerFieldScheduled } -// base struct -type tickerQueryGroupKeyRunsGetGroupKeyRun struct{} - -type tickerQueryGroupKeyRunsRelations struct{} - -// Ticker -> GroupKeyRuns -// -// @relation -// @required -func (tickerQueryGroupKeyRunsRelations) Some( - params ...GetGroupKeyRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) ModeIfPresent(value *QueryMode) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.Mode(*value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryMessageString) Not(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "message", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "not", + Value: value, }, }, }, } } -// Ticker -> GroupKeyRuns -// -// @relation -// @required -func (tickerQueryGroupKeyRunsRelations) Every( - params ...GetGroupKeyRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryMessageString) NotIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.Not(*value) +} - return tickerDefaultParam{ +// deprecated: Use StartsWith instead. + +func (r stepRunEventQueryMessageString) HasPrefix(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "message", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "starts_with", + Value: value, }, }, }, } } -// Ticker -> GroupKeyRuns -// -// @relation -// @required -func (tickerQueryGroupKeyRunsRelations) None( - params ...GetGroupKeyRunWhereParam, -) tickerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunEventQueryMessageString) HasPrefixIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} } + return r.HasPrefix(*value) +} - return tickerDefaultParam{ +// deprecated: Use EndsWith instead. + +func (r stepRunEventQueryMessageString) HasSuffix(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "message", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "ends_with", + Value: value, }, }, }, } } -func (tickerQueryGroupKeyRunsRelations) Fetch( - - params ...GetGroupKeyRunWhereParam, +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunEventQueryMessageString) HasSuffixIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.HasSuffix(*value) +} -) tickerToGroupKeyRunsFindMany { - var v tickerToGroupKeyRunsFindMany +func (r stepRunEventQueryMessageString) Field() stepRunEventPrismaFields { + return stepRunEventFieldMessage +} - v.query.Operation = "query" - v.query.Method = "groupKeyRuns" - v.query.Outputs = getGroupKeyRunOutput +// base struct +type stepRunEventQueryCountInt struct{} - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } +// Set the required value of Count +func (r stepRunEventQueryCountInt) Set(value int) stepRunEventWithPrismaCountSetParam { - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) + return stepRunEventWithPrismaCountSetParam{ + data: builder.Field{ + Name: "count", + Value: value, + }, } - return v } -func (r tickerQueryGroupKeyRunsRelations) Link( - params ...GetGroupKeyRunWhereParam, -) tickerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// Set the optional value of Count dynamically +func (r stepRunEventQueryCountInt) SetIfPresent(value *Int) stepRunEventWithPrismaCountSetParam { + if value == nil { + return stepRunEventWithPrismaCountSetParam{} } - return tickerSetParam{ + return r.Set(*value) +} + +// Increment the required value of Count +func (r stepRunEventQueryCountInt) Increment(value int) stepRunEventWithPrismaCountSetParam { + return stepRunEventWithPrismaCountSetParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "count", Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + builder.Field{ + Name: "increment", + Value: value, }, }, }, } } -func (r tickerQueryGroupKeyRunsRelations) Unlink( - params ...GetGroupKeyRunWhereParam, -) tickerSetParam { - var v tickerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryCountInt) IncrementIfPresent(value *int) stepRunEventWithPrismaCountSetParam { + if value == nil { + return stepRunEventWithPrismaCountSetParam{} } - v = tickerSetParam{ + return r.Increment(*value) +} + +// Decrement the required value of Count +func (r stepRunEventQueryCountInt) Decrement(value int) stepRunEventWithPrismaCountSetParam { + return stepRunEventWithPrismaCountSetParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "count", Fields: []builder.Field{ - { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + builder.Field{ + Name: "decrement", + Value: value, }, }, }, } +} - return v +func (r stepRunEventQueryCountInt) DecrementIfPresent(value *int) stepRunEventWithPrismaCountSetParam { + if value == nil { + return stepRunEventWithPrismaCountSetParam{} + } + return r.Decrement(*value) } -func (r tickerQueryGroupKeyRunsGetGroupKeyRun) Field() tickerPrismaFields { - return tickerFieldGroupKeyRuns +// Multiply the required value of Count +func (r stepRunEventQueryCountInt) Multiply(value int) stepRunEventWithPrismaCountSetParam { + return stepRunEventWithPrismaCountSetParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } } -// base struct -type tickerQueryTenantAlertsTenantAlertingSettings struct{} +func (r stepRunEventQueryCountInt) MultiplyIfPresent(value *int) stepRunEventWithPrismaCountSetParam { + if value == nil { + return stepRunEventWithPrismaCountSetParam{} + } + return r.Multiply(*value) +} -type tickerQueryTenantAlertsRelations struct{} +// Divide the required value of Count +func (r stepRunEventQueryCountInt) Divide(value int) stepRunEventWithPrismaCountSetParam { + return stepRunEventWithPrismaCountSetParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, + }, + } +} -// Ticker -> TenantAlerts -// -// @relation -// @required -func (tickerQueryTenantAlertsRelations) Some( - params ...TenantAlertingSettingsWhereParam, -) tickerDefaultParam { - var fields []builder.Field +func (r stepRunEventQueryCountInt) DivideIfPresent(value *int) stepRunEventWithPrismaCountSetParam { + if value == nil { + return stepRunEventWithPrismaCountSetParam{} + } + return r.Divide(*value) +} - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryCountInt) Equals(value int) stepRunEventWithPrismaCountEqualsParam { + + return stepRunEventWithPrismaCountEqualsParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r stepRunEventQueryCountInt) EqualsIfPresent(value *int) stepRunEventWithPrismaCountEqualsParam { + if value == nil { + return stepRunEventWithPrismaCountEqualsParam{} } + return r.Equals(*value) +} - return tickerDefaultParam{ +func (r stepRunEventQueryCountInt) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "tenantAlerts", + Name: "count", + Value: direction, + }, + } +} + +func (r stepRunEventQueryCountInt) Cursor(cursor int) stepRunEventCursorParam { + return stepRunEventCursorParam{ + data: builder.Field{ + Name: "count", + Value: cursor, + }, + } +} + +func (r stepRunEventQueryCountInt) In(value []int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -// Ticker -> TenantAlerts -// -// @relation -// @required -func (tickerQueryTenantAlertsRelations) Every( - params ...TenantAlertingSettingsWhereParam, -) tickerDefaultParam { - var fields []builder.Field +func (r stepRunEventQueryCountInt) InIfPresent(value []int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.In(value) +} - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryCountInt) NotIn(value []int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, } +} - return tickerDefaultParam{ +func (r stepRunEventQueryCountInt) NotInIfPresent(value []int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.NotIn(value) +} + +func (r stepRunEventQueryCountInt) Lt(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "tenantAlerts", + Name: "count", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "lt", + Value: value, }, }, }, } } -// Ticker -> TenantAlerts -// -// @relation -// @required -func (tickerQueryTenantAlertsRelations) None( - params ...TenantAlertingSettingsWhereParam, -) tickerDefaultParam { - var fields []builder.Field +func (r stepRunEventQueryCountInt) LtIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Lt(*value) +} - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryCountInt) Lte(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, } +} - return tickerDefaultParam{ +func (r stepRunEventQueryCountInt) LteIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Lte(*value) +} + +func (r stepRunEventQueryCountInt) Gt(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "tenantAlerts", + Name: "count", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -func (tickerQueryTenantAlertsRelations) Fetch( +func (r stepRunEventQueryCountInt) GtIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Gt(*value) +} - params ...TenantAlertingSettingsWhereParam, +func (r stepRunEventQueryCountInt) Gte(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} -) tickerToTenantAlertsFindMany { - var v tickerToTenantAlertsFindMany +func (r stepRunEventQueryCountInt) GteIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Gte(*value) +} - v.query.Operation = "query" - v.query.Method = "tenantAlerts" - v.query.Outputs = tenantAlertingSettingsOutput +func (r stepRunEventQueryCountInt) Not(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) +func (r stepRunEventQueryCountInt) NotIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r stepRunEventQueryCountInt) LT(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r stepRunEventQueryCountInt) LTIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.LT(*value) +} + +// deprecated: Use Lte instead. + +func (r stepRunEventQueryCountInt) LTE(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r stepRunEventQueryCountInt) LTEIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.LTE(*value) +} + +// deprecated: Use Gt instead. + +func (r stepRunEventQueryCountInt) GT(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r stepRunEventQueryCountInt) GTIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.GT(*value) +} + +// deprecated: Use Gte instead. + +func (r stepRunEventQueryCountInt) GTE(value int) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "count", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r stepRunEventQueryCountInt) GTEIfPresent(value *int) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.GTE(*value) +} + +func (r stepRunEventQueryCountInt) Field() stepRunEventPrismaFields { + return stepRunEventFieldCount +} + +// base struct +type stepRunEventQueryDataJson struct{} + +// Set the optional value of Data +func (r stepRunEventQueryDataJson) Set(value JSON) stepRunEventSetParam { + + return stepRunEventSetParam{ + data: builder.Field{ + Name: "data", + Value: value, + }, + } + +} + +// Set the optional value of Data dynamically +func (r stepRunEventQueryDataJson) SetIfPresent(value *JSON) stepRunEventSetParam { + if value == nil { + return stepRunEventSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of Data dynamically +func (r stepRunEventQueryDataJson) SetOptional(value *JSON) stepRunEventSetParam { + if value == nil { + + var v *JSON + return stepRunEventSetParam{ + data: builder.Field{ + Name: "data", + Value: v, + }, } } - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) + return r.Set(*value) +} + +func (r stepRunEventQueryDataJson) Equals(value JSON) stepRunEventWithPrismaDataEqualsParam { + + return stepRunEventWithPrismaDataEqualsParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, } +} - return v +func (r stepRunEventQueryDataJson) EqualsIfPresent(value *JSON) stepRunEventWithPrismaDataEqualsParam { + if value == nil { + return stepRunEventWithPrismaDataEqualsParam{} + } + return r.Equals(*value) } -func (r tickerQueryTenantAlertsRelations) Link( - params ...TenantAlertingSettingsWhereParam, -) tickerSetParam { - var fields []builder.Field +func (r stepRunEventQueryDataJson) EqualsOptional(value *JSON) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryDataJson) IsNull() stepRunEventDefaultParam { + var str *string = nil + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } +} - return tickerSetParam{ +func (r stepRunEventQueryDataJson) Order(direction SortOrder) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "tenantAlerts", + Name: "data", + Value: direction, + }, + } +} + +func (r stepRunEventQueryDataJson) Cursor(cursor JSON) stepRunEventCursorParam { + return stepRunEventCursorParam{ + data: builder.Field{ + Name: "data", + Value: cursor, + }, + } +} + +func (r stepRunEventQueryDataJson) Path(value []string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "path", + Value: value, + }, + }, + }, + } +} - List: true, - WrapList: true, +func (r stepRunEventQueryDataJson) PathIfPresent(value []string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Path(value) +} + +func (r stepRunEventQueryDataJson) StringContains(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "string_contains", + Value: value, }, }, }, } } -func (r tickerQueryTenantAlertsRelations) Unlink( - params ...TenantAlertingSettingsWhereParam, -) tickerSetParam { - var v tickerSetParam +func (r stepRunEventQueryDataJson) StringContainsIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.StringContains(*value) +} - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunEventQueryDataJson) StringStartsWith(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "string_starts_with", + Value: value, + }, + }, + }, } - v = tickerSetParam{ +} + +func (r stepRunEventQueryDataJson) StringStartsWithIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.StringStartsWith(*value) +} + +func (r stepRunEventQueryDataJson) StringEndsWith(value string) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ data: builder.Field{ - Name: "tenantAlerts", + Name: "data", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "string_ends_with", + Value: value, }, }, }, } +} - return v +func (r stepRunEventQueryDataJson) StringEndsWithIfPresent(value *string) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.StringEndsWith(*value) } -func (r tickerQueryTenantAlertsTenantAlertingSettings) Field() tickerPrismaFields { - return tickerFieldTenantAlerts +func (r stepRunEventQueryDataJson) ArrayContains(value JSON) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "array_contains", + Value: value, + }, + }, + }, + } } -// Worker acts as a namespaces to access query methods for the Worker model -var Worker = workerQuery{} +func (r stepRunEventQueryDataJson) ArrayContainsIfPresent(value *JSON) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.ArrayContains(*value) +} -// workerQuery exposes query functions for the worker model -type workerQuery struct { +func (r stepRunEventQueryDataJson) ArrayStartsWith(value JSON) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "array_starts_with", + Value: value, + }, + }, + }, + } +} + +func (r stepRunEventQueryDataJson) ArrayStartsWithIfPresent(value *JSON) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.ArrayStartsWith(*value) +} + +func (r stepRunEventQueryDataJson) ArrayEndsWith(value JSON) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "array_ends_with", + Value: value, + }, + }, + }, + } +} + +func (r stepRunEventQueryDataJson) ArrayEndsWithIfPresent(value *JSON) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.ArrayEndsWith(*value) +} + +func (r stepRunEventQueryDataJson) Lt(value JSON) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r stepRunEventQueryDataJson) LtIfPresent(value *JSON) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Lt(*value) +} + +func (r stepRunEventQueryDataJson) Lte(value JSON) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r stepRunEventQueryDataJson) LteIfPresent(value *JSON) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Lte(*value) +} + +func (r stepRunEventQueryDataJson) Gt(value JSON) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r stepRunEventQueryDataJson) GtIfPresent(value *JSON) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Gt(*value) +} + +func (r stepRunEventQueryDataJson) Gte(value JSON) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r stepRunEventQueryDataJson) GteIfPresent(value *JSON) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Gte(*value) +} + +func (r stepRunEventQueryDataJson) Not(value JSONNullValueFilter) stepRunEventDefaultParam { + return stepRunEventDefaultParam{ + data: builder.Field{ + Name: "data", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r stepRunEventQueryDataJson) NotIfPresent(value *JSONNullValueFilter) stepRunEventDefaultParam { + if value == nil { + return stepRunEventDefaultParam{} + } + return r.Not(*value) +} + +func (r stepRunEventQueryDataJson) Field() stepRunEventPrismaFields { + return stepRunEventFieldData +} + +// StepRunResultArchive acts as a namespaces to access query methods for the StepRunResultArchive model +var StepRunResultArchive = stepRunResultArchiveQuery{} + +// stepRunResultArchiveQuery exposes query functions for the stepRunResultArchive model +type stepRunResultArchiveQuery struct { // ID // // @required - ID workerQueryIDString + ID stepRunResultArchiveQueryIDString // CreatedAt // // @required - CreatedAt workerQueryCreatedAtDateTime + CreatedAt stepRunResultArchiveQueryCreatedAtDateTime // UpdatedAt // // @required - UpdatedAt workerQueryUpdatedAtDateTime + UpdatedAt stepRunResultArchiveQueryUpdatedAtDateTime // DeletedAt // // @optional - DeletedAt workerQueryDeletedAtDateTime + DeletedAt stepRunResultArchiveQueryDeletedAtDateTime - Tenant workerQueryTenantRelations + StepRun stepRunResultArchiveQueryStepRunRelations - // TenantID + // StepRunID // // @required - TenantID workerQueryTenantIDString - - // LastHeartbeatAt - // - // @optional - LastHeartbeatAt workerQueryLastHeartbeatAtDateTime + StepRunID stepRunResultArchiveQueryStepRunIDString - // IsActive + // Order // // @required - IsActive workerQueryIsActiveBoolean + Order stepRunResultArchiveQueryOrderBigInt - // LastListenerEstablished + // Input // // @optional - LastListenerEstablished workerQueryLastListenerEstablishedDateTime + Input stepRunResultArchiveQueryInputJson - // Name + // Output // - // @required - Name workerQueryNameString - - Dispatcher workerQueryDispatcherRelations + // @optional + Output stepRunResultArchiveQueryOutputJson - // DispatcherID + // Error // // @optional - DispatcherID workerQueryDispatcherIDString + Error stepRunResultArchiveQueryErrorString - // MaxRuns + // StartedAt // - // @required - MaxRuns workerQueryMaxRunsInt - - Services workerQueryServicesRelations + // @optional + StartedAt stepRunResultArchiveQueryStartedAtDateTime - Actions workerQueryActionsRelations + // FinishedAt + // + // @optional + FinishedAt stepRunResultArchiveQueryFinishedAtDateTime - StepRuns workerQueryStepRunsRelations + // TimeoutAt + // + // @optional + TimeoutAt stepRunResultArchiveQueryTimeoutAtDateTime - GroupKeyRuns workerQueryGroupKeyRunsRelations + // CancelledAt + // + // @optional + CancelledAt stepRunResultArchiveQueryCancelledAtDateTime - Slots workerQuerySlotsRelations + // CancelledReason + // + // @optional + CancelledReason stepRunResultArchiveQueryCancelledReasonString - Semaphore workerQuerySemaphoreRelations + // CancelledError + // + // @optional + CancelledError stepRunResultArchiveQueryCancelledErrorString } -func (workerQuery) Not(params ...WorkerWhereParam) workerDefaultParam { +func (stepRunResultArchiveQuery) Not(params ...StepRunResultArchiveWhereParam) stepRunResultArchiveDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workerDefaultParam{ + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "NOT", List: true, @@ -147706,14 +148192,14 @@ func (workerQuery) Not(params ...WorkerWhereParam) workerDefaultParam { } } -func (workerQuery) Or(params ...WorkerWhereParam) workerDefaultParam { +func (stepRunResultArchiveQuery) Or(params ...StepRunResultArchiveWhereParam) stepRunResultArchiveDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workerDefaultParam{ + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "OR", List: true, @@ -147723,14 +148209,14 @@ func (workerQuery) Or(params ...WorkerWhereParam) workerDefaultParam { } } -func (workerQuery) And(params ...WorkerWhereParam) workerDefaultParam { +func (stepRunResultArchiveQuery) And(params ...StepRunResultArchiveWhereParam) stepRunResultArchiveDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workerDefaultParam{ + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "AND", List: true, @@ -147741,12 +148227,12 @@ func (workerQuery) And(params ...WorkerWhereParam) workerDefaultParam { } // base struct -type workerQueryIDString struct{} +type stepRunResultArchiveQueryIDString struct{} // Set the required value of ID -func (r workerQueryIDString) Set(value string) workerSetParam { +func (r stepRunResultArchiveQueryIDString) Set(value string) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ Name: "id", Value: value, @@ -147756,17 +148242,17 @@ func (r workerQueryIDString) Set(value string) workerSetParam { } // Set the optional value of ID dynamically -func (r workerQueryIDString) SetIfPresent(value *String) workerSetParam { +func (r stepRunResultArchiveQueryIDString) SetIfPresent(value *String) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -func (r workerQueryIDString) Equals(value string) workerWithPrismaIDEqualsUniqueParam { +func (r stepRunResultArchiveQueryIDString) Equals(value string) stepRunResultArchiveWithPrismaIDEqualsUniqueParam { - return workerWithPrismaIDEqualsUniqueParam{ + return stepRunResultArchiveWithPrismaIDEqualsUniqueParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147779,15 +148265,15 @@ func (r workerQueryIDString) Equals(value string) workerWithPrismaIDEqualsUnique } } -func (r workerQueryIDString) EqualsIfPresent(value *string) workerWithPrismaIDEqualsUniqueParam { +func (r stepRunResultArchiveQueryIDString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaIDEqualsUniqueParam { if value == nil { - return workerWithPrismaIDEqualsUniqueParam{} + return stepRunResultArchiveWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r workerQueryIDString) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryIDString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "id", Value: direction, @@ -147795,8 +148281,8 @@ func (r workerQueryIDString) Order(direction SortOrder) workerDefaultParam { } } -func (r workerQueryIDString) Cursor(cursor string) workerCursorParam { - return workerCursorParam{ +func (r stepRunResultArchiveQueryIDString) Cursor(cursor string) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ Name: "id", Value: cursor, @@ -147804,8 +148290,8 @@ func (r workerQueryIDString) Cursor(cursor string) workerCursorParam { } } -func (r workerQueryIDString) In(value []string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) In(value []string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147818,15 +148304,15 @@ func (r workerQueryIDString) In(value []string) workerParamUnique { } } -func (r workerQueryIDString) InIfPresent(value []string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) InIfPresent(value []string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.In(value) } -func (r workerQueryIDString) NotIn(value []string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) NotIn(value []string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147839,15 +148325,15 @@ func (r workerQueryIDString) NotIn(value []string) workerParamUnique { } } -func (r workerQueryIDString) NotInIfPresent(value []string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) NotInIfPresent(value []string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.NotIn(value) } -func (r workerQueryIDString) Lt(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) Lt(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147860,15 +148346,15 @@ func (r workerQueryIDString) Lt(value string) workerParamUnique { } } -func (r workerQueryIDString) LtIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) LtIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.Lt(*value) } -func (r workerQueryIDString) Lte(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) Lte(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147881,15 +148367,15 @@ func (r workerQueryIDString) Lte(value string) workerParamUnique { } } -func (r workerQueryIDString) LteIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) LteIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.Lte(*value) } -func (r workerQueryIDString) Gt(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) Gt(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147902,15 +148388,15 @@ func (r workerQueryIDString) Gt(value string) workerParamUnique { } } -func (r workerQueryIDString) GtIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) GtIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.Gt(*value) } -func (r workerQueryIDString) Gte(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) Gte(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147923,15 +148409,15 @@ func (r workerQueryIDString) Gte(value string) workerParamUnique { } } -func (r workerQueryIDString) GteIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) GteIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.Gte(*value) } -func (r workerQueryIDString) Contains(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) Contains(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147944,15 +148430,15 @@ func (r workerQueryIDString) Contains(value string) workerParamUnique { } } -func (r workerQueryIDString) ContainsIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) ContainsIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.Contains(*value) } -func (r workerQueryIDString) StartsWith(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) StartsWith(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147965,15 +148451,15 @@ func (r workerQueryIDString) StartsWith(value string) workerParamUnique { } } -func (r workerQueryIDString) StartsWithIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) StartsWithIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.StartsWith(*value) } -func (r workerQueryIDString) EndsWith(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) EndsWith(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -147986,15 +148472,15 @@ func (r workerQueryIDString) EndsWith(value string) workerParamUnique { } } -func (r workerQueryIDString) EndsWithIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) EndsWithIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.EndsWith(*value) } -func (r workerQueryIDString) Mode(value QueryMode) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) Mode(value QueryMode) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -148007,15 +148493,15 @@ func (r workerQueryIDString) Mode(value QueryMode) workerParamUnique { } } -func (r workerQueryIDString) ModeIfPresent(value *QueryMode) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) ModeIfPresent(value *QueryMode) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.Mode(*value) } -func (r workerQueryIDString) Not(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) Not(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -148028,17 +148514,17 @@ func (r workerQueryIDString) Not(value string) workerParamUnique { } } -func (r workerQueryIDString) NotIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) NotIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workerQueryIDString) HasPrefix(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) HasPrefix(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -148052,17 +148538,17 @@ func (r workerQueryIDString) HasPrefix(value string) workerParamUnique { } // deprecated: Use StartsWithIfPresent instead. -func (r workerQueryIDString) HasPrefixIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) HasPrefixIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workerQueryIDString) HasSuffix(value string) workerParamUnique { - return workerParamUnique{ +func (r stepRunResultArchiveQueryIDString) HasSuffix(value string) stepRunResultArchiveParamUnique { + return stepRunResultArchiveParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -148076,24 +148562,24 @@ func (r workerQueryIDString) HasSuffix(value string) workerParamUnique { } // deprecated: Use EndsWithIfPresent instead. -func (r workerQueryIDString) HasSuffixIfPresent(value *string) workerParamUnique { +func (r stepRunResultArchiveQueryIDString) HasSuffixIfPresent(value *string) stepRunResultArchiveParamUnique { if value == nil { - return workerParamUnique{} + return stepRunResultArchiveParamUnique{} } return r.HasSuffix(*value) } -func (r workerQueryIDString) Field() workerPrismaFields { - return workerFieldID +func (r stepRunResultArchiveQueryIDString) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldID } // base struct -type workerQueryCreatedAtDateTime struct{} +type stepRunResultArchiveQueryCreatedAtDateTime struct{} // Set the required value of CreatedAt -func (r workerQueryCreatedAtDateTime) Set(value DateTime) workerSetParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ Name: "createdAt", Value: value, @@ -148103,17 +148589,17 @@ func (r workerQueryCreatedAtDateTime) Set(value DateTime) workerSetParam { } // Set the optional value of CreatedAt dynamically -func (r workerQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workerSetParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -func (r workerQueryCreatedAtDateTime) Equals(value DateTime) workerWithPrismaCreatedAtEqualsParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaCreatedAtEqualsParam { - return workerWithPrismaCreatedAtEqualsParam{ + return stepRunResultArchiveWithPrismaCreatedAtEqualsParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148126,15 +148612,15 @@ func (r workerQueryCreatedAtDateTime) Equals(value DateTime) workerWithPrismaCre } } -func (r workerQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaCreatedAtEqualsParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaCreatedAtEqualsParam { if value == nil { - return workerWithPrismaCreatedAtEqualsParam{} + return stepRunResultArchiveWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r workerQueryCreatedAtDateTime) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Value: direction, @@ -148142,8 +148628,8 @@ func (r workerQueryCreatedAtDateTime) Order(direction SortOrder) workerDefaultPa } } -func (r workerQueryCreatedAtDateTime) Cursor(cursor DateTime) workerCursorParam { - return workerCursorParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ Name: "createdAt", Value: cursor, @@ -148151,8 +148637,8 @@ func (r workerQueryCreatedAtDateTime) Cursor(cursor DateTime) workerCursorParam } } -func (r workerQueryCreatedAtDateTime) In(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148165,15 +148651,15 @@ func (r workerQueryCreatedAtDateTime) In(value []DateTime) workerDefaultParam { } } -func (r workerQueryCreatedAtDateTime) InIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.In(value) } -func (r workerQueryCreatedAtDateTime) NotIn(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148186,15 +148672,15 @@ func (r workerQueryCreatedAtDateTime) NotIn(value []DateTime) workerDefaultParam } } -func (r workerQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.NotIn(value) } -func (r workerQueryCreatedAtDateTime) Lt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148207,15 +148693,15 @@ func (r workerQueryCreatedAtDateTime) Lt(value DateTime) workerDefaultParam { } } -func (r workerQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lt(*value) } -func (r workerQueryCreatedAtDateTime) Lte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148228,15 +148714,15 @@ func (r workerQueryCreatedAtDateTime) Lte(value DateTime) workerDefaultParam { } } -func (r workerQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lte(*value) } -func (r workerQueryCreatedAtDateTime) Gt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148249,16 +148735,16 @@ func (r workerQueryCreatedAtDateTime) Gt(value DateTime) workerDefaultParam { } } -func (r workerQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gt(*value) } -func (r workerQueryCreatedAtDateTime) Gte(value DateTime) workerDefaultParam { - return workerDefaultParam{ - data: builder.Field{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ { @@ -148270,15 +148756,15 @@ func (r workerQueryCreatedAtDateTime) Gte(value DateTime) workerDefaultParam { } } -func (r workerQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gte(*value) } -func (r workerQueryCreatedAtDateTime) Not(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148291,17 +148777,17 @@ func (r workerQueryCreatedAtDateTime) Not(value DateTime) workerDefaultParam { } } -func (r workerQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r workerQueryCreatedAtDateTime) Before(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148315,17 +148801,17 @@ func (r workerQueryCreatedAtDateTime) Before(value DateTime) workerDefaultParam } // deprecated: Use LtIfPresent instead. -func (r workerQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r workerQueryCreatedAtDateTime) After(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148339,17 +148825,17 @@ func (r workerQueryCreatedAtDateTime) After(value DateTime) workerDefaultParam { } // deprecated: Use GtIfPresent instead. -func (r workerQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r workerQueryCreatedAtDateTime) BeforeEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148363,17 +148849,17 @@ func (r workerQueryCreatedAtDateTime) BeforeEquals(value DateTime) workerDefault } // deprecated: Use LteIfPresent instead. -func (r workerQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r workerQueryCreatedAtDateTime) AfterEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryCreatedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -148387,24 +148873,24 @@ func (r workerQueryCreatedAtDateTime) AfterEquals(value DateTime) workerDefaultP } // deprecated: Use GteIfPresent instead. -func (r workerQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.AfterEquals(*value) } -func (r workerQueryCreatedAtDateTime) Field() workerPrismaFields { - return workerFieldCreatedAt +func (r stepRunResultArchiveQueryCreatedAtDateTime) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldCreatedAt } // base struct -type workerQueryUpdatedAtDateTime struct{} +type stepRunResultArchiveQueryUpdatedAtDateTime struct{} // Set the required value of UpdatedAt -func (r workerQueryUpdatedAtDateTime) Set(value DateTime) workerSetParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ Name: "updatedAt", Value: value, @@ -148414,17 +148900,17 @@ func (r workerQueryUpdatedAtDateTime) Set(value DateTime) workerSetParam { } // Set the optional value of UpdatedAt dynamically -func (r workerQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workerSetParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -func (r workerQueryUpdatedAtDateTime) Equals(value DateTime) workerWithPrismaUpdatedAtEqualsParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaUpdatedAtEqualsParam { - return workerWithPrismaUpdatedAtEqualsParam{ + return stepRunResultArchiveWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148437,15 +148923,15 @@ func (r workerQueryUpdatedAtDateTime) Equals(value DateTime) workerWithPrismaUpd } } -func (r workerQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaUpdatedAtEqualsParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaUpdatedAtEqualsParam { if value == nil { - return workerWithPrismaUpdatedAtEqualsParam{} + return stepRunResultArchiveWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r workerQueryUpdatedAtDateTime) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Value: direction, @@ -148453,8 +148939,8 @@ func (r workerQueryUpdatedAtDateTime) Order(direction SortOrder) workerDefaultPa } } -func (r workerQueryUpdatedAtDateTime) Cursor(cursor DateTime) workerCursorParam { - return workerCursorParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ Name: "updatedAt", Value: cursor, @@ -148462,8 +148948,8 @@ func (r workerQueryUpdatedAtDateTime) Cursor(cursor DateTime) workerCursorParam } } -func (r workerQueryUpdatedAtDateTime) In(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148476,15 +148962,15 @@ func (r workerQueryUpdatedAtDateTime) In(value []DateTime) workerDefaultParam { } } -func (r workerQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.In(value) } -func (r workerQueryUpdatedAtDateTime) NotIn(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148497,15 +148983,15 @@ func (r workerQueryUpdatedAtDateTime) NotIn(value []DateTime) workerDefaultParam } } -func (r workerQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.NotIn(value) } -func (r workerQueryUpdatedAtDateTime) Lt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148518,15 +149004,15 @@ func (r workerQueryUpdatedAtDateTime) Lt(value DateTime) workerDefaultParam { } } -func (r workerQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lt(*value) } -func (r workerQueryUpdatedAtDateTime) Lte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148539,15 +149025,15 @@ func (r workerQueryUpdatedAtDateTime) Lte(value DateTime) workerDefaultParam { } } -func (r workerQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lte(*value) } -func (r workerQueryUpdatedAtDateTime) Gt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148560,15 +149046,15 @@ func (r workerQueryUpdatedAtDateTime) Gt(value DateTime) workerDefaultParam { } } -func (r workerQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gt(*value) } -func (r workerQueryUpdatedAtDateTime) Gte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148581,15 +149067,15 @@ func (r workerQueryUpdatedAtDateTime) Gte(value DateTime) workerDefaultParam { } } -func (r workerQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gte(*value) } -func (r workerQueryUpdatedAtDateTime) Not(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148602,17 +149088,17 @@ func (r workerQueryUpdatedAtDateTime) Not(value DateTime) workerDefaultParam { } } -func (r workerQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r workerQueryUpdatedAtDateTime) Before(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148626,17 +149112,17 @@ func (r workerQueryUpdatedAtDateTime) Before(value DateTime) workerDefaultParam } // deprecated: Use LtIfPresent instead. -func (r workerQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r workerQueryUpdatedAtDateTime) After(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148650,17 +149136,17 @@ func (r workerQueryUpdatedAtDateTime) After(value DateTime) workerDefaultParam { } // deprecated: Use GtIfPresent instead. -func (r workerQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r workerQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148674,17 +149160,17 @@ func (r workerQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workerDefault } // deprecated: Use LteIfPresent instead. -func (r workerQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r workerQueryUpdatedAtDateTime) AfterEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryUpdatedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -148698,24 +149184,24 @@ func (r workerQueryUpdatedAtDateTime) AfterEquals(value DateTime) workerDefaultP } // deprecated: Use GteIfPresent instead. -func (r workerQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.AfterEquals(*value) } -func (r workerQueryUpdatedAtDateTime) Field() workerPrismaFields { - return workerFieldUpdatedAt +func (r stepRunResultArchiveQueryUpdatedAtDateTime) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldUpdatedAt } // base struct -type workerQueryDeletedAtDateTime struct{} +type stepRunResultArchiveQueryDeletedAtDateTime struct{} // Set the optional value of DeletedAt -func (r workerQueryDeletedAtDateTime) Set(value DateTime) workerSetParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ Name: "deletedAt", Value: value, @@ -148725,20 +149211,20 @@ func (r workerQueryDeletedAtDateTime) Set(value DateTime) workerSetParam { } // Set the optional value of DeletedAt dynamically -func (r workerQueryDeletedAtDateTime) SetIfPresent(value *DateTime) workerSetParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } // Set the optional value of DeletedAt dynamically -func (r workerQueryDeletedAtDateTime) SetOptional(value *DateTime) workerSetParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { if value == nil { var v *DateTime - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ Name: "deletedAt", Value: v, @@ -148749,9 +149235,9 @@ func (r workerQueryDeletedAtDateTime) SetOptional(value *DateTime) workerSetPara return r.Set(*value) } -func (r workerQueryDeletedAtDateTime) Equals(value DateTime) workerWithPrismaDeletedAtEqualsParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaDeletedAtEqualsParam { - return workerWithPrismaDeletedAtEqualsParam{ + return stepRunResultArchiveWithPrismaDeletedAtEqualsParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148764,15 +149250,15 @@ func (r workerQueryDeletedAtDateTime) Equals(value DateTime) workerWithPrismaDel } } -func (r workerQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaDeletedAtEqualsParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaDeletedAtEqualsParam { if value == nil { - return workerWithPrismaDeletedAtEqualsParam{} + return stepRunResultArchiveWithPrismaDeletedAtEqualsParam{} } return r.Equals(*value) } -func (r workerQueryDeletedAtDateTime) EqualsOptional(value *DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148785,9 +149271,9 @@ func (r workerQueryDeletedAtDateTime) EqualsOptional(value *DateTime) workerDefa } } -func (r workerQueryDeletedAtDateTime) IsNull() workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) IsNull() stepRunResultArchiveDefaultParam { var str *string = nil - return workerDefaultParam{ + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148800,8 +149286,8 @@ func (r workerQueryDeletedAtDateTime) IsNull() workerDefaultParam { } } -func (r workerQueryDeletedAtDateTime) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Value: direction, @@ -148809,8 +149295,8 @@ func (r workerQueryDeletedAtDateTime) Order(direction SortOrder) workerDefaultPa } } -func (r workerQueryDeletedAtDateTime) Cursor(cursor DateTime) workerCursorParam { - return workerCursorParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ Name: "deletedAt", Value: cursor, @@ -148818,8 +149304,8 @@ func (r workerQueryDeletedAtDateTime) Cursor(cursor DateTime) workerCursorParam } } -func (r workerQueryDeletedAtDateTime) In(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148832,15 +149318,15 @@ func (r workerQueryDeletedAtDateTime) In(value []DateTime) workerDefaultParam { } } -func (r workerQueryDeletedAtDateTime) InIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.In(value) } -func (r workerQueryDeletedAtDateTime) NotIn(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148853,15 +149339,15 @@ func (r workerQueryDeletedAtDateTime) NotIn(value []DateTime) workerDefaultParam } } -func (r workerQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.NotIn(value) } -func (r workerQueryDeletedAtDateTime) Lt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148874,15 +149360,15 @@ func (r workerQueryDeletedAtDateTime) Lt(value DateTime) workerDefaultParam { } } -func (r workerQueryDeletedAtDateTime) LtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lt(*value) } -func (r workerQueryDeletedAtDateTime) Lte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148895,15 +149381,15 @@ func (r workerQueryDeletedAtDateTime) Lte(value DateTime) workerDefaultParam { } } -func (r workerQueryDeletedAtDateTime) LteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lte(*value) } -func (r workerQueryDeletedAtDateTime) Gt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148916,15 +149402,15 @@ func (r workerQueryDeletedAtDateTime) Gt(value DateTime) workerDefaultParam { } } -func (r workerQueryDeletedAtDateTime) GtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gt(*value) } -func (r workerQueryDeletedAtDateTime) Gte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148937,15 +149423,15 @@ func (r workerQueryDeletedAtDateTime) Gte(value DateTime) workerDefaultParam { } } -func (r workerQueryDeletedAtDateTime) GteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gte(*value) } -func (r workerQueryDeletedAtDateTime) Not(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148958,17 +149444,17 @@ func (r workerQueryDeletedAtDateTime) Not(value DateTime) workerDefaultParam { } } -func (r workerQueryDeletedAtDateTime) NotIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r workerQueryDeletedAtDateTime) Before(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -148982,17 +149468,17 @@ func (r workerQueryDeletedAtDateTime) Before(value DateTime) workerDefaultParam } // deprecated: Use LtIfPresent instead. -func (r workerQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r workerQueryDeletedAtDateTime) After(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -149006,17 +149492,17 @@ func (r workerQueryDeletedAtDateTime) After(value DateTime) workerDefaultParam { } // deprecated: Use GtIfPresent instead. -func (r workerQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r workerQueryDeletedAtDateTime) BeforeEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -149030,17 +149516,17 @@ func (r workerQueryDeletedAtDateTime) BeforeEquals(value DateTime) workerDefault } // deprecated: Use LteIfPresent instead. -func (r workerQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r workerQueryDeletedAtDateTime) AfterEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryDeletedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -149054,38 +149540,38 @@ func (r workerQueryDeletedAtDateTime) AfterEquals(value DateTime) workerDefaultP } // deprecated: Use GteIfPresent instead. -func (r workerQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.AfterEquals(*value) } -func (r workerQueryDeletedAtDateTime) Field() workerPrismaFields { - return workerFieldDeletedAt +func (r stepRunResultArchiveQueryDeletedAtDateTime) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldDeletedAt } // base struct -type workerQueryTenantTenant struct{} +type stepRunResultArchiveQueryStepRunStepRun struct{} -type workerQueryTenantRelations struct{} +type stepRunResultArchiveQueryStepRunRelations struct{} -// Worker -> Tenant +// StepRunResultArchive -> StepRun // // @relation // @required -func (workerQueryTenantRelations) Where( - params ...TenantWhereParam, -) workerDefaultParam { +func (stepRunResultArchiveQueryStepRunRelations) Where( + params ...StepRunWhereParam, +) stepRunResultArchiveDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workerDefaultParam{ + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "stepRun", Fields: []builder.Field{ { Name: "is", @@ -149096,31 +149582,31 @@ func (workerQueryTenantRelations) Where( } } -func (workerQueryTenantRelations) Fetch() workerToTenantFindUnique { - var v workerToTenantFindUnique +func (stepRunResultArchiveQueryStepRunRelations) Fetch() stepRunResultArchiveToStepRunFindUnique { + var v stepRunResultArchiveToStepRunFindUnique v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput + v.query.Method = "stepRun" + v.query.Outputs = stepRunOutput return v } -func (r workerQueryTenantRelations) Link( - params TenantWhereParam, -) workerWithPrismaTenantSetParam { +func (r stepRunResultArchiveQueryStepRunRelations) Link( + params StepRunWhereParam, +) stepRunResultArchiveWithPrismaStepRunSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return workerWithPrismaTenantSetParam{} + return stepRunResultArchiveWithPrismaStepRunSetParam{} } fields = append(fields, f) - return workerWithPrismaTenantSetParam{ + return stepRunResultArchiveWithPrismaStepRunSetParam{ data: builder.Field{ - Name: "tenant", + Name: "stepRun", Fields: []builder.Field{ { Name: "connect", @@ -149131,12 +149617,12 @@ func (r workerQueryTenantRelations) Link( } } -func (r workerQueryTenantRelations) Unlink() workerWithPrismaTenantSetParam { - var v workerWithPrismaTenantSetParam +func (r stepRunResultArchiveQueryStepRunRelations) Unlink() stepRunResultArchiveWithPrismaStepRunSetParam { + var v stepRunResultArchiveWithPrismaStepRunSetParam - v = workerWithPrismaTenantSetParam{ + v = stepRunResultArchiveWithPrismaStepRunSetParam{ data: builder.Field{ - Name: "tenant", + Name: "stepRun", Fields: []builder.Field{ { Name: "disconnect", @@ -149149,39 +149635,39 @@ func (r workerQueryTenantRelations) Unlink() workerWithPrismaTenantSetParam { return v } -func (r workerQueryTenantTenant) Field() workerPrismaFields { - return workerFieldTenant +func (r stepRunResultArchiveQueryStepRunStepRun) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldStepRun } // base struct -type workerQueryTenantIDString struct{} +type stepRunResultArchiveQueryStepRunIDString struct{} -// Set the required value of TenantID -func (r workerQueryTenantIDString) Set(value string) workerSetParam { +// Set the required value of StepRunID +func (r stepRunResultArchiveQueryStepRunIDString) Set(value string) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Value: value, }, } } -// Set the optional value of TenantID dynamically -func (r workerQueryTenantIDString) SetIfPresent(value *String) workerSetParam { +// Set the optional value of StepRunID dynamically +func (r stepRunResultArchiveQueryStepRunIDString) SetIfPresent(value *String) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -func (r workerQueryTenantIDString) Equals(value string) workerWithPrismaTenantIDEqualsParam { +func (r stepRunResultArchiveQueryStepRunIDString) Equals(value string) stepRunResultArchiveWithPrismaStepRunIDEqualsParam { - return workerWithPrismaTenantIDEqualsParam{ + return stepRunResultArchiveWithPrismaStepRunIDEqualsParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "equals", @@ -149192,35 +149678,35 @@ func (r workerQueryTenantIDString) Equals(value string) workerWithPrismaTenantID } } -func (r workerQueryTenantIDString) EqualsIfPresent(value *string) workerWithPrismaTenantIDEqualsParam { +func (r stepRunResultArchiveQueryStepRunIDString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaStepRunIDEqualsParam { if value == nil { - return workerWithPrismaTenantIDEqualsParam{} + return stepRunResultArchiveWithPrismaStepRunIDEqualsParam{} } return r.Equals(*value) } -func (r workerQueryTenantIDString) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Value: direction, }, } } -func (r workerQueryTenantIDString) Cursor(cursor string) workerCursorParam { - return workerCursorParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Cursor(cursor string) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Value: cursor, }, } } -func (r workerQueryTenantIDString) In(value []string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) In(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "in", @@ -149231,17 +149717,17 @@ func (r workerQueryTenantIDString) In(value []string) workerDefaultParam { } } -func (r workerQueryTenantIDString) InIfPresent(value []string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) InIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.In(value) } -func (r workerQueryTenantIDString) NotIn(value []string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) NotIn(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "notIn", @@ -149252,17 +149738,17 @@ func (r workerQueryTenantIDString) NotIn(value []string) workerDefaultParam { } } -func (r workerQueryTenantIDString) NotInIfPresent(value []string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) NotInIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.NotIn(value) } -func (r workerQueryTenantIDString) Lt(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Lt(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "lt", @@ -149273,17 +149759,17 @@ func (r workerQueryTenantIDString) Lt(value string) workerDefaultParam { } } -func (r workerQueryTenantIDString) LtIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) LtIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lt(*value) } -func (r workerQueryTenantIDString) Lte(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Lte(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "lte", @@ -149294,17 +149780,17 @@ func (r workerQueryTenantIDString) Lte(value string) workerDefaultParam { } } -func (r workerQueryTenantIDString) LteIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) LteIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lte(*value) } -func (r workerQueryTenantIDString) Gt(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Gt(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "gt", @@ -149315,17 +149801,17 @@ func (r workerQueryTenantIDString) Gt(value string) workerDefaultParam { } } -func (r workerQueryTenantIDString) GtIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) GtIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gt(*value) } -func (r workerQueryTenantIDString) Gte(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Gte(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "gte", @@ -149336,17 +149822,17 @@ func (r workerQueryTenantIDString) Gte(value string) workerDefaultParam { } } -func (r workerQueryTenantIDString) GteIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) GteIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gte(*value) } -func (r workerQueryTenantIDString) Contains(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Contains(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "contains", @@ -149357,17 +149843,17 @@ func (r workerQueryTenantIDString) Contains(value string) workerDefaultParam { } } -func (r workerQueryTenantIDString) ContainsIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) ContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Contains(*value) } -func (r workerQueryTenantIDString) StartsWith(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) StartsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "startsWith", @@ -149378,17 +149864,17 @@ func (r workerQueryTenantIDString) StartsWith(value string) workerDefaultParam { } } -func (r workerQueryTenantIDString) StartsWithIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) StartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.StartsWith(*value) } -func (r workerQueryTenantIDString) EndsWith(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) EndsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "endsWith", @@ -149399,17 +149885,17 @@ func (r workerQueryTenantIDString) EndsWith(value string) workerDefaultParam { } } -func (r workerQueryTenantIDString) EndsWithIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) EndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.EndsWith(*value) } -func (r workerQueryTenantIDString) Mode(value QueryMode) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Mode(value QueryMode) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "mode", @@ -149420,17 +149906,17 @@ func (r workerQueryTenantIDString) Mode(value QueryMode) workerDefaultParam { } } -func (r workerQueryTenantIDString) ModeIfPresent(value *QueryMode) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) ModeIfPresent(value *QueryMode) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Mode(*value) } -func (r workerQueryTenantIDString) Not(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) Not(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "not", @@ -149441,19 +149927,19 @@ func (r workerQueryTenantIDString) Not(value string) workerDefaultParam { } } -func (r workerQueryTenantIDString) NotIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) NotIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workerQueryTenantIDString) HasPrefix(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) HasPrefix(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "starts_with", @@ -149465,19 +149951,19 @@ func (r workerQueryTenantIDString) HasPrefix(value string) workerDefaultParam { } // deprecated: Use StartsWithIfPresent instead. -func (r workerQueryTenantIDString) HasPrefixIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) HasPrefixIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workerQueryTenantIDString) HasSuffix(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStepRunIDString) HasSuffix(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRunId", Fields: []builder.Field{ { Name: "ends_with", @@ -149489,65 +149975,49 @@ func (r workerQueryTenantIDString) HasSuffix(value string) workerDefaultParam { } // deprecated: Use EndsWithIfPresent instead. -func (r workerQueryTenantIDString) HasSuffixIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryStepRunIDString) HasSuffixIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.HasSuffix(*value) } -func (r workerQueryTenantIDString) Field() workerPrismaFields { - return workerFieldTenantID +func (r stepRunResultArchiveQueryStepRunIDString) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldStepRunID } // base struct -type workerQueryLastHeartbeatAtDateTime struct{} +type stepRunResultArchiveQueryOrderBigInt struct{} -// Set the optional value of LastHeartbeatAt -func (r workerQueryLastHeartbeatAtDateTime) Set(value DateTime) workerSetParam { +// Set the required value of Order +func (r stepRunResultArchiveQueryOrderBigInt) Set(value BigInt) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Value: value, }, } } -// Set the optional value of LastHeartbeatAt dynamically -func (r workerQueryLastHeartbeatAtDateTime) SetIfPresent(value *DateTime) workerSetParam { - if value == nil { - return workerSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of LastHeartbeatAt dynamically -func (r workerQueryLastHeartbeatAtDateTime) SetOptional(value *DateTime) workerSetParam { +// Set the optional value of Order dynamically +func (r stepRunResultArchiveQueryOrderBigInt) SetIfPresent(value *BigInt) stepRunResultArchiveSetParam { if value == nil { - - var v *DateTime - return workerSetParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Value: v, - }, - } + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -func (r workerQueryLastHeartbeatAtDateTime) Equals(value DateTime) workerWithPrismaLastHeartbeatAtEqualsParam { - - return workerWithPrismaLastHeartbeatAtEqualsParam{ +// Increment the required value of Order +func (r stepRunResultArchiveQueryOrderBigInt) Increment(value BigInt) stepRunResultArchiveSetParam { + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "increment", Value: value, }, }, @@ -149555,20 +150025,21 @@ func (r workerQueryLastHeartbeatAtDateTime) Equals(value DateTime) workerWithPri } } -func (r workerQueryLastHeartbeatAtDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaLastHeartbeatAtEqualsParam { +func (r stepRunResultArchiveQueryOrderBigInt) IncrementIfPresent(value *BigInt) stepRunResultArchiveSetParam { if value == nil { - return workerWithPrismaLastHeartbeatAtEqualsParam{} + return stepRunResultArchiveSetParam{} } - return r.Equals(*value) + return r.Increment(*value) } -func (r workerQueryLastHeartbeatAtDateTime) EqualsOptional(value *DateTime) workerDefaultParam { - return workerDefaultParam{ +// Decrement the required value of Order +func (r stepRunResultArchiveQueryOrderBigInt) Decrement(value BigInt) stepRunResultArchiveSetParam { + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "decrement", Value: value, }, }, @@ -149576,46 +150047,21 @@ func (r workerQueryLastHeartbeatAtDateTime) EqualsOptional(value *DateTime) work } } -func (r workerQueryLastHeartbeatAtDateTime) IsNull() workerDefaultParam { - var str *string = nil - return workerDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r workerQueryLastHeartbeatAtDateTime) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Value: direction, - }, - } -} - -func (r workerQueryLastHeartbeatAtDateTime) Cursor(cursor DateTime) workerCursorParam { - return workerCursorParam{ - data: builder.Field{ - Name: "lastHeartbeatAt", - Value: cursor, - }, +func (r stepRunResultArchiveQueryOrderBigInt) DecrementIfPresent(value *BigInt) stepRunResultArchiveSetParam { + if value == nil { + return stepRunResultArchiveSetParam{} } + return r.Decrement(*value) } -func (r workerQueryLastHeartbeatAtDateTime) In(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +// Multiply the required value of Order +func (r stepRunResultArchiveQueryOrderBigInt) Multiply(value BigInt) stepRunResultArchiveSetParam { + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ - { - Name: "in", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -149623,20 +150069,21 @@ func (r workerQueryLastHeartbeatAtDateTime) In(value []DateTime) workerDefaultPa } } -func (r workerQueryLastHeartbeatAtDateTime) InIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryOrderBigInt) MultiplyIfPresent(value *BigInt) stepRunResultArchiveSetParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveSetParam{} } - return r.In(value) + return r.Multiply(*value) } -func (r workerQueryLastHeartbeatAtDateTime) NotIn(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +// Divide the required value of Order +func (r stepRunResultArchiveQueryOrderBigInt) Divide(value BigInt) stepRunResultArchiveSetParam { + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ - { - Name: "notIn", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -149644,20 +150091,21 @@ func (r workerQueryLastHeartbeatAtDateTime) NotIn(value []DateTime) workerDefaul } } -func (r workerQueryLastHeartbeatAtDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryOrderBigInt) DivideIfPresent(value *BigInt) stepRunResultArchiveSetParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveSetParam{} } - return r.NotIn(value) + return r.Divide(*value) } -func (r workerQueryLastHeartbeatAtDateTime) Lt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) Equals(value BigInt) stepRunResultArchiveWithPrismaOrderEqualsParam { + + return stepRunResultArchiveWithPrismaOrderEqualsParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ { - Name: "lt", + Name: "equals", Value: value, }, }, @@ -149665,62 +150113,38 @@ func (r workerQueryLastHeartbeatAtDateTime) Lt(value DateTime) workerDefaultPara } } -func (r workerQueryLastHeartbeatAtDateTime) LtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryOrderBigInt) EqualsIfPresent(value *BigInt) stepRunResultArchiveWithPrismaOrderEqualsParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveWithPrismaOrderEqualsParam{} } - return r.Lt(*value) + return r.Equals(*value) } -func (r workerQueryLastHeartbeatAtDateTime) Lte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, + Name: "order", + Value: direction, }, } } -func (r workerQueryLastHeartbeatAtDateTime) LteIfPresent(value *DateTime) workerDefaultParam { - if value == nil { - return workerDefaultParam{} - } - return r.Lte(*value) -} - -func (r workerQueryLastHeartbeatAtDateTime) Gt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) Cursor(cursor BigInt) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ - Name: "lastHeartbeatAt", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, + Name: "order", + Value: cursor, }, } } -func (r workerQueryLastHeartbeatAtDateTime) GtIfPresent(value *DateTime) workerDefaultParam { - if value == nil { - return workerDefaultParam{} - } - return r.Gt(*value) -} - -func (r workerQueryLastHeartbeatAtDateTime) Gte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) In(value []BigInt) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ { - Name: "gte", + Name: "in", Value: value, }, }, @@ -149728,20 +150152,20 @@ func (r workerQueryLastHeartbeatAtDateTime) Gte(value DateTime) workerDefaultPar } } -func (r workerQueryLastHeartbeatAtDateTime) GteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryOrderBigInt) InIfPresent(value []BigInt) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Gte(*value) + return r.In(value) } -func (r workerQueryLastHeartbeatAtDateTime) Not(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) NotIn(value []BigInt) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ { - Name: "not", + Name: "notIn", Value: value, }, }, @@ -149749,19 +150173,17 @@ func (r workerQueryLastHeartbeatAtDateTime) Not(value DateTime) workerDefaultPar } } -func (r workerQueryLastHeartbeatAtDateTime) NotIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryOrderBigInt) NotInIfPresent(value []BigInt) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Not(*value) + return r.NotIn(value) } -// deprecated: Use Lt instead. - -func (r workerQueryLastHeartbeatAtDateTime) Before(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) Lt(value BigInt) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ { Name: "lt", @@ -149772,23 +150194,20 @@ func (r workerQueryLastHeartbeatAtDateTime) Before(value DateTime) workerDefault } } -// deprecated: Use LtIfPresent instead. -func (r workerQueryLastHeartbeatAtDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryOrderBigInt) LtIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Before(*value) + return r.Lt(*value) } -// deprecated: Use Gt instead. - -func (r workerQueryLastHeartbeatAtDateTime) After(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) Lte(value BigInt) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -149796,23 +150215,20 @@ func (r workerQueryLastHeartbeatAtDateTime) After(value DateTime) workerDefaultP } } -// deprecated: Use GtIfPresent instead. -func (r workerQueryLastHeartbeatAtDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryOrderBigInt) LteIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.After(*value) + return r.Lte(*value) } -// deprecated: Use Lte instead. - -func (r workerQueryLastHeartbeatAtDateTime) BeforeEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) Gt(value BigInt) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -149820,20 +150236,17 @@ func (r workerQueryLastHeartbeatAtDateTime) BeforeEquals(value DateTime) workerD } } -// deprecated: Use LteIfPresent instead. -func (r workerQueryLastHeartbeatAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryOrderBigInt) GtIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.BeforeEquals(*value) + return r.Gt(*value) } -// deprecated: Use Gte instead. - -func (r workerQueryLastHeartbeatAtDateTime) AfterEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOrderBigInt) Gte(value BigInt) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastHeartbeatAt", + Name: "order", Fields: []builder.Field{ { Name: "gte", @@ -149844,50 +150257,20 @@ func (r workerQueryLastHeartbeatAtDateTime) AfterEquals(value DateTime) workerDe } } -// deprecated: Use GteIfPresent instead. -func (r workerQueryLastHeartbeatAtDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { - if value == nil { - return workerDefaultParam{} - } - return r.AfterEquals(*value) -} - -func (r workerQueryLastHeartbeatAtDateTime) Field() workerPrismaFields { - return workerFieldLastHeartbeatAt -} - -// base struct -type workerQueryIsActiveBoolean struct{} - -// Set the required value of IsActive -func (r workerQueryIsActiveBoolean) Set(value bool) workerSetParam { - - return workerSetParam{ - data: builder.Field{ - Name: "isActive", - Value: value, - }, - } - -} - -// Set the optional value of IsActive dynamically -func (r workerQueryIsActiveBoolean) SetIfPresent(value *Boolean) workerSetParam { +func (r stepRunResultArchiveQueryOrderBigInt) GteIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveDefaultParam{} } - - return r.Set(*value) + return r.Gte(*value) } -func (r workerQueryIsActiveBoolean) Equals(value bool) workerWithPrismaIsActiveEqualsParam { - - return workerWithPrismaIsActiveEqualsParam{ +func (r stepRunResultArchiveQueryOrderBigInt) Not(value BigInt) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "isActive", + Name: "order", Fields: []builder.Field{ { - Name: "equals", + Name: "not", Value: value, }, }, @@ -149895,67 +150278,49 @@ func (r workerQueryIsActiveBoolean) Equals(value bool) workerWithPrismaIsActiveE } } -func (r workerQueryIsActiveBoolean) EqualsIfPresent(value *bool) workerWithPrismaIsActiveEqualsParam { +func (r stepRunResultArchiveQueryOrderBigInt) NotIfPresent(value *BigInt) stepRunResultArchiveDefaultParam { if value == nil { - return workerWithPrismaIsActiveEqualsParam{} - } - return r.Equals(*value) -} - -func (r workerQueryIsActiveBoolean) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ - data: builder.Field{ - Name: "isActive", - Value: direction, - }, - } -} - -func (r workerQueryIsActiveBoolean) Cursor(cursor bool) workerCursorParam { - return workerCursorParam{ - data: builder.Field{ - Name: "isActive", - Value: cursor, - }, + return stepRunResultArchiveDefaultParam{} } + return r.Not(*value) } -func (r workerQueryIsActiveBoolean) Field() workerPrismaFields { - return workerFieldIsActive +func (r stepRunResultArchiveQueryOrderBigInt) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldOrder } // base struct -type workerQueryLastListenerEstablishedDateTime struct{} +type stepRunResultArchiveQueryInputJson struct{} -// Set the optional value of LastListenerEstablished -func (r workerQueryLastListenerEstablishedDateTime) Set(value DateTime) workerSetParam { +// Set the optional value of Input +func (r stepRunResultArchiveQueryInputJson) Set(value JSON) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Value: value, }, } } -// Set the optional value of LastListenerEstablished dynamically -func (r workerQueryLastListenerEstablishedDateTime) SetIfPresent(value *DateTime) workerSetParam { +// Set the optional value of Input dynamically +func (r stepRunResultArchiveQueryInputJson) SetIfPresent(value *JSON) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -// Set the optional value of LastListenerEstablished dynamically -func (r workerQueryLastListenerEstablishedDateTime) SetOptional(value *DateTime) workerSetParam { +// Set the optional value of Input dynamically +func (r stepRunResultArchiveQueryInputJson) SetOptional(value *JSON) stepRunResultArchiveSetParam { if value == nil { - var v *DateTime - return workerSetParam{ + var v *JSON + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Value: v, }, } @@ -149964,11 +150329,11 @@ func (r workerQueryLastListenerEstablishedDateTime) SetOptional(value *DateTime) return r.Set(*value) } -func (r workerQueryLastListenerEstablishedDateTime) Equals(value DateTime) workerWithPrismaLastListenerEstablishedEqualsParam { +func (r stepRunResultArchiveQueryInputJson) Equals(value JSON) stepRunResultArchiveWithPrismaInputEqualsParam { - return workerWithPrismaLastListenerEstablishedEqualsParam{ + return stepRunResultArchiveWithPrismaInputEqualsParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { Name: "equals", @@ -149979,17 +150344,17 @@ func (r workerQueryLastListenerEstablishedDateTime) Equals(value DateTime) worke } } -func (r workerQueryLastListenerEstablishedDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaLastListenerEstablishedEqualsParam { +func (r stepRunResultArchiveQueryInputJson) EqualsIfPresent(value *JSON) stepRunResultArchiveWithPrismaInputEqualsParam { if value == nil { - return workerWithPrismaLastListenerEstablishedEqualsParam{} + return stepRunResultArchiveWithPrismaInputEqualsParam{} } return r.Equals(*value) } -func (r workerQueryLastListenerEstablishedDateTime) EqualsOptional(value *DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) EqualsOptional(value *JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { Name: "equals", @@ -150000,11 +150365,11 @@ func (r workerQueryLastListenerEstablishedDateTime) EqualsOptional(value *DateTi } } -func (r workerQueryLastListenerEstablishedDateTime) IsNull() workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) IsNull() stepRunResultArchiveDefaultParam { var str *string = nil - return workerDefaultParam{ + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { Name: "equals", @@ -150015,31 +150380,31 @@ func (r workerQueryLastListenerEstablishedDateTime) IsNull() workerDefaultParam } } -func (r workerQueryLastListenerEstablishedDateTime) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Value: direction, }, } } -func (r workerQueryLastListenerEstablishedDateTime) Cursor(cursor DateTime) workerCursorParam { - return workerCursorParam{ +func (r stepRunResultArchiveQueryInputJson) Cursor(cursor JSON) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Value: cursor, }, } } -func (r workerQueryLastListenerEstablishedDateTime) In(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) Path(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "in", + Name: "path", Value: value, }, }, @@ -150047,20 +150412,20 @@ func (r workerQueryLastListenerEstablishedDateTime) In(value []DateTime) workerD } } -func (r workerQueryLastListenerEstablishedDateTime) InIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) PathIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.In(value) + return r.Path(value) } -func (r workerQueryLastListenerEstablishedDateTime) NotIn(value []DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) StringContains(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "notIn", + Name: "string_contains", Value: value, }, }, @@ -150068,20 +150433,20 @@ func (r workerQueryLastListenerEstablishedDateTime) NotIn(value []DateTime) work } } -func (r workerQueryLastListenerEstablishedDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) StringContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.NotIn(value) + return r.StringContains(*value) } -func (r workerQueryLastListenerEstablishedDateTime) Lt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) StringStartsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "lt", + Name: "string_starts_with", Value: value, }, }, @@ -150089,20 +150454,20 @@ func (r workerQueryLastListenerEstablishedDateTime) Lt(value DateTime) workerDef } } -func (r workerQueryLastListenerEstablishedDateTime) LtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) StringStartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Lt(*value) + return r.StringStartsWith(*value) } -func (r workerQueryLastListenerEstablishedDateTime) Lte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) StringEndsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "lte", + Name: "string_ends_with", Value: value, }, }, @@ -150110,20 +150475,20 @@ func (r workerQueryLastListenerEstablishedDateTime) Lte(value DateTime) workerDe } } -func (r workerQueryLastListenerEstablishedDateTime) LteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) StringEndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Lte(*value) + return r.StringEndsWith(*value) } -func (r workerQueryLastListenerEstablishedDateTime) Gt(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) ArrayContains(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "gt", + Name: "array_contains", Value: value, }, }, @@ -150131,20 +150496,20 @@ func (r workerQueryLastListenerEstablishedDateTime) Gt(value DateTime) workerDef } } -func (r workerQueryLastListenerEstablishedDateTime) GtIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) ArrayContainsIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Gt(*value) + return r.ArrayContains(*value) } -func (r workerQueryLastListenerEstablishedDateTime) Gte(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) ArrayStartsWith(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "gte", + Name: "array_starts_with", Value: value, }, }, @@ -150152,20 +150517,20 @@ func (r workerQueryLastListenerEstablishedDateTime) Gte(value DateTime) workerDe } } -func (r workerQueryLastListenerEstablishedDateTime) GteIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) ArrayStartsWithIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Gte(*value) + return r.ArrayStartsWith(*value) } -func (r workerQueryLastListenerEstablishedDateTime) Not(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) ArrayEndsWith(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "not", + Name: "array_ends_with", Value: value, }, }, @@ -150173,19 +150538,17 @@ func (r workerQueryLastListenerEstablishedDateTime) Not(value DateTime) workerDe } } -func (r workerQueryLastListenerEstablishedDateTime) NotIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) ArrayEndsWithIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Not(*value) + return r.ArrayEndsWith(*value) } -// deprecated: Use Lt instead. - -func (r workerQueryLastListenerEstablishedDateTime) Before(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) Lt(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { Name: "lt", @@ -150196,20 +150559,38 @@ func (r workerQueryLastListenerEstablishedDateTime) Before(value DateTime) worke } } -// deprecated: Use LtIfPresent instead. -func (r workerQueryLastListenerEstablishedDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) LtIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Before(*value) + return r.Lt(*value) } -// deprecated: Use Gt instead. +func (r stepRunResultArchiveQueryInputJson) Lte(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "input", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} -func (r workerQueryLastListenerEstablishedDateTime) After(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) LteIfPresent(value *JSON) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Lte(*value) +} + +func (r stepRunResultArchiveQueryInputJson) Gt(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { Name: "gt", @@ -150220,23 +150601,20 @@ func (r workerQueryLastListenerEstablishedDateTime) After(value DateTime) worker } } -// deprecated: Use GtIfPresent instead. -func (r workerQueryLastListenerEstablishedDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) GtIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.After(*value) + return r.Gt(*value) } -// deprecated: Use Lte instead. - -func (r workerQueryLastListenerEstablishedDateTime) BeforeEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) Gte(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "lte", + Name: "gte", Value: value, }, }, @@ -150244,23 +150622,20 @@ func (r workerQueryLastListenerEstablishedDateTime) BeforeEquals(value DateTime) } } -// deprecated: Use LteIfPresent instead. -func (r workerQueryLastListenerEstablishedDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) GteIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.BeforeEquals(*value) + return r.Gte(*value) } -// deprecated: Use Gte instead. - -func (r workerQueryLastListenerEstablishedDateTime) AfterEquals(value DateTime) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryInputJson) Not(value JSONNullValueFilter) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "lastListenerEstablished", + Name: "input", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -150268,47 +150643,62 @@ func (r workerQueryLastListenerEstablishedDateTime) AfterEquals(value DateTime) } } -// deprecated: Use GteIfPresent instead. -func (r workerQueryLastListenerEstablishedDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { +func (r stepRunResultArchiveQueryInputJson) NotIfPresent(value *JSONNullValueFilter) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.AfterEquals(*value) + return r.Not(*value) } -func (r workerQueryLastListenerEstablishedDateTime) Field() workerPrismaFields { - return workerFieldLastListenerEstablished +func (r stepRunResultArchiveQueryInputJson) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldInput } // base struct -type workerQueryNameString struct{} +type stepRunResultArchiveQueryOutputJson struct{} -// Set the required value of Name -func (r workerQueryNameString) Set(value string) workerWithPrismaNameSetParam { +// Set the optional value of Output +func (r stepRunResultArchiveQueryOutputJson) Set(value JSON) stepRunResultArchiveSetParam { - return workerWithPrismaNameSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "name", + Name: "output", Value: value, }, } } -// Set the optional value of Name dynamically -func (r workerQueryNameString) SetIfPresent(value *String) workerWithPrismaNameSetParam { +// Set the optional value of Output dynamically +func (r stepRunResultArchiveQueryOutputJson) SetIfPresent(value *JSON) stepRunResultArchiveSetParam { if value == nil { - return workerWithPrismaNameSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -func (r workerQueryNameString) Equals(value string) workerWithPrismaNameEqualsParam { +// Set the optional value of Output dynamically +func (r stepRunResultArchiveQueryOutputJson) SetOptional(value *JSON) stepRunResultArchiveSetParam { + if value == nil { - return workerWithPrismaNameEqualsParam{ + var v *JSON + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "output", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepRunResultArchiveQueryOutputJson) Equals(value JSON) stepRunResultArchiveWithPrismaOutputEqualsParam { + + return stepRunResultArchiveWithPrismaOutputEqualsParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { Name: "equals", @@ -150319,38 +150709,20 @@ func (r workerQueryNameString) Equals(value string) workerWithPrismaNameEqualsPa } } -func (r workerQueryNameString) EqualsIfPresent(value *string) workerWithPrismaNameEqualsParam { +func (r stepRunResultArchiveQueryOutputJson) EqualsIfPresent(value *JSON) stepRunResultArchiveWithPrismaOutputEqualsParam { if value == nil { - return workerWithPrismaNameEqualsParam{} + return stepRunResultArchiveWithPrismaOutputEqualsParam{} } return r.Equals(*value) } -func (r workerQueryNameString) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ - data: builder.Field{ - Name: "name", - Value: direction, - }, - } -} - -func (r workerQueryNameString) Cursor(cursor string) workerCursorParam { - return workerCursorParam{ - data: builder.Field{ - Name: "name", - Value: cursor, - }, - } -} - -func (r workerQueryNameString) In(value []string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) EqualsOptional(value *JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "in", + Name: "equals", Value: value, }, }, @@ -150358,62 +150730,46 @@ func (r workerQueryNameString) In(value []string) workerDefaultParam { } } -func (r workerQueryNameString) InIfPresent(value []string) workerDefaultParam { - if value == nil { - return workerDefaultParam{} - } - return r.In(value) -} - -func (r workerQueryNameString) NotIn(value []string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) IsNull() stepRunResultArchiveDefaultParam { + var str *string = nil + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "equals", + Value: str, }, }, }, } } -func (r workerQueryNameString) NotInIfPresent(value []string) workerDefaultParam { - if value == nil { - return workerDefaultParam{} - } - return r.NotIn(value) -} - -func (r workerQueryNameString) Lt(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, + Name: "output", + Value: direction, }, } } -func (r workerQueryNameString) LtIfPresent(value *string) workerDefaultParam { - if value == nil { - return workerDefaultParam{} +func (r stepRunResultArchiveQueryOutputJson) Cursor(cursor JSON) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ + data: builder.Field{ + Name: "output", + Value: cursor, + }, } - return r.Lt(*value) } -func (r workerQueryNameString) Lte(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) Path(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "lte", + Name: "path", Value: value, }, }, @@ -150421,20 +150777,20 @@ func (r workerQueryNameString) Lte(value string) workerDefaultParam { } } -func (r workerQueryNameString) LteIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) PathIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Lte(*value) + return r.Path(value) } -func (r workerQueryNameString) Gt(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) StringContains(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "gt", + Name: "string_contains", Value: value, }, }, @@ -150442,20 +150798,20 @@ func (r workerQueryNameString) Gt(value string) workerDefaultParam { } } -func (r workerQueryNameString) GtIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) StringContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Gt(*value) + return r.StringContains(*value) } -func (r workerQueryNameString) Gte(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) StringStartsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "gte", + Name: "string_starts_with", Value: value, }, }, @@ -150463,20 +150819,20 @@ func (r workerQueryNameString) Gte(value string) workerDefaultParam { } } -func (r workerQueryNameString) GteIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) StringStartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Gte(*value) + return r.StringStartsWith(*value) } -func (r workerQueryNameString) Contains(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) StringEndsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "contains", + Name: "string_ends_with", Value: value, }, }, @@ -150484,20 +150840,20 @@ func (r workerQueryNameString) Contains(value string) workerDefaultParam { } } -func (r workerQueryNameString) ContainsIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) StringEndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Contains(*value) + return r.StringEndsWith(*value) } -func (r workerQueryNameString) StartsWith(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) ArrayContains(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "startsWith", + Name: "array_contains", Value: value, }, }, @@ -150505,20 +150861,20 @@ func (r workerQueryNameString) StartsWith(value string) workerDefaultParam { } } -func (r workerQueryNameString) StartsWithIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) ArrayContainsIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.StartsWith(*value) + return r.ArrayContains(*value) } -func (r workerQueryNameString) EndsWith(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) ArrayStartsWith(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "endsWith", + Name: "array_starts_with", Value: value, }, }, @@ -150526,20 +150882,20 @@ func (r workerQueryNameString) EndsWith(value string) workerDefaultParam { } } -func (r workerQueryNameString) EndsWithIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) ArrayStartsWithIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.EndsWith(*value) + return r.ArrayStartsWith(*value) } -func (r workerQueryNameString) Mode(value QueryMode) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) ArrayEndsWith(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "mode", + Name: "array_ends_with", Value: value, }, }, @@ -150547,20 +150903,20 @@ func (r workerQueryNameString) Mode(value QueryMode) workerDefaultParam { } } -func (r workerQueryNameString) ModeIfPresent(value *QueryMode) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) ArrayEndsWithIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Mode(*value) + return r.ArrayEndsWith(*value) } -func (r workerQueryNameString) Not(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) Lt(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "not", + Name: "lt", Value: value, }, }, @@ -150568,22 +150924,20 @@ func (r workerQueryNameString) Not(value string) workerDefaultParam { } } -func (r workerQueryNameString) NotIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) LtIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Not(*value) + return r.Lt(*value) } -// deprecated: Use StartsWith instead. - -func (r workerQueryNameString) HasPrefix(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) Lte(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -150591,23 +150945,20 @@ func (r workerQueryNameString) HasPrefix(value string) workerDefaultParam { } } -// deprecated: Use StartsWithIfPresent instead. -func (r workerQueryNameString) HasPrefixIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) LteIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.HasPrefix(*value) + return r.Lte(*value) } -// deprecated: Use EndsWith instead. - -func (r workerQueryNameString) HasSuffix(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) Gt(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "name", + Name: "output", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gt", Value: value, }, }, @@ -150615,138 +150966,91 @@ func (r workerQueryNameString) HasSuffix(value string) workerDefaultParam { } } -// deprecated: Use EndsWithIfPresent instead. -func (r workerQueryNameString) HasSuffixIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryOutputJson) GtIfPresent(value *JSON) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.HasSuffix(*value) -} - -func (r workerQueryNameString) Field() workerPrismaFields { - return workerFieldName + return r.Gt(*value) } -// base struct -type workerQueryDispatcherDispatcher struct{} - -type workerQueryDispatcherRelations struct{} - -// Worker -> Dispatcher -// -// @relation -// @optional -func (workerQueryDispatcherRelations) Where( - params ...DispatcherWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workerDefaultParam{ +func (r stepRunResultArchiveQueryOutputJson) Gte(value JSON) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcher", + Name: "output", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "gte", + Value: value, }, }, }, } } -func (workerQueryDispatcherRelations) Fetch() workerToDispatcherFindUnique { - var v workerToDispatcherFindUnique - - v.query.Operation = "query" - v.query.Method = "dispatcher" - v.query.Outputs = dispatcherOutput - - return v -} - -func (r workerQueryDispatcherRelations) Link( - params DispatcherWhereParam, -) workerSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workerSetParam{} +func (r stepRunResultArchiveQueryOutputJson) GteIfPresent(value *JSON) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.Gte(*value) +} - fields = append(fields, f) - - return workerSetParam{ +func (r stepRunResultArchiveQueryOutputJson) Not(value JSONNullValueFilter) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcher", + Name: "output", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "not", + Value: value, }, }, }, } } -func (r workerQueryDispatcherRelations) Unlink() workerSetParam { - var v workerSetParam - - v = workerSetParam{ - data: builder.Field{ - Name: "dispatcher", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, +func (r stepRunResultArchiveQueryOutputJson) NotIfPresent(value *JSONNullValueFilter) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } - - return v + return r.Not(*value) } -func (r workerQueryDispatcherDispatcher) Field() workerPrismaFields { - return workerFieldDispatcher +func (r stepRunResultArchiveQueryOutputJson) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldOutput } // base struct -type workerQueryDispatcherIDString struct{} +type stepRunResultArchiveQueryErrorString struct{} -// Set the optional value of DispatcherID -func (r workerQueryDispatcherIDString) Set(value string) workerSetParam { +// Set the optional value of Error +func (r stepRunResultArchiveQueryErrorString) Set(value string) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Value: value, }, } } -// Set the optional value of DispatcherID dynamically -func (r workerQueryDispatcherIDString) SetIfPresent(value *String) workerSetParam { +// Set the optional value of Error dynamically +func (r stepRunResultArchiveQueryErrorString) SetIfPresent(value *String) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -// Set the optional value of DispatcherID dynamically -func (r workerQueryDispatcherIDString) SetOptional(value *String) workerSetParam { +// Set the optional value of Error dynamically +func (r stepRunResultArchiveQueryErrorString) SetOptional(value *String) stepRunResultArchiveSetParam { if value == nil { var v *string - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Value: v, }, } @@ -150755,11 +151059,11 @@ func (r workerQueryDispatcherIDString) SetOptional(value *String) workerSetParam return r.Set(*value) } -func (r workerQueryDispatcherIDString) Equals(value string) workerWithPrismaDispatcherIDEqualsParam { +func (r stepRunResultArchiveQueryErrorString) Equals(value string) stepRunResultArchiveWithPrismaErrorEqualsParam { - return workerWithPrismaDispatcherIDEqualsParam{ + return stepRunResultArchiveWithPrismaErrorEqualsParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -150770,17 +151074,17 @@ func (r workerQueryDispatcherIDString) Equals(value string) workerWithPrismaDisp } } -func (r workerQueryDispatcherIDString) EqualsIfPresent(value *string) workerWithPrismaDispatcherIDEqualsParam { +func (r stepRunResultArchiveQueryErrorString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaErrorEqualsParam { if value == nil { - return workerWithPrismaDispatcherIDEqualsParam{} + return stepRunResultArchiveWithPrismaErrorEqualsParam{} } return r.Equals(*value) } -func (r workerQueryDispatcherIDString) EqualsOptional(value *String) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) EqualsOptional(value *String) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -150791,11 +151095,11 @@ func (r workerQueryDispatcherIDString) EqualsOptional(value *String) workerDefau } } -func (r workerQueryDispatcherIDString) IsNull() workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) IsNull() stepRunResultArchiveDefaultParam { var str *string = nil - return workerDefaultParam{ + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "equals", @@ -150806,28 +151110,28 @@ func (r workerQueryDispatcherIDString) IsNull() workerDefaultParam { } } -func (r workerQueryDispatcherIDString) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Value: direction, }, } } -func (r workerQueryDispatcherIDString) Cursor(cursor string) workerCursorParam { - return workerCursorParam{ +func (r stepRunResultArchiveQueryErrorString) Cursor(cursor string) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Value: cursor, }, } } -func (r workerQueryDispatcherIDString) In(value []string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) In(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "in", @@ -150838,17 +151142,17 @@ func (r workerQueryDispatcherIDString) In(value []string) workerDefaultParam { } } -func (r workerQueryDispatcherIDString) InIfPresent(value []string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) InIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.In(value) } -func (r workerQueryDispatcherIDString) NotIn(value []string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) NotIn(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "notIn", @@ -150859,17 +151163,17 @@ func (r workerQueryDispatcherIDString) NotIn(value []string) workerDefaultParam } } -func (r workerQueryDispatcherIDString) NotInIfPresent(value []string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) NotInIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.NotIn(value) } -func (r workerQueryDispatcherIDString) Lt(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) Lt(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "lt", @@ -150880,17 +151184,17 @@ func (r workerQueryDispatcherIDString) Lt(value string) workerDefaultParam { } } -func (r workerQueryDispatcherIDString) LtIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) LtIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lt(*value) } -func (r workerQueryDispatcherIDString) Lte(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) Lte(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "lte", @@ -150901,17 +151205,17 @@ func (r workerQueryDispatcherIDString) Lte(value string) workerDefaultParam { } } -func (r workerQueryDispatcherIDString) LteIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) LteIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lte(*value) } -func (r workerQueryDispatcherIDString) Gt(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) Gt(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "gt", @@ -150922,17 +151226,17 @@ func (r workerQueryDispatcherIDString) Gt(value string) workerDefaultParam { } } -func (r workerQueryDispatcherIDString) GtIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) GtIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gt(*value) } -func (r workerQueryDispatcherIDString) Gte(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) Gte(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "gte", @@ -150943,17 +151247,17 @@ func (r workerQueryDispatcherIDString) Gte(value string) workerDefaultParam { } } -func (r workerQueryDispatcherIDString) GteIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) GteIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gte(*value) } -func (r workerQueryDispatcherIDString) Contains(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) Contains(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "contains", @@ -150964,17 +151268,17 @@ func (r workerQueryDispatcherIDString) Contains(value string) workerDefaultParam } } -func (r workerQueryDispatcherIDString) ContainsIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) ContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Contains(*value) } -func (r workerQueryDispatcherIDString) StartsWith(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) StartsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "startsWith", @@ -150985,17 +151289,17 @@ func (r workerQueryDispatcherIDString) StartsWith(value string) workerDefaultPar } } -func (r workerQueryDispatcherIDString) StartsWithIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) StartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.StartsWith(*value) } -func (r workerQueryDispatcherIDString) EndsWith(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) EndsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "endsWith", @@ -151006,17 +151310,17 @@ func (r workerQueryDispatcherIDString) EndsWith(value string) workerDefaultParam } } -func (r workerQueryDispatcherIDString) EndsWithIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) EndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.EndsWith(*value) } -func (r workerQueryDispatcherIDString) Mode(value QueryMode) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) Mode(value QueryMode) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "mode", @@ -151027,17 +151331,17 @@ func (r workerQueryDispatcherIDString) Mode(value QueryMode) workerDefaultParam } } -func (r workerQueryDispatcherIDString) ModeIfPresent(value *QueryMode) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) ModeIfPresent(value *QueryMode) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Mode(*value) } -func (r workerQueryDispatcherIDString) Not(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) Not(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "not", @@ -151048,19 +151352,19 @@ func (r workerQueryDispatcherIDString) Not(value string) workerDefaultParam { } } -func (r workerQueryDispatcherIDString) NotIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) NotIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workerQueryDispatcherIDString) HasPrefix(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) HasPrefix(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "starts_with", @@ -151072,19 +151376,19 @@ func (r workerQueryDispatcherIDString) HasPrefix(value string) workerDefaultPara } // deprecated: Use StartsWithIfPresent instead. -func (r workerQueryDispatcherIDString) HasPrefixIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) HasPrefixIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workerQueryDispatcherIDString) HasSuffix(value string) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryErrorString) HasSuffix(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "dispatcherId", + Name: "error", Fields: []builder.Field{ { Name: "ends_with", @@ -151096,93 +151400,65 @@ func (r workerQueryDispatcherIDString) HasSuffix(value string) workerDefaultPara } // deprecated: Use EndsWithIfPresent instead. -func (r workerQueryDispatcherIDString) HasSuffixIfPresent(value *string) workerDefaultParam { +func (r stepRunResultArchiveQueryErrorString) HasSuffixIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.HasSuffix(*value) } -func (r workerQueryDispatcherIDString) Field() workerPrismaFields { - return workerFieldDispatcherID +func (r stepRunResultArchiveQueryErrorString) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldError } // base struct -type workerQueryMaxRunsInt struct{} +type stepRunResultArchiveQueryStartedAtDateTime struct{} -// Set the required value of MaxRuns -func (r workerQueryMaxRunsInt) Set(value int) workerSetParam { +// Set the optional value of StartedAt +func (r stepRunResultArchiveQueryStartedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - return workerSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Value: value, }, } } -// Set the optional value of MaxRuns dynamically -func (r workerQueryMaxRunsInt) SetIfPresent(value *Int) workerSetParam { +// Set the optional value of StartedAt dynamically +func (r stepRunResultArchiveQueryStartedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -// Increment the required value of MaxRuns -func (r workerQueryMaxRunsInt) Increment(value int) workerSetParam { - return workerSetParam{ - data: builder.Field{ - Name: "maxRuns", - Fields: []builder.Field{ - builder.Field{ - Name: "increment", - Value: value, - }, - }, - }, - } -} - -func (r workerQueryMaxRunsInt) IncrementIfPresent(value *int) workerSetParam { +// Set the optional value of StartedAt dynamically +func (r stepRunResultArchiveQueryStartedAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { if value == nil { - return workerSetParam{} - } - return r.Increment(*value) -} -// Decrement the required value of MaxRuns -func (r workerQueryMaxRunsInt) Decrement(value int) workerSetParam { - return workerSetParam{ - data: builder.Field{ - Name: "maxRuns", - Fields: []builder.Field{ - builder.Field{ - Name: "decrement", - Value: value, - }, + var v *DateTime + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "startedAt", + Value: v, }, - }, + } } -} -func (r workerQueryMaxRunsInt) DecrementIfPresent(value *int) workerSetParam { - if value == nil { - return workerSetParam{} - } - return r.Decrement(*value) + return r.Set(*value) } -// Multiply the required value of MaxRuns -func (r workerQueryMaxRunsInt) Multiply(value int) workerSetParam { - return workerSetParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaStartedAtEqualsParam { + + return stepRunResultArchiveWithPrismaStartedAtEqualsParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "equals", Value: value, }, }, @@ -151190,21 +151466,20 @@ func (r workerQueryMaxRunsInt) Multiply(value int) workerSetParam { } } -func (r workerQueryMaxRunsInt) MultiplyIfPresent(value *int) workerSetParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaStartedAtEqualsParam { if value == nil { - return workerSetParam{} + return stepRunResultArchiveWithPrismaStartedAtEqualsParam{} } - return r.Multiply(*value) + return r.Equals(*value) } -// Divide the required value of MaxRuns -func (r workerQueryMaxRunsInt) Divide(value int) workerSetParam { - return workerSetParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "equals", Value: value, }, }, @@ -151212,57 +151487,43 @@ func (r workerQueryMaxRunsInt) Divide(value int) workerSetParam { } } -func (r workerQueryMaxRunsInt) DivideIfPresent(value *int) workerSetParam { - if value == nil { - return workerSetParam{} - } - return r.Divide(*value) -} - -func (r workerQueryMaxRunsInt) Equals(value int) workerWithPrismaMaxRunsEqualsParam { - - return workerWithPrismaMaxRunsEqualsParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) IsNull() stepRunResultArchiveDefaultParam { + var str *string = nil + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "equals", - Value: value, + Value: str, }, }, }, } } -func (r workerQueryMaxRunsInt) EqualsIfPresent(value *int) workerWithPrismaMaxRunsEqualsParam { - if value == nil { - return workerWithPrismaMaxRunsEqualsParam{} - } - return r.Equals(*value) -} - -func (r workerQueryMaxRunsInt) Order(direction SortOrder) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Value: direction, }, } } -func (r workerQueryMaxRunsInt) Cursor(cursor int) workerCursorParam { - return workerCursorParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Value: cursor, }, } } -func (r workerQueryMaxRunsInt) In(value []int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "in", @@ -151273,17 +151534,17 @@ func (r workerQueryMaxRunsInt) In(value []int) workerDefaultParam { } } -func (r workerQueryMaxRunsInt) InIfPresent(value []int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.In(value) } -func (r workerQueryMaxRunsInt) NotIn(value []int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "notIn", @@ -151294,17 +151555,17 @@ func (r workerQueryMaxRunsInt) NotIn(value []int) workerDefaultParam { } } -func (r workerQueryMaxRunsInt) NotInIfPresent(value []int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.NotIn(value) } -func (r workerQueryMaxRunsInt) Lt(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "lt", @@ -151315,17 +151576,17 @@ func (r workerQueryMaxRunsInt) Lt(value int) workerDefaultParam { } } -func (r workerQueryMaxRunsInt) LtIfPresent(value *int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lt(*value) } -func (r workerQueryMaxRunsInt) Lte(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "lte", @@ -151336,17 +151597,17 @@ func (r workerQueryMaxRunsInt) Lte(value int) workerDefaultParam { } } -func (r workerQueryMaxRunsInt) LteIfPresent(value *int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lte(*value) } -func (r workerQueryMaxRunsInt) Gt(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "gt", @@ -151357,17 +151618,17 @@ func (r workerQueryMaxRunsInt) Gt(value int) workerDefaultParam { } } -func (r workerQueryMaxRunsInt) GtIfPresent(value *int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gt(*value) } -func (r workerQueryMaxRunsInt) Gte(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "gte", @@ -151378,17 +151639,17 @@ func (r workerQueryMaxRunsInt) Gte(value int) workerDefaultParam { } } -func (r workerQueryMaxRunsInt) GteIfPresent(value *int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gte(*value) } -func (r workerQueryMaxRunsInt) Not(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "not", @@ -151399,19 +151660,19 @@ func (r workerQueryMaxRunsInt) Not(value int) workerDefaultParam { } } -func (r workerQueryMaxRunsInt) NotIfPresent(value *int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r workerQueryMaxRunsInt) LT(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "lt", @@ -151423,22 +151684,22 @@ func (r workerQueryMaxRunsInt) LT(value int) workerDefaultParam { } // deprecated: Use LtIfPresent instead. -func (r workerQueryMaxRunsInt) LTIfPresent(value *int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.LT(*value) + return r.Before(*value) } -// deprecated: Use Lte instead. +// deprecated: Use Gt instead. -func (r workerQueryMaxRunsInt) LTE(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -151446,23 +151707,23 @@ func (r workerQueryMaxRunsInt) LTE(value int) workerDefaultParam { } } -// deprecated: Use LteIfPresent instead. -func (r workerQueryMaxRunsInt) LTEIfPresent(value *int) workerDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r stepRunResultArchiveQueryStartedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.LTE(*value) + return r.After(*value) } -// deprecated: Use Gt instead. +// deprecated: Use Lte instead. -func (r workerQueryMaxRunsInt) GT(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -151470,20 +151731,20 @@ func (r workerQueryMaxRunsInt) GT(value int) workerDefaultParam { } } -// deprecated: Use GtIfPresent instead. -func (r workerQueryMaxRunsInt) GTIfPresent(value *int) workerDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r stepRunResultArchiveQueryStartedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.GT(*value) + return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r workerQueryMaxRunsInt) GTE(value int) workerDefaultParam { - return workerDefaultParam{ +func (r stepRunResultArchiveQueryStartedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "maxRuns", + Name: "startedAt", Fields: []builder.Field{ { Name: "gte", @@ -151495,1152 +151756,1130 @@ func (r workerQueryMaxRunsInt) GTE(value int) workerDefaultParam { } // deprecated: Use GteIfPresent instead. -func (r workerQueryMaxRunsInt) GTEIfPresent(value *int) workerDefaultParam { +func (r stepRunResultArchiveQueryStartedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { if value == nil { - return workerDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.GTE(*value) + return r.AfterEquals(*value) } -func (r workerQueryMaxRunsInt) Field() workerPrismaFields { - return workerFieldMaxRuns +func (r stepRunResultArchiveQueryStartedAtDateTime) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldStartedAt } // base struct -type workerQueryServicesService struct{} +type stepRunResultArchiveQueryFinishedAtDateTime struct{} -type workerQueryServicesRelations struct{} +// Set the optional value of FinishedAt +func (r stepRunResultArchiveQueryFinishedAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { -// Worker -> Services -// -// @relation -// @required -func (workerQueryServicesRelations) Some( - params ...ServiceWhereParam, -) workerDefaultParam { - var fields []builder.Field + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "finishedAt", + Value: value, + }, + } - for _, q := range params { - fields = append(fields, q.field()) +} + +// Set the optional value of FinishedAt dynamically +func (r stepRunResultArchiveQueryFinishedAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { + if value == nil { + return stepRunResultArchiveSetParam{} } - return workerDefaultParam{ + return r.Set(*value) +} + +// Set the optional value of FinishedAt dynamically +func (r stepRunResultArchiveQueryFinishedAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { + if value == nil { + + var v *DateTime + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "finishedAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepRunResultArchiveQueryFinishedAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaFinishedAtEqualsParam { + + return stepRunResultArchiveWithPrismaFinishedAtEqualsParam{ data: builder.Field{ - Name: "services", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -// Worker -> Services -// -// @relation -// @required -func (workerQueryServicesRelations) Every( - params ...ServiceWhereParam, -) workerDefaultParam { - var fields []builder.Field +func (r stepRunResultArchiveQueryFinishedAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaFinishedAtEqualsParam { + if value == nil { + return stepRunResultArchiveWithPrismaFinishedAtEqualsParam{} + } + return r.Equals(*value) +} - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryFinishedAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "finishedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, } +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryFinishedAtDateTime) IsNull() stepRunResultArchiveDefaultParam { + var str *string = nil + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "services", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "equals", + Value: str, }, }, }, } } -// Worker -> Services -// -// @relation -// @required -func (workerQueryServicesRelations) None( - params ...ServiceWhereParam, -) workerDefaultParam { - var fields []builder.Field +func (r stepRunResultArchiveQueryFinishedAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "finishedAt", + Value: direction, + }, + } +} - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryFinishedAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ + data: builder.Field{ + Name: "finishedAt", + Value: cursor, + }, } +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryFinishedAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "services", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -func (workerQueryServicesRelations) Fetch( - - params ...ServiceWhereParam, - -) workerToServicesFindMany { - var v workerToServicesFindMany +func (r stepRunResultArchiveQueryFinishedAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.In(value) +} - v.query.Operation = "query" - v.query.Method = "services" - v.query.Outputs = serviceOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} - -func (r workerQueryServicesRelations) Link( - params ...ServiceWhereParam, -) workerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workerSetParam{ +func (r stepRunResultArchiveQueryFinishedAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "services", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "notIn", + Value: value, }, }, }, } } -func (r workerQueryServicesRelations) Unlink( - params ...ServiceWhereParam, -) workerSetParam { - var v workerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryFinishedAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } - v = workerSetParam{ + return r.NotIn(value) +} + +func (r stepRunResultArchiveQueryFinishedAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "services", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "lt", + Value: value, }, }, }, } - - return v -} - -func (r workerQueryServicesService) Field() workerPrismaFields { - return workerFieldServices } -// base struct -type workerQueryActionsAction struct{} - -type workerQueryActionsRelations struct{} - -// Worker -> Actions -// -// @relation -// @required -func (workerQueryActionsRelations) Some( - params ...ActionWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryFinishedAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.Lt(*value) +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryFinishedAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "actions", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "lte", + Value: value, }, }, }, } } -// Worker -> Actions -// -// @relation -// @required -func (workerQueryActionsRelations) Every( - params ...ActionWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryFinishedAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.Lte(*value) +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryFinishedAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "actions", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -// Worker -> Actions -// -// @relation -// @required -func (workerQueryActionsRelations) None( - params ...ActionWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryFinishedAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.Gt(*value) +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryFinishedAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "actions", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "gte", + Value: value, }, }, }, } } -func (workerQueryActionsRelations) Fetch( - - params ...ActionWhereParam, - -) workerToActionsFindMany { - var v workerToActionsFindMany - - v.query.Operation = "query" - v.query.Method = "actions" - v.query.Outputs = actionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepRunResultArchiveQueryFinishedAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } - - return v + return r.Gte(*value) } -func (r workerQueryActionsRelations) Link( - params ...ActionWhereParam, -) workerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workerSetParam{ +func (r stepRunResultArchiveQueryFinishedAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "actions", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "not", + Value: value, }, }, }, } } -func (r workerQueryActionsRelations) Unlink( - params ...ActionWhereParam, -) workerSetParam { - var v workerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryFinishedAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } - v = workerSetParam{ + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r stepRunResultArchiveQueryFinishedAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "actions", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "lt", + Value: value, }, }, }, } - - return v } -func (r workerQueryActionsAction) Field() workerPrismaFields { - return workerFieldActions +// deprecated: Use LtIfPresent instead. +func (r stepRunResultArchiveQueryFinishedAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Before(*value) } -// base struct -type workerQueryStepRunsStepRun struct{} - -type workerQueryStepRunsRelations struct{} - -// Worker -> StepRuns -// -// @relation -// @required -func (workerQueryStepRunsRelations) Some( - params ...StepRunWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use Gt instead. - return workerDefaultParam{ +func (r stepRunResultArchiveQueryFinishedAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -// Worker -> StepRuns -// -// @relation -// @required -func (workerQueryStepRunsRelations) Every( - params ...StepRunWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use GtIfPresent instead. +func (r stepRunResultArchiveQueryFinishedAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.After(*value) +} - return workerDefaultParam{ +// deprecated: Use Lte instead. + +func (r stepRunResultArchiveQueryFinishedAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "lte", + Value: value, }, }, }, } } -// Worker -> StepRuns -// -// @relation -// @required -func (workerQueryStepRunsRelations) None( - params ...StepRunWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use LteIfPresent instead. +func (r stepRunResultArchiveQueryFinishedAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.BeforeEquals(*value) +} - return workerDefaultParam{ +// deprecated: Use Gte instead. + +func (r stepRunResultArchiveQueryFinishedAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "stepRuns", + Name: "finishedAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "gte", + Value: value, }, }, }, } } -func (workerQueryStepRunsRelations) Fetch( - - params ...StepRunWhereParam, +// deprecated: Use GteIfPresent instead. +func (r stepRunResultArchiveQueryFinishedAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.AfterEquals(*value) +} -) workerToStepRunsFindMany { - var v workerToStepRunsFindMany +func (r stepRunResultArchiveQueryFinishedAtDateTime) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldFinishedAt +} - v.query.Operation = "query" - v.query.Method = "stepRuns" - v.query.Outputs = stepRunOutput +// base struct +type stepRunResultArchiveQueryTimeoutAtDateTime struct{} - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } +// Set the optional value of TimeoutAt +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "timeoutAt", + Value: value, + }, } - return v } -func (r workerQueryStepRunsRelations) Link( - params ...StepRunWhereParam, -) workerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// Set the optional value of TimeoutAt dynamically +func (r stepRunResultArchiveQueryTimeoutAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { + if value == nil { + return stepRunResultArchiveSetParam{} } - return workerSetParam{ - data: builder.Field{ - Name: "stepRuns", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), + return r.Set(*value) +} - List: true, - WrapList: true, - }, +// Set the optional value of TimeoutAt dynamically +func (r stepRunResultArchiveQueryTimeoutAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { + if value == nil { + + var v *DateTime + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "timeoutAt", + Value: v, }, - }, + } } + + return r.Set(*value) } -func (r workerQueryStepRunsRelations) Unlink( - params ...StepRunWhereParam, -) workerSetParam { - var v workerSetParam +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaTimeoutAtEqualsParam { - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) - } - v = workerSetParam{ + return stepRunResultArchiveWithPrismaTimeoutAtEqualsParam{ data: builder.Field{ - Name: "stepRuns", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "equals", + Value: value, }, }, }, } - - return v -} - -func (r workerQueryStepRunsStepRun) Field() workerPrismaFields { - return workerFieldStepRuns } -// base struct -type workerQueryGroupKeyRunsGetGroupKeyRun struct{} - -type workerQueryGroupKeyRunsRelations struct{} - -// Worker -> GroupKeyRuns -// -// @relation -// @required -func (workerQueryGroupKeyRunsRelations) Some( - params ...GetGroupKeyRunWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaTimeoutAtEqualsParam { + if value == nil { + return stepRunResultArchiveWithPrismaTimeoutAtEqualsParam{} } + return r.Equals(*value) +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -// Worker -> GroupKeyRuns -// -// @relation -// @required -func (workerQueryGroupKeyRunsRelations) Every( - params ...GetGroupKeyRunWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workerDefaultParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) IsNull() stepRunResultArchiveDefaultParam { + var str *string = nil + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "equals", + Value: str, }, }, }, } } -// Worker -> GroupKeyRuns -// -// @relation -// @required -func (workerQueryGroupKeyRunsRelations) None( - params ...GetGroupKeyRunWhereParam, -) workerDefaultParam { - var fields []builder.Field +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "timeoutAt", + Value: direction, + }, + } +} - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ + data: builder.Field{ + Name: "timeoutAt", + Value: cursor, + }, } +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "in", + Value: value, }, }, }, } } -func (workerQueryGroupKeyRunsRelations) Fetch( - - params ...GetGroupKeyRunWhereParam, - -) workerToGroupKeyRunsFindMany { - var v workerToGroupKeyRunsFindMany - - v.query.Operation = "query" - v.query.Method = "groupKeyRuns" - v.query.Outputs = getGroupKeyRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } - - return v + return r.In(value) } -func (r workerQueryGroupKeyRunsRelations) Link( - params ...GetGroupKeyRunWhereParam, -) workerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workerSetParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "notIn", + Value: value, }, }, }, } } -func (r workerQueryGroupKeyRunsRelations) Unlink( - params ...GetGroupKeyRunWhereParam, -) workerSetParam { - var v workerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } - v = workerSetParam{ + return r.NotIn(value) +} + +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "groupKeyRuns", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "lt", + Value: value, }, }, }, } - - return v -} - -func (r workerQueryGroupKeyRunsGetGroupKeyRun) Field() workerPrismaFields { - return workerFieldGroupKeyRuns } -// base struct -type workerQuerySlotsWorkerSemaphoreSlot struct{} - -type workerQuerySlotsRelations struct{} - -// Worker -> Slots -// -// @relation -// @required -func (workerQuerySlotsRelations) Some( - params ...WorkerSemaphoreSlotWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.Lt(*value) +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "some", - Fields: fields, + Name: "lte", + Value: value, }, }, }, } } -// Worker -> Slots -// -// @relation -// @required -func (workerQuerySlotsRelations) Every( - params ...WorkerSemaphoreSlotWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.Lte(*value) +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "every", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -// Worker -> Slots -// -// @relation -// @required -func (workerQuerySlotsRelations) None( - params ...WorkerSemaphoreSlotWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.Gt(*value) +} - return workerDefaultParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "none", - Fields: fields, + Name: "gte", + Value: value, }, }, }, } } -func (workerQuerySlotsRelations) Fetch( - - params ...WorkerSemaphoreSlotWhereParam, - -) workerToSlotsFindMany { - var v workerToSlotsFindMany - - v.query.Operation = "query" - v.query.Method = "slots" - v.query.Outputs = workerSemaphoreSlotOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } - - return v + return r.Gte(*value) } -func (r workerQuerySlotsRelations) Link( - params ...WorkerSemaphoreSlotWhereParam, -) workerSetParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return workerSetParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), - - List: true, - WrapList: true, + Name: "not", + Value: value, }, }, }, } } -func (r workerQuerySlotsRelations) Unlink( - params ...WorkerSemaphoreSlotWhereParam, -) workerSetParam { - var v workerSetParam - - var fields []builder.Field - for _, q := range params { - fields = append(fields, q.field()) +func (r stepRunResultArchiveQueryTimeoutAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } - v = workerSetParam{ + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "disconnect", - List: true, - WrapList: true, - Fields: builder.TransformEquals(fields), + Name: "lt", + Value: value, }, }, }, } - - return v } -func (r workerQuerySlotsWorkerSemaphoreSlot) Field() workerPrismaFields { - return workerFieldSlots +// deprecated: Use LtIfPresent instead. +func (r stepRunResultArchiveQueryTimeoutAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Before(*value) } -// base struct -type workerQuerySemaphoreWorkerSemaphore struct{} - -type workerQuerySemaphoreRelations struct{} - -// Worker -> Semaphore -// -// @relation -// @optional -func (workerQuerySemaphoreRelations) Where( - params ...WorkerSemaphoreWhereParam, -) workerDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use Gt instead. - return workerDefaultParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "semaphore", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "gt", + Value: value, }, }, }, } } -func (workerQuerySemaphoreRelations) Fetch() workerToSemaphoreFindUnique { - var v workerToSemaphoreFindUnique - - v.query.Operation = "query" - v.query.Method = "semaphore" - v.query.Outputs = workerSemaphoreOutput - - return v -} - -func (r workerQuerySemaphoreRelations) Link( - params WorkerSemaphoreWhereParam, -) workerSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workerSetParam{} +// deprecated: Use GtIfPresent instead. +func (r stepRunResultArchiveQueryTimeoutAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} } + return r.After(*value) +} - fields = append(fields, f) +// deprecated: Use Lte instead. - return workerSetParam{ +func (r stepRunResultArchiveQueryTimeoutAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "semaphore", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "lte", + Value: value, }, }, }, } } -func (r workerQuerySemaphoreRelations) Unlink() workerSetParam { - var v workerSetParam +// deprecated: Use LteIfPresent instead. +func (r stepRunResultArchiveQueryTimeoutAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.BeforeEquals(*value) +} - v = workerSetParam{ +// deprecated: Use Gte instead. + +func (r stepRunResultArchiveQueryTimeoutAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "semaphore", + Name: "timeoutAt", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "gte", + Value: value, }, }, }, } - - return v } -func (r workerQuerySemaphoreWorkerSemaphore) Field() workerPrismaFields { - return workerFieldSemaphore +// deprecated: Use GteIfPresent instead. +func (r stepRunResultArchiveQueryTimeoutAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.AfterEquals(*value) } -// WorkerSemaphore acts as a namespaces to access query methods for the WorkerSemaphore model -var WorkerSemaphore = workerSemaphoreQuery{} - -// workerSemaphoreQuery exposes query functions for the workerSemaphore model -type workerSemaphoreQuery struct { - Worker workerSemaphoreQueryWorkerRelations - - // WorkerID - // - // @required - // @unique - WorkerID workerSemaphoreQueryWorkerIDString - - // Slots - // - // @required - Slots workerSemaphoreQuerySlotsInt +func (r stepRunResultArchiveQueryTimeoutAtDateTime) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldTimeoutAt } -func (workerSemaphoreQuery) Not(params ...WorkerSemaphoreWhereParam) workerSemaphoreDefaultParam { - var fields []builder.Field +// base struct +type stepRunResultArchiveQueryCancelledAtDateTime struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the optional value of CancelledAt +func (r stepRunResultArchiveQueryCancelledAtDateTime) Set(value DateTime) stepRunResultArchiveSetParam { - return workerSemaphoreDefaultParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "cancelledAt", + Value: value, }, } -} -func (workerSemaphoreQuery) Or(params ...WorkerSemaphoreWhereParam) workerSemaphoreDefaultParam { - var fields []builder.Field +} - for _, q := range params { - fields = append(fields, q.field()) +// Set the optional value of CancelledAt dynamically +func (r stepRunResultArchiveQueryCancelledAtDateTime) SetIfPresent(value *DateTime) stepRunResultArchiveSetParam { + if value == nil { + return stepRunResultArchiveSetParam{} } - return workerSemaphoreDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, - } + return r.Set(*value) } -func (workerSemaphoreQuery) And(params ...WorkerSemaphoreWhereParam) workerSemaphoreDefaultParam { - var fields []builder.Field +// Set the optional value of CancelledAt dynamically +func (r stepRunResultArchiveQueryCancelledAtDateTime) SetOptional(value *DateTime) stepRunResultArchiveSetParam { + if value == nil { - for _, q := range params { - fields = append(fields, q.field()) + var v *DateTime + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "cancelledAt", + Value: v, + }, + } } - return workerSemaphoreDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } + return r.Set(*value) } -// base struct -type workerSemaphoreQueryWorkerWorker struct{} - -type workerSemaphoreQueryWorkerRelations struct{} - -// WorkerSemaphore -> Worker -// -// @relation -// @required -func (workerSemaphoreQueryWorkerRelations) Where( - params ...WorkerWhereParam, -) workerSemaphoreDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +func (r stepRunResultArchiveQueryCancelledAtDateTime) Equals(value DateTime) stepRunResultArchiveWithPrismaCancelledAtEqualsParam { - return workerSemaphoreDefaultParam{ + return stepRunResultArchiveWithPrismaCancelledAtEqualsParam{ data: builder.Field{ - Name: "worker", + Name: "cancelledAt", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "equals", + Value: value, }, }, }, } } -func (workerSemaphoreQueryWorkerRelations) Fetch() workerSemaphoreToWorkerFindUnique { - var v workerSemaphoreToWorkerFindUnique - - v.query.Operation = "query" - v.query.Method = "worker" - v.query.Outputs = workerOutput - - return v -} - -func (r workerSemaphoreQueryWorkerRelations) Link( - params WorkerWhereParam, -) workerSemaphoreWithPrismaWorkerSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workerSemaphoreWithPrismaWorkerSetParam{} +func (r stepRunResultArchiveQueryCancelledAtDateTime) EqualsIfPresent(value *DateTime) stepRunResultArchiveWithPrismaCancelledAtEqualsParam { + if value == nil { + return stepRunResultArchiveWithPrismaCancelledAtEqualsParam{} } + return r.Equals(*value) +} - fields = append(fields, f) - - return workerSemaphoreWithPrismaWorkerSetParam{ +func (r stepRunResultArchiveQueryCancelledAtDateTime) EqualsOptional(value *DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "worker", + Name: "cancelledAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "equals", + Value: value, }, }, }, } } -func (r workerSemaphoreQueryWorkerRelations) Unlink() workerSemaphoreWithPrismaWorkerSetParam { - var v workerSemaphoreWithPrismaWorkerSetParam - - v = workerSemaphoreWithPrismaWorkerSetParam{ - data: builder.Field{ - Name: "worker", +func (r stepRunResultArchiveQueryCancelledAtDateTime) IsNull() stepRunResultArchiveDefaultParam { + var str *string = nil + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "equals", + Value: str, }, }, }, } +} - return v +func (r stepRunResultArchiveQueryCancelledAtDateTime) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Value: direction, + }, + } } -func (r workerSemaphoreQueryWorkerWorker) Field() workerSemaphorePrismaFields { - return workerSemaphoreFieldWorker +func (r stepRunResultArchiveQueryCancelledAtDateTime) Cursor(cursor DateTime) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ + data: builder.Field{ + Name: "cancelledAt", + Value: cursor, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) In(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) InIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.In(value) +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) NotIn(value []DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) NotInIfPresent(value []DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.NotIn(value) +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) Lt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) LtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Lt(*value) +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) Lte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) LteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Lte(*value) +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) Gt(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) GtIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Gt(*value) +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) Gte(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) GteIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Gte(*value) +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) Not(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) NotIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r stepRunResultArchiveQueryCancelledAtDateTime) Before(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r stepRunResultArchiveQueryCancelledAtDateTime) BeforeIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r stepRunResultArchiveQueryCancelledAtDateTime) After(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r stepRunResultArchiveQueryCancelledAtDateTime) AfterIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.After(*value) +} + +// deprecated: Use Lte instead. + +func (r stepRunResultArchiveQueryCancelledAtDateTime) BeforeEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r stepRunResultArchiveQueryCancelledAtDateTime) BeforeEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r stepRunResultArchiveQueryCancelledAtDateTime) AfterEquals(value DateTime) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r stepRunResultArchiveQueryCancelledAtDateTime) AfterEqualsIfPresent(value *DateTime) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r stepRunResultArchiveQueryCancelledAtDateTime) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldCancelledAt } // base struct -type workerSemaphoreQueryWorkerIDString struct{} +type stepRunResultArchiveQueryCancelledReasonString struct{} -// Set the required value of WorkerID -func (r workerSemaphoreQueryWorkerIDString) Set(value string) workerSemaphoreSetParam { +// Set the optional value of CancelledReason +func (r stepRunResultArchiveQueryCancelledReasonString) Set(value string) stepRunResultArchiveSetParam { - return workerSemaphoreSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Value: value, }, } } -// Set the optional value of WorkerID dynamically -func (r workerSemaphoreQueryWorkerIDString) SetIfPresent(value *String) workerSemaphoreSetParam { +// Set the optional value of CancelledReason dynamically +func (r stepRunResultArchiveQueryCancelledReasonString) SetIfPresent(value *String) stepRunResultArchiveSetParam { if value == nil { - return workerSemaphoreSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -func (r workerSemaphoreQueryWorkerIDString) Equals(value string) workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam { +// Set the optional value of CancelledReason dynamically +func (r stepRunResultArchiveQueryCancelledReasonString) SetOptional(value *String) stepRunResultArchiveSetParam { + if value == nil { - return workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam{ + var v *string + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "cancelledReason", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r stepRunResultArchiveQueryCancelledReasonString) Equals(value string) stepRunResultArchiveWithPrismaCancelledReasonEqualsParam { + + return stepRunResultArchiveWithPrismaCancelledReasonEqualsParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "equals", @@ -152651,35 +152890,64 @@ func (r workerSemaphoreQueryWorkerIDString) Equals(value string) workerSemaphore } } -func (r workerSemaphoreQueryWorkerIDString) EqualsIfPresent(value *string) workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam { +func (r stepRunResultArchiveQueryCancelledReasonString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaCancelledReasonEqualsParam { if value == nil { - return workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam{} + return stepRunResultArchiveWithPrismaCancelledReasonEqualsParam{} } return r.Equals(*value) } -func (r workerSemaphoreQueryWorkerIDString) Order(direction SortOrder) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledReasonString) EqualsOptional(value *String) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledReasonString) IsNull() stepRunResultArchiveDefaultParam { + var str *string = nil + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledReason", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r stepRunResultArchiveQueryCancelledReasonString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledReason", Value: direction, }, } } -func (r workerSemaphoreQueryWorkerIDString) Cursor(cursor string) workerSemaphoreCursorParam { - return workerSemaphoreCursorParam{ +func (r stepRunResultArchiveQueryCancelledReasonString) Cursor(cursor string) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Value: cursor, }, } } -func (r workerSemaphoreQueryWorkerIDString) In(value []string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) In(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "in", @@ -152690,17 +152958,17 @@ func (r workerSemaphoreQueryWorkerIDString) In(value []string) workerSemaphorePa } } -func (r workerSemaphoreQueryWorkerIDString) InIfPresent(value []string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) InIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.In(value) } -func (r workerSemaphoreQueryWorkerIDString) NotIn(value []string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) NotIn(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "notIn", @@ -152711,17 +152979,17 @@ func (r workerSemaphoreQueryWorkerIDString) NotIn(value []string) workerSemaphor } } -func (r workerSemaphoreQueryWorkerIDString) NotInIfPresent(value []string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) NotInIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.NotIn(value) } -func (r workerSemaphoreQueryWorkerIDString) Lt(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) Lt(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "lt", @@ -152732,17 +153000,17 @@ func (r workerSemaphoreQueryWorkerIDString) Lt(value string) workerSemaphorePara } } -func (r workerSemaphoreQueryWorkerIDString) LtIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) LtIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.Lt(*value) } -func (r workerSemaphoreQueryWorkerIDString) Lte(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) Lte(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "lte", @@ -152753,17 +153021,17 @@ func (r workerSemaphoreQueryWorkerIDString) Lte(value string) workerSemaphorePar } } -func (r workerSemaphoreQueryWorkerIDString) LteIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) LteIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.Lte(*value) } -func (r workerSemaphoreQueryWorkerIDString) Gt(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) Gt(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "gt", @@ -152774,17 +153042,17 @@ func (r workerSemaphoreQueryWorkerIDString) Gt(value string) workerSemaphorePara } } -func (r workerSemaphoreQueryWorkerIDString) GtIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) GtIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.Gt(*value) } -func (r workerSemaphoreQueryWorkerIDString) Gte(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) Gte(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "gte", @@ -152795,17 +153063,17 @@ func (r workerSemaphoreQueryWorkerIDString) Gte(value string) workerSemaphorePar } } -func (r workerSemaphoreQueryWorkerIDString) GteIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) GteIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.Gte(*value) } -func (r workerSemaphoreQueryWorkerIDString) Contains(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) Contains(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "contains", @@ -152816,17 +153084,17 @@ func (r workerSemaphoreQueryWorkerIDString) Contains(value string) workerSemapho } } -func (r workerSemaphoreQueryWorkerIDString) ContainsIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) ContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.Contains(*value) } -func (r workerSemaphoreQueryWorkerIDString) StartsWith(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) StartsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "startsWith", @@ -152837,17 +153105,17 @@ func (r workerSemaphoreQueryWorkerIDString) StartsWith(value string) workerSemap } } -func (r workerSemaphoreQueryWorkerIDString) StartsWithIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) StartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.StartsWith(*value) } -func (r workerSemaphoreQueryWorkerIDString) EndsWith(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) EndsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "endsWith", @@ -152858,17 +153126,17 @@ func (r workerSemaphoreQueryWorkerIDString) EndsWith(value string) workerSemapho } } -func (r workerSemaphoreQueryWorkerIDString) EndsWithIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) EndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.EndsWith(*value) } -func (r workerSemaphoreQueryWorkerIDString) Mode(value QueryMode) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) Mode(value QueryMode) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "mode", @@ -152879,17 +153147,17 @@ func (r workerSemaphoreQueryWorkerIDString) Mode(value QueryMode) workerSemaphor } } -func (r workerSemaphoreQueryWorkerIDString) ModeIfPresent(value *QueryMode) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) ModeIfPresent(value *QueryMode) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.Mode(*value) } -func (r workerSemaphoreQueryWorkerIDString) Not(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) Not(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "not", @@ -152900,19 +153168,19 @@ func (r workerSemaphoreQueryWorkerIDString) Not(value string) workerSemaphorePar } } -func (r workerSemaphoreQueryWorkerIDString) NotIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) NotIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workerSemaphoreQueryWorkerIDString) HasPrefix(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) HasPrefix(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "starts_with", @@ -152924,19 +153192,19 @@ func (r workerSemaphoreQueryWorkerIDString) HasPrefix(value string) workerSemaph } // deprecated: Use StartsWithIfPresent instead. -func (r workerSemaphoreQueryWorkerIDString) HasPrefixIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) HasPrefixIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workerSemaphoreQueryWorkerIDString) HasSuffix(value string) workerSemaphoreParamUnique { - return workerSemaphoreParamUnique{ +func (r stepRunResultArchiveQueryCancelledReasonString) HasSuffix(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "cancelledReason", Fields: []builder.Field{ { Name: "ends_with", @@ -152948,93 +153216,65 @@ func (r workerSemaphoreQueryWorkerIDString) HasSuffix(value string) workerSemaph } // deprecated: Use EndsWithIfPresent instead. -func (r workerSemaphoreQueryWorkerIDString) HasSuffixIfPresent(value *string) workerSemaphoreParamUnique { +func (r stepRunResultArchiveQueryCancelledReasonString) HasSuffixIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreParamUnique{} + return stepRunResultArchiveDefaultParam{} } return r.HasSuffix(*value) } -func (r workerSemaphoreQueryWorkerIDString) Field() workerSemaphorePrismaFields { - return workerSemaphoreFieldWorkerID +func (r stepRunResultArchiveQueryCancelledReasonString) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldCancelledReason } // base struct -type workerSemaphoreQuerySlotsInt struct{} +type stepRunResultArchiveQueryCancelledErrorString struct{} -// Set the required value of Slots -func (r workerSemaphoreQuerySlotsInt) Set(value int) workerSemaphoreWithPrismaSlotsSetParam { +// Set the optional value of CancelledError +func (r stepRunResultArchiveQueryCancelledErrorString) Set(value string) stepRunResultArchiveSetParam { - return workerSemaphoreWithPrismaSlotsSetParam{ + return stepRunResultArchiveSetParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Value: value, }, } } -// Set the optional value of Slots dynamically -func (r workerSemaphoreQuerySlotsInt) SetIfPresent(value *Int) workerSemaphoreWithPrismaSlotsSetParam { +// Set the optional value of CancelledError dynamically +func (r stepRunResultArchiveQueryCancelledErrorString) SetIfPresent(value *String) stepRunResultArchiveSetParam { if value == nil { - return workerSemaphoreWithPrismaSlotsSetParam{} + return stepRunResultArchiveSetParam{} } return r.Set(*value) } -// Increment the required value of Slots -func (r workerSemaphoreQuerySlotsInt) Increment(value int) workerSemaphoreWithPrismaSlotsSetParam { - return workerSemaphoreWithPrismaSlotsSetParam{ - data: builder.Field{ - Name: "slots", - Fields: []builder.Field{ - builder.Field{ - Name: "increment", - Value: value, - }, - }, - }, - } -} - -func (r workerSemaphoreQuerySlotsInt) IncrementIfPresent(value *int) workerSemaphoreWithPrismaSlotsSetParam { +// Set the optional value of CancelledError dynamically +func (r stepRunResultArchiveQueryCancelledErrorString) SetOptional(value *String) stepRunResultArchiveSetParam { if value == nil { - return workerSemaphoreWithPrismaSlotsSetParam{} - } - return r.Increment(*value) -} -// Decrement the required value of Slots -func (r workerSemaphoreQuerySlotsInt) Decrement(value int) workerSemaphoreWithPrismaSlotsSetParam { - return workerSemaphoreWithPrismaSlotsSetParam{ - data: builder.Field{ - Name: "slots", - Fields: []builder.Field{ - builder.Field{ - Name: "decrement", - Value: value, - }, + var v *string + return stepRunResultArchiveSetParam{ + data: builder.Field{ + Name: "cancelledError", + Value: v, }, - }, + } } -} -func (r workerSemaphoreQuerySlotsInt) DecrementIfPresent(value *int) workerSemaphoreWithPrismaSlotsSetParam { - if value == nil { - return workerSemaphoreWithPrismaSlotsSetParam{} - } - return r.Decrement(*value) + return r.Set(*value) } -// Multiply the required value of Slots -func (r workerSemaphoreQuerySlotsInt) Multiply(value int) workerSemaphoreWithPrismaSlotsSetParam { - return workerSemaphoreWithPrismaSlotsSetParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) Equals(value string) stepRunResultArchiveWithPrismaCancelledErrorEqualsParam { + + return stepRunResultArchiveWithPrismaCancelledErrorEqualsParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "equals", Value: value, }, }, @@ -153042,21 +153282,20 @@ func (r workerSemaphoreQuerySlotsInt) Multiply(value int) workerSemaphoreWithPri } } -func (r workerSemaphoreQuerySlotsInt) MultiplyIfPresent(value *int) workerSemaphoreWithPrismaSlotsSetParam { +func (r stepRunResultArchiveQueryCancelledErrorString) EqualsIfPresent(value *string) stepRunResultArchiveWithPrismaCancelledErrorEqualsParam { if value == nil { - return workerSemaphoreWithPrismaSlotsSetParam{} + return stepRunResultArchiveWithPrismaCancelledErrorEqualsParam{} } - return r.Multiply(*value) + return r.Equals(*value) } -// Divide the required value of Slots -func (r workerSemaphoreQuerySlotsInt) Divide(value int) workerSemaphoreWithPrismaSlotsSetParam { - return workerSemaphoreWithPrismaSlotsSetParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) EqualsOptional(value *String) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "equals", Value: value, }, }, @@ -153064,57 +153303,43 @@ func (r workerSemaphoreQuerySlotsInt) Divide(value int) workerSemaphoreWithPrism } } -func (r workerSemaphoreQuerySlotsInt) DivideIfPresent(value *int) workerSemaphoreWithPrismaSlotsSetParam { - if value == nil { - return workerSemaphoreWithPrismaSlotsSetParam{} - } - return r.Divide(*value) -} - -func (r workerSemaphoreQuerySlotsInt) Equals(value int) workerSemaphoreWithPrismaSlotsEqualsParam { - - return workerSemaphoreWithPrismaSlotsEqualsParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) IsNull() stepRunResultArchiveDefaultParam { + var str *string = nil + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { Name: "equals", - Value: value, + Value: str, }, }, }, } } -func (r workerSemaphoreQuerySlotsInt) EqualsIfPresent(value *int) workerSemaphoreWithPrismaSlotsEqualsParam { - if value == nil { - return workerSemaphoreWithPrismaSlotsEqualsParam{} - } - return r.Equals(*value) -} - -func (r workerSemaphoreQuerySlotsInt) Order(direction SortOrder) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) Order(direction SortOrder) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Value: direction, }, } } -func (r workerSemaphoreQuerySlotsInt) Cursor(cursor int) workerSemaphoreCursorParam { - return workerSemaphoreCursorParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) Cursor(cursor string) stepRunResultArchiveCursorParam { + return stepRunResultArchiveCursorParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Value: cursor, }, } } -func (r workerSemaphoreQuerySlotsInt) In(value []int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) In(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { Name: "in", @@ -153125,17 +153350,17 @@ func (r workerSemaphoreQuerySlotsInt) In(value []int) workerSemaphoreDefaultPara } } -func (r workerSemaphoreQuerySlotsInt) InIfPresent(value []int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) InIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.In(value) } -func (r workerSemaphoreQuerySlotsInt) NotIn(value []int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) NotIn(value []string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { Name: "notIn", @@ -153146,17 +153371,17 @@ func (r workerSemaphoreQuerySlotsInt) NotIn(value []int) workerSemaphoreDefaultP } } -func (r workerSemaphoreQuerySlotsInt) NotInIfPresent(value []int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) NotInIfPresent(value []string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.NotIn(value) } -func (r workerSemaphoreQuerySlotsInt) Lt(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) Lt(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { Name: "lt", @@ -153167,17 +153392,17 @@ func (r workerSemaphoreQuerySlotsInt) Lt(value int) workerSemaphoreDefaultParam } } -func (r workerSemaphoreQuerySlotsInt) LtIfPresent(value *int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) LtIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lt(*value) } -func (r workerSemaphoreQuerySlotsInt) Lte(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) Lte(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { Name: "lte", @@ -153188,17 +153413,17 @@ func (r workerSemaphoreQuerySlotsInt) Lte(value int) workerSemaphoreDefaultParam } } -func (r workerSemaphoreQuerySlotsInt) LteIfPresent(value *int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) LteIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Lte(*value) } -func (r workerSemaphoreQuerySlotsInt) Gt(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) Gt(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { Name: "gt", @@ -153209,17 +153434,17 @@ func (r workerSemaphoreQuerySlotsInt) Gt(value int) workerSemaphoreDefaultParam } } -func (r workerSemaphoreQuerySlotsInt) GtIfPresent(value *int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) GtIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gt(*value) } -func (r workerSemaphoreQuerySlotsInt) Gte(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) Gte(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { Name: "gte", @@ -153230,20 +153455,20 @@ func (r workerSemaphoreQuerySlotsInt) Gte(value int) workerSemaphoreDefaultParam } } -func (r workerSemaphoreQuerySlotsInt) GteIfPresent(value *int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) GteIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } return r.Gte(*value) } -func (r workerSemaphoreQuerySlotsInt) Not(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) Contains(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -153251,22 +153476,41 @@ func (r workerSemaphoreQuerySlotsInt) Not(value int) workerSemaphoreDefaultParam } } -func (r workerSemaphoreQuerySlotsInt) NotIfPresent(value *int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) ContainsIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r stepRunResultArchiveQueryCancelledErrorString) StartsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledError", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r workerSemaphoreQuerySlotsInt) LT(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) StartsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r stepRunResultArchiveQueryCancelledErrorString) EndsWith(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -153274,23 +153518,41 @@ func (r workerSemaphoreQuerySlotsInt) LT(value int) workerSemaphoreDefaultParam } } -// deprecated: Use LtIfPresent instead. -func (r workerSemaphoreQuerySlotsInt) LTIfPresent(value *int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) EndsWithIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.LT(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. +func (r stepRunResultArchiveQueryCancelledErrorString) Mode(value QueryMode) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ + data: builder.Field{ + Name: "cancelledError", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r workerSemaphoreQuerySlotsInt) LTE(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) ModeIfPresent(value *QueryMode) stepRunResultArchiveDefaultParam { + if value == nil { + return stepRunResultArchiveDefaultParam{} + } + return r.Mode(*value) +} + +func (r stepRunResultArchiveQueryCancelledErrorString) Not(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "lte", + Name: "not", Value: value, }, }, @@ -153298,23 +153560,22 @@ func (r workerSemaphoreQuerySlotsInt) LTE(value int) workerSemaphoreDefaultParam } } -// deprecated: Use LteIfPresent instead. -func (r workerSemaphoreQuerySlotsInt) LTEIfPresent(value *int) workerSemaphoreDefaultParam { +func (r stepRunResultArchiveQueryCancelledErrorString) NotIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.LTE(*value) + return r.Not(*value) } -// deprecated: Use Gt instead. +// deprecated: Use StartsWith instead. -func (r workerSemaphoreQuerySlotsInt) GT(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) HasPrefix(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "gt", + Name: "starts_with", Value: value, }, }, @@ -153322,23 +153583,23 @@ func (r workerSemaphoreQuerySlotsInt) GT(value int) workerSemaphoreDefaultParam } } -// deprecated: Use GtIfPresent instead. -func (r workerSemaphoreQuerySlotsInt) GTIfPresent(value *int) workerSemaphoreDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r stepRunResultArchiveQueryCancelledErrorString) HasPrefixIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.GT(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r workerSemaphoreQuerySlotsInt) GTE(value int) workerSemaphoreDefaultParam { - return workerSemaphoreDefaultParam{ +func (r stepRunResultArchiveQueryCancelledErrorString) HasSuffix(value string) stepRunResultArchiveDefaultParam { + return stepRunResultArchiveDefaultParam{ data: builder.Field{ - Name: "slots", + Name: "cancelledError", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -153346,53 +153607,65 @@ func (r workerSemaphoreQuerySlotsInt) GTE(value int) workerSemaphoreDefaultParam } } -// deprecated: Use GteIfPresent instead. -func (r workerSemaphoreQuerySlotsInt) GTEIfPresent(value *int) workerSemaphoreDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r stepRunResultArchiveQueryCancelledErrorString) HasSuffixIfPresent(value *string) stepRunResultArchiveDefaultParam { if value == nil { - return workerSemaphoreDefaultParam{} + return stepRunResultArchiveDefaultParam{} } - return r.GTE(*value) + return r.HasSuffix(*value) } -func (r workerSemaphoreQuerySlotsInt) Field() workerSemaphorePrismaFields { - return workerSemaphoreFieldSlots +func (r stepRunResultArchiveQueryCancelledErrorString) Field() stepRunResultArchivePrismaFields { + return stepRunResultArchiveFieldCancelledError } -// WorkerSemaphoreSlot acts as a namespaces to access query methods for the WorkerSemaphoreSlot model -var WorkerSemaphoreSlot = workerSemaphoreSlotQuery{} +// Dispatcher acts as a namespaces to access query methods for the Dispatcher model +var Dispatcher = dispatcherQuery{} -// workerSemaphoreSlotQuery exposes query functions for the workerSemaphoreSlot model -type workerSemaphoreSlotQuery struct { +// dispatcherQuery exposes query functions for the dispatcher model +type dispatcherQuery struct { // ID // // @required - ID workerSemaphoreSlotQueryIDString + ID dispatcherQueryIDString - Worker workerSemaphoreSlotQueryWorkerRelations + // CreatedAt + // + // @required + CreatedAt dispatcherQueryCreatedAtDateTime - // WorkerID + // UpdatedAt // // @required - WorkerID workerSemaphoreSlotQueryWorkerIDString + UpdatedAt dispatcherQueryUpdatedAtDateTime - StepRun workerSemaphoreSlotQueryStepRunRelations + // DeletedAt + // + // @optional + DeletedAt dispatcherQueryDeletedAtDateTime - // StepRunID + // LastHeartbeatAt // // @optional - // @unique - StepRunID workerSemaphoreSlotQueryStepRunIDString + LastHeartbeatAt dispatcherQueryLastHeartbeatAtDateTime + + // IsActive + // + // @required + IsActive dispatcherQueryIsActiveBoolean + + Workers dispatcherQueryWorkersRelations } -func (workerSemaphoreSlotQuery) Not(params ...WorkerSemaphoreSlotWhereParam) workerSemaphoreSlotDefaultParam { +func (dispatcherQuery) Not(params ...DispatcherWhereParam) dispatcherDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workerSemaphoreSlotDefaultParam{ + return dispatcherDefaultParam{ data: builder.Field{ Name: "NOT", List: true, @@ -153402,14 +153675,14 @@ func (workerSemaphoreSlotQuery) Not(params ...WorkerSemaphoreSlotWhereParam) wor } } -func (workerSemaphoreSlotQuery) Or(params ...WorkerSemaphoreSlotWhereParam) workerSemaphoreSlotDefaultParam { +func (dispatcherQuery) Or(params ...DispatcherWhereParam) dispatcherDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workerSemaphoreSlotDefaultParam{ + return dispatcherDefaultParam{ data: builder.Field{ Name: "OR", List: true, @@ -153419,14 +153692,14 @@ func (workerSemaphoreSlotQuery) Or(params ...WorkerSemaphoreSlotWhereParam) work } } -func (workerSemaphoreSlotQuery) And(params ...WorkerSemaphoreSlotWhereParam) workerSemaphoreSlotDefaultParam { +func (dispatcherQuery) And(params ...DispatcherWhereParam) dispatcherDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return workerSemaphoreSlotDefaultParam{ + return dispatcherDefaultParam{ data: builder.Field{ Name: "AND", List: true, @@ -153437,12 +153710,12 @@ func (workerSemaphoreSlotQuery) And(params ...WorkerSemaphoreSlotWhereParam) wor } // base struct -type workerSemaphoreSlotQueryIDString struct{} +type dispatcherQueryIDString struct{} // Set the required value of ID -func (r workerSemaphoreSlotQueryIDString) Set(value string) workerSemaphoreSlotSetParam { +func (r dispatcherQueryIDString) Set(value string) dispatcherSetParam { - return workerSemaphoreSlotSetParam{ + return dispatcherSetParam{ data: builder.Field{ Name: "id", Value: value, @@ -153452,17 +153725,17 @@ func (r workerSemaphoreSlotQueryIDString) Set(value string) workerSemaphoreSlotS } // Set the optional value of ID dynamically -func (r workerSemaphoreSlotQueryIDString) SetIfPresent(value *String) workerSemaphoreSlotSetParam { +func (r dispatcherQueryIDString) SetIfPresent(value *String) dispatcherSetParam { if value == nil { - return workerSemaphoreSlotSetParam{} + return dispatcherSetParam{} } return r.Set(*value) } -func (r workerSemaphoreSlotQueryIDString) Equals(value string) workerSemaphoreSlotWithPrismaIDEqualsUniqueParam { +func (r dispatcherQueryIDString) Equals(value string) dispatcherWithPrismaIDEqualsUniqueParam { - return workerSemaphoreSlotWithPrismaIDEqualsUniqueParam{ + return dispatcherWithPrismaIDEqualsUniqueParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153475,15 +153748,15 @@ func (r workerSemaphoreSlotQueryIDString) Equals(value string) workerSemaphoreSl } } -func (r workerSemaphoreSlotQueryIDString) EqualsIfPresent(value *string) workerSemaphoreSlotWithPrismaIDEqualsUniqueParam { +func (r dispatcherQueryIDString) EqualsIfPresent(value *string) dispatcherWithPrismaIDEqualsUniqueParam { if value == nil { - return workerSemaphoreSlotWithPrismaIDEqualsUniqueParam{} + return dispatcherWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r workerSemaphoreSlotQueryIDString) Order(direction SortOrder) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryIDString) Order(direction SortOrder) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ Name: "id", Value: direction, @@ -153491,8 +153764,8 @@ func (r workerSemaphoreSlotQueryIDString) Order(direction SortOrder) workerSemap } } -func (r workerSemaphoreSlotQueryIDString) Cursor(cursor string) workerSemaphoreSlotCursorParam { - return workerSemaphoreSlotCursorParam{ +func (r dispatcherQueryIDString) Cursor(cursor string) dispatcherCursorParam { + return dispatcherCursorParam{ data: builder.Field{ Name: "id", Value: cursor, @@ -153500,8 +153773,8 @@ func (r workerSemaphoreSlotQueryIDString) Cursor(cursor string) workerSemaphoreS } } -func (r workerSemaphoreSlotQueryIDString) In(value []string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) In(value []string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153514,15 +153787,15 @@ func (r workerSemaphoreSlotQueryIDString) In(value []string) workerSemaphoreSlot } } -func (r workerSemaphoreSlotQueryIDString) InIfPresent(value []string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) InIfPresent(value []string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.In(value) } -func (r workerSemaphoreSlotQueryIDString) NotIn(value []string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) NotIn(value []string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153535,15 +153808,15 @@ func (r workerSemaphoreSlotQueryIDString) NotIn(value []string) workerSemaphoreS } } -func (r workerSemaphoreSlotQueryIDString) NotInIfPresent(value []string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) NotInIfPresent(value []string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.NotIn(value) } -func (r workerSemaphoreSlotQueryIDString) Lt(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) Lt(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153556,15 +153829,15 @@ func (r workerSemaphoreSlotQueryIDString) Lt(value string) workerSemaphoreSlotPa } } -func (r workerSemaphoreSlotQueryIDString) LtIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) LtIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.Lt(*value) } -func (r workerSemaphoreSlotQueryIDString) Lte(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) Lte(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153577,15 +153850,15 @@ func (r workerSemaphoreSlotQueryIDString) Lte(value string) workerSemaphoreSlotP } } -func (r workerSemaphoreSlotQueryIDString) LteIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) LteIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.Lte(*value) } -func (r workerSemaphoreSlotQueryIDString) Gt(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) Gt(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153598,15 +153871,15 @@ func (r workerSemaphoreSlotQueryIDString) Gt(value string) workerSemaphoreSlotPa } } -func (r workerSemaphoreSlotQueryIDString) GtIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) GtIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.Gt(*value) } -func (r workerSemaphoreSlotQueryIDString) Gte(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) Gte(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153619,15 +153892,15 @@ func (r workerSemaphoreSlotQueryIDString) Gte(value string) workerSemaphoreSlotP } } -func (r workerSemaphoreSlotQueryIDString) GteIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) GteIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.Gte(*value) } -func (r workerSemaphoreSlotQueryIDString) Contains(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) Contains(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153640,15 +153913,15 @@ func (r workerSemaphoreSlotQueryIDString) Contains(value string) workerSemaphore } } -func (r workerSemaphoreSlotQueryIDString) ContainsIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) ContainsIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.Contains(*value) } -func (r workerSemaphoreSlotQueryIDString) StartsWith(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) StartsWith(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153661,15 +153934,15 @@ func (r workerSemaphoreSlotQueryIDString) StartsWith(value string) workerSemapho } } -func (r workerSemaphoreSlotQueryIDString) StartsWithIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) StartsWithIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.StartsWith(*value) } -func (r workerSemaphoreSlotQueryIDString) EndsWith(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) EndsWith(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153682,15 +153955,15 @@ func (r workerSemaphoreSlotQueryIDString) EndsWith(value string) workerSemaphore } } -func (r workerSemaphoreSlotQueryIDString) EndsWithIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) EndsWithIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.EndsWith(*value) } -func (r workerSemaphoreSlotQueryIDString) Mode(value QueryMode) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) Mode(value QueryMode) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153703,15 +153976,15 @@ func (r workerSemaphoreSlotQueryIDString) Mode(value QueryMode) workerSemaphoreS } } -func (r workerSemaphoreSlotQueryIDString) ModeIfPresent(value *QueryMode) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) ModeIfPresent(value *QueryMode) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.Mode(*value) } -func (r workerSemaphoreSlotQueryIDString) Not(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) Not(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153724,17 +153997,17 @@ func (r workerSemaphoreSlotQueryIDString) Not(value string) workerSemaphoreSlotP } } -func (r workerSemaphoreSlotQueryIDString) NotIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) NotIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r workerSemaphoreSlotQueryIDString) HasPrefix(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) HasPrefix(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153748,17 +154021,17 @@ func (r workerSemaphoreSlotQueryIDString) HasPrefix(value string) workerSemaphor } // deprecated: Use StartsWithIfPresent instead. -func (r workerSemaphoreSlotQueryIDString) HasPrefixIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) HasPrefixIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r workerSemaphoreSlotQueryIDString) HasSuffix(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryIDString) HasSuffix(value string) dispatcherParamUnique { + return dispatcherParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -153772,137 +154045,130 @@ func (r workerSemaphoreSlotQueryIDString) HasSuffix(value string) workerSemaphor } // deprecated: Use EndsWithIfPresent instead. -func (r workerSemaphoreSlotQueryIDString) HasSuffixIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryIDString) HasSuffixIfPresent(value *string) dispatcherParamUnique { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherParamUnique{} } return r.HasSuffix(*value) } -func (r workerSemaphoreSlotQueryIDString) Field() workerSemaphoreSlotPrismaFields { - return workerSemaphoreSlotFieldID +func (r dispatcherQueryIDString) Field() dispatcherPrismaFields { + return dispatcherFieldID } // base struct -type workerSemaphoreSlotQueryWorkerWorker struct{} - -type workerSemaphoreSlotQueryWorkerRelations struct{} - -// WorkerSemaphoreSlot -> Worker -// -// @relation -// @required -func (workerSemaphoreSlotQueryWorkerRelations) Where( - params ...WorkerWhereParam, -) workerSemaphoreSlotDefaultParam { - var fields []builder.Field +type dispatcherQueryCreatedAtDateTime struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the required value of CreatedAt +func (r dispatcherQueryCreatedAtDateTime) Set(value DateTime) dispatcherSetParam { - return workerSemaphoreSlotDefaultParam{ + return dispatcherSetParam{ data: builder.Field{ - Name: "worker", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "createdAt", + Value: value, }, } -} -func (workerSemaphoreSlotQueryWorkerRelations) Fetch() workerSemaphoreSlotToWorkerFindUnique { - var v workerSemaphoreSlotToWorkerFindUnique - - v.query.Operation = "query" - v.query.Method = "worker" - v.query.Outputs = workerOutput - - return v } -func (r workerSemaphoreSlotQueryWorkerRelations) Link( - params WorkerWhereParam, -) workerSemaphoreSlotWithPrismaWorkerSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workerSemaphoreSlotWithPrismaWorkerSetParam{} +// Set the optional value of CreatedAt dynamically +func (r dispatcherQueryCreatedAtDateTime) SetIfPresent(value *DateTime) dispatcherSetParam { + if value == nil { + return dispatcherSetParam{} } - fields = append(fields, f) + return r.Set(*value) +} - return workerSemaphoreSlotWithPrismaWorkerSetParam{ +func (r dispatcherQueryCreatedAtDateTime) Equals(value DateTime) dispatcherWithPrismaCreatedAtEqualsParam { + + return dispatcherWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "worker", + Name: "createdAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "equals", + Value: value, }, }, }, } } -func (r workerSemaphoreSlotQueryWorkerRelations) Unlink() workerSemaphoreSlotWithPrismaWorkerSetParam { - var v workerSemaphoreSlotWithPrismaWorkerSetParam +func (r dispatcherQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) dispatcherWithPrismaCreatedAtEqualsParam { + if value == nil { + return dispatcherWithPrismaCreatedAtEqualsParam{} + } + return r.Equals(*value) +} - v = workerSemaphoreSlotWithPrismaWorkerSetParam{ +func (r dispatcherQueryCreatedAtDateTime) Order(direction SortOrder) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "worker", + Name: "createdAt", + Value: direction, + }, + } +} + +func (r dispatcherQueryCreatedAtDateTime) Cursor(cursor DateTime) dispatcherCursorParam { + return dispatcherCursorParam{ + data: builder.Field{ + Name: "createdAt", + Value: cursor, + }, + } +} + +func (r dispatcherQueryCreatedAtDateTime) In(value []DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "createdAt", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "in", + Value: value, }, }, }, } - - return v } -func (r workerSemaphoreSlotQueryWorkerWorker) Field() workerSemaphoreSlotPrismaFields { - return workerSemaphoreSlotFieldWorker +func (r dispatcherQueryCreatedAtDateTime) InIfPresent(value []DateTime) dispatcherDefaultParam { + if value == nil { + return dispatcherDefaultParam{} + } + return r.In(value) } -// base struct -type workerSemaphoreSlotQueryWorkerIDString struct{} - -// Set the required value of WorkerID -func (r workerSemaphoreSlotQueryWorkerIDString) Set(value string) workerSemaphoreSlotSetParam { - - return workerSemaphoreSlotSetParam{ +func (r dispatcherQueryCreatedAtDateTime) NotIn(value []DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", - Value: value, + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, }, } - } -// Set the optional value of WorkerID dynamically -func (r workerSemaphoreSlotQueryWorkerIDString) SetIfPresent(value *String) workerSemaphoreSlotSetParam { +func (r dispatcherQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotSetParam{} + return dispatcherDefaultParam{} } - - return r.Set(*value) + return r.NotIn(value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Equals(value string) workerSemaphoreSlotWithPrismaWorkerIDEqualsParam { - - return workerSemaphoreSlotWithPrismaWorkerIDEqualsParam{ +func (r dispatcherQueryCreatedAtDateTime) Lt(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "equals", + Name: "lt", Value: value, }, }, @@ -153910,38 +154176,62 @@ func (r workerSemaphoreSlotQueryWorkerIDString) Equals(value string) workerSemap } } -func (r workerSemaphoreSlotQueryWorkerIDString) EqualsIfPresent(value *string) workerSemaphoreSlotWithPrismaWorkerIDEqualsParam { +func (r dispatcherQueryCreatedAtDateTime) LtIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotWithPrismaWorkerIDEqualsParam{} + return dispatcherDefaultParam{} } - return r.Equals(*value) + return r.Lt(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Order(direction SortOrder) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryCreatedAtDateTime) Lte(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", - Value: direction, + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, }, } } -func (r workerSemaphoreSlotQueryWorkerIDString) Cursor(cursor string) workerSemaphoreSlotCursorParam { - return workerSemaphoreSlotCursorParam{ +func (r dispatcherQueryCreatedAtDateTime) LteIfPresent(value *DateTime) dispatcherDefaultParam { + if value == nil { + return dispatcherDefaultParam{} + } + return r.Lte(*value) +} + +func (r dispatcherQueryCreatedAtDateTime) Gt(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", - Value: cursor, + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, }, } } -func (r workerSemaphoreSlotQueryWorkerIDString) In(value []string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryCreatedAtDateTime) GtIfPresent(value *DateTime) dispatcherDefaultParam { + if value == nil { + return dispatcherDefaultParam{} + } + return r.Gt(*value) +} + +func (r dispatcherQueryCreatedAtDateTime) Gte(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "in", + Name: "gte", Value: value, }, }, @@ -153949,20 +154239,20 @@ func (r workerSemaphoreSlotQueryWorkerIDString) In(value []string) workerSemapho } } -func (r workerSemaphoreSlotQueryWorkerIDString) InIfPresent(value []string) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryCreatedAtDateTime) GteIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.In(value) + return r.Gte(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) NotIn(value []string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryCreatedAtDateTime) Not(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "notIn", + Name: "not", Value: value, }, }, @@ -153970,17 +154260,19 @@ func (r workerSemaphoreSlotQueryWorkerIDString) NotIn(value []string) workerSema } } -func (r workerSemaphoreSlotQueryWorkerIDString) NotInIfPresent(value []string) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryCreatedAtDateTime) NotIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.NotIn(value) + return r.Not(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Lt(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +// deprecated: Use Lt instead. + +func (r dispatcherQueryCreatedAtDateTime) Before(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -153991,20 +154283,23 @@ func (r workerSemaphoreSlotQueryWorkerIDString) Lt(value string) workerSemaphore } } -func (r workerSemaphoreSlotQueryWorkerIDString) LtIfPresent(value *string) workerSemaphoreSlotDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r dispatcherQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.Lt(*value) + return r.Before(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Lte(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +// deprecated: Use Gt instead. + +func (r dispatcherQueryCreatedAtDateTime) After(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -154012,20 +154307,23 @@ func (r workerSemaphoreSlotQueryWorkerIDString) Lte(value string) workerSemaphor } } -func (r workerSemaphoreSlotQueryWorkerIDString) LteIfPresent(value *string) workerSemaphoreSlotDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r dispatcherQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.Lte(*value) + return r.After(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Gt(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +// deprecated: Use Lte instead. + +func (r dispatcherQueryCreatedAtDateTime) BeforeEquals(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -154033,17 +154331,20 @@ func (r workerSemaphoreSlotQueryWorkerIDString) Gt(value string) workerSemaphore } } -func (r workerSemaphoreSlotQueryWorkerIDString) GtIfPresent(value *string) workerSemaphoreSlotDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r dispatcherQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.Gt(*value) + return r.BeforeEquals(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Gte(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +// deprecated: Use Gte instead. + +func (r dispatcherQueryCreatedAtDateTime) AfterEquals(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -154054,20 +154355,50 @@ func (r workerSemaphoreSlotQueryWorkerIDString) Gte(value string) workerSemaphor } } -func (r workerSemaphoreSlotQueryWorkerIDString) GteIfPresent(value *string) workerSemaphoreSlotDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r dispatcherQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.Gte(*value) + return r.AfterEquals(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Contains(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryCreatedAtDateTime) Field() dispatcherPrismaFields { + return dispatcherFieldCreatedAt +} + +// base struct +type dispatcherQueryUpdatedAtDateTime struct{} + +// Set the required value of UpdatedAt +func (r dispatcherQueryUpdatedAtDateTime) Set(value DateTime) dispatcherSetParam { + + return dispatcherSetParam{ data: builder.Field{ - Name: "workerId", + Name: "updatedAt", + Value: value, + }, + } + +} + +// Set the optional value of UpdatedAt dynamically +func (r dispatcherQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) dispatcherSetParam { + if value == nil { + return dispatcherSetParam{} + } + + return r.Set(*value) +} + +func (r dispatcherQueryUpdatedAtDateTime) Equals(value DateTime) dispatcherWithPrismaUpdatedAtEqualsParam { + + return dispatcherWithPrismaUpdatedAtEqualsParam{ + data: builder.Field{ + Name: "updatedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "equals", Value: value, }, }, @@ -154075,20 +154406,38 @@ func (r workerSemaphoreSlotQueryWorkerIDString) Contains(value string) workerSem } } -func (r workerSemaphoreSlotQueryWorkerIDString) ContainsIfPresent(value *string) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) dispatcherWithPrismaUpdatedAtEqualsParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherWithPrismaUpdatedAtEqualsParam{} } - return r.Contains(*value) + return r.Equals(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) StartsWith(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryUpdatedAtDateTime) Order(direction SortOrder) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "updatedAt", + Value: direction, + }, + } +} + +func (r dispatcherQueryUpdatedAtDateTime) Cursor(cursor DateTime) dispatcherCursorParam { + return dispatcherCursorParam{ + data: builder.Field{ + Name: "updatedAt", + Value: cursor, + }, + } +} + +func (r dispatcherQueryUpdatedAtDateTime) In(value []DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "updatedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "in", Value: value, }, }, @@ -154096,20 +154445,20 @@ func (r workerSemaphoreSlotQueryWorkerIDString) StartsWith(value string) workerS } } -func (r workerSemaphoreSlotQueryWorkerIDString) StartsWithIfPresent(value *string) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryUpdatedAtDateTime) InIfPresent(value []DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.StartsWith(*value) + return r.In(value) } -func (r workerSemaphoreSlotQueryWorkerIDString) EndsWith(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryUpdatedAtDateTime) NotIn(value []DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "notIn", Value: value, }, }, @@ -154117,20 +154466,20 @@ func (r workerSemaphoreSlotQueryWorkerIDString) EndsWith(value string) workerSem } } -func (r workerSemaphoreSlotQueryWorkerIDString) EndsWithIfPresent(value *string) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.EndsWith(*value) + return r.NotIn(value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Mode(value QueryMode) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryUpdatedAtDateTime) Lt(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lt", Value: value, }, }, @@ -154138,20 +154487,20 @@ func (r workerSemaphoreSlotQueryWorkerIDString) Mode(value QueryMode) workerSema } } -func (r workerSemaphoreSlotQueryWorkerIDString) ModeIfPresent(value *QueryMode) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.Mode(*value) + return r.Lt(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Not(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryUpdatedAtDateTime) Lte(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "not", + Name: "lte", Value: value, }, }, @@ -154159,22 +154508,20 @@ func (r workerSemaphoreSlotQueryWorkerIDString) Not(value string) workerSemaphor } } -func (r workerSemaphoreSlotQueryWorkerIDString) NotIfPresent(value *string) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.Not(*value) + return r.Lte(*value) } -// deprecated: Use StartsWith instead. - -func (r workerSemaphoreSlotQueryWorkerIDString) HasPrefix(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryUpdatedAtDateTime) Gt(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gt", Value: value, }, }, @@ -154182,23 +154529,20 @@ func (r workerSemaphoreSlotQueryWorkerIDString) HasPrefix(value string) workerSe } } -// deprecated: Use StartsWithIfPresent instead. -func (r workerSemaphoreSlotQueryWorkerIDString) HasPrefixIfPresent(value *string) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.HasPrefix(*value) + return r.Gt(*value) } -// deprecated: Use EndsWith instead. - -func (r workerSemaphoreSlotQueryWorkerIDString) HasSuffix(value string) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryUpdatedAtDateTime) Gte(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "workerId", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -154206,138 +154550,166 @@ func (r workerSemaphoreSlotQueryWorkerIDString) HasSuffix(value string) workerSe } } -// deprecated: Use EndsWithIfPresent instead. -func (r workerSemaphoreSlotQueryWorkerIDString) HasSuffixIfPresent(value *string) workerSemaphoreSlotDefaultParam { +func (r dispatcherQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotDefaultParam{} + return dispatcherDefaultParam{} } - return r.HasSuffix(*value) + return r.Gte(*value) } -func (r workerSemaphoreSlotQueryWorkerIDString) Field() workerSemaphoreSlotPrismaFields { - return workerSemaphoreSlotFieldWorkerID +func (r dispatcherQueryUpdatedAtDateTime) Not(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } } -// base struct -type workerSemaphoreSlotQueryStepRunStepRun struct{} - -type workerSemaphoreSlotQueryStepRunRelations struct{} - -// WorkerSemaphoreSlot -> StepRun -// -// @relation -// @optional -func (workerSemaphoreSlotQueryStepRunRelations) Where( - params ...StepRunWhereParam, -) workerSemaphoreSlotDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r dispatcherQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) dispatcherDefaultParam { + if value == nil { + return dispatcherDefaultParam{} } + return r.Not(*value) +} - return workerSemaphoreSlotDefaultParam{ +// deprecated: Use Lt instead. + +func (r dispatcherQueryUpdatedAtDateTime) Before(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRun", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "lt", + Value: value, }, }, }, } } -func (workerSemaphoreSlotQueryStepRunRelations) Fetch() workerSemaphoreSlotToStepRunFindUnique { - var v workerSemaphoreSlotToStepRunFindUnique +// deprecated: Use LtIfPresent instead. +func (r dispatcherQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) dispatcherDefaultParam { + if value == nil { + return dispatcherDefaultParam{} + } + return r.Before(*value) +} - v.query.Operation = "query" - v.query.Method = "stepRun" - v.query.Outputs = stepRunOutput +// deprecated: Use Gt instead. - return v +func (r dispatcherQueryUpdatedAtDateTime) After(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } } -func (r workerSemaphoreSlotQueryStepRunRelations) Link( - params StepRunWhereParam, -) workerSemaphoreSlotSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return workerSemaphoreSlotSetParam{} +// deprecated: Use GtIfPresent instead. +func (r dispatcherQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) dispatcherDefaultParam { + if value == nil { + return dispatcherDefaultParam{} } + return r.After(*value) +} - fields = append(fields, f) +// deprecated: Use Lte instead. - return workerSemaphoreSlotSetParam{ +func (r dispatcherQueryUpdatedAtDateTime) BeforeEquals(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRun", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "lte", + Value: value, }, }, }, } } -func (r workerSemaphoreSlotQueryStepRunRelations) Unlink() workerSemaphoreSlotSetParam { - var v workerSemaphoreSlotSetParam +// deprecated: Use LteIfPresent instead. +func (r dispatcherQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) dispatcherDefaultParam { + if value == nil { + return dispatcherDefaultParam{} + } + return r.BeforeEquals(*value) +} - v = workerSemaphoreSlotSetParam{ +// deprecated: Use Gte instead. + +func (r dispatcherQueryUpdatedAtDateTime) AfterEquals(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRun", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "gte", + Value: value, }, }, }, } +} - return v +// deprecated: Use GteIfPresent instead. +func (r dispatcherQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) dispatcherDefaultParam { + if value == nil { + return dispatcherDefaultParam{} + } + return r.AfterEquals(*value) } -func (r workerSemaphoreSlotQueryStepRunStepRun) Field() workerSemaphoreSlotPrismaFields { - return workerSemaphoreSlotFieldStepRun +func (r dispatcherQueryUpdatedAtDateTime) Field() dispatcherPrismaFields { + return dispatcherFieldUpdatedAt } // base struct -type workerSemaphoreSlotQueryStepRunIDString struct{} +type dispatcherQueryDeletedAtDateTime struct{} -// Set the optional value of StepRunID -func (r workerSemaphoreSlotQueryStepRunIDString) Set(value string) workerSemaphoreSlotSetParam { +// Set the optional value of DeletedAt +func (r dispatcherQueryDeletedAtDateTime) Set(value DateTime) dispatcherSetParam { - return workerSemaphoreSlotSetParam{ + return dispatcherSetParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Value: value, }, } } -// Set the optional value of StepRunID dynamically -func (r workerSemaphoreSlotQueryStepRunIDString) SetIfPresent(value *String) workerSemaphoreSlotSetParam { +// Set the optional value of DeletedAt dynamically +func (r dispatcherQueryDeletedAtDateTime) SetIfPresent(value *DateTime) dispatcherSetParam { if value == nil { - return workerSemaphoreSlotSetParam{} + return dispatcherSetParam{} } return r.Set(*value) } -// Set the optional value of StepRunID dynamically -func (r workerSemaphoreSlotQueryStepRunIDString) SetOptional(value *String) workerSemaphoreSlotSetParam { +// Set the optional value of DeletedAt dynamically +func (r dispatcherQueryDeletedAtDateTime) SetOptional(value *DateTime) dispatcherSetParam { if value == nil { - var v *string - return workerSemaphoreSlotSetParam{ + var v *DateTime + return dispatcherSetParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Value: v, }, } @@ -154346,11 +154718,11 @@ func (r workerSemaphoreSlotQueryStepRunIDString) SetOptional(value *String) work return r.Set(*value) } -func (r workerSemaphoreSlotQueryStepRunIDString) Equals(value string) workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam { +func (r dispatcherQueryDeletedAtDateTime) Equals(value DateTime) dispatcherWithPrismaDeletedAtEqualsParam { - return workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam{ + return dispatcherWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -154361,17 +154733,17 @@ func (r workerSemaphoreSlotQueryStepRunIDString) Equals(value string) workerSema } } -func (r workerSemaphoreSlotQueryStepRunIDString) EqualsIfPresent(value *string) workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam { +func (r dispatcherQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) dispatcherWithPrismaDeletedAtEqualsParam { if value == nil { - return workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam{} + return dispatcherWithPrismaDeletedAtEqualsParam{} } return r.Equals(*value) } -func (r workerSemaphoreSlotQueryStepRunIDString) EqualsOptional(value *String) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) EqualsOptional(value *DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -154382,11 +154754,11 @@ func (r workerSemaphoreSlotQueryStepRunIDString) EqualsOptional(value *String) w } } -func (r workerSemaphoreSlotQueryStepRunIDString) IsNull() workerSemaphoreSlotParamUnique { +func (r dispatcherQueryDeletedAtDateTime) IsNull() dispatcherDefaultParam { var str *string = nil - return workerSemaphoreSlotParamUnique{ + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -154397,28 +154769,28 @@ func (r workerSemaphoreSlotQueryStepRunIDString) IsNull() workerSemaphoreSlotPar } } -func (r workerSemaphoreSlotQueryStepRunIDString) Order(direction SortOrder) workerSemaphoreSlotDefaultParam { - return workerSemaphoreSlotDefaultParam{ +func (r dispatcherQueryDeletedAtDateTime) Order(direction SortOrder) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Value: direction, }, } } -func (r workerSemaphoreSlotQueryStepRunIDString) Cursor(cursor string) workerSemaphoreSlotCursorParam { - return workerSemaphoreSlotCursorParam{ +func (r dispatcherQueryDeletedAtDateTime) Cursor(cursor DateTime) dispatcherCursorParam { + return dispatcherCursorParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Value: cursor, }, } } -func (r workerSemaphoreSlotQueryStepRunIDString) In(value []string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) In(value []DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "in", @@ -154429,17 +154801,17 @@ func (r workerSemaphoreSlotQueryStepRunIDString) In(value []string) workerSemaph } } -func (r workerSemaphoreSlotQueryStepRunIDString) InIfPresent(value []string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryDeletedAtDateTime) InIfPresent(value []DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } return r.In(value) } -func (r workerSemaphoreSlotQueryStepRunIDString) NotIn(value []string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) NotIn(value []DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "notIn", @@ -154450,17 +154822,17 @@ func (r workerSemaphoreSlotQueryStepRunIDString) NotIn(value []string) workerSem } } -func (r workerSemaphoreSlotQueryStepRunIDString) NotInIfPresent(value []string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } return r.NotIn(value) } -func (r workerSemaphoreSlotQueryStepRunIDString) Lt(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) Lt(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -154471,17 +154843,17 @@ func (r workerSemaphoreSlotQueryStepRunIDString) Lt(value string) workerSemaphor } } -func (r workerSemaphoreSlotQueryStepRunIDString) LtIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryDeletedAtDateTime) LtIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } return r.Lt(*value) } -func (r workerSemaphoreSlotQueryStepRunIDString) Lte(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) Lte(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -154492,17 +154864,17 @@ func (r workerSemaphoreSlotQueryStepRunIDString) Lte(value string) workerSemapho } } -func (r workerSemaphoreSlotQueryStepRunIDString) LteIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryDeletedAtDateTime) LteIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } return r.Lte(*value) } -func (r workerSemaphoreSlotQueryStepRunIDString) Gt(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) Gt(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -154513,17 +154885,17 @@ func (r workerSemaphoreSlotQueryStepRunIDString) Gt(value string) workerSemaphor } } -func (r workerSemaphoreSlotQueryStepRunIDString) GtIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryDeletedAtDateTime) GtIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } return r.Gt(*value) } -func (r workerSemaphoreSlotQueryStepRunIDString) Gte(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) Gte(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -154534,20 +154906,20 @@ func (r workerSemaphoreSlotQueryStepRunIDString) Gte(value string) workerSemapho } } -func (r workerSemaphoreSlotQueryStepRunIDString) GteIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryDeletedAtDateTime) GteIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } return r.Gte(*value) } -func (r workerSemaphoreSlotQueryStepRunIDString) Contains(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) Not(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -154555,41 +154927,22 @@ func (r workerSemaphoreSlotQueryStepRunIDString) Contains(value string) workerSe } } -func (r workerSemaphoreSlotQueryStepRunIDString) ContainsIfPresent(value *string) workerSemaphoreSlotParamUnique { +func (r dispatcherQueryDeletedAtDateTime) NotIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} - } - return r.Contains(*value) -} - -func (r workerSemaphoreSlotQueryStepRunIDString) StartsWith(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return dispatcherDefaultParam{} } + return r.Not(*value) } -func (r workerSemaphoreSlotQueryStepRunIDString) StartsWithIfPresent(value *string) workerSemaphoreSlotParamUnique { - if value == nil { - return workerSemaphoreSlotParamUnique{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r workerSemaphoreSlotQueryStepRunIDString) EndsWith(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) Before(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -154597,41 +154950,23 @@ func (r workerSemaphoreSlotQueryStepRunIDString) EndsWith(value string) workerSe } } -func (r workerSemaphoreSlotQueryStepRunIDString) EndsWithIfPresent(value *string) workerSemaphoreSlotParamUnique { +// deprecated: Use LtIfPresent instead. +func (r dispatcherQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} - } - return r.EndsWith(*value) -} - -func (r workerSemaphoreSlotQueryStepRunIDString) Mode(value QueryMode) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return dispatcherDefaultParam{} } + return r.Before(*value) } -func (r workerSemaphoreSlotQueryStepRunIDString) ModeIfPresent(value *QueryMode) workerSemaphoreSlotParamUnique { - if value == nil { - return workerSemaphoreSlotParamUnique{} - } - return r.Mode(*value) -} +// deprecated: Use Gt instead. -func (r workerSemaphoreSlotQueryStepRunIDString) Not(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) After(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -154639,22 +154974,23 @@ func (r workerSemaphoreSlotQueryStepRunIDString) Not(value string) workerSemapho } } -func (r workerSemaphoreSlotQueryStepRunIDString) NotIfPresent(value *string) workerSemaphoreSlotParamUnique { +// deprecated: Use GtIfPresent instead. +func (r dispatcherQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r workerSemaphoreSlotQueryStepRunIDString) HasPrefix(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) BeforeEquals(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -154662,23 +154998,23 @@ func (r workerSemaphoreSlotQueryStepRunIDString) HasPrefix(value string) workerS } } -// deprecated: Use StartsWithIfPresent instead. -func (r workerSemaphoreSlotQueryStepRunIDString) HasPrefixIfPresent(value *string) workerSemaphoreSlotParamUnique { +// deprecated: Use LteIfPresent instead. +func (r dispatcherQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r workerSemaphoreSlotQueryStepRunIDString) HasSuffix(value string) workerSemaphoreSlotParamUnique { - return workerSemaphoreSlotParamUnique{ +func (r dispatcherQueryDeletedAtDateTime) AfterEquals(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -154686,162 +155022,84 @@ func (r workerSemaphoreSlotQueryStepRunIDString) HasSuffix(value string) workerS } } -// deprecated: Use EndsWithIfPresent instead. -func (r workerSemaphoreSlotQueryStepRunIDString) HasSuffixIfPresent(value *string) workerSemaphoreSlotParamUnique { +// deprecated: Use GteIfPresent instead. +func (r dispatcherQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return workerSemaphoreSlotParamUnique{} + return dispatcherDefaultParam{} } - return r.HasSuffix(*value) -} - -func (r workerSemaphoreSlotQueryStepRunIDString) Field() workerSemaphoreSlotPrismaFields { - return workerSemaphoreSlotFieldStepRunID + return r.AfterEquals(*value) } -// Service acts as a namespaces to access query methods for the Service model -var Service = serviceQuery{} - -// serviceQuery exposes query functions for the service model -type serviceQuery struct { - - // ID - // - // @required - ID serviceQueryIDString - - // CreatedAt - // - // @required - CreatedAt serviceQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt serviceQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt serviceQueryDeletedAtDateTime - - // Name - // - // @required - Name serviceQueryNameString - - // Description - // - // @optional - Description serviceQueryDescriptionString - - Tenant serviceQueryTenantRelations - - // TenantID - // - // @required - TenantID serviceQueryTenantIDString - - Workers serviceQueryWorkersRelations +func (r dispatcherQueryDeletedAtDateTime) Field() dispatcherPrismaFields { + return dispatcherFieldDeletedAt } -func (serviceQuery) Not(params ...ServiceWhereParam) serviceDefaultParam { - var fields []builder.Field +// base struct +type dispatcherQueryLastHeartbeatAtDateTime struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the optional value of LastHeartbeatAt +func (r dispatcherQueryLastHeartbeatAtDateTime) Set(value DateTime) dispatcherSetParam { - return serviceDefaultParam{ + return dispatcherSetParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "lastHeartbeatAt", + Value: value, }, } -} - -func (serviceQuery) Or(params ...ServiceWhereParam) serviceDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - return serviceDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, - } } -func (serviceQuery) And(params ...ServiceWhereParam) serviceDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// Set the optional value of LastHeartbeatAt dynamically +func (r dispatcherQueryLastHeartbeatAtDateTime) SetIfPresent(value *DateTime) dispatcherSetParam { + if value == nil { + return dispatcherSetParam{} } - return serviceDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } + return r.Set(*value) } -func (serviceQuery) TenantIDName( - _tenantID ServiceWithPrismaTenantIDWhereParam, - - _name ServiceWithPrismaNameWhereParam, -) ServiceEqualsUniqueWhereParam { - var fields []builder.Field - - fields = append(fields, _tenantID.field()) - fields = append(fields, _name.field()) +// Set the optional value of LastHeartbeatAt dynamically +func (r dispatcherQueryLastHeartbeatAtDateTime) SetOptional(value *DateTime) dispatcherSetParam { + if value == nil { - return serviceEqualsUniqueParam{ - data: builder.Field{ - Name: "tenantId_name", - Fields: builder.TransformEquals(fields), - }, + var v *DateTime + return dispatcherSetParam{ + data: builder.Field{ + Name: "lastHeartbeatAt", + Value: v, + }, + } } -} -// base struct -type serviceQueryIDString struct{} + return r.Set(*value) +} -// Set the required value of ID -func (r serviceQueryIDString) Set(value string) serviceSetParam { +func (r dispatcherQueryLastHeartbeatAtDateTime) Equals(value DateTime) dispatcherWithPrismaLastHeartbeatAtEqualsParam { - return serviceSetParam{ + return dispatcherWithPrismaLastHeartbeatAtEqualsParam{ data: builder.Field{ - Name: "id", - Value: value, + Name: "lastHeartbeatAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } - } -// Set the optional value of ID dynamically -func (r serviceQueryIDString) SetIfPresent(value *String) serviceSetParam { +func (r dispatcherQueryLastHeartbeatAtDateTime) EqualsIfPresent(value *DateTime) dispatcherWithPrismaLastHeartbeatAtEqualsParam { if value == nil { - return serviceSetParam{} + return dispatcherWithPrismaLastHeartbeatAtEqualsParam{} } - - return r.Set(*value) + return r.Equals(*value) } -func (r serviceQueryIDString) Equals(value string) serviceWithPrismaIDEqualsUniqueParam { - - return serviceWithPrismaIDEqualsUniqueParam{ +func (r dispatcherQueryLastHeartbeatAtDateTime) EqualsOptional(value *DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "equals", @@ -154852,35 +155110,43 @@ func (r serviceQueryIDString) Equals(value string) serviceWithPrismaIDEqualsUniq } } -func (r serviceQueryIDString) EqualsIfPresent(value *string) serviceWithPrismaIDEqualsUniqueParam { - if value == nil { - return serviceWithPrismaIDEqualsUniqueParam{} +func (r dispatcherQueryLastHeartbeatAtDateTime) IsNull() dispatcherDefaultParam { + var str *string = nil + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "lastHeartbeatAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Equals(*value) } -func (r serviceQueryIDString) Order(direction SortOrder) serviceDefaultParam { - return serviceDefaultParam{ +func (r dispatcherQueryLastHeartbeatAtDateTime) Order(direction SortOrder) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Value: direction, }, } } -func (r serviceQueryIDString) Cursor(cursor string) serviceCursorParam { - return serviceCursorParam{ +func (r dispatcherQueryLastHeartbeatAtDateTime) Cursor(cursor DateTime) dispatcherCursorParam { + return dispatcherCursorParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Value: cursor, }, } } -func (r serviceQueryIDString) In(value []string) serviceParamUnique { - return serviceParamUnique{ +func (r dispatcherQueryLastHeartbeatAtDateTime) In(value []DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "in", @@ -154891,17 +155157,17 @@ func (r serviceQueryIDString) In(value []string) serviceParamUnique { } } -func (r serviceQueryIDString) InIfPresent(value []string) serviceParamUnique { +func (r dispatcherQueryLastHeartbeatAtDateTime) InIfPresent(value []DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } return r.In(value) } -func (r serviceQueryIDString) NotIn(value []string) serviceParamUnique { - return serviceParamUnique{ +func (r dispatcherQueryLastHeartbeatAtDateTime) NotIn(value []DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "notIn", @@ -154912,17 +155178,17 @@ func (r serviceQueryIDString) NotIn(value []string) serviceParamUnique { } } -func (r serviceQueryIDString) NotInIfPresent(value []string) serviceParamUnique { +func (r dispatcherQueryLastHeartbeatAtDateTime) NotInIfPresent(value []DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } return r.NotIn(value) } -func (r serviceQueryIDString) Lt(value string) serviceParamUnique { - return serviceParamUnique{ +func (r dispatcherQueryLastHeartbeatAtDateTime) Lt(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "lt", @@ -154933,17 +155199,17 @@ func (r serviceQueryIDString) Lt(value string) serviceParamUnique { } } -func (r serviceQueryIDString) LtIfPresent(value *string) serviceParamUnique { +func (r dispatcherQueryLastHeartbeatAtDateTime) LtIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } return r.Lt(*value) } -func (r serviceQueryIDString) Lte(value string) serviceParamUnique { - return serviceParamUnique{ +func (r dispatcherQueryLastHeartbeatAtDateTime) Lte(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "lte", @@ -154954,17 +155220,17 @@ func (r serviceQueryIDString) Lte(value string) serviceParamUnique { } } -func (r serviceQueryIDString) LteIfPresent(value *string) serviceParamUnique { +func (r dispatcherQueryLastHeartbeatAtDateTime) LteIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } return r.Lte(*value) } -func (r serviceQueryIDString) Gt(value string) serviceParamUnique { - return serviceParamUnique{ +func (r dispatcherQueryLastHeartbeatAtDateTime) Gt(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "gt", @@ -154975,17 +155241,17 @@ func (r serviceQueryIDString) Gt(value string) serviceParamUnique { } } -func (r serviceQueryIDString) GtIfPresent(value *string) serviceParamUnique { +func (r dispatcherQueryLastHeartbeatAtDateTime) GtIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } return r.Gt(*value) } -func (r serviceQueryIDString) Gte(value string) serviceParamUnique { - return serviceParamUnique{ +func (r dispatcherQueryLastHeartbeatAtDateTime) Gte(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "gte", @@ -154996,20 +155262,20 @@ func (r serviceQueryIDString) Gte(value string) serviceParamUnique { } } -func (r serviceQueryIDString) GteIfPresent(value *string) serviceParamUnique { +func (r dispatcherQueryLastHeartbeatAtDateTime) GteIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } return r.Gte(*value) } -func (r serviceQueryIDString) Contains(value string) serviceParamUnique { - return serviceParamUnique{ +func (r dispatcherQueryLastHeartbeatAtDateTime) Not(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -155017,20 +155283,22 @@ func (r serviceQueryIDString) Contains(value string) serviceParamUnique { } } -func (r serviceQueryIDString) ContainsIfPresent(value *string) serviceParamUnique { +func (r dispatcherQueryLastHeartbeatAtDateTime) NotIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r serviceQueryIDString) StartsWith(value string) serviceParamUnique { - return serviceParamUnique{ +// deprecated: Use Lt instead. + +func (r dispatcherQueryLastHeartbeatAtDateTime) Before(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -155038,20 +155306,23 @@ func (r serviceQueryIDString) StartsWith(value string) serviceParamUnique { } } -func (r serviceQueryIDString) StartsWithIfPresent(value *string) serviceParamUnique { +// deprecated: Use LtIfPresent instead. +func (r dispatcherQueryLastHeartbeatAtDateTime) BeforeIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r serviceQueryIDString) EndsWith(value string) serviceParamUnique { - return serviceParamUnique{ +// deprecated: Use Gt instead. + +func (r dispatcherQueryLastHeartbeatAtDateTime) After(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -155059,20 +155330,23 @@ func (r serviceQueryIDString) EndsWith(value string) serviceParamUnique { } } -func (r serviceQueryIDString) EndsWithIfPresent(value *string) serviceParamUnique { +// deprecated: Use GtIfPresent instead. +func (r dispatcherQueryLastHeartbeatAtDateTime) AfterIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r serviceQueryIDString) Mode(value QueryMode) serviceParamUnique { - return serviceParamUnique{ +// deprecated: Use Lte instead. + +func (r dispatcherQueryLastHeartbeatAtDateTime) BeforeEquals(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -155080,20 +155354,23 @@ func (r serviceQueryIDString) Mode(value QueryMode) serviceParamUnique { } } -func (r serviceQueryIDString) ModeIfPresent(value *QueryMode) serviceParamUnique { +// deprecated: Use LteIfPresent instead. +func (r dispatcherQueryLastHeartbeatAtDateTime) BeforeEqualsIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r serviceQueryIDString) Not(value string) serviceParamUnique { - return serviceParamUnique{ +// deprecated: Use Gte instead. + +func (r dispatcherQueryLastHeartbeatAtDateTime) AfterEquals(value DateTime) dispatcherDefaultParam { + return dispatcherDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -155101,22 +155378,50 @@ func (r serviceQueryIDString) Not(value string) serviceParamUnique { } } -func (r serviceQueryIDString) NotIfPresent(value *string) serviceParamUnique { +// deprecated: Use GteIfPresent instead. +func (r dispatcherQueryLastHeartbeatAtDateTime) AfterEqualsIfPresent(value *DateTime) dispatcherDefaultParam { if value == nil { - return serviceParamUnique{} + return dispatcherDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r dispatcherQueryLastHeartbeatAtDateTime) Field() dispatcherPrismaFields { + return dispatcherFieldLastHeartbeatAt +} -func (r serviceQueryIDString) HasPrefix(value string) serviceParamUnique { - return serviceParamUnique{ +// base struct +type dispatcherQueryIsActiveBoolean struct{} + +// Set the required value of IsActive +func (r dispatcherQueryIsActiveBoolean) Set(value bool) dispatcherSetParam { + + return dispatcherSetParam{ data: builder.Field{ - Name: "id", + Name: "isActive", + Value: value, + }, + } + +} + +// Set the optional value of IsActive dynamically +func (r dispatcherQueryIsActiveBoolean) SetIfPresent(value *Boolean) dispatcherSetParam { + if value == nil { + return dispatcherSetParam{} + } + + return r.Set(*value) +} + +func (r dispatcherQueryIsActiveBoolean) Equals(value bool) dispatcherWithPrismaIsActiveEqualsParam { + + return dispatcherWithPrismaIsActiveEqualsParam{ + data: builder.Field{ + Name: "isActive", Fields: []builder.Field{ { - Name: "starts_with", + Name: "equals", Value: value, }, }, @@ -155124,71 +155429,331 @@ func (r serviceQueryIDString) HasPrefix(value string) serviceParamUnique { } } -// deprecated: Use StartsWithIfPresent instead. -func (r serviceQueryIDString) HasPrefixIfPresent(value *string) serviceParamUnique { +func (r dispatcherQueryIsActiveBoolean) EqualsIfPresent(value *bool) dispatcherWithPrismaIsActiveEqualsParam { if value == nil { - return serviceParamUnique{} + return dispatcherWithPrismaIsActiveEqualsParam{} } - return r.HasPrefix(*value) + return r.Equals(*value) } -// deprecated: Use EndsWith instead. +func (r dispatcherQueryIsActiveBoolean) Order(direction SortOrder) dispatcherDefaultParam { + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "isActive", + Value: direction, + }, + } +} -func (r serviceQueryIDString) HasSuffix(value string) serviceParamUnique { - return serviceParamUnique{ +func (r dispatcherQueryIsActiveBoolean) Cursor(cursor bool) dispatcherCursorParam { + return dispatcherCursorParam{ data: builder.Field{ - Name: "id", + Name: "isActive", + Value: cursor, + }, + } +} + +func (r dispatcherQueryIsActiveBoolean) Field() dispatcherPrismaFields { + return dispatcherFieldIsActive +} + +// base struct +type dispatcherQueryWorkersWorker struct{} + +type dispatcherQueryWorkersRelations struct{} + +// Dispatcher -> Workers +// +// @relation +// @required +func (dispatcherQueryWorkersRelations) Some( + params ...WorkerWhereParam, +) dispatcherDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "workers", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r serviceQueryIDString) HasSuffixIfPresent(value *string) serviceParamUnique { - if value == nil { - return serviceParamUnique{} +// Dispatcher -> Workers +// +// @relation +// @required +func (dispatcherQueryWorkersRelations) Every( + params ...WorkerWhereParam, +) dispatcherDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "workers", + Fields: []builder.Field{ + { + Name: "every", + Fields: fields, + }, + }, + }, } - return r.HasSuffix(*value) } -func (r serviceQueryIDString) Field() servicePrismaFields { - return serviceFieldID +// Dispatcher -> Workers +// +// @relation +// @required +func (dispatcherQueryWorkersRelations) None( + params ...WorkerWhereParam, +) dispatcherDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return dispatcherDefaultParam{ + data: builder.Field{ + Name: "workers", + Fields: []builder.Field{ + { + Name: "none", + Fields: fields, + }, + }, + }, + } +} + +func (dispatcherQueryWorkersRelations) Fetch( + + params ...WorkerWhereParam, + +) dispatcherToWorkersFindMany { + var v dispatcherToWorkersFindMany + + v.query.Operation = "query" + v.query.Method = "workers" + v.query.Outputs = workerOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r dispatcherQueryWorkersRelations) Link( + params ...WorkerWhereParam, +) dispatcherSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return dispatcherSetParam{ + data: builder.Field{ + Name: "workers", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, + }, + }, + }, + } +} + +func (r dispatcherQueryWorkersRelations) Unlink( + params ...WorkerWhereParam, +) dispatcherSetParam { + var v dispatcherSetParam + + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = dispatcherSetParam{ + data: builder.Field{ + Name: "workers", + Fields: []builder.Field{ + { + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), + }, + }, + }, + } + + return v +} + +func (r dispatcherQueryWorkersWorker) Field() dispatcherPrismaFields { + return dispatcherFieldWorkers +} + +// Ticker acts as a namespaces to access query methods for the Ticker model +var Ticker = tickerQuery{} + +// tickerQuery exposes query functions for the ticker model +type tickerQuery struct { + + // ID + // + // @required + ID tickerQueryIDString + + // CreatedAt + // + // @required + CreatedAt tickerQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt tickerQueryUpdatedAtDateTime + + // LastHeartbeatAt + // + // @optional + LastHeartbeatAt tickerQueryLastHeartbeatAtDateTime + + // IsActive + // + // @required + IsActive tickerQueryIsActiveBoolean + + JobRuns tickerQueryJobRunsRelations + + StepRuns tickerQueryStepRunsRelations + + Crons tickerQueryCronsRelations + + Scheduled tickerQueryScheduledRelations + + GroupKeyRuns tickerQueryGroupKeyRunsRelations + + TenantAlerts tickerQueryTenantAlertsRelations +} + +func (tickerQuery) Not(params ...TickerWhereParam) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tickerDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (tickerQuery) Or(params ...TickerWhereParam) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tickerDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (tickerQuery) And(params ...TickerWhereParam) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tickerDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } // base struct -type serviceQueryCreatedAtDateTime struct{} +type tickerQueryIDString struct{} -// Set the required value of CreatedAt -func (r serviceQueryCreatedAtDateTime) Set(value DateTime) serviceSetParam { +// Set the required value of ID +func (r tickerQueryIDString) Set(value string) tickerSetParam { - return serviceSetParam{ + return tickerSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "id", Value: value, }, } } -// Set the optional value of CreatedAt dynamically -func (r serviceQueryCreatedAtDateTime) SetIfPresent(value *DateTime) serviceSetParam { +// Set the optional value of ID dynamically +func (r tickerQueryIDString) SetIfPresent(value *String) tickerSetParam { if value == nil { - return serviceSetParam{} + return tickerSetParam{} } return r.Set(*value) } -func (r serviceQueryCreatedAtDateTime) Equals(value DateTime) serviceWithPrismaCreatedAtEqualsParam { +func (r tickerQueryIDString) Equals(value string) tickerWithPrismaIDEqualsUniqueParam { - return serviceWithPrismaCreatedAtEqualsParam{ + return tickerWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -155199,35 +155764,35 @@ func (r serviceQueryCreatedAtDateTime) Equals(value DateTime) serviceWithPrismaC } } -func (r serviceQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) serviceWithPrismaCreatedAtEqualsParam { +func (r tickerQueryIDString) EqualsIfPresent(value *string) tickerWithPrismaIDEqualsUniqueParam { if value == nil { - return serviceWithPrismaCreatedAtEqualsParam{} + return tickerWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r serviceQueryCreatedAtDateTime) Order(direction SortOrder) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) Order(direction SortOrder) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "id", Value: direction, }, } } -func (r serviceQueryCreatedAtDateTime) Cursor(cursor DateTime) serviceCursorParam { - return serviceCursorParam{ +func (r tickerQueryIDString) Cursor(cursor string) tickerCursorParam { + return tickerCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "id", Value: cursor, }, } } -func (r serviceQueryCreatedAtDateTime) In(value []DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) In(value []string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -155238,17 +155803,17 @@ func (r serviceQueryCreatedAtDateTime) In(value []DateTime) serviceDefaultParam } } -func (r serviceQueryCreatedAtDateTime) InIfPresent(value []DateTime) serviceDefaultParam { +func (r tickerQueryIDString) InIfPresent(value []string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } return r.In(value) } -func (r serviceQueryCreatedAtDateTime) NotIn(value []DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) NotIn(value []string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -155259,17 +155824,17 @@ func (r serviceQueryCreatedAtDateTime) NotIn(value []DateTime) serviceDefaultPar } } -func (r serviceQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) serviceDefaultParam { +func (r tickerQueryIDString) NotInIfPresent(value []string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } return r.NotIn(value) } -func (r serviceQueryCreatedAtDateTime) Lt(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) Lt(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -155280,17 +155845,17 @@ func (r serviceQueryCreatedAtDateTime) Lt(value DateTime) serviceDefaultParam { } } -func (r serviceQueryCreatedAtDateTime) LtIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryIDString) LtIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } return r.Lt(*value) } -func (r serviceQueryCreatedAtDateTime) Lte(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) Lte(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -155301,17 +155866,17 @@ func (r serviceQueryCreatedAtDateTime) Lte(value DateTime) serviceDefaultParam { } } -func (r serviceQueryCreatedAtDateTime) LteIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryIDString) LteIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } return r.Lte(*value) } -func (r serviceQueryCreatedAtDateTime) Gt(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) Gt(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -155322,17 +155887,17 @@ func (r serviceQueryCreatedAtDateTime) Gt(value DateTime) serviceDefaultParam { } } -func (r serviceQueryCreatedAtDateTime) GtIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryIDString) GtIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } return r.Gt(*value) } -func (r serviceQueryCreatedAtDateTime) Gte(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) Gte(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -155343,20 +155908,20 @@ func (r serviceQueryCreatedAtDateTime) Gte(value DateTime) serviceDefaultParam { } } -func (r serviceQueryCreatedAtDateTime) GteIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryIDString) GteIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } return r.Gte(*value) } -func (r serviceQueryCreatedAtDateTime) Not(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) Contains(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -155364,22 +155929,41 @@ func (r serviceQueryCreatedAtDateTime) Not(value DateTime) serviceDefaultParam { } } -func (r serviceQueryCreatedAtDateTime) NotIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryIDString) ContainsIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r tickerQueryIDString) StartsWith(value string) tickerParamUnique { + return tickerParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r serviceQueryCreatedAtDateTime) Before(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) StartsWithIfPresent(value *string) tickerParamUnique { + if value == nil { + return tickerParamUnique{} + } + return r.StartsWith(*value) +} + +func (r tickerQueryIDString) EndsWith(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -155387,23 +155971,41 @@ func (r serviceQueryCreatedAtDateTime) Before(value DateTime) serviceDefaultPara } } -// deprecated: Use LtIfPresent instead. -func (r serviceQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryIDString) EndsWithIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r tickerQueryIDString) Mode(value QueryMode) tickerParamUnique { + return tickerParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r serviceQueryCreatedAtDateTime) After(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) ModeIfPresent(value *QueryMode) tickerParamUnique { + if value == nil { + return tickerParamUnique{} + } + return r.Mode(*value) +} + +func (r tickerQueryIDString) Not(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -155411,23 +156013,22 @@ func (r serviceQueryCreatedAtDateTime) After(value DateTime) serviceDefaultParam } } -// deprecated: Use GtIfPresent instead. -func (r serviceQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryIDString) NotIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r serviceQueryCreatedAtDateTime) BeforeEquals(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) HasPrefix(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -155435,23 +156036,23 @@ func (r serviceQueryCreatedAtDateTime) BeforeEquals(value DateTime) serviceDefau } } -// deprecated: Use LteIfPresent instead. -func (r serviceQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) serviceDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r tickerQueryIDString) HasPrefixIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r serviceQueryCreatedAtDateTime) AfterEquals(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIDString) HasSuffix(value string) tickerParamUnique { + return tickerParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "id", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -155459,47 +156060,47 @@ func (r serviceQueryCreatedAtDateTime) AfterEquals(value DateTime) serviceDefaul } } -// deprecated: Use GteIfPresent instead. -func (r serviceQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) serviceDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r tickerQueryIDString) HasSuffixIfPresent(value *string) tickerParamUnique { if value == nil { - return serviceDefaultParam{} + return tickerParamUnique{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r serviceQueryCreatedAtDateTime) Field() servicePrismaFields { - return serviceFieldCreatedAt +func (r tickerQueryIDString) Field() tickerPrismaFields { + return tickerFieldID } // base struct -type serviceQueryUpdatedAtDateTime struct{} +type tickerQueryCreatedAtDateTime struct{} -// Set the required value of UpdatedAt -func (r serviceQueryUpdatedAtDateTime) Set(value DateTime) serviceSetParam { +// Set the required value of CreatedAt +func (r tickerQueryCreatedAtDateTime) Set(value DateTime) tickerSetParam { - return serviceSetParam{ + return tickerSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Value: value, }, } } -// Set the optional value of UpdatedAt dynamically -func (r serviceQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) serviceSetParam { +// Set the optional value of CreatedAt dynamically +func (r tickerQueryCreatedAtDateTime) SetIfPresent(value *DateTime) tickerSetParam { if value == nil { - return serviceSetParam{} + return tickerSetParam{} } return r.Set(*value) } -func (r serviceQueryUpdatedAtDateTime) Equals(value DateTime) serviceWithPrismaUpdatedAtEqualsParam { +func (r tickerQueryCreatedAtDateTime) Equals(value DateTime) tickerWithPrismaCreatedAtEqualsParam { - return serviceWithPrismaUpdatedAtEqualsParam{ + return tickerWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -155510,35 +156111,35 @@ func (r serviceQueryUpdatedAtDateTime) Equals(value DateTime) serviceWithPrismaU } } -func (r serviceQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) serviceWithPrismaUpdatedAtEqualsParam { +func (r tickerQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) tickerWithPrismaCreatedAtEqualsParam { if value == nil { - return serviceWithPrismaUpdatedAtEqualsParam{} + return tickerWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r serviceQueryUpdatedAtDateTime) Order(direction SortOrder) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) Order(direction SortOrder) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Value: direction, }, } } -func (r serviceQueryUpdatedAtDateTime) Cursor(cursor DateTime) serviceCursorParam { - return serviceCursorParam{ +func (r tickerQueryCreatedAtDateTime) Cursor(cursor DateTime) tickerCursorParam { + return tickerCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Value: cursor, }, } } -func (r serviceQueryUpdatedAtDateTime) In(value []DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) In(value []DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -155549,17 +156150,17 @@ func (r serviceQueryUpdatedAtDateTime) In(value []DateTime) serviceDefaultParam } } -func (r serviceQueryUpdatedAtDateTime) InIfPresent(value []DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) InIfPresent(value []DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.In(value) } -func (r serviceQueryUpdatedAtDateTime) NotIn(value []DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) NotIn(value []DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -155570,17 +156171,17 @@ func (r serviceQueryUpdatedAtDateTime) NotIn(value []DateTime) serviceDefaultPar } } -func (r serviceQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.NotIn(value) } -func (r serviceQueryUpdatedAtDateTime) Lt(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) Lt(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -155591,17 +156192,17 @@ func (r serviceQueryUpdatedAtDateTime) Lt(value DateTime) serviceDefaultParam { } } -func (r serviceQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) LtIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Lt(*value) } -func (r serviceQueryUpdatedAtDateTime) Lte(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) Lte(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -155612,17 +156213,17 @@ func (r serviceQueryUpdatedAtDateTime) Lte(value DateTime) serviceDefaultParam { } } -func (r serviceQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) LteIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Lte(*value) } -func (r serviceQueryUpdatedAtDateTime) Gt(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) Gt(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -155633,17 +156234,17 @@ func (r serviceQueryUpdatedAtDateTime) Gt(value DateTime) serviceDefaultParam { } } -func (r serviceQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) GtIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Gt(*value) } -func (r serviceQueryUpdatedAtDateTime) Gte(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) Gte(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -155654,17 +156255,17 @@ func (r serviceQueryUpdatedAtDateTime) Gte(value DateTime) serviceDefaultParam { } } -func (r serviceQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) GteIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Gte(*value) } -func (r serviceQueryUpdatedAtDateTime) Not(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) Not(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "not", @@ -155675,19 +156276,19 @@ func (r serviceQueryUpdatedAtDateTime) Not(value DateTime) serviceDefaultParam { } } -func (r serviceQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) NotIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r serviceQueryUpdatedAtDateTime) Before(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) Before(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -155699,19 +156300,19 @@ func (r serviceQueryUpdatedAtDateTime) Before(value DateTime) serviceDefaultPara } // deprecated: Use LtIfPresent instead. -func (r serviceQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r serviceQueryUpdatedAtDateTime) After(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) After(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -155723,19 +156324,19 @@ func (r serviceQueryUpdatedAtDateTime) After(value DateTime) serviceDefaultParam } // deprecated: Use GtIfPresent instead. -func (r serviceQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r serviceQueryUpdatedAtDateTime) BeforeEquals(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) BeforeEquals(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -155747,19 +156348,19 @@ func (r serviceQueryUpdatedAtDateTime) BeforeEquals(value DateTime) serviceDefau } // deprecated: Use LteIfPresent instead. -func (r serviceQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r serviceQueryUpdatedAtDateTime) AfterEquals(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryCreatedAtDateTime) AfterEquals(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -155771,62 +156372,46 @@ func (r serviceQueryUpdatedAtDateTime) AfterEquals(value DateTime) serviceDefaul } // deprecated: Use GteIfPresent instead. -func (r serviceQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.AfterEquals(*value) } -func (r serviceQueryUpdatedAtDateTime) Field() servicePrismaFields { - return serviceFieldUpdatedAt +func (r tickerQueryCreatedAtDateTime) Field() tickerPrismaFields { + return tickerFieldCreatedAt } // base struct -type serviceQueryDeletedAtDateTime struct{} +type tickerQueryUpdatedAtDateTime struct{} -// Set the optional value of DeletedAt -func (r serviceQueryDeletedAtDateTime) Set(value DateTime) serviceSetParam { +// Set the required value of UpdatedAt +func (r tickerQueryUpdatedAtDateTime) Set(value DateTime) tickerSetParam { - return serviceSetParam{ + return tickerSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of DeletedAt dynamically -func (r serviceQueryDeletedAtDateTime) SetIfPresent(value *DateTime) serviceSetParam { - if value == nil { - return serviceSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of DeletedAt dynamically -func (r serviceQueryDeletedAtDateTime) SetOptional(value *DateTime) serviceSetParam { +// Set the optional value of UpdatedAt dynamically +func (r tickerQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) tickerSetParam { if value == nil { - - var v *DateTime - return serviceSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, - }, - } + return tickerSetParam{} } return r.Set(*value) } -func (r serviceQueryDeletedAtDateTime) Equals(value DateTime) serviceWithPrismaDeletedAtEqualsParam { +func (r tickerQueryUpdatedAtDateTime) Equals(value DateTime) tickerWithPrismaUpdatedAtEqualsParam { - return serviceWithPrismaDeletedAtEqualsParam{ + return tickerWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -155837,64 +156422,35 @@ func (r serviceQueryDeletedAtDateTime) Equals(value DateTime) serviceWithPrismaD } } -func (r serviceQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) serviceWithPrismaDeletedAtEqualsParam { +func (r tickerQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) tickerWithPrismaUpdatedAtEqualsParam { if value == nil { - return serviceWithPrismaDeletedAtEqualsParam{} + return tickerWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r serviceQueryDeletedAtDateTime) EqualsOptional(value *DateTime) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r serviceQueryDeletedAtDateTime) IsNull() serviceDefaultParam { - var str *string = nil - return serviceDefaultParam{ - data: builder.Field{ - Name: "deletedAt", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r serviceQueryDeletedAtDateTime) Order(direction SortOrder) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) Order(direction SortOrder) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Value: direction, }, } } -func (r serviceQueryDeletedAtDateTime) Cursor(cursor DateTime) serviceCursorParam { - return serviceCursorParam{ +func (r tickerQueryUpdatedAtDateTime) Cursor(cursor DateTime) tickerCursorParam { + return tickerCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Value: cursor, }, } } -func (r serviceQueryDeletedAtDateTime) In(value []DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) In(value []DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -155905,17 +156461,17 @@ func (r serviceQueryDeletedAtDateTime) In(value []DateTime) serviceDefaultParam } } -func (r serviceQueryDeletedAtDateTime) InIfPresent(value []DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) InIfPresent(value []DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.In(value) } -func (r serviceQueryDeletedAtDateTime) NotIn(value []DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) NotIn(value []DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -155926,17 +156482,17 @@ func (r serviceQueryDeletedAtDateTime) NotIn(value []DateTime) serviceDefaultPar } } -func (r serviceQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.NotIn(value) } -func (r serviceQueryDeletedAtDateTime) Lt(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) Lt(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -155947,17 +156503,17 @@ func (r serviceQueryDeletedAtDateTime) Lt(value DateTime) serviceDefaultParam { } } -func (r serviceQueryDeletedAtDateTime) LtIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Lt(*value) } -func (r serviceQueryDeletedAtDateTime) Lte(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) Lte(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -155968,17 +156524,17 @@ func (r serviceQueryDeletedAtDateTime) Lte(value DateTime) serviceDefaultParam { } } -func (r serviceQueryDeletedAtDateTime) LteIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Lte(*value) } -func (r serviceQueryDeletedAtDateTime) Gt(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) Gt(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -155989,17 +156545,17 @@ func (r serviceQueryDeletedAtDateTime) Gt(value DateTime) serviceDefaultParam { } } -func (r serviceQueryDeletedAtDateTime) GtIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Gt(*value) } -func (r serviceQueryDeletedAtDateTime) Gte(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) Gte(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -156010,17 +156566,17 @@ func (r serviceQueryDeletedAtDateTime) Gte(value DateTime) serviceDefaultParam { } } -func (r serviceQueryDeletedAtDateTime) GteIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Gte(*value) } -func (r serviceQueryDeletedAtDateTime) Not(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) Not(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "not", @@ -156031,19 +156587,19 @@ func (r serviceQueryDeletedAtDateTime) Not(value DateTime) serviceDefaultParam { } } -func (r serviceQueryDeletedAtDateTime) NotIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r serviceQueryDeletedAtDateTime) Before(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) Before(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -156055,19 +156611,19 @@ func (r serviceQueryDeletedAtDateTime) Before(value DateTime) serviceDefaultPara } // deprecated: Use LtIfPresent instead. -func (r serviceQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r serviceQueryDeletedAtDateTime) After(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) After(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -156079,19 +156635,19 @@ func (r serviceQueryDeletedAtDateTime) After(value DateTime) serviceDefaultParam } // deprecated: Use GtIfPresent instead. -func (r serviceQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r serviceQueryDeletedAtDateTime) BeforeEquals(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) BeforeEquals(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -156103,19 +156659,19 @@ func (r serviceQueryDeletedAtDateTime) BeforeEquals(value DateTime) serviceDefau } // deprecated: Use LteIfPresent instead. -func (r serviceQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r serviceQueryDeletedAtDateTime) AfterEquals(value DateTime) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryUpdatedAtDateTime) AfterEquals(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -156127,46 +156683,62 @@ func (r serviceQueryDeletedAtDateTime) AfterEquals(value DateTime) serviceDefaul } // deprecated: Use GteIfPresent instead. -func (r serviceQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) serviceDefaultParam { +func (r tickerQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.AfterEquals(*value) } -func (r serviceQueryDeletedAtDateTime) Field() servicePrismaFields { - return serviceFieldDeletedAt +func (r tickerQueryUpdatedAtDateTime) Field() tickerPrismaFields { + return tickerFieldUpdatedAt } // base struct -type serviceQueryNameString struct{} +type tickerQueryLastHeartbeatAtDateTime struct{} -// Set the required value of Name -func (r serviceQueryNameString) Set(value string) serviceWithPrismaNameSetParam { +// Set the optional value of LastHeartbeatAt +func (r tickerQueryLastHeartbeatAtDateTime) Set(value DateTime) tickerSetParam { - return serviceWithPrismaNameSetParam{ + return tickerSetParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Value: value, }, } } -// Set the optional value of Name dynamically -func (r serviceQueryNameString) SetIfPresent(value *String) serviceWithPrismaNameSetParam { +// Set the optional value of LastHeartbeatAt dynamically +func (r tickerQueryLastHeartbeatAtDateTime) SetIfPresent(value *DateTime) tickerSetParam { if value == nil { - return serviceWithPrismaNameSetParam{} + return tickerSetParam{} } return r.Set(*value) } -func (r serviceQueryNameString) Equals(value string) serviceWithPrismaNameEqualsParam { +// Set the optional value of LastHeartbeatAt dynamically +func (r tickerQueryLastHeartbeatAtDateTime) SetOptional(value *DateTime) tickerSetParam { + if value == nil { - return serviceWithPrismaNameEqualsParam{ + var v *DateTime + return tickerSetParam{ + data: builder.Field{ + Name: "lastHeartbeatAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r tickerQueryLastHeartbeatAtDateTime) Equals(value DateTime) tickerWithPrismaLastHeartbeatAtEqualsParam { + + return tickerWithPrismaLastHeartbeatAtEqualsParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "equals", @@ -156177,35 +156749,64 @@ func (r serviceQueryNameString) Equals(value string) serviceWithPrismaNameEquals } } -func (r serviceQueryNameString) EqualsIfPresent(value *string) serviceWithPrismaNameEqualsParam { +func (r tickerQueryLastHeartbeatAtDateTime) EqualsIfPresent(value *DateTime) tickerWithPrismaLastHeartbeatAtEqualsParam { if value == nil { - return serviceWithPrismaNameEqualsParam{} + return tickerWithPrismaLastHeartbeatAtEqualsParam{} } return r.Equals(*value) } -func (r serviceQueryNameString) Order(direction SortOrder) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) EqualsOptional(value *DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", - Value: direction, - }, + Name: "lastHeartbeatAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, } } -func (r serviceQueryNameString) Cursor(cursor string) serviceCursorParam { - return serviceCursorParam{ +func (r tickerQueryLastHeartbeatAtDateTime) IsNull() tickerDefaultParam { + var str *string = nil + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r tickerQueryLastHeartbeatAtDateTime) Order(direction SortOrder) tickerDefaultParam { + return tickerDefaultParam{ + data: builder.Field{ + Name: "lastHeartbeatAt", + Value: direction, + }, + } +} + +func (r tickerQueryLastHeartbeatAtDateTime) Cursor(cursor DateTime) tickerCursorParam { + return tickerCursorParam{ + data: builder.Field{ + Name: "lastHeartbeatAt", Value: cursor, }, } } -func (r serviceQueryNameString) In(value []string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) In(value []DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "in", @@ -156216,17 +156817,17 @@ func (r serviceQueryNameString) In(value []string) serviceDefaultParam { } } -func (r serviceQueryNameString) InIfPresent(value []string) serviceDefaultParam { +func (r tickerQueryLastHeartbeatAtDateTime) InIfPresent(value []DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.In(value) } -func (r serviceQueryNameString) NotIn(value []string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) NotIn(value []DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "notIn", @@ -156237,17 +156838,17 @@ func (r serviceQueryNameString) NotIn(value []string) serviceDefaultParam { } } -func (r serviceQueryNameString) NotInIfPresent(value []string) serviceDefaultParam { +func (r tickerQueryLastHeartbeatAtDateTime) NotInIfPresent(value []DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.NotIn(value) } -func (r serviceQueryNameString) Lt(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) Lt(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "lt", @@ -156258,17 +156859,17 @@ func (r serviceQueryNameString) Lt(value string) serviceDefaultParam { } } -func (r serviceQueryNameString) LtIfPresent(value *string) serviceDefaultParam { +func (r tickerQueryLastHeartbeatAtDateTime) LtIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Lt(*value) } -func (r serviceQueryNameString) Lte(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) Lte(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "lte", @@ -156279,17 +156880,17 @@ func (r serviceQueryNameString) Lte(value string) serviceDefaultParam { } } -func (r serviceQueryNameString) LteIfPresent(value *string) serviceDefaultParam { +func (r tickerQueryLastHeartbeatAtDateTime) LteIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Lte(*value) } -func (r serviceQueryNameString) Gt(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) Gt(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "gt", @@ -156300,17 +156901,17 @@ func (r serviceQueryNameString) Gt(value string) serviceDefaultParam { } } -func (r serviceQueryNameString) GtIfPresent(value *string) serviceDefaultParam { +func (r tickerQueryLastHeartbeatAtDateTime) GtIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Gt(*value) } -func (r serviceQueryNameString) Gte(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) Gte(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "gte", @@ -156321,20 +156922,20 @@ func (r serviceQueryNameString) Gte(value string) serviceDefaultParam { } } -func (r serviceQueryNameString) GteIfPresent(value *string) serviceDefaultParam { +func (r tickerQueryLastHeartbeatAtDateTime) GteIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } return r.Gte(*value) } -func (r serviceQueryNameString) Contains(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) Not(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -156342,41 +156943,22 @@ func (r serviceQueryNameString) Contains(value string) serviceDefaultParam { } } -func (r serviceQueryNameString) ContainsIfPresent(value *string) serviceDefaultParam { +func (r tickerQueryLastHeartbeatAtDateTime) NotIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} - } - return r.Contains(*value) -} - -func (r serviceQueryNameString) StartsWith(value string) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "name", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return tickerDefaultParam{} } + return r.Not(*value) } -func (r serviceQueryNameString) StartsWithIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r serviceQueryNameString) EndsWith(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) Before(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -156384,41 +156966,23 @@ func (r serviceQueryNameString) EndsWith(value string) serviceDefaultParam { } } -func (r serviceQueryNameString) EndsWithIfPresent(value *string) serviceDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r tickerQueryLastHeartbeatAtDateTime) BeforeIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r serviceQueryNameString) Mode(value QueryMode) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "name", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return tickerDefaultParam{} } + return r.Before(*value) } -func (r serviceQueryNameString) ModeIfPresent(value *QueryMode) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Gt instead. -func (r serviceQueryNameString) Not(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) After(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -156426,22 +156990,23 @@ func (r serviceQueryNameString) Not(value string) serviceDefaultParam { } } -func (r serviceQueryNameString) NotIfPresent(value *string) serviceDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r tickerQueryLastHeartbeatAtDateTime) AfterIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r serviceQueryNameString) HasPrefix(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) BeforeEquals(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -156449,23 +157014,23 @@ func (r serviceQueryNameString) HasPrefix(value string) serviceDefaultParam { } } -// deprecated: Use StartsWithIfPresent instead. -func (r serviceQueryNameString) HasPrefixIfPresent(value *string) serviceDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r tickerQueryLastHeartbeatAtDateTime) BeforeEqualsIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r serviceQueryNameString) HasSuffix(value string) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryLastHeartbeatAtDateTime) AfterEquals(value DateTime) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "name", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -156473,63 +157038,47 @@ func (r serviceQueryNameString) HasSuffix(value string) serviceDefaultParam { } } -// deprecated: Use EndsWithIfPresent instead. -func (r serviceQueryNameString) HasSuffixIfPresent(value *string) serviceDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r tickerQueryLastHeartbeatAtDateTime) AfterEqualsIfPresent(value *DateTime) tickerDefaultParam { if value == nil { - return serviceDefaultParam{} + return tickerDefaultParam{} } - return r.HasSuffix(*value) + return r.AfterEquals(*value) } -func (r serviceQueryNameString) Field() servicePrismaFields { - return serviceFieldName +func (r tickerQueryLastHeartbeatAtDateTime) Field() tickerPrismaFields { + return tickerFieldLastHeartbeatAt } // base struct -type serviceQueryDescriptionString struct{} +type tickerQueryIsActiveBoolean struct{} -// Set the optional value of Description -func (r serviceQueryDescriptionString) Set(value string) serviceSetParam { +// Set the required value of IsActive +func (r tickerQueryIsActiveBoolean) Set(value bool) tickerSetParam { - return serviceSetParam{ + return tickerSetParam{ data: builder.Field{ - Name: "description", + Name: "isActive", Value: value, }, } } -// Set the optional value of Description dynamically -func (r serviceQueryDescriptionString) SetIfPresent(value *String) serviceSetParam { - if value == nil { - return serviceSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of Description dynamically -func (r serviceQueryDescriptionString) SetOptional(value *String) serviceSetParam { +// Set the optional value of IsActive dynamically +func (r tickerQueryIsActiveBoolean) SetIfPresent(value *Boolean) tickerSetParam { if value == nil { - - var v *string - return serviceSetParam{ - data: builder.Field{ - Name: "description", - Value: v, - }, - } + return tickerSetParam{} } return r.Set(*value) } -func (r serviceQueryDescriptionString) Equals(value string) serviceWithPrismaDescriptionEqualsParam { +func (r tickerQueryIsActiveBoolean) Equals(value bool) tickerWithPrismaIsActiveEqualsParam { - return serviceWithPrismaDescriptionEqualsParam{ + return tickerWithPrismaIsActiveEqualsParam{ data: builder.Field{ - Name: "description", + Name: "isActive", Fields: []builder.Field{ { Name: "equals", @@ -156540,367 +157089,455 @@ func (r serviceQueryDescriptionString) Equals(value string) serviceWithPrismaDes } } -func (r serviceQueryDescriptionString) EqualsIfPresent(value *string) serviceWithPrismaDescriptionEqualsParam { +func (r tickerQueryIsActiveBoolean) EqualsIfPresent(value *bool) tickerWithPrismaIsActiveEqualsParam { if value == nil { - return serviceWithPrismaDescriptionEqualsParam{} + return tickerWithPrismaIsActiveEqualsParam{} } return r.Equals(*value) } -func (r serviceQueryDescriptionString) EqualsOptional(value *String) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryIsActiveBoolean) Order(direction SortOrder) tickerDefaultParam { + return tickerDefaultParam{ data: builder.Field{ - Name: "description", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "isActive", + Value: direction, }, } } -func (r serviceQueryDescriptionString) IsNull() serviceDefaultParam { - var str *string = nil - return serviceDefaultParam{ +func (r tickerQueryIsActiveBoolean) Cursor(cursor bool) tickerCursorParam { + return tickerCursorParam{ data: builder.Field{ - Name: "description", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, + Name: "isActive", + Value: cursor, }, } } -func (r serviceQueryDescriptionString) Order(direction SortOrder) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "description", - Value: direction, - }, - } +func (r tickerQueryIsActiveBoolean) Field() tickerPrismaFields { + return tickerFieldIsActive } -func (r serviceQueryDescriptionString) Cursor(cursor string) serviceCursorParam { - return serviceCursorParam{ - data: builder.Field{ - Name: "description", - Value: cursor, - }, +// base struct +type tickerQueryJobRunsJobRun struct{} + +type tickerQueryJobRunsRelations struct{} + +// Ticker -> JobRuns +// +// @relation +// @required +func (tickerQueryJobRunsRelations) Some( + params ...JobRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r serviceQueryDescriptionString) In(value []string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "description", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r serviceQueryDescriptionString) InIfPresent(value []string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +// Ticker -> JobRuns +// +// @relation +// @required +func (tickerQueryJobRunsRelations) Every( + params ...JobRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.In(value) -} -func (r serviceQueryDescriptionString) NotIn(value []string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "description", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r serviceQueryDescriptionString) NotInIfPresent(value []string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +// Ticker -> JobRuns +// +// @relation +// @required +func (tickerQueryJobRunsRelations) None( + params ...JobRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.NotIn(value) -} -func (r serviceQueryDescriptionString) Lt(value string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "description", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r serviceQueryDescriptionString) LtIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +func (tickerQueryJobRunsRelations) Fetch( + + params ...JobRunWhereParam, + +) tickerToJobRunsFindMany { + var v tickerToJobRunsFindMany + + v.query.Operation = "query" + v.query.Method = "jobRuns" + v.query.Outputs = jobRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Lt(*value) -} -func (r serviceQueryDescriptionString) Lte(value string) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "description", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } + + return v } -func (r serviceQueryDescriptionString) LteIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +func (r tickerQueryJobRunsRelations) Link( + params ...JobRunWhereParam, +) tickerSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Lte(*value) -} -func (r serviceQueryDescriptionString) Gt(value string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerSetParam{ data: builder.Field{ - Name: "description", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r serviceQueryDescriptionString) GtIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Gt(*value) -} +func (r tickerQueryJobRunsRelations) Unlink( + params ...JobRunWhereParam, +) tickerSetParam { + var v tickerSetParam -func (r serviceQueryDescriptionString) Gte(value string) serviceDefaultParam { - return serviceDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = tickerSetParam{ data: builder.Field{ - Name: "description", + Name: "jobRuns", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r serviceQueryDescriptionString) GteIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Gte(*value) +func (r tickerQueryJobRunsJobRun) Field() tickerPrismaFields { + return tickerFieldJobRuns } -func (r serviceQueryDescriptionString) Contains(value string) serviceDefaultParam { - return serviceDefaultParam{ +// base struct +type tickerQueryStepRunsStepRun struct{} + +type tickerQueryStepRunsRelations struct{} + +// Ticker -> StepRuns +// +// @relation +// @required +func (tickerQueryStepRunsRelations) Some( + params ...StepRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tickerDefaultParam{ data: builder.Field{ - Name: "description", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "contains", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r serviceQueryDescriptionString) ContainsIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +// Ticker -> StepRuns +// +// @relation +// @required +func (tickerQueryStepRunsRelations) Every( + params ...StepRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Contains(*value) -} -func (r serviceQueryDescriptionString) StartsWith(value string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "description", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "startsWith", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r serviceQueryDescriptionString) StartsWithIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +// Ticker -> StepRuns +// +// @relation +// @required +func (tickerQueryStepRunsRelations) None( + params ...StepRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.StartsWith(*value) -} -func (r serviceQueryDescriptionString) EndsWith(value string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "description", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r serviceQueryDescriptionString) EndsWithIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +func (tickerQueryStepRunsRelations) Fetch( + + params ...StepRunWhereParam, + +) tickerToStepRunsFindMany { + var v tickerToStepRunsFindMany + + v.query.Operation = "query" + v.query.Method = "stepRuns" + v.query.Outputs = stepRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.EndsWith(*value) + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v } -func (r serviceQueryDescriptionString) Mode(value QueryMode) serviceDefaultParam { - return serviceDefaultParam{ +func (r tickerQueryStepRunsRelations) Link( + params ...StepRunWhereParam, +) tickerSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tickerSetParam{ data: builder.Field{ - Name: "description", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "mode", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r serviceQueryDescriptionString) ModeIfPresent(value *QueryMode) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Mode(*value) -} +func (r tickerQueryStepRunsRelations) Unlink( + params ...StepRunWhereParam, +) tickerSetParam { + var v tickerSetParam -func (r serviceQueryDescriptionString) Not(value string) serviceDefaultParam { - return serviceDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = tickerSetParam{ data: builder.Field{ - Name: "description", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r serviceQueryDescriptionString) NotIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Not(*value) +func (r tickerQueryStepRunsStepRun) Field() tickerPrismaFields { + return tickerFieldStepRuns } -// deprecated: Use StartsWith instead. +// base struct +type tickerQueryCronsWorkflowTriggerCronRef struct{} -func (r serviceQueryDescriptionString) HasPrefix(value string) serviceDefaultParam { - return serviceDefaultParam{ +type tickerQueryCronsRelations struct{} + +// Ticker -> Crons +// +// @relation +// @required +func (tickerQueryCronsRelations) Some( + params ...WorkflowTriggerCronRefWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tickerDefaultParam{ data: builder.Field{ - Name: "description", + Name: "crons", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r serviceQueryDescriptionString) HasPrefixIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.HasPrefix(*value) -} +// Ticker -> Crons +// +// @relation +// @required +func (tickerQueryCronsRelations) Every( + params ...WorkflowTriggerCronRefWhereParam, +) tickerDefaultParam { + var fields []builder.Field -// deprecated: Use EndsWith instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r serviceQueryDescriptionString) HasSuffix(value string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "description", + Name: "crons", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r serviceQueryDescriptionString) HasSuffixIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.HasSuffix(*value) -} - -func (r serviceQueryDescriptionString) Field() servicePrismaFields { - return serviceFieldDescription -} - -// base struct -type serviceQueryTenantTenant struct{} - -type serviceQueryTenantRelations struct{} - -// Service -> Tenant +// Ticker -> Crons // // @relation // @required -func (serviceQueryTenantRelations) Where( - params ...TenantWhereParam, -) serviceDefaultParam { +func (tickerQueryCronsRelations) None( + params ...WorkflowTriggerCronRefWhereParam, +) tickerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "crons", Fields: []builder.Field{ { - Name: "is", + Name: "none", Fields: fields, }, }, @@ -156908,51 +157545,83 @@ func (serviceQueryTenantRelations) Where( } } -func (serviceQueryTenantRelations) Fetch() serviceToTenantFindUnique { - var v serviceToTenantFindUnique +func (tickerQueryCronsRelations) Fetch( + + params ...WorkflowTriggerCronRefWhereParam, + +) tickerToCronsFindMany { + var v tickerToCronsFindMany v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput + v.query.Method = "crons" + v.query.Outputs = workflowTriggerCronRefOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } return v } -func (r serviceQueryTenantRelations) Link( - params TenantWhereParam, -) serviceWithPrismaTenantSetParam { +func (r tickerQueryCronsRelations) Link( + params ...WorkflowTriggerCronRefWhereParam, +) tickerSetParam { var fields []builder.Field - f := params.field() - if f.Fields == nil && f.Value == nil { - return serviceWithPrismaTenantSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - fields = append(fields, f) - - return serviceWithPrismaTenantSetParam{ + return tickerSetParam{ data: builder.Field{ - Name: "tenant", + Name: "crons", Fields: []builder.Field{ { Name: "connect", Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r serviceQueryTenantRelations) Unlink() serviceWithPrismaTenantSetParam { - var v serviceWithPrismaTenantSetParam +func (r tickerQueryCronsRelations) Unlink( + params ...WorkflowTriggerCronRefWhereParam, +) tickerSetParam { + var v tickerSetParam - v = serviceWithPrismaTenantSetParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = tickerSetParam{ data: builder.Field{ - Name: "tenant", + Name: "crons", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, @@ -156961,378 +157630,375 @@ func (r serviceQueryTenantRelations) Unlink() serviceWithPrismaTenantSetParam { return v } -func (r serviceQueryTenantTenant) Field() servicePrismaFields { - return serviceFieldTenant +func (r tickerQueryCronsWorkflowTriggerCronRef) Field() tickerPrismaFields { + return tickerFieldCrons } // base struct -type serviceQueryTenantIDString struct{} - -// Set the required value of TenantID -func (r serviceQueryTenantIDString) Set(value string) serviceSetParam { +type tickerQueryScheduledWorkflowTriggerScheduledRef struct{} - return serviceSetParam{ - data: builder.Field{ - Name: "tenantId", - Value: value, - }, - } +type tickerQueryScheduledRelations struct{} -} +// Ticker -> Scheduled +// +// @relation +// @required +func (tickerQueryScheduledRelations) Some( + params ...WorkflowTriggerScheduledRefWhereParam, +) tickerDefaultParam { + var fields []builder.Field -// Set the optional value of TenantID dynamically -func (r serviceQueryTenantIDString) SetIfPresent(value *String) serviceSetParam { - if value == nil { - return serviceSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) -} - -func (r serviceQueryTenantIDString) Equals(value string) serviceWithPrismaTenantIDEqualsParam { - - return serviceWithPrismaTenantIDEqualsParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "scheduled", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r serviceQueryTenantIDString) EqualsIfPresent(value *string) serviceWithPrismaTenantIDEqualsParam { - if value == nil { - return serviceWithPrismaTenantIDEqualsParam{} - } - return r.Equals(*value) -} - -func (r serviceQueryTenantIDString) Order(direction SortOrder) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "tenantId", - Value: direction, - }, - } -} +// Ticker -> Scheduled +// +// @relation +// @required +func (tickerQueryScheduledRelations) Every( + params ...WorkflowTriggerScheduledRefWhereParam, +) tickerDefaultParam { + var fields []builder.Field -func (r serviceQueryTenantIDString) Cursor(cursor string) serviceCursorParam { - return serviceCursorParam{ - data: builder.Field{ - Name: "tenantId", - Value: cursor, - }, + for _, q := range params { + fields = append(fields, q.field()) } -} -func (r serviceQueryTenantIDString) In(value []string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "scheduled", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r serviceQueryTenantIDString) InIfPresent(value []string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +// Ticker -> Scheduled +// +// @relation +// @required +func (tickerQueryScheduledRelations) None( + params ...WorkflowTriggerScheduledRefWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.In(value) -} -func (r serviceQueryTenantIDString) NotIn(value []string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "scheduled", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r serviceQueryTenantIDString) NotInIfPresent(value []string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +func (tickerQueryScheduledRelations) Fetch( + + params ...WorkflowTriggerScheduledRefWhereParam, + +) tickerToScheduledFindMany { + var v tickerToScheduledFindMany + + v.query.Operation = "query" + v.query.Method = "scheduled" + v.query.Outputs = workflowTriggerScheduledRefOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.NotIn(value) -} -func (r serviceQueryTenantIDString) Lt(value string) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "tenantId", - Fields: []builder.Field{ - { - Name: "lt", - Value: value, - }, - }, - }, + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } + + return v } -func (r serviceQueryTenantIDString) LtIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +func (r tickerQueryScheduledRelations) Link( + params ...WorkflowTriggerScheduledRefWhereParam, +) tickerSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Lt(*value) -} -func (r serviceQueryTenantIDString) Lte(value string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "scheduled", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r serviceQueryTenantIDString) LteIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Lte(*value) -} +func (r tickerQueryScheduledRelations) Unlink( + params ...WorkflowTriggerScheduledRefWhereParam, +) tickerSetParam { + var v tickerSetParam -func (r serviceQueryTenantIDString) Gt(value string) serviceDefaultParam { - return serviceDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = tickerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "scheduled", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } -} -func (r serviceQueryTenantIDString) GtIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Gt(*value) + return v } -func (r serviceQueryTenantIDString) Gte(value string) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "tenantId", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, - } +func (r tickerQueryScheduledWorkflowTriggerScheduledRef) Field() tickerPrismaFields { + return tickerFieldScheduled } -func (r serviceQueryTenantIDString) GteIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Gte(*value) -} +// base struct +type tickerQueryGroupKeyRunsGetGroupKeyRun struct{} -func (r serviceQueryTenantIDString) Contains(value string) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "tenantId", - Fields: []builder.Field{ - { - Name: "contains", - Value: value, - }, - }, - }, - } -} +type tickerQueryGroupKeyRunsRelations struct{} -func (r serviceQueryTenantIDString) ContainsIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +// Ticker -> GroupKeyRuns +// +// @relation +// @required +func (tickerQueryGroupKeyRunsRelations) Some( + params ...GetGroupKeyRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Contains(*value) -} -func (r serviceQueryTenantIDString) StartsWith(value string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "startsWith", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r serviceQueryTenantIDString) StartsWithIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +// Ticker -> GroupKeyRuns +// +// @relation +// @required +func (tickerQueryGroupKeyRunsRelations) Every( + params ...GetGroupKeyRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.StartsWith(*value) -} -func (r serviceQueryTenantIDString) EndsWith(value string) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r serviceQueryTenantIDString) EndsWithIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} +// Ticker -> GroupKeyRuns +// +// @relation +// @required +func (tickerQueryGroupKeyRunsRelations) None( + params ...GetGroupKeyRunWhereParam, +) tickerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.EndsWith(*value) -} -func (r serviceQueryTenantIDString) Mode(value QueryMode) serviceDefaultParam { - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "mode", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r serviceQueryTenantIDString) ModeIfPresent(value *QueryMode) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.Mode(*value) -} +func (tickerQueryGroupKeyRunsRelations) Fetch( -func (r serviceQueryTenantIDString) Not(value string) serviceDefaultParam { - return serviceDefaultParam{ - data: builder.Field{ - Name: "tenantId", - Fields: []builder.Field{ - { - Name: "not", - Value: value, - }, - }, - }, + params ...GetGroupKeyRunWhereParam, + +) tickerToGroupKeyRunsFindMany { + var v tickerToGroupKeyRunsFindMany + + v.query.Operation = "query" + v.query.Method = "groupKeyRuns" + v.query.Outputs = getGroupKeyRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } -} -func (r serviceQueryTenantIDString) NotIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - return r.Not(*value) + + return v } -// deprecated: Use StartsWith instead. +func (r tickerQueryGroupKeyRunsRelations) Link( + params ...GetGroupKeyRunWhereParam, +) tickerSetParam { + var fields []builder.Field -func (r serviceQueryTenantIDString) HasPrefix(value string) serviceDefaultParam { - return serviceDefaultParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return tickerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r serviceQueryTenantIDString) HasPrefixIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.HasPrefix(*value) -} - -// deprecated: Use EndsWith instead. +func (r tickerQueryGroupKeyRunsRelations) Unlink( + params ...GetGroupKeyRunWhereParam, +) tickerSetParam { + var v tickerSetParam -func (r serviceQueryTenantIDString) HasSuffix(value string) serviceDefaultParam { - return serviceDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = tickerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } -} -// deprecated: Use EndsWithIfPresent instead. -func (r serviceQueryTenantIDString) HasSuffixIfPresent(value *string) serviceDefaultParam { - if value == nil { - return serviceDefaultParam{} - } - return r.HasSuffix(*value) + return v } -func (r serviceQueryTenantIDString) Field() servicePrismaFields { - return serviceFieldTenantID +func (r tickerQueryGroupKeyRunsGetGroupKeyRun) Field() tickerPrismaFields { + return tickerFieldGroupKeyRuns } // base struct -type serviceQueryWorkersWorker struct{} +type tickerQueryTenantAlertsTenantAlertingSettings struct{} -type serviceQueryWorkersRelations struct{} +type tickerQueryTenantAlertsRelations struct{} -// Service -> Workers +// Ticker -> TenantAlerts // // @relation // @required -func (serviceQueryWorkersRelations) Some( - params ...WorkerWhereParam, -) serviceDefaultParam { +func (tickerQueryTenantAlertsRelations) Some( + params ...TenantAlertingSettingsWhereParam, +) tickerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "workers", + Name: "tenantAlerts", Fields: []builder.Field{ { Name: "some", @@ -157343,22 +158009,22 @@ func (serviceQueryWorkersRelations) Some( } } -// Service -> Workers +// Ticker -> TenantAlerts // // @relation // @required -func (serviceQueryWorkersRelations) Every( - params ...WorkerWhereParam, -) serviceDefaultParam { +func (tickerQueryTenantAlertsRelations) Every( + params ...TenantAlertingSettingsWhereParam, +) tickerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "workers", + Name: "tenantAlerts", Fields: []builder.Field{ { Name: "every", @@ -157369,22 +158035,22 @@ func (serviceQueryWorkersRelations) Every( } } -// Service -> Workers +// Ticker -> TenantAlerts // // @relation // @required -func (serviceQueryWorkersRelations) None( - params ...WorkerWhereParam, -) serviceDefaultParam { +func (tickerQueryTenantAlertsRelations) None( + params ...TenantAlertingSettingsWhereParam, +) tickerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return serviceDefaultParam{ + return tickerDefaultParam{ data: builder.Field{ - Name: "workers", + Name: "tenantAlerts", Fields: []builder.Field{ { Name: "none", @@ -157395,16 +158061,16 @@ func (serviceQueryWorkersRelations) None( } } -func (serviceQueryWorkersRelations) Fetch( +func (tickerQueryTenantAlertsRelations) Fetch( - params ...WorkerWhereParam, + params ...TenantAlertingSettingsWhereParam, -) serviceToWorkersFindMany { - var v serviceToWorkersFindMany +) tickerToTenantAlertsFindMany { + var v tickerToTenantAlertsFindMany v.query.Operation = "query" - v.query.Method = "workers" - v.query.Outputs = workerOutput + v.query.Method = "tenantAlerts" + v.query.Outputs = tenantAlertingSettingsOutput var where []builder.Field for _, q := range params { @@ -157429,18 +158095,18 @@ func (serviceQueryWorkersRelations) Fetch( return v } -func (r serviceQueryWorkersRelations) Link( - params ...WorkerWhereParam, -) serviceSetParam { +func (r tickerQueryTenantAlertsRelations) Link( + params ...TenantAlertingSettingsWhereParam, +) tickerSetParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return serviceSetParam{ + return tickerSetParam{ data: builder.Field{ - Name: "workers", + Name: "tenantAlerts", Fields: []builder.Field{ { Name: "connect", @@ -157454,18 +158120,18 @@ func (r serviceQueryWorkersRelations) Link( } } -func (r serviceQueryWorkersRelations) Unlink( - params ...WorkerWhereParam, -) serviceSetParam { - var v serviceSetParam +func (r tickerQueryTenantAlertsRelations) Unlink( + params ...TenantAlertingSettingsWhereParam, +) tickerSetParam { + var v tickerSetParam var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - v = serviceSetParam{ + v = tickerSetParam{ data: builder.Field{ - Name: "workers", + Name: "tenantAlerts", Fields: []builder.Field{ { Name: "disconnect", @@ -157480,62 +158146,62 @@ func (r serviceQueryWorkersRelations) Unlink( return v } -func (r serviceQueryWorkersWorker) Field() servicePrismaFields { - return serviceFieldWorkers +func (r tickerQueryTenantAlertsTenantAlertingSettings) Field() tickerPrismaFields { + return tickerFieldTenantAlerts } -// TenantVcsProvider acts as a namespaces to access query methods for the TenantVcsProvider model -var TenantVcsProvider = tenantVcsProviderQuery{} +// WorkerLabel acts as a namespaces to access query methods for the WorkerLabel model +var WorkerLabel = workerLabelQuery{} -// tenantVcsProviderQuery exposes query functions for the tenantVcsProvider model -type tenantVcsProviderQuery struct { +// workerLabelQuery exposes query functions for the workerLabel model +type workerLabelQuery struct { // ID // // @required - ID tenantVcsProviderQueryIDString + ID workerLabelQueryIDBigInt // CreatedAt // // @required - CreatedAt tenantVcsProviderQueryCreatedAtDateTime + CreatedAt workerLabelQueryCreatedAtDateTime // UpdatedAt // // @required - UpdatedAt tenantVcsProviderQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt tenantVcsProviderQueryDeletedAtDateTime + UpdatedAt workerLabelQueryUpdatedAtDateTime - Tenant tenantVcsProviderQueryTenantRelations + Worker workerLabelQueryWorkerRelations - // TenantID + // WorkerID // // @required - TenantID tenantVcsProviderQueryTenantIDString + WorkerID workerLabelQueryWorkerIDString - // VcsProvider + // Key // // @required - VcsProvider tenantVcsProviderQueryVcsProviderVcsProvider + Key workerLabelQueryKeyString - // Config + // StrValue // // @optional - Config tenantVcsProviderQueryConfigJson + StrValue workerLabelQueryStrValueString + + // IntValue + // + // @optional + IntValue workerLabelQueryIntValueInt } -func (tenantVcsProviderQuery) Not(params ...TenantVcsProviderWhereParam) tenantVcsProviderDefaultParam { +func (workerLabelQuery) Not(params ...WorkerLabelWhereParam) workerLabelDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tenantVcsProviderDefaultParam{ + return workerLabelDefaultParam{ data: builder.Field{ Name: "NOT", List: true, @@ -157545,14 +158211,14 @@ func (tenantVcsProviderQuery) Not(params ...TenantVcsProviderWhereParam) tenantV } } -func (tenantVcsProviderQuery) Or(params ...TenantVcsProviderWhereParam) tenantVcsProviderDefaultParam { +func (workerLabelQuery) Or(params ...WorkerLabelWhereParam) workerLabelDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tenantVcsProviderDefaultParam{ + return workerLabelDefaultParam{ data: builder.Field{ Name: "OR", List: true, @@ -157562,14 +158228,14 @@ func (tenantVcsProviderQuery) Or(params ...TenantVcsProviderWhereParam) tenantVc } } -func (tenantVcsProviderQuery) And(params ...TenantVcsProviderWhereParam) tenantVcsProviderDefaultParam { +func (workerLabelQuery) And(params ...WorkerLabelWhereParam) workerLabelDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tenantVcsProviderDefaultParam{ + return workerLabelDefaultParam{ data: builder.Field{ Name: "AND", List: true, @@ -157579,31 +158245,31 @@ func (tenantVcsProviderQuery) And(params ...TenantVcsProviderWhereParam) tenantV } } -func (tenantVcsProviderQuery) TenantIDVcsProvider( - _tenantID TenantVcsProviderWithPrismaTenantIDWhereParam, +func (workerLabelQuery) WorkerIDKey( + _workerID WorkerLabelWithPrismaWorkerIDWhereParam, - _vcsProvider TenantVcsProviderWithPrismaVcsProviderWhereParam, -) TenantVcsProviderEqualsUniqueWhereParam { + _key WorkerLabelWithPrismaKeyWhereParam, +) WorkerLabelEqualsUniqueWhereParam { var fields []builder.Field - fields = append(fields, _tenantID.field()) - fields = append(fields, _vcsProvider.field()) + fields = append(fields, _workerID.field()) + fields = append(fields, _key.field()) - return tenantVcsProviderEqualsUniqueParam{ + return workerLabelEqualsUniqueParam{ data: builder.Field{ - Name: "tenantId_vcsProvider", + Name: "workerId_key", Fields: builder.TransformEquals(fields), }, } } // base struct -type tenantVcsProviderQueryIDString struct{} +type workerLabelQueryIDBigInt struct{} // Set the required value of ID -func (r tenantVcsProviderQueryIDString) Set(value string) tenantVcsProviderSetParam { +func (r workerLabelQueryIDBigInt) Set(value BigInt) workerLabelSetParam { - return tenantVcsProviderSetParam{ + return workerLabelSetParam{ data: builder.Field{ Name: "id", Value: value, @@ -157613,22 +158279,22 @@ func (r tenantVcsProviderQueryIDString) Set(value string) tenantVcsProviderSetPa } // Set the optional value of ID dynamically -func (r tenantVcsProviderQueryIDString) SetIfPresent(value *String) tenantVcsProviderSetParam { +func (r workerLabelQueryIDBigInt) SetIfPresent(value *BigInt) workerLabelSetParam { if value == nil { - return tenantVcsProviderSetParam{} + return workerLabelSetParam{} } return r.Set(*value) } -func (r tenantVcsProviderQueryIDString) Equals(value string) tenantVcsProviderWithPrismaIDEqualsUniqueParam { - - return tenantVcsProviderWithPrismaIDEqualsUniqueParam{ +// Increment the required value of ID +func (r workerLabelQueryIDBigInt) Increment(value BigInt) workerLabelSetParam { + return workerLabelSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "increment", Value: value, }, }, @@ -157636,38 +158302,21 @@ func (r tenantVcsProviderQueryIDString) Equals(value string) tenantVcsProviderWi } } -func (r tenantVcsProviderQueryIDString) EqualsIfPresent(value *string) tenantVcsProviderWithPrismaIDEqualsUniqueParam { +func (r workerLabelQueryIDBigInt) IncrementIfPresent(value *BigInt) workerLabelSetParam { if value == nil { - return tenantVcsProviderWithPrismaIDEqualsUniqueParam{} - } - return r.Equals(*value) -} - -func (r tenantVcsProviderQueryIDString) Order(direction SortOrder) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ - data: builder.Field{ - Name: "id", - Value: direction, - }, - } -} - -func (r tenantVcsProviderQueryIDString) Cursor(cursor string) tenantVcsProviderCursorParam { - return tenantVcsProviderCursorParam{ - data: builder.Field{ - Name: "id", - Value: cursor, - }, + return workerLabelSetParam{} } + return r.Increment(*value) } -func (r tenantVcsProviderQueryIDString) In(value []string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +// Decrement the required value of ID +func (r workerLabelQueryIDBigInt) Decrement(value BigInt) workerLabelSetParam { + return workerLabelSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "in", + builder.Field{ + Name: "decrement", Value: value, }, }, @@ -157675,20 +158324,21 @@ func (r tenantVcsProviderQueryIDString) In(value []string) tenantVcsProviderPara } } -func (r tenantVcsProviderQueryIDString) InIfPresent(value []string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) DecrementIfPresent(value *BigInt) workerLabelSetParam { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelSetParam{} } - return r.In(value) + return r.Decrement(*value) } -func (r tenantVcsProviderQueryIDString) NotIn(value []string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +// Multiply the required value of ID +func (r workerLabelQueryIDBigInt) Multiply(value BigInt) workerLabelSetParam { + return workerLabelSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "notIn", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -157696,20 +158346,21 @@ func (r tenantVcsProviderQueryIDString) NotIn(value []string) tenantVcsProviderP } } -func (r tenantVcsProviderQueryIDString) NotInIfPresent(value []string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) MultiplyIfPresent(value *BigInt) workerLabelSetParam { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelSetParam{} } - return r.NotIn(value) + return r.Multiply(*value) } -func (r tenantVcsProviderQueryIDString) Lt(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +// Divide the required value of ID +func (r workerLabelQueryIDBigInt) Divide(value BigInt) workerLabelSetParam { + return workerLabelSetParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ - { - Name: "lt", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -157717,20 +158368,21 @@ func (r tenantVcsProviderQueryIDString) Lt(value string) tenantVcsProviderParamU } } -func (r tenantVcsProviderQueryIDString) LtIfPresent(value *string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) DivideIfPresent(value *BigInt) workerLabelSetParam { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelSetParam{} } - return r.Lt(*value) + return r.Divide(*value) } -func (r tenantVcsProviderQueryIDString) Lte(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) Equals(value BigInt) workerLabelWithPrismaIDEqualsUniqueParam { + + return workerLabelWithPrismaIDEqualsUniqueParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "lte", + Name: "equals", Value: value, }, }, @@ -157738,62 +158390,38 @@ func (r tenantVcsProviderQueryIDString) Lte(value string) tenantVcsProviderParam } } -func (r tenantVcsProviderQueryIDString) LteIfPresent(value *string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) EqualsIfPresent(value *BigInt) workerLabelWithPrismaIDEqualsUniqueParam { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelWithPrismaIDEqualsUniqueParam{} } - return r.Lte(*value) + return r.Equals(*value) } -func (r tenantVcsProviderQueryIDString) Gt(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) Order(direction SortOrder) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "gt", - Value: value, - }, - }, + Name: "id", + Value: direction, }, } } -func (r tenantVcsProviderQueryIDString) GtIfPresent(value *string) tenantVcsProviderParamUnique { - if value == nil { - return tenantVcsProviderParamUnique{} - } - return r.Gt(*value) -} - -func (r tenantVcsProviderQueryIDString) Gte(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) Cursor(cursor BigInt) workerLabelCursorParam { + return workerLabelCursorParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, + Name: "id", + Value: cursor, }, } } -func (r tenantVcsProviderQueryIDString) GteIfPresent(value *string) tenantVcsProviderParamUnique { - if value == nil { - return tenantVcsProviderParamUnique{} - } - return r.Gte(*value) -} - -func (r tenantVcsProviderQueryIDString) Contains(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) In(value []BigInt) workerLabelParamUnique { + return workerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "contains", + Name: "in", Value: value, }, }, @@ -157801,20 +158429,20 @@ func (r tenantVcsProviderQueryIDString) Contains(value string) tenantVcsProvider } } -func (r tenantVcsProviderQueryIDString) ContainsIfPresent(value *string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) InIfPresent(value []BigInt) workerLabelParamUnique { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelParamUnique{} } - return r.Contains(*value) + return r.In(value) } -func (r tenantVcsProviderQueryIDString) StartsWith(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) NotIn(value []BigInt) workerLabelParamUnique { + return workerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "startsWith", + Name: "notIn", Value: value, }, }, @@ -157822,20 +158450,20 @@ func (r tenantVcsProviderQueryIDString) StartsWith(value string) tenantVcsProvid } } -func (r tenantVcsProviderQueryIDString) StartsWithIfPresent(value *string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) NotInIfPresent(value []BigInt) workerLabelParamUnique { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelParamUnique{} } - return r.StartsWith(*value) + return r.NotIn(value) } -func (r tenantVcsProviderQueryIDString) EndsWith(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) Lt(value BigInt) workerLabelParamUnique { + return workerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -157843,20 +158471,20 @@ func (r tenantVcsProviderQueryIDString) EndsWith(value string) tenantVcsProvider } } -func (r tenantVcsProviderQueryIDString) EndsWithIfPresent(value *string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) LtIfPresent(value *BigInt) workerLabelParamUnique { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelParamUnique{} } - return r.EndsWith(*value) + return r.Lt(*value) } -func (r tenantVcsProviderQueryIDString) Mode(value QueryMode) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) Lte(value BigInt) workerLabelParamUnique { + return workerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -157864,20 +158492,20 @@ func (r tenantVcsProviderQueryIDString) Mode(value QueryMode) tenantVcsProviderP } } -func (r tenantVcsProviderQueryIDString) ModeIfPresent(value *QueryMode) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) LteIfPresent(value *BigInt) workerLabelParamUnique { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelParamUnique{} } - return r.Mode(*value) + return r.Lte(*value) } -func (r tenantVcsProviderQueryIDString) Not(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) Gt(value BigInt) workerLabelParamUnique { + return workerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -157885,22 +158513,20 @@ func (r tenantVcsProviderQueryIDString) Not(value string) tenantVcsProviderParam } } -func (r tenantVcsProviderQueryIDString) NotIfPresent(value *string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) GtIfPresent(value *BigInt) workerLabelParamUnique { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelParamUnique{} } - return r.Not(*value) + return r.Gt(*value) } -// deprecated: Use StartsWith instead. - -func (r tenantVcsProviderQueryIDString) HasPrefix(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) Gte(value BigInt) workerLabelParamUnique { + return workerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "starts_with", + Name: "gte", Value: value, }, }, @@ -157908,23 +158534,20 @@ func (r tenantVcsProviderQueryIDString) HasPrefix(value string) tenantVcsProvide } } -// deprecated: Use StartsWithIfPresent instead. -func (r tenantVcsProviderQueryIDString) HasPrefixIfPresent(value *string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) GteIfPresent(value *BigInt) workerLabelParamUnique { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelParamUnique{} } - return r.HasPrefix(*value) + return r.Gte(*value) } -// deprecated: Use EndsWith instead. - -func (r tenantVcsProviderQueryIDString) HasSuffix(value string) tenantVcsProviderParamUnique { - return tenantVcsProviderParamUnique{ +func (r workerLabelQueryIDBigInt) Not(value BigInt) workerLabelParamUnique { + return workerLabelParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ { - Name: "ends_with", + Name: "not", Value: value, }, }, @@ -157932,25 +158555,24 @@ func (r tenantVcsProviderQueryIDString) HasSuffix(value string) tenantVcsProvide } } -// deprecated: Use EndsWithIfPresent instead. -func (r tenantVcsProviderQueryIDString) HasSuffixIfPresent(value *string) tenantVcsProviderParamUnique { +func (r workerLabelQueryIDBigInt) NotIfPresent(value *BigInt) workerLabelParamUnique { if value == nil { - return tenantVcsProviderParamUnique{} + return workerLabelParamUnique{} } - return r.HasSuffix(*value) + return r.Not(*value) } -func (r tenantVcsProviderQueryIDString) Field() tenantVcsProviderPrismaFields { - return tenantVcsProviderFieldID +func (r workerLabelQueryIDBigInt) Field() workerLabelPrismaFields { + return workerLabelFieldID } // base struct -type tenantVcsProviderQueryCreatedAtDateTime struct{} +type workerLabelQueryCreatedAtDateTime struct{} // Set the required value of CreatedAt -func (r tenantVcsProviderQueryCreatedAtDateTime) Set(value DateTime) tenantVcsProviderSetParam { +func (r workerLabelQueryCreatedAtDateTime) Set(value DateTime) workerLabelSetParam { - return tenantVcsProviderSetParam{ + return workerLabelSetParam{ data: builder.Field{ Name: "createdAt", Value: value, @@ -157960,17 +158582,17 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Set(value DateTime) tenantVcsPr } // Set the optional value of CreatedAt dynamically -func (r tenantVcsProviderQueryCreatedAtDateTime) SetIfPresent(value *DateTime) tenantVcsProviderSetParam { +func (r workerLabelQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workerLabelSetParam { if value == nil { - return tenantVcsProviderSetParam{} + return workerLabelSetParam{} } return r.Set(*value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) Equals(value DateTime) tenantVcsProviderWithPrismaCreatedAtEqualsParam { +func (r workerLabelQueryCreatedAtDateTime) Equals(value DateTime) workerLabelWithPrismaCreatedAtEqualsParam { - return tenantVcsProviderWithPrismaCreatedAtEqualsParam{ + return workerLabelWithPrismaCreatedAtEqualsParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -157983,15 +158605,15 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Equals(value DateTime) tenantVc } } -func (r tenantVcsProviderQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) tenantVcsProviderWithPrismaCreatedAtEqualsParam { +func (r workerLabelQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workerLabelWithPrismaCreatedAtEqualsParam { if value == nil { - return tenantVcsProviderWithPrismaCreatedAtEqualsParam{} + return workerLabelWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) Order(direction SortOrder) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) Order(direction SortOrder) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Value: direction, @@ -157999,8 +158621,8 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Order(direction SortOrder) tena } } -func (r tenantVcsProviderQueryCreatedAtDateTime) Cursor(cursor DateTime) tenantVcsProviderCursorParam { - return tenantVcsProviderCursorParam{ +func (r workerLabelQueryCreatedAtDateTime) Cursor(cursor DateTime) workerLabelCursorParam { + return workerLabelCursorParam{ data: builder.Field{ Name: "createdAt", Value: cursor, @@ -158008,8 +158630,8 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Cursor(cursor DateTime) tenantV } } -func (r tenantVcsProviderQueryCreatedAtDateTime) In(value []DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) In(value []DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158022,15 +158644,15 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) In(value []DateTime) tenantVcsP } } -func (r tenantVcsProviderQueryCreatedAtDateTime) InIfPresent(value []DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) InIfPresent(value []DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.In(value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) NotIn(value []DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) NotIn(value []DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158043,15 +158665,15 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) NotIn(value []DateTime) tenantV } } -func (r tenantVcsProviderQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.NotIn(value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) Lt(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) Lt(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158064,15 +158686,15 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Lt(value DateTime) tenantVcsPro } } -func (r tenantVcsProviderQueryCreatedAtDateTime) LtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Lt(*value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) Lte(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) Lte(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158085,15 +158707,15 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Lte(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryCreatedAtDateTime) LteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Lte(*value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) Gt(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) Gt(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158106,15 +158728,15 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Gt(value DateTime) tenantVcsPro } } -func (r tenantVcsProviderQueryCreatedAtDateTime) GtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Gt(*value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) Gte(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) Gte(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158127,15 +158749,15 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Gte(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryCreatedAtDateTime) GteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Gte(*value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) Not(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) Not(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158148,17 +158770,17 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Not(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryCreatedAtDateTime) NotIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r tenantVcsProviderQueryCreatedAtDateTime) Before(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) Before(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158172,17 +158794,17 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) Before(value DateTime) tenantVc } // deprecated: Use LtIfPresent instead. -func (r tenantVcsProviderQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r tenantVcsProviderQueryCreatedAtDateTime) After(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) After(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158196,17 +158818,17 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) After(value DateTime) tenantVcs } // deprecated: Use GtIfPresent instead. -func (r tenantVcsProviderQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r tenantVcsProviderQueryCreatedAtDateTime) BeforeEquals(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) BeforeEquals(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158220,17 +158842,17 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) BeforeEquals(value DateTime) te } // deprecated: Use LteIfPresent instead. -func (r tenantVcsProviderQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r tenantVcsProviderQueryCreatedAtDateTime) AfterEquals(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryCreatedAtDateTime) AfterEquals(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -158244,24 +158866,24 @@ func (r tenantVcsProviderQueryCreatedAtDateTime) AfterEquals(value DateTime) ten } // deprecated: Use GteIfPresent instead. -func (r tenantVcsProviderQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.AfterEquals(*value) } -func (r tenantVcsProviderQueryCreatedAtDateTime) Field() tenantVcsProviderPrismaFields { - return tenantVcsProviderFieldCreatedAt +func (r workerLabelQueryCreatedAtDateTime) Field() workerLabelPrismaFields { + return workerLabelFieldCreatedAt } // base struct -type tenantVcsProviderQueryUpdatedAtDateTime struct{} +type workerLabelQueryUpdatedAtDateTime struct{} // Set the required value of UpdatedAt -func (r tenantVcsProviderQueryUpdatedAtDateTime) Set(value DateTime) tenantVcsProviderSetParam { +func (r workerLabelQueryUpdatedAtDateTime) Set(value DateTime) workerLabelSetParam { - return tenantVcsProviderSetParam{ + return workerLabelSetParam{ data: builder.Field{ Name: "updatedAt", Value: value, @@ -158271,17 +158893,17 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Set(value DateTime) tenantVcsPr } // Set the optional value of UpdatedAt dynamically -func (r tenantVcsProviderQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) tenantVcsProviderSetParam { +func (r workerLabelQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workerLabelSetParam { if value == nil { - return tenantVcsProviderSetParam{} + return workerLabelSetParam{} } return r.Set(*value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Equals(value DateTime) tenantVcsProviderWithPrismaUpdatedAtEqualsParam { +func (r workerLabelQueryUpdatedAtDateTime) Equals(value DateTime) workerLabelWithPrismaUpdatedAtEqualsParam { - return tenantVcsProviderWithPrismaUpdatedAtEqualsParam{ + return workerLabelWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158294,15 +158916,15 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Equals(value DateTime) tenantVc } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) tenantVcsProviderWithPrismaUpdatedAtEqualsParam { +func (r workerLabelQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workerLabelWithPrismaUpdatedAtEqualsParam { if value == nil { - return tenantVcsProviderWithPrismaUpdatedAtEqualsParam{} + return workerLabelWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Order(direction SortOrder) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) Order(direction SortOrder) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Value: direction, @@ -158310,8 +158932,8 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Order(direction SortOrder) tena } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Cursor(cursor DateTime) tenantVcsProviderCursorParam { - return tenantVcsProviderCursorParam{ +func (r workerLabelQueryUpdatedAtDateTime) Cursor(cursor DateTime) workerLabelCursorParam { + return workerLabelCursorParam{ data: builder.Field{ Name: "updatedAt", Value: cursor, @@ -158319,8 +158941,8 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Cursor(cursor DateTime) tenantV } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) In(value []DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) In(value []DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158333,15 +158955,15 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) In(value []DateTime) tenantVcsP } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) InIfPresent(value []DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.In(value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) NotIn(value []DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) NotIn(value []DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158354,15 +158976,15 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) NotIn(value []DateTime) tenantV } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.NotIn(value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Lt(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) Lt(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158375,15 +158997,15 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Lt(value DateTime) tenantVcsPro } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Lt(*value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Lte(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) Lte(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158396,15 +159018,15 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Lte(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Lte(*value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Gt(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) Gt(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158417,15 +159039,15 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Gt(value DateTime) tenantVcsPro } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Gt(*value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Gte(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) Gte(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158438,15 +159060,15 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Gte(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Gte(*value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Not(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) Not(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158459,17 +159081,17 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Not(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r tenantVcsProviderQueryUpdatedAtDateTime) Before(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) Before(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158483,17 +159105,17 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) Before(value DateTime) tenantVc } // deprecated: Use LtIfPresent instead. -func (r tenantVcsProviderQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r tenantVcsProviderQueryUpdatedAtDateTime) After(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) After(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158507,17 +159129,17 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) After(value DateTime) tenantVcs } // deprecated: Use GtIfPresent instead. -func (r tenantVcsProviderQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r tenantVcsProviderQueryUpdatedAtDateTime) BeforeEquals(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158531,17 +159153,17 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) BeforeEquals(value DateTime) te } // deprecated: Use LteIfPresent instead. -func (r tenantVcsProviderQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r tenantVcsProviderQueryUpdatedAtDateTime) AfterEquals(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryUpdatedAtDateTime) AfterEquals(value DateTime) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -158555,130 +159177,173 @@ func (r tenantVcsProviderQueryUpdatedAtDateTime) AfterEquals(value DateTime) ten } // deprecated: Use GteIfPresent instead. -func (r tenantVcsProviderQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.AfterEquals(*value) } -func (r tenantVcsProviderQueryUpdatedAtDateTime) Field() tenantVcsProviderPrismaFields { - return tenantVcsProviderFieldUpdatedAt +func (r workerLabelQueryUpdatedAtDateTime) Field() workerLabelPrismaFields { + return workerLabelFieldUpdatedAt } // base struct -type tenantVcsProviderQueryDeletedAtDateTime struct{} +type workerLabelQueryWorkerWorker struct{} -// Set the optional value of DeletedAt -func (r tenantVcsProviderQueryDeletedAtDateTime) Set(value DateTime) tenantVcsProviderSetParam { +type workerLabelQueryWorkerRelations struct{} - return tenantVcsProviderSetParam{ +// WorkerLabel -> Worker +// +// @relation +// @required +func (workerLabelQueryWorkerRelations) Where( + params ...WorkerWhereParam, +) workerLabelDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", - Value: value, + Name: "worker", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, }, } - } -// Set the optional value of DeletedAt dynamically -func (r tenantVcsProviderQueryDeletedAtDateTime) SetIfPresent(value *DateTime) tenantVcsProviderSetParam { - if value == nil { - return tenantVcsProviderSetParam{} - } +func (workerLabelQueryWorkerRelations) Fetch() workerLabelToWorkerFindUnique { + var v workerLabelToWorkerFindUnique - return r.Set(*value) + v.query.Operation = "query" + v.query.Method = "worker" + v.query.Outputs = workerOutput + + return v } -// Set the optional value of DeletedAt dynamically -func (r tenantVcsProviderQueryDeletedAtDateTime) SetOptional(value *DateTime) tenantVcsProviderSetParam { - if value == nil { +func (r workerLabelQueryWorkerRelations) Link( + params WorkerWhereParam, +) workerLabelWithPrismaWorkerSetParam { + var fields []builder.Field - var v *DateTime - return tenantVcsProviderSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, - }, - } + f := params.field() + if f.Fields == nil && f.Value == nil { + return workerLabelWithPrismaWorkerSetParam{} } - return r.Set(*value) -} - -func (r tenantVcsProviderQueryDeletedAtDateTime) Equals(value DateTime) tenantVcsProviderWithPrismaDeletedAtEqualsParam { + fields = append(fields, f) - return tenantVcsProviderWithPrismaDeletedAtEqualsParam{ + return workerLabelWithPrismaWorkerSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "worker", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r tenantVcsProviderQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) tenantVcsProviderWithPrismaDeletedAtEqualsParam { - if value == nil { - return tenantVcsProviderWithPrismaDeletedAtEqualsParam{} - } - return r.Equals(*value) -} +func (r workerLabelQueryWorkerRelations) Unlink() workerLabelWithPrismaWorkerSetParam { + var v workerLabelWithPrismaWorkerSetParam -func (r tenantVcsProviderQueryDeletedAtDateTime) EqualsOptional(value *DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ + v = workerLabelWithPrismaWorkerSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "worker", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r tenantVcsProviderQueryDeletedAtDateTime) IsNull() tenantVcsProviderDefaultParam { - var str *string = nil - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerWorker) Field() workerLabelPrismaFields { + return workerLabelFieldWorker +} + +// base struct +type workerLabelQueryWorkerIDString struct{} + +// Set the required value of WorkerID +func (r workerLabelQueryWorkerIDString) Set(value string) workerLabelSetParam { + + return workerLabelSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", + Value: value, + }, + } + +} + +// Set the optional value of WorkerID dynamically +func (r workerLabelQueryWorkerIDString) SetIfPresent(value *String) workerLabelSetParam { + if value == nil { + return workerLabelSetParam{} + } + + return r.Set(*value) +} + +func (r workerLabelQueryWorkerIDString) Equals(value string) workerLabelWithPrismaWorkerIDEqualsParam { + + return workerLabelWithPrismaWorkerIDEqualsParam{ + data: builder.Field{ + Name: "workerId", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r tenantVcsProviderQueryDeletedAtDateTime) Order(direction SortOrder) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) EqualsIfPresent(value *string) workerLabelWithPrismaWorkerIDEqualsParam { + if value == nil { + return workerLabelWithPrismaWorkerIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r workerLabelQueryWorkerIDString) Order(direction SortOrder) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Value: direction, }, } } -func (r tenantVcsProviderQueryDeletedAtDateTime) Cursor(cursor DateTime) tenantVcsProviderCursorParam { - return tenantVcsProviderCursorParam{ +func (r workerLabelQueryWorkerIDString) Cursor(cursor string) workerLabelCursorParam { + return workerLabelCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Value: cursor, }, } } -func (r tenantVcsProviderQueryDeletedAtDateTime) In(value []DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) In(value []string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { Name: "in", @@ -158689,17 +159354,17 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) In(value []DateTime) tenantVcsP } } -func (r tenantVcsProviderQueryDeletedAtDateTime) InIfPresent(value []DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) InIfPresent(value []string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.In(value) } -func (r tenantVcsProviderQueryDeletedAtDateTime) NotIn(value []DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) NotIn(value []string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { Name: "notIn", @@ -158710,17 +159375,17 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) NotIn(value []DateTime) tenantV } } -func (r tenantVcsProviderQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) NotInIfPresent(value []string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.NotIn(value) } -func (r tenantVcsProviderQueryDeletedAtDateTime) Lt(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) Lt(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { Name: "lt", @@ -158731,17 +159396,17 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) Lt(value DateTime) tenantVcsPro } } -func (r tenantVcsProviderQueryDeletedAtDateTime) LtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) LtIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Lt(*value) } -func (r tenantVcsProviderQueryDeletedAtDateTime) Lte(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) Lte(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { Name: "lte", @@ -158752,17 +159417,17 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) Lte(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryDeletedAtDateTime) LteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) LteIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Lte(*value) } -func (r tenantVcsProviderQueryDeletedAtDateTime) Gt(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) Gt(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { Name: "gt", @@ -158773,17 +159438,17 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) Gt(value DateTime) tenantVcsPro } } -func (r tenantVcsProviderQueryDeletedAtDateTime) GtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) GtIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Gt(*value) } -func (r tenantVcsProviderQueryDeletedAtDateTime) Gte(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) Gte(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { Name: "gte", @@ -158794,20 +159459,20 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) Gte(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryDeletedAtDateTime) GteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) GteIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Gte(*value) } -func (r tenantVcsProviderQueryDeletedAtDateTime) Not(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) Contains(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -158815,22 +159480,20 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) Not(value DateTime) tenantVcsPr } } -func (r tenantVcsProviderQueryDeletedAtDateTime) NotIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) ContainsIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. - -func (r tenantVcsProviderQueryDeletedAtDateTime) Before(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) StartsWith(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { - Name: "lt", + Name: "startsWith", Value: value, }, }, @@ -158838,23 +159501,20 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) Before(value DateTime) tenantVc } } -// deprecated: Use LtIfPresent instead. -func (r tenantVcsProviderQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) StartsWithIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.Before(*value) + return r.StartsWith(*value) } -// deprecated: Use Gt instead. - -func (r tenantVcsProviderQueryDeletedAtDateTime) After(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) EndsWith(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -158862,23 +159522,20 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) After(value DateTime) tenantVcs } } -// deprecated: Use GtIfPresent instead. -func (r tenantVcsProviderQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) EndsWithIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.After(*value) + return r.EndsWith(*value) } -// deprecated: Use Lte instead. - -func (r tenantVcsProviderQueryDeletedAtDateTime) BeforeEquals(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) Mode(value QueryMode) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -158886,23 +159543,20 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) BeforeEquals(value DateTime) te } } -// deprecated: Use LteIfPresent instead. -func (r tenantVcsProviderQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) ModeIfPresent(value *QueryMode) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.BeforeEquals(*value) + return r.Mode(*value) } -// deprecated: Use Gte instead. - -func (r tenantVcsProviderQueryDeletedAtDateTime) AfterEquals(value DateTime) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) Not(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "workerId", Fields: []builder.Field{ { - Name: "gte", + Name: "not", Value: value, }, }, @@ -158910,135 +159564,94 @@ func (r tenantVcsProviderQueryDeletedAtDateTime) AfterEquals(value DateTime) ten } } -// deprecated: Use GteIfPresent instead. -func (r tenantVcsProviderQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { +func (r workerLabelQueryWorkerIDString) NotIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.AfterEquals(*value) -} - -func (r tenantVcsProviderQueryDeletedAtDateTime) Field() tenantVcsProviderPrismaFields { - return tenantVcsProviderFieldDeletedAt + return r.Not(*value) } -// base struct -type tenantVcsProviderQueryTenantTenant struct{} - -type tenantVcsProviderQueryTenantRelations struct{} - -// TenantVcsProvider -> Tenant -// -// @relation -// @required -func (tenantVcsProviderQueryTenantRelations) Where( - params ...TenantWhereParam, -) tenantVcsProviderDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use StartsWith instead. - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryWorkerIDString) HasPrefix(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "workerId", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "starts_with", + Value: value, }, }, }, } } -func (tenantVcsProviderQueryTenantRelations) Fetch() tenantVcsProviderToTenantFindUnique { - var v tenantVcsProviderToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - - return v -} - -func (r tenantVcsProviderQueryTenantRelations) Link( - params TenantWhereParam, -) tenantVcsProviderWithPrismaTenantSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return tenantVcsProviderWithPrismaTenantSetParam{} +// deprecated: Use StartsWithIfPresent instead. +func (r workerLabelQueryWorkerIDString) HasPrefixIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} } + return r.HasPrefix(*value) +} - fields = append(fields, f) +// deprecated: Use EndsWith instead. - return tenantVcsProviderWithPrismaTenantSetParam{ +func (r workerLabelQueryWorkerIDString) HasSuffix(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "workerId", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "ends_with", + Value: value, }, }, }, } } -func (r tenantVcsProviderQueryTenantRelations) Unlink() tenantVcsProviderWithPrismaTenantSetParam { - var v tenantVcsProviderWithPrismaTenantSetParam - - v = tenantVcsProviderWithPrismaTenantSetParam{ - data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, +// deprecated: Use EndsWithIfPresent instead. +func (r workerLabelQueryWorkerIDString) HasSuffixIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} } - - return v + return r.HasSuffix(*value) } -func (r tenantVcsProviderQueryTenantTenant) Field() tenantVcsProviderPrismaFields { - return tenantVcsProviderFieldTenant +func (r workerLabelQueryWorkerIDString) Field() workerLabelPrismaFields { + return workerLabelFieldWorkerID } // base struct -type tenantVcsProviderQueryTenantIDString struct{} +type workerLabelQueryKeyString struct{} -// Set the required value of TenantID -func (r tenantVcsProviderQueryTenantIDString) Set(value string) tenantVcsProviderSetParam { +// Set the required value of Key +func (r workerLabelQueryKeyString) Set(value string) workerLabelWithPrismaKeySetParam { - return tenantVcsProviderSetParam{ + return workerLabelWithPrismaKeySetParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Value: value, }, } } -// Set the optional value of TenantID dynamically -func (r tenantVcsProviderQueryTenantIDString) SetIfPresent(value *String) tenantVcsProviderSetParam { +// Set the optional value of Key dynamically +func (r workerLabelQueryKeyString) SetIfPresent(value *String) workerLabelWithPrismaKeySetParam { if value == nil { - return tenantVcsProviderSetParam{} + return workerLabelWithPrismaKeySetParam{} } return r.Set(*value) } -func (r tenantVcsProviderQueryTenantIDString) Equals(value string) tenantVcsProviderWithPrismaTenantIDEqualsParam { +func (r workerLabelQueryKeyString) Equals(value string) workerLabelWithPrismaKeyEqualsParam { - return tenantVcsProviderWithPrismaTenantIDEqualsParam{ + return workerLabelWithPrismaKeyEqualsParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "equals", @@ -159049,35 +159662,35 @@ func (r tenantVcsProviderQueryTenantIDString) Equals(value string) tenantVcsProv } } -func (r tenantVcsProviderQueryTenantIDString) EqualsIfPresent(value *string) tenantVcsProviderWithPrismaTenantIDEqualsParam { +func (r workerLabelQueryKeyString) EqualsIfPresent(value *string) workerLabelWithPrismaKeyEqualsParam { if value == nil { - return tenantVcsProviderWithPrismaTenantIDEqualsParam{} + return workerLabelWithPrismaKeyEqualsParam{} } return r.Equals(*value) } -func (r tenantVcsProviderQueryTenantIDString) Order(direction SortOrder) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) Order(direction SortOrder) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Value: direction, }, } } -func (r tenantVcsProviderQueryTenantIDString) Cursor(cursor string) tenantVcsProviderCursorParam { - return tenantVcsProviderCursorParam{ +func (r workerLabelQueryKeyString) Cursor(cursor string) workerLabelCursorParam { + return workerLabelCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Value: cursor, }, } } -func (r tenantVcsProviderQueryTenantIDString) In(value []string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) In(value []string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "in", @@ -159088,17 +159701,17 @@ func (r tenantVcsProviderQueryTenantIDString) In(value []string) tenantVcsProvid } } -func (r tenantVcsProviderQueryTenantIDString) InIfPresent(value []string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) InIfPresent(value []string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.In(value) } -func (r tenantVcsProviderQueryTenantIDString) NotIn(value []string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) NotIn(value []string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "notIn", @@ -159109,17 +159722,17 @@ func (r tenantVcsProviderQueryTenantIDString) NotIn(value []string) tenantVcsPro } } -func (r tenantVcsProviderQueryTenantIDString) NotInIfPresent(value []string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) NotInIfPresent(value []string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.NotIn(value) } -func (r tenantVcsProviderQueryTenantIDString) Lt(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) Lt(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "lt", @@ -159130,17 +159743,17 @@ func (r tenantVcsProviderQueryTenantIDString) Lt(value string) tenantVcsProvider } } -func (r tenantVcsProviderQueryTenantIDString) LtIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) LtIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Lt(*value) } -func (r tenantVcsProviderQueryTenantIDString) Lte(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) Lte(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "lte", @@ -159151,17 +159764,17 @@ func (r tenantVcsProviderQueryTenantIDString) Lte(value string) tenantVcsProvide } } -func (r tenantVcsProviderQueryTenantIDString) LteIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) LteIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Lte(*value) } -func (r tenantVcsProviderQueryTenantIDString) Gt(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) Gt(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "gt", @@ -159172,17 +159785,17 @@ func (r tenantVcsProviderQueryTenantIDString) Gt(value string) tenantVcsProvider } } -func (r tenantVcsProviderQueryTenantIDString) GtIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) GtIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Gt(*value) } -func (r tenantVcsProviderQueryTenantIDString) Gte(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) Gte(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "gte", @@ -159193,17 +159806,17 @@ func (r tenantVcsProviderQueryTenantIDString) Gte(value string) tenantVcsProvide } } -func (r tenantVcsProviderQueryTenantIDString) GteIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) GteIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Gte(*value) } -func (r tenantVcsProviderQueryTenantIDString) Contains(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) Contains(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "contains", @@ -159214,17 +159827,17 @@ func (r tenantVcsProviderQueryTenantIDString) Contains(value string) tenantVcsPr } } -func (r tenantVcsProviderQueryTenantIDString) ContainsIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) ContainsIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Contains(*value) } -func (r tenantVcsProviderQueryTenantIDString) StartsWith(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) StartsWith(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "startsWith", @@ -159235,17 +159848,17 @@ func (r tenantVcsProviderQueryTenantIDString) StartsWith(value string) tenantVcs } } -func (r tenantVcsProviderQueryTenantIDString) StartsWithIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) StartsWithIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.StartsWith(*value) } -func (r tenantVcsProviderQueryTenantIDString) EndsWith(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) EndsWith(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "endsWith", @@ -159256,17 +159869,17 @@ func (r tenantVcsProviderQueryTenantIDString) EndsWith(value string) tenantVcsPr } } -func (r tenantVcsProviderQueryTenantIDString) EndsWithIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) EndsWithIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.EndsWith(*value) } -func (r tenantVcsProviderQueryTenantIDString) Mode(value QueryMode) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) Mode(value QueryMode) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "mode", @@ -159277,17 +159890,17 @@ func (r tenantVcsProviderQueryTenantIDString) Mode(value QueryMode) tenantVcsPro } } -func (r tenantVcsProviderQueryTenantIDString) ModeIfPresent(value *QueryMode) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) ModeIfPresent(value *QueryMode) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Mode(*value) } -func (r tenantVcsProviderQueryTenantIDString) Not(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) Not(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "not", @@ -159298,19 +159911,19 @@ func (r tenantVcsProviderQueryTenantIDString) Not(value string) tenantVcsProvide } } -func (r tenantVcsProviderQueryTenantIDString) NotIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) NotIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r tenantVcsProviderQueryTenantIDString) HasPrefix(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) HasPrefix(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "starts_with", @@ -159322,19 +159935,19 @@ func (r tenantVcsProviderQueryTenantIDString) HasPrefix(value string) tenantVcsP } // deprecated: Use StartsWithIfPresent instead. -func (r tenantVcsProviderQueryTenantIDString) HasPrefixIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) HasPrefixIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r tenantVcsProviderQueryTenantIDString) HasSuffix(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryKeyString) HasSuffix(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "key", Fields: []builder.Field{ { Name: "ends_with", @@ -159346,46 +159959,62 @@ func (r tenantVcsProviderQueryTenantIDString) HasSuffix(value string) tenantVcsP } // deprecated: Use EndsWithIfPresent instead. -func (r tenantVcsProviderQueryTenantIDString) HasSuffixIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryKeyString) HasSuffixIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.HasSuffix(*value) } -func (r tenantVcsProviderQueryTenantIDString) Field() tenantVcsProviderPrismaFields { - return tenantVcsProviderFieldTenantID +func (r workerLabelQueryKeyString) Field() workerLabelPrismaFields { + return workerLabelFieldKey } // base struct -type tenantVcsProviderQueryVcsProviderVcsProvider struct{} +type workerLabelQueryStrValueString struct{} -// Set the required value of VcsProvider -func (r tenantVcsProviderQueryVcsProviderVcsProvider) Set(value VcsProvider) tenantVcsProviderWithPrismaVcsProviderSetParam { +// Set the optional value of StrValue +func (r workerLabelQueryStrValueString) Set(value string) workerLabelSetParam { - return tenantVcsProviderWithPrismaVcsProviderSetParam{ + return workerLabelSetParam{ data: builder.Field{ - Name: "vcsProvider", + Name: "strValue", Value: value, }, } } -// Set the optional value of VcsProvider dynamically -func (r tenantVcsProviderQueryVcsProviderVcsProvider) SetIfPresent(value *VcsProvider) tenantVcsProviderWithPrismaVcsProviderSetParam { +// Set the optional value of StrValue dynamically +func (r workerLabelQueryStrValueString) SetIfPresent(value *String) workerLabelSetParam { if value == nil { - return tenantVcsProviderWithPrismaVcsProviderSetParam{} + return workerLabelSetParam{} } return r.Set(*value) } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) Equals(value VcsProvider) tenantVcsProviderWithPrismaVcsProviderEqualsParam { +// Set the optional value of StrValue dynamically +func (r workerLabelQueryStrValueString) SetOptional(value *String) workerLabelSetParam { + if value == nil { - return tenantVcsProviderWithPrismaVcsProviderEqualsParam{ + var v *string + return workerLabelSetParam{ + data: builder.Field{ + Name: "strValue", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workerLabelQueryStrValueString) Equals(value string) workerLabelWithPrismaStrValueEqualsParam { + + return workerLabelWithPrismaStrValueEqualsParam{ data: builder.Field{ - Name: "vcsProvider", + Name: "strValue", Fields: []builder.Field{ { Name: "equals", @@ -159396,35 +160025,64 @@ func (r tenantVcsProviderQueryVcsProviderVcsProvider) Equals(value VcsProvider) } } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) EqualsIfPresent(value *VcsProvider) tenantVcsProviderWithPrismaVcsProviderEqualsParam { +func (r workerLabelQueryStrValueString) EqualsIfPresent(value *string) workerLabelWithPrismaStrValueEqualsParam { if value == nil { - return tenantVcsProviderWithPrismaVcsProviderEqualsParam{} + return workerLabelWithPrismaStrValueEqualsParam{} } return r.Equals(*value) } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) Order(direction SortOrder) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryStrValueString) EqualsOptional(value *String) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "vcsProvider", + Name: "strValue", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) IsNull() workerLabelDefaultParam { + var str *string = nil + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) Order(direction SortOrder) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", Value: direction, }, } } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) Cursor(cursor VcsProvider) tenantVcsProviderCursorParam { - return tenantVcsProviderCursorParam{ +func (r workerLabelQueryStrValueString) Cursor(cursor string) workerLabelCursorParam { + return workerLabelCursorParam{ data: builder.Field{ - Name: "vcsProvider", + Name: "strValue", Value: cursor, }, } } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) In(value []VcsProvider) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryStrValueString) In(value []string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "vcsProvider", + Name: "strValue", Fields: []builder.Field{ { Name: "in", @@ -159435,17 +160093,17 @@ func (r tenantVcsProviderQueryVcsProviderVcsProvider) In(value []VcsProvider) te } } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) InIfPresent(value []VcsProvider) tenantVcsProviderDefaultParam { +func (r workerLabelQueryStrValueString) InIfPresent(value []string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.In(value) } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) NotIn(value []VcsProvider) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryStrValueString) NotIn(value []string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "vcsProvider", + Name: "strValue", Fields: []builder.Field{ { Name: "notIn", @@ -159456,17 +160114,185 @@ func (r tenantVcsProviderQueryVcsProviderVcsProvider) NotIn(value []VcsProvider) } } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) NotInIfPresent(value []VcsProvider) tenantVcsProviderDefaultParam { +func (r workerLabelQueryStrValueString) NotInIfPresent(value []string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.NotIn(value) } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) Not(value VcsProvider) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryStrValueString) Lt(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "vcsProvider", + Name: "strValue", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) LtIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.Lt(*value) +} + +func (r workerLabelQueryStrValueString) Lte(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) LteIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.Lte(*value) +} + +func (r workerLabelQueryStrValueString) Gt(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) GtIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.Gt(*value) +} + +func (r workerLabelQueryStrValueString) Gte(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) GteIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.Gte(*value) +} + +func (r workerLabelQueryStrValueString) Contains(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) ContainsIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.Contains(*value) +} + +func (r workerLabelQueryStrValueString) StartsWith(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) StartsWithIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r workerLabelQueryStrValueString) EndsWith(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) EndsWithIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r workerLabelQueryStrValueString) Mode(value QueryMode) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryStrValueString) ModeIfPresent(value *QueryMode) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.Mode(*value) +} + +func (r workerLabelQueryStrValueString) Not(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", Fields: []builder.Field{ { Name: "not", @@ -159477,49 +160303,97 @@ func (r tenantVcsProviderQueryVcsProviderVcsProvider) Not(value VcsProvider) ten } } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) NotIfPresent(value *VcsProvider) tenantVcsProviderDefaultParam { +func (r workerLabelQueryStrValueString) NotIfPresent(value *string) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } return r.Not(*value) } -func (r tenantVcsProviderQueryVcsProviderVcsProvider) Field() tenantVcsProviderPrismaFields { - return tenantVcsProviderFieldVcsProvider +// deprecated: Use StartsWith instead. + +func (r workerLabelQueryStrValueString) HasPrefix(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r workerLabelQueryStrValueString) HasPrefixIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r workerLabelQueryStrValueString) HasSuffix(value string) workerLabelDefaultParam { + return workerLabelDefaultParam{ + data: builder.Field{ + Name: "strValue", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r workerLabelQueryStrValueString) HasSuffixIfPresent(value *string) workerLabelDefaultParam { + if value == nil { + return workerLabelDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r workerLabelQueryStrValueString) Field() workerLabelPrismaFields { + return workerLabelFieldStrValue } // base struct -type tenantVcsProviderQueryConfigJson struct{} +type workerLabelQueryIntValueInt struct{} -// Set the optional value of Config -func (r tenantVcsProviderQueryConfigJson) Set(value JSON) tenantVcsProviderSetParam { +// Set the optional value of IntValue +func (r workerLabelQueryIntValueInt) Set(value int) workerLabelSetParam { - return tenantVcsProviderSetParam{ + return workerLabelSetParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Value: value, }, } } -// Set the optional value of Config dynamically -func (r tenantVcsProviderQueryConfigJson) SetIfPresent(value *JSON) tenantVcsProviderSetParam { +// Set the optional value of IntValue dynamically +func (r workerLabelQueryIntValueInt) SetIfPresent(value *Int) workerLabelSetParam { if value == nil { - return tenantVcsProviderSetParam{} + return workerLabelSetParam{} } return r.Set(*value) } -// Set the optional value of Config dynamically -func (r tenantVcsProviderQueryConfigJson) SetOptional(value *JSON) tenantVcsProviderSetParam { +// Set the optional value of IntValue dynamically +func (r workerLabelQueryIntValueInt) SetOptional(value *Int) workerLabelSetParam { if value == nil { - var v *JSON - return tenantVcsProviderSetParam{ + var v *int + return workerLabelSetParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Value: v, }, } @@ -159528,11 +160402,99 @@ func (r tenantVcsProviderQueryConfigJson) SetOptional(value *JSON) tenantVcsProv return r.Set(*value) } -func (r tenantVcsProviderQueryConfigJson) Equals(value JSON) tenantVcsProviderWithPrismaConfigEqualsParam { +// Increment the optional value of IntValue +func (r workerLabelQueryIntValueInt) Increment(value int) workerLabelSetParam { + return workerLabelSetParam{ + data: builder.Field{ + Name: "intValue", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} - return tenantVcsProviderWithPrismaConfigEqualsParam{ +func (r workerLabelQueryIntValueInt) IncrementIfPresent(value *int) workerLabelSetParam { + if value == nil { + return workerLabelSetParam{} + } + return r.Increment(*value) +} + +// Decrement the optional value of IntValue +func (r workerLabelQueryIntValueInt) Decrement(value int) workerLabelSetParam { + return workerLabelSetParam{ data: builder.Field{ - Name: "config", + Name: "intValue", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryIntValueInt) DecrementIfPresent(value *int) workerLabelSetParam { + if value == nil { + return workerLabelSetParam{} + } + return r.Decrement(*value) +} + +// Multiply the optional value of IntValue +func (r workerLabelQueryIntValueInt) Multiply(value int) workerLabelSetParam { + return workerLabelSetParam{ + data: builder.Field{ + Name: "intValue", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryIntValueInt) MultiplyIfPresent(value *int) workerLabelSetParam { + if value == nil { + return workerLabelSetParam{} + } + return r.Multiply(*value) +} + +// Divide the optional value of IntValue +func (r workerLabelQueryIntValueInt) Divide(value int) workerLabelSetParam { + return workerLabelSetParam{ + data: builder.Field{ + Name: "intValue", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, + }, + } +} + +func (r workerLabelQueryIntValueInt) DivideIfPresent(value *int) workerLabelSetParam { + if value == nil { + return workerLabelSetParam{} + } + return r.Divide(*value) +} + +func (r workerLabelQueryIntValueInt) Equals(value int) workerLabelWithPrismaIntValueEqualsParam { + + return workerLabelWithPrismaIntValueEqualsParam{ + data: builder.Field{ + Name: "intValue", Fields: []builder.Field{ { Name: "equals", @@ -159543,17 +160505,17 @@ func (r tenantVcsProviderQueryConfigJson) Equals(value JSON) tenantVcsProviderWi } } -func (r tenantVcsProviderQueryConfigJson) EqualsIfPresent(value *JSON) tenantVcsProviderWithPrismaConfigEqualsParam { +func (r workerLabelQueryIntValueInt) EqualsIfPresent(value *int) workerLabelWithPrismaIntValueEqualsParam { if value == nil { - return tenantVcsProviderWithPrismaConfigEqualsParam{} + return workerLabelWithPrismaIntValueEqualsParam{} } return r.Equals(*value) } -func (r tenantVcsProviderQueryConfigJson) EqualsOptional(value *JSON) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) EqualsOptional(value *Int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { Name: "equals", @@ -159564,11 +160526,11 @@ func (r tenantVcsProviderQueryConfigJson) EqualsOptional(value *JSON) tenantVcsP } } -func (r tenantVcsProviderQueryConfigJson) IsNull() tenantVcsProviderDefaultParam { +func (r workerLabelQueryIntValueInt) IsNull() workerLabelDefaultParam { var str *string = nil - return tenantVcsProviderDefaultParam{ + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { Name: "equals", @@ -159579,31 +160541,31 @@ func (r tenantVcsProviderQueryConfigJson) IsNull() tenantVcsProviderDefaultParam } } -func (r tenantVcsProviderQueryConfigJson) Order(direction SortOrder) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) Order(direction SortOrder) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Value: direction, }, } } -func (r tenantVcsProviderQueryConfigJson) Cursor(cursor JSON) tenantVcsProviderCursorParam { - return tenantVcsProviderCursorParam{ +func (r workerLabelQueryIntValueInt) Cursor(cursor int) workerLabelCursorParam { + return workerLabelCursorParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Value: cursor, }, } } -func (r tenantVcsProviderQueryConfigJson) Path(value []string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) In(value []int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -159611,20 +160573,20 @@ func (r tenantVcsProviderQueryConfigJson) Path(value []string) tenantVcsProvider } } -func (r tenantVcsProviderQueryConfigJson) PathIfPresent(value []string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryIntValueInt) InIfPresent(value []int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r tenantVcsProviderQueryConfigJson) StringContains(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) NotIn(value []int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -159632,20 +160594,20 @@ func (r tenantVcsProviderQueryConfigJson) StringContains(value string) tenantVcs } } -func (r tenantVcsProviderQueryConfigJson) StringContainsIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryIntValueInt) NotInIfPresent(value []int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r tenantVcsProviderQueryConfigJson) StringStartsWith(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) Lt(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -159653,20 +160615,20 @@ func (r tenantVcsProviderQueryConfigJson) StringStartsWith(value string) tenantV } } -func (r tenantVcsProviderQueryConfigJson) StringStartsWithIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryIntValueInt) LtIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r tenantVcsProviderQueryConfigJson) StringEndsWith(value string) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) Lte(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -159674,20 +160636,20 @@ func (r tenantVcsProviderQueryConfigJson) StringEndsWith(value string) tenantVcs } } -func (r tenantVcsProviderQueryConfigJson) StringEndsWithIfPresent(value *string) tenantVcsProviderDefaultParam { +func (r workerLabelQueryIntValueInt) LteIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r tenantVcsProviderQueryConfigJson) ArrayContains(value JSON) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) Gt(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -159695,20 +160657,20 @@ func (r tenantVcsProviderQueryConfigJson) ArrayContains(value JSON) tenantVcsPro } } -func (r tenantVcsProviderQueryConfigJson) ArrayContainsIfPresent(value *JSON) tenantVcsProviderDefaultParam { +func (r workerLabelQueryIntValueInt) GtIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r tenantVcsProviderQueryConfigJson) ArrayStartsWith(value JSON) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) Gte(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -159716,20 +160678,20 @@ func (r tenantVcsProviderQueryConfigJson) ArrayStartsWith(value JSON) tenantVcsP } } -func (r tenantVcsProviderQueryConfigJson) ArrayStartsWithIfPresent(value *JSON) tenantVcsProviderDefaultParam { +func (r workerLabelQueryIntValueInt) GteIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r tenantVcsProviderQueryConfigJson) ArrayEndsWith(value JSON) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) Not(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -159737,17 +160699,19 @@ func (r tenantVcsProviderQueryConfigJson) ArrayEndsWith(value JSON) tenantVcsPro } } -func (r tenantVcsProviderQueryConfigJson) ArrayEndsWithIfPresent(value *JSON) tenantVcsProviderDefaultParam { +func (r workerLabelQueryIntValueInt) NotIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r tenantVcsProviderQueryConfigJson) Lt(value JSON) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +// deprecated: Use Lt instead. + +func (r workerLabelQueryIntValueInt) LT(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { Name: "lt", @@ -159758,17 +160722,20 @@ func (r tenantVcsProviderQueryConfigJson) Lt(value JSON) tenantVcsProviderDefaul } } -func (r tenantVcsProviderQueryConfigJson) LtIfPresent(value *JSON) tenantVcsProviderDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r workerLabelQueryIntValueInt) LTIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.Lt(*value) + return r.LT(*value) } -func (r tenantVcsProviderQueryConfigJson) Lte(value JSON) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +// deprecated: Use Lte instead. + +func (r workerLabelQueryIntValueInt) LTE(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { Name: "lte", @@ -159779,17 +160746,20 @@ func (r tenantVcsProviderQueryConfigJson) Lte(value JSON) tenantVcsProviderDefau } } -func (r tenantVcsProviderQueryConfigJson) LteIfPresent(value *JSON) tenantVcsProviderDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workerLabelQueryIntValueInt) LTEIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.Lte(*value) + return r.LTE(*value) } -func (r tenantVcsProviderQueryConfigJson) Gt(value JSON) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +// deprecated: Use Gt instead. + +func (r workerLabelQueryIntValueInt) GT(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { Name: "gt", @@ -159800,41 +160770,23 @@ func (r tenantVcsProviderQueryConfigJson) Gt(value JSON) tenantVcsProviderDefaul } } -func (r tenantVcsProviderQueryConfigJson) GtIfPresent(value *JSON) tenantVcsProviderDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workerLabelQueryIntValueInt) GTIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} - } - return r.Gt(*value) -} - -func (r tenantVcsProviderQueryConfigJson) Gte(value JSON) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ - data: builder.Field{ - Name: "config", - Fields: []builder.Field{ - { - Name: "gte", - Value: value, - }, - }, - }, + return workerLabelDefaultParam{} } + return r.GT(*value) } -func (r tenantVcsProviderQueryConfigJson) GteIfPresent(value *JSON) tenantVcsProviderDefaultParam { - if value == nil { - return tenantVcsProviderDefaultParam{} - } - return r.Gte(*value) -} +// deprecated: Use Gte instead. -func (r tenantVcsProviderQueryConfigJson) Not(value JSONNullValueFilter) tenantVcsProviderDefaultParam { - return tenantVcsProviderDefaultParam{ +func (r workerLabelQueryIntValueInt) GTE(value int) workerLabelDefaultParam { + return workerLabelDefaultParam{ data: builder.Field{ - Name: "config", + Name: "intValue", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -159842,64 +160794,111 @@ func (r tenantVcsProviderQueryConfigJson) Not(value JSONNullValueFilter) tenantV } } -func (r tenantVcsProviderQueryConfigJson) NotIfPresent(value *JSONNullValueFilter) tenantVcsProviderDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r workerLabelQueryIntValueInt) GTEIfPresent(value *int) workerLabelDefaultParam { if value == nil { - return tenantVcsProviderDefaultParam{} + return workerLabelDefaultParam{} } - return r.Not(*value) + return r.GTE(*value) } -func (r tenantVcsProviderQueryConfigJson) Field() tenantVcsProviderPrismaFields { - return tenantVcsProviderFieldConfig +func (r workerLabelQueryIntValueInt) Field() workerLabelPrismaFields { + return workerLabelFieldIntValue } -// TenantAlertEmailGroup acts as a namespaces to access query methods for the TenantAlertEmailGroup model -var TenantAlertEmailGroup = tenantAlertEmailGroupQuery{} +// Worker acts as a namespaces to access query methods for the Worker model +var Worker = workerQuery{} -// tenantAlertEmailGroupQuery exposes query functions for the tenantAlertEmailGroup model -type tenantAlertEmailGroupQuery struct { +// workerQuery exposes query functions for the worker model +type workerQuery struct { // ID // // @required - ID tenantAlertEmailGroupQueryIDString + ID workerQueryIDString // CreatedAt // // @required - CreatedAt tenantAlertEmailGroupQueryCreatedAtDateTime + CreatedAt workerQueryCreatedAtDateTime // UpdatedAt // // @required - UpdatedAt tenantAlertEmailGroupQueryUpdatedAtDateTime + UpdatedAt workerQueryUpdatedAtDateTime // DeletedAt // // @optional - DeletedAt tenantAlertEmailGroupQueryDeletedAtDateTime + DeletedAt workerQueryDeletedAtDateTime - Tenant tenantAlertEmailGroupQueryTenantRelations + Labels workerQueryLabelsRelations + + Tenant workerQueryTenantRelations // TenantID // // @required - TenantID tenantAlertEmailGroupQueryTenantIDString + TenantID workerQueryTenantIDString - // Emails + // LastHeartbeatAt + // + // @optional + LastHeartbeatAt workerQueryLastHeartbeatAtDateTime + + // IsPaused // // @required - Emails tenantAlertEmailGroupQueryEmailsString + IsPaused workerQueryIsPausedBoolean + + // IsActive + // + // @required + IsActive workerQueryIsActiveBoolean + + // LastListenerEstablished + // + // @optional + LastListenerEstablished workerQueryLastListenerEstablishedDateTime + + // Name + // + // @required + Name workerQueryNameString + + Dispatcher workerQueryDispatcherRelations + + // DispatcherID + // + // @optional + DispatcherID workerQueryDispatcherIDString + + // MaxRuns + // + // @required + MaxRuns workerQueryMaxRunsInt + + Services workerQueryServicesRelations + + Actions workerQueryActionsRelations + + StepRuns workerQueryStepRunsRelations + + GroupKeyRuns workerQueryGroupKeyRunsRelations + + Slots workerQuerySlotsRelations + + Semaphore workerQuerySemaphoreRelations } -func (tenantAlertEmailGroupQuery) Not(params ...TenantAlertEmailGroupWhereParam) tenantAlertEmailGroupDefaultParam { +func (workerQuery) Not(params ...WorkerWhereParam) workerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tenantAlertEmailGroupDefaultParam{ + return workerDefaultParam{ data: builder.Field{ Name: "NOT", List: true, @@ -159909,14 +160908,14 @@ func (tenantAlertEmailGroupQuery) Not(params ...TenantAlertEmailGroupWhereParam) } } -func (tenantAlertEmailGroupQuery) Or(params ...TenantAlertEmailGroupWhereParam) tenantAlertEmailGroupDefaultParam { +func (workerQuery) Or(params ...WorkerWhereParam) workerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tenantAlertEmailGroupDefaultParam{ + return workerDefaultParam{ data: builder.Field{ Name: "OR", List: true, @@ -159926,14 +160925,14 @@ func (tenantAlertEmailGroupQuery) Or(params ...TenantAlertEmailGroupWhereParam) } } -func (tenantAlertEmailGroupQuery) And(params ...TenantAlertEmailGroupWhereParam) tenantAlertEmailGroupDefaultParam { +func (workerQuery) And(params ...WorkerWhereParam) workerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tenantAlertEmailGroupDefaultParam{ + return workerDefaultParam{ data: builder.Field{ Name: "AND", List: true, @@ -159944,12 +160943,12 @@ func (tenantAlertEmailGroupQuery) And(params ...TenantAlertEmailGroupWhereParam) } // base struct -type tenantAlertEmailGroupQueryIDString struct{} +type workerQueryIDString struct{} // Set the required value of ID -func (r tenantAlertEmailGroupQueryIDString) Set(value string) tenantAlertEmailGroupSetParam { +func (r workerQueryIDString) Set(value string) workerSetParam { - return tenantAlertEmailGroupSetParam{ + return workerSetParam{ data: builder.Field{ Name: "id", Value: value, @@ -159959,17 +160958,17 @@ func (r tenantAlertEmailGroupQueryIDString) Set(value string) tenantAlertEmailGr } // Set the optional value of ID dynamically -func (r tenantAlertEmailGroupQueryIDString) SetIfPresent(value *String) tenantAlertEmailGroupSetParam { +func (r workerQueryIDString) SetIfPresent(value *String) workerSetParam { if value == nil { - return tenantAlertEmailGroupSetParam{} + return workerSetParam{} } return r.Set(*value) } -func (r tenantAlertEmailGroupQueryIDString) Equals(value string) tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam { +func (r workerQueryIDString) Equals(value string) workerWithPrismaIDEqualsUniqueParam { - return tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam{ + return workerWithPrismaIDEqualsUniqueParam{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -159982,15 +160981,15 @@ func (r tenantAlertEmailGroupQueryIDString) Equals(value string) tenantAlertEmai } } -func (r tenantAlertEmailGroupQueryIDString) EqualsIfPresent(value *string) tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam { +func (r workerQueryIDString) EqualsIfPresent(value *string) workerWithPrismaIDEqualsUniqueParam { if value == nil { - return tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam{} + return workerWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r tenantAlertEmailGroupQueryIDString) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryIDString) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "id", Value: direction, @@ -159998,8 +160997,8 @@ func (r tenantAlertEmailGroupQueryIDString) Order(direction SortOrder) tenantAle } } -func (r tenantAlertEmailGroupQueryIDString) Cursor(cursor string) tenantAlertEmailGroupCursorParam { - return tenantAlertEmailGroupCursorParam{ +func (r workerQueryIDString) Cursor(cursor string) workerCursorParam { + return workerCursorParam{ data: builder.Field{ Name: "id", Value: cursor, @@ -160007,8 +161006,8 @@ func (r tenantAlertEmailGroupQueryIDString) Cursor(cursor string) tenantAlertEma } } -func (r tenantAlertEmailGroupQueryIDString) In(value []string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) In(value []string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160021,15 +161020,15 @@ func (r tenantAlertEmailGroupQueryIDString) In(value []string) tenantAlertEmailG } } -func (r tenantAlertEmailGroupQueryIDString) InIfPresent(value []string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) InIfPresent(value []string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.In(value) } -func (r tenantAlertEmailGroupQueryIDString) NotIn(value []string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) NotIn(value []string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160042,15 +161041,15 @@ func (r tenantAlertEmailGroupQueryIDString) NotIn(value []string) tenantAlertEma } } -func (r tenantAlertEmailGroupQueryIDString) NotInIfPresent(value []string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) NotInIfPresent(value []string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.NotIn(value) } -func (r tenantAlertEmailGroupQueryIDString) Lt(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) Lt(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160063,15 +161062,15 @@ func (r tenantAlertEmailGroupQueryIDString) Lt(value string) tenantAlertEmailGro } } -func (r tenantAlertEmailGroupQueryIDString) LtIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) LtIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.Lt(*value) } -func (r tenantAlertEmailGroupQueryIDString) Lte(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) Lte(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160084,15 +161083,15 @@ func (r tenantAlertEmailGroupQueryIDString) Lte(value string) tenantAlertEmailGr } } -func (r tenantAlertEmailGroupQueryIDString) LteIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) LteIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.Lte(*value) } -func (r tenantAlertEmailGroupQueryIDString) Gt(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) Gt(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160105,15 +161104,15 @@ func (r tenantAlertEmailGroupQueryIDString) Gt(value string) tenantAlertEmailGro } } -func (r tenantAlertEmailGroupQueryIDString) GtIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) GtIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.Gt(*value) } -func (r tenantAlertEmailGroupQueryIDString) Gte(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) Gte(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160126,15 +161125,15 @@ func (r tenantAlertEmailGroupQueryIDString) Gte(value string) tenantAlertEmailGr } } -func (r tenantAlertEmailGroupQueryIDString) GteIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) GteIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.Gte(*value) } -func (r tenantAlertEmailGroupQueryIDString) Contains(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) Contains(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160147,15 +161146,15 @@ func (r tenantAlertEmailGroupQueryIDString) Contains(value string) tenantAlertEm } } -func (r tenantAlertEmailGroupQueryIDString) ContainsIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) ContainsIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.Contains(*value) } -func (r tenantAlertEmailGroupQueryIDString) StartsWith(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) StartsWith(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160168,15 +161167,15 @@ func (r tenantAlertEmailGroupQueryIDString) StartsWith(value string) tenantAlert } } -func (r tenantAlertEmailGroupQueryIDString) StartsWithIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) StartsWithIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.StartsWith(*value) } -func (r tenantAlertEmailGroupQueryIDString) EndsWith(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) EndsWith(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160189,15 +161188,15 @@ func (r tenantAlertEmailGroupQueryIDString) EndsWith(value string) tenantAlertEm } } -func (r tenantAlertEmailGroupQueryIDString) EndsWithIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) EndsWithIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.EndsWith(*value) } -func (r tenantAlertEmailGroupQueryIDString) Mode(value QueryMode) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) Mode(value QueryMode) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160210,15 +161209,15 @@ func (r tenantAlertEmailGroupQueryIDString) Mode(value QueryMode) tenantAlertEma } } -func (r tenantAlertEmailGroupQueryIDString) ModeIfPresent(value *QueryMode) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) ModeIfPresent(value *QueryMode) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.Mode(*value) } -func (r tenantAlertEmailGroupQueryIDString) Not(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) Not(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160231,17 +161230,17 @@ func (r tenantAlertEmailGroupQueryIDString) Not(value string) tenantAlertEmailGr } } -func (r tenantAlertEmailGroupQueryIDString) NotIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) NotIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r tenantAlertEmailGroupQueryIDString) HasPrefix(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) HasPrefix(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160255,17 +161254,17 @@ func (r tenantAlertEmailGroupQueryIDString) HasPrefix(value string) tenantAlertE } // deprecated: Use StartsWithIfPresent instead. -func (r tenantAlertEmailGroupQueryIDString) HasPrefixIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) HasPrefixIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r tenantAlertEmailGroupQueryIDString) HasSuffix(value string) tenantAlertEmailGroupParamUnique { - return tenantAlertEmailGroupParamUnique{ +func (r workerQueryIDString) HasSuffix(value string) workerParamUnique { + return workerParamUnique{ data: builder.Field{ Name: "id", Fields: []builder.Field{ @@ -160279,24 +161278,24 @@ func (r tenantAlertEmailGroupQueryIDString) HasSuffix(value string) tenantAlertE } // deprecated: Use EndsWithIfPresent instead. -func (r tenantAlertEmailGroupQueryIDString) HasSuffixIfPresent(value *string) tenantAlertEmailGroupParamUnique { +func (r workerQueryIDString) HasSuffixIfPresent(value *string) workerParamUnique { if value == nil { - return tenantAlertEmailGroupParamUnique{} + return workerParamUnique{} } return r.HasSuffix(*value) } -func (r tenantAlertEmailGroupQueryIDString) Field() tenantAlertEmailGroupPrismaFields { - return tenantAlertEmailGroupFieldID +func (r workerQueryIDString) Field() workerPrismaFields { + return workerFieldID } // base struct -type tenantAlertEmailGroupQueryCreatedAtDateTime struct{} +type workerQueryCreatedAtDateTime struct{} // Set the required value of CreatedAt -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Set(value DateTime) tenantAlertEmailGroupSetParam { +func (r workerQueryCreatedAtDateTime) Set(value DateTime) workerSetParam { - return tenantAlertEmailGroupSetParam{ + return workerSetParam{ data: builder.Field{ Name: "createdAt", Value: value, @@ -160306,17 +161305,17 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Set(value DateTime) tenantA } // Set the optional value of CreatedAt dynamically -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) SetIfPresent(value *DateTime) tenantAlertEmailGroupSetParam { +func (r workerQueryCreatedAtDateTime) SetIfPresent(value *DateTime) workerSetParam { if value == nil { - return tenantAlertEmailGroupSetParam{} + return workerSetParam{} } return r.Set(*value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Equals(value DateTime) tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam { +func (r workerQueryCreatedAtDateTime) Equals(value DateTime) workerWithPrismaCreatedAtEqualsParam { - return tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam{ + return workerWithPrismaCreatedAtEqualsParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160329,15 +161328,15 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Equals(value DateTime) tena } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam { +func (r workerQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaCreatedAtEqualsParam { if value == nil { - return tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam{} + return workerWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Value: direction, @@ -160345,8 +161344,8 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Order(direction SortOrder) } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Cursor(cursor DateTime) tenantAlertEmailGroupCursorParam { - return tenantAlertEmailGroupCursorParam{ +func (r workerQueryCreatedAtDateTime) Cursor(cursor DateTime) workerCursorParam { + return workerCursorParam{ data: builder.Field{ Name: "createdAt", Value: cursor, @@ -160354,8 +161353,8 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Cursor(cursor DateTime) ten } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) In(value []DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) In(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160368,15 +161367,15 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) In(value []DateTime) tenant } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) InIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) InIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.In(value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) NotIn(value []DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) NotIn(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160389,15 +161388,15 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) NotIn(value []DateTime) ten } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.NotIn(value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Lt(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) Lt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160410,15 +161409,15 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Lt(value DateTime) tenantAl } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) LtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) LtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lt(*value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Lte(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) Lte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160431,15 +161430,15 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Lte(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) LteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) LteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lte(*value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Gt(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) Gt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160452,15 +161451,15 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Gt(value DateTime) tenantAl } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) GtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) GtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gt(*value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Gte(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) Gte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160473,15 +161472,15 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Gte(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) GteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) GteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gte(*value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Not(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) Not(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160494,17 +161493,17 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Not(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) NotIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) NotIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Before(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) Before(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160518,17 +161517,17 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Before(value DateTime) tena } // deprecated: Use LtIfPresent instead. -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) After(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) After(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160542,17 +161541,17 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) After(value DateTime) tenan } // deprecated: Use GtIfPresent instead. -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) BeforeEquals(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) BeforeEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160566,17 +161565,17 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) BeforeEquals(value DateTime } // deprecated: Use LteIfPresent instead. -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) AfterEquals(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryCreatedAtDateTime) AfterEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "createdAt", Fields: []builder.Field{ @@ -160590,24 +161589,24 @@ func (r tenantAlertEmailGroupQueryCreatedAtDateTime) AfterEquals(value DateTime) } // deprecated: Use GteIfPresent instead. -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.AfterEquals(*value) } -func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Field() tenantAlertEmailGroupPrismaFields { - return tenantAlertEmailGroupFieldCreatedAt +func (r workerQueryCreatedAtDateTime) Field() workerPrismaFields { + return workerFieldCreatedAt } // base struct -type tenantAlertEmailGroupQueryUpdatedAtDateTime struct{} +type workerQueryUpdatedAtDateTime struct{} // Set the required value of UpdatedAt -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Set(value DateTime) tenantAlertEmailGroupSetParam { +func (r workerQueryUpdatedAtDateTime) Set(value DateTime) workerSetParam { - return tenantAlertEmailGroupSetParam{ + return workerSetParam{ data: builder.Field{ Name: "updatedAt", Value: value, @@ -160617,17 +161616,17 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Set(value DateTime) tenantA } // Set the optional value of UpdatedAt dynamically -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) tenantAlertEmailGroupSetParam { +func (r workerQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) workerSetParam { if value == nil { - return tenantAlertEmailGroupSetParam{} + return workerSetParam{} } return r.Set(*value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Equals(value DateTime) tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam { +func (r workerQueryUpdatedAtDateTime) Equals(value DateTime) workerWithPrismaUpdatedAtEqualsParam { - return tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam{ + return workerWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160640,15 +161639,15 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Equals(value DateTime) tena } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam { +func (r workerQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaUpdatedAtEqualsParam { if value == nil { - return tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam{} + return workerWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Value: direction, @@ -160656,8 +161655,8 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Order(direction SortOrder) } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Cursor(cursor DateTime) tenantAlertEmailGroupCursorParam { - return tenantAlertEmailGroupCursorParam{ +func (r workerQueryUpdatedAtDateTime) Cursor(cursor DateTime) workerCursorParam { + return workerCursorParam{ data: builder.Field{ Name: "updatedAt", Value: cursor, @@ -160665,8 +161664,8 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Cursor(cursor DateTime) ten } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) In(value []DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) In(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160679,15 +161678,15 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) In(value []DateTime) tenant } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) InIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) InIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.In(value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) NotIn(value []DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) NotIn(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160700,15 +161699,15 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) NotIn(value []DateTime) ten } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.NotIn(value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Lt(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) Lt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160721,15 +161720,15 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Lt(value DateTime) tenantAl } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lt(*value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Lte(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) Lte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160742,15 +161741,15 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Lte(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lte(*value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Gt(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) Gt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160763,15 +161762,15 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Gt(value DateTime) tenantAl } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gt(*value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Gte(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) Gte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160784,15 +161783,15 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Gte(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gte(*value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Not(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) Not(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160805,17 +161804,17 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Not(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Before(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) Before(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160829,17 +161828,17 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Before(value DateTime) tena } // deprecated: Use LtIfPresent instead. -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) After(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) After(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160853,17 +161852,17 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) After(value DateTime) tenan } // deprecated: Use GtIfPresent instead. -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) BeforeEquals(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) BeforeEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160877,17 +161876,17 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) BeforeEquals(value DateTime } // deprecated: Use LteIfPresent instead. -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) AfterEquals(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryUpdatedAtDateTime) AfterEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "updatedAt", Fields: []builder.Field{ @@ -160901,24 +161900,24 @@ func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) AfterEquals(value DateTime) } // deprecated: Use GteIfPresent instead. -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.AfterEquals(*value) } -func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Field() tenantAlertEmailGroupPrismaFields { - return tenantAlertEmailGroupFieldUpdatedAt +func (r workerQueryUpdatedAtDateTime) Field() workerPrismaFields { + return workerFieldUpdatedAt } // base struct -type tenantAlertEmailGroupQueryDeletedAtDateTime struct{} +type workerQueryDeletedAtDateTime struct{} // Set the optional value of DeletedAt -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Set(value DateTime) tenantAlertEmailGroupSetParam { +func (r workerQueryDeletedAtDateTime) Set(value DateTime) workerSetParam { - return tenantAlertEmailGroupSetParam{ + return workerSetParam{ data: builder.Field{ Name: "deletedAt", Value: value, @@ -160928,20 +161927,20 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Set(value DateTime) tenantA } // Set the optional value of DeletedAt dynamically -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) SetIfPresent(value *DateTime) tenantAlertEmailGroupSetParam { +func (r workerQueryDeletedAtDateTime) SetIfPresent(value *DateTime) workerSetParam { if value == nil { - return tenantAlertEmailGroupSetParam{} + return workerSetParam{} } return r.Set(*value) } // Set the optional value of DeletedAt dynamically -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) SetOptional(value *DateTime) tenantAlertEmailGroupSetParam { +func (r workerQueryDeletedAtDateTime) SetOptional(value *DateTime) workerSetParam { if value == nil { var v *DateTime - return tenantAlertEmailGroupSetParam{ + return workerSetParam{ data: builder.Field{ Name: "deletedAt", Value: v, @@ -160952,9 +161951,9 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) SetOptional(value *DateTime return r.Set(*value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Equals(value DateTime) tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam { +func (r workerQueryDeletedAtDateTime) Equals(value DateTime) workerWithPrismaDeletedAtEqualsParam { - return tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam{ + return workerWithPrismaDeletedAtEqualsParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -160967,15 +161966,15 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Equals(value DateTime) tena } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam { +func (r workerQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaDeletedAtEqualsParam { if value == nil { - return tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam{} + return workerWithPrismaDeletedAtEqualsParam{} } return r.Equals(*value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) EqualsOptional(value *DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) EqualsOptional(value *DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -160988,9 +161987,9 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) EqualsOptional(value *DateT } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) IsNull() tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) IsNull() workerDefaultParam { var str *string = nil - return tenantAlertEmailGroupDefaultParam{ + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161003,8 +162002,8 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) IsNull() tenantAlertEmailGr } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Value: direction, @@ -161012,8 +162011,8 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Order(direction SortOrder) } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Cursor(cursor DateTime) tenantAlertEmailGroupCursorParam { - return tenantAlertEmailGroupCursorParam{ +func (r workerQueryDeletedAtDateTime) Cursor(cursor DateTime) workerCursorParam { + return workerCursorParam{ data: builder.Field{ Name: "deletedAt", Value: cursor, @@ -161021,8 +162020,8 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Cursor(cursor DateTime) ten } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) In(value []DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) In(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161035,15 +162034,15 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) In(value []DateTime) tenant } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) InIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) InIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.In(value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) NotIn(value []DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) NotIn(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161056,15 +162055,15 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) NotIn(value []DateTime) ten } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.NotIn(value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Lt(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) Lt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161077,15 +162076,15 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Lt(value DateTime) tenantAl } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) LtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) LtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lt(*value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Lte(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) Lte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161098,15 +162097,15 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Lte(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) LteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) LteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lte(*value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Gt(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) Gt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161119,15 +162118,15 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Gt(value DateTime) tenantAl } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) GtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) GtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gt(*value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Gte(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) Gte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161140,15 +162139,15 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Gte(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) GteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) GteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gte(*value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Not(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) Not(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161161,17 +162160,17 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Not(value DateTime) tenantA } } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) NotIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) NotIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Before(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) Before(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161185,17 +162184,17 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Before(value DateTime) tena } // deprecated: Use LtIfPresent instead. -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Before(*value) } // deprecated: Use Gt instead. -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) After(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) After(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161209,17 +162208,17 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) After(value DateTime) tenan } // deprecated: Use GtIfPresent instead. -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.After(*value) } // deprecated: Use Lte instead. -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) BeforeEquals(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) BeforeEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161233,17 +162232,17 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) BeforeEquals(value DateTime } // deprecated: Use LteIfPresent instead. -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.BeforeEquals(*value) } // deprecated: Use Gte instead. -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) AfterEquals(value DateTime) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryDeletedAtDateTime) AfterEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "deletedAt", Fields: []builder.Field{ @@ -161257,36 +162256,208 @@ func (r tenantAlertEmailGroupQueryDeletedAtDateTime) AfterEquals(value DateTime) } // deprecated: Use GteIfPresent instead. -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { +func (r workerQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.AfterEquals(*value) } -func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Field() tenantAlertEmailGroupPrismaFields { - return tenantAlertEmailGroupFieldDeletedAt +func (r workerQueryDeletedAtDateTime) Field() workerPrismaFields { + return workerFieldDeletedAt } // base struct -type tenantAlertEmailGroupQueryTenantTenant struct{} +type workerQueryLabelsWorkerLabel struct{} -type tenantAlertEmailGroupQueryTenantRelations struct{} +type workerQueryLabelsRelations struct{} -// TenantAlertEmailGroup -> Tenant +// Worker -> Labels // // @relation // @required -func (tenantAlertEmailGroupQueryTenantRelations) Where( +func (workerQueryLabelsRelations) Some( + params ...WorkerLabelWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ + data: builder.Field{ + Name: "labels", + Fields: []builder.Field{ + { + Name: "some", + Fields: fields, + }, + }, + }, + } +} + +// Worker -> Labels +// +// @relation +// @required +func (workerQueryLabelsRelations) Every( + params ...WorkerLabelWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ + data: builder.Field{ + Name: "labels", + Fields: []builder.Field{ + { + Name: "every", + Fields: fields, + }, + }, + }, + } +} + +// Worker -> Labels +// +// @relation +// @required +func (workerQueryLabelsRelations) None( + params ...WorkerLabelWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ + data: builder.Field{ + Name: "labels", + Fields: []builder.Field{ + { + Name: "none", + Fields: fields, + }, + }, + }, + } +} + +func (workerQueryLabelsRelations) Fetch( + + params ...WorkerLabelWhereParam, + +) workerToLabelsFindMany { + var v workerToLabelsFindMany + + v.query.Operation = "query" + v.query.Method = "labels" + v.query.Outputs = workerLabelOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workerQueryLabelsRelations) Link( + params ...WorkerLabelWhereParam, +) workerSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSetParam{ + data: builder.Field{ + Name: "labels", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, + }, + }, + }, + } +} + +func (r workerQueryLabelsRelations) Unlink( + params ...WorkerLabelWhereParam, +) workerSetParam { + var v workerSetParam + + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workerSetParam{ + data: builder.Field{ + Name: "labels", + Fields: []builder.Field{ + { + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), + }, + }, + }, + } + + return v +} + +func (r workerQueryLabelsWorkerLabel) Field() workerPrismaFields { + return workerFieldLabels +} + +// base struct +type workerQueryTenantTenant struct{} + +type workerQueryTenantRelations struct{} + +// Worker -> Tenant +// +// @relation +// @required +func (workerQueryTenantRelations) Where( params ...TenantWhereParam, -) tenantAlertEmailGroupDefaultParam { +) workerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return tenantAlertEmailGroupDefaultParam{ + return workerDefaultParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -161299,8 +162470,8 @@ func (tenantAlertEmailGroupQueryTenantRelations) Where( } } -func (tenantAlertEmailGroupQueryTenantRelations) Fetch() tenantAlertEmailGroupToTenantFindUnique { - var v tenantAlertEmailGroupToTenantFindUnique +func (workerQueryTenantRelations) Fetch() workerToTenantFindUnique { + var v workerToTenantFindUnique v.query.Operation = "query" v.query.Method = "tenant" @@ -161309,19 +162480,19 @@ func (tenantAlertEmailGroupQueryTenantRelations) Fetch() tenantAlertEmailGroupTo return v } -func (r tenantAlertEmailGroupQueryTenantRelations) Link( +func (r workerQueryTenantRelations) Link( params TenantWhereParam, -) tenantAlertEmailGroupWithPrismaTenantSetParam { +) workerWithPrismaTenantSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return tenantAlertEmailGroupWithPrismaTenantSetParam{} + return workerWithPrismaTenantSetParam{} } fields = append(fields, f) - return tenantAlertEmailGroupWithPrismaTenantSetParam{ + return workerWithPrismaTenantSetParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -161334,10 +162505,10 @@ func (r tenantAlertEmailGroupQueryTenantRelations) Link( } } -func (r tenantAlertEmailGroupQueryTenantRelations) Unlink() tenantAlertEmailGroupWithPrismaTenantSetParam { - var v tenantAlertEmailGroupWithPrismaTenantSetParam +func (r workerQueryTenantRelations) Unlink() workerWithPrismaTenantSetParam { + var v workerWithPrismaTenantSetParam - v = tenantAlertEmailGroupWithPrismaTenantSetParam{ + v = workerWithPrismaTenantSetParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -161352,17 +162523,17 @@ func (r tenantAlertEmailGroupQueryTenantRelations) Unlink() tenantAlertEmailGrou return v } -func (r tenantAlertEmailGroupQueryTenantTenant) Field() tenantAlertEmailGroupPrismaFields { - return tenantAlertEmailGroupFieldTenant +func (r workerQueryTenantTenant) Field() workerPrismaFields { + return workerFieldTenant } // base struct -type tenantAlertEmailGroupQueryTenantIDString struct{} +type workerQueryTenantIDString struct{} // Set the required value of TenantID -func (r tenantAlertEmailGroupQueryTenantIDString) Set(value string) tenantAlertEmailGroupSetParam { +func (r workerQueryTenantIDString) Set(value string) workerSetParam { - return tenantAlertEmailGroupSetParam{ + return workerSetParam{ data: builder.Field{ Name: "tenantId", Value: value, @@ -161372,17 +162543,17 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Set(value string) tenantAlertE } // Set the optional value of TenantID dynamically -func (r tenantAlertEmailGroupQueryTenantIDString) SetIfPresent(value *String) tenantAlertEmailGroupSetParam { +func (r workerQueryTenantIDString) SetIfPresent(value *String) workerSetParam { if value == nil { - return tenantAlertEmailGroupSetParam{} + return workerSetParam{} } return r.Set(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Equals(value string) tenantAlertEmailGroupWithPrismaTenantIDEqualsParam { +func (r workerQueryTenantIDString) Equals(value string) workerWithPrismaTenantIDEqualsParam { - return tenantAlertEmailGroupWithPrismaTenantIDEqualsParam{ + return workerWithPrismaTenantIDEqualsParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161395,15 +162566,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Equals(value string) tenantAle } } -func (r tenantAlertEmailGroupQueryTenantIDString) EqualsIfPresent(value *string) tenantAlertEmailGroupWithPrismaTenantIDEqualsParam { +func (r workerQueryTenantIDString) EqualsIfPresent(value *string) workerWithPrismaTenantIDEqualsParam { if value == nil { - return tenantAlertEmailGroupWithPrismaTenantIDEqualsParam{} + return workerWithPrismaTenantIDEqualsParam{} } return r.Equals(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Value: direction, @@ -161411,8 +162582,8 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Order(direction SortOrder) ten } } -func (r tenantAlertEmailGroupQueryTenantIDString) Cursor(cursor string) tenantAlertEmailGroupCursorParam { - return tenantAlertEmailGroupCursorParam{ +func (r workerQueryTenantIDString) Cursor(cursor string) workerCursorParam { + return workerCursorParam{ data: builder.Field{ Name: "tenantId", Value: cursor, @@ -161420,8 +162591,8 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Cursor(cursor string) tenantAl } } -func (r tenantAlertEmailGroupQueryTenantIDString) In(value []string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) In(value []string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161434,15 +162605,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) In(value []string) tenantAlert } } -func (r tenantAlertEmailGroupQueryTenantIDString) InIfPresent(value []string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) InIfPresent(value []string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.In(value) } -func (r tenantAlertEmailGroupQueryTenantIDString) NotIn(value []string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) NotIn(value []string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161455,15 +162626,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) NotIn(value []string) tenantAl } } -func (r tenantAlertEmailGroupQueryTenantIDString) NotInIfPresent(value []string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) NotInIfPresent(value []string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.NotIn(value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Lt(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) Lt(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161476,15 +162647,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Lt(value string) tenantAlertEm } } -func (r tenantAlertEmailGroupQueryTenantIDString) LtIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) LtIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lt(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Lte(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) Lte(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161497,15 +162668,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Lte(value string) tenantAlertE } } -func (r tenantAlertEmailGroupQueryTenantIDString) LteIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) LteIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lte(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Gt(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) Gt(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161518,15 +162689,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Gt(value string) tenantAlertEm } } -func (r tenantAlertEmailGroupQueryTenantIDString) GtIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) GtIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gt(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Gte(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) Gte(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161539,15 +162710,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Gte(value string) tenantAlertE } } -func (r tenantAlertEmailGroupQueryTenantIDString) GteIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) GteIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gte(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Contains(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) Contains(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161560,15 +162731,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Contains(value string) tenantA } } -func (r tenantAlertEmailGroupQueryTenantIDString) ContainsIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) ContainsIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Contains(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) StartsWith(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) StartsWith(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161581,15 +162752,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) StartsWith(value string) tenan } } -func (r tenantAlertEmailGroupQueryTenantIDString) StartsWithIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) StartsWithIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.StartsWith(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) EndsWith(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) EndsWith(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161602,15 +162773,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) EndsWith(value string) tenantA } } -func (r tenantAlertEmailGroupQueryTenantIDString) EndsWithIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) EndsWithIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.EndsWith(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Mode(value QueryMode) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) Mode(value QueryMode) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161623,15 +162794,15 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Mode(value QueryMode) tenantAl } } -func (r tenantAlertEmailGroupQueryTenantIDString) ModeIfPresent(value *QueryMode) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) ModeIfPresent(value *QueryMode) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Mode(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Not(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) Not(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161644,17 +162815,17 @@ func (r tenantAlertEmailGroupQueryTenantIDString) Not(value string) tenantAlertE } } -func (r tenantAlertEmailGroupQueryTenantIDString) NotIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) NotIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r tenantAlertEmailGroupQueryTenantIDString) HasPrefix(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) HasPrefix(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161668,17 +162839,17 @@ func (r tenantAlertEmailGroupQueryTenantIDString) HasPrefix(value string) tenant } // deprecated: Use StartsWithIfPresent instead. -func (r tenantAlertEmailGroupQueryTenantIDString) HasPrefixIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) HasPrefixIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r tenantAlertEmailGroupQueryTenantIDString) HasSuffix(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryTenantIDString) HasSuffix(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -161692,46 +162863,62 @@ func (r tenantAlertEmailGroupQueryTenantIDString) HasSuffix(value string) tenant } // deprecated: Use EndsWithIfPresent instead. -func (r tenantAlertEmailGroupQueryTenantIDString) HasSuffixIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryTenantIDString) HasSuffixIfPresent(value *string) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.HasSuffix(*value) } -func (r tenantAlertEmailGroupQueryTenantIDString) Field() tenantAlertEmailGroupPrismaFields { - return tenantAlertEmailGroupFieldTenantID +func (r workerQueryTenantIDString) Field() workerPrismaFields { + return workerFieldTenantID } // base struct -type tenantAlertEmailGroupQueryEmailsString struct{} +type workerQueryLastHeartbeatAtDateTime struct{} -// Set the required value of Emails -func (r tenantAlertEmailGroupQueryEmailsString) Set(value string) tenantAlertEmailGroupWithPrismaEmailsSetParam { +// Set the optional value of LastHeartbeatAt +func (r workerQueryLastHeartbeatAtDateTime) Set(value DateTime) workerSetParam { - return tenantAlertEmailGroupWithPrismaEmailsSetParam{ + return workerSetParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Value: value, }, } } -// Set the optional value of Emails dynamically -func (r tenantAlertEmailGroupQueryEmailsString) SetIfPresent(value *String) tenantAlertEmailGroupWithPrismaEmailsSetParam { +// Set the optional value of LastHeartbeatAt dynamically +func (r workerQueryLastHeartbeatAtDateTime) SetIfPresent(value *DateTime) workerSetParam { if value == nil { - return tenantAlertEmailGroupWithPrismaEmailsSetParam{} + return workerSetParam{} } return r.Set(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Equals(value string) tenantAlertEmailGroupWithPrismaEmailsEqualsParam { +// Set the optional value of LastHeartbeatAt dynamically +func (r workerQueryLastHeartbeatAtDateTime) SetOptional(value *DateTime) workerSetParam { + if value == nil { - return tenantAlertEmailGroupWithPrismaEmailsEqualsParam{ + var v *DateTime + return workerSetParam{ + data: builder.Field{ + Name: "lastHeartbeatAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workerQueryLastHeartbeatAtDateTime) Equals(value DateTime) workerWithPrismaLastHeartbeatAtEqualsParam { + + return workerWithPrismaLastHeartbeatAtEqualsParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "equals", @@ -161742,35 +162929,64 @@ func (r tenantAlertEmailGroupQueryEmailsString) Equals(value string) tenantAlert } } -func (r tenantAlertEmailGroupQueryEmailsString) EqualsIfPresent(value *string) tenantAlertEmailGroupWithPrismaEmailsEqualsParam { +func (r workerQueryLastHeartbeatAtDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaLastHeartbeatAtEqualsParam { if value == nil { - return tenantAlertEmailGroupWithPrismaEmailsEqualsParam{} + return workerWithPrismaLastHeartbeatAtEqualsParam{} } return r.Equals(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryLastHeartbeatAtDateTime) EqualsOptional(value *DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workerQueryLastHeartbeatAtDateTime) IsNull() workerDefaultParam { + var str *string = nil + return workerDefaultParam{ + data: builder.Field{ + Name: "lastHeartbeatAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workerQueryLastHeartbeatAtDateTime) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ + data: builder.Field{ + Name: "lastHeartbeatAt", Value: direction, }, } } -func (r tenantAlertEmailGroupQueryEmailsString) Cursor(cursor string) tenantAlertEmailGroupCursorParam { - return tenantAlertEmailGroupCursorParam{ +func (r workerQueryLastHeartbeatAtDateTime) Cursor(cursor DateTime) workerCursorParam { + return workerCursorParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Value: cursor, }, } } -func (r tenantAlertEmailGroupQueryEmailsString) In(value []string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryLastHeartbeatAtDateTime) In(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "in", @@ -161781,17 +162997,17 @@ func (r tenantAlertEmailGroupQueryEmailsString) In(value []string) tenantAlertEm } } -func (r tenantAlertEmailGroupQueryEmailsString) InIfPresent(value []string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryLastHeartbeatAtDateTime) InIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.In(value) } -func (r tenantAlertEmailGroupQueryEmailsString) NotIn(value []string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryLastHeartbeatAtDateTime) NotIn(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "notIn", @@ -161802,17 +163018,17 @@ func (r tenantAlertEmailGroupQueryEmailsString) NotIn(value []string) tenantAler } } -func (r tenantAlertEmailGroupQueryEmailsString) NotInIfPresent(value []string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryLastHeartbeatAtDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.NotIn(value) } -func (r tenantAlertEmailGroupQueryEmailsString) Lt(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryLastHeartbeatAtDateTime) Lt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "lt", @@ -161823,17 +163039,17 @@ func (r tenantAlertEmailGroupQueryEmailsString) Lt(value string) tenantAlertEmai } } -func (r tenantAlertEmailGroupQueryEmailsString) LtIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryLastHeartbeatAtDateTime) LtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lt(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Lte(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryLastHeartbeatAtDateTime) Lte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "lte", @@ -161844,17 +163060,17 @@ func (r tenantAlertEmailGroupQueryEmailsString) Lte(value string) tenantAlertEma } } -func (r tenantAlertEmailGroupQueryEmailsString) LteIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryLastHeartbeatAtDateTime) LteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Lte(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Gt(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryLastHeartbeatAtDateTime) Gt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "gt", @@ -161865,17 +163081,17 @@ func (r tenantAlertEmailGroupQueryEmailsString) Gt(value string) tenantAlertEmai } } -func (r tenantAlertEmailGroupQueryEmailsString) GtIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryLastHeartbeatAtDateTime) GtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gt(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Gte(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryLastHeartbeatAtDateTime) Gte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { Name: "gte", @@ -161886,20 +163102,20 @@ func (r tenantAlertEmailGroupQueryEmailsString) Gte(value string) tenantAlertEma } } -func (r tenantAlertEmailGroupQueryEmailsString) GteIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryLastHeartbeatAtDateTime) GteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } return r.Gte(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Contains(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +func (r workerQueryLastHeartbeatAtDateTime) Not(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -161907,20 +163123,22 @@ func (r tenantAlertEmailGroupQueryEmailsString) Contains(value string) tenantAle } } -func (r tenantAlertEmailGroupQueryEmailsString) ContainsIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryLastHeartbeatAtDateTime) NotIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) StartsWith(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +// deprecated: Use Lt instead. + +func (r workerQueryLastHeartbeatAtDateTime) Before(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -161928,20 +163146,23 @@ func (r tenantAlertEmailGroupQueryEmailsString) StartsWith(value string) tenantA } } -func (r tenantAlertEmailGroupQueryEmailsString) StartsWithIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r workerQueryLastHeartbeatAtDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) EndsWith(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +// deprecated: Use Gt instead. + +func (r workerQueryLastHeartbeatAtDateTime) After(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -161949,20 +163170,23 @@ func (r tenantAlertEmailGroupQueryEmailsString) EndsWith(value string) tenantAle } } -func (r tenantAlertEmailGroupQueryEmailsString) EndsWithIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workerQueryLastHeartbeatAtDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Mode(value QueryMode) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +// deprecated: Use Lte instead. + +func (r workerQueryLastHeartbeatAtDateTime) BeforeEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -161970,20 +163194,23 @@ func (r tenantAlertEmailGroupQueryEmailsString) Mode(value QueryMode) tenantAler } } -func (r tenantAlertEmailGroupQueryEmailsString) ModeIfPresent(value *QueryMode) tenantAlertEmailGroupDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workerQueryLastHeartbeatAtDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Not(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +// deprecated: Use Gte instead. + +func (r workerQueryLastHeartbeatAtDateTime) AfterEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "emails", + Name: "lastHeartbeatAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -161991,46 +163218,50 @@ func (r tenantAlertEmailGroupQueryEmailsString) Not(value string) tenantAlertEma } } -func (r tenantAlertEmailGroupQueryEmailsString) NotIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r workerQueryLastHeartbeatAtDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r workerQueryLastHeartbeatAtDateTime) Field() workerPrismaFields { + return workerFieldLastHeartbeatAt +} -func (r tenantAlertEmailGroupQueryEmailsString) HasPrefix(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ +// base struct +type workerQueryIsPausedBoolean struct{} + +// Set the required value of IsPaused +func (r workerQueryIsPausedBoolean) Set(value bool) workerSetParam { + + return workerSetParam{ data: builder.Field{ - Name: "emails", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, + Name: "isPaused", + Value: value, }, } + } -// deprecated: Use StartsWithIfPresent instead. -func (r tenantAlertEmailGroupQueryEmailsString) HasPrefixIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +// Set the optional value of IsPaused dynamically +func (r workerQueryIsPausedBoolean) SetIfPresent(value *Boolean) workerSetParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerSetParam{} } - return r.HasPrefix(*value) + + return r.Set(*value) } -// deprecated: Use EndsWith instead. +func (r workerQueryIsPausedBoolean) Equals(value bool) workerWithPrismaIsPausedEqualsParam { -func (r tenantAlertEmailGroupQueryEmailsString) HasSuffix(value string) tenantAlertEmailGroupDefaultParam { - return tenantAlertEmailGroupDefaultParam{ + return workerWithPrismaIsPausedEqualsParam{ data: builder.Field{ - Name: "emails", + Name: "isPaused", Fields: []builder.Field{ { - Name: "ends_with", + Name: "equals", Value: value, }, }, @@ -162038,178 +163269,148 @@ func (r tenantAlertEmailGroupQueryEmailsString) HasSuffix(value string) tenantAl } } -// deprecated: Use EndsWithIfPresent instead. -func (r tenantAlertEmailGroupQueryEmailsString) HasSuffixIfPresent(value *string) tenantAlertEmailGroupDefaultParam { +func (r workerQueryIsPausedBoolean) EqualsIfPresent(value *bool) workerWithPrismaIsPausedEqualsParam { if value == nil { - return tenantAlertEmailGroupDefaultParam{} + return workerWithPrismaIsPausedEqualsParam{} } - return r.HasSuffix(*value) + return r.Equals(*value) } -func (r tenantAlertEmailGroupQueryEmailsString) Field() tenantAlertEmailGroupPrismaFields { - return tenantAlertEmailGroupFieldEmails +func (r workerQueryIsPausedBoolean) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ + data: builder.Field{ + Name: "isPaused", + Value: direction, + }, + } } -// SlackAppWebhook acts as a namespaces to access query methods for the SlackAppWebhook model -var SlackAppWebhook = slackAppWebhookQuery{} - -// slackAppWebhookQuery exposes query functions for the slackAppWebhook model -type slackAppWebhookQuery struct { - - // ID - // - // @required - ID slackAppWebhookQueryIDString - - // CreatedAt - // - // @required - CreatedAt slackAppWebhookQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt slackAppWebhookQueryUpdatedAtDateTime - - // DeletedAt - // - // @optional - DeletedAt slackAppWebhookQueryDeletedAtDateTime - - Tenant slackAppWebhookQueryTenantRelations - - // TenantID - // - // @required - TenantID slackAppWebhookQueryTenantIDString - - // TeamID - // - // @required - TeamID slackAppWebhookQueryTeamIDString - - // TeamName - // - // @required - TeamName slackAppWebhookQueryTeamNameString - - // ChannelID - // - // @required - ChannelID slackAppWebhookQueryChannelIDString - - // ChannelName - // - // @required - ChannelName slackAppWebhookQueryChannelNameString +func (r workerQueryIsPausedBoolean) Cursor(cursor bool) workerCursorParam { + return workerCursorParam{ + data: builder.Field{ + Name: "isPaused", + Value: cursor, + }, + } +} - // WebhookURL - // - // @required - WebhookURL slackAppWebhookQueryWebhookURLBytes +func (r workerQueryIsPausedBoolean) Field() workerPrismaFields { + return workerFieldIsPaused } -func (slackAppWebhookQuery) Not(params ...SlackAppWebhookWhereParam) slackAppWebhookDefaultParam { - var fields []builder.Field +// base struct +type workerQueryIsActiveBoolean struct{} - for _, q := range params { - fields = append(fields, q.field()) - } +// Set the required value of IsActive +func (r workerQueryIsActiveBoolean) Set(value bool) workerSetParam { - return slackAppWebhookDefaultParam{ + return workerSetParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "isActive", + Value: value, }, } -} -func (slackAppWebhookQuery) Or(params ...SlackAppWebhookWhereParam) slackAppWebhookDefaultParam { - var fields []builder.Field +} - for _, q := range params { - fields = append(fields, q.field()) +// Set the optional value of IsActive dynamically +func (r workerQueryIsActiveBoolean) SetIfPresent(value *Boolean) workerSetParam { + if value == nil { + return workerSetParam{} } - return slackAppWebhookDefaultParam{ + return r.Set(*value) +} + +func (r workerQueryIsActiveBoolean) Equals(value bool) workerWithPrismaIsActiveEqualsParam { + + return workerWithPrismaIsActiveEqualsParam{ data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, + Name: "isActive", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } } -func (slackAppWebhookQuery) And(params ...SlackAppWebhookWhereParam) slackAppWebhookDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r workerQueryIsActiveBoolean) EqualsIfPresent(value *bool) workerWithPrismaIsActiveEqualsParam { + if value == nil { + return workerWithPrismaIsActiveEqualsParam{} } + return r.Equals(*value) +} - return slackAppWebhookDefaultParam{ +func (r workerQueryIsActiveBoolean) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, + Name: "isActive", + Value: direction, }, } } -func (slackAppWebhookQuery) TenantIDTeamIDChannelID( - _tenantID SlackAppWebhookWithPrismaTenantIDWhereParam, - - _teamID SlackAppWebhookWithPrismaTeamIDWhereParam, - - _channelID SlackAppWebhookWithPrismaChannelIDWhereParam, -) SlackAppWebhookEqualsUniqueWhereParam { - var fields []builder.Field - - fields = append(fields, _tenantID.field()) - fields = append(fields, _teamID.field()) - fields = append(fields, _channelID.field()) - - return slackAppWebhookEqualsUniqueParam{ +func (r workerQueryIsActiveBoolean) Cursor(cursor bool) workerCursorParam { + return workerCursorParam{ data: builder.Field{ - Name: "tenantId_teamId_channelId", - Fields: builder.TransformEquals(fields), + Name: "isActive", + Value: cursor, }, } } +func (r workerQueryIsActiveBoolean) Field() workerPrismaFields { + return workerFieldIsActive +} + // base struct -type slackAppWebhookQueryIDString struct{} +type workerQueryLastListenerEstablishedDateTime struct{} -// Set the required value of ID -func (r slackAppWebhookQueryIDString) Set(value string) slackAppWebhookSetParam { +// Set the optional value of LastListenerEstablished +func (r workerQueryLastListenerEstablishedDateTime) Set(value DateTime) workerSetParam { - return slackAppWebhookSetParam{ + return workerSetParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Value: value, }, } } -// Set the optional value of ID dynamically -func (r slackAppWebhookQueryIDString) SetIfPresent(value *String) slackAppWebhookSetParam { +// Set the optional value of LastListenerEstablished dynamically +func (r workerQueryLastListenerEstablishedDateTime) SetIfPresent(value *DateTime) workerSetParam { if value == nil { - return slackAppWebhookSetParam{} + return workerSetParam{} } return r.Set(*value) } -func (r slackAppWebhookQueryIDString) Equals(value string) slackAppWebhookWithPrismaIDEqualsUniqueParam { +// Set the optional value of LastListenerEstablished dynamically +func (r workerQueryLastListenerEstablishedDateTime) SetOptional(value *DateTime) workerSetParam { + if value == nil { - return slackAppWebhookWithPrismaIDEqualsUniqueParam{ + var v *DateTime + return workerSetParam{ + data: builder.Field{ + Name: "lastListenerEstablished", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workerQueryLastListenerEstablishedDateTime) Equals(value DateTime) workerWithPrismaLastListenerEstablishedEqualsParam { + + return workerWithPrismaLastListenerEstablishedEqualsParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { Name: "equals", @@ -162220,35 +163421,64 @@ func (r slackAppWebhookQueryIDString) Equals(value string) slackAppWebhookWithPr } } -func (r slackAppWebhookQueryIDString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaIDEqualsUniqueParam { +func (r workerQueryLastListenerEstablishedDateTime) EqualsIfPresent(value *DateTime) workerWithPrismaLastListenerEstablishedEqualsParam { if value == nil { - return slackAppWebhookWithPrismaIDEqualsUniqueParam{} + return workerWithPrismaLastListenerEstablishedEqualsParam{} } return r.Equals(*value) } -func (r slackAppWebhookQueryIDString) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryLastListenerEstablishedDateTime) EqualsOptional(value *DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workerQueryLastListenerEstablishedDateTime) IsNull() workerDefaultParam { + var str *string = nil + return workerDefaultParam{ + data: builder.Field{ + Name: "lastListenerEstablished", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workerQueryLastListenerEstablishedDateTime) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ + data: builder.Field{ + Name: "lastListenerEstablished", Value: direction, }, } } -func (r slackAppWebhookQueryIDString) Cursor(cursor string) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ +func (r workerQueryLastListenerEstablishedDateTime) Cursor(cursor DateTime) workerCursorParam { + return workerCursorParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Value: cursor, }, } } -func (r slackAppWebhookQueryIDString) In(value []string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +func (r workerQueryLastListenerEstablishedDateTime) In(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { Name: "in", @@ -162259,17 +163489,17 @@ func (r slackAppWebhookQueryIDString) In(value []string) slackAppWebhookParamUni } } -func (r slackAppWebhookQueryIDString) InIfPresent(value []string) slackAppWebhookParamUnique { +func (r workerQueryLastListenerEstablishedDateTime) InIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } return r.In(value) } -func (r slackAppWebhookQueryIDString) NotIn(value []string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +func (r workerQueryLastListenerEstablishedDateTime) NotIn(value []DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { Name: "notIn", @@ -162280,17 +163510,17 @@ func (r slackAppWebhookQueryIDString) NotIn(value []string) slackAppWebhookParam } } -func (r slackAppWebhookQueryIDString) NotInIfPresent(value []string) slackAppWebhookParamUnique { +func (r workerQueryLastListenerEstablishedDateTime) NotInIfPresent(value []DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } return r.NotIn(value) } -func (r slackAppWebhookQueryIDString) Lt(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +func (r workerQueryLastListenerEstablishedDateTime) Lt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { Name: "lt", @@ -162301,17 +163531,17 @@ func (r slackAppWebhookQueryIDString) Lt(value string) slackAppWebhookParamUniqu } } -func (r slackAppWebhookQueryIDString) LtIfPresent(value *string) slackAppWebhookParamUnique { +func (r workerQueryLastListenerEstablishedDateTime) LtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } return r.Lt(*value) } -func (r slackAppWebhookQueryIDString) Lte(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +func (r workerQueryLastListenerEstablishedDateTime) Lte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { Name: "lte", @@ -162322,17 +163552,17 @@ func (r slackAppWebhookQueryIDString) Lte(value string) slackAppWebhookParamUniq } } -func (r slackAppWebhookQueryIDString) LteIfPresent(value *string) slackAppWebhookParamUnique { +func (r workerQueryLastListenerEstablishedDateTime) LteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } return r.Lte(*value) } -func (r slackAppWebhookQueryIDString) Gt(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +func (r workerQueryLastListenerEstablishedDateTime) Gt(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { Name: "gt", @@ -162343,17 +163573,17 @@ func (r slackAppWebhookQueryIDString) Gt(value string) slackAppWebhookParamUniqu } } -func (r slackAppWebhookQueryIDString) GtIfPresent(value *string) slackAppWebhookParamUnique { +func (r workerQueryLastListenerEstablishedDateTime) GtIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } return r.Gt(*value) } -func (r slackAppWebhookQueryIDString) Gte(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +func (r workerQueryLastListenerEstablishedDateTime) Gte(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { Name: "gte", @@ -162364,20 +163594,20 @@ func (r slackAppWebhookQueryIDString) Gte(value string) slackAppWebhookParamUniq } } -func (r slackAppWebhookQueryIDString) GteIfPresent(value *string) slackAppWebhookParamUnique { +func (r workerQueryLastListenerEstablishedDateTime) GteIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } return r.Gte(*value) } -func (r slackAppWebhookQueryIDString) Contains(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +func (r workerQueryLastListenerEstablishedDateTime) Not(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -162385,20 +163615,22 @@ func (r slackAppWebhookQueryIDString) Contains(value string) slackAppWebhookPara } } -func (r slackAppWebhookQueryIDString) ContainsIfPresent(value *string) slackAppWebhookParamUnique { +func (r workerQueryLastListenerEstablishedDateTime) NotIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r slackAppWebhookQueryIDString) StartsWith(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +// deprecated: Use Lt instead. + +func (r workerQueryLastListenerEstablishedDateTime) Before(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -162406,20 +163638,23 @@ func (r slackAppWebhookQueryIDString) StartsWith(value string) slackAppWebhookPa } } -func (r slackAppWebhookQueryIDString) StartsWithIfPresent(value *string) slackAppWebhookParamUnique { +// deprecated: Use LtIfPresent instead. +func (r workerQueryLastListenerEstablishedDateTime) BeforeIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r slackAppWebhookQueryIDString) EndsWith(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +// deprecated: Use Gt instead. + +func (r workerQueryLastListenerEstablishedDateTime) After(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -162427,20 +163662,23 @@ func (r slackAppWebhookQueryIDString) EndsWith(value string) slackAppWebhookPara } } -func (r slackAppWebhookQueryIDString) EndsWithIfPresent(value *string) slackAppWebhookParamUnique { +// deprecated: Use GtIfPresent instead. +func (r workerQueryLastListenerEstablishedDateTime) AfterIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r slackAppWebhookQueryIDString) Mode(value QueryMode) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +// deprecated: Use Lte instead. + +func (r workerQueryLastListenerEstablishedDateTime) BeforeEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -162448,20 +163686,23 @@ func (r slackAppWebhookQueryIDString) Mode(value QueryMode) slackAppWebhookParam } } -func (r slackAppWebhookQueryIDString) ModeIfPresent(value *QueryMode) slackAppWebhookParamUnique { +// deprecated: Use LteIfPresent instead. +func (r workerQueryLastListenerEstablishedDateTime) BeforeEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r slackAppWebhookQueryIDString) Not(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +// deprecated: Use Gte instead. + +func (r workerQueryLastListenerEstablishedDateTime) AfterEquals(value DateTime) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "id", + Name: "lastListenerEstablished", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -162469,46 +163710,50 @@ func (r slackAppWebhookQueryIDString) Not(value string) slackAppWebhookParamUniq } } -func (r slackAppWebhookQueryIDString) NotIfPresent(value *string) slackAppWebhookParamUnique { +// deprecated: Use GteIfPresent instead. +func (r workerQueryLastListenerEstablishedDateTime) AfterEqualsIfPresent(value *DateTime) workerDefaultParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r workerQueryLastListenerEstablishedDateTime) Field() workerPrismaFields { + return workerFieldLastListenerEstablished +} -func (r slackAppWebhookQueryIDString) HasPrefix(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ +// base struct +type workerQueryNameString struct{} + +// Set the required value of Name +func (r workerQueryNameString) Set(value string) workerWithPrismaNameSetParam { + + return workerWithPrismaNameSetParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, + Name: "name", + Value: value, }, } + } -// deprecated: Use StartsWithIfPresent instead. -func (r slackAppWebhookQueryIDString) HasPrefixIfPresent(value *string) slackAppWebhookParamUnique { +// Set the optional value of Name dynamically +func (r workerQueryNameString) SetIfPresent(value *String) workerWithPrismaNameSetParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerWithPrismaNameSetParam{} } - return r.HasPrefix(*value) + + return r.Set(*value) } -// deprecated: Use EndsWith instead. +func (r workerQueryNameString) Equals(value string) workerWithPrismaNameEqualsParam { -func (r slackAppWebhookQueryIDString) HasSuffix(value string) slackAppWebhookParamUnique { - return slackAppWebhookParamUnique{ + return workerWithPrismaNameEqualsParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "ends_with", + Name: "equals", Value: value, }, }, @@ -162516,50 +163761,59 @@ func (r slackAppWebhookQueryIDString) HasSuffix(value string) slackAppWebhookPar } } -// deprecated: Use EndsWithIfPresent instead. -func (r slackAppWebhookQueryIDString) HasSuffixIfPresent(value *string) slackAppWebhookParamUnique { +func (r workerQueryNameString) EqualsIfPresent(value *string) workerWithPrismaNameEqualsParam { if value == nil { - return slackAppWebhookParamUnique{} + return workerWithPrismaNameEqualsParam{} } - return r.HasSuffix(*value) + return r.Equals(*value) } -func (r slackAppWebhookQueryIDString) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldID +func (r workerQueryNameString) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ + data: builder.Field{ + Name: "name", + Value: direction, + }, + } } -// base struct -type slackAppWebhookQueryCreatedAtDateTime struct{} - -// Set the required value of CreatedAt -func (r slackAppWebhookQueryCreatedAtDateTime) Set(value DateTime) slackAppWebhookSetParam { - - return slackAppWebhookSetParam{ +func (r workerQueryNameString) Cursor(cursor string) workerCursorParam { + return workerCursorParam{ data: builder.Field{ - Name: "createdAt", - Value: value, + Name: "name", + Value: cursor, }, } +} +func (r workerQueryNameString) In(value []string) workerDefaultParam { + return workerDefaultParam{ + data: builder.Field{ + Name: "name", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } } -// Set the optional value of CreatedAt dynamically -func (r slackAppWebhookQueryCreatedAtDateTime) SetIfPresent(value *DateTime) slackAppWebhookSetParam { +func (r workerQueryNameString) InIfPresent(value []string) workerDefaultParam { if value == nil { - return slackAppWebhookSetParam{} + return workerDefaultParam{} } - - return r.Set(*value) + return r.In(value) } -func (r slackAppWebhookQueryCreatedAtDateTime) Equals(value DateTime) slackAppWebhookWithPrismaCreatedAtEqualsParam { - - return slackAppWebhookWithPrismaCreatedAtEqualsParam{ +func (r workerQueryNameString) NotIn(value []string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "equals", + Name: "notIn", Value: value, }, }, @@ -162567,38 +163821,62 @@ func (r slackAppWebhookQueryCreatedAtDateTime) Equals(value DateTime) slackAppWe } } -func (r slackAppWebhookQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) slackAppWebhookWithPrismaCreatedAtEqualsParam { +func (r workerQueryNameString) NotInIfPresent(value []string) workerDefaultParam { if value == nil { - return slackAppWebhookWithPrismaCreatedAtEqualsParam{} + return workerDefaultParam{} } - return r.Equals(*value) + return r.NotIn(value) } -func (r slackAppWebhookQueryCreatedAtDateTime) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) Lt(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", - Value: direction, + Name: "name", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, }, } } -func (r slackAppWebhookQueryCreatedAtDateTime) Cursor(cursor DateTime) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ +func (r workerQueryNameString) LtIfPresent(value *string) workerDefaultParam { + if value == nil { + return workerDefaultParam{} + } + return r.Lt(*value) +} + +func (r workerQueryNameString) Lte(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", - Value: cursor, + Name: "name", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, }, } } -func (r slackAppWebhookQueryCreatedAtDateTime) In(value []DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) LteIfPresent(value *string) workerDefaultParam { + if value == nil { + return workerDefaultParam{} + } + return r.Lte(*value) +} + +func (r workerQueryNameString) Gt(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "in", + Name: "gt", Value: value, }, }, @@ -162606,20 +163884,20 @@ func (r slackAppWebhookQueryCreatedAtDateTime) In(value []DateTime) slackAppWebh } } -func (r slackAppWebhookQueryCreatedAtDateTime) InIfPresent(value []DateTime) slackAppWebhookDefaultParam { +func (r workerQueryNameString) GtIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.In(value) + return r.Gt(*value) } -func (r slackAppWebhookQueryCreatedAtDateTime) NotIn(value []DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) Gte(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "notIn", + Name: "gte", Value: value, }, }, @@ -162627,20 +163905,20 @@ func (r slackAppWebhookQueryCreatedAtDateTime) NotIn(value []DateTime) slackAppW } } -func (r slackAppWebhookQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) slackAppWebhookDefaultParam { +func (r workerQueryNameString) GteIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.NotIn(value) + return r.Gte(*value) } -func (r slackAppWebhookQueryCreatedAtDateTime) Lt(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) Contains(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "lt", + Name: "contains", Value: value, }, }, @@ -162648,20 +163926,20 @@ func (r slackAppWebhookQueryCreatedAtDateTime) Lt(value DateTime) slackAppWebhoo } } -func (r slackAppWebhookQueryCreatedAtDateTime) LtIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryNameString) ContainsIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.Lt(*value) + return r.Contains(*value) } -func (r slackAppWebhookQueryCreatedAtDateTime) Lte(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) StartsWith(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "lte", + Name: "startsWith", Value: value, }, }, @@ -162669,20 +163947,20 @@ func (r slackAppWebhookQueryCreatedAtDateTime) Lte(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryCreatedAtDateTime) LteIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryNameString) StartsWithIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.Lte(*value) + return r.StartsWith(*value) } -func (r slackAppWebhookQueryCreatedAtDateTime) Gt(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) EndsWith(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "gt", + Name: "endsWith", Value: value, }, }, @@ -162690,20 +163968,20 @@ func (r slackAppWebhookQueryCreatedAtDateTime) Gt(value DateTime) slackAppWebhoo } } -func (r slackAppWebhookQueryCreatedAtDateTime) GtIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryNameString) EndsWithIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.Gt(*value) + return r.EndsWith(*value) } -func (r slackAppWebhookQueryCreatedAtDateTime) Gte(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) Mode(value QueryMode) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "gte", + Name: "mode", Value: value, }, }, @@ -162711,17 +163989,17 @@ func (r slackAppWebhookQueryCreatedAtDateTime) Gte(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryCreatedAtDateTime) GteIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryNameString) ModeIfPresent(value *QueryMode) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.Gte(*value) + return r.Mode(*value) } -func (r slackAppWebhookQueryCreatedAtDateTime) Not(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) Not(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { Name: "not", @@ -162732,22 +164010,22 @@ func (r slackAppWebhookQueryCreatedAtDateTime) Not(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryCreatedAtDateTime) NotIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryNameString) NotIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Not(*value) } -// deprecated: Use Lt instead. +// deprecated: Use StartsWith instead. -func (r slackAppWebhookQueryCreatedAtDateTime) Before(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) HasPrefix(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "lt", + Name: "starts_with", Value: value, }, }, @@ -162755,23 +164033,23 @@ func (r slackAppWebhookQueryCreatedAtDateTime) Before(value DateTime) slackAppWe } } -// deprecated: Use LtIfPresent instead. -func (r slackAppWebhookQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) slackAppWebhookDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workerQueryNameString) HasPrefixIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.Before(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gt instead. +// deprecated: Use EndsWith instead. -func (r slackAppWebhookQueryCreatedAtDateTime) After(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryNameString) HasSuffix(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "name", Fields: []builder.Field{ { - Name: "gt", + Name: "ends_with", Value: value, }, }, @@ -162779,95 +164057,151 @@ func (r slackAppWebhookQueryCreatedAtDateTime) After(value DateTime) slackAppWeb } } -// deprecated: Use GtIfPresent instead. -func (r slackAppWebhookQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) slackAppWebhookDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workerQueryNameString) HasSuffixIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.After(*value) + return r.HasSuffix(*value) } -// deprecated: Use Lte instead. +func (r workerQueryNameString) Field() workerPrismaFields { + return workerFieldName +} -func (r slackAppWebhookQueryCreatedAtDateTime) BeforeEquals(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// base struct +type workerQueryDispatcherDispatcher struct{} + +type workerQueryDispatcherRelations struct{} + +// Worker -> Dispatcher +// +// @relation +// @optional +func (workerQueryDispatcherRelations) Where( + params ...DispatcherWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "dispatcher", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -// deprecated: Use LteIfPresent instead. -func (r slackAppWebhookQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.BeforeEquals(*value) +func (workerQueryDispatcherRelations) Fetch() workerToDispatcherFindUnique { + var v workerToDispatcherFindUnique + + v.query.Operation = "query" + v.query.Method = "dispatcher" + v.query.Outputs = dispatcherOutput + + return v } -// deprecated: Use Gte instead. +func (r workerQueryDispatcherRelations) Link( + params DispatcherWhereParam, +) workerSetParam { + var fields []builder.Field -func (r slackAppWebhookQueryCreatedAtDateTime) AfterEquals(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return workerSetParam{} + } + + fields = append(fields, f) + + return workerSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "dispatcher", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// deprecated: Use GteIfPresent instead. -func (r slackAppWebhookQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +func (r workerQueryDispatcherRelations) Unlink() workerSetParam { + var v workerSetParam + + v = workerSetParam{ + data: builder.Field{ + Name: "dispatcher", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, } - return r.AfterEquals(*value) + + return v } -func (r slackAppWebhookQueryCreatedAtDateTime) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldCreatedAt +func (r workerQueryDispatcherDispatcher) Field() workerPrismaFields { + return workerFieldDispatcher } // base struct -type slackAppWebhookQueryUpdatedAtDateTime struct{} +type workerQueryDispatcherIDString struct{} -// Set the required value of UpdatedAt -func (r slackAppWebhookQueryUpdatedAtDateTime) Set(value DateTime) slackAppWebhookSetParam { +// Set the optional value of DispatcherID +func (r workerQueryDispatcherIDString) Set(value string) workerSetParam { - return slackAppWebhookSetParam{ + return workerSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Value: value, }, } } -// Set the optional value of UpdatedAt dynamically -func (r slackAppWebhookQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) slackAppWebhookSetParam { +// Set the optional value of DispatcherID dynamically +func (r workerQueryDispatcherIDString) SetIfPresent(value *String) workerSetParam { if value == nil { - return slackAppWebhookSetParam{} + return workerSetParam{} } return r.Set(*value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) Equals(value DateTime) slackAppWebhookWithPrismaUpdatedAtEqualsParam { +// Set the optional value of DispatcherID dynamically +func (r workerQueryDispatcherIDString) SetOptional(value *String) workerSetParam { + if value == nil { - return slackAppWebhookWithPrismaUpdatedAtEqualsParam{ + var v *string + return workerSetParam{ + data: builder.Field{ + Name: "dispatcherId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workerQueryDispatcherIDString) Equals(value string) workerWithPrismaDispatcherIDEqualsParam { + + return workerWithPrismaDispatcherIDEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { Name: "equals", @@ -162878,35 +164212,64 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) Equals(value DateTime) slackAppWe } } -func (r slackAppWebhookQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) slackAppWebhookWithPrismaUpdatedAtEqualsParam { +func (r workerQueryDispatcherIDString) EqualsIfPresent(value *string) workerWithPrismaDispatcherIDEqualsParam { if value == nil { - return slackAppWebhookWithPrismaUpdatedAtEqualsParam{} + return workerWithPrismaDispatcherIDEqualsParam{} } return r.Equals(*value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) EqualsOptional(value *String) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workerQueryDispatcherIDString) IsNull() workerDefaultParam { + var str *string = nil + return workerDefaultParam{ + data: builder.Field{ + Name: "dispatcherId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workerQueryDispatcherIDString) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ + data: builder.Field{ + Name: "dispatcherId", Value: direction, }, } } -func (r slackAppWebhookQueryUpdatedAtDateTime) Cursor(cursor DateTime) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ +func (r workerQueryDispatcherIDString) Cursor(cursor string) workerCursorParam { + return workerCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Value: cursor, }, } } -func (r slackAppWebhookQueryUpdatedAtDateTime) In(value []DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) In(value []string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { Name: "in", @@ -162917,17 +164280,17 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) In(value []DateTime) slackAppWebh } } -func (r slackAppWebhookQueryUpdatedAtDateTime) InIfPresent(value []DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) InIfPresent(value []string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.In(value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) NotIn(value []DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) NotIn(value []string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { Name: "notIn", @@ -162938,17 +164301,17 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) NotIn(value []DateTime) slackAppW } } -func (r slackAppWebhookQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) NotInIfPresent(value []string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.NotIn(value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) Lt(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) Lt(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { Name: "lt", @@ -162959,17 +164322,17 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) Lt(value DateTime) slackAppWebhoo } } -func (r slackAppWebhookQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) LtIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Lt(*value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) Lte(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) Lte(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { Name: "lte", @@ -162980,17 +164343,17 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) Lte(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) LteIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Lte(*value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) Gt(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) Gt(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { Name: "gt", @@ -163001,17 +164364,17 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) Gt(value DateTime) slackAppWebhoo } } -func (r slackAppWebhookQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) GtIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Gt(*value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) Gte(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) Gte(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { Name: "gte", @@ -163022,20 +164385,20 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) Gte(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) GteIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Gte(*value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) Not(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) Contains(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -163043,22 +164406,41 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) Not(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) ContainsIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r workerQueryDispatcherIDString) StartsWith(value string) workerDefaultParam { + return workerDefaultParam{ + data: builder.Field{ + Name: "dispatcherId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r slackAppWebhookQueryUpdatedAtDateTime) Before(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) StartsWithIfPresent(value *string) workerDefaultParam { + if value == nil { + return workerDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r workerQueryDispatcherIDString) EndsWith(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -163066,23 +164448,41 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) Before(value DateTime) slackAppWe } } -// deprecated: Use LtIfPresent instead. -func (r slackAppWebhookQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) EndsWithIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r workerQueryDispatcherIDString) Mode(value QueryMode) workerDefaultParam { + return workerDefaultParam{ + data: builder.Field{ + Name: "dispatcherId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r slackAppWebhookQueryUpdatedAtDateTime) After(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) ModeIfPresent(value *QueryMode) workerDefaultParam { + if value == nil { + return workerDefaultParam{} + } + return r.Mode(*value) +} + +func (r workerQueryDispatcherIDString) Not(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -163090,23 +164490,22 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) After(value DateTime) slackAppWeb } } -// deprecated: Use GtIfPresent instead. -func (r slackAppWebhookQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryDispatcherIDString) NotIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r slackAppWebhookQueryUpdatedAtDateTime) BeforeEquals(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) HasPrefix(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -163114,23 +164513,23 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) BeforeEquals(value DateTime) slac } } -// deprecated: Use LteIfPresent instead. -func (r slackAppWebhookQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workerQueryDispatcherIDString) HasPrefixIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r slackAppWebhookQueryUpdatedAtDateTime) AfterEquals(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryDispatcherIDString) HasSuffix(value string) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "dispatcherId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -163138,66 +164537,94 @@ func (r slackAppWebhookQueryUpdatedAtDateTime) AfterEquals(value DateTime) slack } } -// deprecated: Use GteIfPresent instead. -func (r slackAppWebhookQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workerQueryDispatcherIDString) HasSuffixIfPresent(value *string) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r slackAppWebhookQueryUpdatedAtDateTime) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldUpdatedAt +func (r workerQueryDispatcherIDString) Field() workerPrismaFields { + return workerFieldDispatcherID } // base struct -type slackAppWebhookQueryDeletedAtDateTime struct{} +type workerQueryMaxRunsInt struct{} -// Set the optional value of DeletedAt -func (r slackAppWebhookQueryDeletedAtDateTime) Set(value DateTime) slackAppWebhookSetParam { +// Set the required value of MaxRuns +func (r workerQueryMaxRunsInt) Set(value int) workerSetParam { - return slackAppWebhookSetParam{ + return workerSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Value: value, }, } } -// Set the optional value of DeletedAt dynamically -func (r slackAppWebhookQueryDeletedAtDateTime) SetIfPresent(value *DateTime) slackAppWebhookSetParam { +// Set the optional value of MaxRuns dynamically +func (r workerQueryMaxRunsInt) SetIfPresent(value *Int) workerSetParam { if value == nil { - return slackAppWebhookSetParam{} + return workerSetParam{} } return r.Set(*value) } -// Set the optional value of DeletedAt dynamically -func (r slackAppWebhookQueryDeletedAtDateTime) SetOptional(value *DateTime) slackAppWebhookSetParam { +// Increment the required value of MaxRuns +func (r workerQueryMaxRunsInt) Increment(value int) workerSetParam { + return workerSetParam{ + data: builder.Field{ + Name: "maxRuns", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} + +func (r workerQueryMaxRunsInt) IncrementIfPresent(value *int) workerSetParam { if value == nil { + return workerSetParam{} + } + return r.Increment(*value) +} - var v *DateTime - return slackAppWebhookSetParam{ - data: builder.Field{ - Name: "deletedAt", - Value: v, +// Decrement the required value of MaxRuns +func (r workerQueryMaxRunsInt) Decrement(value int) workerSetParam { + return workerSetParam{ + data: builder.Field{ + Name: "maxRuns", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, }, - } + }, } - - return r.Set(*value) } -func (r slackAppWebhookQueryDeletedAtDateTime) Equals(value DateTime) slackAppWebhookWithPrismaDeletedAtEqualsParam { +func (r workerQueryMaxRunsInt) DecrementIfPresent(value *int) workerSetParam { + if value == nil { + return workerSetParam{} + } + return r.Decrement(*value) +} - return slackAppWebhookWithPrismaDeletedAtEqualsParam{ +// Multiply the required value of MaxRuns +func (r workerQueryMaxRunsInt) Multiply(value int) workerSetParam { + return workerSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "multiply", Value: value, }, }, @@ -163205,20 +164632,21 @@ func (r slackAppWebhookQueryDeletedAtDateTime) Equals(value DateTime) slackAppWe } } -func (r slackAppWebhookQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) slackAppWebhookWithPrismaDeletedAtEqualsParam { +func (r workerQueryMaxRunsInt) MultiplyIfPresent(value *int) workerSetParam { if value == nil { - return slackAppWebhookWithPrismaDeletedAtEqualsParam{} + return workerSetParam{} } - return r.Equals(*value) + return r.Multiply(*value) } -func (r slackAppWebhookQueryDeletedAtDateTime) EqualsOptional(value *DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// Divide the required value of MaxRuns +func (r workerQueryMaxRunsInt) Divide(value int) workerSetParam { + return workerSetParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ - { - Name: "equals", + builder.Field{ + Name: "divide", Value: value, }, }, @@ -163226,43 +164654,57 @@ func (r slackAppWebhookQueryDeletedAtDateTime) EqualsOptional(value *DateTime) s } } -func (r slackAppWebhookQueryDeletedAtDateTime) IsNull() slackAppWebhookDefaultParam { - var str *string = nil - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) DivideIfPresent(value *int) workerSetParam { + if value == nil { + return workerSetParam{} + } + return r.Divide(*value) +} + +func (r workerQueryMaxRunsInt) Equals(value int) workerWithPrismaMaxRunsEqualsParam { + + return workerWithPrismaMaxRunsEqualsParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "equals", - Value: str, + Value: value, }, }, }, } } -func (r slackAppWebhookQueryDeletedAtDateTime) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) EqualsIfPresent(value *int) workerWithPrismaMaxRunsEqualsParam { + if value == nil { + return workerWithPrismaMaxRunsEqualsParam{} + } + return r.Equals(*value) +} + +func (r workerQueryMaxRunsInt) Order(direction SortOrder) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Value: direction, }, } } -func (r slackAppWebhookQueryDeletedAtDateTime) Cursor(cursor DateTime) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ +func (r workerQueryMaxRunsInt) Cursor(cursor int) workerCursorParam { + return workerCursorParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Value: cursor, }, } } -func (r slackAppWebhookQueryDeletedAtDateTime) In(value []DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) In(value []int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "in", @@ -163273,17 +164715,17 @@ func (r slackAppWebhookQueryDeletedAtDateTime) In(value []DateTime) slackAppWebh } } -func (r slackAppWebhookQueryDeletedAtDateTime) InIfPresent(value []DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) InIfPresent(value []int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.In(value) } -func (r slackAppWebhookQueryDeletedAtDateTime) NotIn(value []DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) NotIn(value []int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "notIn", @@ -163294,17 +164736,17 @@ func (r slackAppWebhookQueryDeletedAtDateTime) NotIn(value []DateTime) slackAppW } } -func (r slackAppWebhookQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) NotInIfPresent(value []int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.NotIn(value) } -func (r slackAppWebhookQueryDeletedAtDateTime) Lt(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) Lt(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "lt", @@ -163315,17 +164757,17 @@ func (r slackAppWebhookQueryDeletedAtDateTime) Lt(value DateTime) slackAppWebhoo } } -func (r slackAppWebhookQueryDeletedAtDateTime) LtIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) LtIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Lt(*value) } -func (r slackAppWebhookQueryDeletedAtDateTime) Lte(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) Lte(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "lte", @@ -163336,17 +164778,17 @@ func (r slackAppWebhookQueryDeletedAtDateTime) Lte(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryDeletedAtDateTime) LteIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) LteIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Lte(*value) } -func (r slackAppWebhookQueryDeletedAtDateTime) Gt(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) Gt(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "gt", @@ -163357,17 +164799,17 @@ func (r slackAppWebhookQueryDeletedAtDateTime) Gt(value DateTime) slackAppWebhoo } } -func (r slackAppWebhookQueryDeletedAtDateTime) GtIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) GtIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Gt(*value) } -func (r slackAppWebhookQueryDeletedAtDateTime) Gte(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) Gte(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "gte", @@ -163378,17 +164820,17 @@ func (r slackAppWebhookQueryDeletedAtDateTime) Gte(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryDeletedAtDateTime) GteIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) GteIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Gte(*value) } -func (r slackAppWebhookQueryDeletedAtDateTime) Not(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) Not(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "not", @@ -163399,19 +164841,19 @@ func (r slackAppWebhookQueryDeletedAtDateTime) Not(value DateTime) slackAppWebho } } -func (r slackAppWebhookQueryDeletedAtDateTime) NotIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) NotIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } return r.Not(*value) } // deprecated: Use Lt instead. -func (r slackAppWebhookQueryDeletedAtDateTime) Before(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) LT(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "lt", @@ -163423,22 +164865,22 @@ func (r slackAppWebhookQueryDeletedAtDateTime) Before(value DateTime) slackAppWe } // deprecated: Use LtIfPresent instead. -func (r slackAppWebhookQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) LTIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.Before(*value) + return r.LT(*value) } -// deprecated: Use Gt instead. +// deprecated: Use Lte instead. -func (r slackAppWebhookQueryDeletedAtDateTime) After(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) LTE(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { - Name: "gt", + Name: "lte", Value: value, }, }, @@ -163446,23 +164888,23 @@ func (r slackAppWebhookQueryDeletedAtDateTime) After(value DateTime) slackAppWeb } } -// deprecated: Use GtIfPresent instead. -func (r slackAppWebhookQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) slackAppWebhookDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workerQueryMaxRunsInt) LTEIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.After(*value) + return r.LTE(*value) } -// deprecated: Use Lte instead. +// deprecated: Use Gt instead. -func (r slackAppWebhookQueryDeletedAtDateTime) BeforeEquals(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) GT(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { - Name: "lte", + Name: "gt", Value: value, }, }, @@ -163470,20 +164912,20 @@ func (r slackAppWebhookQueryDeletedAtDateTime) BeforeEquals(value DateTime) slac } } -// deprecated: Use LteIfPresent instead. -func (r slackAppWebhookQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workerQueryMaxRunsInt) GTIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.BeforeEquals(*value) + return r.GT(*value) } // deprecated: Use Gte instead. -func (r slackAppWebhookQueryDeletedAtDateTime) AfterEquals(value DateTime) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryMaxRunsInt) GTE(value int) workerDefaultParam { + return workerDefaultParam{ data: builder.Field{ - Name: "deletedAt", + Name: "maxRuns", Fields: []builder.Field{ { Name: "gte", @@ -163495,41 +164937,41 @@ func (r slackAppWebhookQueryDeletedAtDateTime) AfterEquals(value DateTime) slack } // deprecated: Use GteIfPresent instead. -func (r slackAppWebhookQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { +func (r workerQueryMaxRunsInt) GTEIfPresent(value *int) workerDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerDefaultParam{} } - return r.AfterEquals(*value) + return r.GTE(*value) } -func (r slackAppWebhookQueryDeletedAtDateTime) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldDeletedAt +func (r workerQueryMaxRunsInt) Field() workerPrismaFields { + return workerFieldMaxRuns } // base struct -type slackAppWebhookQueryTenantTenant struct{} +type workerQueryServicesService struct{} -type slackAppWebhookQueryTenantRelations struct{} +type workerQueryServicesRelations struct{} -// SlackAppWebhook -> Tenant +// Worker -> Services // // @relation // @required -func (slackAppWebhookQueryTenantRelations) Where( - params ...TenantWhereParam, -) slackAppWebhookDefaultParam { +func (workerQueryServicesRelations) Some( + params ...ServiceWhereParam, +) workerDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "services", Fields: []builder.Field{ { - Name: "is", + Name: "some", Fields: fields, }, }, @@ -163537,786 +164979,1110 @@ func (slackAppWebhookQueryTenantRelations) Where( } } -func (slackAppWebhookQueryTenantRelations) Fetch() slackAppWebhookToTenantFindUnique { - var v slackAppWebhookToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput - - return v -} - -func (r slackAppWebhookQueryTenantRelations) Link( - params TenantWhereParam, -) slackAppWebhookWithPrismaTenantSetParam { +// Worker -> Services +// +// @relation +// @required +func (workerQueryServicesRelations) Every( + params ...ServiceWhereParam, +) workerDefaultParam { var fields []builder.Field - f := params.field() - if f.Fields == nil && f.Value == nil { - return slackAppWebhookWithPrismaTenantSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - fields = append(fields, f) - - return slackAppWebhookWithPrismaTenantSetParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "services", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "every", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTenantRelations) Unlink() slackAppWebhookWithPrismaTenantSetParam { - var v slackAppWebhookWithPrismaTenantSetParam +// Worker -> Services +// +// @relation +// @required +func (workerQueryServicesRelations) None( + params ...ServiceWhereParam, +) workerDefaultParam { + var fields []builder.Field - v = slackAppWebhookWithPrismaTenantSetParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "services", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "none", + Fields: fields, }, }, }, } - - return v } -func (r slackAppWebhookQueryTenantTenant) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldTenant -} +func (workerQueryServicesRelations) Fetch( -// base struct -type slackAppWebhookQueryTenantIDString struct{} + params ...ServiceWhereParam, -// Set the required value of TenantID -func (r slackAppWebhookQueryTenantIDString) Set(value string) slackAppWebhookSetParam { +) workerToServicesFindMany { + var v workerToServicesFindMany - return slackAppWebhookSetParam{ - data: builder.Field{ - Name: "tenantId", - Value: value, - }, - } + v.query.Operation = "query" + v.query.Method = "services" + v.query.Outputs = serviceOutput -} + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } -// Set the optional value of TenantID dynamically -func (r slackAppWebhookQueryTenantIDString) SetIfPresent(value *String) slackAppWebhookSetParam { - if value == nil { - return slackAppWebhookSetParam{} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - return r.Set(*value) + return v } -func (r slackAppWebhookQueryTenantIDString) Equals(value string) slackAppWebhookWithPrismaTenantIDEqualsParam { +func (r workerQueryServicesRelations) Link( + params ...ServiceWhereParam, +) workerSetParam { + var fields []builder.Field - return slackAppWebhookWithPrismaTenantIDEqualsParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "services", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaTenantIDEqualsParam { - if value == nil { - return slackAppWebhookWithPrismaTenantIDEqualsParam{} - } - return r.Equals(*value) -} +func (r workerQueryServicesRelations) Unlink( + params ...ServiceWhereParam, +) workerSetParam { + var v workerSetParam -func (r slackAppWebhookQueryTenantIDString) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workerSetParam{ data: builder.Field{ - Name: "tenantId", - Value: direction, + Name: "services", + Fields: []builder.Field{ + { + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), + }, + }, }, } + + return v } -func (r slackAppWebhookQueryTenantIDString) Cursor(cursor string) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ - data: builder.Field{ - Name: "tenantId", - Value: cursor, - }, - } +func (r workerQueryServicesService) Field() workerPrismaFields { + return workerFieldServices } -func (r slackAppWebhookQueryTenantIDString) In(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// base struct +type workerQueryActionsAction struct{} + +type workerQueryActionsRelations struct{} + +// Worker -> Actions +// +// @relation +// @required +func (workerQueryActionsRelations) Some( + params ...ActionWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "actions", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) InIfPresent(value []string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +// Worker -> Actions +// +// @relation +// @required +func (workerQueryActionsRelations) Every( + params ...ActionWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.In(value) -} -func (r slackAppWebhookQueryTenantIDString) NotIn(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "actions", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +// Worker -> Actions +// +// @relation +// @required +func (workerQueryActionsRelations) None( + params ...ActionWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.NotIn(value) -} -func (r slackAppWebhookQueryTenantIDString) Lt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "actions", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) LtIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +func (workerQueryActionsRelations) Fetch( + + params ...ActionWhereParam, + +) workerToActionsFindMany { + var v workerToActionsFindMany + + v.query.Operation = "query" + v.query.Method = "actions" + v.query.Outputs = actionOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Lt(*value) + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v } -func (r slackAppWebhookQueryTenantIDString) Lte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryActionsRelations) Link( + params ...ActionWhereParam, +) workerSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "actions", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) LteIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Lte(*value) -} +func (r workerQueryActionsRelations) Unlink( + params ...ActionWhereParam, +) workerSetParam { + var v workerSetParam -func (r slackAppWebhookQueryTenantIDString) Gt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "actions", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r slackAppWebhookQueryTenantIDString) GtIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Gt(*value) +func (r workerQueryActionsAction) Field() workerPrismaFields { + return workerFieldActions } -func (r slackAppWebhookQueryTenantIDString) Gte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// base struct +type workerQueryStepRunsStepRun struct{} + +type workerQueryStepRunsRelations struct{} + +// Worker -> StepRuns +// +// @relation +// @required +func (workerQueryStepRunsRelations) Some( + params ...StepRunWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) GteIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +// Worker -> StepRuns +// +// @relation +// @required +func (workerQueryStepRunsRelations) Every( + params ...StepRunWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Gte(*value) -} -func (r slackAppWebhookQueryTenantIDString) Contains(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "contains", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +// Worker -> StepRuns +// +// @relation +// @required +func (workerQueryStepRunsRelations) None( + params ...StepRunWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Contains(*value) -} -func (r slackAppWebhookQueryTenantIDString) StartsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "startsWith", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +func (workerQueryStepRunsRelations) Fetch( + + params ...StepRunWhereParam, + +) workerToStepRunsFindMany { + var v workerToStepRunsFindMany + + v.query.Operation = "query" + v.query.Method = "stepRuns" + v.query.Outputs = stepRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.StartsWith(*value) + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v } -func (r slackAppWebhookQueryTenantIDString) EndsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQueryStepRunsRelations) Link( + params ...StepRunWhereParam, +) workerSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.EndsWith(*value) -} +func (r workerQueryStepRunsRelations) Unlink( + params ...StepRunWhereParam, +) workerSetParam { + var v workerSetParam -func (r slackAppWebhookQueryTenantIDString) Mode(value QueryMode) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workerSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "stepRuns", Fields: []builder.Field{ { - Name: "mode", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r slackAppWebhookQueryTenantIDString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Mode(*value) +func (r workerQueryStepRunsStepRun) Field() workerPrismaFields { + return workerFieldStepRuns } -func (r slackAppWebhookQueryTenantIDString) Not(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// base struct +type workerQueryGroupKeyRunsGetGroupKeyRun struct{} + +type workerQueryGroupKeyRunsRelations struct{} + +// Worker -> GroupKeyRuns +// +// @relation +// @required +func (workerQueryGroupKeyRunsRelations) Some( + params ...GetGroupKeyRunWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTenantIDString) NotIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Not(*value) -} +// Worker -> GroupKeyRuns +// +// @relation +// @required +func (workerQueryGroupKeyRunsRelations) Every( + params ...GetGroupKeyRunWhereParam, +) workerDefaultParam { + var fields []builder.Field -// deprecated: Use StartsWith instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r slackAppWebhookQueryTenantIDString) HasPrefix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r slackAppWebhookQueryTenantIDString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.HasPrefix(*value) -} +// Worker -> GroupKeyRuns +// +// @relation +// @required +func (workerQueryGroupKeyRunsRelations) None( + params ...GetGroupKeyRunWhereParam, +) workerDefaultParam { + var fields []builder.Field -// deprecated: Use EndsWith instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r slackAppWebhookQueryTenantIDString) HasSuffix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r slackAppWebhookQueryTenantIDString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.HasSuffix(*value) -} +func (workerQueryGroupKeyRunsRelations) Fetch( -func (r slackAppWebhookQueryTenantIDString) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldTenantID -} + params ...GetGroupKeyRunWhereParam, -// base struct -type slackAppWebhookQueryTeamIDString struct{} +) workerToGroupKeyRunsFindMany { + var v workerToGroupKeyRunsFindMany -// Set the required value of TeamID -func (r slackAppWebhookQueryTeamIDString) Set(value string) slackAppWebhookWithPrismaTeamIDSetParam { + v.query.Operation = "query" + v.query.Method = "groupKeyRuns" + v.query.Outputs = getGroupKeyRunOutput - return slackAppWebhookWithPrismaTeamIDSetParam{ - data: builder.Field{ - Name: "teamId", - Value: value, - }, + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } -} - -// Set the optional value of TeamID dynamically -func (r slackAppWebhookQueryTeamIDString) SetIfPresent(value *String) slackAppWebhookWithPrismaTeamIDSetParam { - if value == nil { - return slackAppWebhookWithPrismaTeamIDSetParam{} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - return r.Set(*value) + return v } -func (r slackAppWebhookQueryTeamIDString) Equals(value string) slackAppWebhookWithPrismaTeamIDEqualsParam { +func (r workerQueryGroupKeyRunsRelations) Link( + params ...GetGroupKeyRunWhereParam, +) workerSetParam { + var fields []builder.Field - return slackAppWebhookWithPrismaTeamIDEqualsParam{ + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSetParam{ data: builder.Field{ - Name: "teamId", + Name: "groupKeyRuns", Fields: []builder.Field{ { - Name: "equals", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r slackAppWebhookQueryTeamIDString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaTeamIDEqualsParam { - if value == nil { - return slackAppWebhookWithPrismaTeamIDEqualsParam{} - } - return r.Equals(*value) -} +func (r workerQueryGroupKeyRunsRelations) Unlink( + params ...GetGroupKeyRunWhereParam, +) workerSetParam { + var v workerSetParam -func (r slackAppWebhookQueryTeamIDString) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workerSetParam{ data: builder.Field{ - Name: "teamId", - Value: direction, + Name: "groupKeyRuns", + Fields: []builder.Field{ + { + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), + }, + }, }, } + + return v } -func (r slackAppWebhookQueryTeamIDString) Cursor(cursor string) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ - data: builder.Field{ - Name: "teamId", - Value: cursor, - }, - } +func (r workerQueryGroupKeyRunsGetGroupKeyRun) Field() workerPrismaFields { + return workerFieldGroupKeyRuns } -func (r slackAppWebhookQueryTeamIDString) In(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// base struct +type workerQuerySlotsWorkerSemaphoreSlot struct{} + +type workerQuerySlotsRelations struct{} + +// Worker -> Slots +// +// @relation +// @required +func (workerQuerySlotsRelations) Some( + params ...WorkerSemaphoreSlotWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ data: builder.Field{ - Name: "teamId", + Name: "slots", Fields: []builder.Field{ { - Name: "in", - Value: value, + Name: "some", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTeamIDString) InIfPresent(value []string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +// Worker -> Slots +// +// @relation +// @required +func (workerQuerySlotsRelations) Every( + params ...WorkerSemaphoreSlotWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.In(value) -} -func (r slackAppWebhookQueryTeamIDString) NotIn(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "teamId", + Name: "slots", Fields: []builder.Field{ { - Name: "notIn", - Value: value, + Name: "every", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTeamIDString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +// Worker -> Slots +// +// @relation +// @required +func (workerQuerySlotsRelations) None( + params ...WorkerSemaphoreSlotWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.NotIn(value) -} -func (r slackAppWebhookQueryTeamIDString) Lt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerDefaultParam{ data: builder.Field{ - Name: "teamId", + Name: "slots", Fields: []builder.Field{ { - Name: "lt", - Value: value, + Name: "none", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTeamIDString) LtIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +func (workerQuerySlotsRelations) Fetch( + + params ...WorkerSemaphoreSlotWhereParam, + +) workerToSlotsFindMany { + var v workerToSlotsFindMany + + v.query.Operation = "query" + v.query.Method = "slots" + v.query.Outputs = workerSemaphoreSlotOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } } - return r.Lt(*value) + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v } -func (r slackAppWebhookQueryTeamIDString) Lte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQuerySlotsRelations) Link( + params ...WorkerSemaphoreSlotWhereParam, +) workerSetParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSetParam{ data: builder.Field{ - Name: "teamId", + Name: "slots", Fields: []builder.Field{ { - Name: "lte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r slackAppWebhookQueryTeamIDString) LteIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Lte(*value) -} +func (r workerQuerySlotsRelations) Unlink( + params ...WorkerSemaphoreSlotWhereParam, +) workerSetParam { + var v workerSetParam -func (r slackAppWebhookQueryTeamIDString) Gt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = workerSetParam{ data: builder.Field{ - Name: "teamId", + Name: "slots", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, } + + return v } -func (r slackAppWebhookQueryTeamIDString) GtIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Gt(*value) +func (r workerQuerySlotsWorkerSemaphoreSlot) Field() workerPrismaFields { + return workerFieldSlots } -func (r slackAppWebhookQueryTeamIDString) Gte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// base struct +type workerQuerySemaphoreWorkerSemaphore struct{} + +type workerQuerySemaphoreRelations struct{} + +// Worker -> Semaphore +// +// @relation +// @optional +func (workerQuerySemaphoreRelations) Where( + params ...WorkerSemaphoreWhereParam, +) workerDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerDefaultParam{ data: builder.Field{ - Name: "teamId", + Name: "semaphore", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTeamIDString) GteIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Gte(*value) +func (workerQuerySemaphoreRelations) Fetch() workerToSemaphoreFindUnique { + var v workerToSemaphoreFindUnique + + v.query.Operation = "query" + v.query.Method = "semaphore" + v.query.Outputs = workerSemaphoreOutput + + return v } -func (r slackAppWebhookQueryTeamIDString) Contains(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerQuerySemaphoreRelations) Link( + params WorkerSemaphoreWhereParam, +) workerSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return workerSetParam{} + } + + fields = append(fields, f) + + return workerSetParam{ data: builder.Field{ - Name: "teamId", + Name: "semaphore", Fields: []builder.Field{ { - Name: "contains", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r slackAppWebhookQueryTeamIDString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Contains(*value) -} +func (r workerQuerySemaphoreRelations) Unlink() workerSetParam { + var v workerSetParam -func (r slackAppWebhookQueryTeamIDString) StartsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + v = workerSetParam{ data: builder.Field{ - Name: "teamId", + Name: "semaphore", Fields: []builder.Field{ { - Name: "startsWith", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } + + return v } -func (r slackAppWebhookQueryTeamIDString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.StartsWith(*value) +func (r workerQuerySemaphoreWorkerSemaphore) Field() workerPrismaFields { + return workerFieldSemaphore } -func (r slackAppWebhookQueryTeamIDString) EndsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// WorkerSemaphore acts as a namespaces to access query methods for the WorkerSemaphore model +var WorkerSemaphore = workerSemaphoreQuery{} + +// workerSemaphoreQuery exposes query functions for the workerSemaphore model +type workerSemaphoreQuery struct { + Worker workerSemaphoreQueryWorkerRelations + + // WorkerID + // + // @required + // @unique + WorkerID workerSemaphoreQueryWorkerIDString + + // Slots + // + // @required + Slots workerSemaphoreQuerySlotsInt +} + +func (workerSemaphoreQuery) Not(params ...WorkerSemaphoreWhereParam) workerSemaphoreDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "teamId", - Fields: []builder.Field{ - { - Name: "endsWith", - Value: value, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -func (r slackAppWebhookQueryTeamIDString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +func (workerSemaphoreQuery) Or(params ...WorkerSemaphoreWhereParam) workerSemaphoreDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.EndsWith(*value) -} -func (r slackAppWebhookQueryTeamIDString) Mode(value QueryMode) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "teamId", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, + Name: "OR", + List: true, + WrapList: true, + Fields: fields, }, } } -func (r slackAppWebhookQueryTeamIDString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +func (workerSemaphoreQuery) And(params ...WorkerSemaphoreWhereParam) workerSemaphoreDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSemaphoreDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, } - return r.Mode(*value) } -func (r slackAppWebhookQueryTeamIDString) Not(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// base struct +type workerSemaphoreQueryWorkerWorker struct{} + +type workerSemaphoreQueryWorkerRelations struct{} + +// WorkerSemaphore -> Worker +// +// @relation +// @required +func (workerSemaphoreQueryWorkerRelations) Where( + params ...WorkerWhereParam, +) workerSemaphoreDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "teamId", + Name: "worker", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r slackAppWebhookQueryTeamIDString) NotIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Not(*value) +func (workerSemaphoreQueryWorkerRelations) Fetch() workerSemaphoreToWorkerFindUnique { + var v workerSemaphoreToWorkerFindUnique + + v.query.Operation = "query" + v.query.Method = "worker" + v.query.Outputs = workerOutput + + return v } -// deprecated: Use StartsWith instead. +func (r workerSemaphoreQueryWorkerRelations) Link( + params WorkerWhereParam, +) workerSemaphoreWithPrismaWorkerSetParam { + var fields []builder.Field -func (r slackAppWebhookQueryTeamIDString) HasPrefix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return workerSemaphoreWithPrismaWorkerSetParam{} + } + + fields = append(fields, f) + + return workerSemaphoreWithPrismaWorkerSetParam{ data: builder.Field{ - Name: "teamId", + Name: "worker", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r slackAppWebhookQueryTeamIDString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.HasPrefix(*value) -} - -// deprecated: Use EndsWith instead. +func (r workerSemaphoreQueryWorkerRelations) Unlink() workerSemaphoreWithPrismaWorkerSetParam { + var v workerSemaphoreWithPrismaWorkerSetParam -func (r slackAppWebhookQueryTeamIDString) HasSuffix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + v = workerSemaphoreWithPrismaWorkerSetParam{ data: builder.Field{ - Name: "teamId", + Name: "worker", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } -} -// deprecated: Use EndsWithIfPresent instead. -func (r slackAppWebhookQueryTeamIDString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.HasSuffix(*value) + return v } -func (r slackAppWebhookQueryTeamIDString) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldTeamID +func (r workerSemaphoreQueryWorkerWorker) Field() workerSemaphorePrismaFields { + return workerSemaphoreFieldWorker } // base struct -type slackAppWebhookQueryTeamNameString struct{} +type workerSemaphoreQueryWorkerIDString struct{} -// Set the required value of TeamName -func (r slackAppWebhookQueryTeamNameString) Set(value string) slackAppWebhookWithPrismaTeamNameSetParam { +// Set the required value of WorkerID +func (r workerSemaphoreQueryWorkerIDString) Set(value string) workerSemaphoreSetParam { - return slackAppWebhookWithPrismaTeamNameSetParam{ + return workerSemaphoreSetParam{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Value: value, }, } } -// Set the optional value of TeamName dynamically -func (r slackAppWebhookQueryTeamNameString) SetIfPresent(value *String) slackAppWebhookWithPrismaTeamNameSetParam { +// Set the optional value of WorkerID dynamically +func (r workerSemaphoreQueryWorkerIDString) SetIfPresent(value *String) workerSemaphoreSetParam { if value == nil { - return slackAppWebhookWithPrismaTeamNameSetParam{} + return workerSemaphoreSetParam{} } return r.Set(*value) } -func (r slackAppWebhookQueryTeamNameString) Equals(value string) slackAppWebhookWithPrismaTeamNameEqualsParam { +func (r workerSemaphoreQueryWorkerIDString) Equals(value string) workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam { - return slackAppWebhookWithPrismaTeamNameEqualsParam{ + return workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "equals", @@ -164327,35 +166093,35 @@ func (r slackAppWebhookQueryTeamNameString) Equals(value string) slackAppWebhook } } -func (r slackAppWebhookQueryTeamNameString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaTeamNameEqualsParam { +func (r workerSemaphoreQueryWorkerIDString) EqualsIfPresent(value *string) workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam { if value == nil { - return slackAppWebhookWithPrismaTeamNameEqualsParam{} + return workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r slackAppWebhookQueryTeamNameString) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) Order(direction SortOrder) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Value: direction, }, } } -func (r slackAppWebhookQueryTeamNameString) Cursor(cursor string) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ +func (r workerSemaphoreQueryWorkerIDString) Cursor(cursor string) workerSemaphoreCursorParam { + return workerSemaphoreCursorParam{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Value: cursor, }, } } -func (r slackAppWebhookQueryTeamNameString) In(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) In(value []string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "in", @@ -164366,17 +166132,17 @@ func (r slackAppWebhookQueryTeamNameString) In(value []string) slackAppWebhookDe } } -func (r slackAppWebhookQueryTeamNameString) InIfPresent(value []string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) InIfPresent(value []string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.In(value) } -func (r slackAppWebhookQueryTeamNameString) NotIn(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) NotIn(value []string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "notIn", @@ -164387,17 +166153,17 @@ func (r slackAppWebhookQueryTeamNameString) NotIn(value []string) slackAppWebhoo } } -func (r slackAppWebhookQueryTeamNameString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) NotInIfPresent(value []string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.NotIn(value) } -func (r slackAppWebhookQueryTeamNameString) Lt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) Lt(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "lt", @@ -164408,17 +166174,17 @@ func (r slackAppWebhookQueryTeamNameString) Lt(value string) slackAppWebhookDefa } } -func (r slackAppWebhookQueryTeamNameString) LtIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) LtIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.Lt(*value) } -func (r slackAppWebhookQueryTeamNameString) Lte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) Lte(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "lte", @@ -164429,17 +166195,17 @@ func (r slackAppWebhookQueryTeamNameString) Lte(value string) slackAppWebhookDef } } -func (r slackAppWebhookQueryTeamNameString) LteIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) LteIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.Lte(*value) } -func (r slackAppWebhookQueryTeamNameString) Gt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) Gt(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "gt", @@ -164450,17 +166216,17 @@ func (r slackAppWebhookQueryTeamNameString) Gt(value string) slackAppWebhookDefa } } -func (r slackAppWebhookQueryTeamNameString) GtIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) GtIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.Gt(*value) } -func (r slackAppWebhookQueryTeamNameString) Gte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) Gte(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "gte", @@ -164471,17 +166237,17 @@ func (r slackAppWebhookQueryTeamNameString) Gte(value string) slackAppWebhookDef } } -func (r slackAppWebhookQueryTeamNameString) GteIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) GteIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.Gte(*value) } -func (r slackAppWebhookQueryTeamNameString) Contains(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) Contains(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "contains", @@ -164492,17 +166258,17 @@ func (r slackAppWebhookQueryTeamNameString) Contains(value string) slackAppWebho } } -func (r slackAppWebhookQueryTeamNameString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) ContainsIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.Contains(*value) } -func (r slackAppWebhookQueryTeamNameString) StartsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) StartsWith(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "startsWith", @@ -164513,17 +166279,17 @@ func (r slackAppWebhookQueryTeamNameString) StartsWith(value string) slackAppWeb } } -func (r slackAppWebhookQueryTeamNameString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) StartsWithIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.StartsWith(*value) } -func (r slackAppWebhookQueryTeamNameString) EndsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) EndsWith(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "endsWith", @@ -164534,17 +166300,17 @@ func (r slackAppWebhookQueryTeamNameString) EndsWith(value string) slackAppWebho } } -func (r slackAppWebhookQueryTeamNameString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) EndsWithIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.EndsWith(*value) } -func (r slackAppWebhookQueryTeamNameString) Mode(value QueryMode) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) Mode(value QueryMode) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "mode", @@ -164555,17 +166321,17 @@ func (r slackAppWebhookQueryTeamNameString) Mode(value QueryMode) slackAppWebhoo } } -func (r slackAppWebhookQueryTeamNameString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) ModeIfPresent(value *QueryMode) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.Mode(*value) } -func (r slackAppWebhookQueryTeamNameString) Not(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) Not(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "not", @@ -164576,19 +166342,19 @@ func (r slackAppWebhookQueryTeamNameString) Not(value string) slackAppWebhookDef } } -func (r slackAppWebhookQueryTeamNameString) NotIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) NotIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r slackAppWebhookQueryTeamNameString) HasPrefix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) HasPrefix(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "starts_with", @@ -164600,19 +166366,19 @@ func (r slackAppWebhookQueryTeamNameString) HasPrefix(value string) slackAppWebh } // deprecated: Use StartsWithIfPresent instead. -func (r slackAppWebhookQueryTeamNameString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) HasPrefixIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r slackAppWebhookQueryTeamNameString) HasSuffix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQueryWorkerIDString) HasSuffix(value string) workerSemaphoreParamUnique { + return workerSemaphoreParamUnique{ data: builder.Field{ - Name: "teamName", + Name: "workerId", Fields: []builder.Field{ { Name: "ends_with", @@ -164624,46 +166390,134 @@ func (r slackAppWebhookQueryTeamNameString) HasSuffix(value string) slackAppWebh } // deprecated: Use EndsWithIfPresent instead. -func (r slackAppWebhookQueryTeamNameString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQueryWorkerIDString) HasSuffixIfPresent(value *string) workerSemaphoreParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreParamUnique{} } return r.HasSuffix(*value) } -func (r slackAppWebhookQueryTeamNameString) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldTeamName +func (r workerSemaphoreQueryWorkerIDString) Field() workerSemaphorePrismaFields { + return workerSemaphoreFieldWorkerID } // base struct -type slackAppWebhookQueryChannelIDString struct{} +type workerSemaphoreQuerySlotsInt struct{} -// Set the required value of ChannelID -func (r slackAppWebhookQueryChannelIDString) Set(value string) slackAppWebhookWithPrismaChannelIDSetParam { +// Set the required value of Slots +func (r workerSemaphoreQuerySlotsInt) Set(value int) workerSemaphoreWithPrismaSlotsSetParam { - return slackAppWebhookWithPrismaChannelIDSetParam{ + return workerSemaphoreWithPrismaSlotsSetParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Value: value, }, } } -// Set the optional value of ChannelID dynamically -func (r slackAppWebhookQueryChannelIDString) SetIfPresent(value *String) slackAppWebhookWithPrismaChannelIDSetParam { +// Set the optional value of Slots dynamically +func (r workerSemaphoreQuerySlotsInt) SetIfPresent(value *Int) workerSemaphoreWithPrismaSlotsSetParam { if value == nil { - return slackAppWebhookWithPrismaChannelIDSetParam{} + return workerSemaphoreWithPrismaSlotsSetParam{} } return r.Set(*value) } -func (r slackAppWebhookQueryChannelIDString) Equals(value string) slackAppWebhookWithPrismaChannelIDEqualsParam { +// Increment the required value of Slots +func (r workerSemaphoreQuerySlotsInt) Increment(value int) workerSemaphoreWithPrismaSlotsSetParam { + return workerSemaphoreWithPrismaSlotsSetParam{ + data: builder.Field{ + Name: "slots", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} - return slackAppWebhookWithPrismaChannelIDEqualsParam{ +func (r workerSemaphoreQuerySlotsInt) IncrementIfPresent(value *int) workerSemaphoreWithPrismaSlotsSetParam { + if value == nil { + return workerSemaphoreWithPrismaSlotsSetParam{} + } + return r.Increment(*value) +} + +// Decrement the required value of Slots +func (r workerSemaphoreQuerySlotsInt) Decrement(value int) workerSemaphoreWithPrismaSlotsSetParam { + return workerSemaphoreWithPrismaSlotsSetParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, + }, + }, + } +} + +func (r workerSemaphoreQuerySlotsInt) DecrementIfPresent(value *int) workerSemaphoreWithPrismaSlotsSetParam { + if value == nil { + return workerSemaphoreWithPrismaSlotsSetParam{} + } + return r.Decrement(*value) +} + +// Multiply the required value of Slots +func (r workerSemaphoreQuerySlotsInt) Multiply(value int) workerSemaphoreWithPrismaSlotsSetParam { + return workerSemaphoreWithPrismaSlotsSetParam{ + data: builder.Field{ + Name: "slots", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } +} + +func (r workerSemaphoreQuerySlotsInt) MultiplyIfPresent(value *int) workerSemaphoreWithPrismaSlotsSetParam { + if value == nil { + return workerSemaphoreWithPrismaSlotsSetParam{} + } + return r.Multiply(*value) +} + +// Divide the required value of Slots +func (r workerSemaphoreQuerySlotsInt) Divide(value int) workerSemaphoreWithPrismaSlotsSetParam { + return workerSemaphoreWithPrismaSlotsSetParam{ + data: builder.Field{ + Name: "slots", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, + }, + } +} + +func (r workerSemaphoreQuerySlotsInt) DivideIfPresent(value *int) workerSemaphoreWithPrismaSlotsSetParam { + if value == nil { + return workerSemaphoreWithPrismaSlotsSetParam{} + } + return r.Divide(*value) +} + +func (r workerSemaphoreQuerySlotsInt) Equals(value int) workerSemaphoreWithPrismaSlotsEqualsParam { + + return workerSemaphoreWithPrismaSlotsEqualsParam{ + data: builder.Field{ + Name: "slots", Fields: []builder.Field{ { Name: "equals", @@ -164674,35 +166528,35 @@ func (r slackAppWebhookQueryChannelIDString) Equals(value string) slackAppWebhoo } } -func (r slackAppWebhookQueryChannelIDString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaChannelIDEqualsParam { +func (r workerSemaphoreQuerySlotsInt) EqualsIfPresent(value *int) workerSemaphoreWithPrismaSlotsEqualsParam { if value == nil { - return slackAppWebhookWithPrismaChannelIDEqualsParam{} + return workerSemaphoreWithPrismaSlotsEqualsParam{} } return r.Equals(*value) } -func (r slackAppWebhookQueryChannelIDString) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQuerySlotsInt) Order(direction SortOrder) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Value: direction, }, } } -func (r slackAppWebhookQueryChannelIDString) Cursor(cursor string) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ +func (r workerSemaphoreQuerySlotsInt) Cursor(cursor int) workerSemaphoreCursorParam { + return workerSemaphoreCursorParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Value: cursor, }, } } -func (r slackAppWebhookQueryChannelIDString) In(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQuerySlotsInt) In(value []int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { Name: "in", @@ -164713,17 +166567,17 @@ func (r slackAppWebhookQueryChannelIDString) In(value []string) slackAppWebhookD } } -func (r slackAppWebhookQueryChannelIDString) InIfPresent(value []string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQuerySlotsInt) InIfPresent(value []int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } return r.In(value) } -func (r slackAppWebhookQueryChannelIDString) NotIn(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQuerySlotsInt) NotIn(value []int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { Name: "notIn", @@ -164734,17 +166588,17 @@ func (r slackAppWebhookQueryChannelIDString) NotIn(value []string) slackAppWebho } } -func (r slackAppWebhookQueryChannelIDString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQuerySlotsInt) NotInIfPresent(value []int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } return r.NotIn(value) } -func (r slackAppWebhookQueryChannelIDString) Lt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQuerySlotsInt) Lt(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { Name: "lt", @@ -164755,17 +166609,17 @@ func (r slackAppWebhookQueryChannelIDString) Lt(value string) slackAppWebhookDef } } -func (r slackAppWebhookQueryChannelIDString) LtIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQuerySlotsInt) LtIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } return r.Lt(*value) } -func (r slackAppWebhookQueryChannelIDString) Lte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQuerySlotsInt) Lte(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { Name: "lte", @@ -164776,17 +166630,17 @@ func (r slackAppWebhookQueryChannelIDString) Lte(value string) slackAppWebhookDe } } -func (r slackAppWebhookQueryChannelIDString) LteIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQuerySlotsInt) LteIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } return r.Lte(*value) } -func (r slackAppWebhookQueryChannelIDString) Gt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQuerySlotsInt) Gt(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { Name: "gt", @@ -164797,17 +166651,17 @@ func (r slackAppWebhookQueryChannelIDString) Gt(value string) slackAppWebhookDef } } -func (r slackAppWebhookQueryChannelIDString) GtIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQuerySlotsInt) GtIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } return r.Gt(*value) } -func (r slackAppWebhookQueryChannelIDString) Gte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQuerySlotsInt) Gte(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { Name: "gte", @@ -164818,20 +166672,20 @@ func (r slackAppWebhookQueryChannelIDString) Gte(value string) slackAppWebhookDe } } -func (r slackAppWebhookQueryChannelIDString) GteIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQuerySlotsInt) GteIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } return r.Gte(*value) } -func (r slackAppWebhookQueryChannelIDString) Contains(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreQuerySlotsInt) Not(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -164839,20 +166693,22 @@ func (r slackAppWebhookQueryChannelIDString) Contains(value string) slackAppWebh } } -func (r slackAppWebhookQueryChannelIDString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreQuerySlotsInt) NotIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r slackAppWebhookQueryChannelIDString) StartsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// deprecated: Use Lt instead. + +func (r workerSemaphoreQuerySlotsInt) LT(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -164860,20 +166716,23 @@ func (r slackAppWebhookQueryChannelIDString) StartsWith(value string) slackAppWe } } -func (r slackAppWebhookQueryChannelIDString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r workerSemaphoreQuerySlotsInt) LTIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } - return r.StartsWith(*value) + return r.LT(*value) } -func (r slackAppWebhookQueryChannelIDString) EndsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// deprecated: Use Lte instead. + +func (r workerSemaphoreQuerySlotsInt) LTE(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lte", Value: value, }, }, @@ -164881,20 +166740,23 @@ func (r slackAppWebhookQueryChannelIDString) EndsWith(value string) slackAppWebh } } -func (r slackAppWebhookQueryChannelIDString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r workerSemaphoreQuerySlotsInt) LTEIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } - return r.EndsWith(*value) + return r.LTE(*value) } -func (r slackAppWebhookQueryChannelIDString) Mode(value QueryMode) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// deprecated: Use Gt instead. + +func (r workerSemaphoreQuerySlotsInt) GT(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { - Name: "mode", + Name: "gt", Value: value, }, }, @@ -164902,20 +166764,23 @@ func (r slackAppWebhookQueryChannelIDString) Mode(value QueryMode) slackAppWebho } } -func (r slackAppWebhookQueryChannelIDString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r workerSemaphoreQuerySlotsInt) GTIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } - return r.Mode(*value) + return r.GT(*value) } -func (r slackAppWebhookQueryChannelIDString) Not(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// deprecated: Use Gte instead. + +func (r workerSemaphoreQuerySlotsInt) GTE(value int) workerSemaphoreDefaultParam { + return workerSemaphoreDefaultParam{ data: builder.Field{ - Name: "channelId", + Name: "slots", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -164923,94 +166788,125 @@ func (r slackAppWebhookQueryChannelIDString) Not(value string) slackAppWebhookDe } } -func (r slackAppWebhookQueryChannelIDString) NotIfPresent(value *string) slackAppWebhookDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r workerSemaphoreQuerySlotsInt) GTEIfPresent(value *int) workerSemaphoreDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreDefaultParam{} } - return r.Not(*value) + return r.GTE(*value) } -// deprecated: Use StartsWith instead. +func (r workerSemaphoreQuerySlotsInt) Field() workerSemaphorePrismaFields { + return workerSemaphoreFieldSlots +} -func (r slackAppWebhookQueryChannelIDString) HasPrefix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +// WorkerSemaphoreSlot acts as a namespaces to access query methods for the WorkerSemaphoreSlot model +var WorkerSemaphoreSlot = workerSemaphoreSlotQuery{} + +// workerSemaphoreSlotQuery exposes query functions for the workerSemaphoreSlot model +type workerSemaphoreSlotQuery struct { + + // ID + // + // @required + ID workerSemaphoreSlotQueryIDString + + Worker workerSemaphoreSlotQueryWorkerRelations + + // WorkerID + // + // @required + WorkerID workerSemaphoreSlotQueryWorkerIDString + + StepRun workerSemaphoreSlotQueryStepRunRelations + + // StepRunID + // + // @optional + // @unique + StepRunID workerSemaphoreSlotQueryStepRunIDString +} + +func (workerSemaphoreSlotQuery) Not(params ...WorkerSemaphoreSlotWhereParam) workerSemaphoreSlotDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "channelId", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r slackAppWebhookQueryChannelIDString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.HasPrefix(*value) -} +func (workerSemaphoreSlotQuery) Or(params ...WorkerSemaphoreSlotWhereParam) workerSemaphoreSlotDefaultParam { + var fields []builder.Field -// deprecated: Use EndsWith instead. + for _, q := range params { + fields = append(fields, q.field()) + } -func (r slackAppWebhookQueryChannelIDString) HasSuffix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "channelId", - Fields: []builder.Field{ - { - Name: "ends_with", - Value: value, - }, - }, + Name: "OR", + List: true, + WrapList: true, + Fields: fields, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r slackAppWebhookQueryChannelIDString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { - if value == nil { - return slackAppWebhookDefaultParam{} +func (workerSemaphoreSlotQuery) And(params ...WorkerSemaphoreSlotWhereParam) workerSemaphoreSlotDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.HasSuffix(*value) -} -func (r slackAppWebhookQueryChannelIDString) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldChannelID + return workerSemaphoreSlotDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } // base struct -type slackAppWebhookQueryChannelNameString struct{} +type workerSemaphoreSlotQueryIDString struct{} -// Set the required value of ChannelName -func (r slackAppWebhookQueryChannelNameString) Set(value string) slackAppWebhookWithPrismaChannelNameSetParam { +// Set the required value of ID +func (r workerSemaphoreSlotQueryIDString) Set(value string) workerSemaphoreSlotSetParam { - return slackAppWebhookWithPrismaChannelNameSetParam{ + return workerSemaphoreSlotSetParam{ data: builder.Field{ - Name: "channelName", + Name: "id", Value: value, }, } } -// Set the optional value of ChannelName dynamically -func (r slackAppWebhookQueryChannelNameString) SetIfPresent(value *String) slackAppWebhookWithPrismaChannelNameSetParam { +// Set the optional value of ID dynamically +func (r workerSemaphoreSlotQueryIDString) SetIfPresent(value *String) workerSemaphoreSlotSetParam { if value == nil { - return slackAppWebhookWithPrismaChannelNameSetParam{} + return workerSemaphoreSlotSetParam{} } return r.Set(*value) } -func (r slackAppWebhookQueryChannelNameString) Equals(value string) slackAppWebhookWithPrismaChannelNameEqualsParam { +func (r workerSemaphoreSlotQueryIDString) Equals(value string) workerSemaphoreSlotWithPrismaIDEqualsUniqueParam { - return slackAppWebhookWithPrismaChannelNameEqualsParam{ + return workerSemaphoreSlotWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -165021,35 +166917,35 @@ func (r slackAppWebhookQueryChannelNameString) Equals(value string) slackAppWebh } } -func (r slackAppWebhookQueryChannelNameString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaChannelNameEqualsParam { +func (r workerSemaphoreSlotQueryIDString) EqualsIfPresent(value *string) workerSemaphoreSlotWithPrismaIDEqualsUniqueParam { if value == nil { - return slackAppWebhookWithPrismaChannelNameEqualsParam{} + return workerSemaphoreSlotWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r slackAppWebhookQueryChannelNameString) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) Order(direction SortOrder) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "channelName", + Name: "id", Value: direction, }, } } -func (r slackAppWebhookQueryChannelNameString) Cursor(cursor string) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ +func (r workerSemaphoreSlotQueryIDString) Cursor(cursor string) workerSemaphoreSlotCursorParam { + return workerSemaphoreSlotCursorParam{ data: builder.Field{ - Name: "channelName", + Name: "id", Value: cursor, }, } } -func (r slackAppWebhookQueryChannelNameString) In(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) In(value []string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -165060,17 +166956,17 @@ func (r slackAppWebhookQueryChannelNameString) In(value []string) slackAppWebhoo } } -func (r slackAppWebhookQueryChannelNameString) InIfPresent(value []string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) InIfPresent(value []string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.In(value) } -func (r slackAppWebhookQueryChannelNameString) NotIn(value []string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) NotIn(value []string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -165081,17 +166977,17 @@ func (r slackAppWebhookQueryChannelNameString) NotIn(value []string) slackAppWeb } } -func (r slackAppWebhookQueryChannelNameString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) NotInIfPresent(value []string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.NotIn(value) } -func (r slackAppWebhookQueryChannelNameString) Lt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) Lt(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -165102,17 +166998,17 @@ func (r slackAppWebhookQueryChannelNameString) Lt(value string) slackAppWebhookD } } -func (r slackAppWebhookQueryChannelNameString) LtIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) LtIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Lt(*value) } -func (r slackAppWebhookQueryChannelNameString) Lte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) Lte(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -165123,17 +167019,17 @@ func (r slackAppWebhookQueryChannelNameString) Lte(value string) slackAppWebhook } } -func (r slackAppWebhookQueryChannelNameString) LteIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) LteIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Lte(*value) } -func (r slackAppWebhookQueryChannelNameString) Gt(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) Gt(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -165144,17 +167040,17 @@ func (r slackAppWebhookQueryChannelNameString) Gt(value string) slackAppWebhookD } } -func (r slackAppWebhookQueryChannelNameString) GtIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) GtIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Gt(*value) } -func (r slackAppWebhookQueryChannelNameString) Gte(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) Gte(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -165165,17 +167061,17 @@ func (r slackAppWebhookQueryChannelNameString) Gte(value string) slackAppWebhook } } -func (r slackAppWebhookQueryChannelNameString) GteIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) GteIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Gte(*value) } -func (r slackAppWebhookQueryChannelNameString) Contains(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) Contains(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -165186,17 +167082,17 @@ func (r slackAppWebhookQueryChannelNameString) Contains(value string) slackAppWe } } -func (r slackAppWebhookQueryChannelNameString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) ContainsIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Contains(*value) } -func (r slackAppWebhookQueryChannelNameString) StartsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) StartsWith(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -165207,17 +167103,17 @@ func (r slackAppWebhookQueryChannelNameString) StartsWith(value string) slackApp } } -func (r slackAppWebhookQueryChannelNameString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) StartsWithIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.StartsWith(*value) } -func (r slackAppWebhookQueryChannelNameString) EndsWith(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) EndsWith(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -165228,17 +167124,17 @@ func (r slackAppWebhookQueryChannelNameString) EndsWith(value string) slackAppWe } } -func (r slackAppWebhookQueryChannelNameString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) EndsWithIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.EndsWith(*value) } -func (r slackAppWebhookQueryChannelNameString) Mode(value QueryMode) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) Mode(value QueryMode) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -165249,17 +167145,17 @@ func (r slackAppWebhookQueryChannelNameString) Mode(value QueryMode) slackAppWeb } } -func (r slackAppWebhookQueryChannelNameString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) ModeIfPresent(value *QueryMode) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Mode(*value) } -func (r slackAppWebhookQueryChannelNameString) Not(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) Not(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -165270,19 +167166,19 @@ func (r slackAppWebhookQueryChannelNameString) Not(value string) slackAppWebhook } } -func (r slackAppWebhookQueryChannelNameString) NotIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) NotIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r slackAppWebhookQueryChannelNameString) HasPrefix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) HasPrefix(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -165294,19 +167190,19 @@ func (r slackAppWebhookQueryChannelNameString) HasPrefix(value string) slackAppW } // deprecated: Use StartsWithIfPresent instead. -func (r slackAppWebhookQueryChannelNameString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) HasPrefixIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r slackAppWebhookQueryChannelNameString) HasSuffix(value string) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryIDString) HasSuffix(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "channelName", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -165318,46 +167214,134 @@ func (r slackAppWebhookQueryChannelNameString) HasSuffix(value string) slackAppW } // deprecated: Use EndsWithIfPresent instead. -func (r slackAppWebhookQueryChannelNameString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryIDString) HasSuffixIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.HasSuffix(*value) } -func (r slackAppWebhookQueryChannelNameString) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldChannelName +func (r workerSemaphoreSlotQueryIDString) Field() workerSemaphoreSlotPrismaFields { + return workerSemaphoreSlotFieldID } // base struct -type slackAppWebhookQueryWebhookURLBytes struct{} +type workerSemaphoreSlotQueryWorkerWorker struct{} -// Set the required value of WebhookURL -func (r slackAppWebhookQueryWebhookURLBytes) Set(value Bytes) slackAppWebhookWithPrismaWebhookURLSetParam { +type workerSemaphoreSlotQueryWorkerRelations struct{} - return slackAppWebhookWithPrismaWebhookURLSetParam{ +// WorkerSemaphoreSlot -> Worker +// +// @relation +// @required +func (workerSemaphoreSlotQueryWorkerRelations) Where( + params ...WorkerWhereParam, +) workerSemaphoreSlotDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "webhookURL", + Name: "worker", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (workerSemaphoreSlotQueryWorkerRelations) Fetch() workerSemaphoreSlotToWorkerFindUnique { + var v workerSemaphoreSlotToWorkerFindUnique + + v.query.Operation = "query" + v.query.Method = "worker" + v.query.Outputs = workerOutput + + return v +} + +func (r workerSemaphoreSlotQueryWorkerRelations) Link( + params WorkerWhereParam, +) workerSemaphoreSlotWithPrismaWorkerSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return workerSemaphoreSlotWithPrismaWorkerSetParam{} + } + + fields = append(fields, f) + + return workerSemaphoreSlotWithPrismaWorkerSetParam{ + data: builder.Field{ + Name: "worker", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r workerSemaphoreSlotQueryWorkerRelations) Unlink() workerSemaphoreSlotWithPrismaWorkerSetParam { + var v workerSemaphoreSlotWithPrismaWorkerSetParam + + v = workerSemaphoreSlotWithPrismaWorkerSetParam{ + data: builder.Field{ + Name: "worker", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r workerSemaphoreSlotQueryWorkerWorker) Field() workerSemaphoreSlotPrismaFields { + return workerSemaphoreSlotFieldWorker +} + +// base struct +type workerSemaphoreSlotQueryWorkerIDString struct{} + +// Set the required value of WorkerID +func (r workerSemaphoreSlotQueryWorkerIDString) Set(value string) workerSemaphoreSlotSetParam { + + return workerSemaphoreSlotSetParam{ + data: builder.Field{ + Name: "workerId", Value: value, }, } } -// Set the optional value of WebhookURL dynamically -func (r slackAppWebhookQueryWebhookURLBytes) SetIfPresent(value *Bytes) slackAppWebhookWithPrismaWebhookURLSetParam { +// Set the optional value of WorkerID dynamically +func (r workerSemaphoreSlotQueryWorkerIDString) SetIfPresent(value *String) workerSemaphoreSlotSetParam { if value == nil { - return slackAppWebhookWithPrismaWebhookURLSetParam{} + return workerSemaphoreSlotSetParam{} } return r.Set(*value) } -func (r slackAppWebhookQueryWebhookURLBytes) Equals(value Bytes) slackAppWebhookWithPrismaWebhookURLEqualsParam { +func (r workerSemaphoreSlotQueryWorkerIDString) Equals(value string) workerSemaphoreSlotWithPrismaWorkerIDEqualsParam { - return slackAppWebhookWithPrismaWebhookURLEqualsParam{ + return workerSemaphoreSlotWithPrismaWorkerIDEqualsParam{ data: builder.Field{ - Name: "webhookURL", + Name: "workerId", Fields: []builder.Field{ { Name: "equals", @@ -165368,35 +167352,35 @@ func (r slackAppWebhookQueryWebhookURLBytes) Equals(value Bytes) slackAppWebhook } } -func (r slackAppWebhookQueryWebhookURLBytes) EqualsIfPresent(value *Bytes) slackAppWebhookWithPrismaWebhookURLEqualsParam { +func (r workerSemaphoreSlotQueryWorkerIDString) EqualsIfPresent(value *string) workerSemaphoreSlotWithPrismaWorkerIDEqualsParam { if value == nil { - return slackAppWebhookWithPrismaWebhookURLEqualsParam{} + return workerSemaphoreSlotWithPrismaWorkerIDEqualsParam{} } return r.Equals(*value) } -func (r slackAppWebhookQueryWebhookURLBytes) Order(direction SortOrder) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) Order(direction SortOrder) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "webhookURL", + Name: "workerId", Value: direction, }, } } -func (r slackAppWebhookQueryWebhookURLBytes) Cursor(cursor Bytes) slackAppWebhookCursorParam { - return slackAppWebhookCursorParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) Cursor(cursor string) workerSemaphoreSlotCursorParam { + return workerSemaphoreSlotCursorParam{ data: builder.Field{ - Name: "webhookURL", + Name: "workerId", Value: cursor, }, } } -func (r slackAppWebhookQueryWebhookURLBytes) In(value []Bytes) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) In(value []string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "webhookURL", + Name: "workerId", Fields: []builder.Field{ { Name: "in", @@ -165407,17 +167391,17 @@ func (r slackAppWebhookQueryWebhookURLBytes) In(value []Bytes) slackAppWebhookDe } } -func (r slackAppWebhookQueryWebhookURLBytes) InIfPresent(value []Bytes) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryWorkerIDString) InIfPresent(value []string) workerSemaphoreSlotDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotDefaultParam{} } return r.In(value) } -func (r slackAppWebhookQueryWebhookURLBytes) NotIn(value []Bytes) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) NotIn(value []string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "webhookURL", + Name: "workerId", Fields: []builder.Field{ { Name: "notIn", @@ -165428,20 +167412,20 @@ func (r slackAppWebhookQueryWebhookURLBytes) NotIn(value []Bytes) slackAppWebhoo } } -func (r slackAppWebhookQueryWebhookURLBytes) NotInIfPresent(value []Bytes) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryWorkerIDString) NotInIfPresent(value []string) workerSemaphoreSlotDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} + return workerSemaphoreSlotDefaultParam{} } return r.NotIn(value) } -func (r slackAppWebhookQueryWebhookURLBytes) Not(value Bytes) slackAppWebhookDefaultParam { - return slackAppWebhookDefaultParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) Lt(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "webhookURL", + Name: "workerId", Fields: []builder.Field{ { - Name: "not", + Name: "lt", Value: value, }, }, @@ -165449,146 +167433,62 @@ func (r slackAppWebhookQueryWebhookURLBytes) Not(value Bytes) slackAppWebhookDef } } -func (r slackAppWebhookQueryWebhookURLBytes) NotIfPresent(value *Bytes) slackAppWebhookDefaultParam { +func (r workerSemaphoreSlotQueryWorkerIDString) LtIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return slackAppWebhookDefaultParam{} - } - return r.Not(*value) -} - -func (r slackAppWebhookQueryWebhookURLBytes) Field() slackAppWebhookPrismaFields { - return slackAppWebhookFieldWebhookURL -} - -// LogLine acts as a namespaces to access query methods for the LogLine model -var LogLine = logLineQuery{} - -// logLineQuery exposes query functions for the logLine model -type logLineQuery struct { - - // ID - // - // @required - ID logLineQueryIDBigInt - - // CreatedAt - // - // @required - CreatedAt logLineQueryCreatedAtDateTime - - Tenant logLineQueryTenantRelations - - // TenantID - // - // @required - TenantID logLineQueryTenantIDString - - StepRun logLineQueryStepRunRelations - - // StepRunID - // - // @optional - StepRunID logLineQueryStepRunIDString - - // Message - // - // @required - Message logLineQueryMessageString - - // Level - // - // @required - Level logLineQueryLevelLogLineLevel - - // Metadata - // - // @optional - Metadata logLineQueryMetadataJson -} - -func (logLineQuery) Not(params ...LogLineWhereParam) logLineDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return logLineDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, + return workerSemaphoreSlotDefaultParam{} } + return r.Lt(*value) } -func (logLineQuery) Or(params ...LogLineWhereParam) logLineDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) Lte(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, + Name: "workerId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, }, } } -func (logLineQuery) And(params ...LogLineWhereParam) logLineDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return logLineDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, +func (r workerSemaphoreSlotQueryWorkerIDString) LteIfPresent(value *string) workerSemaphoreSlotDefaultParam { + if value == nil { + return workerSemaphoreSlotDefaultParam{} } + return r.Lte(*value) } -// base struct -type logLineQueryIDBigInt struct{} - -// Set the required value of ID -func (r logLineQueryIDBigInt) Set(value BigInt) logLineSetParam { - - return logLineSetParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) Gt(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", - Value: value, + Name: "workerId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, }, } - } -// Set the optional value of ID dynamically -func (r logLineQueryIDBigInt) SetIfPresent(value *BigInt) logLineSetParam { +func (r workerSemaphoreSlotQueryWorkerIDString) GtIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineSetParam{} + return workerSemaphoreSlotDefaultParam{} } - - return r.Set(*value) + return r.Gt(*value) } -// Increment the required value of ID -func (r logLineQueryIDBigInt) Increment(value BigInt) logLineSetParam { - return logLineSetParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) Gte(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ - builder.Field{ - Name: "increment", + { + Name: "gte", Value: value, }, }, @@ -165596,21 +167496,20 @@ func (r logLineQueryIDBigInt) Increment(value BigInt) logLineSetParam { } } -func (r logLineQueryIDBigInt) IncrementIfPresent(value *BigInt) logLineSetParam { +func (r workerSemaphoreSlotQueryWorkerIDString) GteIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineSetParam{} + return workerSemaphoreSlotDefaultParam{} } - return r.Increment(*value) + return r.Gte(*value) } -// Decrement the required value of ID -func (r logLineQueryIDBigInt) Decrement(value BigInt) logLineSetParam { - return logLineSetParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) Contains(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ - builder.Field{ - Name: "decrement", + { + Name: "contains", Value: value, }, }, @@ -165618,21 +167517,20 @@ func (r logLineQueryIDBigInt) Decrement(value BigInt) logLineSetParam { } } -func (r logLineQueryIDBigInt) DecrementIfPresent(value *BigInt) logLineSetParam { +func (r workerSemaphoreSlotQueryWorkerIDString) ContainsIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineSetParam{} + return workerSemaphoreSlotDefaultParam{} } - return r.Decrement(*value) + return r.Contains(*value) } -// Multiply the required value of ID -func (r logLineQueryIDBigInt) Multiply(value BigInt) logLineSetParam { - return logLineSetParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) StartsWith(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "startsWith", Value: value, }, }, @@ -165640,21 +167538,20 @@ func (r logLineQueryIDBigInt) Multiply(value BigInt) logLineSetParam { } } -func (r logLineQueryIDBigInt) MultiplyIfPresent(value *BigInt) logLineSetParam { +func (r workerSemaphoreSlotQueryWorkerIDString) StartsWithIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineSetParam{} + return workerSemaphoreSlotDefaultParam{} } - return r.Multiply(*value) + return r.StartsWith(*value) } -// Divide the required value of ID -func (r logLineQueryIDBigInt) Divide(value BigInt) logLineSetParam { - return logLineSetParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) EndsWith(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "endsWith", Value: value, }, }, @@ -165662,21 +167559,20 @@ func (r logLineQueryIDBigInt) Divide(value BigInt) logLineSetParam { } } -func (r logLineQueryIDBigInt) DivideIfPresent(value *BigInt) logLineSetParam { +func (r workerSemaphoreSlotQueryWorkerIDString) EndsWithIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineSetParam{} + return workerSemaphoreSlotDefaultParam{} } - return r.Divide(*value) + return r.EndsWith(*value) } -func (r logLineQueryIDBigInt) Equals(value BigInt) logLineWithPrismaIDEqualsUniqueParam { - - return logLineWithPrismaIDEqualsUniqueParam{ +func (r workerSemaphoreSlotQueryWorkerIDString) Mode(value QueryMode) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { - Name: "equals", + Name: "mode", Value: value, }, }, @@ -165684,38 +167580,20 @@ func (r logLineQueryIDBigInt) Equals(value BigInt) logLineWithPrismaIDEqualsUniq } } -func (r logLineQueryIDBigInt) EqualsIfPresent(value *BigInt) logLineWithPrismaIDEqualsUniqueParam { +func (r workerSemaphoreSlotQueryWorkerIDString) ModeIfPresent(value *QueryMode) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineWithPrismaIDEqualsUniqueParam{} - } - return r.Equals(*value) -} - -func (r logLineQueryIDBigInt) Order(direction SortOrder) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "id", - Value: direction, - }, - } -} - -func (r logLineQueryIDBigInt) Cursor(cursor BigInt) logLineCursorParam { - return logLineCursorParam{ - data: builder.Field{ - Name: "id", - Value: cursor, - }, + return workerSemaphoreSlotDefaultParam{} } + return r.Mode(*value) } -func (r logLineQueryIDBigInt) In(value []BigInt) logLineParamUnique { - return logLineParamUnique{ +func (r workerSemaphoreSlotQueryWorkerIDString) Not(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { - Name: "in", + Name: "not", Value: value, }, }, @@ -165723,20 +167601,22 @@ func (r logLineQueryIDBigInt) In(value []BigInt) logLineParamUnique { } } -func (r logLineQueryIDBigInt) InIfPresent(value []BigInt) logLineParamUnique { +func (r workerSemaphoreSlotQueryWorkerIDString) NotIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineParamUnique{} + return workerSemaphoreSlotDefaultParam{} } - return r.In(value) + return r.Not(*value) } -func (r logLineQueryIDBigInt) NotIn(value []BigInt) logLineParamUnique { - return logLineParamUnique{ +// deprecated: Use StartsWith instead. + +func (r workerSemaphoreSlotQueryWorkerIDString) HasPrefix(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { - Name: "notIn", + Name: "starts_with", Value: value, }, }, @@ -165744,20 +167624,23 @@ func (r logLineQueryIDBigInt) NotIn(value []BigInt) logLineParamUnique { } } -func (r logLineQueryIDBigInt) NotInIfPresent(value []BigInt) logLineParamUnique { +// deprecated: Use StartsWithIfPresent instead. +func (r workerSemaphoreSlotQueryWorkerIDString) HasPrefixIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineParamUnique{} + return workerSemaphoreSlotDefaultParam{} } - return r.NotIn(value) + return r.HasPrefix(*value) } -func (r logLineQueryIDBigInt) Lt(value BigInt) logLineParamUnique { - return logLineParamUnique{ +// deprecated: Use EndsWith instead. + +func (r workerSemaphoreSlotQueryWorkerIDString) HasSuffix(value string) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "workerId", Fields: []builder.Field{ { - Name: "lt", + Name: "ends_with", Value: value, }, }, @@ -165765,130 +167648,151 @@ func (r logLineQueryIDBigInt) Lt(value BigInt) logLineParamUnique { } } -func (r logLineQueryIDBigInt) LtIfPresent(value *BigInt) logLineParamUnique { +// deprecated: Use EndsWithIfPresent instead. +func (r workerSemaphoreSlotQueryWorkerIDString) HasSuffixIfPresent(value *string) workerSemaphoreSlotDefaultParam { if value == nil { - return logLineParamUnique{} + return workerSemaphoreSlotDefaultParam{} } - return r.Lt(*value) + return r.HasSuffix(*value) } -func (r logLineQueryIDBigInt) Lte(value BigInt) logLineParamUnique { - return logLineParamUnique{ - data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, - } +func (r workerSemaphoreSlotQueryWorkerIDString) Field() workerSemaphoreSlotPrismaFields { + return workerSemaphoreSlotFieldWorkerID } -func (r logLineQueryIDBigInt) LteIfPresent(value *BigInt) logLineParamUnique { - if value == nil { - return logLineParamUnique{} +// base struct +type workerSemaphoreSlotQueryStepRunStepRun struct{} + +type workerSemaphoreSlotQueryStepRunRelations struct{} + +// WorkerSemaphoreSlot -> StepRun +// +// @relation +// @optional +func (workerSemaphoreSlotQueryStepRunRelations) Where( + params ...StepRunWhereParam, +) workerSemaphoreSlotDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Lte(*value) -} -func (r logLineQueryIDBigInt) Gt(value BigInt) logLineParamUnique { - return logLineParamUnique{ + return workerSemaphoreSlotDefaultParam{ data: builder.Field{ - Name: "id", + Name: "stepRun", Fields: []builder.Field{ { - Name: "gt", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -func (r logLineQueryIDBigInt) GtIfPresent(value *BigInt) logLineParamUnique { - if value == nil { - return logLineParamUnique{} - } - return r.Gt(*value) +func (workerSemaphoreSlotQueryStepRunRelations) Fetch() workerSemaphoreSlotToStepRunFindUnique { + var v workerSemaphoreSlotToStepRunFindUnique + + v.query.Operation = "query" + v.query.Method = "stepRun" + v.query.Outputs = stepRunOutput + + return v } -func (r logLineQueryIDBigInt) Gte(value BigInt) logLineParamUnique { - return logLineParamUnique{ +func (r workerSemaphoreSlotQueryStepRunRelations) Link( + params StepRunWhereParam, +) workerSemaphoreSlotSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return workerSemaphoreSlotSetParam{} + } + + fields = append(fields, f) + + return workerSemaphoreSlotSetParam{ data: builder.Field{ - Name: "id", + Name: "stepRun", Fields: []builder.Field{ { - Name: "gte", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -func (r logLineQueryIDBigInt) GteIfPresent(value *BigInt) logLineParamUnique { - if value == nil { - return logLineParamUnique{} - } - return r.Gte(*value) -} +func (r workerSemaphoreSlotQueryStepRunRelations) Unlink() workerSemaphoreSlotSetParam { + var v workerSemaphoreSlotSetParam -func (r logLineQueryIDBigInt) Not(value BigInt) logLineParamUnique { - return logLineParamUnique{ + v = workerSemaphoreSlotSetParam{ data: builder.Field{ - Name: "id", + Name: "stepRun", Fields: []builder.Field{ { - Name: "not", - Value: value, + Name: "disconnect", + Value: true, }, }, }, } -} -func (r logLineQueryIDBigInt) NotIfPresent(value *BigInt) logLineParamUnique { - if value == nil { - return logLineParamUnique{} - } - return r.Not(*value) + return v } -func (r logLineQueryIDBigInt) Field() logLinePrismaFields { - return logLineFieldID +func (r workerSemaphoreSlotQueryStepRunStepRun) Field() workerSemaphoreSlotPrismaFields { + return workerSemaphoreSlotFieldStepRun } // base struct -type logLineQueryCreatedAtDateTime struct{} +type workerSemaphoreSlotQueryStepRunIDString struct{} -// Set the required value of CreatedAt -func (r logLineQueryCreatedAtDateTime) Set(value DateTime) logLineSetParam { +// Set the optional value of StepRunID +func (r workerSemaphoreSlotQueryStepRunIDString) Set(value string) workerSemaphoreSlotSetParam { - return logLineSetParam{ + return workerSemaphoreSlotSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Value: value, }, } } -// Set the optional value of CreatedAt dynamically -func (r logLineQueryCreatedAtDateTime) SetIfPresent(value *DateTime) logLineSetParam { +// Set the optional value of StepRunID dynamically +func (r workerSemaphoreSlotQueryStepRunIDString) SetIfPresent(value *String) workerSemaphoreSlotSetParam { if value == nil { - return logLineSetParam{} + return workerSemaphoreSlotSetParam{} } return r.Set(*value) } -func (r logLineQueryCreatedAtDateTime) Equals(value DateTime) logLineWithPrismaCreatedAtEqualsParam { +// Set the optional value of StepRunID dynamically +func (r workerSemaphoreSlotQueryStepRunIDString) SetOptional(value *String) workerSemaphoreSlotSetParam { + if value == nil { - return logLineWithPrismaCreatedAtEqualsParam{ + var v *string + return workerSemaphoreSlotSetParam{ + data: builder.Field{ + Name: "stepRunId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r workerSemaphoreSlotQueryStepRunIDString) Equals(value string) workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam { + + return workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "equals", @@ -165899,35 +167803,64 @@ func (r logLineQueryCreatedAtDateTime) Equals(value DateTime) logLineWithPrismaC } } -func (r logLineQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) logLineWithPrismaCreatedAtEqualsParam { +func (r workerSemaphoreSlotQueryStepRunIDString) EqualsIfPresent(value *string) workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam { if value == nil { - return logLineWithPrismaCreatedAtEqualsParam{} + return workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r logLineQueryCreatedAtDateTime) Order(direction SortOrder) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) EqualsOptional(value *String) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r workerSemaphoreSlotQueryStepRunIDString) IsNull() workerSemaphoreSlotParamUnique { + var str *string = nil + return workerSemaphoreSlotParamUnique{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r workerSemaphoreSlotQueryStepRunIDString) Order(direction SortOrder) workerSemaphoreSlotDefaultParam { + return workerSemaphoreSlotDefaultParam{ + data: builder.Field{ + Name: "stepRunId", Value: direction, }, } } -func (r logLineQueryCreatedAtDateTime) Cursor(cursor DateTime) logLineCursorParam { - return logLineCursorParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) Cursor(cursor string) workerSemaphoreSlotCursorParam { + return workerSemaphoreSlotCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Value: cursor, }, } } -func (r logLineQueryCreatedAtDateTime) In(value []DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) In(value []string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "in", @@ -165938,17 +167871,17 @@ func (r logLineQueryCreatedAtDateTime) In(value []DateTime) logLineDefaultParam } } -func (r logLineQueryCreatedAtDateTime) InIfPresent(value []DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) InIfPresent(value []string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.In(value) } -func (r logLineQueryCreatedAtDateTime) NotIn(value []DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) NotIn(value []string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "notIn", @@ -165959,17 +167892,17 @@ func (r logLineQueryCreatedAtDateTime) NotIn(value []DateTime) logLineDefaultPar } } -func (r logLineQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) NotInIfPresent(value []string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.NotIn(value) } -func (r logLineQueryCreatedAtDateTime) Lt(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) Lt(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "lt", @@ -165980,17 +167913,17 @@ func (r logLineQueryCreatedAtDateTime) Lt(value DateTime) logLineDefaultParam { } } -func (r logLineQueryCreatedAtDateTime) LtIfPresent(value *DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) LtIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Lt(*value) } -func (r logLineQueryCreatedAtDateTime) Lte(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) Lte(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "lte", @@ -166001,17 +167934,17 @@ func (r logLineQueryCreatedAtDateTime) Lte(value DateTime) logLineDefaultParam { } } -func (r logLineQueryCreatedAtDateTime) LteIfPresent(value *DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) LteIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Lte(*value) } -func (r logLineQueryCreatedAtDateTime) Gt(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) Gt(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "gt", @@ -166022,17 +167955,17 @@ func (r logLineQueryCreatedAtDateTime) Gt(value DateTime) logLineDefaultParam { } } -func (r logLineQueryCreatedAtDateTime) GtIfPresent(value *DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) GtIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Gt(*value) } -func (r logLineQueryCreatedAtDateTime) Gte(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) Gte(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { Name: "gte", @@ -166043,20 +167976,20 @@ func (r logLineQueryCreatedAtDateTime) Gte(value DateTime) logLineDefaultParam { } } -func (r logLineQueryCreatedAtDateTime) GteIfPresent(value *DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) GteIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } return r.Gte(*value) } -func (r logLineQueryCreatedAtDateTime) Not(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) Contains(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -166064,22 +167997,41 @@ func (r logLineQueryCreatedAtDateTime) Not(value DateTime) logLineDefaultParam { } } -func (r logLineQueryCreatedAtDateTime) NotIfPresent(value *DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) ContainsIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r workerSemaphoreSlotQueryStepRunIDString) StartsWith(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r logLineQueryCreatedAtDateTime) Before(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) StartsWithIfPresent(value *string) workerSemaphoreSlotParamUnique { + if value == nil { + return workerSemaphoreSlotParamUnique{} + } + return r.StartsWith(*value) +} + +func (r workerSemaphoreSlotQueryStepRunIDString) EndsWith(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -166087,23 +168039,41 @@ func (r logLineQueryCreatedAtDateTime) Before(value DateTime) logLineDefaultPara } } -// deprecated: Use LtIfPresent instead. -func (r logLineQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) EndsWithIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r workerSemaphoreSlotQueryStepRunIDString) Mode(value QueryMode) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r logLineQueryCreatedAtDateTime) After(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) ModeIfPresent(value *QueryMode) workerSemaphoreSlotParamUnique { + if value == nil { + return workerSemaphoreSlotParamUnique{} + } + return r.Mode(*value) +} + +func (r workerSemaphoreSlotQueryStepRunIDString) Not(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -166111,23 +168081,22 @@ func (r logLineQueryCreatedAtDateTime) After(value DateTime) logLineDefaultParam } } -// deprecated: Use GtIfPresent instead. -func (r logLineQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) logLineDefaultParam { +func (r workerSemaphoreSlotQueryStepRunIDString) NotIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r logLineQueryCreatedAtDateTime) BeforeEquals(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) HasPrefix(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -166135,23 +168104,23 @@ func (r logLineQueryCreatedAtDateTime) BeforeEquals(value DateTime) logLineDefau } } -// deprecated: Use LteIfPresent instead. -func (r logLineQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) logLineDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r workerSemaphoreSlotQueryStepRunIDString) HasPrefixIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r logLineQueryCreatedAtDateTime) AfterEquals(value DateTime) logLineDefaultParam { - return logLineDefaultParam{ +func (r workerSemaphoreSlotQueryStepRunIDString) HasSuffix(value string) workerSemaphoreSlotParamUnique { + return workerSemaphoreSlotParamUnique{ data: builder.Field{ - Name: "createdAt", + Name: "stepRunId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -166159,135 +168128,162 @@ func (r logLineQueryCreatedAtDateTime) AfterEquals(value DateTime) logLineDefaul } } -// deprecated: Use GteIfPresent instead. -func (r logLineQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) logLineDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r workerSemaphoreSlotQueryStepRunIDString) HasSuffixIfPresent(value *string) workerSemaphoreSlotParamUnique { if value == nil { - return logLineDefaultParam{} + return workerSemaphoreSlotParamUnique{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r logLineQueryCreatedAtDateTime) Field() logLinePrismaFields { - return logLineFieldCreatedAt +func (r workerSemaphoreSlotQueryStepRunIDString) Field() workerSemaphoreSlotPrismaFields { + return workerSemaphoreSlotFieldStepRunID } -// base struct -type logLineQueryTenantTenant struct{} +// Service acts as a namespaces to access query methods for the Service model +var Service = serviceQuery{} -type logLineQueryTenantRelations struct{} +// serviceQuery exposes query functions for the service model +type serviceQuery struct { -// LogLine -> Tenant -// -// @relation -// @required -func (logLineQueryTenantRelations) Where( - params ...TenantWhereParam, -) logLineDefaultParam { + // ID + // + // @required + ID serviceQueryIDString + + // CreatedAt + // + // @required + CreatedAt serviceQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt serviceQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt serviceQueryDeletedAtDateTime + + // Name + // + // @required + Name serviceQueryNameString + + // Description + // + // @optional + Description serviceQueryDescriptionString + + Tenant serviceQueryTenantRelations + + // TenantID + // + // @required + TenantID serviceQueryTenantIDString + + Workers serviceQueryWorkersRelations +} + +func (serviceQuery) Not(params ...ServiceWhereParam) serviceDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return logLineDefaultParam{ + return serviceDefaultParam{ data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } } -func (logLineQueryTenantRelations) Fetch() logLineToTenantFindUnique { - var v logLineToTenantFindUnique +func (serviceQuery) Or(params ...ServiceWhereParam) serviceDefaultParam { + var fields []builder.Field - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput + for _, q := range params { + fields = append(fields, q.field()) + } - return v + return serviceDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } } -func (r logLineQueryTenantRelations) Link( - params TenantWhereParam, -) logLineWithPrismaTenantSetParam { +func (serviceQuery) And(params ...ServiceWhereParam) serviceDefaultParam { var fields []builder.Field - f := params.field() - if f.Fields == nil && f.Value == nil { - return logLineWithPrismaTenantSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - fields = append(fields, f) - - return logLineWithPrismaTenantSetParam{ + return serviceDefaultParam{ data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, + Name: "AND", + List: true, + WrapList: true, + Fields: fields, }, } } -func (r logLineQueryTenantRelations) Unlink() logLineWithPrismaTenantSetParam { - var v logLineWithPrismaTenantSetParam +func (serviceQuery) TenantIDName( + _tenantID ServiceWithPrismaTenantIDWhereParam, - v = logLineWithPrismaTenantSetParam{ + _name ServiceWithPrismaNameWhereParam, +) ServiceEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _tenantID.field()) + fields = append(fields, _name.field()) + + return serviceEqualsUniqueParam{ data: builder.Field{ - Name: "tenant", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, + Name: "tenantId_name", + Fields: builder.TransformEquals(fields), }, } - - return v -} - -func (r logLineQueryTenantTenant) Field() logLinePrismaFields { - return logLineFieldTenant } // base struct -type logLineQueryTenantIDString struct{} +type serviceQueryIDString struct{} -// Set the required value of TenantID -func (r logLineQueryTenantIDString) Set(value string) logLineSetParam { +// Set the required value of ID +func (r serviceQueryIDString) Set(value string) serviceSetParam { - return logLineSetParam{ + return serviceSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "id", Value: value, }, } } -// Set the optional value of TenantID dynamically -func (r logLineQueryTenantIDString) SetIfPresent(value *String) logLineSetParam { +// Set the optional value of ID dynamically +func (r serviceQueryIDString) SetIfPresent(value *String) serviceSetParam { if value == nil { - return logLineSetParam{} + return serviceSetParam{} } return r.Set(*value) } -func (r logLineQueryTenantIDString) Equals(value string) logLineWithPrismaTenantIDEqualsParam { +func (r serviceQueryIDString) Equals(value string) serviceWithPrismaIDEqualsUniqueParam { - return logLineWithPrismaTenantIDEqualsParam{ + return serviceWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -166298,35 +168294,35 @@ func (r logLineQueryTenantIDString) Equals(value string) logLineWithPrismaTenant } } -func (r logLineQueryTenantIDString) EqualsIfPresent(value *string) logLineWithPrismaTenantIDEqualsParam { +func (r serviceQueryIDString) EqualsIfPresent(value *string) serviceWithPrismaIDEqualsUniqueParam { if value == nil { - return logLineWithPrismaTenantIDEqualsParam{} + return serviceWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r logLineQueryTenantIDString) Order(direction SortOrder) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) Order(direction SortOrder) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "id", Value: direction, }, } } -func (r logLineQueryTenantIDString) Cursor(cursor string) logLineCursorParam { - return logLineCursorParam{ +func (r serviceQueryIDString) Cursor(cursor string) serviceCursorParam { + return serviceCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "id", Value: cursor, }, } } -func (r logLineQueryTenantIDString) In(value []string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) In(value []string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -166337,17 +168333,17 @@ func (r logLineQueryTenantIDString) In(value []string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) InIfPresent(value []string) logLineDefaultParam { +func (r serviceQueryIDString) InIfPresent(value []string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.In(value) } -func (r logLineQueryTenantIDString) NotIn(value []string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) NotIn(value []string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -166358,17 +168354,17 @@ func (r logLineQueryTenantIDString) NotIn(value []string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) NotInIfPresent(value []string) logLineDefaultParam { +func (r serviceQueryIDString) NotInIfPresent(value []string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.NotIn(value) } -func (r logLineQueryTenantIDString) Lt(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) Lt(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -166379,17 +168375,17 @@ func (r logLineQueryTenantIDString) Lt(value string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) LtIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) LtIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.Lt(*value) } -func (r logLineQueryTenantIDString) Lte(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) Lte(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -166400,17 +168396,17 @@ func (r logLineQueryTenantIDString) Lte(value string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) LteIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) LteIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.Lte(*value) } -func (r logLineQueryTenantIDString) Gt(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) Gt(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -166421,17 +168417,17 @@ func (r logLineQueryTenantIDString) Gt(value string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) GtIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) GtIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.Gt(*value) } -func (r logLineQueryTenantIDString) Gte(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) Gte(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -166442,17 +168438,17 @@ func (r logLineQueryTenantIDString) Gte(value string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) GteIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) GteIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.Gte(*value) } -func (r logLineQueryTenantIDString) Contains(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) Contains(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -166463,17 +168459,17 @@ func (r logLineQueryTenantIDString) Contains(value string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) ContainsIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) ContainsIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.Contains(*value) } -func (r logLineQueryTenantIDString) StartsWith(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) StartsWith(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -166484,17 +168480,17 @@ func (r logLineQueryTenantIDString) StartsWith(value string) logLineDefaultParam } } -func (r logLineQueryTenantIDString) StartsWithIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) StartsWithIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.StartsWith(*value) } -func (r logLineQueryTenantIDString) EndsWith(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) EndsWith(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -166505,17 +168501,17 @@ func (r logLineQueryTenantIDString) EndsWith(value string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) EndsWithIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) EndsWithIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.EndsWith(*value) } -func (r logLineQueryTenantIDString) Mode(value QueryMode) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) Mode(value QueryMode) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -166526,17 +168522,17 @@ func (r logLineQueryTenantIDString) Mode(value QueryMode) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) ModeIfPresent(value *QueryMode) logLineDefaultParam { +func (r serviceQueryIDString) ModeIfPresent(value *QueryMode) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.Mode(*value) } -func (r logLineQueryTenantIDString) Not(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) Not(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -166547,19 +168543,19 @@ func (r logLineQueryTenantIDString) Not(value string) logLineDefaultParam { } } -func (r logLineQueryTenantIDString) NotIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) NotIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r logLineQueryTenantIDString) HasPrefix(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) HasPrefix(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -166571,19 +168567,19 @@ func (r logLineQueryTenantIDString) HasPrefix(value string) logLineDefaultParam } // deprecated: Use StartsWithIfPresent instead. -func (r logLineQueryTenantIDString) HasPrefixIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) HasPrefixIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r logLineQueryTenantIDString) HasSuffix(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryIDString) HasSuffix(value string) serviceParamUnique { + return serviceParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -166595,150 +168591,46 @@ func (r logLineQueryTenantIDString) HasSuffix(value string) logLineDefaultParam } // deprecated: Use EndsWithIfPresent instead. -func (r logLineQueryTenantIDString) HasSuffixIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryIDString) HasSuffixIfPresent(value *string) serviceParamUnique { if value == nil { - return logLineDefaultParam{} + return serviceParamUnique{} } return r.HasSuffix(*value) } -func (r logLineQueryTenantIDString) Field() logLinePrismaFields { - return logLineFieldTenantID -} - -// base struct -type logLineQueryStepRunStepRun struct{} - -type logLineQueryStepRunRelations struct{} - -// LogLine -> StepRun -// -// @relation -// @optional -func (logLineQueryStepRunRelations) Where( - params ...StepRunWhereParam, -) logLineDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return logLineDefaultParam{ - data: builder.Field{ - Name: "stepRun", - Fields: []builder.Field{ - { - Name: "is", - Fields: fields, - }, - }, - }, - } -} - -func (logLineQueryStepRunRelations) Fetch() logLineToStepRunFindUnique { - var v logLineToStepRunFindUnique - - v.query.Operation = "query" - v.query.Method = "stepRun" - v.query.Outputs = stepRunOutput - - return v -} - -func (r logLineQueryStepRunRelations) Link( - params StepRunWhereParam, -) logLineSetParam { - var fields []builder.Field - - f := params.field() - if f.Fields == nil && f.Value == nil { - return logLineSetParam{} - } - - fields = append(fields, f) - - return logLineSetParam{ - data: builder.Field{ - Name: "stepRun", - Fields: []builder.Field{ - { - Name: "connect", - Fields: builder.TransformEquals(fields), - }, - }, - }, - } -} - -func (r logLineQueryStepRunRelations) Unlink() logLineSetParam { - var v logLineSetParam - - v = logLineSetParam{ - data: builder.Field{ - Name: "stepRun", - Fields: []builder.Field{ - { - Name: "disconnect", - Value: true, - }, - }, - }, - } - - return v -} - -func (r logLineQueryStepRunStepRun) Field() logLinePrismaFields { - return logLineFieldStepRun +func (r serviceQueryIDString) Field() servicePrismaFields { + return serviceFieldID } // base struct -type logLineQueryStepRunIDString struct{} +type serviceQueryCreatedAtDateTime struct{} -// Set the optional value of StepRunID -func (r logLineQueryStepRunIDString) Set(value string) logLineSetParam { +// Set the required value of CreatedAt +func (r serviceQueryCreatedAtDateTime) Set(value DateTime) serviceSetParam { - return logLineSetParam{ + return serviceSetParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Value: value, }, } } -// Set the optional value of StepRunID dynamically -func (r logLineQueryStepRunIDString) SetIfPresent(value *String) logLineSetParam { - if value == nil { - return logLineSetParam{} - } - - return r.Set(*value) -} - -// Set the optional value of StepRunID dynamically -func (r logLineQueryStepRunIDString) SetOptional(value *String) logLineSetParam { +// Set the optional value of CreatedAt dynamically +func (r serviceQueryCreatedAtDateTime) SetIfPresent(value *DateTime) serviceSetParam { if value == nil { - - var v *string - return logLineSetParam{ - data: builder.Field{ - Name: "stepRunId", - Value: v, - }, - } + return serviceSetParam{} } return r.Set(*value) } -func (r logLineQueryStepRunIDString) Equals(value string) logLineWithPrismaStepRunIDEqualsParam { +func (r serviceQueryCreatedAtDateTime) Equals(value DateTime) serviceWithPrismaCreatedAtEqualsParam { - return logLineWithPrismaStepRunIDEqualsParam{ + return serviceWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -166749,64 +168641,35 @@ func (r logLineQueryStepRunIDString) Equals(value string) logLineWithPrismaStepR } } -func (r logLineQueryStepRunIDString) EqualsIfPresent(value *string) logLineWithPrismaStepRunIDEqualsParam { +func (r serviceQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) serviceWithPrismaCreatedAtEqualsParam { if value == nil { - return logLineWithPrismaStepRunIDEqualsParam{} + return serviceWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r logLineQueryStepRunIDString) EqualsOptional(value *String) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, - }, - } -} - -func (r logLineQueryStepRunIDString) IsNull() logLineDefaultParam { - var str *string = nil - return logLineDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, - } -} - -func (r logLineQueryStepRunIDString) Order(direction SortOrder) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) Order(direction SortOrder) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Value: direction, }, } } -func (r logLineQueryStepRunIDString) Cursor(cursor string) logLineCursorParam { - return logLineCursorParam{ +func (r serviceQueryCreatedAtDateTime) Cursor(cursor DateTime) serviceCursorParam { + return serviceCursorParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Value: cursor, }, } } -func (r logLineQueryStepRunIDString) In(value []string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) In(value []DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -166817,17 +168680,17 @@ func (r logLineQueryStepRunIDString) In(value []string) logLineDefaultParam { } } -func (r logLineQueryStepRunIDString) InIfPresent(value []string) logLineDefaultParam { +func (r serviceQueryCreatedAtDateTime) InIfPresent(value []DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.In(value) } -func (r logLineQueryStepRunIDString) NotIn(value []string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) NotIn(value []DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -166838,17 +168701,17 @@ func (r logLineQueryStepRunIDString) NotIn(value []string) logLineDefaultParam { } } -func (r logLineQueryStepRunIDString) NotInIfPresent(value []string) logLineDefaultParam { +func (r serviceQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.NotIn(value) } -func (r logLineQueryStepRunIDString) Lt(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) Lt(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -166859,17 +168722,17 @@ func (r logLineQueryStepRunIDString) Lt(value string) logLineDefaultParam { } } -func (r logLineQueryStepRunIDString) LtIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryCreatedAtDateTime) LtIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Lt(*value) } -func (r logLineQueryStepRunIDString) Lte(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) Lte(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -166880,17 +168743,17 @@ func (r logLineQueryStepRunIDString) Lte(value string) logLineDefaultParam { } } -func (r logLineQueryStepRunIDString) LteIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryCreatedAtDateTime) LteIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Lte(*value) } -func (r logLineQueryStepRunIDString) Gt(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) Gt(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -166901,17 +168764,17 @@ func (r logLineQueryStepRunIDString) Gt(value string) logLineDefaultParam { } } -func (r logLineQueryStepRunIDString) GtIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryCreatedAtDateTime) GtIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Gt(*value) } -func (r logLineQueryStepRunIDString) Gte(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) Gte(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -166922,20 +168785,20 @@ func (r logLineQueryStepRunIDString) Gte(value string) logLineDefaultParam { } } -func (r logLineQueryStepRunIDString) GteIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryCreatedAtDateTime) GteIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Gte(*value) } -func (r logLineQueryStepRunIDString) Contains(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) Not(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -166943,20 +168806,22 @@ func (r logLineQueryStepRunIDString) Contains(value string) logLineDefaultParam } } -func (r logLineQueryStepRunIDString) ContainsIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryCreatedAtDateTime) NotIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r logLineQueryStepRunIDString) StartsWith(value string) logLineDefaultParam { - return logLineDefaultParam{ +// deprecated: Use Lt instead. + +func (r serviceQueryCreatedAtDateTime) Before(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -166964,62 +168829,23 @@ func (r logLineQueryStepRunIDString) StartsWith(value string) logLineDefaultPara } } -func (r logLineQueryStepRunIDString) StartsWithIfPresent(value *string) logLineDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r serviceQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r logLineQueryStepRunIDString) EndsWith(value string) logLineDefaultParam { - return logLineDefaultParam{ +// deprecated: Use Gt instead. + +func (r serviceQueryCreatedAtDateTime) After(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "endsWith", - Value: value, - }, - }, - }, - } -} - -func (r logLineQueryStepRunIDString) EndsWithIfPresent(value *string) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r logLineQueryStepRunIDString) Mode(value QueryMode) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, - } -} - -func (r logLineQueryStepRunIDString) ModeIfPresent(value *QueryMode) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.Mode(*value) -} - -func (r logLineQueryStepRunIDString) Not(value string) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "not", + Name: "gt", Value: value, }, }, @@ -167027,22 +168853,23 @@ func (r logLineQueryStepRunIDString) Not(value string) logLineDefaultParam { } } -func (r logLineQueryStepRunIDString) NotIfPresent(value *string) logLineDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r serviceQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r logLineQueryStepRunIDString) HasPrefix(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) BeforeEquals(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -167050,23 +168877,23 @@ func (r logLineQueryStepRunIDString) HasPrefix(value string) logLineDefaultParam } } -// deprecated: Use StartsWithIfPresent instead. -func (r logLineQueryStepRunIDString) HasPrefixIfPresent(value *string) logLineDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r serviceQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r logLineQueryStepRunIDString) HasSuffix(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryCreatedAtDateTime) AfterEquals(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "createdAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -167074,47 +168901,47 @@ func (r logLineQueryStepRunIDString) HasSuffix(value string) logLineDefaultParam } } -// deprecated: Use EndsWithIfPresent instead. -func (r logLineQueryStepRunIDString) HasSuffixIfPresent(value *string) logLineDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r serviceQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.HasSuffix(*value) + return r.AfterEquals(*value) } -func (r logLineQueryStepRunIDString) Field() logLinePrismaFields { - return logLineFieldStepRunID +func (r serviceQueryCreatedAtDateTime) Field() servicePrismaFields { + return serviceFieldCreatedAt } // base struct -type logLineQueryMessageString struct{} +type serviceQueryUpdatedAtDateTime struct{} -// Set the required value of Message -func (r logLineQueryMessageString) Set(value string) logLineWithPrismaMessageSetParam { +// Set the required value of UpdatedAt +func (r serviceQueryUpdatedAtDateTime) Set(value DateTime) serviceSetParam { - return logLineWithPrismaMessageSetParam{ + return serviceSetParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of Message dynamically -func (r logLineQueryMessageString) SetIfPresent(value *String) logLineWithPrismaMessageSetParam { +// Set the optional value of UpdatedAt dynamically +func (r serviceQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) serviceSetParam { if value == nil { - return logLineWithPrismaMessageSetParam{} + return serviceSetParam{} } return r.Set(*value) } -func (r logLineQueryMessageString) Equals(value string) logLineWithPrismaMessageEqualsParam { +func (r serviceQueryUpdatedAtDateTime) Equals(value DateTime) serviceWithPrismaUpdatedAtEqualsParam { - return logLineWithPrismaMessageEqualsParam{ + return serviceWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -167125,35 +168952,35 @@ func (r logLineQueryMessageString) Equals(value string) logLineWithPrismaMessage } } -func (r logLineQueryMessageString) EqualsIfPresent(value *string) logLineWithPrismaMessageEqualsParam { +func (r serviceQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) serviceWithPrismaUpdatedAtEqualsParam { if value == nil { - return logLineWithPrismaMessageEqualsParam{} + return serviceWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r logLineQueryMessageString) Order(direction SortOrder) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) Order(direction SortOrder) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Value: direction, }, } } -func (r logLineQueryMessageString) Cursor(cursor string) logLineCursorParam { - return logLineCursorParam{ +func (r serviceQueryUpdatedAtDateTime) Cursor(cursor DateTime) serviceCursorParam { + return serviceCursorParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Value: cursor, }, } } -func (r logLineQueryMessageString) In(value []string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) In(value []DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -167164,17 +168991,17 @@ func (r logLineQueryMessageString) In(value []string) logLineDefaultParam { } } -func (r logLineQueryMessageString) InIfPresent(value []string) logLineDefaultParam { +func (r serviceQueryUpdatedAtDateTime) InIfPresent(value []DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.In(value) } -func (r logLineQueryMessageString) NotIn(value []string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) NotIn(value []DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -167185,17 +169012,17 @@ func (r logLineQueryMessageString) NotIn(value []string) logLineDefaultParam { } } -func (r logLineQueryMessageString) NotInIfPresent(value []string) logLineDefaultParam { +func (r serviceQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.NotIn(value) } -func (r logLineQueryMessageString) Lt(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) Lt(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -167206,17 +169033,17 @@ func (r logLineQueryMessageString) Lt(value string) logLineDefaultParam { } } -func (r logLineQueryMessageString) LtIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Lt(*value) } -func (r logLineQueryMessageString) Lte(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) Lte(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -167227,17 +169054,17 @@ func (r logLineQueryMessageString) Lte(value string) logLineDefaultParam { } } -func (r logLineQueryMessageString) LteIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Lte(*value) } -func (r logLineQueryMessageString) Gt(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) Gt(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -167248,17 +169075,17 @@ func (r logLineQueryMessageString) Gt(value string) logLineDefaultParam { } } -func (r logLineQueryMessageString) GtIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Gt(*value) } -func (r logLineQueryMessageString) Gte(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) Gte(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -167269,101 +169096,17 @@ func (r logLineQueryMessageString) Gte(value string) logLineDefaultParam { } } -func (r logLineQueryMessageString) GteIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Gte(*value) } -func (r logLineQueryMessageString) Contains(value string) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "message", - Fields: []builder.Field{ - { - Name: "contains", - Value: value, - }, - }, - }, - } -} - -func (r logLineQueryMessageString) ContainsIfPresent(value *string) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.Contains(*value) -} - -func (r logLineQueryMessageString) StartsWith(value string) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "message", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, - } -} - -func (r logLineQueryMessageString) StartsWithIfPresent(value *string) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.StartsWith(*value) -} - -func (r logLineQueryMessageString) EndsWith(value string) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "message", - Fields: []builder.Field{ - { - Name: "endsWith", - Value: value, - }, - }, - }, - } -} - -func (r logLineQueryMessageString) EndsWithIfPresent(value *string) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r logLineQueryMessageString) Mode(value QueryMode) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "message", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, - } -} - -func (r logLineQueryMessageString) ModeIfPresent(value *QueryMode) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.Mode(*value) -} - -func (r logLineQueryMessageString) Not(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) Not(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { Name: "not", @@ -167374,46 +169117,22 @@ func (r logLineQueryMessageString) Not(value string) logLineDefaultParam { } } -func (r logLineQueryMessageString) NotIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } return r.Not(*value) } -// deprecated: Use StartsWith instead. - -func (r logLineQueryMessageString) HasPrefix(value string) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "message", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, - }, - } -} - -// deprecated: Use StartsWithIfPresent instead. -func (r logLineQueryMessageString) HasPrefixIfPresent(value *string) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.HasPrefix(*value) -} - -// deprecated: Use EndsWith instead. +// deprecated: Use Lt instead. -func (r logLineQueryMessageString) HasSuffix(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) Before(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "message", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "lt", Value: value, }, }, @@ -167421,50 +169140,23 @@ func (r logLineQueryMessageString) HasSuffix(value string) logLineDefaultParam { } } -// deprecated: Use EndsWithIfPresent instead. -func (r logLineQueryMessageString) HasSuffixIfPresent(value *string) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.HasSuffix(*value) -} - -func (r logLineQueryMessageString) Field() logLinePrismaFields { - return logLineFieldMessage -} - -// base struct -type logLineQueryLevelLogLineLevel struct{} - -// Set the required value of Level -func (r logLineQueryLevelLogLineLevel) Set(value LogLineLevel) logLineSetParam { - - return logLineSetParam{ - data: builder.Field{ - Name: "level", - Value: value, - }, - } - -} - -// Set the optional value of Level dynamically -func (r logLineQueryLevelLogLineLevel) SetIfPresent(value *LogLineLevel) logLineSetParam { +// deprecated: Use LtIfPresent instead. +func (r serviceQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineSetParam{} + return serviceDefaultParam{} } - - return r.Set(*value) + return r.Before(*value) } -func (r logLineQueryLevelLogLineLevel) Equals(value LogLineLevel) logLineWithPrismaLevelEqualsParam { +// deprecated: Use Gt instead. - return logLineWithPrismaLevelEqualsParam{ +func (r serviceQueryUpdatedAtDateTime) After(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "level", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "equals", + Name: "gt", Value: value, }, }, @@ -167472,38 +169164,23 @@ func (r logLineQueryLevelLogLineLevel) Equals(value LogLineLevel) logLineWithPri } } -func (r logLineQueryLevelLogLineLevel) EqualsIfPresent(value *LogLineLevel) logLineWithPrismaLevelEqualsParam { +// deprecated: Use GtIfPresent instead. +func (r serviceQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineWithPrismaLevelEqualsParam{} - } - return r.Equals(*value) -} - -func (r logLineQueryLevelLogLineLevel) Order(direction SortOrder) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "level", - Value: direction, - }, + return serviceDefaultParam{} } + return r.After(*value) } -func (r logLineQueryLevelLogLineLevel) Cursor(cursor LogLineLevel) logLineCursorParam { - return logLineCursorParam{ - data: builder.Field{ - Name: "level", - Value: cursor, - }, - } -} +// deprecated: Use Lte instead. -func (r logLineQueryLevelLogLineLevel) In(value []LogLineLevel) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) BeforeEquals(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "level", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "in", + Name: "lte", Value: value, }, }, @@ -167511,41 +169188,23 @@ func (r logLineQueryLevelLogLineLevel) In(value []LogLineLevel) logLineDefaultPa } } -func (r logLineQueryLevelLogLineLevel) InIfPresent(value []LogLineLevel) logLineDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r serviceQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} - } - return r.In(value) -} - -func (r logLineQueryLevelLogLineLevel) NotIn(value []LogLineLevel) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "level", - Fields: []builder.Field{ - { - Name: "notIn", - Value: value, - }, - }, - }, + return serviceDefaultParam{} } + return r.BeforeEquals(*value) } -func (r logLineQueryLevelLogLineLevel) NotInIfPresent(value []LogLineLevel) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.NotIn(value) -} +// deprecated: Use Gte instead. -func (r logLineQueryLevelLogLineLevel) Not(value LogLineLevel) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryUpdatedAtDateTime) AfterEquals(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "level", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -167553,49 +169212,50 @@ func (r logLineQueryLevelLogLineLevel) Not(value LogLineLevel) logLineDefaultPar } } -func (r logLineQueryLevelLogLineLevel) NotIfPresent(value *LogLineLevel) logLineDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r serviceQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -func (r logLineQueryLevelLogLineLevel) Field() logLinePrismaFields { - return logLineFieldLevel +func (r serviceQueryUpdatedAtDateTime) Field() servicePrismaFields { + return serviceFieldUpdatedAt } // base struct -type logLineQueryMetadataJson struct{} +type serviceQueryDeletedAtDateTime struct{} -// Set the optional value of Metadata -func (r logLineQueryMetadataJson) Set(value JSON) logLineSetParam { +// Set the optional value of DeletedAt +func (r serviceQueryDeletedAtDateTime) Set(value DateTime) serviceSetParam { - return logLineSetParam{ + return serviceSetParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Value: value, }, } } -// Set the optional value of Metadata dynamically -func (r logLineQueryMetadataJson) SetIfPresent(value *JSON) logLineSetParam { +// Set the optional value of DeletedAt dynamically +func (r serviceQueryDeletedAtDateTime) SetIfPresent(value *DateTime) serviceSetParam { if value == nil { - return logLineSetParam{} + return serviceSetParam{} } return r.Set(*value) } -// Set the optional value of Metadata dynamically -func (r logLineQueryMetadataJson) SetOptional(value *JSON) logLineSetParam { +// Set the optional value of DeletedAt dynamically +func (r serviceQueryDeletedAtDateTime) SetOptional(value *DateTime) serviceSetParam { if value == nil { - var v *JSON - return logLineSetParam{ + var v *DateTime + return serviceSetParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Value: v, }, } @@ -167604,11 +169264,11 @@ func (r logLineQueryMetadataJson) SetOptional(value *JSON) logLineSetParam { return r.Set(*value) } -func (r logLineQueryMetadataJson) Equals(value JSON) logLineWithPrismaMetadataEqualsParam { +func (r serviceQueryDeletedAtDateTime) Equals(value DateTime) serviceWithPrismaDeletedAtEqualsParam { - return logLineWithPrismaMetadataEqualsParam{ + return serviceWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -167619,17 +169279,17 @@ func (r logLineQueryMetadataJson) Equals(value JSON) logLineWithPrismaMetadataEq } } -func (r logLineQueryMetadataJson) EqualsIfPresent(value *JSON) logLineWithPrismaMetadataEqualsParam { +func (r serviceQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) serviceWithPrismaDeletedAtEqualsParam { if value == nil { - return logLineWithPrismaMetadataEqualsParam{} + return serviceWithPrismaDeletedAtEqualsParam{} } return r.Equals(*value) } -func (r logLineQueryMetadataJson) EqualsOptional(value *JSON) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) EqualsOptional(value *DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -167640,11 +169300,11 @@ func (r logLineQueryMetadataJson) EqualsOptional(value *JSON) logLineDefaultPara } } -func (r logLineQueryMetadataJson) IsNull() logLineDefaultParam { +func (r serviceQueryDeletedAtDateTime) IsNull() serviceDefaultParam { var str *string = nil - return logLineDefaultParam{ + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -167655,31 +169315,31 @@ func (r logLineQueryMetadataJson) IsNull() logLineDefaultParam { } } -func (r logLineQueryMetadataJson) Order(direction SortOrder) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) Order(direction SortOrder) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Value: direction, }, } } -func (r logLineQueryMetadataJson) Cursor(cursor JSON) logLineCursorParam { - return logLineCursorParam{ +func (r serviceQueryDeletedAtDateTime) Cursor(cursor DateTime) serviceCursorParam { + return serviceCursorParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Value: cursor, }, } } -func (r logLineQueryMetadataJson) Path(value []string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) In(value []DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "path", + Name: "in", Value: value, }, }, @@ -167687,20 +169347,20 @@ func (r logLineQueryMetadataJson) Path(value []string) logLineDefaultParam { } } -func (r logLineQueryMetadataJson) PathIfPresent(value []string) logLineDefaultParam { +func (r serviceQueryDeletedAtDateTime) InIfPresent(value []DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.Path(value) + return r.In(value) } -func (r logLineQueryMetadataJson) StringContains(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) NotIn(value []DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "notIn", Value: value, }, }, @@ -167708,20 +169368,20 @@ func (r logLineQueryMetadataJson) StringContains(value string) logLineDefaultPar } } -func (r logLineQueryMetadataJson) StringContainsIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.StringContains(*value) + return r.NotIn(value) } -func (r logLineQueryMetadataJson) StringStartsWith(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) Lt(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "lt", Value: value, }, }, @@ -167729,20 +169389,20 @@ func (r logLineQueryMetadataJson) StringStartsWith(value string) logLineDefaultP } } -func (r logLineQueryMetadataJson) StringStartsWithIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryDeletedAtDateTime) LtIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.StringStartsWith(*value) + return r.Lt(*value) } -func (r logLineQueryMetadataJson) StringEndsWith(value string) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) Lte(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "string_ends_with", + Name: "lte", Value: value, }, }, @@ -167750,20 +169410,20 @@ func (r logLineQueryMetadataJson) StringEndsWith(value string) logLineDefaultPar } } -func (r logLineQueryMetadataJson) StringEndsWithIfPresent(value *string) logLineDefaultParam { +func (r serviceQueryDeletedAtDateTime) LteIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.StringEndsWith(*value) + return r.Lte(*value) } -func (r logLineQueryMetadataJson) ArrayContains(value JSON) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) Gt(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "gt", Value: value, }, }, @@ -167771,20 +169431,20 @@ func (r logLineQueryMetadataJson) ArrayContains(value JSON) logLineDefaultParam } } -func (r logLineQueryMetadataJson) ArrayContainsIfPresent(value *JSON) logLineDefaultParam { +func (r serviceQueryDeletedAtDateTime) GtIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.ArrayContains(*value) + return r.Gt(*value) } -func (r logLineQueryMetadataJson) ArrayStartsWith(value JSON) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) Gte(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "gte", Value: value, }, }, @@ -167792,20 +169452,20 @@ func (r logLineQueryMetadataJson) ArrayStartsWith(value JSON) logLineDefaultPara } } -func (r logLineQueryMetadataJson) ArrayStartsWithIfPresent(value *JSON) logLineDefaultParam { +func (r serviceQueryDeletedAtDateTime) GteIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.Gte(*value) } -func (r logLineQueryMetadataJson) ArrayEndsWith(value JSON) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) Not(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "not", Value: value, }, }, @@ -167813,17 +169473,19 @@ func (r logLineQueryMetadataJson) ArrayEndsWith(value JSON) logLineDefaultParam } } -func (r logLineQueryMetadataJson) ArrayEndsWithIfPresent(value *JSON) logLineDefaultParam { +func (r serviceQueryDeletedAtDateTime) NotIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.Not(*value) } -func (r logLineQueryMetadataJson) Lt(value JSON) logLineDefaultParam { - return logLineDefaultParam{ +// deprecated: Use Lt instead. + +func (r serviceQueryDeletedAtDateTime) Before(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -167834,38 +169496,20 @@ func (r logLineQueryMetadataJson) Lt(value JSON) logLineDefaultParam { } } -func (r logLineQueryMetadataJson) LtIfPresent(value *JSON) logLineDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r serviceQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} - } - return r.Lt(*value) -} - -func (r logLineQueryMetadataJson) Lte(value JSON) logLineDefaultParam { - return logLineDefaultParam{ - data: builder.Field{ - Name: "metadata", - Fields: []builder.Field{ - { - Name: "lte", - Value: value, - }, - }, - }, + return serviceDefaultParam{} } + return r.Before(*value) } -func (r logLineQueryMetadataJson) LteIfPresent(value *JSON) logLineDefaultParam { - if value == nil { - return logLineDefaultParam{} - } - return r.Lte(*value) -} +// deprecated: Use Gt instead. -func (r logLineQueryMetadataJson) Gt(value JSON) logLineDefaultParam { - return logLineDefaultParam{ +func (r serviceQueryDeletedAtDateTime) After(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -167876,20 +169520,23 @@ func (r logLineQueryMetadataJson) Gt(value JSON) logLineDefaultParam { } } -func (r logLineQueryMetadataJson) GtIfPresent(value *JSON) logLineDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r serviceQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.Gt(*value) + return r.After(*value) } -func (r logLineQueryMetadataJson) Gte(value JSON) logLineDefaultParam { - return logLineDefaultParam{ +// deprecated: Use Lte instead. + +func (r serviceQueryDeletedAtDateTime) BeforeEquals(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "gte", + Name: "lte", Value: value, }, }, @@ -167897,20 +169544,23 @@ func (r logLineQueryMetadataJson) Gte(value JSON) logLineDefaultParam { } } -func (r logLineQueryMetadataJson) GteIfPresent(value *JSON) logLineDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r serviceQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.Gte(*value) + return r.BeforeEquals(*value) } -func (r logLineQueryMetadataJson) Not(value JSONNullValueFilter) logLineDefaultParam { - return logLineDefaultParam{ +// deprecated: Use Gte instead. + +func (r serviceQueryDeletedAtDateTime) AfterEquals(value DateTime) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -167918,141 +169568,89 @@ func (r logLineQueryMetadataJson) Not(value JSONNullValueFilter) logLineDefaultP } } -func (r logLineQueryMetadataJson) NotIfPresent(value *JSONNullValueFilter) logLineDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r serviceQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) serviceDefaultParam { if value == nil { - return logLineDefaultParam{} + return serviceDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -func (r logLineQueryMetadataJson) Field() logLinePrismaFields { - return logLineFieldMetadata +func (r serviceQueryDeletedAtDateTime) Field() servicePrismaFields { + return serviceFieldDeletedAt } -// StreamEvent acts as a namespaces to access query methods for the StreamEvent model -var StreamEvent = streamEventQuery{} - -// streamEventQuery exposes query functions for the streamEvent model -type streamEventQuery struct { - - // ID - // - // @required - ID streamEventQueryIDBigInt - - // CreatedAt - // - // @required - CreatedAt streamEventQueryCreatedAtDateTime - - Tenant streamEventQueryTenantRelations - - // TenantID - // - // @required - TenantID streamEventQueryTenantIDString - - StepRun streamEventQueryStepRunRelations +// base struct +type serviceQueryNameString struct{} - // StepRunID - // - // @optional - StepRunID streamEventQueryStepRunIDString +// Set the required value of Name +func (r serviceQueryNameString) Set(value string) serviceWithPrismaNameSetParam { - // Message - // - // @required - Message streamEventQueryMessageBytes + return serviceWithPrismaNameSetParam{ + data: builder.Field{ + Name: "name", + Value: value, + }, + } - // Metadata - // - // @optional - Metadata streamEventQueryMetadataJson } -func (streamEventQuery) Not(params ...StreamEventWhereParam) streamEventDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// Set the optional value of Name dynamically +func (r serviceQueryNameString) SetIfPresent(value *String) serviceWithPrismaNameSetParam { + if value == nil { + return serviceWithPrismaNameSetParam{} } - return streamEventDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, - } + return r.Set(*value) } -func (streamEventQuery) Or(params ...StreamEventWhereParam) streamEventDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +func (r serviceQueryNameString) Equals(value string) serviceWithPrismaNameEqualsParam { - return streamEventDefaultParam{ + return serviceWithPrismaNameEqualsParam{ data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, + Name: "name", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, }, } } -func (streamEventQuery) And(params ...StreamEventWhereParam) streamEventDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r serviceQueryNameString) EqualsIfPresent(value *string) serviceWithPrismaNameEqualsParam { + if value == nil { + return serviceWithPrismaNameEqualsParam{} } + return r.Equals(*value) +} - return streamEventDefaultParam{ +func (r serviceQueryNameString) Order(direction SortOrder) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, + Name: "name", + Value: direction, }, } } -// base struct -type streamEventQueryIDBigInt struct{} - -// Set the required value of ID -func (r streamEventQueryIDBigInt) Set(value BigInt) streamEventSetParam { - - return streamEventSetParam{ +func (r serviceQueryNameString) Cursor(cursor string) serviceCursorParam { + return serviceCursorParam{ data: builder.Field{ - Name: "id", - Value: value, + Name: "name", + Value: cursor, }, } - -} - -// Set the optional value of ID dynamically -func (r streamEventQueryIDBigInt) SetIfPresent(value *BigInt) streamEventSetParam { - if value == nil { - return streamEventSetParam{} - } - - return r.Set(*value) } -// Increment the required value of ID -func (r streamEventQueryIDBigInt) Increment(value BigInt) streamEventSetParam { - return streamEventSetParam{ +func (r serviceQueryNameString) In(value []string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ - builder.Field{ - Name: "increment", + { + Name: "in", Value: value, }, }, @@ -168060,21 +169658,20 @@ func (r streamEventQueryIDBigInt) Increment(value BigInt) streamEventSetParam { } } -func (r streamEventQueryIDBigInt) IncrementIfPresent(value *BigInt) streamEventSetParam { +func (r serviceQueryNameString) InIfPresent(value []string) serviceDefaultParam { if value == nil { - return streamEventSetParam{} + return serviceDefaultParam{} } - return r.Increment(*value) + return r.In(value) } -// Decrement the required value of ID -func (r streamEventQueryIDBigInt) Decrement(value BigInt) streamEventSetParam { - return streamEventSetParam{ +func (r serviceQueryNameString) NotIn(value []string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ - builder.Field{ - Name: "decrement", + { + Name: "notIn", Value: value, }, }, @@ -168082,21 +169679,20 @@ func (r streamEventQueryIDBigInt) Decrement(value BigInt) streamEventSetParam { } } -func (r streamEventQueryIDBigInt) DecrementIfPresent(value *BigInt) streamEventSetParam { +func (r serviceQueryNameString) NotInIfPresent(value []string) serviceDefaultParam { if value == nil { - return streamEventSetParam{} + return serviceDefaultParam{} } - return r.Decrement(*value) + return r.NotIn(value) } -// Multiply the required value of ID -func (r streamEventQueryIDBigInt) Multiply(value BigInt) streamEventSetParam { - return streamEventSetParam{ +func (r serviceQueryNameString) Lt(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ - builder.Field{ - Name: "multiply", + { + Name: "lt", Value: value, }, }, @@ -168104,21 +169700,20 @@ func (r streamEventQueryIDBigInt) Multiply(value BigInt) streamEventSetParam { } } -func (r streamEventQueryIDBigInt) MultiplyIfPresent(value *BigInt) streamEventSetParam { +func (r serviceQueryNameString) LtIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventSetParam{} + return serviceDefaultParam{} } - return r.Multiply(*value) + return r.Lt(*value) } -// Divide the required value of ID -func (r streamEventQueryIDBigInt) Divide(value BigInt) streamEventSetParam { - return streamEventSetParam{ +func (r serviceQueryNameString) Lte(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ - builder.Field{ - Name: "divide", + { + Name: "lte", Value: value, }, }, @@ -168126,21 +169721,20 @@ func (r streamEventQueryIDBigInt) Divide(value BigInt) streamEventSetParam { } } -func (r streamEventQueryIDBigInt) DivideIfPresent(value *BigInt) streamEventSetParam { +func (r serviceQueryNameString) LteIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventSetParam{} + return serviceDefaultParam{} } - return r.Divide(*value) + return r.Lte(*value) } -func (r streamEventQueryIDBigInt) Equals(value BigInt) streamEventWithPrismaIDEqualsUniqueParam { - - return streamEventWithPrismaIDEqualsUniqueParam{ +func (r serviceQueryNameString) Gt(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "equals", + Name: "gt", Value: value, }, }, @@ -168148,38 +169742,41 @@ func (r streamEventQueryIDBigInt) Equals(value BigInt) streamEventWithPrismaIDEq } } -func (r streamEventQueryIDBigInt) EqualsIfPresent(value *BigInt) streamEventWithPrismaIDEqualsUniqueParam { +func (r serviceQueryNameString) GtIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventWithPrismaIDEqualsUniqueParam{} + return serviceDefaultParam{} } - return r.Equals(*value) + return r.Gt(*value) } -func (r streamEventQueryIDBigInt) Order(direction SortOrder) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryNameString) Gte(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", - Value: direction, + Name: "name", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, }, } } -func (r streamEventQueryIDBigInt) Cursor(cursor BigInt) streamEventCursorParam { - return streamEventCursorParam{ - data: builder.Field{ - Name: "id", - Value: cursor, - }, +func (r serviceQueryNameString) GteIfPresent(value *string) serviceDefaultParam { + if value == nil { + return serviceDefaultParam{} } + return r.Gte(*value) } -func (r streamEventQueryIDBigInt) In(value []BigInt) streamEventParamUnique { - return streamEventParamUnique{ +func (r serviceQueryNameString) Contains(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "in", + Name: "contains", Value: value, }, }, @@ -168187,20 +169784,20 @@ func (r streamEventQueryIDBigInt) In(value []BigInt) streamEventParamUnique { } } -func (r streamEventQueryIDBigInt) InIfPresent(value []BigInt) streamEventParamUnique { +func (r serviceQueryNameString) ContainsIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventParamUnique{} + return serviceDefaultParam{} } - return r.In(value) + return r.Contains(*value) } -func (r streamEventQueryIDBigInt) NotIn(value []BigInt) streamEventParamUnique { - return streamEventParamUnique{ +func (r serviceQueryNameString) StartsWith(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "notIn", + Name: "startsWith", Value: value, }, }, @@ -168208,20 +169805,20 @@ func (r streamEventQueryIDBigInt) NotIn(value []BigInt) streamEventParamUnique { } } -func (r streamEventQueryIDBigInt) NotInIfPresent(value []BigInt) streamEventParamUnique { +func (r serviceQueryNameString) StartsWithIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventParamUnique{} + return serviceDefaultParam{} } - return r.NotIn(value) + return r.StartsWith(*value) } -func (r streamEventQueryIDBigInt) Lt(value BigInt) streamEventParamUnique { - return streamEventParamUnique{ +func (r serviceQueryNameString) EndsWith(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -168229,20 +169826,20 @@ func (r streamEventQueryIDBigInt) Lt(value BigInt) streamEventParamUnique { } } -func (r streamEventQueryIDBigInt) LtIfPresent(value *BigInt) streamEventParamUnique { +func (r serviceQueryNameString) EndsWithIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventParamUnique{} + return serviceDefaultParam{} } - return r.Lt(*value) + return r.EndsWith(*value) } -func (r streamEventQueryIDBigInt) Lte(value BigInt) streamEventParamUnique { - return streamEventParamUnique{ +func (r serviceQueryNameString) Mode(value QueryMode) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "lte", + Name: "mode", Value: value, }, }, @@ -168250,20 +169847,20 @@ func (r streamEventQueryIDBigInt) Lte(value BigInt) streamEventParamUnique { } } -func (r streamEventQueryIDBigInt) LteIfPresent(value *BigInt) streamEventParamUnique { +func (r serviceQueryNameString) ModeIfPresent(value *QueryMode) serviceDefaultParam { if value == nil { - return streamEventParamUnique{} + return serviceDefaultParam{} } - return r.Lte(*value) + return r.Mode(*value) } -func (r streamEventQueryIDBigInt) Gt(value BigInt) streamEventParamUnique { - return streamEventParamUnique{ +func (r serviceQueryNameString) Not(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -168271,20 +169868,22 @@ func (r streamEventQueryIDBigInt) Gt(value BigInt) streamEventParamUnique { } } -func (r streamEventQueryIDBigInt) GtIfPresent(value *BigInt) streamEventParamUnique { +func (r serviceQueryNameString) NotIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventParamUnique{} + return serviceDefaultParam{} } - return r.Gt(*value) + return r.Not(*value) } -func (r streamEventQueryIDBigInt) Gte(value BigInt) streamEventParamUnique { - return streamEventParamUnique{ +// deprecated: Use StartsWith instead. + +func (r serviceQueryNameString) HasPrefix(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "gte", + Name: "starts_with", Value: value, }, }, @@ -168292,20 +169891,23 @@ func (r streamEventQueryIDBigInt) Gte(value BigInt) streamEventParamUnique { } } -func (r streamEventQueryIDBigInt) GteIfPresent(value *BigInt) streamEventParamUnique { +// deprecated: Use StartsWithIfPresent instead. +func (r serviceQueryNameString) HasPrefixIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventParamUnique{} + return serviceDefaultParam{} } - return r.Gte(*value) + return r.HasPrefix(*value) } -func (r streamEventQueryIDBigInt) Not(value BigInt) streamEventParamUnique { - return streamEventParamUnique{ +// deprecated: Use EndsWith instead. + +func (r serviceQueryNameString) HasSuffix(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "id", + Name: "name", Fields: []builder.Field{ { - Name: "not", + Name: "ends_with", Value: value, }, }, @@ -168313,46 +169915,63 @@ func (r streamEventQueryIDBigInt) Not(value BigInt) streamEventParamUnique { } } -func (r streamEventQueryIDBigInt) NotIfPresent(value *BigInt) streamEventParamUnique { +// deprecated: Use EndsWithIfPresent instead. +func (r serviceQueryNameString) HasSuffixIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventParamUnique{} + return serviceDefaultParam{} } - return r.Not(*value) + return r.HasSuffix(*value) } -func (r streamEventQueryIDBigInt) Field() streamEventPrismaFields { - return streamEventFieldID +func (r serviceQueryNameString) Field() servicePrismaFields { + return serviceFieldName } // base struct -type streamEventQueryCreatedAtDateTime struct{} +type serviceQueryDescriptionString struct{} -// Set the required value of CreatedAt -func (r streamEventQueryCreatedAtDateTime) Set(value DateTime) streamEventSetParam { +// Set the optional value of Description +func (r serviceQueryDescriptionString) Set(value string) serviceSetParam { - return streamEventSetParam{ + return serviceSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Value: value, }, } } -// Set the optional value of CreatedAt dynamically -func (r streamEventQueryCreatedAtDateTime) SetIfPresent(value *DateTime) streamEventSetParam { +// Set the optional value of Description dynamically +func (r serviceQueryDescriptionString) SetIfPresent(value *String) serviceSetParam { if value == nil { - return streamEventSetParam{} + return serviceSetParam{} } return r.Set(*value) } -func (r streamEventQueryCreatedAtDateTime) Equals(value DateTime) streamEventWithPrismaCreatedAtEqualsParam { +// Set the optional value of Description dynamically +func (r serviceQueryDescriptionString) SetOptional(value *String) serviceSetParam { + if value == nil { - return streamEventWithPrismaCreatedAtEqualsParam{ + var v *string + return serviceSetParam{ + data: builder.Field{ + Name: "description", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r serviceQueryDescriptionString) Equals(value string) serviceWithPrismaDescriptionEqualsParam { + + return serviceWithPrismaDescriptionEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { Name: "equals", @@ -168363,35 +169982,64 @@ func (r streamEventQueryCreatedAtDateTime) Equals(value DateTime) streamEventWit } } -func (r streamEventQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) streamEventWithPrismaCreatedAtEqualsParam { +func (r serviceQueryDescriptionString) EqualsIfPresent(value *string) serviceWithPrismaDescriptionEqualsParam { if value == nil { - return streamEventWithPrismaCreatedAtEqualsParam{} + return serviceWithPrismaDescriptionEqualsParam{} } return r.Equals(*value) } -func (r streamEventQueryCreatedAtDateTime) Order(direction SortOrder) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) EqualsOptional(value *String) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r serviceQueryDescriptionString) IsNull() serviceDefaultParam { + var str *string = nil + return serviceDefaultParam{ + data: builder.Field{ + Name: "description", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r serviceQueryDescriptionString) Order(direction SortOrder) serviceDefaultParam { + return serviceDefaultParam{ + data: builder.Field{ + Name: "description", Value: direction, }, } } -func (r streamEventQueryCreatedAtDateTime) Cursor(cursor DateTime) streamEventCursorParam { - return streamEventCursorParam{ +func (r serviceQueryDescriptionString) Cursor(cursor string) serviceCursorParam { + return serviceCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Value: cursor, }, } } -func (r streamEventQueryCreatedAtDateTime) In(value []DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) In(value []string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { Name: "in", @@ -168402,17 +170050,17 @@ func (r streamEventQueryCreatedAtDateTime) In(value []DateTime) streamEventDefau } } -func (r streamEventQueryCreatedAtDateTime) InIfPresent(value []DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) InIfPresent(value []string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.In(value) } -func (r streamEventQueryCreatedAtDateTime) NotIn(value []DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) NotIn(value []string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { Name: "notIn", @@ -168423,17 +170071,17 @@ func (r streamEventQueryCreatedAtDateTime) NotIn(value []DateTime) streamEventDe } } -func (r streamEventQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) NotInIfPresent(value []string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.NotIn(value) } -func (r streamEventQueryCreatedAtDateTime) Lt(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) Lt(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { Name: "lt", @@ -168444,17 +170092,17 @@ func (r streamEventQueryCreatedAtDateTime) Lt(value DateTime) streamEventDefault } } -func (r streamEventQueryCreatedAtDateTime) LtIfPresent(value *DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) LtIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Lt(*value) } -func (r streamEventQueryCreatedAtDateTime) Lte(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) Lte(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { Name: "lte", @@ -168465,17 +170113,17 @@ func (r streamEventQueryCreatedAtDateTime) Lte(value DateTime) streamEventDefaul } } -func (r streamEventQueryCreatedAtDateTime) LteIfPresent(value *DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) LteIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Lte(*value) } -func (r streamEventQueryCreatedAtDateTime) Gt(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) Gt(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { Name: "gt", @@ -168486,17 +170134,17 @@ func (r streamEventQueryCreatedAtDateTime) Gt(value DateTime) streamEventDefault } } -func (r streamEventQueryCreatedAtDateTime) GtIfPresent(value *DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) GtIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Gt(*value) } -func (r streamEventQueryCreatedAtDateTime) Gte(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) Gte(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { Name: "gte", @@ -168507,20 +170155,20 @@ func (r streamEventQueryCreatedAtDateTime) Gte(value DateTime) streamEventDefaul } } -func (r streamEventQueryCreatedAtDateTime) GteIfPresent(value *DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) GteIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Gte(*value) } -func (r streamEventQueryCreatedAtDateTime) Not(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) Contains(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -168528,22 +170176,41 @@ func (r streamEventQueryCreatedAtDateTime) Not(value DateTime) streamEventDefaul } } -func (r streamEventQueryCreatedAtDateTime) NotIfPresent(value *DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) ContainsIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r serviceQueryDescriptionString) StartsWith(value string) serviceDefaultParam { + return serviceDefaultParam{ + data: builder.Field{ + Name: "description", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r streamEventQueryCreatedAtDateTime) Before(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) StartsWithIfPresent(value *string) serviceDefaultParam { + if value == nil { + return serviceDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r serviceQueryDescriptionString) EndsWith(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -168551,23 +170218,41 @@ func (r streamEventQueryCreatedAtDateTime) Before(value DateTime) streamEventDef } } -// deprecated: Use LtIfPresent instead. -func (r streamEventQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) EndsWithIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r serviceQueryDescriptionString) Mode(value QueryMode) serviceDefaultParam { + return serviceDefaultParam{ + data: builder.Field{ + Name: "description", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r streamEventQueryCreatedAtDateTime) After(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) ModeIfPresent(value *QueryMode) serviceDefaultParam { + if value == nil { + return serviceDefaultParam{} + } + return r.Mode(*value) +} + +func (r serviceQueryDescriptionString) Not(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -168575,23 +170260,22 @@ func (r streamEventQueryCreatedAtDateTime) After(value DateTime) streamEventDefa } } -// deprecated: Use GtIfPresent instead. -func (r streamEventQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) streamEventDefaultParam { +func (r serviceQueryDescriptionString) NotIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r streamEventQueryCreatedAtDateTime) BeforeEquals(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) HasPrefix(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -168599,23 +170283,23 @@ func (r streamEventQueryCreatedAtDateTime) BeforeEquals(value DateTime) streamEv } } -// deprecated: Use LteIfPresent instead. -func (r streamEventQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) streamEventDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r serviceQueryDescriptionString) HasPrefixIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r streamEventQueryCreatedAtDateTime) AfterEquals(value DateTime) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryDescriptionString) HasSuffix(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "description", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -168623,37 +170307,37 @@ func (r streamEventQueryCreatedAtDateTime) AfterEquals(value DateTime) streamEve } } -// deprecated: Use GteIfPresent instead. -func (r streamEventQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) streamEventDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r serviceQueryDescriptionString) HasSuffixIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r streamEventQueryCreatedAtDateTime) Field() streamEventPrismaFields { - return streamEventFieldCreatedAt +func (r serviceQueryDescriptionString) Field() servicePrismaFields { + return serviceFieldDescription } // base struct -type streamEventQueryTenantTenant struct{} +type serviceQueryTenantTenant struct{} -type streamEventQueryTenantRelations struct{} +type serviceQueryTenantRelations struct{} -// StreamEvent -> Tenant +// Service -> Tenant // // @relation // @required -func (streamEventQueryTenantRelations) Where( +func (serviceQueryTenantRelations) Where( params ...TenantWhereParam, -) streamEventDefaultParam { +) serviceDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return streamEventDefaultParam{ + return serviceDefaultParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -168666,8 +170350,8 @@ func (streamEventQueryTenantRelations) Where( } } -func (streamEventQueryTenantRelations) Fetch() streamEventToTenantFindUnique { - var v streamEventToTenantFindUnique +func (serviceQueryTenantRelations) Fetch() serviceToTenantFindUnique { + var v serviceToTenantFindUnique v.query.Operation = "query" v.query.Method = "tenant" @@ -168676,19 +170360,19 @@ func (streamEventQueryTenantRelations) Fetch() streamEventToTenantFindUnique { return v } -func (r streamEventQueryTenantRelations) Link( +func (r serviceQueryTenantRelations) Link( params TenantWhereParam, -) streamEventWithPrismaTenantSetParam { +) serviceWithPrismaTenantSetParam { var fields []builder.Field f := params.field() if f.Fields == nil && f.Value == nil { - return streamEventWithPrismaTenantSetParam{} + return serviceWithPrismaTenantSetParam{} } fields = append(fields, f) - return streamEventWithPrismaTenantSetParam{ + return serviceWithPrismaTenantSetParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -168701,10 +170385,10 @@ func (r streamEventQueryTenantRelations) Link( } } -func (r streamEventQueryTenantRelations) Unlink() streamEventWithPrismaTenantSetParam { - var v streamEventWithPrismaTenantSetParam +func (r serviceQueryTenantRelations) Unlink() serviceWithPrismaTenantSetParam { + var v serviceWithPrismaTenantSetParam - v = streamEventWithPrismaTenantSetParam{ + v = serviceWithPrismaTenantSetParam{ data: builder.Field{ Name: "tenant", Fields: []builder.Field{ @@ -168719,17 +170403,17 @@ func (r streamEventQueryTenantRelations) Unlink() streamEventWithPrismaTenantSet return v } -func (r streamEventQueryTenantTenant) Field() streamEventPrismaFields { - return streamEventFieldTenant +func (r serviceQueryTenantTenant) Field() servicePrismaFields { + return serviceFieldTenant } // base struct -type streamEventQueryTenantIDString struct{} +type serviceQueryTenantIDString struct{} // Set the required value of TenantID -func (r streamEventQueryTenantIDString) Set(value string) streamEventSetParam { +func (r serviceQueryTenantIDString) Set(value string) serviceSetParam { - return streamEventSetParam{ + return serviceSetParam{ data: builder.Field{ Name: "tenantId", Value: value, @@ -168739,17 +170423,17 @@ func (r streamEventQueryTenantIDString) Set(value string) streamEventSetParam { } // Set the optional value of TenantID dynamically -func (r streamEventQueryTenantIDString) SetIfPresent(value *String) streamEventSetParam { +func (r serviceQueryTenantIDString) SetIfPresent(value *String) serviceSetParam { if value == nil { - return streamEventSetParam{} + return serviceSetParam{} } return r.Set(*value) } -func (r streamEventQueryTenantIDString) Equals(value string) streamEventWithPrismaTenantIDEqualsParam { +func (r serviceQueryTenantIDString) Equals(value string) serviceWithPrismaTenantIDEqualsParam { - return streamEventWithPrismaTenantIDEqualsParam{ + return serviceWithPrismaTenantIDEqualsParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168762,15 +170446,15 @@ func (r streamEventQueryTenantIDString) Equals(value string) streamEventWithPris } } -func (r streamEventQueryTenantIDString) EqualsIfPresent(value *string) streamEventWithPrismaTenantIDEqualsParam { +func (r serviceQueryTenantIDString) EqualsIfPresent(value *string) serviceWithPrismaTenantIDEqualsParam { if value == nil { - return streamEventWithPrismaTenantIDEqualsParam{} + return serviceWithPrismaTenantIDEqualsParam{} } return r.Equals(*value) } -func (r streamEventQueryTenantIDString) Order(direction SortOrder) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) Order(direction SortOrder) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Value: direction, @@ -168778,8 +170462,8 @@ func (r streamEventQueryTenantIDString) Order(direction SortOrder) streamEventDe } } -func (r streamEventQueryTenantIDString) Cursor(cursor string) streamEventCursorParam { - return streamEventCursorParam{ +func (r serviceQueryTenantIDString) Cursor(cursor string) serviceCursorParam { + return serviceCursorParam{ data: builder.Field{ Name: "tenantId", Value: cursor, @@ -168787,8 +170471,8 @@ func (r streamEventQueryTenantIDString) Cursor(cursor string) streamEventCursorP } } -func (r streamEventQueryTenantIDString) In(value []string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) In(value []string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168801,15 +170485,15 @@ func (r streamEventQueryTenantIDString) In(value []string) streamEventDefaultPar } } -func (r streamEventQueryTenantIDString) InIfPresent(value []string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) InIfPresent(value []string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.In(value) } -func (r streamEventQueryTenantIDString) NotIn(value []string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) NotIn(value []string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168822,15 +170506,15 @@ func (r streamEventQueryTenantIDString) NotIn(value []string) streamEventDefault } } -func (r streamEventQueryTenantIDString) NotInIfPresent(value []string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) NotInIfPresent(value []string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.NotIn(value) } -func (r streamEventQueryTenantIDString) Lt(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) Lt(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168843,15 +170527,15 @@ func (r streamEventQueryTenantIDString) Lt(value string) streamEventDefaultParam } } -func (r streamEventQueryTenantIDString) LtIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) LtIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Lt(*value) } -func (r streamEventQueryTenantIDString) Lte(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) Lte(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168864,15 +170548,15 @@ func (r streamEventQueryTenantIDString) Lte(value string) streamEventDefaultPara } } -func (r streamEventQueryTenantIDString) LteIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) LteIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Lte(*value) } -func (r streamEventQueryTenantIDString) Gt(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) Gt(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168885,15 +170569,15 @@ func (r streamEventQueryTenantIDString) Gt(value string) streamEventDefaultParam } } -func (r streamEventQueryTenantIDString) GtIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) GtIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Gt(*value) } -func (r streamEventQueryTenantIDString) Gte(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) Gte(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168906,15 +170590,15 @@ func (r streamEventQueryTenantIDString) Gte(value string) streamEventDefaultPara } } -func (r streamEventQueryTenantIDString) GteIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) GteIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Gte(*value) } -func (r streamEventQueryTenantIDString) Contains(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) Contains(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168927,15 +170611,15 @@ func (r streamEventQueryTenantIDString) Contains(value string) streamEventDefaul } } -func (r streamEventQueryTenantIDString) ContainsIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) ContainsIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Contains(*value) } -func (r streamEventQueryTenantIDString) StartsWith(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) StartsWith(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168948,15 +170632,15 @@ func (r streamEventQueryTenantIDString) StartsWith(value string) streamEventDefa } } -func (r streamEventQueryTenantIDString) StartsWithIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) StartsWithIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.StartsWith(*value) } -func (r streamEventQueryTenantIDString) EndsWith(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) EndsWith(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168969,15 +170653,15 @@ func (r streamEventQueryTenantIDString) EndsWith(value string) streamEventDefaul } } -func (r streamEventQueryTenantIDString) EndsWithIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) EndsWithIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.EndsWith(*value) } -func (r streamEventQueryTenantIDString) Mode(value QueryMode) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) Mode(value QueryMode) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -168990,15 +170674,15 @@ func (r streamEventQueryTenantIDString) Mode(value QueryMode) streamEventDefault } } -func (r streamEventQueryTenantIDString) ModeIfPresent(value *QueryMode) streamEventDefaultParam { +func (r serviceQueryTenantIDString) ModeIfPresent(value *QueryMode) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Mode(*value) } -func (r streamEventQueryTenantIDString) Not(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) Not(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -169011,17 +170695,17 @@ func (r streamEventQueryTenantIDString) Not(value string) streamEventDefaultPara } } -func (r streamEventQueryTenantIDString) NotIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) NotIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r streamEventQueryTenantIDString) HasPrefix(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) HasPrefix(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -169035,17 +170719,17 @@ func (r streamEventQueryTenantIDString) HasPrefix(value string) streamEventDefau } // deprecated: Use StartsWithIfPresent instead. -func (r streamEventQueryTenantIDString) HasPrefixIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) HasPrefixIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r streamEventQueryTenantIDString) HasSuffix(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r serviceQueryTenantIDString) HasSuffix(value string) serviceDefaultParam { + return serviceDefaultParam{ data: builder.Field{ Name: "tenantId", Fields: []builder.Field{ @@ -169059,41 +170743,41 @@ func (r streamEventQueryTenantIDString) HasSuffix(value string) streamEventDefau } // deprecated: Use EndsWithIfPresent instead. -func (r streamEventQueryTenantIDString) HasSuffixIfPresent(value *string) streamEventDefaultParam { +func (r serviceQueryTenantIDString) HasSuffixIfPresent(value *string) serviceDefaultParam { if value == nil { - return streamEventDefaultParam{} + return serviceDefaultParam{} } return r.HasSuffix(*value) } -func (r streamEventQueryTenantIDString) Field() streamEventPrismaFields { - return streamEventFieldTenantID +func (r serviceQueryTenantIDString) Field() servicePrismaFields { + return serviceFieldTenantID } // base struct -type streamEventQueryStepRunStepRun struct{} +type serviceQueryWorkersWorker struct{} -type streamEventQueryStepRunRelations struct{} +type serviceQueryWorkersRelations struct{} -// StreamEvent -> StepRun +// Service -> Workers // // @relation -// @optional -func (streamEventQueryStepRunRelations) Where( - params ...StepRunWhereParam, -) streamEventDefaultParam { +// @required +func (serviceQueryWorkersRelations) Some( + params ...WorkerWhereParam, +) serviceDefaultParam { var fields []builder.Field for _, q := range params { fields = append(fields, q.field()) } - return streamEventDefaultParam{ + return serviceDefaultParam{ data: builder.Field{ - Name: "stepRun", + Name: "workers", Fields: []builder.Field{ { - Name: "is", + Name: "some", Fields: fields, }, }, @@ -169101,51 +170785,135 @@ func (streamEventQueryStepRunRelations) Where( } } -func (streamEventQueryStepRunRelations) Fetch() streamEventToStepRunFindUnique { - var v streamEventToStepRunFindUnique +// Service -> Workers +// +// @relation +// @required +func (serviceQueryWorkersRelations) Every( + params ...WorkerWhereParam, +) serviceDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return serviceDefaultParam{ + data: builder.Field{ + Name: "workers", + Fields: []builder.Field{ + { + Name: "every", + Fields: fields, + }, + }, + }, + } +} + +// Service -> Workers +// +// @relation +// @required +func (serviceQueryWorkersRelations) None( + params ...WorkerWhereParam, +) serviceDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return serviceDefaultParam{ + data: builder.Field{ + Name: "workers", + Fields: []builder.Field{ + { + Name: "none", + Fields: fields, + }, + }, + }, + } +} + +func (serviceQueryWorkersRelations) Fetch( + + params ...WorkerWhereParam, + +) serviceToWorkersFindMany { + var v serviceToWorkersFindMany v.query.Operation = "query" - v.query.Method = "stepRun" - v.query.Outputs = stepRunOutput + v.query.Method = "workers" + v.query.Outputs = workerOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } return v } -func (r streamEventQueryStepRunRelations) Link( - params StepRunWhereParam, -) streamEventSetParam { +func (r serviceQueryWorkersRelations) Link( + params ...WorkerWhereParam, +) serviceSetParam { var fields []builder.Field - f := params.field() - if f.Fields == nil && f.Value == nil { - return streamEventSetParam{} + for _, q := range params { + fields = append(fields, q.field()) } - fields = append(fields, f) - - return streamEventSetParam{ + return serviceSetParam{ data: builder.Field{ - Name: "stepRun", + Name: "workers", Fields: []builder.Field{ { Name: "connect", Fields: builder.TransformEquals(fields), + + List: true, + WrapList: true, }, }, }, } } -func (r streamEventQueryStepRunRelations) Unlink() streamEventSetParam { - var v streamEventSetParam +func (r serviceQueryWorkersRelations) Unlink( + params ...WorkerWhereParam, +) serviceSetParam { + var v serviceSetParam - v = streamEventSetParam{ + var fields []builder.Field + for _, q := range params { + fields = append(fields, q.field()) + } + v = serviceSetParam{ data: builder.Field{ - Name: "stepRun", + Name: "workers", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "disconnect", + List: true, + WrapList: true, + Fields: builder.TransformEquals(fields), }, }, }, @@ -169154,76 +170922,152 @@ func (r streamEventQueryStepRunRelations) Unlink() streamEventSetParam { return v } -func (r streamEventQueryStepRunStepRun) Field() streamEventPrismaFields { - return streamEventFieldStepRun +func (r serviceQueryWorkersWorker) Field() servicePrismaFields { + return serviceFieldWorkers } -// base struct -type streamEventQueryStepRunIDString struct{} +// TenantVcsProvider acts as a namespaces to access query methods for the TenantVcsProvider model +var TenantVcsProvider = tenantVcsProviderQuery{} -// Set the optional value of StepRunID -func (r streamEventQueryStepRunIDString) Set(value string) streamEventSetParam { +// tenantVcsProviderQuery exposes query functions for the tenantVcsProvider model +type tenantVcsProviderQuery struct { - return streamEventSetParam{ + // ID + // + // @required + ID tenantVcsProviderQueryIDString + + // CreatedAt + // + // @required + CreatedAt tenantVcsProviderQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt tenantVcsProviderQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt tenantVcsProviderQueryDeletedAtDateTime + + Tenant tenantVcsProviderQueryTenantRelations + + // TenantID + // + // @required + TenantID tenantVcsProviderQueryTenantIDString + + // VcsProvider + // + // @required + VcsProvider tenantVcsProviderQueryVcsProviderVcsProvider + + // Config + // + // @optional + Config tenantVcsProviderQueryConfigJson +} + +func (tenantVcsProviderQuery) Not(params ...TenantVcsProviderWhereParam) tenantVcsProviderDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "stepRunId", - Value: value, + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, }, } - } -// Set the optional value of StepRunID dynamically -func (r streamEventQueryStepRunIDString) SetIfPresent(value *String) streamEventSetParam { - if value == nil { - return streamEventSetParam{} +func (tenantVcsProviderQuery) Or(params ...TenantVcsProviderWhereParam) tenantVcsProviderDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } } -// Set the optional value of StepRunID dynamically -func (r streamEventQueryStepRunIDString) SetOptional(value *String) streamEventSetParam { - if value == nil { +func (tenantVcsProviderQuery) And(params ...TenantVcsProviderWhereParam) tenantVcsProviderDefaultParam { + var fields []builder.Field - var v *string - return streamEventSetParam{ - data: builder.Field{ - Name: "stepRunId", - Value: v, - }, - } + for _, q := range params { + fields = append(fields, q.field()) } - return r.Set(*value) + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } -func (r streamEventQueryStepRunIDString) Equals(value string) streamEventWithPrismaStepRunIDEqualsParam { +func (tenantVcsProviderQuery) TenantIDVcsProvider( + _tenantID TenantVcsProviderWithPrismaTenantIDWhereParam, - return streamEventWithPrismaStepRunIDEqualsParam{ + _vcsProvider TenantVcsProviderWithPrismaVcsProviderWhereParam, +) TenantVcsProviderEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _tenantID.field()) + fields = append(fields, _vcsProvider.field()) + + return tenantVcsProviderEqualsUniqueParam{ data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "equals", - Value: value, - }, - }, + Name: "tenantId_vcsProvider", + Fields: builder.TransformEquals(fields), }, } } -func (r streamEventQueryStepRunIDString) EqualsIfPresent(value *string) streamEventWithPrismaStepRunIDEqualsParam { +// base struct +type tenantVcsProviderQueryIDString struct{} + +// Set the required value of ID +func (r tenantVcsProviderQueryIDString) Set(value string) tenantVcsProviderSetParam { + + return tenantVcsProviderSetParam{ + data: builder.Field{ + Name: "id", + Value: value, + }, + } + +} + +// Set the optional value of ID dynamically +func (r tenantVcsProviderQueryIDString) SetIfPresent(value *String) tenantVcsProviderSetParam { if value == nil { - return streamEventWithPrismaStepRunIDEqualsParam{} + return tenantVcsProviderSetParam{} } - return r.Equals(*value) + + return r.Set(*value) } -func (r streamEventQueryStepRunIDString) EqualsOptional(value *String) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Equals(value string) tenantVcsProviderWithPrismaIDEqualsUniqueParam { + + return tenantVcsProviderWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -169234,43 +171078,35 @@ func (r streamEventQueryStepRunIDString) EqualsOptional(value *String) streamEve } } -func (r streamEventQueryStepRunIDString) IsNull() streamEventDefaultParam { - var str *string = nil - return streamEventDefaultParam{ - data: builder.Field{ - Name: "stepRunId", - Fields: []builder.Field{ - { - Name: "equals", - Value: str, - }, - }, - }, +func (r tenantVcsProviderQueryIDString) EqualsIfPresent(value *string) tenantVcsProviderWithPrismaIDEqualsUniqueParam { + if value == nil { + return tenantVcsProviderWithPrismaIDEqualsUniqueParam{} } + return r.Equals(*value) } -func (r streamEventQueryStepRunIDString) Order(direction SortOrder) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Order(direction SortOrder) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Value: direction, }, } } -func (r streamEventQueryStepRunIDString) Cursor(cursor string) streamEventCursorParam { - return streamEventCursorParam{ +func (r tenantVcsProviderQueryIDString) Cursor(cursor string) tenantVcsProviderCursorParam { + return tenantVcsProviderCursorParam{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Value: cursor, }, } } -func (r streamEventQueryStepRunIDString) In(value []string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) In(value []string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -169281,17 +171117,17 @@ func (r streamEventQueryStepRunIDString) In(value []string) streamEventDefaultPa } } -func (r streamEventQueryStepRunIDString) InIfPresent(value []string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) InIfPresent(value []string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.In(value) } -func (r streamEventQueryStepRunIDString) NotIn(value []string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) NotIn(value []string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -169302,17 +171138,17 @@ func (r streamEventQueryStepRunIDString) NotIn(value []string) streamEventDefaul } } -func (r streamEventQueryStepRunIDString) NotInIfPresent(value []string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) NotInIfPresent(value []string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.NotIn(value) } -func (r streamEventQueryStepRunIDString) Lt(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Lt(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -169323,17 +171159,17 @@ func (r streamEventQueryStepRunIDString) Lt(value string) streamEventDefaultPara } } -func (r streamEventQueryStepRunIDString) LtIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) LtIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.Lt(*value) } -func (r streamEventQueryStepRunIDString) Lte(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Lte(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -169344,17 +171180,17 @@ func (r streamEventQueryStepRunIDString) Lte(value string) streamEventDefaultPar } } -func (r streamEventQueryStepRunIDString) LteIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) LteIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.Lte(*value) } -func (r streamEventQueryStepRunIDString) Gt(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Gt(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -169365,17 +171201,17 @@ func (r streamEventQueryStepRunIDString) Gt(value string) streamEventDefaultPara } } -func (r streamEventQueryStepRunIDString) GtIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) GtIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.Gt(*value) } -func (r streamEventQueryStepRunIDString) Gte(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Gte(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -169386,17 +171222,17 @@ func (r streamEventQueryStepRunIDString) Gte(value string) streamEventDefaultPar } } -func (r streamEventQueryStepRunIDString) GteIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) GteIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.Gte(*value) } -func (r streamEventQueryStepRunIDString) Contains(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Contains(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -169407,17 +171243,17 @@ func (r streamEventQueryStepRunIDString) Contains(value string) streamEventDefau } } -func (r streamEventQueryStepRunIDString) ContainsIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) ContainsIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.Contains(*value) } -func (r streamEventQueryStepRunIDString) StartsWith(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) StartsWith(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -169428,17 +171264,17 @@ func (r streamEventQueryStepRunIDString) StartsWith(value string) streamEventDef } } -func (r streamEventQueryStepRunIDString) StartsWithIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) StartsWithIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.StartsWith(*value) } -func (r streamEventQueryStepRunIDString) EndsWith(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) EndsWith(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -169449,17 +171285,17 @@ func (r streamEventQueryStepRunIDString) EndsWith(value string) streamEventDefau } } -func (r streamEventQueryStepRunIDString) EndsWithIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) EndsWithIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.EndsWith(*value) } -func (r streamEventQueryStepRunIDString) Mode(value QueryMode) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Mode(value QueryMode) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -169470,17 +171306,17 @@ func (r streamEventQueryStepRunIDString) Mode(value QueryMode) streamEventDefaul } } -func (r streamEventQueryStepRunIDString) ModeIfPresent(value *QueryMode) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) ModeIfPresent(value *QueryMode) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.Mode(*value) } -func (r streamEventQueryStepRunIDString) Not(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) Not(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -169491,19 +171327,19 @@ func (r streamEventQueryStepRunIDString) Not(value string) streamEventDefaultPar } } -func (r streamEventQueryStepRunIDString) NotIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) NotIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r streamEventQueryStepRunIDString) HasPrefix(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) HasPrefix(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -169515,19 +171351,19 @@ func (r streamEventQueryStepRunIDString) HasPrefix(value string) streamEventDefa } // deprecated: Use StartsWithIfPresent instead. -func (r streamEventQueryStepRunIDString) HasPrefixIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) HasPrefixIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r streamEventQueryStepRunIDString) HasSuffix(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryIDString) HasSuffix(value string) tenantVcsProviderParamUnique { + return tenantVcsProviderParamUnique{ data: builder.Field{ - Name: "stepRunId", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -169539,46 +171375,46 @@ func (r streamEventQueryStepRunIDString) HasSuffix(value string) streamEventDefa } // deprecated: Use EndsWithIfPresent instead. -func (r streamEventQueryStepRunIDString) HasSuffixIfPresent(value *string) streamEventDefaultParam { +func (r tenantVcsProviderQueryIDString) HasSuffixIfPresent(value *string) tenantVcsProviderParamUnique { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderParamUnique{} } return r.HasSuffix(*value) } -func (r streamEventQueryStepRunIDString) Field() streamEventPrismaFields { - return streamEventFieldStepRunID +func (r tenantVcsProviderQueryIDString) Field() tenantVcsProviderPrismaFields { + return tenantVcsProviderFieldID } // base struct -type streamEventQueryMessageBytes struct{} +type tenantVcsProviderQueryCreatedAtDateTime struct{} -// Set the required value of Message -func (r streamEventQueryMessageBytes) Set(value Bytes) streamEventWithPrismaMessageSetParam { +// Set the required value of CreatedAt +func (r tenantVcsProviderQueryCreatedAtDateTime) Set(value DateTime) tenantVcsProviderSetParam { - return streamEventWithPrismaMessageSetParam{ + return tenantVcsProviderSetParam{ data: builder.Field{ - Name: "message", + Name: "createdAt", Value: value, }, } } -// Set the optional value of Message dynamically -func (r streamEventQueryMessageBytes) SetIfPresent(value *Bytes) streamEventWithPrismaMessageSetParam { +// Set the optional value of CreatedAt dynamically +func (r tenantVcsProviderQueryCreatedAtDateTime) SetIfPresent(value *DateTime) tenantVcsProviderSetParam { if value == nil { - return streamEventWithPrismaMessageSetParam{} + return tenantVcsProviderSetParam{} } return r.Set(*value) } -func (r streamEventQueryMessageBytes) Equals(value Bytes) streamEventWithPrismaMessageEqualsParam { +func (r tenantVcsProviderQueryCreatedAtDateTime) Equals(value DateTime) tenantVcsProviderWithPrismaCreatedAtEqualsParam { - return streamEventWithPrismaMessageEqualsParam{ + return tenantVcsProviderWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "message", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -169589,35 +171425,35 @@ func (r streamEventQueryMessageBytes) Equals(value Bytes) streamEventWithPrismaM } } -func (r streamEventQueryMessageBytes) EqualsIfPresent(value *Bytes) streamEventWithPrismaMessageEqualsParam { +func (r tenantVcsProviderQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) tenantVcsProviderWithPrismaCreatedAtEqualsParam { if value == nil { - return streamEventWithPrismaMessageEqualsParam{} + return tenantVcsProviderWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r streamEventQueryMessageBytes) Order(direction SortOrder) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) Order(direction SortOrder) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "message", + Name: "createdAt", Value: direction, }, } } -func (r streamEventQueryMessageBytes) Cursor(cursor Bytes) streamEventCursorParam { - return streamEventCursorParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) Cursor(cursor DateTime) tenantVcsProviderCursorParam { + return tenantVcsProviderCursorParam{ data: builder.Field{ - Name: "message", + Name: "createdAt", Value: cursor, }, } } -func (r streamEventQueryMessageBytes) In(value []Bytes) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) In(value []DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "message", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -169628,17 +171464,17 @@ func (r streamEventQueryMessageBytes) In(value []Bytes) streamEventDefaultParam } } -func (r streamEventQueryMessageBytes) InIfPresent(value []Bytes) streamEventDefaultParam { +func (r tenantVcsProviderQueryCreatedAtDateTime) InIfPresent(value []DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.In(value) } -func (r streamEventQueryMessageBytes) NotIn(value []Bytes) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) NotIn(value []DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "message", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -169649,20 +171485,20 @@ func (r streamEventQueryMessageBytes) NotIn(value []Bytes) streamEventDefaultPar } } -func (r streamEventQueryMessageBytes) NotInIfPresent(value []Bytes) streamEventDefaultParam { +func (r tenantVcsProviderQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.NotIn(value) } -func (r streamEventQueryMessageBytes) Not(value Bytes) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) Lt(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "message", + Name: "createdAt", Fields: []builder.Field{ { - Name: "not", + Name: "lt", Value: value, }, }, @@ -169670,65 +171506,62 @@ func (r streamEventQueryMessageBytes) Not(value Bytes) streamEventDefaultParam { } } -func (r streamEventQueryMessageBytes) NotIfPresent(value *Bytes) streamEventDefaultParam { +func (r tenantVcsProviderQueryCreatedAtDateTime) LtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.Not(*value) + return r.Lt(*value) } -func (r streamEventQueryMessageBytes) Field() streamEventPrismaFields { - return streamEventFieldMessage +func (r tenantVcsProviderQueryCreatedAtDateTime) Lte(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } } -// base struct -type streamEventQueryMetadataJson struct{} - -// Set the optional value of Metadata -func (r streamEventQueryMetadataJson) Set(value JSON) streamEventSetParam { +func (r tenantVcsProviderQueryCreatedAtDateTime) LteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.Lte(*value) +} - return streamEventSetParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) Gt(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", - Value: value, + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, }, } - } -// Set the optional value of Metadata dynamically -func (r streamEventQueryMetadataJson) SetIfPresent(value *JSON) streamEventSetParam { +func (r tenantVcsProviderQueryCreatedAtDateTime) GtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventSetParam{} + return tenantVcsProviderDefaultParam{} } - - return r.Set(*value) + return r.Gt(*value) } -// Set the optional value of Metadata dynamically -func (r streamEventQueryMetadataJson) SetOptional(value *JSON) streamEventSetParam { - if value == nil { - - var v *JSON - return streamEventSetParam{ - data: builder.Field{ - Name: "metadata", - Value: v, - }, - } - } - - return r.Set(*value) -} - -func (r streamEventQueryMetadataJson) Equals(value JSON) streamEventWithPrismaMetadataEqualsParam { - - return streamEventWithPrismaMetadataEqualsParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) Gte(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "equals", + Name: "gte", Value: value, }, }, @@ -169736,20 +171569,20 @@ func (r streamEventQueryMetadataJson) Equals(value JSON) streamEventWithPrismaMe } } -func (r streamEventQueryMetadataJson) EqualsIfPresent(value *JSON) streamEventWithPrismaMetadataEqualsParam { +func (r tenantVcsProviderQueryCreatedAtDateTime) GteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventWithPrismaMetadataEqualsParam{} + return tenantVcsProviderDefaultParam{} } - return r.Equals(*value) + return r.Gte(*value) } -func (r streamEventQueryMetadataJson) EqualsOptional(value *JSON) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) Not(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "equals", + Name: "not", Value: value, }, }, @@ -169757,46 +171590,46 @@ func (r streamEventQueryMetadataJson) EqualsOptional(value *JSON) streamEventDef } } -func (r streamEventQueryMetadataJson) IsNull() streamEventDefaultParam { - var str *string = nil - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) NotIfPresent(value *DateTime) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r tenantVcsProviderQueryCreatedAtDateTime) Before(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "equals", - Value: str, + Name: "lt", + Value: value, }, }, }, } } -func (r streamEventQueryMetadataJson) Order(direction SortOrder) streamEventDefaultParam { - return streamEventDefaultParam{ - data: builder.Field{ - Name: "metadata", - Value: direction, - }, +// deprecated: Use LtIfPresent instead. +func (r tenantVcsProviderQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} } + return r.Before(*value) } -func (r streamEventQueryMetadataJson) Cursor(cursor JSON) streamEventCursorParam { - return streamEventCursorParam{ - data: builder.Field{ - Name: "metadata", - Value: cursor, - }, - } -} +// deprecated: Use Gt instead. -func (r streamEventQueryMetadataJson) Path(value []string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) After(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "path", + Name: "gt", Value: value, }, }, @@ -169804,20 +171637,23 @@ func (r streamEventQueryMetadataJson) Path(value []string) streamEventDefaultPar } } -func (r streamEventQueryMetadataJson) PathIfPresent(value []string) streamEventDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r tenantVcsProviderQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.Path(value) + return r.After(*value) } -func (r streamEventQueryMetadataJson) StringContains(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +// deprecated: Use Lte instead. + +func (r tenantVcsProviderQueryCreatedAtDateTime) BeforeEquals(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "string_contains", + Name: "lte", Value: value, }, }, @@ -169825,20 +171661,23 @@ func (r streamEventQueryMetadataJson) StringContains(value string) streamEventDe } } -func (r streamEventQueryMetadataJson) StringContainsIfPresent(value *string) streamEventDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r tenantVcsProviderQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.StringContains(*value) + return r.BeforeEquals(*value) } -func (r streamEventQueryMetadataJson) StringStartsWith(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +// deprecated: Use Gte instead. + +func (r tenantVcsProviderQueryCreatedAtDateTime) AfterEquals(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "createdAt", Fields: []builder.Field{ { - Name: "string_starts_with", + Name: "gte", Value: value, }, }, @@ -169846,41 +171685,50 @@ func (r streamEventQueryMetadataJson) StringStartsWith(value string) streamEvent } } -func (r streamEventQueryMetadataJson) StringStartsWithIfPresent(value *string) streamEventDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r tenantVcsProviderQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.StringStartsWith(*value) + return r.AfterEquals(*value) } -func (r streamEventQueryMetadataJson) StringEndsWith(value string) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryCreatedAtDateTime) Field() tenantVcsProviderPrismaFields { + return tenantVcsProviderFieldCreatedAt +} + +// base struct +type tenantVcsProviderQueryUpdatedAtDateTime struct{} + +// Set the required value of UpdatedAt +func (r tenantVcsProviderQueryUpdatedAtDateTime) Set(value DateTime) tenantVcsProviderSetParam { + + return tenantVcsProviderSetParam{ data: builder.Field{ - Name: "metadata", - Fields: []builder.Field{ - { - Name: "string_ends_with", - Value: value, - }, - }, + Name: "updatedAt", + Value: value, }, } + } -func (r streamEventQueryMetadataJson) StringEndsWithIfPresent(value *string) streamEventDefaultParam { +// Set the optional value of UpdatedAt dynamically +func (r tenantVcsProviderQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) tenantVcsProviderSetParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderSetParam{} } - return r.StringEndsWith(*value) + + return r.Set(*value) } -func (r streamEventQueryMetadataJson) ArrayContains(value JSON) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) Equals(value DateTime) tenantVcsProviderWithPrismaUpdatedAtEqualsParam { + + return tenantVcsProviderWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "metadata", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "array_contains", + Name: "equals", Value: value, }, }, @@ -169888,20 +171736,38 @@ func (r streamEventQueryMetadataJson) ArrayContains(value JSON) streamEventDefau } } -func (r streamEventQueryMetadataJson) ArrayContainsIfPresent(value *JSON) streamEventDefaultParam { +func (r tenantVcsProviderQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) tenantVcsProviderWithPrismaUpdatedAtEqualsParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderWithPrismaUpdatedAtEqualsParam{} } - return r.ArrayContains(*value) + return r.Equals(*value) } -func (r streamEventQueryMetadataJson) ArrayStartsWith(value JSON) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) Order(direction SortOrder) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "updatedAt", + Value: direction, + }, + } +} + +func (r tenantVcsProviderQueryUpdatedAtDateTime) Cursor(cursor DateTime) tenantVcsProviderCursorParam { + return tenantVcsProviderCursorParam{ + data: builder.Field{ + Name: "updatedAt", + Value: cursor, + }, + } +} + +func (r tenantVcsProviderQueryUpdatedAtDateTime) In(value []DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "updatedAt", Fields: []builder.Field{ { - Name: "array_starts_with", + Name: "in", Value: value, }, }, @@ -169909,20 +171775,20 @@ func (r streamEventQueryMetadataJson) ArrayStartsWith(value JSON) streamEventDef } } -func (r streamEventQueryMetadataJson) ArrayStartsWithIfPresent(value *JSON) streamEventDefaultParam { +func (r tenantVcsProviderQueryUpdatedAtDateTime) InIfPresent(value []DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.ArrayStartsWith(*value) + return r.In(value) } -func (r streamEventQueryMetadataJson) ArrayEndsWith(value JSON) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) NotIn(value []DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "array_ends_with", + Name: "notIn", Value: value, }, }, @@ -169930,17 +171796,17 @@ func (r streamEventQueryMetadataJson) ArrayEndsWith(value JSON) streamEventDefau } } -func (r streamEventQueryMetadataJson) ArrayEndsWithIfPresent(value *JSON) streamEventDefaultParam { +func (r tenantVcsProviderQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.ArrayEndsWith(*value) + return r.NotIn(value) } -func (r streamEventQueryMetadataJson) Lt(value JSON) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) Lt(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -169951,17 +171817,17 @@ func (r streamEventQueryMetadataJson) Lt(value JSON) streamEventDefaultParam { } } -func (r streamEventQueryMetadataJson) LtIfPresent(value *JSON) streamEventDefaultParam { +func (r tenantVcsProviderQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Lt(*value) } -func (r streamEventQueryMetadataJson) Lte(value JSON) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) Lte(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -169972,17 +171838,17 @@ func (r streamEventQueryMetadataJson) Lte(value JSON) streamEventDefaultParam { } } -func (r streamEventQueryMetadataJson) LteIfPresent(value *JSON) streamEventDefaultParam { +func (r tenantVcsProviderQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Lte(*value) } -func (r streamEventQueryMetadataJson) Gt(value JSON) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) Gt(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -169993,17 +171859,17 @@ func (r streamEventQueryMetadataJson) Gt(value JSON) streamEventDefaultParam { } } -func (r streamEventQueryMetadataJson) GtIfPresent(value *JSON) streamEventDefaultParam { +func (r tenantVcsProviderQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Gt(*value) } -func (r streamEventQueryMetadataJson) Gte(value JSON) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) Gte(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -170014,17 +171880,17 @@ func (r streamEventQueryMetadataJson) Gte(value JSON) streamEventDefaultParam { } } -func (r streamEventQueryMetadataJson) GteIfPresent(value *JSON) streamEventDefaultParam { +func (r tenantVcsProviderQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Gte(*value) } -func (r streamEventQueryMetadataJson) Not(value JSONNullValueFilter) streamEventDefaultParam { - return streamEventDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) Not(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "metadata", + Name: "updatedAt", Fields: []builder.Field{ { Name: "not", @@ -170035,149 +171901,158 @@ func (r streamEventQueryMetadataJson) Not(value JSONNullValueFilter) streamEvent } } -func (r streamEventQueryMetadataJson) NotIfPresent(value *JSONNullValueFilter) streamEventDefaultParam { +func (r tenantVcsProviderQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return streamEventDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Not(*value) } -func (r streamEventQueryMetadataJson) Field() streamEventPrismaFields { - return streamEventFieldMetadata -} - -// SNSIntegration acts as a namespaces to access query methods for the SNSIntegration model -var SNSIntegration = sNSIntegrationQuery{} - -// sNSIntegrationQuery exposes query functions for the sNSIntegration model -type sNSIntegrationQuery struct { - - // ID - // - // @required - ID sNSIntegrationQueryIDString - - // CreatedAt - // - // @required - CreatedAt sNSIntegrationQueryCreatedAtDateTime - - // UpdatedAt - // - // @required - UpdatedAt sNSIntegrationQueryUpdatedAtDateTime - - Tenant sNSIntegrationQueryTenantRelations - - // TenantID - // - // @required - TenantID sNSIntegrationQueryTenantIDString - - // TopicArn - // - // @required - TopicArn sNSIntegrationQueryTopicArnString -} - -func (sNSIntegrationQuery) Not(params ...SNSIntegrationWhereParam) sNSIntegrationDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } +// deprecated: Use Lt instead. - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) Before(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, }, } } -func (sNSIntegrationQuery) Or(params ...SNSIntegrationWhereParam) sNSIntegrationDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use LtIfPresent instead. +func (r tenantVcsProviderQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} } + return r.Before(*value) +} - return sNSIntegrationDefaultParam{ +// deprecated: Use Gt instead. + +func (r tenantVcsProviderQueryUpdatedAtDateTime) After(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, }, } } -func (sNSIntegrationQuery) And(params ...SNSIntegrationWhereParam) sNSIntegrationDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +// deprecated: Use GtIfPresent instead. +func (r tenantVcsProviderQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} } + return r.After(*value) +} - return sNSIntegrationDefaultParam{ +// deprecated: Use Lte instead. + +func (r tenantVcsProviderQueryUpdatedAtDateTime) BeforeEquals(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, }, } } -func (sNSIntegrationQuery) TenantIDTopicArn( - _tenantID SNSIntegrationWithPrismaTenantIDWhereParam, - - _topicArn SNSIntegrationWithPrismaTopicArnWhereParam, -) SNSIntegrationEqualsUniqueWhereParam { - var fields []builder.Field +// deprecated: Use LteIfPresent instead. +func (r tenantVcsProviderQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.BeforeEquals(*value) +} - fields = append(fields, _tenantID.field()) - fields = append(fields, _topicArn.field()) +// deprecated: Use Gte instead. - return sNSIntegrationEqualsUniqueParam{ +func (r tenantVcsProviderQueryUpdatedAtDateTime) AfterEquals(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "tenantId_topicArn", - Fields: builder.TransformEquals(fields), + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, }, } } +// deprecated: Use GteIfPresent instead. +func (r tenantVcsProviderQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r tenantVcsProviderQueryUpdatedAtDateTime) Field() tenantVcsProviderPrismaFields { + return tenantVcsProviderFieldUpdatedAt +} + // base struct -type sNSIntegrationQueryIDString struct{} +type tenantVcsProviderQueryDeletedAtDateTime struct{} -// Set the required value of ID -func (r sNSIntegrationQueryIDString) Set(value string) sNSIntegrationSetParam { +// Set the optional value of DeletedAt +func (r tenantVcsProviderQueryDeletedAtDateTime) Set(value DateTime) tenantVcsProviderSetParam { - return sNSIntegrationSetParam{ + return tenantVcsProviderSetParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Value: value, }, } } -// Set the optional value of ID dynamically -func (r sNSIntegrationQueryIDString) SetIfPresent(value *String) sNSIntegrationSetParam { +// Set the optional value of DeletedAt dynamically +func (r tenantVcsProviderQueryDeletedAtDateTime) SetIfPresent(value *DateTime) tenantVcsProviderSetParam { if value == nil { - return sNSIntegrationSetParam{} + return tenantVcsProviderSetParam{} } return r.Set(*value) } -func (r sNSIntegrationQueryIDString) Equals(value string) sNSIntegrationWithPrismaIDEqualsUniqueParam { +// Set the optional value of DeletedAt dynamically +func (r tenantVcsProviderQueryDeletedAtDateTime) SetOptional(value *DateTime) tenantVcsProviderSetParam { + if value == nil { - return sNSIntegrationWithPrismaIDEqualsUniqueParam{ + var v *DateTime + return tenantVcsProviderSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r tenantVcsProviderQueryDeletedAtDateTime) Equals(value DateTime) tenantVcsProviderWithPrismaDeletedAtEqualsParam { + + return tenantVcsProviderWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { Name: "equals", @@ -170188,35 +172063,64 @@ func (r sNSIntegrationQueryIDString) Equals(value string) sNSIntegrationWithPris } } -func (r sNSIntegrationQueryIDString) EqualsIfPresent(value *string) sNSIntegrationWithPrismaIDEqualsUniqueParam { +func (r tenantVcsProviderQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) tenantVcsProviderWithPrismaDeletedAtEqualsParam { if value == nil { - return sNSIntegrationWithPrismaIDEqualsUniqueParam{} + return tenantVcsProviderWithPrismaDeletedAtEqualsParam{} } return r.Equals(*value) } -func (r sNSIntegrationQueryIDString) Order(direction SortOrder) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryDeletedAtDateTime) EqualsOptional(value *DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r tenantVcsProviderQueryDeletedAtDateTime) IsNull() tenantVcsProviderDefaultParam { + var str *string = nil + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r tenantVcsProviderQueryDeletedAtDateTime) Order(direction SortOrder) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "deletedAt", Value: direction, }, } } -func (r sNSIntegrationQueryIDString) Cursor(cursor string) sNSIntegrationCursorParam { - return sNSIntegrationCursorParam{ +func (r tenantVcsProviderQueryDeletedAtDateTime) Cursor(cursor DateTime) tenantVcsProviderCursorParam { + return tenantVcsProviderCursorParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Value: cursor, }, } } -func (r sNSIntegrationQueryIDString) In(value []string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +func (r tenantVcsProviderQueryDeletedAtDateTime) In(value []DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { Name: "in", @@ -170227,17 +172131,17 @@ func (r sNSIntegrationQueryIDString) In(value []string) sNSIntegrationParamUniqu } } -func (r sNSIntegrationQueryIDString) InIfPresent(value []string) sNSIntegrationParamUnique { +func (r tenantVcsProviderQueryDeletedAtDateTime) InIfPresent(value []DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } return r.In(value) } -func (r sNSIntegrationQueryIDString) NotIn(value []string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +func (r tenantVcsProviderQueryDeletedAtDateTime) NotIn(value []DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { Name: "notIn", @@ -170248,17 +172152,17 @@ func (r sNSIntegrationQueryIDString) NotIn(value []string) sNSIntegrationParamUn } } -func (r sNSIntegrationQueryIDString) NotInIfPresent(value []string) sNSIntegrationParamUnique { +func (r tenantVcsProviderQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } return r.NotIn(value) } -func (r sNSIntegrationQueryIDString) Lt(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +func (r tenantVcsProviderQueryDeletedAtDateTime) Lt(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lt", @@ -170269,17 +172173,17 @@ func (r sNSIntegrationQueryIDString) Lt(value string) sNSIntegrationParamUnique } } -func (r sNSIntegrationQueryIDString) LtIfPresent(value *string) sNSIntegrationParamUnique { +func (r tenantVcsProviderQueryDeletedAtDateTime) LtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } return r.Lt(*value) } -func (r sNSIntegrationQueryIDString) Lte(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +func (r tenantVcsProviderQueryDeletedAtDateTime) Lte(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { Name: "lte", @@ -170290,17 +172194,17 @@ func (r sNSIntegrationQueryIDString) Lte(value string) sNSIntegrationParamUnique } } -func (r sNSIntegrationQueryIDString) LteIfPresent(value *string) sNSIntegrationParamUnique { +func (r tenantVcsProviderQueryDeletedAtDateTime) LteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } return r.Lte(*value) } -func (r sNSIntegrationQueryIDString) Gt(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +func (r tenantVcsProviderQueryDeletedAtDateTime) Gt(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gt", @@ -170311,17 +172215,17 @@ func (r sNSIntegrationQueryIDString) Gt(value string) sNSIntegrationParamUnique } } -func (r sNSIntegrationQueryIDString) GtIfPresent(value *string) sNSIntegrationParamUnique { +func (r tenantVcsProviderQueryDeletedAtDateTime) GtIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } return r.Gt(*value) } -func (r sNSIntegrationQueryIDString) Gte(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +func (r tenantVcsProviderQueryDeletedAtDateTime) Gte(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { Name: "gte", @@ -170332,20 +172236,20 @@ func (r sNSIntegrationQueryIDString) Gte(value string) sNSIntegrationParamUnique } } -func (r sNSIntegrationQueryIDString) GteIfPresent(value *string) sNSIntegrationParamUnique { +func (r tenantVcsProviderQueryDeletedAtDateTime) GteIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } return r.Gte(*value) } -func (r sNSIntegrationQueryIDString) Contains(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +func (r tenantVcsProviderQueryDeletedAtDateTime) Not(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -170353,20 +172257,22 @@ func (r sNSIntegrationQueryIDString) Contains(value string) sNSIntegrationParamU } } -func (r sNSIntegrationQueryIDString) ContainsIfPresent(value *string) sNSIntegrationParamUnique { +func (r tenantVcsProviderQueryDeletedAtDateTime) NotIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r sNSIntegrationQueryIDString) StartsWith(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +// deprecated: Use Lt instead. + +func (r tenantVcsProviderQueryDeletedAtDateTime) Before(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -170374,20 +172280,23 @@ func (r sNSIntegrationQueryIDString) StartsWith(value string) sNSIntegrationPara } } -func (r sNSIntegrationQueryIDString) StartsWithIfPresent(value *string) sNSIntegrationParamUnique { +// deprecated: Use LtIfPresent instead. +func (r tenantVcsProviderQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r sNSIntegrationQueryIDString) EndsWith(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +// deprecated: Use Gt instead. + +func (r tenantVcsProviderQueryDeletedAtDateTime) After(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -170395,20 +172304,23 @@ func (r sNSIntegrationQueryIDString) EndsWith(value string) sNSIntegrationParamU } } -func (r sNSIntegrationQueryIDString) EndsWithIfPresent(value *string) sNSIntegrationParamUnique { +// deprecated: Use GtIfPresent instead. +func (r tenantVcsProviderQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r sNSIntegrationQueryIDString) Mode(value QueryMode) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +// deprecated: Use Lte instead. + +func (r tenantVcsProviderQueryDeletedAtDateTime) BeforeEquals(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -170416,20 +172328,23 @@ func (r sNSIntegrationQueryIDString) Mode(value QueryMode) sNSIntegrationParamUn } } -func (r sNSIntegrationQueryIDString) ModeIfPresent(value *QueryMode) sNSIntegrationParamUnique { +// deprecated: Use LteIfPresent instead. +func (r tenantVcsProviderQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r sNSIntegrationQueryIDString) Not(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +// deprecated: Use Gte instead. + +func (r tenantVcsProviderQueryDeletedAtDateTime) AfterEquals(value DateTime) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -170437,94 +172352,135 @@ func (r sNSIntegrationQueryIDString) Not(value string) sNSIntegrationParamUnique } } -func (r sNSIntegrationQueryIDString) NotIfPresent(value *string) sNSIntegrationParamUnique { +// deprecated: Use GteIfPresent instead. +func (r tenantVcsProviderQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationParamUnique{} + return tenantVcsProviderDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r tenantVcsProviderQueryDeletedAtDateTime) Field() tenantVcsProviderPrismaFields { + return tenantVcsProviderFieldDeletedAt +} -func (r sNSIntegrationQueryIDString) HasPrefix(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ +// base struct +type tenantVcsProviderQueryTenantTenant struct{} + +type tenantVcsProviderQueryTenantRelations struct{} + +// TenantVcsProvider -> Tenant +// +// @relation +// @required +func (tenantVcsProviderQueryTenantRelations) Where( + params ...TenantWhereParam, +) tenantVcsProviderDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "id", + Name: "tenant", Fields: []builder.Field{ { - Name: "starts_with", - Value: value, + Name: "is", + Fields: fields, }, }, }, } } -// deprecated: Use StartsWithIfPresent instead. -func (r sNSIntegrationQueryIDString) HasPrefixIfPresent(value *string) sNSIntegrationParamUnique { - if value == nil { - return sNSIntegrationParamUnique{} - } - return r.HasPrefix(*value) +func (tenantVcsProviderQueryTenantRelations) Fetch() tenantVcsProviderToTenantFindUnique { + var v tenantVcsProviderToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v } -// deprecated: Use EndsWith instead. +func (r tenantVcsProviderQueryTenantRelations) Link( + params TenantWhereParam, +) tenantVcsProviderWithPrismaTenantSetParam { + var fields []builder.Field -func (r sNSIntegrationQueryIDString) HasSuffix(value string) sNSIntegrationParamUnique { - return sNSIntegrationParamUnique{ + f := params.field() + if f.Fields == nil && f.Value == nil { + return tenantVcsProviderWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return tenantVcsProviderWithPrismaTenantSetParam{ data: builder.Field{ - Name: "id", + Name: "tenant", Fields: []builder.Field{ { - Name: "ends_with", - Value: value, + Name: "connect", + Fields: builder.TransformEquals(fields), }, }, }, } } -// deprecated: Use EndsWithIfPresent instead. -func (r sNSIntegrationQueryIDString) HasSuffixIfPresent(value *string) sNSIntegrationParamUnique { - if value == nil { - return sNSIntegrationParamUnique{} +func (r tenantVcsProviderQueryTenantRelations) Unlink() tenantVcsProviderWithPrismaTenantSetParam { + var v tenantVcsProviderWithPrismaTenantSetParam + + v = tenantVcsProviderWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, } - return r.HasSuffix(*value) + + return v } -func (r sNSIntegrationQueryIDString) Field() sNSIntegrationPrismaFields { - return sNSIntegrationFieldID +func (r tenantVcsProviderQueryTenantTenant) Field() tenantVcsProviderPrismaFields { + return tenantVcsProviderFieldTenant } // base struct -type sNSIntegrationQueryCreatedAtDateTime struct{} +type tenantVcsProviderQueryTenantIDString struct{} -// Set the required value of CreatedAt -func (r sNSIntegrationQueryCreatedAtDateTime) Set(value DateTime) sNSIntegrationSetParam { +// Set the required value of TenantID +func (r tenantVcsProviderQueryTenantIDString) Set(value string) tenantVcsProviderSetParam { - return sNSIntegrationSetParam{ + return tenantVcsProviderSetParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Value: value, }, } } -// Set the optional value of CreatedAt dynamically -func (r sNSIntegrationQueryCreatedAtDateTime) SetIfPresent(value *DateTime) sNSIntegrationSetParam { +// Set the optional value of TenantID dynamically +func (r tenantVcsProviderQueryTenantIDString) SetIfPresent(value *String) tenantVcsProviderSetParam { if value == nil { - return sNSIntegrationSetParam{} + return tenantVcsProviderSetParam{} } return r.Set(*value) } -func (r sNSIntegrationQueryCreatedAtDateTime) Equals(value DateTime) sNSIntegrationWithPrismaCreatedAtEqualsParam { +func (r tenantVcsProviderQueryTenantIDString) Equals(value string) tenantVcsProviderWithPrismaTenantIDEqualsParam { - return sNSIntegrationWithPrismaCreatedAtEqualsParam{ + return tenantVcsProviderWithPrismaTenantIDEqualsParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "equals", @@ -170535,35 +172491,35 @@ func (r sNSIntegrationQueryCreatedAtDateTime) Equals(value DateTime) sNSIntegrat } } -func (r sNSIntegrationQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) sNSIntegrationWithPrismaCreatedAtEqualsParam { +func (r tenantVcsProviderQueryTenantIDString) EqualsIfPresent(value *string) tenantVcsProviderWithPrismaTenantIDEqualsParam { if value == nil { - return sNSIntegrationWithPrismaCreatedAtEqualsParam{} + return tenantVcsProviderWithPrismaTenantIDEqualsParam{} } return r.Equals(*value) } -func (r sNSIntegrationQueryCreatedAtDateTime) Order(direction SortOrder) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) Order(direction SortOrder) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Value: direction, }, } } -func (r sNSIntegrationQueryCreatedAtDateTime) Cursor(cursor DateTime) sNSIntegrationCursorParam { - return sNSIntegrationCursorParam{ +func (r tenantVcsProviderQueryTenantIDString) Cursor(cursor string) tenantVcsProviderCursorParam { + return tenantVcsProviderCursorParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Value: cursor, }, } } -func (r sNSIntegrationQueryCreatedAtDateTime) In(value []DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) In(value []string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "in", @@ -170574,17 +172530,17 @@ func (r sNSIntegrationQueryCreatedAtDateTime) In(value []DateTime) sNSIntegratio } } -func (r sNSIntegrationQueryCreatedAtDateTime) InIfPresent(value []DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) InIfPresent(value []string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.In(value) } -func (r sNSIntegrationQueryCreatedAtDateTime) NotIn(value []DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) NotIn(value []string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "notIn", @@ -170595,17 +172551,17 @@ func (r sNSIntegrationQueryCreatedAtDateTime) NotIn(value []DateTime) sNSIntegra } } -func (r sNSIntegrationQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) NotInIfPresent(value []string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.NotIn(value) } -func (r sNSIntegrationQueryCreatedAtDateTime) Lt(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) Lt(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lt", @@ -170616,17 +172572,17 @@ func (r sNSIntegrationQueryCreatedAtDateTime) Lt(value DateTime) sNSIntegrationD } } -func (r sNSIntegrationQueryCreatedAtDateTime) LtIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) LtIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Lt(*value) } -func (r sNSIntegrationQueryCreatedAtDateTime) Lte(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) Lte(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "lte", @@ -170637,17 +172593,17 @@ func (r sNSIntegrationQueryCreatedAtDateTime) Lte(value DateTime) sNSIntegration } } -func (r sNSIntegrationQueryCreatedAtDateTime) LteIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) LteIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Lte(*value) } -func (r sNSIntegrationQueryCreatedAtDateTime) Gt(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) Gt(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gt", @@ -170658,17 +172614,17 @@ func (r sNSIntegrationQueryCreatedAtDateTime) Gt(value DateTime) sNSIntegrationD } } -func (r sNSIntegrationQueryCreatedAtDateTime) GtIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) GtIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Gt(*value) } -func (r sNSIntegrationQueryCreatedAtDateTime) Gte(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) Gte(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { Name: "gte", @@ -170679,20 +172635,20 @@ func (r sNSIntegrationQueryCreatedAtDateTime) Gte(value DateTime) sNSIntegration } } -func (r sNSIntegrationQueryCreatedAtDateTime) GteIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) GteIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.Gte(*value) } -func (r sNSIntegrationQueryCreatedAtDateTime) Not(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) Contains(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "not", + Name: "contains", Value: value, }, }, @@ -170700,22 +172656,41 @@ func (r sNSIntegrationQueryCreatedAtDateTime) Not(value DateTime) sNSIntegration } } -func (r sNSIntegrationQueryCreatedAtDateTime) NotIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) ContainsIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.Not(*value) + return r.Contains(*value) } -// deprecated: Use Lt instead. +func (r tenantVcsProviderQueryTenantIDString) StartsWith(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} -func (r sNSIntegrationQueryCreatedAtDateTime) Before(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) StartsWithIfPresent(value *string) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r tenantVcsProviderQueryTenantIDString) EndsWith(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lt", + Name: "endsWith", Value: value, }, }, @@ -170723,23 +172698,41 @@ func (r sNSIntegrationQueryCreatedAtDateTime) Before(value DateTime) sNSIntegrat } } -// deprecated: Use LtIfPresent instead. -func (r sNSIntegrationQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) EndsWithIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.Before(*value) + return r.EndsWith(*value) } -// deprecated: Use Gt instead. +func (r tenantVcsProviderQueryTenantIDString) Mode(value QueryMode) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} -func (r sNSIntegrationQueryCreatedAtDateTime) After(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) ModeIfPresent(value *QueryMode) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.Mode(*value) +} + +func (r tenantVcsProviderQueryTenantIDString) Not(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gt", + Name: "not", Value: value, }, }, @@ -170747,23 +172740,22 @@ func (r sNSIntegrationQueryCreatedAtDateTime) After(value DateTime) sNSIntegrati } } -// deprecated: Use GtIfPresent instead. -func (r sNSIntegrationQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryTenantIDString) NotIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.After(*value) + return r.Not(*value) } -// deprecated: Use Lte instead. +// deprecated: Use StartsWith instead. -func (r sNSIntegrationQueryCreatedAtDateTime) BeforeEquals(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) HasPrefix(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "lte", + Name: "starts_with", Value: value, }, }, @@ -170771,23 +172763,23 @@ func (r sNSIntegrationQueryCreatedAtDateTime) BeforeEquals(value DateTime) sNSIn } } -// deprecated: Use LteIfPresent instead. -func (r sNSIntegrationQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) sNSIntegrationDefaultParam { +// deprecated: Use StartsWithIfPresent instead. +func (r tenantVcsProviderQueryTenantIDString) HasPrefixIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.BeforeEquals(*value) + return r.HasPrefix(*value) } -// deprecated: Use Gte instead. +// deprecated: Use EndsWith instead. -func (r sNSIntegrationQueryCreatedAtDateTime) AfterEquals(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryTenantIDString) HasSuffix(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "createdAt", + Name: "tenantId", Fields: []builder.Field{ { - Name: "gte", + Name: "ends_with", Value: value, }, }, @@ -170795,47 +172787,47 @@ func (r sNSIntegrationQueryCreatedAtDateTime) AfterEquals(value DateTime) sNSInt } } -// deprecated: Use GteIfPresent instead. -func (r sNSIntegrationQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) sNSIntegrationDefaultParam { +// deprecated: Use EndsWithIfPresent instead. +func (r tenantVcsProviderQueryTenantIDString) HasSuffixIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.AfterEquals(*value) + return r.HasSuffix(*value) } -func (r sNSIntegrationQueryCreatedAtDateTime) Field() sNSIntegrationPrismaFields { - return sNSIntegrationFieldCreatedAt +func (r tenantVcsProviderQueryTenantIDString) Field() tenantVcsProviderPrismaFields { + return tenantVcsProviderFieldTenantID } // base struct -type sNSIntegrationQueryUpdatedAtDateTime struct{} +type tenantVcsProviderQueryVcsProviderVcsProvider struct{} -// Set the required value of UpdatedAt -func (r sNSIntegrationQueryUpdatedAtDateTime) Set(value DateTime) sNSIntegrationSetParam { +// Set the required value of VcsProvider +func (r tenantVcsProviderQueryVcsProviderVcsProvider) Set(value VcsProvider) tenantVcsProviderWithPrismaVcsProviderSetParam { - return sNSIntegrationSetParam{ + return tenantVcsProviderWithPrismaVcsProviderSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "vcsProvider", Value: value, }, } } -// Set the optional value of UpdatedAt dynamically -func (r sNSIntegrationQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) sNSIntegrationSetParam { +// Set the optional value of VcsProvider dynamically +func (r tenantVcsProviderQueryVcsProviderVcsProvider) SetIfPresent(value *VcsProvider) tenantVcsProviderWithPrismaVcsProviderSetParam { if value == nil { - return sNSIntegrationSetParam{} + return tenantVcsProviderWithPrismaVcsProviderSetParam{} } return r.Set(*value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) Equals(value DateTime) sNSIntegrationWithPrismaUpdatedAtEqualsParam { +func (r tenantVcsProviderQueryVcsProviderVcsProvider) Equals(value VcsProvider) tenantVcsProviderWithPrismaVcsProviderEqualsParam { - return sNSIntegrationWithPrismaUpdatedAtEqualsParam{ + return tenantVcsProviderWithPrismaVcsProviderEqualsParam{ data: builder.Field{ - Name: "updatedAt", + Name: "vcsProvider", Fields: []builder.Field{ { Name: "equals", @@ -170846,35 +172838,35 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) Equals(value DateTime) sNSIntegrat } } -func (r sNSIntegrationQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) sNSIntegrationWithPrismaUpdatedAtEqualsParam { +func (r tenantVcsProviderQueryVcsProviderVcsProvider) EqualsIfPresent(value *VcsProvider) tenantVcsProviderWithPrismaVcsProviderEqualsParam { if value == nil { - return sNSIntegrationWithPrismaUpdatedAtEqualsParam{} + return tenantVcsProviderWithPrismaVcsProviderEqualsParam{} } return r.Equals(*value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) Order(direction SortOrder) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryVcsProviderVcsProvider) Order(direction SortOrder) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "vcsProvider", Value: direction, }, } } -func (r sNSIntegrationQueryUpdatedAtDateTime) Cursor(cursor DateTime) sNSIntegrationCursorParam { - return sNSIntegrationCursorParam{ +func (r tenantVcsProviderQueryVcsProviderVcsProvider) Cursor(cursor VcsProvider) tenantVcsProviderCursorParam { + return tenantVcsProviderCursorParam{ data: builder.Field{ - Name: "updatedAt", + Name: "vcsProvider", Value: cursor, }, } } -func (r sNSIntegrationQueryUpdatedAtDateTime) In(value []DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryVcsProviderVcsProvider) In(value []VcsProvider) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "vcsProvider", Fields: []builder.Field{ { Name: "in", @@ -170885,17 +172877,17 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) In(value []DateTime) sNSIntegratio } } -func (r sNSIntegrationQueryUpdatedAtDateTime) InIfPresent(value []DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryVcsProviderVcsProvider) InIfPresent(value []VcsProvider) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.In(value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) NotIn(value []DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryVcsProviderVcsProvider) NotIn(value []VcsProvider) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "vcsProvider", Fields: []builder.Field{ { Name: "notIn", @@ -170906,20 +172898,20 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) NotIn(value []DateTime) sNSIntegra } } -func (r sNSIntegrationQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryVcsProviderVcsProvider) NotInIfPresent(value []VcsProvider) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } return r.NotIn(value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) Lt(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryVcsProviderVcsProvider) Not(value VcsProvider) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "vcsProvider", Fields: []builder.Field{ { - Name: "lt", + Name: "not", Value: value, }, }, @@ -170927,20 +172919,65 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) Lt(value DateTime) sNSIntegrationD } } -func (r sNSIntegrationQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryVcsProviderVcsProvider) NotIfPresent(value *VcsProvider) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.Lt(*value) + return r.Not(*value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) Lte(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryVcsProviderVcsProvider) Field() tenantVcsProviderPrismaFields { + return tenantVcsProviderFieldVcsProvider +} + +// base struct +type tenantVcsProviderQueryConfigJson struct{} + +// Set the optional value of Config +func (r tenantVcsProviderQueryConfigJson) Set(value JSON) tenantVcsProviderSetParam { + + return tenantVcsProviderSetParam{ data: builder.Field{ - Name: "updatedAt", + Name: "config", + Value: value, + }, + } + +} + +// Set the optional value of Config dynamically +func (r tenantVcsProviderQueryConfigJson) SetIfPresent(value *JSON) tenantVcsProviderSetParam { + if value == nil { + return tenantVcsProviderSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of Config dynamically +func (r tenantVcsProviderQueryConfigJson) SetOptional(value *JSON) tenantVcsProviderSetParam { + if value == nil { + + var v *JSON + return tenantVcsProviderSetParam{ + data: builder.Field{ + Name: "config", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r tenantVcsProviderQueryConfigJson) Equals(value JSON) tenantVcsProviderWithPrismaConfigEqualsParam { + + return tenantVcsProviderWithPrismaConfigEqualsParam{ + data: builder.Field{ + Name: "config", Fields: []builder.Field{ { - Name: "lte", + Name: "equals", Value: value, }, }, @@ -170948,20 +172985,20 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) Lte(value DateTime) sNSIntegration } } -func (r sNSIntegrationQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryConfigJson) EqualsIfPresent(value *JSON) tenantVcsProviderWithPrismaConfigEqualsParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderWithPrismaConfigEqualsParam{} } - return r.Lte(*value) + return r.Equals(*value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) Gt(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryConfigJson) EqualsOptional(value *JSON) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "config", Fields: []builder.Field{ { - Name: "gt", + Name: "equals", Value: value, }, }, @@ -170969,20 +173006,46 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) Gt(value DateTime) sNSIntegrationD } } -func (r sNSIntegrationQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) sNSIntegrationDefaultParam { - if value == nil { - return sNSIntegrationDefaultParam{} +func (r tenantVcsProviderQueryConfigJson) IsNull() tenantVcsProviderDefaultParam { + var str *string = nil + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "config", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, } - return r.Gt(*value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) Gte(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryConfigJson) Order(direction SortOrder) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "config", + Value: direction, + }, + } +} + +func (r tenantVcsProviderQueryConfigJson) Cursor(cursor JSON) tenantVcsProviderCursorParam { + return tenantVcsProviderCursorParam{ + data: builder.Field{ + Name: "config", + Value: cursor, + }, + } +} + +func (r tenantVcsProviderQueryConfigJson) Path(value []string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "config", Fields: []builder.Field{ { - Name: "gte", + Name: "path", Value: value, }, }, @@ -170990,20 +173053,20 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) Gte(value DateTime) sNSIntegration } } -func (r sNSIntegrationQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryConfigJson) PathIfPresent(value []string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.Gte(*value) + return r.Path(value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) Not(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryConfigJson) StringContains(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "config", Fields: []builder.Field{ { - Name: "not", + Name: "string_contains", Value: value, }, }, @@ -171011,22 +173074,20 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) Not(value DateTime) sNSIntegration } } -func (r sNSIntegrationQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryConfigJson) StringContainsIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.Not(*value) + return r.StringContains(*value) } -// deprecated: Use Lt instead. - -func (r sNSIntegrationQueryUpdatedAtDateTime) Before(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryConfigJson) StringStartsWith(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "config", Fields: []builder.Field{ { - Name: "lt", + Name: "string_starts_with", Value: value, }, }, @@ -171034,23 +173095,20 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) Before(value DateTime) sNSIntegrat } } -// deprecated: Use LtIfPresent instead. -func (r sNSIntegrationQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryConfigJson) StringStartsWithIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.Before(*value) + return r.StringStartsWith(*value) } -// deprecated: Use Gt instead. - -func (r sNSIntegrationQueryUpdatedAtDateTime) After(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryConfigJson) StringEndsWith(value string) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "config", Fields: []builder.Field{ { - Name: "gt", + Name: "string_ends_with", Value: value, }, }, @@ -171058,23 +173116,20 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) After(value DateTime) sNSIntegrati } } -// deprecated: Use GtIfPresent instead. -func (r sNSIntegrationQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryConfigJson) StringEndsWithIfPresent(value *string) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.After(*value) + return r.StringEndsWith(*value) } -// deprecated: Use Lte instead. - -func (r sNSIntegrationQueryUpdatedAtDateTime) BeforeEquals(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryConfigJson) ArrayContains(value JSON) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "config", Fields: []builder.Field{ { - Name: "lte", + Name: "array_contains", Value: value, }, }, @@ -171082,23 +173137,20 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) BeforeEquals(value DateTime) sNSIn } } -// deprecated: Use LteIfPresent instead. -func (r sNSIntegrationQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryConfigJson) ArrayContainsIfPresent(value *JSON) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.BeforeEquals(*value) + return r.ArrayContains(*value) } -// deprecated: Use Gte instead. - -func (r sNSIntegrationQueryUpdatedAtDateTime) AfterEquals(value DateTime) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryConfigJson) ArrayStartsWith(value JSON) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "updatedAt", + Name: "config", Fields: []builder.Field{ { - Name: "gte", + Name: "array_starts_with", Value: value, }, }, @@ -171106,135 +173158,262 @@ func (r sNSIntegrationQueryUpdatedAtDateTime) AfterEquals(value DateTime) sNSInt } } -// deprecated: Use GteIfPresent instead. -func (r sNSIntegrationQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) sNSIntegrationDefaultParam { +func (r tenantVcsProviderQueryConfigJson) ArrayStartsWithIfPresent(value *JSON) tenantVcsProviderDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantVcsProviderDefaultParam{} } - return r.AfterEquals(*value) + return r.ArrayStartsWith(*value) } -func (r sNSIntegrationQueryUpdatedAtDateTime) Field() sNSIntegrationPrismaFields { - return sNSIntegrationFieldUpdatedAt +func (r tenantVcsProviderQueryConfigJson) ArrayEndsWith(value JSON) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "config", + Fields: []builder.Field{ + { + Name: "array_ends_with", + Value: value, + }, + }, + }, + } } -// base struct -type sNSIntegrationQueryTenantTenant struct{} - -type sNSIntegrationQueryTenantRelations struct{} - -// SNSIntegration -> Tenant -// -// @relation -// @required -func (sNSIntegrationQueryTenantRelations) Where( - params ...TenantWhereParam, -) sNSIntegrationDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) +func (r tenantVcsProviderQueryConfigJson) ArrayEndsWithIfPresent(value *JSON) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} } + return r.ArrayEndsWith(*value) +} - return sNSIntegrationDefaultParam{ +func (r tenantVcsProviderQueryConfigJson) Lt(value JSON) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "config", Fields: []builder.Field{ { - Name: "is", - Fields: fields, + Name: "lt", + Value: value, }, }, }, } } -func (sNSIntegrationQueryTenantRelations) Fetch() sNSIntegrationToTenantFindUnique { - var v sNSIntegrationToTenantFindUnique - - v.query.Operation = "query" - v.query.Method = "tenant" - v.query.Outputs = tenantOutput +func (r tenantVcsProviderQueryConfigJson) LtIfPresent(value *JSON) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.Lt(*value) +} - return v +func (r tenantVcsProviderQueryConfigJson) Lte(value JSON) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "config", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } } -func (r sNSIntegrationQueryTenantRelations) Link( - params TenantWhereParam, -) sNSIntegrationWithPrismaTenantSetParam { - var fields []builder.Field +func (r tenantVcsProviderQueryConfigJson) LteIfPresent(value *JSON) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.Lte(*value) +} - f := params.field() - if f.Fields == nil && f.Value == nil { - return sNSIntegrationWithPrismaTenantSetParam{} +func (r tenantVcsProviderQueryConfigJson) Gt(value JSON) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ + data: builder.Field{ + Name: "config", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, } +} - fields = append(fields, f) +func (r tenantVcsProviderQueryConfigJson) GtIfPresent(value *JSON) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.Gt(*value) +} - return sNSIntegrationWithPrismaTenantSetParam{ +func (r tenantVcsProviderQueryConfigJson) Gte(value JSON) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "config", Fields: []builder.Field{ { - Name: "connect", - Fields: builder.TransformEquals(fields), + Name: "gte", + Value: value, }, }, }, } } -func (r sNSIntegrationQueryTenantRelations) Unlink() sNSIntegrationWithPrismaTenantSetParam { - var v sNSIntegrationWithPrismaTenantSetParam +func (r tenantVcsProviderQueryConfigJson) GteIfPresent(value *JSON) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.Gte(*value) +} - v = sNSIntegrationWithPrismaTenantSetParam{ +func (r tenantVcsProviderQueryConfigJson) Not(value JSONNullValueFilter) tenantVcsProviderDefaultParam { + return tenantVcsProviderDefaultParam{ data: builder.Field{ - Name: "tenant", + Name: "config", Fields: []builder.Field{ { - Name: "disconnect", - Value: true, + Name: "not", + Value: value, }, }, }, } +} - return v +func (r tenantVcsProviderQueryConfigJson) NotIfPresent(value *JSONNullValueFilter) tenantVcsProviderDefaultParam { + if value == nil { + return tenantVcsProviderDefaultParam{} + } + return r.Not(*value) } -func (r sNSIntegrationQueryTenantTenant) Field() sNSIntegrationPrismaFields { - return sNSIntegrationFieldTenant +func (r tenantVcsProviderQueryConfigJson) Field() tenantVcsProviderPrismaFields { + return tenantVcsProviderFieldConfig +} + +// TenantAlertEmailGroup acts as a namespaces to access query methods for the TenantAlertEmailGroup model +var TenantAlertEmailGroup = tenantAlertEmailGroupQuery{} + +// tenantAlertEmailGroupQuery exposes query functions for the tenantAlertEmailGroup model +type tenantAlertEmailGroupQuery struct { + + // ID + // + // @required + ID tenantAlertEmailGroupQueryIDString + + // CreatedAt + // + // @required + CreatedAt tenantAlertEmailGroupQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt tenantAlertEmailGroupQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt tenantAlertEmailGroupQueryDeletedAtDateTime + + Tenant tenantAlertEmailGroupQueryTenantRelations + + // TenantID + // + // @required + TenantID tenantAlertEmailGroupQueryTenantIDString + + // Emails + // + // @required + Emails tenantAlertEmailGroupQueryEmailsString +} + +func (tenantAlertEmailGroupQuery) Not(params ...TenantAlertEmailGroupWhereParam) tenantAlertEmailGroupDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (tenantAlertEmailGroupQuery) Or(params ...TenantAlertEmailGroupWhereParam) tenantAlertEmailGroupDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (tenantAlertEmailGroupQuery) And(params ...TenantAlertEmailGroupWhereParam) tenantAlertEmailGroupDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } } // base struct -type sNSIntegrationQueryTenantIDString struct{} +type tenantAlertEmailGroupQueryIDString struct{} -// Set the required value of TenantID -func (r sNSIntegrationQueryTenantIDString) Set(value string) sNSIntegrationSetParam { +// Set the required value of ID +func (r tenantAlertEmailGroupQueryIDString) Set(value string) tenantAlertEmailGroupSetParam { - return sNSIntegrationSetParam{ + return tenantAlertEmailGroupSetParam{ data: builder.Field{ - Name: "tenantId", + Name: "id", Value: value, }, } } -// Set the optional value of TenantID dynamically -func (r sNSIntegrationQueryTenantIDString) SetIfPresent(value *String) sNSIntegrationSetParam { +// Set the optional value of ID dynamically +func (r tenantAlertEmailGroupQueryIDString) SetIfPresent(value *String) tenantAlertEmailGroupSetParam { if value == nil { - return sNSIntegrationSetParam{} + return tenantAlertEmailGroupSetParam{} } return r.Set(*value) } -func (r sNSIntegrationQueryTenantIDString) Equals(value string) sNSIntegrationWithPrismaTenantIDEqualsParam { +func (r tenantAlertEmailGroupQueryIDString) Equals(value string) tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam { - return sNSIntegrationWithPrismaTenantIDEqualsParam{ + return tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "equals", @@ -171245,35 +173424,35 @@ func (r sNSIntegrationQueryTenantIDString) Equals(value string) sNSIntegrationWi } } -func (r sNSIntegrationQueryTenantIDString) EqualsIfPresent(value *string) sNSIntegrationWithPrismaTenantIDEqualsParam { +func (r tenantAlertEmailGroupQueryIDString) EqualsIfPresent(value *string) tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam { if value == nil { - return sNSIntegrationWithPrismaTenantIDEqualsParam{} + return tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam{} } return r.Equals(*value) } -func (r sNSIntegrationQueryTenantIDString) Order(direction SortOrder) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "tenantId", + Name: "id", Value: direction, }, } } -func (r sNSIntegrationQueryTenantIDString) Cursor(cursor string) sNSIntegrationCursorParam { - return sNSIntegrationCursorParam{ +func (r tenantAlertEmailGroupQueryIDString) Cursor(cursor string) tenantAlertEmailGroupCursorParam { + return tenantAlertEmailGroupCursorParam{ data: builder.Field{ - Name: "tenantId", + Name: "id", Value: cursor, }, } } -func (r sNSIntegrationQueryTenantIDString) In(value []string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) In(value []string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "in", @@ -171284,17 +173463,17 @@ func (r sNSIntegrationQueryTenantIDString) In(value []string) sNSIntegrationDefa } } -func (r sNSIntegrationQueryTenantIDString) InIfPresent(value []string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) InIfPresent(value []string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.In(value) } -func (r sNSIntegrationQueryTenantIDString) NotIn(value []string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) NotIn(value []string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "notIn", @@ -171305,17 +173484,17 @@ func (r sNSIntegrationQueryTenantIDString) NotIn(value []string) sNSIntegrationD } } -func (r sNSIntegrationQueryTenantIDString) NotInIfPresent(value []string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) NotInIfPresent(value []string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.NotIn(value) } -func (r sNSIntegrationQueryTenantIDString) Lt(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) Lt(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "lt", @@ -171326,17 +173505,17 @@ func (r sNSIntegrationQueryTenantIDString) Lt(value string) sNSIntegrationDefaul } } -func (r sNSIntegrationQueryTenantIDString) LtIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) LtIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.Lt(*value) } -func (r sNSIntegrationQueryTenantIDString) Lte(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) Lte(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "lte", @@ -171347,17 +173526,17 @@ func (r sNSIntegrationQueryTenantIDString) Lte(value string) sNSIntegrationDefau } } -func (r sNSIntegrationQueryTenantIDString) LteIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) LteIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.Lte(*value) } -func (r sNSIntegrationQueryTenantIDString) Gt(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) Gt(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "gt", @@ -171368,17 +173547,17 @@ func (r sNSIntegrationQueryTenantIDString) Gt(value string) sNSIntegrationDefaul } } -func (r sNSIntegrationQueryTenantIDString) GtIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) GtIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.Gt(*value) } -func (r sNSIntegrationQueryTenantIDString) Gte(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) Gte(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "gte", @@ -171389,17 +173568,17 @@ func (r sNSIntegrationQueryTenantIDString) Gte(value string) sNSIntegrationDefau } } -func (r sNSIntegrationQueryTenantIDString) GteIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) GteIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.Gte(*value) } -func (r sNSIntegrationQueryTenantIDString) Contains(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) Contains(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "contains", @@ -171410,17 +173589,17 @@ func (r sNSIntegrationQueryTenantIDString) Contains(value string) sNSIntegration } } -func (r sNSIntegrationQueryTenantIDString) ContainsIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) ContainsIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.Contains(*value) } -func (r sNSIntegrationQueryTenantIDString) StartsWith(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) StartsWith(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "startsWith", @@ -171431,17 +173610,17 @@ func (r sNSIntegrationQueryTenantIDString) StartsWith(value string) sNSIntegrati } } -func (r sNSIntegrationQueryTenantIDString) StartsWithIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) StartsWithIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.StartsWith(*value) } -func (r sNSIntegrationQueryTenantIDString) EndsWith(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) EndsWith(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "endsWith", @@ -171452,17 +173631,17 @@ func (r sNSIntegrationQueryTenantIDString) EndsWith(value string) sNSIntegration } } -func (r sNSIntegrationQueryTenantIDString) EndsWithIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) EndsWithIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.EndsWith(*value) } -func (r sNSIntegrationQueryTenantIDString) Mode(value QueryMode) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) Mode(value QueryMode) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "mode", @@ -171473,17 +173652,17 @@ func (r sNSIntegrationQueryTenantIDString) Mode(value QueryMode) sNSIntegrationD } } -func (r sNSIntegrationQueryTenantIDString) ModeIfPresent(value *QueryMode) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) ModeIfPresent(value *QueryMode) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.Mode(*value) } -func (r sNSIntegrationQueryTenantIDString) Not(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) Not(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "not", @@ -171494,19 +173673,19 @@ func (r sNSIntegrationQueryTenantIDString) Not(value string) sNSIntegrationDefau } } -func (r sNSIntegrationQueryTenantIDString) NotIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) NotIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.Not(*value) } // deprecated: Use StartsWith instead. -func (r sNSIntegrationQueryTenantIDString) HasPrefix(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) HasPrefix(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "starts_with", @@ -171518,19 +173697,19 @@ func (r sNSIntegrationQueryTenantIDString) HasPrefix(value string) sNSIntegratio } // deprecated: Use StartsWithIfPresent instead. -func (r sNSIntegrationQueryTenantIDString) HasPrefixIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) HasPrefixIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.HasPrefix(*value) } // deprecated: Use EndsWith instead. -func (r sNSIntegrationQueryTenantIDString) HasSuffix(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryIDString) HasSuffix(value string) tenantAlertEmailGroupParamUnique { + return tenantAlertEmailGroupParamUnique{ data: builder.Field{ - Name: "tenantId", + Name: "id", Fields: []builder.Field{ { Name: "ends_with", @@ -171542,46 +173721,46 @@ func (r sNSIntegrationQueryTenantIDString) HasSuffix(value string) sNSIntegratio } // deprecated: Use EndsWithIfPresent instead. -func (r sNSIntegrationQueryTenantIDString) HasSuffixIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryIDString) HasSuffixIfPresent(value *string) tenantAlertEmailGroupParamUnique { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupParamUnique{} } return r.HasSuffix(*value) } -func (r sNSIntegrationQueryTenantIDString) Field() sNSIntegrationPrismaFields { - return sNSIntegrationFieldTenantID +func (r tenantAlertEmailGroupQueryIDString) Field() tenantAlertEmailGroupPrismaFields { + return tenantAlertEmailGroupFieldID } // base struct -type sNSIntegrationQueryTopicArnString struct{} +type tenantAlertEmailGroupQueryCreatedAtDateTime struct{} -// Set the required value of TopicArn -func (r sNSIntegrationQueryTopicArnString) Set(value string) sNSIntegrationWithPrismaTopicArnSetParam { +// Set the required value of CreatedAt +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Set(value DateTime) tenantAlertEmailGroupSetParam { - return sNSIntegrationWithPrismaTopicArnSetParam{ + return tenantAlertEmailGroupSetParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Value: value, }, } } -// Set the optional value of TopicArn dynamically -func (r sNSIntegrationQueryTopicArnString) SetIfPresent(value *String) sNSIntegrationWithPrismaTopicArnSetParam { +// Set the optional value of CreatedAt dynamically +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) SetIfPresent(value *DateTime) tenantAlertEmailGroupSetParam { if value == nil { - return sNSIntegrationWithPrismaTopicArnSetParam{} + return tenantAlertEmailGroupSetParam{} } return r.Set(*value) } -func (r sNSIntegrationQueryTopicArnString) Equals(value string) sNSIntegrationWithPrismaTopicArnEqualsParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Equals(value DateTime) tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam { - return sNSIntegrationWithPrismaTopicArnEqualsParam{ + return tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { Name: "equals", @@ -171592,35 +173771,35 @@ func (r sNSIntegrationQueryTopicArnString) Equals(value string) sNSIntegrationWi } } -func (r sNSIntegrationQueryTopicArnString) EqualsIfPresent(value *string) sNSIntegrationWithPrismaTopicArnEqualsParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam { if value == nil { - return sNSIntegrationWithPrismaTopicArnEqualsParam{} + return tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam{} } return r.Equals(*value) } -func (r sNSIntegrationQueryTopicArnString) Order(direction SortOrder) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Value: direction, }, } } -func (r sNSIntegrationQueryTopicArnString) Cursor(cursor string) sNSIntegrationCursorParam { - return sNSIntegrationCursorParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Cursor(cursor DateTime) tenantAlertEmailGroupCursorParam { + return tenantAlertEmailGroupCursorParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Value: cursor, }, } } -func (r sNSIntegrationQueryTopicArnString) In(value []string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) In(value []DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { Name: "in", @@ -171631,17 +173810,17 @@ func (r sNSIntegrationQueryTopicArnString) In(value []string) sNSIntegrationDefa } } -func (r sNSIntegrationQueryTopicArnString) InIfPresent(value []string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) InIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupDefaultParam{} } return r.In(value) } -func (r sNSIntegrationQueryTopicArnString) NotIn(value []string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) NotIn(value []DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { Name: "notIn", @@ -171652,17 +173831,17 @@ func (r sNSIntegrationQueryTopicArnString) NotIn(value []string) sNSIntegrationD } } -func (r sNSIntegrationQueryTopicArnString) NotInIfPresent(value []string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupDefaultParam{} } return r.NotIn(value) } -func (r sNSIntegrationQueryTopicArnString) Lt(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Lt(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { Name: "lt", @@ -171673,17 +173852,17 @@ func (r sNSIntegrationQueryTopicArnString) Lt(value string) sNSIntegrationDefaul } } -func (r sNSIntegrationQueryTopicArnString) LtIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) LtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupDefaultParam{} } return r.Lt(*value) } -func (r sNSIntegrationQueryTopicArnString) Lte(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Lte(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { Name: "lte", @@ -171694,17 +173873,17 @@ func (r sNSIntegrationQueryTopicArnString) Lte(value string) sNSIntegrationDefau } } -func (r sNSIntegrationQueryTopicArnString) LteIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) LteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupDefaultParam{} } return r.Lte(*value) } -func (r sNSIntegrationQueryTopicArnString) Gt(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Gt(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { Name: "gt", @@ -171715,17 +173894,17 @@ func (r sNSIntegrationQueryTopicArnString) Gt(value string) sNSIntegrationDefaul } } -func (r sNSIntegrationQueryTopicArnString) GtIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) GtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupDefaultParam{} } return r.Gt(*value) } -func (r sNSIntegrationQueryTopicArnString) Gte(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Gte(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { Name: "gte", @@ -171736,20 +173915,20 @@ func (r sNSIntegrationQueryTopicArnString) Gte(value string) sNSIntegrationDefau } } -func (r sNSIntegrationQueryTopicArnString) GteIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) GteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupDefaultParam{} } return r.Gte(*value) } -func (r sNSIntegrationQueryTopicArnString) Contains(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Not(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -171757,41 +173936,22 @@ func (r sNSIntegrationQueryTopicArnString) Contains(value string) sNSIntegration } } -func (r sNSIntegrationQueryTopicArnString) ContainsIfPresent(value *string) sNSIntegrationDefaultParam { +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) NotIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} - } - return r.Contains(*value) -} - -func (r sNSIntegrationQueryTopicArnString) StartsWith(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ - data: builder.Field{ - Name: "topicArn", - Fields: []builder.Field{ - { - Name: "startsWith", - Value: value, - }, - }, - }, + return tenantAlertEmailGroupDefaultParam{} } + return r.Not(*value) } -func (r sNSIntegrationQueryTopicArnString) StartsWithIfPresent(value *string) sNSIntegrationDefaultParam { - if value == nil { - return sNSIntegrationDefaultParam{} - } - return r.StartsWith(*value) -} +// deprecated: Use Lt instead. -func (r sNSIntegrationQueryTopicArnString) EndsWith(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Before(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "lt", Value: value, }, }, @@ -171799,41 +173959,23 @@ func (r sNSIntegrationQueryTopicArnString) EndsWith(value string) sNSIntegration } } -func (r sNSIntegrationQueryTopicArnString) EndsWithIfPresent(value *string) sNSIntegrationDefaultParam { +// deprecated: Use LtIfPresent instead. +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} - } - return r.EndsWith(*value) -} - -func (r sNSIntegrationQueryTopicArnString) Mode(value QueryMode) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ - data: builder.Field{ - Name: "topicArn", - Fields: []builder.Field{ - { - Name: "mode", - Value: value, - }, - }, - }, + return tenantAlertEmailGroupDefaultParam{} } + return r.Before(*value) } -func (r sNSIntegrationQueryTopicArnString) ModeIfPresent(value *QueryMode) sNSIntegrationDefaultParam { - if value == nil { - return sNSIntegrationDefaultParam{} - } - return r.Mode(*value) -} +// deprecated: Use Gt instead. -func (r sNSIntegrationQueryTopicArnString) Not(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) After(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { - Name: "not", + Name: "gt", Value: value, }, }, @@ -171841,22 +173983,23 @@ func (r sNSIntegrationQueryTopicArnString) Not(value string) sNSIntegrationDefau } } -func (r sNSIntegrationQueryTopicArnString) NotIfPresent(value *string) sNSIntegrationDefaultParam { +// deprecated: Use GtIfPresent instead. +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupDefaultParam{} } - return r.Not(*value) + return r.After(*value) } -// deprecated: Use StartsWith instead. +// deprecated: Use Lte instead. -func (r sNSIntegrationQueryTopicArnString) HasPrefix(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) BeforeEquals(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { - Name: "starts_with", + Name: "lte", Value: value, }, }, @@ -171864,23 +174007,23 @@ func (r sNSIntegrationQueryTopicArnString) HasPrefix(value string) sNSIntegratio } } -// deprecated: Use StartsWithIfPresent instead. -func (r sNSIntegrationQueryTopicArnString) HasPrefixIfPresent(value *string) sNSIntegrationDefaultParam { +// deprecated: Use LteIfPresent instead. +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} + return tenantAlertEmailGroupDefaultParam{} } - return r.HasPrefix(*value) + return r.BeforeEquals(*value) } -// deprecated: Use EndsWith instead. +// deprecated: Use Gte instead. -func (r sNSIntegrationQueryTopicArnString) HasSuffix(value string) sNSIntegrationDefaultParam { - return sNSIntegrationDefaultParam{ +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) AfterEquals(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "topicArn", + Name: "createdAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "gte", Value: value, }, }, @@ -171888,110 +174031,47 @@ func (r sNSIntegrationQueryTopicArnString) HasSuffix(value string) sNSIntegratio } } -// deprecated: Use EndsWithIfPresent instead. -func (r sNSIntegrationQueryTopicArnString) HasSuffixIfPresent(value *string) sNSIntegrationDefaultParam { +// deprecated: Use GteIfPresent instead. +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return sNSIntegrationDefaultParam{} - } - return r.HasSuffix(*value) -} - -func (r sNSIntegrationQueryTopicArnString) Field() sNSIntegrationPrismaFields { - return sNSIntegrationFieldTopicArn -} - -// SecurityCheckIdent acts as a namespaces to access query methods for the SecurityCheckIdent model -var SecurityCheckIdent = securityCheckIdentQuery{} - -// securityCheckIdentQuery exposes query functions for the securityCheckIdent model -type securityCheckIdentQuery struct { - - // ID - // - // @required - ID securityCheckIdentQueryIDString -} - -func (securityCheckIdentQuery) Not(params ...SecurityCheckIdentWhereParam) securityCheckIdentDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return securityCheckIdentDefaultParam{ - data: builder.Field{ - Name: "NOT", - List: true, - WrapList: true, - Fields: fields, - }, - } -} - -func (securityCheckIdentQuery) Or(params ...SecurityCheckIdentWhereParam) securityCheckIdentDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return securityCheckIdentDefaultParam{ - data: builder.Field{ - Name: "OR", - List: true, - WrapList: true, - Fields: fields, - }, + return tenantAlertEmailGroupDefaultParam{} } + return r.AfterEquals(*value) } -func (securityCheckIdentQuery) And(params ...SecurityCheckIdentWhereParam) securityCheckIdentDefaultParam { - var fields []builder.Field - - for _, q := range params { - fields = append(fields, q.field()) - } - - return securityCheckIdentDefaultParam{ - data: builder.Field{ - Name: "AND", - List: true, - WrapList: true, - Fields: fields, - }, - } +func (r tenantAlertEmailGroupQueryCreatedAtDateTime) Field() tenantAlertEmailGroupPrismaFields { + return tenantAlertEmailGroupFieldCreatedAt } // base struct -type securityCheckIdentQueryIDString struct{} +type tenantAlertEmailGroupQueryUpdatedAtDateTime struct{} -// Set the required value of ID -func (r securityCheckIdentQueryIDString) Set(value string) securityCheckIdentSetParam { +// Set the required value of UpdatedAt +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Set(value DateTime) tenantAlertEmailGroupSetParam { - return securityCheckIdentSetParam{ + return tenantAlertEmailGroupSetParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: value, }, } } -// Set the optional value of ID dynamically -func (r securityCheckIdentQueryIDString) SetIfPresent(value *String) securityCheckIdentSetParam { +// Set the optional value of UpdatedAt dynamically +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) tenantAlertEmailGroupSetParam { if value == nil { - return securityCheckIdentSetParam{} + return tenantAlertEmailGroupSetParam{} } return r.Set(*value) } -func (r securityCheckIdentQueryIDString) Equals(value string) securityCheckIdentWithPrismaIDEqualsUniqueParam { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Equals(value DateTime) tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam { - return securityCheckIdentWithPrismaIDEqualsUniqueParam{ + return tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "equals", @@ -172002,35 +174082,35 @@ func (r securityCheckIdentQueryIDString) Equals(value string) securityCheckIdent } } -func (r securityCheckIdentQueryIDString) EqualsIfPresent(value *string) securityCheckIdentWithPrismaIDEqualsUniqueParam { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam { if value == nil { - return securityCheckIdentWithPrismaIDEqualsUniqueParam{} + return tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam{} } return r.Equals(*value) } -func (r securityCheckIdentQueryIDString) Order(direction SortOrder) securityCheckIdentDefaultParam { - return securityCheckIdentDefaultParam{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: direction, }, } } -func (r securityCheckIdentQueryIDString) Cursor(cursor string) securityCheckIdentCursorParam { - return securityCheckIdentCursorParam{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Cursor(cursor DateTime) tenantAlertEmailGroupCursorParam { + return tenantAlertEmailGroupCursorParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Value: cursor, }, } } -func (r securityCheckIdentQueryIDString) In(value []string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) In(value []DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "in", @@ -172041,17 +174121,17 @@ func (r securityCheckIdentQueryIDString) In(value []string) securityCheckIdentPa } } -func (r securityCheckIdentQueryIDString) InIfPresent(value []string) securityCheckIdentParamUnique { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) InIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } return r.In(value) } -func (r securityCheckIdentQueryIDString) NotIn(value []string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) NotIn(value []DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "notIn", @@ -172062,17 +174142,17 @@ func (r securityCheckIdentQueryIDString) NotIn(value []string) securityCheckIden } } -func (r securityCheckIdentQueryIDString) NotInIfPresent(value []string) securityCheckIdentParamUnique { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } return r.NotIn(value) } -func (r securityCheckIdentQueryIDString) Lt(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Lt(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lt", @@ -172083,17 +174163,17 @@ func (r securityCheckIdentQueryIDString) Lt(value string) securityCheckIdentPara } } -func (r securityCheckIdentQueryIDString) LtIfPresent(value *string) securityCheckIdentParamUnique { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } return r.Lt(*value) } -func (r securityCheckIdentQueryIDString) Lte(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Lte(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "lte", @@ -172104,17 +174184,17 @@ func (r securityCheckIdentQueryIDString) Lte(value string) securityCheckIdentPar } } -func (r securityCheckIdentQueryIDString) LteIfPresent(value *string) securityCheckIdentParamUnique { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } return r.Lte(*value) } -func (r securityCheckIdentQueryIDString) Gt(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Gt(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gt", @@ -172125,17 +174205,17 @@ func (r securityCheckIdentQueryIDString) Gt(value string) securityCheckIdentPara } } -func (r securityCheckIdentQueryIDString) GtIfPresent(value *string) securityCheckIdentParamUnique { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } return r.Gt(*value) } -func (r securityCheckIdentQueryIDString) Gte(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Gte(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { Name: "gte", @@ -172146,20 +174226,20 @@ func (r securityCheckIdentQueryIDString) Gte(value string) securityCheckIdentPar } } -func (r securityCheckIdentQueryIDString) GteIfPresent(value *string) securityCheckIdentParamUnique { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } return r.Gte(*value) } -func (r securityCheckIdentQueryIDString) Contains(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Not(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "contains", + Name: "not", Value: value, }, }, @@ -172167,20 +174247,22 @@ func (r securityCheckIdentQueryIDString) Contains(value string) securityCheckIde } } -func (r securityCheckIdentQueryIDString) ContainsIfPresent(value *string) securityCheckIdentParamUnique { +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } - return r.Contains(*value) + return r.Not(*value) } -func (r securityCheckIdentQueryIDString) StartsWith(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +// deprecated: Use Lt instead. + +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Before(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "startsWith", + Name: "lt", Value: value, }, }, @@ -172188,20 +174270,23 @@ func (r securityCheckIdentQueryIDString) StartsWith(value string) securityCheckI } } -func (r securityCheckIdentQueryIDString) StartsWithIfPresent(value *string) securityCheckIdentParamUnique { +// deprecated: Use LtIfPresent instead. +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } - return r.StartsWith(*value) + return r.Before(*value) } -func (r securityCheckIdentQueryIDString) EndsWith(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ - data: builder.Field{ - Name: "id", +// deprecated: Use Gt instead. + +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) After(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "updatedAt", Fields: []builder.Field{ { - Name: "endsWith", + Name: "gt", Value: value, }, }, @@ -172209,20 +174294,23 @@ func (r securityCheckIdentQueryIDString) EndsWith(value string) securityCheckIde } } -func (r securityCheckIdentQueryIDString) EndsWithIfPresent(value *string) securityCheckIdentParamUnique { +// deprecated: Use GtIfPresent instead. +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } - return r.EndsWith(*value) + return r.After(*value) } -func (r securityCheckIdentQueryIDString) Mode(value QueryMode) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +// deprecated: Use Lte instead. + +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) BeforeEquals(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "mode", + Name: "lte", Value: value, }, }, @@ -172230,20 +174318,23 @@ func (r securityCheckIdentQueryIDString) Mode(value QueryMode) securityCheckIden } } -func (r securityCheckIdentQueryIDString) ModeIfPresent(value *QueryMode) securityCheckIdentParamUnique { +// deprecated: Use LteIfPresent instead. +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } - return r.Mode(*value) + return r.BeforeEquals(*value) } -func (r securityCheckIdentQueryIDString) Not(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +// deprecated: Use Gte instead. + +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) AfterEquals(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ data: builder.Field{ - Name: "id", + Name: "updatedAt", Fields: []builder.Field{ { - Name: "not", + Name: "gte", Value: value, }, }, @@ -172251,46 +174342,66 @@ func (r securityCheckIdentQueryIDString) Not(value string) securityCheckIdentPar } } -func (r securityCheckIdentQueryIDString) NotIfPresent(value *string) securityCheckIdentParamUnique { +// deprecated: Use GteIfPresent instead. +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupDefaultParam{} } - return r.Not(*value) + return r.AfterEquals(*value) } -// deprecated: Use StartsWith instead. +func (r tenantAlertEmailGroupQueryUpdatedAtDateTime) Field() tenantAlertEmailGroupPrismaFields { + return tenantAlertEmailGroupFieldUpdatedAt +} -func (r securityCheckIdentQueryIDString) HasPrefix(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ +// base struct +type tenantAlertEmailGroupQueryDeletedAtDateTime struct{} + +// Set the optional value of DeletedAt +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Set(value DateTime) tenantAlertEmailGroupSetParam { + + return tenantAlertEmailGroupSetParam{ data: builder.Field{ - Name: "id", - Fields: []builder.Field{ - { - Name: "starts_with", - Value: value, - }, - }, + Name: "deletedAt", + Value: value, }, } + } -// deprecated: Use StartsWithIfPresent instead. -func (r securityCheckIdentQueryIDString) HasPrefixIfPresent(value *string) securityCheckIdentParamUnique { +// Set the optional value of DeletedAt dynamically +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) SetIfPresent(value *DateTime) tenantAlertEmailGroupSetParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupSetParam{} } - return r.HasPrefix(*value) + + return r.Set(*value) } -// deprecated: Use EndsWith instead. +// Set the optional value of DeletedAt dynamically +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) SetOptional(value *DateTime) tenantAlertEmailGroupSetParam { + if value == nil { -func (r securityCheckIdentQueryIDString) HasSuffix(value string) securityCheckIdentParamUnique { - return securityCheckIdentParamUnique{ + var v *DateTime + return tenantAlertEmailGroupSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Equals(value DateTime) tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam { + + return tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam{ data: builder.Field{ - Name: "id", + Name: "deletedAt", Fields: []builder.Field{ { - Name: "ends_with", + Name: "equals", Value: value, }, }, @@ -172298,54681 +174409,77491 @@ func (r securityCheckIdentQueryIDString) HasSuffix(value string) securityCheckId } } -// deprecated: Use EndsWithIfPresent instead. -func (r securityCheckIdentQueryIDString) HasSuffixIfPresent(value *string) securityCheckIdentParamUnique { +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam { if value == nil { - return securityCheckIdentParamUnique{} + return tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam{} } - return r.HasSuffix(*value) + return r.Equals(*value) } -func (r securityCheckIdentQueryIDString) Field() securityCheckIdentPrismaFields { - return securityCheckIdentFieldID +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) EqualsOptional(value *DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } } -// --- template actions.gotpl --- -var countOutput = []builder.Output{ - {Name: "count"}, +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) IsNull() tenantAlertEmailGroupDefaultParam { + var str *string = nil + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } } -type userActions struct { - // client holds the prisma client - client *PrismaClient +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Value: direction, + }, + } } -var userOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "email"}, - {Name: "emailVerified"}, - {Name: "name"}, +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Cursor(cursor DateTime) tenantAlertEmailGroupCursorParam { + return tenantAlertEmailGroupCursorParam{ + data: builder.Field{ + Name: "deletedAt", + Value: cursor, + }, + } } -type UserRelationWith interface { - getQuery() builder.Query - with() - userRelation() +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) In(value []DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } } -type UserWhereParam interface { - field() builder.Field - getQuery() builder.Query - userModel() +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) InIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.In(value) } -type userDefaultParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) NotIn(value []DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } } -func (p userDefaultParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.NotIn(value) } -func (p userDefaultParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Lt(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } } -func (p userDefaultParam) userModel() {} - -type UserOrderByParam interface { - field() builder.Field - getQuery() builder.Query - userModel() +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) LtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Lt(*value) } -type userOrderByParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Lte(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } } -func (p userOrderByParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) LteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Lte(*value) } -func (p userOrderByParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Gt(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } } -func (p userOrderByParam) userModel() {} - -type UserCursorParam interface { - field() builder.Field - getQuery() builder.Query - userModel() - isCursor() +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) GtIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Gt(*value) } -type userCursorParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Gte(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } } -func (p userCursorParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) GteIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Gte(*value) } -func (p userCursorParam) isCursor() {} +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Not(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} -func (p userCursorParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) NotIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Not(*value) } -func (p userCursorParam) userModel() {} +// deprecated: Use Lt instead. -type UserParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - userModel() +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Before(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } } -type userParamUnique struct { - data builder.Field - query builder.Query +// deprecated: Use LtIfPresent instead. +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Before(*value) } -func (p userParamUnique) userModel() {} - -func (userParamUnique) unique() {} +// deprecated: Use Gt instead. -func (p userParamUnique) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) After(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } } -func (p userParamUnique) getQuery() builder.Query { - return p.query +// deprecated: Use GtIfPresent instead. +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.After(*value) } -type UserEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - userModel() -} +// deprecated: Use Lte instead. -type userEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) BeforeEquals(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } } -func (p userEqualsParam) userModel() {} +// deprecated: Use LteIfPresent instead. +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.BeforeEquals(*value) +} -func (userEqualsParam) equals() {} +// deprecated: Use Gte instead. -func (p userEqualsParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) AfterEquals(value DateTime) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } } -func (p userEqualsParam) getQuery() builder.Query { - return p.query +// deprecated: Use GteIfPresent instead. +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.AfterEquals(*value) } -type UserEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - userModel() +func (r tenantAlertEmailGroupQueryDeletedAtDateTime) Field() tenantAlertEmailGroupPrismaFields { + return tenantAlertEmailGroupFieldDeletedAt } -type userEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +// base struct +type tenantAlertEmailGroupQueryTenantTenant struct{} -func (p userEqualsUniqueParam) userModel() {} +type tenantAlertEmailGroupQueryTenantRelations struct{} -func (userEqualsUniqueParam) unique() {} -func (userEqualsUniqueParam) equals() {} +// TenantAlertEmailGroup -> Tenant +// +// @relation +// @required +func (tenantAlertEmailGroupQueryTenantRelations) Where( + params ...TenantWhereParam, +) tenantAlertEmailGroupDefaultParam { + var fields []builder.Field -func (p userEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range params { + fields = append(fields, q.field()) + } -func (p userEqualsUniqueParam) getQuery() builder.Query { - return p.query + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } } -type UserSetParam interface { - field() builder.Field - settable() - userModel() -} +func (tenantAlertEmailGroupQueryTenantRelations) Fetch() tenantAlertEmailGroupToTenantFindUnique { + var v tenantAlertEmailGroupToTenantFindUnique -type userSetParam struct { - data builder.Field + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v } -func (userSetParam) settable() {} +func (r tenantAlertEmailGroupQueryTenantRelations) Link( + params TenantWhereParam, +) tenantAlertEmailGroupWithPrismaTenantSetParam { + var fields []builder.Field -func (p userSetParam) field() builder.Field { - return p.data -} + f := params.field() + if f.Fields == nil && f.Value == nil { + return tenantAlertEmailGroupWithPrismaTenantSetParam{} + } -func (p userSetParam) userModel() {} + fields = append(fields, f) -type UserWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - userModel() - idField() + return tenantAlertEmailGroupWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } } -type UserWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - userModel() - idField() -} +func (r tenantAlertEmailGroupQueryTenantRelations) Unlink() tenantAlertEmailGroupWithPrismaTenantSetParam { + var v tenantAlertEmailGroupWithPrismaTenantSetParam -type userWithPrismaIDSetParam struct { - data builder.Field - query builder.Query -} + v = tenantAlertEmailGroupWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } -func (p userWithPrismaIDSetParam) field() builder.Field { - return p.data + return v } -func (p userWithPrismaIDSetParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryTenantTenant) Field() tenantAlertEmailGroupPrismaFields { + return tenantAlertEmailGroupFieldTenant } -func (p userWithPrismaIDSetParam) userModel() {} +// base struct +type tenantAlertEmailGroupQueryTenantIDString struct{} -func (p userWithPrismaIDSetParam) idField() {} +// Set the required value of TenantID +func (r tenantAlertEmailGroupQueryTenantIDString) Set(value string) tenantAlertEmailGroupSetParam { -type UserWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - userModel() - idField() -} + return tenantAlertEmailGroupSetParam{ + data: builder.Field{ + Name: "tenantId", + Value: value, + }, + } -type userWithPrismaIDEqualsParam struct { - data builder.Field - query builder.Query } -func (p userWithPrismaIDEqualsParam) field() builder.Field { - return p.data -} +// Set the optional value of TenantID dynamically +func (r tenantAlertEmailGroupQueryTenantIDString) SetIfPresent(value *String) tenantAlertEmailGroupSetParam { + if value == nil { + return tenantAlertEmailGroupSetParam{} + } -func (p userWithPrismaIDEqualsParam) getQuery() builder.Query { - return p.query + return r.Set(*value) } -func (p userWithPrismaIDEqualsParam) userModel() {} - -func (p userWithPrismaIDEqualsParam) idField() {} - -func (userWithPrismaIDSetParam) settable() {} -func (userWithPrismaIDEqualsParam) equals() {} +func (r tenantAlertEmailGroupQueryTenantIDString) Equals(value string) tenantAlertEmailGroupWithPrismaTenantIDEqualsParam { -type userWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query + return tenantAlertEmailGroupWithPrismaTenantIDEqualsParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } } -func (p userWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryTenantIDString) EqualsIfPresent(value *string) tenantAlertEmailGroupWithPrismaTenantIDEqualsParam { + if value == nil { + return tenantAlertEmailGroupWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) } -func (p userWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryTenantIDString) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Value: direction, + }, + } } -func (p userWithPrismaIDEqualsUniqueParam) userModel() {} -func (p userWithPrismaIDEqualsUniqueParam) idField() {} - -func (userWithPrismaIDEqualsUniqueParam) unique() {} -func (userWithPrismaIDEqualsUniqueParam) equals() {} - -type UserWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - userModel() - createdAtField() +func (r tenantAlertEmailGroupQueryTenantIDString) Cursor(cursor string) tenantAlertEmailGroupCursorParam { + return tenantAlertEmailGroupCursorParam{ + data: builder.Field{ + Name: "tenantId", + Value: cursor, + }, + } } -type UserWithPrismaCreatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - userModel() - createdAtField() +func (r tenantAlertEmailGroupQueryTenantIDString) In(value []string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } } -type userWithPrismaCreatedAtSetParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryTenantIDString) InIfPresent(value []string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.In(value) } -func (p userWithPrismaCreatedAtSetParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryTenantIDString) NotIn(value []string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } } -func (p userWithPrismaCreatedAtSetParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryTenantIDString) NotInIfPresent(value []string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.NotIn(value) } -func (p userWithPrismaCreatedAtSetParam) userModel() {} - -func (p userWithPrismaCreatedAtSetParam) createdAtField() {} - -type UserWithPrismaCreatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - userModel() - createdAtField() +func (r tenantAlertEmailGroupQueryTenantIDString) Lt(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } } -type userWithPrismaCreatedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryTenantIDString) LtIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Lt(*value) } -func (p userWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryTenantIDString) Lte(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } } -func (p userWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryTenantIDString) LteIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Lte(*value) } -func (p userWithPrismaCreatedAtEqualsParam) userModel() {} - -func (p userWithPrismaCreatedAtEqualsParam) createdAtField() {} - -func (userWithPrismaCreatedAtSetParam) settable() {} -func (userWithPrismaCreatedAtEqualsParam) equals() {} - -type userWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryTenantIDString) Gt(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } } -func (p userWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryTenantIDString) GtIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Gt(*value) } -func (p userWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryTenantIDString) Gte(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } } -func (p userWithPrismaCreatedAtEqualsUniqueParam) userModel() {} -func (p userWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} - -func (userWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (userWithPrismaCreatedAtEqualsUniqueParam) equals() {} - -type UserWithPrismaUpdatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - userModel() - updatedAtField() +func (r tenantAlertEmailGroupQueryTenantIDString) GteIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Gte(*value) } -type UserWithPrismaUpdatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - userModel() - updatedAtField() +func (r tenantAlertEmailGroupQueryTenantIDString) Contains(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } } -type userWithPrismaUpdatedAtSetParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryTenantIDString) ContainsIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Contains(*value) } -func (p userWithPrismaUpdatedAtSetParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryTenantIDString) StartsWith(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } } -func (p userWithPrismaUpdatedAtSetParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryTenantIDString) StartsWithIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.StartsWith(*value) } -func (p userWithPrismaUpdatedAtSetParam) userModel() {} +func (r tenantAlertEmailGroupQueryTenantIDString) EndsWith(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} -func (p userWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (r tenantAlertEmailGroupQueryTenantIDString) EndsWithIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.EndsWith(*value) +} -type UserWithPrismaUpdatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - userModel() - updatedAtField() +func (r tenantAlertEmailGroupQueryTenantIDString) Mode(value QueryMode) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } } -type userWithPrismaUpdatedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupQueryTenantIDString) ModeIfPresent(value *QueryMode) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Mode(*value) } -func (p userWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data +func (r tenantAlertEmailGroupQueryTenantIDString) Not(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } } -func (p userWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryTenantIDString) NotIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Not(*value) } -func (p userWithPrismaUpdatedAtEqualsParam) userModel() {} +// deprecated: Use StartsWith instead. -func (p userWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (r tenantAlertEmailGroupQueryTenantIDString) HasPrefix(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} -func (userWithPrismaUpdatedAtSetParam) settable() {} -func (userWithPrismaUpdatedAtEqualsParam) equals() {} +// deprecated: Use StartsWithIfPresent instead. +func (r tenantAlertEmailGroupQueryTenantIDString) HasPrefixIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.HasPrefix(*value) +} -type userWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query +// deprecated: Use EndsWith instead. + +func (r tenantAlertEmailGroupQueryTenantIDString) HasSuffix(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } } -func (p userWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { - return p.data +// deprecated: Use EndsWithIfPresent instead. +func (r tenantAlertEmailGroupQueryTenantIDString) HasSuffixIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.HasSuffix(*value) } -func (p userWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryTenantIDString) Field() tenantAlertEmailGroupPrismaFields { + return tenantAlertEmailGroupFieldTenantID } -func (p userWithPrismaUpdatedAtEqualsUniqueParam) userModel() {} -func (p userWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +// base struct +type tenantAlertEmailGroupQueryEmailsString struct{} -func (userWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (userWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +// Set the required value of Emails +func (r tenantAlertEmailGroupQueryEmailsString) Set(value string) tenantAlertEmailGroupWithPrismaEmailsSetParam { -type UserWithPrismaDeletedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - userModel() - deletedAtField() -} + return tenantAlertEmailGroupWithPrismaEmailsSetParam{ + data: builder.Field{ + Name: "emails", + Value: value, + }, + } -type UserWithPrismaDeletedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - userModel() - deletedAtField() } -type userWithPrismaDeletedAtSetParam struct { - data builder.Field - query builder.Query -} +// Set the optional value of Emails dynamically +func (r tenantAlertEmailGroupQueryEmailsString) SetIfPresent(value *String) tenantAlertEmailGroupWithPrismaEmailsSetParam { + if value == nil { + return tenantAlertEmailGroupWithPrismaEmailsSetParam{} + } -func (p userWithPrismaDeletedAtSetParam) field() builder.Field { - return p.data + return r.Set(*value) } -func (p userWithPrismaDeletedAtSetParam) getQuery() builder.Query { - return p.query +func (r tenantAlertEmailGroupQueryEmailsString) Equals(value string) tenantAlertEmailGroupWithPrismaEmailsEqualsParam { + + return tenantAlertEmailGroupWithPrismaEmailsEqualsParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) EqualsIfPresent(value *string) tenantAlertEmailGroupWithPrismaEmailsEqualsParam { + if value == nil { + return tenantAlertEmailGroupWithPrismaEmailsEqualsParam{} + } + return r.Equals(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Order(direction SortOrder) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Value: direction, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) Cursor(cursor string) tenantAlertEmailGroupCursorParam { + return tenantAlertEmailGroupCursorParam{ + data: builder.Field{ + Name: "emails", + Value: cursor, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) In(value []string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) InIfPresent(value []string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.In(value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) NotIn(value []string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) NotInIfPresent(value []string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.NotIn(value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Lt(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) LtIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Lt(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Lte(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) LteIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Lte(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Gt(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) GtIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Gt(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Gte(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) GteIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Gte(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Contains(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) ContainsIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Contains(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) StartsWith(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) StartsWithIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) EndsWith(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) EndsWithIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Mode(value QueryMode) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) ModeIfPresent(value *QueryMode) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Mode(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Not(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r tenantAlertEmailGroupQueryEmailsString) NotIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r tenantAlertEmailGroupQueryEmailsString) HasPrefix(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r tenantAlertEmailGroupQueryEmailsString) HasPrefixIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r tenantAlertEmailGroupQueryEmailsString) HasSuffix(value string) tenantAlertEmailGroupDefaultParam { + return tenantAlertEmailGroupDefaultParam{ + data: builder.Field{ + Name: "emails", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r tenantAlertEmailGroupQueryEmailsString) HasSuffixIfPresent(value *string) tenantAlertEmailGroupDefaultParam { + if value == nil { + return tenantAlertEmailGroupDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r tenantAlertEmailGroupQueryEmailsString) Field() tenantAlertEmailGroupPrismaFields { + return tenantAlertEmailGroupFieldEmails +} + +// SlackAppWebhook acts as a namespaces to access query methods for the SlackAppWebhook model +var SlackAppWebhook = slackAppWebhookQuery{} + +// slackAppWebhookQuery exposes query functions for the slackAppWebhook model +type slackAppWebhookQuery struct { + + // ID + // + // @required + ID slackAppWebhookQueryIDString + + // CreatedAt + // + // @required + CreatedAt slackAppWebhookQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt slackAppWebhookQueryUpdatedAtDateTime + + // DeletedAt + // + // @optional + DeletedAt slackAppWebhookQueryDeletedAtDateTime + + Tenant slackAppWebhookQueryTenantRelations + + // TenantID + // + // @required + TenantID slackAppWebhookQueryTenantIDString + + // TeamID + // + // @required + TeamID slackAppWebhookQueryTeamIDString + + // TeamName + // + // @required + TeamName slackAppWebhookQueryTeamNameString + + // ChannelID + // + // @required + ChannelID slackAppWebhookQueryChannelIDString + + // ChannelName + // + // @required + ChannelName slackAppWebhookQueryChannelNameString + + // WebhookURL + // + // @required + WebhookURL slackAppWebhookQueryWebhookURLBytes +} + +func (slackAppWebhookQuery) Not(params ...SlackAppWebhookWhereParam) slackAppWebhookDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (slackAppWebhookQuery) Or(params ...SlackAppWebhookWhereParam) slackAppWebhookDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (slackAppWebhookQuery) And(params ...SlackAppWebhookWhereParam) slackAppWebhookDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (slackAppWebhookQuery) TenantIDTeamIDChannelID( + _tenantID SlackAppWebhookWithPrismaTenantIDWhereParam, + + _teamID SlackAppWebhookWithPrismaTeamIDWhereParam, + + _channelID SlackAppWebhookWithPrismaChannelIDWhereParam, +) SlackAppWebhookEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _tenantID.field()) + fields = append(fields, _teamID.field()) + fields = append(fields, _channelID.field()) + + return slackAppWebhookEqualsUniqueParam{ + data: builder.Field{ + Name: "tenantId_teamId_channelId", + Fields: builder.TransformEquals(fields), + }, + } +} + +// base struct +type slackAppWebhookQueryIDString struct{} + +// Set the required value of ID +func (r slackAppWebhookQueryIDString) Set(value string) slackAppWebhookSetParam { + + return slackAppWebhookSetParam{ + data: builder.Field{ + Name: "id", + Value: value, + }, + } + +} + +// Set the optional value of ID dynamically +func (r slackAppWebhookQueryIDString) SetIfPresent(value *String) slackAppWebhookSetParam { + if value == nil { + return slackAppWebhookSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryIDString) Equals(value string) slackAppWebhookWithPrismaIDEqualsUniqueParam { + + return slackAppWebhookWithPrismaIDEqualsUniqueParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaIDEqualsUniqueParam { + if value == nil { + return slackAppWebhookWithPrismaIDEqualsUniqueParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryIDString) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "id", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryIDString) Cursor(cursor string) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "id", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryIDString) In(value []string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) InIfPresent(value []string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryIDString) NotIn(value []string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) NotInIfPresent(value []string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryIDString) Lt(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) LtIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryIDString) Lte(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) LteIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryIDString) Gt(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) GtIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryIDString) Gte(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) GteIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryIDString) Contains(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) ContainsIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.Contains(*value) +} + +func (r slackAppWebhookQueryIDString) StartsWith(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) StartsWithIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.StartsWith(*value) +} + +func (r slackAppWebhookQueryIDString) EndsWith(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) EndsWithIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.EndsWith(*value) +} + +func (r slackAppWebhookQueryIDString) Mode(value QueryMode) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) ModeIfPresent(value *QueryMode) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.Mode(*value) +} + +func (r slackAppWebhookQueryIDString) Not(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryIDString) NotIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r slackAppWebhookQueryIDString) HasPrefix(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r slackAppWebhookQueryIDString) HasPrefixIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r slackAppWebhookQueryIDString) HasSuffix(value string) slackAppWebhookParamUnique { + return slackAppWebhookParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r slackAppWebhookQueryIDString) HasSuffixIfPresent(value *string) slackAppWebhookParamUnique { + if value == nil { + return slackAppWebhookParamUnique{} + } + return r.HasSuffix(*value) +} + +func (r slackAppWebhookQueryIDString) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldID +} + +// base struct +type slackAppWebhookQueryCreatedAtDateTime struct{} + +// Set the required value of CreatedAt +func (r slackAppWebhookQueryCreatedAtDateTime) Set(value DateTime) slackAppWebhookSetParam { + + return slackAppWebhookSetParam{ + data: builder.Field{ + Name: "createdAt", + Value: value, + }, + } + +} + +// Set the optional value of CreatedAt dynamically +func (r slackAppWebhookQueryCreatedAtDateTime) SetIfPresent(value *DateTime) slackAppWebhookSetParam { + if value == nil { + return slackAppWebhookSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Equals(value DateTime) slackAppWebhookWithPrismaCreatedAtEqualsParam { + + return slackAppWebhookWithPrismaCreatedAtEqualsParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) slackAppWebhookWithPrismaCreatedAtEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaCreatedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Cursor(cursor DateTime) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "createdAt", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) In(value []DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) InIfPresent(value []DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) NotIn(value []DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Lt(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) LtIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Lte(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) LteIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Gt(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) GtIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Gte(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) GteIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Not(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryCreatedAtDateTime) NotIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r slackAppWebhookQueryCreatedAtDateTime) Before(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r slackAppWebhookQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r slackAppWebhookQueryCreatedAtDateTime) After(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r slackAppWebhookQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.After(*value) +} + +// deprecated: Use Lte instead. + +func (r slackAppWebhookQueryCreatedAtDateTime) BeforeEquals(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r slackAppWebhookQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r slackAppWebhookQueryCreatedAtDateTime) AfterEquals(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r slackAppWebhookQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r slackAppWebhookQueryCreatedAtDateTime) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldCreatedAt +} + +// base struct +type slackAppWebhookQueryUpdatedAtDateTime struct{} + +// Set the required value of UpdatedAt +func (r slackAppWebhookQueryUpdatedAtDateTime) Set(value DateTime) slackAppWebhookSetParam { + + return slackAppWebhookSetParam{ + data: builder.Field{ + Name: "updatedAt", + Value: value, + }, + } + +} + +// Set the optional value of UpdatedAt dynamically +func (r slackAppWebhookQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) slackAppWebhookSetParam { + if value == nil { + return slackAppWebhookSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Equals(value DateTime) slackAppWebhookWithPrismaUpdatedAtEqualsParam { + + return slackAppWebhookWithPrismaUpdatedAtEqualsParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) slackAppWebhookWithPrismaUpdatedAtEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaUpdatedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Cursor(cursor DateTime) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "updatedAt", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) In(value []DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) InIfPresent(value []DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) NotIn(value []DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Lt(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Lte(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Gt(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Gte(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Not(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r slackAppWebhookQueryUpdatedAtDateTime) Before(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r slackAppWebhookQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r slackAppWebhookQueryUpdatedAtDateTime) After(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r slackAppWebhookQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.After(*value) +} + +// deprecated: Use Lte instead. + +func (r slackAppWebhookQueryUpdatedAtDateTime) BeforeEquals(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r slackAppWebhookQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r slackAppWebhookQueryUpdatedAtDateTime) AfterEquals(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r slackAppWebhookQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r slackAppWebhookQueryUpdatedAtDateTime) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldUpdatedAt +} + +// base struct +type slackAppWebhookQueryDeletedAtDateTime struct{} + +// Set the optional value of DeletedAt +func (r slackAppWebhookQueryDeletedAtDateTime) Set(value DateTime) slackAppWebhookSetParam { + + return slackAppWebhookSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: value, + }, + } + +} + +// Set the optional value of DeletedAt dynamically +func (r slackAppWebhookQueryDeletedAtDateTime) SetIfPresent(value *DateTime) slackAppWebhookSetParam { + if value == nil { + return slackAppWebhookSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of DeletedAt dynamically +func (r slackAppWebhookQueryDeletedAtDateTime) SetOptional(value *DateTime) slackAppWebhookSetParam { + if value == nil { + + var v *DateTime + return slackAppWebhookSetParam{ + data: builder.Field{ + Name: "deletedAt", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Equals(value DateTime) slackAppWebhookWithPrismaDeletedAtEqualsParam { + + return slackAppWebhookWithPrismaDeletedAtEqualsParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) EqualsIfPresent(value *DateTime) slackAppWebhookWithPrismaDeletedAtEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaDeletedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) EqualsOptional(value *DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) IsNull() slackAppWebhookDefaultParam { + var str *string = nil + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Cursor(cursor DateTime) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "deletedAt", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) In(value []DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) InIfPresent(value []DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) NotIn(value []DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) NotInIfPresent(value []DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Lt(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) LtIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Lte(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) LteIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Gt(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) GtIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Gte(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) GteIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Not(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryDeletedAtDateTime) NotIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r slackAppWebhookQueryDeletedAtDateTime) Before(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r slackAppWebhookQueryDeletedAtDateTime) BeforeIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r slackAppWebhookQueryDeletedAtDateTime) After(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r slackAppWebhookQueryDeletedAtDateTime) AfterIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.After(*value) +} + +// deprecated: Use Lte instead. + +func (r slackAppWebhookQueryDeletedAtDateTime) BeforeEquals(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r slackAppWebhookQueryDeletedAtDateTime) BeforeEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r slackAppWebhookQueryDeletedAtDateTime) AfterEquals(value DateTime) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "deletedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r slackAppWebhookQueryDeletedAtDateTime) AfterEqualsIfPresent(value *DateTime) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r slackAppWebhookQueryDeletedAtDateTime) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldDeletedAt +} + +// base struct +type slackAppWebhookQueryTenantTenant struct{} + +type slackAppWebhookQueryTenantRelations struct{} + +// SlackAppWebhook -> Tenant +// +// @relation +// @required +func (slackAppWebhookQueryTenantRelations) Where( + params ...TenantWhereParam, +) slackAppWebhookDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (slackAppWebhookQueryTenantRelations) Fetch() slackAppWebhookToTenantFindUnique { + var v slackAppWebhookToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v +} + +func (r slackAppWebhookQueryTenantRelations) Link( + params TenantWhereParam, +) slackAppWebhookWithPrismaTenantSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return slackAppWebhookWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return slackAppWebhookWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantRelations) Unlink() slackAppWebhookWithPrismaTenantSetParam { + var v slackAppWebhookWithPrismaTenantSetParam + + v = slackAppWebhookWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r slackAppWebhookQueryTenantTenant) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldTenant +} + +// base struct +type slackAppWebhookQueryTenantIDString struct{} + +// Set the required value of TenantID +func (r slackAppWebhookQueryTenantIDString) Set(value string) slackAppWebhookSetParam { + + return slackAppWebhookSetParam{ + data: builder.Field{ + Name: "tenantId", + Value: value, + }, + } + +} + +// Set the optional value of TenantID dynamically +func (r slackAppWebhookQueryTenantIDString) SetIfPresent(value *String) slackAppWebhookSetParam { + if value == nil { + return slackAppWebhookSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Equals(value string) slackAppWebhookWithPrismaTenantIDEqualsParam { + + return slackAppWebhookWithPrismaTenantIDEqualsParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaTenantIDEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) Cursor(cursor string) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "tenantId", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) In(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) InIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryTenantIDString) NotIn(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryTenantIDString) Lt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) LtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Lte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) LteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Gt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) GtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Gte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) GteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Contains(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Contains(*value) +} + +func (r slackAppWebhookQueryTenantIDString) StartsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r slackAppWebhookQueryTenantIDString) EndsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Mode(value QueryMode) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Mode(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Not(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTenantIDString) NotIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r slackAppWebhookQueryTenantIDString) HasPrefix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r slackAppWebhookQueryTenantIDString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r slackAppWebhookQueryTenantIDString) HasSuffix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r slackAppWebhookQueryTenantIDString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r slackAppWebhookQueryTenantIDString) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldTenantID +} + +// base struct +type slackAppWebhookQueryTeamIDString struct{} + +// Set the required value of TeamID +func (r slackAppWebhookQueryTeamIDString) Set(value string) slackAppWebhookWithPrismaTeamIDSetParam { + + return slackAppWebhookWithPrismaTeamIDSetParam{ + data: builder.Field{ + Name: "teamId", + Value: value, + }, + } + +} + +// Set the optional value of TeamID dynamically +func (r slackAppWebhookQueryTeamIDString) SetIfPresent(value *String) slackAppWebhookWithPrismaTeamIDSetParam { + if value == nil { + return slackAppWebhookWithPrismaTeamIDSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Equals(value string) slackAppWebhookWithPrismaTeamIDEqualsParam { + + return slackAppWebhookWithPrismaTeamIDEqualsParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaTeamIDEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaTeamIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) Cursor(cursor string) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "teamId", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) In(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) InIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryTeamIDString) NotIn(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryTeamIDString) Lt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) LtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Lte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) LteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Gt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) GtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Gte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) GteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Contains(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Contains(*value) +} + +func (r slackAppWebhookQueryTeamIDString) StartsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r slackAppWebhookQueryTeamIDString) EndsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Mode(value QueryMode) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Mode(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Not(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamIDString) NotIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r slackAppWebhookQueryTeamIDString) HasPrefix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r slackAppWebhookQueryTeamIDString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r slackAppWebhookQueryTeamIDString) HasSuffix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r slackAppWebhookQueryTeamIDString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r slackAppWebhookQueryTeamIDString) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldTeamID +} + +// base struct +type slackAppWebhookQueryTeamNameString struct{} + +// Set the required value of TeamName +func (r slackAppWebhookQueryTeamNameString) Set(value string) slackAppWebhookWithPrismaTeamNameSetParam { + + return slackAppWebhookWithPrismaTeamNameSetParam{ + data: builder.Field{ + Name: "teamName", + Value: value, + }, + } + +} + +// Set the optional value of TeamName dynamically +func (r slackAppWebhookQueryTeamNameString) SetIfPresent(value *String) slackAppWebhookWithPrismaTeamNameSetParam { + if value == nil { + return slackAppWebhookWithPrismaTeamNameSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Equals(value string) slackAppWebhookWithPrismaTeamNameEqualsParam { + + return slackAppWebhookWithPrismaTeamNameEqualsParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaTeamNameEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaTeamNameEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) Cursor(cursor string) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "teamName", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) In(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) InIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryTeamNameString) NotIn(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryTeamNameString) Lt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) LtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Lte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) LteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Gt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) GtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Gte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) GteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Contains(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Contains(*value) +} + +func (r slackAppWebhookQueryTeamNameString) StartsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r slackAppWebhookQueryTeamNameString) EndsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Mode(value QueryMode) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Mode(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Not(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryTeamNameString) NotIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r slackAppWebhookQueryTeamNameString) HasPrefix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r slackAppWebhookQueryTeamNameString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r slackAppWebhookQueryTeamNameString) HasSuffix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "teamName", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r slackAppWebhookQueryTeamNameString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r slackAppWebhookQueryTeamNameString) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldTeamName +} + +// base struct +type slackAppWebhookQueryChannelIDString struct{} + +// Set the required value of ChannelID +func (r slackAppWebhookQueryChannelIDString) Set(value string) slackAppWebhookWithPrismaChannelIDSetParam { + + return slackAppWebhookWithPrismaChannelIDSetParam{ + data: builder.Field{ + Name: "channelId", + Value: value, + }, + } + +} + +// Set the optional value of ChannelID dynamically +func (r slackAppWebhookQueryChannelIDString) SetIfPresent(value *String) slackAppWebhookWithPrismaChannelIDSetParam { + if value == nil { + return slackAppWebhookWithPrismaChannelIDSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Equals(value string) slackAppWebhookWithPrismaChannelIDEqualsParam { + + return slackAppWebhookWithPrismaChannelIDEqualsParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaChannelIDEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaChannelIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) Cursor(cursor string) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "channelId", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) In(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) InIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryChannelIDString) NotIn(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryChannelIDString) Lt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) LtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Lte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) LteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Gt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) GtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Gte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) GteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Contains(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Contains(*value) +} + +func (r slackAppWebhookQueryChannelIDString) StartsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r slackAppWebhookQueryChannelIDString) EndsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Mode(value QueryMode) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Mode(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Not(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelIDString) NotIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r slackAppWebhookQueryChannelIDString) HasPrefix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r slackAppWebhookQueryChannelIDString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r slackAppWebhookQueryChannelIDString) HasSuffix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r slackAppWebhookQueryChannelIDString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r slackAppWebhookQueryChannelIDString) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldChannelID +} + +// base struct +type slackAppWebhookQueryChannelNameString struct{} + +// Set the required value of ChannelName +func (r slackAppWebhookQueryChannelNameString) Set(value string) slackAppWebhookWithPrismaChannelNameSetParam { + + return slackAppWebhookWithPrismaChannelNameSetParam{ + data: builder.Field{ + Name: "channelName", + Value: value, + }, + } + +} + +// Set the optional value of ChannelName dynamically +func (r slackAppWebhookQueryChannelNameString) SetIfPresent(value *String) slackAppWebhookWithPrismaChannelNameSetParam { + if value == nil { + return slackAppWebhookWithPrismaChannelNameSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Equals(value string) slackAppWebhookWithPrismaChannelNameEqualsParam { + + return slackAppWebhookWithPrismaChannelNameEqualsParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) EqualsIfPresent(value *string) slackAppWebhookWithPrismaChannelNameEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaChannelNameEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) Cursor(cursor string) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "channelName", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) In(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) InIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryChannelNameString) NotIn(value []string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) NotInIfPresent(value []string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryChannelNameString) Lt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) LtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lt(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Lte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) LteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Lte(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Gt(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) GtIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gt(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Gte(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) GteIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Gte(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Contains(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) ContainsIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Contains(*value) +} + +func (r slackAppWebhookQueryChannelNameString) StartsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) StartsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r slackAppWebhookQueryChannelNameString) EndsWith(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) EndsWithIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Mode(value QueryMode) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) ModeIfPresent(value *QueryMode) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Mode(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Not(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryChannelNameString) NotIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r slackAppWebhookQueryChannelNameString) HasPrefix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r slackAppWebhookQueryChannelNameString) HasPrefixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r slackAppWebhookQueryChannelNameString) HasSuffix(value string) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "channelName", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r slackAppWebhookQueryChannelNameString) HasSuffixIfPresent(value *string) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r slackAppWebhookQueryChannelNameString) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldChannelName +} + +// base struct +type slackAppWebhookQueryWebhookURLBytes struct{} + +// Set the required value of WebhookURL +func (r slackAppWebhookQueryWebhookURLBytes) Set(value Bytes) slackAppWebhookWithPrismaWebhookURLSetParam { + + return slackAppWebhookWithPrismaWebhookURLSetParam{ + data: builder.Field{ + Name: "webhookURL", + Value: value, + }, + } + +} + +// Set the optional value of WebhookURL dynamically +func (r slackAppWebhookQueryWebhookURLBytes) SetIfPresent(value *Bytes) slackAppWebhookWithPrismaWebhookURLSetParam { + if value == nil { + return slackAppWebhookWithPrismaWebhookURLSetParam{} + } + + return r.Set(*value) +} + +func (r slackAppWebhookQueryWebhookURLBytes) Equals(value Bytes) slackAppWebhookWithPrismaWebhookURLEqualsParam { + + return slackAppWebhookWithPrismaWebhookURLEqualsParam{ + data: builder.Field{ + Name: "webhookURL", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryWebhookURLBytes) EqualsIfPresent(value *Bytes) slackAppWebhookWithPrismaWebhookURLEqualsParam { + if value == nil { + return slackAppWebhookWithPrismaWebhookURLEqualsParam{} + } + return r.Equals(*value) +} + +func (r slackAppWebhookQueryWebhookURLBytes) Order(direction SortOrder) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "webhookURL", + Value: direction, + }, + } +} + +func (r slackAppWebhookQueryWebhookURLBytes) Cursor(cursor Bytes) slackAppWebhookCursorParam { + return slackAppWebhookCursorParam{ + data: builder.Field{ + Name: "webhookURL", + Value: cursor, + }, + } +} + +func (r slackAppWebhookQueryWebhookURLBytes) In(value []Bytes) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "webhookURL", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryWebhookURLBytes) InIfPresent(value []Bytes) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.In(value) +} + +func (r slackAppWebhookQueryWebhookURLBytes) NotIn(value []Bytes) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "webhookURL", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryWebhookURLBytes) NotInIfPresent(value []Bytes) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.NotIn(value) +} + +func (r slackAppWebhookQueryWebhookURLBytes) Not(value Bytes) slackAppWebhookDefaultParam { + return slackAppWebhookDefaultParam{ + data: builder.Field{ + Name: "webhookURL", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r slackAppWebhookQueryWebhookURLBytes) NotIfPresent(value *Bytes) slackAppWebhookDefaultParam { + if value == nil { + return slackAppWebhookDefaultParam{} + } + return r.Not(*value) +} + +func (r slackAppWebhookQueryWebhookURLBytes) Field() slackAppWebhookPrismaFields { + return slackAppWebhookFieldWebhookURL +} + +// LogLine acts as a namespaces to access query methods for the LogLine model +var LogLine = logLineQuery{} + +// logLineQuery exposes query functions for the logLine model +type logLineQuery struct { + + // ID + // + // @required + ID logLineQueryIDBigInt + + // CreatedAt + // + // @required + CreatedAt logLineQueryCreatedAtDateTime + + Tenant logLineQueryTenantRelations + + // TenantID + // + // @required + TenantID logLineQueryTenantIDString + + StepRun logLineQueryStepRunRelations + + // StepRunID + // + // @optional + StepRunID logLineQueryStepRunIDString + + // Message + // + // @required + Message logLineQueryMessageString + + // Level + // + // @required + Level logLineQueryLevelLogLineLevel + + // Metadata + // + // @optional + Metadata logLineQueryMetadataJson +} + +func (logLineQuery) Not(params ...LogLineWhereParam) logLineDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return logLineDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (logLineQuery) Or(params ...LogLineWhereParam) logLineDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return logLineDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (logLineQuery) And(params ...LogLineWhereParam) logLineDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return logLineDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +// base struct +type logLineQueryIDBigInt struct{} + +// Set the required value of ID +func (r logLineQueryIDBigInt) Set(value BigInt) logLineSetParam { + + return logLineSetParam{ + data: builder.Field{ + Name: "id", + Value: value, + }, + } + +} + +// Set the optional value of ID dynamically +func (r logLineQueryIDBigInt) SetIfPresent(value *BigInt) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + + return r.Set(*value) +} + +// Increment the required value of ID +func (r logLineQueryIDBigInt) Increment(value BigInt) logLineSetParam { + return logLineSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) IncrementIfPresent(value *BigInt) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + return r.Increment(*value) +} + +// Decrement the required value of ID +func (r logLineQueryIDBigInt) Decrement(value BigInt) logLineSetParam { + return logLineSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) DecrementIfPresent(value *BigInt) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + return r.Decrement(*value) +} + +// Multiply the required value of ID +func (r logLineQueryIDBigInt) Multiply(value BigInt) logLineSetParam { + return logLineSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) MultiplyIfPresent(value *BigInt) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + return r.Multiply(*value) +} + +// Divide the required value of ID +func (r logLineQueryIDBigInt) Divide(value BigInt) logLineSetParam { + return logLineSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) DivideIfPresent(value *BigInt) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + return r.Divide(*value) +} + +func (r logLineQueryIDBigInt) Equals(value BigInt) logLineWithPrismaIDEqualsUniqueParam { + + return logLineWithPrismaIDEqualsUniqueParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) EqualsIfPresent(value *BigInt) logLineWithPrismaIDEqualsUniqueParam { + if value == nil { + return logLineWithPrismaIDEqualsUniqueParam{} + } + return r.Equals(*value) +} + +func (r logLineQueryIDBigInt) Order(direction SortOrder) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "id", + Value: direction, + }, + } +} + +func (r logLineQueryIDBigInt) Cursor(cursor BigInt) logLineCursorParam { + return logLineCursorParam{ + data: builder.Field{ + Name: "id", + Value: cursor, + }, + } +} + +func (r logLineQueryIDBigInt) In(value []BigInt) logLineParamUnique { + return logLineParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) InIfPresent(value []BigInt) logLineParamUnique { + if value == nil { + return logLineParamUnique{} + } + return r.In(value) +} + +func (r logLineQueryIDBigInt) NotIn(value []BigInt) logLineParamUnique { + return logLineParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) NotInIfPresent(value []BigInt) logLineParamUnique { + if value == nil { + return logLineParamUnique{} + } + return r.NotIn(value) +} + +func (r logLineQueryIDBigInt) Lt(value BigInt) logLineParamUnique { + return logLineParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) LtIfPresent(value *BigInt) logLineParamUnique { + if value == nil { + return logLineParamUnique{} + } + return r.Lt(*value) +} + +func (r logLineQueryIDBigInt) Lte(value BigInt) logLineParamUnique { + return logLineParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) LteIfPresent(value *BigInt) logLineParamUnique { + if value == nil { + return logLineParamUnique{} + } + return r.Lte(*value) +} + +func (r logLineQueryIDBigInt) Gt(value BigInt) logLineParamUnique { + return logLineParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) GtIfPresent(value *BigInt) logLineParamUnique { + if value == nil { + return logLineParamUnique{} + } + return r.Gt(*value) +} + +func (r logLineQueryIDBigInt) Gte(value BigInt) logLineParamUnique { + return logLineParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) GteIfPresent(value *BigInt) logLineParamUnique { + if value == nil { + return logLineParamUnique{} + } + return r.Gte(*value) +} + +func (r logLineQueryIDBigInt) Not(value BigInt) logLineParamUnique { + return logLineParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryIDBigInt) NotIfPresent(value *BigInt) logLineParamUnique { + if value == nil { + return logLineParamUnique{} + } + return r.Not(*value) +} + +func (r logLineQueryIDBigInt) Field() logLinePrismaFields { + return logLineFieldID +} + +// base struct +type logLineQueryCreatedAtDateTime struct{} + +// Set the required value of CreatedAt +func (r logLineQueryCreatedAtDateTime) Set(value DateTime) logLineSetParam { + + return logLineSetParam{ + data: builder.Field{ + Name: "createdAt", + Value: value, + }, + } + +} + +// Set the optional value of CreatedAt dynamically +func (r logLineQueryCreatedAtDateTime) SetIfPresent(value *DateTime) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + + return r.Set(*value) +} + +func (r logLineQueryCreatedAtDateTime) Equals(value DateTime) logLineWithPrismaCreatedAtEqualsParam { + + return logLineWithPrismaCreatedAtEqualsParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) logLineWithPrismaCreatedAtEqualsParam { + if value == nil { + return logLineWithPrismaCreatedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r logLineQueryCreatedAtDateTime) Order(direction SortOrder) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Value: direction, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) Cursor(cursor DateTime) logLineCursorParam { + return logLineCursorParam{ + data: builder.Field{ + Name: "createdAt", + Value: cursor, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) In(value []DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) InIfPresent(value []DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.In(value) +} + +func (r logLineQueryCreatedAtDateTime) NotIn(value []DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.NotIn(value) +} + +func (r logLineQueryCreatedAtDateTime) Lt(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) LtIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lt(*value) +} + +func (r logLineQueryCreatedAtDateTime) Lte(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) LteIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lte(*value) +} + +func (r logLineQueryCreatedAtDateTime) Gt(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) GtIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gt(*value) +} + +func (r logLineQueryCreatedAtDateTime) Gte(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) GteIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gte(*value) +} + +func (r logLineQueryCreatedAtDateTime) Not(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryCreatedAtDateTime) NotIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r logLineQueryCreatedAtDateTime) Before(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r logLineQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r logLineQueryCreatedAtDateTime) After(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r logLineQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.After(*value) +} + +// deprecated: Use Lte instead. + +func (r logLineQueryCreatedAtDateTime) BeforeEquals(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r logLineQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r logLineQueryCreatedAtDateTime) AfterEquals(value DateTime) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r logLineQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r logLineQueryCreatedAtDateTime) Field() logLinePrismaFields { + return logLineFieldCreatedAt +} + +// base struct +type logLineQueryTenantTenant struct{} + +type logLineQueryTenantRelations struct{} + +// LogLine -> Tenant +// +// @relation +// @required +func (logLineQueryTenantRelations) Where( + params ...TenantWhereParam, +) logLineDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (logLineQueryTenantRelations) Fetch() logLineToTenantFindUnique { + var v logLineToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v +} + +func (r logLineQueryTenantRelations) Link( + params TenantWhereParam, +) logLineWithPrismaTenantSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return logLineWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return logLineWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r logLineQueryTenantRelations) Unlink() logLineWithPrismaTenantSetParam { + var v logLineWithPrismaTenantSetParam + + v = logLineWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r logLineQueryTenantTenant) Field() logLinePrismaFields { + return logLineFieldTenant +} + +// base struct +type logLineQueryTenantIDString struct{} + +// Set the required value of TenantID +func (r logLineQueryTenantIDString) Set(value string) logLineSetParam { + + return logLineSetParam{ + data: builder.Field{ + Name: "tenantId", + Value: value, + }, + } + +} + +// Set the optional value of TenantID dynamically +func (r logLineQueryTenantIDString) SetIfPresent(value *String) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + + return r.Set(*value) +} + +func (r logLineQueryTenantIDString) Equals(value string) logLineWithPrismaTenantIDEqualsParam { + + return logLineWithPrismaTenantIDEqualsParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) EqualsIfPresent(value *string) logLineWithPrismaTenantIDEqualsParam { + if value == nil { + return logLineWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r logLineQueryTenantIDString) Order(direction SortOrder) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Value: direction, + }, + } +} + +func (r logLineQueryTenantIDString) Cursor(cursor string) logLineCursorParam { + return logLineCursorParam{ + data: builder.Field{ + Name: "tenantId", + Value: cursor, + }, + } +} + +func (r logLineQueryTenantIDString) In(value []string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) InIfPresent(value []string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.In(value) +} + +func (r logLineQueryTenantIDString) NotIn(value []string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) NotInIfPresent(value []string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.NotIn(value) +} + +func (r logLineQueryTenantIDString) Lt(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) LtIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lt(*value) +} + +func (r logLineQueryTenantIDString) Lte(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) LteIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lte(*value) +} + +func (r logLineQueryTenantIDString) Gt(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) GtIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gt(*value) +} + +func (r logLineQueryTenantIDString) Gte(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) GteIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gte(*value) +} + +func (r logLineQueryTenantIDString) Contains(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) ContainsIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Contains(*value) +} + +func (r logLineQueryTenantIDString) StartsWith(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) StartsWithIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r logLineQueryTenantIDString) EndsWith(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) EndsWithIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r logLineQueryTenantIDString) Mode(value QueryMode) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) ModeIfPresent(value *QueryMode) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Mode(*value) +} + +func (r logLineQueryTenantIDString) Not(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryTenantIDString) NotIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r logLineQueryTenantIDString) HasPrefix(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r logLineQueryTenantIDString) HasPrefixIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r logLineQueryTenantIDString) HasSuffix(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r logLineQueryTenantIDString) HasSuffixIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r logLineQueryTenantIDString) Field() logLinePrismaFields { + return logLineFieldTenantID +} + +// base struct +type logLineQueryStepRunStepRun struct{} + +type logLineQueryStepRunRelations struct{} + +// LogLine -> StepRun +// +// @relation +// @optional +func (logLineQueryStepRunRelations) Where( + params ...StepRunWhereParam, +) logLineDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRun", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (logLineQueryStepRunRelations) Fetch() logLineToStepRunFindUnique { + var v logLineToStepRunFindUnique + + v.query.Operation = "query" + v.query.Method = "stepRun" + v.query.Outputs = stepRunOutput + + return v +} + +func (r logLineQueryStepRunRelations) Link( + params StepRunWhereParam, +) logLineSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return logLineSetParam{} + } + + fields = append(fields, f) + + return logLineSetParam{ + data: builder.Field{ + Name: "stepRun", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r logLineQueryStepRunRelations) Unlink() logLineSetParam { + var v logLineSetParam + + v = logLineSetParam{ + data: builder.Field{ + Name: "stepRun", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r logLineQueryStepRunStepRun) Field() logLinePrismaFields { + return logLineFieldStepRun +} + +// base struct +type logLineQueryStepRunIDString struct{} + +// Set the optional value of StepRunID +func (r logLineQueryStepRunIDString) Set(value string) logLineSetParam { + + return logLineSetParam{ + data: builder.Field{ + Name: "stepRunId", + Value: value, + }, + } + +} + +// Set the optional value of StepRunID dynamically +func (r logLineQueryStepRunIDString) SetIfPresent(value *String) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of StepRunID dynamically +func (r logLineQueryStepRunIDString) SetOptional(value *String) logLineSetParam { + if value == nil { + + var v *string + return logLineSetParam{ + data: builder.Field{ + Name: "stepRunId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r logLineQueryStepRunIDString) Equals(value string) logLineWithPrismaStepRunIDEqualsParam { + + return logLineWithPrismaStepRunIDEqualsParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) EqualsIfPresent(value *string) logLineWithPrismaStepRunIDEqualsParam { + if value == nil { + return logLineWithPrismaStepRunIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r logLineQueryStepRunIDString) EqualsOptional(value *String) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) IsNull() logLineDefaultParam { + var str *string = nil + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) Order(direction SortOrder) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Value: direction, + }, + } +} + +func (r logLineQueryStepRunIDString) Cursor(cursor string) logLineCursorParam { + return logLineCursorParam{ + data: builder.Field{ + Name: "stepRunId", + Value: cursor, + }, + } +} + +func (r logLineQueryStepRunIDString) In(value []string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) InIfPresent(value []string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.In(value) +} + +func (r logLineQueryStepRunIDString) NotIn(value []string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) NotInIfPresent(value []string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.NotIn(value) +} + +func (r logLineQueryStepRunIDString) Lt(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) LtIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lt(*value) +} + +func (r logLineQueryStepRunIDString) Lte(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) LteIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lte(*value) +} + +func (r logLineQueryStepRunIDString) Gt(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) GtIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gt(*value) +} + +func (r logLineQueryStepRunIDString) Gte(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) GteIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gte(*value) +} + +func (r logLineQueryStepRunIDString) Contains(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) ContainsIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Contains(*value) +} + +func (r logLineQueryStepRunIDString) StartsWith(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) StartsWithIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r logLineQueryStepRunIDString) EndsWith(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) EndsWithIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r logLineQueryStepRunIDString) Mode(value QueryMode) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) ModeIfPresent(value *QueryMode) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Mode(*value) +} + +func (r logLineQueryStepRunIDString) Not(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryStepRunIDString) NotIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r logLineQueryStepRunIDString) HasPrefix(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r logLineQueryStepRunIDString) HasPrefixIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r logLineQueryStepRunIDString) HasSuffix(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r logLineQueryStepRunIDString) HasSuffixIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r logLineQueryStepRunIDString) Field() logLinePrismaFields { + return logLineFieldStepRunID +} + +// base struct +type logLineQueryMessageString struct{} + +// Set the required value of Message +func (r logLineQueryMessageString) Set(value string) logLineWithPrismaMessageSetParam { + + return logLineWithPrismaMessageSetParam{ + data: builder.Field{ + Name: "message", + Value: value, + }, + } + +} + +// Set the optional value of Message dynamically +func (r logLineQueryMessageString) SetIfPresent(value *String) logLineWithPrismaMessageSetParam { + if value == nil { + return logLineWithPrismaMessageSetParam{} + } + + return r.Set(*value) +} + +func (r logLineQueryMessageString) Equals(value string) logLineWithPrismaMessageEqualsParam { + + return logLineWithPrismaMessageEqualsParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) EqualsIfPresent(value *string) logLineWithPrismaMessageEqualsParam { + if value == nil { + return logLineWithPrismaMessageEqualsParam{} + } + return r.Equals(*value) +} + +func (r logLineQueryMessageString) Order(direction SortOrder) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Value: direction, + }, + } +} + +func (r logLineQueryMessageString) Cursor(cursor string) logLineCursorParam { + return logLineCursorParam{ + data: builder.Field{ + Name: "message", + Value: cursor, + }, + } +} + +func (r logLineQueryMessageString) In(value []string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) InIfPresent(value []string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.In(value) +} + +func (r logLineQueryMessageString) NotIn(value []string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) NotInIfPresent(value []string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.NotIn(value) +} + +func (r logLineQueryMessageString) Lt(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) LtIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lt(*value) +} + +func (r logLineQueryMessageString) Lte(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) LteIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lte(*value) +} + +func (r logLineQueryMessageString) Gt(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) GtIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gt(*value) +} + +func (r logLineQueryMessageString) Gte(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) GteIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gte(*value) +} + +func (r logLineQueryMessageString) Contains(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) ContainsIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Contains(*value) +} + +func (r logLineQueryMessageString) StartsWith(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) StartsWithIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r logLineQueryMessageString) EndsWith(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) EndsWithIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r logLineQueryMessageString) Mode(value QueryMode) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) ModeIfPresent(value *QueryMode) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Mode(*value) +} + +func (r logLineQueryMessageString) Not(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMessageString) NotIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r logLineQueryMessageString) HasPrefix(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r logLineQueryMessageString) HasPrefixIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r logLineQueryMessageString) HasSuffix(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r logLineQueryMessageString) HasSuffixIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r logLineQueryMessageString) Field() logLinePrismaFields { + return logLineFieldMessage +} + +// base struct +type logLineQueryLevelLogLineLevel struct{} + +// Set the required value of Level +func (r logLineQueryLevelLogLineLevel) Set(value LogLineLevel) logLineSetParam { + + return logLineSetParam{ + data: builder.Field{ + Name: "level", + Value: value, + }, + } + +} + +// Set the optional value of Level dynamically +func (r logLineQueryLevelLogLineLevel) SetIfPresent(value *LogLineLevel) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + + return r.Set(*value) +} + +func (r logLineQueryLevelLogLineLevel) Equals(value LogLineLevel) logLineWithPrismaLevelEqualsParam { + + return logLineWithPrismaLevelEqualsParam{ + data: builder.Field{ + Name: "level", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryLevelLogLineLevel) EqualsIfPresent(value *LogLineLevel) logLineWithPrismaLevelEqualsParam { + if value == nil { + return logLineWithPrismaLevelEqualsParam{} + } + return r.Equals(*value) +} + +func (r logLineQueryLevelLogLineLevel) Order(direction SortOrder) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "level", + Value: direction, + }, + } +} + +func (r logLineQueryLevelLogLineLevel) Cursor(cursor LogLineLevel) logLineCursorParam { + return logLineCursorParam{ + data: builder.Field{ + Name: "level", + Value: cursor, + }, + } +} + +func (r logLineQueryLevelLogLineLevel) In(value []LogLineLevel) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "level", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryLevelLogLineLevel) InIfPresent(value []LogLineLevel) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.In(value) +} + +func (r logLineQueryLevelLogLineLevel) NotIn(value []LogLineLevel) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "level", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryLevelLogLineLevel) NotInIfPresent(value []LogLineLevel) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.NotIn(value) +} + +func (r logLineQueryLevelLogLineLevel) Not(value LogLineLevel) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "level", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryLevelLogLineLevel) NotIfPresent(value *LogLineLevel) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Not(*value) +} + +func (r logLineQueryLevelLogLineLevel) Field() logLinePrismaFields { + return logLineFieldLevel +} + +// base struct +type logLineQueryMetadataJson struct{} + +// Set the optional value of Metadata +func (r logLineQueryMetadataJson) Set(value JSON) logLineSetParam { + + return logLineSetParam{ + data: builder.Field{ + Name: "metadata", + Value: value, + }, + } + +} + +// Set the optional value of Metadata dynamically +func (r logLineQueryMetadataJson) SetIfPresent(value *JSON) logLineSetParam { + if value == nil { + return logLineSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of Metadata dynamically +func (r logLineQueryMetadataJson) SetOptional(value *JSON) logLineSetParam { + if value == nil { + + var v *JSON + return logLineSetParam{ + data: builder.Field{ + Name: "metadata", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r logLineQueryMetadataJson) Equals(value JSON) logLineWithPrismaMetadataEqualsParam { + + return logLineWithPrismaMetadataEqualsParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) EqualsIfPresent(value *JSON) logLineWithPrismaMetadataEqualsParam { + if value == nil { + return logLineWithPrismaMetadataEqualsParam{} + } + return r.Equals(*value) +} + +func (r logLineQueryMetadataJson) EqualsOptional(value *JSON) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) IsNull() logLineDefaultParam { + var str *string = nil + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) Order(direction SortOrder) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Value: direction, + }, + } +} + +func (r logLineQueryMetadataJson) Cursor(cursor JSON) logLineCursorParam { + return logLineCursorParam{ + data: builder.Field{ + Name: "metadata", + Value: cursor, + }, + } +} + +func (r logLineQueryMetadataJson) Path(value []string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "path", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) PathIfPresent(value []string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Path(value) +} + +func (r logLineQueryMetadataJson) StringContains(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "string_contains", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) StringContainsIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.StringContains(*value) +} + +func (r logLineQueryMetadataJson) StringStartsWith(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "string_starts_with", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) StringStartsWithIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.StringStartsWith(*value) +} + +func (r logLineQueryMetadataJson) StringEndsWith(value string) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "string_ends_with", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) StringEndsWithIfPresent(value *string) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.StringEndsWith(*value) +} + +func (r logLineQueryMetadataJson) ArrayContains(value JSON) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "array_contains", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) ArrayContainsIfPresent(value *JSON) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.ArrayContains(*value) +} + +func (r logLineQueryMetadataJson) ArrayStartsWith(value JSON) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "array_starts_with", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) ArrayStartsWithIfPresent(value *JSON) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.ArrayStartsWith(*value) +} + +func (r logLineQueryMetadataJson) ArrayEndsWith(value JSON) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "array_ends_with", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) ArrayEndsWithIfPresent(value *JSON) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.ArrayEndsWith(*value) +} + +func (r logLineQueryMetadataJson) Lt(value JSON) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) LtIfPresent(value *JSON) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lt(*value) +} + +func (r logLineQueryMetadataJson) Lte(value JSON) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) LteIfPresent(value *JSON) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Lte(*value) +} + +func (r logLineQueryMetadataJson) Gt(value JSON) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) GtIfPresent(value *JSON) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gt(*value) +} + +func (r logLineQueryMetadataJson) Gte(value JSON) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) GteIfPresent(value *JSON) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Gte(*value) +} + +func (r logLineQueryMetadataJson) Not(value JSONNullValueFilter) logLineDefaultParam { + return logLineDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r logLineQueryMetadataJson) NotIfPresent(value *JSONNullValueFilter) logLineDefaultParam { + if value == nil { + return logLineDefaultParam{} + } + return r.Not(*value) +} + +func (r logLineQueryMetadataJson) Field() logLinePrismaFields { + return logLineFieldMetadata +} + +// StreamEvent acts as a namespaces to access query methods for the StreamEvent model +var StreamEvent = streamEventQuery{} + +// streamEventQuery exposes query functions for the streamEvent model +type streamEventQuery struct { + + // ID + // + // @required + ID streamEventQueryIDBigInt + + // CreatedAt + // + // @required + CreatedAt streamEventQueryCreatedAtDateTime + + Tenant streamEventQueryTenantRelations + + // TenantID + // + // @required + TenantID streamEventQueryTenantIDString + + StepRun streamEventQueryStepRunRelations + + // StepRunID + // + // @optional + StepRunID streamEventQueryStepRunIDString + + // Message + // + // @required + Message streamEventQueryMessageBytes + + // Metadata + // + // @optional + Metadata streamEventQueryMetadataJson +} + +func (streamEventQuery) Not(params ...StreamEventWhereParam) streamEventDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return streamEventDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (streamEventQuery) Or(params ...StreamEventWhereParam) streamEventDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return streamEventDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (streamEventQuery) And(params ...StreamEventWhereParam) streamEventDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return streamEventDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +// base struct +type streamEventQueryIDBigInt struct{} + +// Set the required value of ID +func (r streamEventQueryIDBigInt) Set(value BigInt) streamEventSetParam { + + return streamEventSetParam{ + data: builder.Field{ + Name: "id", + Value: value, + }, + } + +} + +// Set the optional value of ID dynamically +func (r streamEventQueryIDBigInt) SetIfPresent(value *BigInt) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + + return r.Set(*value) +} + +// Increment the required value of ID +func (r streamEventQueryIDBigInt) Increment(value BigInt) streamEventSetParam { + return streamEventSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "increment", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) IncrementIfPresent(value *BigInt) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + return r.Increment(*value) +} + +// Decrement the required value of ID +func (r streamEventQueryIDBigInt) Decrement(value BigInt) streamEventSetParam { + return streamEventSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "decrement", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) DecrementIfPresent(value *BigInt) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + return r.Decrement(*value) +} + +// Multiply the required value of ID +func (r streamEventQueryIDBigInt) Multiply(value BigInt) streamEventSetParam { + return streamEventSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "multiply", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) MultiplyIfPresent(value *BigInt) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + return r.Multiply(*value) +} + +// Divide the required value of ID +func (r streamEventQueryIDBigInt) Divide(value BigInt) streamEventSetParam { + return streamEventSetParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + builder.Field{ + Name: "divide", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) DivideIfPresent(value *BigInt) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + return r.Divide(*value) +} + +func (r streamEventQueryIDBigInt) Equals(value BigInt) streamEventWithPrismaIDEqualsUniqueParam { + + return streamEventWithPrismaIDEqualsUniqueParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) EqualsIfPresent(value *BigInt) streamEventWithPrismaIDEqualsUniqueParam { + if value == nil { + return streamEventWithPrismaIDEqualsUniqueParam{} + } + return r.Equals(*value) +} + +func (r streamEventQueryIDBigInt) Order(direction SortOrder) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "id", + Value: direction, + }, + } +} + +func (r streamEventQueryIDBigInt) Cursor(cursor BigInt) streamEventCursorParam { + return streamEventCursorParam{ + data: builder.Field{ + Name: "id", + Value: cursor, + }, + } +} + +func (r streamEventQueryIDBigInt) In(value []BigInt) streamEventParamUnique { + return streamEventParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) InIfPresent(value []BigInt) streamEventParamUnique { + if value == nil { + return streamEventParamUnique{} + } + return r.In(value) +} + +func (r streamEventQueryIDBigInt) NotIn(value []BigInt) streamEventParamUnique { + return streamEventParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) NotInIfPresent(value []BigInt) streamEventParamUnique { + if value == nil { + return streamEventParamUnique{} + } + return r.NotIn(value) +} + +func (r streamEventQueryIDBigInt) Lt(value BigInt) streamEventParamUnique { + return streamEventParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) LtIfPresent(value *BigInt) streamEventParamUnique { + if value == nil { + return streamEventParamUnique{} + } + return r.Lt(*value) +} + +func (r streamEventQueryIDBigInt) Lte(value BigInt) streamEventParamUnique { + return streamEventParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) LteIfPresent(value *BigInt) streamEventParamUnique { + if value == nil { + return streamEventParamUnique{} + } + return r.Lte(*value) +} + +func (r streamEventQueryIDBigInt) Gt(value BigInt) streamEventParamUnique { + return streamEventParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) GtIfPresent(value *BigInt) streamEventParamUnique { + if value == nil { + return streamEventParamUnique{} + } + return r.Gt(*value) +} + +func (r streamEventQueryIDBigInt) Gte(value BigInt) streamEventParamUnique { + return streamEventParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) GteIfPresent(value *BigInt) streamEventParamUnique { + if value == nil { + return streamEventParamUnique{} + } + return r.Gte(*value) +} + +func (r streamEventQueryIDBigInt) Not(value BigInt) streamEventParamUnique { + return streamEventParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryIDBigInt) NotIfPresent(value *BigInt) streamEventParamUnique { + if value == nil { + return streamEventParamUnique{} + } + return r.Not(*value) +} + +func (r streamEventQueryIDBigInt) Field() streamEventPrismaFields { + return streamEventFieldID +} + +// base struct +type streamEventQueryCreatedAtDateTime struct{} + +// Set the required value of CreatedAt +func (r streamEventQueryCreatedAtDateTime) Set(value DateTime) streamEventSetParam { + + return streamEventSetParam{ + data: builder.Field{ + Name: "createdAt", + Value: value, + }, + } + +} + +// Set the optional value of CreatedAt dynamically +func (r streamEventQueryCreatedAtDateTime) SetIfPresent(value *DateTime) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + + return r.Set(*value) +} + +func (r streamEventQueryCreatedAtDateTime) Equals(value DateTime) streamEventWithPrismaCreatedAtEqualsParam { + + return streamEventWithPrismaCreatedAtEqualsParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) streamEventWithPrismaCreatedAtEqualsParam { + if value == nil { + return streamEventWithPrismaCreatedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r streamEventQueryCreatedAtDateTime) Order(direction SortOrder) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Value: direction, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) Cursor(cursor DateTime) streamEventCursorParam { + return streamEventCursorParam{ + data: builder.Field{ + Name: "createdAt", + Value: cursor, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) In(value []DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) InIfPresent(value []DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.In(value) +} + +func (r streamEventQueryCreatedAtDateTime) NotIn(value []DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.NotIn(value) +} + +func (r streamEventQueryCreatedAtDateTime) Lt(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) LtIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Lt(*value) +} + +func (r streamEventQueryCreatedAtDateTime) Lte(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) LteIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Lte(*value) +} + +func (r streamEventQueryCreatedAtDateTime) Gt(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) GtIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Gt(*value) +} + +func (r streamEventQueryCreatedAtDateTime) Gte(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) GteIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Gte(*value) +} + +func (r streamEventQueryCreatedAtDateTime) Not(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryCreatedAtDateTime) NotIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r streamEventQueryCreatedAtDateTime) Before(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r streamEventQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r streamEventQueryCreatedAtDateTime) After(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r streamEventQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.After(*value) +} + +// deprecated: Use Lte instead. + +func (r streamEventQueryCreatedAtDateTime) BeforeEquals(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r streamEventQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r streamEventQueryCreatedAtDateTime) AfterEquals(value DateTime) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r streamEventQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r streamEventQueryCreatedAtDateTime) Field() streamEventPrismaFields { + return streamEventFieldCreatedAt +} + +// base struct +type streamEventQueryTenantTenant struct{} + +type streamEventQueryTenantRelations struct{} + +// StreamEvent -> Tenant +// +// @relation +// @required +func (streamEventQueryTenantRelations) Where( + params ...TenantWhereParam, +) streamEventDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (streamEventQueryTenantRelations) Fetch() streamEventToTenantFindUnique { + var v streamEventToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v +} + +func (r streamEventQueryTenantRelations) Link( + params TenantWhereParam, +) streamEventWithPrismaTenantSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return streamEventWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return streamEventWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r streamEventQueryTenantRelations) Unlink() streamEventWithPrismaTenantSetParam { + var v streamEventWithPrismaTenantSetParam + + v = streamEventWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r streamEventQueryTenantTenant) Field() streamEventPrismaFields { + return streamEventFieldTenant +} + +// base struct +type streamEventQueryTenantIDString struct{} + +// Set the required value of TenantID +func (r streamEventQueryTenantIDString) Set(value string) streamEventSetParam { + + return streamEventSetParam{ + data: builder.Field{ + Name: "tenantId", + Value: value, + }, + } + +} + +// Set the optional value of TenantID dynamically +func (r streamEventQueryTenantIDString) SetIfPresent(value *String) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + + return r.Set(*value) +} + +func (r streamEventQueryTenantIDString) Equals(value string) streamEventWithPrismaTenantIDEqualsParam { + + return streamEventWithPrismaTenantIDEqualsParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) EqualsIfPresent(value *string) streamEventWithPrismaTenantIDEqualsParam { + if value == nil { + return streamEventWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r streamEventQueryTenantIDString) Order(direction SortOrder) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Value: direction, + }, + } +} + +func (r streamEventQueryTenantIDString) Cursor(cursor string) streamEventCursorParam { + return streamEventCursorParam{ + data: builder.Field{ + Name: "tenantId", + Value: cursor, + }, + } +} + +func (r streamEventQueryTenantIDString) In(value []string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) InIfPresent(value []string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.In(value) +} + +func (r streamEventQueryTenantIDString) NotIn(value []string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) NotInIfPresent(value []string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.NotIn(value) +} + +func (r streamEventQueryTenantIDString) Lt(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) LtIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Lt(*value) +} + +func (r streamEventQueryTenantIDString) Lte(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) LteIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Lte(*value) +} + +func (r streamEventQueryTenantIDString) Gt(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) GtIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Gt(*value) +} + +func (r streamEventQueryTenantIDString) Gte(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) GteIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Gte(*value) +} + +func (r streamEventQueryTenantIDString) Contains(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) ContainsIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Contains(*value) +} + +func (r streamEventQueryTenantIDString) StartsWith(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) StartsWithIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r streamEventQueryTenantIDString) EndsWith(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) EndsWithIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r streamEventQueryTenantIDString) Mode(value QueryMode) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) ModeIfPresent(value *QueryMode) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Mode(*value) +} + +func (r streamEventQueryTenantIDString) Not(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryTenantIDString) NotIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r streamEventQueryTenantIDString) HasPrefix(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r streamEventQueryTenantIDString) HasPrefixIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r streamEventQueryTenantIDString) HasSuffix(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r streamEventQueryTenantIDString) HasSuffixIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r streamEventQueryTenantIDString) Field() streamEventPrismaFields { + return streamEventFieldTenantID +} + +// base struct +type streamEventQueryStepRunStepRun struct{} + +type streamEventQueryStepRunRelations struct{} + +// StreamEvent -> StepRun +// +// @relation +// @optional +func (streamEventQueryStepRunRelations) Where( + params ...StepRunWhereParam, +) streamEventDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRun", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (streamEventQueryStepRunRelations) Fetch() streamEventToStepRunFindUnique { + var v streamEventToStepRunFindUnique + + v.query.Operation = "query" + v.query.Method = "stepRun" + v.query.Outputs = stepRunOutput + + return v +} + +func (r streamEventQueryStepRunRelations) Link( + params StepRunWhereParam, +) streamEventSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return streamEventSetParam{} + } + + fields = append(fields, f) + + return streamEventSetParam{ + data: builder.Field{ + Name: "stepRun", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r streamEventQueryStepRunRelations) Unlink() streamEventSetParam { + var v streamEventSetParam + + v = streamEventSetParam{ + data: builder.Field{ + Name: "stepRun", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r streamEventQueryStepRunStepRun) Field() streamEventPrismaFields { + return streamEventFieldStepRun +} + +// base struct +type streamEventQueryStepRunIDString struct{} + +// Set the optional value of StepRunID +func (r streamEventQueryStepRunIDString) Set(value string) streamEventSetParam { + + return streamEventSetParam{ + data: builder.Field{ + Name: "stepRunId", + Value: value, + }, + } + +} + +// Set the optional value of StepRunID dynamically +func (r streamEventQueryStepRunIDString) SetIfPresent(value *String) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of StepRunID dynamically +func (r streamEventQueryStepRunIDString) SetOptional(value *String) streamEventSetParam { + if value == nil { + + var v *string + return streamEventSetParam{ + data: builder.Field{ + Name: "stepRunId", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r streamEventQueryStepRunIDString) Equals(value string) streamEventWithPrismaStepRunIDEqualsParam { + + return streamEventWithPrismaStepRunIDEqualsParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) EqualsIfPresent(value *string) streamEventWithPrismaStepRunIDEqualsParam { + if value == nil { + return streamEventWithPrismaStepRunIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r streamEventQueryStepRunIDString) EqualsOptional(value *String) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) IsNull() streamEventDefaultParam { + var str *string = nil + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) Order(direction SortOrder) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Value: direction, + }, + } +} + +func (r streamEventQueryStepRunIDString) Cursor(cursor string) streamEventCursorParam { + return streamEventCursorParam{ + data: builder.Field{ + Name: "stepRunId", + Value: cursor, + }, + } +} + +func (r streamEventQueryStepRunIDString) In(value []string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) InIfPresent(value []string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.In(value) +} + +func (r streamEventQueryStepRunIDString) NotIn(value []string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) NotInIfPresent(value []string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.NotIn(value) +} + +func (r streamEventQueryStepRunIDString) Lt(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) LtIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Lt(*value) +} + +func (r streamEventQueryStepRunIDString) Lte(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) LteIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Lte(*value) +} + +func (r streamEventQueryStepRunIDString) Gt(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) GtIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Gt(*value) +} + +func (r streamEventQueryStepRunIDString) Gte(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) GteIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Gte(*value) +} + +func (r streamEventQueryStepRunIDString) Contains(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) ContainsIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Contains(*value) +} + +func (r streamEventQueryStepRunIDString) StartsWith(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) StartsWithIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r streamEventQueryStepRunIDString) EndsWith(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) EndsWithIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r streamEventQueryStepRunIDString) Mode(value QueryMode) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) ModeIfPresent(value *QueryMode) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Mode(*value) +} + +func (r streamEventQueryStepRunIDString) Not(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryStepRunIDString) NotIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r streamEventQueryStepRunIDString) HasPrefix(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r streamEventQueryStepRunIDString) HasPrefixIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r streamEventQueryStepRunIDString) HasSuffix(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "stepRunId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r streamEventQueryStepRunIDString) HasSuffixIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r streamEventQueryStepRunIDString) Field() streamEventPrismaFields { + return streamEventFieldStepRunID +} + +// base struct +type streamEventQueryMessageBytes struct{} + +// Set the required value of Message +func (r streamEventQueryMessageBytes) Set(value Bytes) streamEventWithPrismaMessageSetParam { + + return streamEventWithPrismaMessageSetParam{ + data: builder.Field{ + Name: "message", + Value: value, + }, + } + +} + +// Set the optional value of Message dynamically +func (r streamEventQueryMessageBytes) SetIfPresent(value *Bytes) streamEventWithPrismaMessageSetParam { + if value == nil { + return streamEventWithPrismaMessageSetParam{} + } + + return r.Set(*value) +} + +func (r streamEventQueryMessageBytes) Equals(value Bytes) streamEventWithPrismaMessageEqualsParam { + + return streamEventWithPrismaMessageEqualsParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMessageBytes) EqualsIfPresent(value *Bytes) streamEventWithPrismaMessageEqualsParam { + if value == nil { + return streamEventWithPrismaMessageEqualsParam{} + } + return r.Equals(*value) +} + +func (r streamEventQueryMessageBytes) Order(direction SortOrder) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "message", + Value: direction, + }, + } +} + +func (r streamEventQueryMessageBytes) Cursor(cursor Bytes) streamEventCursorParam { + return streamEventCursorParam{ + data: builder.Field{ + Name: "message", + Value: cursor, + }, + } +} + +func (r streamEventQueryMessageBytes) In(value []Bytes) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMessageBytes) InIfPresent(value []Bytes) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.In(value) +} + +func (r streamEventQueryMessageBytes) NotIn(value []Bytes) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMessageBytes) NotInIfPresent(value []Bytes) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.NotIn(value) +} + +func (r streamEventQueryMessageBytes) Not(value Bytes) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "message", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMessageBytes) NotIfPresent(value *Bytes) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Not(*value) +} + +func (r streamEventQueryMessageBytes) Field() streamEventPrismaFields { + return streamEventFieldMessage +} + +// base struct +type streamEventQueryMetadataJson struct{} + +// Set the optional value of Metadata +func (r streamEventQueryMetadataJson) Set(value JSON) streamEventSetParam { + + return streamEventSetParam{ + data: builder.Field{ + Name: "metadata", + Value: value, + }, + } + +} + +// Set the optional value of Metadata dynamically +func (r streamEventQueryMetadataJson) SetIfPresent(value *JSON) streamEventSetParam { + if value == nil { + return streamEventSetParam{} + } + + return r.Set(*value) +} + +// Set the optional value of Metadata dynamically +func (r streamEventQueryMetadataJson) SetOptional(value *JSON) streamEventSetParam { + if value == nil { + + var v *JSON + return streamEventSetParam{ + data: builder.Field{ + Name: "metadata", + Value: v, + }, + } + } + + return r.Set(*value) +} + +func (r streamEventQueryMetadataJson) Equals(value JSON) streamEventWithPrismaMetadataEqualsParam { + + return streamEventWithPrismaMetadataEqualsParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) EqualsIfPresent(value *JSON) streamEventWithPrismaMetadataEqualsParam { + if value == nil { + return streamEventWithPrismaMetadataEqualsParam{} + } + return r.Equals(*value) +} + +func (r streamEventQueryMetadataJson) EqualsOptional(value *JSON) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) IsNull() streamEventDefaultParam { + var str *string = nil + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "equals", + Value: str, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) Order(direction SortOrder) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Value: direction, + }, + } +} + +func (r streamEventQueryMetadataJson) Cursor(cursor JSON) streamEventCursorParam { + return streamEventCursorParam{ + data: builder.Field{ + Name: "metadata", + Value: cursor, + }, + } +} + +func (r streamEventQueryMetadataJson) Path(value []string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "path", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) PathIfPresent(value []string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Path(value) +} + +func (r streamEventQueryMetadataJson) StringContains(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "string_contains", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) StringContainsIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.StringContains(*value) +} + +func (r streamEventQueryMetadataJson) StringStartsWith(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "string_starts_with", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) StringStartsWithIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.StringStartsWith(*value) +} + +func (r streamEventQueryMetadataJson) StringEndsWith(value string) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "string_ends_with", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) StringEndsWithIfPresent(value *string) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.StringEndsWith(*value) +} + +func (r streamEventQueryMetadataJson) ArrayContains(value JSON) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "array_contains", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) ArrayContainsIfPresent(value *JSON) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.ArrayContains(*value) +} + +func (r streamEventQueryMetadataJson) ArrayStartsWith(value JSON) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "array_starts_with", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) ArrayStartsWithIfPresent(value *JSON) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.ArrayStartsWith(*value) +} + +func (r streamEventQueryMetadataJson) ArrayEndsWith(value JSON) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "array_ends_with", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) ArrayEndsWithIfPresent(value *JSON) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.ArrayEndsWith(*value) +} + +func (r streamEventQueryMetadataJson) Lt(value JSON) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) LtIfPresent(value *JSON) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Lt(*value) +} + +func (r streamEventQueryMetadataJson) Lte(value JSON) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) LteIfPresent(value *JSON) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Lte(*value) +} + +func (r streamEventQueryMetadataJson) Gt(value JSON) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) GtIfPresent(value *JSON) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Gt(*value) +} + +func (r streamEventQueryMetadataJson) Gte(value JSON) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) GteIfPresent(value *JSON) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Gte(*value) +} + +func (r streamEventQueryMetadataJson) Not(value JSONNullValueFilter) streamEventDefaultParam { + return streamEventDefaultParam{ + data: builder.Field{ + Name: "metadata", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r streamEventQueryMetadataJson) NotIfPresent(value *JSONNullValueFilter) streamEventDefaultParam { + if value == nil { + return streamEventDefaultParam{} + } + return r.Not(*value) +} + +func (r streamEventQueryMetadataJson) Field() streamEventPrismaFields { + return streamEventFieldMetadata +} + +// SNSIntegration acts as a namespaces to access query methods for the SNSIntegration model +var SNSIntegration = sNSIntegrationQuery{} + +// sNSIntegrationQuery exposes query functions for the sNSIntegration model +type sNSIntegrationQuery struct { + + // ID + // + // @required + ID sNSIntegrationQueryIDString + + // CreatedAt + // + // @required + CreatedAt sNSIntegrationQueryCreatedAtDateTime + + // UpdatedAt + // + // @required + UpdatedAt sNSIntegrationQueryUpdatedAtDateTime + + Tenant sNSIntegrationQueryTenantRelations + + // TenantID + // + // @required + TenantID sNSIntegrationQueryTenantIDString + + // TopicArn + // + // @required + TopicArn sNSIntegrationQueryTopicArnString +} + +func (sNSIntegrationQuery) Not(params ...SNSIntegrationWhereParam) sNSIntegrationDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (sNSIntegrationQuery) Or(params ...SNSIntegrationWhereParam) sNSIntegrationDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (sNSIntegrationQuery) And(params ...SNSIntegrationWhereParam) sNSIntegrationDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (sNSIntegrationQuery) TenantIDTopicArn( + _tenantID SNSIntegrationWithPrismaTenantIDWhereParam, + + _topicArn SNSIntegrationWithPrismaTopicArnWhereParam, +) SNSIntegrationEqualsUniqueWhereParam { + var fields []builder.Field + + fields = append(fields, _tenantID.field()) + fields = append(fields, _topicArn.field()) + + return sNSIntegrationEqualsUniqueParam{ + data: builder.Field{ + Name: "tenantId_topicArn", + Fields: builder.TransformEquals(fields), + }, + } +} + +// base struct +type sNSIntegrationQueryIDString struct{} + +// Set the required value of ID +func (r sNSIntegrationQueryIDString) Set(value string) sNSIntegrationSetParam { + + return sNSIntegrationSetParam{ + data: builder.Field{ + Name: "id", + Value: value, + }, + } + +} + +// Set the optional value of ID dynamically +func (r sNSIntegrationQueryIDString) SetIfPresent(value *String) sNSIntegrationSetParam { + if value == nil { + return sNSIntegrationSetParam{} + } + + return r.Set(*value) +} + +func (r sNSIntegrationQueryIDString) Equals(value string) sNSIntegrationWithPrismaIDEqualsUniqueParam { + + return sNSIntegrationWithPrismaIDEqualsUniqueParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) EqualsIfPresent(value *string) sNSIntegrationWithPrismaIDEqualsUniqueParam { + if value == nil { + return sNSIntegrationWithPrismaIDEqualsUniqueParam{} + } + return r.Equals(*value) +} + +func (r sNSIntegrationQueryIDString) Order(direction SortOrder) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "id", + Value: direction, + }, + } +} + +func (r sNSIntegrationQueryIDString) Cursor(cursor string) sNSIntegrationCursorParam { + return sNSIntegrationCursorParam{ + data: builder.Field{ + Name: "id", + Value: cursor, + }, + } +} + +func (r sNSIntegrationQueryIDString) In(value []string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) InIfPresent(value []string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.In(value) +} + +func (r sNSIntegrationQueryIDString) NotIn(value []string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) NotInIfPresent(value []string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.NotIn(value) +} + +func (r sNSIntegrationQueryIDString) Lt(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) LtIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.Lt(*value) +} + +func (r sNSIntegrationQueryIDString) Lte(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) LteIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.Lte(*value) +} + +func (r sNSIntegrationQueryIDString) Gt(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) GtIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.Gt(*value) +} + +func (r sNSIntegrationQueryIDString) Gte(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) GteIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.Gte(*value) +} + +func (r sNSIntegrationQueryIDString) Contains(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) ContainsIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.Contains(*value) +} + +func (r sNSIntegrationQueryIDString) StartsWith(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) StartsWithIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.StartsWith(*value) +} + +func (r sNSIntegrationQueryIDString) EndsWith(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) EndsWithIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.EndsWith(*value) +} + +func (r sNSIntegrationQueryIDString) Mode(value QueryMode) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) ModeIfPresent(value *QueryMode) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.Mode(*value) +} + +func (r sNSIntegrationQueryIDString) Not(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryIDString) NotIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r sNSIntegrationQueryIDString) HasPrefix(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r sNSIntegrationQueryIDString) HasPrefixIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r sNSIntegrationQueryIDString) HasSuffix(value string) sNSIntegrationParamUnique { + return sNSIntegrationParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r sNSIntegrationQueryIDString) HasSuffixIfPresent(value *string) sNSIntegrationParamUnique { + if value == nil { + return sNSIntegrationParamUnique{} + } + return r.HasSuffix(*value) +} + +func (r sNSIntegrationQueryIDString) Field() sNSIntegrationPrismaFields { + return sNSIntegrationFieldID +} + +// base struct +type sNSIntegrationQueryCreatedAtDateTime struct{} + +// Set the required value of CreatedAt +func (r sNSIntegrationQueryCreatedAtDateTime) Set(value DateTime) sNSIntegrationSetParam { + + return sNSIntegrationSetParam{ + data: builder.Field{ + Name: "createdAt", + Value: value, + }, + } + +} + +// Set the optional value of CreatedAt dynamically +func (r sNSIntegrationQueryCreatedAtDateTime) SetIfPresent(value *DateTime) sNSIntegrationSetParam { + if value == nil { + return sNSIntegrationSetParam{} + } + + return r.Set(*value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Equals(value DateTime) sNSIntegrationWithPrismaCreatedAtEqualsParam { + + return sNSIntegrationWithPrismaCreatedAtEqualsParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) EqualsIfPresent(value *DateTime) sNSIntegrationWithPrismaCreatedAtEqualsParam { + if value == nil { + return sNSIntegrationWithPrismaCreatedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Order(direction SortOrder) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Value: direction, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Cursor(cursor DateTime) sNSIntegrationCursorParam { + return sNSIntegrationCursorParam{ + data: builder.Field{ + Name: "createdAt", + Value: cursor, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) In(value []DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) InIfPresent(value []DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.In(value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) NotIn(value []DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) NotInIfPresent(value []DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.NotIn(value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Lt(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) LtIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Lt(*value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Lte(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) LteIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Lte(*value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Gt(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) GtIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Gt(*value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Gte(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) GteIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Gte(*value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Not(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryCreatedAtDateTime) NotIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r sNSIntegrationQueryCreatedAtDateTime) Before(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r sNSIntegrationQueryCreatedAtDateTime) BeforeIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r sNSIntegrationQueryCreatedAtDateTime) After(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r sNSIntegrationQueryCreatedAtDateTime) AfterIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.After(*value) +} + +// deprecated: Use Lte instead. + +func (r sNSIntegrationQueryCreatedAtDateTime) BeforeEquals(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r sNSIntegrationQueryCreatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r sNSIntegrationQueryCreatedAtDateTime) AfterEquals(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "createdAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r sNSIntegrationQueryCreatedAtDateTime) AfterEqualsIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r sNSIntegrationQueryCreatedAtDateTime) Field() sNSIntegrationPrismaFields { + return sNSIntegrationFieldCreatedAt +} + +// base struct +type sNSIntegrationQueryUpdatedAtDateTime struct{} + +// Set the required value of UpdatedAt +func (r sNSIntegrationQueryUpdatedAtDateTime) Set(value DateTime) sNSIntegrationSetParam { + + return sNSIntegrationSetParam{ + data: builder.Field{ + Name: "updatedAt", + Value: value, + }, + } + +} + +// Set the optional value of UpdatedAt dynamically +func (r sNSIntegrationQueryUpdatedAtDateTime) SetIfPresent(value *DateTime) sNSIntegrationSetParam { + if value == nil { + return sNSIntegrationSetParam{} + } + + return r.Set(*value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Equals(value DateTime) sNSIntegrationWithPrismaUpdatedAtEqualsParam { + + return sNSIntegrationWithPrismaUpdatedAtEqualsParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) EqualsIfPresent(value *DateTime) sNSIntegrationWithPrismaUpdatedAtEqualsParam { + if value == nil { + return sNSIntegrationWithPrismaUpdatedAtEqualsParam{} + } + return r.Equals(*value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Order(direction SortOrder) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Value: direction, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Cursor(cursor DateTime) sNSIntegrationCursorParam { + return sNSIntegrationCursorParam{ + data: builder.Field{ + Name: "updatedAt", + Value: cursor, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) In(value []DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) InIfPresent(value []DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.In(value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) NotIn(value []DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) NotInIfPresent(value []DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.NotIn(value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Lt(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) LtIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Lt(*value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Lte(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) LteIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Lte(*value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Gt(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) GtIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Gt(*value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Gte(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) GteIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Gte(*value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Not(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) NotIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use Lt instead. + +func (r sNSIntegrationQueryUpdatedAtDateTime) Before(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LtIfPresent instead. +func (r sNSIntegrationQueryUpdatedAtDateTime) BeforeIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Before(*value) +} + +// deprecated: Use Gt instead. + +func (r sNSIntegrationQueryUpdatedAtDateTime) After(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GtIfPresent instead. +func (r sNSIntegrationQueryUpdatedAtDateTime) AfterIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.After(*value) +} + +// deprecated: Use Lte instead. + +func (r sNSIntegrationQueryUpdatedAtDateTime) BeforeEquals(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use LteIfPresent instead. +func (r sNSIntegrationQueryUpdatedAtDateTime) BeforeEqualsIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.BeforeEquals(*value) +} + +// deprecated: Use Gte instead. + +func (r sNSIntegrationQueryUpdatedAtDateTime) AfterEquals(value DateTime) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "updatedAt", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use GteIfPresent instead. +func (r sNSIntegrationQueryUpdatedAtDateTime) AfterEqualsIfPresent(value *DateTime) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.AfterEquals(*value) +} + +func (r sNSIntegrationQueryUpdatedAtDateTime) Field() sNSIntegrationPrismaFields { + return sNSIntegrationFieldUpdatedAt +} + +// base struct +type sNSIntegrationQueryTenantTenant struct{} + +type sNSIntegrationQueryTenantRelations struct{} + +// SNSIntegration -> Tenant +// +// @relation +// @required +func (sNSIntegrationQueryTenantRelations) Where( + params ...TenantWhereParam, +) sNSIntegrationDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "is", + Fields: fields, + }, + }, + }, + } +} + +func (sNSIntegrationQueryTenantRelations) Fetch() sNSIntegrationToTenantFindUnique { + var v sNSIntegrationToTenantFindUnique + + v.query.Operation = "query" + v.query.Method = "tenant" + v.query.Outputs = tenantOutput + + return v +} + +func (r sNSIntegrationQueryTenantRelations) Link( + params TenantWhereParam, +) sNSIntegrationWithPrismaTenantSetParam { + var fields []builder.Field + + f := params.field() + if f.Fields == nil && f.Value == nil { + return sNSIntegrationWithPrismaTenantSetParam{} + } + + fields = append(fields, f) + + return sNSIntegrationWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "connect", + Fields: builder.TransformEquals(fields), + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantRelations) Unlink() sNSIntegrationWithPrismaTenantSetParam { + var v sNSIntegrationWithPrismaTenantSetParam + + v = sNSIntegrationWithPrismaTenantSetParam{ + data: builder.Field{ + Name: "tenant", + Fields: []builder.Field{ + { + Name: "disconnect", + Value: true, + }, + }, + }, + } + + return v +} + +func (r sNSIntegrationQueryTenantTenant) Field() sNSIntegrationPrismaFields { + return sNSIntegrationFieldTenant +} + +// base struct +type sNSIntegrationQueryTenantIDString struct{} + +// Set the required value of TenantID +func (r sNSIntegrationQueryTenantIDString) Set(value string) sNSIntegrationSetParam { + + return sNSIntegrationSetParam{ + data: builder.Field{ + Name: "tenantId", + Value: value, + }, + } + +} + +// Set the optional value of TenantID dynamically +func (r sNSIntegrationQueryTenantIDString) SetIfPresent(value *String) sNSIntegrationSetParam { + if value == nil { + return sNSIntegrationSetParam{} + } + + return r.Set(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Equals(value string) sNSIntegrationWithPrismaTenantIDEqualsParam { + + return sNSIntegrationWithPrismaTenantIDEqualsParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) EqualsIfPresent(value *string) sNSIntegrationWithPrismaTenantIDEqualsParam { + if value == nil { + return sNSIntegrationWithPrismaTenantIDEqualsParam{} + } + return r.Equals(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Order(direction SortOrder) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Value: direction, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) Cursor(cursor string) sNSIntegrationCursorParam { + return sNSIntegrationCursorParam{ + data: builder.Field{ + Name: "tenantId", + Value: cursor, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) In(value []string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) InIfPresent(value []string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.In(value) +} + +func (r sNSIntegrationQueryTenantIDString) NotIn(value []string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) NotInIfPresent(value []string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.NotIn(value) +} + +func (r sNSIntegrationQueryTenantIDString) Lt(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) LtIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Lt(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Lte(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) LteIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Lte(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Gt(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) GtIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Gt(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Gte(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) GteIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Gte(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Contains(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) ContainsIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Contains(*value) +} + +func (r sNSIntegrationQueryTenantIDString) StartsWith(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) StartsWithIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r sNSIntegrationQueryTenantIDString) EndsWith(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) EndsWithIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Mode(value QueryMode) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) ModeIfPresent(value *QueryMode) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Mode(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Not(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTenantIDString) NotIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r sNSIntegrationQueryTenantIDString) HasPrefix(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r sNSIntegrationQueryTenantIDString) HasPrefixIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r sNSIntegrationQueryTenantIDString) HasSuffix(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "tenantId", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r sNSIntegrationQueryTenantIDString) HasSuffixIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r sNSIntegrationQueryTenantIDString) Field() sNSIntegrationPrismaFields { + return sNSIntegrationFieldTenantID +} + +// base struct +type sNSIntegrationQueryTopicArnString struct{} + +// Set the required value of TopicArn +func (r sNSIntegrationQueryTopicArnString) Set(value string) sNSIntegrationWithPrismaTopicArnSetParam { + + return sNSIntegrationWithPrismaTopicArnSetParam{ + data: builder.Field{ + Name: "topicArn", + Value: value, + }, + } + +} + +// Set the optional value of TopicArn dynamically +func (r sNSIntegrationQueryTopicArnString) SetIfPresent(value *String) sNSIntegrationWithPrismaTopicArnSetParam { + if value == nil { + return sNSIntegrationWithPrismaTopicArnSetParam{} + } + + return r.Set(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Equals(value string) sNSIntegrationWithPrismaTopicArnEqualsParam { + + return sNSIntegrationWithPrismaTopicArnEqualsParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) EqualsIfPresent(value *string) sNSIntegrationWithPrismaTopicArnEqualsParam { + if value == nil { + return sNSIntegrationWithPrismaTopicArnEqualsParam{} + } + return r.Equals(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Order(direction SortOrder) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Value: direction, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) Cursor(cursor string) sNSIntegrationCursorParam { + return sNSIntegrationCursorParam{ + data: builder.Field{ + Name: "topicArn", + Value: cursor, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) In(value []string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) InIfPresent(value []string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.In(value) +} + +func (r sNSIntegrationQueryTopicArnString) NotIn(value []string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) NotInIfPresent(value []string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.NotIn(value) +} + +func (r sNSIntegrationQueryTopicArnString) Lt(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) LtIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Lt(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Lte(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) LteIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Lte(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Gt(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) GtIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Gt(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Gte(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) GteIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Gte(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Contains(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) ContainsIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Contains(*value) +} + +func (r sNSIntegrationQueryTopicArnString) StartsWith(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) StartsWithIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.StartsWith(*value) +} + +func (r sNSIntegrationQueryTopicArnString) EndsWith(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) EndsWithIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.EndsWith(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Mode(value QueryMode) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) ModeIfPresent(value *QueryMode) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Mode(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Not(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r sNSIntegrationQueryTopicArnString) NotIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r sNSIntegrationQueryTopicArnString) HasPrefix(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r sNSIntegrationQueryTopicArnString) HasPrefixIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r sNSIntegrationQueryTopicArnString) HasSuffix(value string) sNSIntegrationDefaultParam { + return sNSIntegrationDefaultParam{ + data: builder.Field{ + Name: "topicArn", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r sNSIntegrationQueryTopicArnString) HasSuffixIfPresent(value *string) sNSIntegrationDefaultParam { + if value == nil { + return sNSIntegrationDefaultParam{} + } + return r.HasSuffix(*value) +} + +func (r sNSIntegrationQueryTopicArnString) Field() sNSIntegrationPrismaFields { + return sNSIntegrationFieldTopicArn +} + +// SecurityCheckIdent acts as a namespaces to access query methods for the SecurityCheckIdent model +var SecurityCheckIdent = securityCheckIdentQuery{} + +// securityCheckIdentQuery exposes query functions for the securityCheckIdent model +type securityCheckIdentQuery struct { + + // ID + // + // @required + ID securityCheckIdentQueryIDString +} + +func (securityCheckIdentQuery) Not(params ...SecurityCheckIdentWhereParam) securityCheckIdentDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return securityCheckIdentDefaultParam{ + data: builder.Field{ + Name: "NOT", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (securityCheckIdentQuery) Or(params ...SecurityCheckIdentWhereParam) securityCheckIdentDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return securityCheckIdentDefaultParam{ + data: builder.Field{ + Name: "OR", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +func (securityCheckIdentQuery) And(params ...SecurityCheckIdentWhereParam) securityCheckIdentDefaultParam { + var fields []builder.Field + + for _, q := range params { + fields = append(fields, q.field()) + } + + return securityCheckIdentDefaultParam{ + data: builder.Field{ + Name: "AND", + List: true, + WrapList: true, + Fields: fields, + }, + } +} + +// base struct +type securityCheckIdentQueryIDString struct{} + +// Set the required value of ID +func (r securityCheckIdentQueryIDString) Set(value string) securityCheckIdentSetParam { + + return securityCheckIdentSetParam{ + data: builder.Field{ + Name: "id", + Value: value, + }, + } + +} + +// Set the optional value of ID dynamically +func (r securityCheckIdentQueryIDString) SetIfPresent(value *String) securityCheckIdentSetParam { + if value == nil { + return securityCheckIdentSetParam{} + } + + return r.Set(*value) +} + +func (r securityCheckIdentQueryIDString) Equals(value string) securityCheckIdentWithPrismaIDEqualsUniqueParam { + + return securityCheckIdentWithPrismaIDEqualsUniqueParam{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "equals", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) EqualsIfPresent(value *string) securityCheckIdentWithPrismaIDEqualsUniqueParam { + if value == nil { + return securityCheckIdentWithPrismaIDEqualsUniqueParam{} + } + return r.Equals(*value) +} + +func (r securityCheckIdentQueryIDString) Order(direction SortOrder) securityCheckIdentDefaultParam { + return securityCheckIdentDefaultParam{ + data: builder.Field{ + Name: "id", + Value: direction, + }, + } +} + +func (r securityCheckIdentQueryIDString) Cursor(cursor string) securityCheckIdentCursorParam { + return securityCheckIdentCursorParam{ + data: builder.Field{ + Name: "id", + Value: cursor, + }, + } +} + +func (r securityCheckIdentQueryIDString) In(value []string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "in", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) InIfPresent(value []string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.In(value) +} + +func (r securityCheckIdentQueryIDString) NotIn(value []string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "notIn", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) NotInIfPresent(value []string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.NotIn(value) +} + +func (r securityCheckIdentQueryIDString) Lt(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lt", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) LtIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.Lt(*value) +} + +func (r securityCheckIdentQueryIDString) Lte(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "lte", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) LteIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.Lte(*value) +} + +func (r securityCheckIdentQueryIDString) Gt(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gt", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) GtIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.Gt(*value) +} + +func (r securityCheckIdentQueryIDString) Gte(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "gte", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) GteIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.Gte(*value) +} + +func (r securityCheckIdentQueryIDString) Contains(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "contains", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) ContainsIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.Contains(*value) +} + +func (r securityCheckIdentQueryIDString) StartsWith(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "startsWith", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) StartsWithIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.StartsWith(*value) +} + +func (r securityCheckIdentQueryIDString) EndsWith(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "endsWith", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) EndsWithIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.EndsWith(*value) +} + +func (r securityCheckIdentQueryIDString) Mode(value QueryMode) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "mode", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) ModeIfPresent(value *QueryMode) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.Mode(*value) +} + +func (r securityCheckIdentQueryIDString) Not(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "not", + Value: value, + }, + }, + }, + } +} + +func (r securityCheckIdentQueryIDString) NotIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.Not(*value) +} + +// deprecated: Use StartsWith instead. + +func (r securityCheckIdentQueryIDString) HasPrefix(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "starts_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use StartsWithIfPresent instead. +func (r securityCheckIdentQueryIDString) HasPrefixIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.HasPrefix(*value) +} + +// deprecated: Use EndsWith instead. + +func (r securityCheckIdentQueryIDString) HasSuffix(value string) securityCheckIdentParamUnique { + return securityCheckIdentParamUnique{ + data: builder.Field{ + Name: "id", + Fields: []builder.Field{ + { + Name: "ends_with", + Value: value, + }, + }, + }, + } +} + +// deprecated: Use EndsWithIfPresent instead. +func (r securityCheckIdentQueryIDString) HasSuffixIfPresent(value *string) securityCheckIdentParamUnique { + if value == nil { + return securityCheckIdentParamUnique{} + } + return r.HasSuffix(*value) +} + +func (r securityCheckIdentQueryIDString) Field() securityCheckIdentPrismaFields { + return securityCheckIdentFieldID +} + +// --- template actions.gotpl --- +var countOutput = []builder.Output{ + {Name: "count"}, +} + +type userActions struct { + // client holds the prisma client + client *PrismaClient +} + +var userOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "email"}, + {Name: "emailVerified"}, + {Name: "name"}, +} + +type UserRelationWith interface { + getQuery() builder.Query + with() + userRelation() +} + +type UserWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() +} + +type userDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p userDefaultParam) field() builder.Field { + return p.data +} + +func (p userDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p userDefaultParam) userModel() {} + +type UserOrderByParam interface { + field() builder.Field + getQuery() builder.Query + userModel() +} + +type userOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p userOrderByParam) field() builder.Field { + return p.data +} + +func (p userOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p userOrderByParam) userModel() {} + +type UserCursorParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + isCursor() +} + +type userCursorParam struct { + data builder.Field + query builder.Query +} + +func (p userCursorParam) field() builder.Field { + return p.data +} + +func (p userCursorParam) isCursor() {} + +func (p userCursorParam) getQuery() builder.Query { + return p.query +} + +func (p userCursorParam) userModel() {} + +type UserParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + userModel() +} + +type userParamUnique struct { + data builder.Field + query builder.Query +} + +func (p userParamUnique) userModel() {} + +func (userParamUnique) unique() {} + +func (p userParamUnique) field() builder.Field { + return p.data +} + +func (p userParamUnique) getQuery() builder.Query { + return p.query +} + +type UserEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() +} + +type userEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userEqualsParam) userModel() {} + +func (userEqualsParam) equals() {} + +func (p userEqualsParam) field() builder.Field { + return p.data +} + +func (p userEqualsParam) getQuery() builder.Query { + return p.query +} + +type UserEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + userModel() +} + +type userEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userEqualsUniqueParam) userModel() {} + +func (userEqualsUniqueParam) unique() {} +func (userEqualsUniqueParam) equals() {} + +func (p userEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type UserSetParam interface { + field() builder.Field + settable() + userModel() +} + +type userSetParam struct { + data builder.Field +} + +func (userSetParam) settable() {} + +func (p userSetParam) field() builder.Field { + return p.data +} + +func (p userSetParam) userModel() {} + +type UserWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + idField() +} + +type UserWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + idField() +} + +type userWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaIDSetParam) userModel() {} + +func (p userWithPrismaIDSetParam) idField() {} + +type UserWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + idField() +} + +type userWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaIDEqualsParam) userModel() {} + +func (p userWithPrismaIDEqualsParam) idField() {} + +func (userWithPrismaIDSetParam) settable() {} +func (userWithPrismaIDEqualsParam) equals() {} + +type userWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaIDEqualsUniqueParam) userModel() {} +func (p userWithPrismaIDEqualsUniqueParam) idField() {} + +func (userWithPrismaIDEqualsUniqueParam) unique() {} +func (userWithPrismaIDEqualsUniqueParam) equals() {} + +type UserWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + createdAtField() +} + +type UserWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + createdAtField() +} + +type userWithPrismaCreatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaCreatedAtSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaCreatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaCreatedAtSetParam) userModel() {} + +func (p userWithPrismaCreatedAtSetParam) createdAtField() {} + +type UserWithPrismaCreatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + createdAtField() +} + +type userWithPrismaCreatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaCreatedAtEqualsParam) userModel() {} + +func (p userWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (userWithPrismaCreatedAtSetParam) settable() {} +func (userWithPrismaCreatedAtEqualsParam) equals() {} + +type userWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaCreatedAtEqualsUniqueParam) userModel() {} +func (p userWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (userWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (userWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type UserWithPrismaUpdatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + updatedAtField() +} + +type UserWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + updatedAtField() +} + +type userWithPrismaUpdatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaUpdatedAtSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaUpdatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaUpdatedAtSetParam) userModel() {} + +func (p userWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type UserWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + updatedAtField() +} + +type userWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaUpdatedAtEqualsParam) userModel() {} + +func (p userWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (userWithPrismaUpdatedAtSetParam) settable() {} +func (userWithPrismaUpdatedAtEqualsParam) equals() {} + +type userWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaUpdatedAtEqualsUniqueParam) userModel() {} +func (p userWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (userWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (userWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type UserWithPrismaDeletedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + deletedAtField() +} + +type UserWithPrismaDeletedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + deletedAtField() +} + +type userWithPrismaDeletedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaDeletedAtSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaDeletedAtSetParam) getQuery() builder.Query { + return p.query } func (p userWithPrismaDeletedAtSetParam) userModel() {} -func (p userWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p userWithPrismaDeletedAtSetParam) deletedAtField() {} + +type UserWithPrismaDeletedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + deletedAtField() +} + +type userWithPrismaDeletedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaDeletedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaDeletedAtEqualsParam) userModel() {} + +func (p userWithPrismaDeletedAtEqualsParam) deletedAtField() {} + +func (userWithPrismaDeletedAtSetParam) settable() {} +func (userWithPrismaDeletedAtEqualsParam) equals() {} + +type userWithPrismaDeletedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaDeletedAtEqualsUniqueParam) userModel() {} +func (p userWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} + +func (userWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (userWithPrismaDeletedAtEqualsUniqueParam) equals() {} + +type UserWithPrismaEmailEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + emailField() +} + +type UserWithPrismaEmailSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + emailField() +} + +type userWithPrismaEmailSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaEmailSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaEmailSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaEmailSetParam) userModel() {} + +func (p userWithPrismaEmailSetParam) emailField() {} + +type UserWithPrismaEmailWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + emailField() +} + +type userWithPrismaEmailEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaEmailEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaEmailEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaEmailEqualsParam) userModel() {} + +func (p userWithPrismaEmailEqualsParam) emailField() {} + +func (userWithPrismaEmailSetParam) settable() {} +func (userWithPrismaEmailEqualsParam) equals() {} + +type userWithPrismaEmailEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaEmailEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaEmailEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaEmailEqualsUniqueParam) userModel() {} +func (p userWithPrismaEmailEqualsUniqueParam) emailField() {} + +func (userWithPrismaEmailEqualsUniqueParam) unique() {} +func (userWithPrismaEmailEqualsUniqueParam) equals() {} + +type UserWithPrismaEmailVerifiedEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + emailVerifiedField() +} + +type UserWithPrismaEmailVerifiedSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + emailVerifiedField() +} + +type userWithPrismaEmailVerifiedSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaEmailVerifiedSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaEmailVerifiedSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaEmailVerifiedSetParam) userModel() {} + +func (p userWithPrismaEmailVerifiedSetParam) emailVerifiedField() {} + +type UserWithPrismaEmailVerifiedWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + emailVerifiedField() +} + +type userWithPrismaEmailVerifiedEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaEmailVerifiedEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaEmailVerifiedEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaEmailVerifiedEqualsParam) userModel() {} + +func (p userWithPrismaEmailVerifiedEqualsParam) emailVerifiedField() {} + +func (userWithPrismaEmailVerifiedSetParam) settable() {} +func (userWithPrismaEmailVerifiedEqualsParam) equals() {} + +type userWithPrismaEmailVerifiedEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaEmailVerifiedEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaEmailVerifiedEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaEmailVerifiedEqualsUniqueParam) userModel() {} +func (p userWithPrismaEmailVerifiedEqualsUniqueParam) emailVerifiedField() {} + +func (userWithPrismaEmailVerifiedEqualsUniqueParam) unique() {} +func (userWithPrismaEmailVerifiedEqualsUniqueParam) equals() {} + +type UserWithPrismaOauthProvidersEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + oauthProvidersField() +} + +type UserWithPrismaOauthProvidersSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + oauthProvidersField() +} + +type userWithPrismaOauthProvidersSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaOauthProvidersSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaOauthProvidersSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaOauthProvidersSetParam) userModel() {} + +func (p userWithPrismaOauthProvidersSetParam) oauthProvidersField() {} + +type UserWithPrismaOauthProvidersWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + oauthProvidersField() +} + +type userWithPrismaOauthProvidersEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaOauthProvidersEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaOauthProvidersEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaOauthProvidersEqualsParam) userModel() {} + +func (p userWithPrismaOauthProvidersEqualsParam) oauthProvidersField() {} + +func (userWithPrismaOauthProvidersSetParam) settable() {} +func (userWithPrismaOauthProvidersEqualsParam) equals() {} + +type userWithPrismaOauthProvidersEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaOauthProvidersEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaOauthProvidersEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaOauthProvidersEqualsUniqueParam) userModel() {} +func (p userWithPrismaOauthProvidersEqualsUniqueParam) oauthProvidersField() {} + +func (userWithPrismaOauthProvidersEqualsUniqueParam) unique() {} +func (userWithPrismaOauthProvidersEqualsUniqueParam) equals() {} + +type UserWithPrismaPasswordEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + passwordField() +} + +type UserWithPrismaPasswordSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + passwordField() +} + +type userWithPrismaPasswordSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaPasswordSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaPasswordSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaPasswordSetParam) userModel() {} + +func (p userWithPrismaPasswordSetParam) passwordField() {} + +type UserWithPrismaPasswordWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + passwordField() +} + +type userWithPrismaPasswordEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaPasswordEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaPasswordEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaPasswordEqualsParam) userModel() {} + +func (p userWithPrismaPasswordEqualsParam) passwordField() {} + +func (userWithPrismaPasswordSetParam) settable() {} +func (userWithPrismaPasswordEqualsParam) equals() {} + +type userWithPrismaPasswordEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaPasswordEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaPasswordEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaPasswordEqualsUniqueParam) userModel() {} +func (p userWithPrismaPasswordEqualsUniqueParam) passwordField() {} + +func (userWithPrismaPasswordEqualsUniqueParam) unique() {} +func (userWithPrismaPasswordEqualsUniqueParam) equals() {} + +type UserWithPrismaNameEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + nameField() +} + +type UserWithPrismaNameSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + nameField() +} + +type userWithPrismaNameSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaNameSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaNameSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaNameSetParam) userModel() {} + +func (p userWithPrismaNameSetParam) nameField() {} + +type UserWithPrismaNameWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + nameField() +} + +type userWithPrismaNameEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaNameEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaNameEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaNameEqualsParam) userModel() {} + +func (p userWithPrismaNameEqualsParam) nameField() {} + +func (userWithPrismaNameSetParam) settable() {} +func (userWithPrismaNameEqualsParam) equals() {} + +type userWithPrismaNameEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaNameEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaNameEqualsUniqueParam) userModel() {} +func (p userWithPrismaNameEqualsUniqueParam) nameField() {} + +func (userWithPrismaNameEqualsUniqueParam) unique() {} +func (userWithPrismaNameEqualsUniqueParam) equals() {} + +type UserWithPrismaSessionsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + sessionsField() +} + +type UserWithPrismaSessionsSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + sessionsField() +} + +type userWithPrismaSessionsSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaSessionsSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaSessionsSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaSessionsSetParam) userModel() {} + +func (p userWithPrismaSessionsSetParam) sessionsField() {} + +type UserWithPrismaSessionsWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + sessionsField() +} + +type userWithPrismaSessionsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaSessionsEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaSessionsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaSessionsEqualsParam) userModel() {} + +func (p userWithPrismaSessionsEqualsParam) sessionsField() {} + +func (userWithPrismaSessionsSetParam) settable() {} +func (userWithPrismaSessionsEqualsParam) equals() {} + +type userWithPrismaSessionsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaSessionsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaSessionsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaSessionsEqualsUniqueParam) userModel() {} +func (p userWithPrismaSessionsEqualsUniqueParam) sessionsField() {} + +func (userWithPrismaSessionsEqualsUniqueParam) unique() {} +func (userWithPrismaSessionsEqualsUniqueParam) equals() {} + +type UserWithPrismaMembershipsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userModel() + membershipsField() +} + +type UserWithPrismaMembershipsSetParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + membershipsField() +} + +type userWithPrismaMembershipsSetParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaMembershipsSetParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaMembershipsSetParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaMembershipsSetParam) userModel() {} + +func (p userWithPrismaMembershipsSetParam) membershipsField() {} + +type UserWithPrismaMembershipsWhereParam interface { + field() builder.Field + getQuery() builder.Query + userModel() + membershipsField() +} + +type userWithPrismaMembershipsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaMembershipsEqualsParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaMembershipsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaMembershipsEqualsParam) userModel() {} + +func (p userWithPrismaMembershipsEqualsParam) membershipsField() {} + +func (userWithPrismaMembershipsSetParam) settable() {} +func (userWithPrismaMembershipsEqualsParam) equals() {} + +type userWithPrismaMembershipsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userWithPrismaMembershipsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userWithPrismaMembershipsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userWithPrismaMembershipsEqualsUniqueParam) userModel() {} +func (p userWithPrismaMembershipsEqualsUniqueParam) membershipsField() {} + +func (userWithPrismaMembershipsEqualsUniqueParam) unique() {} +func (userWithPrismaMembershipsEqualsUniqueParam) equals() {} + +type userOAuthActions struct { + // client holds the prisma client + client *PrismaClient +} + +var userOAuthOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "userId"}, + {Name: "provider"}, + {Name: "providerUserId"}, + {Name: "accessToken"}, + {Name: "refreshToken"}, + {Name: "expiresAt"}, +} + +type UserOAuthRelationWith interface { + getQuery() builder.Query + with() + userOAuthRelation() +} + +type UserOAuthWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() +} + +type userOAuthDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthDefaultParam) field() builder.Field { + return p.data +} + +func (p userOAuthDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthDefaultParam) userOAuthModel() {} + +type UserOAuthOrderByParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() +} + +type userOAuthOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthOrderByParam) field() builder.Field { + return p.data +} + +func (p userOAuthOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthOrderByParam) userOAuthModel() {} + +type UserOAuthCursorParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + isCursor() +} + +type userOAuthCursorParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthCursorParam) field() builder.Field { + return p.data +} + +func (p userOAuthCursorParam) isCursor() {} + +func (p userOAuthCursorParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthCursorParam) userOAuthModel() {} + +type UserOAuthParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + userOAuthModel() +} + +type userOAuthParamUnique struct { + data builder.Field + query builder.Query +} + +func (p userOAuthParamUnique) userOAuthModel() {} + +func (userOAuthParamUnique) unique() {} + +func (p userOAuthParamUnique) field() builder.Field { + return p.data +} + +func (p userOAuthParamUnique) getQuery() builder.Query { + return p.query +} + +type UserOAuthEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() +} + +type userOAuthEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthEqualsParam) userOAuthModel() {} + +func (userOAuthEqualsParam) equals() {} + +func (p userOAuthEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthEqualsParam) getQuery() builder.Query { + return p.query +} + +type UserOAuthEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + userOAuthModel() +} + +type userOAuthEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthEqualsUniqueParam) userOAuthModel() {} + +func (userOAuthEqualsUniqueParam) unique() {} +func (userOAuthEqualsUniqueParam) equals() {} + +func (p userOAuthEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type UserOAuthSetParam interface { + field() builder.Field + settable() + userOAuthModel() +} + +type userOAuthSetParam struct { + data builder.Field +} + +func (userOAuthSetParam) settable() {} + +func (p userOAuthSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthSetParam) userOAuthModel() {} + +type UserOAuthWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + idField() +} + +type UserOAuthWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + idField() +} + +type userOAuthWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaIDSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaIDSetParam) idField() {} + +type UserOAuthWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + idField() +} + +type userOAuthWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaIDEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaIDEqualsParam) idField() {} + +func (userOAuthWithPrismaIDSetParam) settable() {} +func (userOAuthWithPrismaIDEqualsParam) equals() {} + +type userOAuthWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaIDEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaIDEqualsUniqueParam) idField() {} + +func (userOAuthWithPrismaIDEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaIDEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + createdAtField() +} + +type UserOAuthWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + createdAtField() +} + +type userOAuthWithPrismaCreatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaCreatedAtSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaCreatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaCreatedAtSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaCreatedAtSetParam) createdAtField() {} + +type UserOAuthWithPrismaCreatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + createdAtField() +} + +type userOAuthWithPrismaCreatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaCreatedAtEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (userOAuthWithPrismaCreatedAtSetParam) settable() {} +func (userOAuthWithPrismaCreatedAtEqualsParam) equals() {} + +type userOAuthWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaCreatedAtEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (userOAuthWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaUpdatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + updatedAtField() +} + +type UserOAuthWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + updatedAtField() +} + +type userOAuthWithPrismaUpdatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUpdatedAtSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUpdatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUpdatedAtSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type UserOAuthWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + updatedAtField() +} + +type userOAuthWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUpdatedAtEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (userOAuthWithPrismaUpdatedAtSetParam) settable() {} +func (userOAuthWithPrismaUpdatedAtEqualsParam) equals() {} + +type userOAuthWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUpdatedAtEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (userOAuthWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaUserEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + userField() +} + +type UserOAuthWithPrismaUserSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + userField() +} + +type userOAuthWithPrismaUserSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUserSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUserSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUserSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaUserSetParam) userField() {} + +type UserOAuthWithPrismaUserWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + userField() +} + +type userOAuthWithPrismaUserEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUserEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUserEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUserEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaUserEqualsParam) userField() {} + +func (userOAuthWithPrismaUserSetParam) settable() {} +func (userOAuthWithPrismaUserEqualsParam) equals() {} + +type userOAuthWithPrismaUserEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUserEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUserEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUserEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaUserEqualsUniqueParam) userField() {} + +func (userOAuthWithPrismaUserEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaUserEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaUserIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + userIDField() +} + +type UserOAuthWithPrismaUserIDSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + userIDField() +} + +type userOAuthWithPrismaUserIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUserIDSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUserIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUserIDSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaUserIDSetParam) userIDField() {} + +type UserOAuthWithPrismaUserIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + userIDField() +} + +type userOAuthWithPrismaUserIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUserIDEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUserIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUserIDEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaUserIDEqualsParam) userIDField() {} + +func (userOAuthWithPrismaUserIDSetParam) settable() {} +func (userOAuthWithPrismaUserIDEqualsParam) equals() {} + +type userOAuthWithPrismaUserIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaUserIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaUserIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaUserIDEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaUserIDEqualsUniqueParam) userIDField() {} + +func (userOAuthWithPrismaUserIDEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaUserIDEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaProviderEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + providerField() +} + +type UserOAuthWithPrismaProviderSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + providerField() +} + +type userOAuthWithPrismaProviderSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaProviderSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaProviderSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaProviderSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaProviderSetParam) providerField() {} + +type UserOAuthWithPrismaProviderWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + providerField() +} + +type userOAuthWithPrismaProviderEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaProviderEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaProviderEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaProviderEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaProviderEqualsParam) providerField() {} + +func (userOAuthWithPrismaProviderSetParam) settable() {} +func (userOAuthWithPrismaProviderEqualsParam) equals() {} + +type userOAuthWithPrismaProviderEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaProviderEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaProviderEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaProviderEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaProviderEqualsUniqueParam) providerField() {} + +func (userOAuthWithPrismaProviderEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaProviderEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaProviderUserIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + providerUserIDField() +} + +type UserOAuthWithPrismaProviderUserIDSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + providerUserIDField() +} + +type userOAuthWithPrismaProviderUserIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaProviderUserIDSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaProviderUserIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaProviderUserIDSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaProviderUserIDSetParam) providerUserIDField() {} + +type UserOAuthWithPrismaProviderUserIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + providerUserIDField() +} + +type userOAuthWithPrismaProviderUserIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaProviderUserIDEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaProviderUserIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaProviderUserIDEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaProviderUserIDEqualsParam) providerUserIDField() {} + +func (userOAuthWithPrismaProviderUserIDSetParam) settable() {} +func (userOAuthWithPrismaProviderUserIDEqualsParam) equals() {} + +type userOAuthWithPrismaProviderUserIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaProviderUserIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaProviderUserIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaProviderUserIDEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaProviderUserIDEqualsUniqueParam) providerUserIDField() {} + +func (userOAuthWithPrismaProviderUserIDEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaProviderUserIDEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaAccessTokenEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + accessTokenField() +} + +type UserOAuthWithPrismaAccessTokenSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + accessTokenField() +} + +type userOAuthWithPrismaAccessTokenSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaAccessTokenSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaAccessTokenSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaAccessTokenSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaAccessTokenSetParam) accessTokenField() {} + +type UserOAuthWithPrismaAccessTokenWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + accessTokenField() +} + +type userOAuthWithPrismaAccessTokenEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaAccessTokenEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaAccessTokenEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaAccessTokenEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaAccessTokenEqualsParam) accessTokenField() {} + +func (userOAuthWithPrismaAccessTokenSetParam) settable() {} +func (userOAuthWithPrismaAccessTokenEqualsParam) equals() {} + +type userOAuthWithPrismaAccessTokenEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaAccessTokenEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaAccessTokenEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaAccessTokenEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaAccessTokenEqualsUniqueParam) accessTokenField() {} + +func (userOAuthWithPrismaAccessTokenEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaAccessTokenEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaRefreshTokenEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + refreshTokenField() +} + +type UserOAuthWithPrismaRefreshTokenSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + refreshTokenField() +} + +type userOAuthWithPrismaRefreshTokenSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaRefreshTokenSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaRefreshTokenSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaRefreshTokenSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaRefreshTokenSetParam) refreshTokenField() {} + +type UserOAuthWithPrismaRefreshTokenWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + refreshTokenField() +} + +type userOAuthWithPrismaRefreshTokenEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaRefreshTokenEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaRefreshTokenEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaRefreshTokenEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaRefreshTokenEqualsParam) refreshTokenField() {} + +func (userOAuthWithPrismaRefreshTokenSetParam) settable() {} +func (userOAuthWithPrismaRefreshTokenEqualsParam) equals() {} + +type userOAuthWithPrismaRefreshTokenEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaRefreshTokenEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaRefreshTokenEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaRefreshTokenEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaRefreshTokenEqualsUniqueParam) refreshTokenField() {} + +func (userOAuthWithPrismaRefreshTokenEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaRefreshTokenEqualsUniqueParam) equals() {} + +type UserOAuthWithPrismaExpiresAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userOAuthModel() + expiresAtField() +} + +type UserOAuthWithPrismaExpiresAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + expiresAtField() +} + +type userOAuthWithPrismaExpiresAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaExpiresAtSetParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaExpiresAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaExpiresAtSetParam) userOAuthModel() {} + +func (p userOAuthWithPrismaExpiresAtSetParam) expiresAtField() {} + +type UserOAuthWithPrismaExpiresAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userOAuthModel() + expiresAtField() +} + +type userOAuthWithPrismaExpiresAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaExpiresAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaExpiresAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaExpiresAtEqualsParam) userOAuthModel() {} + +func (p userOAuthWithPrismaExpiresAtEqualsParam) expiresAtField() {} + +func (userOAuthWithPrismaExpiresAtSetParam) settable() {} +func (userOAuthWithPrismaExpiresAtEqualsParam) equals() {} + +type userOAuthWithPrismaExpiresAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userOAuthWithPrismaExpiresAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userOAuthWithPrismaExpiresAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userOAuthWithPrismaExpiresAtEqualsUniqueParam) userOAuthModel() {} +func (p userOAuthWithPrismaExpiresAtEqualsUniqueParam) expiresAtField() {} + +func (userOAuthWithPrismaExpiresAtEqualsUniqueParam) unique() {} +func (userOAuthWithPrismaExpiresAtEqualsUniqueParam) equals() {} + +type userPasswordActions struct { + // client holds the prisma client + client *PrismaClient +} + +var userPasswordOutput = []builder.Output{ + {Name: "hash"}, + {Name: "userId"}, +} + +type UserPasswordRelationWith interface { + getQuery() builder.Query + with() + userPasswordRelation() +} + +type UserPasswordWhereParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() +} + +type userPasswordDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordDefaultParam) field() builder.Field { + return p.data +} + +func (p userPasswordDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordDefaultParam) userPasswordModel() {} + +type UserPasswordOrderByParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() +} + +type userPasswordOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordOrderByParam) field() builder.Field { + return p.data +} + +func (p userPasswordOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordOrderByParam) userPasswordModel() {} + +type UserPasswordCursorParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() + isCursor() +} + +type userPasswordCursorParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordCursorParam) field() builder.Field { + return p.data +} + +func (p userPasswordCursorParam) isCursor() {} + +func (p userPasswordCursorParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordCursorParam) userPasswordModel() {} + +type UserPasswordParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + userPasswordModel() +} + +type userPasswordParamUnique struct { + data builder.Field + query builder.Query +} + +func (p userPasswordParamUnique) userPasswordModel() {} + +func (userPasswordParamUnique) unique() {} + +func (p userPasswordParamUnique) field() builder.Field { + return p.data +} + +func (p userPasswordParamUnique) getQuery() builder.Query { + return p.query +} + +type UserPasswordEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userPasswordModel() +} + +type userPasswordEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordEqualsParam) userPasswordModel() {} + +func (userPasswordEqualsParam) equals() {} + +func (p userPasswordEqualsParam) field() builder.Field { + return p.data +} + +func (p userPasswordEqualsParam) getQuery() builder.Query { + return p.query +} + +type UserPasswordEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + userPasswordModel() +} + +type userPasswordEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordEqualsUniqueParam) userPasswordModel() {} + +func (userPasswordEqualsUniqueParam) unique() {} +func (userPasswordEqualsUniqueParam) equals() {} + +func (p userPasswordEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userPasswordEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type UserPasswordSetParam interface { + field() builder.Field + settable() + userPasswordModel() +} + +type userPasswordSetParam struct { + data builder.Field +} + +func (userPasswordSetParam) settable() {} + +func (p userPasswordSetParam) field() builder.Field { + return p.data +} + +func (p userPasswordSetParam) userPasswordModel() {} + +type UserPasswordWithPrismaHashEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userPasswordModel() + hashField() +} + +type UserPasswordWithPrismaHashSetParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() + hashField() +} + +type userPasswordWithPrismaHashSetParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaHashSetParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaHashSetParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaHashSetParam) userPasswordModel() {} + +func (p userPasswordWithPrismaHashSetParam) hashField() {} + +type UserPasswordWithPrismaHashWhereParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() + hashField() +} + +type userPasswordWithPrismaHashEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaHashEqualsParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaHashEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaHashEqualsParam) userPasswordModel() {} + +func (p userPasswordWithPrismaHashEqualsParam) hashField() {} + +func (userPasswordWithPrismaHashSetParam) settable() {} +func (userPasswordWithPrismaHashEqualsParam) equals() {} + +type userPasswordWithPrismaHashEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaHashEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaHashEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaHashEqualsUniqueParam) userPasswordModel() {} +func (p userPasswordWithPrismaHashEqualsUniqueParam) hashField() {} + +func (userPasswordWithPrismaHashEqualsUniqueParam) unique() {} +func (userPasswordWithPrismaHashEqualsUniqueParam) equals() {} + +type UserPasswordWithPrismaUserEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userPasswordModel() + userField() +} + +type UserPasswordWithPrismaUserSetParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() + userField() +} + +type userPasswordWithPrismaUserSetParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaUserSetParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaUserSetParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaUserSetParam) userPasswordModel() {} + +func (p userPasswordWithPrismaUserSetParam) userField() {} + +type UserPasswordWithPrismaUserWhereParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() + userField() +} + +type userPasswordWithPrismaUserEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaUserEqualsParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaUserEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaUserEqualsParam) userPasswordModel() {} + +func (p userPasswordWithPrismaUserEqualsParam) userField() {} + +func (userPasswordWithPrismaUserSetParam) settable() {} +func (userPasswordWithPrismaUserEqualsParam) equals() {} + +type userPasswordWithPrismaUserEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaUserEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaUserEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaUserEqualsUniqueParam) userPasswordModel() {} +func (p userPasswordWithPrismaUserEqualsUniqueParam) userField() {} + +func (userPasswordWithPrismaUserEqualsUniqueParam) unique() {} +func (userPasswordWithPrismaUserEqualsUniqueParam) equals() {} + +type UserPasswordWithPrismaUserIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userPasswordModel() + userIDField() +} + +type UserPasswordWithPrismaUserIDSetParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() + userIDField() +} + +type userPasswordWithPrismaUserIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaUserIDSetParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaUserIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaUserIDSetParam) userPasswordModel() {} + +func (p userPasswordWithPrismaUserIDSetParam) userIDField() {} + +type UserPasswordWithPrismaUserIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + userPasswordModel() + userIDField() +} + +type userPasswordWithPrismaUserIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaUserIDEqualsParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaUserIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaUserIDEqualsParam) userPasswordModel() {} + +func (p userPasswordWithPrismaUserIDEqualsParam) userIDField() {} + +func (userPasswordWithPrismaUserIDSetParam) settable() {} +func (userPasswordWithPrismaUserIDEqualsParam) equals() {} + +type userPasswordWithPrismaUserIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userPasswordWithPrismaUserIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userPasswordWithPrismaUserIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userPasswordWithPrismaUserIDEqualsUniqueParam) userPasswordModel() {} +func (p userPasswordWithPrismaUserIDEqualsUniqueParam) userIDField() {} + +func (userPasswordWithPrismaUserIDEqualsUniqueParam) unique() {} +func (userPasswordWithPrismaUserIDEqualsUniqueParam) equals() {} + +type userSessionActions struct { + // client holds the prisma client + client *PrismaClient +} + +var userSessionOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "userId"}, + {Name: "data"}, + {Name: "expiresAt"}, +} + +type UserSessionRelationWith interface { + getQuery() builder.Query + with() + userSessionRelation() +} + +type UserSessionWhereParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() +} + +type userSessionDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionDefaultParam) field() builder.Field { + return p.data +} + +func (p userSessionDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionDefaultParam) userSessionModel() {} + +type UserSessionOrderByParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() +} + +type userSessionOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionOrderByParam) field() builder.Field { + return p.data +} + +func (p userSessionOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionOrderByParam) userSessionModel() {} + +type UserSessionCursorParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + isCursor() +} + +type userSessionCursorParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionCursorParam) field() builder.Field { + return p.data +} + +func (p userSessionCursorParam) isCursor() {} + +func (p userSessionCursorParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionCursorParam) userSessionModel() {} + +type UserSessionParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + userSessionModel() +} + +type userSessionParamUnique struct { + data builder.Field + query builder.Query +} + +func (p userSessionParamUnique) userSessionModel() {} + +func (userSessionParamUnique) unique() {} + +func (p userSessionParamUnique) field() builder.Field { + return p.data +} + +func (p userSessionParamUnique) getQuery() builder.Query { + return p.query +} + +type UserSessionEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userSessionModel() +} + +type userSessionEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionEqualsParam) userSessionModel() {} + +func (userSessionEqualsParam) equals() {} + +func (p userSessionEqualsParam) field() builder.Field { + return p.data +} + +func (p userSessionEqualsParam) getQuery() builder.Query { + return p.query +} + +type UserSessionEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + userSessionModel() +} + +type userSessionEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionEqualsUniqueParam) userSessionModel() {} + +func (userSessionEqualsUniqueParam) unique() {} +func (userSessionEqualsUniqueParam) equals() {} + +func (p userSessionEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userSessionEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type UserSessionSetParam interface { + field() builder.Field + settable() + userSessionModel() +} + +type userSessionSetParam struct { + data builder.Field +} + +func (userSessionSetParam) settable() {} + +func (p userSessionSetParam) field() builder.Field { + return p.data +} + +func (p userSessionSetParam) userSessionModel() {} + +type UserSessionWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userSessionModel() + idField() +} + +type UserSessionWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + idField() +} + +type userSessionWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaIDSetParam) userSessionModel() {} + +func (p userSessionWithPrismaIDSetParam) idField() {} + +type UserSessionWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + idField() +} + +type userSessionWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaIDEqualsParam) userSessionModel() {} + +func (p userSessionWithPrismaIDEqualsParam) idField() {} + +func (userSessionWithPrismaIDSetParam) settable() {} +func (userSessionWithPrismaIDEqualsParam) equals() {} + +type userSessionWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaIDEqualsUniqueParam) userSessionModel() {} +func (p userSessionWithPrismaIDEqualsUniqueParam) idField() {} + +func (userSessionWithPrismaIDEqualsUniqueParam) unique() {} +func (userSessionWithPrismaIDEqualsUniqueParam) equals() {} + +type UserSessionWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userSessionModel() + createdAtField() +} + +type UserSessionWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + createdAtField() +} + +type userSessionWithPrismaCreatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaCreatedAtSetParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaCreatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaCreatedAtSetParam) userSessionModel() {} + +func (p userSessionWithPrismaCreatedAtSetParam) createdAtField() {} + +type UserSessionWithPrismaCreatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + createdAtField() +} + +type userSessionWithPrismaCreatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaCreatedAtEqualsParam) userSessionModel() {} + +func (p userSessionWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (userSessionWithPrismaCreatedAtSetParam) settable() {} +func (userSessionWithPrismaCreatedAtEqualsParam) equals() {} + +type userSessionWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaCreatedAtEqualsUniqueParam) userSessionModel() {} +func (p userSessionWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (userSessionWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (userSessionWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type UserSessionWithPrismaUpdatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userSessionModel() + updatedAtField() +} + +type UserSessionWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + updatedAtField() +} + +type userSessionWithPrismaUpdatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUpdatedAtSetParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUpdatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUpdatedAtSetParam) userSessionModel() {} + +func (p userSessionWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type UserSessionWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + updatedAtField() +} + +type userSessionWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUpdatedAtEqualsParam) userSessionModel() {} + +func (p userSessionWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (userSessionWithPrismaUpdatedAtSetParam) settable() {} +func (userSessionWithPrismaUpdatedAtEqualsParam) equals() {} + +type userSessionWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUpdatedAtEqualsUniqueParam) userSessionModel() {} +func (p userSessionWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (userSessionWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (userSessionWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type UserSessionWithPrismaUserEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userSessionModel() + userField() +} + +type UserSessionWithPrismaUserSetParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + userField() +} + +type userSessionWithPrismaUserSetParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUserSetParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUserSetParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUserSetParam) userSessionModel() {} + +func (p userSessionWithPrismaUserSetParam) userField() {} + +type UserSessionWithPrismaUserWhereParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + userField() +} + +type userSessionWithPrismaUserEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUserEqualsParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUserEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUserEqualsParam) userSessionModel() {} + +func (p userSessionWithPrismaUserEqualsParam) userField() {} + +func (userSessionWithPrismaUserSetParam) settable() {} +func (userSessionWithPrismaUserEqualsParam) equals() {} + +type userSessionWithPrismaUserEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUserEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUserEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUserEqualsUniqueParam) userSessionModel() {} +func (p userSessionWithPrismaUserEqualsUniqueParam) userField() {} + +func (userSessionWithPrismaUserEqualsUniqueParam) unique() {} +func (userSessionWithPrismaUserEqualsUniqueParam) equals() {} + +type UserSessionWithPrismaUserIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userSessionModel() + userIDField() +} + +type UserSessionWithPrismaUserIDSetParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + userIDField() +} + +type userSessionWithPrismaUserIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUserIDSetParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUserIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUserIDSetParam) userSessionModel() {} + +func (p userSessionWithPrismaUserIDSetParam) userIDField() {} + +type UserSessionWithPrismaUserIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + userIDField() +} + +type userSessionWithPrismaUserIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUserIDEqualsParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUserIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUserIDEqualsParam) userSessionModel() {} + +func (p userSessionWithPrismaUserIDEqualsParam) userIDField() {} + +func (userSessionWithPrismaUserIDSetParam) settable() {} +func (userSessionWithPrismaUserIDEqualsParam) equals() {} + +type userSessionWithPrismaUserIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaUserIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaUserIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaUserIDEqualsUniqueParam) userSessionModel() {} +func (p userSessionWithPrismaUserIDEqualsUniqueParam) userIDField() {} + +func (userSessionWithPrismaUserIDEqualsUniqueParam) unique() {} +func (userSessionWithPrismaUserIDEqualsUniqueParam) equals() {} + +type UserSessionWithPrismaDataEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userSessionModel() + dataField() +} + +type UserSessionWithPrismaDataSetParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + dataField() +} + +type userSessionWithPrismaDataSetParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaDataSetParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaDataSetParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaDataSetParam) userSessionModel() {} + +func (p userSessionWithPrismaDataSetParam) dataField() {} + +type UserSessionWithPrismaDataWhereParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + dataField() +} + +type userSessionWithPrismaDataEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaDataEqualsParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaDataEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaDataEqualsParam) userSessionModel() {} + +func (p userSessionWithPrismaDataEqualsParam) dataField() {} + +func (userSessionWithPrismaDataSetParam) settable() {} +func (userSessionWithPrismaDataEqualsParam) equals() {} + +type userSessionWithPrismaDataEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaDataEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaDataEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaDataEqualsUniqueParam) userSessionModel() {} +func (p userSessionWithPrismaDataEqualsUniqueParam) dataField() {} + +func (userSessionWithPrismaDataEqualsUniqueParam) unique() {} +func (userSessionWithPrismaDataEqualsUniqueParam) equals() {} + +type UserSessionWithPrismaExpiresAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + userSessionModel() + expiresAtField() +} + +type UserSessionWithPrismaExpiresAtSetParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + expiresAtField() +} + +type userSessionWithPrismaExpiresAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaExpiresAtSetParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaExpiresAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaExpiresAtSetParam) userSessionModel() {} + +func (p userSessionWithPrismaExpiresAtSetParam) expiresAtField() {} + +type UserSessionWithPrismaExpiresAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + userSessionModel() + expiresAtField() +} + +type userSessionWithPrismaExpiresAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaExpiresAtEqualsParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaExpiresAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaExpiresAtEqualsParam) userSessionModel() {} + +func (p userSessionWithPrismaExpiresAtEqualsParam) expiresAtField() {} + +func (userSessionWithPrismaExpiresAtSetParam) settable() {} +func (userSessionWithPrismaExpiresAtEqualsParam) equals() {} + +type userSessionWithPrismaExpiresAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p userSessionWithPrismaExpiresAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p userSessionWithPrismaExpiresAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p userSessionWithPrismaExpiresAtEqualsUniqueParam) userSessionModel() {} +func (p userSessionWithPrismaExpiresAtEqualsUniqueParam) expiresAtField() {} + +func (userSessionWithPrismaExpiresAtEqualsUniqueParam) unique() {} +func (userSessionWithPrismaExpiresAtEqualsUniqueParam) equals() {} + +type webhookWorkerActions struct { + // client holds the prisma client + client *PrismaClient +} + +var webhookWorkerOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "name"}, + {Name: "secret"}, + {Name: "url"}, + {Name: "tokenValue"}, + {Name: "deleted"}, + {Name: "tokenId"}, + {Name: "tenantId"}, +} + +type WebhookWorkerRelationWith interface { + getQuery() builder.Query + with() + webhookWorkerRelation() +} + +type WebhookWorkerWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() +} + +type webhookWorkerDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerDefaultParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerDefaultParam) webhookWorkerModel() {} + +type WebhookWorkerOrderByParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() +} + +type webhookWorkerOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerOrderByParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerOrderByParam) webhookWorkerModel() {} + +type WebhookWorkerCursorParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + isCursor() +} + +type webhookWorkerCursorParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerCursorParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerCursorParam) isCursor() {} + +func (p webhookWorkerCursorParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerCursorParam) webhookWorkerModel() {} + +type WebhookWorkerParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + webhookWorkerModel() +} + +type webhookWorkerParamUnique struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerParamUnique) webhookWorkerModel() {} + +func (webhookWorkerParamUnique) unique() {} + +func (p webhookWorkerParamUnique) field() builder.Field { + return p.data +} + +func (p webhookWorkerParamUnique) getQuery() builder.Query { + return p.query +} + +type WebhookWorkerEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() +} + +type webhookWorkerEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerEqualsParam) webhookWorkerModel() {} + +func (webhookWorkerEqualsParam) equals() {} + +func (p webhookWorkerEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerEqualsParam) getQuery() builder.Query { + return p.query +} + +type WebhookWorkerEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + webhookWorkerModel() +} + +type webhookWorkerEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerEqualsUniqueParam) webhookWorkerModel() {} + +func (webhookWorkerEqualsUniqueParam) unique() {} +func (webhookWorkerEqualsUniqueParam) equals() {} + +func (p webhookWorkerEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type WebhookWorkerSetParam interface { + field() builder.Field + settable() + webhookWorkerModel() +} + +type webhookWorkerSetParam struct { + data builder.Field +} + +func (webhookWorkerSetParam) settable() {} + +func (p webhookWorkerSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerSetParam) webhookWorkerModel() {} + +type WebhookWorkerWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + idField() +} + +type WebhookWorkerWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + idField() +} + +type webhookWorkerWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaIDSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaIDSetParam) idField() {} + +type WebhookWorkerWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + idField() +} + +type webhookWorkerWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaIDEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaIDEqualsParam) idField() {} + +func (webhookWorkerWithPrismaIDSetParam) settable() {} +func (webhookWorkerWithPrismaIDEqualsParam) equals() {} + +type webhookWorkerWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaIDEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaIDEqualsUniqueParam) idField() {} + +func (webhookWorkerWithPrismaIDEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaIDEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + createdAtField() +} + +type WebhookWorkerWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + createdAtField() +} + +type webhookWorkerWithPrismaCreatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaCreatedAtSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaCreatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaCreatedAtSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaCreatedAtSetParam) createdAtField() {} + +type WebhookWorkerWithPrismaCreatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + createdAtField() +} + +type webhookWorkerWithPrismaCreatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaCreatedAtEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (webhookWorkerWithPrismaCreatedAtSetParam) settable() {} +func (webhookWorkerWithPrismaCreatedAtEqualsParam) equals() {} + +type webhookWorkerWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaUpdatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + updatedAtField() +} + +type WebhookWorkerWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + updatedAtField() +} + +type webhookWorkerWithPrismaUpdatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaUpdatedAtSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaUpdatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaUpdatedAtSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type WebhookWorkerWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + updatedAtField() +} + +type webhookWorkerWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaUpdatedAtEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (webhookWorkerWithPrismaUpdatedAtSetParam) settable() {} +func (webhookWorkerWithPrismaUpdatedAtEqualsParam) equals() {} + +type webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaNameEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + nameField() +} + +type WebhookWorkerWithPrismaNameSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + nameField() +} + +type webhookWorkerWithPrismaNameSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaNameSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaNameSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaNameSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaNameSetParam) nameField() {} + +type WebhookWorkerWithPrismaNameWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + nameField() +} + +type webhookWorkerWithPrismaNameEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaNameEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaNameEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaNameEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaNameEqualsParam) nameField() {} + +func (webhookWorkerWithPrismaNameSetParam) settable() {} +func (webhookWorkerWithPrismaNameEqualsParam) equals() {} + +type webhookWorkerWithPrismaNameEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaNameEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaNameEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaNameEqualsUniqueParam) nameField() {} + +func (webhookWorkerWithPrismaNameEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaNameEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaSecretEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + secretField() +} + +type WebhookWorkerWithPrismaSecretSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + secretField() +} + +type webhookWorkerWithPrismaSecretSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaSecretSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaSecretSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaSecretSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaSecretSetParam) secretField() {} + +type WebhookWorkerWithPrismaSecretWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + secretField() +} + +type webhookWorkerWithPrismaSecretEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaSecretEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaSecretEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaSecretEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaSecretEqualsParam) secretField() {} + +func (webhookWorkerWithPrismaSecretSetParam) settable() {} +func (webhookWorkerWithPrismaSecretEqualsParam) equals() {} + +type webhookWorkerWithPrismaSecretEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaSecretEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaSecretEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaSecretEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaSecretEqualsUniqueParam) secretField() {} + +func (webhookWorkerWithPrismaSecretEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaSecretEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaURLEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + urlField() +} + +type WebhookWorkerWithPrismaURLSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + urlField() +} + +type webhookWorkerWithPrismaURLSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaURLSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaURLSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaURLSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaURLSetParam) urlField() {} + +type WebhookWorkerWithPrismaURLWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + urlField() +} + +type webhookWorkerWithPrismaURLEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaURLEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaURLEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaURLEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaURLEqualsParam) urlField() {} + +func (webhookWorkerWithPrismaURLSetParam) settable() {} +func (webhookWorkerWithPrismaURLEqualsParam) equals() {} + +type webhookWorkerWithPrismaURLEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaURLEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaURLEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaURLEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaURLEqualsUniqueParam) urlField() {} + +func (webhookWorkerWithPrismaURLEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaURLEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaTokenValueEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + tokenValueField() +} + +type WebhookWorkerWithPrismaTokenValueSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tokenValueField() +} + +type webhookWorkerWithPrismaTokenValueSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenValueSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenValueSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenValueSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTokenValueSetParam) tokenValueField() {} + +type WebhookWorkerWithPrismaTokenValueWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tokenValueField() +} + +type webhookWorkerWithPrismaTokenValueEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenValueEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenValueEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenValueEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTokenValueEqualsParam) tokenValueField() {} + +func (webhookWorkerWithPrismaTokenValueSetParam) settable() {} +func (webhookWorkerWithPrismaTokenValueEqualsParam) equals() {} + +type webhookWorkerWithPrismaTokenValueEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenValueEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenValueEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenValueEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaTokenValueEqualsUniqueParam) tokenValueField() {} + +func (webhookWorkerWithPrismaTokenValueEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaTokenValueEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaDeletedEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + deletedField() +} + +type WebhookWorkerWithPrismaDeletedSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + deletedField() +} + +type webhookWorkerWithPrismaDeletedSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaDeletedSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaDeletedSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaDeletedSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaDeletedSetParam) deletedField() {} + +type WebhookWorkerWithPrismaDeletedWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + deletedField() +} + +type webhookWorkerWithPrismaDeletedEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaDeletedEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaDeletedEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaDeletedEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaDeletedEqualsParam) deletedField() {} + +func (webhookWorkerWithPrismaDeletedSetParam) settable() {} +func (webhookWorkerWithPrismaDeletedEqualsParam) equals() {} + +type webhookWorkerWithPrismaDeletedEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaDeletedEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaDeletedEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaDeletedEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaDeletedEqualsUniqueParam) deletedField() {} + +func (webhookWorkerWithPrismaDeletedEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaDeletedEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaTokenIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + tokenIDField() +} + +type WebhookWorkerWithPrismaTokenIDSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tokenIDField() +} + +type webhookWorkerWithPrismaTokenIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenIDSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenIDSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTokenIDSetParam) tokenIDField() {} + +type WebhookWorkerWithPrismaTokenIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tokenIDField() +} + +type webhookWorkerWithPrismaTokenIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenIDEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenIDEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTokenIDEqualsParam) tokenIDField() {} + +func (webhookWorkerWithPrismaTokenIDSetParam) settable() {} +func (webhookWorkerWithPrismaTokenIDEqualsParam) equals() {} + +type webhookWorkerWithPrismaTokenIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenIDEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaTokenIDEqualsUniqueParam) tokenIDField() {} + +func (webhookWorkerWithPrismaTokenIDEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaTokenIDEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaTokenEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + tokenField() +} + +type WebhookWorkerWithPrismaTokenSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tokenField() +} + +type webhookWorkerWithPrismaTokenSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTokenSetParam) tokenField() {} + +type WebhookWorkerWithPrismaTokenWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tokenField() +} + +type webhookWorkerWithPrismaTokenEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTokenEqualsParam) tokenField() {} + +func (webhookWorkerWithPrismaTokenSetParam) settable() {} +func (webhookWorkerWithPrismaTokenEqualsParam) equals() {} + +type webhookWorkerWithPrismaTokenEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTokenEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTokenEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTokenEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaTokenEqualsUniqueParam) tokenField() {} + +func (webhookWorkerWithPrismaTokenEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaTokenEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaTenantIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + tenantIDField() +} + +type WebhookWorkerWithPrismaTenantIDSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tenantIDField() +} + +type webhookWorkerWithPrismaTenantIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTenantIDSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTenantIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTenantIDSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTenantIDSetParam) tenantIDField() {} + +type WebhookWorkerWithPrismaTenantIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tenantIDField() +} + +type webhookWorkerWithPrismaTenantIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTenantIDEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTenantIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTenantIDEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTenantIDEqualsParam) tenantIDField() {} + +func (webhookWorkerWithPrismaTenantIDSetParam) settable() {} +func (webhookWorkerWithPrismaTenantIDEqualsParam) equals() {} + +type webhookWorkerWithPrismaTenantIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTenantIDEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} + +func (webhookWorkerWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaTenantIDEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaTenantEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + tenantField() +} + +type WebhookWorkerWithPrismaTenantSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tenantField() +} + +type webhookWorkerWithPrismaTenantSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTenantSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTenantSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTenantSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTenantSetParam) tenantField() {} + +type WebhookWorkerWithPrismaTenantWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + tenantField() +} + +type webhookWorkerWithPrismaTenantEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTenantEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTenantEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTenantEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaTenantEqualsParam) tenantField() {} + +func (webhookWorkerWithPrismaTenantSetParam) settable() {} +func (webhookWorkerWithPrismaTenantEqualsParam) equals() {} + +type webhookWorkerWithPrismaTenantEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaTenantEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaTenantEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaTenantEqualsUniqueParam) tenantField() {} + +func (webhookWorkerWithPrismaTenantEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaTenantEqualsUniqueParam) equals() {} + +type WebhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerModel() + webhookWorkerWorkflowsField() +} + +type WebhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + webhookWorkerWorkflowsField() +} + +type webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) webhookWorkerWorkflowsField() {} + +type WebhookWorkerWithPrismaWebhookWorkerWorkflowsWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerModel() + webhookWorkerWorkflowsField() +} + +type webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) webhookWorkerModel() {} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) webhookWorkerWorkflowsField() {} + +func (webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) settable() {} +func (webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) equals() {} + +type webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) webhookWorkerModel() {} +func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) webhookWorkerWorkflowsField() { +} + +func (webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) unique() {} +func (webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) equals() {} + +type webhookWorkerWorkflowActions struct { + // client holds the prisma client + client *PrismaClient +} + +var webhookWorkerWorkflowOutput = []builder.Output{ + {Name: "id"}, + {Name: "webhookWorkerId"}, + {Name: "workflowId"}, +} + +type WebhookWorkerWorkflowRelationWith interface { + getQuery() builder.Query + with() + webhookWorkerWorkflowRelation() +} + +type WebhookWorkerWorkflowWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() +} + +type webhookWorkerWorkflowDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowDefaultParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowDefaultParam) webhookWorkerWorkflowModel() {} + +type WebhookWorkerWorkflowOrderByParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() +} + +type webhookWorkerWorkflowOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowOrderByParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowOrderByParam) webhookWorkerWorkflowModel() {} + +type WebhookWorkerWorkflowCursorParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + isCursor() +} + +type webhookWorkerWorkflowCursorParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowCursorParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowCursorParam) isCursor() {} + +func (p webhookWorkerWorkflowCursorParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowCursorParam) webhookWorkerWorkflowModel() {} + +type WebhookWorkerWorkflowParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + webhookWorkerWorkflowModel() +} + +type webhookWorkerWorkflowParamUnique struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowParamUnique) webhookWorkerWorkflowModel() {} + +func (webhookWorkerWorkflowParamUnique) unique() {} + +func (p webhookWorkerWorkflowParamUnique) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowParamUnique) getQuery() builder.Query { + return p.query +} + +type WebhookWorkerWorkflowEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerWorkflowModel() +} + +type webhookWorkerWorkflowEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowEqualsParam) webhookWorkerWorkflowModel() {} + +func (webhookWorkerWorkflowEqualsParam) equals() {} + +func (p webhookWorkerWorkflowEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowEqualsParam) getQuery() builder.Query { + return p.query +} + +type WebhookWorkerWorkflowEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + webhookWorkerWorkflowModel() +} + +type webhookWorkerWorkflowEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowEqualsUniqueParam) webhookWorkerWorkflowModel() {} + +func (webhookWorkerWorkflowEqualsUniqueParam) unique() {} +func (webhookWorkerWorkflowEqualsUniqueParam) equals() {} + +func (p webhookWorkerWorkflowEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type WebhookWorkerWorkflowSetParam interface { + field() builder.Field + settable() + webhookWorkerWorkflowModel() +} + +type webhookWorkerWorkflowSetParam struct { + data builder.Field +} + +func (webhookWorkerWorkflowSetParam) settable() {} + +func (p webhookWorkerWorkflowSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowSetParam) webhookWorkerWorkflowModel() {} + +type WebhookWorkerWorkflowWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerWorkflowModel() + idField() +} + +type WebhookWorkerWorkflowWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + idField() +} + +type webhookWorkerWorkflowWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaIDSetParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaIDSetParam) idField() {} + +type WebhookWorkerWorkflowWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + idField() +} + +type webhookWorkerWorkflowWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaIDEqualsParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaIDEqualsParam) idField() {} + +func (webhookWorkerWorkflowWithPrismaIDSetParam) settable() {} +func (webhookWorkerWorkflowWithPrismaIDEqualsParam) equals() {} + +type webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) webhookWorkerWorkflowModel() {} +func (p webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) idField() {} + +func (webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) unique() {} +func (webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) equals() {} + +type WebhookWorkerWorkflowWithPrismaWebhookWorkerEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerWorkflowModel() + webhookWorkerField() +} + +type WebhookWorkerWorkflowWithPrismaWebhookWorkerSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + webhookWorkerField() +} + +type webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) webhookWorkerField() {} + +type WebhookWorkerWorkflowWithPrismaWebhookWorkerWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + webhookWorkerField() +} + +type webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) webhookWorkerField() {} + +func (webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) settable() {} +func (webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) equals() {} + +type webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) webhookWorkerWorkflowModel() {} +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) webhookWorkerField() {} + +func (webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) unique() {} +func (webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) equals() {} + +type WebhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerWorkflowModel() + webhookWorkerIDField() +} + +type WebhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + webhookWorkerIDField() +} + +type webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) webhookWorkerIDField() {} + +type WebhookWorkerWorkflowWithPrismaWebhookWorkerIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + webhookWorkerIDField() +} + +type webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) webhookWorkerIDField() {} + +func (webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) settable() {} +func (webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) equals() {} + +type webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) webhookWorkerWorkflowModel() { +} +func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) webhookWorkerIDField() {} + +func (webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) unique() {} +func (webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) equals() {} + +type WebhookWorkerWorkflowWithPrismaWorkflowEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerWorkflowModel() + workflowField() +} + +type WebhookWorkerWorkflowWithPrismaWorkflowSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + workflowField() +} + +type webhookWorkerWorkflowWithPrismaWorkflowSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowSetParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaWorkflowSetParam) workflowField() {} + +type WebhookWorkerWorkflowWithPrismaWorkflowWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + workflowField() +} + +type webhookWorkerWorkflowWithPrismaWorkflowEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) workflowField() {} + +func (webhookWorkerWorkflowWithPrismaWorkflowSetParam) settable() {} +func (webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) equals() {} + +type webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) webhookWorkerWorkflowModel() {} +func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) workflowField() {} + +func (webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) unique() {} +func (webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) equals() {} + +type WebhookWorkerWorkflowWithPrismaWorkflowIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + webhookWorkerWorkflowModel() + workflowIDField() +} + +type WebhookWorkerWorkflowWithPrismaWorkflowIDSetParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + workflowIDField() +} + +type webhookWorkerWorkflowWithPrismaWorkflowIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) workflowIDField() {} + +type WebhookWorkerWorkflowWithPrismaWorkflowIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + webhookWorkerWorkflowModel() + workflowIDField() +} + +type webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) webhookWorkerWorkflowModel() {} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) workflowIDField() {} + +func (webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) settable() {} +func (webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) equals() {} + +type webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) webhookWorkerWorkflowModel() {} +func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) workflowIDField() {} + +func (webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) unique() {} +func (webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) equals() {} + +type controllerPartitionActions struct { + // client holds the prisma client + client *PrismaClient +} + +var controllerPartitionOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "lastHeartbeat"}, +} + +type ControllerPartitionRelationWith interface { + getQuery() builder.Query + with() + controllerPartitionRelation() +} + +type ControllerPartitionWhereParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() +} + +type controllerPartitionDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionDefaultParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionDefaultParam) controllerPartitionModel() {} + +type ControllerPartitionOrderByParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() +} + +type controllerPartitionOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionOrderByParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionOrderByParam) controllerPartitionModel() {} + +type ControllerPartitionCursorParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + isCursor() +} + +type controllerPartitionCursorParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionCursorParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionCursorParam) isCursor() {} + +func (p controllerPartitionCursorParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionCursorParam) controllerPartitionModel() {} + +type ControllerPartitionParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + controllerPartitionModel() +} + +type controllerPartitionParamUnique struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionParamUnique) controllerPartitionModel() {} + +func (controllerPartitionParamUnique) unique() {} + +func (p controllerPartitionParamUnique) field() builder.Field { + return p.data +} + +func (p controllerPartitionParamUnique) getQuery() builder.Query { + return p.query +} + +type ControllerPartitionEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + controllerPartitionModel() +} + +type controllerPartitionEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionEqualsParam) controllerPartitionModel() {} + +func (controllerPartitionEqualsParam) equals() {} + +func (p controllerPartitionEqualsParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionEqualsParam) getQuery() builder.Query { + return p.query +} + +type ControllerPartitionEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + controllerPartitionModel() +} + +type controllerPartitionEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionEqualsUniqueParam) controllerPartitionModel() {} + +func (controllerPartitionEqualsUniqueParam) unique() {} +func (controllerPartitionEqualsUniqueParam) equals() {} + +func (p controllerPartitionEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type ControllerPartitionSetParam interface { + field() builder.Field + settable() + controllerPartitionModel() +} + +type controllerPartitionSetParam struct { + data builder.Field +} + +func (controllerPartitionSetParam) settable() {} + +func (p controllerPartitionSetParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionSetParam) controllerPartitionModel() {} + +type ControllerPartitionWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + controllerPartitionModel() + idField() +} + +type ControllerPartitionWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + idField() +} + +type controllerPartitionWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaIDSetParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaIDSetParam) idField() {} + +type ControllerPartitionWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + idField() +} + +type controllerPartitionWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaIDEqualsParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaIDEqualsParam) idField() {} + +func (controllerPartitionWithPrismaIDSetParam) settable() {} +func (controllerPartitionWithPrismaIDEqualsParam) equals() {} + +type controllerPartitionWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaIDEqualsUniqueParam) controllerPartitionModel() {} +func (p controllerPartitionWithPrismaIDEqualsUniqueParam) idField() {} + +func (controllerPartitionWithPrismaIDEqualsUniqueParam) unique() {} +func (controllerPartitionWithPrismaIDEqualsUniqueParam) equals() {} + +type ControllerPartitionWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + controllerPartitionModel() + createdAtField() +} + +type ControllerPartitionWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + createdAtField() +} + +type controllerPartitionWithPrismaCreatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaCreatedAtSetParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaCreatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaCreatedAtSetParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaCreatedAtSetParam) createdAtField() {} + +type ControllerPartitionWithPrismaCreatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + createdAtField() +} + +type controllerPartitionWithPrismaCreatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaCreatedAtEqualsParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (controllerPartitionWithPrismaCreatedAtSetParam) settable() {} +func (controllerPartitionWithPrismaCreatedAtEqualsParam) equals() {} + +type controllerPartitionWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) controllerPartitionModel() {} +func (p controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type ControllerPartitionWithPrismaUpdatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + controllerPartitionModel() + updatedAtField() +} + +type ControllerPartitionWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + updatedAtField() +} + +type controllerPartitionWithPrismaUpdatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaUpdatedAtSetParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaUpdatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaUpdatedAtSetParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type ControllerPartitionWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + updatedAtField() +} + +type controllerPartitionWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaUpdatedAtEqualsParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (controllerPartitionWithPrismaUpdatedAtSetParam) settable() {} +func (controllerPartitionWithPrismaUpdatedAtEqualsParam) equals() {} + +type controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) controllerPartitionModel() {} +func (p controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type ControllerPartitionWithPrismaLastHeartbeatEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + controllerPartitionModel() + lastHeartbeatField() +} + +type ControllerPartitionWithPrismaLastHeartbeatSetParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + lastHeartbeatField() +} + +type controllerPartitionWithPrismaLastHeartbeatSetParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaLastHeartbeatSetParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaLastHeartbeatSetParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaLastHeartbeatSetParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaLastHeartbeatSetParam) lastHeartbeatField() {} + +type ControllerPartitionWithPrismaLastHeartbeatWhereParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + lastHeartbeatField() +} + +type controllerPartitionWithPrismaLastHeartbeatEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaLastHeartbeatEqualsParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaLastHeartbeatEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaLastHeartbeatEqualsParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaLastHeartbeatEqualsParam) lastHeartbeatField() {} + +func (controllerPartitionWithPrismaLastHeartbeatSetParam) settable() {} +func (controllerPartitionWithPrismaLastHeartbeatEqualsParam) equals() {} + +type controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) controllerPartitionModel() {} +func (p controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) lastHeartbeatField() {} + +func (controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) unique() {} +func (controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) equals() {} + +type ControllerPartitionWithPrismaTenantsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + controllerPartitionModel() + tenantsField() +} + +type ControllerPartitionWithPrismaTenantsSetParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + tenantsField() +} + +type controllerPartitionWithPrismaTenantsSetParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaTenantsSetParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaTenantsSetParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaTenantsSetParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaTenantsSetParam) tenantsField() {} + +type ControllerPartitionWithPrismaTenantsWhereParam interface { + field() builder.Field + getQuery() builder.Query + controllerPartitionModel() + tenantsField() +} + +type controllerPartitionWithPrismaTenantsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaTenantsEqualsParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaTenantsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaTenantsEqualsParam) controllerPartitionModel() {} + +func (p controllerPartitionWithPrismaTenantsEqualsParam) tenantsField() {} + +func (controllerPartitionWithPrismaTenantsSetParam) settable() {} +func (controllerPartitionWithPrismaTenantsEqualsParam) equals() {} + +type controllerPartitionWithPrismaTenantsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p controllerPartitionWithPrismaTenantsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p controllerPartitionWithPrismaTenantsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p controllerPartitionWithPrismaTenantsEqualsUniqueParam) controllerPartitionModel() {} +func (p controllerPartitionWithPrismaTenantsEqualsUniqueParam) tenantsField() {} + +func (controllerPartitionWithPrismaTenantsEqualsUniqueParam) unique() {} +func (controllerPartitionWithPrismaTenantsEqualsUniqueParam) equals() {} + +type tenantWorkerPartitionActions struct { + // client holds the prisma client + client *PrismaClient +} + +var tenantWorkerPartitionOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "lastHeartbeat"}, +} + +type TenantWorkerPartitionRelationWith interface { + getQuery() builder.Query + with() + tenantWorkerPartitionRelation() +} + +type TenantWorkerPartitionWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() +} + +type tenantWorkerPartitionDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionDefaultParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionDefaultParam) tenantWorkerPartitionModel() {} + +type TenantWorkerPartitionOrderByParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() +} + +type tenantWorkerPartitionOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionOrderByParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionOrderByParam) tenantWorkerPartitionModel() {} + +type TenantWorkerPartitionCursorParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + isCursor() +} + +type tenantWorkerPartitionCursorParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionCursorParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionCursorParam) isCursor() {} + +func (p tenantWorkerPartitionCursorParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionCursorParam) tenantWorkerPartitionModel() {} + +type TenantWorkerPartitionParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + tenantWorkerPartitionModel() +} + +type tenantWorkerPartitionParamUnique struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionParamUnique) tenantWorkerPartitionModel() {} + +func (tenantWorkerPartitionParamUnique) unique() {} + +func (p tenantWorkerPartitionParamUnique) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionParamUnique) getQuery() builder.Query { + return p.query +} + +type TenantWorkerPartitionEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantWorkerPartitionModel() +} + +type tenantWorkerPartitionEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionEqualsParam) tenantWorkerPartitionModel() {} + +func (tenantWorkerPartitionEqualsParam) equals() {} + +func (p tenantWorkerPartitionEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionEqualsParam) getQuery() builder.Query { + return p.query +} + +type TenantWorkerPartitionEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + tenantWorkerPartitionModel() +} + +type tenantWorkerPartitionEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionEqualsUniqueParam) tenantWorkerPartitionModel() {} + +func (tenantWorkerPartitionEqualsUniqueParam) unique() {} +func (tenantWorkerPartitionEqualsUniqueParam) equals() {} + +func (p tenantWorkerPartitionEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type TenantWorkerPartitionSetParam interface { + field() builder.Field + settable() + tenantWorkerPartitionModel() +} + +type tenantWorkerPartitionSetParam struct { + data builder.Field +} + +func (tenantWorkerPartitionSetParam) settable() {} + +func (p tenantWorkerPartitionSetParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionSetParam) tenantWorkerPartitionModel() {} + +type TenantWorkerPartitionWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantWorkerPartitionModel() + idField() +} + +type TenantWorkerPartitionWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + idField() +} + +type tenantWorkerPartitionWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaIDSetParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaIDSetParam) idField() {} + +type TenantWorkerPartitionWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + idField() +} + +type tenantWorkerPartitionWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaIDEqualsParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaIDEqualsParam) idField() {} + +func (tenantWorkerPartitionWithPrismaIDSetParam) settable() {} +func (tenantWorkerPartitionWithPrismaIDEqualsParam) equals() {} + +type tenantWorkerPartitionWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) tenantWorkerPartitionModel() {} +func (p tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) idField() {} + +func (tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) equals() {} + +type TenantWorkerPartitionWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantWorkerPartitionModel() + createdAtField() +} + +type TenantWorkerPartitionWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + createdAtField() +} + +type tenantWorkerPartitionWithPrismaCreatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtSetParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtSetParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaCreatedAtSetParam) createdAtField() {} + +type TenantWorkerPartitionWithPrismaCreatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + createdAtField() +} + +type tenantWorkerPartitionWithPrismaCreatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (tenantWorkerPartitionWithPrismaCreatedAtSetParam) settable() {} +func (tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) equals() {} + +type tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) tenantWorkerPartitionModel() {} +func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type TenantWorkerPartitionWithPrismaUpdatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantWorkerPartitionModel() + updatedAtField() +} + +type TenantWorkerPartitionWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + updatedAtField() +} + +type tenantWorkerPartitionWithPrismaUpdatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtSetParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtSetParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type TenantWorkerPartitionWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + updatedAtField() +} + +type tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (tenantWorkerPartitionWithPrismaUpdatedAtSetParam) settable() {} +func (tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) equals() {} + +type tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) tenantWorkerPartitionModel() {} +func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type TenantWorkerPartitionWithPrismaLastHeartbeatEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantWorkerPartitionModel() + lastHeartbeatField() +} + +type TenantWorkerPartitionWithPrismaLastHeartbeatSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + lastHeartbeatField() +} + +type tenantWorkerPartitionWithPrismaLastHeartbeatSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) lastHeartbeatField() {} + +type TenantWorkerPartitionWithPrismaLastHeartbeatWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + lastHeartbeatField() +} + +type tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) lastHeartbeatField() {} + +func (tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) settable() {} +func (tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) equals() {} + +type tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) tenantWorkerPartitionModel() {} +func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) lastHeartbeatField() {} + +func (tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) unique() {} +func (tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) equals() {} + +type TenantWorkerPartitionWithPrismaTenantsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantWorkerPartitionModel() + tenantsField() +} + +type TenantWorkerPartitionWithPrismaTenantsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + tenantsField() +} + +type tenantWorkerPartitionWithPrismaTenantsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaTenantsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaTenantsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaTenantsSetParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaTenantsSetParam) tenantsField() {} + +type TenantWorkerPartitionWithPrismaTenantsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantWorkerPartitionModel() + tenantsField() +} + +type tenantWorkerPartitionWithPrismaTenantsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaTenantsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaTenantsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaTenantsEqualsParam) tenantWorkerPartitionModel() {} + +func (p tenantWorkerPartitionWithPrismaTenantsEqualsParam) tenantsField() {} + +func (tenantWorkerPartitionWithPrismaTenantsSetParam) settable() {} +func (tenantWorkerPartitionWithPrismaTenantsEqualsParam) equals() {} + +type tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) tenantWorkerPartitionModel() {} +func (p tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) tenantsField() {} + +func (tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) unique() {} +func (tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) equals() {} + +type tenantActions struct { + // client holds the prisma client + client *PrismaClient +} + +var tenantOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "name"}, + {Name: "slug"}, + {Name: "analyticsOptOut"}, + {Name: "controllerPartitionId"}, + {Name: "workerPartitionId"}, + {Name: "dataRetentionPeriod"}, + {Name: "alertMemberEmails"}, +} + +type TenantRelationWith interface { + getQuery() builder.Query + with() + tenantRelation() +} + +type TenantWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() +} + +type tenantDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p tenantDefaultParam) field() builder.Field { + return p.data +} + +func (p tenantDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p tenantDefaultParam) tenantModel() {} + +type TenantOrderByParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() +} + +type tenantOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p tenantOrderByParam) field() builder.Field { + return p.data +} + +func (p tenantOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p tenantOrderByParam) tenantModel() {} + +type TenantCursorParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + isCursor() +} + +type tenantCursorParam struct { + data builder.Field + query builder.Query +} + +func (p tenantCursorParam) field() builder.Field { + return p.data +} + +func (p tenantCursorParam) isCursor() {} + +func (p tenantCursorParam) getQuery() builder.Query { + return p.query +} + +func (p tenantCursorParam) tenantModel() {} + +type TenantParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + tenantModel() +} + +type tenantParamUnique struct { + data builder.Field + query builder.Query +} + +func (p tenantParamUnique) tenantModel() {} + +func (tenantParamUnique) unique() {} + +func (p tenantParamUnique) field() builder.Field { + return p.data +} + +func (p tenantParamUnique) getQuery() builder.Query { + return p.query +} + +type TenantEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() +} + +type tenantEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantEqualsParam) tenantModel() {} + +func (tenantEqualsParam) equals() {} + +func (p tenantEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantEqualsParam) getQuery() builder.Query { + return p.query +} + +type TenantEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + tenantModel() +} + +type tenantEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantEqualsUniqueParam) tenantModel() {} + +func (tenantEqualsUniqueParam) unique() {} +func (tenantEqualsUniqueParam) equals() {} + +func (p tenantEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type TenantSetParam interface { + field() builder.Field + settable() + tenantModel() +} + +type tenantSetParam struct { + data builder.Field +} + +func (tenantSetParam) settable() {} + +func (p tenantSetParam) field() builder.Field { + return p.data +} + +func (p tenantSetParam) tenantModel() {} + +type TenantWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + idField() +} + +type TenantWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + idField() +} + +type tenantWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaIDSetParam) tenantModel() {} + +func (p tenantWithPrismaIDSetParam) idField() {} + +type TenantWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + idField() +} + +type tenantWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaIDEqualsParam) tenantModel() {} + +func (p tenantWithPrismaIDEqualsParam) idField() {} + +func (tenantWithPrismaIDSetParam) settable() {} +func (tenantWithPrismaIDEqualsParam) equals() {} + +type tenantWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaIDEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaIDEqualsUniqueParam) idField() {} + +func (tenantWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantWithPrismaIDEqualsUniqueParam) equals() {} + +type TenantWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + createdAtField() +} + +type TenantWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + createdAtField() +} + +type tenantWithPrismaCreatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaCreatedAtSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaCreatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaCreatedAtSetParam) tenantModel() {} + +func (p tenantWithPrismaCreatedAtSetParam) createdAtField() {} + +type TenantWithPrismaCreatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + createdAtField() +} + +type tenantWithPrismaCreatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaCreatedAtEqualsParam) tenantModel() {} + +func (p tenantWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (tenantWithPrismaCreatedAtSetParam) settable() {} +func (tenantWithPrismaCreatedAtEqualsParam) equals() {} + +type tenantWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaCreatedAtEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (tenantWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type TenantWithPrismaUpdatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + updatedAtField() +} + +type TenantWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + updatedAtField() +} + +type tenantWithPrismaUpdatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaUpdatedAtSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaUpdatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaUpdatedAtSetParam) tenantModel() {} + +func (p tenantWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type TenantWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + updatedAtField() +} + +type tenantWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaUpdatedAtEqualsParam) tenantModel() {} + +func (p tenantWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (tenantWithPrismaUpdatedAtSetParam) settable() {} +func (tenantWithPrismaUpdatedAtEqualsParam) equals() {} + +type tenantWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaUpdatedAtEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (tenantWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type TenantWithPrismaDeletedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + deletedAtField() +} + +type TenantWithPrismaDeletedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + deletedAtField() +} + +type tenantWithPrismaDeletedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDeletedAtSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDeletedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDeletedAtSetParam) tenantModel() {} + +func (p tenantWithPrismaDeletedAtSetParam) deletedAtField() {} + +type TenantWithPrismaDeletedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + deletedAtField() +} + +type tenantWithPrismaDeletedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDeletedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDeletedAtEqualsParam) tenantModel() {} + +func (p tenantWithPrismaDeletedAtEqualsParam) deletedAtField() {} + +func (tenantWithPrismaDeletedAtSetParam) settable() {} +func (tenantWithPrismaDeletedAtEqualsParam) equals() {} + +type tenantWithPrismaDeletedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDeletedAtEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} + +func (tenantWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (tenantWithPrismaDeletedAtEqualsUniqueParam) equals() {} + +type TenantWithPrismaNameEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + nameField() +} + +type TenantWithPrismaNameSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + nameField() +} + +type tenantWithPrismaNameSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaNameSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaNameSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaNameSetParam) tenantModel() {} + +func (p tenantWithPrismaNameSetParam) nameField() {} + +type TenantWithPrismaNameWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + nameField() +} + +type tenantWithPrismaNameEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaNameEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaNameEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaNameEqualsParam) tenantModel() {} + +func (p tenantWithPrismaNameEqualsParam) nameField() {} + +func (tenantWithPrismaNameSetParam) settable() {} +func (tenantWithPrismaNameEqualsParam) equals() {} + +type tenantWithPrismaNameEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaNameEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaNameEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaNameEqualsUniqueParam) nameField() {} + +func (tenantWithPrismaNameEqualsUniqueParam) unique() {} +func (tenantWithPrismaNameEqualsUniqueParam) equals() {} + +type TenantWithPrismaSlugEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + slugField() +} + +type TenantWithPrismaSlugSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + slugField() +} + +type tenantWithPrismaSlugSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSlugSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSlugSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSlugSetParam) tenantModel() {} + +func (p tenantWithPrismaSlugSetParam) slugField() {} + +type TenantWithPrismaSlugWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + slugField() +} + +type tenantWithPrismaSlugEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSlugEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSlugEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSlugEqualsParam) tenantModel() {} + +func (p tenantWithPrismaSlugEqualsParam) slugField() {} + +func (tenantWithPrismaSlugSetParam) settable() {} +func (tenantWithPrismaSlugEqualsParam) equals() {} + +type tenantWithPrismaSlugEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSlugEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSlugEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSlugEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaSlugEqualsUniqueParam) slugField() {} + +func (tenantWithPrismaSlugEqualsUniqueParam) unique() {} +func (tenantWithPrismaSlugEqualsUniqueParam) equals() {} + +type TenantWithPrismaAnalyticsOptOutEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + analyticsOptOutField() +} + +type TenantWithPrismaAnalyticsOptOutSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + analyticsOptOutField() +} + +type tenantWithPrismaAnalyticsOptOutSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAnalyticsOptOutSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAnalyticsOptOutSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAnalyticsOptOutSetParam) tenantModel() {} + +func (p tenantWithPrismaAnalyticsOptOutSetParam) analyticsOptOutField() {} + +type TenantWithPrismaAnalyticsOptOutWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + analyticsOptOutField() +} + +type tenantWithPrismaAnalyticsOptOutEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAnalyticsOptOutEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAnalyticsOptOutEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAnalyticsOptOutEqualsParam) tenantModel() {} + +func (p tenantWithPrismaAnalyticsOptOutEqualsParam) analyticsOptOutField() {} + +func (tenantWithPrismaAnalyticsOptOutSetParam) settable() {} +func (tenantWithPrismaAnalyticsOptOutEqualsParam) equals() {} + +type tenantWithPrismaAnalyticsOptOutEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) analyticsOptOutField() {} + +func (tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) unique() {} +func (tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) equals() {} + +type TenantWithPrismaControllerPartitionEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + controllerPartitionField() +} + +type TenantWithPrismaControllerPartitionSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + controllerPartitionField() +} + +type tenantWithPrismaControllerPartitionSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaControllerPartitionSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaControllerPartitionSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaControllerPartitionSetParam) tenantModel() {} + +func (p tenantWithPrismaControllerPartitionSetParam) controllerPartitionField() {} + +type TenantWithPrismaControllerPartitionWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + controllerPartitionField() +} + +type tenantWithPrismaControllerPartitionEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaControllerPartitionEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaControllerPartitionEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaControllerPartitionEqualsParam) tenantModel() {} + +func (p tenantWithPrismaControllerPartitionEqualsParam) controllerPartitionField() {} + +func (tenantWithPrismaControllerPartitionSetParam) settable() {} +func (tenantWithPrismaControllerPartitionEqualsParam) equals() {} + +type tenantWithPrismaControllerPartitionEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaControllerPartitionEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaControllerPartitionEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaControllerPartitionEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaControllerPartitionEqualsUniqueParam) controllerPartitionField() {} + +func (tenantWithPrismaControllerPartitionEqualsUniqueParam) unique() {} +func (tenantWithPrismaControllerPartitionEqualsUniqueParam) equals() {} + +type TenantWithPrismaControllerPartitionIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + controllerPartitionIDField() +} + +type TenantWithPrismaControllerPartitionIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + controllerPartitionIDField() +} + +type tenantWithPrismaControllerPartitionIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaControllerPartitionIDSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaControllerPartitionIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaControllerPartitionIDSetParam) tenantModel() {} + +func (p tenantWithPrismaControllerPartitionIDSetParam) controllerPartitionIDField() {} + +type TenantWithPrismaControllerPartitionIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + controllerPartitionIDField() +} + +type tenantWithPrismaControllerPartitionIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaControllerPartitionIDEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaControllerPartitionIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaControllerPartitionIDEqualsParam) tenantModel() {} + +func (p tenantWithPrismaControllerPartitionIDEqualsParam) controllerPartitionIDField() {} + +func (tenantWithPrismaControllerPartitionIDSetParam) settable() {} +func (tenantWithPrismaControllerPartitionIDEqualsParam) equals() {} + +type tenantWithPrismaControllerPartitionIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaControllerPartitionIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaControllerPartitionIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaControllerPartitionIDEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaControllerPartitionIDEqualsUniqueParam) controllerPartitionIDField() {} + +func (tenantWithPrismaControllerPartitionIDEqualsUniqueParam) unique() {} +func (tenantWithPrismaControllerPartitionIDEqualsUniqueParam) equals() {} + +type TenantWithPrismaWorkerPartitionEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + workerPartitionField() +} + +type TenantWithPrismaWorkerPartitionSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workerPartitionField() +} + +type tenantWithPrismaWorkerPartitionSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkerPartitionSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkerPartitionSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkerPartitionSetParam) tenantModel() {} + +func (p tenantWithPrismaWorkerPartitionSetParam) workerPartitionField() {} + +type TenantWithPrismaWorkerPartitionWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workerPartitionField() +} + +type tenantWithPrismaWorkerPartitionEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkerPartitionEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkerPartitionEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkerPartitionEqualsParam) tenantModel() {} + +func (p tenantWithPrismaWorkerPartitionEqualsParam) workerPartitionField() {} + +func (tenantWithPrismaWorkerPartitionSetParam) settable() {} +func (tenantWithPrismaWorkerPartitionEqualsParam) equals() {} + +type tenantWithPrismaWorkerPartitionEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkerPartitionEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkerPartitionEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkerPartitionEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaWorkerPartitionEqualsUniqueParam) workerPartitionField() {} + +func (tenantWithPrismaWorkerPartitionEqualsUniqueParam) unique() {} +func (tenantWithPrismaWorkerPartitionEqualsUniqueParam) equals() {} + +type TenantWithPrismaWorkerPartitionIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + workerPartitionIDField() +} + +type TenantWithPrismaWorkerPartitionIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workerPartitionIDField() +} + +type tenantWithPrismaWorkerPartitionIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkerPartitionIDSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkerPartitionIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkerPartitionIDSetParam) tenantModel() {} + +func (p tenantWithPrismaWorkerPartitionIDSetParam) workerPartitionIDField() {} + +type TenantWithPrismaWorkerPartitionIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workerPartitionIDField() +} + +type tenantWithPrismaWorkerPartitionIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkerPartitionIDEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkerPartitionIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkerPartitionIDEqualsParam) tenantModel() {} + +func (p tenantWithPrismaWorkerPartitionIDEqualsParam) workerPartitionIDField() {} + +func (tenantWithPrismaWorkerPartitionIDSetParam) settable() {} +func (tenantWithPrismaWorkerPartitionIDEqualsParam) equals() {} + +type tenantWithPrismaWorkerPartitionIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) workerPartitionIDField() {} + +func (tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) unique() {} +func (tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) equals() {} + +type TenantWithPrismaDataRetentionPeriodEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + dataRetentionPeriodField() +} + +type TenantWithPrismaDataRetentionPeriodSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + dataRetentionPeriodField() +} + +type tenantWithPrismaDataRetentionPeriodSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDataRetentionPeriodSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDataRetentionPeriodSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDataRetentionPeriodSetParam) tenantModel() {} + +func (p tenantWithPrismaDataRetentionPeriodSetParam) dataRetentionPeriodField() {} + +type TenantWithPrismaDataRetentionPeriodWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + dataRetentionPeriodField() +} + +type tenantWithPrismaDataRetentionPeriodEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDataRetentionPeriodEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDataRetentionPeriodEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDataRetentionPeriodEqualsParam) tenantModel() {} + +func (p tenantWithPrismaDataRetentionPeriodEqualsParam) dataRetentionPeriodField() {} + +func (tenantWithPrismaDataRetentionPeriodSetParam) settable() {} +func (tenantWithPrismaDataRetentionPeriodEqualsParam) equals() {} + +type tenantWithPrismaDataRetentionPeriodEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDataRetentionPeriodEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDataRetentionPeriodEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDataRetentionPeriodEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaDataRetentionPeriodEqualsUniqueParam) dataRetentionPeriodField() {} + +func (tenantWithPrismaDataRetentionPeriodEqualsUniqueParam) unique() {} +func (tenantWithPrismaDataRetentionPeriodEqualsUniqueParam) equals() {} + +type TenantWithPrismaEventsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + eventsField() +} + +type TenantWithPrismaEventsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + eventsField() +} + +type tenantWithPrismaEventsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaEventsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaEventsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaEventsSetParam) tenantModel() {} + +func (p tenantWithPrismaEventsSetParam) eventsField() {} + +type TenantWithPrismaEventsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + eventsField() +} + +type tenantWithPrismaEventsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaEventsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaEventsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaEventsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaEventsEqualsParam) eventsField() {} + +func (tenantWithPrismaEventsSetParam) settable() {} +func (tenantWithPrismaEventsEqualsParam) equals() {} + +type tenantWithPrismaEventsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaEventsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaEventsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaEventsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaEventsEqualsUniqueParam) eventsField() {} + +func (tenantWithPrismaEventsEqualsUniqueParam) unique() {} +func (tenantWithPrismaEventsEqualsUniqueParam) equals() {} + +type TenantWithPrismaWorkflowsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + workflowsField() +} + +type TenantWithPrismaWorkflowsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workflowsField() +} + +type tenantWithPrismaWorkflowsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowsSetParam) tenantModel() {} + +func (p tenantWithPrismaWorkflowsSetParam) workflowsField() {} + +type TenantWithPrismaWorkflowsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workflowsField() +} + +type tenantWithPrismaWorkflowsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaWorkflowsEqualsParam) workflowsField() {} + +func (tenantWithPrismaWorkflowsSetParam) settable() {} +func (tenantWithPrismaWorkflowsEqualsParam) equals() {} + +type tenantWithPrismaWorkflowsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaWorkflowsEqualsUniqueParam) workflowsField() {} + +func (tenantWithPrismaWorkflowsEqualsUniqueParam) unique() {} +func (tenantWithPrismaWorkflowsEqualsUniqueParam) equals() {} + +type TenantWithPrismaJobsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + jobsField() +} + +type TenantWithPrismaJobsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + jobsField() +} + +type tenantWithPrismaJobsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobsSetParam) tenantModel() {} + +func (p tenantWithPrismaJobsSetParam) jobsField() {} + +type TenantWithPrismaJobsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + jobsField() +} + +type tenantWithPrismaJobsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaJobsEqualsParam) jobsField() {} + +func (tenantWithPrismaJobsSetParam) settable() {} +func (tenantWithPrismaJobsEqualsParam) equals() {} + +type tenantWithPrismaJobsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaJobsEqualsUniqueParam) jobsField() {} + +func (tenantWithPrismaJobsEqualsUniqueParam) unique() {} +func (tenantWithPrismaJobsEqualsUniqueParam) equals() {} + +type TenantWithPrismaStepsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + stepsField() +} + +type TenantWithPrismaStepsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + stepsField() +} + +type tenantWithPrismaStepsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepsSetParam) tenantModel() {} + +func (p tenantWithPrismaStepsSetParam) stepsField() {} + +type TenantWithPrismaStepsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + stepsField() +} + +type tenantWithPrismaStepsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaStepsEqualsParam) stepsField() {} + +func (tenantWithPrismaStepsSetParam) settable() {} +func (tenantWithPrismaStepsEqualsParam) equals() {} + +type tenantWithPrismaStepsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaStepsEqualsUniqueParam) stepsField() {} + +func (tenantWithPrismaStepsEqualsUniqueParam) unique() {} +func (tenantWithPrismaStepsEqualsUniqueParam) equals() {} + +type TenantWithPrismaTriggersEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + triggersField() +} + +type TenantWithPrismaTriggersSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + triggersField() +} + +type tenantWithPrismaTriggersSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaTriggersSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaTriggersSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaTriggersSetParam) tenantModel() {} + +func (p tenantWithPrismaTriggersSetParam) triggersField() {} + +type TenantWithPrismaTriggersWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + triggersField() +} + +type tenantWithPrismaTriggersEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaTriggersEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaTriggersEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaTriggersEqualsParam) tenantModel() {} + +func (p tenantWithPrismaTriggersEqualsParam) triggersField() {} + +func (tenantWithPrismaTriggersSetParam) settable() {} +func (tenantWithPrismaTriggersEqualsParam) equals() {} + +type tenantWithPrismaTriggersEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaTriggersEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaTriggersEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaTriggersEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaTriggersEqualsUniqueParam) triggersField() {} + +func (tenantWithPrismaTriggersEqualsUniqueParam) unique() {} +func (tenantWithPrismaTriggersEqualsUniqueParam) equals() {} + +type TenantWithPrismaWorkflowRunsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + workflowRunsField() +} + +type TenantWithPrismaWorkflowRunsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workflowRunsField() +} + +type tenantWithPrismaWorkflowRunsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowRunsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowRunsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowRunsSetParam) tenantModel() {} + +func (p tenantWithPrismaWorkflowRunsSetParam) workflowRunsField() {} + +type TenantWithPrismaWorkflowRunsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workflowRunsField() +} + +type tenantWithPrismaWorkflowRunsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowRunsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowRunsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowRunsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaWorkflowRunsEqualsParam) workflowRunsField() {} + +func (tenantWithPrismaWorkflowRunsSetParam) settable() {} +func (tenantWithPrismaWorkflowRunsEqualsParam) equals() {} + +type tenantWithPrismaWorkflowRunsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowRunsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowRunsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowRunsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaWorkflowRunsEqualsUniqueParam) workflowRunsField() {} + +func (tenantWithPrismaWorkflowRunsEqualsUniqueParam) unique() {} +func (tenantWithPrismaWorkflowRunsEqualsUniqueParam) equals() {} + +type TenantWithPrismaWorkflowRunTriggersEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + workflowRunTriggersField() +} + +type TenantWithPrismaWorkflowRunTriggersSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workflowRunTriggersField() +} + +type tenantWithPrismaWorkflowRunTriggersSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowRunTriggersSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowRunTriggersSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowRunTriggersSetParam) tenantModel() {} + +func (p tenantWithPrismaWorkflowRunTriggersSetParam) workflowRunTriggersField() {} + +type TenantWithPrismaWorkflowRunTriggersWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workflowRunTriggersField() +} + +type tenantWithPrismaWorkflowRunTriggersEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowRunTriggersEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowRunTriggersEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowRunTriggersEqualsParam) tenantModel() {} + +func (p tenantWithPrismaWorkflowRunTriggersEqualsParam) workflowRunTriggersField() {} + +func (tenantWithPrismaWorkflowRunTriggersSetParam) settable() {} +func (tenantWithPrismaWorkflowRunTriggersEqualsParam) equals() {} + +type tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) workflowRunTriggersField() {} + +func (tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) unique() {} +func (tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) equals() {} + +type TenantWithPrismaJobRunsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + jobRunsField() +} + +type TenantWithPrismaJobRunsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + jobRunsField() +} + +type tenantWithPrismaJobRunsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobRunsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobRunsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobRunsSetParam) tenantModel() {} + +func (p tenantWithPrismaJobRunsSetParam) jobRunsField() {} + +type TenantWithPrismaJobRunsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + jobRunsField() +} + +type tenantWithPrismaJobRunsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobRunsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobRunsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobRunsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaJobRunsEqualsParam) jobRunsField() {} + +func (tenantWithPrismaJobRunsSetParam) settable() {} +func (tenantWithPrismaJobRunsEqualsParam) equals() {} + +type tenantWithPrismaJobRunsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobRunsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobRunsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobRunsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaJobRunsEqualsUniqueParam) jobRunsField() {} + +func (tenantWithPrismaJobRunsEqualsUniqueParam) unique() {} +func (tenantWithPrismaJobRunsEqualsUniqueParam) equals() {} + +type TenantWithPrismaJobRunLookupDatasEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + jobRunLookupDatasField() +} + +type TenantWithPrismaJobRunLookupDatasSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + jobRunLookupDatasField() +} + +type tenantWithPrismaJobRunLookupDatasSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobRunLookupDatasSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobRunLookupDatasSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobRunLookupDatasSetParam) tenantModel() {} + +func (p tenantWithPrismaJobRunLookupDatasSetParam) jobRunLookupDatasField() {} + +type TenantWithPrismaJobRunLookupDatasWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + jobRunLookupDatasField() +} + +type tenantWithPrismaJobRunLookupDatasEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobRunLookupDatasEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobRunLookupDatasEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobRunLookupDatasEqualsParam) tenantModel() {} + +func (p tenantWithPrismaJobRunLookupDatasEqualsParam) jobRunLookupDatasField() {} + +func (tenantWithPrismaJobRunLookupDatasSetParam) settable() {} +func (tenantWithPrismaJobRunLookupDatasEqualsParam) equals() {} + +type tenantWithPrismaJobRunLookupDatasEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) jobRunLookupDatasField() {} + +func (tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) unique() {} +func (tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) equals() {} + +type TenantWithPrismaStepRunsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + stepRunsField() +} + +type TenantWithPrismaStepRunsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + stepRunsField() +} + +type tenantWithPrismaStepRunsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepRunsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepRunsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepRunsSetParam) tenantModel() {} + +func (p tenantWithPrismaStepRunsSetParam) stepRunsField() {} + +type TenantWithPrismaStepRunsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + stepRunsField() +} + +type tenantWithPrismaStepRunsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepRunsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepRunsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepRunsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaStepRunsEqualsParam) stepRunsField() {} + +func (tenantWithPrismaStepRunsSetParam) settable() {} +func (tenantWithPrismaStepRunsEqualsParam) equals() {} + +type tenantWithPrismaStepRunsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepRunsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} + +func (tenantWithPrismaStepRunsEqualsUniqueParam) unique() {} +func (tenantWithPrismaStepRunsEqualsUniqueParam) equals() {} + +type TenantWithPrismaWorkersEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + workersField() +} + +type TenantWithPrismaWorkersSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workersField() +} + +type tenantWithPrismaWorkersSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkersSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkersSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkersSetParam) tenantModel() {} + +func (p tenantWithPrismaWorkersSetParam) workersField() {} + +type TenantWithPrismaWorkersWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workersField() +} + +type tenantWithPrismaWorkersEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkersEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkersEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkersEqualsParam) tenantModel() {} + +func (p tenantWithPrismaWorkersEqualsParam) workersField() {} + +func (tenantWithPrismaWorkersSetParam) settable() {} +func (tenantWithPrismaWorkersEqualsParam) equals() {} + +type tenantWithPrismaWorkersEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkersEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkersEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkersEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaWorkersEqualsUniqueParam) workersField() {} + +func (tenantWithPrismaWorkersEqualsUniqueParam) unique() {} +func (tenantWithPrismaWorkersEqualsUniqueParam) equals() {} + +type TenantWithPrismaMembersEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + membersField() +} + +type TenantWithPrismaMembersSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + membersField() +} + +type tenantWithPrismaMembersSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaMembersSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaMembersSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaMembersSetParam) tenantModel() {} + +func (p tenantWithPrismaMembersSetParam) membersField() {} + +type TenantWithPrismaMembersWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + membersField() +} + +type tenantWithPrismaMembersEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaMembersEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaMembersEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaMembersEqualsParam) tenantModel() {} + +func (p tenantWithPrismaMembersEqualsParam) membersField() {} + +func (tenantWithPrismaMembersSetParam) settable() {} +func (tenantWithPrismaMembersEqualsParam) equals() {} + +type tenantWithPrismaMembersEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaMembersEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaMembersEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaMembersEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaMembersEqualsUniqueParam) membersField() {} + +func (tenantWithPrismaMembersEqualsUniqueParam) unique() {} +func (tenantWithPrismaMembersEqualsUniqueParam) equals() {} + +type TenantWithPrismaWorkflowTagsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + workflowTagsField() +} + +type TenantWithPrismaWorkflowTagsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workflowTagsField() +} + +type tenantWithPrismaWorkflowTagsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowTagsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowTagsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowTagsSetParam) tenantModel() {} + +func (p tenantWithPrismaWorkflowTagsSetParam) workflowTagsField() {} + +type TenantWithPrismaWorkflowTagsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + workflowTagsField() +} + +type tenantWithPrismaWorkflowTagsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowTagsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowTagsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowTagsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaWorkflowTagsEqualsParam) workflowTagsField() {} + +func (tenantWithPrismaWorkflowTagsSetParam) settable() {} +func (tenantWithPrismaWorkflowTagsEqualsParam) equals() {} + +type tenantWithPrismaWorkflowTagsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWorkflowTagsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWorkflowTagsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWorkflowTagsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaWorkflowTagsEqualsUniqueParam) workflowTagsField() {} + +func (tenantWithPrismaWorkflowTagsEqualsUniqueParam) unique() {} +func (tenantWithPrismaWorkflowTagsEqualsUniqueParam) equals() {} + +type TenantWithPrismaActionsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + actionsField() +} + +type TenantWithPrismaActionsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + actionsField() +} + +type tenantWithPrismaActionsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaActionsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaActionsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaActionsSetParam) tenantModel() {} + +func (p tenantWithPrismaActionsSetParam) actionsField() {} + +type TenantWithPrismaActionsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + actionsField() +} + +type tenantWithPrismaActionsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaActionsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaActionsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaActionsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaActionsEqualsParam) actionsField() {} + +func (tenantWithPrismaActionsSetParam) settable() {} +func (tenantWithPrismaActionsEqualsParam) equals() {} + +type tenantWithPrismaActionsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaActionsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaActionsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaActionsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaActionsEqualsUniqueParam) actionsField() {} + +func (tenantWithPrismaActionsEqualsUniqueParam) unique() {} +func (tenantWithPrismaActionsEqualsUniqueParam) equals() {} + +type TenantWithPrismaServicesEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + servicesField() +} + +type TenantWithPrismaServicesSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + servicesField() +} + +type tenantWithPrismaServicesSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaServicesSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaServicesSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaServicesSetParam) tenantModel() {} + +func (p tenantWithPrismaServicesSetParam) servicesField() {} + +type TenantWithPrismaServicesWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + servicesField() +} + +type tenantWithPrismaServicesEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaServicesEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaServicesEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaServicesEqualsParam) tenantModel() {} + +func (p tenantWithPrismaServicesEqualsParam) servicesField() {} + +func (tenantWithPrismaServicesSetParam) settable() {} +func (tenantWithPrismaServicesEqualsParam) equals() {} + +type tenantWithPrismaServicesEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaServicesEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaServicesEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaServicesEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaServicesEqualsUniqueParam) servicesField() {} + +func (tenantWithPrismaServicesEqualsUniqueParam) unique() {} +func (tenantWithPrismaServicesEqualsUniqueParam) equals() {} + +type TenantWithPrismaInvitesEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + invitesField() +} + +type TenantWithPrismaInvitesSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + invitesField() +} + +type tenantWithPrismaInvitesSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaInvitesSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaInvitesSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaInvitesSetParam) tenantModel() {} + +func (p tenantWithPrismaInvitesSetParam) invitesField() {} + +type TenantWithPrismaInvitesWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + invitesField() +} + +type tenantWithPrismaInvitesEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaInvitesEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaInvitesEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaInvitesEqualsParam) tenantModel() {} + +func (p tenantWithPrismaInvitesEqualsParam) invitesField() {} + +func (tenantWithPrismaInvitesSetParam) settable() {} +func (tenantWithPrismaInvitesEqualsParam) equals() {} + +type tenantWithPrismaInvitesEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaInvitesEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaInvitesEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaInvitesEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaInvitesEqualsUniqueParam) invitesField() {} + +func (tenantWithPrismaInvitesEqualsUniqueParam) unique() {} +func (tenantWithPrismaInvitesEqualsUniqueParam) equals() {} + +type TenantWithPrismaAPITokensEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + apiTokensField() +} + +type TenantWithPrismaAPITokensSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + apiTokensField() +} + +type tenantWithPrismaAPITokensSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAPITokensSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAPITokensSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAPITokensSetParam) tenantModel() {} + +func (p tenantWithPrismaAPITokensSetParam) apiTokensField() {} + +type TenantWithPrismaAPITokensWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + apiTokensField() +} + +type tenantWithPrismaAPITokensEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAPITokensEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAPITokensEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAPITokensEqualsParam) tenantModel() {} + +func (p tenantWithPrismaAPITokensEqualsParam) apiTokensField() {} + +func (tenantWithPrismaAPITokensSetParam) settable() {} +func (tenantWithPrismaAPITokensEqualsParam) equals() {} + +type tenantWithPrismaAPITokensEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAPITokensEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAPITokensEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAPITokensEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaAPITokensEqualsUniqueParam) apiTokensField() {} + +func (tenantWithPrismaAPITokensEqualsUniqueParam) unique() {} +func (tenantWithPrismaAPITokensEqualsUniqueParam) equals() {} + +type TenantWithPrismaGroupKeyRunsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + groupKeyRunsField() +} + +type TenantWithPrismaGroupKeyRunsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + groupKeyRunsField() +} + +type tenantWithPrismaGroupKeyRunsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaGroupKeyRunsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaGroupKeyRunsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaGroupKeyRunsSetParam) tenantModel() {} + +func (p tenantWithPrismaGroupKeyRunsSetParam) groupKeyRunsField() {} + +type TenantWithPrismaGroupKeyRunsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + groupKeyRunsField() +} + +type tenantWithPrismaGroupKeyRunsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaGroupKeyRunsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaGroupKeyRunsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaGroupKeyRunsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaGroupKeyRunsEqualsParam) groupKeyRunsField() {} + +func (tenantWithPrismaGroupKeyRunsSetParam) settable() {} +func (tenantWithPrismaGroupKeyRunsEqualsParam) equals() {} + +type tenantWithPrismaGroupKeyRunsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaGroupKeyRunsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaGroupKeyRunsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaGroupKeyRunsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaGroupKeyRunsEqualsUniqueParam) groupKeyRunsField() {} + +func (tenantWithPrismaGroupKeyRunsEqualsUniqueParam) unique() {} +func (tenantWithPrismaGroupKeyRunsEqualsUniqueParam) equals() {} + +type TenantWithPrismaVcsProvidersEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + vcsProvidersField() +} + +type TenantWithPrismaVcsProvidersSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + vcsProvidersField() +} + +type tenantWithPrismaVcsProvidersSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaVcsProvidersSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaVcsProvidersSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaVcsProvidersSetParam) tenantModel() {} + +func (p tenantWithPrismaVcsProvidersSetParam) vcsProvidersField() {} + +type TenantWithPrismaVcsProvidersWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + vcsProvidersField() +} + +type tenantWithPrismaVcsProvidersEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaVcsProvidersEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaVcsProvidersEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaVcsProvidersEqualsParam) tenantModel() {} + +func (p tenantWithPrismaVcsProvidersEqualsParam) vcsProvidersField() {} + +func (tenantWithPrismaVcsProvidersSetParam) settable() {} +func (tenantWithPrismaVcsProvidersEqualsParam) equals() {} + +type tenantWithPrismaVcsProvidersEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaVcsProvidersEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaVcsProvidersEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaVcsProvidersEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaVcsProvidersEqualsUniqueParam) vcsProvidersField() {} + +func (tenantWithPrismaVcsProvidersEqualsUniqueParam) unique() {} +func (tenantWithPrismaVcsProvidersEqualsUniqueParam) equals() {} + +type TenantWithPrismaStreamEventsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + streamEventsField() +} + +type TenantWithPrismaStreamEventsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + streamEventsField() +} + +type tenantWithPrismaStreamEventsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStreamEventsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStreamEventsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStreamEventsSetParam) tenantModel() {} + +func (p tenantWithPrismaStreamEventsSetParam) streamEventsField() {} + +type TenantWithPrismaStreamEventsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + streamEventsField() +} + +type tenantWithPrismaStreamEventsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStreamEventsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStreamEventsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStreamEventsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaStreamEventsEqualsParam) streamEventsField() {} + +func (tenantWithPrismaStreamEventsSetParam) settable() {} +func (tenantWithPrismaStreamEventsEqualsParam) equals() {} + +type tenantWithPrismaStreamEventsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStreamEventsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStreamEventsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStreamEventsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaStreamEventsEqualsUniqueParam) streamEventsField() {} + +func (tenantWithPrismaStreamEventsEqualsUniqueParam) unique() {} +func (tenantWithPrismaStreamEventsEqualsUniqueParam) equals() {} + +type TenantWithPrismaLogsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + logsField() +} + +type TenantWithPrismaLogsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + logsField() +} + +type tenantWithPrismaLogsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLogsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLogsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLogsSetParam) tenantModel() {} + +func (p tenantWithPrismaLogsSetParam) logsField() {} + +type TenantWithPrismaLogsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + logsField() +} + +type tenantWithPrismaLogsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLogsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLogsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLogsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaLogsEqualsParam) logsField() {} + +func (tenantWithPrismaLogsSetParam) settable() {} +func (tenantWithPrismaLogsEqualsParam) equals() {} + +type tenantWithPrismaLogsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLogsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLogsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLogsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaLogsEqualsUniqueParam) logsField() {} + +func (tenantWithPrismaLogsEqualsUniqueParam) unique() {} +func (tenantWithPrismaLogsEqualsUniqueParam) equals() {} + +type TenantWithPrismaSnsIntegrationsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + snsIntegrationsField() +} + +type TenantWithPrismaSnsIntegrationsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + snsIntegrationsField() +} + +type tenantWithPrismaSnsIntegrationsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSnsIntegrationsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSnsIntegrationsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSnsIntegrationsSetParam) tenantModel() {} + +func (p tenantWithPrismaSnsIntegrationsSetParam) snsIntegrationsField() {} + +type TenantWithPrismaSnsIntegrationsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + snsIntegrationsField() +} + +type tenantWithPrismaSnsIntegrationsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSnsIntegrationsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSnsIntegrationsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSnsIntegrationsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaSnsIntegrationsEqualsParam) snsIntegrationsField() {} + +func (tenantWithPrismaSnsIntegrationsSetParam) settable() {} +func (tenantWithPrismaSnsIntegrationsEqualsParam) equals() {} + +type tenantWithPrismaSnsIntegrationsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSnsIntegrationsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSnsIntegrationsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSnsIntegrationsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaSnsIntegrationsEqualsUniqueParam) snsIntegrationsField() {} + +func (tenantWithPrismaSnsIntegrationsEqualsUniqueParam) unique() {} +func (tenantWithPrismaSnsIntegrationsEqualsUniqueParam) equals() {} + +type TenantWithPrismaRateLimitsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + rateLimitsField() +} + +type TenantWithPrismaRateLimitsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + rateLimitsField() +} + +type tenantWithPrismaRateLimitsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaRateLimitsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaRateLimitsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaRateLimitsSetParam) tenantModel() {} + +func (p tenantWithPrismaRateLimitsSetParam) rateLimitsField() {} + +type TenantWithPrismaRateLimitsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + rateLimitsField() +} + +type tenantWithPrismaRateLimitsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaRateLimitsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaRateLimitsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaRateLimitsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaRateLimitsEqualsParam) rateLimitsField() {} + +func (tenantWithPrismaRateLimitsSetParam) settable() {} +func (tenantWithPrismaRateLimitsEqualsParam) equals() {} + +type tenantWithPrismaRateLimitsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaRateLimitsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaRateLimitsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaRateLimitsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaRateLimitsEqualsUniqueParam) rateLimitsField() {} + +func (tenantWithPrismaRateLimitsEqualsUniqueParam) unique() {} +func (tenantWithPrismaRateLimitsEqualsUniqueParam) equals() {} + +type TenantWithPrismaStepRateLimitsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + stepRateLimitsField() +} + +type TenantWithPrismaStepRateLimitsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + stepRateLimitsField() +} + +type tenantWithPrismaStepRateLimitsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepRateLimitsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepRateLimitsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepRateLimitsSetParam) tenantModel() {} + +func (p tenantWithPrismaStepRateLimitsSetParam) stepRateLimitsField() {} + +type TenantWithPrismaStepRateLimitsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + stepRateLimitsField() +} + +type tenantWithPrismaStepRateLimitsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepRateLimitsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepRateLimitsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepRateLimitsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaStepRateLimitsEqualsParam) stepRateLimitsField() {} + +func (tenantWithPrismaStepRateLimitsSetParam) settable() {} +func (tenantWithPrismaStepRateLimitsEqualsParam) equals() {} + +type tenantWithPrismaStepRateLimitsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaStepRateLimitsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaStepRateLimitsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaStepRateLimitsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaStepRateLimitsEqualsUniqueParam) stepRateLimitsField() {} + +func (tenantWithPrismaStepRateLimitsEqualsUniqueParam) unique() {} +func (tenantWithPrismaStepRateLimitsEqualsUniqueParam) equals() {} + +type TenantWithPrismaAlertEmailGroupsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + alertEmailGroupsField() +} + +type TenantWithPrismaAlertEmailGroupsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + alertEmailGroupsField() +} + +type tenantWithPrismaAlertEmailGroupsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertEmailGroupsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertEmailGroupsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertEmailGroupsSetParam) tenantModel() {} + +func (p tenantWithPrismaAlertEmailGroupsSetParam) alertEmailGroupsField() {} + +type TenantWithPrismaAlertEmailGroupsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + alertEmailGroupsField() +} + +type tenantWithPrismaAlertEmailGroupsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertEmailGroupsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertEmailGroupsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertEmailGroupsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaAlertEmailGroupsEqualsParam) alertEmailGroupsField() {} + +func (tenantWithPrismaAlertEmailGroupsSetParam) settable() {} +func (tenantWithPrismaAlertEmailGroupsEqualsParam) equals() {} + +type tenantWithPrismaAlertEmailGroupsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) alertEmailGroupsField() {} + +func (tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) unique() {} +func (tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) equals() {} + +type TenantWithPrismaAlertMemberEmailsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + alertMemberEmailsField() +} + +type TenantWithPrismaAlertMemberEmailsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + alertMemberEmailsField() +} + +type tenantWithPrismaAlertMemberEmailsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertMemberEmailsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertMemberEmailsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertMemberEmailsSetParam) tenantModel() {} + +func (p tenantWithPrismaAlertMemberEmailsSetParam) alertMemberEmailsField() {} + +type TenantWithPrismaAlertMemberEmailsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + alertMemberEmailsField() +} + +type tenantWithPrismaAlertMemberEmailsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertMemberEmailsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertMemberEmailsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertMemberEmailsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaAlertMemberEmailsEqualsParam) alertMemberEmailsField() {} + +func (tenantWithPrismaAlertMemberEmailsSetParam) settable() {} +func (tenantWithPrismaAlertMemberEmailsEqualsParam) equals() {} + +type tenantWithPrismaAlertMemberEmailsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) alertMemberEmailsField() {} + +func (tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) unique() {} +func (tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) equals() {} + +type TenantWithPrismaSlackWebhooksEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + slackWebhooksField() +} + +type TenantWithPrismaSlackWebhooksSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + slackWebhooksField() +} + +type tenantWithPrismaSlackWebhooksSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSlackWebhooksSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSlackWebhooksSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSlackWebhooksSetParam) tenantModel() {} + +func (p tenantWithPrismaSlackWebhooksSetParam) slackWebhooksField() {} + +type TenantWithPrismaSlackWebhooksWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + slackWebhooksField() +} + +type tenantWithPrismaSlackWebhooksEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSlackWebhooksEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSlackWebhooksEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSlackWebhooksEqualsParam) tenantModel() {} + +func (p tenantWithPrismaSlackWebhooksEqualsParam) slackWebhooksField() {} + +func (tenantWithPrismaSlackWebhooksSetParam) settable() {} +func (tenantWithPrismaSlackWebhooksEqualsParam) equals() {} + +type tenantWithPrismaSlackWebhooksEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaSlackWebhooksEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaSlackWebhooksEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaSlackWebhooksEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaSlackWebhooksEqualsUniqueParam) slackWebhooksField() {} + +func (tenantWithPrismaSlackWebhooksEqualsUniqueParam) unique() {} +func (tenantWithPrismaSlackWebhooksEqualsUniqueParam) equals() {} + +type TenantWithPrismaAlertingSettingsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + alertingSettingsField() +} + +type TenantWithPrismaAlertingSettingsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + alertingSettingsField() +} + +type tenantWithPrismaAlertingSettingsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertingSettingsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertingSettingsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertingSettingsSetParam) tenantModel() {} + +func (p tenantWithPrismaAlertingSettingsSetParam) alertingSettingsField() {} + +type TenantWithPrismaAlertingSettingsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + alertingSettingsField() +} + +type tenantWithPrismaAlertingSettingsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertingSettingsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertingSettingsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertingSettingsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaAlertingSettingsEqualsParam) alertingSettingsField() {} + +func (tenantWithPrismaAlertingSettingsSetParam) settable() {} +func (tenantWithPrismaAlertingSettingsEqualsParam) equals() {} + +type tenantWithPrismaAlertingSettingsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaAlertingSettingsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaAlertingSettingsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaAlertingSettingsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaAlertingSettingsEqualsUniqueParam) alertingSettingsField() {} + +func (tenantWithPrismaAlertingSettingsEqualsUniqueParam) unique() {} +func (tenantWithPrismaAlertingSettingsEqualsUniqueParam) equals() {} + +type TenantWithPrismaLimitsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + limitsField() +} + +type TenantWithPrismaLimitsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + limitsField() +} + +type tenantWithPrismaLimitsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLimitsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLimitsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLimitsSetParam) tenantModel() {} + +func (p tenantWithPrismaLimitsSetParam) limitsField() {} + +type TenantWithPrismaLimitsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + limitsField() +} + +type tenantWithPrismaLimitsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLimitsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLimitsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLimitsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaLimitsEqualsParam) limitsField() {} + +func (tenantWithPrismaLimitsSetParam) settable() {} +func (tenantWithPrismaLimitsEqualsParam) equals() {} + +type tenantWithPrismaLimitsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLimitsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLimitsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLimitsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaLimitsEqualsUniqueParam) limitsField() {} + +func (tenantWithPrismaLimitsEqualsUniqueParam) unique() {} +func (tenantWithPrismaLimitsEqualsUniqueParam) equals() {} + +type TenantWithPrismaLimitAlertsEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + limitAlertsField() +} + +type TenantWithPrismaLimitAlertsSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + limitAlertsField() +} + +type tenantWithPrismaLimitAlertsSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLimitAlertsSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLimitAlertsSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLimitAlertsSetParam) tenantModel() {} + +func (p tenantWithPrismaLimitAlertsSetParam) limitAlertsField() {} + +type TenantWithPrismaLimitAlertsWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + limitAlertsField() +} + +type tenantWithPrismaLimitAlertsEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLimitAlertsEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLimitAlertsEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLimitAlertsEqualsParam) tenantModel() {} + +func (p tenantWithPrismaLimitAlertsEqualsParam) limitAlertsField() {} + +func (tenantWithPrismaLimitAlertsSetParam) settable() {} +func (tenantWithPrismaLimitAlertsEqualsParam) equals() {} + +type tenantWithPrismaLimitAlertsEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaLimitAlertsEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaLimitAlertsEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaLimitAlertsEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaLimitAlertsEqualsUniqueParam) limitAlertsField() {} + +func (tenantWithPrismaLimitAlertsEqualsUniqueParam) unique() {} +func (tenantWithPrismaLimitAlertsEqualsUniqueParam) equals() {} + +type TenantWithPrismaWebhookWorkersEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + webhookWorkersField() +} + +type TenantWithPrismaWebhookWorkersSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + webhookWorkersField() +} + +type tenantWithPrismaWebhookWorkersSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWebhookWorkersSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWebhookWorkersSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWebhookWorkersSetParam) tenantModel() {} + +func (p tenantWithPrismaWebhookWorkersSetParam) webhookWorkersField() {} + +type TenantWithPrismaWebhookWorkersWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + webhookWorkersField() +} + +type tenantWithPrismaWebhookWorkersEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWebhookWorkersEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWebhookWorkersEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWebhookWorkersEqualsParam) tenantModel() {} + +func (p tenantWithPrismaWebhookWorkersEqualsParam) webhookWorkersField() {} + +func (tenantWithPrismaWebhookWorkersSetParam) settable() {} +func (tenantWithPrismaWebhookWorkersEqualsParam) equals() {} + +type tenantWithPrismaWebhookWorkersEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaWebhookWorkersEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaWebhookWorkersEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaWebhookWorkersEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaWebhookWorkersEqualsUniqueParam) webhookWorkersField() {} + +func (tenantWithPrismaWebhookWorkersEqualsUniqueParam) unique() {} +func (tenantWithPrismaWebhookWorkersEqualsUniqueParam) equals() {} + +type TenantWithPrismaDedupesEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantModel() + dedupesField() +} + +type TenantWithPrismaDedupesSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + dedupesField() +} + +type tenantWithPrismaDedupesSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDedupesSetParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDedupesSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDedupesSetParam) tenantModel() {} + +func (p tenantWithPrismaDedupesSetParam) dedupesField() {} + +type TenantWithPrismaDedupesWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantModel() + dedupesField() +} + +type tenantWithPrismaDedupesEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDedupesEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDedupesEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDedupesEqualsParam) tenantModel() {} + +func (p tenantWithPrismaDedupesEqualsParam) dedupesField() {} + +func (tenantWithPrismaDedupesSetParam) settable() {} +func (tenantWithPrismaDedupesEqualsParam) equals() {} + +type tenantWithPrismaDedupesEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantWithPrismaDedupesEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantWithPrismaDedupesEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantWithPrismaDedupesEqualsUniqueParam) tenantModel() {} +func (p tenantWithPrismaDedupesEqualsUniqueParam) dedupesField() {} + +func (tenantWithPrismaDedupesEqualsUniqueParam) unique() {} +func (tenantWithPrismaDedupesEqualsUniqueParam) equals() {} + +type tenantResourceLimitActions struct { + // client holds the prisma client + client *PrismaClient +} + +var tenantResourceLimitOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "resource"}, + {Name: "tenantId"}, + {Name: "limitValue"}, + {Name: "alarmValue"}, + {Name: "value"}, + {Name: "window"}, + {Name: "lastRefill"}, + {Name: "customValueMeter"}, +} + +type TenantResourceLimitRelationWith interface { + getQuery() builder.Query + with() + tenantResourceLimitRelation() +} + +type TenantResourceLimitWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() +} + +type tenantResourceLimitDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitDefaultParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitDefaultParam) tenantResourceLimitModel() {} + +type TenantResourceLimitOrderByParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() +} + +type tenantResourceLimitOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitOrderByParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitOrderByParam) tenantResourceLimitModel() {} + +type TenantResourceLimitCursorParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + isCursor() +} + +type tenantResourceLimitCursorParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitCursorParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitCursorParam) isCursor() {} + +func (p tenantResourceLimitCursorParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitCursorParam) tenantResourceLimitModel() {} + +type TenantResourceLimitParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + tenantResourceLimitModel() +} + +type tenantResourceLimitParamUnique struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitParamUnique) tenantResourceLimitModel() {} + +func (tenantResourceLimitParamUnique) unique() {} + +func (p tenantResourceLimitParamUnique) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitParamUnique) getQuery() builder.Query { + return p.query +} + +type TenantResourceLimitEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() +} + +type tenantResourceLimitEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitEqualsParam) tenantResourceLimitModel() {} + +func (tenantResourceLimitEqualsParam) equals() {} + +func (p tenantResourceLimitEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitEqualsParam) getQuery() builder.Query { + return p.query +} + +type TenantResourceLimitEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + tenantResourceLimitModel() +} + +type tenantResourceLimitEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitEqualsUniqueParam) tenantResourceLimitModel() {} + +func (tenantResourceLimitEqualsUniqueParam) unique() {} +func (tenantResourceLimitEqualsUniqueParam) equals() {} + +func (p tenantResourceLimitEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +type TenantResourceLimitSetParam interface { + field() builder.Field + settable() + tenantResourceLimitModel() +} + +type tenantResourceLimitSetParam struct { + data builder.Field +} + +func (tenantResourceLimitSetParam) settable() {} + +func (p tenantResourceLimitSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitSetParam) tenantResourceLimitModel() {} + +type TenantResourceLimitWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + idField() +} + +type TenantResourceLimitWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + idField() +} + +type tenantResourceLimitWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaIDSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaIDSetParam) idField() {} + +type TenantResourceLimitWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + idField() +} + +type tenantResourceLimitWithPrismaIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaIDEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaIDEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaIDEqualsParam) idField() {} + +func (tenantResourceLimitWithPrismaIDSetParam) settable() {} +func (tenantResourceLimitWithPrismaIDEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaIDEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaIDEqualsUniqueParam) idField() {} + +func (tenantResourceLimitWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaIDEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + createdAtField() +} + +type TenantResourceLimitWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + createdAtField() +} + +type tenantResourceLimitWithPrismaCreatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaCreatedAtSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaCreatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaCreatedAtSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaCreatedAtSetParam) createdAtField() {} + +type TenantResourceLimitWithPrismaCreatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + createdAtField() +} + +type tenantResourceLimitWithPrismaCreatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaCreatedAtEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (tenantResourceLimitWithPrismaCreatedAtSetParam) settable() {} +func (tenantResourceLimitWithPrismaCreatedAtEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaUpdatedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + updatedAtField() +} + +type TenantResourceLimitWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + updatedAtField() +} + +type tenantResourceLimitWithPrismaUpdatedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaUpdatedAtSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaUpdatedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaUpdatedAtSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type TenantResourceLimitWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + updatedAtField() +} + +type tenantResourceLimitWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaUpdatedAtEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (tenantResourceLimitWithPrismaUpdatedAtSetParam) settable() {} +func (tenantResourceLimitWithPrismaUpdatedAtEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaResourceEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + resourceField() +} + +type TenantResourceLimitWithPrismaResourceSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + resourceField() +} + +type tenantResourceLimitWithPrismaResourceSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaResourceSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaResourceSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaResourceSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaResourceSetParam) resourceField() {} + +type TenantResourceLimitWithPrismaResourceWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + resourceField() +} + +type tenantResourceLimitWithPrismaResourceEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaResourceEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaResourceEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaResourceEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaResourceEqualsParam) resourceField() {} + +func (tenantResourceLimitWithPrismaResourceSetParam) settable() {} +func (tenantResourceLimitWithPrismaResourceEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaResourceEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaResourceEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaResourceEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaResourceEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaResourceEqualsUniqueParam) resourceField() {} + +func (tenantResourceLimitWithPrismaResourceEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaResourceEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaTenantEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + tenantField() +} + +type TenantResourceLimitWithPrismaTenantSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + tenantField() +} + +type tenantResourceLimitWithPrismaTenantSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaTenantSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaTenantSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaTenantSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaTenantSetParam) tenantField() {} + +type TenantResourceLimitWithPrismaTenantWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + tenantField() +} + +type tenantResourceLimitWithPrismaTenantEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaTenantEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaTenantEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaTenantEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaTenantEqualsParam) tenantField() {} + +func (tenantResourceLimitWithPrismaTenantSetParam) settable() {} +func (tenantResourceLimitWithPrismaTenantEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaTenantEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaTenantEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaTenantEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaTenantEqualsUniqueParam) tenantField() {} + +func (tenantResourceLimitWithPrismaTenantEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaTenantEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaTenantIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + tenantIDField() +} + +type TenantResourceLimitWithPrismaTenantIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + tenantIDField() +} + +type tenantResourceLimitWithPrismaTenantIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaTenantIDSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaTenantIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaTenantIDSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaTenantIDSetParam) tenantIDField() {} + +type TenantResourceLimitWithPrismaTenantIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + tenantIDField() +} + +type tenantResourceLimitWithPrismaTenantIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaTenantIDEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaTenantIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaTenantIDEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaTenantIDEqualsParam) tenantIDField() {} + +func (tenantResourceLimitWithPrismaTenantIDSetParam) settable() {} +func (tenantResourceLimitWithPrismaTenantIDEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} + +func (tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaLimitValueEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + limitValueField() +} + +type TenantResourceLimitWithPrismaLimitValueSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + limitValueField() +} + +type tenantResourceLimitWithPrismaLimitValueSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaLimitValueSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaLimitValueSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaLimitValueSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaLimitValueSetParam) limitValueField() {} + +type TenantResourceLimitWithPrismaLimitValueWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + limitValueField() +} + +type tenantResourceLimitWithPrismaLimitValueEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaLimitValueEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaLimitValueEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaLimitValueEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaLimitValueEqualsParam) limitValueField() {} + +func (tenantResourceLimitWithPrismaLimitValueSetParam) settable() {} +func (tenantResourceLimitWithPrismaLimitValueEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) limitValueField() {} + +func (tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaAlarmValueEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + alarmValueField() +} + +type TenantResourceLimitWithPrismaAlarmValueSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + alarmValueField() +} + +type tenantResourceLimitWithPrismaAlarmValueSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaAlarmValueSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaAlarmValueSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaAlarmValueSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaAlarmValueSetParam) alarmValueField() {} + +type TenantResourceLimitWithPrismaAlarmValueWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + alarmValueField() +} + +type tenantResourceLimitWithPrismaAlarmValueEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaAlarmValueEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaAlarmValueEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaAlarmValueEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaAlarmValueEqualsParam) alarmValueField() {} + +func (tenantResourceLimitWithPrismaAlarmValueSetParam) settable() {} +func (tenantResourceLimitWithPrismaAlarmValueEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) alarmValueField() {} + +func (tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaValueEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + valueField() +} + +type TenantResourceLimitWithPrismaValueSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + valueField() +} + +type tenantResourceLimitWithPrismaValueSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaValueSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaValueSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaValueSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaValueSetParam) valueField() {} + +type TenantResourceLimitWithPrismaValueWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + valueField() +} + +type tenantResourceLimitWithPrismaValueEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaValueEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaValueEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaValueEqualsParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaValueEqualsParam) valueField() {} + +func (tenantResourceLimitWithPrismaValueSetParam) settable() {} +func (tenantResourceLimitWithPrismaValueEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaValueEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaValueEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaValueEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaValueEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaValueEqualsUniqueParam) valueField() {} + +func (tenantResourceLimitWithPrismaValueEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaValueEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaWindowEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitModel() + windowField() +} + +type TenantResourceLimitWithPrismaWindowSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + windowField() +} + +type tenantResourceLimitWithPrismaWindowSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaWindowSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaWindowSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaWindowSetParam) tenantResourceLimitModel() {} + +func (p tenantResourceLimitWithPrismaWindowSetParam) windowField() {} + +type TenantResourceLimitWithPrismaWindowWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + windowField() +} + +type tenantResourceLimitWithPrismaWindowEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaWindowEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaWindowEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaWindowEqualsParam) tenantResourceLimitModel() {} -type UserWithPrismaDeletedAtWhereParam interface { +func (p tenantResourceLimitWithPrismaWindowEqualsParam) windowField() {} + +func (tenantResourceLimitWithPrismaWindowSetParam) settable() {} +func (tenantResourceLimitWithPrismaWindowEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaWindowEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaWindowEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaWindowEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaWindowEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaWindowEqualsUniqueParam) windowField() {} + +func (tenantResourceLimitWithPrismaWindowEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaWindowEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaLastRefillEqualsSetParam interface { field() builder.Field getQuery() builder.Query - userModel() - deletedAtField() + equals() + tenantResourceLimitModel() + lastRefillField() } -type userWithPrismaDeletedAtEqualsParam struct { +type TenantResourceLimitWithPrismaLastRefillSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + lastRefillField() +} + +type tenantResourceLimitWithPrismaLastRefillSetParam struct { data builder.Field query builder.Query } -func (p userWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p tenantResourceLimitWithPrismaLastRefillSetParam) field() builder.Field { return p.data } -func (p userWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p tenantResourceLimitWithPrismaLastRefillSetParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaDeletedAtEqualsParam) userModel() {} +func (p tenantResourceLimitWithPrismaLastRefillSetParam) tenantResourceLimitModel() {} -func (p userWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p tenantResourceLimitWithPrismaLastRefillSetParam) lastRefillField() {} -func (userWithPrismaDeletedAtSetParam) settable() {} -func (userWithPrismaDeletedAtEqualsParam) equals() {} +type TenantResourceLimitWithPrismaLastRefillWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitModel() + lastRefillField() +} -type userWithPrismaDeletedAtEqualsUniqueParam struct { +type tenantResourceLimitWithPrismaLastRefillEqualsParam struct { data builder.Field query builder.Query } -func (p userWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p tenantResourceLimitWithPrismaLastRefillEqualsParam) field() builder.Field { return p.data } -func (p userWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantResourceLimitWithPrismaLastRefillEqualsParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaDeletedAtEqualsUniqueParam) userModel() {} -func (p userWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p tenantResourceLimitWithPrismaLastRefillEqualsParam) tenantResourceLimitModel() {} -func (userWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (userWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (p tenantResourceLimitWithPrismaLastRefillEqualsParam) lastRefillField() {} -type UserWithPrismaEmailEqualsSetParam interface { +func (tenantResourceLimitWithPrismaLastRefillSetParam) settable() {} +func (tenantResourceLimitWithPrismaLastRefillEqualsParam) equals() {} + +type tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) lastRefillField() {} + +func (tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) equals() {} + +type TenantResourceLimitWithPrismaCustomValueMeterEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userModel() - emailField() + tenantResourceLimitModel() + customValueMeterField() } -type UserWithPrismaEmailSetParam interface { +type TenantResourceLimitWithPrismaCustomValueMeterSetParam interface { field() builder.Field getQuery() builder.Query - userModel() - emailField() + tenantResourceLimitModel() + customValueMeterField() } -type userWithPrismaEmailSetParam struct { +type tenantResourceLimitWithPrismaCustomValueMeterSetParam struct { data builder.Field query builder.Query } -func (p userWithPrismaEmailSetParam) field() builder.Field { +func (p tenantResourceLimitWithPrismaCustomValueMeterSetParam) field() builder.Field { return p.data } -func (p userWithPrismaEmailSetParam) getQuery() builder.Query { +func (p tenantResourceLimitWithPrismaCustomValueMeterSetParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaEmailSetParam) userModel() {} +func (p tenantResourceLimitWithPrismaCustomValueMeterSetParam) tenantResourceLimitModel() {} -func (p userWithPrismaEmailSetParam) emailField() {} +func (p tenantResourceLimitWithPrismaCustomValueMeterSetParam) customValueMeterField() {} -type UserWithPrismaEmailWhereParam interface { +type TenantResourceLimitWithPrismaCustomValueMeterWhereParam interface { field() builder.Field getQuery() builder.Query - userModel() - emailField() + tenantResourceLimitModel() + customValueMeterField() } -type userWithPrismaEmailEqualsParam struct { +type tenantResourceLimitWithPrismaCustomValueMeterEqualsParam struct { data builder.Field query builder.Query } -func (p userWithPrismaEmailEqualsParam) field() builder.Field { +func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) field() builder.Field { return p.data } -func (p userWithPrismaEmailEqualsParam) getQuery() builder.Query { +func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaEmailEqualsParam) userModel() {} +func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) tenantResourceLimitModel() {} -func (p userWithPrismaEmailEqualsParam) emailField() {} +func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) customValueMeterField() {} -func (userWithPrismaEmailSetParam) settable() {} -func (userWithPrismaEmailEqualsParam) equals() {} +func (tenantResourceLimitWithPrismaCustomValueMeterSetParam) settable() {} +func (tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) equals() {} -type userWithPrismaEmailEqualsUniqueParam struct { +type tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userWithPrismaEmailEqualsUniqueParam) field() builder.Field { +func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) field() builder.Field { return p.data } -func (p userWithPrismaEmailEqualsUniqueParam) getQuery() builder.Query { +func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaEmailEqualsUniqueParam) userModel() {} -func (p userWithPrismaEmailEqualsUniqueParam) emailField() {} +func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) customValueMeterField() {} -func (userWithPrismaEmailEqualsUniqueParam) unique() {} -func (userWithPrismaEmailEqualsUniqueParam) equals() {} +func (tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) equals() {} -type UserWithPrismaEmailVerifiedEqualsSetParam interface { +type TenantResourceLimitWithPrismaAlertsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userModel() - emailVerifiedField() + tenantResourceLimitModel() + alertsField() } -type UserWithPrismaEmailVerifiedSetParam interface { +type TenantResourceLimitWithPrismaAlertsSetParam interface { field() builder.Field getQuery() builder.Query - userModel() - emailVerifiedField() + tenantResourceLimitModel() + alertsField() } -type userWithPrismaEmailVerifiedSetParam struct { +type tenantResourceLimitWithPrismaAlertsSetParam struct { data builder.Field query builder.Query } -func (p userWithPrismaEmailVerifiedSetParam) field() builder.Field { +func (p tenantResourceLimitWithPrismaAlertsSetParam) field() builder.Field { return p.data } -func (p userWithPrismaEmailVerifiedSetParam) getQuery() builder.Query { +func (p tenantResourceLimitWithPrismaAlertsSetParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaEmailVerifiedSetParam) userModel() {} +func (p tenantResourceLimitWithPrismaAlertsSetParam) tenantResourceLimitModel() {} -func (p userWithPrismaEmailVerifiedSetParam) emailVerifiedField() {} +func (p tenantResourceLimitWithPrismaAlertsSetParam) alertsField() {} -type UserWithPrismaEmailVerifiedWhereParam interface { +type TenantResourceLimitWithPrismaAlertsWhereParam interface { field() builder.Field getQuery() builder.Query - userModel() - emailVerifiedField() + tenantResourceLimitModel() + alertsField() } -type userWithPrismaEmailVerifiedEqualsParam struct { +type tenantResourceLimitWithPrismaAlertsEqualsParam struct { data builder.Field query builder.Query } -func (p userWithPrismaEmailVerifiedEqualsParam) field() builder.Field { +func (p tenantResourceLimitWithPrismaAlertsEqualsParam) field() builder.Field { return p.data } -func (p userWithPrismaEmailVerifiedEqualsParam) getQuery() builder.Query { +func (p tenantResourceLimitWithPrismaAlertsEqualsParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaEmailVerifiedEqualsParam) userModel() {} +func (p tenantResourceLimitWithPrismaAlertsEqualsParam) tenantResourceLimitModel() {} -func (p userWithPrismaEmailVerifiedEqualsParam) emailVerifiedField() {} +func (p tenantResourceLimitWithPrismaAlertsEqualsParam) alertsField() {} -func (userWithPrismaEmailVerifiedSetParam) settable() {} -func (userWithPrismaEmailVerifiedEqualsParam) equals() {} +func (tenantResourceLimitWithPrismaAlertsSetParam) settable() {} +func (tenantResourceLimitWithPrismaAlertsEqualsParam) equals() {} -type userWithPrismaEmailVerifiedEqualsUniqueParam struct { +type tenantResourceLimitWithPrismaAlertsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userWithPrismaEmailVerifiedEqualsUniqueParam) field() builder.Field { +func (p tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) field() builder.Field { return p.data } -func (p userWithPrismaEmailVerifiedEqualsUniqueParam) getQuery() builder.Query { +func (p tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaEmailVerifiedEqualsUniqueParam) userModel() {} -func (p userWithPrismaEmailVerifiedEqualsUniqueParam) emailVerifiedField() {} +func (p tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) tenantResourceLimitModel() {} +func (p tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) alertsField() {} -func (userWithPrismaEmailVerifiedEqualsUniqueParam) unique() {} -func (userWithPrismaEmailVerifiedEqualsUniqueParam) equals() {} +func (tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) unique() {} +func (tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) equals() {} -type UserWithPrismaOauthProvidersEqualsSetParam interface { +type tenantResourceLimitAlertActions struct { + // client holds the prisma client + client *PrismaClient +} + +var tenantResourceLimitAlertOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "resourceLimitId"}, + {Name: "tenantId"}, + {Name: "resource"}, + {Name: "alertType"}, + {Name: "value"}, + {Name: "limit"}, +} + +type TenantResourceLimitAlertRelationWith interface { + getQuery() builder.Query + with() + tenantResourceLimitAlertRelation() +} + +type TenantResourceLimitAlertWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() +} + +type tenantResourceLimitAlertDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertDefaultParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertDefaultParam) tenantResourceLimitAlertModel() {} + +type TenantResourceLimitAlertOrderByParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() +} + +type tenantResourceLimitAlertOrderByParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertOrderByParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertOrderByParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertOrderByParam) tenantResourceLimitAlertModel() {} + +type TenantResourceLimitAlertCursorParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + isCursor() +} + +type tenantResourceLimitAlertCursorParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertCursorParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertCursorParam) isCursor() {} + +func (p tenantResourceLimitAlertCursorParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertCursorParam) tenantResourceLimitAlertModel() {} + +type TenantResourceLimitAlertParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + tenantResourceLimitAlertModel() +} + +type tenantResourceLimitAlertParamUnique struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertParamUnique) tenantResourceLimitAlertModel() {} + +func (tenantResourceLimitAlertParamUnique) unique() {} + +func (p tenantResourceLimitAlertParamUnique) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertParamUnique) getQuery() builder.Query { + return p.query +} + +type TenantResourceLimitAlertEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - userModel() - oauthProvidersField() + tenantResourceLimitAlertModel() } -type UserWithPrismaOauthProvidersSetParam interface { +type tenantResourceLimitAlertEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertEqualsParam) tenantResourceLimitAlertModel() {} + +func (tenantResourceLimitAlertEqualsParam) equals() {} + +func (p tenantResourceLimitAlertEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertEqualsParam) getQuery() builder.Query { + return p.query +} + +type TenantResourceLimitAlertEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query - userModel() - oauthProvidersField() + equals() + unique() + tenantResourceLimitAlertModel() } -type userWithPrismaOauthProvidersSetParam struct { +type tenantResourceLimitAlertEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userWithPrismaOauthProvidersSetParam) field() builder.Field { +func (p tenantResourceLimitAlertEqualsUniqueParam) tenantResourceLimitAlertModel() {} + +func (tenantResourceLimitAlertEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertEqualsUniqueParam) equals() {} + +func (p tenantResourceLimitAlertEqualsUniqueParam) field() builder.Field { return p.data } -func (p userWithPrismaOauthProvidersSetParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaOauthProvidersSetParam) userModel() {} +type TenantResourceLimitAlertSetParam interface { + field() builder.Field + settable() + tenantResourceLimitAlertModel() +} -func (p userWithPrismaOauthProvidersSetParam) oauthProvidersField() {} +type tenantResourceLimitAlertSetParam struct { + data builder.Field +} -type UserWithPrismaOauthProvidersWhereParam interface { +func (tenantResourceLimitAlertSetParam) settable() {} + +func (p tenantResourceLimitAlertSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertSetParam) tenantResourceLimitAlertModel() {} + +type TenantResourceLimitAlertWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query - userModel() - oauthProvidersField() + equals() + tenantResourceLimitAlertModel() + idField() } -type userWithPrismaOauthProvidersEqualsParam struct { +type TenantResourceLimitAlertWithPrismaIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + idField() +} + +type tenantResourceLimitAlertWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p userWithPrismaOauthProvidersEqualsParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p userWithPrismaOauthProvidersEqualsParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaOauthProvidersEqualsParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaIDSetParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaOauthProvidersEqualsParam) oauthProvidersField() {} +func (p tenantResourceLimitAlertWithPrismaIDSetParam) idField() {} -func (userWithPrismaOauthProvidersSetParam) settable() {} -func (userWithPrismaOauthProvidersEqualsParam) equals() {} +type TenantResourceLimitAlertWithPrismaIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + idField() +} -type userWithPrismaOauthProvidersEqualsUniqueParam struct { +type tenantResourceLimitAlertWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p userWithPrismaOauthProvidersEqualsUniqueParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p userWithPrismaOauthProvidersEqualsUniqueParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaOauthProvidersEqualsUniqueParam) userModel() {} -func (p userWithPrismaOauthProvidersEqualsUniqueParam) oauthProvidersField() {} +func (p tenantResourceLimitAlertWithPrismaIDEqualsParam) tenantResourceLimitAlertModel() {} -func (userWithPrismaOauthProvidersEqualsUniqueParam) unique() {} -func (userWithPrismaOauthProvidersEqualsUniqueParam) equals() {} +func (p tenantResourceLimitAlertWithPrismaIDEqualsParam) idField() {} -type UserWithPrismaPasswordEqualsSetParam interface { +func (tenantResourceLimitAlertWithPrismaIDSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaIDEqualsParam) equals() {} + +type tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) tenantResourceLimitAlertModel() {} +func (p tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) idField() {} + +func (tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) equals() {} + +type TenantResourceLimitAlertWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userModel() - passwordField() + tenantResourceLimitAlertModel() + createdAtField() } -type UserWithPrismaPasswordSetParam interface { +type TenantResourceLimitAlertWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - userModel() - passwordField() + tenantResourceLimitAlertModel() + createdAtField() } -type userWithPrismaPasswordSetParam struct { +type tenantResourceLimitAlertWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p userWithPrismaPasswordSetParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p userWithPrismaPasswordSetParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaPasswordSetParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaCreatedAtSetParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaPasswordSetParam) passwordField() {} +func (p tenantResourceLimitAlertWithPrismaCreatedAtSetParam) createdAtField() {} -type UserWithPrismaPasswordWhereParam interface { +type TenantResourceLimitAlertWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - userModel() - passwordField() + tenantResourceLimitAlertModel() + createdAtField() } -type userWithPrismaPasswordEqualsParam struct { +type tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p userWithPrismaPasswordEqualsParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p userWithPrismaPasswordEqualsParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaPasswordEqualsParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaPasswordEqualsParam) passwordField() {} +func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (userWithPrismaPasswordSetParam) settable() {} -func (userWithPrismaPasswordEqualsParam) equals() {} +func (tenantResourceLimitAlertWithPrismaCreatedAtSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) equals() {} -type userWithPrismaPasswordEqualsUniqueParam struct { +type tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userWithPrismaPasswordEqualsUniqueParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p userWithPrismaPasswordEqualsUniqueParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaPasswordEqualsUniqueParam) userModel() {} -func (p userWithPrismaPasswordEqualsUniqueParam) passwordField() {} +func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) tenantResourceLimitAlertModel() { +} +func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (userWithPrismaPasswordEqualsUniqueParam) unique() {} -func (userWithPrismaPasswordEqualsUniqueParam) equals() {} +func (tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type UserWithPrismaNameEqualsSetParam interface { +type TenantResourceLimitAlertWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userModel() - nameField() + tenantResourceLimitAlertModel() + updatedAtField() } -type UserWithPrismaNameSetParam interface { +type TenantResourceLimitAlertWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - userModel() - nameField() + tenantResourceLimitAlertModel() + updatedAtField() } -type userWithPrismaNameSetParam struct { +type tenantResourceLimitAlertWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p userWithPrismaNameSetParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p userWithPrismaNameSetParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaNameSetParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaNameSetParam) nameField() {} +func (p tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) updatedAtField() {} -type UserWithPrismaNameWhereParam interface { +type TenantResourceLimitAlertWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - userModel() - nameField() + tenantResourceLimitAlertModel() + updatedAtField() } -type userWithPrismaNameEqualsParam struct { +type tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p userWithPrismaNameEqualsParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p userWithPrismaNameEqualsParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaNameEqualsParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaNameEqualsParam) nameField() {} +func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (userWithPrismaNameSetParam) settable() {} -func (userWithPrismaNameEqualsParam) equals() {} +func (tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) equals() {} -type userWithPrismaNameEqualsUniqueParam struct { +type tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userWithPrismaNameEqualsUniqueParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p userWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaNameEqualsUniqueParam) userModel() {} -func (p userWithPrismaNameEqualsUniqueParam) nameField() {} +func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) tenantResourceLimitAlertModel() { +} +func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type TenantResourceLimitAlertWithPrismaResourceLimitEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitAlertModel() + resourceLimitField() +} + +type TenantResourceLimitAlertWithPrismaResourceLimitSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + resourceLimitField() +} + +type tenantResourceLimitAlertWithPrismaResourceLimitSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitSetParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitSetParam) resourceLimitField() {} + +type TenantResourceLimitAlertWithPrismaResourceLimitWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + resourceLimitField() +} + +type tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) resourceLimitField() {} + +func (tenantResourceLimitAlertWithPrismaResourceLimitSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) equals() {} + +type tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) tenantResourceLimitAlertModel() { +} +func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) resourceLimitField() {} + +func (tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) equals() {} + +type TenantResourceLimitAlertWithPrismaResourceLimitIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitAlertModel() + resourceLimitIDField() +} + +type TenantResourceLimitAlertWithPrismaResourceLimitIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + resourceLimitIDField() +} + +type tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) resourceLimitIDField() {} + +type TenantResourceLimitAlertWithPrismaResourceLimitIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + resourceLimitIDField() +} + +type tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) tenantResourceLimitAlertModel() { +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) resourceLimitIDField() {} + +func (tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) equals() {} + +type tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) tenantResourceLimitAlertModel() { +} +func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) resourceLimitIDField() {} + +func (tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) equals() {} + +type TenantResourceLimitAlertWithPrismaTenantEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitAlertModel() + tenantField() +} + +type TenantResourceLimitAlertWithPrismaTenantSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + tenantField() +} + +type tenantResourceLimitAlertWithPrismaTenantSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaTenantSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaTenantSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaTenantSetParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaTenantSetParam) tenantField() {} + +type TenantResourceLimitAlertWithPrismaTenantWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + tenantField() +} + +type tenantResourceLimitAlertWithPrismaTenantEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaTenantEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaTenantEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaTenantEqualsParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaTenantEqualsParam) tenantField() {} + +func (tenantResourceLimitAlertWithPrismaTenantSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaTenantEqualsParam) equals() {} + +type tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) tenantResourceLimitAlertModel() {} +func (p tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) tenantField() {} + +func (tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) equals() {} + +type TenantResourceLimitAlertWithPrismaTenantIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitAlertModel() + tenantIDField() +} + +type TenantResourceLimitAlertWithPrismaTenantIDSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + tenantIDField() +} + +type tenantResourceLimitAlertWithPrismaTenantIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDSetParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaTenantIDSetParam) tenantIDField() {} + +type TenantResourceLimitAlertWithPrismaTenantIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + tenantIDField() +} + +type tenantResourceLimitAlertWithPrismaTenantIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) tenantIDField() {} + +func (tenantResourceLimitAlertWithPrismaTenantIDSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) equals() {} + +type tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) tenantResourceLimitAlertModel() { +} +func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} + +func (tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) equals() {} + +type TenantResourceLimitAlertWithPrismaResourceEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitAlertModel() + resourceField() +} + +type TenantResourceLimitAlertWithPrismaResourceSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + resourceField() +} + +type tenantResourceLimitAlertWithPrismaResourceSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceSetParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaResourceSetParam) resourceField() {} + +type TenantResourceLimitAlertWithPrismaResourceWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + resourceField() +} + +type tenantResourceLimitAlertWithPrismaResourceEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceEqualsParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaResourceEqualsParam) resourceField() {} + +func (tenantResourceLimitAlertWithPrismaResourceSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaResourceEqualsParam) equals() {} + +type tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) tenantResourceLimitAlertModel() { +} +func (p tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) resourceField() {} + +func (tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) equals() {} + +type TenantResourceLimitAlertWithPrismaAlertTypeEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + tenantResourceLimitAlertModel() + alertTypeField() +} + +type TenantResourceLimitAlertWithPrismaAlertTypeSetParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + alertTypeField() +} + +type tenantResourceLimitAlertWithPrismaAlertTypeSetParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeSetParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeSetParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeSetParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeSetParam) alertTypeField() {} + +type TenantResourceLimitAlertWithPrismaAlertTypeWhereParam interface { + field() builder.Field + getQuery() builder.Query + tenantResourceLimitAlertModel() + alertTypeField() +} + +type tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) tenantResourceLimitAlertModel() {} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) alertTypeField() {} + +func (tenantResourceLimitAlertWithPrismaAlertTypeSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) equals() {} + +type tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) tenantResourceLimitAlertModel() { +} +func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) alertTypeField() {} -func (userWithPrismaNameEqualsUniqueParam) unique() {} -func (userWithPrismaNameEqualsUniqueParam) equals() {} +func (tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) equals() {} -type UserWithPrismaSessionsEqualsSetParam interface { +type TenantResourceLimitAlertWithPrismaValueEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userModel() - sessionsField() + tenantResourceLimitAlertModel() + valueField() } -type UserWithPrismaSessionsSetParam interface { +type TenantResourceLimitAlertWithPrismaValueSetParam interface { field() builder.Field getQuery() builder.Query - userModel() - sessionsField() + tenantResourceLimitAlertModel() + valueField() } -type userWithPrismaSessionsSetParam struct { +type tenantResourceLimitAlertWithPrismaValueSetParam struct { data builder.Field query builder.Query } -func (p userWithPrismaSessionsSetParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaValueSetParam) field() builder.Field { return p.data } -func (p userWithPrismaSessionsSetParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaValueSetParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaSessionsSetParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaValueSetParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaSessionsSetParam) sessionsField() {} +func (p tenantResourceLimitAlertWithPrismaValueSetParam) valueField() {} -type UserWithPrismaSessionsWhereParam interface { +type TenantResourceLimitAlertWithPrismaValueWhereParam interface { field() builder.Field getQuery() builder.Query - userModel() - sessionsField() + tenantResourceLimitAlertModel() + valueField() } -type userWithPrismaSessionsEqualsParam struct { +type tenantResourceLimitAlertWithPrismaValueEqualsParam struct { data builder.Field query builder.Query } -func (p userWithPrismaSessionsEqualsParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaValueEqualsParam) field() builder.Field { return p.data } -func (p userWithPrismaSessionsEqualsParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaValueEqualsParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaSessionsEqualsParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaValueEqualsParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaSessionsEqualsParam) sessionsField() {} +func (p tenantResourceLimitAlertWithPrismaValueEqualsParam) valueField() {} -func (userWithPrismaSessionsSetParam) settable() {} -func (userWithPrismaSessionsEqualsParam) equals() {} +func (tenantResourceLimitAlertWithPrismaValueSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaValueEqualsParam) equals() {} -type userWithPrismaSessionsEqualsUniqueParam struct { +type tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userWithPrismaSessionsEqualsUniqueParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) field() builder.Field { return p.data } -func (p userWithPrismaSessionsEqualsUniqueParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaSessionsEqualsUniqueParam) userModel() {} -func (p userWithPrismaSessionsEqualsUniqueParam) sessionsField() {} +func (p tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) tenantResourceLimitAlertModel() {} +func (p tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) valueField() {} -func (userWithPrismaSessionsEqualsUniqueParam) unique() {} -func (userWithPrismaSessionsEqualsUniqueParam) equals() {} +func (tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) equals() {} -type UserWithPrismaMembershipsEqualsSetParam interface { +type TenantResourceLimitAlertWithPrismaLimitEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userModel() - membershipsField() + tenantResourceLimitAlertModel() + limitField() } -type UserWithPrismaMembershipsSetParam interface { +type TenantResourceLimitAlertWithPrismaLimitSetParam interface { field() builder.Field getQuery() builder.Query - userModel() - membershipsField() + tenantResourceLimitAlertModel() + limitField() } -type userWithPrismaMembershipsSetParam struct { +type tenantResourceLimitAlertWithPrismaLimitSetParam struct { data builder.Field query builder.Query } -func (p userWithPrismaMembershipsSetParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaLimitSetParam) field() builder.Field { return p.data } -func (p userWithPrismaMembershipsSetParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaLimitSetParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaMembershipsSetParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaLimitSetParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaMembershipsSetParam) membershipsField() {} +func (p tenantResourceLimitAlertWithPrismaLimitSetParam) limitField() {} -type UserWithPrismaMembershipsWhereParam interface { +type TenantResourceLimitAlertWithPrismaLimitWhereParam interface { field() builder.Field getQuery() builder.Query - userModel() - membershipsField() + tenantResourceLimitAlertModel() + limitField() } -type userWithPrismaMembershipsEqualsParam struct { +type tenantResourceLimitAlertWithPrismaLimitEqualsParam struct { data builder.Field query builder.Query } -func (p userWithPrismaMembershipsEqualsParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaLimitEqualsParam) field() builder.Field { return p.data } -func (p userWithPrismaMembershipsEqualsParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaLimitEqualsParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaMembershipsEqualsParam) userModel() {} +func (p tenantResourceLimitAlertWithPrismaLimitEqualsParam) tenantResourceLimitAlertModel() {} -func (p userWithPrismaMembershipsEqualsParam) membershipsField() {} +func (p tenantResourceLimitAlertWithPrismaLimitEqualsParam) limitField() {} -func (userWithPrismaMembershipsSetParam) settable() {} -func (userWithPrismaMembershipsEqualsParam) equals() {} +func (tenantResourceLimitAlertWithPrismaLimitSetParam) settable() {} +func (tenantResourceLimitAlertWithPrismaLimitEqualsParam) equals() {} -type userWithPrismaMembershipsEqualsUniqueParam struct { +type tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userWithPrismaMembershipsEqualsUniqueParam) field() builder.Field { +func (p tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) field() builder.Field { return p.data } -func (p userWithPrismaMembershipsEqualsUniqueParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userWithPrismaMembershipsEqualsUniqueParam) userModel() {} -func (p userWithPrismaMembershipsEqualsUniqueParam) membershipsField() {} +func (p tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) tenantResourceLimitAlertModel() {} +func (p tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) limitField() {} -func (userWithPrismaMembershipsEqualsUniqueParam) unique() {} -func (userWithPrismaMembershipsEqualsUniqueParam) equals() {} +func (tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) unique() {} +func (tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) equals() {} -type userOAuthActions struct { +type tenantAlertingSettingsActions struct { // client holds the prisma client client *PrismaClient } -var userOAuthOutput = []builder.Output{ +var tenantAlertingSettingsOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, - {Name: "userId"}, - {Name: "provider"}, - {Name: "providerUserId"}, - {Name: "accessToken"}, - {Name: "refreshToken"}, - {Name: "expiresAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "enableWorkflowRunFailureAlerts"}, + {Name: "enableExpiringTokenAlerts"}, + {Name: "enableTenantResourceLimitAlerts"}, + {Name: "maxFrequency"}, + {Name: "lastAlertedAt"}, + {Name: "tickerId"}, } -type UserOAuthRelationWith interface { +type TenantAlertingSettingsRelationWith interface { getQuery() builder.Query with() - userOAuthRelation() + tenantAlertingSettingsRelation() } -type UserOAuthWhereParam interface { +type TenantAlertingSettingsWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() } -type userOAuthDefaultParam struct { +type tenantAlertingSettingsDefaultParam struct { data builder.Field query builder.Query } -func (p userOAuthDefaultParam) field() builder.Field { +func (p tenantAlertingSettingsDefaultParam) field() builder.Field { return p.data } -func (p userOAuthDefaultParam) getQuery() builder.Query { +func (p tenantAlertingSettingsDefaultParam) getQuery() builder.Query { return p.query } -func (p userOAuthDefaultParam) userOAuthModel() {} +func (p tenantAlertingSettingsDefaultParam) tenantAlertingSettingsModel() {} -type UserOAuthOrderByParam interface { +type TenantAlertingSettingsOrderByParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() } -type userOAuthOrderByParam struct { +type tenantAlertingSettingsOrderByParam struct { data builder.Field query builder.Query } -func (p userOAuthOrderByParam) field() builder.Field { +func (p tenantAlertingSettingsOrderByParam) field() builder.Field { return p.data } -func (p userOAuthOrderByParam) getQuery() builder.Query { +func (p tenantAlertingSettingsOrderByParam) getQuery() builder.Query { return p.query } -func (p userOAuthOrderByParam) userOAuthModel() {} +func (p tenantAlertingSettingsOrderByParam) tenantAlertingSettingsModel() {} -type UserOAuthCursorParam interface { +type TenantAlertingSettingsCursorParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() isCursor() } -type userOAuthCursorParam struct { +type tenantAlertingSettingsCursorParam struct { data builder.Field query builder.Query } -func (p userOAuthCursorParam) field() builder.Field { +func (p tenantAlertingSettingsCursorParam) field() builder.Field { return p.data } -func (p userOAuthCursorParam) isCursor() {} +func (p tenantAlertingSettingsCursorParam) isCursor() {} -func (p userOAuthCursorParam) getQuery() builder.Query { +func (p tenantAlertingSettingsCursorParam) getQuery() builder.Query { return p.query } -func (p userOAuthCursorParam) userOAuthModel() {} +func (p tenantAlertingSettingsCursorParam) tenantAlertingSettingsModel() {} -type UserOAuthParamUnique interface { +type TenantAlertingSettingsParamUnique interface { field() builder.Field getQuery() builder.Query unique() - userOAuthModel() + tenantAlertingSettingsModel() } -type userOAuthParamUnique struct { +type tenantAlertingSettingsParamUnique struct { data builder.Field query builder.Query } -func (p userOAuthParamUnique) userOAuthModel() {} +func (p tenantAlertingSettingsParamUnique) tenantAlertingSettingsModel() {} -func (userOAuthParamUnique) unique() {} +func (tenantAlertingSettingsParamUnique) unique() {} -func (p userOAuthParamUnique) field() builder.Field { +func (p tenantAlertingSettingsParamUnique) field() builder.Field { return p.data } -func (p userOAuthParamUnique) getQuery() builder.Query { +func (p tenantAlertingSettingsParamUnique) getQuery() builder.Query { return p.query } -type UserOAuthEqualsWhereParam interface { +type TenantAlertingSettingsEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() + tenantAlertingSettingsModel() } -type userOAuthEqualsParam struct { +type tenantAlertingSettingsEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsEqualsParam) tenantAlertingSettingsModel() {} -func (userOAuthEqualsParam) equals() {} +func (tenantAlertingSettingsEqualsParam) equals() {} -func (p userOAuthEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsEqualsParam) field() builder.Field { return p.data } -func (p userOAuthEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsEqualsParam) getQuery() builder.Query { return p.query } -type UserOAuthEqualsUniqueWhereParam interface { +type TenantAlertingSettingsEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - userOAuthModel() + tenantAlertingSettingsModel() } -type userOAuthEqualsUniqueParam struct { +type tenantAlertingSettingsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthEqualsUniqueParam) userOAuthModel() {} +func (p tenantAlertingSettingsEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (userOAuthEqualsUniqueParam) unique() {} -func (userOAuthEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsEqualsUniqueParam) equals() {} -func (p userOAuthEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsEqualsUniqueParam) getQuery() builder.Query { return p.query } -type UserOAuthSetParam interface { +type TenantAlertingSettingsSetParam interface { field() builder.Field settable() - userOAuthModel() + tenantAlertingSettingsModel() } -type userOAuthSetParam struct { +type tenantAlertingSettingsSetParam struct { data builder.Field } -func (userOAuthSetParam) settable() {} +func (tenantAlertingSettingsSetParam) settable() {} -func (p userOAuthSetParam) field() builder.Field { +func (p tenantAlertingSettingsSetParam) field() builder.Field { return p.data } -func (p userOAuthSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsSetParam) tenantAlertingSettingsModel() {} -type UserOAuthWithPrismaIDEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() + tenantAlertingSettingsModel() idField() } -type UserOAuthWithPrismaIDSetParam interface { +type TenantAlertingSettingsWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() idField() } -type userOAuthWithPrismaIDSetParam struct { +type tenantAlertingSettingsWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaIDSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaIDSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaIDSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaIDSetParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaIDSetParam) idField() {} +func (p tenantAlertingSettingsWithPrismaIDSetParam) idField() {} -type UserOAuthWithPrismaIDWhereParam interface { +type TenantAlertingSettingsWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() idField() } -type userOAuthWithPrismaIDEqualsParam struct { +type tenantAlertingSettingsWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaIDEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaIDEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaIDEqualsParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaIDEqualsParam) idField() {} +func (p tenantAlertingSettingsWithPrismaIDEqualsParam) idField() {} -func (userOAuthWithPrismaIDSetParam) settable() {} -func (userOAuthWithPrismaIDEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaIDSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaIDEqualsParam) equals() {} -type userOAuthWithPrismaIDEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaIDEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaIDEqualsUniqueParam) idField() {} +func (p tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) idField() {} -func (userOAuthWithPrismaIDEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaIDEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) equals() {} -type UserOAuthWithPrismaCreatedAtEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() + tenantAlertingSettingsModel() createdAtField() } -type UserOAuthWithPrismaCreatedAtSetParam interface { +type TenantAlertingSettingsWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() createdAtField() } -type userOAuthWithPrismaCreatedAtSetParam struct { +type tenantAlertingSettingsWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaCreatedAtSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaCreatedAtSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaCreatedAtSetParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaCreatedAtSetParam) createdAtField() {} +func (p tenantAlertingSettingsWithPrismaCreatedAtSetParam) createdAtField() {} -type UserOAuthWithPrismaCreatedAtWhereParam interface { +type TenantAlertingSettingsWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() createdAtField() } -type userOAuthWithPrismaCreatedAtEqualsParam struct { +type tenantAlertingSettingsWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaCreatedAtEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (userOAuthWithPrismaCreatedAtSetParam) settable() {} -func (userOAuthWithPrismaCreatedAtEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaCreatedAtSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) equals() {} -type userOAuthWithPrismaCreatedAtEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaCreatedAtEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (userOAuthWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type UserOAuthWithPrismaUpdatedAtEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() + tenantAlertingSettingsModel() updatedAtField() } -type UserOAuthWithPrismaUpdatedAtSetParam interface { +type TenantAlertingSettingsWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() updatedAtField() } -type userOAuthWithPrismaUpdatedAtSetParam struct { +type tenantAlertingSettingsWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUpdatedAtSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaUpdatedAtSetParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p tenantAlertingSettingsWithPrismaUpdatedAtSetParam) updatedAtField() {} -type UserOAuthWithPrismaUpdatedAtWhereParam interface { +type TenantAlertingSettingsWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() + tenantAlertingSettingsModel() updatedAtField() } -type userOAuthWithPrismaUpdatedAtEqualsParam struct { +type tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUpdatedAtEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (userOAuthWithPrismaUpdatedAtSetParam) settable() {} -func (userOAuthWithPrismaUpdatedAtEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaUpdatedAtSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) equals() {} -type userOAuthWithPrismaUpdatedAtEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUpdatedAtEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (userOAuthWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type UserOAuthWithPrismaUserEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() - userField() + tenantAlertingSettingsModel() + deletedAtField() } -type UserOAuthWithPrismaUserSetParam interface { +type TenantAlertingSettingsWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - userField() + tenantAlertingSettingsModel() + deletedAtField() } -type userOAuthWithPrismaUserSetParam struct { +type tenantAlertingSettingsWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUserSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUserSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUserSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaDeletedAtSetParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaUserSetParam) userField() {} +func (p tenantAlertingSettingsWithPrismaDeletedAtSetParam) deletedAtField() {} -type UserOAuthWithPrismaUserWhereParam interface { +type TenantAlertingSettingsWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - userField() + tenantAlertingSettingsModel() + deletedAtField() } -type userOAuthWithPrismaUserEqualsParam struct { +type tenantAlertingSettingsWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUserEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUserEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUserEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaUserEqualsParam) userField() {} +func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (userOAuthWithPrismaUserSetParam) settable() {} -func (userOAuthWithPrismaUserEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaDeletedAtSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) equals() {} -type userOAuthWithPrismaUserEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUserEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUserEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUserEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaUserEqualsUniqueParam) userField() {} +func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (userOAuthWithPrismaUserEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaUserEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type UserOAuthWithPrismaUserIDEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() - userIDField() + tenantAlertingSettingsModel() + tenantField() } -type UserOAuthWithPrismaUserIDSetParam interface { +type TenantAlertingSettingsWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - userIDField() + tenantAlertingSettingsModel() + tenantField() } -type userOAuthWithPrismaUserIDSetParam struct { +type tenantAlertingSettingsWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUserIDSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUserIDSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUserIDSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaTenantSetParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaUserIDSetParam) userIDField() {} +func (p tenantAlertingSettingsWithPrismaTenantSetParam) tenantField() {} -type UserOAuthWithPrismaUserIDWhereParam interface { +type TenantAlertingSettingsWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - userIDField() + tenantAlertingSettingsModel() + tenantField() } -type userOAuthWithPrismaUserIDEqualsParam struct { +type tenantAlertingSettingsWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUserIDEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUserIDEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUserIDEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaTenantEqualsParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaUserIDEqualsParam) userIDField() {} +func (p tenantAlertingSettingsWithPrismaTenantEqualsParam) tenantField() {} -func (userOAuthWithPrismaUserIDSetParam) settable() {} -func (userOAuthWithPrismaUserIDEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaTenantSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaTenantEqualsParam) equals() {} -type userOAuthWithPrismaUserIDEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaUserIDEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaUserIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaUserIDEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaUserIDEqualsUniqueParam) userIDField() {} +func (p tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (userOAuthWithPrismaUserIDEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaUserIDEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) equals() {} -type UserOAuthWithPrismaProviderEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() - providerField() + tenantAlertingSettingsModel() + tenantIDField() } -type UserOAuthWithPrismaProviderSetParam interface { +type TenantAlertingSettingsWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - providerField() + tenantAlertingSettingsModel() + tenantIDField() } -type userOAuthWithPrismaProviderSetParam struct { +type tenantAlertingSettingsWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaProviderSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaProviderSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaProviderSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaTenantIDSetParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaProviderSetParam) providerField() {} +func (p tenantAlertingSettingsWithPrismaTenantIDSetParam) tenantIDField() {} -type UserOAuthWithPrismaProviderWhereParam interface { +type TenantAlertingSettingsWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - providerField() + tenantAlertingSettingsModel() + tenantIDField() } -type userOAuthWithPrismaProviderEqualsParam struct { +type tenantAlertingSettingsWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaProviderEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaProviderEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaProviderEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaTenantIDEqualsParam) tenantAlertingSettingsModel() {} -func (p userOAuthWithPrismaProviderEqualsParam) providerField() {} +func (p tenantAlertingSettingsWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (userOAuthWithPrismaProviderSetParam) settable() {} -func (userOAuthWithPrismaProviderEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaTenantIDSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaTenantIDEqualsParam) equals() {} -type userOAuthWithPrismaProviderEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaProviderEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaProviderEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaProviderEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaProviderEqualsUniqueParam) providerField() {} +func (p tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (userOAuthWithPrismaProviderEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaProviderEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) equals() {} -type UserOAuthWithPrismaProviderUserIDEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() - providerUserIDField() -} - -type UserOAuthWithPrismaProviderUserIDSetParam interface { - field() builder.Field - getQuery() builder.Query - userOAuthModel() - providerUserIDField() -} - -type userOAuthWithPrismaProviderUserIDSetParam struct { - data builder.Field - query builder.Query -} - -func (p userOAuthWithPrismaProviderUserIDSetParam) field() builder.Field { - return p.data -} - -func (p userOAuthWithPrismaProviderUserIDSetParam) getQuery() builder.Query { - return p.query + tenantAlertingSettingsModel() + enableWorkflowRunFailureAlertsField() } -func (p userOAuthWithPrismaProviderUserIDSetParam) userOAuthModel() {} - -func (p userOAuthWithPrismaProviderUserIDSetParam) providerUserIDField() {} - -type UserOAuthWithPrismaProviderUserIDWhereParam interface { +type TenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - providerUserIDField() + tenantAlertingSettingsModel() + enableWorkflowRunFailureAlertsField() } -type userOAuthWithPrismaProviderUserIDEqualsParam struct { +type tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaProviderUserIDEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaProviderUserIDEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaProviderUserIDEqualsParam) userOAuthModel() {} - -func (p userOAuthWithPrismaProviderUserIDEqualsParam) providerUserIDField() {} - -func (userOAuthWithPrismaProviderUserIDSetParam) settable() {} -func (userOAuthWithPrismaProviderUserIDEqualsParam) equals() {} - -type userOAuthWithPrismaProviderUserIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} - -func (p userOAuthWithPrismaProviderUserIDEqualsUniqueParam) field() builder.Field { - return p.data -} - -func (p userOAuthWithPrismaProviderUserIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) tenantAlertingSettingsModel() { } -func (p userOAuthWithPrismaProviderUserIDEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaProviderUserIDEqualsUniqueParam) providerUserIDField() {} - -func (userOAuthWithPrismaProviderUserIDEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaProviderUserIDEqualsUniqueParam) equals() {} - -type UserOAuthWithPrismaAccessTokenEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - userOAuthModel() - accessTokenField() +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) enableWorkflowRunFailureAlertsField() { } -type UserOAuthWithPrismaAccessTokenSetParam interface { +type TenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - accessTokenField() + tenantAlertingSettingsModel() + enableWorkflowRunFailureAlertsField() } -type userOAuthWithPrismaAccessTokenSetParam struct { +type tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaAccessTokenSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaAccessTokenSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaAccessTokenSetParam) userOAuthModel() {} - -func (p userOAuthWithPrismaAccessTokenSetParam) accessTokenField() {} - -type UserOAuthWithPrismaAccessTokenWhereParam interface { - field() builder.Field - getQuery() builder.Query - userOAuthModel() - accessTokenField() -} - -type userOAuthWithPrismaAccessTokenEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p userOAuthWithPrismaAccessTokenEqualsParam) field() builder.Field { - return p.data +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) tenantAlertingSettingsModel() { } -func (p userOAuthWithPrismaAccessTokenEqualsParam) getQuery() builder.Query { - return p.query +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) enableWorkflowRunFailureAlertsField() { } -func (p userOAuthWithPrismaAccessTokenEqualsParam) userOAuthModel() {} - -func (p userOAuthWithPrismaAccessTokenEqualsParam) accessTokenField() {} - -func (userOAuthWithPrismaAccessTokenSetParam) settable() {} -func (userOAuthWithPrismaAccessTokenEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) equals() {} -type userOAuthWithPrismaAccessTokenEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaAccessTokenEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaAccessTokenEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaAccessTokenEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaAccessTokenEqualsUniqueParam) accessTokenField() {} +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) tenantAlertingSettingsModel() { +} +func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) enableWorkflowRunFailureAlertsField() { +} -func (userOAuthWithPrismaAccessTokenEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaAccessTokenEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) equals() {} -type UserOAuthWithPrismaRefreshTokenEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() - refreshTokenField() + tenantAlertingSettingsModel() + enableExpiringTokenAlertsField() } -type UserOAuthWithPrismaRefreshTokenSetParam interface { +type TenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - refreshTokenField() + tenantAlertingSettingsModel() + enableExpiringTokenAlertsField() } -type userOAuthWithPrismaRefreshTokenSetParam struct { +type tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaRefreshTokenSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaRefreshTokenSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaRefreshTokenSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) tenantAlertingSettingsModel() { +} -func (p userOAuthWithPrismaRefreshTokenSetParam) refreshTokenField() {} +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) enableExpiringTokenAlertsField() { +} -type UserOAuthWithPrismaRefreshTokenWhereParam interface { +type TenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - refreshTokenField() + tenantAlertingSettingsModel() + enableExpiringTokenAlertsField() } -type userOAuthWithPrismaRefreshTokenEqualsParam struct { +type tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaRefreshTokenEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaRefreshTokenEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaRefreshTokenEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) tenantAlertingSettingsModel() { +} -func (p userOAuthWithPrismaRefreshTokenEqualsParam) refreshTokenField() {} +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) enableExpiringTokenAlertsField() { +} -func (userOAuthWithPrismaRefreshTokenSetParam) settable() {} -func (userOAuthWithPrismaRefreshTokenEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) equals() {} -type userOAuthWithPrismaRefreshTokenEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaRefreshTokenEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaRefreshTokenEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaRefreshTokenEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaRefreshTokenEqualsUniqueParam) refreshTokenField() {} +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) tenantAlertingSettingsModel() { +} +func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) enableExpiringTokenAlertsField() { +} -func (userOAuthWithPrismaRefreshTokenEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaRefreshTokenEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) equals() {} -type UserOAuthWithPrismaExpiresAtEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userOAuthModel() - expiresAtField() + tenantAlertingSettingsModel() + enableTenantResourceLimitAlertsField() } -type UserOAuthWithPrismaExpiresAtSetParam interface { +type TenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - expiresAtField() + tenantAlertingSettingsModel() + enableTenantResourceLimitAlertsField() } -type userOAuthWithPrismaExpiresAtSetParam struct { +type tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaExpiresAtSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaExpiresAtSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaExpiresAtSetParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) tenantAlertingSettingsModel() { +} -func (p userOAuthWithPrismaExpiresAtSetParam) expiresAtField() {} +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) enableTenantResourceLimitAlertsField() { +} -type UserOAuthWithPrismaExpiresAtWhereParam interface { +type TenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsWhereParam interface { field() builder.Field getQuery() builder.Query - userOAuthModel() - expiresAtField() + tenantAlertingSettingsModel() + enableTenantResourceLimitAlertsField() } -type userOAuthWithPrismaExpiresAtEqualsParam struct { +type tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaExpiresAtEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaExpiresAtEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaExpiresAtEqualsParam) userOAuthModel() {} +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) tenantAlertingSettingsModel() { +} -func (p userOAuthWithPrismaExpiresAtEqualsParam) expiresAtField() {} +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) enableTenantResourceLimitAlertsField() { +} -func (userOAuthWithPrismaExpiresAtSetParam) settable() {} -func (userOAuthWithPrismaExpiresAtEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) equals() {} -type userOAuthWithPrismaExpiresAtEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userOAuthWithPrismaExpiresAtEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) field() builder.Field { return p.data } -func (p userOAuthWithPrismaExpiresAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userOAuthWithPrismaExpiresAtEqualsUniqueParam) userOAuthModel() {} -func (p userOAuthWithPrismaExpiresAtEqualsUniqueParam) expiresAtField() {} - -func (userOAuthWithPrismaExpiresAtEqualsUniqueParam) unique() {} -func (userOAuthWithPrismaExpiresAtEqualsUniqueParam) equals() {} - -type userPasswordActions struct { - // client holds the prisma client - client *PrismaClient +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) tenantAlertingSettingsModel() { } - -var userPasswordOutput = []builder.Output{ - {Name: "hash"}, - {Name: "userId"}, +func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) enableTenantResourceLimitAlertsField() { } -type UserPasswordRelationWith interface { - getQuery() builder.Query - with() - userPasswordRelation() -} +func (tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) equals() {} -type UserPasswordWhereParam interface { +type TenantAlertingSettingsWithPrismaMaxFrequencyEqualsSetParam interface { field() builder.Field getQuery() builder.Query - userPasswordModel() -} - -type userPasswordDefaultParam struct { - data builder.Field - query builder.Query -} - -func (p userPasswordDefaultParam) field() builder.Field { - return p.data -} - -func (p userPasswordDefaultParam) getQuery() builder.Query { - return p.query + equals() + tenantAlertingSettingsModel() + maxFrequencyField() } -func (p userPasswordDefaultParam) userPasswordModel() {} - -type UserPasswordOrderByParam interface { +type TenantAlertingSettingsWithPrismaMaxFrequencySetParam interface { field() builder.Field getQuery() builder.Query - userPasswordModel() + tenantAlertingSettingsModel() + maxFrequencyField() } -type userPasswordOrderByParam struct { +type tenantAlertingSettingsWithPrismaMaxFrequencySetParam struct { data builder.Field query builder.Query } -func (p userPasswordOrderByParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaMaxFrequencySetParam) field() builder.Field { return p.data } -func (p userPasswordOrderByParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaMaxFrequencySetParam) getQuery() builder.Query { return p.query } -func (p userPasswordOrderByParam) userPasswordModel() {} - -type UserPasswordCursorParam interface { - field() builder.Field - getQuery() builder.Query - userPasswordModel() - isCursor() -} - -type userPasswordCursorParam struct { - data builder.Field - query builder.Query -} - -func (p userPasswordCursorParam) field() builder.Field { - return p.data -} - -func (p userPasswordCursorParam) isCursor() {} - -func (p userPasswordCursorParam) getQuery() builder.Query { - return p.query -} +func (p tenantAlertingSettingsWithPrismaMaxFrequencySetParam) tenantAlertingSettingsModel() {} -func (p userPasswordCursorParam) userPasswordModel() {} +func (p tenantAlertingSettingsWithPrismaMaxFrequencySetParam) maxFrequencyField() {} -type UserPasswordParamUnique interface { +type TenantAlertingSettingsWithPrismaMaxFrequencyWhereParam interface { field() builder.Field getQuery() builder.Query - unique() - userPasswordModel() + tenantAlertingSettingsModel() + maxFrequencyField() } -type userPasswordParamUnique struct { +type tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam struct { data builder.Field query builder.Query } -func (p userPasswordParamUnique) userPasswordModel() {} - -func (userPasswordParamUnique) unique() {} - -func (p userPasswordParamUnique) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) field() builder.Field { return p.data } -func (p userPasswordParamUnique) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) getQuery() builder.Query { return p.query } -type UserPasswordEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - userPasswordModel() -} - -type userPasswordEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p userPasswordEqualsParam) userPasswordModel() {} - -func (userPasswordEqualsParam) equals() {} - -func (p userPasswordEqualsParam) field() builder.Field { - return p.data -} +func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) tenantAlertingSettingsModel() {} -func (p userPasswordEqualsParam) getQuery() builder.Query { - return p.query -} +func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) maxFrequencyField() {} -type UserPasswordEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - userPasswordModel() -} +func (tenantAlertingSettingsWithPrismaMaxFrequencySetParam) settable() {} +func (tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) equals() {} -type userPasswordEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userPasswordEqualsUniqueParam) userPasswordModel() {} - -func (userPasswordEqualsUniqueParam) unique() {} -func (userPasswordEqualsUniqueParam) equals() {} - -func (p userPasswordEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) field() builder.Field { return p.data } -func (p userPasswordEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) getQuery() builder.Query { return p.query } -type UserPasswordSetParam interface { - field() builder.Field - settable() - userPasswordModel() -} - -type userPasswordSetParam struct { - data builder.Field -} - -func (userPasswordSetParam) settable() {} - -func (p userPasswordSetParam) field() builder.Field { - return p.data +func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) tenantAlertingSettingsModel() { } +func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) maxFrequencyField() {} -func (p userPasswordSetParam) userPasswordModel() {} +func (tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) equals() {} -type UserPasswordWithPrismaHashEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaLastAlertedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userPasswordModel() - hashField() + tenantAlertingSettingsModel() + lastAlertedAtField() } -type UserPasswordWithPrismaHashSetParam interface { +type TenantAlertingSettingsWithPrismaLastAlertedAtSetParam interface { field() builder.Field getQuery() builder.Query - userPasswordModel() - hashField() + tenantAlertingSettingsModel() + lastAlertedAtField() } -type userPasswordWithPrismaHashSetParam struct { +type tenantAlertingSettingsWithPrismaLastAlertedAtSetParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaHashSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaHashSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaHashSetParam) userPasswordModel() {} +func (p tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) tenantAlertingSettingsModel() {} -func (p userPasswordWithPrismaHashSetParam) hashField() {} +func (p tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) lastAlertedAtField() {} -type UserPasswordWithPrismaHashWhereParam interface { +type TenantAlertingSettingsWithPrismaLastAlertedAtWhereParam interface { field() builder.Field getQuery() builder.Query - userPasswordModel() - hashField() + tenantAlertingSettingsModel() + lastAlertedAtField() } -type userPasswordWithPrismaHashEqualsParam struct { +type tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaHashEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaHashEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaHashEqualsParam) userPasswordModel() {} +func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) tenantAlertingSettingsModel() {} -func (p userPasswordWithPrismaHashEqualsParam) hashField() {} +func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) lastAlertedAtField() {} -func (userPasswordWithPrismaHashSetParam) settable() {} -func (userPasswordWithPrismaHashEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) equals() {} -type userPasswordWithPrismaHashEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaHashEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaHashEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaHashEqualsUniqueParam) userPasswordModel() {} -func (p userPasswordWithPrismaHashEqualsUniqueParam) hashField() {} +func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) tenantAlertingSettingsModel() { +} +func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) lastAlertedAtField() {} -func (userPasswordWithPrismaHashEqualsUniqueParam) unique() {} -func (userPasswordWithPrismaHashEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) equals() {} -type UserPasswordWithPrismaUserEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaTickerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userPasswordModel() - userField() + tenantAlertingSettingsModel() + tickerField() } -type UserPasswordWithPrismaUserSetParam interface { +type TenantAlertingSettingsWithPrismaTickerSetParam interface { field() builder.Field getQuery() builder.Query - userPasswordModel() - userField() + tenantAlertingSettingsModel() + tickerField() } -type userPasswordWithPrismaUserSetParam struct { +type tenantAlertingSettingsWithPrismaTickerSetParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaUserSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTickerSetParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaUserSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTickerSetParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaUserSetParam) userPasswordModel() {} +func (p tenantAlertingSettingsWithPrismaTickerSetParam) tenantAlertingSettingsModel() {} -func (p userPasswordWithPrismaUserSetParam) userField() {} +func (p tenantAlertingSettingsWithPrismaTickerSetParam) tickerField() {} -type UserPasswordWithPrismaUserWhereParam interface { +type TenantAlertingSettingsWithPrismaTickerWhereParam interface { field() builder.Field getQuery() builder.Query - userPasswordModel() - userField() + tenantAlertingSettingsModel() + tickerField() } -type userPasswordWithPrismaUserEqualsParam struct { +type tenantAlertingSettingsWithPrismaTickerEqualsParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaUserEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTickerEqualsParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaUserEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTickerEqualsParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaUserEqualsParam) userPasswordModel() {} +func (p tenantAlertingSettingsWithPrismaTickerEqualsParam) tenantAlertingSettingsModel() {} -func (p userPasswordWithPrismaUserEqualsParam) userField() {} +func (p tenantAlertingSettingsWithPrismaTickerEqualsParam) tickerField() {} -func (userPasswordWithPrismaUserSetParam) settable() {} -func (userPasswordWithPrismaUserEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaTickerSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaTickerEqualsParam) equals() {} -type userPasswordWithPrismaUserEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaUserEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaUserEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaUserEqualsUniqueParam) userPasswordModel() {} -func (p userPasswordWithPrismaUserEqualsUniqueParam) userField() {} +func (p tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) tickerField() {} -func (userPasswordWithPrismaUserEqualsUniqueParam) unique() {} -func (userPasswordWithPrismaUserEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) equals() {} -type UserPasswordWithPrismaUserIDEqualsSetParam interface { +type TenantAlertingSettingsWithPrismaTickerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userPasswordModel() - userIDField() + tenantAlertingSettingsModel() + tickerIDField() } -type UserPasswordWithPrismaUserIDSetParam interface { +type TenantAlertingSettingsWithPrismaTickerIDSetParam interface { field() builder.Field getQuery() builder.Query - userPasswordModel() - userIDField() + tenantAlertingSettingsModel() + tickerIDField() } -type userPasswordWithPrismaUserIDSetParam struct { +type tenantAlertingSettingsWithPrismaTickerIDSetParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaUserIDSetParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTickerIDSetParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaUserIDSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTickerIDSetParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaUserIDSetParam) userPasswordModel() {} +func (p tenantAlertingSettingsWithPrismaTickerIDSetParam) tenantAlertingSettingsModel() {} -func (p userPasswordWithPrismaUserIDSetParam) userIDField() {} +func (p tenantAlertingSettingsWithPrismaTickerIDSetParam) tickerIDField() {} -type UserPasswordWithPrismaUserIDWhereParam interface { +type TenantAlertingSettingsWithPrismaTickerIDWhereParam interface { field() builder.Field getQuery() builder.Query - userPasswordModel() - userIDField() + tenantAlertingSettingsModel() + tickerIDField() } -type userPasswordWithPrismaUserIDEqualsParam struct { +type tenantAlertingSettingsWithPrismaTickerIDEqualsParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaUserIDEqualsParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTickerIDEqualsParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaUserIDEqualsParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTickerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaUserIDEqualsParam) userPasswordModel() {} +func (p tenantAlertingSettingsWithPrismaTickerIDEqualsParam) tenantAlertingSettingsModel() {} -func (p userPasswordWithPrismaUserIDEqualsParam) userIDField() {} +func (p tenantAlertingSettingsWithPrismaTickerIDEqualsParam) tickerIDField() {} -func (userPasswordWithPrismaUserIDSetParam) settable() {} -func (userPasswordWithPrismaUserIDEqualsParam) equals() {} +func (tenantAlertingSettingsWithPrismaTickerIDSetParam) settable() {} +func (tenantAlertingSettingsWithPrismaTickerIDEqualsParam) equals() {} -type userPasswordWithPrismaUserIDEqualsUniqueParam struct { +type tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userPasswordWithPrismaUserIDEqualsUniqueParam) field() builder.Field { +func (p tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p userPasswordWithPrismaUserIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userPasswordWithPrismaUserIDEqualsUniqueParam) userPasswordModel() {} -func (p userPasswordWithPrismaUserIDEqualsUniqueParam) userIDField() {} +func (p tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} -func (userPasswordWithPrismaUserIDEqualsUniqueParam) unique() {} -func (userPasswordWithPrismaUserIDEqualsUniqueParam) equals() {} +func (tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) unique() {} +func (tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) equals() {} -type userSessionActions struct { +type tenantMemberActions struct { // client holds the prisma client client *PrismaClient } -var userSessionOutput = []builder.Output{ +var tenantMemberOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, + {Name: "tenantId"}, {Name: "userId"}, - {Name: "data"}, - {Name: "expiresAt"}, + {Name: "role"}, } -type UserSessionRelationWith interface { +type TenantMemberRelationWith interface { getQuery() builder.Query with() - userSessionRelation() + tenantMemberRelation() } -type UserSessionWhereParam interface { +type TenantMemberWhereParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() } -type userSessionDefaultParam struct { +type tenantMemberDefaultParam struct { data builder.Field query builder.Query } -func (p userSessionDefaultParam) field() builder.Field { +func (p tenantMemberDefaultParam) field() builder.Field { return p.data } -func (p userSessionDefaultParam) getQuery() builder.Query { +func (p tenantMemberDefaultParam) getQuery() builder.Query { return p.query } -func (p userSessionDefaultParam) userSessionModel() {} +func (p tenantMemberDefaultParam) tenantMemberModel() {} -type UserSessionOrderByParam interface { +type TenantMemberOrderByParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() } -type userSessionOrderByParam struct { +type tenantMemberOrderByParam struct { data builder.Field query builder.Query } -func (p userSessionOrderByParam) field() builder.Field { +func (p tenantMemberOrderByParam) field() builder.Field { return p.data } -func (p userSessionOrderByParam) getQuery() builder.Query { +func (p tenantMemberOrderByParam) getQuery() builder.Query { return p.query } -func (p userSessionOrderByParam) userSessionModel() {} +func (p tenantMemberOrderByParam) tenantMemberModel() {} -type UserSessionCursorParam interface { +type TenantMemberCursorParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() isCursor() } -type userSessionCursorParam struct { +type tenantMemberCursorParam struct { data builder.Field query builder.Query } -func (p userSessionCursorParam) field() builder.Field { +func (p tenantMemberCursorParam) field() builder.Field { return p.data } -func (p userSessionCursorParam) isCursor() {} +func (p tenantMemberCursorParam) isCursor() {} -func (p userSessionCursorParam) getQuery() builder.Query { +func (p tenantMemberCursorParam) getQuery() builder.Query { return p.query } -func (p userSessionCursorParam) userSessionModel() {} +func (p tenantMemberCursorParam) tenantMemberModel() {} -type UserSessionParamUnique interface { +type TenantMemberParamUnique interface { field() builder.Field getQuery() builder.Query unique() - userSessionModel() + tenantMemberModel() } -type userSessionParamUnique struct { +type tenantMemberParamUnique struct { data builder.Field query builder.Query } -func (p userSessionParamUnique) userSessionModel() {} +func (p tenantMemberParamUnique) tenantMemberModel() {} -func (userSessionParamUnique) unique() {} +func (tenantMemberParamUnique) unique() {} -func (p userSessionParamUnique) field() builder.Field { +func (p tenantMemberParamUnique) field() builder.Field { return p.data } -func (p userSessionParamUnique) getQuery() builder.Query { +func (p tenantMemberParamUnique) getQuery() builder.Query { return p.query } -type UserSessionEqualsWhereParam interface { +type TenantMemberEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - userSessionModel() + tenantMemberModel() } -type userSessionEqualsParam struct { +type tenantMemberEqualsParam struct { data builder.Field query builder.Query } -func (p userSessionEqualsParam) userSessionModel() {} +func (p tenantMemberEqualsParam) tenantMemberModel() {} -func (userSessionEqualsParam) equals() {} +func (tenantMemberEqualsParam) equals() {} -func (p userSessionEqualsParam) field() builder.Field { +func (p tenantMemberEqualsParam) field() builder.Field { return p.data } -func (p userSessionEqualsParam) getQuery() builder.Query { +func (p tenantMemberEqualsParam) getQuery() builder.Query { return p.query } -type UserSessionEqualsUniqueWhereParam interface { +type TenantMemberEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - userSessionModel() + tenantMemberModel() } -type userSessionEqualsUniqueParam struct { +type tenantMemberEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userSessionEqualsUniqueParam) userSessionModel() {} +func (p tenantMemberEqualsUniqueParam) tenantMemberModel() {} -func (userSessionEqualsUniqueParam) unique() {} -func (userSessionEqualsUniqueParam) equals() {} +func (tenantMemberEqualsUniqueParam) unique() {} +func (tenantMemberEqualsUniqueParam) equals() {} -func (p userSessionEqualsUniqueParam) field() builder.Field { +func (p tenantMemberEqualsUniqueParam) field() builder.Field { return p.data } -func (p userSessionEqualsUniqueParam) getQuery() builder.Query { +func (p tenantMemberEqualsUniqueParam) getQuery() builder.Query { return p.query } -type UserSessionSetParam interface { +type TenantMemberSetParam interface { field() builder.Field settable() - userSessionModel() + tenantMemberModel() } -type userSessionSetParam struct { +type tenantMemberSetParam struct { data builder.Field } -func (userSessionSetParam) settable() {} +func (tenantMemberSetParam) settable() {} -func (p userSessionSetParam) field() builder.Field { +func (p tenantMemberSetParam) field() builder.Field { return p.data } -func (p userSessionSetParam) userSessionModel() {} +func (p tenantMemberSetParam) tenantMemberModel() {} -type UserSessionWithPrismaIDEqualsSetParam interface { +type TenantMemberWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userSessionModel() + tenantMemberModel() idField() } -type UserSessionWithPrismaIDSetParam interface { +type TenantMemberWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() idField() } -type userSessionWithPrismaIDSetParam struct { +type tenantMemberWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaIDSetParam) field() builder.Field { +func (p tenantMemberWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaIDSetParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaIDSetParam) userSessionModel() {} +func (p tenantMemberWithPrismaIDSetParam) tenantMemberModel() {} -func (p userSessionWithPrismaIDSetParam) idField() {} +func (p tenantMemberWithPrismaIDSetParam) idField() {} -type UserSessionWithPrismaIDWhereParam interface { +type TenantMemberWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() idField() } -type userSessionWithPrismaIDEqualsParam struct { +type tenantMemberWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaIDEqualsParam) field() builder.Field { +func (p tenantMemberWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaIDEqualsParam) userSessionModel() {} +func (p tenantMemberWithPrismaIDEqualsParam) tenantMemberModel() {} -func (p userSessionWithPrismaIDEqualsParam) idField() {} +func (p tenantMemberWithPrismaIDEqualsParam) idField() {} -func (userSessionWithPrismaIDSetParam) settable() {} -func (userSessionWithPrismaIDEqualsParam) equals() {} +func (tenantMemberWithPrismaIDSetParam) settable() {} +func (tenantMemberWithPrismaIDEqualsParam) equals() {} -type userSessionWithPrismaIDEqualsUniqueParam struct { +type tenantMemberWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p tenantMemberWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaIDEqualsUniqueParam) userSessionModel() {} -func (p userSessionWithPrismaIDEqualsUniqueParam) idField() {} +func (p tenantMemberWithPrismaIDEqualsUniqueParam) tenantMemberModel() {} +func (p tenantMemberWithPrismaIDEqualsUniqueParam) idField() {} -func (userSessionWithPrismaIDEqualsUniqueParam) unique() {} -func (userSessionWithPrismaIDEqualsUniqueParam) equals() {} +func (tenantMemberWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantMemberWithPrismaIDEqualsUniqueParam) equals() {} -type UserSessionWithPrismaCreatedAtEqualsSetParam interface { +type TenantMemberWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userSessionModel() + tenantMemberModel() createdAtField() } -type UserSessionWithPrismaCreatedAtSetParam interface { +type TenantMemberWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() createdAtField() } -type userSessionWithPrismaCreatedAtSetParam struct { +type tenantMemberWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaCreatedAtSetParam) field() builder.Field { +func (p tenantMemberWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaCreatedAtSetParam) userSessionModel() {} +func (p tenantMemberWithPrismaCreatedAtSetParam) tenantMemberModel() {} -func (p userSessionWithPrismaCreatedAtSetParam) createdAtField() {} +func (p tenantMemberWithPrismaCreatedAtSetParam) createdAtField() {} -type UserSessionWithPrismaCreatedAtWhereParam interface { +type TenantMemberWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() createdAtField() } -type userSessionWithPrismaCreatedAtEqualsParam struct { +type tenantMemberWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p tenantMemberWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaCreatedAtEqualsParam) userSessionModel() {} +func (p tenantMemberWithPrismaCreatedAtEqualsParam) tenantMemberModel() {} -func (p userSessionWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p tenantMemberWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (userSessionWithPrismaCreatedAtSetParam) settable() {} -func (userSessionWithPrismaCreatedAtEqualsParam) equals() {} +func (tenantMemberWithPrismaCreatedAtSetParam) settable() {} +func (tenantMemberWithPrismaCreatedAtEqualsParam) equals() {} -type userSessionWithPrismaCreatedAtEqualsUniqueParam struct { +type tenantMemberWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p tenantMemberWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaCreatedAtEqualsUniqueParam) userSessionModel() {} -func (p userSessionWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p tenantMemberWithPrismaCreatedAtEqualsUniqueParam) tenantMemberModel() {} +func (p tenantMemberWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (userSessionWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (userSessionWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (tenantMemberWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantMemberWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type UserSessionWithPrismaUpdatedAtEqualsSetParam interface { +type TenantMemberWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userSessionModel() + tenantMemberModel() updatedAtField() } -type UserSessionWithPrismaUpdatedAtSetParam interface { +type TenantMemberWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() updatedAtField() } -type userSessionWithPrismaUpdatedAtSetParam struct { +type tenantMemberWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p tenantMemberWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUpdatedAtSetParam) userSessionModel() {} +func (p tenantMemberWithPrismaUpdatedAtSetParam) tenantMemberModel() {} -func (p userSessionWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p tenantMemberWithPrismaUpdatedAtSetParam) updatedAtField() {} -type UserSessionWithPrismaUpdatedAtWhereParam interface { +type TenantMemberWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() + tenantMemberModel() updatedAtField() } -type userSessionWithPrismaUpdatedAtEqualsParam struct { +type tenantMemberWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p tenantMemberWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUpdatedAtEqualsParam) userSessionModel() {} +func (p tenantMemberWithPrismaUpdatedAtEqualsParam) tenantMemberModel() {} -func (p userSessionWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p tenantMemberWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (userSessionWithPrismaUpdatedAtSetParam) settable() {} -func (userSessionWithPrismaUpdatedAtEqualsParam) equals() {} +func (tenantMemberWithPrismaUpdatedAtSetParam) settable() {} +func (tenantMemberWithPrismaUpdatedAtEqualsParam) equals() {} -type userSessionWithPrismaUpdatedAtEqualsUniqueParam struct { +type tenantMemberWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUpdatedAtEqualsUniqueParam) userSessionModel() {} -func (p userSessionWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) tenantMemberModel() {} +func (p tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (userSessionWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (userSessionWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type UserSessionWithPrismaUserEqualsSetParam interface { +type TenantMemberWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userSessionModel() - userField() + tenantMemberModel() + tenantField() } -type UserSessionWithPrismaUserSetParam interface { +type TenantMemberWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() - userField() + tenantMemberModel() + tenantField() } -type userSessionWithPrismaUserSetParam struct { +type tenantMemberWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUserSetParam) field() builder.Field { +func (p tenantMemberWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUserSetParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUserSetParam) userSessionModel() {} +func (p tenantMemberWithPrismaTenantSetParam) tenantMemberModel() {} -func (p userSessionWithPrismaUserSetParam) userField() {} +func (p tenantMemberWithPrismaTenantSetParam) tenantField() {} -type UserSessionWithPrismaUserWhereParam interface { +type TenantMemberWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() - userField() + tenantMemberModel() + tenantField() } -type userSessionWithPrismaUserEqualsParam struct { +type tenantMemberWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUserEqualsParam) field() builder.Field { +func (p tenantMemberWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUserEqualsParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUserEqualsParam) userSessionModel() {} +func (p tenantMemberWithPrismaTenantEqualsParam) tenantMemberModel() {} -func (p userSessionWithPrismaUserEqualsParam) userField() {} +func (p tenantMemberWithPrismaTenantEqualsParam) tenantField() {} -func (userSessionWithPrismaUserSetParam) settable() {} -func (userSessionWithPrismaUserEqualsParam) equals() {} +func (tenantMemberWithPrismaTenantSetParam) settable() {} +func (tenantMemberWithPrismaTenantEqualsParam) equals() {} -type userSessionWithPrismaUserEqualsUniqueParam struct { +type tenantMemberWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUserEqualsUniqueParam) field() builder.Field { +func (p tenantMemberWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUserEqualsUniqueParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUserEqualsUniqueParam) userSessionModel() {} -func (p userSessionWithPrismaUserEqualsUniqueParam) userField() {} +func (p tenantMemberWithPrismaTenantEqualsUniqueParam) tenantMemberModel() {} +func (p tenantMemberWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (userSessionWithPrismaUserEqualsUniqueParam) unique() {} -func (userSessionWithPrismaUserEqualsUniqueParam) equals() {} +func (tenantMemberWithPrismaTenantEqualsUniqueParam) unique() {} +func (tenantMemberWithPrismaTenantEqualsUniqueParam) equals() {} -type UserSessionWithPrismaUserIDEqualsSetParam interface { +type TenantMemberWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userSessionModel() - userIDField() + tenantMemberModel() + tenantIDField() } -type UserSessionWithPrismaUserIDSetParam interface { +type TenantMemberWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() - userIDField() + tenantMemberModel() + tenantIDField() } -type userSessionWithPrismaUserIDSetParam struct { +type tenantMemberWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUserIDSetParam) field() builder.Field { +func (p tenantMemberWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUserIDSetParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUserIDSetParam) userSessionModel() {} +func (p tenantMemberWithPrismaTenantIDSetParam) tenantMemberModel() {} -func (p userSessionWithPrismaUserIDSetParam) userIDField() {} +func (p tenantMemberWithPrismaTenantIDSetParam) tenantIDField() {} -type UserSessionWithPrismaUserIDWhereParam interface { +type TenantMemberWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() - userIDField() + tenantMemberModel() + tenantIDField() } -type userSessionWithPrismaUserIDEqualsParam struct { +type tenantMemberWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUserIDEqualsParam) field() builder.Field { +func (p tenantMemberWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUserIDEqualsParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUserIDEqualsParam) userSessionModel() {} +func (p tenantMemberWithPrismaTenantIDEqualsParam) tenantMemberModel() {} -func (p userSessionWithPrismaUserIDEqualsParam) userIDField() {} +func (p tenantMemberWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (userSessionWithPrismaUserIDSetParam) settable() {} -func (userSessionWithPrismaUserIDEqualsParam) equals() {} +func (tenantMemberWithPrismaTenantIDSetParam) settable() {} +func (tenantMemberWithPrismaTenantIDEqualsParam) equals() {} -type userSessionWithPrismaUserIDEqualsUniqueParam struct { +type tenantMemberWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaUserIDEqualsUniqueParam) field() builder.Field { +func (p tenantMemberWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaUserIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaUserIDEqualsUniqueParam) userSessionModel() {} -func (p userSessionWithPrismaUserIDEqualsUniqueParam) userIDField() {} +func (p tenantMemberWithPrismaTenantIDEqualsUniqueParam) tenantMemberModel() {} +func (p tenantMemberWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (userSessionWithPrismaUserIDEqualsUniqueParam) unique() {} -func (userSessionWithPrismaUserIDEqualsUniqueParam) equals() {} +func (tenantMemberWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (tenantMemberWithPrismaTenantIDEqualsUniqueParam) equals() {} -type UserSessionWithPrismaDataEqualsSetParam interface { +type TenantMemberWithPrismaUserEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userSessionModel() - dataField() + tenantMemberModel() + userField() } -type UserSessionWithPrismaDataSetParam interface { +type TenantMemberWithPrismaUserSetParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() - dataField() + tenantMemberModel() + userField() } -type userSessionWithPrismaDataSetParam struct { +type tenantMemberWithPrismaUserSetParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaDataSetParam) field() builder.Field { +func (p tenantMemberWithPrismaUserSetParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaDataSetParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUserSetParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaDataSetParam) userSessionModel() {} +func (p tenantMemberWithPrismaUserSetParam) tenantMemberModel() {} -func (p userSessionWithPrismaDataSetParam) dataField() {} +func (p tenantMemberWithPrismaUserSetParam) userField() {} -type UserSessionWithPrismaDataWhereParam interface { +type TenantMemberWithPrismaUserWhereParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() - dataField() + tenantMemberModel() + userField() } -type userSessionWithPrismaDataEqualsParam struct { +type tenantMemberWithPrismaUserEqualsParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaDataEqualsParam) field() builder.Field { +func (p tenantMemberWithPrismaUserEqualsParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaDataEqualsParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUserEqualsParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaDataEqualsParam) userSessionModel() {} +func (p tenantMemberWithPrismaUserEqualsParam) tenantMemberModel() {} -func (p userSessionWithPrismaDataEqualsParam) dataField() {} +func (p tenantMemberWithPrismaUserEqualsParam) userField() {} -func (userSessionWithPrismaDataSetParam) settable() {} -func (userSessionWithPrismaDataEqualsParam) equals() {} +func (tenantMemberWithPrismaUserSetParam) settable() {} +func (tenantMemberWithPrismaUserEqualsParam) equals() {} -type userSessionWithPrismaDataEqualsUniqueParam struct { +type tenantMemberWithPrismaUserEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaDataEqualsUniqueParam) field() builder.Field { +func (p tenantMemberWithPrismaUserEqualsUniqueParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaDataEqualsUniqueParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUserEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaDataEqualsUniqueParam) userSessionModel() {} -func (p userSessionWithPrismaDataEqualsUniqueParam) dataField() {} +func (p tenantMemberWithPrismaUserEqualsUniqueParam) tenantMemberModel() {} +func (p tenantMemberWithPrismaUserEqualsUniqueParam) userField() {} -func (userSessionWithPrismaDataEqualsUniqueParam) unique() {} -func (userSessionWithPrismaDataEqualsUniqueParam) equals() {} +func (tenantMemberWithPrismaUserEqualsUniqueParam) unique() {} +func (tenantMemberWithPrismaUserEqualsUniqueParam) equals() {} -type UserSessionWithPrismaExpiresAtEqualsSetParam interface { +type TenantMemberWithPrismaUserIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - userSessionModel() - expiresAtField() + tenantMemberModel() + userIDField() } -type UserSessionWithPrismaExpiresAtSetParam interface { +type TenantMemberWithPrismaUserIDSetParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() - expiresAtField() + tenantMemberModel() + userIDField() } -type userSessionWithPrismaExpiresAtSetParam struct { +type tenantMemberWithPrismaUserIDSetParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaExpiresAtSetParam) field() builder.Field { +func (p tenantMemberWithPrismaUserIDSetParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaExpiresAtSetParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUserIDSetParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaExpiresAtSetParam) userSessionModel() {} +func (p tenantMemberWithPrismaUserIDSetParam) tenantMemberModel() {} -func (p userSessionWithPrismaExpiresAtSetParam) expiresAtField() {} +func (p tenantMemberWithPrismaUserIDSetParam) userIDField() {} -type UserSessionWithPrismaExpiresAtWhereParam interface { +type TenantMemberWithPrismaUserIDWhereParam interface { field() builder.Field getQuery() builder.Query - userSessionModel() - expiresAtField() + tenantMemberModel() + userIDField() } -type userSessionWithPrismaExpiresAtEqualsParam struct { +type tenantMemberWithPrismaUserIDEqualsParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaExpiresAtEqualsParam) field() builder.Field { +func (p tenantMemberWithPrismaUserIDEqualsParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaExpiresAtEqualsParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUserIDEqualsParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaExpiresAtEqualsParam) userSessionModel() {} +func (p tenantMemberWithPrismaUserIDEqualsParam) tenantMemberModel() {} -func (p userSessionWithPrismaExpiresAtEqualsParam) expiresAtField() {} +func (p tenantMemberWithPrismaUserIDEqualsParam) userIDField() {} -func (userSessionWithPrismaExpiresAtSetParam) settable() {} -func (userSessionWithPrismaExpiresAtEqualsParam) equals() {} +func (tenantMemberWithPrismaUserIDSetParam) settable() {} +func (tenantMemberWithPrismaUserIDEqualsParam) equals() {} -type userSessionWithPrismaExpiresAtEqualsUniqueParam struct { +type tenantMemberWithPrismaUserIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p userSessionWithPrismaExpiresAtEqualsUniqueParam) field() builder.Field { +func (p tenantMemberWithPrismaUserIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p userSessionWithPrismaExpiresAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaUserIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p userSessionWithPrismaExpiresAtEqualsUniqueParam) userSessionModel() {} -func (p userSessionWithPrismaExpiresAtEqualsUniqueParam) expiresAtField() {} - -func (userSessionWithPrismaExpiresAtEqualsUniqueParam) unique() {} -func (userSessionWithPrismaExpiresAtEqualsUniqueParam) equals() {} - -type webhookWorkerActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p tenantMemberWithPrismaUserIDEqualsUniqueParam) tenantMemberModel() {} +func (p tenantMemberWithPrismaUserIDEqualsUniqueParam) userIDField() {} -var webhookWorkerOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "name"}, - {Name: "secret"}, - {Name: "url"}, - {Name: "tokenValue"}, - {Name: "deleted"}, - {Name: "tokenId"}, - {Name: "tenantId"}, -} +func (tenantMemberWithPrismaUserIDEqualsUniqueParam) unique() {} +func (tenantMemberWithPrismaUserIDEqualsUniqueParam) equals() {} -type WebhookWorkerRelationWith interface { +type TenantMemberWithPrismaRoleEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - webhookWorkerRelation() + equals() + tenantMemberModel() + roleField() } -type WebhookWorkerWhereParam interface { +type TenantMemberWithPrismaRoleSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() + tenantMemberModel() + roleField() } -type webhookWorkerDefaultParam struct { +type tenantMemberWithPrismaRoleSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerDefaultParam) field() builder.Field { +func (p tenantMemberWithPrismaRoleSetParam) field() builder.Field { return p.data } -func (p webhookWorkerDefaultParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaRoleSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerDefaultParam) webhookWorkerModel() {} +func (p tenantMemberWithPrismaRoleSetParam) tenantMemberModel() {} -type WebhookWorkerOrderByParam interface { +func (p tenantMemberWithPrismaRoleSetParam) roleField() {} + +type TenantMemberWithPrismaRoleWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() + tenantMemberModel() + roleField() } -type webhookWorkerOrderByParam struct { +type tenantMemberWithPrismaRoleEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerOrderByParam) field() builder.Field { +func (p tenantMemberWithPrismaRoleEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerOrderByParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaRoleEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerOrderByParam) webhookWorkerModel() {} +func (p tenantMemberWithPrismaRoleEqualsParam) tenantMemberModel() {} -type WebhookWorkerCursorParam interface { - field() builder.Field - getQuery() builder.Query - webhookWorkerModel() - isCursor() -} +func (p tenantMemberWithPrismaRoleEqualsParam) roleField() {} -type webhookWorkerCursorParam struct { +func (tenantMemberWithPrismaRoleSetParam) settable() {} +func (tenantMemberWithPrismaRoleEqualsParam) equals() {} + +type tenantMemberWithPrismaRoleEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerCursorParam) field() builder.Field { +func (p tenantMemberWithPrismaRoleEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerCursorParam) isCursor() {} - -func (p webhookWorkerCursorParam) getQuery() builder.Query { +func (p tenantMemberWithPrismaRoleEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerCursorParam) webhookWorkerModel() {} - -type WebhookWorkerParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - webhookWorkerModel() -} - -type webhookWorkerParamUnique struct { - data builder.Field - query builder.Query -} - -func (p webhookWorkerParamUnique) webhookWorkerModel() {} +func (p tenantMemberWithPrismaRoleEqualsUniqueParam) tenantMemberModel() {} +func (p tenantMemberWithPrismaRoleEqualsUniqueParam) roleField() {} -func (webhookWorkerParamUnique) unique() {} +func (tenantMemberWithPrismaRoleEqualsUniqueParam) unique() {} +func (tenantMemberWithPrismaRoleEqualsUniqueParam) equals() {} -func (p webhookWorkerParamUnique) field() builder.Field { - return p.data +type tenantInviteLinkActions struct { + // client holds the prisma client + client *PrismaClient } -func (p webhookWorkerParamUnique) getQuery() builder.Query { - return p.query +var tenantInviteLinkOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "tenantId"}, + {Name: "inviterEmail"}, + {Name: "inviteeEmail"}, + {Name: "expires"}, + {Name: "status"}, + {Name: "role"}, } -type WebhookWorkerEqualsWhereParam interface { - field() builder.Field +type TenantInviteLinkRelationWith interface { getQuery() builder.Query - equals() - webhookWorkerModel() -} - -type webhookWorkerEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p webhookWorkerEqualsParam) webhookWorkerModel() {} - -func (webhookWorkerEqualsParam) equals() {} - -func (p webhookWorkerEqualsParam) field() builder.Field { - return p.data -} - -func (p webhookWorkerEqualsParam) getQuery() builder.Query { - return p.query + with() + tenantInviteLinkRelation() } -type WebhookWorkerEqualsUniqueWhereParam interface { +type TenantInviteLinkWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - unique() - webhookWorkerModel() + tenantInviteLinkModel() } -type webhookWorkerEqualsUniqueParam struct { +type tenantInviteLinkDefaultParam struct { data builder.Field query builder.Query } -func (p webhookWorkerEqualsUniqueParam) webhookWorkerModel() {} - -func (webhookWorkerEqualsUniqueParam) unique() {} -func (webhookWorkerEqualsUniqueParam) equals() {} - -func (p webhookWorkerEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkDefaultParam) field() builder.Field { return p.data } -func (p webhookWorkerEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkDefaultParam) getQuery() builder.Query { return p.query } -type WebhookWorkerSetParam interface { - field() builder.Field - settable() - webhookWorkerModel() -} - -type webhookWorkerSetParam struct { - data builder.Field -} - -func (webhookWorkerSetParam) settable() {} - -func (p webhookWorkerSetParam) field() builder.Field { - return p.data -} - -func (p webhookWorkerSetParam) webhookWorkerModel() {} - -type WebhookWorkerWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - webhookWorkerModel() - idField() -} +func (p tenantInviteLinkDefaultParam) tenantInviteLinkModel() {} -type WebhookWorkerWithPrismaIDSetParam interface { +type TenantInviteLinkOrderByParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - idField() + tenantInviteLinkModel() } -type webhookWorkerWithPrismaIDSetParam struct { +type tenantInviteLinkOrderByParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaIDSetParam) field() builder.Field { +func (p tenantInviteLinkOrderByParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaIDSetParam) getQuery() builder.Query { +func (p tenantInviteLinkOrderByParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaIDSetParam) webhookWorkerModel() {} - -func (p webhookWorkerWithPrismaIDSetParam) idField() {} +func (p tenantInviteLinkOrderByParam) tenantInviteLinkModel() {} -type WebhookWorkerWithPrismaIDWhereParam interface { +type TenantInviteLinkCursorParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - idField() + tenantInviteLinkModel() + isCursor() } -type webhookWorkerWithPrismaIDEqualsParam struct { +type tenantInviteLinkCursorParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaIDEqualsParam) field() builder.Field { +func (p tenantInviteLinkCursorParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaIDEqualsParam) getQuery() builder.Query { - return p.query -} - -func (p webhookWorkerWithPrismaIDEqualsParam) webhookWorkerModel() {} - -func (p webhookWorkerWithPrismaIDEqualsParam) idField() {} - -func (webhookWorkerWithPrismaIDSetParam) settable() {} -func (webhookWorkerWithPrismaIDEqualsParam) equals() {} - -type webhookWorkerWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} - -func (p webhookWorkerWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data -} +func (p tenantInviteLinkCursorParam) isCursor() {} -func (p webhookWorkerWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkCursorParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaIDEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaIDEqualsUniqueParam) idField() {} - -func (webhookWorkerWithPrismaIDEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaIDEqualsUniqueParam) equals() {} - -type WebhookWorkerWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - webhookWorkerModel() - createdAtField() -} +func (p tenantInviteLinkCursorParam) tenantInviteLinkModel() {} -type WebhookWorkerWithPrismaCreatedAtSetParam interface { +type TenantInviteLinkParamUnique interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - createdAtField() + unique() + tenantInviteLinkModel() } -type webhookWorkerWithPrismaCreatedAtSetParam struct { +type tenantInviteLinkParamUnique struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaCreatedAtSetParam) field() builder.Field { +func (p tenantInviteLinkParamUnique) tenantInviteLinkModel() {} + +func (tenantInviteLinkParamUnique) unique() {} + +func (p tenantInviteLinkParamUnique) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p tenantInviteLinkParamUnique) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaCreatedAtSetParam) webhookWorkerModel() {} - -func (p webhookWorkerWithPrismaCreatedAtSetParam) createdAtField() {} - -type WebhookWorkerWithPrismaCreatedAtWhereParam interface { +type TenantInviteLinkEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - createdAtField() + equals() + tenantInviteLinkModel() } -type webhookWorkerWithPrismaCreatedAtEqualsParam struct { +type tenantInviteLinkEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data -} - -func (p webhookWorkerWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { - return p.query -} - -func (p webhookWorkerWithPrismaCreatedAtEqualsParam) webhookWorkerModel() {} - -func (p webhookWorkerWithPrismaCreatedAtEqualsParam) createdAtField() {} - -func (webhookWorkerWithPrismaCreatedAtSetParam) settable() {} -func (webhookWorkerWithPrismaCreatedAtEqualsParam) equals() {} +func (p tenantInviteLinkEqualsParam) tenantInviteLinkModel() {} -type webhookWorkerWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (tenantInviteLinkEqualsParam) equals() {} -func (p webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} - -func (webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaCreatedAtEqualsUniqueParam) equals() {} - -type WebhookWorkerWithPrismaUpdatedAtEqualsSetParam interface { +type TenantInviteLinkEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - updatedAtField() -} - -type WebhookWorkerWithPrismaUpdatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - webhookWorkerModel() - updatedAtField() + unique() + tenantInviteLinkModel() } -type webhookWorkerWithPrismaUpdatedAtSetParam struct { +type tenantInviteLinkEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p tenantInviteLinkEqualsUniqueParam) tenantInviteLinkModel() {} + +func (tenantInviteLinkEqualsUniqueParam) unique() {} +func (tenantInviteLinkEqualsUniqueParam) equals() {} + +func (p tenantInviteLinkEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p tenantInviteLinkEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaUpdatedAtSetParam) webhookWorkerModel() {} - -func (p webhookWorkerWithPrismaUpdatedAtSetParam) updatedAtField() {} - -type WebhookWorkerWithPrismaUpdatedAtWhereParam interface { +type TenantInviteLinkSetParam interface { field() builder.Field - getQuery() builder.Query - webhookWorkerModel() - updatedAtField() -} - -type webhookWorkerWithPrismaUpdatedAtEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p webhookWorkerWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data + settable() + tenantInviteLinkModel() } -func (p webhookWorkerWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { - return p.query +type tenantInviteLinkSetParam struct { + data builder.Field } -func (p webhookWorkerWithPrismaUpdatedAtEqualsParam) webhookWorkerModel() {} - -func (p webhookWorkerWithPrismaUpdatedAtEqualsParam) updatedAtField() {} - -func (webhookWorkerWithPrismaUpdatedAtSetParam) settable() {} -func (webhookWorkerWithPrismaUpdatedAtEqualsParam) equals() {} - -type webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (tenantInviteLinkSetParam) settable() {} -func (p webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query -} - -func (p webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (p tenantInviteLinkSetParam) tenantInviteLinkModel() {} -type WebhookWorkerWithPrismaNameEqualsSetParam interface { +type TenantInviteLinkWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - nameField() + tenantInviteLinkModel() + idField() } -type WebhookWorkerWithPrismaNameSetParam interface { +type TenantInviteLinkWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - nameField() + tenantInviteLinkModel() + idField() } -type webhookWorkerWithPrismaNameSetParam struct { +type tenantInviteLinkWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaNameSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaNameSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaNameSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaIDSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaNameSetParam) nameField() {} +func (p tenantInviteLinkWithPrismaIDSetParam) idField() {} -type WebhookWorkerWithPrismaNameWhereParam interface { +type TenantInviteLinkWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - nameField() + tenantInviteLinkModel() + idField() } -type webhookWorkerWithPrismaNameEqualsParam struct { +type tenantInviteLinkWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaNameEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaNameEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaNameEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaIDEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaNameEqualsParam) nameField() {} +func (p tenantInviteLinkWithPrismaIDEqualsParam) idField() {} -func (webhookWorkerWithPrismaNameSetParam) settable() {} -func (webhookWorkerWithPrismaNameEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaIDSetParam) settable() {} +func (tenantInviteLinkWithPrismaIDEqualsParam) equals() {} -type webhookWorkerWithPrismaNameEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaNameEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaNameEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaNameEqualsUniqueParam) nameField() {} +func (p tenantInviteLinkWithPrismaIDEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaIDEqualsUniqueParam) idField() {} -func (webhookWorkerWithPrismaNameEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaNameEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaIDEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaSecretEqualsSetParam interface { +type TenantInviteLinkWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - secretField() + tenantInviteLinkModel() + createdAtField() } -type WebhookWorkerWithPrismaSecretSetParam interface { +type TenantInviteLinkWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - secretField() + tenantInviteLinkModel() + createdAtField() } -type webhookWorkerWithPrismaSecretSetParam struct { +type tenantInviteLinkWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaSecretSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaSecretSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaSecretSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaCreatedAtSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaSecretSetParam) secretField() {} +func (p tenantInviteLinkWithPrismaCreatedAtSetParam) createdAtField() {} -type WebhookWorkerWithPrismaSecretWhereParam interface { +type TenantInviteLinkWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - secretField() + tenantInviteLinkModel() + createdAtField() } -type webhookWorkerWithPrismaSecretEqualsParam struct { +type tenantInviteLinkWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaSecretEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaSecretEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaSecretEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaCreatedAtEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaSecretEqualsParam) secretField() {} +func (p tenantInviteLinkWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (webhookWorkerWithPrismaSecretSetParam) settable() {} -func (webhookWorkerWithPrismaSecretEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaCreatedAtSetParam) settable() {} +func (tenantInviteLinkWithPrismaCreatedAtEqualsParam) equals() {} -type webhookWorkerWithPrismaSecretEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaSecretEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaSecretEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaSecretEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaSecretEqualsUniqueParam) secretField() {} +func (p tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (webhookWorkerWithPrismaSecretEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaSecretEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaURLEqualsSetParam interface { +type TenantInviteLinkWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - urlField() + tenantInviteLinkModel() + updatedAtField() } -type WebhookWorkerWithPrismaURLSetParam interface { +type TenantInviteLinkWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - urlField() + tenantInviteLinkModel() + updatedAtField() } -type webhookWorkerWithPrismaURLSetParam struct { +type tenantInviteLinkWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaURLSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaURLSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaURLSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaUpdatedAtSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaURLSetParam) urlField() {} +func (p tenantInviteLinkWithPrismaUpdatedAtSetParam) updatedAtField() {} -type WebhookWorkerWithPrismaURLWhereParam interface { +type TenantInviteLinkWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - urlField() + tenantInviteLinkModel() + updatedAtField() } -type webhookWorkerWithPrismaURLEqualsParam struct { +type tenantInviteLinkWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaURLEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaURLEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaURLEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaUpdatedAtEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaURLEqualsParam) urlField() {} +func (p tenantInviteLinkWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (webhookWorkerWithPrismaURLSetParam) settable() {} -func (webhookWorkerWithPrismaURLEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaUpdatedAtSetParam) settable() {} +func (tenantInviteLinkWithPrismaUpdatedAtEqualsParam) equals() {} -type webhookWorkerWithPrismaURLEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaURLEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaURLEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaURLEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaURLEqualsUniqueParam) urlField() {} +func (p tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (webhookWorkerWithPrismaURLEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaURLEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaTokenValueEqualsSetParam interface { +type TenantInviteLinkWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - tokenValueField() + tenantInviteLinkModel() + tenantField() } -type WebhookWorkerWithPrismaTokenValueSetParam interface { +type TenantInviteLinkWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tokenValueField() + tenantInviteLinkModel() + tenantField() } -type webhookWorkerWithPrismaTokenValueSetParam struct { +type tenantInviteLinkWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenValueSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenValueSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenValueSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaTenantSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTokenValueSetParam) tokenValueField() {} +func (p tenantInviteLinkWithPrismaTenantSetParam) tenantField() {} -type WebhookWorkerWithPrismaTokenValueWhereParam interface { +type TenantInviteLinkWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tokenValueField() + tenantInviteLinkModel() + tenantField() } -type webhookWorkerWithPrismaTokenValueEqualsParam struct { +type tenantInviteLinkWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenValueEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenValueEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenValueEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaTenantEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTokenValueEqualsParam) tokenValueField() {} +func (p tenantInviteLinkWithPrismaTenantEqualsParam) tenantField() {} -func (webhookWorkerWithPrismaTokenValueSetParam) settable() {} -func (webhookWorkerWithPrismaTokenValueEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaTenantSetParam) settable() {} +func (tenantInviteLinkWithPrismaTenantEqualsParam) equals() {} -type webhookWorkerWithPrismaTokenValueEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenValueEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenValueEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenValueEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaTokenValueEqualsUniqueParam) tokenValueField() {} +func (p tenantInviteLinkWithPrismaTenantEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (webhookWorkerWithPrismaTokenValueEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaTokenValueEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaTenantEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaTenantEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaDeletedEqualsSetParam interface { +type TenantInviteLinkWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - deletedField() + tenantInviteLinkModel() + tenantIDField() } -type WebhookWorkerWithPrismaDeletedSetParam interface { +type TenantInviteLinkWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - deletedField() + tenantInviteLinkModel() + tenantIDField() } -type webhookWorkerWithPrismaDeletedSetParam struct { +type tenantInviteLinkWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaDeletedSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaDeletedSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaDeletedSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaTenantIDSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaDeletedSetParam) deletedField() {} +func (p tenantInviteLinkWithPrismaTenantIDSetParam) tenantIDField() {} -type WebhookWorkerWithPrismaDeletedWhereParam interface { +type TenantInviteLinkWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - deletedField() + tenantInviteLinkModel() + tenantIDField() } -type webhookWorkerWithPrismaDeletedEqualsParam struct { +type tenantInviteLinkWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaDeletedEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaDeletedEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaDeletedEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaTenantIDEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaDeletedEqualsParam) deletedField() {} +func (p tenantInviteLinkWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (webhookWorkerWithPrismaDeletedSetParam) settable() {} -func (webhookWorkerWithPrismaDeletedEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaTenantIDSetParam) settable() {} +func (tenantInviteLinkWithPrismaTenantIDEqualsParam) equals() {} -type webhookWorkerWithPrismaDeletedEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaDeletedEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaDeletedEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaDeletedEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaDeletedEqualsUniqueParam) deletedField() {} +func (p tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (webhookWorkerWithPrismaDeletedEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaDeletedEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaTokenIDEqualsSetParam interface { +type TenantInviteLinkWithPrismaInviterEmailEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - tokenIDField() + tenantInviteLinkModel() + inviterEmailField() } -type WebhookWorkerWithPrismaTokenIDSetParam interface { +type TenantInviteLinkWithPrismaInviterEmailSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tokenIDField() + tenantInviteLinkModel() + inviterEmailField() } -type webhookWorkerWithPrismaTokenIDSetParam struct { +type tenantInviteLinkWithPrismaInviterEmailSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenIDSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaInviterEmailSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenIDSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaInviterEmailSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenIDSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaInviterEmailSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTokenIDSetParam) tokenIDField() {} +func (p tenantInviteLinkWithPrismaInviterEmailSetParam) inviterEmailField() {} -type WebhookWorkerWithPrismaTokenIDWhereParam interface { +type TenantInviteLinkWithPrismaInviterEmailWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tokenIDField() + tenantInviteLinkModel() + inviterEmailField() } -type webhookWorkerWithPrismaTokenIDEqualsParam struct { +type tenantInviteLinkWithPrismaInviterEmailEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenIDEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaInviterEmailEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenIDEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaInviterEmailEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenIDEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaInviterEmailEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTokenIDEqualsParam) tokenIDField() {} +func (p tenantInviteLinkWithPrismaInviterEmailEqualsParam) inviterEmailField() {} -func (webhookWorkerWithPrismaTokenIDSetParam) settable() {} -func (webhookWorkerWithPrismaTokenIDEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaInviterEmailSetParam) settable() {} +func (tenantInviteLinkWithPrismaInviterEmailEqualsParam) equals() {} -type webhookWorkerWithPrismaTokenIDEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenIDEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenIDEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaTokenIDEqualsUniqueParam) tokenIDField() {} +func (p tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) inviterEmailField() {} -func (webhookWorkerWithPrismaTokenIDEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaTokenIDEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaTokenEqualsSetParam interface { +type TenantInviteLinkWithPrismaInviteeEmailEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - tokenField() + tenantInviteLinkModel() + inviteeEmailField() } -type WebhookWorkerWithPrismaTokenSetParam interface { +type TenantInviteLinkWithPrismaInviteeEmailSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tokenField() + tenantInviteLinkModel() + inviteeEmailField() } -type webhookWorkerWithPrismaTokenSetParam struct { +type tenantInviteLinkWithPrismaInviteeEmailSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaInviteeEmailSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaInviteeEmailSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaInviteeEmailSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTokenSetParam) tokenField() {} +func (p tenantInviteLinkWithPrismaInviteeEmailSetParam) inviteeEmailField() {} -type WebhookWorkerWithPrismaTokenWhereParam interface { +type TenantInviteLinkWithPrismaInviteeEmailWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tokenField() + tenantInviteLinkModel() + inviteeEmailField() } -type webhookWorkerWithPrismaTokenEqualsParam struct { +type tenantInviteLinkWithPrismaInviteeEmailEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaInviteeEmailEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaInviteeEmailEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaInviteeEmailEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTokenEqualsParam) tokenField() {} +func (p tenantInviteLinkWithPrismaInviteeEmailEqualsParam) inviteeEmailField() {} -func (webhookWorkerWithPrismaTokenSetParam) settable() {} -func (webhookWorkerWithPrismaTokenEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaInviteeEmailSetParam) settable() {} +func (tenantInviteLinkWithPrismaInviteeEmailEqualsParam) equals() {} -type webhookWorkerWithPrismaTokenEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTokenEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTokenEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTokenEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaTokenEqualsUniqueParam) tokenField() {} +func (p tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) inviteeEmailField() {} -func (webhookWorkerWithPrismaTokenEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaTokenEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaTenantIDEqualsSetParam interface { +type TenantInviteLinkWithPrismaExpiresEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - tenantIDField() + tenantInviteLinkModel() + expiresField() } -type WebhookWorkerWithPrismaTenantIDSetParam interface { +type TenantInviteLinkWithPrismaExpiresSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tenantIDField() + tenantInviteLinkModel() + expiresField() } -type webhookWorkerWithPrismaTenantIDSetParam struct { +type tenantInviteLinkWithPrismaExpiresSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTenantIDSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaExpiresSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaExpiresSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTenantIDSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaExpiresSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTenantIDSetParam) tenantIDField() {} +func (p tenantInviteLinkWithPrismaExpiresSetParam) expiresField() {} -type WebhookWorkerWithPrismaTenantIDWhereParam interface { +type TenantInviteLinkWithPrismaExpiresWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tenantIDField() + tenantInviteLinkModel() + expiresField() } -type webhookWorkerWithPrismaTenantIDEqualsParam struct { +type tenantInviteLinkWithPrismaExpiresEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaExpiresEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaExpiresEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTenantIDEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaExpiresEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p tenantInviteLinkWithPrismaExpiresEqualsParam) expiresField() {} -func (webhookWorkerWithPrismaTenantIDSetParam) settable() {} -func (webhookWorkerWithPrismaTenantIDEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaExpiresSetParam) settable() {} +func (tenantInviteLinkWithPrismaExpiresEqualsParam) equals() {} -type webhookWorkerWithPrismaTenantIDEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaExpiresEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTenantIDEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) expiresField() {} -func (webhookWorkerWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaTenantEqualsSetParam interface { +type TenantInviteLinkWithPrismaStatusEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - tenantField() + tenantInviteLinkModel() + statusField() } -type WebhookWorkerWithPrismaTenantSetParam interface { +type TenantInviteLinkWithPrismaStatusSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tenantField() + tenantInviteLinkModel() + statusField() } -type webhookWorkerWithPrismaTenantSetParam struct { +type tenantInviteLinkWithPrismaStatusSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTenantSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaStatusSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTenantSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaStatusSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTenantSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaStatusSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTenantSetParam) tenantField() {} +func (p tenantInviteLinkWithPrismaStatusSetParam) statusField() {} -type WebhookWorkerWithPrismaTenantWhereParam interface { +type TenantInviteLinkWithPrismaStatusWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - tenantField() + tenantInviteLinkModel() + statusField() } -type webhookWorkerWithPrismaTenantEqualsParam struct { +type tenantInviteLinkWithPrismaStatusEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTenantEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaStatusEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaStatusEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTenantEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaStatusEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaTenantEqualsParam) tenantField() {} +func (p tenantInviteLinkWithPrismaStatusEqualsParam) statusField() {} -func (webhookWorkerWithPrismaTenantSetParam) settable() {} -func (webhookWorkerWithPrismaTenantEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaStatusSetParam) settable() {} +func (tenantInviteLinkWithPrismaStatusEqualsParam) equals() {} -type webhookWorkerWithPrismaTenantEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaStatusEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaStatusEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaTenantEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p tenantInviteLinkWithPrismaStatusEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaStatusEqualsUniqueParam) statusField() {} -func (webhookWorkerWithPrismaTenantEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaTenantEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaStatusEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaStatusEqualsUniqueParam) equals() {} -type WebhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsSetParam interface { +type TenantInviteLinkWithPrismaRoleEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerModel() - webhookWorkerWorkflowsField() + tenantInviteLinkModel() + roleField() } -type WebhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam interface { +type TenantInviteLinkWithPrismaRoleSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - webhookWorkerWorkflowsField() + tenantInviteLinkModel() + roleField() } -type webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam struct { +type tenantInviteLinkWithPrismaRoleSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaRoleSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaRoleSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaRoleSetParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) webhookWorkerWorkflowsField() {} +func (p tenantInviteLinkWithPrismaRoleSetParam) roleField() {} -type WebhookWorkerWithPrismaWebhookWorkerWorkflowsWhereParam interface { +type TenantInviteLinkWithPrismaRoleWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerModel() - webhookWorkerWorkflowsField() + tenantInviteLinkModel() + roleField() } -type webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam struct { +type tenantInviteLinkWithPrismaRoleEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaRoleEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaRoleEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) webhookWorkerModel() {} +func (p tenantInviteLinkWithPrismaRoleEqualsParam) tenantInviteLinkModel() {} -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) webhookWorkerWorkflowsField() {} +func (p tenantInviteLinkWithPrismaRoleEqualsParam) roleField() {} -func (webhookWorkerWithPrismaWebhookWorkerWorkflowsSetParam) settable() {} -func (webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsParam) equals() {} +func (tenantInviteLinkWithPrismaRoleSetParam) settable() {} +func (tenantInviteLinkWithPrismaRoleEqualsParam) equals() {} -type webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam struct { +type tenantInviteLinkWithPrismaRoleEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) field() builder.Field { +func (p tenantInviteLinkWithPrismaRoleEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) getQuery() builder.Query { +func (p tenantInviteLinkWithPrismaRoleEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) webhookWorkerModel() {} -func (p webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) webhookWorkerWorkflowsField() { -} +func (p tenantInviteLinkWithPrismaRoleEqualsUniqueParam) tenantInviteLinkModel() {} +func (p tenantInviteLinkWithPrismaRoleEqualsUniqueParam) roleField() {} -func (webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) unique() {} -func (webhookWorkerWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) equals() {} +func (tenantInviteLinkWithPrismaRoleEqualsUniqueParam) unique() {} +func (tenantInviteLinkWithPrismaRoleEqualsUniqueParam) equals() {} -type webhookWorkerWorkflowActions struct { +type aPITokenActions struct { // client holds the prisma client client *PrismaClient } -var webhookWorkerWorkflowOutput = []builder.Output{ +var aPITokenOutput = []builder.Output{ {Name: "id"}, - {Name: "webhookWorkerId"}, - {Name: "workflowId"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "expiresAt"}, + {Name: "revoked"}, + {Name: "nextAlertAt"}, + {Name: "internal"}, + {Name: "name"}, + {Name: "tenantId"}, } -type WebhookWorkerWorkflowRelationWith interface { +type APITokenRelationWith interface { getQuery() builder.Query with() - webhookWorkerWorkflowRelation() + aPITokenRelation() } -type WebhookWorkerWorkflowWhereParam interface { +type APITokenWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() + aPITokenModel() } -type webhookWorkerWorkflowDefaultParam struct { +type aPITokenDefaultParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowDefaultParam) field() builder.Field { +func (p aPITokenDefaultParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowDefaultParam) getQuery() builder.Query { +func (p aPITokenDefaultParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowDefaultParam) webhookWorkerWorkflowModel() {} +func (p aPITokenDefaultParam) aPITokenModel() {} -type WebhookWorkerWorkflowOrderByParam interface { +type APITokenOrderByParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() + aPITokenModel() } -type webhookWorkerWorkflowOrderByParam struct { +type aPITokenOrderByParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowOrderByParam) field() builder.Field { +func (p aPITokenOrderByParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowOrderByParam) getQuery() builder.Query { +func (p aPITokenOrderByParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowOrderByParam) webhookWorkerWorkflowModel() {} +func (p aPITokenOrderByParam) aPITokenModel() {} -type WebhookWorkerWorkflowCursorParam interface { +type APITokenCursorParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() + aPITokenModel() isCursor() } -type webhookWorkerWorkflowCursorParam struct { +type aPITokenCursorParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowCursorParam) field() builder.Field { +func (p aPITokenCursorParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowCursorParam) isCursor() {} +func (p aPITokenCursorParam) isCursor() {} -func (p webhookWorkerWorkflowCursorParam) getQuery() builder.Query { +func (p aPITokenCursorParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowCursorParam) webhookWorkerWorkflowModel() {} +func (p aPITokenCursorParam) aPITokenModel() {} -type WebhookWorkerWorkflowParamUnique interface { +type APITokenParamUnique interface { field() builder.Field getQuery() builder.Query unique() - webhookWorkerWorkflowModel() + aPITokenModel() } -type webhookWorkerWorkflowParamUnique struct { +type aPITokenParamUnique struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowParamUnique) webhookWorkerWorkflowModel() {} +func (p aPITokenParamUnique) aPITokenModel() {} -func (webhookWorkerWorkflowParamUnique) unique() {} +func (aPITokenParamUnique) unique() {} -func (p webhookWorkerWorkflowParamUnique) field() builder.Field { +func (p aPITokenParamUnique) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowParamUnique) getQuery() builder.Query { +func (p aPITokenParamUnique) getQuery() builder.Query { return p.query } -type WebhookWorkerWorkflowEqualsWhereParam interface { +type APITokenEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerWorkflowModel() + aPITokenModel() } -type webhookWorkerWorkflowEqualsParam struct { +type aPITokenEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowEqualsParam) webhookWorkerWorkflowModel() {} +func (p aPITokenEqualsParam) aPITokenModel() {} -func (webhookWorkerWorkflowEqualsParam) equals() {} +func (aPITokenEqualsParam) equals() {} -func (p webhookWorkerWorkflowEqualsParam) field() builder.Field { +func (p aPITokenEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowEqualsParam) getQuery() builder.Query { +func (p aPITokenEqualsParam) getQuery() builder.Query { return p.query } -type WebhookWorkerWorkflowEqualsUniqueWhereParam interface { +type APITokenEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - webhookWorkerWorkflowModel() + aPITokenModel() } -type webhookWorkerWorkflowEqualsUniqueParam struct { +type aPITokenEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowEqualsUniqueParam) webhookWorkerWorkflowModel() {} +func (p aPITokenEqualsUniqueParam) aPITokenModel() {} -func (webhookWorkerWorkflowEqualsUniqueParam) unique() {} -func (webhookWorkerWorkflowEqualsUniqueParam) equals() {} +func (aPITokenEqualsUniqueParam) unique() {} +func (aPITokenEqualsUniqueParam) equals() {} -func (p webhookWorkerWorkflowEqualsUniqueParam) field() builder.Field { +func (p aPITokenEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WebhookWorkerWorkflowSetParam interface { +type APITokenSetParam interface { field() builder.Field settable() - webhookWorkerWorkflowModel() + aPITokenModel() } -type webhookWorkerWorkflowSetParam struct { +type aPITokenSetParam struct { data builder.Field } -func (webhookWorkerWorkflowSetParam) settable() {} +func (aPITokenSetParam) settable() {} -func (p webhookWorkerWorkflowSetParam) field() builder.Field { +func (p aPITokenSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowSetParam) webhookWorkerWorkflowModel() {} +func (p aPITokenSetParam) aPITokenModel() {} -type WebhookWorkerWorkflowWithPrismaIDEqualsSetParam interface { +type APITokenWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerWorkflowModel() + aPITokenModel() idField() } -type WebhookWorkerWorkflowWithPrismaIDSetParam interface { +type APITokenWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() + aPITokenModel() idField() } -type webhookWorkerWorkflowWithPrismaIDSetParam struct { +type aPITokenWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaIDSetParam) field() builder.Field { +func (p aPITokenWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaIDSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaIDSetParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaIDSetParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaIDSetParam) idField() {} +func (p aPITokenWithPrismaIDSetParam) idField() {} -type WebhookWorkerWorkflowWithPrismaIDWhereParam interface { +type APITokenWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() + aPITokenModel() idField() } -type webhookWorkerWorkflowWithPrismaIDEqualsParam struct { +type aPITokenWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaIDEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaIDEqualsParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaIDEqualsParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaIDEqualsParam) idField() {} +func (p aPITokenWithPrismaIDEqualsParam) idField() {} -func (webhookWorkerWorkflowWithPrismaIDSetParam) settable() {} -func (webhookWorkerWorkflowWithPrismaIDEqualsParam) equals() {} +func (aPITokenWithPrismaIDSetParam) settable() {} +func (aPITokenWithPrismaIDEqualsParam) equals() {} -type webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam struct { +type aPITokenWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) webhookWorkerWorkflowModel() {} -func (p webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) idField() {} +func (p aPITokenWithPrismaIDEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaIDEqualsUniqueParam) idField() {} -func (webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) unique() {} -func (webhookWorkerWorkflowWithPrismaIDEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaIDEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaIDEqualsUniqueParam) equals() {} -type WebhookWorkerWorkflowWithPrismaWebhookWorkerEqualsSetParam interface { +type APITokenWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerWorkflowModel() - webhookWorkerField() + aPITokenModel() + createdAtField() } -type WebhookWorkerWorkflowWithPrismaWebhookWorkerSetParam interface { +type APITokenWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() - webhookWorkerField() + aPITokenModel() + createdAtField() } -type webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam struct { +type aPITokenWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) field() builder.Field { +func (p aPITokenWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaCreatedAtSetParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) webhookWorkerField() {} +func (p aPITokenWithPrismaCreatedAtSetParam) createdAtField() {} -type WebhookWorkerWorkflowWithPrismaWebhookWorkerWhereParam interface { +type APITokenWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() - webhookWorkerField() + aPITokenModel() + createdAtField() } -type webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam struct { +type aPITokenWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaCreatedAtEqualsParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) webhookWorkerField() {} +func (p aPITokenWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (webhookWorkerWorkflowWithPrismaWebhookWorkerSetParam) settable() {} -func (webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsParam) equals() {} +func (aPITokenWithPrismaCreatedAtSetParam) settable() {} +func (aPITokenWithPrismaCreatedAtEqualsParam) equals() {} -type webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam struct { +type aPITokenWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) webhookWorkerWorkflowModel() {} -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) webhookWorkerField() {} +func (p aPITokenWithPrismaCreatedAtEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) unique() {} -func (webhookWorkerWorkflowWithPrismaWebhookWorkerEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WebhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsSetParam interface { +type APITokenWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerWorkflowModel() - webhookWorkerIDField() + aPITokenModel() + updatedAtField() } -type WebhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam interface { +type APITokenWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() - webhookWorkerIDField() + aPITokenModel() + updatedAtField() } -type webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam struct { +type aPITokenWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) field() builder.Field { +func (p aPITokenWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaUpdatedAtSetParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) webhookWorkerIDField() {} +func (p aPITokenWithPrismaUpdatedAtSetParam) updatedAtField() {} -type WebhookWorkerWorkflowWithPrismaWebhookWorkerIDWhereParam interface { +type APITokenWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() - webhookWorkerIDField() + aPITokenModel() + updatedAtField() } -type webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam struct { +type aPITokenWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaUpdatedAtEqualsParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) webhookWorkerIDField() {} +func (p aPITokenWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (webhookWorkerWorkflowWithPrismaWebhookWorkerIDSetParam) settable() {} -func (webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsParam) equals() {} +func (aPITokenWithPrismaUpdatedAtSetParam) settable() {} +func (aPITokenWithPrismaUpdatedAtEqualsParam) equals() {} -type webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam struct { +type aPITokenWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) webhookWorkerWorkflowModel() { -} -func (p webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) webhookWorkerIDField() {} +func (p aPITokenWithPrismaUpdatedAtEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) unique() {} -func (webhookWorkerWorkflowWithPrismaWebhookWorkerIDEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type WebhookWorkerWorkflowWithPrismaWorkflowEqualsSetParam interface { +type APITokenWithPrismaExpiresAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerWorkflowModel() - workflowField() + aPITokenModel() + expiresAtField() } -type WebhookWorkerWorkflowWithPrismaWorkflowSetParam interface { +type APITokenWithPrismaExpiresAtSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() - workflowField() + aPITokenModel() + expiresAtField() } -type webhookWorkerWorkflowWithPrismaWorkflowSetParam struct { +type aPITokenWithPrismaExpiresAtSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWorkflowSetParam) field() builder.Field { +func (p aPITokenWithPrismaExpiresAtSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWorkflowSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaExpiresAtSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWorkflowSetParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaExpiresAtSetParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaWorkflowSetParam) workflowField() {} +func (p aPITokenWithPrismaExpiresAtSetParam) expiresAtField() {} -type WebhookWorkerWorkflowWithPrismaWorkflowWhereParam interface { +type APITokenWithPrismaExpiresAtWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() - workflowField() + aPITokenModel() + expiresAtField() } -type webhookWorkerWorkflowWithPrismaWorkflowEqualsParam struct { +type aPITokenWithPrismaExpiresAtEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaExpiresAtEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaExpiresAtEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaExpiresAtEqualsParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) workflowField() {} +func (p aPITokenWithPrismaExpiresAtEqualsParam) expiresAtField() {} -func (webhookWorkerWorkflowWithPrismaWorkflowSetParam) settable() {} -func (webhookWorkerWorkflowWithPrismaWorkflowEqualsParam) equals() {} +func (aPITokenWithPrismaExpiresAtSetParam) settable() {} +func (aPITokenWithPrismaExpiresAtEqualsParam) equals() {} -type webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam struct { +type aPITokenWithPrismaExpiresAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaExpiresAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaExpiresAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) webhookWorkerWorkflowModel() {} -func (p webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) workflowField() {} +func (p aPITokenWithPrismaExpiresAtEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaExpiresAtEqualsUniqueParam) expiresAtField() {} -func (webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) unique() {} -func (webhookWorkerWorkflowWithPrismaWorkflowEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaExpiresAtEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaExpiresAtEqualsUniqueParam) equals() {} -type WebhookWorkerWorkflowWithPrismaWorkflowIDEqualsSetParam interface { +type APITokenWithPrismaRevokedEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - webhookWorkerWorkflowModel() - workflowIDField() + aPITokenModel() + revokedField() } -type WebhookWorkerWorkflowWithPrismaWorkflowIDSetParam interface { +type APITokenWithPrismaRevokedSetParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() - workflowIDField() + aPITokenModel() + revokedField() } -type webhookWorkerWorkflowWithPrismaWorkflowIDSetParam struct { +type aPITokenWithPrismaRevokedSetParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) field() builder.Field { +func (p aPITokenWithPrismaRevokedSetParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaRevokedSetParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaRevokedSetParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) workflowIDField() {} +func (p aPITokenWithPrismaRevokedSetParam) revokedField() {} -type WebhookWorkerWorkflowWithPrismaWorkflowIDWhereParam interface { +type APITokenWithPrismaRevokedWhereParam interface { field() builder.Field getQuery() builder.Query - webhookWorkerWorkflowModel() - workflowIDField() + aPITokenModel() + revokedField() } -type webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam struct { +type aPITokenWithPrismaRevokedEqualsParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaRevokedEqualsParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaRevokedEqualsParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) webhookWorkerWorkflowModel() {} +func (p aPITokenWithPrismaRevokedEqualsParam) aPITokenModel() {} -func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) workflowIDField() {} +func (p aPITokenWithPrismaRevokedEqualsParam) revokedField() {} -func (webhookWorkerWorkflowWithPrismaWorkflowIDSetParam) settable() {} -func (webhookWorkerWorkflowWithPrismaWorkflowIDEqualsParam) equals() {} +func (aPITokenWithPrismaRevokedSetParam) settable() {} +func (aPITokenWithPrismaRevokedEqualsParam) equals() {} -type webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam struct { +type aPITokenWithPrismaRevokedEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaRevokedEqualsUniqueParam) field() builder.Field { return p.data } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaRevokedEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) webhookWorkerWorkflowModel() {} -func (p webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) workflowIDField() {} - -func (webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) unique() {} -func (webhookWorkerWorkflowWithPrismaWorkflowIDEqualsUniqueParam) equals() {} - -type controllerPartitionActions struct { - // client holds the prisma client - client *PrismaClient -} - -var controllerPartitionOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "lastHeartbeat"}, -} +func (p aPITokenWithPrismaRevokedEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaRevokedEqualsUniqueParam) revokedField() {} -type ControllerPartitionRelationWith interface { - getQuery() builder.Query - with() - controllerPartitionRelation() -} +func (aPITokenWithPrismaRevokedEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaRevokedEqualsUniqueParam) equals() {} -type ControllerPartitionWhereParam interface { +type APITokenWithPrismaNextAlertAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() -} - -type controllerPartitionDefaultParam struct { - data builder.Field - query builder.Query -} - -func (p controllerPartitionDefaultParam) field() builder.Field { - return p.data -} - -func (p controllerPartitionDefaultParam) getQuery() builder.Query { - return p.query + equals() + aPITokenModel() + nextAlertAtField() } -func (p controllerPartitionDefaultParam) controllerPartitionModel() {} - -type ControllerPartitionOrderByParam interface { +type APITokenWithPrismaNextAlertAtSetParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() + aPITokenModel() + nextAlertAtField() } -type controllerPartitionOrderByParam struct { +type aPITokenWithPrismaNextAlertAtSetParam struct { data builder.Field query builder.Query } -func (p controllerPartitionOrderByParam) field() builder.Field { +func (p aPITokenWithPrismaNextAlertAtSetParam) field() builder.Field { return p.data } -func (p controllerPartitionOrderByParam) getQuery() builder.Query { +func (p aPITokenWithPrismaNextAlertAtSetParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionOrderByParam) controllerPartitionModel() {} - -type ControllerPartitionCursorParam interface { - field() builder.Field - getQuery() builder.Query - controllerPartitionModel() - isCursor() -} - -type controllerPartitionCursorParam struct { - data builder.Field - query builder.Query -} - -func (p controllerPartitionCursorParam) field() builder.Field { - return p.data -} - -func (p controllerPartitionCursorParam) isCursor() {} - -func (p controllerPartitionCursorParam) getQuery() builder.Query { - return p.query -} +func (p aPITokenWithPrismaNextAlertAtSetParam) aPITokenModel() {} -func (p controllerPartitionCursorParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaNextAlertAtSetParam) nextAlertAtField() {} -type ControllerPartitionParamUnique interface { +type APITokenWithPrismaNextAlertAtWhereParam interface { field() builder.Field getQuery() builder.Query - unique() - controllerPartitionModel() + aPITokenModel() + nextAlertAtField() } -type controllerPartitionParamUnique struct { +type aPITokenWithPrismaNextAlertAtEqualsParam struct { data builder.Field query builder.Query } -func (p controllerPartitionParamUnique) controllerPartitionModel() {} - -func (controllerPartitionParamUnique) unique() {} - -func (p controllerPartitionParamUnique) field() builder.Field { +func (p aPITokenWithPrismaNextAlertAtEqualsParam) field() builder.Field { return p.data } -func (p controllerPartitionParamUnique) getQuery() builder.Query { +func (p aPITokenWithPrismaNextAlertAtEqualsParam) getQuery() builder.Query { return p.query } -type ControllerPartitionEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - controllerPartitionModel() -} - -type controllerPartitionEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p controllerPartitionEqualsParam) controllerPartitionModel() {} - -func (controllerPartitionEqualsParam) equals() {} - -func (p controllerPartitionEqualsParam) field() builder.Field { - return p.data -} +func (p aPITokenWithPrismaNextAlertAtEqualsParam) aPITokenModel() {} -func (p controllerPartitionEqualsParam) getQuery() builder.Query { - return p.query -} +func (p aPITokenWithPrismaNextAlertAtEqualsParam) nextAlertAtField() {} -type ControllerPartitionEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - controllerPartitionModel() -} +func (aPITokenWithPrismaNextAlertAtSetParam) settable() {} +func (aPITokenWithPrismaNextAlertAtEqualsParam) equals() {} -type controllerPartitionEqualsUniqueParam struct { +type aPITokenWithPrismaNextAlertAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p controllerPartitionEqualsUniqueParam) controllerPartitionModel() {} - -func (controllerPartitionEqualsUniqueParam) unique() {} -func (controllerPartitionEqualsUniqueParam) equals() {} - -func (p controllerPartitionEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaNextAlertAtEqualsUniqueParam) field() builder.Field { return p.data } - -func (p controllerPartitionEqualsUniqueParam) getQuery() builder.Query { - return p.query -} - -type ControllerPartitionSetParam interface { - field() builder.Field - settable() - controllerPartitionModel() -} - -type controllerPartitionSetParam struct { - data builder.Field -} - -func (controllerPartitionSetParam) settable() {} - -func (p controllerPartitionSetParam) field() builder.Field { - return p.data + +func (p aPITokenWithPrismaNextAlertAtEqualsUniqueParam) getQuery() builder.Query { + return p.query } -func (p controllerPartitionSetParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaNextAlertAtEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaNextAlertAtEqualsUniqueParam) nextAlertAtField() {} -type ControllerPartitionWithPrismaIDEqualsSetParam interface { +func (aPITokenWithPrismaNextAlertAtEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaNextAlertAtEqualsUniqueParam) equals() {} + +type APITokenWithPrismaInternalEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - controllerPartitionModel() - idField() + aPITokenModel() + internalField() } -type ControllerPartitionWithPrismaIDSetParam interface { +type APITokenWithPrismaInternalSetParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - idField() + aPITokenModel() + internalField() } -type controllerPartitionWithPrismaIDSetParam struct { +type aPITokenWithPrismaInternalSetParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaIDSetParam) field() builder.Field { +func (p aPITokenWithPrismaInternalSetParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaIDSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaInternalSetParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaIDSetParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaInternalSetParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaIDSetParam) idField() {} +func (p aPITokenWithPrismaInternalSetParam) internalField() {} -type ControllerPartitionWithPrismaIDWhereParam interface { +type APITokenWithPrismaInternalWhereParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - idField() + aPITokenModel() + internalField() } -type controllerPartitionWithPrismaIDEqualsParam struct { +type aPITokenWithPrismaInternalEqualsParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaIDEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaInternalEqualsParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaInternalEqualsParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaIDEqualsParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaInternalEqualsParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaIDEqualsParam) idField() {} +func (p aPITokenWithPrismaInternalEqualsParam) internalField() {} -func (controllerPartitionWithPrismaIDSetParam) settable() {} -func (controllerPartitionWithPrismaIDEqualsParam) equals() {} +func (aPITokenWithPrismaInternalSetParam) settable() {} +func (aPITokenWithPrismaInternalEqualsParam) equals() {} -type controllerPartitionWithPrismaIDEqualsUniqueParam struct { +type aPITokenWithPrismaInternalEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaInternalEqualsUniqueParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaInternalEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaIDEqualsUniqueParam) controllerPartitionModel() {} -func (p controllerPartitionWithPrismaIDEqualsUniqueParam) idField() {} +func (p aPITokenWithPrismaInternalEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaInternalEqualsUniqueParam) internalField() {} -func (controllerPartitionWithPrismaIDEqualsUniqueParam) unique() {} -func (controllerPartitionWithPrismaIDEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaInternalEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaInternalEqualsUniqueParam) equals() {} -type ControllerPartitionWithPrismaCreatedAtEqualsSetParam interface { +type APITokenWithPrismaNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - controllerPartitionModel() - createdAtField() + aPITokenModel() + nameField() } -type ControllerPartitionWithPrismaCreatedAtSetParam interface { +type APITokenWithPrismaNameSetParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - createdAtField() + aPITokenModel() + nameField() } -type controllerPartitionWithPrismaCreatedAtSetParam struct { +type aPITokenWithPrismaNameSetParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaCreatedAtSetParam) field() builder.Field { +func (p aPITokenWithPrismaNameSetParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaNameSetParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaCreatedAtSetParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaNameSetParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaCreatedAtSetParam) createdAtField() {} +func (p aPITokenWithPrismaNameSetParam) nameField() {} -type ControllerPartitionWithPrismaCreatedAtWhereParam interface { +type APITokenWithPrismaNameWhereParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - createdAtField() + aPITokenModel() + nameField() } -type controllerPartitionWithPrismaCreatedAtEqualsParam struct { +type aPITokenWithPrismaNameEqualsParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaNameEqualsParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaNameEqualsParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaCreatedAtEqualsParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaNameEqualsParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p aPITokenWithPrismaNameEqualsParam) nameField() {} -func (controllerPartitionWithPrismaCreatedAtSetParam) settable() {} -func (controllerPartitionWithPrismaCreatedAtEqualsParam) equals() {} +func (aPITokenWithPrismaNameSetParam) settable() {} +func (aPITokenWithPrismaNameEqualsParam) equals() {} -type controllerPartitionWithPrismaCreatedAtEqualsUniqueParam struct { +type aPITokenWithPrismaNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) controllerPartitionModel() {} -func (p controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p aPITokenWithPrismaNameEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaNameEqualsUniqueParam) nameField() {} -func (controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (controllerPartitionWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaNameEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaNameEqualsUniqueParam) equals() {} -type ControllerPartitionWithPrismaUpdatedAtEqualsSetParam interface { +type APITokenWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - controllerPartitionModel() - updatedAtField() + aPITokenModel() + tenantField() } -type ControllerPartitionWithPrismaUpdatedAtSetParam interface { +type APITokenWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - updatedAtField() + aPITokenModel() + tenantField() } -type controllerPartitionWithPrismaUpdatedAtSetParam struct { +type aPITokenWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p aPITokenWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaUpdatedAtSetParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaTenantSetParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p aPITokenWithPrismaTenantSetParam) tenantField() {} -type ControllerPartitionWithPrismaUpdatedAtWhereParam interface { +type APITokenWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - updatedAtField() + aPITokenModel() + tenantField() } -type controllerPartitionWithPrismaUpdatedAtEqualsParam struct { +type aPITokenWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaUpdatedAtEqualsParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaTenantEqualsParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p aPITokenWithPrismaTenantEqualsParam) tenantField() {} -func (controllerPartitionWithPrismaUpdatedAtSetParam) settable() {} -func (controllerPartitionWithPrismaUpdatedAtEqualsParam) equals() {} +func (aPITokenWithPrismaTenantSetParam) settable() {} +func (aPITokenWithPrismaTenantEqualsParam) equals() {} -type controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam struct { +type aPITokenWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) controllerPartitionModel() {} -func (p controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p aPITokenWithPrismaTenantEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (controllerPartitionWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaTenantEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaTenantEqualsUniqueParam) equals() {} -type ControllerPartitionWithPrismaLastHeartbeatEqualsSetParam interface { +type APITokenWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - controllerPartitionModel() - lastHeartbeatField() + aPITokenModel() + tenantIDField() } -type ControllerPartitionWithPrismaLastHeartbeatSetParam interface { +type APITokenWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - lastHeartbeatField() + aPITokenModel() + tenantIDField() } -type controllerPartitionWithPrismaLastHeartbeatSetParam struct { +type aPITokenWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaLastHeartbeatSetParam) field() builder.Field { +func (p aPITokenWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaLastHeartbeatSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaLastHeartbeatSetParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaTenantIDSetParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaLastHeartbeatSetParam) lastHeartbeatField() {} +func (p aPITokenWithPrismaTenantIDSetParam) tenantIDField() {} -type ControllerPartitionWithPrismaLastHeartbeatWhereParam interface { +type APITokenWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - lastHeartbeatField() + aPITokenModel() + tenantIDField() } -type controllerPartitionWithPrismaLastHeartbeatEqualsParam struct { +type aPITokenWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaLastHeartbeatEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaLastHeartbeatEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaLastHeartbeatEqualsParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaTenantIDEqualsParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaLastHeartbeatEqualsParam) lastHeartbeatField() {} +func (p aPITokenWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (controllerPartitionWithPrismaLastHeartbeatSetParam) settable() {} -func (controllerPartitionWithPrismaLastHeartbeatEqualsParam) equals() {} +func (aPITokenWithPrismaTenantIDSetParam) settable() {} +func (aPITokenWithPrismaTenantIDEqualsParam) equals() {} -type controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam struct { +type aPITokenWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) controllerPartitionModel() {} -func (p controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) lastHeartbeatField() {} +func (p aPITokenWithPrismaTenantIDEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) unique() {} -func (controllerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaTenantIDEqualsUniqueParam) equals() {} -type ControllerPartitionWithPrismaTenantsEqualsSetParam interface { +type APITokenWithPrismaWebhookWorkersEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - controllerPartitionModel() - tenantsField() + aPITokenModel() + webhookWorkersField() } -type ControllerPartitionWithPrismaTenantsSetParam interface { +type APITokenWithPrismaWebhookWorkersSetParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - tenantsField() + aPITokenModel() + webhookWorkersField() } -type controllerPartitionWithPrismaTenantsSetParam struct { +type aPITokenWithPrismaWebhookWorkersSetParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaTenantsSetParam) field() builder.Field { +func (p aPITokenWithPrismaWebhookWorkersSetParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaTenantsSetParam) getQuery() builder.Query { +func (p aPITokenWithPrismaWebhookWorkersSetParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaTenantsSetParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaWebhookWorkersSetParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaTenantsSetParam) tenantsField() {} +func (p aPITokenWithPrismaWebhookWorkersSetParam) webhookWorkersField() {} -type ControllerPartitionWithPrismaTenantsWhereParam interface { +type APITokenWithPrismaWebhookWorkersWhereParam interface { field() builder.Field getQuery() builder.Query - controllerPartitionModel() - tenantsField() + aPITokenModel() + webhookWorkersField() } -type controllerPartitionWithPrismaTenantsEqualsParam struct { +type aPITokenWithPrismaWebhookWorkersEqualsParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaTenantsEqualsParam) field() builder.Field { +func (p aPITokenWithPrismaWebhookWorkersEqualsParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaTenantsEqualsParam) getQuery() builder.Query { +func (p aPITokenWithPrismaWebhookWorkersEqualsParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaTenantsEqualsParam) controllerPartitionModel() {} +func (p aPITokenWithPrismaWebhookWorkersEqualsParam) aPITokenModel() {} -func (p controllerPartitionWithPrismaTenantsEqualsParam) tenantsField() {} +func (p aPITokenWithPrismaWebhookWorkersEqualsParam) webhookWorkersField() {} -func (controllerPartitionWithPrismaTenantsSetParam) settable() {} -func (controllerPartitionWithPrismaTenantsEqualsParam) equals() {} +func (aPITokenWithPrismaWebhookWorkersSetParam) settable() {} +func (aPITokenWithPrismaWebhookWorkersEqualsParam) equals() {} -type controllerPartitionWithPrismaTenantsEqualsUniqueParam struct { +type aPITokenWithPrismaWebhookWorkersEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p controllerPartitionWithPrismaTenantsEqualsUniqueParam) field() builder.Field { +func (p aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) field() builder.Field { return p.data } -func (p controllerPartitionWithPrismaTenantsEqualsUniqueParam) getQuery() builder.Query { +func (p aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p controllerPartitionWithPrismaTenantsEqualsUniqueParam) controllerPartitionModel() {} -func (p controllerPartitionWithPrismaTenantsEqualsUniqueParam) tenantsField() {} +func (p aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) aPITokenModel() {} +func (p aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) webhookWorkersField() {} -func (controllerPartitionWithPrismaTenantsEqualsUniqueParam) unique() {} -func (controllerPartitionWithPrismaTenantsEqualsUniqueParam) equals() {} +func (aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) unique() {} +func (aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) equals() {} -type tenantWorkerPartitionActions struct { +type eventActions struct { // client holds the prisma client client *PrismaClient } -var tenantWorkerPartitionOutput = []builder.Output{ +var eventOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, - {Name: "lastHeartbeat"}, + {Name: "deletedAt"}, + {Name: "key"}, + {Name: "tenantId"}, + {Name: "replayedFromId"}, + {Name: "data"}, + {Name: "additionalMetadata"}, } -type TenantWorkerPartitionRelationWith interface { +type EventRelationWith interface { getQuery() builder.Query with() - tenantWorkerPartitionRelation() + eventRelation() } -type TenantWorkerPartitionWhereParam interface { +type EventWhereParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() } -type tenantWorkerPartitionDefaultParam struct { +type eventDefaultParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionDefaultParam) field() builder.Field { +func (p eventDefaultParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionDefaultParam) getQuery() builder.Query { +func (p eventDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionDefaultParam) tenantWorkerPartitionModel() {} +func (p eventDefaultParam) eventModel() {} -type TenantWorkerPartitionOrderByParam interface { +type EventOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() } -type tenantWorkerPartitionOrderByParam struct { +type eventOrderByParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionOrderByParam) field() builder.Field { +func (p eventOrderByParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionOrderByParam) getQuery() builder.Query { +func (p eventOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionOrderByParam) tenantWorkerPartitionModel() {} +func (p eventOrderByParam) eventModel() {} -type TenantWorkerPartitionCursorParam interface { +type EventCursorParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() isCursor() } -type tenantWorkerPartitionCursorParam struct { +type eventCursorParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionCursorParam) field() builder.Field { +func (p eventCursorParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionCursorParam) isCursor() {} +func (p eventCursorParam) isCursor() {} -func (p tenantWorkerPartitionCursorParam) getQuery() builder.Query { +func (p eventCursorParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionCursorParam) tenantWorkerPartitionModel() {} +func (p eventCursorParam) eventModel() {} -type TenantWorkerPartitionParamUnique interface { +type EventParamUnique interface { field() builder.Field getQuery() builder.Query unique() - tenantWorkerPartitionModel() + eventModel() } -type tenantWorkerPartitionParamUnique struct { +type eventParamUnique struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionParamUnique) tenantWorkerPartitionModel() {} +func (p eventParamUnique) eventModel() {} -func (tenantWorkerPartitionParamUnique) unique() {} +func (eventParamUnique) unique() {} -func (p tenantWorkerPartitionParamUnique) field() builder.Field { +func (p eventParamUnique) field() builder.Field { return p.data } -func (p tenantWorkerPartitionParamUnique) getQuery() builder.Query { +func (p eventParamUnique) getQuery() builder.Query { return p.query } -type TenantWorkerPartitionEqualsWhereParam interface { +type EventEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - tenantWorkerPartitionModel() + eventModel() } -type tenantWorkerPartitionEqualsParam struct { +type eventEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionEqualsParam) tenantWorkerPartitionModel() {} +func (p eventEqualsParam) eventModel() {} -func (tenantWorkerPartitionEqualsParam) equals() {} +func (eventEqualsParam) equals() {} -func (p tenantWorkerPartitionEqualsParam) field() builder.Field { +func (p eventEqualsParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionEqualsParam) getQuery() builder.Query { +func (p eventEqualsParam) getQuery() builder.Query { return p.query } -type TenantWorkerPartitionEqualsUniqueWhereParam interface { +type EventEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - tenantWorkerPartitionModel() + eventModel() } -type tenantWorkerPartitionEqualsUniqueParam struct { +type eventEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionEqualsUniqueParam) tenantWorkerPartitionModel() {} +func (p eventEqualsUniqueParam) eventModel() {} -func (tenantWorkerPartitionEqualsUniqueParam) unique() {} -func (tenantWorkerPartitionEqualsUniqueParam) equals() {} +func (eventEqualsUniqueParam) unique() {} +func (eventEqualsUniqueParam) equals() {} -func (p tenantWorkerPartitionEqualsUniqueParam) field() builder.Field { +func (p eventEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionEqualsUniqueParam) getQuery() builder.Query { +func (p eventEqualsUniqueParam) getQuery() builder.Query { return p.query } -type TenantWorkerPartitionSetParam interface { +type EventSetParam interface { field() builder.Field settable() - tenantWorkerPartitionModel() + eventModel() } -type tenantWorkerPartitionSetParam struct { +type eventSetParam struct { data builder.Field } -func (tenantWorkerPartitionSetParam) settable() {} +func (eventSetParam) settable() {} -func (p tenantWorkerPartitionSetParam) field() builder.Field { +func (p eventSetParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionSetParam) tenantWorkerPartitionModel() {} +func (p eventSetParam) eventModel() {} -type TenantWorkerPartitionWithPrismaIDEqualsSetParam interface { +type EventWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantWorkerPartitionModel() + eventModel() idField() } -type TenantWorkerPartitionWithPrismaIDSetParam interface { +type EventWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() idField() } -type tenantWorkerPartitionWithPrismaIDSetParam struct { +type eventWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaIDSetParam) field() builder.Field { +func (p eventWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaIDSetParam) getQuery() builder.Query { +func (p eventWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaIDSetParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaIDSetParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaIDSetParam) idField() {} +func (p eventWithPrismaIDSetParam) idField() {} -type TenantWorkerPartitionWithPrismaIDWhereParam interface { +type EventWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() idField() } -type tenantWorkerPartitionWithPrismaIDEqualsParam struct { +type eventWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaIDEqualsParam) field() builder.Field { +func (p eventWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p eventWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaIDEqualsParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaIDEqualsParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaIDEqualsParam) idField() {} +func (p eventWithPrismaIDEqualsParam) idField() {} -func (tenantWorkerPartitionWithPrismaIDSetParam) settable() {} -func (tenantWorkerPartitionWithPrismaIDEqualsParam) equals() {} +func (eventWithPrismaIDSetParam) settable() {} +func (eventWithPrismaIDEqualsParam) equals() {} -type tenantWorkerPartitionWithPrismaIDEqualsUniqueParam struct { +type eventWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p eventWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p eventWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) tenantWorkerPartitionModel() {} -func (p tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) idField() {} +func (p eventWithPrismaIDEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaIDEqualsUniqueParam) idField() {} -func (tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantWorkerPartitionWithPrismaIDEqualsUniqueParam) equals() {} +func (eventWithPrismaIDEqualsUniqueParam) unique() {} +func (eventWithPrismaIDEqualsUniqueParam) equals() {} -type TenantWorkerPartitionWithPrismaCreatedAtEqualsSetParam interface { +type EventWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantWorkerPartitionModel() + eventModel() createdAtField() } -type TenantWorkerPartitionWithPrismaCreatedAtSetParam interface { +type EventWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() createdAtField() } -type tenantWorkerPartitionWithPrismaCreatedAtSetParam struct { +type eventWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaCreatedAtSetParam) field() builder.Field { +func (p eventWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p eventWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaCreatedAtSetParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaCreatedAtSetParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaCreatedAtSetParam) createdAtField() {} +func (p eventWithPrismaCreatedAtSetParam) createdAtField() {} -type TenantWorkerPartitionWithPrismaCreatedAtWhereParam interface { +type EventWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() createdAtField() } -type tenantWorkerPartitionWithPrismaCreatedAtEqualsParam struct { +type eventWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p eventWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p eventWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaCreatedAtEqualsParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p eventWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (tenantWorkerPartitionWithPrismaCreatedAtSetParam) settable() {} -func (tenantWorkerPartitionWithPrismaCreatedAtEqualsParam) equals() {} +func (eventWithPrismaCreatedAtSetParam) settable() {} +func (eventWithPrismaCreatedAtEqualsParam) equals() {} -type tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam struct { +type eventWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p eventWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p eventWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) tenantWorkerPartitionModel() {} -func (p tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p eventWithPrismaCreatedAtEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantWorkerPartitionWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (eventWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (eventWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type TenantWorkerPartitionWithPrismaUpdatedAtEqualsSetParam interface { +type EventWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantWorkerPartitionModel() + eventModel() updatedAtField() } -type TenantWorkerPartitionWithPrismaUpdatedAtSetParam interface { +type EventWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() updatedAtField() } -type tenantWorkerPartitionWithPrismaUpdatedAtSetParam struct { +type eventWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p eventWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p eventWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaUpdatedAtSetParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaUpdatedAtSetParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p eventWithPrismaUpdatedAtSetParam) updatedAtField() {} -type TenantWorkerPartitionWithPrismaUpdatedAtWhereParam interface { +type EventWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() + eventModel() updatedAtField() } -type tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam struct { +type eventWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p eventWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p eventWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaUpdatedAtEqualsParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p eventWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (tenantWorkerPartitionWithPrismaUpdatedAtSetParam) settable() {} -func (tenantWorkerPartitionWithPrismaUpdatedAtEqualsParam) equals() {} +func (eventWithPrismaUpdatedAtSetParam) settable() {} +func (eventWithPrismaUpdatedAtEqualsParam) equals() {} -type tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam struct { +type eventWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p eventWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p eventWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) tenantWorkerPartitionModel() {} -func (p tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p eventWithPrismaUpdatedAtEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantWorkerPartitionWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (eventWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (eventWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type TenantWorkerPartitionWithPrismaLastHeartbeatEqualsSetParam interface { +type EventWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantWorkerPartitionModel() - lastHeartbeatField() + eventModel() + deletedAtField() } -type TenantWorkerPartitionWithPrismaLastHeartbeatSetParam interface { +type EventWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() - lastHeartbeatField() + eventModel() + deletedAtField() } -type tenantWorkerPartitionWithPrismaLastHeartbeatSetParam struct { +type eventWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) field() builder.Field { +func (p eventWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) getQuery() builder.Query { +func (p eventWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaDeletedAtSetParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) lastHeartbeatField() {} +func (p eventWithPrismaDeletedAtSetParam) deletedAtField() {} -type TenantWorkerPartitionWithPrismaLastHeartbeatWhereParam interface { +type EventWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() - lastHeartbeatField() + eventModel() + deletedAtField() } -type tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam struct { +type eventWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) field() builder.Field { +func (p eventWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) getQuery() builder.Query { +func (p eventWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaDeletedAtEqualsParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) lastHeartbeatField() {} +func (p eventWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (tenantWorkerPartitionWithPrismaLastHeartbeatSetParam) settable() {} -func (tenantWorkerPartitionWithPrismaLastHeartbeatEqualsParam) equals() {} +func (eventWithPrismaDeletedAtSetParam) settable() {} +func (eventWithPrismaDeletedAtEqualsParam) equals() {} -type tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam struct { +type eventWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) field() builder.Field { +func (p eventWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) getQuery() builder.Query { +func (p eventWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) tenantWorkerPartitionModel() {} -func (p tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) lastHeartbeatField() {} +func (p eventWithPrismaDeletedAtEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) unique() {} -func (tenantWorkerPartitionWithPrismaLastHeartbeatEqualsUniqueParam) equals() {} +func (eventWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (eventWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type TenantWorkerPartitionWithPrismaTenantsEqualsSetParam interface { +type EventWithPrismaKeyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantWorkerPartitionModel() - tenantsField() + eventModel() + keyField() } -type TenantWorkerPartitionWithPrismaTenantsSetParam interface { +type EventWithPrismaKeySetParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() - tenantsField() + eventModel() + keyField() } -type tenantWorkerPartitionWithPrismaTenantsSetParam struct { +type eventWithPrismaKeySetParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaTenantsSetParam) field() builder.Field { +func (p eventWithPrismaKeySetParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaTenantsSetParam) getQuery() builder.Query { +func (p eventWithPrismaKeySetParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaTenantsSetParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaKeySetParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaTenantsSetParam) tenantsField() {} +func (p eventWithPrismaKeySetParam) keyField() {} -type TenantWorkerPartitionWithPrismaTenantsWhereParam interface { +type EventWithPrismaKeyWhereParam interface { field() builder.Field getQuery() builder.Query - tenantWorkerPartitionModel() - tenantsField() + eventModel() + keyField() } -type tenantWorkerPartitionWithPrismaTenantsEqualsParam struct { +type eventWithPrismaKeyEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaTenantsEqualsParam) field() builder.Field { +func (p eventWithPrismaKeyEqualsParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaTenantsEqualsParam) getQuery() builder.Query { +func (p eventWithPrismaKeyEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaTenantsEqualsParam) tenantWorkerPartitionModel() {} +func (p eventWithPrismaKeyEqualsParam) eventModel() {} -func (p tenantWorkerPartitionWithPrismaTenantsEqualsParam) tenantsField() {} +func (p eventWithPrismaKeyEqualsParam) keyField() {} -func (tenantWorkerPartitionWithPrismaTenantsSetParam) settable() {} -func (tenantWorkerPartitionWithPrismaTenantsEqualsParam) equals() {} +func (eventWithPrismaKeySetParam) settable() {} +func (eventWithPrismaKeyEqualsParam) equals() {} -type tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam struct { +type eventWithPrismaKeyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) field() builder.Field { +func (p eventWithPrismaKeyEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) getQuery() builder.Query { +func (p eventWithPrismaKeyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) tenantWorkerPartitionModel() {} -func (p tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) tenantsField() {} +func (p eventWithPrismaKeyEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaKeyEqualsUniqueParam) keyField() {} -func (tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) unique() {} -func (tenantWorkerPartitionWithPrismaTenantsEqualsUniqueParam) equals() {} +func (eventWithPrismaKeyEqualsUniqueParam) unique() {} +func (eventWithPrismaKeyEqualsUniqueParam) equals() {} -type tenantActions struct { - // client holds the prisma client - client *PrismaClient +type EventWithPrismaTenantEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + eventModel() + tenantField() } -var tenantOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "name"}, - {Name: "slug"}, - {Name: "analyticsOptOut"}, - {Name: "controllerPartitionId"}, - {Name: "workerPartitionId"}, - {Name: "alertMemberEmails"}, +type EventWithPrismaTenantSetParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + tenantField() } -type TenantRelationWith interface { +type eventWithPrismaTenantSetParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaTenantSetParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaTenantSetParam) getQuery() builder.Query { + return p.query +} + +func (p eventWithPrismaTenantSetParam) eventModel() {} + +func (p eventWithPrismaTenantSetParam) tenantField() {} + +type EventWithPrismaTenantWhereParam interface { + field() builder.Field getQuery() builder.Query - with() - tenantRelation() + eventModel() + tenantField() } -type TenantWhereParam interface { +type eventWithPrismaTenantEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaTenantEqualsParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaTenantEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p eventWithPrismaTenantEqualsParam) eventModel() {} + +func (p eventWithPrismaTenantEqualsParam) tenantField() {} + +func (eventWithPrismaTenantSetParam) settable() {} +func (eventWithPrismaTenantEqualsParam) equals() {} + +type eventWithPrismaTenantEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaTenantEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p eventWithPrismaTenantEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaTenantEqualsUniqueParam) tenantField() {} + +func (eventWithPrismaTenantEqualsUniqueParam) unique() {} +func (eventWithPrismaTenantEqualsUniqueParam) equals() {} + +type EventWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() + equals() + eventModel() + tenantIDField() } -type tenantDefaultParam struct { +type EventWithPrismaTenantIDSetParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + tenantIDField() +} + +type eventWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p tenantDefaultParam) field() builder.Field { +func (p eventWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p tenantDefaultParam) getQuery() builder.Query { +func (p eventWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantDefaultParam) tenantModel() {} +func (p eventWithPrismaTenantIDSetParam) eventModel() {} -type TenantOrderByParam interface { +func (p eventWithPrismaTenantIDSetParam) tenantIDField() {} + +type EventWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() + eventModel() + tenantIDField() } -type tenantOrderByParam struct { +type eventWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantOrderByParam) field() builder.Field { +func (p eventWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p tenantOrderByParam) getQuery() builder.Query { +func (p eventWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantOrderByParam) tenantModel() {} +func (p eventWithPrismaTenantIDEqualsParam) eventModel() {} -type TenantCursorParam interface { +func (p eventWithPrismaTenantIDEqualsParam) tenantIDField() {} + +func (eventWithPrismaTenantIDSetParam) settable() {} +func (eventWithPrismaTenantIDEqualsParam) equals() {} + +type eventWithPrismaTenantIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p eventWithPrismaTenantIDEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} + +func (eventWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (eventWithPrismaTenantIDEqualsUniqueParam) equals() {} + +type EventWithPrismaReplayedFromEqualsSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - isCursor() + equals() + eventModel() + replayedFromField() } -type tenantCursorParam struct { +type EventWithPrismaReplayedFromSetParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + replayedFromField() +} + +type eventWithPrismaReplayedFromSetParam struct { data builder.Field query builder.Query } -func (p tenantCursorParam) field() builder.Field { +func (p eventWithPrismaReplayedFromSetParam) field() builder.Field { return p.data } -func (p tenantCursorParam) isCursor() {} +func (p eventWithPrismaReplayedFromSetParam) getQuery() builder.Query { + return p.query +} -func (p tenantCursorParam) getQuery() builder.Query { +func (p eventWithPrismaReplayedFromSetParam) eventModel() {} + +func (p eventWithPrismaReplayedFromSetParam) replayedFromField() {} + +type EventWithPrismaReplayedFromWhereParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + replayedFromField() +} + +type eventWithPrismaReplayedFromEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaReplayedFromEqualsParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaReplayedFromEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantCursorParam) tenantModel() {} +func (p eventWithPrismaReplayedFromEqualsParam) eventModel() {} -type TenantParamUnique interface { +func (p eventWithPrismaReplayedFromEqualsParam) replayedFromField() {} + +func (eventWithPrismaReplayedFromSetParam) settable() {} +func (eventWithPrismaReplayedFromEqualsParam) equals() {} + +type eventWithPrismaReplayedFromEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaReplayedFromEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaReplayedFromEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p eventWithPrismaReplayedFromEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaReplayedFromEqualsUniqueParam) replayedFromField() {} + +func (eventWithPrismaReplayedFromEqualsUniqueParam) unique() {} +func (eventWithPrismaReplayedFromEqualsUniqueParam) equals() {} + +type EventWithPrismaReplayedFromIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - tenantModel() + equals() + eventModel() + replayedFromIDField() } -type tenantParamUnique struct { +type EventWithPrismaReplayedFromIDSetParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + replayedFromIDField() +} + +type eventWithPrismaReplayedFromIDSetParam struct { data builder.Field query builder.Query } -func (p tenantParamUnique) tenantModel() {} +func (p eventWithPrismaReplayedFromIDSetParam) field() builder.Field { + return p.data +} -func (tenantParamUnique) unique() {} +func (p eventWithPrismaReplayedFromIDSetParam) getQuery() builder.Query { + return p.query +} -func (p tenantParamUnique) field() builder.Field { +func (p eventWithPrismaReplayedFromIDSetParam) eventModel() {} + +func (p eventWithPrismaReplayedFromIDSetParam) replayedFromIDField() {} + +type EventWithPrismaReplayedFromIDWhereParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + replayedFromIDField() +} + +type eventWithPrismaReplayedFromIDEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaReplayedFromIDEqualsParam) field() builder.Field { return p.data } -func (p tenantParamUnique) getQuery() builder.Query { +func (p eventWithPrismaReplayedFromIDEqualsParam) getQuery() builder.Query { return p.query } -type TenantEqualsWhereParam interface { +func (p eventWithPrismaReplayedFromIDEqualsParam) eventModel() {} + +func (p eventWithPrismaReplayedFromIDEqualsParam) replayedFromIDField() {} + +func (eventWithPrismaReplayedFromIDSetParam) settable() {} +func (eventWithPrismaReplayedFromIDEqualsParam) equals() {} + +type eventWithPrismaReplayedFromIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaReplayedFromIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaReplayedFromIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p eventWithPrismaReplayedFromIDEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaReplayedFromIDEqualsUniqueParam) replayedFromIDField() {} + +func (eventWithPrismaReplayedFromIDEqualsUniqueParam) unique() {} +func (eventWithPrismaReplayedFromIDEqualsUniqueParam) equals() {} + +type EventWithPrismaReplaysEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() + eventModel() + replaysField() } -type tenantEqualsParam struct { +type EventWithPrismaReplaysSetParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + replaysField() +} + +type eventWithPrismaReplaysSetParam struct { data builder.Field query builder.Query } -func (p tenantEqualsParam) tenantModel() {} +func (p eventWithPrismaReplaysSetParam) field() builder.Field { + return p.data +} -func (tenantEqualsParam) equals() {} +func (p eventWithPrismaReplaysSetParam) getQuery() builder.Query { + return p.query +} -func (p tenantEqualsParam) field() builder.Field { +func (p eventWithPrismaReplaysSetParam) eventModel() {} + +func (p eventWithPrismaReplaysSetParam) replaysField() {} + +type EventWithPrismaReplaysWhereParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + replaysField() +} + +type eventWithPrismaReplaysEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaReplaysEqualsParam) field() builder.Field { return p.data } -func (p tenantEqualsParam) getQuery() builder.Query { +func (p eventWithPrismaReplaysEqualsParam) getQuery() builder.Query { return p.query } -type TenantEqualsUniqueWhereParam interface { +func (p eventWithPrismaReplaysEqualsParam) eventModel() {} + +func (p eventWithPrismaReplaysEqualsParam) replaysField() {} + +func (eventWithPrismaReplaysSetParam) settable() {} +func (eventWithPrismaReplaysEqualsParam) equals() {} + +type eventWithPrismaReplaysEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaReplaysEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaReplaysEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p eventWithPrismaReplaysEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaReplaysEqualsUniqueParam) replaysField() {} + +func (eventWithPrismaReplaysEqualsUniqueParam) unique() {} +func (eventWithPrismaReplaysEqualsUniqueParam) equals() {} + +type EventWithPrismaDataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - unique() - tenantModel() + eventModel() + dataField() +} + +type EventWithPrismaDataSetParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + dataField() +} + +type eventWithPrismaDataSetParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaDataSetParam) field() builder.Field { + return p.data +} + +func (p eventWithPrismaDataSetParam) getQuery() builder.Query { + return p.query +} + +func (p eventWithPrismaDataSetParam) eventModel() {} + +func (p eventWithPrismaDataSetParam) dataField() {} + +type EventWithPrismaDataWhereParam interface { + field() builder.Field + getQuery() builder.Query + eventModel() + dataField() } -type tenantEqualsUniqueParam struct { +type eventWithPrismaDataEqualsParam struct { data builder.Field query builder.Query } -func (p tenantEqualsUniqueParam) tenantModel() {} - -func (tenantEqualsUniqueParam) unique() {} -func (tenantEqualsUniqueParam) equals() {} - -func (p tenantEqualsUniqueParam) field() builder.Field { +func (p eventWithPrismaDataEqualsParam) field() builder.Field { return p.data } -func (p tenantEqualsUniqueParam) getQuery() builder.Query { +func (p eventWithPrismaDataEqualsParam) getQuery() builder.Query { return p.query } -type TenantSetParam interface { - field() builder.Field - settable() - tenantModel() -} +func (p eventWithPrismaDataEqualsParam) eventModel() {} -type tenantSetParam struct { - data builder.Field -} +func (p eventWithPrismaDataEqualsParam) dataField() {} -func (tenantSetParam) settable() {} +func (eventWithPrismaDataSetParam) settable() {} +func (eventWithPrismaDataEqualsParam) equals() {} -func (p tenantSetParam) field() builder.Field { +type eventWithPrismaDataEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p eventWithPrismaDataEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantSetParam) tenantModel() {} +func (p eventWithPrismaDataEqualsUniqueParam) getQuery() builder.Query { + return p.query +} -type TenantWithPrismaIDEqualsSetParam interface { +func (p eventWithPrismaDataEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaDataEqualsUniqueParam) dataField() {} + +func (eventWithPrismaDataEqualsUniqueParam) unique() {} +func (eventWithPrismaDataEqualsUniqueParam) equals() {} + +type EventWithPrismaAdditionalMetadataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - idField() + eventModel() + additionalMetadataField() } -type TenantWithPrismaIDSetParam interface { +type EventWithPrismaAdditionalMetadataSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - idField() + eventModel() + additionalMetadataField() } -type tenantWithPrismaIDSetParam struct { +type eventWithPrismaAdditionalMetadataSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaIDSetParam) field() builder.Field { +func (p eventWithPrismaAdditionalMetadataSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaIDSetParam) getQuery() builder.Query { +func (p eventWithPrismaAdditionalMetadataSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaIDSetParam) tenantModel() {} +func (p eventWithPrismaAdditionalMetadataSetParam) eventModel() {} -func (p tenantWithPrismaIDSetParam) idField() {} +func (p eventWithPrismaAdditionalMetadataSetParam) additionalMetadataField() {} -type TenantWithPrismaIDWhereParam interface { +type EventWithPrismaAdditionalMetadataWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - idField() + eventModel() + additionalMetadataField() } -type tenantWithPrismaIDEqualsParam struct { +type eventWithPrismaAdditionalMetadataEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaIDEqualsParam) field() builder.Field { +func (p eventWithPrismaAdditionalMetadataEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p eventWithPrismaAdditionalMetadataEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaIDEqualsParam) tenantModel() {} +func (p eventWithPrismaAdditionalMetadataEqualsParam) eventModel() {} -func (p tenantWithPrismaIDEqualsParam) idField() {} +func (p eventWithPrismaAdditionalMetadataEqualsParam) additionalMetadataField() {} -func (tenantWithPrismaIDSetParam) settable() {} -func (tenantWithPrismaIDEqualsParam) equals() {} +func (eventWithPrismaAdditionalMetadataSetParam) settable() {} +func (eventWithPrismaAdditionalMetadataEqualsParam) equals() {} -type tenantWithPrismaIDEqualsUniqueParam struct { +type eventWithPrismaAdditionalMetadataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p eventWithPrismaAdditionalMetadataEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p eventWithPrismaAdditionalMetadataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaIDEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaIDEqualsUniqueParam) idField() {} +func (p eventWithPrismaAdditionalMetadataEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaAdditionalMetadataEqualsUniqueParam) additionalMetadataField() {} -func (tenantWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantWithPrismaIDEqualsUniqueParam) equals() {} +func (eventWithPrismaAdditionalMetadataEqualsUniqueParam) unique() {} +func (eventWithPrismaAdditionalMetadataEqualsUniqueParam) equals() {} -type TenantWithPrismaCreatedAtEqualsSetParam interface { +type EventWithPrismaWorkflowRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - createdAtField() + eventModel() + workflowRunsField() } -type TenantWithPrismaCreatedAtSetParam interface { +type EventWithPrismaWorkflowRunsSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - createdAtField() + eventModel() + workflowRunsField() } -type tenantWithPrismaCreatedAtSetParam struct { +type eventWithPrismaWorkflowRunsSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaCreatedAtSetParam) field() builder.Field { +func (p eventWithPrismaWorkflowRunsSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p eventWithPrismaWorkflowRunsSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaCreatedAtSetParam) tenantModel() {} +func (p eventWithPrismaWorkflowRunsSetParam) eventModel() {} -func (p tenantWithPrismaCreatedAtSetParam) createdAtField() {} +func (p eventWithPrismaWorkflowRunsSetParam) workflowRunsField() {} -type TenantWithPrismaCreatedAtWhereParam interface { +type EventWithPrismaWorkflowRunsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - createdAtField() + eventModel() + workflowRunsField() } -type tenantWithPrismaCreatedAtEqualsParam struct { +type eventWithPrismaWorkflowRunsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p eventWithPrismaWorkflowRunsEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p eventWithPrismaWorkflowRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaCreatedAtEqualsParam) tenantModel() {} +func (p eventWithPrismaWorkflowRunsEqualsParam) eventModel() {} -func (p tenantWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p eventWithPrismaWorkflowRunsEqualsParam) workflowRunsField() {} -func (tenantWithPrismaCreatedAtSetParam) settable() {} -func (tenantWithPrismaCreatedAtEqualsParam) equals() {} +func (eventWithPrismaWorkflowRunsSetParam) settable() {} +func (eventWithPrismaWorkflowRunsEqualsParam) equals() {} -type tenantWithPrismaCreatedAtEqualsUniqueParam struct { +type eventWithPrismaWorkflowRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p eventWithPrismaWorkflowRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p eventWithPrismaWorkflowRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaCreatedAtEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p eventWithPrismaWorkflowRunsEqualsUniqueParam) eventModel() {} +func (p eventWithPrismaWorkflowRunsEqualsUniqueParam) workflowRunsField() {} -func (tenantWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (eventWithPrismaWorkflowRunsEqualsUniqueParam) unique() {} +func (eventWithPrismaWorkflowRunsEqualsUniqueParam) equals() {} -type TenantWithPrismaUpdatedAtEqualsSetParam interface { - field() builder.Field +type workflowTagActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workflowTagOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "tenantId"}, + {Name: "name"}, + {Name: "color"}, +} + +type WorkflowTagRelationWith interface { getQuery() builder.Query - equals() - tenantModel() - updatedAtField() + with() + workflowTagRelation() } -type TenantWithPrismaUpdatedAtSetParam interface { +type WorkflowTagWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - updatedAtField() + workflowTagModel() } -type tenantWithPrismaUpdatedAtSetParam struct { +type workflowTagDefaultParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p workflowTagDefaultParam) field() builder.Field { return p.data } -func (p tenantWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowTagDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaUpdatedAtSetParam) tenantModel() {} - -func (p tenantWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p workflowTagDefaultParam) workflowTagModel() {} -type TenantWithPrismaUpdatedAtWhereParam interface { +type WorkflowTagOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - updatedAtField() + workflowTagModel() } -type tenantWithPrismaUpdatedAtEqualsParam struct { +type workflowTagOrderByParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p workflowTagOrderByParam) field() builder.Field { return p.data } -func (p tenantWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTagOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaUpdatedAtEqualsParam) tenantModel() {} - -func (p tenantWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p workflowTagOrderByParam) workflowTagModel() {} -func (tenantWithPrismaUpdatedAtSetParam) settable() {} -func (tenantWithPrismaUpdatedAtEqualsParam) equals() {} +type WorkflowTagCursorParam interface { + field() builder.Field + getQuery() builder.Query + workflowTagModel() + isCursor() +} -type tenantWithPrismaUpdatedAtEqualsUniqueParam struct { +type workflowTagCursorParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTagCursorParam) field() builder.Field { return p.data } -func (p tenantWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagCursorParam) isCursor() {} + +func (p workflowTagCursorParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaUpdatedAtEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (tenantWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantWithPrismaUpdatedAtEqualsUniqueParam) equals() {} - -type TenantWithPrismaDeletedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantModel() - deletedAtField() -} +func (p workflowTagCursorParam) workflowTagModel() {} -type TenantWithPrismaDeletedAtSetParam interface { +type WorkflowTagParamUnique interface { field() builder.Field getQuery() builder.Query - tenantModel() - deletedAtField() + unique() + workflowTagModel() } -type tenantWithPrismaDeletedAtSetParam struct { +type workflowTagParamUnique struct { data builder.Field query builder.Query } -func (p tenantWithPrismaDeletedAtSetParam) field() builder.Field { +func (p workflowTagParamUnique) workflowTagModel() {} + +func (workflowTagParamUnique) unique() {} + +func (p workflowTagParamUnique) field() builder.Field { return p.data } -func (p tenantWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p workflowTagParamUnique) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaDeletedAtSetParam) tenantModel() {} - -func (p tenantWithPrismaDeletedAtSetParam) deletedAtField() {} - -type TenantWithPrismaDeletedAtWhereParam interface { +type WorkflowTagEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - deletedAtField() + equals() + workflowTagModel() } -type tenantWithPrismaDeletedAtEqualsParam struct { +type workflowTagEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p workflowTagEqualsParam) workflowTagModel() {} + +func (workflowTagEqualsParam) equals() {} + +func (p workflowTagEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p workflowTagEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaDeletedAtEqualsParam) tenantModel() {} - -func (p tenantWithPrismaDeletedAtEqualsParam) deletedAtField() {} - -func (tenantWithPrismaDeletedAtSetParam) settable() {} -func (tenantWithPrismaDeletedAtEqualsParam) equals() {} +type WorkflowTagEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workflowTagModel() +} -type tenantWithPrismaDeletedAtEqualsUniqueParam struct { +type workflowTagEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTagEqualsUniqueParam) workflowTagModel() {} + +func (workflowTagEqualsUniqueParam) unique() {} +func (workflowTagEqualsUniqueParam) equals() {} + +func (p workflowTagEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaDeletedAtEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +type WorkflowTagSetParam interface { + field() builder.Field + settable() + workflowTagModel() +} -func (tenantWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (tenantWithPrismaDeletedAtEqualsUniqueParam) equals() {} +type workflowTagSetParam struct { + data builder.Field +} -type TenantWithPrismaNameEqualsSetParam interface { +func (workflowTagSetParam) settable() {} + +func (p workflowTagSetParam) field() builder.Field { + return p.data +} + +func (p workflowTagSetParam) workflowTagModel() {} + +type WorkflowTagWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - nameField() + workflowTagModel() + idField() } -type TenantWithPrismaNameSetParam interface { +type WorkflowTagWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - nameField() + workflowTagModel() + idField() } -type tenantWithPrismaNameSetParam struct { +type workflowTagWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaNameSetParam) field() builder.Field { +func (p workflowTagWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaNameSetParam) getQuery() builder.Query { +func (p workflowTagWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaNameSetParam) tenantModel() {} +func (p workflowTagWithPrismaIDSetParam) workflowTagModel() {} -func (p tenantWithPrismaNameSetParam) nameField() {} +func (p workflowTagWithPrismaIDSetParam) idField() {} -type TenantWithPrismaNameWhereParam interface { +type WorkflowTagWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - nameField() + workflowTagModel() + idField() } -type tenantWithPrismaNameEqualsParam struct { +type workflowTagWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaNameEqualsParam) field() builder.Field { +func (p workflowTagWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaNameEqualsParam) getQuery() builder.Query { +func (p workflowTagWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaNameEqualsParam) tenantModel() {} +func (p workflowTagWithPrismaIDEqualsParam) workflowTagModel() {} -func (p tenantWithPrismaNameEqualsParam) nameField() {} +func (p workflowTagWithPrismaIDEqualsParam) idField() {} -func (tenantWithPrismaNameSetParam) settable() {} -func (tenantWithPrismaNameEqualsParam) equals() {} +func (workflowTagWithPrismaIDSetParam) settable() {} +func (workflowTagWithPrismaIDEqualsParam) equals() {} -type tenantWithPrismaNameEqualsUniqueParam struct { +type workflowTagWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaNameEqualsUniqueParam) field() builder.Field { +func (p workflowTagWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaNameEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaNameEqualsUniqueParam) nameField() {} +func (p workflowTagWithPrismaIDEqualsUniqueParam) workflowTagModel() {} +func (p workflowTagWithPrismaIDEqualsUniqueParam) idField() {} -func (tenantWithPrismaNameEqualsUniqueParam) unique() {} -func (tenantWithPrismaNameEqualsUniqueParam) equals() {} +func (workflowTagWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowTagWithPrismaIDEqualsUniqueParam) equals() {} -type TenantWithPrismaSlugEqualsSetParam interface { +type WorkflowTagWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - slugField() + workflowTagModel() + createdAtField() } -type TenantWithPrismaSlugSetParam interface { +type WorkflowTagWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - slugField() + workflowTagModel() + createdAtField() } -type tenantWithPrismaSlugSetParam struct { +type workflowTagWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSlugSetParam) field() builder.Field { +func (p workflowTagWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSlugSetParam) getQuery() builder.Query { +func (p workflowTagWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSlugSetParam) tenantModel() {} +func (p workflowTagWithPrismaCreatedAtSetParam) workflowTagModel() {} -func (p tenantWithPrismaSlugSetParam) slugField() {} +func (p workflowTagWithPrismaCreatedAtSetParam) createdAtField() {} -type TenantWithPrismaSlugWhereParam interface { +type WorkflowTagWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - slugField() + workflowTagModel() + createdAtField() } -type tenantWithPrismaSlugEqualsParam struct { +type workflowTagWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSlugEqualsParam) field() builder.Field { +func (p workflowTagWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSlugEqualsParam) getQuery() builder.Query { +func (p workflowTagWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSlugEqualsParam) tenantModel() {} +func (p workflowTagWithPrismaCreatedAtEqualsParam) workflowTagModel() {} -func (p tenantWithPrismaSlugEqualsParam) slugField() {} +func (p workflowTagWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (tenantWithPrismaSlugSetParam) settable() {} -func (tenantWithPrismaSlugEqualsParam) equals() {} +func (workflowTagWithPrismaCreatedAtSetParam) settable() {} +func (workflowTagWithPrismaCreatedAtEqualsParam) equals() {} -type tenantWithPrismaSlugEqualsUniqueParam struct { +type workflowTagWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSlugEqualsUniqueParam) field() builder.Field { +func (p workflowTagWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSlugEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSlugEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaSlugEqualsUniqueParam) slugField() {} +func (p workflowTagWithPrismaCreatedAtEqualsUniqueParam) workflowTagModel() {} +func (p workflowTagWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (tenantWithPrismaSlugEqualsUniqueParam) unique() {} -func (tenantWithPrismaSlugEqualsUniqueParam) equals() {} +func (workflowTagWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowTagWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type TenantWithPrismaAnalyticsOptOutEqualsSetParam interface { +type WorkflowTagWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - analyticsOptOutField() + workflowTagModel() + updatedAtField() } -type TenantWithPrismaAnalyticsOptOutSetParam interface { +type WorkflowTagWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - analyticsOptOutField() + workflowTagModel() + updatedAtField() } -type tenantWithPrismaAnalyticsOptOutSetParam struct { +type workflowTagWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAnalyticsOptOutSetParam) field() builder.Field { +func (p workflowTagWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAnalyticsOptOutSetParam) getQuery() builder.Query { +func (p workflowTagWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAnalyticsOptOutSetParam) tenantModel() {} +func (p workflowTagWithPrismaUpdatedAtSetParam) workflowTagModel() {} -func (p tenantWithPrismaAnalyticsOptOutSetParam) analyticsOptOutField() {} +func (p workflowTagWithPrismaUpdatedAtSetParam) updatedAtField() {} -type TenantWithPrismaAnalyticsOptOutWhereParam interface { +type WorkflowTagWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - analyticsOptOutField() + workflowTagModel() + updatedAtField() } -type tenantWithPrismaAnalyticsOptOutEqualsParam struct { +type workflowTagWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAnalyticsOptOutEqualsParam) field() builder.Field { +func (p workflowTagWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAnalyticsOptOutEqualsParam) getQuery() builder.Query { +func (p workflowTagWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAnalyticsOptOutEqualsParam) tenantModel() {} +func (p workflowTagWithPrismaUpdatedAtEqualsParam) workflowTagModel() {} -func (p tenantWithPrismaAnalyticsOptOutEqualsParam) analyticsOptOutField() {} +func (p workflowTagWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (tenantWithPrismaAnalyticsOptOutSetParam) settable() {} -func (tenantWithPrismaAnalyticsOptOutEqualsParam) equals() {} +func (workflowTagWithPrismaUpdatedAtSetParam) settable() {} +func (workflowTagWithPrismaUpdatedAtEqualsParam) equals() {} -type tenantWithPrismaAnalyticsOptOutEqualsUniqueParam struct { +type workflowTagWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) field() builder.Field { +func (p workflowTagWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) analyticsOptOutField() {} +func (p workflowTagWithPrismaUpdatedAtEqualsUniqueParam) workflowTagModel() {} +func (p workflowTagWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) unique() {} -func (tenantWithPrismaAnalyticsOptOutEqualsUniqueParam) equals() {} +func (workflowTagWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowTagWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type TenantWithPrismaControllerPartitionEqualsSetParam interface { +type WorkflowTagWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - controllerPartitionField() + workflowTagModel() + tenantField() } -type TenantWithPrismaControllerPartitionSetParam interface { +type WorkflowTagWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - controllerPartitionField() + workflowTagModel() + tenantField() } -type tenantWithPrismaControllerPartitionSetParam struct { +type workflowTagWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaControllerPartitionSetParam) field() builder.Field { +func (p workflowTagWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaControllerPartitionSetParam) getQuery() builder.Query { +func (p workflowTagWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaControllerPartitionSetParam) tenantModel() {} +func (p workflowTagWithPrismaTenantSetParam) workflowTagModel() {} -func (p tenantWithPrismaControllerPartitionSetParam) controllerPartitionField() {} +func (p workflowTagWithPrismaTenantSetParam) tenantField() {} -type TenantWithPrismaControllerPartitionWhereParam interface { +type WorkflowTagWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - controllerPartitionField() + workflowTagModel() + tenantField() } -type tenantWithPrismaControllerPartitionEqualsParam struct { +type workflowTagWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaControllerPartitionEqualsParam) field() builder.Field { +func (p workflowTagWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaControllerPartitionEqualsParam) getQuery() builder.Query { +func (p workflowTagWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaControllerPartitionEqualsParam) tenantModel() {} +func (p workflowTagWithPrismaTenantEqualsParam) workflowTagModel() {} -func (p tenantWithPrismaControllerPartitionEqualsParam) controllerPartitionField() {} +func (p workflowTagWithPrismaTenantEqualsParam) tenantField() {} -func (tenantWithPrismaControllerPartitionSetParam) settable() {} -func (tenantWithPrismaControllerPartitionEqualsParam) equals() {} +func (workflowTagWithPrismaTenantSetParam) settable() {} +func (workflowTagWithPrismaTenantEqualsParam) equals() {} -type tenantWithPrismaControllerPartitionEqualsUniqueParam struct { +type workflowTagWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaControllerPartitionEqualsUniqueParam) field() builder.Field { +func (p workflowTagWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaControllerPartitionEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaControllerPartitionEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaControllerPartitionEqualsUniqueParam) controllerPartitionField() {} +func (p workflowTagWithPrismaTenantEqualsUniqueParam) workflowTagModel() {} +func (p workflowTagWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (tenantWithPrismaControllerPartitionEqualsUniqueParam) unique() {} -func (tenantWithPrismaControllerPartitionEqualsUniqueParam) equals() {} +func (workflowTagWithPrismaTenantEqualsUniqueParam) unique() {} +func (workflowTagWithPrismaTenantEqualsUniqueParam) equals() {} -type TenantWithPrismaControllerPartitionIDEqualsSetParam interface { +type WorkflowTagWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - controllerPartitionIDField() + workflowTagModel() + tenantIDField() } -type TenantWithPrismaControllerPartitionIDSetParam interface { +type WorkflowTagWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - controllerPartitionIDField() + workflowTagModel() + tenantIDField() } -type tenantWithPrismaControllerPartitionIDSetParam struct { +type workflowTagWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaControllerPartitionIDSetParam) field() builder.Field { +func (p workflowTagWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaControllerPartitionIDSetParam) getQuery() builder.Query { +func (p workflowTagWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaControllerPartitionIDSetParam) tenantModel() {} +func (p workflowTagWithPrismaTenantIDSetParam) workflowTagModel() {} -func (p tenantWithPrismaControllerPartitionIDSetParam) controllerPartitionIDField() {} +func (p workflowTagWithPrismaTenantIDSetParam) tenantIDField() {} -type TenantWithPrismaControllerPartitionIDWhereParam interface { +type WorkflowTagWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - controllerPartitionIDField() + workflowTagModel() + tenantIDField() } -type tenantWithPrismaControllerPartitionIDEqualsParam struct { +type workflowTagWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaControllerPartitionIDEqualsParam) field() builder.Field { +func (p workflowTagWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaControllerPartitionIDEqualsParam) getQuery() builder.Query { +func (p workflowTagWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaControllerPartitionIDEqualsParam) tenantModel() {} +func (p workflowTagWithPrismaTenantIDEqualsParam) workflowTagModel() {} -func (p tenantWithPrismaControllerPartitionIDEqualsParam) controllerPartitionIDField() {} +func (p workflowTagWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (tenantWithPrismaControllerPartitionIDSetParam) settable() {} -func (tenantWithPrismaControllerPartitionIDEqualsParam) equals() {} +func (workflowTagWithPrismaTenantIDSetParam) settable() {} +func (workflowTagWithPrismaTenantIDEqualsParam) equals() {} -type tenantWithPrismaControllerPartitionIDEqualsUniqueParam struct { +type workflowTagWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaControllerPartitionIDEqualsUniqueParam) field() builder.Field { +func (p workflowTagWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaControllerPartitionIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaControllerPartitionIDEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaControllerPartitionIDEqualsUniqueParam) controllerPartitionIDField() {} +func (p workflowTagWithPrismaTenantIDEqualsUniqueParam) workflowTagModel() {} +func (p workflowTagWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (tenantWithPrismaControllerPartitionIDEqualsUniqueParam) unique() {} -func (tenantWithPrismaControllerPartitionIDEqualsUniqueParam) equals() {} +func (workflowTagWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (workflowTagWithPrismaTenantIDEqualsUniqueParam) equals() {} -type TenantWithPrismaWorkerPartitionEqualsSetParam interface { +type WorkflowTagWithPrismaNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - workerPartitionField() + workflowTagModel() + nameField() } -type TenantWithPrismaWorkerPartitionSetParam interface { +type WorkflowTagWithPrismaNameSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workerPartitionField() + workflowTagModel() + nameField() } -type tenantWithPrismaWorkerPartitionSetParam struct { +type workflowTagWithPrismaNameSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkerPartitionSetParam) field() builder.Field { +func (p workflowTagWithPrismaNameSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkerPartitionSetParam) getQuery() builder.Query { +func (p workflowTagWithPrismaNameSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkerPartitionSetParam) tenantModel() {} +func (p workflowTagWithPrismaNameSetParam) workflowTagModel() {} -func (p tenantWithPrismaWorkerPartitionSetParam) workerPartitionField() {} +func (p workflowTagWithPrismaNameSetParam) nameField() {} -type TenantWithPrismaWorkerPartitionWhereParam interface { +type WorkflowTagWithPrismaNameWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workerPartitionField() + workflowTagModel() + nameField() } -type tenantWithPrismaWorkerPartitionEqualsParam struct { +type workflowTagWithPrismaNameEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkerPartitionEqualsParam) field() builder.Field { +func (p workflowTagWithPrismaNameEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkerPartitionEqualsParam) getQuery() builder.Query { +func (p workflowTagWithPrismaNameEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkerPartitionEqualsParam) tenantModel() {} +func (p workflowTagWithPrismaNameEqualsParam) workflowTagModel() {} -func (p tenantWithPrismaWorkerPartitionEqualsParam) workerPartitionField() {} +func (p workflowTagWithPrismaNameEqualsParam) nameField() {} -func (tenantWithPrismaWorkerPartitionSetParam) settable() {} -func (tenantWithPrismaWorkerPartitionEqualsParam) equals() {} +func (workflowTagWithPrismaNameSetParam) settable() {} +func (workflowTagWithPrismaNameEqualsParam) equals() {} -type tenantWithPrismaWorkerPartitionEqualsUniqueParam struct { +type workflowTagWithPrismaNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkerPartitionEqualsUniqueParam) field() builder.Field { +func (p workflowTagWithPrismaNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkerPartitionEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkerPartitionEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaWorkerPartitionEqualsUniqueParam) workerPartitionField() {} +func (p workflowTagWithPrismaNameEqualsUniqueParam) workflowTagModel() {} +func (p workflowTagWithPrismaNameEqualsUniqueParam) nameField() {} -func (tenantWithPrismaWorkerPartitionEqualsUniqueParam) unique() {} -func (tenantWithPrismaWorkerPartitionEqualsUniqueParam) equals() {} +func (workflowTagWithPrismaNameEqualsUniqueParam) unique() {} +func (workflowTagWithPrismaNameEqualsUniqueParam) equals() {} -type TenantWithPrismaWorkerPartitionIDEqualsSetParam interface { +type WorkflowTagWithPrismaColorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - workerPartitionIDField() + workflowTagModel() + colorField() } -type TenantWithPrismaWorkerPartitionIDSetParam interface { +type WorkflowTagWithPrismaColorSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workerPartitionIDField() + workflowTagModel() + colorField() } -type tenantWithPrismaWorkerPartitionIDSetParam struct { +type workflowTagWithPrismaColorSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkerPartitionIDSetParam) field() builder.Field { +func (p workflowTagWithPrismaColorSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkerPartitionIDSetParam) getQuery() builder.Query { +func (p workflowTagWithPrismaColorSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkerPartitionIDSetParam) tenantModel() {} +func (p workflowTagWithPrismaColorSetParam) workflowTagModel() {} -func (p tenantWithPrismaWorkerPartitionIDSetParam) workerPartitionIDField() {} +func (p workflowTagWithPrismaColorSetParam) colorField() {} -type TenantWithPrismaWorkerPartitionIDWhereParam interface { +type WorkflowTagWithPrismaColorWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workerPartitionIDField() + workflowTagModel() + colorField() } -type tenantWithPrismaWorkerPartitionIDEqualsParam struct { +type workflowTagWithPrismaColorEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkerPartitionIDEqualsParam) field() builder.Field { +func (p workflowTagWithPrismaColorEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkerPartitionIDEqualsParam) getQuery() builder.Query { +func (p workflowTagWithPrismaColorEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkerPartitionIDEqualsParam) tenantModel() {} +func (p workflowTagWithPrismaColorEqualsParam) workflowTagModel() {} -func (p tenantWithPrismaWorkerPartitionIDEqualsParam) workerPartitionIDField() {} +func (p workflowTagWithPrismaColorEqualsParam) colorField() {} -func (tenantWithPrismaWorkerPartitionIDSetParam) settable() {} -func (tenantWithPrismaWorkerPartitionIDEqualsParam) equals() {} +func (workflowTagWithPrismaColorSetParam) settable() {} +func (workflowTagWithPrismaColorEqualsParam) equals() {} -type tenantWithPrismaWorkerPartitionIDEqualsUniqueParam struct { +type workflowTagWithPrismaColorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) field() builder.Field { +func (p workflowTagWithPrismaColorEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagWithPrismaColorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) workerPartitionIDField() {} +func (p workflowTagWithPrismaColorEqualsUniqueParam) workflowTagModel() {} +func (p workflowTagWithPrismaColorEqualsUniqueParam) colorField() {} -func (tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) unique() {} -func (tenantWithPrismaWorkerPartitionIDEqualsUniqueParam) equals() {} +func (workflowTagWithPrismaColorEqualsUniqueParam) unique() {} +func (workflowTagWithPrismaColorEqualsUniqueParam) equals() {} -type TenantWithPrismaEventsEqualsSetParam interface { +type WorkflowTagWithPrismaWorkflowsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - eventsField() + workflowTagModel() + workflowsField() } -type TenantWithPrismaEventsSetParam interface { +type WorkflowTagWithPrismaWorkflowsSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - eventsField() + workflowTagModel() + workflowsField() } -type tenantWithPrismaEventsSetParam struct { +type workflowTagWithPrismaWorkflowsSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaEventsSetParam) field() builder.Field { +func (p workflowTagWithPrismaWorkflowsSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaEventsSetParam) getQuery() builder.Query { +func (p workflowTagWithPrismaWorkflowsSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaEventsSetParam) tenantModel() {} +func (p workflowTagWithPrismaWorkflowsSetParam) workflowTagModel() {} -func (p tenantWithPrismaEventsSetParam) eventsField() {} +func (p workflowTagWithPrismaWorkflowsSetParam) workflowsField() {} -type TenantWithPrismaEventsWhereParam interface { +type WorkflowTagWithPrismaWorkflowsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - eventsField() + workflowTagModel() + workflowsField() } -type tenantWithPrismaEventsEqualsParam struct { +type workflowTagWithPrismaWorkflowsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaEventsEqualsParam) field() builder.Field { +func (p workflowTagWithPrismaWorkflowsEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaEventsEqualsParam) getQuery() builder.Query { +func (p workflowTagWithPrismaWorkflowsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaEventsEqualsParam) tenantModel() {} +func (p workflowTagWithPrismaWorkflowsEqualsParam) workflowTagModel() {} -func (p tenantWithPrismaEventsEqualsParam) eventsField() {} +func (p workflowTagWithPrismaWorkflowsEqualsParam) workflowsField() {} -func (tenantWithPrismaEventsSetParam) settable() {} -func (tenantWithPrismaEventsEqualsParam) equals() {} +func (workflowTagWithPrismaWorkflowsSetParam) settable() {} +func (workflowTagWithPrismaWorkflowsEqualsParam) equals() {} -type tenantWithPrismaEventsEqualsUniqueParam struct { +type workflowTagWithPrismaWorkflowsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaEventsEqualsUniqueParam) field() builder.Field { +func (p workflowTagWithPrismaWorkflowsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaEventsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagWithPrismaWorkflowsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaEventsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaEventsEqualsUniqueParam) eventsField() {} +func (p workflowTagWithPrismaWorkflowsEqualsUniqueParam) workflowTagModel() {} +func (p workflowTagWithPrismaWorkflowsEqualsUniqueParam) workflowsField() {} -func (tenantWithPrismaEventsEqualsUniqueParam) unique() {} -func (tenantWithPrismaEventsEqualsUniqueParam) equals() {} +func (workflowTagWithPrismaWorkflowsEqualsUniqueParam) unique() {} +func (workflowTagWithPrismaWorkflowsEqualsUniqueParam) equals() {} -type TenantWithPrismaWorkflowsEqualsSetParam interface { - field() builder.Field +type workflowActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workflowOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "name"}, + {Name: "description"}, +} + +type WorkflowRelationWith interface { getQuery() builder.Query - equals() - tenantModel() - workflowsField() + with() + workflowRelation() } -type TenantWithPrismaWorkflowsSetParam interface { +type WorkflowWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workflowsField() + workflowModel() } -type tenantWithPrismaWorkflowsSetParam struct { +type workflowDefaultParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowsSetParam) field() builder.Field { +func (p workflowDefaultParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowsSetParam) getQuery() builder.Query { +func (p workflowDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowsSetParam) tenantModel() {} - -func (p tenantWithPrismaWorkflowsSetParam) workflowsField() {} +func (p workflowDefaultParam) workflowModel() {} -type TenantWithPrismaWorkflowsWhereParam interface { +type WorkflowOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workflowsField() + workflowModel() } -type tenantWithPrismaWorkflowsEqualsParam struct { +type workflowOrderByParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowsEqualsParam) field() builder.Field { +func (p workflowOrderByParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowsEqualsParam) getQuery() builder.Query { +func (p workflowOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowsEqualsParam) tenantModel() {} - -func (p tenantWithPrismaWorkflowsEqualsParam) workflowsField() {} +func (p workflowOrderByParam) workflowModel() {} -func (tenantWithPrismaWorkflowsSetParam) settable() {} -func (tenantWithPrismaWorkflowsEqualsParam) equals() {} +type WorkflowCursorParam interface { + field() builder.Field + getQuery() builder.Query + workflowModel() + isCursor() +} -type tenantWithPrismaWorkflowsEqualsUniqueParam struct { +type workflowCursorParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowsEqualsUniqueParam) field() builder.Field { +func (p workflowCursorParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowCursorParam) isCursor() {} + +func (p workflowCursorParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaWorkflowsEqualsUniqueParam) workflowsField() {} - -func (tenantWithPrismaWorkflowsEqualsUniqueParam) unique() {} -func (tenantWithPrismaWorkflowsEqualsUniqueParam) equals() {} - -type TenantWithPrismaJobsEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantModel() - jobsField() -} +func (p workflowCursorParam) workflowModel() {} -type TenantWithPrismaJobsSetParam interface { +type WorkflowParamUnique interface { field() builder.Field getQuery() builder.Query - tenantModel() - jobsField() + unique() + workflowModel() } -type tenantWithPrismaJobsSetParam struct { +type workflowParamUnique struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobsSetParam) field() builder.Field { +func (p workflowParamUnique) workflowModel() {} + +func (workflowParamUnique) unique() {} + +func (p workflowParamUnique) field() builder.Field { return p.data } -func (p tenantWithPrismaJobsSetParam) getQuery() builder.Query { +func (p workflowParamUnique) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobsSetParam) tenantModel() {} - -func (p tenantWithPrismaJobsSetParam) jobsField() {} - -type TenantWithPrismaJobsWhereParam interface { +type WorkflowEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - jobsField() + equals() + workflowModel() } -type tenantWithPrismaJobsEqualsParam struct { +type workflowEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobsEqualsParam) field() builder.Field { +func (p workflowEqualsParam) workflowModel() {} + +func (workflowEqualsParam) equals() {} + +func (p workflowEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaJobsEqualsParam) getQuery() builder.Query { +func (p workflowEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobsEqualsParam) tenantModel() {} - -func (p tenantWithPrismaJobsEqualsParam) jobsField() {} - -func (tenantWithPrismaJobsSetParam) settable() {} -func (tenantWithPrismaJobsEqualsParam) equals() {} +type WorkflowEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workflowModel() +} -type tenantWithPrismaJobsEqualsUniqueParam struct { +type workflowEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobsEqualsUniqueParam) field() builder.Field { +func (p workflowEqualsUniqueParam) workflowModel() {} + +func (workflowEqualsUniqueParam) unique() {} +func (workflowEqualsUniqueParam) equals() {} + +func (p workflowEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaJobsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaJobsEqualsUniqueParam) jobsField() {} +type WorkflowSetParam interface { + field() builder.Field + settable() + workflowModel() +} -func (tenantWithPrismaJobsEqualsUniqueParam) unique() {} -func (tenantWithPrismaJobsEqualsUniqueParam) equals() {} +type workflowSetParam struct { + data builder.Field +} -type TenantWithPrismaStepsEqualsSetParam interface { +func (workflowSetParam) settable() {} + +func (p workflowSetParam) field() builder.Field { + return p.data +} + +func (p workflowSetParam) workflowModel() {} + +type WorkflowWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - stepsField() + workflowModel() + idField() } -type TenantWithPrismaStepsSetParam interface { +type WorkflowWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - stepsField() + workflowModel() + idField() } -type tenantWithPrismaStepsSetParam struct { +type workflowWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepsSetParam) field() builder.Field { +func (p workflowWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepsSetParam) getQuery() builder.Query { +func (p workflowWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepsSetParam) tenantModel() {} +func (p workflowWithPrismaIDSetParam) workflowModel() {} -func (p tenantWithPrismaStepsSetParam) stepsField() {} +func (p workflowWithPrismaIDSetParam) idField() {} -type TenantWithPrismaStepsWhereParam interface { +type WorkflowWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - stepsField() + workflowModel() + idField() } -type tenantWithPrismaStepsEqualsParam struct { +type workflowWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepsEqualsParam) field() builder.Field { +func (p workflowWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepsEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepsEqualsParam) tenantModel() {} +func (p workflowWithPrismaIDEqualsParam) workflowModel() {} -func (p tenantWithPrismaStepsEqualsParam) stepsField() {} +func (p workflowWithPrismaIDEqualsParam) idField() {} -func (tenantWithPrismaStepsSetParam) settable() {} -func (tenantWithPrismaStepsEqualsParam) equals() {} +func (workflowWithPrismaIDSetParam) settable() {} +func (workflowWithPrismaIDEqualsParam) equals() {} -type tenantWithPrismaStepsEqualsUniqueParam struct { +type workflowWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepsEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaStepsEqualsUniqueParam) stepsField() {} +func (p workflowWithPrismaIDEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaIDEqualsUniqueParam) idField() {} -func (tenantWithPrismaStepsEqualsUniqueParam) unique() {} -func (tenantWithPrismaStepsEqualsUniqueParam) equals() {} +func (workflowWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowWithPrismaIDEqualsUniqueParam) equals() {} -type TenantWithPrismaTriggersEqualsSetParam interface { +type WorkflowWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - triggersField() + workflowModel() + createdAtField() } -type TenantWithPrismaTriggersSetParam interface { +type WorkflowWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - triggersField() + workflowModel() + createdAtField() } -type tenantWithPrismaTriggersSetParam struct { +type workflowWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaTriggersSetParam) field() builder.Field { +func (p workflowWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaTriggersSetParam) getQuery() builder.Query { +func (p workflowWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaTriggersSetParam) tenantModel() {} +func (p workflowWithPrismaCreatedAtSetParam) workflowModel() {} -func (p tenantWithPrismaTriggersSetParam) triggersField() {} +func (p workflowWithPrismaCreatedAtSetParam) createdAtField() {} -type TenantWithPrismaTriggersWhereParam interface { +type WorkflowWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - triggersField() + workflowModel() + createdAtField() } -type tenantWithPrismaTriggersEqualsParam struct { +type workflowWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaTriggersEqualsParam) field() builder.Field { +func (p workflowWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaTriggersEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaTriggersEqualsParam) tenantModel() {} +func (p workflowWithPrismaCreatedAtEqualsParam) workflowModel() {} -func (p tenantWithPrismaTriggersEqualsParam) triggersField() {} +func (p workflowWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (tenantWithPrismaTriggersSetParam) settable() {} -func (tenantWithPrismaTriggersEqualsParam) equals() {} +func (workflowWithPrismaCreatedAtSetParam) settable() {} +func (workflowWithPrismaCreatedAtEqualsParam) equals() {} -type tenantWithPrismaTriggersEqualsUniqueParam struct { +type workflowWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaTriggersEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaTriggersEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaTriggersEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaTriggersEqualsUniqueParam) triggersField() {} +func (p workflowWithPrismaCreatedAtEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (tenantWithPrismaTriggersEqualsUniqueParam) unique() {} -func (tenantWithPrismaTriggersEqualsUniqueParam) equals() {} +func (workflowWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type TenantWithPrismaWorkflowRunsEqualsSetParam interface { +type WorkflowWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - workflowRunsField() + workflowModel() + updatedAtField() } -type TenantWithPrismaWorkflowRunsSetParam interface { +type WorkflowWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workflowRunsField() + workflowModel() + updatedAtField() } -type tenantWithPrismaWorkflowRunsSetParam struct { +type workflowWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowRunsSetParam) field() builder.Field { +func (p workflowWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowRunsSetParam) getQuery() builder.Query { +func (p workflowWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowRunsSetParam) tenantModel() {} +func (p workflowWithPrismaUpdatedAtSetParam) workflowModel() {} -func (p tenantWithPrismaWorkflowRunsSetParam) workflowRunsField() {} +func (p workflowWithPrismaUpdatedAtSetParam) updatedAtField() {} -type TenantWithPrismaWorkflowRunsWhereParam interface { +type WorkflowWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workflowRunsField() + workflowModel() + updatedAtField() } -type tenantWithPrismaWorkflowRunsEqualsParam struct { +type workflowWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowRunsEqualsParam) field() builder.Field { +func (p workflowWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowRunsEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowRunsEqualsParam) tenantModel() {} +func (p workflowWithPrismaUpdatedAtEqualsParam) workflowModel() {} -func (p tenantWithPrismaWorkflowRunsEqualsParam) workflowRunsField() {} +func (p workflowWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (tenantWithPrismaWorkflowRunsSetParam) settable() {} -func (tenantWithPrismaWorkflowRunsEqualsParam) equals() {} +func (workflowWithPrismaUpdatedAtSetParam) settable() {} +func (workflowWithPrismaUpdatedAtEqualsParam) equals() {} -type tenantWithPrismaWorkflowRunsEqualsUniqueParam struct { +type workflowWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowRunsEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowRunsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowRunsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaWorkflowRunsEqualsUniqueParam) workflowRunsField() {} +func (p workflowWithPrismaUpdatedAtEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (tenantWithPrismaWorkflowRunsEqualsUniqueParam) unique() {} -func (tenantWithPrismaWorkflowRunsEqualsUniqueParam) equals() {} +func (workflowWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type TenantWithPrismaWorkflowRunTriggersEqualsSetParam interface { +type WorkflowWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - workflowRunTriggersField() + workflowModel() + deletedAtField() } -type TenantWithPrismaWorkflowRunTriggersSetParam interface { +type WorkflowWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workflowRunTriggersField() + workflowModel() + deletedAtField() } -type tenantWithPrismaWorkflowRunTriggersSetParam struct { +type workflowWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowRunTriggersSetParam) field() builder.Field { +func (p workflowWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowRunTriggersSetParam) getQuery() builder.Query { +func (p workflowWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowRunTriggersSetParam) tenantModel() {} +func (p workflowWithPrismaDeletedAtSetParam) workflowModel() {} -func (p tenantWithPrismaWorkflowRunTriggersSetParam) workflowRunTriggersField() {} +func (p workflowWithPrismaDeletedAtSetParam) deletedAtField() {} -type TenantWithPrismaWorkflowRunTriggersWhereParam interface { +type WorkflowWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workflowRunTriggersField() + workflowModel() + deletedAtField() } -type tenantWithPrismaWorkflowRunTriggersEqualsParam struct { +type workflowWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowRunTriggersEqualsParam) field() builder.Field { +func (p workflowWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowRunTriggersEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowRunTriggersEqualsParam) tenantModel() {} +func (p workflowWithPrismaDeletedAtEqualsParam) workflowModel() {} -func (p tenantWithPrismaWorkflowRunTriggersEqualsParam) workflowRunTriggersField() {} +func (p workflowWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (tenantWithPrismaWorkflowRunTriggersSetParam) settable() {} -func (tenantWithPrismaWorkflowRunTriggersEqualsParam) equals() {} +func (workflowWithPrismaDeletedAtSetParam) settable() {} +func (workflowWithPrismaDeletedAtEqualsParam) equals() {} -type tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam struct { +type workflowWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) workflowRunTriggersField() {} +func (p workflowWithPrismaDeletedAtEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) unique() {} -func (tenantWithPrismaWorkflowRunTriggersEqualsUniqueParam) equals() {} +func (workflowWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (workflowWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type TenantWithPrismaJobRunsEqualsSetParam interface { +type WorkflowWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - jobRunsField() + workflowModel() + tenantField() } -type TenantWithPrismaJobRunsSetParam interface { +type WorkflowWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - jobRunsField() + workflowModel() + tenantField() } -type tenantWithPrismaJobRunsSetParam struct { +type workflowWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobRunsSetParam) field() builder.Field { +func (p workflowWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaJobRunsSetParam) getQuery() builder.Query { +func (p workflowWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobRunsSetParam) tenantModel() {} +func (p workflowWithPrismaTenantSetParam) workflowModel() {} -func (p tenantWithPrismaJobRunsSetParam) jobRunsField() {} +func (p workflowWithPrismaTenantSetParam) tenantField() {} -type TenantWithPrismaJobRunsWhereParam interface { +type WorkflowWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - jobRunsField() + workflowModel() + tenantField() } -type tenantWithPrismaJobRunsEqualsParam struct { +type workflowWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobRunsEqualsParam) field() builder.Field { +func (p workflowWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaJobRunsEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobRunsEqualsParam) tenantModel() {} +func (p workflowWithPrismaTenantEqualsParam) workflowModel() {} -func (p tenantWithPrismaJobRunsEqualsParam) jobRunsField() {} +func (p workflowWithPrismaTenantEqualsParam) tenantField() {} -func (tenantWithPrismaJobRunsSetParam) settable() {} -func (tenantWithPrismaJobRunsEqualsParam) equals() {} +func (workflowWithPrismaTenantSetParam) settable() {} +func (workflowWithPrismaTenantEqualsParam) equals() {} -type tenantWithPrismaJobRunsEqualsUniqueParam struct { +type workflowWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobRunsEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaJobRunsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobRunsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaJobRunsEqualsUniqueParam) jobRunsField() {} +func (p workflowWithPrismaTenantEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (tenantWithPrismaJobRunsEqualsUniqueParam) unique() {} -func (tenantWithPrismaJobRunsEqualsUniqueParam) equals() {} +func (workflowWithPrismaTenantEqualsUniqueParam) unique() {} +func (workflowWithPrismaTenantEqualsUniqueParam) equals() {} -type TenantWithPrismaJobRunLookupDatasEqualsSetParam interface { +type WorkflowWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - jobRunLookupDatasField() + workflowModel() + tenantIDField() } -type TenantWithPrismaJobRunLookupDatasSetParam interface { +type WorkflowWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - jobRunLookupDatasField() + workflowModel() + tenantIDField() } -type tenantWithPrismaJobRunLookupDatasSetParam struct { +type workflowWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobRunLookupDatasSetParam) field() builder.Field { +func (p workflowWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaJobRunLookupDatasSetParam) getQuery() builder.Query { +func (p workflowWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobRunLookupDatasSetParam) tenantModel() {} +func (p workflowWithPrismaTenantIDSetParam) workflowModel() {} -func (p tenantWithPrismaJobRunLookupDatasSetParam) jobRunLookupDatasField() {} +func (p workflowWithPrismaTenantIDSetParam) tenantIDField() {} -type TenantWithPrismaJobRunLookupDatasWhereParam interface { +type WorkflowWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - jobRunLookupDatasField() + workflowModel() + tenantIDField() } -type tenantWithPrismaJobRunLookupDatasEqualsParam struct { +type workflowWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobRunLookupDatasEqualsParam) field() builder.Field { +func (p workflowWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaJobRunLookupDatasEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobRunLookupDatasEqualsParam) tenantModel() {} +func (p workflowWithPrismaTenantIDEqualsParam) workflowModel() {} -func (p tenantWithPrismaJobRunLookupDatasEqualsParam) jobRunLookupDatasField() {} +func (p workflowWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (tenantWithPrismaJobRunLookupDatasSetParam) settable() {} -func (tenantWithPrismaJobRunLookupDatasEqualsParam) equals() {} +func (workflowWithPrismaTenantIDSetParam) settable() {} +func (workflowWithPrismaTenantIDEqualsParam) equals() {} -type tenantWithPrismaJobRunLookupDatasEqualsUniqueParam struct { +type workflowWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) jobRunLookupDatasField() {} +func (p workflowWithPrismaTenantIDEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) unique() {} -func (tenantWithPrismaJobRunLookupDatasEqualsUniqueParam) equals() {} +func (workflowWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (workflowWithPrismaTenantIDEqualsUniqueParam) equals() {} -type TenantWithPrismaStepRunsEqualsSetParam interface { +type WorkflowWithPrismaNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - stepRunsField() + workflowModel() + nameField() } -type TenantWithPrismaStepRunsSetParam interface { +type WorkflowWithPrismaNameSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - stepRunsField() + workflowModel() + nameField() } -type tenantWithPrismaStepRunsSetParam struct { +type workflowWithPrismaNameSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepRunsSetParam) field() builder.Field { +func (p workflowWithPrismaNameSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepRunsSetParam) getQuery() builder.Query { +func (p workflowWithPrismaNameSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepRunsSetParam) tenantModel() {} +func (p workflowWithPrismaNameSetParam) workflowModel() {} -func (p tenantWithPrismaStepRunsSetParam) stepRunsField() {} +func (p workflowWithPrismaNameSetParam) nameField() {} -type TenantWithPrismaStepRunsWhereParam interface { +type WorkflowWithPrismaNameWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - stepRunsField() + workflowModel() + nameField() } -type tenantWithPrismaStepRunsEqualsParam struct { +type workflowWithPrismaNameEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepRunsEqualsParam) field() builder.Field { +func (p workflowWithPrismaNameEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepRunsEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaNameEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepRunsEqualsParam) tenantModel() {} +func (p workflowWithPrismaNameEqualsParam) workflowModel() {} -func (p tenantWithPrismaStepRunsEqualsParam) stepRunsField() {} +func (p workflowWithPrismaNameEqualsParam) nameField() {} -func (tenantWithPrismaStepRunsSetParam) settable() {} -func (tenantWithPrismaStepRunsEqualsParam) equals() {} +func (workflowWithPrismaNameSetParam) settable() {} +func (workflowWithPrismaNameEqualsParam) equals() {} -type tenantWithPrismaStepRunsEqualsUniqueParam struct { +type workflowWithPrismaNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepRunsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} +func (p workflowWithPrismaNameEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaNameEqualsUniqueParam) nameField() {} -func (tenantWithPrismaStepRunsEqualsUniqueParam) unique() {} -func (tenantWithPrismaStepRunsEqualsUniqueParam) equals() {} +func (workflowWithPrismaNameEqualsUniqueParam) unique() {} +func (workflowWithPrismaNameEqualsUniqueParam) equals() {} -type TenantWithPrismaWorkersEqualsSetParam interface { +type WorkflowWithPrismaDescriptionEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - workersField() + workflowModel() + descriptionField() } -type TenantWithPrismaWorkersSetParam interface { +type WorkflowWithPrismaDescriptionSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workersField() + workflowModel() + descriptionField() } -type tenantWithPrismaWorkersSetParam struct { +type workflowWithPrismaDescriptionSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkersSetParam) field() builder.Field { +func (p workflowWithPrismaDescriptionSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkersSetParam) getQuery() builder.Query { +func (p workflowWithPrismaDescriptionSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkersSetParam) tenantModel() {} +func (p workflowWithPrismaDescriptionSetParam) workflowModel() {} -func (p tenantWithPrismaWorkersSetParam) workersField() {} +func (p workflowWithPrismaDescriptionSetParam) descriptionField() {} -type TenantWithPrismaWorkersWhereParam interface { +type WorkflowWithPrismaDescriptionWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workersField() + workflowModel() + descriptionField() } -type tenantWithPrismaWorkersEqualsParam struct { +type workflowWithPrismaDescriptionEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkersEqualsParam) field() builder.Field { +func (p workflowWithPrismaDescriptionEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkersEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaDescriptionEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkersEqualsParam) tenantModel() {} +func (p workflowWithPrismaDescriptionEqualsParam) workflowModel() {} -func (p tenantWithPrismaWorkersEqualsParam) workersField() {} +func (p workflowWithPrismaDescriptionEqualsParam) descriptionField() {} -func (tenantWithPrismaWorkersSetParam) settable() {} -func (tenantWithPrismaWorkersEqualsParam) equals() {} +func (workflowWithPrismaDescriptionSetParam) settable() {} +func (workflowWithPrismaDescriptionEqualsParam) equals() {} -type tenantWithPrismaWorkersEqualsUniqueParam struct { +type workflowWithPrismaDescriptionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkersEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaDescriptionEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkersEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaDescriptionEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkersEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaWorkersEqualsUniqueParam) workersField() {} +func (p workflowWithPrismaDescriptionEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaDescriptionEqualsUniqueParam) descriptionField() {} -func (tenantWithPrismaWorkersEqualsUniqueParam) unique() {} -func (tenantWithPrismaWorkersEqualsUniqueParam) equals() {} +func (workflowWithPrismaDescriptionEqualsUniqueParam) unique() {} +func (workflowWithPrismaDescriptionEqualsUniqueParam) equals() {} -type TenantWithPrismaMembersEqualsSetParam interface { +type WorkflowWithPrismaVersionsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - membersField() + workflowModel() + versionsField() } -type TenantWithPrismaMembersSetParam interface { +type WorkflowWithPrismaVersionsSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - membersField() + workflowModel() + versionsField() } -type tenantWithPrismaMembersSetParam struct { +type workflowWithPrismaVersionsSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaMembersSetParam) field() builder.Field { +func (p workflowWithPrismaVersionsSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaMembersSetParam) getQuery() builder.Query { +func (p workflowWithPrismaVersionsSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaMembersSetParam) tenantModel() {} +func (p workflowWithPrismaVersionsSetParam) workflowModel() {} -func (p tenantWithPrismaMembersSetParam) membersField() {} +func (p workflowWithPrismaVersionsSetParam) versionsField() {} -type TenantWithPrismaMembersWhereParam interface { +type WorkflowWithPrismaVersionsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - membersField() + workflowModel() + versionsField() } -type tenantWithPrismaMembersEqualsParam struct { +type workflowWithPrismaVersionsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaMembersEqualsParam) field() builder.Field { +func (p workflowWithPrismaVersionsEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaMembersEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaVersionsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaMembersEqualsParam) tenantModel() {} +func (p workflowWithPrismaVersionsEqualsParam) workflowModel() {} -func (p tenantWithPrismaMembersEqualsParam) membersField() {} +func (p workflowWithPrismaVersionsEqualsParam) versionsField() {} -func (tenantWithPrismaMembersSetParam) settable() {} -func (tenantWithPrismaMembersEqualsParam) equals() {} +func (workflowWithPrismaVersionsSetParam) settable() {} +func (workflowWithPrismaVersionsEqualsParam) equals() {} -type tenantWithPrismaMembersEqualsUniqueParam struct { +type workflowWithPrismaVersionsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaMembersEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaVersionsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaMembersEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaVersionsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaMembersEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaMembersEqualsUniqueParam) membersField() {} +func (p workflowWithPrismaVersionsEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaVersionsEqualsUniqueParam) versionsField() {} -func (tenantWithPrismaMembersEqualsUniqueParam) unique() {} -func (tenantWithPrismaMembersEqualsUniqueParam) equals() {} +func (workflowWithPrismaVersionsEqualsUniqueParam) unique() {} +func (workflowWithPrismaVersionsEqualsUniqueParam) equals() {} -type TenantWithPrismaWorkflowTagsEqualsSetParam interface { +type WorkflowWithPrismaTagsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - workflowTagsField() + workflowModel() + tagsField() } -type TenantWithPrismaWorkflowTagsSetParam interface { +type WorkflowWithPrismaTagsSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workflowTagsField() + workflowModel() + tagsField() } -type tenantWithPrismaWorkflowTagsSetParam struct { +type workflowWithPrismaTagsSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowTagsSetParam) field() builder.Field { +func (p workflowWithPrismaTagsSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowTagsSetParam) getQuery() builder.Query { +func (p workflowWithPrismaTagsSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowTagsSetParam) tenantModel() {} +func (p workflowWithPrismaTagsSetParam) workflowModel() {} -func (p tenantWithPrismaWorkflowTagsSetParam) workflowTagsField() {} +func (p workflowWithPrismaTagsSetParam) tagsField() {} -type TenantWithPrismaWorkflowTagsWhereParam interface { +type WorkflowWithPrismaTagsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - workflowTagsField() + workflowModel() + tagsField() } -type tenantWithPrismaWorkflowTagsEqualsParam struct { +type workflowWithPrismaTagsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowTagsEqualsParam) field() builder.Field { +func (p workflowWithPrismaTagsEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowTagsEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaTagsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowTagsEqualsParam) tenantModel() {} +func (p workflowWithPrismaTagsEqualsParam) workflowModel() {} -func (p tenantWithPrismaWorkflowTagsEqualsParam) workflowTagsField() {} +func (p workflowWithPrismaTagsEqualsParam) tagsField() {} -func (tenantWithPrismaWorkflowTagsSetParam) settable() {} -func (tenantWithPrismaWorkflowTagsEqualsParam) equals() {} +func (workflowWithPrismaTagsSetParam) settable() {} +func (workflowWithPrismaTagsEqualsParam) equals() {} -type tenantWithPrismaWorkflowTagsEqualsUniqueParam struct { +type workflowWithPrismaTagsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWorkflowTagsEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaTagsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWorkflowTagsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaTagsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWorkflowTagsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaWorkflowTagsEqualsUniqueParam) workflowTagsField() {} +func (p workflowWithPrismaTagsEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaTagsEqualsUniqueParam) tagsField() {} -func (tenantWithPrismaWorkflowTagsEqualsUniqueParam) unique() {} -func (tenantWithPrismaWorkflowTagsEqualsUniqueParam) equals() {} +func (workflowWithPrismaTagsEqualsUniqueParam) unique() {} +func (workflowWithPrismaTagsEqualsUniqueParam) equals() {} -type TenantWithPrismaActionsEqualsSetParam interface { +type WorkflowWithPrismaWebhookWorkerWorkflowsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - actionsField() + workflowModel() + webhookWorkerWorkflowsField() } -type TenantWithPrismaActionsSetParam interface { +type WorkflowWithPrismaWebhookWorkerWorkflowsSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - actionsField() + workflowModel() + webhookWorkerWorkflowsField() } -type tenantWithPrismaActionsSetParam struct { +type workflowWithPrismaWebhookWorkerWorkflowsSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaActionsSetParam) field() builder.Field { +func (p workflowWithPrismaWebhookWorkerWorkflowsSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaActionsSetParam) getQuery() builder.Query { +func (p workflowWithPrismaWebhookWorkerWorkflowsSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaActionsSetParam) tenantModel() {} +func (p workflowWithPrismaWebhookWorkerWorkflowsSetParam) workflowModel() {} -func (p tenantWithPrismaActionsSetParam) actionsField() {} +func (p workflowWithPrismaWebhookWorkerWorkflowsSetParam) webhookWorkerWorkflowsField() {} -type TenantWithPrismaActionsWhereParam interface { +type WorkflowWithPrismaWebhookWorkerWorkflowsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - actionsField() + workflowModel() + webhookWorkerWorkflowsField() } -type tenantWithPrismaActionsEqualsParam struct { +type workflowWithPrismaWebhookWorkerWorkflowsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaActionsEqualsParam) field() builder.Field { +func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaActionsEqualsParam) getQuery() builder.Query { +func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaActionsEqualsParam) tenantModel() {} +func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) workflowModel() {} -func (p tenantWithPrismaActionsEqualsParam) actionsField() {} +func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) webhookWorkerWorkflowsField() {} -func (tenantWithPrismaActionsSetParam) settable() {} -func (tenantWithPrismaActionsEqualsParam) equals() {} +func (workflowWithPrismaWebhookWorkerWorkflowsSetParam) settable() {} +func (workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) equals() {} -type tenantWithPrismaActionsEqualsUniqueParam struct { +type workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaActionsEqualsUniqueParam) field() builder.Field { +func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaActionsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaActionsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaActionsEqualsUniqueParam) actionsField() {} +func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) workflowModel() {} +func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) webhookWorkerWorkflowsField() {} -func (tenantWithPrismaActionsEqualsUniqueParam) unique() {} -func (tenantWithPrismaActionsEqualsUniqueParam) equals() {} +func (workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) unique() {} +func (workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) equals() {} -type TenantWithPrismaServicesEqualsSetParam interface { - field() builder.Field +type workflowVersionActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workflowVersionOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "checksum"}, + {Name: "version"}, + {Name: "order"}, + {Name: "workflowId"}, + {Name: "sticky"}, + {Name: "onFailureJobId"}, + {Name: "kind"}, + {Name: "scheduleTimeout"}, +} + +type WorkflowVersionRelationWith interface { getQuery() builder.Query - equals() - tenantModel() - servicesField() + with() + workflowVersionRelation() } -type TenantWithPrismaServicesSetParam interface { +type WorkflowVersionWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - servicesField() + workflowVersionModel() } -type tenantWithPrismaServicesSetParam struct { +type workflowVersionDefaultParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaServicesSetParam) field() builder.Field { +func (p workflowVersionDefaultParam) field() builder.Field { return p.data } -func (p tenantWithPrismaServicesSetParam) getQuery() builder.Query { +func (p workflowVersionDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaServicesSetParam) tenantModel() {} - -func (p tenantWithPrismaServicesSetParam) servicesField() {} +func (p workflowVersionDefaultParam) workflowVersionModel() {} -type TenantWithPrismaServicesWhereParam interface { +type WorkflowVersionOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - servicesField() + workflowVersionModel() } -type tenantWithPrismaServicesEqualsParam struct { +type workflowVersionOrderByParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaServicesEqualsParam) field() builder.Field { +func (p workflowVersionOrderByParam) field() builder.Field { return p.data } -func (p tenantWithPrismaServicesEqualsParam) getQuery() builder.Query { +func (p workflowVersionOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaServicesEqualsParam) tenantModel() {} - -func (p tenantWithPrismaServicesEqualsParam) servicesField() {} +func (p workflowVersionOrderByParam) workflowVersionModel() {} -func (tenantWithPrismaServicesSetParam) settable() {} -func (tenantWithPrismaServicesEqualsParam) equals() {} +type WorkflowVersionCursorParam interface { + field() builder.Field + getQuery() builder.Query + workflowVersionModel() + isCursor() +} -type tenantWithPrismaServicesEqualsUniqueParam struct { +type workflowVersionCursorParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaServicesEqualsUniqueParam) field() builder.Field { +func (p workflowVersionCursorParam) field() builder.Field { return p.data } -func (p tenantWithPrismaServicesEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionCursorParam) isCursor() {} + +func (p workflowVersionCursorParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaServicesEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaServicesEqualsUniqueParam) servicesField() {} - -func (tenantWithPrismaServicesEqualsUniqueParam) unique() {} -func (tenantWithPrismaServicesEqualsUniqueParam) equals() {} - -type TenantWithPrismaInvitesEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantModel() - invitesField() -} +func (p workflowVersionCursorParam) workflowVersionModel() {} -type TenantWithPrismaInvitesSetParam interface { +type WorkflowVersionParamUnique interface { field() builder.Field getQuery() builder.Query - tenantModel() - invitesField() + unique() + workflowVersionModel() } -type tenantWithPrismaInvitesSetParam struct { +type workflowVersionParamUnique struct { data builder.Field query builder.Query } -func (p tenantWithPrismaInvitesSetParam) field() builder.Field { +func (p workflowVersionParamUnique) workflowVersionModel() {} + +func (workflowVersionParamUnique) unique() {} + +func (p workflowVersionParamUnique) field() builder.Field { return p.data } -func (p tenantWithPrismaInvitesSetParam) getQuery() builder.Query { +func (p workflowVersionParamUnique) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaInvitesSetParam) tenantModel() {} - -func (p tenantWithPrismaInvitesSetParam) invitesField() {} - -type TenantWithPrismaInvitesWhereParam interface { +type WorkflowVersionEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - invitesField() + equals() + workflowVersionModel() } -type tenantWithPrismaInvitesEqualsParam struct { +type workflowVersionEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaInvitesEqualsParam) field() builder.Field { +func (p workflowVersionEqualsParam) workflowVersionModel() {} + +func (workflowVersionEqualsParam) equals() {} + +func (p workflowVersionEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaInvitesEqualsParam) getQuery() builder.Query { +func (p workflowVersionEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaInvitesEqualsParam) tenantModel() {} - -func (p tenantWithPrismaInvitesEqualsParam) invitesField() {} - -func (tenantWithPrismaInvitesSetParam) settable() {} -func (tenantWithPrismaInvitesEqualsParam) equals() {} +type WorkflowVersionEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workflowVersionModel() +} -type tenantWithPrismaInvitesEqualsUniqueParam struct { +type workflowVersionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaInvitesEqualsUniqueParam) field() builder.Field { +func (p workflowVersionEqualsUniqueParam) workflowVersionModel() {} + +func (workflowVersionEqualsUniqueParam) unique() {} +func (workflowVersionEqualsUniqueParam) equals() {} + +func (p workflowVersionEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaInvitesEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaInvitesEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaInvitesEqualsUniqueParam) invitesField() {} +type WorkflowVersionSetParam interface { + field() builder.Field + settable() + workflowVersionModel() +} -func (tenantWithPrismaInvitesEqualsUniqueParam) unique() {} -func (tenantWithPrismaInvitesEqualsUniqueParam) equals() {} +type workflowVersionSetParam struct { + data builder.Field +} -type TenantWithPrismaAPITokensEqualsSetParam interface { +func (workflowVersionSetParam) settable() {} + +func (p workflowVersionSetParam) field() builder.Field { + return p.data +} + +func (p workflowVersionSetParam) workflowVersionModel() {} + +type WorkflowVersionWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - apiTokensField() + workflowVersionModel() + idField() } -type TenantWithPrismaAPITokensSetParam interface { +type WorkflowVersionWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - apiTokensField() + workflowVersionModel() + idField() } -type tenantWithPrismaAPITokensSetParam struct { +type workflowVersionWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAPITokensSetParam) field() builder.Field { +func (p workflowVersionWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAPITokensSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAPITokensSetParam) tenantModel() {} +func (p workflowVersionWithPrismaIDSetParam) workflowVersionModel() {} -func (p tenantWithPrismaAPITokensSetParam) apiTokensField() {} +func (p workflowVersionWithPrismaIDSetParam) idField() {} -type TenantWithPrismaAPITokensWhereParam interface { +type WorkflowVersionWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - apiTokensField() + workflowVersionModel() + idField() } -type tenantWithPrismaAPITokensEqualsParam struct { +type workflowVersionWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAPITokensEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAPITokensEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAPITokensEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaIDEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaAPITokensEqualsParam) apiTokensField() {} +func (p workflowVersionWithPrismaIDEqualsParam) idField() {} -func (tenantWithPrismaAPITokensSetParam) settable() {} -func (tenantWithPrismaAPITokensEqualsParam) equals() {} +func (workflowVersionWithPrismaIDSetParam) settable() {} +func (workflowVersionWithPrismaIDEqualsParam) equals() {} -type tenantWithPrismaAPITokensEqualsUniqueParam struct { +type workflowVersionWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAPITokensEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAPITokensEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAPITokensEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaAPITokensEqualsUniqueParam) apiTokensField() {} +func (p workflowVersionWithPrismaIDEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaIDEqualsUniqueParam) idField() {} -func (tenantWithPrismaAPITokensEqualsUniqueParam) unique() {} -func (tenantWithPrismaAPITokensEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaIDEqualsUniqueParam) equals() {} -type TenantWithPrismaGroupKeyRunsEqualsSetParam interface { +type WorkflowVersionWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - groupKeyRunsField() + workflowVersionModel() + createdAtField() } -type TenantWithPrismaGroupKeyRunsSetParam interface { +type WorkflowVersionWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - groupKeyRunsField() + workflowVersionModel() + createdAtField() } -type tenantWithPrismaGroupKeyRunsSetParam struct { +type workflowVersionWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaGroupKeyRunsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaGroupKeyRunsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaGroupKeyRunsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaCreatedAtSetParam) workflowVersionModel() {} -func (p tenantWithPrismaGroupKeyRunsSetParam) groupKeyRunsField() {} +func (p workflowVersionWithPrismaCreatedAtSetParam) createdAtField() {} -type TenantWithPrismaGroupKeyRunsWhereParam interface { +type WorkflowVersionWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - groupKeyRunsField() + workflowVersionModel() + createdAtField() } -type tenantWithPrismaGroupKeyRunsEqualsParam struct { +type workflowVersionWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaGroupKeyRunsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaGroupKeyRunsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaGroupKeyRunsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaCreatedAtEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaGroupKeyRunsEqualsParam) groupKeyRunsField() {} +func (p workflowVersionWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (tenantWithPrismaGroupKeyRunsSetParam) settable() {} -func (tenantWithPrismaGroupKeyRunsEqualsParam) equals() {} +func (workflowVersionWithPrismaCreatedAtSetParam) settable() {} +func (workflowVersionWithPrismaCreatedAtEqualsParam) equals() {} -type tenantWithPrismaGroupKeyRunsEqualsUniqueParam struct { +type workflowVersionWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaGroupKeyRunsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaGroupKeyRunsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaGroupKeyRunsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaGroupKeyRunsEqualsUniqueParam) groupKeyRunsField() {} +func (p workflowVersionWithPrismaCreatedAtEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (tenantWithPrismaGroupKeyRunsEqualsUniqueParam) unique() {} -func (tenantWithPrismaGroupKeyRunsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type TenantWithPrismaVcsProvidersEqualsSetParam interface { +type WorkflowVersionWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - vcsProvidersField() + workflowVersionModel() + updatedAtField() } -type TenantWithPrismaVcsProvidersSetParam interface { +type WorkflowVersionWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - vcsProvidersField() + workflowVersionModel() + updatedAtField() } -type tenantWithPrismaVcsProvidersSetParam struct { +type workflowVersionWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaVcsProvidersSetParam) field() builder.Field { +func (p workflowVersionWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaVcsProvidersSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaVcsProvidersSetParam) tenantModel() {} +func (p workflowVersionWithPrismaUpdatedAtSetParam) workflowVersionModel() {} -func (p tenantWithPrismaVcsProvidersSetParam) vcsProvidersField() {} +func (p workflowVersionWithPrismaUpdatedAtSetParam) updatedAtField() {} -type TenantWithPrismaVcsProvidersWhereParam interface { +type WorkflowVersionWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - vcsProvidersField() + workflowVersionModel() + updatedAtField() } -type tenantWithPrismaVcsProvidersEqualsParam struct { +type workflowVersionWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaVcsProvidersEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaVcsProvidersEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaVcsProvidersEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaUpdatedAtEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaVcsProvidersEqualsParam) vcsProvidersField() {} +func (p workflowVersionWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (tenantWithPrismaVcsProvidersSetParam) settable() {} -func (tenantWithPrismaVcsProvidersEqualsParam) equals() {} +func (workflowVersionWithPrismaUpdatedAtSetParam) settable() {} +func (workflowVersionWithPrismaUpdatedAtEqualsParam) equals() {} -type tenantWithPrismaVcsProvidersEqualsUniqueParam struct { +type workflowVersionWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaVcsProvidersEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaVcsProvidersEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaVcsProvidersEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaVcsProvidersEqualsUniqueParam) vcsProvidersField() {} +func (p workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (tenantWithPrismaVcsProvidersEqualsUniqueParam) unique() {} -func (tenantWithPrismaVcsProvidersEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type TenantWithPrismaStreamEventsEqualsSetParam interface { +type WorkflowVersionWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - streamEventsField() + workflowVersionModel() + deletedAtField() } -type TenantWithPrismaStreamEventsSetParam interface { +type WorkflowVersionWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - streamEventsField() + workflowVersionModel() + deletedAtField() } -type tenantWithPrismaStreamEventsSetParam struct { +type workflowVersionWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStreamEventsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStreamEventsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStreamEventsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaDeletedAtSetParam) workflowVersionModel() {} -func (p tenantWithPrismaStreamEventsSetParam) streamEventsField() {} +func (p workflowVersionWithPrismaDeletedAtSetParam) deletedAtField() {} -type TenantWithPrismaStreamEventsWhereParam interface { +type WorkflowVersionWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - streamEventsField() + workflowVersionModel() + deletedAtField() } -type tenantWithPrismaStreamEventsEqualsParam struct { +type workflowVersionWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStreamEventsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStreamEventsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStreamEventsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaDeletedAtEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaStreamEventsEqualsParam) streamEventsField() {} +func (p workflowVersionWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (tenantWithPrismaStreamEventsSetParam) settable() {} -func (tenantWithPrismaStreamEventsEqualsParam) equals() {} +func (workflowVersionWithPrismaDeletedAtSetParam) settable() {} +func (workflowVersionWithPrismaDeletedAtEqualsParam) equals() {} -type tenantWithPrismaStreamEventsEqualsUniqueParam struct { +type workflowVersionWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStreamEventsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStreamEventsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStreamEventsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaStreamEventsEqualsUniqueParam) streamEventsField() {} +func (p workflowVersionWithPrismaDeletedAtEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (tenantWithPrismaStreamEventsEqualsUniqueParam) unique() {} -func (tenantWithPrismaStreamEventsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type TenantWithPrismaLogsEqualsSetParam interface { +type WorkflowVersionWithPrismaChecksumEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - logsField() + workflowVersionModel() + checksumField() } -type TenantWithPrismaLogsSetParam interface { +type WorkflowVersionWithPrismaChecksumSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - logsField() + workflowVersionModel() + checksumField() } -type tenantWithPrismaLogsSetParam struct { +type workflowVersionWithPrismaChecksumSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLogsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaChecksumSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLogsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaChecksumSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLogsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaChecksumSetParam) workflowVersionModel() {} -func (p tenantWithPrismaLogsSetParam) logsField() {} +func (p workflowVersionWithPrismaChecksumSetParam) checksumField() {} -type TenantWithPrismaLogsWhereParam interface { +type WorkflowVersionWithPrismaChecksumWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - logsField() + workflowVersionModel() + checksumField() } -type tenantWithPrismaLogsEqualsParam struct { +type workflowVersionWithPrismaChecksumEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLogsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaChecksumEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLogsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaChecksumEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLogsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaChecksumEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaLogsEqualsParam) logsField() {} +func (p workflowVersionWithPrismaChecksumEqualsParam) checksumField() {} -func (tenantWithPrismaLogsSetParam) settable() {} -func (tenantWithPrismaLogsEqualsParam) equals() {} +func (workflowVersionWithPrismaChecksumSetParam) settable() {} +func (workflowVersionWithPrismaChecksumEqualsParam) equals() {} -type tenantWithPrismaLogsEqualsUniqueParam struct { +type workflowVersionWithPrismaChecksumEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLogsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaChecksumEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLogsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaChecksumEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLogsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaLogsEqualsUniqueParam) logsField() {} +func (p workflowVersionWithPrismaChecksumEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaChecksumEqualsUniqueParam) checksumField() {} -func (tenantWithPrismaLogsEqualsUniqueParam) unique() {} -func (tenantWithPrismaLogsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaChecksumEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaChecksumEqualsUniqueParam) equals() {} -type TenantWithPrismaSnsIntegrationsEqualsSetParam interface { +type WorkflowVersionWithPrismaVersionEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - snsIntegrationsField() + workflowVersionModel() + versionField() } -type TenantWithPrismaSnsIntegrationsSetParam interface { +type WorkflowVersionWithPrismaVersionSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - snsIntegrationsField() + workflowVersionModel() + versionField() } -type tenantWithPrismaSnsIntegrationsSetParam struct { +type workflowVersionWithPrismaVersionSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSnsIntegrationsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaVersionSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSnsIntegrationsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaVersionSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSnsIntegrationsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaVersionSetParam) workflowVersionModel() {} -func (p tenantWithPrismaSnsIntegrationsSetParam) snsIntegrationsField() {} +func (p workflowVersionWithPrismaVersionSetParam) versionField() {} -type TenantWithPrismaSnsIntegrationsWhereParam interface { +type WorkflowVersionWithPrismaVersionWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - snsIntegrationsField() + workflowVersionModel() + versionField() } -type tenantWithPrismaSnsIntegrationsEqualsParam struct { +type workflowVersionWithPrismaVersionEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSnsIntegrationsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaVersionEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSnsIntegrationsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaVersionEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSnsIntegrationsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaVersionEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaSnsIntegrationsEqualsParam) snsIntegrationsField() {} +func (p workflowVersionWithPrismaVersionEqualsParam) versionField() {} -func (tenantWithPrismaSnsIntegrationsSetParam) settable() {} -func (tenantWithPrismaSnsIntegrationsEqualsParam) equals() {} +func (workflowVersionWithPrismaVersionSetParam) settable() {} +func (workflowVersionWithPrismaVersionEqualsParam) equals() {} -type tenantWithPrismaSnsIntegrationsEqualsUniqueParam struct { +type workflowVersionWithPrismaVersionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSnsIntegrationsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaVersionEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSnsIntegrationsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaVersionEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSnsIntegrationsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaSnsIntegrationsEqualsUniqueParam) snsIntegrationsField() {} - -func (tenantWithPrismaSnsIntegrationsEqualsUniqueParam) unique() {} -func (tenantWithPrismaSnsIntegrationsEqualsUniqueParam) equals() {} +func (p workflowVersionWithPrismaVersionEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaVersionEqualsUniqueParam) versionField() {} -type TenantWithPrismaRateLimitsEqualsSetParam interface { +func (workflowVersionWithPrismaVersionEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaVersionEqualsUniqueParam) equals() {} + +type WorkflowVersionWithPrismaOrderEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - rateLimitsField() + workflowVersionModel() + orderField() } -type TenantWithPrismaRateLimitsSetParam interface { +type WorkflowVersionWithPrismaOrderSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - rateLimitsField() + workflowVersionModel() + orderField() } -type tenantWithPrismaRateLimitsSetParam struct { +type workflowVersionWithPrismaOrderSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaRateLimitsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaOrderSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaRateLimitsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOrderSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaRateLimitsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaOrderSetParam) workflowVersionModel() {} -func (p tenantWithPrismaRateLimitsSetParam) rateLimitsField() {} +func (p workflowVersionWithPrismaOrderSetParam) orderField() {} -type TenantWithPrismaRateLimitsWhereParam interface { +type WorkflowVersionWithPrismaOrderWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - rateLimitsField() + workflowVersionModel() + orderField() } -type tenantWithPrismaRateLimitsEqualsParam struct { +type workflowVersionWithPrismaOrderEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaRateLimitsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaOrderEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaRateLimitsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOrderEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaRateLimitsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaOrderEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaRateLimitsEqualsParam) rateLimitsField() {} +func (p workflowVersionWithPrismaOrderEqualsParam) orderField() {} -func (tenantWithPrismaRateLimitsSetParam) settable() {} -func (tenantWithPrismaRateLimitsEqualsParam) equals() {} +func (workflowVersionWithPrismaOrderSetParam) settable() {} +func (workflowVersionWithPrismaOrderEqualsParam) equals() {} -type tenantWithPrismaRateLimitsEqualsUniqueParam struct { +type workflowVersionWithPrismaOrderEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaRateLimitsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaOrderEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaRateLimitsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOrderEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaRateLimitsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaRateLimitsEqualsUniqueParam) rateLimitsField() {} +func (p workflowVersionWithPrismaOrderEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaOrderEqualsUniqueParam) orderField() {} -func (tenantWithPrismaRateLimitsEqualsUniqueParam) unique() {} -func (tenantWithPrismaRateLimitsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaOrderEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaOrderEqualsUniqueParam) equals() {} -type TenantWithPrismaStepRateLimitsEqualsSetParam interface { +type WorkflowVersionWithPrismaWorkflowEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - stepRateLimitsField() + workflowVersionModel() + workflowField() } -type TenantWithPrismaStepRateLimitsSetParam interface { +type WorkflowVersionWithPrismaWorkflowSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - stepRateLimitsField() + workflowVersionModel() + workflowField() } -type tenantWithPrismaStepRateLimitsSetParam struct { +type workflowVersionWithPrismaWorkflowSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepRateLimitsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaWorkflowSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepRateLimitsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaWorkflowSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepRateLimitsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaWorkflowSetParam) workflowVersionModel() {} -func (p tenantWithPrismaStepRateLimitsSetParam) stepRateLimitsField() {} +func (p workflowVersionWithPrismaWorkflowSetParam) workflowField() {} -type TenantWithPrismaStepRateLimitsWhereParam interface { +type WorkflowVersionWithPrismaWorkflowWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - stepRateLimitsField() + workflowVersionModel() + workflowField() } -type tenantWithPrismaStepRateLimitsEqualsParam struct { +type workflowVersionWithPrismaWorkflowEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepRateLimitsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaWorkflowEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepRateLimitsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaWorkflowEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepRateLimitsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaWorkflowEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaStepRateLimitsEqualsParam) stepRateLimitsField() {} +func (p workflowVersionWithPrismaWorkflowEqualsParam) workflowField() {} -func (tenantWithPrismaStepRateLimitsSetParam) settable() {} -func (tenantWithPrismaStepRateLimitsEqualsParam) equals() {} +func (workflowVersionWithPrismaWorkflowSetParam) settable() {} +func (workflowVersionWithPrismaWorkflowEqualsParam) equals() {} -type tenantWithPrismaStepRateLimitsEqualsUniqueParam struct { +type workflowVersionWithPrismaWorkflowEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaStepRateLimitsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaStepRateLimitsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaStepRateLimitsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaStepRateLimitsEqualsUniqueParam) stepRateLimitsField() {} +func (p workflowVersionWithPrismaWorkflowEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaWorkflowEqualsUniqueParam) workflowField() {} -func (tenantWithPrismaStepRateLimitsEqualsUniqueParam) unique() {} -func (tenantWithPrismaStepRateLimitsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaWorkflowEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaWorkflowEqualsUniqueParam) equals() {} -type TenantWithPrismaAlertEmailGroupsEqualsSetParam interface { +type WorkflowVersionWithPrismaWorkflowIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - alertEmailGroupsField() + workflowVersionModel() + workflowIDField() } -type TenantWithPrismaAlertEmailGroupsSetParam interface { +type WorkflowVersionWithPrismaWorkflowIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - alertEmailGroupsField() + workflowVersionModel() + workflowIDField() } -type tenantWithPrismaAlertEmailGroupsSetParam struct { +type workflowVersionWithPrismaWorkflowIDSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertEmailGroupsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaWorkflowIDSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertEmailGroupsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaWorkflowIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertEmailGroupsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaWorkflowIDSetParam) workflowVersionModel() {} -func (p tenantWithPrismaAlertEmailGroupsSetParam) alertEmailGroupsField() {} +func (p workflowVersionWithPrismaWorkflowIDSetParam) workflowIDField() {} -type TenantWithPrismaAlertEmailGroupsWhereParam interface { +type WorkflowVersionWithPrismaWorkflowIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - alertEmailGroupsField() + workflowVersionModel() + workflowIDField() } -type tenantWithPrismaAlertEmailGroupsEqualsParam struct { +type workflowVersionWithPrismaWorkflowIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertEmailGroupsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaWorkflowIDEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertEmailGroupsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaWorkflowIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertEmailGroupsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaWorkflowIDEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaAlertEmailGroupsEqualsParam) alertEmailGroupsField() {} +func (p workflowVersionWithPrismaWorkflowIDEqualsParam) workflowIDField() {} -func (tenantWithPrismaAlertEmailGroupsSetParam) settable() {} -func (tenantWithPrismaAlertEmailGroupsEqualsParam) equals() {} +func (workflowVersionWithPrismaWorkflowIDSetParam) settable() {} +func (workflowVersionWithPrismaWorkflowIDEqualsParam) equals() {} -type tenantWithPrismaAlertEmailGroupsEqualsUniqueParam struct { +type workflowVersionWithPrismaWorkflowIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) alertEmailGroupsField() {} +func (p workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) workflowIDField() {} -func (tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) unique() {} -func (tenantWithPrismaAlertEmailGroupsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) equals() {} -type TenantWithPrismaAlertMemberEmailsEqualsSetParam interface { +type WorkflowVersionWithPrismaTriggersEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - alertMemberEmailsField() + workflowVersionModel() + triggersField() } -type TenantWithPrismaAlertMemberEmailsSetParam interface { +type WorkflowVersionWithPrismaTriggersSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - alertMemberEmailsField() + workflowVersionModel() + triggersField() } -type tenantWithPrismaAlertMemberEmailsSetParam struct { +type workflowVersionWithPrismaTriggersSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertMemberEmailsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaTriggersSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertMemberEmailsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaTriggersSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertMemberEmailsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaTriggersSetParam) workflowVersionModel() {} -func (p tenantWithPrismaAlertMemberEmailsSetParam) alertMemberEmailsField() {} +func (p workflowVersionWithPrismaTriggersSetParam) triggersField() {} -type TenantWithPrismaAlertMemberEmailsWhereParam interface { +type WorkflowVersionWithPrismaTriggersWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - alertMemberEmailsField() + workflowVersionModel() + triggersField() } -type tenantWithPrismaAlertMemberEmailsEqualsParam struct { +type workflowVersionWithPrismaTriggersEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertMemberEmailsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaTriggersEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertMemberEmailsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaTriggersEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertMemberEmailsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaTriggersEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaAlertMemberEmailsEqualsParam) alertMemberEmailsField() {} +func (p workflowVersionWithPrismaTriggersEqualsParam) triggersField() {} -func (tenantWithPrismaAlertMemberEmailsSetParam) settable() {} -func (tenantWithPrismaAlertMemberEmailsEqualsParam) equals() {} +func (workflowVersionWithPrismaTriggersSetParam) settable() {} +func (workflowVersionWithPrismaTriggersEqualsParam) equals() {} -type tenantWithPrismaAlertMemberEmailsEqualsUniqueParam struct { +type workflowVersionWithPrismaTriggersEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaTriggersEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaTriggersEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) alertMemberEmailsField() {} +func (p workflowVersionWithPrismaTriggersEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaTriggersEqualsUniqueParam) triggersField() {} -func (tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) unique() {} -func (tenantWithPrismaAlertMemberEmailsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaTriggersEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaTriggersEqualsUniqueParam) equals() {} -type TenantWithPrismaSlackWebhooksEqualsSetParam interface { +type WorkflowVersionWithPrismaConcurrencyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - slackWebhooksField() + workflowVersionModel() + concurrencyField() } -type TenantWithPrismaSlackWebhooksSetParam interface { +type WorkflowVersionWithPrismaConcurrencySetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - slackWebhooksField() + workflowVersionModel() + concurrencyField() } -type tenantWithPrismaSlackWebhooksSetParam struct { +type workflowVersionWithPrismaConcurrencySetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSlackWebhooksSetParam) field() builder.Field { +func (p workflowVersionWithPrismaConcurrencySetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSlackWebhooksSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaConcurrencySetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSlackWebhooksSetParam) tenantModel() {} +func (p workflowVersionWithPrismaConcurrencySetParam) workflowVersionModel() {} -func (p tenantWithPrismaSlackWebhooksSetParam) slackWebhooksField() {} +func (p workflowVersionWithPrismaConcurrencySetParam) concurrencyField() {} -type TenantWithPrismaSlackWebhooksWhereParam interface { +type WorkflowVersionWithPrismaConcurrencyWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - slackWebhooksField() + workflowVersionModel() + concurrencyField() } -type tenantWithPrismaSlackWebhooksEqualsParam struct { +type workflowVersionWithPrismaConcurrencyEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSlackWebhooksEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaConcurrencyEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSlackWebhooksEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaConcurrencyEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSlackWebhooksEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaConcurrencyEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaSlackWebhooksEqualsParam) slackWebhooksField() {} +func (p workflowVersionWithPrismaConcurrencyEqualsParam) concurrencyField() {} -func (tenantWithPrismaSlackWebhooksSetParam) settable() {} -func (tenantWithPrismaSlackWebhooksEqualsParam) equals() {} +func (workflowVersionWithPrismaConcurrencySetParam) settable() {} +func (workflowVersionWithPrismaConcurrencyEqualsParam) equals() {} -type tenantWithPrismaSlackWebhooksEqualsUniqueParam struct { +type workflowVersionWithPrismaConcurrencyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaSlackWebhooksEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaConcurrencyEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaSlackWebhooksEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaConcurrencyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaSlackWebhooksEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaSlackWebhooksEqualsUniqueParam) slackWebhooksField() {} +func (p workflowVersionWithPrismaConcurrencyEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaConcurrencyEqualsUniqueParam) concurrencyField() {} -func (tenantWithPrismaSlackWebhooksEqualsUniqueParam) unique() {} -func (tenantWithPrismaSlackWebhooksEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaConcurrencyEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaConcurrencyEqualsUniqueParam) equals() {} -type TenantWithPrismaAlertingSettingsEqualsSetParam interface { +type WorkflowVersionWithPrismaStickyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - alertingSettingsField() + workflowVersionModel() + stickyField() } -type TenantWithPrismaAlertingSettingsSetParam interface { +type WorkflowVersionWithPrismaStickySetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - alertingSettingsField() + workflowVersionModel() + stickyField() } -type tenantWithPrismaAlertingSettingsSetParam struct { +type workflowVersionWithPrismaStickySetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertingSettingsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaStickySetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertingSettingsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaStickySetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertingSettingsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaStickySetParam) workflowVersionModel() {} -func (p tenantWithPrismaAlertingSettingsSetParam) alertingSettingsField() {} +func (p workflowVersionWithPrismaStickySetParam) stickyField() {} -type TenantWithPrismaAlertingSettingsWhereParam interface { +type WorkflowVersionWithPrismaStickyWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - alertingSettingsField() + workflowVersionModel() + stickyField() } -type tenantWithPrismaAlertingSettingsEqualsParam struct { +type workflowVersionWithPrismaStickyEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertingSettingsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaStickyEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertingSettingsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaStickyEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertingSettingsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaStickyEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaAlertingSettingsEqualsParam) alertingSettingsField() {} +func (p workflowVersionWithPrismaStickyEqualsParam) stickyField() {} -func (tenantWithPrismaAlertingSettingsSetParam) settable() {} -func (tenantWithPrismaAlertingSettingsEqualsParam) equals() {} +func (workflowVersionWithPrismaStickySetParam) settable() {} +func (workflowVersionWithPrismaStickyEqualsParam) equals() {} -type tenantWithPrismaAlertingSettingsEqualsUniqueParam struct { +type workflowVersionWithPrismaStickyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaAlertingSettingsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaStickyEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaAlertingSettingsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaStickyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaAlertingSettingsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaAlertingSettingsEqualsUniqueParam) alertingSettingsField() {} +func (p workflowVersionWithPrismaStickyEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaStickyEqualsUniqueParam) stickyField() {} -func (tenantWithPrismaAlertingSettingsEqualsUniqueParam) unique() {} -func (tenantWithPrismaAlertingSettingsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaStickyEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaStickyEqualsUniqueParam) equals() {} -type TenantWithPrismaLimitsEqualsSetParam interface { +type WorkflowVersionWithPrismaJobsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - limitsField() + workflowVersionModel() + jobsField() } -type TenantWithPrismaLimitsSetParam interface { +type WorkflowVersionWithPrismaJobsSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - limitsField() + workflowVersionModel() + jobsField() } -type tenantWithPrismaLimitsSetParam struct { +type workflowVersionWithPrismaJobsSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLimitsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaJobsSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLimitsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaJobsSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLimitsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaJobsSetParam) workflowVersionModel() {} -func (p tenantWithPrismaLimitsSetParam) limitsField() {} +func (p workflowVersionWithPrismaJobsSetParam) jobsField() {} -type TenantWithPrismaLimitsWhereParam interface { +type WorkflowVersionWithPrismaJobsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - limitsField() + workflowVersionModel() + jobsField() } -type tenantWithPrismaLimitsEqualsParam struct { +type workflowVersionWithPrismaJobsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLimitsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaJobsEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLimitsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaJobsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLimitsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaJobsEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaLimitsEqualsParam) limitsField() {} +func (p workflowVersionWithPrismaJobsEqualsParam) jobsField() {} -func (tenantWithPrismaLimitsSetParam) settable() {} -func (tenantWithPrismaLimitsEqualsParam) equals() {} +func (workflowVersionWithPrismaJobsSetParam) settable() {} +func (workflowVersionWithPrismaJobsEqualsParam) equals() {} -type tenantWithPrismaLimitsEqualsUniqueParam struct { +type workflowVersionWithPrismaJobsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLimitsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaJobsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLimitsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaJobsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLimitsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaLimitsEqualsUniqueParam) limitsField() {} +func (p workflowVersionWithPrismaJobsEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaJobsEqualsUniqueParam) jobsField() {} -func (tenantWithPrismaLimitsEqualsUniqueParam) unique() {} -func (tenantWithPrismaLimitsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaJobsEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaJobsEqualsUniqueParam) equals() {} -type TenantWithPrismaLimitAlertsEqualsSetParam interface { +type WorkflowVersionWithPrismaOnFailureJobEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - limitAlertsField() + workflowVersionModel() + onFailureJobField() } -type TenantWithPrismaLimitAlertsSetParam interface { +type WorkflowVersionWithPrismaOnFailureJobSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - limitAlertsField() + workflowVersionModel() + onFailureJobField() } -type tenantWithPrismaLimitAlertsSetParam struct { +type workflowVersionWithPrismaOnFailureJobSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLimitAlertsSetParam) field() builder.Field { +func (p workflowVersionWithPrismaOnFailureJobSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLimitAlertsSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOnFailureJobSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLimitAlertsSetParam) tenantModel() {} +func (p workflowVersionWithPrismaOnFailureJobSetParam) workflowVersionModel() {} -func (p tenantWithPrismaLimitAlertsSetParam) limitAlertsField() {} +func (p workflowVersionWithPrismaOnFailureJobSetParam) onFailureJobField() {} -type TenantWithPrismaLimitAlertsWhereParam interface { +type WorkflowVersionWithPrismaOnFailureJobWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - limitAlertsField() + workflowVersionModel() + onFailureJobField() } -type tenantWithPrismaLimitAlertsEqualsParam struct { +type workflowVersionWithPrismaOnFailureJobEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLimitAlertsEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaOnFailureJobEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLimitAlertsEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOnFailureJobEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLimitAlertsEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaOnFailureJobEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaLimitAlertsEqualsParam) limitAlertsField() {} +func (p workflowVersionWithPrismaOnFailureJobEqualsParam) onFailureJobField() {} -func (tenantWithPrismaLimitAlertsSetParam) settable() {} -func (tenantWithPrismaLimitAlertsEqualsParam) equals() {} +func (workflowVersionWithPrismaOnFailureJobSetParam) settable() {} +func (workflowVersionWithPrismaOnFailureJobEqualsParam) equals() {} -type tenantWithPrismaLimitAlertsEqualsUniqueParam struct { +type workflowVersionWithPrismaOnFailureJobEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaLimitAlertsEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaLimitAlertsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaLimitAlertsEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaLimitAlertsEqualsUniqueParam) limitAlertsField() {} +func (p workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) onFailureJobField() {} -func (tenantWithPrismaLimitAlertsEqualsUniqueParam) unique() {} -func (tenantWithPrismaLimitAlertsEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) equals() {} -type TenantWithPrismaWebhookWorkersEqualsSetParam interface { +type WorkflowVersionWithPrismaOnFailureJobIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantModel() - webhookWorkersField() + workflowVersionModel() + onFailureJobIDField() } -type TenantWithPrismaWebhookWorkersSetParam interface { +type WorkflowVersionWithPrismaOnFailureJobIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - webhookWorkersField() + workflowVersionModel() + onFailureJobIDField() } -type tenantWithPrismaWebhookWorkersSetParam struct { +type workflowVersionWithPrismaOnFailureJobIDSetParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWebhookWorkersSetParam) field() builder.Field { +func (p workflowVersionWithPrismaOnFailureJobIDSetParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWebhookWorkersSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOnFailureJobIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWebhookWorkersSetParam) tenantModel() {} +func (p workflowVersionWithPrismaOnFailureJobIDSetParam) workflowVersionModel() {} -func (p tenantWithPrismaWebhookWorkersSetParam) webhookWorkersField() {} +func (p workflowVersionWithPrismaOnFailureJobIDSetParam) onFailureJobIDField() {} -type TenantWithPrismaWebhookWorkersWhereParam interface { +type WorkflowVersionWithPrismaOnFailureJobIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantModel() - webhookWorkersField() + workflowVersionModel() + onFailureJobIDField() } -type tenantWithPrismaWebhookWorkersEqualsParam struct { +type workflowVersionWithPrismaOnFailureJobIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWebhookWorkersEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaOnFailureJobIDEqualsParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWebhookWorkersEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOnFailureJobIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWebhookWorkersEqualsParam) tenantModel() {} +func (p workflowVersionWithPrismaOnFailureJobIDEqualsParam) workflowVersionModel() {} -func (p tenantWithPrismaWebhookWorkersEqualsParam) webhookWorkersField() {} +func (p workflowVersionWithPrismaOnFailureJobIDEqualsParam) onFailureJobIDField() {} -func (tenantWithPrismaWebhookWorkersSetParam) settable() {} -func (tenantWithPrismaWebhookWorkersEqualsParam) equals() {} +func (workflowVersionWithPrismaOnFailureJobIDSetParam) settable() {} +func (workflowVersionWithPrismaOnFailureJobIDEqualsParam) equals() {} -type tenantWithPrismaWebhookWorkersEqualsUniqueParam struct { +type workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantWithPrismaWebhookWorkersEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantWithPrismaWebhookWorkersEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantWithPrismaWebhookWorkersEqualsUniqueParam) tenantModel() {} -func (p tenantWithPrismaWebhookWorkersEqualsUniqueParam) webhookWorkersField() {} - -func (tenantWithPrismaWebhookWorkersEqualsUniqueParam) unique() {} -func (tenantWithPrismaWebhookWorkersEqualsUniqueParam) equals() {} - -type tenantResourceLimitActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) onFailureJobIDField() {} -var tenantResourceLimitOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "resource"}, - {Name: "tenantId"}, - {Name: "limitValue"}, - {Name: "alarmValue"}, - {Name: "value"}, - {Name: "window"}, - {Name: "lastRefill"}, - {Name: "customValueMeter"}, -} +func (workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) equals() {} -type TenantResourceLimitRelationWith interface { +type WorkflowVersionWithPrismaRunsEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - tenantResourceLimitRelation() + equals() + workflowVersionModel() + runsField() } -type TenantResourceLimitWhereParam interface { +type WorkflowVersionWithPrismaRunsSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() + workflowVersionModel() + runsField() } -type tenantResourceLimitDefaultParam struct { +type workflowVersionWithPrismaRunsSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitDefaultParam) field() builder.Field { +func (p workflowVersionWithPrismaRunsSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitDefaultParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaRunsSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitDefaultParam) tenantResourceLimitModel() {} +func (p workflowVersionWithPrismaRunsSetParam) workflowVersionModel() {} -type TenantResourceLimitOrderByParam interface { +func (p workflowVersionWithPrismaRunsSetParam) runsField() {} + +type WorkflowVersionWithPrismaRunsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() + workflowVersionModel() + runsField() } -type tenantResourceLimitOrderByParam struct { +type workflowVersionWithPrismaRunsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitOrderByParam) field() builder.Field { +func (p workflowVersionWithPrismaRunsEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitOrderByParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitOrderByParam) tenantResourceLimitModel() {} +func (p workflowVersionWithPrismaRunsEqualsParam) workflowVersionModel() {} -type TenantResourceLimitCursorParam interface { - field() builder.Field - getQuery() builder.Query - tenantResourceLimitModel() - isCursor() -} +func (p workflowVersionWithPrismaRunsEqualsParam) runsField() {} -type tenantResourceLimitCursorParam struct { +func (workflowVersionWithPrismaRunsSetParam) settable() {} +func (workflowVersionWithPrismaRunsEqualsParam) equals() {} + +type workflowVersionWithPrismaRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitCursorParam) field() builder.Field { +func (p workflowVersionWithPrismaRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitCursorParam) isCursor() {} - -func (p tenantResourceLimitCursorParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitCursorParam) tenantResourceLimitModel() {} +func (p workflowVersionWithPrismaRunsEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaRunsEqualsUniqueParam) runsField() {} -type TenantResourceLimitParamUnique interface { +func (workflowVersionWithPrismaRunsEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaRunsEqualsUniqueParam) equals() {} + +type WorkflowVersionWithPrismaScheduledEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - tenantResourceLimitModel() + equals() + workflowVersionModel() + scheduledField() } -type tenantResourceLimitParamUnique struct { +type WorkflowVersionWithPrismaScheduledSetParam interface { + field() builder.Field + getQuery() builder.Query + workflowVersionModel() + scheduledField() +} + +type workflowVersionWithPrismaScheduledSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitParamUnique) tenantResourceLimitModel() {} - -func (tenantResourceLimitParamUnique) unique() {} - -func (p tenantResourceLimitParamUnique) field() builder.Field { +func (p workflowVersionWithPrismaScheduledSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitParamUnique) getQuery() builder.Query { +func (p workflowVersionWithPrismaScheduledSetParam) getQuery() builder.Query { return p.query } -type TenantResourceLimitEqualsWhereParam interface { +func (p workflowVersionWithPrismaScheduledSetParam) workflowVersionModel() {} + +func (p workflowVersionWithPrismaScheduledSetParam) scheduledField() {} + +type WorkflowVersionWithPrismaScheduledWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - tenantResourceLimitModel() + workflowVersionModel() + scheduledField() } -type tenantResourceLimitEqualsParam struct { +type workflowVersionWithPrismaScheduledEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitEqualsParam) tenantResourceLimitModel() {} - -func (tenantResourceLimitEqualsParam) equals() {} - -func (p tenantResourceLimitEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaScheduledEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaScheduledEqualsParam) getQuery() builder.Query { return p.query } -type TenantResourceLimitEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - tenantResourceLimitModel() -} +func (p workflowVersionWithPrismaScheduledEqualsParam) workflowVersionModel() {} -type tenantResourceLimitEqualsUniqueParam struct { +func (p workflowVersionWithPrismaScheduledEqualsParam) scheduledField() {} + +func (workflowVersionWithPrismaScheduledSetParam) settable() {} +func (workflowVersionWithPrismaScheduledEqualsParam) equals() {} + +type workflowVersionWithPrismaScheduledEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitEqualsUniqueParam) tenantResourceLimitModel() {} - -func (tenantResourceLimitEqualsUniqueParam) unique() {} -func (tenantResourceLimitEqualsUniqueParam) equals() {} - -func (p tenantResourceLimitEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaScheduledEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaScheduledEqualsUniqueParam) getQuery() builder.Query { return p.query } -type TenantResourceLimitSetParam interface { - field() builder.Field - settable() - tenantResourceLimitModel() -} - -type tenantResourceLimitSetParam struct { - data builder.Field -} - -func (tenantResourceLimitSetParam) settable() {} - -func (p tenantResourceLimitSetParam) field() builder.Field { - return p.data -} +func (p workflowVersionWithPrismaScheduledEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaScheduledEqualsUniqueParam) scheduledField() {} -func (p tenantResourceLimitSetParam) tenantResourceLimitModel() {} +func (workflowVersionWithPrismaScheduledEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaScheduledEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaIDEqualsSetParam interface { +type WorkflowVersionWithPrismaKindEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - idField() + workflowVersionModel() + kindField() } -type TenantResourceLimitWithPrismaIDSetParam interface { +type WorkflowVersionWithPrismaKindSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - idField() + workflowVersionModel() + kindField() } -type tenantResourceLimitWithPrismaIDSetParam struct { +type workflowVersionWithPrismaKindSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaIDSetParam) field() builder.Field { +func (p workflowVersionWithPrismaKindSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaKindSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaIDSetParam) tenantResourceLimitModel() {} +func (p workflowVersionWithPrismaKindSetParam) workflowVersionModel() {} -func (p tenantResourceLimitWithPrismaIDSetParam) idField() {} +func (p workflowVersionWithPrismaKindSetParam) kindField() {} -type TenantResourceLimitWithPrismaIDWhereParam interface { +type WorkflowVersionWithPrismaKindWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - idField() + workflowVersionModel() + kindField() } -type tenantResourceLimitWithPrismaIDEqualsParam struct { +type workflowVersionWithPrismaKindEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaIDEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaKindEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaKindEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaIDEqualsParam) tenantResourceLimitModel() {} +func (p workflowVersionWithPrismaKindEqualsParam) workflowVersionModel() {} -func (p tenantResourceLimitWithPrismaIDEqualsParam) idField() {} +func (p workflowVersionWithPrismaKindEqualsParam) kindField() {} -func (tenantResourceLimitWithPrismaIDSetParam) settable() {} -func (tenantResourceLimitWithPrismaIDEqualsParam) equals() {} +func (workflowVersionWithPrismaKindSetParam) settable() {} +func (workflowVersionWithPrismaKindEqualsParam) equals() {} -type tenantResourceLimitWithPrismaIDEqualsUniqueParam struct { +type workflowVersionWithPrismaKindEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaKindEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaKindEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaIDEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaIDEqualsUniqueParam) idField() {} +func (p workflowVersionWithPrismaKindEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaKindEqualsUniqueParam) kindField() {} -func (tenantResourceLimitWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaIDEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaKindEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaKindEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaCreatedAtEqualsSetParam interface { +type WorkflowVersionWithPrismaScheduleTimeoutEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - createdAtField() + workflowVersionModel() + scheduleTimeoutField() } -type TenantResourceLimitWithPrismaCreatedAtSetParam interface { +type WorkflowVersionWithPrismaScheduleTimeoutSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - createdAtField() + workflowVersionModel() + scheduleTimeoutField() } -type tenantResourceLimitWithPrismaCreatedAtSetParam struct { +type workflowVersionWithPrismaScheduleTimeoutSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaCreatedAtSetParam) field() builder.Field { +func (p workflowVersionWithPrismaScheduleTimeoutSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaScheduleTimeoutSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaCreatedAtSetParam) tenantResourceLimitModel() {} +func (p workflowVersionWithPrismaScheduleTimeoutSetParam) workflowVersionModel() {} -func (p tenantResourceLimitWithPrismaCreatedAtSetParam) createdAtField() {} +func (p workflowVersionWithPrismaScheduleTimeoutSetParam) scheduleTimeoutField() {} -type TenantResourceLimitWithPrismaCreatedAtWhereParam interface { +type WorkflowVersionWithPrismaScheduleTimeoutWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - createdAtField() + workflowVersionModel() + scheduleTimeoutField() } -type tenantResourceLimitWithPrismaCreatedAtEqualsParam struct { +type workflowVersionWithPrismaScheduleTimeoutEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p workflowVersionWithPrismaScheduleTimeoutEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaScheduleTimeoutEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaCreatedAtEqualsParam) tenantResourceLimitModel() {} +func (p workflowVersionWithPrismaScheduleTimeoutEqualsParam) workflowVersionModel() {} -func (p tenantResourceLimitWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p workflowVersionWithPrismaScheduleTimeoutEqualsParam) scheduleTimeoutField() {} -func (tenantResourceLimitWithPrismaCreatedAtSetParam) settable() {} -func (tenantResourceLimitWithPrismaCreatedAtEqualsParam) equals() {} +func (workflowVersionWithPrismaScheduleTimeoutSetParam) settable() {} +func (workflowVersionWithPrismaScheduleTimeoutEqualsParam) equals() {} -type tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam struct { +type workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) workflowVersionModel() {} +func (p workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) scheduleTimeoutField() {} -func (tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) unique() {} +func (workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaUpdatedAtEqualsSetParam interface { - field() builder.Field +type workflowConcurrencyActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workflowConcurrencyOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "workflowVersionId"}, + {Name: "getConcurrencyGroupId"}, + {Name: "maxRuns"}, + {Name: "limitStrategy"}, +} + +type WorkflowConcurrencyRelationWith interface { getQuery() builder.Query - equals() - tenantResourceLimitModel() - updatedAtField() + with() + workflowConcurrencyRelation() } -type TenantResourceLimitWithPrismaUpdatedAtSetParam interface { +type WorkflowConcurrencyWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - updatedAtField() + workflowConcurrencyModel() } -type tenantResourceLimitWithPrismaUpdatedAtSetParam struct { +type workflowConcurrencyDefaultParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p workflowConcurrencyDefaultParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowConcurrencyDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaUpdatedAtSetParam) tenantResourceLimitModel() {} - -func (p tenantResourceLimitWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p workflowConcurrencyDefaultParam) workflowConcurrencyModel() {} -type TenantResourceLimitWithPrismaUpdatedAtWhereParam interface { +type WorkflowConcurrencyOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - updatedAtField() + workflowConcurrencyModel() } -type tenantResourceLimitWithPrismaUpdatedAtEqualsParam struct { +type workflowConcurrencyOrderByParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p workflowConcurrencyOrderByParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaUpdatedAtEqualsParam) tenantResourceLimitModel() {} - -func (p tenantResourceLimitWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p workflowConcurrencyOrderByParam) workflowConcurrencyModel() {} -func (tenantResourceLimitWithPrismaUpdatedAtSetParam) settable() {} -func (tenantResourceLimitWithPrismaUpdatedAtEqualsParam) equals() {} +type WorkflowConcurrencyCursorParam interface { + field() builder.Field + getQuery() builder.Query + workflowConcurrencyModel() + isCursor() +} -type tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam struct { +type workflowConcurrencyCursorParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyCursorParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyCursorParam) isCursor() {} + +func (p workflowConcurrencyCursorParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaUpdatedAtEqualsUniqueParam) equals() {} - -type TenantResourceLimitWithPrismaResourceEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantResourceLimitModel() - resourceField() -} +func (p workflowConcurrencyCursorParam) workflowConcurrencyModel() {} -type TenantResourceLimitWithPrismaResourceSetParam interface { +type WorkflowConcurrencyParamUnique interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - resourceField() + unique() + workflowConcurrencyModel() } -type tenantResourceLimitWithPrismaResourceSetParam struct { +type workflowConcurrencyParamUnique struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaResourceSetParam) field() builder.Field { +func (p workflowConcurrencyParamUnique) workflowConcurrencyModel() {} + +func (workflowConcurrencyParamUnique) unique() {} + +func (p workflowConcurrencyParamUnique) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaResourceSetParam) getQuery() builder.Query { +func (p workflowConcurrencyParamUnique) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaResourceSetParam) tenantResourceLimitModel() {} - -func (p tenantResourceLimitWithPrismaResourceSetParam) resourceField() {} - -type TenantResourceLimitWithPrismaResourceWhereParam interface { +type WorkflowConcurrencyEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - resourceField() + equals() + workflowConcurrencyModel() } -type tenantResourceLimitWithPrismaResourceEqualsParam struct { +type workflowConcurrencyEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaResourceEqualsParam) field() builder.Field { +func (p workflowConcurrencyEqualsParam) workflowConcurrencyModel() {} + +func (workflowConcurrencyEqualsParam) equals() {} + +func (p workflowConcurrencyEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaResourceEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaResourceEqualsParam) tenantResourceLimitModel() {} - -func (p tenantResourceLimitWithPrismaResourceEqualsParam) resourceField() {} - -func (tenantResourceLimitWithPrismaResourceSetParam) settable() {} -func (tenantResourceLimitWithPrismaResourceEqualsParam) equals() {} +type WorkflowConcurrencyEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workflowConcurrencyModel() +} -type tenantResourceLimitWithPrismaResourceEqualsUniqueParam struct { +type workflowConcurrencyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaResourceEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyEqualsUniqueParam) workflowConcurrencyModel() {} + +func (workflowConcurrencyEqualsUniqueParam) unique() {} +func (workflowConcurrencyEqualsUniqueParam) equals() {} + +func (p workflowConcurrencyEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaResourceEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaResourceEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaResourceEqualsUniqueParam) resourceField() {} +type WorkflowConcurrencySetParam interface { + field() builder.Field + settable() + workflowConcurrencyModel() +} -func (tenantResourceLimitWithPrismaResourceEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaResourceEqualsUniqueParam) equals() {} +type workflowConcurrencySetParam struct { + data builder.Field +} -type TenantResourceLimitWithPrismaTenantEqualsSetParam interface { +func (workflowConcurrencySetParam) settable() {} + +func (p workflowConcurrencySetParam) field() builder.Field { + return p.data +} + +func (p workflowConcurrencySetParam) workflowConcurrencyModel() {} + +type WorkflowConcurrencyWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - tenantField() + workflowConcurrencyModel() + idField() } -type TenantResourceLimitWithPrismaTenantSetParam interface { +type WorkflowConcurrencyWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - tenantField() + workflowConcurrencyModel() + idField() } -type tenantResourceLimitWithPrismaTenantSetParam struct { +type workflowConcurrencyWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaTenantSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaTenantSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaTenantSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaIDSetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaTenantSetParam) tenantField() {} +func (p workflowConcurrencyWithPrismaIDSetParam) idField() {} -type TenantResourceLimitWithPrismaTenantWhereParam interface { +type WorkflowConcurrencyWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - tenantField() + workflowConcurrencyModel() + idField() } -type tenantResourceLimitWithPrismaTenantEqualsParam struct { +type workflowConcurrencyWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaTenantEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaTenantEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaIDEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaTenantEqualsParam) tenantField() {} +func (p workflowConcurrencyWithPrismaIDEqualsParam) idField() {} -func (tenantResourceLimitWithPrismaTenantSetParam) settable() {} -func (tenantResourceLimitWithPrismaTenantEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaIDSetParam) settable() {} +func (workflowConcurrencyWithPrismaIDEqualsParam) equals() {} -type tenantResourceLimitWithPrismaTenantEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaTenantEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p workflowConcurrencyWithPrismaIDEqualsUniqueParam) workflowConcurrencyModel() {} +func (p workflowConcurrencyWithPrismaIDEqualsUniqueParam) idField() {} -func (tenantResourceLimitWithPrismaTenantEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaTenantEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaIDEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaTenantIDEqualsSetParam interface { +type WorkflowConcurrencyWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - tenantIDField() + workflowConcurrencyModel() + createdAtField() } -type TenantResourceLimitWithPrismaTenantIDSetParam interface { +type WorkflowConcurrencyWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - tenantIDField() + workflowConcurrencyModel() + createdAtField() } -type tenantResourceLimitWithPrismaTenantIDSetParam struct { +type workflowConcurrencyWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaTenantIDSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaTenantIDSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaCreatedAtSetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaTenantIDSetParam) tenantIDField() {} +func (p workflowConcurrencyWithPrismaCreatedAtSetParam) createdAtField() {} -type TenantResourceLimitWithPrismaTenantIDWhereParam interface { +type WorkflowConcurrencyWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - tenantIDField() + workflowConcurrencyModel() + createdAtField() } -type tenantResourceLimitWithPrismaTenantIDEqualsParam struct { +type workflowConcurrencyWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaTenantIDEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaCreatedAtEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p workflowConcurrencyWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (tenantResourceLimitWithPrismaTenantIDSetParam) settable() {} -func (tenantResourceLimitWithPrismaTenantIDEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaCreatedAtSetParam) settable() {} +func (workflowConcurrencyWithPrismaCreatedAtEqualsParam) equals() {} -type tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) workflowConcurrencyModel() {} +func (p workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaLimitValueEqualsSetParam interface { +type WorkflowConcurrencyWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - limitValueField() + workflowConcurrencyModel() + updatedAtField() } -type TenantResourceLimitWithPrismaLimitValueSetParam interface { +type WorkflowConcurrencyWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - limitValueField() + workflowConcurrencyModel() + updatedAtField() } -type tenantResourceLimitWithPrismaLimitValueSetParam struct { +type workflowConcurrencyWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaLimitValueSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaLimitValueSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaLimitValueSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaUpdatedAtSetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaLimitValueSetParam) limitValueField() {} +func (p workflowConcurrencyWithPrismaUpdatedAtSetParam) updatedAtField() {} -type TenantResourceLimitWithPrismaLimitValueWhereParam interface { +type WorkflowConcurrencyWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - limitValueField() + workflowConcurrencyModel() + updatedAtField() } -type tenantResourceLimitWithPrismaLimitValueEqualsParam struct { +type workflowConcurrencyWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaLimitValueEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaLimitValueEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaLimitValueEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaUpdatedAtEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaLimitValueEqualsParam) limitValueField() {} +func (p workflowConcurrencyWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (tenantResourceLimitWithPrismaLimitValueSetParam) settable() {} -func (tenantResourceLimitWithPrismaLimitValueEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaUpdatedAtSetParam) settable() {} +func (workflowConcurrencyWithPrismaUpdatedAtEqualsParam) equals() {} -type tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) limitValueField() {} +func (p workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) workflowConcurrencyModel() {} +func (p workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaLimitValueEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaAlarmValueEqualsSetParam interface { +type WorkflowConcurrencyWithPrismaWorkflowEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - alarmValueField() + workflowConcurrencyModel() + workflowField() } -type TenantResourceLimitWithPrismaAlarmValueSetParam interface { +type WorkflowConcurrencyWithPrismaWorkflowSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - alarmValueField() + workflowConcurrencyModel() + workflowField() } -type tenantResourceLimitWithPrismaAlarmValueSetParam struct { +type workflowConcurrencyWithPrismaWorkflowSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaAlarmValueSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaWorkflowSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaAlarmValueSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaWorkflowSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaAlarmValueSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaWorkflowSetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaAlarmValueSetParam) alarmValueField() {} +func (p workflowConcurrencyWithPrismaWorkflowSetParam) workflowField() {} -type TenantResourceLimitWithPrismaAlarmValueWhereParam interface { +type WorkflowConcurrencyWithPrismaWorkflowWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - alarmValueField() + workflowConcurrencyModel() + workflowField() } -type tenantResourceLimitWithPrismaAlarmValueEqualsParam struct { +type workflowConcurrencyWithPrismaWorkflowEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaAlarmValueEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaWorkflowEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaAlarmValueEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaWorkflowEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaAlarmValueEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaWorkflowEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaAlarmValueEqualsParam) alarmValueField() {} +func (p workflowConcurrencyWithPrismaWorkflowEqualsParam) workflowField() {} -func (tenantResourceLimitWithPrismaAlarmValueSetParam) settable() {} -func (tenantResourceLimitWithPrismaAlarmValueEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaWorkflowSetParam) settable() {} +func (workflowConcurrencyWithPrismaWorkflowEqualsParam) equals() {} -type tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) alarmValueField() {} +func (p workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) workflowConcurrencyModel() {} +func (p workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) workflowField() {} -func (tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaAlarmValueEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaValueEqualsSetParam interface { +type WorkflowConcurrencyWithPrismaWorkflowVersionIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - valueField() + workflowConcurrencyModel() + workflowVersionIDField() } -type TenantResourceLimitWithPrismaValueSetParam interface { +type WorkflowConcurrencyWithPrismaWorkflowVersionIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - valueField() + workflowConcurrencyModel() + workflowVersionIDField() } -type tenantResourceLimitWithPrismaValueSetParam struct { +type workflowConcurrencyWithPrismaWorkflowVersionIDSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaValueSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaValueSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaValueSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaValueSetParam) valueField() {} +func (p workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) workflowVersionIDField() {} -type TenantResourceLimitWithPrismaValueWhereParam interface { +type WorkflowConcurrencyWithPrismaWorkflowVersionIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - valueField() + workflowConcurrencyModel() + workflowVersionIDField() } -type tenantResourceLimitWithPrismaValueEqualsParam struct { +type workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaValueEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaValueEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaValueEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaValueEqualsParam) valueField() {} +func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) workflowVersionIDField() {} -func (tenantResourceLimitWithPrismaValueSetParam) settable() {} -func (tenantResourceLimitWithPrismaValueEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) settable() {} +func (workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) equals() {} -type tenantResourceLimitWithPrismaValueEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaValueEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaValueEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaValueEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaValueEqualsUniqueParam) valueField() {} +func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowConcurrencyModel() {} +func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowVersionIDField() {} -func (tenantResourceLimitWithPrismaValueEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaValueEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaWindowEqualsSetParam interface { +type WorkflowConcurrencyWithPrismaGetConcurrencyGroupEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - windowField() + workflowConcurrencyModel() + getConcurrencyGroupField() } -type TenantResourceLimitWithPrismaWindowSetParam interface { +type WorkflowConcurrencyWithPrismaGetConcurrencyGroupSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - windowField() + workflowConcurrencyModel() + getConcurrencyGroupField() } -type tenantResourceLimitWithPrismaWindowSetParam struct { +type workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaWindowSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaWindowSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaWindowSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaWindowSetParam) windowField() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) getConcurrencyGroupField() {} -type TenantResourceLimitWithPrismaWindowWhereParam interface { +type WorkflowConcurrencyWithPrismaGetConcurrencyGroupWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - windowField() + workflowConcurrencyModel() + getConcurrencyGroupField() } -type tenantResourceLimitWithPrismaWindowEqualsParam struct { +type workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaWindowEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaWindowEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaWindowEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaWindowEqualsParam) windowField() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) getConcurrencyGroupField() {} -func (tenantResourceLimitWithPrismaWindowSetParam) settable() {} -func (tenantResourceLimitWithPrismaWindowEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) settable() {} +func (workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) equals() {} -type tenantResourceLimitWithPrismaWindowEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaWindowEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaWindowEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaWindowEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaWindowEqualsUniqueParam) windowField() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) workflowConcurrencyModel() { +} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) getConcurrencyGroupField() { +} -func (tenantResourceLimitWithPrismaWindowEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaWindowEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaLastRefillEqualsSetParam interface { +type WorkflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - lastRefillField() + workflowConcurrencyModel() + getConcurrencyGroupIDField() } -type TenantResourceLimitWithPrismaLastRefillSetParam interface { +type WorkflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - lastRefillField() + workflowConcurrencyModel() + getConcurrencyGroupIDField() } -type tenantResourceLimitWithPrismaLastRefillSetParam struct { +type workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaLastRefillSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaLastRefillSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaLastRefillSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaLastRefillSetParam) lastRefillField() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) getConcurrencyGroupIDField() {} -type TenantResourceLimitWithPrismaLastRefillWhereParam interface { +type WorkflowConcurrencyWithPrismaGetConcurrencyGroupIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - lastRefillField() + workflowConcurrencyModel() + getConcurrencyGroupIDField() } -type tenantResourceLimitWithPrismaLastRefillEqualsParam struct { +type workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaLastRefillEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaLastRefillEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaLastRefillEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaLastRefillEqualsParam) lastRefillField() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) getConcurrencyGroupIDField() {} -func (tenantResourceLimitWithPrismaLastRefillSetParam) settable() {} -func (tenantResourceLimitWithPrismaLastRefillEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) settable() {} +func (workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) equals() {} -type tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) lastRefillField() {} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) workflowConcurrencyModel() { +} +func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) getConcurrencyGroupIDField() { +} -func (tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaLastRefillEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaCustomValueMeterEqualsSetParam interface { +type WorkflowConcurrencyWithPrismaMaxRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - customValueMeterField() + workflowConcurrencyModel() + maxRunsField() } -type TenantResourceLimitWithPrismaCustomValueMeterSetParam interface { +type WorkflowConcurrencyWithPrismaMaxRunsSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - customValueMeterField() + workflowConcurrencyModel() + maxRunsField() } -type tenantResourceLimitWithPrismaCustomValueMeterSetParam struct { +type workflowConcurrencyWithPrismaMaxRunsSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaCustomValueMeterSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaMaxRunsSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaCustomValueMeterSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaMaxRunsSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaCustomValueMeterSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaMaxRunsSetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaCustomValueMeterSetParam) customValueMeterField() {} +func (p workflowConcurrencyWithPrismaMaxRunsSetParam) maxRunsField() {} -type TenantResourceLimitWithPrismaCustomValueMeterWhereParam interface { +type WorkflowConcurrencyWithPrismaMaxRunsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - customValueMeterField() + workflowConcurrencyModel() + maxRunsField() } -type tenantResourceLimitWithPrismaCustomValueMeterEqualsParam struct { +type workflowConcurrencyWithPrismaMaxRunsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaMaxRunsEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaMaxRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaMaxRunsEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) customValueMeterField() {} +func (p workflowConcurrencyWithPrismaMaxRunsEqualsParam) maxRunsField() {} -func (tenantResourceLimitWithPrismaCustomValueMeterSetParam) settable() {} -func (tenantResourceLimitWithPrismaCustomValueMeterEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaMaxRunsSetParam) settable() {} +func (workflowConcurrencyWithPrismaMaxRunsEqualsParam) equals() {} -type tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) customValueMeterField() {} +func (p workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) workflowConcurrencyModel() {} +func (p workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) maxRunsField() {} -func (tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaCustomValueMeterEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) equals() {} -type TenantResourceLimitWithPrismaAlertsEqualsSetParam interface { +type WorkflowConcurrencyWithPrismaLimitStrategyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitModel() - alertsField() + workflowConcurrencyModel() + limitStrategyField() } -type TenantResourceLimitWithPrismaAlertsSetParam interface { +type WorkflowConcurrencyWithPrismaLimitStrategySetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - alertsField() + workflowConcurrencyModel() + limitStrategyField() } -type tenantResourceLimitWithPrismaAlertsSetParam struct { +type workflowConcurrencyWithPrismaLimitStrategySetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaAlertsSetParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaLimitStrategySetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaAlertsSetParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaLimitStrategySetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaAlertsSetParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaLimitStrategySetParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaAlertsSetParam) alertsField() {} +func (p workflowConcurrencyWithPrismaLimitStrategySetParam) limitStrategyField() {} -type TenantResourceLimitWithPrismaAlertsWhereParam interface { +type WorkflowConcurrencyWithPrismaLimitStrategyWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitModel() - alertsField() + workflowConcurrencyModel() + limitStrategyField() } -type tenantResourceLimitWithPrismaAlertsEqualsParam struct { +type workflowConcurrencyWithPrismaLimitStrategyEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaAlertsEqualsParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaLimitStrategyEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaAlertsEqualsParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaLimitStrategyEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaAlertsEqualsParam) tenantResourceLimitModel() {} +func (p workflowConcurrencyWithPrismaLimitStrategyEqualsParam) workflowConcurrencyModel() {} -func (p tenantResourceLimitWithPrismaAlertsEqualsParam) alertsField() {} +func (p workflowConcurrencyWithPrismaLimitStrategyEqualsParam) limitStrategyField() {} -func (tenantResourceLimitWithPrismaAlertsSetParam) settable() {} -func (tenantResourceLimitWithPrismaAlertsEqualsParam) equals() {} +func (workflowConcurrencyWithPrismaLimitStrategySetParam) settable() {} +func (workflowConcurrencyWithPrismaLimitStrategyEqualsParam) equals() {} -type tenantResourceLimitWithPrismaAlertsEqualsUniqueParam struct { +type workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) field() builder.Field { +func (p workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) tenantResourceLimitModel() {} -func (p tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) alertsField() {} +func (p workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) workflowConcurrencyModel() {} +func (p workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) limitStrategyField() {} -func (tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) unique() {} -func (tenantResourceLimitWithPrismaAlertsEqualsUniqueParam) equals() {} +func (workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) unique() {} +func (workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) equals() {} -type tenantResourceLimitAlertActions struct { +type workflowTriggersActions struct { // client holds the prisma client client *PrismaClient } -var tenantResourceLimitAlertOutput = []builder.Output{ +var workflowTriggersOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, - {Name: "resourceLimitId"}, + {Name: "deletedAt"}, + {Name: "workflowVersionId"}, {Name: "tenantId"}, - {Name: "resource"}, - {Name: "alertType"}, - {Name: "value"}, - {Name: "limit"}, } -type TenantResourceLimitAlertRelationWith interface { +type WorkflowTriggersRelationWith interface { getQuery() builder.Query with() - tenantResourceLimitAlertRelation() + workflowTriggersRelation() } -type TenantResourceLimitAlertWhereParam interface { +type WorkflowTriggersWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() } -type tenantResourceLimitAlertDefaultParam struct { +type workflowTriggersDefaultParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertDefaultParam) field() builder.Field { +func (p workflowTriggersDefaultParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertDefaultParam) getQuery() builder.Query { +func (p workflowTriggersDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertDefaultParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersDefaultParam) workflowTriggersModel() {} -type TenantResourceLimitAlertOrderByParam interface { +type WorkflowTriggersOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() } -type tenantResourceLimitAlertOrderByParam struct { +type workflowTriggersOrderByParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertOrderByParam) field() builder.Field { +func (p workflowTriggersOrderByParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertOrderByParam) getQuery() builder.Query { +func (p workflowTriggersOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertOrderByParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersOrderByParam) workflowTriggersModel() {} -type TenantResourceLimitAlertCursorParam interface { +type WorkflowTriggersCursorParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() isCursor() } -type tenantResourceLimitAlertCursorParam struct { +type workflowTriggersCursorParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertCursorParam) field() builder.Field { +func (p workflowTriggersCursorParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertCursorParam) isCursor() {} +func (p workflowTriggersCursorParam) isCursor() {} -func (p tenantResourceLimitAlertCursorParam) getQuery() builder.Query { +func (p workflowTriggersCursorParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertCursorParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersCursorParam) workflowTriggersModel() {} -type TenantResourceLimitAlertParamUnique interface { +type WorkflowTriggersParamUnique interface { field() builder.Field getQuery() builder.Query unique() - tenantResourceLimitAlertModel() + workflowTriggersModel() } -type tenantResourceLimitAlertParamUnique struct { +type workflowTriggersParamUnique struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertParamUnique) tenantResourceLimitAlertModel() {} +func (p workflowTriggersParamUnique) workflowTriggersModel() {} -func (tenantResourceLimitAlertParamUnique) unique() {} +func (workflowTriggersParamUnique) unique() {} -func (p tenantResourceLimitAlertParamUnique) field() builder.Field { +func (p workflowTriggersParamUnique) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertParamUnique) getQuery() builder.Query { +func (p workflowTriggersParamUnique) getQuery() builder.Query { return p.query } -type TenantResourceLimitAlertEqualsWhereParam interface { +type WorkflowTriggersEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() + workflowTriggersModel() } -type tenantResourceLimitAlertEqualsParam struct { +type workflowTriggersEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersEqualsParam) workflowTriggersModel() {} -func (tenantResourceLimitAlertEqualsParam) equals() {} +func (workflowTriggersEqualsParam) equals() {} -func (p tenantResourceLimitAlertEqualsParam) field() builder.Field { +func (p workflowTriggersEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertEqualsParam) getQuery() builder.Query { +func (p workflowTriggersEqualsParam) getQuery() builder.Query { return p.query } -type TenantResourceLimitAlertEqualsUniqueWhereParam interface { +type WorkflowTriggersEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - tenantResourceLimitAlertModel() + workflowTriggersModel() } -type tenantResourceLimitAlertEqualsUniqueParam struct { +type workflowTriggersEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertEqualsUniqueParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersEqualsUniqueParam) workflowTriggersModel() {} -func (tenantResourceLimitAlertEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertEqualsUniqueParam) equals() {} +func (workflowTriggersEqualsUniqueParam) unique() {} +func (workflowTriggersEqualsUniqueParam) equals() {} -func (p tenantResourceLimitAlertEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersEqualsUniqueParam) getQuery() builder.Query { return p.query } -type TenantResourceLimitAlertSetParam interface { +type WorkflowTriggersSetParam interface { field() builder.Field settable() - tenantResourceLimitAlertModel() + workflowTriggersModel() } -type tenantResourceLimitAlertSetParam struct { +type workflowTriggersSetParam struct { data builder.Field } -func (tenantResourceLimitAlertSetParam) settable() {} +func (workflowTriggersSetParam) settable() {} -func (p tenantResourceLimitAlertSetParam) field() builder.Field { +func (p workflowTriggersSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersSetParam) workflowTriggersModel() {} -type TenantResourceLimitAlertWithPrismaIDEqualsSetParam interface { +type WorkflowTriggersWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() + workflowTriggersModel() idField() } -type TenantResourceLimitAlertWithPrismaIDSetParam interface { +type WorkflowTriggersWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() idField() } -type tenantResourceLimitAlertWithPrismaIDSetParam struct { +type workflowTriggersWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaIDSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaIDSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaIDSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaIDSetParam) idField() {} +func (p workflowTriggersWithPrismaIDSetParam) idField() {} -type TenantResourceLimitAlertWithPrismaIDWhereParam interface { +type WorkflowTriggersWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() idField() } -type tenantResourceLimitAlertWithPrismaIDEqualsParam struct { +type workflowTriggersWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaIDEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaIDEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaIDEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaIDEqualsParam) idField() {} +func (p workflowTriggersWithPrismaIDEqualsParam) idField() {} -func (tenantResourceLimitAlertWithPrismaIDSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaIDEqualsParam) equals() {} +func (workflowTriggersWithPrismaIDSetParam) settable() {} +func (workflowTriggersWithPrismaIDEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam struct { +type workflowTriggersWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) tenantResourceLimitAlertModel() {} -func (p tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) idField() {} +func (p workflowTriggersWithPrismaIDEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaIDEqualsUniqueParam) idField() {} -func (tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaIDEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaIDEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaCreatedAtEqualsSetParam interface { +type WorkflowTriggersWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() + workflowTriggersModel() createdAtField() } -type TenantResourceLimitAlertWithPrismaCreatedAtSetParam interface { +type WorkflowTriggersWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() createdAtField() } -type tenantResourceLimitAlertWithPrismaCreatedAtSetParam struct { +type workflowTriggersWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaCreatedAtSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaCreatedAtSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaCreatedAtSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaCreatedAtSetParam) createdAtField() {} +func (p workflowTriggersWithPrismaCreatedAtSetParam) createdAtField() {} -type TenantResourceLimitAlertWithPrismaCreatedAtWhereParam interface { +type WorkflowTriggersWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() createdAtField() } -type tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam struct { +type workflowTriggersWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaCreatedAtEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p workflowTriggersWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (tenantResourceLimitAlertWithPrismaCreatedAtSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaCreatedAtEqualsParam) equals() {} +func (workflowTriggersWithPrismaCreatedAtSetParam) settable() {} +func (workflowTriggersWithPrismaCreatedAtEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam struct { +type workflowTriggersWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) tenantResourceLimitAlertModel() { -} -func (p tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaUpdatedAtEqualsSetParam interface { +type WorkflowTriggersWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() + workflowTriggersModel() updatedAtField() } -type TenantResourceLimitAlertWithPrismaUpdatedAtSetParam interface { +type WorkflowTriggersWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() updatedAtField() } -type tenantResourceLimitAlertWithPrismaUpdatedAtSetParam struct { +type workflowTriggersWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaUpdatedAtSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p workflowTriggersWithPrismaUpdatedAtSetParam) updatedAtField() {} -type TenantResourceLimitAlertWithPrismaUpdatedAtWhereParam interface { +type WorkflowTriggersWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() + workflowTriggersModel() updatedAtField() } -type tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data -} - -func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { - return p.query -} - -func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) tenantResourceLimitAlertModel() {} - -func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) updatedAtField() {} - -func (tenantResourceLimitAlertWithPrismaUpdatedAtSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaUpdatedAtEqualsParam) equals() {} - -type tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} - -func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { - return p.data -} - -func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query -} - -func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) tenantResourceLimitAlertModel() { -} -func (p tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaUpdatedAtEqualsUniqueParam) equals() {} - -type TenantResourceLimitAlertWithPrismaResourceLimitEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantResourceLimitAlertModel() - resourceLimitField() -} - -type TenantResourceLimitAlertWithPrismaResourceLimitSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantResourceLimitAlertModel() - resourceLimitField() -} - -type tenantResourceLimitAlertWithPrismaResourceLimitSetParam struct { - data builder.Field - query builder.Query -} - -func (p tenantResourceLimitAlertWithPrismaResourceLimitSetParam) field() builder.Field { - return p.data -} - -func (p tenantResourceLimitAlertWithPrismaResourceLimitSetParam) getQuery() builder.Query { - return p.query -} - -func (p tenantResourceLimitAlertWithPrismaResourceLimitSetParam) tenantResourceLimitAlertModel() {} - -func (p tenantResourceLimitAlertWithPrismaResourceLimitSetParam) resourceLimitField() {} - -type TenantResourceLimitAlertWithPrismaResourceLimitWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantResourceLimitAlertModel() - resourceLimitField() -} - -type tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam struct { +type workflowTriggersWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaUpdatedAtEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) resourceLimitField() {} +func (p workflowTriggersWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (tenantResourceLimitAlertWithPrismaResourceLimitSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaResourceLimitEqualsParam) equals() {} +func (workflowTriggersWithPrismaUpdatedAtSetParam) settable() {} +func (workflowTriggersWithPrismaUpdatedAtEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam struct { +type workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) tenantResourceLimitAlertModel() { -} -func (p tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) resourceLimitField() {} +func (p workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaResourceLimitEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaResourceLimitIDEqualsSetParam interface { +type WorkflowTriggersWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() - resourceLimitIDField() + workflowTriggersModel() + deletedAtField() } -type TenantResourceLimitAlertWithPrismaResourceLimitIDSetParam interface { +type WorkflowTriggersWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - resourceLimitIDField() + workflowTriggersModel() + deletedAtField() } -type tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam struct { +type workflowTriggersWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaDeletedAtSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) resourceLimitIDField() {} +func (p workflowTriggersWithPrismaDeletedAtSetParam) deletedAtField() {} -type TenantResourceLimitAlertWithPrismaResourceLimitIDWhereParam interface { +type WorkflowTriggersWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - resourceLimitIDField() + workflowTriggersModel() + deletedAtField() } -type tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam struct { +type workflowTriggersWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) tenantResourceLimitAlertModel() { -} +func (p workflowTriggersWithPrismaDeletedAtEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) resourceLimitIDField() {} +func (p workflowTriggersWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (tenantResourceLimitAlertWithPrismaResourceLimitIDSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsParam) equals() {} +func (workflowTriggersWithPrismaDeletedAtSetParam) settable() {} +func (workflowTriggersWithPrismaDeletedAtEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam struct { +type workflowTriggersWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) tenantResourceLimitAlertModel() { -} -func (p tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) resourceLimitIDField() {} +func (p workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaResourceLimitIDEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaTenantEqualsSetParam interface { +type WorkflowTriggersWithPrismaWorkflowEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() - tenantField() + workflowTriggersModel() + workflowField() } -type TenantResourceLimitAlertWithPrismaTenantSetParam interface { +type WorkflowTriggersWithPrismaWorkflowSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - tenantField() + workflowTriggersModel() + workflowField() } -type tenantResourceLimitAlertWithPrismaTenantSetParam struct { +type workflowTriggersWithPrismaWorkflowSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaTenantSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaWorkflowSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaTenantSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaWorkflowSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaTenantSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaWorkflowSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaTenantSetParam) tenantField() {} +func (p workflowTriggersWithPrismaWorkflowSetParam) workflowField() {} -type TenantResourceLimitAlertWithPrismaTenantWhereParam interface { +type WorkflowTriggersWithPrismaWorkflowWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - tenantField() + workflowTriggersModel() + workflowField() } -type tenantResourceLimitAlertWithPrismaTenantEqualsParam struct { +type workflowTriggersWithPrismaWorkflowEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaTenantEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaWorkflowEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaWorkflowEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaTenantEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaWorkflowEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaTenantEqualsParam) tenantField() {} +func (p workflowTriggersWithPrismaWorkflowEqualsParam) workflowField() {} -func (tenantResourceLimitAlertWithPrismaTenantSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaTenantEqualsParam) equals() {} +func (workflowTriggersWithPrismaWorkflowSetParam) settable() {} +func (workflowTriggersWithPrismaWorkflowEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam struct { +type workflowTriggersWithPrismaWorkflowEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) tenantResourceLimitAlertModel() {} -func (p tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p workflowTriggersWithPrismaWorkflowEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaWorkflowEqualsUniqueParam) workflowField() {} -func (tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaTenantEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaWorkflowEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaWorkflowEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaTenantIDEqualsSetParam interface { +type WorkflowTriggersWithPrismaWorkflowVersionIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() - tenantIDField() + workflowTriggersModel() + workflowVersionIDField() } -type TenantResourceLimitAlertWithPrismaTenantIDSetParam interface { +type WorkflowTriggersWithPrismaWorkflowVersionIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - tenantIDField() + workflowTriggersModel() + workflowVersionIDField() } -type tenantResourceLimitAlertWithPrismaTenantIDSetParam struct { +type workflowTriggersWithPrismaWorkflowVersionIDSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaTenantIDSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaWorkflowVersionIDSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaWorkflowVersionIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaTenantIDSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaWorkflowVersionIDSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaTenantIDSetParam) tenantIDField() {} +func (p workflowTriggersWithPrismaWorkflowVersionIDSetParam) workflowVersionIDField() {} -type TenantResourceLimitAlertWithPrismaTenantIDWhereParam interface { +type WorkflowTriggersWithPrismaWorkflowVersionIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - tenantIDField() + workflowTriggersModel() + workflowVersionIDField() } -type tenantResourceLimitAlertWithPrismaTenantIDEqualsParam struct { +type workflowTriggersWithPrismaWorkflowVersionIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) workflowVersionIDField() {} -func (tenantResourceLimitAlertWithPrismaTenantIDSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaTenantIDEqualsParam) equals() {} +func (workflowTriggersWithPrismaWorkflowVersionIDSetParam) settable() {} +func (workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam struct { +type workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) tenantResourceLimitAlertModel() { -} -func (p tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowVersionIDField() {} -func (tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaResourceEqualsSetParam interface { +type WorkflowTriggersWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() - resourceField() + workflowTriggersModel() + tenantField() } -type TenantResourceLimitAlertWithPrismaResourceSetParam interface { +type WorkflowTriggersWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - resourceField() + workflowTriggersModel() + tenantField() } -type tenantResourceLimitAlertWithPrismaResourceSetParam struct { +type workflowTriggersWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaResourceSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaResourceSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaResourceSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaTenantSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaResourceSetParam) resourceField() {} +func (p workflowTriggersWithPrismaTenantSetParam) tenantField() {} -type TenantResourceLimitAlertWithPrismaResourceWhereParam interface { +type WorkflowTriggersWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - resourceField() + workflowTriggersModel() + tenantField() } -type tenantResourceLimitAlertWithPrismaResourceEqualsParam struct { +type workflowTriggersWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaResourceEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaResourceEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaResourceEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaTenantEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaResourceEqualsParam) resourceField() {} +func (p workflowTriggersWithPrismaTenantEqualsParam) tenantField() {} -func (tenantResourceLimitAlertWithPrismaResourceSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaResourceEqualsParam) equals() {} +func (workflowTriggersWithPrismaTenantSetParam) settable() {} +func (workflowTriggersWithPrismaTenantEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam struct { +type workflowTriggersWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) tenantResourceLimitAlertModel() { -} -func (p tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) resourceField() {} +func (p workflowTriggersWithPrismaTenantEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaResourceEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaTenantEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaTenantEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaAlertTypeEqualsSetParam interface { +type WorkflowTriggersWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() - alertTypeField() + workflowTriggersModel() + tenantIDField() } -type TenantResourceLimitAlertWithPrismaAlertTypeSetParam interface { +type WorkflowTriggersWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - alertTypeField() + workflowTriggersModel() + tenantIDField() } -type tenantResourceLimitAlertWithPrismaAlertTypeSetParam struct { +type workflowTriggersWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaAlertTypeSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaAlertTypeSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaAlertTypeSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaTenantIDSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaAlertTypeSetParam) alertTypeField() {} +func (p workflowTriggersWithPrismaTenantIDSetParam) tenantIDField() {} -type TenantResourceLimitAlertWithPrismaAlertTypeWhereParam interface { +type WorkflowTriggersWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - alertTypeField() + workflowTriggersModel() + tenantIDField() } -type tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam struct { +type workflowTriggersWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaTenantIDEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) alertTypeField() {} +func (p workflowTriggersWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (tenantResourceLimitAlertWithPrismaAlertTypeSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaAlertTypeEqualsParam) equals() {} +func (workflowTriggersWithPrismaTenantIDSetParam) settable() {} +func (workflowTriggersWithPrismaTenantIDEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam struct { +type workflowTriggersWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) tenantResourceLimitAlertModel() { -} -func (p tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) alertTypeField() {} +func (p workflowTriggersWithPrismaTenantIDEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaAlertTypeEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaTenantIDEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaValueEqualsSetParam interface { +type WorkflowTriggersWithPrismaEventsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() - valueField() + workflowTriggersModel() + eventsField() } -type TenantResourceLimitAlertWithPrismaValueSetParam interface { +type WorkflowTriggersWithPrismaEventsSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - valueField() + workflowTriggersModel() + eventsField() } -type tenantResourceLimitAlertWithPrismaValueSetParam struct { +type workflowTriggersWithPrismaEventsSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaValueSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaEventsSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaValueSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaEventsSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaValueSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaEventsSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaValueSetParam) valueField() {} +func (p workflowTriggersWithPrismaEventsSetParam) eventsField() {} -type TenantResourceLimitAlertWithPrismaValueWhereParam interface { +type WorkflowTriggersWithPrismaEventsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - valueField() + workflowTriggersModel() + eventsField() } -type tenantResourceLimitAlertWithPrismaValueEqualsParam struct { +type workflowTriggersWithPrismaEventsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaValueEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaEventsEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaValueEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaEventsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaValueEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaEventsEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaValueEqualsParam) valueField() {} +func (p workflowTriggersWithPrismaEventsEqualsParam) eventsField() {} -func (tenantResourceLimitAlertWithPrismaValueSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaValueEqualsParam) equals() {} +func (workflowTriggersWithPrismaEventsSetParam) settable() {} +func (workflowTriggersWithPrismaEventsEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam struct { +type workflowTriggersWithPrismaEventsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaEventsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaEventsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) tenantResourceLimitAlertModel() {} -func (p tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) valueField() {} +func (p workflowTriggersWithPrismaEventsEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaEventsEqualsUniqueParam) eventsField() {} -func (tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaValueEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaEventsEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaEventsEqualsUniqueParam) equals() {} -type TenantResourceLimitAlertWithPrismaLimitEqualsSetParam interface { +type WorkflowTriggersWithPrismaCronsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantResourceLimitAlertModel() - limitField() + workflowTriggersModel() + cronsField() } -type TenantResourceLimitAlertWithPrismaLimitSetParam interface { +type WorkflowTriggersWithPrismaCronsSetParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - limitField() + workflowTriggersModel() + cronsField() } -type tenantResourceLimitAlertWithPrismaLimitSetParam struct { +type workflowTriggersWithPrismaCronsSetParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaLimitSetParam) field() builder.Field { +func (p workflowTriggersWithPrismaCronsSetParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaLimitSetParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaCronsSetParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaLimitSetParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaCronsSetParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaLimitSetParam) limitField() {} +func (p workflowTriggersWithPrismaCronsSetParam) cronsField() {} -type TenantResourceLimitAlertWithPrismaLimitWhereParam interface { +type WorkflowTriggersWithPrismaCronsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantResourceLimitAlertModel() - limitField() + workflowTriggersModel() + cronsField() } -type tenantResourceLimitAlertWithPrismaLimitEqualsParam struct { +type workflowTriggersWithPrismaCronsEqualsParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaLimitEqualsParam) field() builder.Field { +func (p workflowTriggersWithPrismaCronsEqualsParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaLimitEqualsParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaCronsEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaLimitEqualsParam) tenantResourceLimitAlertModel() {} +func (p workflowTriggersWithPrismaCronsEqualsParam) workflowTriggersModel() {} -func (p tenantResourceLimitAlertWithPrismaLimitEqualsParam) limitField() {} +func (p workflowTriggersWithPrismaCronsEqualsParam) cronsField() {} -func (tenantResourceLimitAlertWithPrismaLimitSetParam) settable() {} -func (tenantResourceLimitAlertWithPrismaLimitEqualsParam) equals() {} +func (workflowTriggersWithPrismaCronsSetParam) settable() {} +func (workflowTriggersWithPrismaCronsEqualsParam) equals() {} -type tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam struct { +type workflowTriggersWithPrismaCronsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) field() builder.Field { +func (p workflowTriggersWithPrismaCronsEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggersWithPrismaCronsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) tenantResourceLimitAlertModel() {} -func (p tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) limitField() {} +func (p workflowTriggersWithPrismaCronsEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowTriggersWithPrismaCronsEqualsUniqueParam) cronsField() {} -func (tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) unique() {} -func (tenantResourceLimitAlertWithPrismaLimitEqualsUniqueParam) equals() {} +func (workflowTriggersWithPrismaCronsEqualsUniqueParam) unique() {} +func (workflowTriggersWithPrismaCronsEqualsUniqueParam) equals() {} -type tenantAlertingSettingsActions struct { +type workflowTriggerEventRefActions struct { // client holds the prisma client client *PrismaClient } -var tenantAlertingSettingsOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "enableWorkflowRunFailureAlerts"}, - {Name: "enableExpiringTokenAlerts"}, - {Name: "enableTenantResourceLimitAlerts"}, - {Name: "maxFrequency"}, - {Name: "lastAlertedAt"}, - {Name: "tickerId"}, +var workflowTriggerEventRefOutput = []builder.Output{ + {Name: "parentId"}, + {Name: "eventKey"}, } -type TenantAlertingSettingsRelationWith interface { +type WorkflowTriggerEventRefRelationWith interface { getQuery() builder.Query with() - tenantAlertingSettingsRelation() + workflowTriggerEventRefRelation() } -type TenantAlertingSettingsWhereParam interface { +type WorkflowTriggerEventRefWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() + workflowTriggerEventRefModel() } -type tenantAlertingSettingsDefaultParam struct { +type workflowTriggerEventRefDefaultParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsDefaultParam) field() builder.Field { +func (p workflowTriggerEventRefDefaultParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsDefaultParam) getQuery() builder.Query { +func (p workflowTriggerEventRefDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsDefaultParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefDefaultParam) workflowTriggerEventRefModel() {} -type TenantAlertingSettingsOrderByParam interface { +type WorkflowTriggerEventRefOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() + workflowTriggerEventRefModel() } -type tenantAlertingSettingsOrderByParam struct { +type workflowTriggerEventRefOrderByParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsOrderByParam) field() builder.Field { +func (p workflowTriggerEventRefOrderByParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsOrderByParam) getQuery() builder.Query { +func (p workflowTriggerEventRefOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsOrderByParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefOrderByParam) workflowTriggerEventRefModel() {} -type TenantAlertingSettingsCursorParam interface { +type WorkflowTriggerEventRefCursorParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() + workflowTriggerEventRefModel() isCursor() } -type tenantAlertingSettingsCursorParam struct { +type workflowTriggerEventRefCursorParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsCursorParam) field() builder.Field { +func (p workflowTriggerEventRefCursorParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsCursorParam) isCursor() {} +func (p workflowTriggerEventRefCursorParam) isCursor() {} -func (p tenantAlertingSettingsCursorParam) getQuery() builder.Query { +func (p workflowTriggerEventRefCursorParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsCursorParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefCursorParam) workflowTriggerEventRefModel() {} -type TenantAlertingSettingsParamUnique interface { +type WorkflowTriggerEventRefParamUnique interface { field() builder.Field getQuery() builder.Query unique() - tenantAlertingSettingsModel() + workflowTriggerEventRefModel() } -type tenantAlertingSettingsParamUnique struct { +type workflowTriggerEventRefParamUnique struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsParamUnique) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefParamUnique) workflowTriggerEventRefModel() {} -func (tenantAlertingSettingsParamUnique) unique() {} +func (workflowTriggerEventRefParamUnique) unique() {} -func (p tenantAlertingSettingsParamUnique) field() builder.Field { +func (p workflowTriggerEventRefParamUnique) field() builder.Field { return p.data } -func (p tenantAlertingSettingsParamUnique) getQuery() builder.Query { +func (p workflowTriggerEventRefParamUnique) getQuery() builder.Query { return p.query } -type TenantAlertingSettingsEqualsWhereParam interface { +type WorkflowTriggerEventRefEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() + workflowTriggerEventRefModel() } -type tenantAlertingSettingsEqualsParam struct { +type workflowTriggerEventRefEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefEqualsParam) workflowTriggerEventRefModel() {} -func (tenantAlertingSettingsEqualsParam) equals() {} +func (workflowTriggerEventRefEqualsParam) equals() {} -func (p tenantAlertingSettingsEqualsParam) field() builder.Field { +func (p workflowTriggerEventRefEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsEqualsParam) getQuery() builder.Query { +func (p workflowTriggerEventRefEqualsParam) getQuery() builder.Query { return p.query } -type TenantAlertingSettingsEqualsUniqueWhereParam interface { +type WorkflowTriggerEventRefEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - tenantAlertingSettingsModel() + workflowTriggerEventRefModel() } -type tenantAlertingSettingsEqualsUniqueParam struct { +type workflowTriggerEventRefEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsEqualsUniqueParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefEqualsUniqueParam) workflowTriggerEventRefModel() {} -func (tenantAlertingSettingsEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsEqualsUniqueParam) equals() {} +func (workflowTriggerEventRefEqualsUniqueParam) unique() {} +func (workflowTriggerEventRefEqualsUniqueParam) equals() {} -func (p tenantAlertingSettingsEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerEventRefEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerEventRefEqualsUniqueParam) getQuery() builder.Query { return p.query } -type TenantAlertingSettingsSetParam interface { +type WorkflowTriggerEventRefSetParam interface { field() builder.Field settable() - tenantAlertingSettingsModel() + workflowTriggerEventRefModel() } -type tenantAlertingSettingsSetParam struct { +type workflowTriggerEventRefSetParam struct { data builder.Field } -func (tenantAlertingSettingsSetParam) settable() {} +func (workflowTriggerEventRefSetParam) settable() {} -func (p tenantAlertingSettingsSetParam) field() builder.Field { +func (p workflowTriggerEventRefSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsSetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefSetParam) workflowTriggerEventRefModel() {} -type TenantAlertingSettingsWithPrismaIDEqualsSetParam interface { +type WorkflowTriggerEventRefWithPrismaParentEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - idField() + workflowTriggerEventRefModel() + parentField() } -type TenantAlertingSettingsWithPrismaIDSetParam interface { +type WorkflowTriggerEventRefWithPrismaParentSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - idField() + workflowTriggerEventRefModel() + parentField() } -type tenantAlertingSettingsWithPrismaIDSetParam struct { +type workflowTriggerEventRefWithPrismaParentSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaIDSetParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaParentSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaParentSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaIDSetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefWithPrismaParentSetParam) workflowTriggerEventRefModel() {} -func (p tenantAlertingSettingsWithPrismaIDSetParam) idField() {} +func (p workflowTriggerEventRefWithPrismaParentSetParam) parentField() {} -type TenantAlertingSettingsWithPrismaIDWhereParam interface { +type WorkflowTriggerEventRefWithPrismaParentWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - idField() + workflowTriggerEventRefModel() + parentField() } -type tenantAlertingSettingsWithPrismaIDEqualsParam struct { +type workflowTriggerEventRefWithPrismaParentEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaIDEqualsParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaParentEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaParentEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaIDEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefWithPrismaParentEqualsParam) workflowTriggerEventRefModel() {} -func (p tenantAlertingSettingsWithPrismaIDEqualsParam) idField() {} +func (p workflowTriggerEventRefWithPrismaParentEqualsParam) parentField() {} -func (tenantAlertingSettingsWithPrismaIDSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaIDEqualsParam) equals() {} +func (workflowTriggerEventRefWithPrismaParentSetParam) settable() {} +func (workflowTriggerEventRefWithPrismaParentEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaIDEqualsUniqueParam struct { +type workflowTriggerEventRefWithPrismaParentEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (p tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) idField() {} +func (p workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) workflowTriggerEventRefModel() {} +func (p workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) parentField() {} -func (tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaIDEqualsUniqueParam) equals() {} +func (workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) unique() {} +func (workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaCreatedAtEqualsSetParam interface { +type WorkflowTriggerEventRefWithPrismaParentIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - createdAtField() + workflowTriggerEventRefModel() + parentIDField() } -type TenantAlertingSettingsWithPrismaCreatedAtSetParam interface { +type WorkflowTriggerEventRefWithPrismaParentIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - createdAtField() + workflowTriggerEventRefModel() + parentIDField() } -type tenantAlertingSettingsWithPrismaCreatedAtSetParam struct { +type workflowTriggerEventRefWithPrismaParentIDSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaCreatedAtSetParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaParentIDSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaParentIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaCreatedAtSetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefWithPrismaParentIDSetParam) workflowTriggerEventRefModel() {} -func (p tenantAlertingSettingsWithPrismaCreatedAtSetParam) createdAtField() {} +func (p workflowTriggerEventRefWithPrismaParentIDSetParam) parentIDField() {} -type TenantAlertingSettingsWithPrismaCreatedAtWhereParam interface { +type WorkflowTriggerEventRefWithPrismaParentIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - createdAtField() + workflowTriggerEventRefModel() + parentIDField() } -type tenantAlertingSettingsWithPrismaCreatedAtEqualsParam struct { +type workflowTriggerEventRefWithPrismaParentIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaParentIDEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaParentIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefWithPrismaParentIDEqualsParam) workflowTriggerEventRefModel() {} -func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p workflowTriggerEventRefWithPrismaParentIDEqualsParam) parentIDField() {} -func (tenantAlertingSettingsWithPrismaCreatedAtSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaCreatedAtEqualsParam) equals() {} +func (workflowTriggerEventRefWithPrismaParentIDSetParam) settable() {} +func (workflowTriggerEventRefWithPrismaParentIDEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam struct { +type workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (p tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) workflowTriggerEventRefModel() {} +func (p workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) parentIDField() {} -func (tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) unique() {} +func (workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaUpdatedAtEqualsSetParam interface { +type WorkflowTriggerEventRefWithPrismaEventKeyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - updatedAtField() + workflowTriggerEventRefModel() + eventKeyField() } -type TenantAlertingSettingsWithPrismaUpdatedAtSetParam interface { +type WorkflowTriggerEventRefWithPrismaEventKeySetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - updatedAtField() + workflowTriggerEventRefModel() + eventKeyField() } -type tenantAlertingSettingsWithPrismaUpdatedAtSetParam struct { +type workflowTriggerEventRefWithPrismaEventKeySetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaEventKeySetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaEventKeySetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaUpdatedAtSetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefWithPrismaEventKeySetParam) workflowTriggerEventRefModel() {} -func (p tenantAlertingSettingsWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p workflowTriggerEventRefWithPrismaEventKeySetParam) eventKeyField() {} -type TenantAlertingSettingsWithPrismaUpdatedAtWhereParam interface { +type WorkflowTriggerEventRefWithPrismaEventKeyWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - updatedAtField() + workflowTriggerEventRefModel() + eventKeyField() } -type tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam struct { +type workflowTriggerEventRefWithPrismaEventKeyEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaEventKeyEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaEventKeyEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerEventRefWithPrismaEventKeyEqualsParam) workflowTriggerEventRefModel() {} -func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p workflowTriggerEventRefWithPrismaEventKeyEqualsParam) eventKeyField() {} -func (tenantAlertingSettingsWithPrismaUpdatedAtSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaUpdatedAtEqualsParam) equals() {} +func (workflowTriggerEventRefWithPrismaEventKeySetParam) settable() {} +func (workflowTriggerEventRefWithPrismaEventKeyEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam struct { +type workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (p tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) workflowTriggerEventRefModel() {} +func (p workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) eventKeyField() {} -func (tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) unique() {} +func (workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaDeletedAtEqualsSetParam interface { - field() builder.Field +type workflowTriggerCronRefActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workflowTriggerCronRefOutput = []builder.Output{ + {Name: "parentId"}, + {Name: "cron"}, + {Name: "enabled"}, + {Name: "tickerId"}, + {Name: "input"}, +} + +type WorkflowTriggerCronRefRelationWith interface { getQuery() builder.Query - equals() - tenantAlertingSettingsModel() - deletedAtField() + with() + workflowTriggerCronRefRelation() } -type TenantAlertingSettingsWithPrismaDeletedAtSetParam interface { +type WorkflowTriggerCronRefWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - deletedAtField() + workflowTriggerCronRefModel() } -type tenantAlertingSettingsWithPrismaDeletedAtSetParam struct { +type workflowTriggerCronRefDefaultParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaDeletedAtSetParam) field() builder.Field { +func (p workflowTriggerCronRefDefaultParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaDeletedAtSetParam) tenantAlertingSettingsModel() {} - -func (p tenantAlertingSettingsWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p workflowTriggerCronRefDefaultParam) workflowTriggerCronRefModel() {} -type TenantAlertingSettingsWithPrismaDeletedAtWhereParam interface { +type WorkflowTriggerCronRefOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - deletedAtField() + workflowTriggerCronRefModel() } -type tenantAlertingSettingsWithPrismaDeletedAtEqualsParam struct { +type workflowTriggerCronRefOrderByParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefOrderByParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) tenantAlertingSettingsModel() {} - -func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p workflowTriggerCronRefOrderByParam) workflowTriggerCronRefModel() {} -func (tenantAlertingSettingsWithPrismaDeletedAtSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaDeletedAtEqualsParam) equals() {} +type WorkflowTriggerCronRefCursorParam interface { + field() builder.Field + getQuery() builder.Query + workflowTriggerCronRefModel() + isCursor() +} -type tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam struct { +type workflowTriggerCronRefCursorParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefCursorParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefCursorParam) isCursor() {} + +func (p workflowTriggerCronRefCursorParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (p tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} - -func (tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaDeletedAtEqualsUniqueParam) equals() {} - -type TenantAlertingSettingsWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertingSettingsModel() - tenantField() -} +func (p workflowTriggerCronRefCursorParam) workflowTriggerCronRefModel() {} -type TenantAlertingSettingsWithPrismaTenantSetParam interface { +type WorkflowTriggerCronRefParamUnique interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - tenantField() + unique() + workflowTriggerCronRefModel() } -type tenantAlertingSettingsWithPrismaTenantSetParam struct { +type workflowTriggerCronRefParamUnique struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTenantSetParam) field() builder.Field { +func (p workflowTriggerCronRefParamUnique) workflowTriggerCronRefModel() {} + +func (workflowTriggerCronRefParamUnique) unique() {} + +func (p workflowTriggerCronRefParamUnique) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTenantSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefParamUnique) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTenantSetParam) tenantAlertingSettingsModel() {} - -func (p tenantAlertingSettingsWithPrismaTenantSetParam) tenantField() {} - -type TenantAlertingSettingsWithPrismaTenantWhereParam interface { +type WorkflowTriggerCronRefEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - tenantField() + equals() + workflowTriggerCronRefModel() } -type tenantAlertingSettingsWithPrismaTenantEqualsParam struct { +type workflowTriggerCronRefEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTenantEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefEqualsParam) workflowTriggerCronRefModel() {} + +func (workflowTriggerCronRefEqualsParam) equals() {} + +func (p workflowTriggerCronRefEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTenantEqualsParam) tenantAlertingSettingsModel() {} - -func (p tenantAlertingSettingsWithPrismaTenantEqualsParam) tenantField() {} - -func (tenantAlertingSettingsWithPrismaTenantSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaTenantEqualsParam) equals() {} +type WorkflowTriggerCronRefEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workflowTriggerCronRefModel() +} -type tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam struct { +type workflowTriggerCronRefEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefEqualsUniqueParam) workflowTriggerCronRefModel() {} + +func (workflowTriggerCronRefEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefEqualsUniqueParam) equals() {} + +func (p workflowTriggerCronRefEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (p tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) tenantField() {} +type WorkflowTriggerCronRefSetParam interface { + field() builder.Field + settable() + workflowTriggerCronRefModel() +} -func (tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaTenantEqualsUniqueParam) equals() {} +type workflowTriggerCronRefSetParam struct { + data builder.Field +} -type TenantAlertingSettingsWithPrismaTenantIDEqualsSetParam interface { +func (workflowTriggerCronRefSetParam) settable() {} + +func (p workflowTriggerCronRefSetParam) field() builder.Field { + return p.data +} + +func (p workflowTriggerCronRefSetParam) workflowTriggerCronRefModel() {} + +type WorkflowTriggerCronRefWithPrismaParentEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - tenantIDField() + workflowTriggerCronRefModel() + parentField() } -type TenantAlertingSettingsWithPrismaTenantIDSetParam interface { +type WorkflowTriggerCronRefWithPrismaParentSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - tenantIDField() + workflowTriggerCronRefModel() + parentField() } -type tenantAlertingSettingsWithPrismaTenantIDSetParam struct { +type workflowTriggerCronRefWithPrismaParentSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTenantIDSetParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaParentSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaParentSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTenantIDSetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaParentSetParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaTenantIDSetParam) tenantIDField() {} +func (p workflowTriggerCronRefWithPrismaParentSetParam) parentField() {} -type TenantAlertingSettingsWithPrismaTenantIDWhereParam interface { +type WorkflowTriggerCronRefWithPrismaParentWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - tenantIDField() + workflowTriggerCronRefModel() + parentField() } -type tenantAlertingSettingsWithPrismaTenantIDEqualsParam struct { +type workflowTriggerCronRefWithPrismaParentEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaParentEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaParentEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTenantIDEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaParentEqualsParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p workflowTriggerCronRefWithPrismaParentEqualsParam) parentField() {} -func (tenantAlertingSettingsWithPrismaTenantIDSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaTenantIDEqualsParam) equals() {} +func (workflowTriggerCronRefWithPrismaParentSetParam) settable() {} +func (workflowTriggerCronRefWithPrismaParentEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam struct { +type workflowTriggerCronRefWithPrismaParentEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (p tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) workflowTriggerCronRefModel() {} +func (p workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) parentField() {} -func (tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsSetParam interface { +type WorkflowTriggerCronRefWithPrismaParentIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - enableWorkflowRunFailureAlertsField() + workflowTriggerCronRefModel() + parentIDField() } -type TenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam interface { +type WorkflowTriggerCronRefWithPrismaParentIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - enableWorkflowRunFailureAlertsField() + workflowTriggerCronRefModel() + parentIDField() } -type tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam struct { +type workflowTriggerCronRefWithPrismaParentIDSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaParentIDSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaParentIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) tenantAlertingSettingsModel() { -} +func (p workflowTriggerCronRefWithPrismaParentIDSetParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) enableWorkflowRunFailureAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaParentIDSetParam) parentIDField() {} -type TenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsWhereParam interface { +type WorkflowTriggerCronRefWithPrismaParentIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - enableWorkflowRunFailureAlertsField() + workflowTriggerCronRefModel() + parentIDField() } -type tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam struct { +type workflowTriggerCronRefWithPrismaParentIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaParentIDEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaParentIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) tenantAlertingSettingsModel() { -} +func (p workflowTriggerCronRefWithPrismaParentIDEqualsParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) enableWorkflowRunFailureAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaParentIDEqualsParam) parentIDField() {} -func (tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsParam) equals() {} +func (workflowTriggerCronRefWithPrismaParentIDSetParam) settable() {} +func (workflowTriggerCronRefWithPrismaParentIDEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam struct { +type workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) tenantAlertingSettingsModel() { -} -func (p tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) enableWorkflowRunFailureAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) workflowTriggerCronRefModel() {} +func (p workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) parentIDField() {} -func (tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaEnableWorkflowRunFailureAlertsEqualsUniqueParam) equals() {} +func (workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsSetParam interface { +type WorkflowTriggerCronRefWithPrismaCronEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - enableExpiringTokenAlertsField() + workflowTriggerCronRefModel() + cronField() } -type TenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam interface { +type WorkflowTriggerCronRefWithPrismaCronSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - enableExpiringTokenAlertsField() + workflowTriggerCronRefModel() + cronField() } -type tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam struct { +type workflowTriggerCronRefWithPrismaCronSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaCronSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaCronSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) tenantAlertingSettingsModel() { -} +func (p workflowTriggerCronRefWithPrismaCronSetParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) enableExpiringTokenAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaCronSetParam) cronField() {} -type TenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsWhereParam interface { +type WorkflowTriggerCronRefWithPrismaCronWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - enableExpiringTokenAlertsField() + workflowTriggerCronRefModel() + cronField() } -type tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam struct { +type workflowTriggerCronRefWithPrismaCronEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaCronEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaCronEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) tenantAlertingSettingsModel() { -} +func (p workflowTriggerCronRefWithPrismaCronEqualsParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) enableExpiringTokenAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaCronEqualsParam) cronField() {} -func (tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsParam) equals() {} +func (workflowTriggerCronRefWithPrismaCronSetParam) settable() {} +func (workflowTriggerCronRefWithPrismaCronEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam struct { +type workflowTriggerCronRefWithPrismaCronEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) tenantAlertingSettingsModel() { -} -func (p tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) enableExpiringTokenAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) workflowTriggerCronRefModel() {} +func (p workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) cronField() {} -func (tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaEnableExpiringTokenAlertsEqualsUniqueParam) equals() {} +func (workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsSetParam interface { +type WorkflowTriggerCronRefWithPrismaEnabledEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - enableTenantResourceLimitAlertsField() + workflowTriggerCronRefModel() + enabledField() } -type TenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam interface { +type WorkflowTriggerCronRefWithPrismaEnabledSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - enableTenantResourceLimitAlertsField() + workflowTriggerCronRefModel() + enabledField() } -type tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam struct { +type workflowTriggerCronRefWithPrismaEnabledSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaEnabledSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaEnabledSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) tenantAlertingSettingsModel() { -} +func (p workflowTriggerCronRefWithPrismaEnabledSetParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) enableTenantResourceLimitAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaEnabledSetParam) enabledField() {} -type TenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsWhereParam interface { +type WorkflowTriggerCronRefWithPrismaEnabledWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - enableTenantResourceLimitAlertsField() + workflowTriggerCronRefModel() + enabledField() } -type tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam struct { +type workflowTriggerCronRefWithPrismaEnabledEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaEnabledEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaEnabledEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) tenantAlertingSettingsModel() { -} +func (p workflowTriggerCronRefWithPrismaEnabledEqualsParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) enableTenantResourceLimitAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaEnabledEqualsParam) enabledField() {} -func (tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsParam) equals() {} +func (workflowTriggerCronRefWithPrismaEnabledSetParam) settable() {} +func (workflowTriggerCronRefWithPrismaEnabledEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam struct { +type workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) tenantAlertingSettingsModel() { -} -func (p tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) enableTenantResourceLimitAlertsField() { -} +func (p workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) workflowTriggerCronRefModel() {} +func (p workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) enabledField() {} -func (tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaEnableTenantResourceLimitAlertsEqualsUniqueParam) equals() {} +func (workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaMaxFrequencyEqualsSetParam interface { +type WorkflowTriggerCronRefWithPrismaTickerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - maxFrequencyField() + workflowTriggerCronRefModel() + tickerField() } -type TenantAlertingSettingsWithPrismaMaxFrequencySetParam interface { +type WorkflowTriggerCronRefWithPrismaTickerSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - maxFrequencyField() + workflowTriggerCronRefModel() + tickerField() } -type tenantAlertingSettingsWithPrismaMaxFrequencySetParam struct { +type workflowTriggerCronRefWithPrismaTickerSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaMaxFrequencySetParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTickerSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaMaxFrequencySetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTickerSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaMaxFrequencySetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaTickerSetParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaMaxFrequencySetParam) maxFrequencyField() {} +func (p workflowTriggerCronRefWithPrismaTickerSetParam) tickerField() {} -type TenantAlertingSettingsWithPrismaMaxFrequencyWhereParam interface { +type WorkflowTriggerCronRefWithPrismaTickerWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - maxFrequencyField() + workflowTriggerCronRefModel() + tickerField() } -type tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam struct { +type workflowTriggerCronRefWithPrismaTickerEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTickerEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTickerEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaTickerEqualsParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) maxFrequencyField() {} +func (p workflowTriggerCronRefWithPrismaTickerEqualsParam) tickerField() {} -func (tenantAlertingSettingsWithPrismaMaxFrequencySetParam) settable() {} -func (tenantAlertingSettingsWithPrismaMaxFrequencyEqualsParam) equals() {} +func (workflowTriggerCronRefWithPrismaTickerSetParam) settable() {} +func (workflowTriggerCronRefWithPrismaTickerEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam struct { +type workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) tenantAlertingSettingsModel() { -} -func (p tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) maxFrequencyField() {} +func (p workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) workflowTriggerCronRefModel() {} +func (p workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) tickerField() {} -func (tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaMaxFrequencyEqualsUniqueParam) equals() {} +func (workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaLastAlertedAtEqualsSetParam interface { +type WorkflowTriggerCronRefWithPrismaTickerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - lastAlertedAtField() + workflowTriggerCronRefModel() + tickerIDField() } -type TenantAlertingSettingsWithPrismaLastAlertedAtSetParam interface { +type WorkflowTriggerCronRefWithPrismaTickerIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - lastAlertedAtField() + workflowTriggerCronRefModel() + tickerIDField() } -type tenantAlertingSettingsWithPrismaLastAlertedAtSetParam struct { +type workflowTriggerCronRefWithPrismaTickerIDSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTickerIDSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTickerIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaTickerIDSetParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) lastAlertedAtField() {} +func (p workflowTriggerCronRefWithPrismaTickerIDSetParam) tickerIDField() {} -type TenantAlertingSettingsWithPrismaLastAlertedAtWhereParam interface { +type WorkflowTriggerCronRefWithPrismaTickerIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - lastAlertedAtField() + workflowTriggerCronRefModel() + tickerIDField() } -type tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam struct { +type workflowTriggerCronRefWithPrismaTickerIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTickerIDEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTickerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaTickerIDEqualsParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) lastAlertedAtField() {} +func (p workflowTriggerCronRefWithPrismaTickerIDEqualsParam) tickerIDField() {} -func (tenantAlertingSettingsWithPrismaLastAlertedAtSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaLastAlertedAtEqualsParam) equals() {} +func (workflowTriggerCronRefWithPrismaTickerIDSetParam) settable() {} +func (workflowTriggerCronRefWithPrismaTickerIDEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam struct { +type workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) tenantAlertingSettingsModel() { -} -func (p tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) lastAlertedAtField() {} +func (p workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) workflowTriggerCronRefModel() {} +func (p workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} -func (tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaLastAlertedAtEqualsUniqueParam) equals() {} +func (workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaTickerEqualsSetParam interface { +type WorkflowTriggerCronRefWithPrismaTriggeredEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - tickerField() + workflowTriggerCronRefModel() + triggeredField() } -type TenantAlertingSettingsWithPrismaTickerSetParam interface { +type WorkflowTriggerCronRefWithPrismaTriggeredSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - tickerField() + workflowTriggerCronRefModel() + triggeredField() } -type tenantAlertingSettingsWithPrismaTickerSetParam struct { +type workflowTriggerCronRefWithPrismaTriggeredSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTickerSetParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTriggeredSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTickerSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTriggeredSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTickerSetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaTriggeredSetParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaTickerSetParam) tickerField() {} +func (p workflowTriggerCronRefWithPrismaTriggeredSetParam) triggeredField() {} -type TenantAlertingSettingsWithPrismaTickerWhereParam interface { +type WorkflowTriggerCronRefWithPrismaTriggeredWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - tickerField() + workflowTriggerCronRefModel() + triggeredField() } -type tenantAlertingSettingsWithPrismaTickerEqualsParam struct { +type workflowTriggerCronRefWithPrismaTriggeredEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTickerEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTriggeredEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTickerEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTriggeredEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTickerEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaTriggeredEqualsParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaTickerEqualsParam) tickerField() {} +func (p workflowTriggerCronRefWithPrismaTriggeredEqualsParam) triggeredField() {} -func (tenantAlertingSettingsWithPrismaTickerSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaTickerEqualsParam) equals() {} +func (workflowTriggerCronRefWithPrismaTriggeredSetParam) settable() {} +func (workflowTriggerCronRefWithPrismaTriggeredEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam struct { +type workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (p tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) tickerField() {} +func (p workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) workflowTriggerCronRefModel() {} +func (p workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) triggeredField() {} -func (tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaTickerEqualsUniqueParam) equals() {} +func (workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) equals() {} -type TenantAlertingSettingsWithPrismaTickerIDEqualsSetParam interface { +type WorkflowTriggerCronRefWithPrismaInputEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantAlertingSettingsModel() - tickerIDField() + workflowTriggerCronRefModel() + inputField() } -type TenantAlertingSettingsWithPrismaTickerIDSetParam interface { +type WorkflowTriggerCronRefWithPrismaInputSetParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - tickerIDField() + workflowTriggerCronRefModel() + inputField() } -type tenantAlertingSettingsWithPrismaTickerIDSetParam struct { +type workflowTriggerCronRefWithPrismaInputSetParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTickerIDSetParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaInputSetParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTickerIDSetParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaInputSetParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTickerIDSetParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaInputSetParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaTickerIDSetParam) tickerIDField() {} +func (p workflowTriggerCronRefWithPrismaInputSetParam) inputField() {} -type TenantAlertingSettingsWithPrismaTickerIDWhereParam interface { +type WorkflowTriggerCronRefWithPrismaInputWhereParam interface { field() builder.Field getQuery() builder.Query - tenantAlertingSettingsModel() - tickerIDField() + workflowTriggerCronRefModel() + inputField() } -type tenantAlertingSettingsWithPrismaTickerIDEqualsParam struct { +type workflowTriggerCronRefWithPrismaInputEqualsParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTickerIDEqualsParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaInputEqualsParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTickerIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaInputEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTickerIDEqualsParam) tenantAlertingSettingsModel() {} +func (p workflowTriggerCronRefWithPrismaInputEqualsParam) workflowTriggerCronRefModel() {} -func (p tenantAlertingSettingsWithPrismaTickerIDEqualsParam) tickerIDField() {} +func (p workflowTriggerCronRefWithPrismaInputEqualsParam) inputField() {} -func (tenantAlertingSettingsWithPrismaTickerIDSetParam) settable() {} -func (tenantAlertingSettingsWithPrismaTickerIDEqualsParam) equals() {} +func (workflowTriggerCronRefWithPrismaInputSetParam) settable() {} +func (workflowTriggerCronRefWithPrismaInputEqualsParam) equals() {} -type tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam struct { +type workflowTriggerCronRefWithPrismaInputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) tenantAlertingSettingsModel() {} -func (p tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} +func (p workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) workflowTriggerCronRefModel() {} +func (p workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) inputField() {} -func (tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) unique() {} -func (tenantAlertingSettingsWithPrismaTickerIDEqualsUniqueParam) equals() {} +func (workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) unique() {} +func (workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) equals() {} -type tenantMemberActions struct { +type workflowTriggerScheduledRefActions struct { // client holds the prisma client client *PrismaClient } -var tenantMemberOutput = []builder.Output{ +var workflowTriggerScheduledRefOutput = []builder.Output{ {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "tenantId"}, - {Name: "userId"}, - {Name: "role"}, + {Name: "parentId"}, + {Name: "triggerAt"}, + {Name: "tickerId"}, + {Name: "input"}, + {Name: "parentWorkflowRunId"}, + {Name: "parentStepRunId"}, + {Name: "childIndex"}, + {Name: "childKey"}, } -type TenantMemberRelationWith interface { +type WorkflowTriggerScheduledRefRelationWith interface { getQuery() builder.Query with() - tenantMemberRelation() + workflowTriggerScheduledRefRelation() } -type TenantMemberWhereParam interface { +type WorkflowTriggerScheduledRefWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() + workflowTriggerScheduledRefModel() } -type tenantMemberDefaultParam struct { +type workflowTriggerScheduledRefDefaultParam struct { data builder.Field query builder.Query } -func (p tenantMemberDefaultParam) field() builder.Field { +func (p workflowTriggerScheduledRefDefaultParam) field() builder.Field { return p.data } -func (p tenantMemberDefaultParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantMemberDefaultParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefDefaultParam) workflowTriggerScheduledRefModel() {} -type TenantMemberOrderByParam interface { +type WorkflowTriggerScheduledRefOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() + workflowTriggerScheduledRefModel() } -type tenantMemberOrderByParam struct { +type workflowTriggerScheduledRefOrderByParam struct { data builder.Field query builder.Query } -func (p tenantMemberOrderByParam) field() builder.Field { +func (p workflowTriggerScheduledRefOrderByParam) field() builder.Field { return p.data } -func (p tenantMemberOrderByParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantMemberOrderByParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefOrderByParam) workflowTriggerScheduledRefModel() {} -type TenantMemberCursorParam interface { +type WorkflowTriggerScheduledRefCursorParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() + workflowTriggerScheduledRefModel() isCursor() } -type tenantMemberCursorParam struct { +type workflowTriggerScheduledRefCursorParam struct { data builder.Field query builder.Query } -func (p tenantMemberCursorParam) field() builder.Field { +func (p workflowTriggerScheduledRefCursorParam) field() builder.Field { return p.data } -func (p tenantMemberCursorParam) isCursor() {} +func (p workflowTriggerScheduledRefCursorParam) isCursor() {} -func (p tenantMemberCursorParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefCursorParam) getQuery() builder.Query { return p.query } -func (p tenantMemberCursorParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefModel() {} -type TenantMemberParamUnique interface { +type WorkflowTriggerScheduledRefParamUnique interface { field() builder.Field getQuery() builder.Query unique() - tenantMemberModel() + workflowTriggerScheduledRefModel() } -type tenantMemberParamUnique struct { +type workflowTriggerScheduledRefParamUnique struct { data builder.Field query builder.Query } -func (p tenantMemberParamUnique) tenantMemberModel() {} +func (p workflowTriggerScheduledRefParamUnique) workflowTriggerScheduledRefModel() {} -func (tenantMemberParamUnique) unique() {} +func (workflowTriggerScheduledRefParamUnique) unique() {} -func (p tenantMemberParamUnique) field() builder.Field { +func (p workflowTriggerScheduledRefParamUnique) field() builder.Field { return p.data } -func (p tenantMemberParamUnique) getQuery() builder.Query { +func (p workflowTriggerScheduledRefParamUnique) getQuery() builder.Query { return p.query } -type TenantMemberEqualsWhereParam interface { +type WorkflowTriggerScheduledRefEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() + workflowTriggerScheduledRefModel() } -type tenantMemberEqualsParam struct { +type workflowTriggerScheduledRefEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefEqualsParam) workflowTriggerScheduledRefModel() {} -func (tenantMemberEqualsParam) equals() {} +func (workflowTriggerScheduledRefEqualsParam) equals() {} -func (p tenantMemberEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefEqualsParam) getQuery() builder.Query { return p.query } -type TenantMemberEqualsUniqueWhereParam interface { +type WorkflowTriggerScheduledRefEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - tenantMemberModel() + workflowTriggerScheduledRefModel() } -type tenantMemberEqualsUniqueParam struct { +type workflowTriggerScheduledRefEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberEqualsUniqueParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefEqualsUniqueParam) workflowTriggerScheduledRefModel() {} -func (tenantMemberEqualsUniqueParam) unique() {} -func (tenantMemberEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefEqualsUniqueParam) equals() {} -func (p tenantMemberEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefEqualsUniqueParam) getQuery() builder.Query { return p.query } -type TenantMemberSetParam interface { +type WorkflowTriggerScheduledRefSetParam interface { field() builder.Field settable() - tenantMemberModel() + workflowTriggerScheduledRefModel() } -type tenantMemberSetParam struct { +type workflowTriggerScheduledRefSetParam struct { data builder.Field } -func (tenantMemberSetParam) settable() {} +func (workflowTriggerScheduledRefSetParam) settable() {} -func (p tenantMemberSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefSetParam) field() builder.Field { return p.data } -func (p tenantMemberSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefModel() {} -type TenantMemberWithPrismaIDEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() + workflowTriggerScheduledRefModel() idField() } -type TenantMemberWithPrismaIDSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() + workflowTriggerScheduledRefModel() idField() } -type tenantMemberWithPrismaIDSetParam struct { +type workflowTriggerScheduledRefWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaIDSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaIDSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaIDSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaIDSetParam) idField() {} +func (p workflowTriggerScheduledRefWithPrismaIDSetParam) idField() {} -type TenantMemberWithPrismaIDWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() + workflowTriggerScheduledRefModel() idField() } -type tenantMemberWithPrismaIDEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaIDEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaIDEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaIDEqualsParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaIDEqualsParam) idField() {} +func (p workflowTriggerScheduledRefWithPrismaIDEqualsParam) idField() {} -func (tenantMemberWithPrismaIDSetParam) settable() {} -func (tenantMemberWithPrismaIDEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaIDSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaIDEqualsParam) equals() {} -type tenantMemberWithPrismaIDEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaIDEqualsUniqueParam) tenantMemberModel() {} -func (p tenantMemberWithPrismaIDEqualsUniqueParam) idField() {} +func (p workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) idField() {} -func (tenantMemberWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantMemberWithPrismaIDEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) equals() {} -type TenantMemberWithPrismaCreatedAtEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() - createdAtField() + workflowTriggerScheduledRefModel() + parentField() } -type TenantMemberWithPrismaCreatedAtSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentSetParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - createdAtField() + workflowTriggerScheduledRefModel() + parentField() } -type tenantMemberWithPrismaCreatedAtSetParam struct { +type workflowTriggerScheduledRefWithPrismaParentSetParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaCreatedAtSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentSetParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentSetParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaCreatedAtSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaCreatedAtSetParam) createdAtField() {} +func (p workflowTriggerScheduledRefWithPrismaParentSetParam) parentField() {} -type TenantMemberWithPrismaCreatedAtWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - createdAtField() + workflowTriggerScheduledRefModel() + parentField() } -type tenantMemberWithPrismaCreatedAtEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaParentEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaCreatedAtEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentEqualsParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p workflowTriggerScheduledRefWithPrismaParentEqualsParam) parentField() {} -func (tenantMemberWithPrismaCreatedAtSetParam) settable() {} -func (tenantMemberWithPrismaCreatedAtEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaParentSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaParentEqualsParam) equals() {} -type tenantMemberWithPrismaCreatedAtEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaCreatedAtEqualsUniqueParam) tenantMemberModel() {} -func (p tenantMemberWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) parentField() {} -func (tenantMemberWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantMemberWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) equals() {} -type TenantMemberWithPrismaUpdatedAtEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() - updatedAtField() + workflowTriggerScheduledRefModel() + parentIDField() } -type TenantMemberWithPrismaUpdatedAtSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - updatedAtField() + workflowTriggerScheduledRefModel() + parentIDField() } -type tenantMemberWithPrismaUpdatedAtSetParam struct { +type workflowTriggerScheduledRefWithPrismaParentIDSetParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentIDSetParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUpdatedAtSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentIDSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p workflowTriggerScheduledRefWithPrismaParentIDSetParam) parentIDField() {} -type TenantMemberWithPrismaUpdatedAtWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - updatedAtField() + workflowTriggerScheduledRefModel() + parentIDField() } -type tenantMemberWithPrismaUpdatedAtEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaParentIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUpdatedAtEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) workflowTriggerScheduledRefModel() { +} -func (p tenantMemberWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) parentIDField() {} -func (tenantMemberWithPrismaUpdatedAtSetParam) settable() {} -func (tenantMemberWithPrismaUpdatedAtEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaParentIDSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) equals() {} -type tenantMemberWithPrismaUpdatedAtEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) tenantMemberModel() {} -func (p tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) parentIDField() {} -func (tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantMemberWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) equals() {} -type TenantMemberWithPrismaTenantEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaTriggerAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() - tenantField() + workflowTriggerScheduledRefModel() + triggerAtField() } -type TenantMemberWithPrismaTenantSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaTriggerAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - tenantField() + workflowTriggerScheduledRefModel() + triggerAtField() } -type tenantMemberWithPrismaTenantSetParam struct { +type workflowTriggerScheduledRefWithPrismaTriggerAtSetParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaTenantSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaTenantSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaTenantSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaTenantSetParam) tenantField() {} +func (p workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) triggerAtField() {} -type TenantMemberWithPrismaTenantWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaTriggerAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - tenantField() + workflowTriggerScheduledRefModel() + triggerAtField() } -type tenantMemberWithPrismaTenantEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaTenantEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaTenantEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) workflowTriggerScheduledRefModel() { +} -func (p tenantMemberWithPrismaTenantEqualsParam) tenantField() {} +func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) triggerAtField() {} -func (tenantMemberWithPrismaTenantSetParam) settable() {} -func (tenantMemberWithPrismaTenantEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) equals() {} -type tenantMemberWithPrismaTenantEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaTenantEqualsUniqueParam) tenantMemberModel() {} -func (p tenantMemberWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) triggerAtField() {} -func (tenantMemberWithPrismaTenantEqualsUniqueParam) unique() {} -func (tenantMemberWithPrismaTenantEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) equals() {} -type TenantMemberWithPrismaTenantIDEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaTickerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() - tenantIDField() + workflowTriggerScheduledRefModel() + tickerField() } -type TenantMemberWithPrismaTenantIDSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaTickerSetParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - tenantIDField() + workflowTriggerScheduledRefModel() + tickerField() } -type tenantMemberWithPrismaTenantIDSetParam struct { +type workflowTriggerScheduledRefWithPrismaTickerSetParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaTenantIDSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTickerSetParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTickerSetParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaTenantIDSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaTickerSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaTenantIDSetParam) tenantIDField() {} +func (p workflowTriggerScheduledRefWithPrismaTickerSetParam) tickerField() {} -type TenantMemberWithPrismaTenantIDWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaTickerWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - tenantIDField() + workflowTriggerScheduledRefModel() + tickerField() } -type tenantMemberWithPrismaTenantIDEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaTickerEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTickerEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTickerEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaTenantIDEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaTickerEqualsParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p workflowTriggerScheduledRefWithPrismaTickerEqualsParam) tickerField() {} -func (tenantMemberWithPrismaTenantIDSetParam) settable() {} -func (tenantMemberWithPrismaTenantIDEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaTickerSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaTickerEqualsParam) equals() {} -type tenantMemberWithPrismaTenantIDEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaTenantIDEqualsUniqueParam) tenantMemberModel() {} -func (p tenantMemberWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) tickerField() {} -func (tenantMemberWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (tenantMemberWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) equals() {} -type TenantMemberWithPrismaUserEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaTickerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() - userField() + workflowTriggerScheduledRefModel() + tickerIDField() } -type TenantMemberWithPrismaUserSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaTickerIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - userField() + workflowTriggerScheduledRefModel() + tickerIDField() } -type tenantMemberWithPrismaUserSetParam struct { +type workflowTriggerScheduledRefWithPrismaTickerIDSetParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUserSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTickerIDSetParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUserSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTickerIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUserSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaTickerIDSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaUserSetParam) userField() {} +func (p workflowTriggerScheduledRefWithPrismaTickerIDSetParam) tickerIDField() {} -type TenantMemberWithPrismaUserWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaTickerIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - userField() + workflowTriggerScheduledRefModel() + tickerIDField() } -type tenantMemberWithPrismaUserEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUserEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUserEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUserEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) workflowTriggerScheduledRefModel() { +} -func (p tenantMemberWithPrismaUserEqualsParam) userField() {} +func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) tickerIDField() {} -func (tenantMemberWithPrismaUserSetParam) settable() {} -func (tenantMemberWithPrismaUserEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaTickerIDSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) equals() {} -type tenantMemberWithPrismaUserEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUserEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUserEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUserEqualsUniqueParam) tenantMemberModel() {} -func (p tenantMemberWithPrismaUserEqualsUniqueParam) userField() {} +func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} -func (tenantMemberWithPrismaUserEqualsUniqueParam) unique() {} -func (tenantMemberWithPrismaUserEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) equals() {} -type TenantMemberWithPrismaUserIDEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaInputEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() - userIDField() + workflowTriggerScheduledRefModel() + inputField() } -type TenantMemberWithPrismaUserIDSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaInputSetParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - userIDField() + workflowTriggerScheduledRefModel() + inputField() } -type tenantMemberWithPrismaUserIDSetParam struct { +type workflowTriggerScheduledRefWithPrismaInputSetParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUserIDSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaInputSetParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUserIDSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaInputSetParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUserIDSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaInputSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaUserIDSetParam) userIDField() {} +func (p workflowTriggerScheduledRefWithPrismaInputSetParam) inputField() {} -type TenantMemberWithPrismaUserIDWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaInputWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - userIDField() + workflowTriggerScheduledRefModel() + inputField() } -type tenantMemberWithPrismaUserIDEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaInputEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUserIDEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaInputEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUserIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaInputEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUserIDEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaInputEqualsParam) workflowTriggerScheduledRefModel() {} -func (p tenantMemberWithPrismaUserIDEqualsParam) userIDField() {} +func (p workflowTriggerScheduledRefWithPrismaInputEqualsParam) inputField() {} -func (tenantMemberWithPrismaUserIDSetParam) settable() {} -func (tenantMemberWithPrismaUserIDEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaInputSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaInputEqualsParam) equals() {} -type tenantMemberWithPrismaUserIDEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaUserIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaUserIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaUserIDEqualsUniqueParam) tenantMemberModel() {} -func (p tenantMemberWithPrismaUserIDEqualsUniqueParam) userIDField() {} +func (p workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) inputField() {} -func (tenantMemberWithPrismaUserIDEqualsUniqueParam) unique() {} -func (tenantMemberWithPrismaUserIDEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) equals() {} -type TenantMemberWithPrismaRoleEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantMemberModel() - roleField() + workflowTriggerScheduledRefModel() + parentWorkflowRunField() } -type TenantMemberWithPrismaRoleSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - roleField() + workflowTriggerScheduledRefModel() + parentWorkflowRunField() } -type tenantMemberWithPrismaRoleSetParam struct { +type workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaRoleSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaRoleSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaRoleSetParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) workflowTriggerScheduledRefModel() { +} -func (p tenantMemberWithPrismaRoleSetParam) roleField() {} +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) parentWorkflowRunField() {} -type TenantMemberWithPrismaRoleWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunWhereParam interface { field() builder.Field getQuery() builder.Query - tenantMemberModel() - roleField() + workflowTriggerScheduledRefModel() + parentWorkflowRunField() } -type tenantMemberWithPrismaRoleEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaRoleEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaRoleEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaRoleEqualsParam) tenantMemberModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) workflowTriggerScheduledRefModel() { +} -func (p tenantMemberWithPrismaRoleEqualsParam) roleField() {} +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) parentWorkflowRunField() {} -func (tenantMemberWithPrismaRoleSetParam) settable() {} -func (tenantMemberWithPrismaRoleEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) equals() {} -type tenantMemberWithPrismaRoleEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantMemberWithPrismaRoleEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantMemberWithPrismaRoleEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantMemberWithPrismaRoleEqualsUniqueParam) tenantMemberModel() {} -func (p tenantMemberWithPrismaRoleEqualsUniqueParam) roleField() {} - -func (tenantMemberWithPrismaRoleEqualsUniqueParam) unique() {} -func (tenantMemberWithPrismaRoleEqualsUniqueParam) equals() {} - -type tenantInviteLinkActions struct { - // client holds the prisma client - client *PrismaClient +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) workflowTriggerScheduledRefModel() { } - -var tenantInviteLinkOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "tenantId"}, - {Name: "inviterEmail"}, - {Name: "inviteeEmail"}, - {Name: "expires"}, - {Name: "status"}, - {Name: "role"}, +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) parentWorkflowRunField() { } -type TenantInviteLinkRelationWith interface { +func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) equals() {} + +type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - tenantInviteLinkRelation() + equals() + workflowTriggerScheduledRefModel() + parentWorkflowRunIDField() } -type TenantInviteLinkWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() + workflowTriggerScheduledRefModel() + parentWorkflowRunIDField() } -type tenantInviteLinkDefaultParam struct { +type workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkDefaultParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkDefaultParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkDefaultParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) workflowTriggerScheduledRefModel() { +} -type TenantInviteLinkOrderByParam interface { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) parentWorkflowRunIDField() { +} + +type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() + workflowTriggerScheduledRefModel() + parentWorkflowRunIDField() } -type tenantInviteLinkOrderByParam struct { +type workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkOrderByParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkOrderByParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkOrderByParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) workflowTriggerScheduledRefModel() { +} -type TenantInviteLinkCursorParam interface { - field() builder.Field - getQuery() builder.Query - tenantInviteLinkModel() - isCursor() +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) parentWorkflowRunIDField() { } -type tenantInviteLinkCursorParam struct { +func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) equals() {} + +type workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkCursorParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkCursorParam) isCursor() {} - -func (p tenantInviteLinkCursorParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkCursorParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) parentWorkflowRunIDField() { +} -type TenantInviteLinkParamUnique interface { +func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) equals() {} + +type WorkflowTriggerScheduledRefWithPrismaParentStepRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - tenantInviteLinkModel() + equals() + workflowTriggerScheduledRefModel() + parentStepRunField() } -type tenantInviteLinkParamUnique struct { +type WorkflowTriggerScheduledRefWithPrismaParentStepRunSetParam interface { + field() builder.Field + getQuery() builder.Query + workflowTriggerScheduledRefModel() + parentStepRunField() +} + +type workflowTriggerScheduledRefWithPrismaParentStepRunSetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkParamUnique) tenantInviteLinkModel() {} - -func (tenantInviteLinkParamUnique) unique() {} - -func (p tenantInviteLinkParamUnique) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkParamUnique) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) getQuery() builder.Query { return p.query } -type TenantInviteLinkEqualsWhereParam interface { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) workflowTriggerScheduledRefModel() { +} + +func (p workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) parentStepRunField() {} + +type WorkflowTriggerScheduledRefWithPrismaParentStepRunWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - tenantInviteLinkModel() + workflowTriggerScheduledRefModel() + parentStepRunField() } -type tenantInviteLinkEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkEqualsParam) tenantInviteLinkModel() {} - -func (tenantInviteLinkEqualsParam) equals() {} - -func (p tenantInviteLinkEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) getQuery() builder.Query { return p.query } -type TenantInviteLinkEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - tenantInviteLinkModel() +func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) workflowTriggerScheduledRefModel() { } -type tenantInviteLinkEqualsUniqueParam struct { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) parentStepRunField() {} + +func (workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) equals() {} + +type workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkEqualsUniqueParam) tenantInviteLinkModel() {} - -func (tenantInviteLinkEqualsUniqueParam) unique() {} -func (tenantInviteLinkEqualsUniqueParam) equals() {} - -func (p tenantInviteLinkEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -type TenantInviteLinkSetParam interface { - field() builder.Field - settable() - tenantInviteLinkModel() -} - -type tenantInviteLinkSetParam struct { - data builder.Field -} - -func (tenantInviteLinkSetParam) settable() {} - -func (p tenantInviteLinkSetParam) field() builder.Field { - return p.data +func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) workflowTriggerScheduledRefModel() { } +func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) parentStepRunField() {} -func (p tenantInviteLinkSetParam) tenantInviteLinkModel() {} +func (workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) equals() {} -type TenantInviteLinkWithPrismaIDEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantInviteLinkModel() - idField() + workflowTriggerScheduledRefModel() + parentStepRunIDField() } -type TenantInviteLinkWithPrismaIDSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - idField() + workflowTriggerScheduledRefModel() + parentStepRunIDField() } -type tenantInviteLinkWithPrismaIDSetParam struct { +type workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaIDSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaIDSetParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) workflowTriggerScheduledRefModel() { +} -func (p tenantInviteLinkWithPrismaIDSetParam) idField() {} +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) parentStepRunIDField() {} -type TenantInviteLinkWithPrismaIDWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaParentStepRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - idField() + workflowTriggerScheduledRefModel() + parentStepRunIDField() } -type tenantInviteLinkWithPrismaIDEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaIDEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaIDEqualsParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) workflowTriggerScheduledRefModel() { +} -func (p tenantInviteLinkWithPrismaIDEqualsParam) idField() {} +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) parentStepRunIDField() {} -func (tenantInviteLinkWithPrismaIDSetParam) settable() {} -func (tenantInviteLinkWithPrismaIDEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) equals() {} -type tenantInviteLinkWithPrismaIDEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaIDEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaIDEqualsUniqueParam) idField() {} +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) parentStepRunIDField() { +} -func (tenantInviteLinkWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaIDEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) equals() {} -type TenantInviteLinkWithPrismaCreatedAtEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaChildIndexEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantInviteLinkModel() - createdAtField() + workflowTriggerScheduledRefModel() + childIndexField() } -type TenantInviteLinkWithPrismaCreatedAtSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaChildIndexSetParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - createdAtField() + workflowTriggerScheduledRefModel() + childIndexField() } -type tenantInviteLinkWithPrismaCreatedAtSetParam struct { +type workflowTriggerScheduledRefWithPrismaChildIndexSetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaCreatedAtSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaChildIndexSetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaChildIndexSetParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaCreatedAtSetParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaChildIndexSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantInviteLinkWithPrismaCreatedAtSetParam) createdAtField() {} +func (p workflowTriggerScheduledRefWithPrismaChildIndexSetParam) childIndexField() {} -type TenantInviteLinkWithPrismaCreatedAtWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaChildIndexWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - createdAtField() + workflowTriggerScheduledRefModel() + childIndexField() } -type tenantInviteLinkWithPrismaCreatedAtEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaCreatedAtEqualsParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) workflowTriggerScheduledRefModel() { +} -func (p tenantInviteLinkWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) childIndexField() {} -func (tenantInviteLinkWithPrismaCreatedAtSetParam) settable() {} -func (tenantInviteLinkWithPrismaCreatedAtEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaChildIndexSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) equals() {} -type tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) childIndexField() {} -func (tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) equals() {} -type TenantInviteLinkWithPrismaUpdatedAtEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaChildKeyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantInviteLinkModel() - updatedAtField() + workflowTriggerScheduledRefModel() + childKeyField() } -type TenantInviteLinkWithPrismaUpdatedAtSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaChildKeySetParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - updatedAtField() + workflowTriggerScheduledRefModel() + childKeyField() } -type tenantInviteLinkWithPrismaUpdatedAtSetParam struct { +type workflowTriggerScheduledRefWithPrismaChildKeySetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaChildKeySetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaChildKeySetParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaUpdatedAtSetParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaChildKeySetParam) workflowTriggerScheduledRefModel() {} -func (p tenantInviteLinkWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p workflowTriggerScheduledRefWithPrismaChildKeySetParam) childKeyField() {} -type TenantInviteLinkWithPrismaUpdatedAtWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaChildKeyWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - updatedAtField() + workflowTriggerScheduledRefModel() + childKeyField() } -type tenantInviteLinkWithPrismaUpdatedAtEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaUpdatedAtEqualsParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) workflowTriggerScheduledRefModel() { +} -func (p tenantInviteLinkWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) childKeyField() {} -func (tenantInviteLinkWithPrismaUpdatedAtSetParam) settable() {} -func (tenantInviteLinkWithPrismaUpdatedAtEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaChildKeySetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) equals() {} -type tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) workflowTriggerScheduledRefModel() { +} +func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) childKeyField() {} -func (tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) equals() {} -type TenantInviteLinkWithPrismaTenantEqualsSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaTriggeredEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantInviteLinkModel() - tenantField() + workflowTriggerScheduledRefModel() + triggeredField() } -type TenantInviteLinkWithPrismaTenantSetParam interface { +type WorkflowTriggerScheduledRefWithPrismaTriggeredSetParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - tenantField() + workflowTriggerScheduledRefModel() + triggeredField() } -type tenantInviteLinkWithPrismaTenantSetParam struct { +type workflowTriggerScheduledRefWithPrismaTriggeredSetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaTenantSetParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTriggeredSetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaTenantSetParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTriggeredSetParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaTenantSetParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaTriggeredSetParam) workflowTriggerScheduledRefModel() {} -func (p tenantInviteLinkWithPrismaTenantSetParam) tenantField() {} +func (p workflowTriggerScheduledRefWithPrismaTriggeredSetParam) triggeredField() {} -type TenantInviteLinkWithPrismaTenantWhereParam interface { +type WorkflowTriggerScheduledRefWithPrismaTriggeredWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - tenantField() + workflowTriggerScheduledRefModel() + triggeredField() } -type tenantInviteLinkWithPrismaTenantEqualsParam struct { +type workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaTenantEqualsParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaTenantEqualsParam) tenantInviteLinkModel() {} +func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) workflowTriggerScheduledRefModel() { +} -func (p tenantInviteLinkWithPrismaTenantEqualsParam) tenantField() {} +func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) triggeredField() {} -func (tenantInviteLinkWithPrismaTenantSetParam) settable() {} -func (tenantInviteLinkWithPrismaTenantEqualsParam) equals() {} +func (workflowTriggerScheduledRefWithPrismaTriggeredSetParam) settable() {} +func (workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) equals() {} -type tenantInviteLinkWithPrismaTenantEqualsUniqueParam struct { +type workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaTenantEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaTenantEqualsUniqueParam) tenantField() {} - -func (tenantInviteLinkWithPrismaTenantEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaTenantEqualsUniqueParam) equals() {} - -type TenantInviteLinkWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantInviteLinkModel() - tenantIDField() -} - -type TenantInviteLinkWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantInviteLinkModel() - tenantIDField() +func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) workflowTriggerScheduledRefModel() { } +func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) triggeredField() {} -type tenantInviteLinkWithPrismaTenantIDSetParam struct { - data builder.Field - query builder.Query -} +func (workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) unique() {} +func (workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) equals() {} -func (p tenantInviteLinkWithPrismaTenantIDSetParam) field() builder.Field { - return p.data +type jobActions struct { + // client holds the prisma client + client *PrismaClient } -func (p tenantInviteLinkWithPrismaTenantIDSetParam) getQuery() builder.Query { - return p.query +var jobOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "workflowVersionId"}, + {Name: "name"}, + {Name: "description"}, + {Name: "timeout"}, + {Name: "kind"}, } -func (p tenantInviteLinkWithPrismaTenantIDSetParam) tenantInviteLinkModel() {} - -func (p tenantInviteLinkWithPrismaTenantIDSetParam) tenantIDField() {} - -type TenantInviteLinkWithPrismaTenantIDWhereParam interface { - field() builder.Field +type JobRelationWith interface { getQuery() builder.Query - tenantInviteLinkModel() - tenantIDField() -} - -type tenantInviteLinkWithPrismaTenantIDEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p tenantInviteLinkWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data -} - -func (p tenantInviteLinkWithPrismaTenantIDEqualsParam) getQuery() builder.Query { - return p.query + with() + jobRelation() } -func (p tenantInviteLinkWithPrismaTenantIDEqualsParam) tenantInviteLinkModel() {} - -func (p tenantInviteLinkWithPrismaTenantIDEqualsParam) tenantIDField() {} - -func (tenantInviteLinkWithPrismaTenantIDSetParam) settable() {} -func (tenantInviteLinkWithPrismaTenantIDEqualsParam) equals() {} +type JobWhereParam interface { + field() builder.Field + getQuery() builder.Query + jobModel() +} -type tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam struct { +type jobDefaultParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p jobDefaultParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobDefaultParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} - -func (tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaTenantIDEqualsUniqueParam) equals() {} - -type TenantInviteLinkWithPrismaInviterEmailEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantInviteLinkModel() - inviterEmailField() -} +func (p jobDefaultParam) jobModel() {} -type TenantInviteLinkWithPrismaInviterEmailSetParam interface { +type JobOrderByParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - inviterEmailField() + jobModel() } -type tenantInviteLinkWithPrismaInviterEmailSetParam struct { +type jobOrderByParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaInviterEmailSetParam) field() builder.Field { +func (p jobOrderByParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaInviterEmailSetParam) getQuery() builder.Query { +func (p jobOrderByParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaInviterEmailSetParam) tenantInviteLinkModel() {} - -func (p tenantInviteLinkWithPrismaInviterEmailSetParam) inviterEmailField() {} +func (p jobOrderByParam) jobModel() {} -type TenantInviteLinkWithPrismaInviterEmailWhereParam interface { +type JobCursorParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - inviterEmailField() + jobModel() + isCursor() } -type tenantInviteLinkWithPrismaInviterEmailEqualsParam struct { +type jobCursorParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaInviterEmailEqualsParam) field() builder.Field { +func (p jobCursorParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaInviterEmailEqualsParam) getQuery() builder.Query { +func (p jobCursorParam) isCursor() {} + +func (p jobCursorParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaInviterEmailEqualsParam) tenantInviteLinkModel() {} - -func (p tenantInviteLinkWithPrismaInviterEmailEqualsParam) inviterEmailField() {} +func (p jobCursorParam) jobModel() {} -func (tenantInviteLinkWithPrismaInviterEmailSetParam) settable() {} -func (tenantInviteLinkWithPrismaInviterEmailEqualsParam) equals() {} +type JobParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + jobModel() +} -type tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam struct { +type jobParamUnique struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) field() builder.Field { +func (p jobParamUnique) jobModel() {} + +func (jobParamUnique) unique() {} + +func (p jobParamUnique) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) getQuery() builder.Query { +func (p jobParamUnique) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) inviterEmailField() {} - -func (tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaInviterEmailEqualsUniqueParam) equals() {} - -type TenantInviteLinkWithPrismaInviteeEmailEqualsSetParam interface { +type JobEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - tenantInviteLinkModel() - inviteeEmailField() -} - -type TenantInviteLinkWithPrismaInviteeEmailSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantInviteLinkModel() - inviteeEmailField() + jobModel() } -type tenantInviteLinkWithPrismaInviteeEmailSetParam struct { +type jobEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaInviteeEmailSetParam) field() builder.Field { +func (p jobEqualsParam) jobModel() {} + +func (jobEqualsParam) equals() {} + +func (p jobEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaInviteeEmailSetParam) getQuery() builder.Query { +func (p jobEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaInviteeEmailSetParam) tenantInviteLinkModel() {} - -func (p tenantInviteLinkWithPrismaInviteeEmailSetParam) inviteeEmailField() {} - -type TenantInviteLinkWithPrismaInviteeEmailWhereParam interface { +type JobEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - inviteeEmailField() + equals() + unique() + jobModel() } -type tenantInviteLinkWithPrismaInviteeEmailEqualsParam struct { +type jobEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaInviteeEmailEqualsParam) field() builder.Field { +func (p jobEqualsUniqueParam) jobModel() {} + +func (jobEqualsUniqueParam) unique() {} +func (jobEqualsUniqueParam) equals() {} + +func (p jobEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaInviteeEmailEqualsParam) getQuery() builder.Query { +func (p jobEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaInviteeEmailEqualsParam) tenantInviteLinkModel() {} - -func (p tenantInviteLinkWithPrismaInviteeEmailEqualsParam) inviteeEmailField() {} - -func (tenantInviteLinkWithPrismaInviteeEmailSetParam) settable() {} -func (tenantInviteLinkWithPrismaInviteeEmailEqualsParam) equals() {} - -type tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam struct { - data builder.Field - query builder.Query +type JobSetParam interface { + field() builder.Field + settable() + jobModel() } -func (p tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) field() builder.Field { - return p.data +type jobSetParam struct { + data builder.Field } -func (p tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (jobSetParam) settable() {} -func (p tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) inviteeEmailField() {} +func (p jobSetParam) field() builder.Field { + return p.data +} -func (tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaInviteeEmailEqualsUniqueParam) equals() {} +func (p jobSetParam) jobModel() {} -type TenantInviteLinkWithPrismaExpiresEqualsSetParam interface { +type JobWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantInviteLinkModel() - expiresField() + jobModel() + idField() } -type TenantInviteLinkWithPrismaExpiresSetParam interface { +type JobWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - expiresField() + jobModel() + idField() } -type tenantInviteLinkWithPrismaExpiresSetParam struct { +type jobWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaExpiresSetParam) field() builder.Field { +func (p jobWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaExpiresSetParam) getQuery() builder.Query { +func (p jobWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaExpiresSetParam) tenantInviteLinkModel() {} +func (p jobWithPrismaIDSetParam) jobModel() {} -func (p tenantInviteLinkWithPrismaExpiresSetParam) expiresField() {} +func (p jobWithPrismaIDSetParam) idField() {} -type TenantInviteLinkWithPrismaExpiresWhereParam interface { +type JobWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - expiresField() + jobModel() + idField() } -type tenantInviteLinkWithPrismaExpiresEqualsParam struct { +type jobWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaExpiresEqualsParam) field() builder.Field { +func (p jobWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaExpiresEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaExpiresEqualsParam) tenantInviteLinkModel() {} +func (p jobWithPrismaIDEqualsParam) jobModel() {} -func (p tenantInviteLinkWithPrismaExpiresEqualsParam) expiresField() {} +func (p jobWithPrismaIDEqualsParam) idField() {} -func (tenantInviteLinkWithPrismaExpiresSetParam) settable() {} -func (tenantInviteLinkWithPrismaExpiresEqualsParam) equals() {} +func (jobWithPrismaIDSetParam) settable() {} +func (jobWithPrismaIDEqualsParam) equals() {} -type tenantInviteLinkWithPrismaExpiresEqualsUniqueParam struct { +type jobWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) expiresField() {} +func (p jobWithPrismaIDEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaIDEqualsUniqueParam) idField() {} -func (tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaExpiresEqualsUniqueParam) equals() {} +func (jobWithPrismaIDEqualsUniqueParam) unique() {} +func (jobWithPrismaIDEqualsUniqueParam) equals() {} -type TenantInviteLinkWithPrismaStatusEqualsSetParam interface { +type JobWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantInviteLinkModel() - statusField() + jobModel() + createdAtField() } -type TenantInviteLinkWithPrismaStatusSetParam interface { +type JobWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - statusField() + jobModel() + createdAtField() } -type tenantInviteLinkWithPrismaStatusSetParam struct { +type jobWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaStatusSetParam) field() builder.Field { +func (p jobWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaStatusSetParam) getQuery() builder.Query { +func (p jobWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaStatusSetParam) tenantInviteLinkModel() {} +func (p jobWithPrismaCreatedAtSetParam) jobModel() {} -func (p tenantInviteLinkWithPrismaStatusSetParam) statusField() {} +func (p jobWithPrismaCreatedAtSetParam) createdAtField() {} -type TenantInviteLinkWithPrismaStatusWhereParam interface { +type JobWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - statusField() + jobModel() + createdAtField() } -type tenantInviteLinkWithPrismaStatusEqualsParam struct { +type jobWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaStatusEqualsParam) field() builder.Field { +func (p jobWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaStatusEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaStatusEqualsParam) tenantInviteLinkModel() {} +func (p jobWithPrismaCreatedAtEqualsParam) jobModel() {} -func (p tenantInviteLinkWithPrismaStatusEqualsParam) statusField() {} +func (p jobWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (tenantInviteLinkWithPrismaStatusSetParam) settable() {} -func (tenantInviteLinkWithPrismaStatusEqualsParam) equals() {} +func (jobWithPrismaCreatedAtSetParam) settable() {} +func (jobWithPrismaCreatedAtEqualsParam) equals() {} -type tenantInviteLinkWithPrismaStatusEqualsUniqueParam struct { +type jobWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaStatusEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaStatusEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaStatusEqualsUniqueParam) statusField() {} +func (p jobWithPrismaCreatedAtEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (tenantInviteLinkWithPrismaStatusEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaStatusEqualsUniqueParam) equals() {} +func (jobWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (jobWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type TenantInviteLinkWithPrismaRoleEqualsSetParam interface { +type JobWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tenantInviteLinkModel() - roleField() + jobModel() + updatedAtField() } -type TenantInviteLinkWithPrismaRoleSetParam interface { +type JobWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - roleField() + jobModel() + updatedAtField() } -type tenantInviteLinkWithPrismaRoleSetParam struct { +type jobWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaRoleSetParam) field() builder.Field { +func (p jobWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaRoleSetParam) getQuery() builder.Query { +func (p jobWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaRoleSetParam) tenantInviteLinkModel() {} +func (p jobWithPrismaUpdatedAtSetParam) jobModel() {} -func (p tenantInviteLinkWithPrismaRoleSetParam) roleField() {} +func (p jobWithPrismaUpdatedAtSetParam) updatedAtField() {} -type TenantInviteLinkWithPrismaRoleWhereParam interface { +type JobWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tenantInviteLinkModel() - roleField() + jobModel() + updatedAtField() } -type tenantInviteLinkWithPrismaRoleEqualsParam struct { +type jobWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaRoleEqualsParam) field() builder.Field { +func (p jobWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaRoleEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaRoleEqualsParam) tenantInviteLinkModel() {} +func (p jobWithPrismaUpdatedAtEqualsParam) jobModel() {} -func (p tenantInviteLinkWithPrismaRoleEqualsParam) roleField() {} +func (p jobWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (tenantInviteLinkWithPrismaRoleSetParam) settable() {} -func (tenantInviteLinkWithPrismaRoleEqualsParam) equals() {} +func (jobWithPrismaUpdatedAtSetParam) settable() {} +func (jobWithPrismaUpdatedAtEqualsParam) equals() {} -type tenantInviteLinkWithPrismaRoleEqualsUniqueParam struct { +type jobWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tenantInviteLinkWithPrismaRoleEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tenantInviteLinkWithPrismaRoleEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tenantInviteLinkWithPrismaRoleEqualsUniqueParam) tenantInviteLinkModel() {} -func (p tenantInviteLinkWithPrismaRoleEqualsUniqueParam) roleField() {} - -func (tenantInviteLinkWithPrismaRoleEqualsUniqueParam) unique() {} -func (tenantInviteLinkWithPrismaRoleEqualsUniqueParam) equals() {} - -type aPITokenActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p jobWithPrismaUpdatedAtEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -var aPITokenOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "expiresAt"}, - {Name: "revoked"}, - {Name: "nextAlertAt"}, - {Name: "name"}, - {Name: "tenantId"}, -} +func (jobWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (jobWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type APITokenRelationWith interface { +type JobWithPrismaDeletedAtEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - aPITokenRelation() + equals() + jobModel() + deletedAtField() } -type APITokenWhereParam interface { +type JobWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() + jobModel() + deletedAtField() } -type aPITokenDefaultParam struct { +type jobWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p aPITokenDefaultParam) field() builder.Field { +func (p jobWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p aPITokenDefaultParam) getQuery() builder.Query { +func (p jobWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenDefaultParam) aPITokenModel() {} +func (p jobWithPrismaDeletedAtSetParam) jobModel() {} -type APITokenOrderByParam interface { +func (p jobWithPrismaDeletedAtSetParam) deletedAtField() {} + +type JobWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() + jobModel() + deletedAtField() } -type aPITokenOrderByParam struct { +type jobWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenOrderByParam) field() builder.Field { +func (p jobWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p aPITokenOrderByParam) getQuery() builder.Query { +func (p jobWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenOrderByParam) aPITokenModel() {} +func (p jobWithPrismaDeletedAtEqualsParam) jobModel() {} -type APITokenCursorParam interface { - field() builder.Field - getQuery() builder.Query - aPITokenModel() - isCursor() -} +func (p jobWithPrismaDeletedAtEqualsParam) deletedAtField() {} -type aPITokenCursorParam struct { +func (jobWithPrismaDeletedAtSetParam) settable() {} +func (jobWithPrismaDeletedAtEqualsParam) equals() {} + +type jobWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenCursorParam) field() builder.Field { +func (p jobWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenCursorParam) isCursor() {} - -func (p aPITokenCursorParam) getQuery() builder.Query { +func (p jobWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenCursorParam) aPITokenModel() {} +func (p jobWithPrismaDeletedAtEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -type APITokenParamUnique interface { +func (jobWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (jobWithPrismaDeletedAtEqualsUniqueParam) equals() {} + +type JobWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - aPITokenModel() + equals() + jobModel() + tenantField() } -type aPITokenParamUnique struct { +type JobWithPrismaTenantSetParam interface { + field() builder.Field + getQuery() builder.Query + jobModel() + tenantField() +} + +type jobWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p aPITokenParamUnique) aPITokenModel() {} - -func (aPITokenParamUnique) unique() {} - -func (p aPITokenParamUnique) field() builder.Field { +func (p jobWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p aPITokenParamUnique) getQuery() builder.Query { +func (p jobWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -type APITokenEqualsWhereParam interface { +func (p jobWithPrismaTenantSetParam) jobModel() {} + +func (p jobWithPrismaTenantSetParam) tenantField() {} + +type JobWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - aPITokenModel() + jobModel() + tenantField() } -type aPITokenEqualsParam struct { +type jobWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenEqualsParam) aPITokenModel() {} - -func (aPITokenEqualsParam) equals() {} - -func (p aPITokenEqualsParam) field() builder.Field { +func (p jobWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p aPITokenEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -type APITokenEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - aPITokenModel() -} +func (p jobWithPrismaTenantEqualsParam) jobModel() {} -type aPITokenEqualsUniqueParam struct { +func (p jobWithPrismaTenantEqualsParam) tenantField() {} + +func (jobWithPrismaTenantSetParam) settable() {} +func (jobWithPrismaTenantEqualsParam) equals() {} + +type jobWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenEqualsUniqueParam) aPITokenModel() {} - -func (aPITokenEqualsUniqueParam) unique() {} -func (aPITokenEqualsUniqueParam) equals() {} - -func (p aPITokenEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -type APITokenSetParam interface { - field() builder.Field - settable() - aPITokenModel() -} - -type aPITokenSetParam struct { - data builder.Field -} - -func (aPITokenSetParam) settable() {} - -func (p aPITokenSetParam) field() builder.Field { - return p.data -} +func (p jobWithPrismaTenantEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (p aPITokenSetParam) aPITokenModel() {} +func (jobWithPrismaTenantEqualsUniqueParam) unique() {} +func (jobWithPrismaTenantEqualsUniqueParam) equals() {} -type APITokenWithPrismaIDEqualsSetParam interface { +type JobWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - idField() + jobModel() + tenantIDField() } -type APITokenWithPrismaIDSetParam interface { +type JobWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - idField() + jobModel() + tenantIDField() } -type aPITokenWithPrismaIDSetParam struct { +type jobWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaIDSetParam) field() builder.Field { +func (p jobWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaIDSetParam) getQuery() builder.Query { +func (p jobWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaIDSetParam) aPITokenModel() {} +func (p jobWithPrismaTenantIDSetParam) jobModel() {} -func (p aPITokenWithPrismaIDSetParam) idField() {} +func (p jobWithPrismaTenantIDSetParam) tenantIDField() {} -type APITokenWithPrismaIDWhereParam interface { +type JobWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - idField() + jobModel() + tenantIDField() } -type aPITokenWithPrismaIDEqualsParam struct { +type jobWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaIDEqualsParam) field() builder.Field { +func (p jobWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaIDEqualsParam) aPITokenModel() {} +func (p jobWithPrismaTenantIDEqualsParam) jobModel() {} -func (p aPITokenWithPrismaIDEqualsParam) idField() {} +func (p jobWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (aPITokenWithPrismaIDSetParam) settable() {} -func (aPITokenWithPrismaIDEqualsParam) equals() {} +func (jobWithPrismaTenantIDSetParam) settable() {} +func (jobWithPrismaTenantIDEqualsParam) equals() {} -type aPITokenWithPrismaIDEqualsUniqueParam struct { +type jobWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaIDEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaIDEqualsUniqueParam) idField() {} +func (p jobWithPrismaTenantIDEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (aPITokenWithPrismaIDEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaIDEqualsUniqueParam) equals() {} +func (jobWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (jobWithPrismaTenantIDEqualsUniqueParam) equals() {} -type APITokenWithPrismaCreatedAtEqualsSetParam interface { +type JobWithPrismaWorkflowEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - createdAtField() + jobModel() + workflowField() } -type APITokenWithPrismaCreatedAtSetParam interface { +type JobWithPrismaWorkflowSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - createdAtField() + jobModel() + workflowField() } -type aPITokenWithPrismaCreatedAtSetParam struct { +type jobWithPrismaWorkflowSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaCreatedAtSetParam) field() builder.Field { +func (p jobWithPrismaWorkflowSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p jobWithPrismaWorkflowSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaCreatedAtSetParam) aPITokenModel() {} +func (p jobWithPrismaWorkflowSetParam) jobModel() {} -func (p aPITokenWithPrismaCreatedAtSetParam) createdAtField() {} +func (p jobWithPrismaWorkflowSetParam) workflowField() {} -type APITokenWithPrismaCreatedAtWhereParam interface { +type JobWithPrismaWorkflowWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - createdAtField() + jobModel() + workflowField() } -type aPITokenWithPrismaCreatedAtEqualsParam struct { +type jobWithPrismaWorkflowEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p jobWithPrismaWorkflowEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaWorkflowEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaCreatedAtEqualsParam) aPITokenModel() {} +func (p jobWithPrismaWorkflowEqualsParam) jobModel() {} -func (p aPITokenWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p jobWithPrismaWorkflowEqualsParam) workflowField() {} -func (aPITokenWithPrismaCreatedAtSetParam) settable() {} -func (aPITokenWithPrismaCreatedAtEqualsParam) equals() {} +func (jobWithPrismaWorkflowSetParam) settable() {} +func (jobWithPrismaWorkflowEqualsParam) equals() {} -type aPITokenWithPrismaCreatedAtEqualsUniqueParam struct { +type jobWithPrismaWorkflowEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaCreatedAtEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p jobWithPrismaWorkflowEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaWorkflowEqualsUniqueParam) workflowField() {} -func (aPITokenWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (jobWithPrismaWorkflowEqualsUniqueParam) unique() {} +func (jobWithPrismaWorkflowEqualsUniqueParam) equals() {} -type APITokenWithPrismaUpdatedAtEqualsSetParam interface { +type JobWithPrismaWorkflowVersionIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - updatedAtField() + jobModel() + workflowVersionIDField() } -type APITokenWithPrismaUpdatedAtSetParam interface { +type JobWithPrismaWorkflowVersionIDSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - updatedAtField() + jobModel() + workflowVersionIDField() } -type aPITokenWithPrismaUpdatedAtSetParam struct { +type jobWithPrismaWorkflowVersionIDSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p jobWithPrismaWorkflowVersionIDSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p jobWithPrismaWorkflowVersionIDSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaUpdatedAtSetParam) aPITokenModel() {} +func (p jobWithPrismaWorkflowVersionIDSetParam) jobModel() {} -func (p aPITokenWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p jobWithPrismaWorkflowVersionIDSetParam) workflowVersionIDField() {} -type APITokenWithPrismaUpdatedAtWhereParam interface { +type JobWithPrismaWorkflowVersionIDWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - updatedAtField() + jobModel() + workflowVersionIDField() } -type aPITokenWithPrismaUpdatedAtEqualsParam struct { +type jobWithPrismaWorkflowVersionIDEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p jobWithPrismaWorkflowVersionIDEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaWorkflowVersionIDEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaUpdatedAtEqualsParam) aPITokenModel() {} +func (p jobWithPrismaWorkflowVersionIDEqualsParam) jobModel() {} -func (p aPITokenWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p jobWithPrismaWorkflowVersionIDEqualsParam) workflowVersionIDField() {} -func (aPITokenWithPrismaUpdatedAtSetParam) settable() {} -func (aPITokenWithPrismaUpdatedAtEqualsParam) equals() {} +func (jobWithPrismaWorkflowVersionIDSetParam) settable() {} +func (jobWithPrismaWorkflowVersionIDEqualsParam) equals() {} -type aPITokenWithPrismaUpdatedAtEqualsUniqueParam struct { +type jobWithPrismaWorkflowVersionIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaWorkflowVersionIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaWorkflowVersionIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaUpdatedAtEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p jobWithPrismaWorkflowVersionIDEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowVersionIDField() {} -func (aPITokenWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (jobWithPrismaWorkflowVersionIDEqualsUniqueParam) unique() {} +func (jobWithPrismaWorkflowVersionIDEqualsUniqueParam) equals() {} -type APITokenWithPrismaExpiresAtEqualsSetParam interface { +type JobWithPrismaNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - expiresAtField() + jobModel() + nameField() } -type APITokenWithPrismaExpiresAtSetParam interface { +type JobWithPrismaNameSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - expiresAtField() + jobModel() + nameField() } -type aPITokenWithPrismaExpiresAtSetParam struct { +type jobWithPrismaNameSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaExpiresAtSetParam) field() builder.Field { +func (p jobWithPrismaNameSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaExpiresAtSetParam) getQuery() builder.Query { +func (p jobWithPrismaNameSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaExpiresAtSetParam) aPITokenModel() {} +func (p jobWithPrismaNameSetParam) jobModel() {} -func (p aPITokenWithPrismaExpiresAtSetParam) expiresAtField() {} +func (p jobWithPrismaNameSetParam) nameField() {} -type APITokenWithPrismaExpiresAtWhereParam interface { +type JobWithPrismaNameWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - expiresAtField() + jobModel() + nameField() } -type aPITokenWithPrismaExpiresAtEqualsParam struct { +type jobWithPrismaNameEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaExpiresAtEqualsParam) field() builder.Field { +func (p jobWithPrismaNameEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaExpiresAtEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaNameEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaExpiresAtEqualsParam) aPITokenModel() {} +func (p jobWithPrismaNameEqualsParam) jobModel() {} -func (p aPITokenWithPrismaExpiresAtEqualsParam) expiresAtField() {} +func (p jobWithPrismaNameEqualsParam) nameField() {} -func (aPITokenWithPrismaExpiresAtSetParam) settable() {} -func (aPITokenWithPrismaExpiresAtEqualsParam) equals() {} +func (jobWithPrismaNameSetParam) settable() {} +func (jobWithPrismaNameEqualsParam) equals() {} -type aPITokenWithPrismaExpiresAtEqualsUniqueParam struct { +type jobWithPrismaNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaExpiresAtEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaExpiresAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaExpiresAtEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaExpiresAtEqualsUniqueParam) expiresAtField() {} +func (p jobWithPrismaNameEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaNameEqualsUniqueParam) nameField() {} -func (aPITokenWithPrismaExpiresAtEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaExpiresAtEqualsUniqueParam) equals() {} +func (jobWithPrismaNameEqualsUniqueParam) unique() {} +func (jobWithPrismaNameEqualsUniqueParam) equals() {} -type APITokenWithPrismaRevokedEqualsSetParam interface { +type JobWithPrismaDescriptionEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - revokedField() + jobModel() + descriptionField() } -type APITokenWithPrismaRevokedSetParam interface { +type JobWithPrismaDescriptionSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - revokedField() + jobModel() + descriptionField() } -type aPITokenWithPrismaRevokedSetParam struct { +type jobWithPrismaDescriptionSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaRevokedSetParam) field() builder.Field { +func (p jobWithPrismaDescriptionSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaRevokedSetParam) getQuery() builder.Query { +func (p jobWithPrismaDescriptionSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaRevokedSetParam) aPITokenModel() {} +func (p jobWithPrismaDescriptionSetParam) jobModel() {} -func (p aPITokenWithPrismaRevokedSetParam) revokedField() {} +func (p jobWithPrismaDescriptionSetParam) descriptionField() {} -type APITokenWithPrismaRevokedWhereParam interface { +type JobWithPrismaDescriptionWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - revokedField() + jobModel() + descriptionField() } -type aPITokenWithPrismaRevokedEqualsParam struct { +type jobWithPrismaDescriptionEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaRevokedEqualsParam) field() builder.Field { +func (p jobWithPrismaDescriptionEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaRevokedEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaDescriptionEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaRevokedEqualsParam) aPITokenModel() {} +func (p jobWithPrismaDescriptionEqualsParam) jobModel() {} -func (p aPITokenWithPrismaRevokedEqualsParam) revokedField() {} +func (p jobWithPrismaDescriptionEqualsParam) descriptionField() {} -func (aPITokenWithPrismaRevokedSetParam) settable() {} -func (aPITokenWithPrismaRevokedEqualsParam) equals() {} +func (jobWithPrismaDescriptionSetParam) settable() {} +func (jobWithPrismaDescriptionEqualsParam) equals() {} -type aPITokenWithPrismaRevokedEqualsUniqueParam struct { +type jobWithPrismaDescriptionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaRevokedEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaDescriptionEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaRevokedEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaDescriptionEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaRevokedEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaRevokedEqualsUniqueParam) revokedField() {} +func (p jobWithPrismaDescriptionEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaDescriptionEqualsUniqueParam) descriptionField() {} -func (aPITokenWithPrismaRevokedEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaRevokedEqualsUniqueParam) equals() {} +func (jobWithPrismaDescriptionEqualsUniqueParam) unique() {} +func (jobWithPrismaDescriptionEqualsUniqueParam) equals() {} -type APITokenWithPrismaNextAlertAtEqualsSetParam interface { +type JobWithPrismaStepsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - nextAlertAtField() + jobModel() + stepsField() } -type APITokenWithPrismaNextAlertAtSetParam interface { +type JobWithPrismaStepsSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - nextAlertAtField() + jobModel() + stepsField() } -type aPITokenWithPrismaNextAlertAtSetParam struct { +type jobWithPrismaStepsSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaNextAlertAtSetParam) field() builder.Field { +func (p jobWithPrismaStepsSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaNextAlertAtSetParam) getQuery() builder.Query { +func (p jobWithPrismaStepsSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaNextAlertAtSetParam) aPITokenModel() {} +func (p jobWithPrismaStepsSetParam) jobModel() {} -func (p aPITokenWithPrismaNextAlertAtSetParam) nextAlertAtField() {} +func (p jobWithPrismaStepsSetParam) stepsField() {} -type APITokenWithPrismaNextAlertAtWhereParam interface { +type JobWithPrismaStepsWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - nextAlertAtField() + jobModel() + stepsField() } -type aPITokenWithPrismaNextAlertAtEqualsParam struct { +type jobWithPrismaStepsEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaNextAlertAtEqualsParam) field() builder.Field { +func (p jobWithPrismaStepsEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaNextAlertAtEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaStepsEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaNextAlertAtEqualsParam) aPITokenModel() {} +func (p jobWithPrismaStepsEqualsParam) jobModel() {} -func (p aPITokenWithPrismaNextAlertAtEqualsParam) nextAlertAtField() {} +func (p jobWithPrismaStepsEqualsParam) stepsField() {} -func (aPITokenWithPrismaNextAlertAtSetParam) settable() {} -func (aPITokenWithPrismaNextAlertAtEqualsParam) equals() {} +func (jobWithPrismaStepsSetParam) settable() {} +func (jobWithPrismaStepsEqualsParam) equals() {} -type aPITokenWithPrismaNextAlertAtEqualsUniqueParam struct { +type jobWithPrismaStepsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaNextAlertAtEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaStepsEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaNextAlertAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaStepsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaNextAlertAtEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaNextAlertAtEqualsUniqueParam) nextAlertAtField() {} +func (p jobWithPrismaStepsEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaStepsEqualsUniqueParam) stepsField() {} -func (aPITokenWithPrismaNextAlertAtEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaNextAlertAtEqualsUniqueParam) equals() {} +func (jobWithPrismaStepsEqualsUniqueParam) unique() {} +func (jobWithPrismaStepsEqualsUniqueParam) equals() {} -type APITokenWithPrismaNameEqualsSetParam interface { +type JobWithPrismaTimeoutEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - nameField() + jobModel() + timeoutField() } -type APITokenWithPrismaNameSetParam interface { +type JobWithPrismaTimeoutSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - nameField() + jobModel() + timeoutField() } -type aPITokenWithPrismaNameSetParam struct { +type jobWithPrismaTimeoutSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaNameSetParam) field() builder.Field { +func (p jobWithPrismaTimeoutSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaNameSetParam) getQuery() builder.Query { +func (p jobWithPrismaTimeoutSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaNameSetParam) aPITokenModel() {} +func (p jobWithPrismaTimeoutSetParam) jobModel() {} -func (p aPITokenWithPrismaNameSetParam) nameField() {} +func (p jobWithPrismaTimeoutSetParam) timeoutField() {} -type APITokenWithPrismaNameWhereParam interface { +type JobWithPrismaTimeoutWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - nameField() + jobModel() + timeoutField() } -type aPITokenWithPrismaNameEqualsParam struct { +type jobWithPrismaTimeoutEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaNameEqualsParam) field() builder.Field { +func (p jobWithPrismaTimeoutEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaNameEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaTimeoutEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaNameEqualsParam) aPITokenModel() {} +func (p jobWithPrismaTimeoutEqualsParam) jobModel() {} -func (p aPITokenWithPrismaNameEqualsParam) nameField() {} +func (p jobWithPrismaTimeoutEqualsParam) timeoutField() {} -func (aPITokenWithPrismaNameSetParam) settable() {} -func (aPITokenWithPrismaNameEqualsParam) equals() {} +func (jobWithPrismaTimeoutSetParam) settable() {} +func (jobWithPrismaTimeoutEqualsParam) equals() {} -type aPITokenWithPrismaNameEqualsUniqueParam struct { +type jobWithPrismaTimeoutEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaNameEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaTimeoutEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaTimeoutEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaNameEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaNameEqualsUniqueParam) nameField() {} +func (p jobWithPrismaTimeoutEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaTimeoutEqualsUniqueParam) timeoutField() {} -func (aPITokenWithPrismaNameEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaNameEqualsUniqueParam) equals() {} +func (jobWithPrismaTimeoutEqualsUniqueParam) unique() {} +func (jobWithPrismaTimeoutEqualsUniqueParam) equals() {} -type APITokenWithPrismaTenantEqualsSetParam interface { +type JobWithPrismaRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - tenantField() + jobModel() + runsField() } -type APITokenWithPrismaTenantSetParam interface { +type JobWithPrismaRunsSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - tenantField() + jobModel() + runsField() } -type aPITokenWithPrismaTenantSetParam struct { +type jobWithPrismaRunsSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaTenantSetParam) field() builder.Field { +func (p jobWithPrismaRunsSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaTenantSetParam) getQuery() builder.Query { +func (p jobWithPrismaRunsSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaTenantSetParam) aPITokenModel() {} +func (p jobWithPrismaRunsSetParam) jobModel() {} -func (p aPITokenWithPrismaTenantSetParam) tenantField() {} +func (p jobWithPrismaRunsSetParam) runsField() {} -type APITokenWithPrismaTenantWhereParam interface { +type JobWithPrismaRunsWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - tenantField() + jobModel() + runsField() } -type aPITokenWithPrismaTenantEqualsParam struct { +type jobWithPrismaRunsEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaTenantEqualsParam) field() builder.Field { +func (p jobWithPrismaRunsEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaTenantEqualsParam) aPITokenModel() {} +func (p jobWithPrismaRunsEqualsParam) jobModel() {} -func (p aPITokenWithPrismaTenantEqualsParam) tenantField() {} +func (p jobWithPrismaRunsEqualsParam) runsField() {} -func (aPITokenWithPrismaTenantSetParam) settable() {} -func (aPITokenWithPrismaTenantEqualsParam) equals() {} +func (jobWithPrismaRunsSetParam) settable() {} +func (jobWithPrismaRunsEqualsParam) equals() {} -type aPITokenWithPrismaTenantEqualsUniqueParam struct { +type jobWithPrismaRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaTenantEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p jobWithPrismaRunsEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaRunsEqualsUniqueParam) runsField() {} -func (aPITokenWithPrismaTenantEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaTenantEqualsUniqueParam) equals() {} +func (jobWithPrismaRunsEqualsUniqueParam) unique() {} +func (jobWithPrismaRunsEqualsUniqueParam) equals() {} -type APITokenWithPrismaTenantIDEqualsSetParam interface { +type JobWithPrismaKindEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - tenantIDField() + jobModel() + kindField() } -type APITokenWithPrismaTenantIDSetParam interface { +type JobWithPrismaKindSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - tenantIDField() + jobModel() + kindField() } -type aPITokenWithPrismaTenantIDSetParam struct { +type jobWithPrismaKindSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaTenantIDSetParam) field() builder.Field { +func (p jobWithPrismaKindSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p jobWithPrismaKindSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaTenantIDSetParam) aPITokenModel() {} +func (p jobWithPrismaKindSetParam) jobModel() {} -func (p aPITokenWithPrismaTenantIDSetParam) tenantIDField() {} +func (p jobWithPrismaKindSetParam) kindField() {} -type APITokenWithPrismaTenantIDWhereParam interface { +type JobWithPrismaKindWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - tenantIDField() + jobModel() + kindField() } -type aPITokenWithPrismaTenantIDEqualsParam struct { +type jobWithPrismaKindEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p jobWithPrismaKindEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaKindEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaTenantIDEqualsParam) aPITokenModel() {} +func (p jobWithPrismaKindEqualsParam) jobModel() {} -func (p aPITokenWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p jobWithPrismaKindEqualsParam) kindField() {} -func (aPITokenWithPrismaTenantIDSetParam) settable() {} -func (aPITokenWithPrismaTenantIDEqualsParam) equals() {} +func (jobWithPrismaKindSetParam) settable() {} +func (jobWithPrismaKindEqualsParam) equals() {} -type aPITokenWithPrismaTenantIDEqualsUniqueParam struct { +type jobWithPrismaKindEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaKindEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaKindEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaTenantIDEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p jobWithPrismaKindEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaKindEqualsUniqueParam) kindField() {} -func (aPITokenWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (jobWithPrismaKindEqualsUniqueParam) unique() {} +func (jobWithPrismaKindEqualsUniqueParam) equals() {} -type APITokenWithPrismaWebhookWorkersEqualsSetParam interface { +type JobWithPrismaFailureRelationsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - aPITokenModel() - webhookWorkersField() + jobModel() + failureRelationsField() } -type APITokenWithPrismaWebhookWorkersSetParam interface { +type JobWithPrismaFailureRelationsSetParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - webhookWorkersField() + jobModel() + failureRelationsField() } -type aPITokenWithPrismaWebhookWorkersSetParam struct { +type jobWithPrismaFailureRelationsSetParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaWebhookWorkersSetParam) field() builder.Field { +func (p jobWithPrismaFailureRelationsSetParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaWebhookWorkersSetParam) getQuery() builder.Query { +func (p jobWithPrismaFailureRelationsSetParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaWebhookWorkersSetParam) aPITokenModel() {} +func (p jobWithPrismaFailureRelationsSetParam) jobModel() {} -func (p aPITokenWithPrismaWebhookWorkersSetParam) webhookWorkersField() {} +func (p jobWithPrismaFailureRelationsSetParam) failureRelationsField() {} -type APITokenWithPrismaWebhookWorkersWhereParam interface { +type JobWithPrismaFailureRelationsWhereParam interface { field() builder.Field getQuery() builder.Query - aPITokenModel() - webhookWorkersField() + jobModel() + failureRelationsField() } -type aPITokenWithPrismaWebhookWorkersEqualsParam struct { +type jobWithPrismaFailureRelationsEqualsParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaWebhookWorkersEqualsParam) field() builder.Field { +func (p jobWithPrismaFailureRelationsEqualsParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaWebhookWorkersEqualsParam) getQuery() builder.Query { +func (p jobWithPrismaFailureRelationsEqualsParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaWebhookWorkersEqualsParam) aPITokenModel() {} +func (p jobWithPrismaFailureRelationsEqualsParam) jobModel() {} -func (p aPITokenWithPrismaWebhookWorkersEqualsParam) webhookWorkersField() {} +func (p jobWithPrismaFailureRelationsEqualsParam) failureRelationsField() {} -func (aPITokenWithPrismaWebhookWorkersSetParam) settable() {} -func (aPITokenWithPrismaWebhookWorkersEqualsParam) equals() {} +func (jobWithPrismaFailureRelationsSetParam) settable() {} +func (jobWithPrismaFailureRelationsEqualsParam) equals() {} -type aPITokenWithPrismaWebhookWorkersEqualsUniqueParam struct { +type jobWithPrismaFailureRelationsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) field() builder.Field { +func (p jobWithPrismaFailureRelationsEqualsUniqueParam) field() builder.Field { return p.data } -func (p aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) getQuery() builder.Query { +func (p jobWithPrismaFailureRelationsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) aPITokenModel() {} -func (p aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) webhookWorkersField() {} +func (p jobWithPrismaFailureRelationsEqualsUniqueParam) jobModel() {} +func (p jobWithPrismaFailureRelationsEqualsUniqueParam) failureRelationsField() {} -func (aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) unique() {} -func (aPITokenWithPrismaWebhookWorkersEqualsUniqueParam) equals() {} +func (jobWithPrismaFailureRelationsEqualsUniqueParam) unique() {} +func (jobWithPrismaFailureRelationsEqualsUniqueParam) equals() {} -type eventActions struct { +type actionActions struct { // client holds the prisma client client *PrismaClient } -var eventOutput = []builder.Output{ +var actionOutput = []builder.Output{ {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "key"}, + {Name: "actionId"}, + {Name: "description"}, {Name: "tenantId"}, - {Name: "replayedFromId"}, - {Name: "data"}, - {Name: "additionalMetadata"}, } -type EventRelationWith interface { +type ActionRelationWith interface { getQuery() builder.Query with() - eventRelation() + actionRelation() } -type EventWhereParam interface { +type ActionWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() + actionModel() } -type eventDefaultParam struct { +type actionDefaultParam struct { data builder.Field query builder.Query } -func (p eventDefaultParam) field() builder.Field { +func (p actionDefaultParam) field() builder.Field { return p.data } -func (p eventDefaultParam) getQuery() builder.Query { +func (p actionDefaultParam) getQuery() builder.Query { return p.query } -func (p eventDefaultParam) eventModel() {} +func (p actionDefaultParam) actionModel() {} -type EventOrderByParam interface { +type ActionOrderByParam interface { field() builder.Field getQuery() builder.Query - eventModel() + actionModel() } -type eventOrderByParam struct { +type actionOrderByParam struct { data builder.Field query builder.Query } -func (p eventOrderByParam) field() builder.Field { +func (p actionOrderByParam) field() builder.Field { return p.data } -func (p eventOrderByParam) getQuery() builder.Query { +func (p actionOrderByParam) getQuery() builder.Query { return p.query } -func (p eventOrderByParam) eventModel() {} +func (p actionOrderByParam) actionModel() {} -type EventCursorParam interface { +type ActionCursorParam interface { field() builder.Field getQuery() builder.Query - eventModel() + actionModel() isCursor() } -type eventCursorParam struct { +type actionCursorParam struct { data builder.Field query builder.Query } -func (p eventCursorParam) field() builder.Field { +func (p actionCursorParam) field() builder.Field { return p.data } -func (p eventCursorParam) isCursor() {} +func (p actionCursorParam) isCursor() {} -func (p eventCursorParam) getQuery() builder.Query { +func (p actionCursorParam) getQuery() builder.Query { return p.query } -func (p eventCursorParam) eventModel() {} +func (p actionCursorParam) actionModel() {} -type EventParamUnique interface { +type ActionParamUnique interface { field() builder.Field getQuery() builder.Query unique() - eventModel() + actionModel() } -type eventParamUnique struct { +type actionParamUnique struct { data builder.Field query builder.Query } -func (p eventParamUnique) eventModel() {} +func (p actionParamUnique) actionModel() {} -func (eventParamUnique) unique() {} +func (actionParamUnique) unique() {} -func (p eventParamUnique) field() builder.Field { +func (p actionParamUnique) field() builder.Field { return p.data } -func (p eventParamUnique) getQuery() builder.Query { +func (p actionParamUnique) getQuery() builder.Query { return p.query } -type EventEqualsWhereParam interface { +type ActionEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() + actionModel() } -type eventEqualsParam struct { +type actionEqualsParam struct { data builder.Field query builder.Query } -func (p eventEqualsParam) eventModel() {} +func (p actionEqualsParam) actionModel() {} -func (eventEqualsParam) equals() {} +func (actionEqualsParam) equals() {} -func (p eventEqualsParam) field() builder.Field { +func (p actionEqualsParam) field() builder.Field { return p.data } -func (p eventEqualsParam) getQuery() builder.Query { +func (p actionEqualsParam) getQuery() builder.Query { return p.query } -type EventEqualsUniqueWhereParam interface { +type ActionEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - eventModel() + actionModel() } -type eventEqualsUniqueParam struct { +type actionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventEqualsUniqueParam) eventModel() {} +func (p actionEqualsUniqueParam) actionModel() {} -func (eventEqualsUniqueParam) unique() {} -func (eventEqualsUniqueParam) equals() {} +func (actionEqualsUniqueParam) unique() {} +func (actionEqualsUniqueParam) equals() {} -func (p eventEqualsUniqueParam) field() builder.Field { +func (p actionEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventEqualsUniqueParam) getQuery() builder.Query { +func (p actionEqualsUniqueParam) getQuery() builder.Query { return p.query } -type EventSetParam interface { +type ActionSetParam interface { field() builder.Field settable() - eventModel() + actionModel() } -type eventSetParam struct { +type actionSetParam struct { data builder.Field } -func (eventSetParam) settable() {} +func (actionSetParam) settable() {} -func (p eventSetParam) field() builder.Field { +func (p actionSetParam) field() builder.Field { return p.data } -func (p eventSetParam) eventModel() {} +func (p actionSetParam) actionModel() {} -type EventWithPrismaIDEqualsSetParam interface { +type ActionWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() + actionModel() idField() } -type EventWithPrismaIDSetParam interface { +type ActionWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() + actionModel() idField() } -type eventWithPrismaIDSetParam struct { +type actionWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaIDSetParam) field() builder.Field { +func (p actionWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaIDSetParam) getQuery() builder.Query { +func (p actionWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaIDSetParam) eventModel() {} +func (p actionWithPrismaIDSetParam) actionModel() {} -func (p eventWithPrismaIDSetParam) idField() {} +func (p actionWithPrismaIDSetParam) idField() {} -type EventWithPrismaIDWhereParam interface { +type ActionWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() + actionModel() idField() } -type eventWithPrismaIDEqualsParam struct { +type actionWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaIDEqualsParam) field() builder.Field { +func (p actionWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p actionWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaIDEqualsParam) eventModel() {} +func (p actionWithPrismaIDEqualsParam) actionModel() {} -func (p eventWithPrismaIDEqualsParam) idField() {} +func (p actionWithPrismaIDEqualsParam) idField() {} -func (eventWithPrismaIDSetParam) settable() {} -func (eventWithPrismaIDEqualsParam) equals() {} +func (actionWithPrismaIDSetParam) settable() {} +func (actionWithPrismaIDEqualsParam) equals() {} -type eventWithPrismaIDEqualsUniqueParam struct { +type actionWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p actionWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p actionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaIDEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaIDEqualsUniqueParam) idField() {} +func (p actionWithPrismaIDEqualsUniqueParam) actionModel() {} +func (p actionWithPrismaIDEqualsUniqueParam) idField() {} -func (eventWithPrismaIDEqualsUniqueParam) unique() {} -func (eventWithPrismaIDEqualsUniqueParam) equals() {} +func (actionWithPrismaIDEqualsUniqueParam) unique() {} +func (actionWithPrismaIDEqualsUniqueParam) equals() {} -type EventWithPrismaCreatedAtEqualsSetParam interface { +type ActionWithPrismaActionIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - createdAtField() + actionModel() + actionIDField() } -type EventWithPrismaCreatedAtSetParam interface { +type ActionWithPrismaActionIDSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - createdAtField() + actionModel() + actionIDField() } -type eventWithPrismaCreatedAtSetParam struct { +type actionWithPrismaActionIDSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaCreatedAtSetParam) field() builder.Field { +func (p actionWithPrismaActionIDSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p actionWithPrismaActionIDSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaCreatedAtSetParam) eventModel() {} +func (p actionWithPrismaActionIDSetParam) actionModel() {} -func (p eventWithPrismaCreatedAtSetParam) createdAtField() {} +func (p actionWithPrismaActionIDSetParam) actionIDField() {} -type EventWithPrismaCreatedAtWhereParam interface { +type ActionWithPrismaActionIDWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - createdAtField() + actionModel() + actionIDField() } -type eventWithPrismaCreatedAtEqualsParam struct { +type actionWithPrismaActionIDEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p actionWithPrismaActionIDEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p actionWithPrismaActionIDEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaCreatedAtEqualsParam) eventModel() {} +func (p actionWithPrismaActionIDEqualsParam) actionModel() {} -func (p eventWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p actionWithPrismaActionIDEqualsParam) actionIDField() {} -func (eventWithPrismaCreatedAtSetParam) settable() {} -func (eventWithPrismaCreatedAtEqualsParam) equals() {} +func (actionWithPrismaActionIDSetParam) settable() {} +func (actionWithPrismaActionIDEqualsParam) equals() {} -type eventWithPrismaCreatedAtEqualsUniqueParam struct { +type actionWithPrismaActionIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p actionWithPrismaActionIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p actionWithPrismaActionIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaCreatedAtEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p actionWithPrismaActionIDEqualsUniqueParam) actionModel() {} +func (p actionWithPrismaActionIDEqualsUniqueParam) actionIDField() {} -func (eventWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (eventWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (actionWithPrismaActionIDEqualsUniqueParam) unique() {} +func (actionWithPrismaActionIDEqualsUniqueParam) equals() {} -type EventWithPrismaUpdatedAtEqualsSetParam interface { +type ActionWithPrismaDescriptionEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - updatedAtField() + actionModel() + descriptionField() } -type EventWithPrismaUpdatedAtSetParam interface { +type ActionWithPrismaDescriptionSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - updatedAtField() + actionModel() + descriptionField() } -type eventWithPrismaUpdatedAtSetParam struct { +type actionWithPrismaDescriptionSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p actionWithPrismaDescriptionSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p actionWithPrismaDescriptionSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaUpdatedAtSetParam) eventModel() {} +func (p actionWithPrismaDescriptionSetParam) actionModel() {} -func (p eventWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p actionWithPrismaDescriptionSetParam) descriptionField() {} -type EventWithPrismaUpdatedAtWhereParam interface { +type ActionWithPrismaDescriptionWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - updatedAtField() + actionModel() + descriptionField() } -type eventWithPrismaUpdatedAtEqualsParam struct { +type actionWithPrismaDescriptionEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p actionWithPrismaDescriptionEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p actionWithPrismaDescriptionEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaUpdatedAtEqualsParam) eventModel() {} +func (p actionWithPrismaDescriptionEqualsParam) actionModel() {} -func (p eventWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p actionWithPrismaDescriptionEqualsParam) descriptionField() {} -func (eventWithPrismaUpdatedAtSetParam) settable() {} -func (eventWithPrismaUpdatedAtEqualsParam) equals() {} +func (actionWithPrismaDescriptionSetParam) settable() {} +func (actionWithPrismaDescriptionEqualsParam) equals() {} -type eventWithPrismaUpdatedAtEqualsUniqueParam struct { +type actionWithPrismaDescriptionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p actionWithPrismaDescriptionEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p actionWithPrismaDescriptionEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaUpdatedAtEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p actionWithPrismaDescriptionEqualsUniqueParam) actionModel() {} +func (p actionWithPrismaDescriptionEqualsUniqueParam) descriptionField() {} -func (eventWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (eventWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (actionWithPrismaDescriptionEqualsUniqueParam) unique() {} +func (actionWithPrismaDescriptionEqualsUniqueParam) equals() {} -type EventWithPrismaDeletedAtEqualsSetParam interface { +type ActionWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - deletedAtField() + actionModel() + tenantField() } -type EventWithPrismaDeletedAtSetParam interface { +type ActionWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - deletedAtField() + actionModel() + tenantField() } -type eventWithPrismaDeletedAtSetParam struct { +type actionWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaDeletedAtSetParam) field() builder.Field { +func (p actionWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p actionWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaDeletedAtSetParam) eventModel() {} +func (p actionWithPrismaTenantSetParam) actionModel() {} -func (p eventWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p actionWithPrismaTenantSetParam) tenantField() {} -type EventWithPrismaDeletedAtWhereParam interface { +type ActionWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - deletedAtField() + actionModel() + tenantField() } -type eventWithPrismaDeletedAtEqualsParam struct { +type actionWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p actionWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p actionWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaDeletedAtEqualsParam) eventModel() {} +func (p actionWithPrismaTenantEqualsParam) actionModel() {} -func (p eventWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p actionWithPrismaTenantEqualsParam) tenantField() {} -func (eventWithPrismaDeletedAtSetParam) settable() {} -func (eventWithPrismaDeletedAtEqualsParam) equals() {} +func (actionWithPrismaTenantSetParam) settable() {} +func (actionWithPrismaTenantEqualsParam) equals() {} -type eventWithPrismaDeletedAtEqualsUniqueParam struct { +type actionWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p actionWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p actionWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaDeletedAtEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p actionWithPrismaTenantEqualsUniqueParam) actionModel() {} +func (p actionWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (eventWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (eventWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (actionWithPrismaTenantEqualsUniqueParam) unique() {} +func (actionWithPrismaTenantEqualsUniqueParam) equals() {} -type EventWithPrismaKeyEqualsSetParam interface { +type ActionWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - keyField() + actionModel() + tenantIDField() } -type EventWithPrismaKeySetParam interface { +type ActionWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - keyField() + actionModel() + tenantIDField() } -type eventWithPrismaKeySetParam struct { +type actionWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaKeySetParam) field() builder.Field { +func (p actionWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaKeySetParam) getQuery() builder.Query { +func (p actionWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaKeySetParam) eventModel() {} +func (p actionWithPrismaTenantIDSetParam) actionModel() {} -func (p eventWithPrismaKeySetParam) keyField() {} +func (p actionWithPrismaTenantIDSetParam) tenantIDField() {} -type EventWithPrismaKeyWhereParam interface { +type ActionWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - keyField() + actionModel() + tenantIDField() } -type eventWithPrismaKeyEqualsParam struct { +type actionWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaKeyEqualsParam) field() builder.Field { +func (p actionWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaKeyEqualsParam) getQuery() builder.Query { +func (p actionWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaKeyEqualsParam) eventModel() {} +func (p actionWithPrismaTenantIDEqualsParam) actionModel() {} -func (p eventWithPrismaKeyEqualsParam) keyField() {} +func (p actionWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (eventWithPrismaKeySetParam) settable() {} -func (eventWithPrismaKeyEqualsParam) equals() {} +func (actionWithPrismaTenantIDSetParam) settable() {} +func (actionWithPrismaTenantIDEqualsParam) equals() {} -type eventWithPrismaKeyEqualsUniqueParam struct { +type actionWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaKeyEqualsUniqueParam) field() builder.Field { +func (p actionWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaKeyEqualsUniqueParam) getQuery() builder.Query { +func (p actionWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaKeyEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaKeyEqualsUniqueParam) keyField() {} +func (p actionWithPrismaTenantIDEqualsUniqueParam) actionModel() {} +func (p actionWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (eventWithPrismaKeyEqualsUniqueParam) unique() {} -func (eventWithPrismaKeyEqualsUniqueParam) equals() {} +func (actionWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (actionWithPrismaTenantIDEqualsUniqueParam) equals() {} -type EventWithPrismaTenantEqualsSetParam interface { +type ActionWithPrismaStepsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - tenantField() + actionModel() + stepsField() } -type EventWithPrismaTenantSetParam interface { +type ActionWithPrismaStepsSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - tenantField() + actionModel() + stepsField() } -type eventWithPrismaTenantSetParam struct { +type actionWithPrismaStepsSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaTenantSetParam) field() builder.Field { +func (p actionWithPrismaStepsSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaTenantSetParam) getQuery() builder.Query { +func (p actionWithPrismaStepsSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaTenantSetParam) eventModel() {} +func (p actionWithPrismaStepsSetParam) actionModel() {} -func (p eventWithPrismaTenantSetParam) tenantField() {} +func (p actionWithPrismaStepsSetParam) stepsField() {} -type EventWithPrismaTenantWhereParam interface { +type ActionWithPrismaStepsWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - tenantField() + actionModel() + stepsField() } -type eventWithPrismaTenantEqualsParam struct { +type actionWithPrismaStepsEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaTenantEqualsParam) field() builder.Field { +func (p actionWithPrismaStepsEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p actionWithPrismaStepsEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaTenantEqualsParam) eventModel() {} +func (p actionWithPrismaStepsEqualsParam) actionModel() {} -func (p eventWithPrismaTenantEqualsParam) tenantField() {} +func (p actionWithPrismaStepsEqualsParam) stepsField() {} -func (eventWithPrismaTenantSetParam) settable() {} -func (eventWithPrismaTenantEqualsParam) equals() {} +func (actionWithPrismaStepsSetParam) settable() {} +func (actionWithPrismaStepsEqualsParam) equals() {} -type eventWithPrismaTenantEqualsUniqueParam struct { +type actionWithPrismaStepsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p actionWithPrismaStepsEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p actionWithPrismaStepsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaTenantEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p actionWithPrismaStepsEqualsUniqueParam) actionModel() {} +func (p actionWithPrismaStepsEqualsUniqueParam) stepsField() {} -func (eventWithPrismaTenantEqualsUniqueParam) unique() {} -func (eventWithPrismaTenantEqualsUniqueParam) equals() {} +func (actionWithPrismaStepsEqualsUniqueParam) unique() {} +func (actionWithPrismaStepsEqualsUniqueParam) equals() {} -type EventWithPrismaTenantIDEqualsSetParam interface { +type ActionWithPrismaWorkersEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - tenantIDField() + actionModel() + workersField() } -type EventWithPrismaTenantIDSetParam interface { +type ActionWithPrismaWorkersSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - tenantIDField() + actionModel() + workersField() } -type eventWithPrismaTenantIDSetParam struct { +type actionWithPrismaWorkersSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaTenantIDSetParam) field() builder.Field { +func (p actionWithPrismaWorkersSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p actionWithPrismaWorkersSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaTenantIDSetParam) eventModel() {} +func (p actionWithPrismaWorkersSetParam) actionModel() {} -func (p eventWithPrismaTenantIDSetParam) tenantIDField() {} +func (p actionWithPrismaWorkersSetParam) workersField() {} -type EventWithPrismaTenantIDWhereParam interface { +type ActionWithPrismaWorkersWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - tenantIDField() + actionModel() + workersField() } -type eventWithPrismaTenantIDEqualsParam struct { +type actionWithPrismaWorkersEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p actionWithPrismaWorkersEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p actionWithPrismaWorkersEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaTenantIDEqualsParam) eventModel() {} +func (p actionWithPrismaWorkersEqualsParam) actionModel() {} -func (p eventWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p actionWithPrismaWorkersEqualsParam) workersField() {} -func (eventWithPrismaTenantIDSetParam) settable() {} -func (eventWithPrismaTenantIDEqualsParam) equals() {} +func (actionWithPrismaWorkersSetParam) settable() {} +func (actionWithPrismaWorkersEqualsParam) equals() {} -type eventWithPrismaTenantIDEqualsUniqueParam struct { +type actionWithPrismaWorkersEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p actionWithPrismaWorkersEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p actionWithPrismaWorkersEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaTenantIDEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p actionWithPrismaWorkersEqualsUniqueParam) actionModel() {} +func (p actionWithPrismaWorkersEqualsUniqueParam) workersField() {} -func (eventWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (eventWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (actionWithPrismaWorkersEqualsUniqueParam) unique() {} +func (actionWithPrismaWorkersEqualsUniqueParam) equals() {} -type EventWithPrismaReplayedFromEqualsSetParam interface { +type ActionWithPrismaConcurrencyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - replayedFromField() + actionModel() + concurrencyField() } -type EventWithPrismaReplayedFromSetParam interface { +type ActionWithPrismaConcurrencySetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - replayedFromField() + actionModel() + concurrencyField() } -type eventWithPrismaReplayedFromSetParam struct { +type actionWithPrismaConcurrencySetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaReplayedFromSetParam) field() builder.Field { +func (p actionWithPrismaConcurrencySetParam) field() builder.Field { return p.data } -func (p eventWithPrismaReplayedFromSetParam) getQuery() builder.Query { +func (p actionWithPrismaConcurrencySetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaReplayedFromSetParam) eventModel() {} +func (p actionWithPrismaConcurrencySetParam) actionModel() {} -func (p eventWithPrismaReplayedFromSetParam) replayedFromField() {} +func (p actionWithPrismaConcurrencySetParam) concurrencyField() {} -type EventWithPrismaReplayedFromWhereParam interface { +type ActionWithPrismaConcurrencyWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - replayedFromField() + actionModel() + concurrencyField() } -type eventWithPrismaReplayedFromEqualsParam struct { +type actionWithPrismaConcurrencyEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaReplayedFromEqualsParam) field() builder.Field { +func (p actionWithPrismaConcurrencyEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaReplayedFromEqualsParam) getQuery() builder.Query { +func (p actionWithPrismaConcurrencyEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaReplayedFromEqualsParam) eventModel() {} +func (p actionWithPrismaConcurrencyEqualsParam) actionModel() {} -func (p eventWithPrismaReplayedFromEqualsParam) replayedFromField() {} +func (p actionWithPrismaConcurrencyEqualsParam) concurrencyField() {} -func (eventWithPrismaReplayedFromSetParam) settable() {} -func (eventWithPrismaReplayedFromEqualsParam) equals() {} +func (actionWithPrismaConcurrencySetParam) settable() {} +func (actionWithPrismaConcurrencyEqualsParam) equals() {} -type eventWithPrismaReplayedFromEqualsUniqueParam struct { +type actionWithPrismaConcurrencyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaReplayedFromEqualsUniqueParam) field() builder.Field { +func (p actionWithPrismaConcurrencyEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaReplayedFromEqualsUniqueParam) getQuery() builder.Query { +func (p actionWithPrismaConcurrencyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaReplayedFromEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaReplayedFromEqualsUniqueParam) replayedFromField() {} - -func (eventWithPrismaReplayedFromEqualsUniqueParam) unique() {} -func (eventWithPrismaReplayedFromEqualsUniqueParam) equals() {} - -type EventWithPrismaReplayedFromIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - eventModel() - replayedFromIDField() -} +func (p actionWithPrismaConcurrencyEqualsUniqueParam) actionModel() {} +func (p actionWithPrismaConcurrencyEqualsUniqueParam) concurrencyField() {} -type EventWithPrismaReplayedFromIDSetParam interface { - field() builder.Field - getQuery() builder.Query - eventModel() - replayedFromIDField() -} +func (actionWithPrismaConcurrencyEqualsUniqueParam) unique() {} +func (actionWithPrismaConcurrencyEqualsUniqueParam) equals() {} -type eventWithPrismaReplayedFromIDSetParam struct { - data builder.Field - query builder.Query +type stepDesiredWorkerLabelActions struct { + // client holds the prisma client + client *PrismaClient } -func (p eventWithPrismaReplayedFromIDSetParam) field() builder.Field { - return p.data +var stepDesiredWorkerLabelOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "stepId"}, + {Name: "key"}, + {Name: "strValue"}, + {Name: "intValue"}, + {Name: "required"}, + {Name: "comparator"}, + {Name: "weight"}, } -func (p eventWithPrismaReplayedFromIDSetParam) getQuery() builder.Query { - return p.query +type StepDesiredWorkerLabelRelationWith interface { + getQuery() builder.Query + with() + stepDesiredWorkerLabelRelation() } -func (p eventWithPrismaReplayedFromIDSetParam) eventModel() {} - -func (p eventWithPrismaReplayedFromIDSetParam) replayedFromIDField() {} - -type EventWithPrismaReplayedFromIDWhereParam interface { +type StepDesiredWorkerLabelWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - replayedFromIDField() + stepDesiredWorkerLabelModel() } -type eventWithPrismaReplayedFromIDEqualsParam struct { +type stepDesiredWorkerLabelDefaultParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaReplayedFromIDEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelDefaultParam) field() builder.Field { return p.data } -func (p eventWithPrismaReplayedFromIDEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelDefaultParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaReplayedFromIDEqualsParam) eventModel() {} - -func (p eventWithPrismaReplayedFromIDEqualsParam) replayedFromIDField() {} +func (p stepDesiredWorkerLabelDefaultParam) stepDesiredWorkerLabelModel() {} -func (eventWithPrismaReplayedFromIDSetParam) settable() {} -func (eventWithPrismaReplayedFromIDEqualsParam) equals() {} +type StepDesiredWorkerLabelOrderByParam interface { + field() builder.Field + getQuery() builder.Query + stepDesiredWorkerLabelModel() +} -type eventWithPrismaReplayedFromIDEqualsUniqueParam struct { +type stepDesiredWorkerLabelOrderByParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaReplayedFromIDEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelOrderByParam) field() builder.Field { return p.data } -func (p eventWithPrismaReplayedFromIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelOrderByParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaReplayedFromIDEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaReplayedFromIDEqualsUniqueParam) replayedFromIDField() {} - -func (eventWithPrismaReplayedFromIDEqualsUniqueParam) unique() {} -func (eventWithPrismaReplayedFromIDEqualsUniqueParam) equals() {} - -type EventWithPrismaReplaysEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - eventModel() - replaysField() -} +func (p stepDesiredWorkerLabelOrderByParam) stepDesiredWorkerLabelModel() {} -type EventWithPrismaReplaysSetParam interface { +type StepDesiredWorkerLabelCursorParam interface { field() builder.Field getQuery() builder.Query - eventModel() - replaysField() + stepDesiredWorkerLabelModel() + isCursor() } -type eventWithPrismaReplaysSetParam struct { +type stepDesiredWorkerLabelCursorParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaReplaysSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelCursorParam) field() builder.Field { return p.data } -func (p eventWithPrismaReplaysSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelCursorParam) isCursor() {} + +func (p stepDesiredWorkerLabelCursorParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaReplaysSetParam) eventModel() {} - -func (p eventWithPrismaReplaysSetParam) replaysField() {} +func (p stepDesiredWorkerLabelCursorParam) stepDesiredWorkerLabelModel() {} -type EventWithPrismaReplaysWhereParam interface { +type StepDesiredWorkerLabelParamUnique interface { field() builder.Field getQuery() builder.Query - eventModel() - replaysField() + unique() + stepDesiredWorkerLabelModel() } -type eventWithPrismaReplaysEqualsParam struct { +type stepDesiredWorkerLabelParamUnique struct { data builder.Field query builder.Query } -func (p eventWithPrismaReplaysEqualsParam) field() builder.Field { - return p.data -} - -func (p eventWithPrismaReplaysEqualsParam) getQuery() builder.Query { - return p.query -} - -func (p eventWithPrismaReplaysEqualsParam) eventModel() {} - -func (p eventWithPrismaReplaysEqualsParam) replaysField() {} - -func (eventWithPrismaReplaysSetParam) settable() {} -func (eventWithPrismaReplaysEqualsParam) equals() {} +func (p stepDesiredWorkerLabelParamUnique) stepDesiredWorkerLabelModel() {} -type eventWithPrismaReplaysEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (stepDesiredWorkerLabelParamUnique) unique() {} -func (p eventWithPrismaReplaysEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelParamUnique) field() builder.Field { return p.data } -func (p eventWithPrismaReplaysEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelParamUnique) getQuery() builder.Query { return p.query } -func (p eventWithPrismaReplaysEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaReplaysEqualsUniqueParam) replaysField() {} - -func (eventWithPrismaReplaysEqualsUniqueParam) unique() {} -func (eventWithPrismaReplaysEqualsUniqueParam) equals() {} - -type EventWithPrismaDataEqualsSetParam interface { +type StepDesiredWorkerLabelEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - dataField() -} - -type EventWithPrismaDataSetParam interface { - field() builder.Field - getQuery() builder.Query - eventModel() - dataField() + stepDesiredWorkerLabelModel() } -type eventWithPrismaDataSetParam struct { +type stepDesiredWorkerLabelEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaDataSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelEqualsParam) stepDesiredWorkerLabelModel() {} + +func (stepDesiredWorkerLabelEqualsParam) equals() {} + +func (p stepDesiredWorkerLabelEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaDataSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaDataSetParam) eventModel() {} - -func (p eventWithPrismaDataSetParam) dataField() {} - -type EventWithPrismaDataWhereParam interface { +type StepDesiredWorkerLabelEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - dataField() + equals() + unique() + stepDesiredWorkerLabelModel() } -type eventWithPrismaDataEqualsParam struct { +type stepDesiredWorkerLabelEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaDataEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelEqualsUniqueParam) stepDesiredWorkerLabelModel() {} + +func (stepDesiredWorkerLabelEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelEqualsUniqueParam) equals() {} + +func (p stepDesiredWorkerLabelEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaDataEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaDataEqualsParam) eventModel() {} - -func (p eventWithPrismaDataEqualsParam) dataField() {} - -func (eventWithPrismaDataSetParam) settable() {} -func (eventWithPrismaDataEqualsParam) equals() {} - -type eventWithPrismaDataEqualsUniqueParam struct { - data builder.Field - query builder.Query +type StepDesiredWorkerLabelSetParam interface { + field() builder.Field + settable() + stepDesiredWorkerLabelModel() } -func (p eventWithPrismaDataEqualsUniqueParam) field() builder.Field { - return p.data +type stepDesiredWorkerLabelSetParam struct { + data builder.Field } -func (p eventWithPrismaDataEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (stepDesiredWorkerLabelSetParam) settable() {} -func (p eventWithPrismaDataEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaDataEqualsUniqueParam) dataField() {} +func (p stepDesiredWorkerLabelSetParam) field() builder.Field { + return p.data +} -func (eventWithPrismaDataEqualsUniqueParam) unique() {} -func (eventWithPrismaDataEqualsUniqueParam) equals() {} +func (p stepDesiredWorkerLabelSetParam) stepDesiredWorkerLabelModel() {} -type EventWithPrismaAdditionalMetadataEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - additionalMetadataField() + stepDesiredWorkerLabelModel() + idField() } -type EventWithPrismaAdditionalMetadataSetParam interface { +type StepDesiredWorkerLabelWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - additionalMetadataField() + stepDesiredWorkerLabelModel() + idField() } -type eventWithPrismaAdditionalMetadataSetParam struct { +type stepDesiredWorkerLabelWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaAdditionalMetadataSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaAdditionalMetadataSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaAdditionalMetadataSetParam) eventModel() {} +func (p stepDesiredWorkerLabelWithPrismaIDSetParam) stepDesiredWorkerLabelModel() {} -func (p eventWithPrismaAdditionalMetadataSetParam) additionalMetadataField() {} +func (p stepDesiredWorkerLabelWithPrismaIDSetParam) idField() {} -type EventWithPrismaAdditionalMetadataWhereParam interface { +type StepDesiredWorkerLabelWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - additionalMetadataField() + stepDesiredWorkerLabelModel() + idField() } -type eventWithPrismaAdditionalMetadataEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaAdditionalMetadataEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaAdditionalMetadataEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaAdditionalMetadataEqualsParam) eventModel() {} +func (p stepDesiredWorkerLabelWithPrismaIDEqualsParam) stepDesiredWorkerLabelModel() {} -func (p eventWithPrismaAdditionalMetadataEqualsParam) additionalMetadataField() {} +func (p stepDesiredWorkerLabelWithPrismaIDEqualsParam) idField() {} -func (eventWithPrismaAdditionalMetadataSetParam) settable() {} -func (eventWithPrismaAdditionalMetadataEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaIDSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaIDEqualsParam) equals() {} -type eventWithPrismaAdditionalMetadataEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaAdditionalMetadataEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaAdditionalMetadataEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaAdditionalMetadataEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaAdditionalMetadataEqualsUniqueParam) additionalMetadataField() {} +func (p stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam) idField() {} -func (eventWithPrismaAdditionalMetadataEqualsUniqueParam) unique() {} -func (eventWithPrismaAdditionalMetadataEqualsUniqueParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaIDEqualsUniqueParam) equals() {} -type EventWithPrismaWorkflowRunsEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - eventModel() - workflowRunsField() + stepDesiredWorkerLabelModel() + createdAtField() } -type EventWithPrismaWorkflowRunsSetParam interface { +type StepDesiredWorkerLabelWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - eventModel() - workflowRunsField() + stepDesiredWorkerLabelModel() + createdAtField() } -type eventWithPrismaWorkflowRunsSetParam struct { +type stepDesiredWorkerLabelWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaWorkflowRunsSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p eventWithPrismaWorkflowRunsSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaWorkflowRunsSetParam) eventModel() {} +func (p stepDesiredWorkerLabelWithPrismaCreatedAtSetParam) stepDesiredWorkerLabelModel() {} -func (p eventWithPrismaWorkflowRunsSetParam) workflowRunsField() {} +func (p stepDesiredWorkerLabelWithPrismaCreatedAtSetParam) createdAtField() {} -type EventWithPrismaWorkflowRunsWhereParam interface { +type StepDesiredWorkerLabelWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - eventModel() - workflowRunsField() + stepDesiredWorkerLabelModel() + createdAtField() } -type eventWithPrismaWorkflowRunsEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaWorkflowRunsEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p eventWithPrismaWorkflowRunsEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaWorkflowRunsEqualsParam) eventModel() {} +func (p stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam) stepDesiredWorkerLabelModel() {} -func (p eventWithPrismaWorkflowRunsEqualsParam) workflowRunsField() {} +func (p stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (eventWithPrismaWorkflowRunsSetParam) settable() {} -func (eventWithPrismaWorkflowRunsEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaCreatedAtSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaCreatedAtEqualsParam) equals() {} -type eventWithPrismaWorkflowRunsEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p eventWithPrismaWorkflowRunsEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p eventWithPrismaWorkflowRunsEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p eventWithPrismaWorkflowRunsEqualsUniqueParam) eventModel() {} -func (p eventWithPrismaWorkflowRunsEqualsUniqueParam) workflowRunsField() {} - -func (eventWithPrismaWorkflowRunsEqualsUniqueParam) unique() {} -func (eventWithPrismaWorkflowRunsEqualsUniqueParam) equals() {} - -type workflowTagActions struct { - // client holds the prisma client - client *PrismaClient -} - -var workflowTagOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "tenantId"}, - {Name: "name"}, - {Name: "color"}, -} +func (p stepDesiredWorkerLabelWithPrismaCreatedAtEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -type WorkflowTagRelationWith interface { - getQuery() builder.Query - with() - workflowTagRelation() -} +func (stepDesiredWorkerLabelWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WorkflowTagWhereParam interface { +type StepDesiredWorkerLabelWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() -} - -type workflowTagDefaultParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTagDefaultParam) field() builder.Field { - return p.data -} - -func (p workflowTagDefaultParam) getQuery() builder.Query { - return p.query + equals() + stepDesiredWorkerLabelModel() + updatedAtField() } -func (p workflowTagDefaultParam) workflowTagModel() {} - -type WorkflowTagOrderByParam interface { +type StepDesiredWorkerLabelWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() + stepDesiredWorkerLabelModel() + updatedAtField() } -type workflowTagOrderByParam struct { +type stepDesiredWorkerLabelWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowTagOrderByParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p workflowTagOrderByParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowTagOrderByParam) workflowTagModel() {} - -type WorkflowTagCursorParam interface { - field() builder.Field - getQuery() builder.Query - workflowTagModel() - isCursor() -} - -type workflowTagCursorParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTagCursorParam) field() builder.Field { - return p.data -} - -func (p workflowTagCursorParam) isCursor() {} - -func (p workflowTagCursorParam) getQuery() builder.Query { - return p.query -} +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtSetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagCursorParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtSetParam) updatedAtField() {} -type WorkflowTagParamUnique interface { +type StepDesiredWorkerLabelWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - unique() - workflowTagModel() + stepDesiredWorkerLabelModel() + updatedAtField() } -type workflowTagParamUnique struct { +type stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagParamUnique) workflowTagModel() {} - -func (workflowTagParamUnique) unique() {} - -func (p workflowTagParamUnique) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowTagParamUnique) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowTagEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workflowTagModel() -} - -type workflowTagEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTagEqualsParam) workflowTagModel() {} - -func (workflowTagEqualsParam) equals() {} - -func (p workflowTagEqualsParam) field() builder.Field { - return p.data -} +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagEqualsParam) getQuery() builder.Query { - return p.query -} +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -type WorkflowTagEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - workflowTagModel() -} +func (stepDesiredWorkerLabelWithPrismaUpdatedAtSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsParam) equals() {} -type workflowTagEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagEqualsUniqueParam) workflowTagModel() {} - -func (workflowTagEqualsUniqueParam) unique() {} -func (workflowTagEqualsUniqueParam) equals() {} - -func (p workflowTagEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkflowTagSetParam interface { - field() builder.Field - settable() - workflowTagModel() -} - -type workflowTagSetParam struct { - data builder.Field -} - -func (workflowTagSetParam) settable() {} - -func (p workflowTagSetParam) field() builder.Field { - return p.data -} +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (p workflowTagSetParam) workflowTagModel() {} +func (stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type WorkflowTagWithPrismaIDEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaStepEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTagModel() - idField() + stepDesiredWorkerLabelModel() + stepField() } -type WorkflowTagWithPrismaIDSetParam interface { +type StepDesiredWorkerLabelWithPrismaStepSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - idField() + stepDesiredWorkerLabelModel() + stepField() } -type workflowTagWithPrismaIDSetParam struct { +type stepDesiredWorkerLabelWithPrismaStepSetParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaIDSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStepSetParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaIDSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStepSetParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaIDSetParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaStepSetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaIDSetParam) idField() {} +func (p stepDesiredWorkerLabelWithPrismaStepSetParam) stepField() {} -type WorkflowTagWithPrismaIDWhereParam interface { +type StepDesiredWorkerLabelWithPrismaStepWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - idField() + stepDesiredWorkerLabelModel() + stepField() } -type workflowTagWithPrismaIDEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaStepEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaIDEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStepEqualsParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStepEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaIDEqualsParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaStepEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaIDEqualsParam) idField() {} +func (p stepDesiredWorkerLabelWithPrismaStepEqualsParam) stepField() {} -func (workflowTagWithPrismaIDSetParam) settable() {} -func (workflowTagWithPrismaIDEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaStepSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaStepEqualsParam) equals() {} -type workflowTagWithPrismaIDEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaStepEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStepEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStepEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaIDEqualsUniqueParam) workflowTagModel() {} -func (p workflowTagWithPrismaIDEqualsUniqueParam) idField() {} +func (p stepDesiredWorkerLabelWithPrismaStepEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaStepEqualsUniqueParam) stepField() {} -func (workflowTagWithPrismaIDEqualsUniqueParam) unique() {} -func (workflowTagWithPrismaIDEqualsUniqueParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaStepEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaStepEqualsUniqueParam) equals() {} -type WorkflowTagWithPrismaCreatedAtEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaStepIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTagModel() - createdAtField() + stepDesiredWorkerLabelModel() + stepIDField() } -type WorkflowTagWithPrismaCreatedAtSetParam interface { +type StepDesiredWorkerLabelWithPrismaStepIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - createdAtField() + stepDesiredWorkerLabelModel() + stepIDField() } -type workflowTagWithPrismaCreatedAtSetParam struct { +type stepDesiredWorkerLabelWithPrismaStepIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaCreatedAtSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStepIDSetParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStepIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaCreatedAtSetParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaStepIDSetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaCreatedAtSetParam) createdAtField() {} +func (p stepDesiredWorkerLabelWithPrismaStepIDSetParam) stepIDField() {} -type WorkflowTagWithPrismaCreatedAtWhereParam interface { +type StepDesiredWorkerLabelWithPrismaStepIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - createdAtField() + stepDesiredWorkerLabelModel() + stepIDField() } -type workflowTagWithPrismaCreatedAtEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaStepIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStepIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStepIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaCreatedAtEqualsParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaStepIDEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p stepDesiredWorkerLabelWithPrismaStepIDEqualsParam) stepIDField() {} -func (workflowTagWithPrismaCreatedAtSetParam) settable() {} -func (workflowTagWithPrismaCreatedAtEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaStepIDSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaStepIDEqualsParam) equals() {} -type workflowTagWithPrismaCreatedAtEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaStepIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStepIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStepIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaCreatedAtEqualsUniqueParam) workflowTagModel() {} -func (p workflowTagWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p stepDesiredWorkerLabelWithPrismaStepIDEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaStepIDEqualsUniqueParam) stepIDField() {} -func (workflowTagWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (workflowTagWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaStepIDEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaStepIDEqualsUniqueParam) equals() {} -type WorkflowTagWithPrismaUpdatedAtEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaKeyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTagModel() - updatedAtField() + stepDesiredWorkerLabelModel() + keyField() } -type WorkflowTagWithPrismaUpdatedAtSetParam interface { +type StepDesiredWorkerLabelWithPrismaKeySetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - updatedAtField() + stepDesiredWorkerLabelModel() + keyField() } -type workflowTagWithPrismaUpdatedAtSetParam struct { +type stepDesiredWorkerLabelWithPrismaKeySetParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaKeySetParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaKeySetParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaUpdatedAtSetParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaKeySetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p stepDesiredWorkerLabelWithPrismaKeySetParam) keyField() {} -type WorkflowTagWithPrismaUpdatedAtWhereParam interface { +type StepDesiredWorkerLabelWithPrismaKeyWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - updatedAtField() + stepDesiredWorkerLabelModel() + keyField() } -type workflowTagWithPrismaUpdatedAtEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaKeyEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaKeyEqualsParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaKeyEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaUpdatedAtEqualsParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaKeyEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p stepDesiredWorkerLabelWithPrismaKeyEqualsParam) keyField() {} -func (workflowTagWithPrismaUpdatedAtSetParam) settable() {} -func (workflowTagWithPrismaUpdatedAtEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaKeySetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaKeyEqualsParam) equals() {} -type workflowTagWithPrismaUpdatedAtEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaKeyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaKeyEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaKeyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaUpdatedAtEqualsUniqueParam) workflowTagModel() {} -func (p workflowTagWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (workflowTagWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (workflowTagWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (p stepDesiredWorkerLabelWithPrismaKeyEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaKeyEqualsUniqueParam) keyField() {} -type WorkflowTagWithPrismaTenantEqualsSetParam interface { +func (stepDesiredWorkerLabelWithPrismaKeyEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaKeyEqualsUniqueParam) equals() {} + +type StepDesiredWorkerLabelWithPrismaStrValueEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTagModel() - tenantField() + stepDesiredWorkerLabelModel() + strValueField() } -type WorkflowTagWithPrismaTenantSetParam interface { +type StepDesiredWorkerLabelWithPrismaStrValueSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - tenantField() + stepDesiredWorkerLabelModel() + strValueField() } -type workflowTagWithPrismaTenantSetParam struct { +type stepDesiredWorkerLabelWithPrismaStrValueSetParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaTenantSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStrValueSetParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaTenantSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStrValueSetParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaTenantSetParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaStrValueSetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaTenantSetParam) tenantField() {} +func (p stepDesiredWorkerLabelWithPrismaStrValueSetParam) strValueField() {} -type WorkflowTagWithPrismaTenantWhereParam interface { +type StepDesiredWorkerLabelWithPrismaStrValueWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - tenantField() + stepDesiredWorkerLabelModel() + strValueField() } -type workflowTagWithPrismaTenantEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaStrValueEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaTenantEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStrValueEqualsParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStrValueEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaTenantEqualsParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaStrValueEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaTenantEqualsParam) tenantField() {} +func (p stepDesiredWorkerLabelWithPrismaStrValueEqualsParam) strValueField() {} -func (workflowTagWithPrismaTenantSetParam) settable() {} -func (workflowTagWithPrismaTenantEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaStrValueSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaStrValueEqualsParam) equals() {} -type workflowTagWithPrismaTenantEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaStrValueEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaStrValueEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaStrValueEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaTenantEqualsUniqueParam) workflowTagModel() {} -func (p workflowTagWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p stepDesiredWorkerLabelWithPrismaStrValueEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaStrValueEqualsUniqueParam) strValueField() {} -func (workflowTagWithPrismaTenantEqualsUniqueParam) unique() {} -func (workflowTagWithPrismaTenantEqualsUniqueParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaStrValueEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaStrValueEqualsUniqueParam) equals() {} -type WorkflowTagWithPrismaTenantIDEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaIntValueEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTagModel() - tenantIDField() + stepDesiredWorkerLabelModel() + intValueField() } -type WorkflowTagWithPrismaTenantIDSetParam interface { +type StepDesiredWorkerLabelWithPrismaIntValueSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - tenantIDField() + stepDesiredWorkerLabelModel() + intValueField() } -type workflowTagWithPrismaTenantIDSetParam struct { +type stepDesiredWorkerLabelWithPrismaIntValueSetParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaTenantIDSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaIntValueSetParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaIntValueSetParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaTenantIDSetParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaIntValueSetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaTenantIDSetParam) tenantIDField() {} +func (p stepDesiredWorkerLabelWithPrismaIntValueSetParam) intValueField() {} -type WorkflowTagWithPrismaTenantIDWhereParam interface { +type StepDesiredWorkerLabelWithPrismaIntValueWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - tenantIDField() + stepDesiredWorkerLabelModel() + intValueField() } -type workflowTagWithPrismaTenantIDEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaIntValueEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaIntValueEqualsParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaIntValueEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaTenantIDEqualsParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaIntValueEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p stepDesiredWorkerLabelWithPrismaIntValueEqualsParam) intValueField() {} -func (workflowTagWithPrismaTenantIDSetParam) settable() {} -func (workflowTagWithPrismaTenantIDEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaIntValueSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaIntValueEqualsParam) equals() {} -type workflowTagWithPrismaTenantIDEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaIntValueEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaIntValueEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaIntValueEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaTenantIDEqualsUniqueParam) workflowTagModel() {} -func (p workflowTagWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p stepDesiredWorkerLabelWithPrismaIntValueEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaIntValueEqualsUniqueParam) intValueField() {} -func (workflowTagWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (workflowTagWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaIntValueEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaIntValueEqualsUniqueParam) equals() {} -type WorkflowTagWithPrismaNameEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaRequiredEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTagModel() - nameField() + stepDesiredWorkerLabelModel() + requiredField() } -type WorkflowTagWithPrismaNameSetParam interface { +type StepDesiredWorkerLabelWithPrismaRequiredSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - nameField() + stepDesiredWorkerLabelModel() + requiredField() } -type workflowTagWithPrismaNameSetParam struct { +type stepDesiredWorkerLabelWithPrismaRequiredSetParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaNameSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaRequiredSetParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaNameSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaRequiredSetParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaNameSetParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaRequiredSetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaNameSetParam) nameField() {} +func (p stepDesiredWorkerLabelWithPrismaRequiredSetParam) requiredField() {} -type WorkflowTagWithPrismaNameWhereParam interface { +type StepDesiredWorkerLabelWithPrismaRequiredWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - nameField() + stepDesiredWorkerLabelModel() + requiredField() } -type workflowTagWithPrismaNameEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaRequiredEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaNameEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaRequiredEqualsParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaNameEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaRequiredEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaNameEqualsParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaRequiredEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaNameEqualsParam) nameField() {} +func (p stepDesiredWorkerLabelWithPrismaRequiredEqualsParam) requiredField() {} -func (workflowTagWithPrismaNameSetParam) settable() {} -func (workflowTagWithPrismaNameEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaRequiredSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaRequiredEqualsParam) equals() {} -type workflowTagWithPrismaNameEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaRequiredEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaNameEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaRequiredEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaRequiredEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaNameEqualsUniqueParam) workflowTagModel() {} -func (p workflowTagWithPrismaNameEqualsUniqueParam) nameField() {} +func (p stepDesiredWorkerLabelWithPrismaRequiredEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaRequiredEqualsUniqueParam) requiredField() {} -func (workflowTagWithPrismaNameEqualsUniqueParam) unique() {} -func (workflowTagWithPrismaNameEqualsUniqueParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaRequiredEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaRequiredEqualsUniqueParam) equals() {} -type WorkflowTagWithPrismaColorEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaComparatorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTagModel() - colorField() + stepDesiredWorkerLabelModel() + comparatorField() } -type WorkflowTagWithPrismaColorSetParam interface { +type StepDesiredWorkerLabelWithPrismaComparatorSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - colorField() + stepDesiredWorkerLabelModel() + comparatorField() } -type workflowTagWithPrismaColorSetParam struct { +type stepDesiredWorkerLabelWithPrismaComparatorSetParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaColorSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaComparatorSetParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaColorSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaComparatorSetParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaColorSetParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaComparatorSetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaColorSetParam) colorField() {} +func (p stepDesiredWorkerLabelWithPrismaComparatorSetParam) comparatorField() {} -type WorkflowTagWithPrismaColorWhereParam interface { +type StepDesiredWorkerLabelWithPrismaComparatorWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - colorField() + stepDesiredWorkerLabelModel() + comparatorField() } -type workflowTagWithPrismaColorEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaComparatorEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaColorEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaComparatorEqualsParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaColorEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaComparatorEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaColorEqualsParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaComparatorEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaColorEqualsParam) colorField() {} +func (p stepDesiredWorkerLabelWithPrismaComparatorEqualsParam) comparatorField() {} -func (workflowTagWithPrismaColorSetParam) settable() {} -func (workflowTagWithPrismaColorEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaComparatorSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaComparatorEqualsParam) equals() {} -type workflowTagWithPrismaColorEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaComparatorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaColorEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaComparatorEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaColorEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaComparatorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaColorEqualsUniqueParam) workflowTagModel() {} -func (p workflowTagWithPrismaColorEqualsUniqueParam) colorField() {} +func (p stepDesiredWorkerLabelWithPrismaComparatorEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaComparatorEqualsUniqueParam) comparatorField() {} -func (workflowTagWithPrismaColorEqualsUniqueParam) unique() {} -func (workflowTagWithPrismaColorEqualsUniqueParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaComparatorEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaComparatorEqualsUniqueParam) equals() {} -type WorkflowTagWithPrismaWorkflowsEqualsSetParam interface { +type StepDesiredWorkerLabelWithPrismaWeightEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTagModel() - workflowsField() + stepDesiredWorkerLabelModel() + weightField() } -type WorkflowTagWithPrismaWorkflowsSetParam interface { +type StepDesiredWorkerLabelWithPrismaWeightSetParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - workflowsField() + stepDesiredWorkerLabelModel() + weightField() } -type workflowTagWithPrismaWorkflowsSetParam struct { +type stepDesiredWorkerLabelWithPrismaWeightSetParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaWorkflowsSetParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaWeightSetParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaWorkflowsSetParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaWeightSetParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaWorkflowsSetParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaWeightSetParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaWorkflowsSetParam) workflowsField() {} +func (p stepDesiredWorkerLabelWithPrismaWeightSetParam) weightField() {} -type WorkflowTagWithPrismaWorkflowsWhereParam interface { +type StepDesiredWorkerLabelWithPrismaWeightWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTagModel() - workflowsField() + stepDesiredWorkerLabelModel() + weightField() } -type workflowTagWithPrismaWorkflowsEqualsParam struct { +type stepDesiredWorkerLabelWithPrismaWeightEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaWorkflowsEqualsParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaWeightEqualsParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaWorkflowsEqualsParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaWeightEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaWorkflowsEqualsParam) workflowTagModel() {} +func (p stepDesiredWorkerLabelWithPrismaWeightEqualsParam) stepDesiredWorkerLabelModel() {} -func (p workflowTagWithPrismaWorkflowsEqualsParam) workflowsField() {} +func (p stepDesiredWorkerLabelWithPrismaWeightEqualsParam) weightField() {} -func (workflowTagWithPrismaWorkflowsSetParam) settable() {} -func (workflowTagWithPrismaWorkflowsEqualsParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaWeightSetParam) settable() {} +func (stepDesiredWorkerLabelWithPrismaWeightEqualsParam) equals() {} -type workflowTagWithPrismaWorkflowsEqualsUniqueParam struct { +type stepDesiredWorkerLabelWithPrismaWeightEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTagWithPrismaWorkflowsEqualsUniqueParam) field() builder.Field { +func (p stepDesiredWorkerLabelWithPrismaWeightEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTagWithPrismaWorkflowsEqualsUniqueParam) getQuery() builder.Query { +func (p stepDesiredWorkerLabelWithPrismaWeightEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTagWithPrismaWorkflowsEqualsUniqueParam) workflowTagModel() {} -func (p workflowTagWithPrismaWorkflowsEqualsUniqueParam) workflowsField() {} +func (p stepDesiredWorkerLabelWithPrismaWeightEqualsUniqueParam) stepDesiredWorkerLabelModel() {} +func (p stepDesiredWorkerLabelWithPrismaWeightEqualsUniqueParam) weightField() {} -func (workflowTagWithPrismaWorkflowsEqualsUniqueParam) unique() {} -func (workflowTagWithPrismaWorkflowsEqualsUniqueParam) equals() {} +func (stepDesiredWorkerLabelWithPrismaWeightEqualsUniqueParam) unique() {} +func (stepDesiredWorkerLabelWithPrismaWeightEqualsUniqueParam) equals() {} -type workflowActions struct { +type stepActions struct { // client holds the prisma client client *PrismaClient } -var workflowOutput = []builder.Output{ +var stepOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, {Name: "deletedAt"}, + {Name: "readableId"}, {Name: "tenantId"}, - {Name: "name"}, - {Name: "description"}, + {Name: "jobId"}, + {Name: "actionId"}, + {Name: "timeout"}, + {Name: "retries"}, + {Name: "customUserData"}, + {Name: "scheduleTimeout"}, } -type WorkflowRelationWith interface { +type StepRelationWith interface { getQuery() builder.Query with() - workflowRelation() + stepRelation() } -type WorkflowWhereParam interface { +type StepWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() } -type workflowDefaultParam struct { +type stepDefaultParam struct { data builder.Field query builder.Query } -func (p workflowDefaultParam) field() builder.Field { +func (p stepDefaultParam) field() builder.Field { return p.data } -func (p workflowDefaultParam) getQuery() builder.Query { +func (p stepDefaultParam) getQuery() builder.Query { return p.query } -func (p workflowDefaultParam) workflowModel() {} +func (p stepDefaultParam) stepModel() {} -type WorkflowOrderByParam interface { +type StepOrderByParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() } -type workflowOrderByParam struct { +type stepOrderByParam struct { data builder.Field query builder.Query } -func (p workflowOrderByParam) field() builder.Field { +func (p stepOrderByParam) field() builder.Field { return p.data } -func (p workflowOrderByParam) getQuery() builder.Query { +func (p stepOrderByParam) getQuery() builder.Query { return p.query } -func (p workflowOrderByParam) workflowModel() {} +func (p stepOrderByParam) stepModel() {} -type WorkflowCursorParam interface { +type StepCursorParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() isCursor() } -type workflowCursorParam struct { +type stepCursorParam struct { data builder.Field query builder.Query } -func (p workflowCursorParam) field() builder.Field { +func (p stepCursorParam) field() builder.Field { return p.data } -func (p workflowCursorParam) isCursor() {} +func (p stepCursorParam) isCursor() {} -func (p workflowCursorParam) getQuery() builder.Query { +func (p stepCursorParam) getQuery() builder.Query { return p.query } -func (p workflowCursorParam) workflowModel() {} +func (p stepCursorParam) stepModel() {} -type WorkflowParamUnique interface { +type StepParamUnique interface { field() builder.Field getQuery() builder.Query unique() - workflowModel() + stepModel() } -type workflowParamUnique struct { +type stepParamUnique struct { data builder.Field query builder.Query } -func (p workflowParamUnique) workflowModel() {} +func (p stepParamUnique) stepModel() {} -func (workflowParamUnique) unique() {} +func (stepParamUnique) unique() {} -func (p workflowParamUnique) field() builder.Field { +func (p stepParamUnique) field() builder.Field { return p.data } -func (p workflowParamUnique) getQuery() builder.Query { +func (p stepParamUnique) getQuery() builder.Query { return p.query } -type WorkflowEqualsWhereParam interface { +type StepEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() + stepModel() } -type workflowEqualsParam struct { +type stepEqualsParam struct { data builder.Field query builder.Query } -func (p workflowEqualsParam) workflowModel() {} +func (p stepEqualsParam) stepModel() {} -func (workflowEqualsParam) equals() {} +func (stepEqualsParam) equals() {} -func (p workflowEqualsParam) field() builder.Field { +func (p stepEqualsParam) field() builder.Field { return p.data } -func (p workflowEqualsParam) getQuery() builder.Query { +func (p stepEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowEqualsUniqueWhereParam interface { +type StepEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - workflowModel() + stepModel() } -type workflowEqualsUniqueParam struct { +type stepEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowEqualsUniqueParam) workflowModel() {} +func (p stepEqualsUniqueParam) stepModel() {} -func (workflowEqualsUniqueParam) unique() {} -func (workflowEqualsUniqueParam) equals() {} +func (stepEqualsUniqueParam) unique() {} +func (stepEqualsUniqueParam) equals() {} -func (p workflowEqualsUniqueParam) field() builder.Field { +func (p stepEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowEqualsUniqueParam) getQuery() builder.Query { +func (p stepEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkflowSetParam interface { +type StepSetParam interface { field() builder.Field settable() - workflowModel() + stepModel() } -type workflowSetParam struct { +type stepSetParam struct { data builder.Field } -func (workflowSetParam) settable() {} +func (stepSetParam) settable() {} -func (p workflowSetParam) field() builder.Field { +func (p stepSetParam) field() builder.Field { return p.data } -func (p workflowSetParam) workflowModel() {} +func (p stepSetParam) stepModel() {} -type WorkflowWithPrismaIDEqualsSetParam interface { +type StepWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() + stepModel() idField() } -type WorkflowWithPrismaIDSetParam interface { +type StepWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() idField() } -type workflowWithPrismaIDSetParam struct { +type stepWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaIDSetParam) field() builder.Field { +func (p stepWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaIDSetParam) getQuery() builder.Query { +func (p stepWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaIDSetParam) workflowModel() {} +func (p stepWithPrismaIDSetParam) stepModel() {} -func (p workflowWithPrismaIDSetParam) idField() {} +func (p stepWithPrismaIDSetParam) idField() {} -type WorkflowWithPrismaIDWhereParam interface { +type StepWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() idField() } -type workflowWithPrismaIDEqualsParam struct { +type stepWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaIDEqualsParam) field() builder.Field { +func (p stepWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaIDEqualsParam) workflowModel() {} +func (p stepWithPrismaIDEqualsParam) stepModel() {} -func (p workflowWithPrismaIDEqualsParam) idField() {} +func (p stepWithPrismaIDEqualsParam) idField() {} -func (workflowWithPrismaIDSetParam) settable() {} -func (workflowWithPrismaIDEqualsParam) equals() {} +func (stepWithPrismaIDSetParam) settable() {} +func (stepWithPrismaIDEqualsParam) equals() {} -type workflowWithPrismaIDEqualsUniqueParam struct { +type stepWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaIDEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaIDEqualsUniqueParam) idField() {} +func (p stepWithPrismaIDEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaIDEqualsUniqueParam) idField() {} -func (workflowWithPrismaIDEqualsUniqueParam) unique() {} -func (workflowWithPrismaIDEqualsUniqueParam) equals() {} +func (stepWithPrismaIDEqualsUniqueParam) unique() {} +func (stepWithPrismaIDEqualsUniqueParam) equals() {} -type WorkflowWithPrismaCreatedAtEqualsSetParam interface { +type StepWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() + stepModel() createdAtField() } -type WorkflowWithPrismaCreatedAtSetParam interface { +type StepWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() createdAtField() } -type workflowWithPrismaCreatedAtSetParam struct { +type stepWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaCreatedAtSetParam) field() builder.Field { +func (p stepWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p stepWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaCreatedAtSetParam) workflowModel() {} +func (p stepWithPrismaCreatedAtSetParam) stepModel() {} -func (p workflowWithPrismaCreatedAtSetParam) createdAtField() {} +func (p stepWithPrismaCreatedAtSetParam) createdAtField() {} -type WorkflowWithPrismaCreatedAtWhereParam interface { +type StepWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() createdAtField() } -type workflowWithPrismaCreatedAtEqualsParam struct { +type stepWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p stepWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaCreatedAtEqualsParam) workflowModel() {} +func (p stepWithPrismaCreatedAtEqualsParam) stepModel() {} -func (p workflowWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p stepWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (workflowWithPrismaCreatedAtSetParam) settable() {} -func (workflowWithPrismaCreatedAtEqualsParam) equals() {} +func (stepWithPrismaCreatedAtSetParam) settable() {} +func (stepWithPrismaCreatedAtEqualsParam) equals() {} -type workflowWithPrismaCreatedAtEqualsUniqueParam struct { +type stepWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaCreatedAtEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p stepWithPrismaCreatedAtEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (workflowWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (workflowWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (stepWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (stepWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WorkflowWithPrismaUpdatedAtEqualsSetParam interface { +type StepWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() + stepModel() updatedAtField() } -type WorkflowWithPrismaUpdatedAtSetParam interface { +type StepWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() updatedAtField() } -type workflowWithPrismaUpdatedAtSetParam struct { +type stepWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p stepWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p stepWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaUpdatedAtSetParam) workflowModel() {} +func (p stepWithPrismaUpdatedAtSetParam) stepModel() {} -func (p workflowWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p stepWithPrismaUpdatedAtSetParam) updatedAtField() {} -type WorkflowWithPrismaUpdatedAtWhereParam interface { +type StepWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() updatedAtField() } -type workflowWithPrismaUpdatedAtEqualsParam struct { +type stepWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p stepWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaUpdatedAtEqualsParam) workflowModel() {} +func (p stepWithPrismaUpdatedAtEqualsParam) stepModel() {} -func (p workflowWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p stepWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (workflowWithPrismaUpdatedAtSetParam) settable() {} -func (workflowWithPrismaUpdatedAtEqualsParam) equals() {} +func (stepWithPrismaUpdatedAtSetParam) settable() {} +func (stepWithPrismaUpdatedAtEqualsParam) equals() {} -type workflowWithPrismaUpdatedAtEqualsUniqueParam struct { +type stepWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaUpdatedAtEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p stepWithPrismaUpdatedAtEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (workflowWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (workflowWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (stepWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (stepWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type WorkflowWithPrismaDeletedAtEqualsSetParam interface { +type StepWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() + stepModel() deletedAtField() } -type WorkflowWithPrismaDeletedAtSetParam interface { +type StepWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() deletedAtField() } -type workflowWithPrismaDeletedAtSetParam struct { +type stepWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaDeletedAtSetParam) field() builder.Field { +func (p stepWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p stepWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaDeletedAtSetParam) workflowModel() {} +func (p stepWithPrismaDeletedAtSetParam) stepModel() {} -func (p workflowWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p stepWithPrismaDeletedAtSetParam) deletedAtField() {} -type WorkflowWithPrismaDeletedAtWhereParam interface { +type StepWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() + stepModel() deletedAtField() } -type workflowWithPrismaDeletedAtEqualsParam struct { +type stepWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p stepWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaDeletedAtEqualsParam) workflowModel() {} +func (p stepWithPrismaDeletedAtEqualsParam) stepModel() {} -func (p workflowWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p stepWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (workflowWithPrismaDeletedAtSetParam) settable() {} -func (workflowWithPrismaDeletedAtEqualsParam) equals() {} +func (stepWithPrismaDeletedAtSetParam) settable() {} +func (stepWithPrismaDeletedAtEqualsParam) equals() {} -type workflowWithPrismaDeletedAtEqualsUniqueParam struct { +type stepWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaDeletedAtEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p stepWithPrismaDeletedAtEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (workflowWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (workflowWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (stepWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (stepWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type WorkflowWithPrismaTenantEqualsSetParam interface { +type StepWithPrismaReadableIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() - tenantField() + stepModel() + readableIDField() } -type WorkflowWithPrismaTenantSetParam interface { +type StepWithPrismaReadableIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - tenantField() + stepModel() + readableIDField() } -type workflowWithPrismaTenantSetParam struct { +type stepWithPrismaReadableIDSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTenantSetParam) field() builder.Field { +func (p stepWithPrismaReadableIDSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTenantSetParam) getQuery() builder.Query { +func (p stepWithPrismaReadableIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTenantSetParam) workflowModel() {} +func (p stepWithPrismaReadableIDSetParam) stepModel() {} -func (p workflowWithPrismaTenantSetParam) tenantField() {} +func (p stepWithPrismaReadableIDSetParam) readableIDField() {} -type WorkflowWithPrismaTenantWhereParam interface { +type StepWithPrismaReadableIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - tenantField() + stepModel() + readableIDField() } -type workflowWithPrismaTenantEqualsParam struct { +type stepWithPrismaReadableIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTenantEqualsParam) field() builder.Field { +func (p stepWithPrismaReadableIDEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaReadableIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTenantEqualsParam) workflowModel() {} +func (p stepWithPrismaReadableIDEqualsParam) stepModel() {} -func (p workflowWithPrismaTenantEqualsParam) tenantField() {} +func (p stepWithPrismaReadableIDEqualsParam) readableIDField() {} -func (workflowWithPrismaTenantSetParam) settable() {} -func (workflowWithPrismaTenantEqualsParam) equals() {} +func (stepWithPrismaReadableIDSetParam) settable() {} +func (stepWithPrismaReadableIDEqualsParam) equals() {} -type workflowWithPrismaTenantEqualsUniqueParam struct { +type stepWithPrismaReadableIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaReadableIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaReadableIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTenantEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p stepWithPrismaReadableIDEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaReadableIDEqualsUniqueParam) readableIDField() {} -func (workflowWithPrismaTenantEqualsUniqueParam) unique() {} -func (workflowWithPrismaTenantEqualsUniqueParam) equals() {} +func (stepWithPrismaReadableIDEqualsUniqueParam) unique() {} +func (stepWithPrismaReadableIDEqualsUniqueParam) equals() {} -type WorkflowWithPrismaTenantIDEqualsSetParam interface { +type StepWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() - tenantIDField() + stepModel() + tenantField() } -type WorkflowWithPrismaTenantIDSetParam interface { +type StepWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - tenantIDField() + stepModel() + tenantField() } -type workflowWithPrismaTenantIDSetParam struct { +type stepWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTenantIDSetParam) field() builder.Field { +func (p stepWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p stepWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTenantIDSetParam) workflowModel() {} +func (p stepWithPrismaTenantSetParam) stepModel() {} -func (p workflowWithPrismaTenantIDSetParam) tenantIDField() {} +func (p stepWithPrismaTenantSetParam) tenantField() {} -type WorkflowWithPrismaTenantIDWhereParam interface { +type StepWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - tenantIDField() + stepModel() + tenantField() } -type workflowWithPrismaTenantIDEqualsParam struct { +type stepWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p stepWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTenantIDEqualsParam) workflowModel() {} +func (p stepWithPrismaTenantEqualsParam) stepModel() {} -func (p workflowWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p stepWithPrismaTenantEqualsParam) tenantField() {} -func (workflowWithPrismaTenantIDSetParam) settable() {} -func (workflowWithPrismaTenantIDEqualsParam) equals() {} +func (stepWithPrismaTenantSetParam) settable() {} +func (stepWithPrismaTenantEqualsParam) equals() {} -type workflowWithPrismaTenantIDEqualsUniqueParam struct { +type stepWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTenantIDEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p stepWithPrismaTenantEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (workflowWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (workflowWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (stepWithPrismaTenantEqualsUniqueParam) unique() {} +func (stepWithPrismaTenantEqualsUniqueParam) equals() {} -type WorkflowWithPrismaNameEqualsSetParam interface { +type StepWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() - nameField() + stepModel() + tenantIDField() } -type WorkflowWithPrismaNameSetParam interface { +type StepWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - nameField() + stepModel() + tenantIDField() } -type workflowWithPrismaNameSetParam struct { +type stepWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaNameSetParam) field() builder.Field { +func (p stepWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaNameSetParam) getQuery() builder.Query { +func (p stepWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaNameSetParam) workflowModel() {} +func (p stepWithPrismaTenantIDSetParam) stepModel() {} -func (p workflowWithPrismaNameSetParam) nameField() {} +func (p stepWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkflowWithPrismaNameWhereParam interface { +type StepWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - nameField() + stepModel() + tenantIDField() } -type workflowWithPrismaNameEqualsParam struct { +type stepWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaNameEqualsParam) field() builder.Field { +func (p stepWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaNameEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaNameEqualsParam) workflowModel() {} +func (p stepWithPrismaTenantIDEqualsParam) stepModel() {} -func (p workflowWithPrismaNameEqualsParam) nameField() {} +func (p stepWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workflowWithPrismaNameSetParam) settable() {} -func (workflowWithPrismaNameEqualsParam) equals() {} +func (stepWithPrismaTenantIDSetParam) settable() {} +func (stepWithPrismaTenantIDEqualsParam) equals() {} -type workflowWithPrismaNameEqualsUniqueParam struct { +type stepWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaNameEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaNameEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaNameEqualsUniqueParam) nameField() {} +func (p stepWithPrismaTenantIDEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workflowWithPrismaNameEqualsUniqueParam) unique() {} -func (workflowWithPrismaNameEqualsUniqueParam) equals() {} +func (stepWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (stepWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WorkflowWithPrismaDescriptionEqualsSetParam interface { +type StepWithPrismaJobEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() - descriptionField() + stepModel() + jobField() } -type WorkflowWithPrismaDescriptionSetParam interface { +type StepWithPrismaJobSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - descriptionField() + stepModel() + jobField() } -type workflowWithPrismaDescriptionSetParam struct { +type stepWithPrismaJobSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaDescriptionSetParam) field() builder.Field { +func (p stepWithPrismaJobSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaDescriptionSetParam) getQuery() builder.Query { +func (p stepWithPrismaJobSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaDescriptionSetParam) workflowModel() {} +func (p stepWithPrismaJobSetParam) stepModel() {} -func (p workflowWithPrismaDescriptionSetParam) descriptionField() {} +func (p stepWithPrismaJobSetParam) jobField() {} -type WorkflowWithPrismaDescriptionWhereParam interface { +type StepWithPrismaJobWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - descriptionField() + stepModel() + jobField() } -type workflowWithPrismaDescriptionEqualsParam struct { +type stepWithPrismaJobEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaDescriptionEqualsParam) field() builder.Field { +func (p stepWithPrismaJobEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaDescriptionEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaJobEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaDescriptionEqualsParam) workflowModel() {} +func (p stepWithPrismaJobEqualsParam) stepModel() {} -func (p workflowWithPrismaDescriptionEqualsParam) descriptionField() {} +func (p stepWithPrismaJobEqualsParam) jobField() {} -func (workflowWithPrismaDescriptionSetParam) settable() {} -func (workflowWithPrismaDescriptionEqualsParam) equals() {} +func (stepWithPrismaJobSetParam) settable() {} +func (stepWithPrismaJobEqualsParam) equals() {} -type workflowWithPrismaDescriptionEqualsUniqueParam struct { +type stepWithPrismaJobEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaDescriptionEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaJobEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaDescriptionEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaJobEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaDescriptionEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaDescriptionEqualsUniqueParam) descriptionField() {} +func (p stepWithPrismaJobEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaJobEqualsUniqueParam) jobField() {} -func (workflowWithPrismaDescriptionEqualsUniqueParam) unique() {} -func (workflowWithPrismaDescriptionEqualsUniqueParam) equals() {} +func (stepWithPrismaJobEqualsUniqueParam) unique() {} +func (stepWithPrismaJobEqualsUniqueParam) equals() {} -type WorkflowWithPrismaVersionsEqualsSetParam interface { +type StepWithPrismaJobIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() - versionsField() + stepModel() + jobIDField() } -type WorkflowWithPrismaVersionsSetParam interface { +type StepWithPrismaJobIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - versionsField() + stepModel() + jobIDField() } -type workflowWithPrismaVersionsSetParam struct { +type stepWithPrismaJobIDSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaVersionsSetParam) field() builder.Field { +func (p stepWithPrismaJobIDSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaVersionsSetParam) getQuery() builder.Query { +func (p stepWithPrismaJobIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaVersionsSetParam) workflowModel() {} +func (p stepWithPrismaJobIDSetParam) stepModel() {} -func (p workflowWithPrismaVersionsSetParam) versionsField() {} +func (p stepWithPrismaJobIDSetParam) jobIDField() {} -type WorkflowWithPrismaVersionsWhereParam interface { +type StepWithPrismaJobIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - versionsField() + stepModel() + jobIDField() } -type workflowWithPrismaVersionsEqualsParam struct { +type stepWithPrismaJobIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaVersionsEqualsParam) field() builder.Field { +func (p stepWithPrismaJobIDEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaVersionsEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaJobIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaVersionsEqualsParam) workflowModel() {} +func (p stepWithPrismaJobIDEqualsParam) stepModel() {} -func (p workflowWithPrismaVersionsEqualsParam) versionsField() {} +func (p stepWithPrismaJobIDEqualsParam) jobIDField() {} -func (workflowWithPrismaVersionsSetParam) settable() {} -func (workflowWithPrismaVersionsEqualsParam) equals() {} +func (stepWithPrismaJobIDSetParam) settable() {} +func (stepWithPrismaJobIDEqualsParam) equals() {} -type workflowWithPrismaVersionsEqualsUniqueParam struct { +type stepWithPrismaJobIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaVersionsEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaJobIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaVersionsEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaJobIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaVersionsEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaVersionsEqualsUniqueParam) versionsField() {} +func (p stepWithPrismaJobIDEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaJobIDEqualsUniqueParam) jobIDField() {} -func (workflowWithPrismaVersionsEqualsUniqueParam) unique() {} -func (workflowWithPrismaVersionsEqualsUniqueParam) equals() {} +func (stepWithPrismaJobIDEqualsUniqueParam) unique() {} +func (stepWithPrismaJobIDEqualsUniqueParam) equals() {} -type WorkflowWithPrismaTagsEqualsSetParam interface { +type StepWithPrismaActionEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() - tagsField() + stepModel() + actionField() } -type WorkflowWithPrismaTagsSetParam interface { +type StepWithPrismaActionSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - tagsField() + stepModel() + actionField() } -type workflowWithPrismaTagsSetParam struct { +type stepWithPrismaActionSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTagsSetParam) field() builder.Field { +func (p stepWithPrismaActionSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTagsSetParam) getQuery() builder.Query { +func (p stepWithPrismaActionSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTagsSetParam) workflowModel() {} +func (p stepWithPrismaActionSetParam) stepModel() {} -func (p workflowWithPrismaTagsSetParam) tagsField() {} +func (p stepWithPrismaActionSetParam) actionField() {} -type WorkflowWithPrismaTagsWhereParam interface { +type StepWithPrismaActionWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - tagsField() + stepModel() + actionField() } -type workflowWithPrismaTagsEqualsParam struct { +type stepWithPrismaActionEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTagsEqualsParam) field() builder.Field { +func (p stepWithPrismaActionEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTagsEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaActionEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTagsEqualsParam) workflowModel() {} +func (p stepWithPrismaActionEqualsParam) stepModel() {} -func (p workflowWithPrismaTagsEqualsParam) tagsField() {} +func (p stepWithPrismaActionEqualsParam) actionField() {} -func (workflowWithPrismaTagsSetParam) settable() {} -func (workflowWithPrismaTagsEqualsParam) equals() {} +func (stepWithPrismaActionSetParam) settable() {} +func (stepWithPrismaActionEqualsParam) equals() {} -type workflowWithPrismaTagsEqualsUniqueParam struct { +type stepWithPrismaActionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaTagsEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaActionEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaTagsEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaActionEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaTagsEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaTagsEqualsUniqueParam) tagsField() {} +func (p stepWithPrismaActionEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaActionEqualsUniqueParam) actionField() {} -func (workflowWithPrismaTagsEqualsUniqueParam) unique() {} -func (workflowWithPrismaTagsEqualsUniqueParam) equals() {} +func (stepWithPrismaActionEqualsUniqueParam) unique() {} +func (stepWithPrismaActionEqualsUniqueParam) equals() {} -type WorkflowWithPrismaWebhookWorkerWorkflowsEqualsSetParam interface { +type StepWithPrismaActionIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowModel() - webhookWorkerWorkflowsField() + stepModel() + actionIDField() } -type WorkflowWithPrismaWebhookWorkerWorkflowsSetParam interface { +type StepWithPrismaActionIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - webhookWorkerWorkflowsField() + stepModel() + actionIDField() } -type workflowWithPrismaWebhookWorkerWorkflowsSetParam struct { +type stepWithPrismaActionIDSetParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaWebhookWorkerWorkflowsSetParam) field() builder.Field { +func (p stepWithPrismaActionIDSetParam) field() builder.Field { return p.data } -func (p workflowWithPrismaWebhookWorkerWorkflowsSetParam) getQuery() builder.Query { +func (p stepWithPrismaActionIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaWebhookWorkerWorkflowsSetParam) workflowModel() {} +func (p stepWithPrismaActionIDSetParam) stepModel() {} -func (p workflowWithPrismaWebhookWorkerWorkflowsSetParam) webhookWorkerWorkflowsField() {} +func (p stepWithPrismaActionIDSetParam) actionIDField() {} -type WorkflowWithPrismaWebhookWorkerWorkflowsWhereParam interface { +type StepWithPrismaActionIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowModel() - webhookWorkerWorkflowsField() + stepModel() + actionIDField() } -type workflowWithPrismaWebhookWorkerWorkflowsEqualsParam struct { +type stepWithPrismaActionIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) field() builder.Field { +func (p stepWithPrismaActionIDEqualsParam) field() builder.Field { return p.data } -func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaActionIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) workflowModel() {} +func (p stepWithPrismaActionIDEqualsParam) stepModel() {} -func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) webhookWorkerWorkflowsField() {} +func (p stepWithPrismaActionIDEqualsParam) actionIDField() {} -func (workflowWithPrismaWebhookWorkerWorkflowsSetParam) settable() {} -func (workflowWithPrismaWebhookWorkerWorkflowsEqualsParam) equals() {} +func (stepWithPrismaActionIDSetParam) settable() {} +func (stepWithPrismaActionIDEqualsParam) equals() {} -type workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam struct { +type stepWithPrismaActionIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaActionIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaActionIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) workflowModel() {} -func (p workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) webhookWorkerWorkflowsField() {} - -func (workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) unique() {} -func (workflowWithPrismaWebhookWorkerWorkflowsEqualsUniqueParam) equals() {} - -type workflowVersionActions struct { - // client holds the prisma client - client *PrismaClient -} - -var workflowVersionOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "checksum"}, - {Name: "version"}, - {Name: "order"}, - {Name: "workflowId"}, - {Name: "onFailureJobId"}, - {Name: "scheduleTimeout"}, -} +func (p stepWithPrismaActionIDEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaActionIDEqualsUniqueParam) actionIDField() {} -type WorkflowVersionRelationWith interface { - getQuery() builder.Query - with() - workflowVersionRelation() -} +func (stepWithPrismaActionIDEqualsUniqueParam) unique() {} +func (stepWithPrismaActionIDEqualsUniqueParam) equals() {} -type WorkflowVersionWhereParam interface { +type StepWithPrismaTimeoutEqualsSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() -} - -type workflowVersionDefaultParam struct { - data builder.Field - query builder.Query -} - -func (p workflowVersionDefaultParam) field() builder.Field { - return p.data -} - -func (p workflowVersionDefaultParam) getQuery() builder.Query { - return p.query + equals() + stepModel() + timeoutField() } -func (p workflowVersionDefaultParam) workflowVersionModel() {} - -type WorkflowVersionOrderByParam interface { +type StepWithPrismaTimeoutSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() + stepModel() + timeoutField() } -type workflowVersionOrderByParam struct { +type stepWithPrismaTimeoutSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionOrderByParam) field() builder.Field { +func (p stepWithPrismaTimeoutSetParam) field() builder.Field { return p.data } -func (p workflowVersionOrderByParam) getQuery() builder.Query { +func (p stepWithPrismaTimeoutSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionOrderByParam) workflowVersionModel() {} - -type WorkflowVersionCursorParam interface { - field() builder.Field - getQuery() builder.Query - workflowVersionModel() - isCursor() -} - -type workflowVersionCursorParam struct { - data builder.Field - query builder.Query -} - -func (p workflowVersionCursorParam) field() builder.Field { - return p.data -} - -func (p workflowVersionCursorParam) isCursor() {} - -func (p workflowVersionCursorParam) getQuery() builder.Query { - return p.query -} +func (p stepWithPrismaTimeoutSetParam) stepModel() {} -func (p workflowVersionCursorParam) workflowVersionModel() {} +func (p stepWithPrismaTimeoutSetParam) timeoutField() {} -type WorkflowVersionParamUnique interface { +type StepWithPrismaTimeoutWhereParam interface { field() builder.Field getQuery() builder.Query - unique() - workflowVersionModel() + stepModel() + timeoutField() } -type workflowVersionParamUnique struct { +type stepWithPrismaTimeoutEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionParamUnique) workflowVersionModel() {} - -func (workflowVersionParamUnique) unique() {} - -func (p workflowVersionParamUnique) field() builder.Field { +func (p stepWithPrismaTimeoutEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionParamUnique) getQuery() builder.Query { +func (p stepWithPrismaTimeoutEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowVersionEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workflowVersionModel() -} - -type workflowVersionEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p workflowVersionEqualsParam) workflowVersionModel() {} - -func (workflowVersionEqualsParam) equals() {} - -func (p workflowVersionEqualsParam) field() builder.Field { - return p.data -} +func (p stepWithPrismaTimeoutEqualsParam) stepModel() {} -func (p workflowVersionEqualsParam) getQuery() builder.Query { - return p.query -} +func (p stepWithPrismaTimeoutEqualsParam) timeoutField() {} -type WorkflowVersionEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - workflowVersionModel() -} +func (stepWithPrismaTimeoutSetParam) settable() {} +func (stepWithPrismaTimeoutEqualsParam) equals() {} -type workflowVersionEqualsUniqueParam struct { +type stepWithPrismaTimeoutEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionEqualsUniqueParam) workflowVersionModel() {} - -func (workflowVersionEqualsUniqueParam) unique() {} -func (workflowVersionEqualsUniqueParam) equals() {} - -func (p workflowVersionEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaTimeoutEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaTimeoutEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkflowVersionSetParam interface { - field() builder.Field - settable() - workflowVersionModel() -} - -type workflowVersionSetParam struct { - data builder.Field -} - -func (workflowVersionSetParam) settable() {} - -func (p workflowVersionSetParam) field() builder.Field { - return p.data -} +func (p stepWithPrismaTimeoutEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaTimeoutEqualsUniqueParam) timeoutField() {} -func (p workflowVersionSetParam) workflowVersionModel() {} +func (stepWithPrismaTimeoutEqualsUniqueParam) unique() {} +func (stepWithPrismaTimeoutEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaIDEqualsSetParam interface { +type StepWithPrismaRetriesEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - idField() + stepModel() + retriesField() } -type WorkflowVersionWithPrismaIDSetParam interface { +type StepWithPrismaRetriesSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - idField() + stepModel() + retriesField() } -type workflowVersionWithPrismaIDSetParam struct { +type stepWithPrismaRetriesSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaIDSetParam) field() builder.Field { +func (p stepWithPrismaRetriesSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaIDSetParam) getQuery() builder.Query { +func (p stepWithPrismaRetriesSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaIDSetParam) workflowVersionModel() {} +func (p stepWithPrismaRetriesSetParam) stepModel() {} -func (p workflowVersionWithPrismaIDSetParam) idField() {} +func (p stepWithPrismaRetriesSetParam) retriesField() {} -type WorkflowVersionWithPrismaIDWhereParam interface { +type StepWithPrismaRetriesWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - idField() + stepModel() + retriesField() } -type workflowVersionWithPrismaIDEqualsParam struct { +type stepWithPrismaRetriesEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaIDEqualsParam) field() builder.Field { +func (p stepWithPrismaRetriesEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaRetriesEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaIDEqualsParam) workflowVersionModel() {} +func (p stepWithPrismaRetriesEqualsParam) stepModel() {} -func (p workflowVersionWithPrismaIDEqualsParam) idField() {} +func (p stepWithPrismaRetriesEqualsParam) retriesField() {} -func (workflowVersionWithPrismaIDSetParam) settable() {} -func (workflowVersionWithPrismaIDEqualsParam) equals() {} +func (stepWithPrismaRetriesSetParam) settable() {} +func (stepWithPrismaRetriesEqualsParam) equals() {} -type workflowVersionWithPrismaIDEqualsUniqueParam struct { +type stepWithPrismaRetriesEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaRetriesEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaRetriesEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaIDEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaIDEqualsUniqueParam) idField() {} +func (p stepWithPrismaRetriesEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaRetriesEqualsUniqueParam) retriesField() {} -func (workflowVersionWithPrismaIDEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaIDEqualsUniqueParam) equals() {} +func (stepWithPrismaRetriesEqualsUniqueParam) unique() {} +func (stepWithPrismaRetriesEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaCreatedAtEqualsSetParam interface { +type StepWithPrismaCustomUserDataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - createdAtField() + stepModel() + customUserDataField() } -type WorkflowVersionWithPrismaCreatedAtSetParam interface { +type StepWithPrismaCustomUserDataSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - createdAtField() + stepModel() + customUserDataField() } -type workflowVersionWithPrismaCreatedAtSetParam struct { +type stepWithPrismaCustomUserDataSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaCreatedAtSetParam) field() builder.Field { +func (p stepWithPrismaCustomUserDataSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p stepWithPrismaCustomUserDataSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaCreatedAtSetParam) workflowVersionModel() {} +func (p stepWithPrismaCustomUserDataSetParam) stepModel() {} -func (p workflowVersionWithPrismaCreatedAtSetParam) createdAtField() {} +func (p stepWithPrismaCustomUserDataSetParam) customUserDataField() {} -type WorkflowVersionWithPrismaCreatedAtWhereParam interface { +type StepWithPrismaCustomUserDataWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - createdAtField() + stepModel() + customUserDataField() } -type workflowVersionWithPrismaCreatedAtEqualsParam struct { +type stepWithPrismaCustomUserDataEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p stepWithPrismaCustomUserDataEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaCustomUserDataEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaCreatedAtEqualsParam) workflowVersionModel() {} +func (p stepWithPrismaCustomUserDataEqualsParam) stepModel() {} -func (p workflowVersionWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p stepWithPrismaCustomUserDataEqualsParam) customUserDataField() {} -func (workflowVersionWithPrismaCreatedAtSetParam) settable() {} -func (workflowVersionWithPrismaCreatedAtEqualsParam) equals() {} +func (stepWithPrismaCustomUserDataSetParam) settable() {} +func (stepWithPrismaCustomUserDataEqualsParam) equals() {} -type workflowVersionWithPrismaCreatedAtEqualsUniqueParam struct { +type stepWithPrismaCustomUserDataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaCustomUserDataEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaCustomUserDataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaCreatedAtEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p stepWithPrismaCustomUserDataEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaCustomUserDataEqualsUniqueParam) customUserDataField() {} -func (workflowVersionWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (stepWithPrismaCustomUserDataEqualsUniqueParam) unique() {} +func (stepWithPrismaCustomUserDataEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaUpdatedAtEqualsSetParam interface { +type StepWithPrismaChildrenEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - updatedAtField() + stepModel() + childrenField() } -type WorkflowVersionWithPrismaUpdatedAtSetParam interface { +type StepWithPrismaChildrenSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - updatedAtField() + stepModel() + childrenField() } -type workflowVersionWithPrismaUpdatedAtSetParam struct { +type stepWithPrismaChildrenSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p stepWithPrismaChildrenSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p stepWithPrismaChildrenSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaUpdatedAtSetParam) workflowVersionModel() {} +func (p stepWithPrismaChildrenSetParam) stepModel() {} -func (p workflowVersionWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p stepWithPrismaChildrenSetParam) childrenField() {} -type WorkflowVersionWithPrismaUpdatedAtWhereParam interface { +type StepWithPrismaChildrenWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - updatedAtField() + stepModel() + childrenField() } -type workflowVersionWithPrismaUpdatedAtEqualsParam struct { +type stepWithPrismaChildrenEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p stepWithPrismaChildrenEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaChildrenEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaUpdatedAtEqualsParam) workflowVersionModel() {} +func (p stepWithPrismaChildrenEqualsParam) stepModel() {} -func (p workflowVersionWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p stepWithPrismaChildrenEqualsParam) childrenField() {} -func (workflowVersionWithPrismaUpdatedAtSetParam) settable() {} -func (workflowVersionWithPrismaUpdatedAtEqualsParam) equals() {} +func (stepWithPrismaChildrenSetParam) settable() {} +func (stepWithPrismaChildrenEqualsParam) equals() {} -type workflowVersionWithPrismaUpdatedAtEqualsUniqueParam struct { +type stepWithPrismaChildrenEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaChildrenEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaChildrenEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p stepWithPrismaChildrenEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaChildrenEqualsUniqueParam) childrenField() {} -func (workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (stepWithPrismaChildrenEqualsUniqueParam) unique() {} +func (stepWithPrismaChildrenEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaDeletedAtEqualsSetParam interface { +type StepWithPrismaParentsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - deletedAtField() + stepModel() + parentsField() } -type WorkflowVersionWithPrismaDeletedAtSetParam interface { +type StepWithPrismaParentsSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - deletedAtField() + stepModel() + parentsField() } -type workflowVersionWithPrismaDeletedAtSetParam struct { +type stepWithPrismaParentsSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaDeletedAtSetParam) field() builder.Field { +func (p stepWithPrismaParentsSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p stepWithPrismaParentsSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaDeletedAtSetParam) workflowVersionModel() {} +func (p stepWithPrismaParentsSetParam) stepModel() {} -func (p workflowVersionWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p stepWithPrismaParentsSetParam) parentsField() {} -type WorkflowVersionWithPrismaDeletedAtWhereParam interface { +type StepWithPrismaParentsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - deletedAtField() + stepModel() + parentsField() } -type workflowVersionWithPrismaDeletedAtEqualsParam struct { +type stepWithPrismaParentsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p stepWithPrismaParentsEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaParentsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaDeletedAtEqualsParam) workflowVersionModel() {} +func (p stepWithPrismaParentsEqualsParam) stepModel() {} -func (p workflowVersionWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p stepWithPrismaParentsEqualsParam) parentsField() {} -func (workflowVersionWithPrismaDeletedAtSetParam) settable() {} -func (workflowVersionWithPrismaDeletedAtEqualsParam) equals() {} +func (stepWithPrismaParentsSetParam) settable() {} +func (stepWithPrismaParentsEqualsParam) equals() {} -type workflowVersionWithPrismaDeletedAtEqualsUniqueParam struct { +type stepWithPrismaParentsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaParentsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaParentsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaDeletedAtEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p stepWithPrismaParentsEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaParentsEqualsUniqueParam) parentsField() {} -func (workflowVersionWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (stepWithPrismaParentsEqualsUniqueParam) unique() {} +func (stepWithPrismaParentsEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaChecksumEqualsSetParam interface { +type StepWithPrismaStepRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - checksumField() + stepModel() + stepRunsField() } -type WorkflowVersionWithPrismaChecksumSetParam interface { +type StepWithPrismaStepRunsSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - checksumField() + stepModel() + stepRunsField() } -type workflowVersionWithPrismaChecksumSetParam struct { +type stepWithPrismaStepRunsSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaChecksumSetParam) field() builder.Field { +func (p stepWithPrismaStepRunsSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaChecksumSetParam) getQuery() builder.Query { +func (p stepWithPrismaStepRunsSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaChecksumSetParam) workflowVersionModel() {} +func (p stepWithPrismaStepRunsSetParam) stepModel() {} -func (p workflowVersionWithPrismaChecksumSetParam) checksumField() {} +func (p stepWithPrismaStepRunsSetParam) stepRunsField() {} -type WorkflowVersionWithPrismaChecksumWhereParam interface { +type StepWithPrismaStepRunsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - checksumField() + stepModel() + stepRunsField() } -type workflowVersionWithPrismaChecksumEqualsParam struct { +type stepWithPrismaStepRunsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaChecksumEqualsParam) field() builder.Field { +func (p stepWithPrismaStepRunsEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaChecksumEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaStepRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaChecksumEqualsParam) workflowVersionModel() {} +func (p stepWithPrismaStepRunsEqualsParam) stepModel() {} -func (p workflowVersionWithPrismaChecksumEqualsParam) checksumField() {} +func (p stepWithPrismaStepRunsEqualsParam) stepRunsField() {} -func (workflowVersionWithPrismaChecksumSetParam) settable() {} -func (workflowVersionWithPrismaChecksumEqualsParam) equals() {} +func (stepWithPrismaStepRunsSetParam) settable() {} +func (stepWithPrismaStepRunsEqualsParam) equals() {} -type workflowVersionWithPrismaChecksumEqualsUniqueParam struct { +type stepWithPrismaStepRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaChecksumEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaChecksumEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaChecksumEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaChecksumEqualsUniqueParam) checksumField() {} +func (p stepWithPrismaStepRunsEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} -func (workflowVersionWithPrismaChecksumEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaChecksumEqualsUniqueParam) equals() {} +func (stepWithPrismaStepRunsEqualsUniqueParam) unique() {} +func (stepWithPrismaStepRunsEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaVersionEqualsSetParam interface { +type StepWithPrismaScheduleTimeoutEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - versionField() + stepModel() + scheduleTimeoutField() } -type WorkflowVersionWithPrismaVersionSetParam interface { +type StepWithPrismaScheduleTimeoutSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - versionField() + stepModel() + scheduleTimeoutField() } -type workflowVersionWithPrismaVersionSetParam struct { +type stepWithPrismaScheduleTimeoutSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaVersionSetParam) field() builder.Field { +func (p stepWithPrismaScheduleTimeoutSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaVersionSetParam) getQuery() builder.Query { +func (p stepWithPrismaScheduleTimeoutSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaVersionSetParam) workflowVersionModel() {} +func (p stepWithPrismaScheduleTimeoutSetParam) stepModel() {} -func (p workflowVersionWithPrismaVersionSetParam) versionField() {} +func (p stepWithPrismaScheduleTimeoutSetParam) scheduleTimeoutField() {} -type WorkflowVersionWithPrismaVersionWhereParam interface { +type StepWithPrismaScheduleTimeoutWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - versionField() + stepModel() + scheduleTimeoutField() } -type workflowVersionWithPrismaVersionEqualsParam struct { +type stepWithPrismaScheduleTimeoutEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaVersionEqualsParam) field() builder.Field { +func (p stepWithPrismaScheduleTimeoutEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaVersionEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaScheduleTimeoutEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaVersionEqualsParam) workflowVersionModel() {} +func (p stepWithPrismaScheduleTimeoutEqualsParam) stepModel() {} -func (p workflowVersionWithPrismaVersionEqualsParam) versionField() {} +func (p stepWithPrismaScheduleTimeoutEqualsParam) scheduleTimeoutField() {} -func (workflowVersionWithPrismaVersionSetParam) settable() {} -func (workflowVersionWithPrismaVersionEqualsParam) equals() {} +func (stepWithPrismaScheduleTimeoutSetParam) settable() {} +func (stepWithPrismaScheduleTimeoutEqualsParam) equals() {} -type workflowVersionWithPrismaVersionEqualsUniqueParam struct { +type stepWithPrismaScheduleTimeoutEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaVersionEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaScheduleTimeoutEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaVersionEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaScheduleTimeoutEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaVersionEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaVersionEqualsUniqueParam) versionField() {} +func (p stepWithPrismaScheduleTimeoutEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaScheduleTimeoutEqualsUniqueParam) scheduleTimeoutField() {} -func (workflowVersionWithPrismaVersionEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaVersionEqualsUniqueParam) equals() {} +func (stepWithPrismaScheduleTimeoutEqualsUniqueParam) unique() {} +func (stepWithPrismaScheduleTimeoutEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaOrderEqualsSetParam interface { +type StepWithPrismaRateLimitsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - orderField() + stepModel() + rateLimitsField() } -type WorkflowVersionWithPrismaOrderSetParam interface { +type StepWithPrismaRateLimitsSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - orderField() + stepModel() + rateLimitsField() } -type workflowVersionWithPrismaOrderSetParam struct { +type stepWithPrismaRateLimitsSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOrderSetParam) field() builder.Field { +func (p stepWithPrismaRateLimitsSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOrderSetParam) getQuery() builder.Query { +func (p stepWithPrismaRateLimitsSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOrderSetParam) workflowVersionModel() {} +func (p stepWithPrismaRateLimitsSetParam) stepModel() {} -func (p workflowVersionWithPrismaOrderSetParam) orderField() {} +func (p stepWithPrismaRateLimitsSetParam) rateLimitsField() {} -type WorkflowVersionWithPrismaOrderWhereParam interface { +type StepWithPrismaRateLimitsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - orderField() + stepModel() + rateLimitsField() } -type workflowVersionWithPrismaOrderEqualsParam struct { +type stepWithPrismaRateLimitsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOrderEqualsParam) field() builder.Field { +func (p stepWithPrismaRateLimitsEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOrderEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaRateLimitsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOrderEqualsParam) workflowVersionModel() {} +func (p stepWithPrismaRateLimitsEqualsParam) stepModel() {} -func (p workflowVersionWithPrismaOrderEqualsParam) orderField() {} +func (p stepWithPrismaRateLimitsEqualsParam) rateLimitsField() {} -func (workflowVersionWithPrismaOrderSetParam) settable() {} -func (workflowVersionWithPrismaOrderEqualsParam) equals() {} +func (stepWithPrismaRateLimitsSetParam) settable() {} +func (stepWithPrismaRateLimitsEqualsParam) equals() {} -type workflowVersionWithPrismaOrderEqualsUniqueParam struct { +type stepWithPrismaRateLimitsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOrderEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaRateLimitsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOrderEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaRateLimitsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOrderEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaOrderEqualsUniqueParam) orderField() {} +func (p stepWithPrismaRateLimitsEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaRateLimitsEqualsUniqueParam) rateLimitsField() {} -func (workflowVersionWithPrismaOrderEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaOrderEqualsUniqueParam) equals() {} +func (stepWithPrismaRateLimitsEqualsUniqueParam) unique() {} +func (stepWithPrismaRateLimitsEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaWorkflowEqualsSetParam interface { +type StepWithPrismaWorkerLabelsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - workflowField() + stepModel() + workerLabelsField() } -type WorkflowVersionWithPrismaWorkflowSetParam interface { +type StepWithPrismaWorkerLabelsSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - workflowField() + stepModel() + workerLabelsField() } -type workflowVersionWithPrismaWorkflowSetParam struct { +type stepWithPrismaWorkerLabelsSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaWorkflowSetParam) field() builder.Field { +func (p stepWithPrismaWorkerLabelsSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaWorkflowSetParam) getQuery() builder.Query { +func (p stepWithPrismaWorkerLabelsSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaWorkflowSetParam) workflowVersionModel() {} +func (p stepWithPrismaWorkerLabelsSetParam) stepModel() {} -func (p workflowVersionWithPrismaWorkflowSetParam) workflowField() {} +func (p stepWithPrismaWorkerLabelsSetParam) workerLabelsField() {} -type WorkflowVersionWithPrismaWorkflowWhereParam interface { +type StepWithPrismaWorkerLabelsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - workflowField() + stepModel() + workerLabelsField() } -type workflowVersionWithPrismaWorkflowEqualsParam struct { +type stepWithPrismaWorkerLabelsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaWorkflowEqualsParam) field() builder.Field { +func (p stepWithPrismaWorkerLabelsEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaWorkflowEqualsParam) getQuery() builder.Query { +func (p stepWithPrismaWorkerLabelsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaWorkflowEqualsParam) workflowVersionModel() {} +func (p stepWithPrismaWorkerLabelsEqualsParam) stepModel() {} -func (p workflowVersionWithPrismaWorkflowEqualsParam) workflowField() {} +func (p stepWithPrismaWorkerLabelsEqualsParam) workerLabelsField() {} -func (workflowVersionWithPrismaWorkflowSetParam) settable() {} -func (workflowVersionWithPrismaWorkflowEqualsParam) equals() {} +func (stepWithPrismaWorkerLabelsSetParam) settable() {} +func (stepWithPrismaWorkerLabelsEqualsParam) equals() {} -type workflowVersionWithPrismaWorkflowEqualsUniqueParam struct { +type stepWithPrismaWorkerLabelsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { +func (p stepWithPrismaWorkerLabelsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { +func (p stepWithPrismaWorkerLabelsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaWorkflowEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaWorkflowEqualsUniqueParam) workflowField() {} +func (p stepWithPrismaWorkerLabelsEqualsUniqueParam) stepModel() {} +func (p stepWithPrismaWorkerLabelsEqualsUniqueParam) workerLabelsField() {} -func (workflowVersionWithPrismaWorkflowEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaWorkflowEqualsUniqueParam) equals() {} +func (stepWithPrismaWorkerLabelsEqualsUniqueParam) unique() {} +func (stepWithPrismaWorkerLabelsEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaWorkflowIDEqualsSetParam interface { - field() builder.Field +type stepRateLimitActions struct { + // client holds the prisma client + client *PrismaClient +} + +var stepRateLimitOutput = []builder.Output{ + {Name: "units"}, + {Name: "stepId"}, + {Name: "rateLimitKey"}, + {Name: "tenantId"}, +} + +type StepRateLimitRelationWith interface { getQuery() builder.Query - equals() - workflowVersionModel() - workflowIDField() + with() + stepRateLimitRelation() } -type WorkflowVersionWithPrismaWorkflowIDSetParam interface { +type StepRateLimitWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - workflowIDField() + stepRateLimitModel() } -type workflowVersionWithPrismaWorkflowIDSetParam struct { +type stepRateLimitDefaultParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaWorkflowIDSetParam) field() builder.Field { +func (p stepRateLimitDefaultParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaWorkflowIDSetParam) getQuery() builder.Query { +func (p stepRateLimitDefaultParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaWorkflowIDSetParam) workflowVersionModel() {} - -func (p workflowVersionWithPrismaWorkflowIDSetParam) workflowIDField() {} +func (p stepRateLimitDefaultParam) stepRateLimitModel() {} -type WorkflowVersionWithPrismaWorkflowIDWhereParam interface { +type StepRateLimitOrderByParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - workflowIDField() + stepRateLimitModel() } -type workflowVersionWithPrismaWorkflowIDEqualsParam struct { +type stepRateLimitOrderByParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaWorkflowIDEqualsParam) field() builder.Field { +func (p stepRateLimitOrderByParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaWorkflowIDEqualsParam) getQuery() builder.Query { +func (p stepRateLimitOrderByParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaWorkflowIDEqualsParam) workflowVersionModel() {} - -func (p workflowVersionWithPrismaWorkflowIDEqualsParam) workflowIDField() {} +func (p stepRateLimitOrderByParam) stepRateLimitModel() {} -func (workflowVersionWithPrismaWorkflowIDSetParam) settable() {} -func (workflowVersionWithPrismaWorkflowIDEqualsParam) equals() {} +type StepRateLimitCursorParam interface { + field() builder.Field + getQuery() builder.Query + stepRateLimitModel() + isCursor() +} -type workflowVersionWithPrismaWorkflowIDEqualsUniqueParam struct { +type stepRateLimitCursorParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitCursorParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitCursorParam) isCursor() {} + +func (p stepRateLimitCursorParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) workflowIDField() {} - -func (workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaWorkflowIDEqualsUniqueParam) equals() {} - -type WorkflowVersionWithPrismaTriggersEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workflowVersionModel() - triggersField() -} +func (p stepRateLimitCursorParam) stepRateLimitModel() {} -type WorkflowVersionWithPrismaTriggersSetParam interface { +type StepRateLimitParamUnique interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - triggersField() + unique() + stepRateLimitModel() } -type workflowVersionWithPrismaTriggersSetParam struct { +type stepRateLimitParamUnique struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaTriggersSetParam) field() builder.Field { +func (p stepRateLimitParamUnique) stepRateLimitModel() {} + +func (stepRateLimitParamUnique) unique() {} + +func (p stepRateLimitParamUnique) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaTriggersSetParam) getQuery() builder.Query { +func (p stepRateLimitParamUnique) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaTriggersSetParam) workflowVersionModel() {} - -func (p workflowVersionWithPrismaTriggersSetParam) triggersField() {} - -type WorkflowVersionWithPrismaTriggersWhereParam interface { +type StepRateLimitEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - triggersField() + equals() + stepRateLimitModel() } -type workflowVersionWithPrismaTriggersEqualsParam struct { +type stepRateLimitEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaTriggersEqualsParam) field() builder.Field { +func (p stepRateLimitEqualsParam) stepRateLimitModel() {} + +func (stepRateLimitEqualsParam) equals() {} + +func (p stepRateLimitEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaTriggersEqualsParam) getQuery() builder.Query { +func (p stepRateLimitEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaTriggersEqualsParam) workflowVersionModel() {} - -func (p workflowVersionWithPrismaTriggersEqualsParam) triggersField() {} - -func (workflowVersionWithPrismaTriggersSetParam) settable() {} -func (workflowVersionWithPrismaTriggersEqualsParam) equals() {} +type StepRateLimitEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + stepRateLimitModel() +} -type workflowVersionWithPrismaTriggersEqualsUniqueParam struct { +type stepRateLimitEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaTriggersEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitEqualsUniqueParam) stepRateLimitModel() {} + +func (stepRateLimitEqualsUniqueParam) unique() {} +func (stepRateLimitEqualsUniqueParam) equals() {} + +func (p stepRateLimitEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaTriggersEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaTriggersEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaTriggersEqualsUniqueParam) triggersField() {} +type StepRateLimitSetParam interface { + field() builder.Field + settable() + stepRateLimitModel() +} -func (workflowVersionWithPrismaTriggersEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaTriggersEqualsUniqueParam) equals() {} +type stepRateLimitSetParam struct { + data builder.Field +} -type WorkflowVersionWithPrismaConcurrencyEqualsSetParam interface { +func (stepRateLimitSetParam) settable() {} + +func (p stepRateLimitSetParam) field() builder.Field { + return p.data +} + +func (p stepRateLimitSetParam) stepRateLimitModel() {} + +type StepRateLimitWithPrismaUnitsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - concurrencyField() + stepRateLimitModel() + unitsField() } -type WorkflowVersionWithPrismaConcurrencySetParam interface { +type StepRateLimitWithPrismaUnitsSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - concurrencyField() + stepRateLimitModel() + unitsField() } -type workflowVersionWithPrismaConcurrencySetParam struct { +type stepRateLimitWithPrismaUnitsSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaConcurrencySetParam) field() builder.Field { +func (p stepRateLimitWithPrismaUnitsSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaConcurrencySetParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaUnitsSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaConcurrencySetParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaUnitsSetParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaConcurrencySetParam) concurrencyField() {} +func (p stepRateLimitWithPrismaUnitsSetParam) unitsField() {} -type WorkflowVersionWithPrismaConcurrencyWhereParam interface { +type StepRateLimitWithPrismaUnitsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - concurrencyField() + stepRateLimitModel() + unitsField() } -type workflowVersionWithPrismaConcurrencyEqualsParam struct { +type stepRateLimitWithPrismaUnitsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaConcurrencyEqualsParam) field() builder.Field { +func (p stepRateLimitWithPrismaUnitsEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaConcurrencyEqualsParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaUnitsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaConcurrencyEqualsParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaUnitsEqualsParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaConcurrencyEqualsParam) concurrencyField() {} +func (p stepRateLimitWithPrismaUnitsEqualsParam) unitsField() {} -func (workflowVersionWithPrismaConcurrencySetParam) settable() {} -func (workflowVersionWithPrismaConcurrencyEqualsParam) equals() {} +func (stepRateLimitWithPrismaUnitsSetParam) settable() {} +func (stepRateLimitWithPrismaUnitsEqualsParam) equals() {} -type workflowVersionWithPrismaConcurrencyEqualsUniqueParam struct { +type stepRateLimitWithPrismaUnitsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaConcurrencyEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitWithPrismaUnitsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaConcurrencyEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaUnitsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaConcurrencyEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaConcurrencyEqualsUniqueParam) concurrencyField() {} +func (p stepRateLimitWithPrismaUnitsEqualsUniqueParam) stepRateLimitModel() {} +func (p stepRateLimitWithPrismaUnitsEqualsUniqueParam) unitsField() {} -func (workflowVersionWithPrismaConcurrencyEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaConcurrencyEqualsUniqueParam) equals() {} +func (stepRateLimitWithPrismaUnitsEqualsUniqueParam) unique() {} +func (stepRateLimitWithPrismaUnitsEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaJobsEqualsSetParam interface { +type StepRateLimitWithPrismaStepEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - jobsField() + stepRateLimitModel() + stepField() } -type WorkflowVersionWithPrismaJobsSetParam interface { +type StepRateLimitWithPrismaStepSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - jobsField() + stepRateLimitModel() + stepField() } -type workflowVersionWithPrismaJobsSetParam struct { +type stepRateLimitWithPrismaStepSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaJobsSetParam) field() builder.Field { +func (p stepRateLimitWithPrismaStepSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaJobsSetParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaStepSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaJobsSetParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaStepSetParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaJobsSetParam) jobsField() {} +func (p stepRateLimitWithPrismaStepSetParam) stepField() {} -type WorkflowVersionWithPrismaJobsWhereParam interface { +type StepRateLimitWithPrismaStepWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - jobsField() + stepRateLimitModel() + stepField() } -type workflowVersionWithPrismaJobsEqualsParam struct { +type stepRateLimitWithPrismaStepEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaJobsEqualsParam) field() builder.Field { +func (p stepRateLimitWithPrismaStepEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaJobsEqualsParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaStepEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaJobsEqualsParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaStepEqualsParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaJobsEqualsParam) jobsField() {} +func (p stepRateLimitWithPrismaStepEqualsParam) stepField() {} -func (workflowVersionWithPrismaJobsSetParam) settable() {} -func (workflowVersionWithPrismaJobsEqualsParam) equals() {} +func (stepRateLimitWithPrismaStepSetParam) settable() {} +func (stepRateLimitWithPrismaStepEqualsParam) equals() {} -type workflowVersionWithPrismaJobsEqualsUniqueParam struct { +type stepRateLimitWithPrismaStepEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaJobsEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitWithPrismaStepEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaJobsEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaStepEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaJobsEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaJobsEqualsUniqueParam) jobsField() {} +func (p stepRateLimitWithPrismaStepEqualsUniqueParam) stepRateLimitModel() {} +func (p stepRateLimitWithPrismaStepEqualsUniqueParam) stepField() {} -func (workflowVersionWithPrismaJobsEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaJobsEqualsUniqueParam) equals() {} +func (stepRateLimitWithPrismaStepEqualsUniqueParam) unique() {} +func (stepRateLimitWithPrismaStepEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaOnFailureJobEqualsSetParam interface { +type StepRateLimitWithPrismaStepIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - onFailureJobField() + stepRateLimitModel() + stepIDField() } -type WorkflowVersionWithPrismaOnFailureJobSetParam interface { +type StepRateLimitWithPrismaStepIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - onFailureJobField() + stepRateLimitModel() + stepIDField() } -type workflowVersionWithPrismaOnFailureJobSetParam struct { +type stepRateLimitWithPrismaStepIDSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOnFailureJobSetParam) field() builder.Field { +func (p stepRateLimitWithPrismaStepIDSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOnFailureJobSetParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaStepIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOnFailureJobSetParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaStepIDSetParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaOnFailureJobSetParam) onFailureJobField() {} +func (p stepRateLimitWithPrismaStepIDSetParam) stepIDField() {} -type WorkflowVersionWithPrismaOnFailureJobWhereParam interface { +type StepRateLimitWithPrismaStepIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - onFailureJobField() + stepRateLimitModel() + stepIDField() } -type workflowVersionWithPrismaOnFailureJobEqualsParam struct { +type stepRateLimitWithPrismaStepIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOnFailureJobEqualsParam) field() builder.Field { +func (p stepRateLimitWithPrismaStepIDEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOnFailureJobEqualsParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaStepIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOnFailureJobEqualsParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaStepIDEqualsParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaOnFailureJobEqualsParam) onFailureJobField() {} +func (p stepRateLimitWithPrismaStepIDEqualsParam) stepIDField() {} -func (workflowVersionWithPrismaOnFailureJobSetParam) settable() {} -func (workflowVersionWithPrismaOnFailureJobEqualsParam) equals() {} +func (stepRateLimitWithPrismaStepIDSetParam) settable() {} +func (stepRateLimitWithPrismaStepIDEqualsParam) equals() {} -type workflowVersionWithPrismaOnFailureJobEqualsUniqueParam struct { +type stepRateLimitWithPrismaStepIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitWithPrismaStepIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaStepIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) onFailureJobField() {} +func (p stepRateLimitWithPrismaStepIDEqualsUniqueParam) stepRateLimitModel() {} +func (p stepRateLimitWithPrismaStepIDEqualsUniqueParam) stepIDField() {} -func (workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaOnFailureJobEqualsUniqueParam) equals() {} +func (stepRateLimitWithPrismaStepIDEqualsUniqueParam) unique() {} +func (stepRateLimitWithPrismaStepIDEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaOnFailureJobIDEqualsSetParam interface { +type StepRateLimitWithPrismaRateLimitEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - onFailureJobIDField() + stepRateLimitModel() + rateLimitField() } -type WorkflowVersionWithPrismaOnFailureJobIDSetParam interface { +type StepRateLimitWithPrismaRateLimitSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - onFailureJobIDField() + stepRateLimitModel() + rateLimitField() } -type workflowVersionWithPrismaOnFailureJobIDSetParam struct { +type stepRateLimitWithPrismaRateLimitSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOnFailureJobIDSetParam) field() builder.Field { +func (p stepRateLimitWithPrismaRateLimitSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOnFailureJobIDSetParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaRateLimitSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOnFailureJobIDSetParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaRateLimitSetParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaOnFailureJobIDSetParam) onFailureJobIDField() {} +func (p stepRateLimitWithPrismaRateLimitSetParam) rateLimitField() {} -type WorkflowVersionWithPrismaOnFailureJobIDWhereParam interface { +type StepRateLimitWithPrismaRateLimitWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - onFailureJobIDField() + stepRateLimitModel() + rateLimitField() } -type workflowVersionWithPrismaOnFailureJobIDEqualsParam struct { +type stepRateLimitWithPrismaRateLimitEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOnFailureJobIDEqualsParam) field() builder.Field { +func (p stepRateLimitWithPrismaRateLimitEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOnFailureJobIDEqualsParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaRateLimitEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOnFailureJobIDEqualsParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaRateLimitEqualsParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaOnFailureJobIDEqualsParam) onFailureJobIDField() {} +func (p stepRateLimitWithPrismaRateLimitEqualsParam) rateLimitField() {} -func (workflowVersionWithPrismaOnFailureJobIDSetParam) settable() {} -func (workflowVersionWithPrismaOnFailureJobIDEqualsParam) equals() {} +func (stepRateLimitWithPrismaRateLimitSetParam) settable() {} +func (stepRateLimitWithPrismaRateLimitEqualsParam) equals() {} -type workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam struct { +type stepRateLimitWithPrismaRateLimitEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitWithPrismaRateLimitEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaRateLimitEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) onFailureJobIDField() {} +func (p stepRateLimitWithPrismaRateLimitEqualsUniqueParam) stepRateLimitModel() {} +func (p stepRateLimitWithPrismaRateLimitEqualsUniqueParam) rateLimitField() {} -func (workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaOnFailureJobIDEqualsUniqueParam) equals() {} +func (stepRateLimitWithPrismaRateLimitEqualsUniqueParam) unique() {} +func (stepRateLimitWithPrismaRateLimitEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaRunsEqualsSetParam interface { +type StepRateLimitWithPrismaRateLimitKeyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - runsField() + stepRateLimitModel() + rateLimitKeyField() } -type WorkflowVersionWithPrismaRunsSetParam interface { +type StepRateLimitWithPrismaRateLimitKeySetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - runsField() + stepRateLimitModel() + rateLimitKeyField() } -type workflowVersionWithPrismaRunsSetParam struct { +type stepRateLimitWithPrismaRateLimitKeySetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaRunsSetParam) field() builder.Field { +func (p stepRateLimitWithPrismaRateLimitKeySetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaRunsSetParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaRateLimitKeySetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaRunsSetParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaRateLimitKeySetParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaRunsSetParam) runsField() {} +func (p stepRateLimitWithPrismaRateLimitKeySetParam) rateLimitKeyField() {} -type WorkflowVersionWithPrismaRunsWhereParam interface { +type StepRateLimitWithPrismaRateLimitKeyWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - runsField() + stepRateLimitModel() + rateLimitKeyField() } -type workflowVersionWithPrismaRunsEqualsParam struct { +type stepRateLimitWithPrismaRateLimitKeyEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaRunsEqualsParam) field() builder.Field { +func (p stepRateLimitWithPrismaRateLimitKeyEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaRunsEqualsParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaRateLimitKeyEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaRunsEqualsParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaRateLimitKeyEqualsParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaRunsEqualsParam) runsField() {} +func (p stepRateLimitWithPrismaRateLimitKeyEqualsParam) rateLimitKeyField() {} -func (workflowVersionWithPrismaRunsSetParam) settable() {} -func (workflowVersionWithPrismaRunsEqualsParam) equals() {} +func (stepRateLimitWithPrismaRateLimitKeySetParam) settable() {} +func (stepRateLimitWithPrismaRateLimitKeyEqualsParam) equals() {} -type workflowVersionWithPrismaRunsEqualsUniqueParam struct { +type stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaRunsEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaRunsEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaRunsEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaRunsEqualsUniqueParam) runsField() {} +func (p stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) stepRateLimitModel() {} +func (p stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) rateLimitKeyField() {} -func (workflowVersionWithPrismaRunsEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaRunsEqualsUniqueParam) equals() {} +func (stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) unique() {} +func (stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaScheduledEqualsSetParam interface { +type StepRateLimitWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - scheduledField() + stepRateLimitModel() + tenantField() } -type WorkflowVersionWithPrismaScheduledSetParam interface { +type StepRateLimitWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - scheduledField() + stepRateLimitModel() + tenantField() } -type workflowVersionWithPrismaScheduledSetParam struct { +type stepRateLimitWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaScheduledSetParam) field() builder.Field { +func (p stepRateLimitWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaScheduledSetParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaScheduledSetParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaTenantSetParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaScheduledSetParam) scheduledField() {} +func (p stepRateLimitWithPrismaTenantSetParam) tenantField() {} -type WorkflowVersionWithPrismaScheduledWhereParam interface { +type StepRateLimitWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - scheduledField() + stepRateLimitModel() + tenantField() } -type workflowVersionWithPrismaScheduledEqualsParam struct { +type stepRateLimitWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaScheduledEqualsParam) field() builder.Field { +func (p stepRateLimitWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaScheduledEqualsParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaScheduledEqualsParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaTenantEqualsParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaScheduledEqualsParam) scheduledField() {} +func (p stepRateLimitWithPrismaTenantEqualsParam) tenantField() {} -func (workflowVersionWithPrismaScheduledSetParam) settable() {} -func (workflowVersionWithPrismaScheduledEqualsParam) equals() {} +func (stepRateLimitWithPrismaTenantSetParam) settable() {} +func (stepRateLimitWithPrismaTenantEqualsParam) equals() {} -type workflowVersionWithPrismaScheduledEqualsUniqueParam struct { +type stepRateLimitWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaScheduledEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaScheduledEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaScheduledEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaScheduledEqualsUniqueParam) scheduledField() {} +func (p stepRateLimitWithPrismaTenantEqualsUniqueParam) stepRateLimitModel() {} +func (p stepRateLimitWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (workflowVersionWithPrismaScheduledEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaScheduledEqualsUniqueParam) equals() {} +func (stepRateLimitWithPrismaTenantEqualsUniqueParam) unique() {} +func (stepRateLimitWithPrismaTenantEqualsUniqueParam) equals() {} -type WorkflowVersionWithPrismaScheduleTimeoutEqualsSetParam interface { +type StepRateLimitWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowVersionModel() - scheduleTimeoutField() + stepRateLimitModel() + tenantIDField() } -type WorkflowVersionWithPrismaScheduleTimeoutSetParam interface { +type StepRateLimitWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - scheduleTimeoutField() + stepRateLimitModel() + tenantIDField() } -type workflowVersionWithPrismaScheduleTimeoutSetParam struct { +type stepRateLimitWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaScheduleTimeoutSetParam) field() builder.Field { +func (p stepRateLimitWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaScheduleTimeoutSetParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaScheduleTimeoutSetParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaTenantIDSetParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaScheduleTimeoutSetParam) scheduleTimeoutField() {} +func (p stepRateLimitWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkflowVersionWithPrismaScheduleTimeoutWhereParam interface { +type StepRateLimitWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowVersionModel() - scheduleTimeoutField() + stepRateLimitModel() + tenantIDField() } -type workflowVersionWithPrismaScheduleTimeoutEqualsParam struct { +type stepRateLimitWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaScheduleTimeoutEqualsParam) field() builder.Field { +func (p stepRateLimitWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaScheduleTimeoutEqualsParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaScheduleTimeoutEqualsParam) workflowVersionModel() {} +func (p stepRateLimitWithPrismaTenantIDEqualsParam) stepRateLimitModel() {} -func (p workflowVersionWithPrismaScheduleTimeoutEqualsParam) scheduleTimeoutField() {} +func (p stepRateLimitWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workflowVersionWithPrismaScheduleTimeoutSetParam) settable() {} -func (workflowVersionWithPrismaScheduleTimeoutEqualsParam) equals() {} +func (stepRateLimitWithPrismaTenantIDSetParam) settable() {} +func (stepRateLimitWithPrismaTenantIDEqualsParam) equals() {} -type workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam struct { +type stepRateLimitWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) field() builder.Field { +func (p stepRateLimitWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) getQuery() builder.Query { +func (p stepRateLimitWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) workflowVersionModel() {} -func (p workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) scheduleTimeoutField() {} +func (p stepRateLimitWithPrismaTenantIDEqualsUniqueParam) stepRateLimitModel() {} +func (p stepRateLimitWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) unique() {} -func (workflowVersionWithPrismaScheduleTimeoutEqualsUniqueParam) equals() {} +func (stepRateLimitWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (stepRateLimitWithPrismaTenantIDEqualsUniqueParam) equals() {} -type workflowConcurrencyActions struct { +type rateLimitActions struct { // client holds the prisma client client *PrismaClient } -var workflowConcurrencyOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "workflowVersionId"}, - {Name: "getConcurrencyGroupId"}, - {Name: "maxRuns"}, - {Name: "limitStrategy"}, +var rateLimitOutput = []builder.Output{ + {Name: "tenantId"}, + {Name: "key"}, + {Name: "limitValue"}, + {Name: "value"}, + {Name: "window"}, + {Name: "lastRefill"}, } -type WorkflowConcurrencyRelationWith interface { +type RateLimitRelationWith interface { getQuery() builder.Query with() - workflowConcurrencyRelation() -} - -type WorkflowConcurrencyWhereParam interface { - field() builder.Field - getQuery() builder.Query - workflowConcurrencyModel() -} - -type workflowConcurrencyDefaultParam struct { - data builder.Field - query builder.Query -} - -func (p workflowConcurrencyDefaultParam) field() builder.Field { - return p.data -} - -func (p workflowConcurrencyDefaultParam) getQuery() builder.Query { - return p.query -} - -func (p workflowConcurrencyDefaultParam) workflowConcurrencyModel() {} - -type WorkflowConcurrencyOrderByParam interface { - field() builder.Field - getQuery() builder.Query - workflowConcurrencyModel() -} - -type workflowConcurrencyOrderByParam struct { - data builder.Field - query builder.Query -} - -func (p workflowConcurrencyOrderByParam) field() builder.Field { - return p.data -} - -func (p workflowConcurrencyOrderByParam) getQuery() builder.Query { - return p.query + rateLimitRelation() } -func (p workflowConcurrencyOrderByParam) workflowConcurrencyModel() {} - -type WorkflowConcurrencyCursorParam interface { +type RateLimitWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - isCursor() + rateLimitModel() } -type workflowConcurrencyCursorParam struct { +type rateLimitDefaultParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyCursorParam) field() builder.Field { +func (p rateLimitDefaultParam) field() builder.Field { return p.data } -func (p workflowConcurrencyCursorParam) isCursor() {} - -func (p workflowConcurrencyCursorParam) getQuery() builder.Query { +func (p rateLimitDefaultParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyCursorParam) workflowConcurrencyModel() {} +func (p rateLimitDefaultParam) rateLimitModel() {} -type WorkflowConcurrencyParamUnique interface { +type RateLimitOrderByParam interface { field() builder.Field getQuery() builder.Query - unique() - workflowConcurrencyModel() + rateLimitModel() } -type workflowConcurrencyParamUnique struct { +type rateLimitOrderByParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyParamUnique) workflowConcurrencyModel() {} - -func (workflowConcurrencyParamUnique) unique() {} - -func (p workflowConcurrencyParamUnique) field() builder.Field { +func (p rateLimitOrderByParam) field() builder.Field { return p.data } -func (p workflowConcurrencyParamUnique) getQuery() builder.Query { +func (p rateLimitOrderByParam) getQuery() builder.Query { return p.query } -type WorkflowConcurrencyEqualsWhereParam interface { +func (p rateLimitOrderByParam) rateLimitModel() {} + +type RateLimitCursorParam interface { field() builder.Field getQuery() builder.Query - equals() - workflowConcurrencyModel() + rateLimitModel() + isCursor() } -type workflowConcurrencyEqualsParam struct { +type rateLimitCursorParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyEqualsParam) workflowConcurrencyModel() {} - -func (workflowConcurrencyEqualsParam) equals() {} - -func (p workflowConcurrencyEqualsParam) field() builder.Field { +func (p rateLimitCursorParam) field() builder.Field { return p.data } -func (p workflowConcurrencyEqualsParam) getQuery() builder.Query { +func (p rateLimitCursorParam) isCursor() {} + +func (p rateLimitCursorParam) getQuery() builder.Query { return p.query } -type WorkflowConcurrencyEqualsUniqueWhereParam interface { +func (p rateLimitCursorParam) rateLimitModel() {} + +type RateLimitParamUnique interface { field() builder.Field getQuery() builder.Query - equals() unique() - workflowConcurrencyModel() + rateLimitModel() } -type workflowConcurrencyEqualsUniqueParam struct { +type rateLimitParamUnique struct { data builder.Field query builder.Query } -func (p workflowConcurrencyEqualsUniqueParam) workflowConcurrencyModel() {} +func (p rateLimitParamUnique) rateLimitModel() {} -func (workflowConcurrencyEqualsUniqueParam) unique() {} -func (workflowConcurrencyEqualsUniqueParam) equals() {} +func (rateLimitParamUnique) unique() {} -func (p workflowConcurrencyEqualsUniqueParam) field() builder.Field { +func (p rateLimitParamUnique) field() builder.Field { return p.data } -func (p workflowConcurrencyEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitParamUnique) getQuery() builder.Query { return p.query } -type WorkflowConcurrencySetParam interface { - field() builder.Field - settable() - workflowConcurrencyModel() -} - -type workflowConcurrencySetParam struct { - data builder.Field -} - -func (workflowConcurrencySetParam) settable() {} - -func (p workflowConcurrencySetParam) field() builder.Field { - return p.data -} - -func (p workflowConcurrencySetParam) workflowConcurrencyModel() {} - -type WorkflowConcurrencyWithPrismaIDEqualsSetParam interface { +type RateLimitEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - idField() -} - -type WorkflowConcurrencyWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - workflowConcurrencyModel() - idField() + rateLimitModel() } -type workflowConcurrencyWithPrismaIDSetParam struct { +type rateLimitEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaIDSetParam) field() builder.Field { +func (p rateLimitEqualsParam) rateLimitModel() {} + +func (rateLimitEqualsParam) equals() {} + +func (p rateLimitEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaIDSetParam) getQuery() builder.Query { +func (p rateLimitEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaIDSetParam) workflowConcurrencyModel() {} - -func (p workflowConcurrencyWithPrismaIDSetParam) idField() {} - -type WorkflowConcurrencyWithPrismaIDWhereParam interface { +type RateLimitEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - idField() + equals() + unique() + rateLimitModel() } -type workflowConcurrencyWithPrismaIDEqualsParam struct { +type rateLimitEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaIDEqualsParam) field() builder.Field { +func (p rateLimitEqualsUniqueParam) rateLimitModel() {} + +func (rateLimitEqualsUniqueParam) unique() {} +func (rateLimitEqualsUniqueParam) equals() {} + +func (p rateLimitEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p rateLimitEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaIDEqualsParam) workflowConcurrencyModel() {} - -func (p workflowConcurrencyWithPrismaIDEqualsParam) idField() {} - -func (workflowConcurrencyWithPrismaIDSetParam) settable() {} -func (workflowConcurrencyWithPrismaIDEqualsParam) equals() {} - -type workflowConcurrencyWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query +type RateLimitSetParam interface { + field() builder.Field + settable() + rateLimitModel() } -func (p workflowConcurrencyWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data +type rateLimitSetParam struct { + data builder.Field } -func (p workflowConcurrencyWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (rateLimitSetParam) settable() {} -func (p workflowConcurrencyWithPrismaIDEqualsUniqueParam) workflowConcurrencyModel() {} -func (p workflowConcurrencyWithPrismaIDEqualsUniqueParam) idField() {} +func (p rateLimitSetParam) field() builder.Field { + return p.data +} -func (workflowConcurrencyWithPrismaIDEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaIDEqualsUniqueParam) equals() {} +func (p rateLimitSetParam) rateLimitModel() {} -type WorkflowConcurrencyWithPrismaCreatedAtEqualsSetParam interface { +type RateLimitWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - createdAtField() + rateLimitModel() + tenantField() } -type WorkflowConcurrencyWithPrismaCreatedAtSetParam interface { +type RateLimitWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - createdAtField() + rateLimitModel() + tenantField() } -type workflowConcurrencyWithPrismaCreatedAtSetParam struct { +type rateLimitWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaCreatedAtSetParam) field() builder.Field { +func (p rateLimitWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p rateLimitWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaCreatedAtSetParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaTenantSetParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaCreatedAtSetParam) createdAtField() {} +func (p rateLimitWithPrismaTenantSetParam) tenantField() {} -type WorkflowConcurrencyWithPrismaCreatedAtWhereParam interface { +type RateLimitWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - createdAtField() + rateLimitModel() + tenantField() } -type workflowConcurrencyWithPrismaCreatedAtEqualsParam struct { +type rateLimitWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p rateLimitWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p rateLimitWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaCreatedAtEqualsParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaTenantEqualsParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p rateLimitWithPrismaTenantEqualsParam) tenantField() {} -func (workflowConcurrencyWithPrismaCreatedAtSetParam) settable() {} -func (workflowConcurrencyWithPrismaCreatedAtEqualsParam) equals() {} +func (rateLimitWithPrismaTenantSetParam) settable() {} +func (rateLimitWithPrismaTenantEqualsParam) equals() {} -type workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam struct { +type rateLimitWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p rateLimitWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) workflowConcurrencyModel() {} -func (p workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p rateLimitWithPrismaTenantEqualsUniqueParam) rateLimitModel() {} +func (p rateLimitWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (rateLimitWithPrismaTenantEqualsUniqueParam) unique() {} +func (rateLimitWithPrismaTenantEqualsUniqueParam) equals() {} -type WorkflowConcurrencyWithPrismaUpdatedAtEqualsSetParam interface { +type RateLimitWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - updatedAtField() + rateLimitModel() + tenantIDField() } -type WorkflowConcurrencyWithPrismaUpdatedAtSetParam interface { +type RateLimitWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - updatedAtField() + rateLimitModel() + tenantIDField() } -type workflowConcurrencyWithPrismaUpdatedAtSetParam struct { +type rateLimitWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p rateLimitWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p rateLimitWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaUpdatedAtSetParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaTenantIDSetParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p rateLimitWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkflowConcurrencyWithPrismaUpdatedAtWhereParam interface { +type RateLimitWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - updatedAtField() + rateLimitModel() + tenantIDField() } -type workflowConcurrencyWithPrismaUpdatedAtEqualsParam struct { +type rateLimitWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p rateLimitWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p rateLimitWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaUpdatedAtEqualsParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaTenantIDEqualsParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p rateLimitWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workflowConcurrencyWithPrismaUpdatedAtSetParam) settable() {} -func (workflowConcurrencyWithPrismaUpdatedAtEqualsParam) equals() {} +func (rateLimitWithPrismaTenantIDSetParam) settable() {} +func (rateLimitWithPrismaTenantIDEqualsParam) equals() {} -type workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam struct { +type rateLimitWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p rateLimitWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) workflowConcurrencyModel() {} -func (p workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p rateLimitWithPrismaTenantIDEqualsUniqueParam) rateLimitModel() {} +func (p rateLimitWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (rateLimitWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (rateLimitWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WorkflowConcurrencyWithPrismaWorkflowEqualsSetParam interface { +type RateLimitWithPrismaKeyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - workflowField() + rateLimitModel() + keyField() } -type WorkflowConcurrencyWithPrismaWorkflowSetParam interface { +type RateLimitWithPrismaKeySetParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - workflowField() + rateLimitModel() + keyField() } -type workflowConcurrencyWithPrismaWorkflowSetParam struct { +type rateLimitWithPrismaKeySetParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaWorkflowSetParam) field() builder.Field { +func (p rateLimitWithPrismaKeySetParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaWorkflowSetParam) getQuery() builder.Query { +func (p rateLimitWithPrismaKeySetParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaWorkflowSetParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaKeySetParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaWorkflowSetParam) workflowField() {} +func (p rateLimitWithPrismaKeySetParam) keyField() {} -type WorkflowConcurrencyWithPrismaWorkflowWhereParam interface { +type RateLimitWithPrismaKeyWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - workflowField() + rateLimitModel() + keyField() } -type workflowConcurrencyWithPrismaWorkflowEqualsParam struct { +type rateLimitWithPrismaKeyEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaWorkflowEqualsParam) field() builder.Field { +func (p rateLimitWithPrismaKeyEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaWorkflowEqualsParam) getQuery() builder.Query { +func (p rateLimitWithPrismaKeyEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaWorkflowEqualsParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaKeyEqualsParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaWorkflowEqualsParam) workflowField() {} +func (p rateLimitWithPrismaKeyEqualsParam) keyField() {} -func (workflowConcurrencyWithPrismaWorkflowSetParam) settable() {} -func (workflowConcurrencyWithPrismaWorkflowEqualsParam) equals() {} +func (rateLimitWithPrismaKeySetParam) settable() {} +func (rateLimitWithPrismaKeyEqualsParam) equals() {} -type workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam struct { +type rateLimitWithPrismaKeyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { +func (p rateLimitWithPrismaKeyEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitWithPrismaKeyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) workflowConcurrencyModel() {} -func (p workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) workflowField() {} +func (p rateLimitWithPrismaKeyEqualsUniqueParam) rateLimitModel() {} +func (p rateLimitWithPrismaKeyEqualsUniqueParam) keyField() {} -func (workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaWorkflowEqualsUniqueParam) equals() {} +func (rateLimitWithPrismaKeyEqualsUniqueParam) unique() {} +func (rateLimitWithPrismaKeyEqualsUniqueParam) equals() {} -type WorkflowConcurrencyWithPrismaWorkflowVersionIDEqualsSetParam interface { +type RateLimitWithPrismaLimitValueEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - workflowVersionIDField() + rateLimitModel() + limitValueField() } -type WorkflowConcurrencyWithPrismaWorkflowVersionIDSetParam interface { +type RateLimitWithPrismaLimitValueSetParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - workflowVersionIDField() + rateLimitModel() + limitValueField() } -type workflowConcurrencyWithPrismaWorkflowVersionIDSetParam struct { +type rateLimitWithPrismaLimitValueSetParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) field() builder.Field { +func (p rateLimitWithPrismaLimitValueSetParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) getQuery() builder.Query { +func (p rateLimitWithPrismaLimitValueSetParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaLimitValueSetParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) workflowVersionIDField() {} +func (p rateLimitWithPrismaLimitValueSetParam) limitValueField() {} -type WorkflowConcurrencyWithPrismaWorkflowVersionIDWhereParam interface { +type RateLimitWithPrismaLimitValueWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - workflowVersionIDField() + rateLimitModel() + limitValueField() } -type workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam struct { +type rateLimitWithPrismaLimitValueEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) field() builder.Field { +func (p rateLimitWithPrismaLimitValueEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) getQuery() builder.Query { +func (p rateLimitWithPrismaLimitValueEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaLimitValueEqualsParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) workflowVersionIDField() {} +func (p rateLimitWithPrismaLimitValueEqualsParam) limitValueField() {} -func (workflowConcurrencyWithPrismaWorkflowVersionIDSetParam) settable() {} -func (workflowConcurrencyWithPrismaWorkflowVersionIDEqualsParam) equals() {} +func (rateLimitWithPrismaLimitValueSetParam) settable() {} +func (rateLimitWithPrismaLimitValueEqualsParam) equals() {} -type workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam struct { +type rateLimitWithPrismaLimitValueEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) field() builder.Field { +func (p rateLimitWithPrismaLimitValueEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitWithPrismaLimitValueEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowConcurrencyModel() {} -func (p workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowVersionIDField() {} +func (p rateLimitWithPrismaLimitValueEqualsUniqueParam) rateLimitModel() {} +func (p rateLimitWithPrismaLimitValueEqualsUniqueParam) limitValueField() {} -func (workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaWorkflowVersionIDEqualsUniqueParam) equals() {} +func (rateLimitWithPrismaLimitValueEqualsUniqueParam) unique() {} +func (rateLimitWithPrismaLimitValueEqualsUniqueParam) equals() {} -type WorkflowConcurrencyWithPrismaGetConcurrencyGroupEqualsSetParam interface { +type RateLimitWithPrismaValueEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - getConcurrencyGroupField() + rateLimitModel() + valueField() } -type WorkflowConcurrencyWithPrismaGetConcurrencyGroupSetParam interface { +type RateLimitWithPrismaValueSetParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - getConcurrencyGroupField() + rateLimitModel() + valueField() } -type workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam struct { +type rateLimitWithPrismaValueSetParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) field() builder.Field { +func (p rateLimitWithPrismaValueSetParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) getQuery() builder.Query { +func (p rateLimitWithPrismaValueSetParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaValueSetParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) getConcurrencyGroupField() {} +func (p rateLimitWithPrismaValueSetParam) valueField() {} -type WorkflowConcurrencyWithPrismaGetConcurrencyGroupWhereParam interface { +type RateLimitWithPrismaValueWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - getConcurrencyGroupField() + rateLimitModel() + valueField() } -type workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam struct { +type rateLimitWithPrismaValueEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) field() builder.Field { +func (p rateLimitWithPrismaValueEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) getQuery() builder.Query { +func (p rateLimitWithPrismaValueEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaValueEqualsParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) getConcurrencyGroupField() {} +func (p rateLimitWithPrismaValueEqualsParam) valueField() {} -func (workflowConcurrencyWithPrismaGetConcurrencyGroupSetParam) settable() {} -func (workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsParam) equals() {} +func (rateLimitWithPrismaValueSetParam) settable() {} +func (rateLimitWithPrismaValueEqualsParam) equals() {} -type workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam struct { +type rateLimitWithPrismaValueEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) field() builder.Field { +func (p rateLimitWithPrismaValueEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitWithPrismaValueEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) workflowConcurrencyModel() { -} -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) getConcurrencyGroupField() { -} +func (p rateLimitWithPrismaValueEqualsUniqueParam) rateLimitModel() {} +func (p rateLimitWithPrismaValueEqualsUniqueParam) valueField() {} -func (workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaGetConcurrencyGroupEqualsUniqueParam) equals() {} +func (rateLimitWithPrismaValueEqualsUniqueParam) unique() {} +func (rateLimitWithPrismaValueEqualsUniqueParam) equals() {} -type WorkflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsSetParam interface { +type RateLimitWithPrismaWindowEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - getConcurrencyGroupIDField() + rateLimitModel() + windowField() } -type WorkflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam interface { +type RateLimitWithPrismaWindowSetParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - getConcurrencyGroupIDField() + rateLimitModel() + windowField() } -type workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam struct { +type rateLimitWithPrismaWindowSetParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) field() builder.Field { +func (p rateLimitWithPrismaWindowSetParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) getQuery() builder.Query { +func (p rateLimitWithPrismaWindowSetParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaWindowSetParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) getConcurrencyGroupIDField() {} +func (p rateLimitWithPrismaWindowSetParam) windowField() {} -type WorkflowConcurrencyWithPrismaGetConcurrencyGroupIDWhereParam interface { +type RateLimitWithPrismaWindowWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - getConcurrencyGroupIDField() + rateLimitModel() + windowField() } -type workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam struct { +type rateLimitWithPrismaWindowEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) field() builder.Field { +func (p rateLimitWithPrismaWindowEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) getQuery() builder.Query { +func (p rateLimitWithPrismaWindowEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaWindowEqualsParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) getConcurrencyGroupIDField() {} +func (p rateLimitWithPrismaWindowEqualsParam) windowField() {} -func (workflowConcurrencyWithPrismaGetConcurrencyGroupIDSetParam) settable() {} -func (workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsParam) equals() {} +func (rateLimitWithPrismaWindowSetParam) settable() {} +func (rateLimitWithPrismaWindowEqualsParam) equals() {} -type workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam struct { +type rateLimitWithPrismaWindowEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) field() builder.Field { +func (p rateLimitWithPrismaWindowEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitWithPrismaWindowEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) workflowConcurrencyModel() { -} -func (p workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) getConcurrencyGroupIDField() { -} +func (p rateLimitWithPrismaWindowEqualsUniqueParam) rateLimitModel() {} +func (p rateLimitWithPrismaWindowEqualsUniqueParam) windowField() {} -func (workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaGetConcurrencyGroupIDEqualsUniqueParam) equals() {} +func (rateLimitWithPrismaWindowEqualsUniqueParam) unique() {} +func (rateLimitWithPrismaWindowEqualsUniqueParam) equals() {} -type WorkflowConcurrencyWithPrismaMaxRunsEqualsSetParam interface { +type RateLimitWithPrismaLastRefillEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - maxRunsField() + rateLimitModel() + lastRefillField() } -type WorkflowConcurrencyWithPrismaMaxRunsSetParam interface { +type RateLimitWithPrismaLastRefillSetParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - maxRunsField() + rateLimitModel() + lastRefillField() } -type workflowConcurrencyWithPrismaMaxRunsSetParam struct { +type rateLimitWithPrismaLastRefillSetParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaMaxRunsSetParam) field() builder.Field { +func (p rateLimitWithPrismaLastRefillSetParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaMaxRunsSetParam) getQuery() builder.Query { +func (p rateLimitWithPrismaLastRefillSetParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaMaxRunsSetParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaLastRefillSetParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaMaxRunsSetParam) maxRunsField() {} +func (p rateLimitWithPrismaLastRefillSetParam) lastRefillField() {} -type WorkflowConcurrencyWithPrismaMaxRunsWhereParam interface { +type RateLimitWithPrismaLastRefillWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - maxRunsField() + rateLimitModel() + lastRefillField() } -type workflowConcurrencyWithPrismaMaxRunsEqualsParam struct { +type rateLimitWithPrismaLastRefillEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaMaxRunsEqualsParam) field() builder.Field { +func (p rateLimitWithPrismaLastRefillEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaMaxRunsEqualsParam) getQuery() builder.Query { +func (p rateLimitWithPrismaLastRefillEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaMaxRunsEqualsParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaLastRefillEqualsParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaMaxRunsEqualsParam) maxRunsField() {} +func (p rateLimitWithPrismaLastRefillEqualsParam) lastRefillField() {} -func (workflowConcurrencyWithPrismaMaxRunsSetParam) settable() {} -func (workflowConcurrencyWithPrismaMaxRunsEqualsParam) equals() {} +func (rateLimitWithPrismaLastRefillSetParam) settable() {} +func (rateLimitWithPrismaLastRefillEqualsParam) equals() {} -type workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam struct { +type rateLimitWithPrismaLastRefillEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) field() builder.Field { +func (p rateLimitWithPrismaLastRefillEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitWithPrismaLastRefillEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) workflowConcurrencyModel() {} -func (p workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) maxRunsField() {} +func (p rateLimitWithPrismaLastRefillEqualsUniqueParam) rateLimitModel() {} +func (p rateLimitWithPrismaLastRefillEqualsUniqueParam) lastRefillField() {} -func (workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaMaxRunsEqualsUniqueParam) equals() {} +func (rateLimitWithPrismaLastRefillEqualsUniqueParam) unique() {} +func (rateLimitWithPrismaLastRefillEqualsUniqueParam) equals() {} -type WorkflowConcurrencyWithPrismaLimitStrategyEqualsSetParam interface { +type RateLimitWithPrismaStepRunLimitsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowConcurrencyModel() - limitStrategyField() + rateLimitModel() + stepRunLimitsField() } -type WorkflowConcurrencyWithPrismaLimitStrategySetParam interface { +type RateLimitWithPrismaStepRunLimitsSetParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - limitStrategyField() + rateLimitModel() + stepRunLimitsField() } -type workflowConcurrencyWithPrismaLimitStrategySetParam struct { +type rateLimitWithPrismaStepRunLimitsSetParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaLimitStrategySetParam) field() builder.Field { +func (p rateLimitWithPrismaStepRunLimitsSetParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaLimitStrategySetParam) getQuery() builder.Query { +func (p rateLimitWithPrismaStepRunLimitsSetParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaLimitStrategySetParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaStepRunLimitsSetParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaLimitStrategySetParam) limitStrategyField() {} +func (p rateLimitWithPrismaStepRunLimitsSetParam) stepRunLimitsField() {} -type WorkflowConcurrencyWithPrismaLimitStrategyWhereParam interface { +type RateLimitWithPrismaStepRunLimitsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowConcurrencyModel() - limitStrategyField() + rateLimitModel() + stepRunLimitsField() } -type workflowConcurrencyWithPrismaLimitStrategyEqualsParam struct { +type rateLimitWithPrismaStepRunLimitsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaLimitStrategyEqualsParam) field() builder.Field { +func (p rateLimitWithPrismaStepRunLimitsEqualsParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaLimitStrategyEqualsParam) getQuery() builder.Query { +func (p rateLimitWithPrismaStepRunLimitsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaLimitStrategyEqualsParam) workflowConcurrencyModel() {} +func (p rateLimitWithPrismaStepRunLimitsEqualsParam) rateLimitModel() {} -func (p workflowConcurrencyWithPrismaLimitStrategyEqualsParam) limitStrategyField() {} +func (p rateLimitWithPrismaStepRunLimitsEqualsParam) stepRunLimitsField() {} -func (workflowConcurrencyWithPrismaLimitStrategySetParam) settable() {} -func (workflowConcurrencyWithPrismaLimitStrategyEqualsParam) equals() {} +func (rateLimitWithPrismaStepRunLimitsSetParam) settable() {} +func (rateLimitWithPrismaStepRunLimitsEqualsParam) equals() {} -type workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam struct { +type rateLimitWithPrismaStepRunLimitsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) field() builder.Field { +func (p rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) getQuery() builder.Query { +func (p rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) workflowConcurrencyModel() {} -func (p workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) limitStrategyField() {} +func (p rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) rateLimitModel() {} +func (p rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) stepRunLimitsField() {} -func (workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) unique() {} -func (workflowConcurrencyWithPrismaLimitStrategyEqualsUniqueParam) equals() {} +func (rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) unique() {} +func (rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) equals() {} -type workflowTriggersActions struct { +type workflowRunStickyStateActions struct { // client holds the prisma client client *PrismaClient } -var workflowTriggersOutput = []builder.Output{ +var workflowRunStickyStateOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "workflowVersionId"}, {Name: "tenantId"}, + {Name: "workflowRunId"}, + {Name: "desiredWorkerId"}, + {Name: "strategy"}, } -type WorkflowTriggersRelationWith interface { +type WorkflowRunStickyStateRelationWith interface { getQuery() builder.Query with() - workflowTriggersRelation() + workflowRunStickyStateRelation() } -type WorkflowTriggersWhereParam interface { +type WorkflowRunStickyStateWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() } -type workflowTriggersDefaultParam struct { +type workflowRunStickyStateDefaultParam struct { data builder.Field query builder.Query } -func (p workflowTriggersDefaultParam) field() builder.Field { +func (p workflowRunStickyStateDefaultParam) field() builder.Field { return p.data } -func (p workflowTriggersDefaultParam) getQuery() builder.Query { +func (p workflowRunStickyStateDefaultParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersDefaultParam) workflowTriggersModel() {} +func (p workflowRunStickyStateDefaultParam) workflowRunStickyStateModel() {} -type WorkflowTriggersOrderByParam interface { +type WorkflowRunStickyStateOrderByParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() } -type workflowTriggersOrderByParam struct { +type workflowRunStickyStateOrderByParam struct { data builder.Field query builder.Query } -func (p workflowTriggersOrderByParam) field() builder.Field { +func (p workflowRunStickyStateOrderByParam) field() builder.Field { return p.data } -func (p workflowTriggersOrderByParam) getQuery() builder.Query { +func (p workflowRunStickyStateOrderByParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersOrderByParam) workflowTriggersModel() {} +func (p workflowRunStickyStateOrderByParam) workflowRunStickyStateModel() {} -type WorkflowTriggersCursorParam interface { +type WorkflowRunStickyStateCursorParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() isCursor() } -type workflowTriggersCursorParam struct { +type workflowRunStickyStateCursorParam struct { data builder.Field query builder.Query } -func (p workflowTriggersCursorParam) field() builder.Field { +func (p workflowRunStickyStateCursorParam) field() builder.Field { return p.data } -func (p workflowTriggersCursorParam) isCursor() {} +func (p workflowRunStickyStateCursorParam) isCursor() {} -func (p workflowTriggersCursorParam) getQuery() builder.Query { +func (p workflowRunStickyStateCursorParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersCursorParam) workflowTriggersModel() {} +func (p workflowRunStickyStateCursorParam) workflowRunStickyStateModel() {} -type WorkflowTriggersParamUnique interface { +type WorkflowRunStickyStateParamUnique interface { field() builder.Field getQuery() builder.Query unique() - workflowTriggersModel() + workflowRunStickyStateModel() } -type workflowTriggersParamUnique struct { +type workflowRunStickyStateParamUnique struct { data builder.Field query builder.Query } -func (p workflowTriggersParamUnique) workflowTriggersModel() {} +func (p workflowRunStickyStateParamUnique) workflowRunStickyStateModel() {} -func (workflowTriggersParamUnique) unique() {} +func (workflowRunStickyStateParamUnique) unique() {} -func (p workflowTriggersParamUnique) field() builder.Field { +func (p workflowRunStickyStateParamUnique) field() builder.Field { return p.data } -func (p workflowTriggersParamUnique) getQuery() builder.Query { +func (p workflowRunStickyStateParamUnique) getQuery() builder.Query { return p.query } -type WorkflowTriggersEqualsWhereParam interface { +type WorkflowRunStickyStateEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() + workflowRunStickyStateModel() } -type workflowTriggersEqualsParam struct { +type workflowRunStickyStateEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersEqualsParam) workflowTriggersModel() {} +func (p workflowRunStickyStateEqualsParam) workflowRunStickyStateModel() {} -func (workflowTriggersEqualsParam) equals() {} +func (workflowRunStickyStateEqualsParam) equals() {} -func (p workflowTriggersEqualsParam) field() builder.Field { +func (p workflowRunStickyStateEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowTriggersEqualsUniqueWhereParam interface { +type WorkflowRunStickyStateEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - workflowTriggersModel() + workflowRunStickyStateModel() } -type workflowTriggersEqualsUniqueParam struct { +type workflowRunStickyStateEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersEqualsUniqueParam) workflowTriggersModel() {} +func (p workflowRunStickyStateEqualsUniqueParam) workflowRunStickyStateModel() {} -func (workflowTriggersEqualsUniqueParam) unique() {} -func (workflowTriggersEqualsUniqueParam) equals() {} +func (workflowRunStickyStateEqualsUniqueParam) unique() {} +func (workflowRunStickyStateEqualsUniqueParam) equals() {} -func (p workflowTriggersEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkflowTriggersSetParam interface { +type WorkflowRunStickyStateSetParam interface { field() builder.Field settable() - workflowTriggersModel() + workflowRunStickyStateModel() } -type workflowTriggersSetParam struct { +type workflowRunStickyStateSetParam struct { data builder.Field } -func (workflowTriggersSetParam) settable() {} +func (workflowRunStickyStateSetParam) settable() {} -func (p workflowTriggersSetParam) field() builder.Field { +func (p workflowRunStickyStateSetParam) field() builder.Field { return p.data } -func (p workflowTriggersSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateSetParam) workflowRunStickyStateModel() {} -type WorkflowTriggersWithPrismaIDEqualsSetParam interface { +type WorkflowRunStickyStateWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() + workflowRunStickyStateModel() idField() } -type WorkflowTriggersWithPrismaIDSetParam interface { +type WorkflowRunStickyStateWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() idField() } -type workflowTriggersWithPrismaIDSetParam struct { +type workflowRunStickyStateWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaIDSetParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaIDSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaIDSetParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaIDSetParam) idField() {} +func (p workflowRunStickyStateWithPrismaIDSetParam) idField() {} -type WorkflowTriggersWithPrismaIDWhereParam interface { +type WorkflowRunStickyStateWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() idField() } -type workflowTriggersWithPrismaIDEqualsParam struct { +type workflowRunStickyStateWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaIDEqualsParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaIDEqualsParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaIDEqualsParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaIDEqualsParam) idField() {} +func (p workflowRunStickyStateWithPrismaIDEqualsParam) idField() {} -func (workflowTriggersWithPrismaIDSetParam) settable() {} -func (workflowTriggersWithPrismaIDEqualsParam) equals() {} +func (workflowRunStickyStateWithPrismaIDSetParam) settable() {} +func (workflowRunStickyStateWithPrismaIDEqualsParam) equals() {} -type workflowTriggersWithPrismaIDEqualsUniqueParam struct { +type workflowRunStickyStateWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaIDEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaIDEqualsUniqueParam) idField() {} +func (p workflowRunStickyStateWithPrismaIDEqualsUniqueParam) workflowRunStickyStateModel() {} +func (p workflowRunStickyStateWithPrismaIDEqualsUniqueParam) idField() {} -func (workflowTriggersWithPrismaIDEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaIDEqualsUniqueParam) equals() {} +func (workflowRunStickyStateWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowRunStickyStateWithPrismaIDEqualsUniqueParam) equals() {} -type WorkflowTriggersWithPrismaCreatedAtEqualsSetParam interface { +type WorkflowRunStickyStateWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() + workflowRunStickyStateModel() createdAtField() } -type WorkflowTriggersWithPrismaCreatedAtSetParam interface { +type WorkflowRunStickyStateWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() createdAtField() } -type workflowTriggersWithPrismaCreatedAtSetParam struct { +type workflowRunStickyStateWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaCreatedAtSetParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaCreatedAtSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaCreatedAtSetParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaCreatedAtSetParam) createdAtField() {} +func (p workflowRunStickyStateWithPrismaCreatedAtSetParam) createdAtField() {} -type WorkflowTriggersWithPrismaCreatedAtWhereParam interface { +type WorkflowRunStickyStateWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() createdAtField() } -type workflowTriggersWithPrismaCreatedAtEqualsParam struct { +type workflowRunStickyStateWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaCreatedAtEqualsParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaCreatedAtEqualsParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p workflowRunStickyStateWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (workflowTriggersWithPrismaCreatedAtSetParam) settable() {} -func (workflowTriggersWithPrismaCreatedAtEqualsParam) equals() {} +func (workflowRunStickyStateWithPrismaCreatedAtSetParam) settable() {} +func (workflowRunStickyStateWithPrismaCreatedAtEqualsParam) equals() {} -type workflowTriggersWithPrismaCreatedAtEqualsUniqueParam struct { +type workflowRunStickyStateWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p workflowRunStickyStateWithPrismaCreatedAtEqualsUniqueParam) workflowRunStickyStateModel() {} +func (p workflowRunStickyStateWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (workflowRunStickyStateWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowRunStickyStateWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WorkflowTriggersWithPrismaUpdatedAtEqualsSetParam interface { +type WorkflowRunStickyStateWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() + workflowRunStickyStateModel() updatedAtField() } -type WorkflowTriggersWithPrismaUpdatedAtSetParam interface { +type WorkflowRunStickyStateWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() updatedAtField() } -type workflowTriggersWithPrismaUpdatedAtSetParam struct { +type workflowRunStickyStateWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaUpdatedAtSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaUpdatedAtSetParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p workflowRunStickyStateWithPrismaUpdatedAtSetParam) updatedAtField() {} -type WorkflowTriggersWithPrismaUpdatedAtWhereParam interface { +type WorkflowRunStickyStateWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() + workflowRunStickyStateModel() updatedAtField() } -type workflowTriggersWithPrismaUpdatedAtEqualsParam struct { +type workflowRunStickyStateWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaUpdatedAtEqualsParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaUpdatedAtEqualsParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p workflowRunStickyStateWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (workflowTriggersWithPrismaUpdatedAtSetParam) settable() {} -func (workflowTriggersWithPrismaUpdatedAtEqualsParam) equals() {} +func (workflowRunStickyStateWithPrismaUpdatedAtSetParam) settable() {} +func (workflowRunStickyStateWithPrismaUpdatedAtEqualsParam) equals() {} -type workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam struct { +type workflowRunStickyStateWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p workflowRunStickyStateWithPrismaUpdatedAtEqualsUniqueParam) workflowRunStickyStateModel() {} +func (p workflowRunStickyStateWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (workflowRunStickyStateWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowRunStickyStateWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type WorkflowTriggersWithPrismaDeletedAtEqualsSetParam interface { +type WorkflowRunStickyStateWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() - deletedAtField() + workflowRunStickyStateModel() + tenantIDField() } -type WorkflowTriggersWithPrismaDeletedAtSetParam interface { +type WorkflowRunStickyStateWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - deletedAtField() + workflowRunStickyStateModel() + tenantIDField() } -type workflowTriggersWithPrismaDeletedAtSetParam struct { +type workflowRunStickyStateWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaDeletedAtSetParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaDeletedAtSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaTenantIDSetParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p workflowRunStickyStateWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkflowTriggersWithPrismaDeletedAtWhereParam interface { +type WorkflowRunStickyStateWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - deletedAtField() + workflowRunStickyStateModel() + tenantIDField() } -type workflowTriggersWithPrismaDeletedAtEqualsParam struct { +type workflowRunStickyStateWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaDeletedAtEqualsParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaTenantIDEqualsParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p workflowRunStickyStateWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workflowTriggersWithPrismaDeletedAtSetParam) settable() {} -func (workflowTriggersWithPrismaDeletedAtEqualsParam) equals() {} +func (workflowRunStickyStateWithPrismaTenantIDSetParam) settable() {} +func (workflowRunStickyStateWithPrismaTenantIDEqualsParam) equals() {} -type workflowTriggersWithPrismaDeletedAtEqualsUniqueParam struct { +type workflowRunStickyStateWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p workflowRunStickyStateWithPrismaTenantIDEqualsUniqueParam) workflowRunStickyStateModel() {} +func (p workflowRunStickyStateWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (workflowRunStickyStateWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (workflowRunStickyStateWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WorkflowTriggersWithPrismaWorkflowEqualsSetParam interface { +type WorkflowRunStickyStateWithPrismaWorkflowRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() - workflowField() + workflowRunStickyStateModel() + workflowRunField() } -type WorkflowTriggersWithPrismaWorkflowSetParam interface { +type WorkflowRunStickyStateWithPrismaWorkflowRunSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - workflowField() + workflowRunStickyStateModel() + workflowRunField() } -type workflowTriggersWithPrismaWorkflowSetParam struct { +type workflowRunStickyStateWithPrismaWorkflowRunSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaWorkflowSetParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaWorkflowRunSetParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaWorkflowSetParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaWorkflowRunSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaWorkflowSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunSetParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaWorkflowSetParam) workflowField() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunSetParam) workflowRunField() {} -type WorkflowTriggersWithPrismaWorkflowWhereParam interface { +type WorkflowRunStickyStateWithPrismaWorkflowRunWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - workflowField() + workflowRunStickyStateModel() + workflowRunField() } -type workflowTriggersWithPrismaWorkflowEqualsParam struct { +type workflowRunStickyStateWithPrismaWorkflowRunEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaWorkflowEqualsParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaWorkflowRunEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaWorkflowEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaWorkflowRunEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaWorkflowEqualsParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunEqualsParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaWorkflowEqualsParam) workflowField() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunEqualsParam) workflowRunField() {} -func (workflowTriggersWithPrismaWorkflowSetParam) settable() {} -func (workflowTriggersWithPrismaWorkflowEqualsParam) equals() {} +func (workflowRunStickyStateWithPrismaWorkflowRunSetParam) settable() {} +func (workflowRunStickyStateWithPrismaWorkflowRunEqualsParam) equals() {} -type workflowTriggersWithPrismaWorkflowEqualsUniqueParam struct { +type workflowRunStickyStateWithPrismaWorkflowRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaWorkflowRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaWorkflowRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaWorkflowEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaWorkflowEqualsUniqueParam) workflowField() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunEqualsUniqueParam) workflowRunStickyStateModel() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunEqualsUniqueParam) workflowRunField() {} -func (workflowTriggersWithPrismaWorkflowEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaWorkflowEqualsUniqueParam) equals() {} +func (workflowRunStickyStateWithPrismaWorkflowRunEqualsUniqueParam) unique() {} +func (workflowRunStickyStateWithPrismaWorkflowRunEqualsUniqueParam) equals() {} -type WorkflowTriggersWithPrismaWorkflowVersionIDEqualsSetParam interface { +type WorkflowRunStickyStateWithPrismaWorkflowRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() - workflowVersionIDField() -} - -type WorkflowTriggersWithPrismaWorkflowVersionIDSetParam interface { - field() builder.Field - getQuery() builder.Query - workflowTriggersModel() - workflowVersionIDField() -} - -type workflowTriggersWithPrismaWorkflowVersionIDSetParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggersWithPrismaWorkflowVersionIDSetParam) field() builder.Field { - return p.data -} - -func (p workflowTriggersWithPrismaWorkflowVersionIDSetParam) getQuery() builder.Query { - return p.query + workflowRunStickyStateModel() + workflowRunIDField() } -func (p workflowTriggersWithPrismaWorkflowVersionIDSetParam) workflowTriggersModel() {} - -func (p workflowTriggersWithPrismaWorkflowVersionIDSetParam) workflowVersionIDField() {} - -type WorkflowTriggersWithPrismaWorkflowVersionIDWhereParam interface { +type WorkflowRunStickyStateWithPrismaWorkflowRunIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - workflowVersionIDField() -} - -type workflowTriggersWithPrismaWorkflowVersionIDEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) field() builder.Field { - return p.data -} - -func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) getQuery() builder.Query { - return p.query + workflowRunStickyStateModel() + workflowRunIDField() } -func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) workflowTriggersModel() {} - -func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) workflowVersionIDField() {} - -func (workflowTriggersWithPrismaWorkflowVersionIDSetParam) settable() {} -func (workflowTriggersWithPrismaWorkflowVersionIDEqualsParam) equals() {} - -type workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam struct { +type workflowRunStickyStateWithPrismaWorkflowRunIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaWorkflowRunIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaWorkflowRunIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowVersionIDField() {} - -func (workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaWorkflowVersionIDEqualsUniqueParam) equals() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunIDSetParam) workflowRunStickyStateModel() {} -type WorkflowTriggersWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workflowTriggersModel() - tenantField() -} +func (p workflowRunStickyStateWithPrismaWorkflowRunIDSetParam) workflowRunIDField() {} -type WorkflowTriggersWithPrismaTenantSetParam interface { +type WorkflowRunStickyStateWithPrismaWorkflowRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - tenantField() + workflowRunStickyStateModel() + workflowRunIDField() } -type workflowTriggersWithPrismaTenantSetParam struct { +type workflowRunStickyStateWithPrismaWorkflowRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaTenantSetParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaWorkflowRunIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaTenantSetParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaWorkflowRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaTenantSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunIDEqualsParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaTenantSetParam) tenantField() {} +func (p workflowRunStickyStateWithPrismaWorkflowRunIDEqualsParam) workflowRunIDField() {} -type WorkflowTriggersWithPrismaTenantWhereParam interface { - field() builder.Field - getQuery() builder.Query - workflowTriggersModel() - tenantField() -} +func (workflowRunStickyStateWithPrismaWorkflowRunIDSetParam) settable() {} +func (workflowRunStickyStateWithPrismaWorkflowRunIDEqualsParam) equals() {} -type workflowTriggersWithPrismaTenantEqualsParam struct { +type workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaTenantEqualsParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaTenantEqualsParam) workflowTriggersModel() {} - -func (p workflowTriggersWithPrismaTenantEqualsParam) tenantField() {} - -func (workflowTriggersWithPrismaTenantSetParam) settable() {} -func (workflowTriggersWithPrismaTenantEqualsParam) equals() {} - -type workflowTriggersWithPrismaTenantEqualsUniqueParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggersWithPrismaTenantEqualsUniqueParam) field() builder.Field { - return p.data -} - -func (p workflowTriggersWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (p workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam) workflowRunStickyStateModel() { } +func (p workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam) workflowRunIDField() {} -func (p workflowTriggersWithPrismaTenantEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaTenantEqualsUniqueParam) tenantField() {} - -func (workflowTriggersWithPrismaTenantEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaTenantEqualsUniqueParam) equals() {} +func (workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam) unique() {} +func (workflowRunStickyStateWithPrismaWorkflowRunIDEqualsUniqueParam) equals() {} -type WorkflowTriggersWithPrismaTenantIDEqualsSetParam interface { +type WorkflowRunStickyStateWithPrismaDesiredWorkerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() - tenantIDField() -} - -type WorkflowTriggersWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - workflowTriggersModel() - tenantIDField() -} - -type workflowTriggersWithPrismaTenantIDSetParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggersWithPrismaTenantIDSetParam) field() builder.Field { - return p.data + workflowRunStickyStateModel() + desiredWorkerIDField() } -func (p workflowTriggersWithPrismaTenantIDSetParam) getQuery() builder.Query { - return p.query -} - -func (p workflowTriggersWithPrismaTenantIDSetParam) workflowTriggersModel() {} - -func (p workflowTriggersWithPrismaTenantIDSetParam) tenantIDField() {} - -type WorkflowTriggersWithPrismaTenantIDWhereParam interface { +type WorkflowRunStickyStateWithPrismaDesiredWorkerIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - tenantIDField() -} - -type workflowTriggersWithPrismaTenantIDEqualsParam struct { - data builder.Field - query builder.Query + workflowRunStickyStateModel() + desiredWorkerIDField() } -func (p workflowTriggersWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data -} - -func (p workflowTriggersWithPrismaTenantIDEqualsParam) getQuery() builder.Query { - return p.query -} - -func (p workflowTriggersWithPrismaTenantIDEqualsParam) workflowTriggersModel() {} - -func (p workflowTriggersWithPrismaTenantIDEqualsParam) tenantIDField() {} - -func (workflowTriggersWithPrismaTenantIDSetParam) settable() {} -func (workflowTriggersWithPrismaTenantIDEqualsParam) equals() {} - -type workflowTriggersWithPrismaTenantIDEqualsUniqueParam struct { +type workflowRunStickyStateWithPrismaDesiredWorkerIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaTenantIDEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} - -func (workflowTriggersWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDSetParam) workflowRunStickyStateModel() {} -type WorkflowTriggersWithPrismaEventsEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workflowTriggersModel() - eventsField() -} +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDSetParam) desiredWorkerIDField() {} -type WorkflowTriggersWithPrismaEventsSetParam interface { +type WorkflowRunStickyStateWithPrismaDesiredWorkerIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - eventsField() + workflowRunStickyStateModel() + desiredWorkerIDField() } -type workflowTriggersWithPrismaEventsSetParam struct { +type workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaEventsSetParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaEventsSetParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaEventsSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaEventsSetParam) eventsField() {} +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam) desiredWorkerIDField() {} -type WorkflowTriggersWithPrismaEventsWhereParam interface { - field() builder.Field - getQuery() builder.Query - workflowTriggersModel() - eventsField() -} +func (workflowRunStickyStateWithPrismaDesiredWorkerIDSetParam) settable() {} +func (workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsParam) equals() {} -type workflowTriggersWithPrismaEventsEqualsParam struct { +type workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaEventsEqualsParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaEventsEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaEventsEqualsParam) workflowTriggersModel() {} - -func (p workflowTriggersWithPrismaEventsEqualsParam) eventsField() {} - -func (workflowTriggersWithPrismaEventsSetParam) settable() {} -func (workflowTriggersWithPrismaEventsEqualsParam) equals() {} - -type workflowTriggersWithPrismaEventsEqualsUniqueParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggersWithPrismaEventsEqualsUniqueParam) field() builder.Field { - return p.data -} - -func (p workflowTriggersWithPrismaEventsEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsUniqueParam) workflowRunStickyStateModel() { } +func (p workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsUniqueParam) desiredWorkerIDField() {} -func (p workflowTriggersWithPrismaEventsEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaEventsEqualsUniqueParam) eventsField() {} - -func (workflowTriggersWithPrismaEventsEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaEventsEqualsUniqueParam) equals() {} +func (workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsUniqueParam) unique() {} +func (workflowRunStickyStateWithPrismaDesiredWorkerIDEqualsUniqueParam) equals() {} -type WorkflowTriggersWithPrismaCronsEqualsSetParam interface { +type WorkflowRunStickyStateWithPrismaStrategyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggersModel() - cronsField() + workflowRunStickyStateModel() + strategyField() } -type WorkflowTriggersWithPrismaCronsSetParam interface { +type WorkflowRunStickyStateWithPrismaStrategySetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - cronsField() + workflowRunStickyStateModel() + strategyField() } -type workflowTriggersWithPrismaCronsSetParam struct { +type workflowRunStickyStateWithPrismaStrategySetParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaCronsSetParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaStrategySetParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaCronsSetParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaStrategySetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaCronsSetParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaStrategySetParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaCronsSetParam) cronsField() {} +func (p workflowRunStickyStateWithPrismaStrategySetParam) strategyField() {} -type WorkflowTriggersWithPrismaCronsWhereParam interface { +type WorkflowRunStickyStateWithPrismaStrategyWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggersModel() - cronsField() + workflowRunStickyStateModel() + strategyField() } -type workflowTriggersWithPrismaCronsEqualsParam struct { +type workflowRunStickyStateWithPrismaStrategyEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaCronsEqualsParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaStrategyEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaCronsEqualsParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaStrategyEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaCronsEqualsParam) workflowTriggersModel() {} +func (p workflowRunStickyStateWithPrismaStrategyEqualsParam) workflowRunStickyStateModel() {} -func (p workflowTriggersWithPrismaCronsEqualsParam) cronsField() {} +func (p workflowRunStickyStateWithPrismaStrategyEqualsParam) strategyField() {} -func (workflowTriggersWithPrismaCronsSetParam) settable() {} -func (workflowTriggersWithPrismaCronsEqualsParam) equals() {} +func (workflowRunStickyStateWithPrismaStrategySetParam) settable() {} +func (workflowRunStickyStateWithPrismaStrategyEqualsParam) equals() {} -type workflowTriggersWithPrismaCronsEqualsUniqueParam struct { +type workflowRunStickyStateWithPrismaStrategyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggersWithPrismaCronsEqualsUniqueParam) field() builder.Field { +func (p workflowRunStickyStateWithPrismaStrategyEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggersWithPrismaCronsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunStickyStateWithPrismaStrategyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggersWithPrismaCronsEqualsUniqueParam) workflowTriggersModel() {} -func (p workflowTriggersWithPrismaCronsEqualsUniqueParam) cronsField() {} +func (p workflowRunStickyStateWithPrismaStrategyEqualsUniqueParam) workflowRunStickyStateModel() {} +func (p workflowRunStickyStateWithPrismaStrategyEqualsUniqueParam) strategyField() {} -func (workflowTriggersWithPrismaCronsEqualsUniqueParam) unique() {} -func (workflowTriggersWithPrismaCronsEqualsUniqueParam) equals() {} +func (workflowRunStickyStateWithPrismaStrategyEqualsUniqueParam) unique() {} +func (workflowRunStickyStateWithPrismaStrategyEqualsUniqueParam) equals() {} -type workflowTriggerEventRefActions struct { +type workflowRunActions struct { // client holds the prisma client client *PrismaClient } -var workflowTriggerEventRefOutput = []builder.Output{ +var workflowRunOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "displayName"}, + {Name: "tenantId"}, + {Name: "workflowVersionId"}, + {Name: "concurrencyGroupId"}, + {Name: "status"}, + {Name: "error"}, + {Name: "startedAt"}, + {Name: "finishedAt"}, + {Name: "duration"}, {Name: "parentId"}, - {Name: "eventKey"}, + {Name: "parentStepRunId"}, + {Name: "childIndex"}, + {Name: "childKey"}, + {Name: "additionalMetadata"}, } -type WorkflowTriggerEventRefRelationWith interface { +type WorkflowRunRelationWith interface { getQuery() builder.Query with() - workflowTriggerEventRefRelation() + workflowRunRelation() } -type WorkflowTriggerEventRefWhereParam interface { +type WorkflowRunWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() + workflowRunModel() } -type workflowTriggerEventRefDefaultParam struct { +type workflowRunDefaultParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefDefaultParam) field() builder.Field { +func (p workflowRunDefaultParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefDefaultParam) getQuery() builder.Query { +func (p workflowRunDefaultParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefDefaultParam) workflowTriggerEventRefModel() {} +func (p workflowRunDefaultParam) workflowRunModel() {} -type WorkflowTriggerEventRefOrderByParam interface { +type WorkflowRunOrderByParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() + workflowRunModel() } -type workflowTriggerEventRefOrderByParam struct { +type workflowRunOrderByParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefOrderByParam) field() builder.Field { +func (p workflowRunOrderByParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefOrderByParam) getQuery() builder.Query { +func (p workflowRunOrderByParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefOrderByParam) workflowTriggerEventRefModel() {} +func (p workflowRunOrderByParam) workflowRunModel() {} -type WorkflowTriggerEventRefCursorParam interface { +type WorkflowRunCursorParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() + workflowRunModel() isCursor() } -type workflowTriggerEventRefCursorParam struct { +type workflowRunCursorParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefCursorParam) field() builder.Field { +func (p workflowRunCursorParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefCursorParam) isCursor() {} +func (p workflowRunCursorParam) isCursor() {} -func (p workflowTriggerEventRefCursorParam) getQuery() builder.Query { +func (p workflowRunCursorParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefCursorParam) workflowTriggerEventRefModel() {} +func (p workflowRunCursorParam) workflowRunModel() {} -type WorkflowTriggerEventRefParamUnique interface { +type WorkflowRunParamUnique interface { field() builder.Field getQuery() builder.Query unique() - workflowTriggerEventRefModel() + workflowRunModel() } -type workflowTriggerEventRefParamUnique struct { +type workflowRunParamUnique struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefParamUnique) workflowTriggerEventRefModel() {} +func (p workflowRunParamUnique) workflowRunModel() {} -func (workflowTriggerEventRefParamUnique) unique() {} +func (workflowRunParamUnique) unique() {} -func (p workflowTriggerEventRefParamUnique) field() builder.Field { +func (p workflowRunParamUnique) field() builder.Field { return p.data } -func (p workflowTriggerEventRefParamUnique) getQuery() builder.Query { +func (p workflowRunParamUnique) getQuery() builder.Query { return p.query } -type WorkflowTriggerEventRefEqualsWhereParam interface { +type WorkflowRunEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerEventRefModel() + workflowRunModel() } -type workflowTriggerEventRefEqualsParam struct { +type workflowRunEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefEqualsParam) workflowTriggerEventRefModel() {} +func (p workflowRunEqualsParam) workflowRunModel() {} -func (workflowTriggerEventRefEqualsParam) equals() {} +func (workflowRunEqualsParam) equals() {} -func (p workflowTriggerEventRefEqualsParam) field() builder.Field { +func (p workflowRunEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefEqualsParam) getQuery() builder.Query { +func (p workflowRunEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowTriggerEventRefEqualsUniqueWhereParam interface { +type WorkflowRunEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - workflowTriggerEventRefModel() + workflowRunModel() } -type workflowTriggerEventRefEqualsUniqueParam struct { +type workflowRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefEqualsUniqueParam) workflowTriggerEventRefModel() {} +func (p workflowRunEqualsUniqueParam) workflowRunModel() {} -func (workflowTriggerEventRefEqualsUniqueParam) unique() {} -func (workflowTriggerEventRefEqualsUniqueParam) equals() {} +func (workflowRunEqualsUniqueParam) unique() {} +func (workflowRunEqualsUniqueParam) equals() {} -func (p workflowTriggerEventRefEqualsUniqueParam) field() builder.Field { +func (p workflowRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkflowTriggerEventRefSetParam interface { +type WorkflowRunSetParam interface { field() builder.Field settable() - workflowTriggerEventRefModel() + workflowRunModel() } -type workflowTriggerEventRefSetParam struct { +type workflowRunSetParam struct { data builder.Field } -func (workflowTriggerEventRefSetParam) settable() {} +func (workflowRunSetParam) settable() {} -func (p workflowTriggerEventRefSetParam) field() builder.Field { +func (p workflowRunSetParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefSetParam) workflowTriggerEventRefModel() {} +func (p workflowRunSetParam) workflowRunModel() {} -type WorkflowTriggerEventRefWithPrismaParentEqualsSetParam interface { +type WorkflowRunWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerEventRefModel() - parentField() + workflowRunModel() + idField() } -type WorkflowTriggerEventRefWithPrismaParentSetParam interface { +type WorkflowRunWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() - parentField() + workflowRunModel() + idField() } -type workflowTriggerEventRefWithPrismaParentSetParam struct { +type workflowRunWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaParentSetParam) field() builder.Field { +func (p workflowRunWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaParentSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaParentSetParam) workflowTriggerEventRefModel() {} +func (p workflowRunWithPrismaIDSetParam) workflowRunModel() {} -func (p workflowTriggerEventRefWithPrismaParentSetParam) parentField() {} +func (p workflowRunWithPrismaIDSetParam) idField() {} -type WorkflowTriggerEventRefWithPrismaParentWhereParam interface { +type WorkflowRunWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() - parentField() + workflowRunModel() + idField() } -type workflowTriggerEventRefWithPrismaParentEqualsParam struct { +type workflowRunWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaParentEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaParentEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaParentEqualsParam) workflowTriggerEventRefModel() {} +func (p workflowRunWithPrismaIDEqualsParam) workflowRunModel() {} -func (p workflowTriggerEventRefWithPrismaParentEqualsParam) parentField() {} +func (p workflowRunWithPrismaIDEqualsParam) idField() {} -func (workflowTriggerEventRefWithPrismaParentSetParam) settable() {} -func (workflowTriggerEventRefWithPrismaParentEqualsParam) equals() {} +func (workflowRunWithPrismaIDSetParam) settable() {} +func (workflowRunWithPrismaIDEqualsParam) equals() {} -type workflowTriggerEventRefWithPrismaParentEqualsUniqueParam struct { +type workflowRunWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) workflowTriggerEventRefModel() {} -func (p workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) parentField() {} +func (p workflowRunWithPrismaIDEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaIDEqualsUniqueParam) idField() {} -func (workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) unique() {} -func (workflowTriggerEventRefWithPrismaParentEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaIDEqualsUniqueParam) equals() {} -type WorkflowTriggerEventRefWithPrismaParentIDEqualsSetParam interface { +type WorkflowRunWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerEventRefModel() - parentIDField() + workflowRunModel() + createdAtField() } -type WorkflowTriggerEventRefWithPrismaParentIDSetParam interface { +type WorkflowRunWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() - parentIDField() + workflowRunModel() + createdAtField() } -type workflowTriggerEventRefWithPrismaParentIDSetParam struct { +type workflowRunWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaParentIDSetParam) field() builder.Field { +func (p workflowRunWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaParentIDSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaParentIDSetParam) workflowTriggerEventRefModel() {} +func (p workflowRunWithPrismaCreatedAtSetParam) workflowRunModel() {} -func (p workflowTriggerEventRefWithPrismaParentIDSetParam) parentIDField() {} +func (p workflowRunWithPrismaCreatedAtSetParam) createdAtField() {} -type WorkflowTriggerEventRefWithPrismaParentIDWhereParam interface { +type WorkflowRunWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() - parentIDField() + workflowRunModel() + createdAtField() } -type workflowTriggerEventRefWithPrismaParentIDEqualsParam struct { +type workflowRunWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaParentIDEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaParentIDEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaParentIDEqualsParam) workflowTriggerEventRefModel() {} +func (p workflowRunWithPrismaCreatedAtEqualsParam) workflowRunModel() {} -func (p workflowTriggerEventRefWithPrismaParentIDEqualsParam) parentIDField() {} +func (p workflowRunWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (workflowTriggerEventRefWithPrismaParentIDSetParam) settable() {} -func (workflowTriggerEventRefWithPrismaParentIDEqualsParam) equals() {} +func (workflowRunWithPrismaCreatedAtSetParam) settable() {} +func (workflowRunWithPrismaCreatedAtEqualsParam) equals() {} -type workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam struct { +type workflowRunWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) workflowTriggerEventRefModel() {} -func (p workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) parentIDField() {} +func (p workflowRunWithPrismaCreatedAtEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) unique() {} -func (workflowTriggerEventRefWithPrismaParentIDEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WorkflowTriggerEventRefWithPrismaEventKeyEqualsSetParam interface { +type WorkflowRunWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerEventRefModel() - eventKeyField() + workflowRunModel() + updatedAtField() } -type WorkflowTriggerEventRefWithPrismaEventKeySetParam interface { +type WorkflowRunWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() - eventKeyField() + workflowRunModel() + updatedAtField() } -type workflowTriggerEventRefWithPrismaEventKeySetParam struct { +type workflowRunWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaEventKeySetParam) field() builder.Field { +func (p workflowRunWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaEventKeySetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaEventKeySetParam) workflowTriggerEventRefModel() {} +func (p workflowRunWithPrismaUpdatedAtSetParam) workflowRunModel() {} -func (p workflowTriggerEventRefWithPrismaEventKeySetParam) eventKeyField() {} +func (p workflowRunWithPrismaUpdatedAtSetParam) updatedAtField() {} -type WorkflowTriggerEventRefWithPrismaEventKeyWhereParam interface { +type WorkflowRunWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerEventRefModel() - eventKeyField() + workflowRunModel() + updatedAtField() } -type workflowTriggerEventRefWithPrismaEventKeyEqualsParam struct { +type workflowRunWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaEventKeyEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaEventKeyEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaEventKeyEqualsParam) workflowTriggerEventRefModel() {} +func (p workflowRunWithPrismaUpdatedAtEqualsParam) workflowRunModel() {} -func (p workflowTriggerEventRefWithPrismaEventKeyEqualsParam) eventKeyField() {} +func (p workflowRunWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (workflowTriggerEventRefWithPrismaEventKeySetParam) settable() {} -func (workflowTriggerEventRefWithPrismaEventKeyEqualsParam) equals() {} +func (workflowRunWithPrismaUpdatedAtSetParam) settable() {} +func (workflowRunWithPrismaUpdatedAtEqualsParam) equals() {} -type workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam struct { +type workflowRunWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) workflowTriggerEventRefModel() {} -func (p workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) eventKeyField() {} - -func (workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) unique() {} -func (workflowTriggerEventRefWithPrismaEventKeyEqualsUniqueParam) equals() {} - -type workflowTriggerCronRefActions struct { - // client holds the prisma client - client *PrismaClient -} - -var workflowTriggerCronRefOutput = []builder.Output{ - {Name: "parentId"}, - {Name: "cron"}, - {Name: "enabled"}, - {Name: "tickerId"}, - {Name: "input"}, -} +func (p workflowRunWithPrismaUpdatedAtEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -type WorkflowTriggerCronRefRelationWith interface { - getQuery() builder.Query - with() - workflowTriggerCronRefRelation() -} +func (workflowRunWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWhereParam interface { +type WorkflowRunWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() -} - -type workflowTriggerCronRefDefaultParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggerCronRefDefaultParam) field() builder.Field { - return p.data -} - -func (p workflowTriggerCronRefDefaultParam) getQuery() builder.Query { - return p.query + equals() + workflowRunModel() + deletedAtField() } -func (p workflowTriggerCronRefDefaultParam) workflowTriggerCronRefModel() {} - -type WorkflowTriggerCronRefOrderByParam interface { +type WorkflowRunWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() + workflowRunModel() + deletedAtField() } -type workflowTriggerCronRefOrderByParam struct { +type workflowRunWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefOrderByParam) field() builder.Field { +func (p workflowRunWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefOrderByParam) getQuery() builder.Query { +func (p workflowRunWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefOrderByParam) workflowTriggerCronRefModel() {} - -type WorkflowTriggerCronRefCursorParam interface { - field() builder.Field - getQuery() builder.Query - workflowTriggerCronRefModel() - isCursor() -} - -type workflowTriggerCronRefCursorParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggerCronRefCursorParam) field() builder.Field { - return p.data -} - -func (p workflowTriggerCronRefCursorParam) isCursor() {} - -func (p workflowTriggerCronRefCursorParam) getQuery() builder.Query { - return p.query -} +func (p workflowRunWithPrismaDeletedAtSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefCursorParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaDeletedAtSetParam) deletedAtField() {} -type WorkflowTriggerCronRefParamUnique interface { +type WorkflowRunWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - unique() - workflowTriggerCronRefModel() + workflowRunModel() + deletedAtField() } -type workflowTriggerCronRefParamUnique struct { +type workflowRunWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefParamUnique) workflowTriggerCronRefModel() {} - -func (workflowTriggerCronRefParamUnique) unique() {} - -func (p workflowTriggerCronRefParamUnique) field() builder.Field { +func (p workflowRunWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefParamUnique) getQuery() builder.Query { +func (p workflowRunWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowTriggerCronRefEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workflowTriggerCronRefModel() -} - -type workflowTriggerCronRefEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggerCronRefEqualsParam) workflowTriggerCronRefModel() {} - -func (workflowTriggerCronRefEqualsParam) equals() {} - -func (p workflowTriggerCronRefEqualsParam) field() builder.Field { - return p.data -} +func (p workflowRunWithPrismaDeletedAtEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefEqualsParam) getQuery() builder.Query { - return p.query -} +func (p workflowRunWithPrismaDeletedAtEqualsParam) deletedAtField() {} -type WorkflowTriggerCronRefEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - workflowTriggerCronRefModel() -} +func (workflowRunWithPrismaDeletedAtSetParam) settable() {} +func (workflowRunWithPrismaDeletedAtEqualsParam) equals() {} -type workflowTriggerCronRefEqualsUniqueParam struct { +type workflowRunWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefEqualsUniqueParam) workflowTriggerCronRefModel() {} - -func (workflowTriggerCronRefEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefEqualsUniqueParam) equals() {} - -func (p workflowTriggerCronRefEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkflowTriggerCronRefSetParam interface { - field() builder.Field - settable() - workflowTriggerCronRefModel() -} - -type workflowTriggerCronRefSetParam struct { - data builder.Field -} - -func (workflowTriggerCronRefSetParam) settable() {} - -func (p workflowTriggerCronRefSetParam) field() builder.Field { - return p.data -} +func (p workflowRunWithPrismaDeletedAtEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (p workflowTriggerCronRefSetParam) workflowTriggerCronRefModel() {} +func (workflowRunWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWithPrismaParentEqualsSetParam interface { +type WorkflowRunWithPrismaDisplayNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerCronRefModel() - parentField() + workflowRunModel() + displayNameField() } -type WorkflowTriggerCronRefWithPrismaParentSetParam interface { +type WorkflowRunWithPrismaDisplayNameSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - parentField() + workflowRunModel() + displayNameField() } -type workflowTriggerCronRefWithPrismaParentSetParam struct { +type workflowRunWithPrismaDisplayNameSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaParentSetParam) field() builder.Field { +func (p workflowRunWithPrismaDisplayNameSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaParentSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaDisplayNameSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaParentSetParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaDisplayNameSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaParentSetParam) parentField() {} +func (p workflowRunWithPrismaDisplayNameSetParam) displayNameField() {} -type WorkflowTriggerCronRefWithPrismaParentWhereParam interface { +type WorkflowRunWithPrismaDisplayNameWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - parentField() + workflowRunModel() + displayNameField() } -type workflowTriggerCronRefWithPrismaParentEqualsParam struct { +type workflowRunWithPrismaDisplayNameEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaParentEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaDisplayNameEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaParentEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaDisplayNameEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaParentEqualsParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaDisplayNameEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaParentEqualsParam) parentField() {} +func (p workflowRunWithPrismaDisplayNameEqualsParam) displayNameField() {} -func (workflowTriggerCronRefWithPrismaParentSetParam) settable() {} -func (workflowTriggerCronRefWithPrismaParentEqualsParam) equals() {} +func (workflowRunWithPrismaDisplayNameSetParam) settable() {} +func (workflowRunWithPrismaDisplayNameEqualsParam) equals() {} -type workflowTriggerCronRefWithPrismaParentEqualsUniqueParam struct { +type workflowRunWithPrismaDisplayNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaDisplayNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaDisplayNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) workflowTriggerCronRefModel() {} -func (p workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) parentField() {} +func (p workflowRunWithPrismaDisplayNameEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaDisplayNameEqualsUniqueParam) displayNameField() {} -func (workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefWithPrismaParentEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaDisplayNameEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaDisplayNameEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWithPrismaParentIDEqualsSetParam interface { +type WorkflowRunWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerCronRefModel() - parentIDField() + workflowRunModel() + tenantField() } -type WorkflowTriggerCronRefWithPrismaParentIDSetParam interface { +type WorkflowRunWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - parentIDField() + workflowRunModel() + tenantField() } -type workflowTriggerCronRefWithPrismaParentIDSetParam struct { +type workflowRunWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaParentIDSetParam) field() builder.Field { +func (p workflowRunWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaParentIDSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaParentIDSetParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaTenantSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaParentIDSetParam) parentIDField() {} +func (p workflowRunWithPrismaTenantSetParam) tenantField() {} -type WorkflowTriggerCronRefWithPrismaParentIDWhereParam interface { +type WorkflowRunWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - parentIDField() + workflowRunModel() + tenantField() } -type workflowTriggerCronRefWithPrismaParentIDEqualsParam struct { +type workflowRunWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaParentIDEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaParentIDEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaParentIDEqualsParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaTenantEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaParentIDEqualsParam) parentIDField() {} +func (p workflowRunWithPrismaTenantEqualsParam) tenantField() {} -func (workflowTriggerCronRefWithPrismaParentIDSetParam) settable() {} -func (workflowTriggerCronRefWithPrismaParentIDEqualsParam) equals() {} +func (workflowRunWithPrismaTenantSetParam) settable() {} +func (workflowRunWithPrismaTenantEqualsParam) equals() {} -type workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam struct { +type workflowRunWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) workflowTriggerCronRefModel() {} -func (p workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) parentIDField() {} +func (p workflowRunWithPrismaTenantEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefWithPrismaParentIDEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaTenantEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaTenantEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWithPrismaCronEqualsSetParam interface { +type WorkflowRunWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerCronRefModel() - cronField() + workflowRunModel() + tenantIDField() } -type WorkflowTriggerCronRefWithPrismaCronSetParam interface { +type WorkflowRunWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - cronField() + workflowRunModel() + tenantIDField() } -type workflowTriggerCronRefWithPrismaCronSetParam struct { +type workflowRunWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaCronSetParam) field() builder.Field { +func (p workflowRunWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaCronSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaCronSetParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaTenantIDSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaCronSetParam) cronField() {} +func (p workflowRunWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkflowTriggerCronRefWithPrismaCronWhereParam interface { +type WorkflowRunWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - cronField() + workflowRunModel() + tenantIDField() } -type workflowTriggerCronRefWithPrismaCronEqualsParam struct { +type workflowRunWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaCronEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaCronEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaCronEqualsParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaTenantIDEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaCronEqualsParam) cronField() {} +func (p workflowRunWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workflowTriggerCronRefWithPrismaCronSetParam) settable() {} -func (workflowTriggerCronRefWithPrismaCronEqualsParam) equals() {} +func (workflowRunWithPrismaTenantIDSetParam) settable() {} +func (workflowRunWithPrismaTenantIDEqualsParam) equals() {} -type workflowTriggerCronRefWithPrismaCronEqualsUniqueParam struct { +type workflowRunWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) workflowTriggerCronRefModel() {} -func (p workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) cronField() {} +func (p workflowRunWithPrismaTenantIDEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefWithPrismaCronEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWithPrismaEnabledEqualsSetParam interface { +type WorkflowRunWithPrismaWorkflowVersionEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerCronRefModel() - enabledField() + workflowRunModel() + workflowVersionField() } -type WorkflowTriggerCronRefWithPrismaEnabledSetParam interface { +type WorkflowRunWithPrismaWorkflowVersionSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - enabledField() + workflowRunModel() + workflowVersionField() } -type workflowTriggerCronRefWithPrismaEnabledSetParam struct { +type workflowRunWithPrismaWorkflowVersionSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaEnabledSetParam) field() builder.Field { +func (p workflowRunWithPrismaWorkflowVersionSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaEnabledSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaWorkflowVersionSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaEnabledSetParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaWorkflowVersionSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaEnabledSetParam) enabledField() {} +func (p workflowRunWithPrismaWorkflowVersionSetParam) workflowVersionField() {} -type WorkflowTriggerCronRefWithPrismaEnabledWhereParam interface { +type WorkflowRunWithPrismaWorkflowVersionWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - enabledField() + workflowRunModel() + workflowVersionField() } -type workflowTriggerCronRefWithPrismaEnabledEqualsParam struct { +type workflowRunWithPrismaWorkflowVersionEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaEnabledEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaWorkflowVersionEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaEnabledEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaWorkflowVersionEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaEnabledEqualsParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaWorkflowVersionEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaEnabledEqualsParam) enabledField() {} +func (p workflowRunWithPrismaWorkflowVersionEqualsParam) workflowVersionField() {} -func (workflowTriggerCronRefWithPrismaEnabledSetParam) settable() {} -func (workflowTriggerCronRefWithPrismaEnabledEqualsParam) equals() {} +func (workflowRunWithPrismaWorkflowVersionSetParam) settable() {} +func (workflowRunWithPrismaWorkflowVersionEqualsParam) equals() {} -type workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam struct { +type workflowRunWithPrismaWorkflowVersionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) workflowTriggerCronRefModel() {} -func (p workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) enabledField() {} +func (p workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) workflowVersionField() {} -func (workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefWithPrismaEnabledEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWithPrismaTickerEqualsSetParam interface { +type WorkflowRunWithPrismaWorkflowVersionIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerCronRefModel() - tickerField() + workflowRunModel() + workflowVersionIDField() } -type WorkflowTriggerCronRefWithPrismaTickerSetParam interface { +type WorkflowRunWithPrismaWorkflowVersionIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - tickerField() + workflowRunModel() + workflowVersionIDField() } -type workflowTriggerCronRefWithPrismaTickerSetParam struct { +type workflowRunWithPrismaWorkflowVersionIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTickerSetParam) field() builder.Field { +func (p workflowRunWithPrismaWorkflowVersionIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTickerSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaWorkflowVersionIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTickerSetParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaWorkflowVersionIDSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaTickerSetParam) tickerField() {} +func (p workflowRunWithPrismaWorkflowVersionIDSetParam) workflowVersionIDField() {} -type WorkflowTriggerCronRefWithPrismaTickerWhereParam interface { +type WorkflowRunWithPrismaWorkflowVersionIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - tickerField() + workflowRunModel() + workflowVersionIDField() } -type workflowTriggerCronRefWithPrismaTickerEqualsParam struct { +type workflowRunWithPrismaWorkflowVersionIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTickerEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaWorkflowVersionIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTickerEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaWorkflowVersionIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTickerEqualsParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaWorkflowVersionIDEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaTickerEqualsParam) tickerField() {} +func (p workflowRunWithPrismaWorkflowVersionIDEqualsParam) workflowVersionIDField() {} -func (workflowTriggerCronRefWithPrismaTickerSetParam) settable() {} -func (workflowTriggerCronRefWithPrismaTickerEqualsParam) equals() {} +func (workflowRunWithPrismaWorkflowVersionIDSetParam) settable() {} +func (workflowRunWithPrismaWorkflowVersionIDEqualsParam) equals() {} -type workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam struct { +type workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) workflowTriggerCronRefModel() {} -func (p workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) tickerField() {} +func (p workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowVersionIDField() {} -func (workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefWithPrismaTickerEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWithPrismaTickerIDEqualsSetParam interface { +type WorkflowRunWithPrismaConcurrencyGroupIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerCronRefModel() - tickerIDField() + workflowRunModel() + concurrencyGroupIDField() } -type WorkflowTriggerCronRefWithPrismaTickerIDSetParam interface { +type WorkflowRunWithPrismaConcurrencyGroupIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - tickerIDField() + workflowRunModel() + concurrencyGroupIDField() } -type workflowTriggerCronRefWithPrismaTickerIDSetParam struct { +type workflowRunWithPrismaConcurrencyGroupIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTickerIDSetParam) field() builder.Field { +func (p workflowRunWithPrismaConcurrencyGroupIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTickerIDSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaConcurrencyGroupIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTickerIDSetParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaConcurrencyGroupIDSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaTickerIDSetParam) tickerIDField() {} +func (p workflowRunWithPrismaConcurrencyGroupIDSetParam) concurrencyGroupIDField() {} -type WorkflowTriggerCronRefWithPrismaTickerIDWhereParam interface { +type WorkflowRunWithPrismaConcurrencyGroupIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - tickerIDField() + workflowRunModel() + concurrencyGroupIDField() } -type workflowTriggerCronRefWithPrismaTickerIDEqualsParam struct { +type workflowRunWithPrismaConcurrencyGroupIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTickerIDEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaConcurrencyGroupIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTickerIDEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaConcurrencyGroupIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTickerIDEqualsParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaConcurrencyGroupIDEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaTickerIDEqualsParam) tickerIDField() {} +func (p workflowRunWithPrismaConcurrencyGroupIDEqualsParam) concurrencyGroupIDField() {} -func (workflowTriggerCronRefWithPrismaTickerIDSetParam) settable() {} -func (workflowTriggerCronRefWithPrismaTickerIDEqualsParam) equals() {} +func (workflowRunWithPrismaConcurrencyGroupIDSetParam) settable() {} +func (workflowRunWithPrismaConcurrencyGroupIDEqualsParam) equals() {} -type workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam struct { +type workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) workflowTriggerCronRefModel() {} -func (p workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} +func (p workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) concurrencyGroupIDField() {} -func (workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefWithPrismaTickerIDEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWithPrismaTriggeredEqualsSetParam interface { +type WorkflowRunWithPrismaGetGroupKeyRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerCronRefModel() - triggeredField() + workflowRunModel() + getGroupKeyRunField() } -type WorkflowTriggerCronRefWithPrismaTriggeredSetParam interface { +type WorkflowRunWithPrismaGetGroupKeyRunSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - triggeredField() + workflowRunModel() + getGroupKeyRunField() } -type workflowTriggerCronRefWithPrismaTriggeredSetParam struct { +type workflowRunWithPrismaGetGroupKeyRunSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTriggeredSetParam) field() builder.Field { +func (p workflowRunWithPrismaGetGroupKeyRunSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTriggeredSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaGetGroupKeyRunSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTriggeredSetParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaGetGroupKeyRunSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaTriggeredSetParam) triggeredField() {} +func (p workflowRunWithPrismaGetGroupKeyRunSetParam) getGroupKeyRunField() {} -type WorkflowTriggerCronRefWithPrismaTriggeredWhereParam interface { +type WorkflowRunWithPrismaGetGroupKeyRunWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - triggeredField() + workflowRunModel() + getGroupKeyRunField() } -type workflowTriggerCronRefWithPrismaTriggeredEqualsParam struct { +type workflowRunWithPrismaGetGroupKeyRunEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTriggeredEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaGetGroupKeyRunEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTriggeredEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaGetGroupKeyRunEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTriggeredEqualsParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaGetGroupKeyRunEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaTriggeredEqualsParam) triggeredField() {} +func (p workflowRunWithPrismaGetGroupKeyRunEqualsParam) getGroupKeyRunField() {} -func (workflowTriggerCronRefWithPrismaTriggeredSetParam) settable() {} -func (workflowTriggerCronRefWithPrismaTriggeredEqualsParam) equals() {} +func (workflowRunWithPrismaGetGroupKeyRunSetParam) settable() {} +func (workflowRunWithPrismaGetGroupKeyRunEqualsParam) equals() {} -type workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam struct { +type workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) workflowTriggerCronRefModel() {} -func (p workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) triggeredField() {} +func (p workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) getGroupKeyRunField() {} -func (workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefWithPrismaTriggeredEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) equals() {} -type WorkflowTriggerCronRefWithPrismaInputEqualsSetParam interface { +type WorkflowRunWithPrismaStatusEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerCronRefModel() - inputField() + workflowRunModel() + statusField() } -type WorkflowTriggerCronRefWithPrismaInputSetParam interface { +type WorkflowRunWithPrismaStatusSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - inputField() + workflowRunModel() + statusField() } -type workflowTriggerCronRefWithPrismaInputSetParam struct { +type workflowRunWithPrismaStatusSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaInputSetParam) field() builder.Field { +func (p workflowRunWithPrismaStatusSetParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaInputSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStatusSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaInputSetParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaStatusSetParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaInputSetParam) inputField() {} +func (p workflowRunWithPrismaStatusSetParam) statusField() {} -type WorkflowTriggerCronRefWithPrismaInputWhereParam interface { +type WorkflowRunWithPrismaStatusWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerCronRefModel() - inputField() + workflowRunModel() + statusField() } -type workflowTriggerCronRefWithPrismaInputEqualsParam struct { +type workflowRunWithPrismaStatusEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaInputEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaStatusEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaInputEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStatusEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaInputEqualsParam) workflowTriggerCronRefModel() {} +func (p workflowRunWithPrismaStatusEqualsParam) workflowRunModel() {} -func (p workflowTriggerCronRefWithPrismaInputEqualsParam) inputField() {} +func (p workflowRunWithPrismaStatusEqualsParam) statusField() {} -func (workflowTriggerCronRefWithPrismaInputSetParam) settable() {} -func (workflowTriggerCronRefWithPrismaInputEqualsParam) equals() {} +func (workflowRunWithPrismaStatusSetParam) settable() {} +func (workflowRunWithPrismaStatusEqualsParam) equals() {} -type workflowTriggerCronRefWithPrismaInputEqualsUniqueParam struct { +type workflowRunWithPrismaStatusEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaStatusEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) workflowTriggerCronRefModel() {} -func (p workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) inputField() {} - -func (workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) unique() {} -func (workflowTriggerCronRefWithPrismaInputEqualsUniqueParam) equals() {} - -type workflowTriggerScheduledRefActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p workflowRunWithPrismaStatusEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaStatusEqualsUniqueParam) statusField() {} -var workflowTriggerScheduledRefOutput = []builder.Output{ - {Name: "id"}, - {Name: "parentId"}, - {Name: "triggerAt"}, - {Name: "tickerId"}, - {Name: "input"}, - {Name: "parentWorkflowRunId"}, - {Name: "parentStepRunId"}, - {Name: "childIndex"}, - {Name: "childKey"}, -} +func (workflowRunWithPrismaStatusEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaStatusEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefRelationWith interface { +type WorkflowRunWithPrismaJobRunsEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - workflowTriggerScheduledRefRelation() + equals() + workflowRunModel() + jobRunsField() } -type WorkflowTriggerScheduledRefWhereParam interface { +type WorkflowRunWithPrismaJobRunsSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() + jobRunsField() } -type workflowTriggerScheduledRefDefaultParam struct { +type workflowRunWithPrismaJobRunsSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefDefaultParam) field() builder.Field { +func (p workflowRunWithPrismaJobRunsSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefDefaultParam) getQuery() builder.Query { +func (p workflowRunWithPrismaJobRunsSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefDefaultParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaJobRunsSetParam) workflowRunModel() {} -type WorkflowTriggerScheduledRefOrderByParam interface { +func (p workflowRunWithPrismaJobRunsSetParam) jobRunsField() {} + +type WorkflowRunWithPrismaJobRunsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() + jobRunsField() } -type workflowTriggerScheduledRefOrderByParam struct { +type workflowRunWithPrismaJobRunsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefOrderByParam) field() builder.Field { +func (p workflowRunWithPrismaJobRunsEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefOrderByParam) getQuery() builder.Query { +func (p workflowRunWithPrismaJobRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefOrderByParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaJobRunsEqualsParam) workflowRunModel() {} -type WorkflowTriggerScheduledRefCursorParam interface { - field() builder.Field - getQuery() builder.Query - workflowTriggerScheduledRefModel() - isCursor() -} +func (p workflowRunWithPrismaJobRunsEqualsParam) jobRunsField() {} -type workflowTriggerScheduledRefCursorParam struct { +func (workflowRunWithPrismaJobRunsSetParam) settable() {} +func (workflowRunWithPrismaJobRunsEqualsParam) equals() {} + +type workflowRunWithPrismaJobRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefCursorParam) field() builder.Field { +func (p workflowRunWithPrismaJobRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefCursorParam) isCursor() {} - -func (p workflowTriggerScheduledRefCursorParam) getQuery() builder.Query { +func (p workflowRunWithPrismaJobRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaJobRunsEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaJobRunsEqualsUniqueParam) jobRunsField() {} -type WorkflowTriggerScheduledRefParamUnique interface { +func (workflowRunWithPrismaJobRunsEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaJobRunsEqualsUniqueParam) equals() {} + +type WorkflowRunWithPrismaTriggeredByEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - workflowTriggerScheduledRefModel() -} - -type workflowTriggerScheduledRefParamUnique struct { - data builder.Field - query builder.Query -} - -func (p workflowTriggerScheduledRefParamUnique) workflowTriggerScheduledRefModel() {} - -func (workflowTriggerScheduledRefParamUnique) unique() {} - -func (p workflowTriggerScheduledRefParamUnique) field() builder.Field { - return p.data -} - -func (p workflowTriggerScheduledRefParamUnique) getQuery() builder.Query { - return p.query + equals() + workflowRunModel() + triggeredByField() } -type WorkflowTriggerScheduledRefEqualsWhereParam interface { +type WorkflowRunWithPrismaTriggeredBySetParam interface { field() builder.Field getQuery() builder.Query - equals() - workflowTriggerScheduledRefModel() + workflowRunModel() + triggeredByField() } -type workflowTriggerScheduledRefEqualsParam struct { +type workflowRunWithPrismaTriggeredBySetParam struct { data builder.Field query builder.Query -} - -func (p workflowTriggerScheduledRefEqualsParam) workflowTriggerScheduledRefModel() {} - -func (workflowTriggerScheduledRefEqualsParam) equals() {} +} -func (p workflowTriggerScheduledRefEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaTriggeredBySetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaTriggeredBySetParam) getQuery() builder.Query { return p.query } -type WorkflowTriggerScheduledRefEqualsUniqueWhereParam interface { +func (p workflowRunWithPrismaTriggeredBySetParam) workflowRunModel() {} + +func (p workflowRunWithPrismaTriggeredBySetParam) triggeredByField() {} + +type WorkflowRunWithPrismaTriggeredByWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - unique() - workflowTriggerScheduledRefModel() + workflowRunModel() + triggeredByField() } -type workflowTriggerScheduledRefEqualsUniqueParam struct { +type workflowRunWithPrismaTriggeredByEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefEqualsUniqueParam) workflowTriggerScheduledRefModel() {} - -func (workflowTriggerScheduledRefEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefEqualsUniqueParam) equals() {} - -func (p workflowTriggerScheduledRefEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaTriggeredByEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaTriggeredByEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowTriggerScheduledRefSetParam interface { - field() builder.Field - settable() - workflowTriggerScheduledRefModel() -} +func (p workflowRunWithPrismaTriggeredByEqualsParam) workflowRunModel() {} -type workflowTriggerScheduledRefSetParam struct { - data builder.Field -} +func (p workflowRunWithPrismaTriggeredByEqualsParam) triggeredByField() {} -func (workflowTriggerScheduledRefSetParam) settable() {} +func (workflowRunWithPrismaTriggeredBySetParam) settable() {} +func (workflowRunWithPrismaTriggeredByEqualsParam) equals() {} -func (p workflowTriggerScheduledRefSetParam) field() builder.Field { +type workflowRunWithPrismaTriggeredByEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p workflowRunWithPrismaTriggeredByEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaTriggeredByEqualsUniqueParam) getQuery() builder.Query { + return p.query +} -type WorkflowTriggerScheduledRefWithPrismaIDEqualsSetParam interface { +func (p workflowRunWithPrismaTriggeredByEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaTriggeredByEqualsUniqueParam) triggeredByField() {} + +func (workflowRunWithPrismaTriggeredByEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaTriggeredByEqualsUniqueParam) equals() {} + +type WorkflowRunWithPrismaStickyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - idField() + workflowRunModel() + stickyField() } -type WorkflowTriggerScheduledRefWithPrismaIDSetParam interface { +type WorkflowRunWithPrismaStickySetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - idField() + workflowRunModel() + stickyField() } -type workflowTriggerScheduledRefWithPrismaIDSetParam struct { +type workflowRunWithPrismaStickySetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaIDSetParam) field() builder.Field { +func (p workflowRunWithPrismaStickySetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStickySetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaIDSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaStickySetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaIDSetParam) idField() {} +func (p workflowRunWithPrismaStickySetParam) stickyField() {} -type WorkflowTriggerScheduledRefWithPrismaIDWhereParam interface { +type WorkflowRunWithPrismaStickyWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - idField() + workflowRunModel() + stickyField() } -type workflowTriggerScheduledRefWithPrismaIDEqualsParam struct { +type workflowRunWithPrismaStickyEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaIDEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaStickyEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStickyEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaIDEqualsParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaStickyEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaIDEqualsParam) idField() {} +func (p workflowRunWithPrismaStickyEqualsParam) stickyField() {} -func (workflowTriggerScheduledRefWithPrismaIDSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaIDEqualsParam) equals() {} +func (workflowRunWithPrismaStickySetParam) settable() {} +func (workflowRunWithPrismaStickyEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam struct { +type workflowRunWithPrismaStickyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaStickyEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStickyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) idField() {} +func (p workflowRunWithPrismaStickyEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaStickyEqualsUniqueParam) stickyField() {} -func (workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaIDEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaStickyEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaStickyEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaParentEqualsSetParam interface { +type WorkflowRunWithPrismaErrorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - parentField() + workflowRunModel() + errorField() } -type WorkflowTriggerScheduledRefWithPrismaParentSetParam interface { +type WorkflowRunWithPrismaErrorSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - parentField() + workflowRunModel() + errorField() } -type workflowTriggerScheduledRefWithPrismaParentSetParam struct { +type workflowRunWithPrismaErrorSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentSetParam) field() builder.Field { +func (p workflowRunWithPrismaErrorSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaErrorSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaErrorSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentSetParam) parentField() {} +func (p workflowRunWithPrismaErrorSetParam) errorField() {} -type WorkflowTriggerScheduledRefWithPrismaParentWhereParam interface { +type WorkflowRunWithPrismaErrorWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - parentField() + workflowRunModel() + errorField() } -type workflowTriggerScheduledRefWithPrismaParentEqualsParam struct { +type workflowRunWithPrismaErrorEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaErrorEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaErrorEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentEqualsParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaErrorEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentEqualsParam) parentField() {} +func (p workflowRunWithPrismaErrorEqualsParam) errorField() {} -func (workflowTriggerScheduledRefWithPrismaParentSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaParentEqualsParam) equals() {} +func (workflowRunWithPrismaErrorSetParam) settable() {} +func (workflowRunWithPrismaErrorEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam struct { +type workflowRunWithPrismaErrorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaErrorEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaErrorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) parentField() {} +func (p workflowRunWithPrismaErrorEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaErrorEqualsUniqueParam) errorField() {} -func (workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaParentEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaErrorEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaErrorEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaParentIDEqualsSetParam interface { +type WorkflowRunWithPrismaStartedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - parentIDField() + workflowRunModel() + startedAtField() } -type WorkflowTriggerScheduledRefWithPrismaParentIDSetParam interface { +type WorkflowRunWithPrismaStartedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - parentIDField() + workflowRunModel() + startedAtField() } -type workflowTriggerScheduledRefWithPrismaParentIDSetParam struct { +type workflowRunWithPrismaStartedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentIDSetParam) field() builder.Field { +func (p workflowRunWithPrismaStartedAtSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentIDSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStartedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentIDSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaStartedAtSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentIDSetParam) parentIDField() {} +func (p workflowRunWithPrismaStartedAtSetParam) startedAtField() {} -type WorkflowTriggerScheduledRefWithPrismaParentIDWhereParam interface { +type WorkflowRunWithPrismaStartedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - parentIDField() + workflowRunModel() + startedAtField() } -type workflowTriggerScheduledRefWithPrismaParentIDEqualsParam struct { +type workflowRunWithPrismaStartedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaStartedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStartedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaStartedAtEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) parentIDField() {} +func (p workflowRunWithPrismaStartedAtEqualsParam) startedAtField() {} -func (workflowTriggerScheduledRefWithPrismaParentIDSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaParentIDEqualsParam) equals() {} +func (workflowRunWithPrismaStartedAtSetParam) settable() {} +func (workflowRunWithPrismaStartedAtEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam struct { +type workflowRunWithPrismaStartedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) parentIDField() {} +func (p workflowRunWithPrismaStartedAtEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} -func (workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaParentIDEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaStartedAtEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaStartedAtEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaTriggerAtEqualsSetParam interface { +type WorkflowRunWithPrismaFinishedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - triggerAtField() + workflowRunModel() + finishedAtField() } -type WorkflowTriggerScheduledRefWithPrismaTriggerAtSetParam interface { +type WorkflowRunWithPrismaFinishedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - triggerAtField() + workflowRunModel() + finishedAtField() } -type workflowTriggerScheduledRefWithPrismaTriggerAtSetParam struct { +type workflowRunWithPrismaFinishedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) field() builder.Field { +func (p workflowRunWithPrismaFinishedAtSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaFinishedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaFinishedAtSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) triggerAtField() {} +func (p workflowRunWithPrismaFinishedAtSetParam) finishedAtField() {} -type WorkflowTriggerScheduledRefWithPrismaTriggerAtWhereParam interface { +type WorkflowRunWithPrismaFinishedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - triggerAtField() + workflowRunModel() + finishedAtField() } -type workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam struct { +type workflowRunWithPrismaFinishedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaFinishedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaFinishedAtEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) triggerAtField() {} +func (p workflowRunWithPrismaFinishedAtEqualsParam) finishedAtField() {} -func (workflowTriggerScheduledRefWithPrismaTriggerAtSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaTriggerAtEqualsParam) equals() {} +func (workflowRunWithPrismaFinishedAtSetParam) settable() {} +func (workflowRunWithPrismaFinishedAtEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam struct { +type workflowRunWithPrismaFinishedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) triggerAtField() {} +func (p workflowRunWithPrismaFinishedAtEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} -func (workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaTriggerAtEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaFinishedAtEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaFinishedAtEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaTickerEqualsSetParam interface { +type WorkflowRunWithPrismaDurationEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - tickerField() + workflowRunModel() + durationField() } -type WorkflowTriggerScheduledRefWithPrismaTickerSetParam interface { +type WorkflowRunWithPrismaDurationSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - tickerField() + workflowRunModel() + durationField() } -type workflowTriggerScheduledRefWithPrismaTickerSetParam struct { +type workflowRunWithPrismaDurationSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTickerSetParam) field() builder.Field { +func (p workflowRunWithPrismaDurationSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTickerSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaDurationSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTickerSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaDurationSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaTickerSetParam) tickerField() {} +func (p workflowRunWithPrismaDurationSetParam) durationField() {} -type WorkflowTriggerScheduledRefWithPrismaTickerWhereParam interface { +type WorkflowRunWithPrismaDurationWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - tickerField() + workflowRunModel() + durationField() } -type workflowTriggerScheduledRefWithPrismaTickerEqualsParam struct { +type workflowRunWithPrismaDurationEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTickerEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaDurationEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTickerEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaDurationEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTickerEqualsParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaDurationEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaTickerEqualsParam) tickerField() {} +func (p workflowRunWithPrismaDurationEqualsParam) durationField() {} -func (workflowTriggerScheduledRefWithPrismaTickerSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaTickerEqualsParam) equals() {} +func (workflowRunWithPrismaDurationSetParam) settable() {} +func (workflowRunWithPrismaDurationEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam struct { +type workflowRunWithPrismaDurationEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaDurationEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaDurationEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) tickerField() {} +func (p workflowRunWithPrismaDurationEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaDurationEqualsUniqueParam) durationField() {} -func (workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaTickerEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaDurationEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaDurationEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaTickerIDEqualsSetParam interface { +type WorkflowRunWithPrismaChildrenEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - tickerIDField() + workflowRunModel() + childrenField() } -type WorkflowTriggerScheduledRefWithPrismaTickerIDSetParam interface { +type WorkflowRunWithPrismaChildrenSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - tickerIDField() + workflowRunModel() + childrenField() } -type workflowTriggerScheduledRefWithPrismaTickerIDSetParam struct { +type workflowRunWithPrismaChildrenSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTickerIDSetParam) field() builder.Field { +func (p workflowRunWithPrismaChildrenSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTickerIDSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildrenSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTickerIDSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaChildrenSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaTickerIDSetParam) tickerIDField() {} +func (p workflowRunWithPrismaChildrenSetParam) childrenField() {} -type WorkflowTriggerScheduledRefWithPrismaTickerIDWhereParam interface { +type WorkflowRunWithPrismaChildrenWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - tickerIDField() + workflowRunModel() + childrenField() } -type workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam struct { +type workflowRunWithPrismaChildrenEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaChildrenEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildrenEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaChildrenEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) tickerIDField() {} +func (p workflowRunWithPrismaChildrenEqualsParam) childrenField() {} -func (workflowTriggerScheduledRefWithPrismaTickerIDSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaTickerIDEqualsParam) equals() {} +func (workflowRunWithPrismaChildrenSetParam) settable() {} +func (workflowRunWithPrismaChildrenEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam struct { +type workflowRunWithPrismaChildrenEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaChildrenEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildrenEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} +func (p workflowRunWithPrismaChildrenEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaChildrenEqualsUniqueParam) childrenField() {} -func (workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaTickerIDEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaChildrenEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaChildrenEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaInputEqualsSetParam interface { +type WorkflowRunWithPrismaScheduledChildrenEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - inputField() + workflowRunModel() + scheduledChildrenField() } -type WorkflowTriggerScheduledRefWithPrismaInputSetParam interface { +type WorkflowRunWithPrismaScheduledChildrenSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - inputField() + workflowRunModel() + scheduledChildrenField() } -type workflowTriggerScheduledRefWithPrismaInputSetParam struct { +type workflowRunWithPrismaScheduledChildrenSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaInputSetParam) field() builder.Field { +func (p workflowRunWithPrismaScheduledChildrenSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaInputSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaScheduledChildrenSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaInputSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaScheduledChildrenSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaInputSetParam) inputField() {} +func (p workflowRunWithPrismaScheduledChildrenSetParam) scheduledChildrenField() {} -type WorkflowTriggerScheduledRefWithPrismaInputWhereParam interface { +type WorkflowRunWithPrismaScheduledChildrenWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - inputField() + workflowRunModel() + scheduledChildrenField() } -type workflowTriggerScheduledRefWithPrismaInputEqualsParam struct { +type workflowRunWithPrismaScheduledChildrenEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaInputEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaScheduledChildrenEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaInputEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaScheduledChildrenEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaInputEqualsParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaScheduledChildrenEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaInputEqualsParam) inputField() {} +func (p workflowRunWithPrismaScheduledChildrenEqualsParam) scheduledChildrenField() {} -func (workflowTriggerScheduledRefWithPrismaInputSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaInputEqualsParam) equals() {} +func (workflowRunWithPrismaScheduledChildrenSetParam) settable() {} +func (workflowRunWithPrismaScheduledChildrenEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam struct { +type workflowRunWithPrismaScheduledChildrenEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) inputField() {} +func (p workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) scheduledChildrenField() {} -func (workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaInputEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsSetParam interface { +type WorkflowRunWithPrismaParentEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - parentWorkflowRunField() + workflowRunModel() + parentField() } -type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam interface { +type WorkflowRunWithPrismaParentSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - parentWorkflowRunField() + workflowRunModel() + parentField() } -type workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam struct { +type workflowRunWithPrismaParentSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) field() builder.Field { +func (p workflowRunWithPrismaParentSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaParentSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) parentWorkflowRunField() {} +func (p workflowRunWithPrismaParentSetParam) parentField() {} -type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunWhereParam interface { +type WorkflowRunWithPrismaParentWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - parentWorkflowRunField() + workflowRunModel() + parentField() } -type workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam struct { +type workflowRunWithPrismaParentEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaParentEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaParentEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) parentWorkflowRunField() {} +func (p workflowRunWithPrismaParentEqualsParam) parentField() {} -func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsParam) equals() {} +func (workflowRunWithPrismaParentSetParam) settable() {} +func (workflowRunWithPrismaParentEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam struct { +type workflowRunWithPrismaParentEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaParentEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) parentWorkflowRunField() { -} +func (p workflowRunWithPrismaParentEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaParentEqualsUniqueParam) parentField() {} -func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaParentEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaParentEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsSetParam interface { +type WorkflowRunWithPrismaParentIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - parentWorkflowRunIDField() + workflowRunModel() + parentIDField() } -type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam interface { +type WorkflowRunWithPrismaParentIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - parentWorkflowRunIDField() + workflowRunModel() + parentIDField() } -type workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam struct { +type workflowRunWithPrismaParentIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) field() builder.Field { +func (p workflowRunWithPrismaParentIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaParentIDSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) parentWorkflowRunIDField() { -} +func (p workflowRunWithPrismaParentIDSetParam) parentIDField() {} -type WorkflowTriggerScheduledRefWithPrismaParentWorkflowRunIDWhereParam interface { +type WorkflowRunWithPrismaParentIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - parentWorkflowRunIDField() + workflowRunModel() + parentIDField() } -type workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam struct { +type workflowRunWithPrismaParentIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaParentIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaParentIDEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) parentWorkflowRunIDField() { -} +func (p workflowRunWithPrismaParentIDEqualsParam) parentIDField() {} -func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsParam) equals() {} +func (workflowRunWithPrismaParentIDSetParam) settable() {} +func (workflowRunWithPrismaParentIDEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam struct { +type workflowRunWithPrismaParentIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaParentIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) parentWorkflowRunIDField() { -} +func (p workflowRunWithPrismaParentIDEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaParentIDEqualsUniqueParam) parentIDField() {} -func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaParentWorkflowRunIDEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaParentIDEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaParentIDEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaParentStepRunEqualsSetParam interface { +type WorkflowRunWithPrismaParentStepRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() + workflowRunModel() parentStepRunField() } -type WorkflowTriggerScheduledRefWithPrismaParentStepRunSetParam interface { +type WorkflowRunWithPrismaParentStepRunSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() parentStepRunField() } -type workflowTriggerScheduledRefWithPrismaParentStepRunSetParam struct { +type workflowRunWithPrismaParentStepRunSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) field() builder.Field { +func (p workflowRunWithPrismaParentStepRunSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentStepRunSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaParentStepRunSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) parentStepRunField() {} +func (p workflowRunWithPrismaParentStepRunSetParam) parentStepRunField() {} -type WorkflowTriggerScheduledRefWithPrismaParentStepRunWhereParam interface { +type WorkflowRunWithPrismaParentStepRunWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() parentStepRunField() } -type workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam struct { +type workflowRunWithPrismaParentStepRunEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaParentStepRunEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentStepRunEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaParentStepRunEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) parentStepRunField() {} +func (p workflowRunWithPrismaParentStepRunEqualsParam) parentStepRunField() {} -func (workflowTriggerScheduledRefWithPrismaParentStepRunSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaParentStepRunEqualsParam) equals() {} +func (workflowRunWithPrismaParentStepRunSetParam) settable() {} +func (workflowRunWithPrismaParentStepRunEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam struct { +type workflowRunWithPrismaParentStepRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaParentStepRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentStepRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) parentStepRunField() {} +func (p workflowRunWithPrismaParentStepRunEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaParentStepRunEqualsUniqueParam) parentStepRunField() {} -func (workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaParentStepRunEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaParentStepRunEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaParentStepRunEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsSetParam interface { +type WorkflowRunWithPrismaParentStepRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() + workflowRunModel() parentStepRunIDField() } -type WorkflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam interface { +type WorkflowRunWithPrismaParentStepRunIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() parentStepRunIDField() } -type workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam struct { +type workflowRunWithPrismaParentStepRunIDSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) field() builder.Field { +func (p workflowRunWithPrismaParentStepRunIDSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentStepRunIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaParentStepRunIDSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) parentStepRunIDField() {} +func (p workflowRunWithPrismaParentStepRunIDSetParam) parentStepRunIDField() {} -type WorkflowTriggerScheduledRefWithPrismaParentStepRunIDWhereParam interface { +type WorkflowRunWithPrismaParentStepRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() parentStepRunIDField() } -type workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam struct { +type workflowRunWithPrismaParentStepRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaParentStepRunIDEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentStepRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaParentStepRunIDEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) parentStepRunIDField() {} +func (p workflowRunWithPrismaParentStepRunIDEqualsParam) parentStepRunIDField() {} -func (workflowTriggerScheduledRefWithPrismaParentStepRunIDSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsParam) equals() {} +func (workflowRunWithPrismaParentStepRunIDSetParam) settable() {} +func (workflowRunWithPrismaParentStepRunIDEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam struct { +type workflowRunWithPrismaParentStepRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) parentStepRunIDField() { -} +func (p workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) parentStepRunIDField() {} -func (workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaParentStepRunIDEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaChildIndexEqualsSetParam interface { +type WorkflowRunWithPrismaChildIndexEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() + workflowRunModel() childIndexField() } -type WorkflowTriggerScheduledRefWithPrismaChildIndexSetParam interface { +type WorkflowRunWithPrismaChildIndexSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() childIndexField() } -type workflowTriggerScheduledRefWithPrismaChildIndexSetParam struct { +type workflowRunWithPrismaChildIndexSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaChildIndexSetParam) field() builder.Field { +func (p workflowRunWithPrismaChildIndexSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaChildIndexSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildIndexSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaChildIndexSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaChildIndexSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaChildIndexSetParam) childIndexField() {} +func (p workflowRunWithPrismaChildIndexSetParam) childIndexField() {} -type WorkflowTriggerScheduledRefWithPrismaChildIndexWhereParam interface { +type WorkflowRunWithPrismaChildIndexWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() childIndexField() } -type workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam struct { +type workflowRunWithPrismaChildIndexEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaChildIndexEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildIndexEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaChildIndexEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) childIndexField() {} +func (p workflowRunWithPrismaChildIndexEqualsParam) childIndexField() {} -func (workflowTriggerScheduledRefWithPrismaChildIndexSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaChildIndexEqualsParam) equals() {} +func (workflowRunWithPrismaChildIndexSetParam) settable() {} +func (workflowRunWithPrismaChildIndexEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam struct { +type workflowRunWithPrismaChildIndexEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaChildIndexEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildIndexEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) childIndexField() {} +func (p workflowRunWithPrismaChildIndexEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaChildIndexEqualsUniqueParam) childIndexField() {} -func (workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaChildIndexEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaChildIndexEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaChildIndexEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaChildKeyEqualsSetParam interface { +type WorkflowRunWithPrismaChildKeyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() + workflowRunModel() childKeyField() } -type WorkflowTriggerScheduledRefWithPrismaChildKeySetParam interface { +type WorkflowRunWithPrismaChildKeySetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() childKeyField() } -type workflowTriggerScheduledRefWithPrismaChildKeySetParam struct { +type workflowRunWithPrismaChildKeySetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaChildKeySetParam) field() builder.Field { +func (p workflowRunWithPrismaChildKeySetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaChildKeySetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildKeySetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaChildKeySetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaChildKeySetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaChildKeySetParam) childKeyField() {} +func (p workflowRunWithPrismaChildKeySetParam) childKeyField() {} -type WorkflowTriggerScheduledRefWithPrismaChildKeyWhereParam interface { +type WorkflowRunWithPrismaChildKeyWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() + workflowRunModel() childKeyField() } -type workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam struct { +type workflowRunWithPrismaChildKeyEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaChildKeyEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildKeyEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaChildKeyEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) childKeyField() {} +func (p workflowRunWithPrismaChildKeyEqualsParam) childKeyField() {} -func (workflowTriggerScheduledRefWithPrismaChildKeySetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaChildKeyEqualsParam) equals() {} +func (workflowRunWithPrismaChildKeySetParam) settable() {} +func (workflowRunWithPrismaChildKeyEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam struct { +type workflowRunWithPrismaChildKeyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaChildKeyEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaChildKeyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) childKeyField() {} +func (p workflowRunWithPrismaChildKeyEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaChildKeyEqualsUniqueParam) childKeyField() {} -func (workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaChildKeyEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaChildKeyEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaChildKeyEqualsUniqueParam) equals() {} -type WorkflowTriggerScheduledRefWithPrismaTriggeredEqualsSetParam interface { +type WorkflowRunWithPrismaAdditionalMetadataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowTriggerScheduledRefModel() - triggeredField() + workflowRunModel() + additionalMetadataField() } -type WorkflowTriggerScheduledRefWithPrismaTriggeredSetParam interface { +type WorkflowRunWithPrismaAdditionalMetadataSetParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - triggeredField() + workflowRunModel() + additionalMetadataField() } -type workflowTriggerScheduledRefWithPrismaTriggeredSetParam struct { +type workflowRunWithPrismaAdditionalMetadataSetParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTriggeredSetParam) field() builder.Field { +func (p workflowRunWithPrismaAdditionalMetadataSetParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTriggeredSetParam) getQuery() builder.Query { +func (p workflowRunWithPrismaAdditionalMetadataSetParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTriggeredSetParam) workflowTriggerScheduledRefModel() {} +func (p workflowRunWithPrismaAdditionalMetadataSetParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaTriggeredSetParam) triggeredField() {} +func (p workflowRunWithPrismaAdditionalMetadataSetParam) additionalMetadataField() {} -type WorkflowTriggerScheduledRefWithPrismaTriggeredWhereParam interface { +type WorkflowRunWithPrismaAdditionalMetadataWhereParam interface { field() builder.Field getQuery() builder.Query - workflowTriggerScheduledRefModel() - triggeredField() + workflowRunModel() + additionalMetadataField() } -type workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam struct { +type workflowRunWithPrismaAdditionalMetadataEqualsParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) field() builder.Field { +func (p workflowRunWithPrismaAdditionalMetadataEqualsParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) getQuery() builder.Query { +func (p workflowRunWithPrismaAdditionalMetadataEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) workflowTriggerScheduledRefModel() { -} +func (p workflowRunWithPrismaAdditionalMetadataEqualsParam) workflowRunModel() {} -func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) triggeredField() {} +func (p workflowRunWithPrismaAdditionalMetadataEqualsParam) additionalMetadataField() {} -func (workflowTriggerScheduledRefWithPrismaTriggeredSetParam) settable() {} -func (workflowTriggerScheduledRefWithPrismaTriggeredEqualsParam) equals() {} +func (workflowRunWithPrismaAdditionalMetadataSetParam) settable() {} +func (workflowRunWithPrismaAdditionalMetadataEqualsParam) equals() {} -type workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam struct { +type workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) field() builder.Field { +func (p workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) workflowTriggerScheduledRefModel() { -} -func (p workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) triggeredField() {} +func (p workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) workflowRunModel() {} +func (p workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) additionalMetadataField() {} -func (workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) unique() {} -func (workflowTriggerScheduledRefWithPrismaTriggeredEqualsUniqueParam) equals() {} +func (workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) unique() {} +func (workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) equals() {} -type jobActions struct { +type workflowRunDedupeActions struct { // client holds the prisma client client *PrismaClient } -var jobOutput = []builder.Output{ +var workflowRunDedupeOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, - {Name: "deletedAt"}, {Name: "tenantId"}, - {Name: "workflowVersionId"}, - {Name: "name"}, - {Name: "description"}, - {Name: "timeout"}, - {Name: "kind"}, + {Name: "workflowId"}, + {Name: "workflowRunId"}, + {Name: "value"}, } -type JobRelationWith interface { +type WorkflowRunDedupeRelationWith interface { getQuery() builder.Query with() - jobRelation() + workflowRunDedupeRelation() } -type JobWhereParam interface { +type WorkflowRunDedupeWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() } -type jobDefaultParam struct { +type workflowRunDedupeDefaultParam struct { data builder.Field query builder.Query } -func (p jobDefaultParam) field() builder.Field { +func (p workflowRunDedupeDefaultParam) field() builder.Field { return p.data } -func (p jobDefaultParam) getQuery() builder.Query { +func (p workflowRunDedupeDefaultParam) getQuery() builder.Query { return p.query } -func (p jobDefaultParam) jobModel() {} +func (p workflowRunDedupeDefaultParam) workflowRunDedupeModel() {} -type JobOrderByParam interface { +type WorkflowRunDedupeOrderByParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() } -type jobOrderByParam struct { +type workflowRunDedupeOrderByParam struct { data builder.Field query builder.Query } -func (p jobOrderByParam) field() builder.Field { +func (p workflowRunDedupeOrderByParam) field() builder.Field { return p.data } -func (p jobOrderByParam) getQuery() builder.Query { +func (p workflowRunDedupeOrderByParam) getQuery() builder.Query { return p.query } -func (p jobOrderByParam) jobModel() {} +func (p workflowRunDedupeOrderByParam) workflowRunDedupeModel() {} -type JobCursorParam interface { +type WorkflowRunDedupeCursorParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() isCursor() } -type jobCursorParam struct { +type workflowRunDedupeCursorParam struct { data builder.Field query builder.Query } -func (p jobCursorParam) field() builder.Field { +func (p workflowRunDedupeCursorParam) field() builder.Field { return p.data } -func (p jobCursorParam) isCursor() {} +func (p workflowRunDedupeCursorParam) isCursor() {} -func (p jobCursorParam) getQuery() builder.Query { +func (p workflowRunDedupeCursorParam) getQuery() builder.Query { return p.query } -func (p jobCursorParam) jobModel() {} +func (p workflowRunDedupeCursorParam) workflowRunDedupeModel() {} -type JobParamUnique interface { +type WorkflowRunDedupeParamUnique interface { field() builder.Field getQuery() builder.Query unique() - jobModel() + workflowRunDedupeModel() } -type jobParamUnique struct { +type workflowRunDedupeParamUnique struct { data builder.Field query builder.Query } -func (p jobParamUnique) jobModel() {} +func (p workflowRunDedupeParamUnique) workflowRunDedupeModel() {} -func (jobParamUnique) unique() {} +func (workflowRunDedupeParamUnique) unique() {} -func (p jobParamUnique) field() builder.Field { +func (p workflowRunDedupeParamUnique) field() builder.Field { return p.data } -func (p jobParamUnique) getQuery() builder.Query { +func (p workflowRunDedupeParamUnique) getQuery() builder.Query { return p.query } -type JobEqualsWhereParam interface { +type WorkflowRunDedupeEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() + workflowRunDedupeModel() } -type jobEqualsParam struct { +type workflowRunDedupeEqualsParam struct { data builder.Field query builder.Query } -func (p jobEqualsParam) jobModel() {} +func (p workflowRunDedupeEqualsParam) workflowRunDedupeModel() {} -func (jobEqualsParam) equals() {} +func (workflowRunDedupeEqualsParam) equals() {} -func (p jobEqualsParam) field() builder.Field { +func (p workflowRunDedupeEqualsParam) field() builder.Field { return p.data } -func (p jobEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeEqualsParam) getQuery() builder.Query { return p.query } -type JobEqualsUniqueWhereParam interface { +type WorkflowRunDedupeEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - jobModel() + workflowRunDedupeModel() } -type jobEqualsUniqueParam struct { +type workflowRunDedupeEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobEqualsUniqueParam) jobModel() {} +func (p workflowRunDedupeEqualsUniqueParam) workflowRunDedupeModel() {} -func (jobEqualsUniqueParam) unique() {} -func (jobEqualsUniqueParam) equals() {} +func (workflowRunDedupeEqualsUniqueParam) unique() {} +func (workflowRunDedupeEqualsUniqueParam) equals() {} -func (p jobEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeEqualsUniqueParam) getQuery() builder.Query { return p.query } -type JobSetParam interface { +type WorkflowRunDedupeSetParam interface { field() builder.Field settable() - jobModel() + workflowRunDedupeModel() } -type jobSetParam struct { +type workflowRunDedupeSetParam struct { data builder.Field } -func (jobSetParam) settable() {} +func (workflowRunDedupeSetParam) settable() {} -func (p jobSetParam) field() builder.Field { +func (p workflowRunDedupeSetParam) field() builder.Field { return p.data } -func (p jobSetParam) jobModel() {} +func (p workflowRunDedupeSetParam) workflowRunDedupeModel() {} -type JobWithPrismaIDEqualsSetParam interface { +type WorkflowRunDedupeWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() + workflowRunDedupeModel() idField() } -type JobWithPrismaIDSetParam interface { +type WorkflowRunDedupeWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() idField() } -type jobWithPrismaIDSetParam struct { +type workflowRunDedupeWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaIDSetParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaIDSetParam) jobModel() {} +func (p workflowRunDedupeWithPrismaIDSetParam) workflowRunDedupeModel() {} -func (p jobWithPrismaIDSetParam) idField() {} +func (p workflowRunDedupeWithPrismaIDSetParam) idField() {} -type JobWithPrismaIDWhereParam interface { +type WorkflowRunDedupeWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() idField() } -type jobWithPrismaIDEqualsParam struct { +type workflowRunDedupeWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaIDEqualsParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaIDEqualsParam) jobModel() {} +func (p workflowRunDedupeWithPrismaIDEqualsParam) workflowRunDedupeModel() {} -func (p jobWithPrismaIDEqualsParam) idField() {} +func (p workflowRunDedupeWithPrismaIDEqualsParam) idField() {} -func (jobWithPrismaIDSetParam) settable() {} -func (jobWithPrismaIDEqualsParam) equals() {} +func (workflowRunDedupeWithPrismaIDSetParam) settable() {} +func (workflowRunDedupeWithPrismaIDEqualsParam) equals() {} -type jobWithPrismaIDEqualsUniqueParam struct { +type workflowRunDedupeWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaIDEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaIDEqualsUniqueParam) idField() {} +func (p workflowRunDedupeWithPrismaIDEqualsUniqueParam) workflowRunDedupeModel() {} +func (p workflowRunDedupeWithPrismaIDEqualsUniqueParam) idField() {} -func (jobWithPrismaIDEqualsUniqueParam) unique() {} -func (jobWithPrismaIDEqualsUniqueParam) equals() {} +func (workflowRunDedupeWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowRunDedupeWithPrismaIDEqualsUniqueParam) equals() {} -type JobWithPrismaCreatedAtEqualsSetParam interface { +type WorkflowRunDedupeWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() + workflowRunDedupeModel() createdAtField() } -type JobWithPrismaCreatedAtSetParam interface { +type WorkflowRunDedupeWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() createdAtField() } -type jobWithPrismaCreatedAtSetParam struct { +type workflowRunDedupeWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaCreatedAtSetParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaCreatedAtSetParam) jobModel() {} +func (p workflowRunDedupeWithPrismaCreatedAtSetParam) workflowRunDedupeModel() {} -func (p jobWithPrismaCreatedAtSetParam) createdAtField() {} +func (p workflowRunDedupeWithPrismaCreatedAtSetParam) createdAtField() {} -type JobWithPrismaCreatedAtWhereParam interface { +type WorkflowRunDedupeWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() createdAtField() } -type jobWithPrismaCreatedAtEqualsParam struct { +type workflowRunDedupeWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaCreatedAtEqualsParam) jobModel() {} +func (p workflowRunDedupeWithPrismaCreatedAtEqualsParam) workflowRunDedupeModel() {} -func (p jobWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p workflowRunDedupeWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (jobWithPrismaCreatedAtSetParam) settable() {} -func (jobWithPrismaCreatedAtEqualsParam) equals() {} +func (workflowRunDedupeWithPrismaCreatedAtSetParam) settable() {} +func (workflowRunDedupeWithPrismaCreatedAtEqualsParam) equals() {} -type jobWithPrismaCreatedAtEqualsUniqueParam struct { +type workflowRunDedupeWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaCreatedAtEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p workflowRunDedupeWithPrismaCreatedAtEqualsUniqueParam) workflowRunDedupeModel() {} +func (p workflowRunDedupeWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (jobWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (jobWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (workflowRunDedupeWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowRunDedupeWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type JobWithPrismaUpdatedAtEqualsSetParam interface { +type WorkflowRunDedupeWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() + workflowRunDedupeModel() updatedAtField() } -type JobWithPrismaUpdatedAtSetParam interface { +type WorkflowRunDedupeWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() updatedAtField() } -type jobWithPrismaUpdatedAtSetParam struct { +type workflowRunDedupeWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaUpdatedAtSetParam) jobModel() {} +func (p workflowRunDedupeWithPrismaUpdatedAtSetParam) workflowRunDedupeModel() {} -func (p jobWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p workflowRunDedupeWithPrismaUpdatedAtSetParam) updatedAtField() {} -type JobWithPrismaUpdatedAtWhereParam interface { +type WorkflowRunDedupeWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() updatedAtField() } -type jobWithPrismaUpdatedAtEqualsParam struct { - data builder.Field - query builder.Query -} - -func (p jobWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data -} - -func (p jobWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { - return p.query -} - -func (p jobWithPrismaUpdatedAtEqualsParam) jobModel() {} - -func (p jobWithPrismaUpdatedAtEqualsParam) updatedAtField() {} - -func (jobWithPrismaUpdatedAtSetParam) settable() {} -func (jobWithPrismaUpdatedAtEqualsParam) equals() {} - -type jobWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} - -func (p jobWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { - return p.data -} - -func (p jobWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query -} - -func (p jobWithPrismaUpdatedAtEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (jobWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (jobWithPrismaUpdatedAtEqualsUniqueParam) equals() {} - -type JobWithPrismaDeletedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - jobModel() - deletedAtField() -} - -type JobWithPrismaDeletedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - jobModel() - deletedAtField() -} - -type jobWithPrismaDeletedAtSetParam struct { - data builder.Field - query builder.Query -} - -func (p jobWithPrismaDeletedAtSetParam) field() builder.Field { - return p.data -} - -func (p jobWithPrismaDeletedAtSetParam) getQuery() builder.Query { - return p.query -} - -func (p jobWithPrismaDeletedAtSetParam) jobModel() {} - -func (p jobWithPrismaDeletedAtSetParam) deletedAtField() {} - -type JobWithPrismaDeletedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - jobModel() - deletedAtField() -} - -type jobWithPrismaDeletedAtEqualsParam struct { +type workflowRunDedupeWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaDeletedAtEqualsParam) jobModel() {} +func (p workflowRunDedupeWithPrismaUpdatedAtEqualsParam) workflowRunDedupeModel() {} -func (p jobWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p workflowRunDedupeWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (jobWithPrismaDeletedAtSetParam) settable() {} -func (jobWithPrismaDeletedAtEqualsParam) equals() {} +func (workflowRunDedupeWithPrismaUpdatedAtSetParam) settable() {} +func (workflowRunDedupeWithPrismaUpdatedAtEqualsParam) equals() {} -type jobWithPrismaDeletedAtEqualsUniqueParam struct { +type workflowRunDedupeWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaDeletedAtEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p workflowRunDedupeWithPrismaUpdatedAtEqualsUniqueParam) workflowRunDedupeModel() {} +func (p workflowRunDedupeWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (jobWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (jobWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (workflowRunDedupeWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowRunDedupeWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type JobWithPrismaTenantEqualsSetParam interface { +type WorkflowRunDedupeWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() + workflowRunDedupeModel() tenantField() } -type JobWithPrismaTenantSetParam interface { +type WorkflowRunDedupeWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() tenantField() } -type jobWithPrismaTenantSetParam struct { +type workflowRunDedupeWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTenantSetParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaTenantSetParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTenantSetParam) jobModel() {} +func (p workflowRunDedupeWithPrismaTenantSetParam) workflowRunDedupeModel() {} -func (p jobWithPrismaTenantSetParam) tenantField() {} +func (p workflowRunDedupeWithPrismaTenantSetParam) tenantField() {} -type JobWithPrismaTenantWhereParam interface { +type WorkflowRunDedupeWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() tenantField() } -type jobWithPrismaTenantEqualsParam struct { +type workflowRunDedupeWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTenantEqualsParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTenantEqualsParam) jobModel() {} +func (p workflowRunDedupeWithPrismaTenantEqualsParam) workflowRunDedupeModel() {} -func (p jobWithPrismaTenantEqualsParam) tenantField() {} +func (p workflowRunDedupeWithPrismaTenantEqualsParam) tenantField() {} -func (jobWithPrismaTenantSetParam) settable() {} -func (jobWithPrismaTenantEqualsParam) equals() {} +func (workflowRunDedupeWithPrismaTenantSetParam) settable() {} +func (workflowRunDedupeWithPrismaTenantEqualsParam) equals() {} -type jobWithPrismaTenantEqualsUniqueParam struct { +type workflowRunDedupeWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTenantEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p workflowRunDedupeWithPrismaTenantEqualsUniqueParam) workflowRunDedupeModel() {} +func (p workflowRunDedupeWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (jobWithPrismaTenantEqualsUniqueParam) unique() {} -func (jobWithPrismaTenantEqualsUniqueParam) equals() {} +func (workflowRunDedupeWithPrismaTenantEqualsUniqueParam) unique() {} +func (workflowRunDedupeWithPrismaTenantEqualsUniqueParam) equals() {} -type JobWithPrismaTenantIDEqualsSetParam interface { +type WorkflowRunDedupeWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() + workflowRunDedupeModel() tenantIDField() } -type JobWithPrismaTenantIDSetParam interface { +type WorkflowRunDedupeWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() tenantIDField() } -type jobWithPrismaTenantIDSetParam struct { +type workflowRunDedupeWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTenantIDSetParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTenantIDSetParam) jobModel() {} +func (p workflowRunDedupeWithPrismaTenantIDSetParam) workflowRunDedupeModel() {} -func (p jobWithPrismaTenantIDSetParam) tenantIDField() {} +func (p workflowRunDedupeWithPrismaTenantIDSetParam) tenantIDField() {} -type JobWithPrismaTenantIDWhereParam interface { +type WorkflowRunDedupeWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() + workflowRunDedupeModel() tenantIDField() } -type jobWithPrismaTenantIDEqualsParam struct { +type workflowRunDedupeWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTenantIDEqualsParam) jobModel() {} +func (p workflowRunDedupeWithPrismaTenantIDEqualsParam) workflowRunDedupeModel() {} -func (p jobWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p workflowRunDedupeWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (jobWithPrismaTenantIDSetParam) settable() {} -func (jobWithPrismaTenantIDEqualsParam) equals() {} +func (workflowRunDedupeWithPrismaTenantIDSetParam) settable() {} +func (workflowRunDedupeWithPrismaTenantIDEqualsParam) equals() {} -type jobWithPrismaTenantIDEqualsUniqueParam struct { +type workflowRunDedupeWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTenantIDEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p workflowRunDedupeWithPrismaTenantIDEqualsUniqueParam) workflowRunDedupeModel() {} +func (p workflowRunDedupeWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (jobWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (jobWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (workflowRunDedupeWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (workflowRunDedupeWithPrismaTenantIDEqualsUniqueParam) equals() {} -type JobWithPrismaWorkflowEqualsSetParam interface { +type WorkflowRunDedupeWithPrismaWorkflowIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() - workflowField() + workflowRunDedupeModel() + workflowIDField() } -type JobWithPrismaWorkflowSetParam interface { +type WorkflowRunDedupeWithPrismaWorkflowIDSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() - workflowField() + workflowRunDedupeModel() + workflowIDField() } -type jobWithPrismaWorkflowSetParam struct { +type workflowRunDedupeWithPrismaWorkflowIDSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaWorkflowSetParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaWorkflowIDSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaWorkflowSetParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaWorkflowIDSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaWorkflowSetParam) jobModel() {} +func (p workflowRunDedupeWithPrismaWorkflowIDSetParam) workflowRunDedupeModel() {} -func (p jobWithPrismaWorkflowSetParam) workflowField() {} +func (p workflowRunDedupeWithPrismaWorkflowIDSetParam) workflowIDField() {} -type JobWithPrismaWorkflowWhereParam interface { +type WorkflowRunDedupeWithPrismaWorkflowIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - workflowField() + workflowRunDedupeModel() + workflowIDField() } -type jobWithPrismaWorkflowEqualsParam struct { +type workflowRunDedupeWithPrismaWorkflowIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaWorkflowEqualsParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaWorkflowIDEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaWorkflowEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaWorkflowIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaWorkflowEqualsParam) jobModel() {} +func (p workflowRunDedupeWithPrismaWorkflowIDEqualsParam) workflowRunDedupeModel() {} -func (p jobWithPrismaWorkflowEqualsParam) workflowField() {} +func (p workflowRunDedupeWithPrismaWorkflowIDEqualsParam) workflowIDField() {} -func (jobWithPrismaWorkflowSetParam) settable() {} -func (jobWithPrismaWorkflowEqualsParam) equals() {} +func (workflowRunDedupeWithPrismaWorkflowIDSetParam) settable() {} +func (workflowRunDedupeWithPrismaWorkflowIDEqualsParam) equals() {} -type jobWithPrismaWorkflowEqualsUniqueParam struct { +type workflowRunDedupeWithPrismaWorkflowIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaWorkflowEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaWorkflowIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaWorkflowEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaWorkflowIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaWorkflowEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaWorkflowEqualsUniqueParam) workflowField() {} +func (p workflowRunDedupeWithPrismaWorkflowIDEqualsUniqueParam) workflowRunDedupeModel() {} +func (p workflowRunDedupeWithPrismaWorkflowIDEqualsUniqueParam) workflowIDField() {} -func (jobWithPrismaWorkflowEqualsUniqueParam) unique() {} -func (jobWithPrismaWorkflowEqualsUniqueParam) equals() {} +func (workflowRunDedupeWithPrismaWorkflowIDEqualsUniqueParam) unique() {} +func (workflowRunDedupeWithPrismaWorkflowIDEqualsUniqueParam) equals() {} -type JobWithPrismaWorkflowVersionIDEqualsSetParam interface { +type WorkflowRunDedupeWithPrismaWorkflowRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() - workflowVersionIDField() + workflowRunDedupeModel() + workflowRunIDField() } -type JobWithPrismaWorkflowVersionIDSetParam interface { +type WorkflowRunDedupeWithPrismaWorkflowRunIDSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() - workflowVersionIDField() + workflowRunDedupeModel() + workflowRunIDField() } -type jobWithPrismaWorkflowVersionIDSetParam struct { +type workflowRunDedupeWithPrismaWorkflowRunIDSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaWorkflowVersionIDSetParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaWorkflowRunIDSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaWorkflowVersionIDSetParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaWorkflowRunIDSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaWorkflowVersionIDSetParam) jobModel() {} +func (p workflowRunDedupeWithPrismaWorkflowRunIDSetParam) workflowRunDedupeModel() {} -func (p jobWithPrismaWorkflowVersionIDSetParam) workflowVersionIDField() {} +func (p workflowRunDedupeWithPrismaWorkflowRunIDSetParam) workflowRunIDField() {} -type JobWithPrismaWorkflowVersionIDWhereParam interface { +type WorkflowRunDedupeWithPrismaWorkflowRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - workflowVersionIDField() + workflowRunDedupeModel() + workflowRunIDField() } -type jobWithPrismaWorkflowVersionIDEqualsParam struct { +type workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaWorkflowVersionIDEqualsParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaWorkflowVersionIDEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaWorkflowVersionIDEqualsParam) jobModel() {} +func (p workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam) workflowRunDedupeModel() {} -func (p jobWithPrismaWorkflowVersionIDEqualsParam) workflowVersionIDField() {} +func (p workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam) workflowRunIDField() {} -func (jobWithPrismaWorkflowVersionIDSetParam) settable() {} -func (jobWithPrismaWorkflowVersionIDEqualsParam) equals() {} +func (workflowRunDedupeWithPrismaWorkflowRunIDSetParam) settable() {} +func (workflowRunDedupeWithPrismaWorkflowRunIDEqualsParam) equals() {} -type jobWithPrismaWorkflowVersionIDEqualsUniqueParam struct { +type workflowRunDedupeWithPrismaWorkflowRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaWorkflowVersionIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaWorkflowRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaWorkflowVersionIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaWorkflowRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaWorkflowVersionIDEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowVersionIDField() {} +func (p workflowRunDedupeWithPrismaWorkflowRunIDEqualsUniqueParam) workflowRunDedupeModel() {} +func (p workflowRunDedupeWithPrismaWorkflowRunIDEqualsUniqueParam) workflowRunIDField() {} -func (jobWithPrismaWorkflowVersionIDEqualsUniqueParam) unique() {} -func (jobWithPrismaWorkflowVersionIDEqualsUniqueParam) equals() {} +func (workflowRunDedupeWithPrismaWorkflowRunIDEqualsUniqueParam) unique() {} +func (workflowRunDedupeWithPrismaWorkflowRunIDEqualsUniqueParam) equals() {} -type JobWithPrismaNameEqualsSetParam interface { +type WorkflowRunDedupeWithPrismaValueEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() - nameField() + workflowRunDedupeModel() + valueField() } -type JobWithPrismaNameSetParam interface { +type WorkflowRunDedupeWithPrismaValueSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() - nameField() + workflowRunDedupeModel() + valueField() } -type jobWithPrismaNameSetParam struct { +type workflowRunDedupeWithPrismaValueSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaNameSetParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaValueSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaNameSetParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaValueSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaNameSetParam) jobModel() {} +func (p workflowRunDedupeWithPrismaValueSetParam) workflowRunDedupeModel() {} -func (p jobWithPrismaNameSetParam) nameField() {} +func (p workflowRunDedupeWithPrismaValueSetParam) valueField() {} -type JobWithPrismaNameWhereParam interface { +type WorkflowRunDedupeWithPrismaValueWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - nameField() + workflowRunDedupeModel() + valueField() } -type jobWithPrismaNameEqualsParam struct { +type workflowRunDedupeWithPrismaValueEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaNameEqualsParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaValueEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaNameEqualsParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaValueEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaNameEqualsParam) jobModel() {} +func (p workflowRunDedupeWithPrismaValueEqualsParam) workflowRunDedupeModel() {} -func (p jobWithPrismaNameEqualsParam) nameField() {} +func (p workflowRunDedupeWithPrismaValueEqualsParam) valueField() {} -func (jobWithPrismaNameSetParam) settable() {} -func (jobWithPrismaNameEqualsParam) equals() {} +func (workflowRunDedupeWithPrismaValueSetParam) settable() {} +func (workflowRunDedupeWithPrismaValueEqualsParam) equals() {} -type jobWithPrismaNameEqualsUniqueParam struct { +type workflowRunDedupeWithPrismaValueEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaNameEqualsUniqueParam) field() builder.Field { +func (p workflowRunDedupeWithPrismaValueEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunDedupeWithPrismaValueEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaNameEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaNameEqualsUniqueParam) nameField() {} +func (p workflowRunDedupeWithPrismaValueEqualsUniqueParam) workflowRunDedupeModel() {} +func (p workflowRunDedupeWithPrismaValueEqualsUniqueParam) valueField() {} -func (jobWithPrismaNameEqualsUniqueParam) unique() {} -func (jobWithPrismaNameEqualsUniqueParam) equals() {} +func (workflowRunDedupeWithPrismaValueEqualsUniqueParam) unique() {} +func (workflowRunDedupeWithPrismaValueEqualsUniqueParam) equals() {} -type JobWithPrismaDescriptionEqualsSetParam interface { - field() builder.Field +type getGroupKeyRunActions struct { + // client holds the prisma client + client *PrismaClient +} + +var getGroupKeyRunOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "workflowRunId"}, + {Name: "workerId"}, + {Name: "tickerId"}, + {Name: "status"}, + {Name: "input"}, + {Name: "output"}, + {Name: "requeueAfter"}, + {Name: "scheduleTimeoutAt"}, + {Name: "error"}, + {Name: "startedAt"}, + {Name: "finishedAt"}, + {Name: "timeoutAt"}, + {Name: "cancelledAt"}, + {Name: "cancelledReason"}, + {Name: "cancelledError"}, +} + +type GetGroupKeyRunRelationWith interface { getQuery() builder.Query - equals() - jobModel() - descriptionField() + with() + getGroupKeyRunRelation() } -type JobWithPrismaDescriptionSetParam interface { +type GetGroupKeyRunWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - descriptionField() + getGroupKeyRunModel() } -type jobWithPrismaDescriptionSetParam struct { +type getGroupKeyRunDefaultParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaDescriptionSetParam) field() builder.Field { +func (p getGroupKeyRunDefaultParam) field() builder.Field { return p.data } -func (p jobWithPrismaDescriptionSetParam) getQuery() builder.Query { +func (p getGroupKeyRunDefaultParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaDescriptionSetParam) jobModel() {} - -func (p jobWithPrismaDescriptionSetParam) descriptionField() {} +func (p getGroupKeyRunDefaultParam) getGroupKeyRunModel() {} -type JobWithPrismaDescriptionWhereParam interface { +type GetGroupKeyRunOrderByParam interface { field() builder.Field getQuery() builder.Query - jobModel() - descriptionField() + getGroupKeyRunModel() } -type jobWithPrismaDescriptionEqualsParam struct { +type getGroupKeyRunOrderByParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaDescriptionEqualsParam) field() builder.Field { +func (p getGroupKeyRunOrderByParam) field() builder.Field { return p.data } -func (p jobWithPrismaDescriptionEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunOrderByParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaDescriptionEqualsParam) jobModel() {} - -func (p jobWithPrismaDescriptionEqualsParam) descriptionField() {} +func (p getGroupKeyRunOrderByParam) getGroupKeyRunModel() {} -func (jobWithPrismaDescriptionSetParam) settable() {} -func (jobWithPrismaDescriptionEqualsParam) equals() {} +type GetGroupKeyRunCursorParam interface { + field() builder.Field + getQuery() builder.Query + getGroupKeyRunModel() + isCursor() +} -type jobWithPrismaDescriptionEqualsUniqueParam struct { +type getGroupKeyRunCursorParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaDescriptionEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunCursorParam) field() builder.Field { return p.data } -func (p jobWithPrismaDescriptionEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunCursorParam) isCursor() {} + +func (p getGroupKeyRunCursorParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaDescriptionEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaDescriptionEqualsUniqueParam) descriptionField() {} - -func (jobWithPrismaDescriptionEqualsUniqueParam) unique() {} -func (jobWithPrismaDescriptionEqualsUniqueParam) equals() {} - -type JobWithPrismaStepsEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - jobModel() - stepsField() -} +func (p getGroupKeyRunCursorParam) getGroupKeyRunModel() {} -type JobWithPrismaStepsSetParam interface { +type GetGroupKeyRunParamUnique interface { field() builder.Field getQuery() builder.Query - jobModel() - stepsField() + unique() + getGroupKeyRunModel() } -type jobWithPrismaStepsSetParam struct { +type getGroupKeyRunParamUnique struct { data builder.Field query builder.Query } -func (p jobWithPrismaStepsSetParam) field() builder.Field { +func (p getGroupKeyRunParamUnique) getGroupKeyRunModel() {} + +func (getGroupKeyRunParamUnique) unique() {} + +func (p getGroupKeyRunParamUnique) field() builder.Field { return p.data } -func (p jobWithPrismaStepsSetParam) getQuery() builder.Query { +func (p getGroupKeyRunParamUnique) getQuery() builder.Query { return p.query } -func (p jobWithPrismaStepsSetParam) jobModel() {} - -func (p jobWithPrismaStepsSetParam) stepsField() {} - -type JobWithPrismaStepsWhereParam interface { +type GetGroupKeyRunEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - stepsField() + equals() + getGroupKeyRunModel() } -type jobWithPrismaStepsEqualsParam struct { +type getGroupKeyRunEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaStepsEqualsParam) field() builder.Field { +func (p getGroupKeyRunEqualsParam) getGroupKeyRunModel() {} + +func (getGroupKeyRunEqualsParam) equals() {} + +func (p getGroupKeyRunEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaStepsEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaStepsEqualsParam) jobModel() {} - -func (p jobWithPrismaStepsEqualsParam) stepsField() {} - -func (jobWithPrismaStepsSetParam) settable() {} -func (jobWithPrismaStepsEqualsParam) equals() {} +type GetGroupKeyRunEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + getGroupKeyRunModel() +} -type jobWithPrismaStepsEqualsUniqueParam struct { +type getGroupKeyRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaStepsEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunEqualsUniqueParam) getGroupKeyRunModel() {} + +func (getGroupKeyRunEqualsUniqueParam) unique() {} +func (getGroupKeyRunEqualsUniqueParam) equals() {} + +func (p getGroupKeyRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaStepsEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaStepsEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaStepsEqualsUniqueParam) stepsField() {} +type GetGroupKeyRunSetParam interface { + field() builder.Field + settable() + getGroupKeyRunModel() +} -func (jobWithPrismaStepsEqualsUniqueParam) unique() {} -func (jobWithPrismaStepsEqualsUniqueParam) equals() {} +type getGroupKeyRunSetParam struct { + data builder.Field +} -type JobWithPrismaTimeoutEqualsSetParam interface { +func (getGroupKeyRunSetParam) settable() {} + +func (p getGroupKeyRunSetParam) field() builder.Field { + return p.data +} + +func (p getGroupKeyRunSetParam) getGroupKeyRunModel() {} + +type GetGroupKeyRunWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() - timeoutField() + getGroupKeyRunModel() + idField() } -type JobWithPrismaTimeoutSetParam interface { +type GetGroupKeyRunWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() - timeoutField() + getGroupKeyRunModel() + idField() } -type jobWithPrismaTimeoutSetParam struct { +type getGroupKeyRunWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTimeoutSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaTimeoutSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTimeoutSetParam) jobModel() {} +func (p getGroupKeyRunWithPrismaIDSetParam) getGroupKeyRunModel() {} -func (p jobWithPrismaTimeoutSetParam) timeoutField() {} +func (p getGroupKeyRunWithPrismaIDSetParam) idField() {} -type JobWithPrismaTimeoutWhereParam interface { +type GetGroupKeyRunWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - timeoutField() + getGroupKeyRunModel() + idField() } -type jobWithPrismaTimeoutEqualsParam struct { +type getGroupKeyRunWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTimeoutEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaTimeoutEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTimeoutEqualsParam) jobModel() {} +func (p getGroupKeyRunWithPrismaIDEqualsParam) getGroupKeyRunModel() {} -func (p jobWithPrismaTimeoutEqualsParam) timeoutField() {} +func (p getGroupKeyRunWithPrismaIDEqualsParam) idField() {} -func (jobWithPrismaTimeoutSetParam) settable() {} -func (jobWithPrismaTimeoutEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaIDSetParam) settable() {} +func (getGroupKeyRunWithPrismaIDEqualsParam) equals() {} -type jobWithPrismaTimeoutEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaTimeoutEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaTimeoutEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaTimeoutEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaTimeoutEqualsUniqueParam) timeoutField() {} +func (p getGroupKeyRunWithPrismaIDEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaIDEqualsUniqueParam) idField() {} -func (jobWithPrismaTimeoutEqualsUniqueParam) unique() {} -func (jobWithPrismaTimeoutEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaIDEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaIDEqualsUniqueParam) equals() {} -type JobWithPrismaRunsEqualsSetParam interface { +type GetGroupKeyRunWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() - runsField() + getGroupKeyRunModel() + createdAtField() } -type JobWithPrismaRunsSetParam interface { +type GetGroupKeyRunWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() - runsField() + getGroupKeyRunModel() + createdAtField() } -type jobWithPrismaRunsSetParam struct { +type getGroupKeyRunWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaRunsSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaRunsSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaRunsSetParam) jobModel() {} +func (p getGroupKeyRunWithPrismaCreatedAtSetParam) getGroupKeyRunModel() {} -func (p jobWithPrismaRunsSetParam) runsField() {} +func (p getGroupKeyRunWithPrismaCreatedAtSetParam) createdAtField() {} -type JobWithPrismaRunsWhereParam interface { +type GetGroupKeyRunWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - runsField() + getGroupKeyRunModel() + createdAtField() } -type jobWithPrismaRunsEqualsParam struct { +type getGroupKeyRunWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaRunsEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaRunsEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaRunsEqualsParam) jobModel() {} +func (p getGroupKeyRunWithPrismaCreatedAtEqualsParam) getGroupKeyRunModel() {} -func (p jobWithPrismaRunsEqualsParam) runsField() {} +func (p getGroupKeyRunWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (jobWithPrismaRunsSetParam) settable() {} -func (jobWithPrismaRunsEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaCreatedAtSetParam) settable() {} +func (getGroupKeyRunWithPrismaCreatedAtEqualsParam) equals() {} -type jobWithPrismaRunsEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaRunsEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaRunsEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaRunsEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaRunsEqualsUniqueParam) runsField() {} +func (p getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (jobWithPrismaRunsEqualsUniqueParam) unique() {} -func (jobWithPrismaRunsEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type JobWithPrismaKindEqualsSetParam interface { +type GetGroupKeyRunWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() - kindField() + getGroupKeyRunModel() + updatedAtField() } -type JobWithPrismaKindSetParam interface { +type GetGroupKeyRunWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() - kindField() + getGroupKeyRunModel() + updatedAtField() } -type jobWithPrismaKindSetParam struct { +type getGroupKeyRunWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaKindSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaKindSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaKindSetParam) jobModel() {} +func (p getGroupKeyRunWithPrismaUpdatedAtSetParam) getGroupKeyRunModel() {} -func (p jobWithPrismaKindSetParam) kindField() {} +func (p getGroupKeyRunWithPrismaUpdatedAtSetParam) updatedAtField() {} -type JobWithPrismaKindWhereParam interface { +type GetGroupKeyRunWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - kindField() + getGroupKeyRunModel() + updatedAtField() } -type jobWithPrismaKindEqualsParam struct { +type getGroupKeyRunWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaKindEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaKindEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaKindEqualsParam) jobModel() {} +func (p getGroupKeyRunWithPrismaUpdatedAtEqualsParam) getGroupKeyRunModel() {} -func (p jobWithPrismaKindEqualsParam) kindField() {} +func (p getGroupKeyRunWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (jobWithPrismaKindSetParam) settable() {} -func (jobWithPrismaKindEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaUpdatedAtSetParam) settable() {} +func (getGroupKeyRunWithPrismaUpdatedAtEqualsParam) equals() {} -type jobWithPrismaKindEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaKindEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaKindEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaKindEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaKindEqualsUniqueParam) kindField() {} +func (p getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (jobWithPrismaKindEqualsUniqueParam) unique() {} -func (jobWithPrismaKindEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type JobWithPrismaFailureRelationsEqualsSetParam interface { +type GetGroupKeyRunWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobModel() - failureRelationsField() + getGroupKeyRunModel() + deletedAtField() } -type JobWithPrismaFailureRelationsSetParam interface { +type GetGroupKeyRunWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobModel() - failureRelationsField() + getGroupKeyRunModel() + deletedAtField() } -type jobWithPrismaFailureRelationsSetParam struct { +type getGroupKeyRunWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaFailureRelationsSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p jobWithPrismaFailureRelationsSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaFailureRelationsSetParam) jobModel() {} +func (p getGroupKeyRunWithPrismaDeletedAtSetParam) getGroupKeyRunModel() {} -func (p jobWithPrismaFailureRelationsSetParam) failureRelationsField() {} +func (p getGroupKeyRunWithPrismaDeletedAtSetParam) deletedAtField() {} -type JobWithPrismaFailureRelationsWhereParam interface { +type GetGroupKeyRunWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobModel() - failureRelationsField() + getGroupKeyRunModel() + deletedAtField() } -type jobWithPrismaFailureRelationsEqualsParam struct { +type getGroupKeyRunWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaFailureRelationsEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p jobWithPrismaFailureRelationsEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaFailureRelationsEqualsParam) jobModel() {} +func (p getGroupKeyRunWithPrismaDeletedAtEqualsParam) getGroupKeyRunModel() {} -func (p jobWithPrismaFailureRelationsEqualsParam) failureRelationsField() {} +func (p getGroupKeyRunWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (jobWithPrismaFailureRelationsSetParam) settable() {} -func (jobWithPrismaFailureRelationsEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaDeletedAtSetParam) settable() {} +func (getGroupKeyRunWithPrismaDeletedAtEqualsParam) equals() {} -type jobWithPrismaFailureRelationsEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobWithPrismaFailureRelationsEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobWithPrismaFailureRelationsEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobWithPrismaFailureRelationsEqualsUniqueParam) jobModel() {} -func (p jobWithPrismaFailureRelationsEqualsUniqueParam) failureRelationsField() {} - -func (jobWithPrismaFailureRelationsEqualsUniqueParam) unique() {} -func (jobWithPrismaFailureRelationsEqualsUniqueParam) equals() {} - -type actionActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -var actionOutput = []builder.Output{ - {Name: "id"}, - {Name: "actionId"}, - {Name: "description"}, - {Name: "tenantId"}, -} +func (getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type ActionRelationWith interface { +type GetGroupKeyRunWithPrismaTenantEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - actionRelation() + equals() + getGroupKeyRunModel() + tenantField() } -type ActionWhereParam interface { +type GetGroupKeyRunWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() + getGroupKeyRunModel() + tenantField() } -type actionDefaultParam struct { +type getGroupKeyRunWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p actionDefaultParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p actionDefaultParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p actionDefaultParam) actionModel() {} +func (p getGroupKeyRunWithPrismaTenantSetParam) getGroupKeyRunModel() {} -type ActionOrderByParam interface { +func (p getGroupKeyRunWithPrismaTenantSetParam) tenantField() {} + +type GetGroupKeyRunWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() + getGroupKeyRunModel() + tenantField() } -type actionOrderByParam struct { +type getGroupKeyRunWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p actionOrderByParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p actionOrderByParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p actionOrderByParam) actionModel() {} +func (p getGroupKeyRunWithPrismaTenantEqualsParam) getGroupKeyRunModel() {} -type ActionCursorParam interface { - field() builder.Field - getQuery() builder.Query - actionModel() - isCursor() -} +func (p getGroupKeyRunWithPrismaTenantEqualsParam) tenantField() {} -type actionCursorParam struct { +func (getGroupKeyRunWithPrismaTenantSetParam) settable() {} +func (getGroupKeyRunWithPrismaTenantEqualsParam) equals() {} + +type getGroupKeyRunWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionCursorParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionCursorParam) isCursor() {} - -func (p actionCursorParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionCursorParam) actionModel() {} +func (p getGroupKeyRunWithPrismaTenantEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaTenantEqualsUniqueParam) tenantField() {} -type ActionParamUnique interface { +func (getGroupKeyRunWithPrismaTenantEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaTenantEqualsUniqueParam) equals() {} + +type GetGroupKeyRunWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - actionModel() + equals() + getGroupKeyRunModel() + tenantIDField() } -type actionParamUnique struct { +type GetGroupKeyRunWithPrismaTenantIDSetParam interface { + field() builder.Field + getQuery() builder.Query + getGroupKeyRunModel() + tenantIDField() +} + +type getGroupKeyRunWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p actionParamUnique) actionModel() {} - -func (actionParamUnique) unique() {} - -func (p actionParamUnique) field() builder.Field { +func (p getGroupKeyRunWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p actionParamUnique) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -type ActionEqualsWhereParam interface { +func (p getGroupKeyRunWithPrismaTenantIDSetParam) getGroupKeyRunModel() {} + +func (p getGroupKeyRunWithPrismaTenantIDSetParam) tenantIDField() {} + +type GetGroupKeyRunWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - actionModel() + getGroupKeyRunModel() + tenantIDField() } -type actionEqualsParam struct { +type getGroupKeyRunWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p actionEqualsParam) actionModel() {} - -func (actionEqualsParam) equals() {} - -func (p actionEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p actionEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -type ActionEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - actionModel() -} +func (p getGroupKeyRunWithPrismaTenantIDEqualsParam) getGroupKeyRunModel() {} -type actionEqualsUniqueParam struct { +func (p getGroupKeyRunWithPrismaTenantIDEqualsParam) tenantIDField() {} + +func (getGroupKeyRunWithPrismaTenantIDSetParam) settable() {} +func (getGroupKeyRunWithPrismaTenantIDEqualsParam) equals() {} + +type getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionEqualsUniqueParam) actionModel() {} - -func (actionEqualsUniqueParam) unique() {} -func (actionEqualsUniqueParam) equals() {} - -func (p actionEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -type ActionSetParam interface { - field() builder.Field - settable() - actionModel() -} - -type actionSetParam struct { - data builder.Field -} - -func (actionSetParam) settable() {} - -func (p actionSetParam) field() builder.Field { - return p.data -} +func (p getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (p actionSetParam) actionModel() {} +func (getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) equals() {} -type ActionWithPrismaIDEqualsSetParam interface { +type GetGroupKeyRunWithPrismaWorkflowRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - actionModel() - idField() + getGroupKeyRunModel() + workflowRunField() } -type ActionWithPrismaIDSetParam interface { +type GetGroupKeyRunWithPrismaWorkflowRunSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() - idField() + getGroupKeyRunModel() + workflowRunField() } -type actionWithPrismaIDSetParam struct { +type getGroupKeyRunWithPrismaWorkflowRunSetParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaIDSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkflowRunSetParam) field() builder.Field { return p.data } -func (p actionWithPrismaIDSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkflowRunSetParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaIDSetParam) actionModel() {} +func (p getGroupKeyRunWithPrismaWorkflowRunSetParam) getGroupKeyRunModel() {} -func (p actionWithPrismaIDSetParam) idField() {} +func (p getGroupKeyRunWithPrismaWorkflowRunSetParam) workflowRunField() {} -type ActionWithPrismaIDWhereParam interface { +type GetGroupKeyRunWithPrismaWorkflowRunWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() - idField() + getGroupKeyRunModel() + workflowRunField() } -type actionWithPrismaIDEqualsParam struct { +type getGroupKeyRunWithPrismaWorkflowRunEqualsParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaIDEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkflowRunEqualsParam) field() builder.Field { return p.data } -func (p actionWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkflowRunEqualsParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaIDEqualsParam) actionModel() {} +func (p getGroupKeyRunWithPrismaWorkflowRunEqualsParam) getGroupKeyRunModel() {} -func (p actionWithPrismaIDEqualsParam) idField() {} +func (p getGroupKeyRunWithPrismaWorkflowRunEqualsParam) workflowRunField() {} -func (actionWithPrismaIDSetParam) settable() {} -func (actionWithPrismaIDEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaWorkflowRunSetParam) settable() {} +func (getGroupKeyRunWithPrismaWorkflowRunEqualsParam) equals() {} -type actionWithPrismaIDEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaIDEqualsUniqueParam) actionModel() {} -func (p actionWithPrismaIDEqualsUniqueParam) idField() {} +func (p getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) workflowRunField() {} -func (actionWithPrismaIDEqualsUniqueParam) unique() {} -func (actionWithPrismaIDEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) equals() {} -type ActionWithPrismaActionIDEqualsSetParam interface { +type GetGroupKeyRunWithPrismaWorkflowRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - actionModel() - actionIDField() + getGroupKeyRunModel() + workflowRunIDField() } -type ActionWithPrismaActionIDSetParam interface { +type GetGroupKeyRunWithPrismaWorkflowRunIDSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() - actionIDField() + getGroupKeyRunModel() + workflowRunIDField() } -type actionWithPrismaActionIDSetParam struct { +type getGroupKeyRunWithPrismaWorkflowRunIDSetParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaActionIDSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkflowRunIDSetParam) field() builder.Field { return p.data } -func (p actionWithPrismaActionIDSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkflowRunIDSetParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaActionIDSetParam) actionModel() {} +func (p getGroupKeyRunWithPrismaWorkflowRunIDSetParam) getGroupKeyRunModel() {} -func (p actionWithPrismaActionIDSetParam) actionIDField() {} +func (p getGroupKeyRunWithPrismaWorkflowRunIDSetParam) workflowRunIDField() {} -type ActionWithPrismaActionIDWhereParam interface { +type GetGroupKeyRunWithPrismaWorkflowRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() - actionIDField() + getGroupKeyRunModel() + workflowRunIDField() } -type actionWithPrismaActionIDEqualsParam struct { +type getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaActionIDEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) field() builder.Field { return p.data } -func (p actionWithPrismaActionIDEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaActionIDEqualsParam) actionModel() {} +func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) getGroupKeyRunModel() {} -func (p actionWithPrismaActionIDEqualsParam) actionIDField() {} +func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) workflowRunIDField() {} -func (actionWithPrismaActionIDSetParam) settable() {} -func (actionWithPrismaActionIDEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaWorkflowRunIDSetParam) settable() {} +func (getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) equals() {} -type actionWithPrismaActionIDEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaActionIDEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionWithPrismaActionIDEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaActionIDEqualsUniqueParam) actionModel() {} -func (p actionWithPrismaActionIDEqualsUniqueParam) actionIDField() {} +func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) workflowRunIDField() {} -func (actionWithPrismaActionIDEqualsUniqueParam) unique() {} -func (actionWithPrismaActionIDEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) equals() {} -type ActionWithPrismaDescriptionEqualsSetParam interface { +type GetGroupKeyRunWithPrismaWorkerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - actionModel() - descriptionField() + getGroupKeyRunModel() + workerField() } -type ActionWithPrismaDescriptionSetParam interface { +type GetGroupKeyRunWithPrismaWorkerSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() - descriptionField() + getGroupKeyRunModel() + workerField() } -type actionWithPrismaDescriptionSetParam struct { +type getGroupKeyRunWithPrismaWorkerSetParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaDescriptionSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkerSetParam) field() builder.Field { return p.data } -func (p actionWithPrismaDescriptionSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkerSetParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaDescriptionSetParam) actionModel() {} +func (p getGroupKeyRunWithPrismaWorkerSetParam) getGroupKeyRunModel() {} -func (p actionWithPrismaDescriptionSetParam) descriptionField() {} +func (p getGroupKeyRunWithPrismaWorkerSetParam) workerField() {} -type ActionWithPrismaDescriptionWhereParam interface { +type GetGroupKeyRunWithPrismaWorkerWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() - descriptionField() + getGroupKeyRunModel() + workerField() } -type actionWithPrismaDescriptionEqualsParam struct { +type getGroupKeyRunWithPrismaWorkerEqualsParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaDescriptionEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkerEqualsParam) field() builder.Field { return p.data } -func (p actionWithPrismaDescriptionEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkerEqualsParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaDescriptionEqualsParam) actionModel() {} +func (p getGroupKeyRunWithPrismaWorkerEqualsParam) getGroupKeyRunModel() {} -func (p actionWithPrismaDescriptionEqualsParam) descriptionField() {} +func (p getGroupKeyRunWithPrismaWorkerEqualsParam) workerField() {} -func (actionWithPrismaDescriptionSetParam) settable() {} -func (actionWithPrismaDescriptionEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaWorkerSetParam) settable() {} +func (getGroupKeyRunWithPrismaWorkerEqualsParam) equals() {} -type actionWithPrismaDescriptionEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaWorkerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaDescriptionEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionWithPrismaDescriptionEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaDescriptionEqualsUniqueParam) actionModel() {} -func (p actionWithPrismaDescriptionEqualsUniqueParam) descriptionField() {} +func (p getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) workerField() {} -func (actionWithPrismaDescriptionEqualsUniqueParam) unique() {} -func (actionWithPrismaDescriptionEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) equals() {} -type ActionWithPrismaTenantEqualsSetParam interface { +type GetGroupKeyRunWithPrismaWorkerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - actionModel() - tenantField() + getGroupKeyRunModel() + workerIDField() } -type ActionWithPrismaTenantSetParam interface { +type GetGroupKeyRunWithPrismaWorkerIDSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() - tenantField() + getGroupKeyRunModel() + workerIDField() } -type actionWithPrismaTenantSetParam struct { +type getGroupKeyRunWithPrismaWorkerIDSetParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaTenantSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkerIDSetParam) field() builder.Field { return p.data } -func (p actionWithPrismaTenantSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkerIDSetParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaTenantSetParam) actionModel() {} +func (p getGroupKeyRunWithPrismaWorkerIDSetParam) getGroupKeyRunModel() {} -func (p actionWithPrismaTenantSetParam) tenantField() {} +func (p getGroupKeyRunWithPrismaWorkerIDSetParam) workerIDField() {} -type ActionWithPrismaTenantWhereParam interface { +type GetGroupKeyRunWithPrismaWorkerIDWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() - tenantField() + getGroupKeyRunModel() + workerIDField() } -type actionWithPrismaTenantEqualsParam struct { +type getGroupKeyRunWithPrismaWorkerIDEqualsParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaTenantEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkerIDEqualsParam) field() builder.Field { return p.data } -func (p actionWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaTenantEqualsParam) actionModel() {} +func (p getGroupKeyRunWithPrismaWorkerIDEqualsParam) getGroupKeyRunModel() {} -func (p actionWithPrismaTenantEqualsParam) tenantField() {} +func (p getGroupKeyRunWithPrismaWorkerIDEqualsParam) workerIDField() {} -func (actionWithPrismaTenantSetParam) settable() {} -func (actionWithPrismaTenantEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaWorkerIDSetParam) settable() {} +func (getGroupKeyRunWithPrismaWorkerIDEqualsParam) equals() {} -type actionWithPrismaTenantEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaTenantEqualsUniqueParam) actionModel() {} -func (p actionWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} -func (actionWithPrismaTenantEqualsUniqueParam) unique() {} -func (actionWithPrismaTenantEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) equals() {} -type ActionWithPrismaTenantIDEqualsSetParam interface { +type GetGroupKeyRunWithPrismaTickerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - actionModel() - tenantIDField() + getGroupKeyRunModel() + tickerField() } -type ActionWithPrismaTenantIDSetParam interface { +type GetGroupKeyRunWithPrismaTickerSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() - tenantIDField() + getGroupKeyRunModel() + tickerField() } -type actionWithPrismaTenantIDSetParam struct { +type getGroupKeyRunWithPrismaTickerSetParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaTenantIDSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTickerSetParam) field() builder.Field { return p.data } -func (p actionWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTickerSetParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaTenantIDSetParam) actionModel() {} +func (p getGroupKeyRunWithPrismaTickerSetParam) getGroupKeyRunModel() {} -func (p actionWithPrismaTenantIDSetParam) tenantIDField() {} +func (p getGroupKeyRunWithPrismaTickerSetParam) tickerField() {} -type ActionWithPrismaTenantIDWhereParam interface { +type GetGroupKeyRunWithPrismaTickerWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() - tenantIDField() + getGroupKeyRunModel() + tickerField() } -type actionWithPrismaTenantIDEqualsParam struct { +type getGroupKeyRunWithPrismaTickerEqualsParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTickerEqualsParam) field() builder.Field { return p.data } -func (p actionWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTickerEqualsParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaTenantIDEqualsParam) actionModel() {} +func (p getGroupKeyRunWithPrismaTickerEqualsParam) getGroupKeyRunModel() {} -func (p actionWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p getGroupKeyRunWithPrismaTickerEqualsParam) tickerField() {} -func (actionWithPrismaTenantIDSetParam) settable() {} -func (actionWithPrismaTenantIDEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaTickerSetParam) settable() {} +func (getGroupKeyRunWithPrismaTickerEqualsParam) equals() {} -type actionWithPrismaTenantIDEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaTickerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTickerEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaTenantIDEqualsUniqueParam) actionModel() {} -func (p actionWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p getGroupKeyRunWithPrismaTickerEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaTickerEqualsUniqueParam) tickerField() {} -func (actionWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (actionWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaTickerEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaTickerEqualsUniqueParam) equals() {} -type ActionWithPrismaStepsEqualsSetParam interface { +type GetGroupKeyRunWithPrismaTickerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - actionModel() - stepsField() + getGroupKeyRunModel() + tickerIDField() } -type ActionWithPrismaStepsSetParam interface { +type GetGroupKeyRunWithPrismaTickerIDSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() - stepsField() + getGroupKeyRunModel() + tickerIDField() } -type actionWithPrismaStepsSetParam struct { +type getGroupKeyRunWithPrismaTickerIDSetParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaStepsSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTickerIDSetParam) field() builder.Field { return p.data } -func (p actionWithPrismaStepsSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTickerIDSetParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaStepsSetParam) actionModel() {} +func (p getGroupKeyRunWithPrismaTickerIDSetParam) getGroupKeyRunModel() {} -func (p actionWithPrismaStepsSetParam) stepsField() {} +func (p getGroupKeyRunWithPrismaTickerIDSetParam) tickerIDField() {} -type ActionWithPrismaStepsWhereParam interface { +type GetGroupKeyRunWithPrismaTickerIDWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() - stepsField() + getGroupKeyRunModel() + tickerIDField() } -type actionWithPrismaStepsEqualsParam struct { +type getGroupKeyRunWithPrismaTickerIDEqualsParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaStepsEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTickerIDEqualsParam) field() builder.Field { return p.data } -func (p actionWithPrismaStepsEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTickerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaStepsEqualsParam) actionModel() {} +func (p getGroupKeyRunWithPrismaTickerIDEqualsParam) getGroupKeyRunModel() {} -func (p actionWithPrismaStepsEqualsParam) stepsField() {} +func (p getGroupKeyRunWithPrismaTickerIDEqualsParam) tickerIDField() {} -func (actionWithPrismaStepsSetParam) settable() {} -func (actionWithPrismaStepsEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaTickerIDSetParam) settable() {} +func (getGroupKeyRunWithPrismaTickerIDEqualsParam) equals() {} -type actionWithPrismaStepsEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaStepsEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionWithPrismaStepsEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaStepsEqualsUniqueParam) actionModel() {} -func (p actionWithPrismaStepsEqualsUniqueParam) stepsField() {} +func (p getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} -func (actionWithPrismaStepsEqualsUniqueParam) unique() {} -func (actionWithPrismaStepsEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) equals() {} -type ActionWithPrismaWorkersEqualsSetParam interface { +type GetGroupKeyRunWithPrismaStatusEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - actionModel() - workersField() + getGroupKeyRunModel() + statusField() } -type ActionWithPrismaWorkersSetParam interface { +type GetGroupKeyRunWithPrismaStatusSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() - workersField() + getGroupKeyRunModel() + statusField() } -type actionWithPrismaWorkersSetParam struct { +type getGroupKeyRunWithPrismaStatusSetParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaWorkersSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaStatusSetParam) field() builder.Field { return p.data } -func (p actionWithPrismaWorkersSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaStatusSetParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaWorkersSetParam) actionModel() {} +func (p getGroupKeyRunWithPrismaStatusSetParam) getGroupKeyRunModel() {} -func (p actionWithPrismaWorkersSetParam) workersField() {} +func (p getGroupKeyRunWithPrismaStatusSetParam) statusField() {} -type ActionWithPrismaWorkersWhereParam interface { +type GetGroupKeyRunWithPrismaStatusWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() - workersField() + getGroupKeyRunModel() + statusField() } -type actionWithPrismaWorkersEqualsParam struct { +type getGroupKeyRunWithPrismaStatusEqualsParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaWorkersEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaStatusEqualsParam) field() builder.Field { return p.data } -func (p actionWithPrismaWorkersEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaStatusEqualsParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaWorkersEqualsParam) actionModel() {} +func (p getGroupKeyRunWithPrismaStatusEqualsParam) getGroupKeyRunModel() {} -func (p actionWithPrismaWorkersEqualsParam) workersField() {} +func (p getGroupKeyRunWithPrismaStatusEqualsParam) statusField() {} -func (actionWithPrismaWorkersSetParam) settable() {} -func (actionWithPrismaWorkersEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaStatusSetParam) settable() {} +func (getGroupKeyRunWithPrismaStatusEqualsParam) equals() {} -type actionWithPrismaWorkersEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaStatusEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaWorkersEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaStatusEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionWithPrismaWorkersEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaWorkersEqualsUniqueParam) actionModel() {} -func (p actionWithPrismaWorkersEqualsUniqueParam) workersField() {} +func (p getGroupKeyRunWithPrismaStatusEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaStatusEqualsUniqueParam) statusField() {} -func (actionWithPrismaWorkersEqualsUniqueParam) unique() {} -func (actionWithPrismaWorkersEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaStatusEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaStatusEqualsUniqueParam) equals() {} -type ActionWithPrismaConcurrencyEqualsSetParam interface { +type GetGroupKeyRunWithPrismaInputEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - actionModel() - concurrencyField() + getGroupKeyRunModel() + inputField() } -type ActionWithPrismaConcurrencySetParam interface { +type GetGroupKeyRunWithPrismaInputSetParam interface { field() builder.Field getQuery() builder.Query - actionModel() - concurrencyField() + getGroupKeyRunModel() + inputField() } -type actionWithPrismaConcurrencySetParam struct { +type getGroupKeyRunWithPrismaInputSetParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaConcurrencySetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaInputSetParam) field() builder.Field { return p.data } -func (p actionWithPrismaConcurrencySetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaInputSetParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaConcurrencySetParam) actionModel() {} +func (p getGroupKeyRunWithPrismaInputSetParam) getGroupKeyRunModel() {} -func (p actionWithPrismaConcurrencySetParam) concurrencyField() {} +func (p getGroupKeyRunWithPrismaInputSetParam) inputField() {} -type ActionWithPrismaConcurrencyWhereParam interface { +type GetGroupKeyRunWithPrismaInputWhereParam interface { field() builder.Field getQuery() builder.Query - actionModel() - concurrencyField() + getGroupKeyRunModel() + inputField() } -type actionWithPrismaConcurrencyEqualsParam struct { +type getGroupKeyRunWithPrismaInputEqualsParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaConcurrencyEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaInputEqualsParam) field() builder.Field { return p.data } -func (p actionWithPrismaConcurrencyEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaInputEqualsParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaConcurrencyEqualsParam) actionModel() {} +func (p getGroupKeyRunWithPrismaInputEqualsParam) getGroupKeyRunModel() {} -func (p actionWithPrismaConcurrencyEqualsParam) concurrencyField() {} +func (p getGroupKeyRunWithPrismaInputEqualsParam) inputField() {} -func (actionWithPrismaConcurrencySetParam) settable() {} -func (actionWithPrismaConcurrencyEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaInputSetParam) settable() {} +func (getGroupKeyRunWithPrismaInputEqualsParam) equals() {} -type actionWithPrismaConcurrencyEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaInputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p actionWithPrismaConcurrencyEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaInputEqualsUniqueParam) field() builder.Field { return p.data } -func (p actionWithPrismaConcurrencyEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p actionWithPrismaConcurrencyEqualsUniqueParam) actionModel() {} -func (p actionWithPrismaConcurrencyEqualsUniqueParam) concurrencyField() {} - -func (actionWithPrismaConcurrencyEqualsUniqueParam) unique() {} -func (actionWithPrismaConcurrencyEqualsUniqueParam) equals() {} - -type stepActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p getGroupKeyRunWithPrismaInputEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaInputEqualsUniqueParam) inputField() {} -var stepOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "readableId"}, - {Name: "tenantId"}, - {Name: "jobId"}, - {Name: "actionId"}, - {Name: "timeout"}, - {Name: "retries"}, - {Name: "customUserData"}, - {Name: "scheduleTimeout"}, -} +func (getGroupKeyRunWithPrismaInputEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaInputEqualsUniqueParam) equals() {} -type StepRelationWith interface { +type GetGroupKeyRunWithPrismaOutputEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - stepRelation() + equals() + getGroupKeyRunModel() + outputField() } -type StepWhereParam interface { +type GetGroupKeyRunWithPrismaOutputSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() + getGroupKeyRunModel() + outputField() } -type stepDefaultParam struct { +type getGroupKeyRunWithPrismaOutputSetParam struct { data builder.Field query builder.Query } -func (p stepDefaultParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaOutputSetParam) field() builder.Field { return p.data } -func (p stepDefaultParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaOutputSetParam) getQuery() builder.Query { return p.query } -func (p stepDefaultParam) stepModel() {} +func (p getGroupKeyRunWithPrismaOutputSetParam) getGroupKeyRunModel() {} -type StepOrderByParam interface { +func (p getGroupKeyRunWithPrismaOutputSetParam) outputField() {} + +type GetGroupKeyRunWithPrismaOutputWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() + getGroupKeyRunModel() + outputField() } -type stepOrderByParam struct { +type getGroupKeyRunWithPrismaOutputEqualsParam struct { data builder.Field query builder.Query } -func (p stepOrderByParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaOutputEqualsParam) field() builder.Field { return p.data } -func (p stepOrderByParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaOutputEqualsParam) getQuery() builder.Query { return p.query } -func (p stepOrderByParam) stepModel() {} +func (p getGroupKeyRunWithPrismaOutputEqualsParam) getGroupKeyRunModel() {} -type StepCursorParam interface { - field() builder.Field - getQuery() builder.Query - stepModel() - isCursor() -} +func (p getGroupKeyRunWithPrismaOutputEqualsParam) outputField() {} -type stepCursorParam struct { +func (getGroupKeyRunWithPrismaOutputSetParam) settable() {} +func (getGroupKeyRunWithPrismaOutputEqualsParam) equals() {} + +type getGroupKeyRunWithPrismaOutputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepCursorParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaOutputEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepCursorParam) isCursor() {} - -func (p stepCursorParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaOutputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepCursorParam) stepModel() {} +func (p getGroupKeyRunWithPrismaOutputEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaOutputEqualsUniqueParam) outputField() {} -type StepParamUnique interface { +func (getGroupKeyRunWithPrismaOutputEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaOutputEqualsUniqueParam) equals() {} + +type GetGroupKeyRunWithPrismaRequeueAfterEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - stepModel() + equals() + getGroupKeyRunModel() + requeueAfterField() } -type stepParamUnique struct { +type GetGroupKeyRunWithPrismaRequeueAfterSetParam interface { + field() builder.Field + getQuery() builder.Query + getGroupKeyRunModel() + requeueAfterField() +} + +type getGroupKeyRunWithPrismaRequeueAfterSetParam struct { data builder.Field query builder.Query } -func (p stepParamUnique) stepModel() {} - -func (stepParamUnique) unique() {} - -func (p stepParamUnique) field() builder.Field { +func (p getGroupKeyRunWithPrismaRequeueAfterSetParam) field() builder.Field { return p.data } -func (p stepParamUnique) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaRequeueAfterSetParam) getQuery() builder.Query { return p.query } -type StepEqualsWhereParam interface { +func (p getGroupKeyRunWithPrismaRequeueAfterSetParam) getGroupKeyRunModel() {} + +func (p getGroupKeyRunWithPrismaRequeueAfterSetParam) requeueAfterField() {} + +type GetGroupKeyRunWithPrismaRequeueAfterWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - stepModel() + getGroupKeyRunModel() + requeueAfterField() } -type stepEqualsParam struct { +type getGroupKeyRunWithPrismaRequeueAfterEqualsParam struct { data builder.Field query builder.Query } -func (p stepEqualsParam) stepModel() {} - -func (stepEqualsParam) equals() {} - -func (p stepEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaRequeueAfterEqualsParam) field() builder.Field { return p.data } -func (p stepEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaRequeueAfterEqualsParam) getQuery() builder.Query { return p.query } -type StepEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - stepModel() -} +func (p getGroupKeyRunWithPrismaRequeueAfterEqualsParam) getGroupKeyRunModel() {} -type stepEqualsUniqueParam struct { +func (p getGroupKeyRunWithPrismaRequeueAfterEqualsParam) requeueAfterField() {} + +func (getGroupKeyRunWithPrismaRequeueAfterSetParam) settable() {} +func (getGroupKeyRunWithPrismaRequeueAfterEqualsParam) equals() {} + +type getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepEqualsUniqueParam) stepModel() {} - -func (stepEqualsUniqueParam) unique() {} -func (stepEqualsUniqueParam) equals() {} - -func (p stepEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) getQuery() builder.Query { return p.query } -type StepSetParam interface { - field() builder.Field - settable() - stepModel() -} - -type stepSetParam struct { - data builder.Field -} - -func (stepSetParam) settable() {} - -func (p stepSetParam) field() builder.Field { - return p.data -} +func (p getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) requeueAfterField() {} -func (p stepSetParam) stepModel() {} +func (getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) equals() {} -type StepWithPrismaIDEqualsSetParam interface { +type GetGroupKeyRunWithPrismaScheduleTimeoutAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - idField() + getGroupKeyRunModel() + scheduleTimeoutAtField() } -type StepWithPrismaIDSetParam interface { +type GetGroupKeyRunWithPrismaScheduleTimeoutAtSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - idField() + getGroupKeyRunModel() + scheduleTimeoutAtField() } -type stepWithPrismaIDSetParam struct { +type getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaIDSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaIDSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaIDSetParam) stepModel() {} +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) getGroupKeyRunModel() {} -func (p stepWithPrismaIDSetParam) idField() {} +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) scheduleTimeoutAtField() {} -type StepWithPrismaIDWhereParam interface { +type GetGroupKeyRunWithPrismaScheduleTimeoutAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - idField() + getGroupKeyRunModel() + scheduleTimeoutAtField() } -type stepWithPrismaIDEqualsParam struct { +type getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaIDEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaIDEqualsParam) stepModel() {} +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) getGroupKeyRunModel() {} -func (p stepWithPrismaIDEqualsParam) idField() {} +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) scheduleTimeoutAtField() {} -func (stepWithPrismaIDSetParam) settable() {} -func (stepWithPrismaIDEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) settable() {} +func (getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) equals() {} -type stepWithPrismaIDEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaIDEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaIDEqualsUniqueParam) idField() {} +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) scheduleTimeoutAtField() {} -func (stepWithPrismaIDEqualsUniqueParam) unique() {} -func (stepWithPrismaIDEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) equals() {} -type StepWithPrismaCreatedAtEqualsSetParam interface { +type GetGroupKeyRunWithPrismaErrorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - createdAtField() + getGroupKeyRunModel() + errorField() } -type StepWithPrismaCreatedAtSetParam interface { +type GetGroupKeyRunWithPrismaErrorSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - createdAtField() + getGroupKeyRunModel() + errorField() } -type stepWithPrismaCreatedAtSetParam struct { +type getGroupKeyRunWithPrismaErrorSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaCreatedAtSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaErrorSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaErrorSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaCreatedAtSetParam) stepModel() {} +func (p getGroupKeyRunWithPrismaErrorSetParam) getGroupKeyRunModel() {} -func (p stepWithPrismaCreatedAtSetParam) createdAtField() {} +func (p getGroupKeyRunWithPrismaErrorSetParam) errorField() {} -type StepWithPrismaCreatedAtWhereParam interface { +type GetGroupKeyRunWithPrismaErrorWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - createdAtField() + getGroupKeyRunModel() + errorField() } -type stepWithPrismaCreatedAtEqualsParam struct { +type getGroupKeyRunWithPrismaErrorEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaErrorEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaErrorEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaCreatedAtEqualsParam) stepModel() {} +func (p getGroupKeyRunWithPrismaErrorEqualsParam) getGroupKeyRunModel() {} -func (p stepWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p getGroupKeyRunWithPrismaErrorEqualsParam) errorField() {} -func (stepWithPrismaCreatedAtSetParam) settable() {} -func (stepWithPrismaCreatedAtEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaErrorSetParam) settable() {} +func (getGroupKeyRunWithPrismaErrorEqualsParam) equals() {} -type stepWithPrismaCreatedAtEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaErrorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaErrorEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaErrorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaCreatedAtEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p getGroupKeyRunWithPrismaErrorEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaErrorEqualsUniqueParam) errorField() {} -func (stepWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (stepWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaErrorEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaErrorEqualsUniqueParam) equals() {} -type StepWithPrismaUpdatedAtEqualsSetParam interface { +type GetGroupKeyRunWithPrismaStartedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - updatedAtField() + getGroupKeyRunModel() + startedAtField() } -type StepWithPrismaUpdatedAtSetParam interface { +type GetGroupKeyRunWithPrismaStartedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - updatedAtField() + getGroupKeyRunModel() + startedAtField() } -type stepWithPrismaUpdatedAtSetParam struct { +type getGroupKeyRunWithPrismaStartedAtSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaStartedAtSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaStartedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaUpdatedAtSetParam) stepModel() {} +func (p getGroupKeyRunWithPrismaStartedAtSetParam) getGroupKeyRunModel() {} -func (p stepWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p getGroupKeyRunWithPrismaStartedAtSetParam) startedAtField() {} -type StepWithPrismaUpdatedAtWhereParam interface { +type GetGroupKeyRunWithPrismaStartedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - updatedAtField() + getGroupKeyRunModel() + startedAtField() } -type stepWithPrismaUpdatedAtEqualsParam struct { +type getGroupKeyRunWithPrismaStartedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaStartedAtEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaStartedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaUpdatedAtEqualsParam) stepModel() {} +func (p getGroupKeyRunWithPrismaStartedAtEqualsParam) getGroupKeyRunModel() {} -func (p stepWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p getGroupKeyRunWithPrismaStartedAtEqualsParam) startedAtField() {} -func (stepWithPrismaUpdatedAtSetParam) settable() {} -func (stepWithPrismaUpdatedAtEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaStartedAtSetParam) settable() {} +func (getGroupKeyRunWithPrismaStartedAtEqualsParam) equals() {} -type stepWithPrismaUpdatedAtEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaUpdatedAtEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} -func (stepWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (stepWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) equals() {} -type StepWithPrismaDeletedAtEqualsSetParam interface { +type GetGroupKeyRunWithPrismaFinishedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - deletedAtField() + getGroupKeyRunModel() + finishedAtField() } -type StepWithPrismaDeletedAtSetParam interface { +type GetGroupKeyRunWithPrismaFinishedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - deletedAtField() + getGroupKeyRunModel() + finishedAtField() } -type stepWithPrismaDeletedAtSetParam struct { +type getGroupKeyRunWithPrismaFinishedAtSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaDeletedAtSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaFinishedAtSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaFinishedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaDeletedAtSetParam) stepModel() {} +func (p getGroupKeyRunWithPrismaFinishedAtSetParam) getGroupKeyRunModel() {} -func (p stepWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p getGroupKeyRunWithPrismaFinishedAtSetParam) finishedAtField() {} -type StepWithPrismaDeletedAtWhereParam interface { +type GetGroupKeyRunWithPrismaFinishedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - deletedAtField() + getGroupKeyRunModel() + finishedAtField() } -type stepWithPrismaDeletedAtEqualsParam struct { +type getGroupKeyRunWithPrismaFinishedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaFinishedAtEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaDeletedAtEqualsParam) stepModel() {} +func (p getGroupKeyRunWithPrismaFinishedAtEqualsParam) getGroupKeyRunModel() {} -func (p stepWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p getGroupKeyRunWithPrismaFinishedAtEqualsParam) finishedAtField() {} -func (stepWithPrismaDeletedAtSetParam) settable() {} -func (stepWithPrismaDeletedAtEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaFinishedAtSetParam) settable() {} +func (getGroupKeyRunWithPrismaFinishedAtEqualsParam) equals() {} -type stepWithPrismaDeletedAtEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaDeletedAtEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} -func (stepWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (stepWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) equals() {} -type StepWithPrismaReadableIDEqualsSetParam interface { +type GetGroupKeyRunWithPrismaTimeoutAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - readableIDField() + getGroupKeyRunModel() + timeoutAtField() } -type StepWithPrismaReadableIDSetParam interface { +type GetGroupKeyRunWithPrismaTimeoutAtSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - readableIDField() + getGroupKeyRunModel() + timeoutAtField() } -type stepWithPrismaReadableIDSetParam struct { +type getGroupKeyRunWithPrismaTimeoutAtSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaReadableIDSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTimeoutAtSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaReadableIDSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTimeoutAtSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaReadableIDSetParam) stepModel() {} +func (p getGroupKeyRunWithPrismaTimeoutAtSetParam) getGroupKeyRunModel() {} -func (p stepWithPrismaReadableIDSetParam) readableIDField() {} +func (p getGroupKeyRunWithPrismaTimeoutAtSetParam) timeoutAtField() {} -type StepWithPrismaReadableIDWhereParam interface { +type GetGroupKeyRunWithPrismaTimeoutAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - readableIDField() + getGroupKeyRunModel() + timeoutAtField() } -type stepWithPrismaReadableIDEqualsParam struct { +type getGroupKeyRunWithPrismaTimeoutAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaReadableIDEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTimeoutAtEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaReadableIDEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTimeoutAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaReadableIDEqualsParam) stepModel() {} +func (p getGroupKeyRunWithPrismaTimeoutAtEqualsParam) getGroupKeyRunModel() {} -func (p stepWithPrismaReadableIDEqualsParam) readableIDField() {} +func (p getGroupKeyRunWithPrismaTimeoutAtEqualsParam) timeoutAtField() {} -func (stepWithPrismaReadableIDSetParam) settable() {} -func (stepWithPrismaReadableIDEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaTimeoutAtSetParam) settable() {} +func (getGroupKeyRunWithPrismaTimeoutAtEqualsParam) equals() {} -type stepWithPrismaReadableIDEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaReadableIDEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaReadableIDEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaReadableIDEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaReadableIDEqualsUniqueParam) readableIDField() {} +func (p getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) timeoutAtField() {} -func (stepWithPrismaReadableIDEqualsUniqueParam) unique() {} -func (stepWithPrismaReadableIDEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) equals() {} -type StepWithPrismaTenantEqualsSetParam interface { +type GetGroupKeyRunWithPrismaCancelledAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - tenantField() + getGroupKeyRunModel() + cancelledAtField() } -type StepWithPrismaTenantSetParam interface { +type GetGroupKeyRunWithPrismaCancelledAtSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - tenantField() + getGroupKeyRunModel() + cancelledAtField() } -type stepWithPrismaTenantSetParam struct { +type getGroupKeyRunWithPrismaCancelledAtSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTenantSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledAtSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaTenantSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledAtSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTenantSetParam) stepModel() {} +func (p getGroupKeyRunWithPrismaCancelledAtSetParam) getGroupKeyRunModel() {} -func (p stepWithPrismaTenantSetParam) tenantField() {} +func (p getGroupKeyRunWithPrismaCancelledAtSetParam) cancelledAtField() {} -type StepWithPrismaTenantWhereParam interface { +type GetGroupKeyRunWithPrismaCancelledAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - tenantField() + getGroupKeyRunModel() + cancelledAtField() } -type stepWithPrismaTenantEqualsParam struct { +type getGroupKeyRunWithPrismaCancelledAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTenantEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledAtEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTenantEqualsParam) stepModel() {} +func (p getGroupKeyRunWithPrismaCancelledAtEqualsParam) getGroupKeyRunModel() {} -func (p stepWithPrismaTenantEqualsParam) tenantField() {} +func (p getGroupKeyRunWithPrismaCancelledAtEqualsParam) cancelledAtField() {} -func (stepWithPrismaTenantSetParam) settable() {} -func (stepWithPrismaTenantEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaCancelledAtSetParam) settable() {} +func (getGroupKeyRunWithPrismaCancelledAtEqualsParam) equals() {} -type stepWithPrismaTenantEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTenantEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) cancelledAtField() {} -func (stepWithPrismaTenantEqualsUniqueParam) unique() {} -func (stepWithPrismaTenantEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) equals() {} -type StepWithPrismaTenantIDEqualsSetParam interface { +type GetGroupKeyRunWithPrismaCancelledReasonEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - tenantIDField() + getGroupKeyRunModel() + cancelledReasonField() } -type StepWithPrismaTenantIDSetParam interface { +type GetGroupKeyRunWithPrismaCancelledReasonSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - tenantIDField() + getGroupKeyRunModel() + cancelledReasonField() } -type stepWithPrismaTenantIDSetParam struct { +type getGroupKeyRunWithPrismaCancelledReasonSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTenantIDSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledReasonSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledReasonSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTenantIDSetParam) stepModel() {} +func (p getGroupKeyRunWithPrismaCancelledReasonSetParam) getGroupKeyRunModel() {} -func (p stepWithPrismaTenantIDSetParam) tenantIDField() {} +func (p getGroupKeyRunWithPrismaCancelledReasonSetParam) cancelledReasonField() {} -type StepWithPrismaTenantIDWhereParam interface { +type GetGroupKeyRunWithPrismaCancelledReasonWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - tenantIDField() + getGroupKeyRunModel() + cancelledReasonField() } -type stepWithPrismaTenantIDEqualsParam struct { +type getGroupKeyRunWithPrismaCancelledReasonEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledReasonEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledReasonEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTenantIDEqualsParam) stepModel() {} +func (p getGroupKeyRunWithPrismaCancelledReasonEqualsParam) getGroupKeyRunModel() {} -func (p stepWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p getGroupKeyRunWithPrismaCancelledReasonEqualsParam) cancelledReasonField() {} -func (stepWithPrismaTenantIDSetParam) settable() {} -func (stepWithPrismaTenantIDEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaCancelledReasonSetParam) settable() {} +func (getGroupKeyRunWithPrismaCancelledReasonEqualsParam) equals() {} -type stepWithPrismaTenantIDEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTenantIDEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) cancelledReasonField() {} -func (stepWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (stepWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) equals() {} -type StepWithPrismaJobEqualsSetParam interface { +type GetGroupKeyRunWithPrismaCancelledErrorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - jobField() + getGroupKeyRunModel() + cancelledErrorField() } -type StepWithPrismaJobSetParam interface { +type GetGroupKeyRunWithPrismaCancelledErrorSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - jobField() + getGroupKeyRunModel() + cancelledErrorField() } -type stepWithPrismaJobSetParam struct { +type getGroupKeyRunWithPrismaCancelledErrorSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaJobSetParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledErrorSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaJobSetParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledErrorSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaJobSetParam) stepModel() {} +func (p getGroupKeyRunWithPrismaCancelledErrorSetParam) getGroupKeyRunModel() {} -func (p stepWithPrismaJobSetParam) jobField() {} +func (p getGroupKeyRunWithPrismaCancelledErrorSetParam) cancelledErrorField() {} -type StepWithPrismaJobWhereParam interface { +type GetGroupKeyRunWithPrismaCancelledErrorWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - jobField() + getGroupKeyRunModel() + cancelledErrorField() } -type stepWithPrismaJobEqualsParam struct { +type getGroupKeyRunWithPrismaCancelledErrorEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaJobEqualsParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledErrorEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaJobEqualsParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledErrorEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaJobEqualsParam) stepModel() {} +func (p getGroupKeyRunWithPrismaCancelledErrorEqualsParam) getGroupKeyRunModel() {} -func (p stepWithPrismaJobEqualsParam) jobField() {} +func (p getGroupKeyRunWithPrismaCancelledErrorEqualsParam) cancelledErrorField() {} -func (stepWithPrismaJobSetParam) settable() {} -func (stepWithPrismaJobEqualsParam) equals() {} +func (getGroupKeyRunWithPrismaCancelledErrorSetParam) settable() {} +func (getGroupKeyRunWithPrismaCancelledErrorEqualsParam) equals() {} -type stepWithPrismaJobEqualsUniqueParam struct { +type getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaJobEqualsUniqueParam) field() builder.Field { +func (p getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaJobEqualsUniqueParam) getQuery() builder.Query { +func (p getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaJobEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaJobEqualsUniqueParam) jobField() {} +func (p getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) getGroupKeyRunModel() {} +func (p getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) cancelledErrorField() {} -func (stepWithPrismaJobEqualsUniqueParam) unique() {} -func (stepWithPrismaJobEqualsUniqueParam) equals() {} +func (getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) unique() {} +func (getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) equals() {} -type StepWithPrismaJobIDEqualsSetParam interface { - field() builder.Field +type workflowRunTriggeredByActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workflowRunTriggeredByOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "parentId"}, + {Name: "input"}, + {Name: "eventId"}, + {Name: "cronParentId"}, + {Name: "cronSchedule"}, + {Name: "scheduledId"}, +} + +type WorkflowRunTriggeredByRelationWith interface { getQuery() builder.Query - equals() - stepModel() - jobIDField() + with() + workflowRunTriggeredByRelation() } -type StepWithPrismaJobIDSetParam interface { +type WorkflowRunTriggeredByWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - jobIDField() + workflowRunTriggeredByModel() } -type stepWithPrismaJobIDSetParam struct { +type workflowRunTriggeredByDefaultParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaJobIDSetParam) field() builder.Field { +func (p workflowRunTriggeredByDefaultParam) field() builder.Field { return p.data } -func (p stepWithPrismaJobIDSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByDefaultParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaJobIDSetParam) stepModel() {} - -func (p stepWithPrismaJobIDSetParam) jobIDField() {} +func (p workflowRunTriggeredByDefaultParam) workflowRunTriggeredByModel() {} -type StepWithPrismaJobIDWhereParam interface { +type WorkflowRunTriggeredByOrderByParam interface { field() builder.Field getQuery() builder.Query - stepModel() - jobIDField() + workflowRunTriggeredByModel() } -type stepWithPrismaJobIDEqualsParam struct { +type workflowRunTriggeredByOrderByParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaJobIDEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByOrderByParam) field() builder.Field { return p.data } -func (p stepWithPrismaJobIDEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByOrderByParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaJobIDEqualsParam) stepModel() {} - -func (p stepWithPrismaJobIDEqualsParam) jobIDField() {} +func (p workflowRunTriggeredByOrderByParam) workflowRunTriggeredByModel() {} -func (stepWithPrismaJobIDSetParam) settable() {} -func (stepWithPrismaJobIDEqualsParam) equals() {} +type WorkflowRunTriggeredByCursorParam interface { + field() builder.Field + getQuery() builder.Query + workflowRunTriggeredByModel() + isCursor() +} -type stepWithPrismaJobIDEqualsUniqueParam struct { +type workflowRunTriggeredByCursorParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaJobIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByCursorParam) field() builder.Field { return p.data } -func (p stepWithPrismaJobIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByCursorParam) isCursor() {} + +func (p workflowRunTriggeredByCursorParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaJobIDEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaJobIDEqualsUniqueParam) jobIDField() {} - -func (stepWithPrismaJobIDEqualsUniqueParam) unique() {} -func (stepWithPrismaJobIDEqualsUniqueParam) equals() {} - -type StepWithPrismaActionEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - stepModel() - actionField() -} +func (p workflowRunTriggeredByCursorParam) workflowRunTriggeredByModel() {} -type StepWithPrismaActionSetParam interface { +type WorkflowRunTriggeredByParamUnique interface { field() builder.Field getQuery() builder.Query - stepModel() - actionField() + unique() + workflowRunTriggeredByModel() } -type stepWithPrismaActionSetParam struct { +type workflowRunTriggeredByParamUnique struct { data builder.Field query builder.Query } -func (p stepWithPrismaActionSetParam) field() builder.Field { +func (p workflowRunTriggeredByParamUnique) workflowRunTriggeredByModel() {} + +func (workflowRunTriggeredByParamUnique) unique() {} + +func (p workflowRunTriggeredByParamUnique) field() builder.Field { return p.data } -func (p stepWithPrismaActionSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByParamUnique) getQuery() builder.Query { return p.query } -func (p stepWithPrismaActionSetParam) stepModel() {} - -func (p stepWithPrismaActionSetParam) actionField() {} - -type StepWithPrismaActionWhereParam interface { +type WorkflowRunTriggeredByEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - actionField() + equals() + workflowRunTriggeredByModel() } -type stepWithPrismaActionEqualsParam struct { +type workflowRunTriggeredByEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaActionEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByEqualsParam) workflowRunTriggeredByModel() {} + +func (workflowRunTriggeredByEqualsParam) equals() {} + +func (p workflowRunTriggeredByEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaActionEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaActionEqualsParam) stepModel() {} - -func (p stepWithPrismaActionEqualsParam) actionField() {} - -func (stepWithPrismaActionSetParam) settable() {} -func (stepWithPrismaActionEqualsParam) equals() {} +type WorkflowRunTriggeredByEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workflowRunTriggeredByModel() +} -type stepWithPrismaActionEqualsUniqueParam struct { +type workflowRunTriggeredByEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaActionEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByEqualsUniqueParam) workflowRunTriggeredByModel() {} + +func (workflowRunTriggeredByEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByEqualsUniqueParam) equals() {} + +func (p workflowRunTriggeredByEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaActionEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaActionEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaActionEqualsUniqueParam) actionField() {} +type WorkflowRunTriggeredBySetParam interface { + field() builder.Field + settable() + workflowRunTriggeredByModel() +} -func (stepWithPrismaActionEqualsUniqueParam) unique() {} -func (stepWithPrismaActionEqualsUniqueParam) equals() {} +type workflowRunTriggeredBySetParam struct { + data builder.Field +} -type StepWithPrismaActionIDEqualsSetParam interface { +func (workflowRunTriggeredBySetParam) settable() {} + +func (p workflowRunTriggeredBySetParam) field() builder.Field { + return p.data +} + +func (p workflowRunTriggeredBySetParam) workflowRunTriggeredByModel() {} + +type WorkflowRunTriggeredByWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - actionIDField() + workflowRunTriggeredByModel() + idField() } -type StepWithPrismaActionIDSetParam interface { +type WorkflowRunTriggeredByWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - actionIDField() + workflowRunTriggeredByModel() + idField() } -type stepWithPrismaActionIDSetParam struct { +type workflowRunTriggeredByWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaActionIDSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaActionIDSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaActionIDSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaIDSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaActionIDSetParam) actionIDField() {} +func (p workflowRunTriggeredByWithPrismaIDSetParam) idField() {} -type StepWithPrismaActionIDWhereParam interface { +type WorkflowRunTriggeredByWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - actionIDField() + workflowRunTriggeredByModel() + idField() } -type stepWithPrismaActionIDEqualsParam struct { +type workflowRunTriggeredByWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaActionIDEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaActionIDEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaActionIDEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaIDEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaActionIDEqualsParam) actionIDField() {} +func (p workflowRunTriggeredByWithPrismaIDEqualsParam) idField() {} -func (stepWithPrismaActionIDSetParam) settable() {} -func (stepWithPrismaActionIDEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaIDSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaIDEqualsParam) equals() {} -type stepWithPrismaActionIDEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaActionIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaActionIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaActionIDEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaActionIDEqualsUniqueParam) actionIDField() {} +func (p workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) idField() {} -func (stepWithPrismaActionIDEqualsUniqueParam) unique() {} -func (stepWithPrismaActionIDEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) equals() {} -type StepWithPrismaTimeoutEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - timeoutField() + workflowRunTriggeredByModel() + createdAtField() } -type StepWithPrismaTimeoutSetParam interface { +type WorkflowRunTriggeredByWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - timeoutField() + workflowRunTriggeredByModel() + createdAtField() } -type stepWithPrismaTimeoutSetParam struct { +type workflowRunTriggeredByWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTimeoutSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaTimeoutSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTimeoutSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaCreatedAtSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaTimeoutSetParam) timeoutField() {} +func (p workflowRunTriggeredByWithPrismaCreatedAtSetParam) createdAtField() {} -type StepWithPrismaTimeoutWhereParam interface { +type WorkflowRunTriggeredByWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - timeoutField() + workflowRunTriggeredByModel() + createdAtField() } -type stepWithPrismaTimeoutEqualsParam struct { +type workflowRunTriggeredByWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTimeoutEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaTimeoutEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTimeoutEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaTimeoutEqualsParam) timeoutField() {} +func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (stepWithPrismaTimeoutSetParam) settable() {} -func (stepWithPrismaTimeoutEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaCreatedAtSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) equals() {} -type stepWithPrismaTimeoutEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaTimeoutEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaTimeoutEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaTimeoutEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaTimeoutEqualsUniqueParam) timeoutField() {} +func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (stepWithPrismaTimeoutEqualsUniqueParam) unique() {} -func (stepWithPrismaTimeoutEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type StepWithPrismaRetriesEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - retriesField() + workflowRunTriggeredByModel() + updatedAtField() } -type StepWithPrismaRetriesSetParam interface { +type WorkflowRunTriggeredByWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - retriesField() + workflowRunTriggeredByModel() + updatedAtField() } -type stepWithPrismaRetriesSetParam struct { +type workflowRunTriggeredByWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaRetriesSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaRetriesSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaRetriesSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaUpdatedAtSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaRetriesSetParam) retriesField() {} +func (p workflowRunTriggeredByWithPrismaUpdatedAtSetParam) updatedAtField() {} -type StepWithPrismaRetriesWhereParam interface { +type WorkflowRunTriggeredByWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - retriesField() + workflowRunTriggeredByModel() + updatedAtField() } -type stepWithPrismaRetriesEqualsParam struct { +type workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaRetriesEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaRetriesEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaRetriesEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaRetriesEqualsParam) retriesField() {} +func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (stepWithPrismaRetriesSetParam) settable() {} -func (stepWithPrismaRetriesEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaUpdatedAtSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) equals() {} -type stepWithPrismaRetriesEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaRetriesEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaRetriesEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaRetriesEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaRetriesEqualsUniqueParam) retriesField() {} +func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (stepWithPrismaRetriesEqualsUniqueParam) unique() {} -func (stepWithPrismaRetriesEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type StepWithPrismaCustomUserDataEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - customUserDataField() + workflowRunTriggeredByModel() + deletedAtField() } -type StepWithPrismaCustomUserDataSetParam interface { +type WorkflowRunTriggeredByWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - customUserDataField() + workflowRunTriggeredByModel() + deletedAtField() } -type stepWithPrismaCustomUserDataSetParam struct { +type workflowRunTriggeredByWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaCustomUserDataSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaCustomUserDataSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaCustomUserDataSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaDeletedAtSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaCustomUserDataSetParam) customUserDataField() {} +func (p workflowRunTriggeredByWithPrismaDeletedAtSetParam) deletedAtField() {} -type StepWithPrismaCustomUserDataWhereParam interface { +type WorkflowRunTriggeredByWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - customUserDataField() + workflowRunTriggeredByModel() + deletedAtField() } -type stepWithPrismaCustomUserDataEqualsParam struct { +type workflowRunTriggeredByWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaCustomUserDataEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaCustomUserDataEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaCustomUserDataEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaCustomUserDataEqualsParam) customUserDataField() {} +func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (stepWithPrismaCustomUserDataSetParam) settable() {} -func (stepWithPrismaCustomUserDataEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaDeletedAtSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) equals() {} -type stepWithPrismaCustomUserDataEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaCustomUserDataEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaCustomUserDataEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaCustomUserDataEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaCustomUserDataEqualsUniqueParam) customUserDataField() {} +func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (stepWithPrismaCustomUserDataEqualsUniqueParam) unique() {} -func (stepWithPrismaCustomUserDataEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type StepWithPrismaChildrenEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - childrenField() + workflowRunTriggeredByModel() + tenantField() } -type StepWithPrismaChildrenSetParam interface { +type WorkflowRunTriggeredByWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - childrenField() + workflowRunTriggeredByModel() + tenantField() } -type stepWithPrismaChildrenSetParam struct { +type workflowRunTriggeredByWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaChildrenSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaChildrenSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaChildrenSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaTenantSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaChildrenSetParam) childrenField() {} +func (p workflowRunTriggeredByWithPrismaTenantSetParam) tenantField() {} -type StepWithPrismaChildrenWhereParam interface { +type WorkflowRunTriggeredByWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - childrenField() + workflowRunTriggeredByModel() + tenantField() } -type stepWithPrismaChildrenEqualsParam struct { +type workflowRunTriggeredByWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaChildrenEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaChildrenEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaChildrenEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaTenantEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaChildrenEqualsParam) childrenField() {} +func (p workflowRunTriggeredByWithPrismaTenantEqualsParam) tenantField() {} -func (stepWithPrismaChildrenSetParam) settable() {} -func (stepWithPrismaChildrenEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaTenantSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaTenantEqualsParam) equals() {} -type stepWithPrismaChildrenEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaChildrenEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaChildrenEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaChildrenEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaChildrenEqualsUniqueParam) childrenField() {} +func (p workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (stepWithPrismaChildrenEqualsUniqueParam) unique() {} -func (stepWithPrismaChildrenEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) equals() {} -type StepWithPrismaParentsEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - parentsField() + workflowRunTriggeredByModel() + tenantIDField() } -type StepWithPrismaParentsSetParam interface { +type WorkflowRunTriggeredByWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - parentsField() + workflowRunTriggeredByModel() + tenantIDField() } -type stepWithPrismaParentsSetParam struct { +type workflowRunTriggeredByWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaParentsSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaParentsSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaParentsSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaTenantIDSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaParentsSetParam) parentsField() {} +func (p workflowRunTriggeredByWithPrismaTenantIDSetParam) tenantIDField() {} -type StepWithPrismaParentsWhereParam interface { +type WorkflowRunTriggeredByWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - parentsField() + workflowRunTriggeredByModel() + tenantIDField() } -type stepWithPrismaParentsEqualsParam struct { +type workflowRunTriggeredByWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaParentsEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaParentsEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaParentsEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaTenantIDEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaParentsEqualsParam) parentsField() {} +func (p workflowRunTriggeredByWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (stepWithPrismaParentsSetParam) settable() {} -func (stepWithPrismaParentsEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaTenantIDSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaTenantIDEqualsParam) equals() {} -type stepWithPrismaParentsEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaParentsEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaParentsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaParentsEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaParentsEqualsUniqueParam) parentsField() {} +func (p workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (stepWithPrismaParentsEqualsUniqueParam) unique() {} -func (stepWithPrismaParentsEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) equals() {} -type StepWithPrismaStepRunsEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaParentEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - stepRunsField() + workflowRunTriggeredByModel() + parentField() } -type StepWithPrismaStepRunsSetParam interface { +type WorkflowRunTriggeredByWithPrismaParentSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - stepRunsField() + workflowRunTriggeredByModel() + parentField() } -type stepWithPrismaStepRunsSetParam struct { +type workflowRunTriggeredByWithPrismaParentSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaStepRunsSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaParentSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaStepRunsSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaParentSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaStepRunsSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaParentSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaStepRunsSetParam) stepRunsField() {} +func (p workflowRunTriggeredByWithPrismaParentSetParam) parentField() {} -type StepWithPrismaStepRunsWhereParam interface { +type WorkflowRunTriggeredByWithPrismaParentWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - stepRunsField() + workflowRunTriggeredByModel() + parentField() } -type stepWithPrismaStepRunsEqualsParam struct { +type workflowRunTriggeredByWithPrismaParentEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaStepRunsEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaParentEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaStepRunsEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaParentEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaStepRunsEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaParentEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaStepRunsEqualsParam) stepRunsField() {} +func (p workflowRunTriggeredByWithPrismaParentEqualsParam) parentField() {} -func (stepWithPrismaStepRunsSetParam) settable() {} -func (stepWithPrismaStepRunsEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaParentSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaParentEqualsParam) equals() {} -type stepWithPrismaStepRunsEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaParentEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaStepRunsEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} +func (p workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) parentField() {} -func (stepWithPrismaStepRunsEqualsUniqueParam) unique() {} -func (stepWithPrismaStepRunsEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) equals() {} -type StepWithPrismaScheduleTimeoutEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaParentIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - scheduleTimeoutField() + workflowRunTriggeredByModel() + parentIDField() } -type StepWithPrismaScheduleTimeoutSetParam interface { +type WorkflowRunTriggeredByWithPrismaParentIDSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - scheduleTimeoutField() + workflowRunTriggeredByModel() + parentIDField() } -type stepWithPrismaScheduleTimeoutSetParam struct { +type workflowRunTriggeredByWithPrismaParentIDSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaScheduleTimeoutSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaParentIDSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaScheduleTimeoutSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaParentIDSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaScheduleTimeoutSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaParentIDSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaScheduleTimeoutSetParam) scheduleTimeoutField() {} +func (p workflowRunTriggeredByWithPrismaParentIDSetParam) parentIDField() {} -type StepWithPrismaScheduleTimeoutWhereParam interface { +type WorkflowRunTriggeredByWithPrismaParentIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - scheduleTimeoutField() + workflowRunTriggeredByModel() + parentIDField() } -type stepWithPrismaScheduleTimeoutEqualsParam struct { +type workflowRunTriggeredByWithPrismaParentIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaScheduleTimeoutEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaParentIDEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaScheduleTimeoutEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaParentIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaScheduleTimeoutEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaParentIDEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaScheduleTimeoutEqualsParam) scheduleTimeoutField() {} +func (p workflowRunTriggeredByWithPrismaParentIDEqualsParam) parentIDField() {} -func (stepWithPrismaScheduleTimeoutSetParam) settable() {} -func (stepWithPrismaScheduleTimeoutEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaParentIDSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaParentIDEqualsParam) equals() {} -type stepWithPrismaScheduleTimeoutEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaScheduleTimeoutEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaScheduleTimeoutEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaScheduleTimeoutEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaScheduleTimeoutEqualsUniqueParam) scheduleTimeoutField() {} +func (p workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) parentIDField() {} -func (stepWithPrismaScheduleTimeoutEqualsUniqueParam) unique() {} -func (stepWithPrismaScheduleTimeoutEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) equals() {} -type StepWithPrismaRateLimitsEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaInputEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepModel() - rateLimitsField() + workflowRunTriggeredByModel() + inputField() } -type StepWithPrismaRateLimitsSetParam interface { +type WorkflowRunTriggeredByWithPrismaInputSetParam interface { field() builder.Field getQuery() builder.Query - stepModel() - rateLimitsField() + workflowRunTriggeredByModel() + inputField() } -type stepWithPrismaRateLimitsSetParam struct { +type workflowRunTriggeredByWithPrismaInputSetParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaRateLimitsSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaInputSetParam) field() builder.Field { return p.data } -func (p stepWithPrismaRateLimitsSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaInputSetParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaRateLimitsSetParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaInputSetParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaRateLimitsSetParam) rateLimitsField() {} +func (p workflowRunTriggeredByWithPrismaInputSetParam) inputField() {} -type StepWithPrismaRateLimitsWhereParam interface { +type WorkflowRunTriggeredByWithPrismaInputWhereParam interface { field() builder.Field getQuery() builder.Query - stepModel() - rateLimitsField() + workflowRunTriggeredByModel() + inputField() } -type stepWithPrismaRateLimitsEqualsParam struct { +type workflowRunTriggeredByWithPrismaInputEqualsParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaRateLimitsEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaInputEqualsParam) field() builder.Field { return p.data } -func (p stepWithPrismaRateLimitsEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaInputEqualsParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaRateLimitsEqualsParam) stepModel() {} +func (p workflowRunTriggeredByWithPrismaInputEqualsParam) workflowRunTriggeredByModel() {} -func (p stepWithPrismaRateLimitsEqualsParam) rateLimitsField() {} +func (p workflowRunTriggeredByWithPrismaInputEqualsParam) inputField() {} -func (stepWithPrismaRateLimitsSetParam) settable() {} -func (stepWithPrismaRateLimitsEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaInputSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaInputEqualsParam) equals() {} -type stepWithPrismaRateLimitsEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaInputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepWithPrismaRateLimitsEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepWithPrismaRateLimitsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepWithPrismaRateLimitsEqualsUniqueParam) stepModel() {} -func (p stepWithPrismaRateLimitsEqualsUniqueParam) rateLimitsField() {} - -func (stepWithPrismaRateLimitsEqualsUniqueParam) unique() {} -func (stepWithPrismaRateLimitsEqualsUniqueParam) equals() {} - -type stepRateLimitActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) inputField() {} -var stepRateLimitOutput = []builder.Output{ - {Name: "units"}, - {Name: "stepId"}, - {Name: "rateLimitKey"}, - {Name: "tenantId"}, -} +func (workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) equals() {} -type StepRateLimitRelationWith interface { +type WorkflowRunTriggeredByWithPrismaEventEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - stepRateLimitRelation() + equals() + workflowRunTriggeredByModel() + eventField() } -type StepRateLimitWhereParam interface { +type WorkflowRunTriggeredByWithPrismaEventSetParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() + workflowRunTriggeredByModel() + eventField() } -type stepRateLimitDefaultParam struct { +type workflowRunTriggeredByWithPrismaEventSetParam struct { data builder.Field query builder.Query } -func (p stepRateLimitDefaultParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaEventSetParam) field() builder.Field { return p.data } -func (p stepRateLimitDefaultParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaEventSetParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitDefaultParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaEventSetParam) workflowRunTriggeredByModel() {} -type StepRateLimitOrderByParam interface { +func (p workflowRunTriggeredByWithPrismaEventSetParam) eventField() {} + +type WorkflowRunTriggeredByWithPrismaEventWhereParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() + workflowRunTriggeredByModel() + eventField() } -type stepRateLimitOrderByParam struct { +type workflowRunTriggeredByWithPrismaEventEqualsParam struct { data builder.Field query builder.Query } -func (p stepRateLimitOrderByParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaEventEqualsParam) field() builder.Field { return p.data } -func (p stepRateLimitOrderByParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaEventEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitOrderByParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaEventEqualsParam) workflowRunTriggeredByModel() {} -type StepRateLimitCursorParam interface { - field() builder.Field - getQuery() builder.Query - stepRateLimitModel() - isCursor() -} +func (p workflowRunTriggeredByWithPrismaEventEqualsParam) eventField() {} -type stepRateLimitCursorParam struct { +func (workflowRunTriggeredByWithPrismaEventSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaEventEqualsParam) equals() {} + +type workflowRunTriggeredByWithPrismaEventEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRateLimitCursorParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRateLimitCursorParam) isCursor() {} - -func (p stepRateLimitCursorParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitCursorParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) eventField() {} -type StepRateLimitParamUnique interface { +func (workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) equals() {} + +type WorkflowRunTriggeredByWithPrismaEventIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - stepRateLimitModel() + equals() + workflowRunTriggeredByModel() + eventIDField() } -type stepRateLimitParamUnique struct { +type WorkflowRunTriggeredByWithPrismaEventIDSetParam interface { + field() builder.Field + getQuery() builder.Query + workflowRunTriggeredByModel() + eventIDField() +} + +type workflowRunTriggeredByWithPrismaEventIDSetParam struct { data builder.Field query builder.Query } -func (p stepRateLimitParamUnique) stepRateLimitModel() {} - -func (stepRateLimitParamUnique) unique() {} - -func (p stepRateLimitParamUnique) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaEventIDSetParam) field() builder.Field { return p.data } -func (p stepRateLimitParamUnique) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaEventIDSetParam) getQuery() builder.Query { return p.query } -type StepRateLimitEqualsWhereParam interface { +func (p workflowRunTriggeredByWithPrismaEventIDSetParam) workflowRunTriggeredByModel() {} + +func (p workflowRunTriggeredByWithPrismaEventIDSetParam) eventIDField() {} + +type WorkflowRunTriggeredByWithPrismaEventIDWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - stepRateLimitModel() + workflowRunTriggeredByModel() + eventIDField() } -type stepRateLimitEqualsParam struct { +type workflowRunTriggeredByWithPrismaEventIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRateLimitEqualsParam) stepRateLimitModel() {} - -func (stepRateLimitEqualsParam) equals() {} - -func (p stepRateLimitEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaEventIDEqualsParam) field() builder.Field { return p.data } -func (p stepRateLimitEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaEventIDEqualsParam) getQuery() builder.Query { return p.query } -type StepRateLimitEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - stepRateLimitModel() -} +func (p workflowRunTriggeredByWithPrismaEventIDEqualsParam) workflowRunTriggeredByModel() {} -type stepRateLimitEqualsUniqueParam struct { +func (p workflowRunTriggeredByWithPrismaEventIDEqualsParam) eventIDField() {} + +func (workflowRunTriggeredByWithPrismaEventIDSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaEventIDEqualsParam) equals() {} + +type workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRateLimitEqualsUniqueParam) stepRateLimitModel() {} - -func (stepRateLimitEqualsUniqueParam) unique() {} -func (stepRateLimitEqualsUniqueParam) equals() {} - -func (p stepRateLimitEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRateLimitEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -type StepRateLimitSetParam interface { - field() builder.Field - settable() - stepRateLimitModel() -} - -type stepRateLimitSetParam struct { - data builder.Field -} - -func (stepRateLimitSetParam) settable() {} - -func (p stepRateLimitSetParam) field() builder.Field { - return p.data -} +func (p workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) eventIDField() {} -func (p stepRateLimitSetParam) stepRateLimitModel() {} +func (workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) equals() {} -type StepRateLimitWithPrismaUnitsEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaCronEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRateLimitModel() - unitsField() + workflowRunTriggeredByModel() + cronField() } -type StepRateLimitWithPrismaUnitsSetParam interface { +type WorkflowRunTriggeredByWithPrismaCronSetParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - unitsField() + workflowRunTriggeredByModel() + cronField() } -type stepRateLimitWithPrismaUnitsSetParam struct { +type workflowRunTriggeredByWithPrismaCronSetParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaUnitsSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronSetParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaUnitsSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronSetParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaUnitsSetParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaCronSetParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaUnitsSetParam) unitsField() {} +func (p workflowRunTriggeredByWithPrismaCronSetParam) cronField() {} -type StepRateLimitWithPrismaUnitsWhereParam interface { +type WorkflowRunTriggeredByWithPrismaCronWhereParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - unitsField() + workflowRunTriggeredByModel() + cronField() } -type stepRateLimitWithPrismaUnitsEqualsParam struct { +type workflowRunTriggeredByWithPrismaCronEqualsParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaUnitsEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronEqualsParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaUnitsEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaUnitsEqualsParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaCronEqualsParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaUnitsEqualsParam) unitsField() {} +func (p workflowRunTriggeredByWithPrismaCronEqualsParam) cronField() {} -func (stepRateLimitWithPrismaUnitsSetParam) settable() {} -func (stepRateLimitWithPrismaUnitsEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaCronSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaCronEqualsParam) equals() {} -type stepRateLimitWithPrismaUnitsEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaCronEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaUnitsEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaUnitsEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaUnitsEqualsUniqueParam) stepRateLimitModel() {} -func (p stepRateLimitWithPrismaUnitsEqualsUniqueParam) unitsField() {} +func (p workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) cronField() {} -func (stepRateLimitWithPrismaUnitsEqualsUniqueParam) unique() {} -func (stepRateLimitWithPrismaUnitsEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) equals() {} -type StepRateLimitWithPrismaStepEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaCronParentIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRateLimitModel() - stepField() + workflowRunTriggeredByModel() + cronParentIDField() } -type StepRateLimitWithPrismaStepSetParam interface { +type WorkflowRunTriggeredByWithPrismaCronParentIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - stepField() + workflowRunTriggeredByModel() + cronParentIDField() } -type stepRateLimitWithPrismaStepSetParam struct { +type workflowRunTriggeredByWithPrismaCronParentIDSetParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaStepSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronParentIDSetParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaStepSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronParentIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaStepSetParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaCronParentIDSetParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaStepSetParam) stepField() {} +func (p workflowRunTriggeredByWithPrismaCronParentIDSetParam) cronParentIDField() {} -type StepRateLimitWithPrismaStepWhereParam interface { +type WorkflowRunTriggeredByWithPrismaCronParentIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - stepField() + workflowRunTriggeredByModel() + cronParentIDField() } -type stepRateLimitWithPrismaStepEqualsParam struct { +type workflowRunTriggeredByWithPrismaCronParentIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaStepEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaStepEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaStepEqualsParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaStepEqualsParam) stepField() {} +func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) cronParentIDField() {} -func (stepRateLimitWithPrismaStepSetParam) settable() {} -func (stepRateLimitWithPrismaStepEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaCronParentIDSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) equals() {} -type stepRateLimitWithPrismaStepEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaStepEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaStepEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaStepEqualsUniqueParam) stepRateLimitModel() {} -func (p stepRateLimitWithPrismaStepEqualsUniqueParam) stepField() {} +func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) workflowRunTriggeredByModel() { +} +func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) cronParentIDField() {} -func (stepRateLimitWithPrismaStepEqualsUniqueParam) unique() {} -func (stepRateLimitWithPrismaStepEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) equals() {} -type StepRateLimitWithPrismaStepIDEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaCronScheduleEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRateLimitModel() - stepIDField() + workflowRunTriggeredByModel() + cronScheduleField() } -type StepRateLimitWithPrismaStepIDSetParam interface { +type WorkflowRunTriggeredByWithPrismaCronScheduleSetParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - stepIDField() + workflowRunTriggeredByModel() + cronScheduleField() } -type stepRateLimitWithPrismaStepIDSetParam struct { +type workflowRunTriggeredByWithPrismaCronScheduleSetParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaStepIDSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronScheduleSetParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaStepIDSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronScheduleSetParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaStepIDSetParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaCronScheduleSetParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaStepIDSetParam) stepIDField() {} +func (p workflowRunTriggeredByWithPrismaCronScheduleSetParam) cronScheduleField() {} -type StepRateLimitWithPrismaStepIDWhereParam interface { +type WorkflowRunTriggeredByWithPrismaCronScheduleWhereParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - stepIDField() + workflowRunTriggeredByModel() + cronScheduleField() } -type stepRateLimitWithPrismaStepIDEqualsParam struct { +type workflowRunTriggeredByWithPrismaCronScheduleEqualsParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaStepIDEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaStepIDEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaStepIDEqualsParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaStepIDEqualsParam) stepIDField() {} +func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) cronScheduleField() {} -func (stepRateLimitWithPrismaStepIDSetParam) settable() {} -func (stepRateLimitWithPrismaStepIDEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaCronScheduleSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) equals() {} -type stepRateLimitWithPrismaStepIDEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaStepIDEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaStepIDEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaStepIDEqualsUniqueParam) stepRateLimitModel() {} -func (p stepRateLimitWithPrismaStepIDEqualsUniqueParam) stepIDField() {} +func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) workflowRunTriggeredByModel() { +} +func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) cronScheduleField() {} -func (stepRateLimitWithPrismaStepIDEqualsUniqueParam) unique() {} -func (stepRateLimitWithPrismaStepIDEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) equals() {} -type StepRateLimitWithPrismaRateLimitEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaScheduledEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRateLimitModel() - rateLimitField() + workflowRunTriggeredByModel() + scheduledField() } -type StepRateLimitWithPrismaRateLimitSetParam interface { +type WorkflowRunTriggeredByWithPrismaScheduledSetParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - rateLimitField() + workflowRunTriggeredByModel() + scheduledField() } -type stepRateLimitWithPrismaRateLimitSetParam struct { +type workflowRunTriggeredByWithPrismaScheduledSetParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaRateLimitSetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaScheduledSetParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaRateLimitSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaScheduledSetParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaRateLimitSetParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaScheduledSetParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaRateLimitSetParam) rateLimitField() {} +func (p workflowRunTriggeredByWithPrismaScheduledSetParam) scheduledField() {} -type StepRateLimitWithPrismaRateLimitWhereParam interface { +type WorkflowRunTriggeredByWithPrismaScheduledWhereParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - rateLimitField() + workflowRunTriggeredByModel() + scheduledField() } -type stepRateLimitWithPrismaRateLimitEqualsParam struct { +type workflowRunTriggeredByWithPrismaScheduledEqualsParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaRateLimitEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaScheduledEqualsParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaRateLimitEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaScheduledEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaRateLimitEqualsParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaScheduledEqualsParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaRateLimitEqualsParam) rateLimitField() {} +func (p workflowRunTriggeredByWithPrismaScheduledEqualsParam) scheduledField() {} -func (stepRateLimitWithPrismaRateLimitSetParam) settable() {} -func (stepRateLimitWithPrismaRateLimitEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaScheduledSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaScheduledEqualsParam) equals() {} -type stepRateLimitWithPrismaRateLimitEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaRateLimitEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaRateLimitEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaRateLimitEqualsUniqueParam) stepRateLimitModel() {} -func (p stepRateLimitWithPrismaRateLimitEqualsUniqueParam) rateLimitField() {} +func (p workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) scheduledField() {} -func (stepRateLimitWithPrismaRateLimitEqualsUniqueParam) unique() {} -func (stepRateLimitWithPrismaRateLimitEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) equals() {} -type StepRateLimitWithPrismaRateLimitKeyEqualsSetParam interface { +type WorkflowRunTriggeredByWithPrismaScheduledIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRateLimitModel() - rateLimitKeyField() + workflowRunTriggeredByModel() + scheduledIDField() } -type StepRateLimitWithPrismaRateLimitKeySetParam interface { +type WorkflowRunTriggeredByWithPrismaScheduledIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - rateLimitKeyField() + workflowRunTriggeredByModel() + scheduledIDField() } -type stepRateLimitWithPrismaRateLimitKeySetParam struct { +type workflowRunTriggeredByWithPrismaScheduledIDSetParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaRateLimitKeySetParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaScheduledIDSetParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaRateLimitKeySetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaScheduledIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaRateLimitKeySetParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaScheduledIDSetParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaRateLimitKeySetParam) rateLimitKeyField() {} +func (p workflowRunTriggeredByWithPrismaScheduledIDSetParam) scheduledIDField() {} -type StepRateLimitWithPrismaRateLimitKeyWhereParam interface { +type WorkflowRunTriggeredByWithPrismaScheduledIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - rateLimitKeyField() + workflowRunTriggeredByModel() + scheduledIDField() } -type stepRateLimitWithPrismaRateLimitKeyEqualsParam struct { +type workflowRunTriggeredByWithPrismaScheduledIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaRateLimitKeyEqualsParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaRateLimitKeyEqualsParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaRateLimitKeyEqualsParam) stepRateLimitModel() {} +func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) workflowRunTriggeredByModel() {} -func (p stepRateLimitWithPrismaRateLimitKeyEqualsParam) rateLimitKeyField() {} +func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) scheduledIDField() {} -func (stepRateLimitWithPrismaRateLimitKeySetParam) settable() {} -func (stepRateLimitWithPrismaRateLimitKeyEqualsParam) equals() {} +func (workflowRunTriggeredByWithPrismaScheduledIDSetParam) settable() {} +func (workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) equals() {} -type stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam struct { +type workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) field() builder.Field { +func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) getQuery() builder.Query { +func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) stepRateLimitModel() {} -func (p stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) rateLimitKeyField() {} +func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) scheduledIDField() {} -func (stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) unique() {} -func (stepRateLimitWithPrismaRateLimitKeyEqualsUniqueParam) equals() {} +func (workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) unique() {} +func (workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) equals() {} -type StepRateLimitWithPrismaTenantEqualsSetParam interface { - field() builder.Field +type jobRunActions struct { + // client holds the prisma client + client *PrismaClient +} + +var jobRunOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "workflowRunId"}, + {Name: "jobId"}, + {Name: "tickerId"}, + {Name: "status"}, + {Name: "result"}, + {Name: "startedAt"}, + {Name: "finishedAt"}, + {Name: "timeoutAt"}, + {Name: "cancelledAt"}, + {Name: "cancelledReason"}, + {Name: "cancelledError"}, +} + +type JobRunRelationWith interface { getQuery() builder.Query - equals() - stepRateLimitModel() - tenantField() + with() + jobRunRelation() } -type StepRateLimitWithPrismaTenantSetParam interface { +type JobRunWhereParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - tenantField() + jobRunModel() } -type stepRateLimitWithPrismaTenantSetParam struct { +type jobRunDefaultParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaTenantSetParam) field() builder.Field { +func (p jobRunDefaultParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaTenantSetParam) getQuery() builder.Query { +func (p jobRunDefaultParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaTenantSetParam) stepRateLimitModel() {} - -func (p stepRateLimitWithPrismaTenantSetParam) tenantField() {} +func (p jobRunDefaultParam) jobRunModel() {} -type StepRateLimitWithPrismaTenantWhereParam interface { +type JobRunOrderByParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - tenantField() + jobRunModel() } -type stepRateLimitWithPrismaTenantEqualsParam struct { +type jobRunOrderByParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaTenantEqualsParam) field() builder.Field { +func (p jobRunOrderByParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p jobRunOrderByParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaTenantEqualsParam) stepRateLimitModel() {} - -func (p stepRateLimitWithPrismaTenantEqualsParam) tenantField() {} +func (p jobRunOrderByParam) jobRunModel() {} -func (stepRateLimitWithPrismaTenantSetParam) settable() {} -func (stepRateLimitWithPrismaTenantEqualsParam) equals() {} +type JobRunCursorParam interface { + field() builder.Field + getQuery() builder.Query + jobRunModel() + isCursor() +} -type stepRateLimitWithPrismaTenantEqualsUniqueParam struct { +type jobRunCursorParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p jobRunCursorParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunCursorParam) isCursor() {} + +func (p jobRunCursorParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaTenantEqualsUniqueParam) stepRateLimitModel() {} -func (p stepRateLimitWithPrismaTenantEqualsUniqueParam) tenantField() {} - -func (stepRateLimitWithPrismaTenantEqualsUniqueParam) unique() {} -func (stepRateLimitWithPrismaTenantEqualsUniqueParam) equals() {} - -type StepRateLimitWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - stepRateLimitModel() - tenantIDField() -} +func (p jobRunCursorParam) jobRunModel() {} -type StepRateLimitWithPrismaTenantIDSetParam interface { +type JobRunParamUnique interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - tenantIDField() + unique() + jobRunModel() } -type stepRateLimitWithPrismaTenantIDSetParam struct { +type jobRunParamUnique struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaTenantIDSetParam) field() builder.Field { +func (p jobRunParamUnique) jobRunModel() {} + +func (jobRunParamUnique) unique() {} + +func (p jobRunParamUnique) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p jobRunParamUnique) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaTenantIDSetParam) stepRateLimitModel() {} - -func (p stepRateLimitWithPrismaTenantIDSetParam) tenantIDField() {} - -type StepRateLimitWithPrismaTenantIDWhereParam interface { +type JobRunEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRateLimitModel() - tenantIDField() + equals() + jobRunModel() } -type stepRateLimitWithPrismaTenantIDEqualsParam struct { +type jobRunEqualsParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p jobRunEqualsParam) jobRunModel() {} + +func (jobRunEqualsParam) equals() {} + +func (p jobRunEqualsParam) field() builder.Field { return p.data } -func (p stepRateLimitWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p jobRunEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRateLimitWithPrismaTenantIDEqualsParam) stepRateLimitModel() {} - -func (p stepRateLimitWithPrismaTenantIDEqualsParam) tenantIDField() {} - -func (stepRateLimitWithPrismaTenantIDSetParam) settable() {} -func (stepRateLimitWithPrismaTenantIDEqualsParam) equals() {} +type JobRunEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + jobRunModel() +} -type stepRateLimitWithPrismaTenantIDEqualsUniqueParam struct { +type jobRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRateLimitWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { - return p.data -} - -func (p stepRateLimitWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { - return p.query -} - -func (p stepRateLimitWithPrismaTenantIDEqualsUniqueParam) stepRateLimitModel() {} -func (p stepRateLimitWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} - -func (stepRateLimitWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (stepRateLimitWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (p jobRunEqualsUniqueParam) jobRunModel() {} -type rateLimitActions struct { - // client holds the prisma client - client *PrismaClient -} +func (jobRunEqualsUniqueParam) unique() {} +func (jobRunEqualsUniqueParam) equals() {} -var rateLimitOutput = []builder.Output{ - {Name: "tenantId"}, - {Name: "key"}, - {Name: "limitValue"}, - {Name: "value"}, - {Name: "window"}, - {Name: "lastRefill"}, +func (p jobRunEqualsUniqueParam) field() builder.Field { + return p.data } -type RateLimitRelationWith interface { - getQuery() builder.Query - with() - rateLimitRelation() +func (p jobRunEqualsUniqueParam) getQuery() builder.Query { + return p.query } -type RateLimitWhereParam interface { +type JobRunSetParam interface { field() builder.Field - getQuery() builder.Query - rateLimitModel() + settable() + jobRunModel() } -type rateLimitDefaultParam struct { - data builder.Field - query builder.Query +type jobRunSetParam struct { + data builder.Field } -func (p rateLimitDefaultParam) field() builder.Field { +func (jobRunSetParam) settable() {} + +func (p jobRunSetParam) field() builder.Field { return p.data } -func (p rateLimitDefaultParam) getQuery() builder.Query { - return p.query +func (p jobRunSetParam) jobRunModel() {} + +type JobRunWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + jobRunModel() + idField() } -func (p rateLimitDefaultParam) rateLimitModel() {} - -type RateLimitOrderByParam interface { +type JobRunWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() + jobRunModel() + idField() } -type rateLimitOrderByParam struct { +type jobRunWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p rateLimitOrderByParam) field() builder.Field { +func (p jobRunWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p rateLimitOrderByParam) getQuery() builder.Query { +func (p jobRunWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitOrderByParam) rateLimitModel() {} +func (p jobRunWithPrismaIDSetParam) jobRunModel() {} -type RateLimitCursorParam interface { +func (p jobRunWithPrismaIDSetParam) idField() {} + +type JobRunWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - isCursor() + jobRunModel() + idField() } -type rateLimitCursorParam struct { +type jobRunWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitCursorParam) field() builder.Field { +func (p jobRunWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p rateLimitCursorParam) isCursor() {} - -func (p rateLimitCursorParam) getQuery() builder.Query { +func (p jobRunWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitCursorParam) rateLimitModel() {} +func (p jobRunWithPrismaIDEqualsParam) jobRunModel() {} -type RateLimitParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - rateLimitModel() -} +func (p jobRunWithPrismaIDEqualsParam) idField() {} -type rateLimitParamUnique struct { +func (jobRunWithPrismaIDSetParam) settable() {} +func (jobRunWithPrismaIDEqualsParam) equals() {} + +type jobRunWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitParamUnique) rateLimitModel() {} - -func (rateLimitParamUnique) unique() {} - -func (p rateLimitParamUnique) field() builder.Field { +func (p jobRunWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitParamUnique) getQuery() builder.Query { +func (p jobRunWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -type RateLimitEqualsWhereParam interface { +func (p jobRunWithPrismaIDEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaIDEqualsUniqueParam) idField() {} + +func (jobRunWithPrismaIDEqualsUniqueParam) unique() {} +func (jobRunWithPrismaIDEqualsUniqueParam) equals() {} + +type JobRunWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() + jobRunModel() + createdAtField() } -type rateLimitEqualsParam struct { +type JobRunWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + jobRunModel() + createdAtField() +} + +type jobRunWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p rateLimitEqualsParam) rateLimitModel() {} - -func (rateLimitEqualsParam) equals() {} - -func (p rateLimitEqualsParam) field() builder.Field { +func (p jobRunWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p rateLimitEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -type RateLimitEqualsUniqueWhereParam interface { +func (p jobRunWithPrismaCreatedAtSetParam) jobRunModel() {} + +func (p jobRunWithPrismaCreatedAtSetParam) createdAtField() {} + +type JobRunWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - unique() - rateLimitModel() + jobRunModel() + createdAtField() } -type rateLimitEqualsUniqueParam struct { +type jobRunWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitEqualsUniqueParam) rateLimitModel() {} - -func (rateLimitEqualsUniqueParam) unique() {} -func (rateLimitEqualsUniqueParam) equals() {} - -func (p rateLimitEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p rateLimitEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -type RateLimitSetParam interface { - field() builder.Field - settable() - rateLimitModel() -} +func (p jobRunWithPrismaCreatedAtEqualsParam) jobRunModel() {} -type rateLimitSetParam struct { - data builder.Field -} +func (p jobRunWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (rateLimitSetParam) settable() {} +func (jobRunWithPrismaCreatedAtSetParam) settable() {} +func (jobRunWithPrismaCreatedAtEqualsParam) equals() {} -func (p rateLimitSetParam) field() builder.Field { +type jobRunWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p jobRunWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitSetParam) rateLimitModel() {} +func (p jobRunWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} -type RateLimitWithPrismaTenantEqualsSetParam interface { +func (p jobRunWithPrismaCreatedAtEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (jobRunWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (jobRunWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type JobRunWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() - tenantField() + jobRunModel() + updatedAtField() } -type RateLimitWithPrismaTenantSetParam interface { +type JobRunWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - tenantField() + jobRunModel() + updatedAtField() } -type rateLimitWithPrismaTenantSetParam struct { +type jobRunWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaTenantSetParam) field() builder.Field { +func (p jobRunWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaTenantSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaTenantSetParam) rateLimitModel() {} +func (p jobRunWithPrismaUpdatedAtSetParam) jobRunModel() {} -func (p rateLimitWithPrismaTenantSetParam) tenantField() {} +func (p jobRunWithPrismaUpdatedAtSetParam) updatedAtField() {} -type RateLimitWithPrismaTenantWhereParam interface { +type JobRunWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - tenantField() + jobRunModel() + updatedAtField() } -type rateLimitWithPrismaTenantEqualsParam struct { +type jobRunWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaTenantEqualsParam) field() builder.Field { +func (p jobRunWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaTenantEqualsParam) rateLimitModel() {} +func (p jobRunWithPrismaUpdatedAtEqualsParam) jobRunModel() {} -func (p rateLimitWithPrismaTenantEqualsParam) tenantField() {} +func (p jobRunWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (rateLimitWithPrismaTenantSetParam) settable() {} -func (rateLimitWithPrismaTenantEqualsParam) equals() {} +func (jobRunWithPrismaUpdatedAtSetParam) settable() {} +func (jobRunWithPrismaUpdatedAtEqualsParam) equals() {} -type rateLimitWithPrismaTenantEqualsUniqueParam struct { +type jobRunWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaTenantEqualsUniqueParam) rateLimitModel() {} -func (p rateLimitWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p jobRunWithPrismaUpdatedAtEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (rateLimitWithPrismaTenantEqualsUniqueParam) unique() {} -func (rateLimitWithPrismaTenantEqualsUniqueParam) equals() {} +func (jobRunWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (jobRunWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type RateLimitWithPrismaTenantIDEqualsSetParam interface { +type JobRunWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() - tenantIDField() + jobRunModel() + deletedAtField() } -type RateLimitWithPrismaTenantIDSetParam interface { +type JobRunWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - tenantIDField() + jobRunModel() + deletedAtField() } -type rateLimitWithPrismaTenantIDSetParam struct { +type jobRunWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaTenantIDSetParam) field() builder.Field { +func (p jobRunWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaTenantIDSetParam) rateLimitModel() {} +func (p jobRunWithPrismaDeletedAtSetParam) jobRunModel() {} -func (p rateLimitWithPrismaTenantIDSetParam) tenantIDField() {} +func (p jobRunWithPrismaDeletedAtSetParam) deletedAtField() {} -type RateLimitWithPrismaTenantIDWhereParam interface { +type JobRunWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - tenantIDField() + jobRunModel() + deletedAtField() } -type rateLimitWithPrismaTenantIDEqualsParam struct { +type jobRunWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p jobRunWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaTenantIDEqualsParam) rateLimitModel() {} +func (p jobRunWithPrismaDeletedAtEqualsParam) jobRunModel() {} -func (p rateLimitWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p jobRunWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (rateLimitWithPrismaTenantIDSetParam) settable() {} -func (rateLimitWithPrismaTenantIDEqualsParam) equals() {} +func (jobRunWithPrismaDeletedAtSetParam) settable() {} +func (jobRunWithPrismaDeletedAtEqualsParam) equals() {} -type rateLimitWithPrismaTenantIDEqualsUniqueParam struct { +type jobRunWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaTenantIDEqualsUniqueParam) rateLimitModel() {} -func (p rateLimitWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p jobRunWithPrismaDeletedAtEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (rateLimitWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (rateLimitWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (jobRunWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (jobRunWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type RateLimitWithPrismaKeyEqualsSetParam interface { +type JobRunWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() - keyField() + jobRunModel() + tenantField() } -type RateLimitWithPrismaKeySetParam interface { +type JobRunWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - keyField() + jobRunModel() + tenantField() } -type rateLimitWithPrismaKeySetParam struct { +type jobRunWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaKeySetParam) field() builder.Field { +func (p jobRunWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaKeySetParam) getQuery() builder.Query { +func (p jobRunWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaKeySetParam) rateLimitModel() {} +func (p jobRunWithPrismaTenantSetParam) jobRunModel() {} -func (p rateLimitWithPrismaKeySetParam) keyField() {} +func (p jobRunWithPrismaTenantSetParam) tenantField() {} -type RateLimitWithPrismaKeyWhereParam interface { +type JobRunWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - keyField() + jobRunModel() + tenantField() } -type rateLimitWithPrismaKeyEqualsParam struct { +type jobRunWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaKeyEqualsParam) field() builder.Field { +func (p jobRunWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaKeyEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaKeyEqualsParam) rateLimitModel() {} +func (p jobRunWithPrismaTenantEqualsParam) jobRunModel() {} -func (p rateLimitWithPrismaKeyEqualsParam) keyField() {} +func (p jobRunWithPrismaTenantEqualsParam) tenantField() {} -func (rateLimitWithPrismaKeySetParam) settable() {} -func (rateLimitWithPrismaKeyEqualsParam) equals() {} +func (jobRunWithPrismaTenantSetParam) settable() {} +func (jobRunWithPrismaTenantEqualsParam) equals() {} -type rateLimitWithPrismaKeyEqualsUniqueParam struct { +type jobRunWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaKeyEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaKeyEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaKeyEqualsUniqueParam) rateLimitModel() {} -func (p rateLimitWithPrismaKeyEqualsUniqueParam) keyField() {} +func (p jobRunWithPrismaTenantEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (rateLimitWithPrismaKeyEqualsUniqueParam) unique() {} -func (rateLimitWithPrismaKeyEqualsUniqueParam) equals() {} +func (jobRunWithPrismaTenantEqualsUniqueParam) unique() {} +func (jobRunWithPrismaTenantEqualsUniqueParam) equals() {} -type RateLimitWithPrismaLimitValueEqualsSetParam interface { +type JobRunWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() - limitValueField() + jobRunModel() + tenantIDField() } -type RateLimitWithPrismaLimitValueSetParam interface { +type JobRunWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - limitValueField() + jobRunModel() + tenantIDField() } -type rateLimitWithPrismaLimitValueSetParam struct { +type jobRunWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaLimitValueSetParam) field() builder.Field { +func (p jobRunWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaLimitValueSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaLimitValueSetParam) rateLimitModel() {} +func (p jobRunWithPrismaTenantIDSetParam) jobRunModel() {} -func (p rateLimitWithPrismaLimitValueSetParam) limitValueField() {} +func (p jobRunWithPrismaTenantIDSetParam) tenantIDField() {} -type RateLimitWithPrismaLimitValueWhereParam interface { +type JobRunWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - limitValueField() + jobRunModel() + tenantIDField() } -type rateLimitWithPrismaLimitValueEqualsParam struct { +type jobRunWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaLimitValueEqualsParam) field() builder.Field { +func (p jobRunWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaLimitValueEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaLimitValueEqualsParam) rateLimitModel() {} +func (p jobRunWithPrismaTenantIDEqualsParam) jobRunModel() {} -func (p rateLimitWithPrismaLimitValueEqualsParam) limitValueField() {} +func (p jobRunWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (rateLimitWithPrismaLimitValueSetParam) settable() {} -func (rateLimitWithPrismaLimitValueEqualsParam) equals() {} +func (jobRunWithPrismaTenantIDSetParam) settable() {} +func (jobRunWithPrismaTenantIDEqualsParam) equals() {} -type rateLimitWithPrismaLimitValueEqualsUniqueParam struct { +type jobRunWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaLimitValueEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaLimitValueEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaLimitValueEqualsUniqueParam) rateLimitModel() {} -func (p rateLimitWithPrismaLimitValueEqualsUniqueParam) limitValueField() {} +func (p jobRunWithPrismaTenantIDEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (rateLimitWithPrismaLimitValueEqualsUniqueParam) unique() {} -func (rateLimitWithPrismaLimitValueEqualsUniqueParam) equals() {} +func (jobRunWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (jobRunWithPrismaTenantIDEqualsUniqueParam) equals() {} -type RateLimitWithPrismaValueEqualsSetParam interface { +type JobRunWithPrismaWorkflowRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() - valueField() + jobRunModel() + workflowRunField() } -type RateLimitWithPrismaValueSetParam interface { +type JobRunWithPrismaWorkflowRunSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - valueField() + jobRunModel() + workflowRunField() } -type rateLimitWithPrismaValueSetParam struct { +type jobRunWithPrismaWorkflowRunSetParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaValueSetParam) field() builder.Field { +func (p jobRunWithPrismaWorkflowRunSetParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaValueSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaWorkflowRunSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaValueSetParam) rateLimitModel() {} +func (p jobRunWithPrismaWorkflowRunSetParam) jobRunModel() {} -func (p rateLimitWithPrismaValueSetParam) valueField() {} +func (p jobRunWithPrismaWorkflowRunSetParam) workflowRunField() {} -type RateLimitWithPrismaValueWhereParam interface { +type JobRunWithPrismaWorkflowRunWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - valueField() + jobRunModel() + workflowRunField() } -type rateLimitWithPrismaValueEqualsParam struct { +type jobRunWithPrismaWorkflowRunEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaValueEqualsParam) field() builder.Field { +func (p jobRunWithPrismaWorkflowRunEqualsParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaValueEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaWorkflowRunEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaValueEqualsParam) rateLimitModel() {} +func (p jobRunWithPrismaWorkflowRunEqualsParam) jobRunModel() {} -func (p rateLimitWithPrismaValueEqualsParam) valueField() {} +func (p jobRunWithPrismaWorkflowRunEqualsParam) workflowRunField() {} -func (rateLimitWithPrismaValueSetParam) settable() {} -func (rateLimitWithPrismaValueEqualsParam) equals() {} +func (jobRunWithPrismaWorkflowRunSetParam) settable() {} +func (jobRunWithPrismaWorkflowRunEqualsParam) equals() {} -type rateLimitWithPrismaValueEqualsUniqueParam struct { +type jobRunWithPrismaWorkflowRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaValueEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaWorkflowRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaValueEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaWorkflowRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaValueEqualsUniqueParam) rateLimitModel() {} -func (p rateLimitWithPrismaValueEqualsUniqueParam) valueField() {} +func (p jobRunWithPrismaWorkflowRunEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaWorkflowRunEqualsUniqueParam) workflowRunField() {} -func (rateLimitWithPrismaValueEqualsUniqueParam) unique() {} -func (rateLimitWithPrismaValueEqualsUniqueParam) equals() {} +func (jobRunWithPrismaWorkflowRunEqualsUniqueParam) unique() {} +func (jobRunWithPrismaWorkflowRunEqualsUniqueParam) equals() {} -type RateLimitWithPrismaWindowEqualsSetParam interface { +type JobRunWithPrismaWorkflowRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() - windowField() + jobRunModel() + workflowRunIDField() } -type RateLimitWithPrismaWindowSetParam interface { +type JobRunWithPrismaWorkflowRunIDSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - windowField() + jobRunModel() + workflowRunIDField() } -type rateLimitWithPrismaWindowSetParam struct { +type jobRunWithPrismaWorkflowRunIDSetParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaWindowSetParam) field() builder.Field { +func (p jobRunWithPrismaWorkflowRunIDSetParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaWindowSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaWorkflowRunIDSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaWindowSetParam) rateLimitModel() {} +func (p jobRunWithPrismaWorkflowRunIDSetParam) jobRunModel() {} -func (p rateLimitWithPrismaWindowSetParam) windowField() {} +func (p jobRunWithPrismaWorkflowRunIDSetParam) workflowRunIDField() {} -type RateLimitWithPrismaWindowWhereParam interface { +type JobRunWithPrismaWorkflowRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - windowField() + jobRunModel() + workflowRunIDField() } -type rateLimitWithPrismaWindowEqualsParam struct { +type jobRunWithPrismaWorkflowRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaWindowEqualsParam) field() builder.Field { +func (p jobRunWithPrismaWorkflowRunIDEqualsParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaWindowEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaWorkflowRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaWindowEqualsParam) rateLimitModel() {} +func (p jobRunWithPrismaWorkflowRunIDEqualsParam) jobRunModel() {} -func (p rateLimitWithPrismaWindowEqualsParam) windowField() {} +func (p jobRunWithPrismaWorkflowRunIDEqualsParam) workflowRunIDField() {} -func (rateLimitWithPrismaWindowSetParam) settable() {} -func (rateLimitWithPrismaWindowEqualsParam) equals() {} +func (jobRunWithPrismaWorkflowRunIDSetParam) settable() {} +func (jobRunWithPrismaWorkflowRunIDEqualsParam) equals() {} -type rateLimitWithPrismaWindowEqualsUniqueParam struct { +type jobRunWithPrismaWorkflowRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaWindowEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaWindowEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaWindowEqualsUniqueParam) rateLimitModel() {} -func (p rateLimitWithPrismaWindowEqualsUniqueParam) windowField() {} +func (p jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) workflowRunIDField() {} -func (rateLimitWithPrismaWindowEqualsUniqueParam) unique() {} -func (rateLimitWithPrismaWindowEqualsUniqueParam) equals() {} +func (jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) unique() {} +func (jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) equals() {} -type RateLimitWithPrismaLastRefillEqualsSetParam interface { +type JobRunWithPrismaJobEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() - lastRefillField() + jobRunModel() + jobField() } -type RateLimitWithPrismaLastRefillSetParam interface { +type JobRunWithPrismaJobSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - lastRefillField() + jobRunModel() + jobField() } -type rateLimitWithPrismaLastRefillSetParam struct { +type jobRunWithPrismaJobSetParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaLastRefillSetParam) field() builder.Field { +func (p jobRunWithPrismaJobSetParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaLastRefillSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaJobSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaLastRefillSetParam) rateLimitModel() {} +func (p jobRunWithPrismaJobSetParam) jobRunModel() {} -func (p rateLimitWithPrismaLastRefillSetParam) lastRefillField() {} +func (p jobRunWithPrismaJobSetParam) jobField() {} -type RateLimitWithPrismaLastRefillWhereParam interface { +type JobRunWithPrismaJobWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - lastRefillField() + jobRunModel() + jobField() } -type rateLimitWithPrismaLastRefillEqualsParam struct { +type jobRunWithPrismaJobEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaLastRefillEqualsParam) field() builder.Field { +func (p jobRunWithPrismaJobEqualsParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaLastRefillEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaJobEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaLastRefillEqualsParam) rateLimitModel() {} +func (p jobRunWithPrismaJobEqualsParam) jobRunModel() {} -func (p rateLimitWithPrismaLastRefillEqualsParam) lastRefillField() {} +func (p jobRunWithPrismaJobEqualsParam) jobField() {} -func (rateLimitWithPrismaLastRefillSetParam) settable() {} -func (rateLimitWithPrismaLastRefillEqualsParam) equals() {} +func (jobRunWithPrismaJobSetParam) settable() {} +func (jobRunWithPrismaJobEqualsParam) equals() {} -type rateLimitWithPrismaLastRefillEqualsUniqueParam struct { +type jobRunWithPrismaJobEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaLastRefillEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaJobEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaLastRefillEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaJobEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaLastRefillEqualsUniqueParam) rateLimitModel() {} -func (p rateLimitWithPrismaLastRefillEqualsUniqueParam) lastRefillField() {} +func (p jobRunWithPrismaJobEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaJobEqualsUniqueParam) jobField() {} -func (rateLimitWithPrismaLastRefillEqualsUniqueParam) unique() {} -func (rateLimitWithPrismaLastRefillEqualsUniqueParam) equals() {} +func (jobRunWithPrismaJobEqualsUniqueParam) unique() {} +func (jobRunWithPrismaJobEqualsUniqueParam) equals() {} -type RateLimitWithPrismaStepRunLimitsEqualsSetParam interface { +type JobRunWithPrismaJobIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - rateLimitModel() - stepRunLimitsField() + jobRunModel() + jobIDField() } -type RateLimitWithPrismaStepRunLimitsSetParam interface { +type JobRunWithPrismaJobIDSetParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - stepRunLimitsField() + jobRunModel() + jobIDField() } -type rateLimitWithPrismaStepRunLimitsSetParam struct { +type jobRunWithPrismaJobIDSetParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaStepRunLimitsSetParam) field() builder.Field { +func (p jobRunWithPrismaJobIDSetParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaStepRunLimitsSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaJobIDSetParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaStepRunLimitsSetParam) rateLimitModel() {} +func (p jobRunWithPrismaJobIDSetParam) jobRunModel() {} -func (p rateLimitWithPrismaStepRunLimitsSetParam) stepRunLimitsField() {} +func (p jobRunWithPrismaJobIDSetParam) jobIDField() {} -type RateLimitWithPrismaStepRunLimitsWhereParam interface { +type JobRunWithPrismaJobIDWhereParam interface { field() builder.Field getQuery() builder.Query - rateLimitModel() - stepRunLimitsField() + jobRunModel() + jobIDField() } -type rateLimitWithPrismaStepRunLimitsEqualsParam struct { +type jobRunWithPrismaJobIDEqualsParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaStepRunLimitsEqualsParam) field() builder.Field { +func (p jobRunWithPrismaJobIDEqualsParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaStepRunLimitsEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaJobIDEqualsParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaStepRunLimitsEqualsParam) rateLimitModel() {} +func (p jobRunWithPrismaJobIDEqualsParam) jobRunModel() {} -func (p rateLimitWithPrismaStepRunLimitsEqualsParam) stepRunLimitsField() {} +func (p jobRunWithPrismaJobIDEqualsParam) jobIDField() {} -func (rateLimitWithPrismaStepRunLimitsSetParam) settable() {} -func (rateLimitWithPrismaStepRunLimitsEqualsParam) equals() {} +func (jobRunWithPrismaJobIDSetParam) settable() {} +func (jobRunWithPrismaJobIDEqualsParam) equals() {} -type rateLimitWithPrismaStepRunLimitsEqualsUniqueParam struct { +type jobRunWithPrismaJobIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaJobIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaJobIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) rateLimitModel() {} -func (p rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) stepRunLimitsField() {} - -func (rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) unique() {} -func (rateLimitWithPrismaStepRunLimitsEqualsUniqueParam) equals() {} - -type workflowRunActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p jobRunWithPrismaJobIDEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaJobIDEqualsUniqueParam) jobIDField() {} -var workflowRunOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "displayName"}, - {Name: "tenantId"}, - {Name: "workflowVersionId"}, - {Name: "concurrencyGroupId"}, - {Name: "status"}, - {Name: "error"}, - {Name: "startedAt"}, - {Name: "finishedAt"}, - {Name: "parentId"}, - {Name: "parentStepRunId"}, - {Name: "childIndex"}, - {Name: "childKey"}, - {Name: "additionalMetadata"}, -} +func (jobRunWithPrismaJobIDEqualsUniqueParam) unique() {} +func (jobRunWithPrismaJobIDEqualsUniqueParam) equals() {} -type WorkflowRunRelationWith interface { +type JobRunWithPrismaTickerEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - workflowRunRelation() + equals() + jobRunModel() + tickerField() } -type WorkflowRunWhereParam interface { +type JobRunWithPrismaTickerSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() + jobRunModel() + tickerField() } -type workflowRunDefaultParam struct { +type jobRunWithPrismaTickerSetParam struct { data builder.Field query builder.Query } -func (p workflowRunDefaultParam) field() builder.Field { +func (p jobRunWithPrismaTickerSetParam) field() builder.Field { return p.data } -func (p workflowRunDefaultParam) getQuery() builder.Query { +func (p jobRunWithPrismaTickerSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunDefaultParam) workflowRunModel() {} +func (p jobRunWithPrismaTickerSetParam) jobRunModel() {} -type WorkflowRunOrderByParam interface { +func (p jobRunWithPrismaTickerSetParam) tickerField() {} + +type JobRunWithPrismaTickerWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() + jobRunModel() + tickerField() } -type workflowRunOrderByParam struct { +type jobRunWithPrismaTickerEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunOrderByParam) field() builder.Field { +func (p jobRunWithPrismaTickerEqualsParam) field() builder.Field { return p.data } -func (p workflowRunOrderByParam) getQuery() builder.Query { +func (p jobRunWithPrismaTickerEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunOrderByParam) workflowRunModel() {} +func (p jobRunWithPrismaTickerEqualsParam) jobRunModel() {} -type WorkflowRunCursorParam interface { - field() builder.Field - getQuery() builder.Query - workflowRunModel() - isCursor() -} +func (p jobRunWithPrismaTickerEqualsParam) tickerField() {} -type workflowRunCursorParam struct { +func (jobRunWithPrismaTickerSetParam) settable() {} +func (jobRunWithPrismaTickerEqualsParam) equals() {} + +type jobRunWithPrismaTickerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunCursorParam) field() builder.Field { +func (p jobRunWithPrismaTickerEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunCursorParam) isCursor() {} - -func (p workflowRunCursorParam) getQuery() builder.Query { +func (p jobRunWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunCursorParam) workflowRunModel() {} +func (p jobRunWithPrismaTickerEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaTickerEqualsUniqueParam) tickerField() {} -type WorkflowRunParamUnique interface { +func (jobRunWithPrismaTickerEqualsUniqueParam) unique() {} +func (jobRunWithPrismaTickerEqualsUniqueParam) equals() {} + +type JobRunWithPrismaTickerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - workflowRunModel() + equals() + jobRunModel() + tickerIDField() } -type workflowRunParamUnique struct { +type JobRunWithPrismaTickerIDSetParam interface { + field() builder.Field + getQuery() builder.Query + jobRunModel() + tickerIDField() +} + +type jobRunWithPrismaTickerIDSetParam struct { data builder.Field query builder.Query } -func (p workflowRunParamUnique) workflowRunModel() {} - -func (workflowRunParamUnique) unique() {} - -func (p workflowRunParamUnique) field() builder.Field { +func (p jobRunWithPrismaTickerIDSetParam) field() builder.Field { return p.data } -func (p workflowRunParamUnique) getQuery() builder.Query { +func (p jobRunWithPrismaTickerIDSetParam) getQuery() builder.Query { return p.query } -type WorkflowRunEqualsWhereParam interface { +func (p jobRunWithPrismaTickerIDSetParam) jobRunModel() {} + +func (p jobRunWithPrismaTickerIDSetParam) tickerIDField() {} + +type JobRunWithPrismaTickerIDWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - workflowRunModel() + jobRunModel() + tickerIDField() } -type workflowRunEqualsParam struct { +type jobRunWithPrismaTickerIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunEqualsParam) workflowRunModel() {} - -func (workflowRunEqualsParam) equals() {} - -func (p workflowRunEqualsParam) field() builder.Field { +func (p jobRunWithPrismaTickerIDEqualsParam) field() builder.Field { return p.data } -func (p workflowRunEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaTickerIDEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowRunEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - workflowRunModel() -} +func (p jobRunWithPrismaTickerIDEqualsParam) jobRunModel() {} -type workflowRunEqualsUniqueParam struct { +func (p jobRunWithPrismaTickerIDEqualsParam) tickerIDField() {} + +func (jobRunWithPrismaTickerIDSetParam) settable() {} +func (jobRunWithPrismaTickerIDEqualsParam) equals() {} + +type jobRunWithPrismaTickerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunEqualsUniqueParam) workflowRunModel() {} - -func (workflowRunEqualsUniqueParam) unique() {} -func (workflowRunEqualsUniqueParam) equals() {} - -func (p workflowRunEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkflowRunSetParam interface { - field() builder.Field - settable() - workflowRunModel() -} - -type workflowRunSetParam struct { - data builder.Field -} - -func (workflowRunSetParam) settable() {} - -func (p workflowRunSetParam) field() builder.Field { - return p.data -} +func (p jobRunWithPrismaTickerIDEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} -func (p workflowRunSetParam) workflowRunModel() {} +func (jobRunWithPrismaTickerIDEqualsUniqueParam) unique() {} +func (jobRunWithPrismaTickerIDEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaIDEqualsSetParam interface { +type JobRunWithPrismaStepRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - idField() + jobRunModel() + stepRunsField() } -type WorkflowRunWithPrismaIDSetParam interface { +type JobRunWithPrismaStepRunsSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - idField() + jobRunModel() + stepRunsField() } -type workflowRunWithPrismaIDSetParam struct { +type jobRunWithPrismaStepRunsSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaIDSetParam) field() builder.Field { +func (p jobRunWithPrismaStepRunsSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaIDSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaStepRunsSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaIDSetParam) workflowRunModel() {} +func (p jobRunWithPrismaStepRunsSetParam) jobRunModel() {} -func (p workflowRunWithPrismaIDSetParam) idField() {} +func (p jobRunWithPrismaStepRunsSetParam) stepRunsField() {} -type WorkflowRunWithPrismaIDWhereParam interface { +type JobRunWithPrismaStepRunsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - idField() + jobRunModel() + stepRunsField() } -type workflowRunWithPrismaIDEqualsParam struct { +type jobRunWithPrismaStepRunsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaIDEqualsParam) field() builder.Field { +func (p jobRunWithPrismaStepRunsEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaStepRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaIDEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaStepRunsEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaIDEqualsParam) idField() {} +func (p jobRunWithPrismaStepRunsEqualsParam) stepRunsField() {} -func (workflowRunWithPrismaIDSetParam) settable() {} -func (workflowRunWithPrismaIDEqualsParam) equals() {} +func (jobRunWithPrismaStepRunsSetParam) settable() {} +func (jobRunWithPrismaStepRunsEqualsParam) equals() {} -type workflowRunWithPrismaIDEqualsUniqueParam struct { +type jobRunWithPrismaStepRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaIDEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaIDEqualsUniqueParam) idField() {} +func (p jobRunWithPrismaStepRunsEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} -func (workflowRunWithPrismaIDEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaIDEqualsUniqueParam) equals() {} +func (jobRunWithPrismaStepRunsEqualsUniqueParam) unique() {} +func (jobRunWithPrismaStepRunsEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaCreatedAtEqualsSetParam interface { +type JobRunWithPrismaStatusEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - createdAtField() + jobRunModel() + statusField() } -type WorkflowRunWithPrismaCreatedAtSetParam interface { +type JobRunWithPrismaStatusSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - createdAtField() + jobRunModel() + statusField() } -type workflowRunWithPrismaCreatedAtSetParam struct { +type jobRunWithPrismaStatusSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaCreatedAtSetParam) field() builder.Field { +func (p jobRunWithPrismaStatusSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaStatusSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaCreatedAtSetParam) workflowRunModel() {} +func (p jobRunWithPrismaStatusSetParam) jobRunModel() {} -func (p workflowRunWithPrismaCreatedAtSetParam) createdAtField() {} +func (p jobRunWithPrismaStatusSetParam) statusField() {} -type WorkflowRunWithPrismaCreatedAtWhereParam interface { +type JobRunWithPrismaStatusWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - createdAtField() + jobRunModel() + statusField() } -type workflowRunWithPrismaCreatedAtEqualsParam struct { +type jobRunWithPrismaStatusEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p jobRunWithPrismaStatusEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaStatusEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaCreatedAtEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaStatusEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p jobRunWithPrismaStatusEqualsParam) statusField() {} -func (workflowRunWithPrismaCreatedAtSetParam) settable() {} -func (workflowRunWithPrismaCreatedAtEqualsParam) equals() {} +func (jobRunWithPrismaStatusSetParam) settable() {} +func (jobRunWithPrismaStatusEqualsParam) equals() {} -type workflowRunWithPrismaCreatedAtEqualsUniqueParam struct { +type jobRunWithPrismaStatusEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaStatusEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaCreatedAtEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p jobRunWithPrismaStatusEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaStatusEqualsUniqueParam) statusField() {} -func (workflowRunWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (jobRunWithPrismaStatusEqualsUniqueParam) unique() {} +func (jobRunWithPrismaStatusEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaUpdatedAtEqualsSetParam interface { +type JobRunWithPrismaLookupDataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - updatedAtField() + jobRunModel() + lookupDataField() } -type WorkflowRunWithPrismaUpdatedAtSetParam interface { +type JobRunWithPrismaLookupDataSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - updatedAtField() + jobRunModel() + lookupDataField() } -type workflowRunWithPrismaUpdatedAtSetParam struct { +type jobRunWithPrismaLookupDataSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p jobRunWithPrismaLookupDataSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaLookupDataSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaUpdatedAtSetParam) workflowRunModel() {} +func (p jobRunWithPrismaLookupDataSetParam) jobRunModel() {} -func (p workflowRunWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p jobRunWithPrismaLookupDataSetParam) lookupDataField() {} -type WorkflowRunWithPrismaUpdatedAtWhereParam interface { +type JobRunWithPrismaLookupDataWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - updatedAtField() + jobRunModel() + lookupDataField() } -type workflowRunWithPrismaUpdatedAtEqualsParam struct { +type jobRunWithPrismaLookupDataEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p jobRunWithPrismaLookupDataEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaLookupDataEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaUpdatedAtEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaLookupDataEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p jobRunWithPrismaLookupDataEqualsParam) lookupDataField() {} -func (workflowRunWithPrismaUpdatedAtSetParam) settable() {} -func (workflowRunWithPrismaUpdatedAtEqualsParam) equals() {} +func (jobRunWithPrismaLookupDataSetParam) settable() {} +func (jobRunWithPrismaLookupDataEqualsParam) equals() {} -type workflowRunWithPrismaUpdatedAtEqualsUniqueParam struct { +type jobRunWithPrismaLookupDataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaLookupDataEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaLookupDataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaUpdatedAtEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p jobRunWithPrismaLookupDataEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaLookupDataEqualsUniqueParam) lookupDataField() {} -func (workflowRunWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (jobRunWithPrismaLookupDataEqualsUniqueParam) unique() {} +func (jobRunWithPrismaLookupDataEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaDeletedAtEqualsSetParam interface { +type JobRunWithPrismaResultEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - deletedAtField() + jobRunModel() + resultField() } -type WorkflowRunWithPrismaDeletedAtSetParam interface { +type JobRunWithPrismaResultSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - deletedAtField() + jobRunModel() + resultField() } -type workflowRunWithPrismaDeletedAtSetParam struct { +type jobRunWithPrismaResultSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaDeletedAtSetParam) field() builder.Field { +func (p jobRunWithPrismaResultSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaResultSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaDeletedAtSetParam) workflowRunModel() {} +func (p jobRunWithPrismaResultSetParam) jobRunModel() {} -func (p workflowRunWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p jobRunWithPrismaResultSetParam) resultField() {} -type WorkflowRunWithPrismaDeletedAtWhereParam interface { +type JobRunWithPrismaResultWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - deletedAtField() + jobRunModel() + resultField() } -type workflowRunWithPrismaDeletedAtEqualsParam struct { +type jobRunWithPrismaResultEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p jobRunWithPrismaResultEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaResultEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaDeletedAtEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaResultEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p jobRunWithPrismaResultEqualsParam) resultField() {} -func (workflowRunWithPrismaDeletedAtSetParam) settable() {} -func (workflowRunWithPrismaDeletedAtEqualsParam) equals() {} +func (jobRunWithPrismaResultSetParam) settable() {} +func (jobRunWithPrismaResultEqualsParam) equals() {} -type workflowRunWithPrismaDeletedAtEqualsUniqueParam struct { +type jobRunWithPrismaResultEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaResultEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaResultEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaDeletedAtEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p jobRunWithPrismaResultEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaResultEqualsUniqueParam) resultField() {} -func (workflowRunWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (jobRunWithPrismaResultEqualsUniqueParam) unique() {} +func (jobRunWithPrismaResultEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaDisplayNameEqualsSetParam interface { +type JobRunWithPrismaStartedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - displayNameField() + jobRunModel() + startedAtField() } -type WorkflowRunWithPrismaDisplayNameSetParam interface { +type JobRunWithPrismaStartedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - displayNameField() + jobRunModel() + startedAtField() } -type workflowRunWithPrismaDisplayNameSetParam struct { +type jobRunWithPrismaStartedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaDisplayNameSetParam) field() builder.Field { +func (p jobRunWithPrismaStartedAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaDisplayNameSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaStartedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaDisplayNameSetParam) workflowRunModel() {} +func (p jobRunWithPrismaStartedAtSetParam) jobRunModel() {} -func (p workflowRunWithPrismaDisplayNameSetParam) displayNameField() {} +func (p jobRunWithPrismaStartedAtSetParam) startedAtField() {} -type WorkflowRunWithPrismaDisplayNameWhereParam interface { +type JobRunWithPrismaStartedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - displayNameField() + jobRunModel() + startedAtField() } -type workflowRunWithPrismaDisplayNameEqualsParam struct { +type jobRunWithPrismaStartedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaDisplayNameEqualsParam) field() builder.Field { +func (p jobRunWithPrismaStartedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaDisplayNameEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaStartedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaDisplayNameEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaStartedAtEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaDisplayNameEqualsParam) displayNameField() {} +func (p jobRunWithPrismaStartedAtEqualsParam) startedAtField() {} -func (workflowRunWithPrismaDisplayNameSetParam) settable() {} -func (workflowRunWithPrismaDisplayNameEqualsParam) equals() {} +func (jobRunWithPrismaStartedAtSetParam) settable() {} +func (jobRunWithPrismaStartedAtEqualsParam) equals() {} -type workflowRunWithPrismaDisplayNameEqualsUniqueParam struct { +type jobRunWithPrismaStartedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaDisplayNameEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaDisplayNameEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaDisplayNameEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaDisplayNameEqualsUniqueParam) displayNameField() {} +func (p jobRunWithPrismaStartedAtEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} -func (workflowRunWithPrismaDisplayNameEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaDisplayNameEqualsUniqueParam) equals() {} +func (jobRunWithPrismaStartedAtEqualsUniqueParam) unique() {} +func (jobRunWithPrismaStartedAtEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaTenantEqualsSetParam interface { +type JobRunWithPrismaFinishedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - tenantField() + jobRunModel() + finishedAtField() } -type WorkflowRunWithPrismaTenantSetParam interface { +type JobRunWithPrismaFinishedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - tenantField() + jobRunModel() + finishedAtField() } -type workflowRunWithPrismaTenantSetParam struct { +type jobRunWithPrismaFinishedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTenantSetParam) field() builder.Field { +func (p jobRunWithPrismaFinishedAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTenantSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaFinishedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTenantSetParam) workflowRunModel() {} +func (p jobRunWithPrismaFinishedAtSetParam) jobRunModel() {} -func (p workflowRunWithPrismaTenantSetParam) tenantField() {} +func (p jobRunWithPrismaFinishedAtSetParam) finishedAtField() {} -type WorkflowRunWithPrismaTenantWhereParam interface { +type JobRunWithPrismaFinishedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - tenantField() + jobRunModel() + finishedAtField() } -type workflowRunWithPrismaTenantEqualsParam struct { +type jobRunWithPrismaFinishedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTenantEqualsParam) field() builder.Field { +func (p jobRunWithPrismaFinishedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTenantEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaFinishedAtEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaTenantEqualsParam) tenantField() {} +func (p jobRunWithPrismaFinishedAtEqualsParam) finishedAtField() {} -func (workflowRunWithPrismaTenantSetParam) settable() {} -func (workflowRunWithPrismaTenantEqualsParam) equals() {} +func (jobRunWithPrismaFinishedAtSetParam) settable() {} +func (jobRunWithPrismaFinishedAtEqualsParam) equals() {} -type workflowRunWithPrismaTenantEqualsUniqueParam struct { +type jobRunWithPrismaFinishedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTenantEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p jobRunWithPrismaFinishedAtEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} -func (workflowRunWithPrismaTenantEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaTenantEqualsUniqueParam) equals() {} +func (jobRunWithPrismaFinishedAtEqualsUniqueParam) unique() {} +func (jobRunWithPrismaFinishedAtEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaTenantIDEqualsSetParam interface { +type JobRunWithPrismaTimeoutAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - tenantIDField() + jobRunModel() + timeoutAtField() } -type WorkflowRunWithPrismaTenantIDSetParam interface { +type JobRunWithPrismaTimeoutAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - tenantIDField() + jobRunModel() + timeoutAtField() } -type workflowRunWithPrismaTenantIDSetParam struct { +type jobRunWithPrismaTimeoutAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTenantIDSetParam) field() builder.Field { +func (p jobRunWithPrismaTimeoutAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaTimeoutAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTenantIDSetParam) workflowRunModel() {} +func (p jobRunWithPrismaTimeoutAtSetParam) jobRunModel() {} -func (p workflowRunWithPrismaTenantIDSetParam) tenantIDField() {} +func (p jobRunWithPrismaTimeoutAtSetParam) timeoutAtField() {} -type WorkflowRunWithPrismaTenantIDWhereParam interface { +type JobRunWithPrismaTimeoutAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - tenantIDField() + jobRunModel() + timeoutAtField() } -type workflowRunWithPrismaTenantIDEqualsParam struct { +type jobRunWithPrismaTimeoutAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p jobRunWithPrismaTimeoutAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaTimeoutAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTenantIDEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaTimeoutAtEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p jobRunWithPrismaTimeoutAtEqualsParam) timeoutAtField() {} -func (workflowRunWithPrismaTenantIDSetParam) settable() {} -func (workflowRunWithPrismaTenantIDEqualsParam) equals() {} +func (jobRunWithPrismaTimeoutAtSetParam) settable() {} +func (jobRunWithPrismaTimeoutAtEqualsParam) equals() {} -type workflowRunWithPrismaTenantIDEqualsUniqueParam struct { +type jobRunWithPrismaTimeoutAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaTimeoutAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaTimeoutAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTenantIDEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p jobRunWithPrismaTimeoutAtEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaTimeoutAtEqualsUniqueParam) timeoutAtField() {} -func (workflowRunWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (jobRunWithPrismaTimeoutAtEqualsUniqueParam) unique() {} +func (jobRunWithPrismaTimeoutAtEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaWorkflowVersionEqualsSetParam interface { +type JobRunWithPrismaCancelledAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - workflowVersionField() + jobRunModel() + cancelledAtField() } -type WorkflowRunWithPrismaWorkflowVersionSetParam interface { +type JobRunWithPrismaCancelledAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - workflowVersionField() + jobRunModel() + cancelledAtField() } -type workflowRunWithPrismaWorkflowVersionSetParam struct { +type jobRunWithPrismaCancelledAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaWorkflowVersionSetParam) field() builder.Field { +func (p jobRunWithPrismaCancelledAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaWorkflowVersionSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaWorkflowVersionSetParam) workflowRunModel() {} +func (p jobRunWithPrismaCancelledAtSetParam) jobRunModel() {} -func (p workflowRunWithPrismaWorkflowVersionSetParam) workflowVersionField() {} +func (p jobRunWithPrismaCancelledAtSetParam) cancelledAtField() {} -type WorkflowRunWithPrismaWorkflowVersionWhereParam interface { +type JobRunWithPrismaCancelledAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - workflowVersionField() + jobRunModel() + cancelledAtField() } -type workflowRunWithPrismaWorkflowVersionEqualsParam struct { +type jobRunWithPrismaCancelledAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaWorkflowVersionEqualsParam) field() builder.Field { +func (p jobRunWithPrismaCancelledAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaWorkflowVersionEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaWorkflowVersionEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaCancelledAtEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaWorkflowVersionEqualsParam) workflowVersionField() {} +func (p jobRunWithPrismaCancelledAtEqualsParam) cancelledAtField() {} -func (workflowRunWithPrismaWorkflowVersionSetParam) settable() {} -func (workflowRunWithPrismaWorkflowVersionEqualsParam) equals() {} +func (jobRunWithPrismaCancelledAtSetParam) settable() {} +func (jobRunWithPrismaCancelledAtEqualsParam) equals() {} -type workflowRunWithPrismaWorkflowVersionEqualsUniqueParam struct { +type jobRunWithPrismaCancelledAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaCancelledAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) workflowVersionField() {} +func (p jobRunWithPrismaCancelledAtEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaCancelledAtEqualsUniqueParam) cancelledAtField() {} -func (workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaWorkflowVersionEqualsUniqueParam) equals() {} +func (jobRunWithPrismaCancelledAtEqualsUniqueParam) unique() {} +func (jobRunWithPrismaCancelledAtEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaWorkflowVersionIDEqualsSetParam interface { +type JobRunWithPrismaCancelledReasonEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - workflowVersionIDField() + jobRunModel() + cancelledReasonField() } -type WorkflowRunWithPrismaWorkflowVersionIDSetParam interface { +type JobRunWithPrismaCancelledReasonSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - workflowVersionIDField() + jobRunModel() + cancelledReasonField() } -type workflowRunWithPrismaWorkflowVersionIDSetParam struct { +type jobRunWithPrismaCancelledReasonSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaWorkflowVersionIDSetParam) field() builder.Field { +func (p jobRunWithPrismaCancelledReasonSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaWorkflowVersionIDSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledReasonSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaWorkflowVersionIDSetParam) workflowRunModel() {} +func (p jobRunWithPrismaCancelledReasonSetParam) jobRunModel() {} -func (p workflowRunWithPrismaWorkflowVersionIDSetParam) workflowVersionIDField() {} +func (p jobRunWithPrismaCancelledReasonSetParam) cancelledReasonField() {} -type WorkflowRunWithPrismaWorkflowVersionIDWhereParam interface { +type JobRunWithPrismaCancelledReasonWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - workflowVersionIDField() + jobRunModel() + cancelledReasonField() } -type workflowRunWithPrismaWorkflowVersionIDEqualsParam struct { +type jobRunWithPrismaCancelledReasonEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaWorkflowVersionIDEqualsParam) field() builder.Field { +func (p jobRunWithPrismaCancelledReasonEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaWorkflowVersionIDEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledReasonEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaWorkflowVersionIDEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaCancelledReasonEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaWorkflowVersionIDEqualsParam) workflowVersionIDField() {} +func (p jobRunWithPrismaCancelledReasonEqualsParam) cancelledReasonField() {} -func (workflowRunWithPrismaWorkflowVersionIDSetParam) settable() {} -func (workflowRunWithPrismaWorkflowVersionIDEqualsParam) equals() {} +func (jobRunWithPrismaCancelledReasonSetParam) settable() {} +func (jobRunWithPrismaCancelledReasonEqualsParam) equals() {} -type workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam struct { +type jobRunWithPrismaCancelledReasonEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaCancelledReasonEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledReasonEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) workflowVersionIDField() {} +func (p jobRunWithPrismaCancelledReasonEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaCancelledReasonEqualsUniqueParam) cancelledReasonField() {} -func (workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaWorkflowVersionIDEqualsUniqueParam) equals() {} +func (jobRunWithPrismaCancelledReasonEqualsUniqueParam) unique() {} +func (jobRunWithPrismaCancelledReasonEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaConcurrencyGroupIDEqualsSetParam interface { +type JobRunWithPrismaCancelledErrorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - concurrencyGroupIDField() + jobRunModel() + cancelledErrorField() } -type WorkflowRunWithPrismaConcurrencyGroupIDSetParam interface { +type JobRunWithPrismaCancelledErrorSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - concurrencyGroupIDField() + jobRunModel() + cancelledErrorField() } -type workflowRunWithPrismaConcurrencyGroupIDSetParam struct { +type jobRunWithPrismaCancelledErrorSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaConcurrencyGroupIDSetParam) field() builder.Field { +func (p jobRunWithPrismaCancelledErrorSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaConcurrencyGroupIDSetParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledErrorSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaConcurrencyGroupIDSetParam) workflowRunModel() {} +func (p jobRunWithPrismaCancelledErrorSetParam) jobRunModel() {} -func (p workflowRunWithPrismaConcurrencyGroupIDSetParam) concurrencyGroupIDField() {} +func (p jobRunWithPrismaCancelledErrorSetParam) cancelledErrorField() {} -type WorkflowRunWithPrismaConcurrencyGroupIDWhereParam interface { +type JobRunWithPrismaCancelledErrorWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - concurrencyGroupIDField() + jobRunModel() + cancelledErrorField() } -type workflowRunWithPrismaConcurrencyGroupIDEqualsParam struct { +type jobRunWithPrismaCancelledErrorEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaConcurrencyGroupIDEqualsParam) field() builder.Field { +func (p jobRunWithPrismaCancelledErrorEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaConcurrencyGroupIDEqualsParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledErrorEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaConcurrencyGroupIDEqualsParam) workflowRunModel() {} +func (p jobRunWithPrismaCancelledErrorEqualsParam) jobRunModel() {} -func (p workflowRunWithPrismaConcurrencyGroupIDEqualsParam) concurrencyGroupIDField() {} +func (p jobRunWithPrismaCancelledErrorEqualsParam) cancelledErrorField() {} -func (workflowRunWithPrismaConcurrencyGroupIDSetParam) settable() {} -func (workflowRunWithPrismaConcurrencyGroupIDEqualsParam) equals() {} +func (jobRunWithPrismaCancelledErrorSetParam) settable() {} +func (jobRunWithPrismaCancelledErrorEqualsParam) equals() {} -type workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam struct { +type jobRunWithPrismaCancelledErrorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) field() builder.Field { +func (p jobRunWithPrismaCancelledErrorEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunWithPrismaCancelledErrorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) concurrencyGroupIDField() {} +func (p jobRunWithPrismaCancelledErrorEqualsUniqueParam) jobRunModel() {} +func (p jobRunWithPrismaCancelledErrorEqualsUniqueParam) cancelledErrorField() {} -func (workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaConcurrencyGroupIDEqualsUniqueParam) equals() {} +func (jobRunWithPrismaCancelledErrorEqualsUniqueParam) unique() {} +func (jobRunWithPrismaCancelledErrorEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaGetGroupKeyRunEqualsSetParam interface { - field() builder.Field +type jobRunLookupDataActions struct { + // client holds the prisma client + client *PrismaClient +} + +var jobRunLookupDataOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "jobRunId"}, + {Name: "tenantId"}, + {Name: "data"}, +} + +type JobRunLookupDataRelationWith interface { getQuery() builder.Query - equals() - workflowRunModel() - getGroupKeyRunField() + with() + jobRunLookupDataRelation() } -type WorkflowRunWithPrismaGetGroupKeyRunSetParam interface { +type JobRunLookupDataWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - getGroupKeyRunField() + jobRunLookupDataModel() } -type workflowRunWithPrismaGetGroupKeyRunSetParam struct { +type jobRunLookupDataDefaultParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaGetGroupKeyRunSetParam) field() builder.Field { +func (p jobRunLookupDataDefaultParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaGetGroupKeyRunSetParam) getQuery() builder.Query { +func (p jobRunLookupDataDefaultParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaGetGroupKeyRunSetParam) workflowRunModel() {} - -func (p workflowRunWithPrismaGetGroupKeyRunSetParam) getGroupKeyRunField() {} +func (p jobRunLookupDataDefaultParam) jobRunLookupDataModel() {} -type WorkflowRunWithPrismaGetGroupKeyRunWhereParam interface { +type JobRunLookupDataOrderByParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - getGroupKeyRunField() + jobRunLookupDataModel() } -type workflowRunWithPrismaGetGroupKeyRunEqualsParam struct { +type jobRunLookupDataOrderByParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaGetGroupKeyRunEqualsParam) field() builder.Field { +func (p jobRunLookupDataOrderByParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaGetGroupKeyRunEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataOrderByParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaGetGroupKeyRunEqualsParam) workflowRunModel() {} - -func (p workflowRunWithPrismaGetGroupKeyRunEqualsParam) getGroupKeyRunField() {} +func (p jobRunLookupDataOrderByParam) jobRunLookupDataModel() {} -func (workflowRunWithPrismaGetGroupKeyRunSetParam) settable() {} -func (workflowRunWithPrismaGetGroupKeyRunEqualsParam) equals() {} +type JobRunLookupDataCursorParam interface { + field() builder.Field + getQuery() builder.Query + jobRunLookupDataModel() + isCursor() +} -type workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam struct { +type jobRunLookupDataCursorParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataCursorParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataCursorParam) isCursor() {} + +func (p jobRunLookupDataCursorParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) getGroupKeyRunField() {} - -func (workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaGetGroupKeyRunEqualsUniqueParam) equals() {} - -type WorkflowRunWithPrismaStatusEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workflowRunModel() - statusField() -} +func (p jobRunLookupDataCursorParam) jobRunLookupDataModel() {} -type WorkflowRunWithPrismaStatusSetParam interface { +type JobRunLookupDataParamUnique interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - statusField() + unique() + jobRunLookupDataModel() } -type workflowRunWithPrismaStatusSetParam struct { +type jobRunLookupDataParamUnique struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaStatusSetParam) field() builder.Field { +func (p jobRunLookupDataParamUnique) jobRunLookupDataModel() {} + +func (jobRunLookupDataParamUnique) unique() {} + +func (p jobRunLookupDataParamUnique) field() builder.Field { return p.data } -func (p workflowRunWithPrismaStatusSetParam) getQuery() builder.Query { +func (p jobRunLookupDataParamUnique) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaStatusSetParam) workflowRunModel() {} - -func (p workflowRunWithPrismaStatusSetParam) statusField() {} - -type WorkflowRunWithPrismaStatusWhereParam interface { +type JobRunLookupDataEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - statusField() + equals() + jobRunLookupDataModel() } -type workflowRunWithPrismaStatusEqualsParam struct { +type jobRunLookupDataEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaStatusEqualsParam) field() builder.Field { +func (p jobRunLookupDataEqualsParam) jobRunLookupDataModel() {} + +func (jobRunLookupDataEqualsParam) equals() {} + +func (p jobRunLookupDataEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaStatusEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaStatusEqualsParam) workflowRunModel() {} - -func (p workflowRunWithPrismaStatusEqualsParam) statusField() {} - -func (workflowRunWithPrismaStatusSetParam) settable() {} -func (workflowRunWithPrismaStatusEqualsParam) equals() {} +type JobRunLookupDataEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + jobRunLookupDataModel() +} -type workflowRunWithPrismaStatusEqualsUniqueParam struct { +type jobRunLookupDataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaStatusEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataEqualsUniqueParam) jobRunLookupDataModel() {} + +func (jobRunLookupDataEqualsUniqueParam) unique() {} +func (jobRunLookupDataEqualsUniqueParam) equals() {} + +func (p jobRunLookupDataEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaStatusEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaStatusEqualsUniqueParam) statusField() {} +type JobRunLookupDataSetParam interface { + field() builder.Field + settable() + jobRunLookupDataModel() +} -func (workflowRunWithPrismaStatusEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaStatusEqualsUniqueParam) equals() {} +type jobRunLookupDataSetParam struct { + data builder.Field +} -type WorkflowRunWithPrismaJobRunsEqualsSetParam interface { +func (jobRunLookupDataSetParam) settable() {} + +func (p jobRunLookupDataSetParam) field() builder.Field { + return p.data +} + +func (p jobRunLookupDataSetParam) jobRunLookupDataModel() {} + +type JobRunLookupDataWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - jobRunsField() + jobRunLookupDataModel() + idField() } -type WorkflowRunWithPrismaJobRunsSetParam interface { +type JobRunLookupDataWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - jobRunsField() + jobRunLookupDataModel() + idField() } -type workflowRunWithPrismaJobRunsSetParam struct { +type jobRunLookupDataWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaJobRunsSetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaJobRunsSetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaJobRunsSetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaIDSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaJobRunsSetParam) jobRunsField() {} +func (p jobRunLookupDataWithPrismaIDSetParam) idField() {} -type WorkflowRunWithPrismaJobRunsWhereParam interface { +type JobRunLookupDataWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - jobRunsField() + jobRunLookupDataModel() + idField() } -type workflowRunWithPrismaJobRunsEqualsParam struct { +type jobRunLookupDataWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaJobRunsEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaJobRunsEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaJobRunsEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaIDEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaJobRunsEqualsParam) jobRunsField() {} +func (p jobRunLookupDataWithPrismaIDEqualsParam) idField() {} -func (workflowRunWithPrismaJobRunsSetParam) settable() {} -func (workflowRunWithPrismaJobRunsEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaIDSetParam) settable() {} +func (jobRunLookupDataWithPrismaIDEqualsParam) equals() {} -type workflowRunWithPrismaJobRunsEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaJobRunsEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaJobRunsEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaJobRunsEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaJobRunsEqualsUniqueParam) jobRunsField() {} +func (p jobRunLookupDataWithPrismaIDEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaIDEqualsUniqueParam) idField() {} -func (workflowRunWithPrismaJobRunsEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaJobRunsEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaIDEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaIDEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaTriggeredByEqualsSetParam interface { +type JobRunLookupDataWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - triggeredByField() + jobRunLookupDataModel() + createdAtField() } -type WorkflowRunWithPrismaTriggeredBySetParam interface { +type JobRunLookupDataWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - triggeredByField() + jobRunLookupDataModel() + createdAtField() } -type workflowRunWithPrismaTriggeredBySetParam struct { +type jobRunLookupDataWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTriggeredBySetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTriggeredBySetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTriggeredBySetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaCreatedAtSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaTriggeredBySetParam) triggeredByField() {} +func (p jobRunLookupDataWithPrismaCreatedAtSetParam) createdAtField() {} -type WorkflowRunWithPrismaTriggeredByWhereParam interface { +type JobRunLookupDataWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - triggeredByField() + jobRunLookupDataModel() + createdAtField() } -type workflowRunWithPrismaTriggeredByEqualsParam struct { +type jobRunLookupDataWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTriggeredByEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTriggeredByEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTriggeredByEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaCreatedAtEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaTriggeredByEqualsParam) triggeredByField() {} +func (p jobRunLookupDataWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (workflowRunWithPrismaTriggeredBySetParam) settable() {} -func (workflowRunWithPrismaTriggeredByEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaCreatedAtSetParam) settable() {} +func (jobRunLookupDataWithPrismaCreatedAtEqualsParam) equals() {} -type workflowRunWithPrismaTriggeredByEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaTriggeredByEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaTriggeredByEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaTriggeredByEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaTriggeredByEqualsUniqueParam) triggeredByField() {} +func (p jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (workflowRunWithPrismaTriggeredByEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaTriggeredByEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaErrorEqualsSetParam interface { +type JobRunLookupDataWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - errorField() + jobRunLookupDataModel() + updatedAtField() } -type WorkflowRunWithPrismaErrorSetParam interface { +type JobRunLookupDataWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - errorField() + jobRunLookupDataModel() + updatedAtField() } -type workflowRunWithPrismaErrorSetParam struct { +type jobRunLookupDataWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaErrorSetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaErrorSetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaErrorSetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaUpdatedAtSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaErrorSetParam) errorField() {} +func (p jobRunLookupDataWithPrismaUpdatedAtSetParam) updatedAtField() {} -type WorkflowRunWithPrismaErrorWhereParam interface { +type JobRunLookupDataWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - errorField() + jobRunLookupDataModel() + updatedAtField() } -type workflowRunWithPrismaErrorEqualsParam struct { +type jobRunLookupDataWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaErrorEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaErrorEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaErrorEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaUpdatedAtEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaErrorEqualsParam) errorField() {} +func (p jobRunLookupDataWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (workflowRunWithPrismaErrorSetParam) settable() {} -func (workflowRunWithPrismaErrorEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaUpdatedAtSetParam) settable() {} +func (jobRunLookupDataWithPrismaUpdatedAtEqualsParam) equals() {} -type workflowRunWithPrismaErrorEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaErrorEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaErrorEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaErrorEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaErrorEqualsUniqueParam) errorField() {} +func (p jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (workflowRunWithPrismaErrorEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaErrorEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaStartedAtEqualsSetParam interface { +type JobRunLookupDataWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - startedAtField() + jobRunLookupDataModel() + deletedAtField() } -type WorkflowRunWithPrismaStartedAtSetParam interface { +type JobRunLookupDataWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - startedAtField() + jobRunLookupDataModel() + deletedAtField() } -type workflowRunWithPrismaStartedAtSetParam struct { +type jobRunLookupDataWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaStartedAtSetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaStartedAtSetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaStartedAtSetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaDeletedAtSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaStartedAtSetParam) startedAtField() {} +func (p jobRunLookupDataWithPrismaDeletedAtSetParam) deletedAtField() {} -type WorkflowRunWithPrismaStartedAtWhereParam interface { +type JobRunLookupDataWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - startedAtField() + jobRunLookupDataModel() + deletedAtField() } -type workflowRunWithPrismaStartedAtEqualsParam struct { +type jobRunLookupDataWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaStartedAtEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaStartedAtEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaStartedAtEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaDeletedAtEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaStartedAtEqualsParam) startedAtField() {} +func (p jobRunLookupDataWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (workflowRunWithPrismaStartedAtSetParam) settable() {} -func (workflowRunWithPrismaStartedAtEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaDeletedAtSetParam) settable() {} +func (jobRunLookupDataWithPrismaDeletedAtEqualsParam) equals() {} -type workflowRunWithPrismaStartedAtEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaStartedAtEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} +func (p jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (workflowRunWithPrismaStartedAtEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaStartedAtEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaFinishedAtEqualsSetParam interface { +type JobRunLookupDataWithPrismaJobRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - finishedAtField() + jobRunLookupDataModel() + jobRunField() } -type WorkflowRunWithPrismaFinishedAtSetParam interface { +type JobRunLookupDataWithPrismaJobRunSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - finishedAtField() + jobRunLookupDataModel() + jobRunField() } -type workflowRunWithPrismaFinishedAtSetParam struct { +type jobRunLookupDataWithPrismaJobRunSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaFinishedAtSetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaJobRunSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaFinishedAtSetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaJobRunSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaFinishedAtSetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaJobRunSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaFinishedAtSetParam) finishedAtField() {} +func (p jobRunLookupDataWithPrismaJobRunSetParam) jobRunField() {} -type WorkflowRunWithPrismaFinishedAtWhereParam interface { +type JobRunLookupDataWithPrismaJobRunWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - finishedAtField() + jobRunLookupDataModel() + jobRunField() } -type workflowRunWithPrismaFinishedAtEqualsParam struct { +type jobRunLookupDataWithPrismaJobRunEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaFinishedAtEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaJobRunEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaJobRunEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaFinishedAtEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaJobRunEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaFinishedAtEqualsParam) finishedAtField() {} +func (p jobRunLookupDataWithPrismaJobRunEqualsParam) jobRunField() {} -func (workflowRunWithPrismaFinishedAtSetParam) settable() {} -func (workflowRunWithPrismaFinishedAtEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaJobRunSetParam) settable() {} +func (jobRunLookupDataWithPrismaJobRunEqualsParam) equals() {} -type workflowRunWithPrismaFinishedAtEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaJobRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaFinishedAtEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} +func (p jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) jobRunField() {} -func (workflowRunWithPrismaFinishedAtEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaFinishedAtEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaChildrenEqualsSetParam interface { +type JobRunLookupDataWithPrismaJobRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - childrenField() + jobRunLookupDataModel() + jobRunIDField() } -type WorkflowRunWithPrismaChildrenSetParam interface { +type JobRunLookupDataWithPrismaJobRunIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - childrenField() + jobRunLookupDataModel() + jobRunIDField() } -type workflowRunWithPrismaChildrenSetParam struct { +type jobRunLookupDataWithPrismaJobRunIDSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildrenSetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaJobRunIDSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildrenSetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaJobRunIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildrenSetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaJobRunIDSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaChildrenSetParam) childrenField() {} +func (p jobRunLookupDataWithPrismaJobRunIDSetParam) jobRunIDField() {} -type WorkflowRunWithPrismaChildrenWhereParam interface { +type JobRunLookupDataWithPrismaJobRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - childrenField() + jobRunLookupDataModel() + jobRunIDField() } -type workflowRunWithPrismaChildrenEqualsParam struct { +type jobRunLookupDataWithPrismaJobRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildrenEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaJobRunIDEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildrenEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaJobRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildrenEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaJobRunIDEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaChildrenEqualsParam) childrenField() {} +func (p jobRunLookupDataWithPrismaJobRunIDEqualsParam) jobRunIDField() {} -func (workflowRunWithPrismaChildrenSetParam) settable() {} -func (workflowRunWithPrismaChildrenEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaJobRunIDSetParam) settable() {} +func (jobRunLookupDataWithPrismaJobRunIDEqualsParam) equals() {} -type workflowRunWithPrismaChildrenEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildrenEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildrenEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildrenEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaChildrenEqualsUniqueParam) childrenField() {} +func (p jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) jobRunIDField() {} -func (workflowRunWithPrismaChildrenEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaChildrenEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaScheduledChildrenEqualsSetParam interface { +type JobRunLookupDataWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - scheduledChildrenField() + jobRunLookupDataModel() + tenantField() } -type WorkflowRunWithPrismaScheduledChildrenSetParam interface { +type JobRunLookupDataWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - scheduledChildrenField() + jobRunLookupDataModel() + tenantField() } -type workflowRunWithPrismaScheduledChildrenSetParam struct { +type jobRunLookupDataWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaScheduledChildrenSetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaScheduledChildrenSetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaScheduledChildrenSetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaTenantSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaScheduledChildrenSetParam) scheduledChildrenField() {} +func (p jobRunLookupDataWithPrismaTenantSetParam) tenantField() {} -type WorkflowRunWithPrismaScheduledChildrenWhereParam interface { +type JobRunLookupDataWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - scheduledChildrenField() + jobRunLookupDataModel() + tenantField() } -type workflowRunWithPrismaScheduledChildrenEqualsParam struct { +type jobRunLookupDataWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaScheduledChildrenEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaScheduledChildrenEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaScheduledChildrenEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaTenantEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaScheduledChildrenEqualsParam) scheduledChildrenField() {} +func (p jobRunLookupDataWithPrismaTenantEqualsParam) tenantField() {} -func (workflowRunWithPrismaScheduledChildrenSetParam) settable() {} -func (workflowRunWithPrismaScheduledChildrenEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaTenantSetParam) settable() {} +func (jobRunLookupDataWithPrismaTenantEqualsParam) equals() {} -type workflowRunWithPrismaScheduledChildrenEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) scheduledChildrenField() {} +func (p jobRunLookupDataWithPrismaTenantEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaScheduledChildrenEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaTenantEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaTenantEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaParentEqualsSetParam interface { +type JobRunLookupDataWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - parentField() + jobRunLookupDataModel() + tenantIDField() } -type WorkflowRunWithPrismaParentSetParam interface { +type JobRunLookupDataWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - parentField() + jobRunLookupDataModel() + tenantIDField() } -type workflowRunWithPrismaParentSetParam struct { +type jobRunLookupDataWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentSetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentSetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentSetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaTenantIDSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaParentSetParam) parentField() {} +func (p jobRunLookupDataWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkflowRunWithPrismaParentWhereParam interface { +type JobRunLookupDataWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - parentField() + jobRunLookupDataModel() + tenantIDField() } -type workflowRunWithPrismaParentEqualsParam struct { +type jobRunLookupDataWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaTenantIDEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaParentEqualsParam) parentField() {} +func (p jobRunLookupDataWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workflowRunWithPrismaParentSetParam) settable() {} -func (workflowRunWithPrismaParentEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaTenantIDSetParam) settable() {} +func (jobRunLookupDataWithPrismaTenantIDEqualsParam) equals() {} -type workflowRunWithPrismaParentEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaParentEqualsUniqueParam) parentField() {} +func (p jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workflowRunWithPrismaParentEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaParentEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaParentIDEqualsSetParam interface { +type JobRunLookupDataWithPrismaDataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - parentIDField() + jobRunLookupDataModel() + dataField() } -type WorkflowRunWithPrismaParentIDSetParam interface { +type JobRunLookupDataWithPrismaDataSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - parentIDField() + jobRunLookupDataModel() + dataField() } -type workflowRunWithPrismaParentIDSetParam struct { +type jobRunLookupDataWithPrismaDataSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentIDSetParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaDataSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentIDSetParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaDataSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentIDSetParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaDataSetParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaParentIDSetParam) parentIDField() {} +func (p jobRunLookupDataWithPrismaDataSetParam) dataField() {} -type WorkflowRunWithPrismaParentIDWhereParam interface { +type JobRunLookupDataWithPrismaDataWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - parentIDField() + jobRunLookupDataModel() + dataField() } -type workflowRunWithPrismaParentIDEqualsParam struct { +type jobRunLookupDataWithPrismaDataEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentIDEqualsParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaDataEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentIDEqualsParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaDataEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentIDEqualsParam) workflowRunModel() {} +func (p jobRunLookupDataWithPrismaDataEqualsParam) jobRunLookupDataModel() {} -func (p workflowRunWithPrismaParentIDEqualsParam) parentIDField() {} +func (p jobRunLookupDataWithPrismaDataEqualsParam) dataField() {} -func (workflowRunWithPrismaParentIDSetParam) settable() {} -func (workflowRunWithPrismaParentIDEqualsParam) equals() {} +func (jobRunLookupDataWithPrismaDataSetParam) settable() {} +func (jobRunLookupDataWithPrismaDataEqualsParam) equals() {} -type workflowRunWithPrismaParentIDEqualsUniqueParam struct { +type jobRunLookupDataWithPrismaDataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentIDEqualsUniqueParam) field() builder.Field { +func (p jobRunLookupDataWithPrismaDataEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { +func (p jobRunLookupDataWithPrismaDataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentIDEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaParentIDEqualsUniqueParam) parentIDField() {} +func (p jobRunLookupDataWithPrismaDataEqualsUniqueParam) jobRunLookupDataModel() {} +func (p jobRunLookupDataWithPrismaDataEqualsUniqueParam) dataField() {} -func (workflowRunWithPrismaParentIDEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaParentIDEqualsUniqueParam) equals() {} +func (jobRunLookupDataWithPrismaDataEqualsUniqueParam) unique() {} +func (jobRunLookupDataWithPrismaDataEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaParentStepRunEqualsSetParam interface { - field() builder.Field +type stepRunActions struct { + // client holds the prisma client + client *PrismaClient +} + +var stepRunOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "jobRunId"}, + {Name: "stepId"}, + {Name: "order"}, + {Name: "workerId"}, + {Name: "tickerId"}, + {Name: "status"}, + {Name: "input"}, + {Name: "output"}, + {Name: "inputSchema"}, + {Name: "requeueAfter"}, + {Name: "scheduleTimeoutAt"}, + {Name: "retryCount"}, + {Name: "error"}, + {Name: "startedAt"}, + {Name: "finishedAt"}, + {Name: "timeoutAt"}, + {Name: "cancelledAt"}, + {Name: "cancelledReason"}, + {Name: "cancelledError"}, + {Name: "callerFiles"}, + {Name: "gitRepoBranch"}, + {Name: "semaphoreReleased"}, +} + +type StepRunRelationWith interface { getQuery() builder.Query - equals() - workflowRunModel() - parentStepRunField() + with() + stepRunRelation() } -type WorkflowRunWithPrismaParentStepRunSetParam interface { +type StepRunWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - parentStepRunField() + stepRunModel() +} + +type stepRunDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p stepRunDefaultParam) field() builder.Field { + return p.data +} + +func (p stepRunDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p stepRunDefaultParam) stepRunModel() {} + +type StepRunOrderByParam interface { + field() builder.Field + getQuery() builder.Query + stepRunModel() } -type workflowRunWithPrismaParentStepRunSetParam struct { +type stepRunOrderByParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentStepRunSetParam) field() builder.Field { +func (p stepRunOrderByParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentStepRunSetParam) getQuery() builder.Query { +func (p stepRunOrderByParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentStepRunSetParam) workflowRunModel() {} - -func (p workflowRunWithPrismaParentStepRunSetParam) parentStepRunField() {} +func (p stepRunOrderByParam) stepRunModel() {} -type WorkflowRunWithPrismaParentStepRunWhereParam interface { +type StepRunCursorParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - parentStepRunField() + stepRunModel() + isCursor() } -type workflowRunWithPrismaParentStepRunEqualsParam struct { +type stepRunCursorParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentStepRunEqualsParam) field() builder.Field { +func (p stepRunCursorParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentStepRunEqualsParam) getQuery() builder.Query { +func (p stepRunCursorParam) isCursor() {} + +func (p stepRunCursorParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentStepRunEqualsParam) workflowRunModel() {} - -func (p workflowRunWithPrismaParentStepRunEqualsParam) parentStepRunField() {} +func (p stepRunCursorParam) stepRunModel() {} -func (workflowRunWithPrismaParentStepRunSetParam) settable() {} -func (workflowRunWithPrismaParentStepRunEqualsParam) equals() {} +type StepRunParamUnique interface { + field() builder.Field + getQuery() builder.Query + unique() + stepRunModel() +} -type workflowRunWithPrismaParentStepRunEqualsUniqueParam struct { +type stepRunParamUnique struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentStepRunEqualsUniqueParam) field() builder.Field { +func (p stepRunParamUnique) stepRunModel() {} + +func (stepRunParamUnique) unique() {} + +func (p stepRunParamUnique) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentStepRunEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunParamUnique) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentStepRunEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaParentStepRunEqualsUniqueParam) parentStepRunField() {} - -func (workflowRunWithPrismaParentStepRunEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaParentStepRunEqualsUniqueParam) equals() {} - -type WorkflowRunWithPrismaParentStepRunIDEqualsSetParam interface { +type StepRunEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - parentStepRunIDField() -} - -type WorkflowRunWithPrismaParentStepRunIDSetParam interface { - field() builder.Field - getQuery() builder.Query - workflowRunModel() - parentStepRunIDField() + stepRunModel() } -type workflowRunWithPrismaParentStepRunIDSetParam struct { +type stepRunEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentStepRunIDSetParam) field() builder.Field { +func (p stepRunEqualsParam) stepRunModel() {} + +func (stepRunEqualsParam) equals() {} + +func (p stepRunEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentStepRunIDSetParam) getQuery() builder.Query { +func (p stepRunEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentStepRunIDSetParam) workflowRunModel() {} - -func (p workflowRunWithPrismaParentStepRunIDSetParam) parentStepRunIDField() {} - -type WorkflowRunWithPrismaParentStepRunIDWhereParam interface { +type StepRunEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - parentStepRunIDField() + equals() + unique() + stepRunModel() } -type workflowRunWithPrismaParentStepRunIDEqualsParam struct { +type stepRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaParentStepRunIDEqualsParam) field() builder.Field { +func (p stepRunEqualsUniqueParam) stepRunModel() {} + +func (stepRunEqualsUniqueParam) unique() {} +func (stepRunEqualsUniqueParam) equals() {} + +func (p stepRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaParentStepRunIDEqualsParam) getQuery() builder.Query { +func (p stepRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaParentStepRunIDEqualsParam) workflowRunModel() {} - -func (p workflowRunWithPrismaParentStepRunIDEqualsParam) parentStepRunIDField() {} - -func (workflowRunWithPrismaParentStepRunIDSetParam) settable() {} -func (workflowRunWithPrismaParentStepRunIDEqualsParam) equals() {} - -type workflowRunWithPrismaParentStepRunIDEqualsUniqueParam struct { - data builder.Field - query builder.Query +type StepRunSetParam interface { + field() builder.Field + settable() + stepRunModel() } -func (p workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) field() builder.Field { - return p.data +type stepRunSetParam struct { + data builder.Field } -func (p workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (stepRunSetParam) settable() {} -func (p workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) parentStepRunIDField() {} +func (p stepRunSetParam) field() builder.Field { + return p.data +} -func (workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaParentStepRunIDEqualsUniqueParam) equals() {} +func (p stepRunSetParam) stepRunModel() {} -type WorkflowRunWithPrismaChildIndexEqualsSetParam interface { +type StepRunWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - childIndexField() + stepRunModel() + idField() } -type WorkflowRunWithPrismaChildIndexSetParam interface { +type StepRunWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - childIndexField() + stepRunModel() + idField() } -type workflowRunWithPrismaChildIndexSetParam struct { +type stepRunWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildIndexSetParam) field() builder.Field { +func (p stepRunWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildIndexSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildIndexSetParam) workflowRunModel() {} +func (p stepRunWithPrismaIDSetParam) stepRunModel() {} -func (p workflowRunWithPrismaChildIndexSetParam) childIndexField() {} +func (p stepRunWithPrismaIDSetParam) idField() {} -type WorkflowRunWithPrismaChildIndexWhereParam interface { +type StepRunWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - childIndexField() + stepRunModel() + idField() } -type workflowRunWithPrismaChildIndexEqualsParam struct { +type stepRunWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildIndexEqualsParam) field() builder.Field { +func (p stepRunWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildIndexEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildIndexEqualsParam) workflowRunModel() {} +func (p stepRunWithPrismaIDEqualsParam) stepRunModel() {} -func (p workflowRunWithPrismaChildIndexEqualsParam) childIndexField() {} +func (p stepRunWithPrismaIDEqualsParam) idField() {} -func (workflowRunWithPrismaChildIndexSetParam) settable() {} -func (workflowRunWithPrismaChildIndexEqualsParam) equals() {} +func (stepRunWithPrismaIDSetParam) settable() {} +func (stepRunWithPrismaIDEqualsParam) equals() {} -type workflowRunWithPrismaChildIndexEqualsUniqueParam struct { +type stepRunWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildIndexEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildIndexEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildIndexEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaChildIndexEqualsUniqueParam) childIndexField() {} +func (p stepRunWithPrismaIDEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaIDEqualsUniqueParam) idField() {} -func (workflowRunWithPrismaChildIndexEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaChildIndexEqualsUniqueParam) equals() {} +func (stepRunWithPrismaIDEqualsUniqueParam) unique() {} +func (stepRunWithPrismaIDEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaChildKeyEqualsSetParam interface { +type StepRunWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - childKeyField() + stepRunModel() + createdAtField() } -type WorkflowRunWithPrismaChildKeySetParam interface { +type StepRunWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - childKeyField() + stepRunModel() + createdAtField() } -type workflowRunWithPrismaChildKeySetParam struct { +type stepRunWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildKeySetParam) field() builder.Field { +func (p stepRunWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildKeySetParam) getQuery() builder.Query { +func (p stepRunWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildKeySetParam) workflowRunModel() {} +func (p stepRunWithPrismaCreatedAtSetParam) stepRunModel() {} -func (p workflowRunWithPrismaChildKeySetParam) childKeyField() {} +func (p stepRunWithPrismaCreatedAtSetParam) createdAtField() {} -type WorkflowRunWithPrismaChildKeyWhereParam interface { +type StepRunWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - childKeyField() + stepRunModel() + createdAtField() } -type workflowRunWithPrismaChildKeyEqualsParam struct { +type stepRunWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildKeyEqualsParam) field() builder.Field { +func (p stepRunWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildKeyEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildKeyEqualsParam) workflowRunModel() {} +func (p stepRunWithPrismaCreatedAtEqualsParam) stepRunModel() {} -func (p workflowRunWithPrismaChildKeyEqualsParam) childKeyField() {} +func (p stepRunWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (workflowRunWithPrismaChildKeySetParam) settable() {} -func (workflowRunWithPrismaChildKeyEqualsParam) equals() {} +func (stepRunWithPrismaCreatedAtSetParam) settable() {} +func (stepRunWithPrismaCreatedAtEqualsParam) equals() {} -type workflowRunWithPrismaChildKeyEqualsUniqueParam struct { +type stepRunWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaChildKeyEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaChildKeyEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaChildKeyEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaChildKeyEqualsUniqueParam) childKeyField() {} +func (p stepRunWithPrismaCreatedAtEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (workflowRunWithPrismaChildKeyEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaChildKeyEqualsUniqueParam) equals() {} +func (stepRunWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (stepRunWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WorkflowRunWithPrismaAdditionalMetadataEqualsSetParam interface { +type StepRunWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunModel() - additionalMetadataField() + stepRunModel() + updatedAtField() } -type WorkflowRunWithPrismaAdditionalMetadataSetParam interface { +type StepRunWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - additionalMetadataField() + stepRunModel() + updatedAtField() } -type workflowRunWithPrismaAdditionalMetadataSetParam struct { +type stepRunWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaAdditionalMetadataSetParam) field() builder.Field { +func (p stepRunWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaAdditionalMetadataSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaAdditionalMetadataSetParam) workflowRunModel() {} +func (p stepRunWithPrismaUpdatedAtSetParam) stepRunModel() {} -func (p workflowRunWithPrismaAdditionalMetadataSetParam) additionalMetadataField() {} +func (p stepRunWithPrismaUpdatedAtSetParam) updatedAtField() {} -type WorkflowRunWithPrismaAdditionalMetadataWhereParam interface { +type StepRunWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunModel() - additionalMetadataField() + stepRunModel() + updatedAtField() } -type workflowRunWithPrismaAdditionalMetadataEqualsParam struct { +type stepRunWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaAdditionalMetadataEqualsParam) field() builder.Field { +func (p stepRunWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaAdditionalMetadataEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaAdditionalMetadataEqualsParam) workflowRunModel() {} +func (p stepRunWithPrismaUpdatedAtEqualsParam) stepRunModel() {} -func (p workflowRunWithPrismaAdditionalMetadataEqualsParam) additionalMetadataField() {} +func (p stepRunWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (workflowRunWithPrismaAdditionalMetadataSetParam) settable() {} -func (workflowRunWithPrismaAdditionalMetadataEqualsParam) equals() {} +func (stepRunWithPrismaUpdatedAtSetParam) settable() {} +func (stepRunWithPrismaUpdatedAtEqualsParam) equals() {} -type workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam struct { +type stepRunWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) workflowRunModel() {} -func (p workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) additionalMetadataField() {} - -func (workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) unique() {} -func (workflowRunWithPrismaAdditionalMetadataEqualsUniqueParam) equals() {} - -type getGroupKeyRunActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p stepRunWithPrismaUpdatedAtEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -var getGroupKeyRunOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "workflowRunId"}, - {Name: "workerId"}, - {Name: "tickerId"}, - {Name: "status"}, - {Name: "input"}, - {Name: "output"}, - {Name: "requeueAfter"}, - {Name: "scheduleTimeoutAt"}, - {Name: "error"}, - {Name: "startedAt"}, - {Name: "finishedAt"}, - {Name: "timeoutAt"}, - {Name: "cancelledAt"}, - {Name: "cancelledReason"}, - {Name: "cancelledError"}, -} +func (stepRunWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (stepRunWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type GetGroupKeyRunRelationWith interface { +type StepRunWithPrismaDeletedAtEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - getGroupKeyRunRelation() + equals() + stepRunModel() + deletedAtField() } -type GetGroupKeyRunWhereParam interface { +type StepRunWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() + deletedAtField() } -type getGroupKeyRunDefaultParam struct { +type stepRunWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunDefaultParam) field() builder.Field { +func (p stepRunWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunDefaultParam) getQuery() builder.Query { +func (p stepRunWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunDefaultParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaDeletedAtSetParam) stepRunModel() {} -type GetGroupKeyRunOrderByParam interface { +func (p stepRunWithPrismaDeletedAtSetParam) deletedAtField() {} + +type StepRunWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() + deletedAtField() } -type getGroupKeyRunOrderByParam struct { +type stepRunWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunOrderByParam) field() builder.Field { +func (p stepRunWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunOrderByParam) getQuery() builder.Query { +func (p stepRunWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunOrderByParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaDeletedAtEqualsParam) stepRunModel() {} -type GetGroupKeyRunCursorParam interface { - field() builder.Field - getQuery() builder.Query - getGroupKeyRunModel() - isCursor() -} +func (p stepRunWithPrismaDeletedAtEqualsParam) deletedAtField() {} -type getGroupKeyRunCursorParam struct { +func (stepRunWithPrismaDeletedAtSetParam) settable() {} +func (stepRunWithPrismaDeletedAtEqualsParam) equals() {} + +type stepRunWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunCursorParam) field() builder.Field { +func (p stepRunWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunCursorParam) isCursor() {} - -func (p getGroupKeyRunCursorParam) getQuery() builder.Query { +func (p stepRunWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunCursorParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaDeletedAtEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -type GetGroupKeyRunParamUnique interface { +func (stepRunWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (stepRunWithPrismaDeletedAtEqualsUniqueParam) equals() {} + +type StepRunWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - getGroupKeyRunModel() + equals() + stepRunModel() + tenantField() } -type getGroupKeyRunParamUnique struct { +type StepRunWithPrismaTenantSetParam interface { + field() builder.Field + getQuery() builder.Query + stepRunModel() + tenantField() +} + +type stepRunWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunParamUnique) getGroupKeyRunModel() {} - -func (getGroupKeyRunParamUnique) unique() {} - -func (p getGroupKeyRunParamUnique) field() builder.Field { +func (p stepRunWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunParamUnique) getQuery() builder.Query { +func (p stepRunWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -type GetGroupKeyRunEqualsWhereParam interface { +func (p stepRunWithPrismaTenantSetParam) stepRunModel() {} + +func (p stepRunWithPrismaTenantSetParam) tenantField() {} + +type StepRunWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - getGroupKeyRunModel() + stepRunModel() + tenantField() } -type getGroupKeyRunEqualsParam struct { +type stepRunWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunEqualsParam) getGroupKeyRunModel() {} - -func (getGroupKeyRunEqualsParam) equals() {} - -func (p getGroupKeyRunEqualsParam) field() builder.Field { +func (p stepRunWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -type GetGroupKeyRunEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - getGroupKeyRunModel() -} +func (p stepRunWithPrismaTenantEqualsParam) stepRunModel() {} -type getGroupKeyRunEqualsUniqueParam struct { +func (p stepRunWithPrismaTenantEqualsParam) tenantField() {} + +func (stepRunWithPrismaTenantSetParam) settable() {} +func (stepRunWithPrismaTenantEqualsParam) equals() {} + +type stepRunWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunEqualsUniqueParam) getGroupKeyRunModel() {} - -func (getGroupKeyRunEqualsUniqueParam) unique() {} -func (getGroupKeyRunEqualsUniqueParam) equals() {} - -func (p getGroupKeyRunEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -type GetGroupKeyRunSetParam interface { - field() builder.Field - settable() - getGroupKeyRunModel() -} - -type getGroupKeyRunSetParam struct { - data builder.Field -} - -func (getGroupKeyRunSetParam) settable() {} - -func (p getGroupKeyRunSetParam) field() builder.Field { - return p.data -} +func (p stepRunWithPrismaTenantEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (p getGroupKeyRunSetParam) getGroupKeyRunModel() {} +func (stepRunWithPrismaTenantEqualsUniqueParam) unique() {} +func (stepRunWithPrismaTenantEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaIDEqualsSetParam interface { +type StepRunWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - idField() + stepRunModel() + tenantIDField() } -type GetGroupKeyRunWithPrismaIDSetParam interface { +type StepRunWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - idField() + stepRunModel() + tenantIDField() } -type getGroupKeyRunWithPrismaIDSetParam struct { +type stepRunWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaIDSetParam) field() builder.Field { +func (p stepRunWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaIDSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaIDSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaTenantIDSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaIDSetParam) idField() {} +func (p stepRunWithPrismaTenantIDSetParam) tenantIDField() {} -type GetGroupKeyRunWithPrismaIDWhereParam interface { +type StepRunWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - idField() + stepRunModel() + tenantIDField() } -type getGroupKeyRunWithPrismaIDEqualsParam struct { +type stepRunWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaIDEqualsParam) field() builder.Field { +func (p stepRunWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaIDEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaTenantIDEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaIDEqualsParam) idField() {} +func (p stepRunWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (getGroupKeyRunWithPrismaIDSetParam) settable() {} -func (getGroupKeyRunWithPrismaIDEqualsParam) equals() {} +func (stepRunWithPrismaTenantIDSetParam) settable() {} +func (stepRunWithPrismaTenantIDEqualsParam) equals() {} -type getGroupKeyRunWithPrismaIDEqualsUniqueParam struct { +type stepRunWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaIDEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaIDEqualsUniqueParam) idField() {} +func (p stepRunWithPrismaTenantIDEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (getGroupKeyRunWithPrismaIDEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaIDEqualsUniqueParam) equals() {} +func (stepRunWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (stepRunWithPrismaTenantIDEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaCreatedAtEqualsSetParam interface { +type StepRunWithPrismaJobRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - createdAtField() + stepRunModel() + jobRunField() } -type GetGroupKeyRunWithPrismaCreatedAtSetParam interface { +type StepRunWithPrismaJobRunSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - createdAtField() + stepRunModel() + jobRunField() } -type getGroupKeyRunWithPrismaCreatedAtSetParam struct { +type stepRunWithPrismaJobRunSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCreatedAtSetParam) field() builder.Field { +func (p stepRunWithPrismaJobRunSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaJobRunSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCreatedAtSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaJobRunSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaCreatedAtSetParam) createdAtField() {} +func (p stepRunWithPrismaJobRunSetParam) jobRunField() {} -type GetGroupKeyRunWithPrismaCreatedAtWhereParam interface { +type StepRunWithPrismaJobRunWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - createdAtField() + stepRunModel() + jobRunField() } -type getGroupKeyRunWithPrismaCreatedAtEqualsParam struct { +type stepRunWithPrismaJobRunEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaJobRunEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaJobRunEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCreatedAtEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaJobRunEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p stepRunWithPrismaJobRunEqualsParam) jobRunField() {} -func (getGroupKeyRunWithPrismaCreatedAtSetParam) settable() {} -func (getGroupKeyRunWithPrismaCreatedAtEqualsParam) equals() {} +func (stepRunWithPrismaJobRunSetParam) settable() {} +func (stepRunWithPrismaJobRunEqualsParam) equals() {} -type getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam struct { +type stepRunWithPrismaJobRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaJobRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaJobRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p stepRunWithPrismaJobRunEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaJobRunEqualsUniqueParam) jobRunField() {} -func (getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaJobRunEqualsUniqueParam) unique() {} +func (stepRunWithPrismaJobRunEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaUpdatedAtEqualsSetParam interface { +type StepRunWithPrismaJobRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - updatedAtField() + stepRunModel() + jobRunIDField() } -type GetGroupKeyRunWithPrismaUpdatedAtSetParam interface { +type StepRunWithPrismaJobRunIDSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - updatedAtField() + stepRunModel() + jobRunIDField() } -type getGroupKeyRunWithPrismaUpdatedAtSetParam struct { +type stepRunWithPrismaJobRunIDSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p stepRunWithPrismaJobRunIDSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaJobRunIDSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaUpdatedAtSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaJobRunIDSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p stepRunWithPrismaJobRunIDSetParam) jobRunIDField() {} -type GetGroupKeyRunWithPrismaUpdatedAtWhereParam interface { +type StepRunWithPrismaJobRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - updatedAtField() + stepRunModel() + jobRunIDField() } -type getGroupKeyRunWithPrismaUpdatedAtEqualsParam struct { +type stepRunWithPrismaJobRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaJobRunIDEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaJobRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaUpdatedAtEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaJobRunIDEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p stepRunWithPrismaJobRunIDEqualsParam) jobRunIDField() {} -func (getGroupKeyRunWithPrismaUpdatedAtSetParam) settable() {} -func (getGroupKeyRunWithPrismaUpdatedAtEqualsParam) equals() {} +func (stepRunWithPrismaJobRunIDSetParam) settable() {} +func (stepRunWithPrismaJobRunIDEqualsParam) equals() {} -type getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam struct { +type stepRunWithPrismaJobRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaJobRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaJobRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p stepRunWithPrismaJobRunIDEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaJobRunIDEqualsUniqueParam) jobRunIDField() {} -func (getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaJobRunIDEqualsUniqueParam) unique() {} +func (stepRunWithPrismaJobRunIDEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaDeletedAtEqualsSetParam interface { +type StepRunWithPrismaStepEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - deletedAtField() + stepRunModel() + stepField() } -type GetGroupKeyRunWithPrismaDeletedAtSetParam interface { +type StepRunWithPrismaStepSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - deletedAtField() + stepRunModel() + stepField() } -type getGroupKeyRunWithPrismaDeletedAtSetParam struct { +type stepRunWithPrismaStepSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaDeletedAtSetParam) field() builder.Field { +func (p stepRunWithPrismaStepSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaStepSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaDeletedAtSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaStepSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p stepRunWithPrismaStepSetParam) stepField() {} -type GetGroupKeyRunWithPrismaDeletedAtWhereParam interface { +type StepRunWithPrismaStepWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - deletedAtField() + stepRunModel() + stepField() } -type getGroupKeyRunWithPrismaDeletedAtEqualsParam struct { +type stepRunWithPrismaStepEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaStepEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaStepEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaDeletedAtEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaStepEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p stepRunWithPrismaStepEqualsParam) stepField() {} -func (getGroupKeyRunWithPrismaDeletedAtSetParam) settable() {} -func (getGroupKeyRunWithPrismaDeletedAtEqualsParam) equals() {} +func (stepRunWithPrismaStepSetParam) settable() {} +func (stepRunWithPrismaStepEqualsParam) equals() {} -type getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam struct { +type stepRunWithPrismaStepEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaStepEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaStepEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p stepRunWithPrismaStepEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaStepEqualsUniqueParam) stepField() {} -func (getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaStepEqualsUniqueParam) unique() {} +func (stepRunWithPrismaStepEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaTenantEqualsSetParam interface { +type StepRunWithPrismaStepIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - tenantField() + stepRunModel() + stepIDField() } -type GetGroupKeyRunWithPrismaTenantSetParam interface { +type StepRunWithPrismaStepIDSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - tenantField() + stepRunModel() + stepIDField() } -type getGroupKeyRunWithPrismaTenantSetParam struct { +type stepRunWithPrismaStepIDSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTenantSetParam) field() builder.Field { +func (p stepRunWithPrismaStepIDSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTenantSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaStepIDSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTenantSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaStepIDSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTenantSetParam) tenantField() {} +func (p stepRunWithPrismaStepIDSetParam) stepIDField() {} -type GetGroupKeyRunWithPrismaTenantWhereParam interface { +type StepRunWithPrismaStepIDWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - tenantField() + stepRunModel() + stepIDField() } -type getGroupKeyRunWithPrismaTenantEqualsParam struct { +type stepRunWithPrismaStepIDEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTenantEqualsParam) field() builder.Field { +func (p stepRunWithPrismaStepIDEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaStepIDEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTenantEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaStepIDEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTenantEqualsParam) tenantField() {} +func (p stepRunWithPrismaStepIDEqualsParam) stepIDField() {} -func (getGroupKeyRunWithPrismaTenantSetParam) settable() {} -func (getGroupKeyRunWithPrismaTenantEqualsParam) equals() {} +func (stepRunWithPrismaStepIDSetParam) settable() {} +func (stepRunWithPrismaStepIDEqualsParam) equals() {} -type getGroupKeyRunWithPrismaTenantEqualsUniqueParam struct { +type stepRunWithPrismaStepIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaStepIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaStepIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTenantEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p stepRunWithPrismaStepIDEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaStepIDEqualsUniqueParam) stepIDField() {} -func (getGroupKeyRunWithPrismaTenantEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaTenantEqualsUniqueParam) equals() {} +func (stepRunWithPrismaStepIDEqualsUniqueParam) unique() {} +func (stepRunWithPrismaStepIDEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaTenantIDEqualsSetParam interface { +type StepRunWithPrismaChildrenEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - tenantIDField() + stepRunModel() + childrenField() } -type GetGroupKeyRunWithPrismaTenantIDSetParam interface { +type StepRunWithPrismaChildrenSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - tenantIDField() + stepRunModel() + childrenField() } -type getGroupKeyRunWithPrismaTenantIDSetParam struct { +type stepRunWithPrismaChildrenSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTenantIDSetParam) field() builder.Field { +func (p stepRunWithPrismaChildrenSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildrenSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTenantIDSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaChildrenSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTenantIDSetParam) tenantIDField() {} +func (p stepRunWithPrismaChildrenSetParam) childrenField() {} -type GetGroupKeyRunWithPrismaTenantIDWhereParam interface { +type StepRunWithPrismaChildrenWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - tenantIDField() + stepRunModel() + childrenField() } -type getGroupKeyRunWithPrismaTenantIDEqualsParam struct { +type stepRunWithPrismaChildrenEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p stepRunWithPrismaChildrenEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildrenEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTenantIDEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaChildrenEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p stepRunWithPrismaChildrenEqualsParam) childrenField() {} -func (getGroupKeyRunWithPrismaTenantIDSetParam) settable() {} -func (getGroupKeyRunWithPrismaTenantIDEqualsParam) equals() {} +func (stepRunWithPrismaChildrenSetParam) settable() {} +func (stepRunWithPrismaChildrenEqualsParam) equals() {} -type getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam struct { +type stepRunWithPrismaChildrenEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaChildrenEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildrenEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p stepRunWithPrismaChildrenEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaChildrenEqualsUniqueParam) childrenField() {} -func (getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (stepRunWithPrismaChildrenEqualsUniqueParam) unique() {} +func (stepRunWithPrismaChildrenEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaWorkflowRunEqualsSetParam interface { +type StepRunWithPrismaParentsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - workflowRunField() + stepRunModel() + parentsField() } -type GetGroupKeyRunWithPrismaWorkflowRunSetParam interface { +type StepRunWithPrismaParentsSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - workflowRunField() + stepRunModel() + parentsField() } -type getGroupKeyRunWithPrismaWorkflowRunSetParam struct { +type stepRunWithPrismaParentsSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkflowRunSetParam) field() builder.Field { +func (p stepRunWithPrismaParentsSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkflowRunSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaParentsSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkflowRunSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaParentsSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaWorkflowRunSetParam) workflowRunField() {} +func (p stepRunWithPrismaParentsSetParam) parentsField() {} -type GetGroupKeyRunWithPrismaWorkflowRunWhereParam interface { +type StepRunWithPrismaParentsWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - workflowRunField() + stepRunModel() + parentsField() } -type getGroupKeyRunWithPrismaWorkflowRunEqualsParam struct { +type stepRunWithPrismaParentsEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkflowRunEqualsParam) field() builder.Field { +func (p stepRunWithPrismaParentsEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkflowRunEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaParentsEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkflowRunEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaParentsEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaWorkflowRunEqualsParam) workflowRunField() {} +func (p stepRunWithPrismaParentsEqualsParam) parentsField() {} -func (getGroupKeyRunWithPrismaWorkflowRunSetParam) settable() {} -func (getGroupKeyRunWithPrismaWorkflowRunEqualsParam) equals() {} +func (stepRunWithPrismaParentsSetParam) settable() {} +func (stepRunWithPrismaParentsEqualsParam) equals() {} -type getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam struct { +type stepRunWithPrismaParentsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaParentsEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaParentsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) workflowRunField() {} +func (p stepRunWithPrismaParentsEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaParentsEqualsUniqueParam) parentsField() {} -func (getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaWorkflowRunEqualsUniqueParam) equals() {} +func (stepRunWithPrismaParentsEqualsUniqueParam) unique() {} +func (stepRunWithPrismaParentsEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaWorkflowRunIDEqualsSetParam interface { +type StepRunWithPrismaOrderEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - workflowRunIDField() + stepRunModel() + orderField() } -type GetGroupKeyRunWithPrismaWorkflowRunIDSetParam interface { +type StepRunWithPrismaOrderSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - workflowRunIDField() + stepRunModel() + orderField() } -type getGroupKeyRunWithPrismaWorkflowRunIDSetParam struct { +type stepRunWithPrismaOrderSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkflowRunIDSetParam) field() builder.Field { +func (p stepRunWithPrismaOrderSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkflowRunIDSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaOrderSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkflowRunIDSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaOrderSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaWorkflowRunIDSetParam) workflowRunIDField() {} +func (p stepRunWithPrismaOrderSetParam) orderField() {} -type GetGroupKeyRunWithPrismaWorkflowRunIDWhereParam interface { +type StepRunWithPrismaOrderWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - workflowRunIDField() + stepRunModel() + orderField() } -type getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam struct { +type stepRunWithPrismaOrderEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) field() builder.Field { +func (p stepRunWithPrismaOrderEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaOrderEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaOrderEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) workflowRunIDField() {} +func (p stepRunWithPrismaOrderEqualsParam) orderField() {} -func (getGroupKeyRunWithPrismaWorkflowRunIDSetParam) settable() {} -func (getGroupKeyRunWithPrismaWorkflowRunIDEqualsParam) equals() {} +func (stepRunWithPrismaOrderSetParam) settable() {} +func (stepRunWithPrismaOrderEqualsParam) equals() {} -type getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam struct { +type stepRunWithPrismaOrderEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaOrderEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaOrderEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) workflowRunIDField() {} +func (p stepRunWithPrismaOrderEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaOrderEqualsUniqueParam) orderField() {} -func (getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaWorkflowRunIDEqualsUniqueParam) equals() {} +func (stepRunWithPrismaOrderEqualsUniqueParam) unique() {} +func (stepRunWithPrismaOrderEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaWorkerEqualsSetParam interface { +type StepRunWithPrismaWorkerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() + stepRunModel() workerField() } -type GetGroupKeyRunWithPrismaWorkerSetParam interface { +type StepRunWithPrismaWorkerSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() workerField() } -type getGroupKeyRunWithPrismaWorkerSetParam struct { +type stepRunWithPrismaWorkerSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkerSetParam) field() builder.Field { +func (p stepRunWithPrismaWorkerSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkerSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaWorkerSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkerSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaWorkerSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaWorkerSetParam) workerField() {} +func (p stepRunWithPrismaWorkerSetParam) workerField() {} -type GetGroupKeyRunWithPrismaWorkerWhereParam interface { +type StepRunWithPrismaWorkerWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() workerField() } -type getGroupKeyRunWithPrismaWorkerEqualsParam struct { +type stepRunWithPrismaWorkerEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkerEqualsParam) field() builder.Field { +func (p stepRunWithPrismaWorkerEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkerEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaWorkerEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkerEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaWorkerEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaWorkerEqualsParam) workerField() {} +func (p stepRunWithPrismaWorkerEqualsParam) workerField() {} -func (getGroupKeyRunWithPrismaWorkerSetParam) settable() {} -func (getGroupKeyRunWithPrismaWorkerEqualsParam) equals() {} +func (stepRunWithPrismaWorkerSetParam) settable() {} +func (stepRunWithPrismaWorkerEqualsParam) equals() {} -type getGroupKeyRunWithPrismaWorkerEqualsUniqueParam struct { +type stepRunWithPrismaWorkerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaWorkerEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) workerField() {} +func (p stepRunWithPrismaWorkerEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaWorkerEqualsUniqueParam) workerField() {} -func (getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaWorkerEqualsUniqueParam) equals() {} +func (stepRunWithPrismaWorkerEqualsUniqueParam) unique() {} +func (stepRunWithPrismaWorkerEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaWorkerIDEqualsSetParam interface { +type StepRunWithPrismaWorkerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() + stepRunModel() workerIDField() } -type GetGroupKeyRunWithPrismaWorkerIDSetParam interface { +type StepRunWithPrismaWorkerIDSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() workerIDField() } -type getGroupKeyRunWithPrismaWorkerIDSetParam struct { +type stepRunWithPrismaWorkerIDSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkerIDSetParam) field() builder.Field { +func (p stepRunWithPrismaWorkerIDSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkerIDSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaWorkerIDSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkerIDSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaWorkerIDSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaWorkerIDSetParam) workerIDField() {} +func (p stepRunWithPrismaWorkerIDSetParam) workerIDField() {} -type GetGroupKeyRunWithPrismaWorkerIDWhereParam interface { +type StepRunWithPrismaWorkerIDWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() workerIDField() } -type getGroupKeyRunWithPrismaWorkerIDEqualsParam struct { +type stepRunWithPrismaWorkerIDEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkerIDEqualsParam) field() builder.Field { +func (p stepRunWithPrismaWorkerIDEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkerIDEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaWorkerIDEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaWorkerIDEqualsParam) workerIDField() {} +func (p stepRunWithPrismaWorkerIDEqualsParam) workerIDField() {} -func (getGroupKeyRunWithPrismaWorkerIDSetParam) settable() {} -func (getGroupKeyRunWithPrismaWorkerIDEqualsParam) equals() {} +func (stepRunWithPrismaWorkerIDSetParam) settable() {} +func (stepRunWithPrismaWorkerIDEqualsParam) equals() {} -type getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam struct { +type stepRunWithPrismaWorkerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} +func (p stepRunWithPrismaWorkerIDEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} -func (getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaWorkerIDEqualsUniqueParam) equals() {} +func (stepRunWithPrismaWorkerIDEqualsUniqueParam) unique() {} +func (stepRunWithPrismaWorkerIDEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaTickerEqualsSetParam interface { +type StepRunWithPrismaTickerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() + stepRunModel() tickerField() } -type GetGroupKeyRunWithPrismaTickerSetParam interface { +type StepRunWithPrismaTickerSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() tickerField() } -type getGroupKeyRunWithPrismaTickerSetParam struct { +type stepRunWithPrismaTickerSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTickerSetParam) field() builder.Field { +func (p stepRunWithPrismaTickerSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTickerSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaTickerSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTickerSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaTickerSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTickerSetParam) tickerField() {} +func (p stepRunWithPrismaTickerSetParam) tickerField() {} -type GetGroupKeyRunWithPrismaTickerWhereParam interface { +type StepRunWithPrismaTickerWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() tickerField() } -type getGroupKeyRunWithPrismaTickerEqualsParam struct { +type stepRunWithPrismaTickerEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTickerEqualsParam) field() builder.Field { +func (p stepRunWithPrismaTickerEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTickerEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaTickerEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTickerEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaTickerEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTickerEqualsParam) tickerField() {} +func (p stepRunWithPrismaTickerEqualsParam) tickerField() {} -func (getGroupKeyRunWithPrismaTickerSetParam) settable() {} -func (getGroupKeyRunWithPrismaTickerEqualsParam) equals() {} +func (stepRunWithPrismaTickerSetParam) settable() {} +func (stepRunWithPrismaTickerEqualsParam) equals() {} -type getGroupKeyRunWithPrismaTickerEqualsUniqueParam struct { +type stepRunWithPrismaTickerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTickerEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaTickerEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTickerEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaTickerEqualsUniqueParam) tickerField() {} +func (p stepRunWithPrismaTickerEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaTickerEqualsUniqueParam) tickerField() {} -func (getGroupKeyRunWithPrismaTickerEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaTickerEqualsUniqueParam) equals() {} +func (stepRunWithPrismaTickerEqualsUniqueParam) unique() {} +func (stepRunWithPrismaTickerEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaTickerIDEqualsSetParam interface { +type StepRunWithPrismaTickerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() + stepRunModel() tickerIDField() } -type GetGroupKeyRunWithPrismaTickerIDSetParam interface { +type StepRunWithPrismaTickerIDSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() tickerIDField() } -type getGroupKeyRunWithPrismaTickerIDSetParam struct { +type stepRunWithPrismaTickerIDSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTickerIDSetParam) field() builder.Field { +func (p stepRunWithPrismaTickerIDSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTickerIDSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaTickerIDSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTickerIDSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaTickerIDSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTickerIDSetParam) tickerIDField() {} +func (p stepRunWithPrismaTickerIDSetParam) tickerIDField() {} -type GetGroupKeyRunWithPrismaTickerIDWhereParam interface { +type StepRunWithPrismaTickerIDWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() tickerIDField() } -type getGroupKeyRunWithPrismaTickerIDEqualsParam struct { +type stepRunWithPrismaTickerIDEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTickerIDEqualsParam) field() builder.Field { +func (p stepRunWithPrismaTickerIDEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTickerIDEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaTickerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTickerIDEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaTickerIDEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTickerIDEqualsParam) tickerIDField() {} +func (p stepRunWithPrismaTickerIDEqualsParam) tickerIDField() {} -func (getGroupKeyRunWithPrismaTickerIDSetParam) settable() {} -func (getGroupKeyRunWithPrismaTickerIDEqualsParam) equals() {} +func (stepRunWithPrismaTickerIDSetParam) settable() {} +func (stepRunWithPrismaTickerIDEqualsParam) equals() {} -type getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam struct { +type stepRunWithPrismaTickerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} +func (p stepRunWithPrismaTickerIDEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} -func (getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaTickerIDEqualsUniqueParam) equals() {} +func (stepRunWithPrismaTickerIDEqualsUniqueParam) unique() {} +func (stepRunWithPrismaTickerIDEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaStatusEqualsSetParam interface { +type StepRunWithPrismaStatusEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() + stepRunModel() statusField() } -type GetGroupKeyRunWithPrismaStatusSetParam interface { +type StepRunWithPrismaStatusSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() statusField() } -type getGroupKeyRunWithPrismaStatusSetParam struct { +type stepRunWithPrismaStatusSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaStatusSetParam) field() builder.Field { +func (p stepRunWithPrismaStatusSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaStatusSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaStatusSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaStatusSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaStatusSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaStatusSetParam) statusField() {} +func (p stepRunWithPrismaStatusSetParam) statusField() {} -type GetGroupKeyRunWithPrismaStatusWhereParam interface { +type StepRunWithPrismaStatusWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() statusField() } -type getGroupKeyRunWithPrismaStatusEqualsParam struct { +type stepRunWithPrismaStatusEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaStatusEqualsParam) field() builder.Field { +func (p stepRunWithPrismaStatusEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaStatusEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaStatusEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaStatusEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaStatusEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaStatusEqualsParam) statusField() {} +func (p stepRunWithPrismaStatusEqualsParam) statusField() {} -func (getGroupKeyRunWithPrismaStatusSetParam) settable() {} -func (getGroupKeyRunWithPrismaStatusEqualsParam) equals() {} +func (stepRunWithPrismaStatusSetParam) settable() {} +func (stepRunWithPrismaStatusEqualsParam) equals() {} -type getGroupKeyRunWithPrismaStatusEqualsUniqueParam struct { +type stepRunWithPrismaStatusEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaStatusEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaStatusEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaStatusEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaStatusEqualsUniqueParam) statusField() {} +func (p stepRunWithPrismaStatusEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaStatusEqualsUniqueParam) statusField() {} -func (getGroupKeyRunWithPrismaStatusEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaStatusEqualsUniqueParam) equals() {} +func (stepRunWithPrismaStatusEqualsUniqueParam) unique() {} +func (stepRunWithPrismaStatusEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaInputEqualsSetParam interface { +type StepRunWithPrismaInputEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() + stepRunModel() inputField() } -type GetGroupKeyRunWithPrismaInputSetParam interface { +type StepRunWithPrismaInputSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() inputField() } -type getGroupKeyRunWithPrismaInputSetParam struct { +type stepRunWithPrismaInputSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaInputSetParam) field() builder.Field { +func (p stepRunWithPrismaInputSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaInputSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaInputSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaInputSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaInputSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaInputSetParam) inputField() {} +func (p stepRunWithPrismaInputSetParam) inputField() {} -type GetGroupKeyRunWithPrismaInputWhereParam interface { +type StepRunWithPrismaInputWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() inputField() } -type getGroupKeyRunWithPrismaInputEqualsParam struct { +type stepRunWithPrismaInputEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaInputEqualsParam) field() builder.Field { +func (p stepRunWithPrismaInputEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaInputEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaInputEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaInputEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaInputEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaInputEqualsParam) inputField() {} +func (p stepRunWithPrismaInputEqualsParam) inputField() {} -func (getGroupKeyRunWithPrismaInputSetParam) settable() {} -func (getGroupKeyRunWithPrismaInputEqualsParam) equals() {} +func (stepRunWithPrismaInputSetParam) settable() {} +func (stepRunWithPrismaInputEqualsParam) equals() {} -type getGroupKeyRunWithPrismaInputEqualsUniqueParam struct { +type stepRunWithPrismaInputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaInputEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaInputEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaInputEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaInputEqualsUniqueParam) inputField() {} +func (p stepRunWithPrismaInputEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaInputEqualsUniqueParam) inputField() {} -func (getGroupKeyRunWithPrismaInputEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaInputEqualsUniqueParam) equals() {} +func (stepRunWithPrismaInputEqualsUniqueParam) unique() {} +func (stepRunWithPrismaInputEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaOutputEqualsSetParam interface { +type StepRunWithPrismaOutputEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() + stepRunModel() outputField() } -type GetGroupKeyRunWithPrismaOutputSetParam interface { +type StepRunWithPrismaOutputSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() outputField() } -type getGroupKeyRunWithPrismaOutputSetParam struct { +type stepRunWithPrismaOutputSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaOutputSetParam) field() builder.Field { +func (p stepRunWithPrismaOutputSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaOutputSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaOutputSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaOutputSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaOutputSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaOutputSetParam) outputField() {} +func (p stepRunWithPrismaOutputSetParam) outputField() {} -type GetGroupKeyRunWithPrismaOutputWhereParam interface { +type StepRunWithPrismaOutputWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() + stepRunModel() outputField() } -type getGroupKeyRunWithPrismaOutputEqualsParam struct { +type stepRunWithPrismaOutputEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaOutputEqualsParam) field() builder.Field { +func (p stepRunWithPrismaOutputEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaOutputEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaOutputEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaOutputEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaOutputEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaOutputEqualsParam) outputField() {} +func (p stepRunWithPrismaOutputEqualsParam) outputField() {} -func (getGroupKeyRunWithPrismaOutputSetParam) settable() {} -func (getGroupKeyRunWithPrismaOutputEqualsParam) equals() {} +func (stepRunWithPrismaOutputSetParam) settable() {} +func (stepRunWithPrismaOutputEqualsParam) equals() {} -type getGroupKeyRunWithPrismaOutputEqualsUniqueParam struct { +type stepRunWithPrismaOutputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaOutputEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaOutputEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaOutputEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaOutputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaOutputEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaOutputEqualsUniqueParam) outputField() {} +func (p stepRunWithPrismaOutputEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaOutputEqualsUniqueParam) outputField() {} -func (getGroupKeyRunWithPrismaOutputEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaOutputEqualsUniqueParam) equals() {} +func (stepRunWithPrismaOutputEqualsUniqueParam) unique() {} +func (stepRunWithPrismaOutputEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaRequeueAfterEqualsSetParam interface { +type StepRunWithPrismaInputSchemaEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - requeueAfterField() + stepRunModel() + inputSchemaField() } -type GetGroupKeyRunWithPrismaRequeueAfterSetParam interface { +type StepRunWithPrismaInputSchemaSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - requeueAfterField() + stepRunModel() + inputSchemaField() } -type getGroupKeyRunWithPrismaRequeueAfterSetParam struct { +type stepRunWithPrismaInputSchemaSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaRequeueAfterSetParam) field() builder.Field { +func (p stepRunWithPrismaInputSchemaSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaRequeueAfterSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaInputSchemaSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaRequeueAfterSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaInputSchemaSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaRequeueAfterSetParam) requeueAfterField() {} +func (p stepRunWithPrismaInputSchemaSetParam) inputSchemaField() {} -type GetGroupKeyRunWithPrismaRequeueAfterWhereParam interface { +type StepRunWithPrismaInputSchemaWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - requeueAfterField() + stepRunModel() + inputSchemaField() } -type getGroupKeyRunWithPrismaRequeueAfterEqualsParam struct { +type stepRunWithPrismaInputSchemaEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaRequeueAfterEqualsParam) field() builder.Field { +func (p stepRunWithPrismaInputSchemaEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaRequeueAfterEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaInputSchemaEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaRequeueAfterEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaInputSchemaEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaRequeueAfterEqualsParam) requeueAfterField() {} +func (p stepRunWithPrismaInputSchemaEqualsParam) inputSchemaField() {} -func (getGroupKeyRunWithPrismaRequeueAfterSetParam) settable() {} -func (getGroupKeyRunWithPrismaRequeueAfterEqualsParam) equals() {} +func (stepRunWithPrismaInputSchemaSetParam) settable() {} +func (stepRunWithPrismaInputSchemaEqualsParam) equals() {} -type getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam struct { +type stepRunWithPrismaInputSchemaEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaInputSchemaEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaInputSchemaEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) requeueAfterField() {} +func (p stepRunWithPrismaInputSchemaEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaInputSchemaEqualsUniqueParam) inputSchemaField() {} -func (getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaRequeueAfterEqualsUniqueParam) equals() {} +func (stepRunWithPrismaInputSchemaEqualsUniqueParam) unique() {} +func (stepRunWithPrismaInputSchemaEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaScheduleTimeoutAtEqualsSetParam interface { +type StepRunWithPrismaRequeueAfterEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - scheduleTimeoutAtField() + stepRunModel() + requeueAfterField() } -type GetGroupKeyRunWithPrismaScheduleTimeoutAtSetParam interface { +type StepRunWithPrismaRequeueAfterSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - scheduleTimeoutAtField() + stepRunModel() + requeueAfterField() } -type getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam struct { +type stepRunWithPrismaRequeueAfterSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) field() builder.Field { +func (p stepRunWithPrismaRequeueAfterSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaRequeueAfterSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaRequeueAfterSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) scheduleTimeoutAtField() {} +func (p stepRunWithPrismaRequeueAfterSetParam) requeueAfterField() {} -type GetGroupKeyRunWithPrismaScheduleTimeoutAtWhereParam interface { +type StepRunWithPrismaRequeueAfterWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - scheduleTimeoutAtField() + stepRunModel() + requeueAfterField() } -type getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam struct { +type stepRunWithPrismaRequeueAfterEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaRequeueAfterEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaRequeueAfterEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaRequeueAfterEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) scheduleTimeoutAtField() {} +func (p stepRunWithPrismaRequeueAfterEqualsParam) requeueAfterField() {} -func (getGroupKeyRunWithPrismaScheduleTimeoutAtSetParam) settable() {} -func (getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsParam) equals() {} +func (stepRunWithPrismaRequeueAfterSetParam) settable() {} +func (stepRunWithPrismaRequeueAfterEqualsParam) equals() {} -type getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam struct { +type stepRunWithPrismaRequeueAfterEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaRequeueAfterEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaRequeueAfterEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) scheduleTimeoutAtField() {} +func (p stepRunWithPrismaRequeueAfterEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaRequeueAfterEqualsUniqueParam) requeueAfterField() {} -func (getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaRequeueAfterEqualsUniqueParam) unique() {} +func (stepRunWithPrismaRequeueAfterEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaErrorEqualsSetParam interface { +type StepRunWithPrismaScheduleTimeoutAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - errorField() + stepRunModel() + scheduleTimeoutAtField() } -type GetGroupKeyRunWithPrismaErrorSetParam interface { +type StepRunWithPrismaScheduleTimeoutAtSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - errorField() + stepRunModel() + scheduleTimeoutAtField() } -type getGroupKeyRunWithPrismaErrorSetParam struct { +type stepRunWithPrismaScheduleTimeoutAtSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaErrorSetParam) field() builder.Field { +func (p stepRunWithPrismaScheduleTimeoutAtSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaErrorSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaScheduleTimeoutAtSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaErrorSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaScheduleTimeoutAtSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaErrorSetParam) errorField() {} +func (p stepRunWithPrismaScheduleTimeoutAtSetParam) scheduleTimeoutAtField() {} -type GetGroupKeyRunWithPrismaErrorWhereParam interface { +type StepRunWithPrismaScheduleTimeoutAtWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - errorField() + stepRunModel() + scheduleTimeoutAtField() } -type getGroupKeyRunWithPrismaErrorEqualsParam struct { +type stepRunWithPrismaScheduleTimeoutAtEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaErrorEqualsParam) field() builder.Field { +func (p stepRunWithPrismaScheduleTimeoutAtEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaErrorEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaScheduleTimeoutAtEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaErrorEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaScheduleTimeoutAtEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaErrorEqualsParam) errorField() {} +func (p stepRunWithPrismaScheduleTimeoutAtEqualsParam) scheduleTimeoutAtField() {} -func (getGroupKeyRunWithPrismaErrorSetParam) settable() {} -func (getGroupKeyRunWithPrismaErrorEqualsParam) equals() {} +func (stepRunWithPrismaScheduleTimeoutAtSetParam) settable() {} +func (stepRunWithPrismaScheduleTimeoutAtEqualsParam) equals() {} -type getGroupKeyRunWithPrismaErrorEqualsUniqueParam struct { +type stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaErrorEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaErrorEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaErrorEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaErrorEqualsUniqueParam) errorField() {} +func (p stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) scheduleTimeoutAtField() {} -func (getGroupKeyRunWithPrismaErrorEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaErrorEqualsUniqueParam) equals() {} +func (stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) unique() {} +func (stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaStartedAtEqualsSetParam interface { +type StepRunWithPrismaRetryCountEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - startedAtField() + stepRunModel() + retryCountField() } -type GetGroupKeyRunWithPrismaStartedAtSetParam interface { +type StepRunWithPrismaRetryCountSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - startedAtField() + stepRunModel() + retryCountField() } -type getGroupKeyRunWithPrismaStartedAtSetParam struct { +type stepRunWithPrismaRetryCountSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaStartedAtSetParam) field() builder.Field { +func (p stepRunWithPrismaRetryCountSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaStartedAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaRetryCountSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaStartedAtSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaRetryCountSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaStartedAtSetParam) startedAtField() {} +func (p stepRunWithPrismaRetryCountSetParam) retryCountField() {} -type GetGroupKeyRunWithPrismaStartedAtWhereParam interface { +type StepRunWithPrismaRetryCountWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - startedAtField() + stepRunModel() + retryCountField() } -type getGroupKeyRunWithPrismaStartedAtEqualsParam struct { +type stepRunWithPrismaRetryCountEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaStartedAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaRetryCountEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaStartedAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaRetryCountEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaStartedAtEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaRetryCountEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaStartedAtEqualsParam) startedAtField() {} +func (p stepRunWithPrismaRetryCountEqualsParam) retryCountField() {} -func (getGroupKeyRunWithPrismaStartedAtSetParam) settable() {} -func (getGroupKeyRunWithPrismaStartedAtEqualsParam) equals() {} +func (stepRunWithPrismaRetryCountSetParam) settable() {} +func (stepRunWithPrismaRetryCountEqualsParam) equals() {} -type getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam struct { +type stepRunWithPrismaRetryCountEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaRetryCountEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaRetryCountEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} +func (p stepRunWithPrismaRetryCountEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaRetryCountEqualsUniqueParam) retryCountField() {} -func (getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaStartedAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaRetryCountEqualsUniqueParam) unique() {} +func (stepRunWithPrismaRetryCountEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaFinishedAtEqualsSetParam interface { +type StepRunWithPrismaErrorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - finishedAtField() + stepRunModel() + errorField() } -type GetGroupKeyRunWithPrismaFinishedAtSetParam interface { +type StepRunWithPrismaErrorSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - finishedAtField() + stepRunModel() + errorField() } -type getGroupKeyRunWithPrismaFinishedAtSetParam struct { +type stepRunWithPrismaErrorSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaFinishedAtSetParam) field() builder.Field { +func (p stepRunWithPrismaErrorSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaFinishedAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaErrorSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaFinishedAtSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaErrorSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaFinishedAtSetParam) finishedAtField() {} +func (p stepRunWithPrismaErrorSetParam) errorField() {} -type GetGroupKeyRunWithPrismaFinishedAtWhereParam interface { +type StepRunWithPrismaErrorWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - finishedAtField() + stepRunModel() + errorField() } -type getGroupKeyRunWithPrismaFinishedAtEqualsParam struct { +type stepRunWithPrismaErrorEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaFinishedAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaErrorEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaErrorEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaFinishedAtEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaErrorEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaFinishedAtEqualsParam) finishedAtField() {} +func (p stepRunWithPrismaErrorEqualsParam) errorField() {} -func (getGroupKeyRunWithPrismaFinishedAtSetParam) settable() {} -func (getGroupKeyRunWithPrismaFinishedAtEqualsParam) equals() {} +func (stepRunWithPrismaErrorSetParam) settable() {} +func (stepRunWithPrismaErrorEqualsParam) equals() {} -type getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam struct { +type stepRunWithPrismaErrorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaErrorEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaErrorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} +func (p stepRunWithPrismaErrorEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaErrorEqualsUniqueParam) errorField() {} -func (getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaFinishedAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaErrorEqualsUniqueParam) unique() {} +func (stepRunWithPrismaErrorEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaTimeoutAtEqualsSetParam interface { +type StepRunWithPrismaStartedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - timeoutAtField() + stepRunModel() + startedAtField() } -type GetGroupKeyRunWithPrismaTimeoutAtSetParam interface { +type StepRunWithPrismaStartedAtSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - timeoutAtField() + stepRunModel() + startedAtField() } -type getGroupKeyRunWithPrismaTimeoutAtSetParam struct { +type stepRunWithPrismaStartedAtSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTimeoutAtSetParam) field() builder.Field { +func (p stepRunWithPrismaStartedAtSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTimeoutAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaStartedAtSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTimeoutAtSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaStartedAtSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTimeoutAtSetParam) timeoutAtField() {} +func (p stepRunWithPrismaStartedAtSetParam) startedAtField() {} -type GetGroupKeyRunWithPrismaTimeoutAtWhereParam interface { +type StepRunWithPrismaStartedAtWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - timeoutAtField() + stepRunModel() + startedAtField() } -type getGroupKeyRunWithPrismaTimeoutAtEqualsParam struct { +type stepRunWithPrismaStartedAtEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTimeoutAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaStartedAtEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTimeoutAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaStartedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTimeoutAtEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaStartedAtEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaTimeoutAtEqualsParam) timeoutAtField() {} +func (p stepRunWithPrismaStartedAtEqualsParam) startedAtField() {} -func (getGroupKeyRunWithPrismaTimeoutAtSetParam) settable() {} -func (getGroupKeyRunWithPrismaTimeoutAtEqualsParam) equals() {} +func (stepRunWithPrismaStartedAtSetParam) settable() {} +func (stepRunWithPrismaStartedAtEqualsParam) equals() {} -type getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam struct { +type stepRunWithPrismaStartedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) timeoutAtField() {} +func (p stepRunWithPrismaStartedAtEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} -func (getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaTimeoutAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaStartedAtEqualsUniqueParam) unique() {} +func (stepRunWithPrismaStartedAtEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaCancelledAtEqualsSetParam interface { +type StepRunWithPrismaFinishedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - cancelledAtField() + stepRunModel() + finishedAtField() } -type GetGroupKeyRunWithPrismaCancelledAtSetParam interface { +type StepRunWithPrismaFinishedAtSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - cancelledAtField() + stepRunModel() + finishedAtField() } -type getGroupKeyRunWithPrismaCancelledAtSetParam struct { +type stepRunWithPrismaFinishedAtSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledAtSetParam) field() builder.Field { +func (p stepRunWithPrismaFinishedAtSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaFinishedAtSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledAtSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaFinishedAtSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledAtSetParam) cancelledAtField() {} +func (p stepRunWithPrismaFinishedAtSetParam) finishedAtField() {} -type GetGroupKeyRunWithPrismaCancelledAtWhereParam interface { +type StepRunWithPrismaFinishedAtWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - cancelledAtField() + stepRunModel() + finishedAtField() } -type getGroupKeyRunWithPrismaCancelledAtEqualsParam struct { +type stepRunWithPrismaFinishedAtEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaFinishedAtEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledAtEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaFinishedAtEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledAtEqualsParam) cancelledAtField() {} +func (p stepRunWithPrismaFinishedAtEqualsParam) finishedAtField() {} -func (getGroupKeyRunWithPrismaCancelledAtSetParam) settable() {} -func (getGroupKeyRunWithPrismaCancelledAtEqualsParam) equals() {} +func (stepRunWithPrismaFinishedAtSetParam) settable() {} +func (stepRunWithPrismaFinishedAtEqualsParam) equals() {} -type getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam struct { +type stepRunWithPrismaFinishedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) cancelledAtField() {} +func (p stepRunWithPrismaFinishedAtEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} -func (getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaCancelledAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaFinishedAtEqualsUniqueParam) unique() {} +func (stepRunWithPrismaFinishedAtEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaCancelledReasonEqualsSetParam interface { +type StepRunWithPrismaTimeoutAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - cancelledReasonField() + stepRunModel() + timeoutAtField() } -type GetGroupKeyRunWithPrismaCancelledReasonSetParam interface { +type StepRunWithPrismaTimeoutAtSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - cancelledReasonField() + stepRunModel() + timeoutAtField() } -type getGroupKeyRunWithPrismaCancelledReasonSetParam struct { +type stepRunWithPrismaTimeoutAtSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledReasonSetParam) field() builder.Field { +func (p stepRunWithPrismaTimeoutAtSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledReasonSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaTimeoutAtSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledReasonSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaTimeoutAtSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledReasonSetParam) cancelledReasonField() {} +func (p stepRunWithPrismaTimeoutAtSetParam) timeoutAtField() {} -type GetGroupKeyRunWithPrismaCancelledReasonWhereParam interface { +type StepRunWithPrismaTimeoutAtWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - cancelledReasonField() + stepRunModel() + timeoutAtField() } -type getGroupKeyRunWithPrismaCancelledReasonEqualsParam struct { +type stepRunWithPrismaTimeoutAtEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledReasonEqualsParam) field() builder.Field { +func (p stepRunWithPrismaTimeoutAtEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledReasonEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaTimeoutAtEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledReasonEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaTimeoutAtEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledReasonEqualsParam) cancelledReasonField() {} +func (p stepRunWithPrismaTimeoutAtEqualsParam) timeoutAtField() {} -func (getGroupKeyRunWithPrismaCancelledReasonSetParam) settable() {} -func (getGroupKeyRunWithPrismaCancelledReasonEqualsParam) equals() {} +func (stepRunWithPrismaTimeoutAtSetParam) settable() {} +func (stepRunWithPrismaTimeoutAtEqualsParam) equals() {} -type getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam struct { +type stepRunWithPrismaTimeoutAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaTimeoutAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaTimeoutAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) cancelledReasonField() {} +func (p stepRunWithPrismaTimeoutAtEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaTimeoutAtEqualsUniqueParam) timeoutAtField() {} -func (getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaCancelledReasonEqualsUniqueParam) equals() {} +func (stepRunWithPrismaTimeoutAtEqualsUniqueParam) unique() {} +func (stepRunWithPrismaTimeoutAtEqualsUniqueParam) equals() {} -type GetGroupKeyRunWithPrismaCancelledErrorEqualsSetParam interface { +type StepRunWithPrismaCancelledAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - getGroupKeyRunModel() - cancelledErrorField() + stepRunModel() + cancelledAtField() } -type GetGroupKeyRunWithPrismaCancelledErrorSetParam interface { +type StepRunWithPrismaCancelledAtSetParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - cancelledErrorField() + stepRunModel() + cancelledAtField() } -type getGroupKeyRunWithPrismaCancelledErrorSetParam struct { +type stepRunWithPrismaCancelledAtSetParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledErrorSetParam) field() builder.Field { +func (p stepRunWithPrismaCancelledAtSetParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledErrorSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledAtSetParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledErrorSetParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaCancelledAtSetParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledErrorSetParam) cancelledErrorField() {} +func (p stepRunWithPrismaCancelledAtSetParam) cancelledAtField() {} -type GetGroupKeyRunWithPrismaCancelledErrorWhereParam interface { +type StepRunWithPrismaCancelledAtWhereParam interface { field() builder.Field getQuery() builder.Query - getGroupKeyRunModel() - cancelledErrorField() + stepRunModel() + cancelledAtField() } -type getGroupKeyRunWithPrismaCancelledErrorEqualsParam struct { +type stepRunWithPrismaCancelledAtEqualsParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledErrorEqualsParam) field() builder.Field { +func (p stepRunWithPrismaCancelledAtEqualsParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledErrorEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledAtEqualsParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledErrorEqualsParam) getGroupKeyRunModel() {} +func (p stepRunWithPrismaCancelledAtEqualsParam) stepRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledErrorEqualsParam) cancelledErrorField() {} +func (p stepRunWithPrismaCancelledAtEqualsParam) cancelledAtField() {} -func (getGroupKeyRunWithPrismaCancelledErrorSetParam) settable() {} -func (getGroupKeyRunWithPrismaCancelledErrorEqualsParam) equals() {} +func (stepRunWithPrismaCancelledAtSetParam) settable() {} +func (stepRunWithPrismaCancelledAtEqualsParam) equals() {} -type getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam struct { +type stepRunWithPrismaCancelledAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaCancelledAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) getGroupKeyRunModel() {} -func (p getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) cancelledErrorField() {} - -func (getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) unique() {} -func (getGroupKeyRunWithPrismaCancelledErrorEqualsUniqueParam) equals() {} - -type workflowRunTriggeredByActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p stepRunWithPrismaCancelledAtEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaCancelledAtEqualsUniqueParam) cancelledAtField() {} -var workflowRunTriggeredByOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "parentId"}, - {Name: "input"}, - {Name: "eventId"}, - {Name: "cronParentId"}, - {Name: "cronSchedule"}, - {Name: "scheduledId"}, -} +func (stepRunWithPrismaCancelledAtEqualsUniqueParam) unique() {} +func (stepRunWithPrismaCancelledAtEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByRelationWith interface { +type StepRunWithPrismaCancelledReasonEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - workflowRunTriggeredByRelation() + equals() + stepRunModel() + cancelledReasonField() } -type WorkflowRunTriggeredByWhereParam interface { +type StepRunWithPrismaCancelledReasonSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() + stepRunModel() + cancelledReasonField() } -type workflowRunTriggeredByDefaultParam struct { +type stepRunWithPrismaCancelledReasonSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByDefaultParam) field() builder.Field { +func (p stepRunWithPrismaCancelledReasonSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByDefaultParam) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledReasonSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByDefaultParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaCancelledReasonSetParam) stepRunModel() {} -type WorkflowRunTriggeredByOrderByParam interface { +func (p stepRunWithPrismaCancelledReasonSetParam) cancelledReasonField() {} + +type StepRunWithPrismaCancelledReasonWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() + stepRunModel() + cancelledReasonField() } -type workflowRunTriggeredByOrderByParam struct { +type stepRunWithPrismaCancelledReasonEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByOrderByParam) field() builder.Field { +func (p stepRunWithPrismaCancelledReasonEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByOrderByParam) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledReasonEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByOrderByParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaCancelledReasonEqualsParam) stepRunModel() {} -type WorkflowRunTriggeredByCursorParam interface { - field() builder.Field - getQuery() builder.Query - workflowRunTriggeredByModel() - isCursor() -} +func (p stepRunWithPrismaCancelledReasonEqualsParam) cancelledReasonField() {} -type workflowRunTriggeredByCursorParam struct { +func (stepRunWithPrismaCancelledReasonSetParam) settable() {} +func (stepRunWithPrismaCancelledReasonEqualsParam) equals() {} + +type stepRunWithPrismaCancelledReasonEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByCursorParam) field() builder.Field { +func (p stepRunWithPrismaCancelledReasonEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByCursorParam) isCursor() {} - -func (p workflowRunTriggeredByCursorParam) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledReasonEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByCursorParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaCancelledReasonEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaCancelledReasonEqualsUniqueParam) cancelledReasonField() {} -type WorkflowRunTriggeredByParamUnique interface { +func (stepRunWithPrismaCancelledReasonEqualsUniqueParam) unique() {} +func (stepRunWithPrismaCancelledReasonEqualsUniqueParam) equals() {} + +type StepRunWithPrismaCancelledErrorEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - workflowRunTriggeredByModel() + equals() + stepRunModel() + cancelledErrorField() } -type workflowRunTriggeredByParamUnique struct { +type StepRunWithPrismaCancelledErrorSetParam interface { + field() builder.Field + getQuery() builder.Query + stepRunModel() + cancelledErrorField() +} + +type stepRunWithPrismaCancelledErrorSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByParamUnique) workflowRunTriggeredByModel() {} - -func (workflowRunTriggeredByParamUnique) unique() {} - -func (p workflowRunTriggeredByParamUnique) field() builder.Field { +func (p stepRunWithPrismaCancelledErrorSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByParamUnique) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledErrorSetParam) getQuery() builder.Query { return p.query } -type WorkflowRunTriggeredByEqualsWhereParam interface { +func (p stepRunWithPrismaCancelledErrorSetParam) stepRunModel() {} + +func (p stepRunWithPrismaCancelledErrorSetParam) cancelledErrorField() {} + +type StepRunWithPrismaCancelledErrorWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - workflowRunTriggeredByModel() + stepRunModel() + cancelledErrorField() } -type workflowRunTriggeredByEqualsParam struct { +type stepRunWithPrismaCancelledErrorEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByEqualsParam) workflowRunTriggeredByModel() {} - -func (workflowRunTriggeredByEqualsParam) equals() {} - -func (p workflowRunTriggeredByEqualsParam) field() builder.Field { +func (p stepRunWithPrismaCancelledErrorEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledErrorEqualsParam) getQuery() builder.Query { return p.query } -type WorkflowRunTriggeredByEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - workflowRunTriggeredByModel() -} +func (p stepRunWithPrismaCancelledErrorEqualsParam) stepRunModel() {} -type workflowRunTriggeredByEqualsUniqueParam struct { +func (p stepRunWithPrismaCancelledErrorEqualsParam) cancelledErrorField() {} + +func (stepRunWithPrismaCancelledErrorSetParam) settable() {} +func (stepRunWithPrismaCancelledErrorEqualsParam) equals() {} + +type stepRunWithPrismaCancelledErrorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByEqualsUniqueParam) workflowRunTriggeredByModel() {} - -func (workflowRunTriggeredByEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByEqualsUniqueParam) equals() {} - -func (p workflowRunTriggeredByEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaCancelledErrorEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaCancelledErrorEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkflowRunTriggeredBySetParam interface { - field() builder.Field - settable() - workflowRunTriggeredByModel() -} - -type workflowRunTriggeredBySetParam struct { - data builder.Field -} - -func (workflowRunTriggeredBySetParam) settable() {} - -func (p workflowRunTriggeredBySetParam) field() builder.Field { - return p.data -} +func (p stepRunWithPrismaCancelledErrorEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaCancelledErrorEqualsUniqueParam) cancelledErrorField() {} -func (p workflowRunTriggeredBySetParam) workflowRunTriggeredByModel() {} +func (stepRunWithPrismaCancelledErrorEqualsUniqueParam) unique() {} +func (stepRunWithPrismaCancelledErrorEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaIDEqualsSetParam interface { +type StepRunWithPrismaCallerFilesEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - idField() + stepRunModel() + callerFilesField() } -type WorkflowRunTriggeredByWithPrismaIDSetParam interface { +type StepRunWithPrismaCallerFilesSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - idField() + stepRunModel() + callerFilesField() } -type workflowRunTriggeredByWithPrismaIDSetParam struct { +type stepRunWithPrismaCallerFilesSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaIDSetParam) field() builder.Field { +func (p stepRunWithPrismaCallerFilesSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaIDSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaCallerFilesSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaIDSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaCallerFilesSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaIDSetParam) idField() {} +func (p stepRunWithPrismaCallerFilesSetParam) callerFilesField() {} -type WorkflowRunTriggeredByWithPrismaIDWhereParam interface { +type StepRunWithPrismaCallerFilesWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - idField() + stepRunModel() + callerFilesField() } -type workflowRunTriggeredByWithPrismaIDEqualsParam struct { +type stepRunWithPrismaCallerFilesEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaIDEqualsParam) field() builder.Field { +func (p stepRunWithPrismaCallerFilesEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaCallerFilesEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaIDEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaCallerFilesEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaIDEqualsParam) idField() {} +func (p stepRunWithPrismaCallerFilesEqualsParam) callerFilesField() {} -func (workflowRunTriggeredByWithPrismaIDSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaIDEqualsParam) equals() {} +func (stepRunWithPrismaCallerFilesSetParam) settable() {} +func (stepRunWithPrismaCallerFilesEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaIDEqualsUniqueParam struct { +type stepRunWithPrismaCallerFilesEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaCallerFilesEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaCallerFilesEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) idField() {} +func (p stepRunWithPrismaCallerFilesEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaCallerFilesEqualsUniqueParam) callerFilesField() {} -func (workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaIDEqualsUniqueParam) equals() {} +func (stepRunWithPrismaCallerFilesEqualsUniqueParam) unique() {} +func (stepRunWithPrismaCallerFilesEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaCreatedAtEqualsSetParam interface { +type StepRunWithPrismaGitRepoBranchEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - createdAtField() + stepRunModel() + gitRepoBranchField() } -type WorkflowRunTriggeredByWithPrismaCreatedAtSetParam interface { +type StepRunWithPrismaGitRepoBranchSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - createdAtField() + stepRunModel() + gitRepoBranchField() } -type workflowRunTriggeredByWithPrismaCreatedAtSetParam struct { +type stepRunWithPrismaGitRepoBranchSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCreatedAtSetParam) field() builder.Field { +func (p stepRunWithPrismaGitRepoBranchSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaGitRepoBranchSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCreatedAtSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaGitRepoBranchSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaCreatedAtSetParam) createdAtField() {} +func (p stepRunWithPrismaGitRepoBranchSetParam) gitRepoBranchField() {} -type WorkflowRunTriggeredByWithPrismaCreatedAtWhereParam interface { +type StepRunWithPrismaGitRepoBranchWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - createdAtField() + stepRunModel() + gitRepoBranchField() } -type workflowRunTriggeredByWithPrismaCreatedAtEqualsParam struct { +type stepRunWithPrismaGitRepoBranchEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaGitRepoBranchEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaGitRepoBranchEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaGitRepoBranchEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p stepRunWithPrismaGitRepoBranchEqualsParam) gitRepoBranchField() {} -func (workflowRunTriggeredByWithPrismaCreatedAtSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaCreatedAtEqualsParam) equals() {} +func (stepRunWithPrismaGitRepoBranchSetParam) settable() {} +func (stepRunWithPrismaGitRepoBranchEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam struct { +type stepRunWithPrismaGitRepoBranchEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaGitRepoBranchEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaGitRepoBranchEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} - -func (workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (p stepRunWithPrismaGitRepoBranchEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaGitRepoBranchEqualsUniqueParam) gitRepoBranchField() {} -type WorkflowRunTriggeredByWithPrismaUpdatedAtEqualsSetParam interface { +func (stepRunWithPrismaGitRepoBranchEqualsUniqueParam) unique() {} +func (stepRunWithPrismaGitRepoBranchEqualsUniqueParam) equals() {} + +type StepRunWithPrismaSemaphoreReleasedEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - updatedAtField() + stepRunModel() + semaphoreReleasedField() } -type WorkflowRunTriggeredByWithPrismaUpdatedAtSetParam interface { +type StepRunWithPrismaSemaphoreReleasedSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - updatedAtField() + stepRunModel() + semaphoreReleasedField() } -type workflowRunTriggeredByWithPrismaUpdatedAtSetParam struct { +type stepRunWithPrismaSemaphoreReleasedSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p stepRunWithPrismaSemaphoreReleasedSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaSemaphoreReleasedSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaUpdatedAtSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaSemaphoreReleasedSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p stepRunWithPrismaSemaphoreReleasedSetParam) semaphoreReleasedField() {} -type WorkflowRunTriggeredByWithPrismaUpdatedAtWhereParam interface { +type StepRunWithPrismaSemaphoreReleasedWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - updatedAtField() + stepRunModel() + semaphoreReleasedField() } -type workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam struct { +type stepRunWithPrismaSemaphoreReleasedEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaSemaphoreReleasedEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaSemaphoreReleasedEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaSemaphoreReleasedEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p stepRunWithPrismaSemaphoreReleasedEqualsParam) semaphoreReleasedField() {} -func (workflowRunTriggeredByWithPrismaUpdatedAtSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaUpdatedAtEqualsParam) equals() {} +func (stepRunWithPrismaSemaphoreReleasedSetParam) settable() {} +func (stepRunWithPrismaSemaphoreReleasedEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam struct { +type stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) semaphoreReleasedField() {} -func (workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) unique() {} +func (stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaDeletedAtEqualsSetParam interface { +type StepRunWithPrismaSemaphoreSlotEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - deletedAtField() + stepRunModel() + semaphoreSlotField() } -type WorkflowRunTriggeredByWithPrismaDeletedAtSetParam interface { +type StepRunWithPrismaSemaphoreSlotSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - deletedAtField() + stepRunModel() + semaphoreSlotField() } -type workflowRunTriggeredByWithPrismaDeletedAtSetParam struct { +type stepRunWithPrismaSemaphoreSlotSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaDeletedAtSetParam) field() builder.Field { +func (p stepRunWithPrismaSemaphoreSlotSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaSemaphoreSlotSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaDeletedAtSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaSemaphoreSlotSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p stepRunWithPrismaSemaphoreSlotSetParam) semaphoreSlotField() {} -type WorkflowRunTriggeredByWithPrismaDeletedAtWhereParam interface { +type StepRunWithPrismaSemaphoreSlotWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - deletedAtField() + stepRunModel() + semaphoreSlotField() } -type workflowRunTriggeredByWithPrismaDeletedAtEqualsParam struct { +type stepRunWithPrismaSemaphoreSlotEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p stepRunWithPrismaSemaphoreSlotEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaSemaphoreSlotEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaSemaphoreSlotEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p stepRunWithPrismaSemaphoreSlotEqualsParam) semaphoreSlotField() {} -func (workflowRunTriggeredByWithPrismaDeletedAtSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaDeletedAtEqualsParam) equals() {} +func (stepRunWithPrismaSemaphoreSlotSetParam) settable() {} +func (stepRunWithPrismaSemaphoreSlotEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam struct { +type stepRunWithPrismaSemaphoreSlotEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) semaphoreSlotField() {} -func (workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) unique() {} +func (stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaTenantEqualsSetParam interface { +type StepRunWithPrismaArchivedResultsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - tenantField() + stepRunModel() + archivedResultsField() } -type WorkflowRunTriggeredByWithPrismaTenantSetParam interface { +type StepRunWithPrismaArchivedResultsSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - tenantField() + stepRunModel() + archivedResultsField() } -type workflowRunTriggeredByWithPrismaTenantSetParam struct { +type stepRunWithPrismaArchivedResultsSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaTenantSetParam) field() builder.Field { +func (p stepRunWithPrismaArchivedResultsSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaTenantSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaArchivedResultsSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaTenantSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaArchivedResultsSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaTenantSetParam) tenantField() {} +func (p stepRunWithPrismaArchivedResultsSetParam) archivedResultsField() {} -type WorkflowRunTriggeredByWithPrismaTenantWhereParam interface { +type StepRunWithPrismaArchivedResultsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - tenantField() + stepRunModel() + archivedResultsField() } -type workflowRunTriggeredByWithPrismaTenantEqualsParam struct { +type stepRunWithPrismaArchivedResultsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaTenantEqualsParam) field() builder.Field { +func (p stepRunWithPrismaArchivedResultsEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaArchivedResultsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaTenantEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaArchivedResultsEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaTenantEqualsParam) tenantField() {} +func (p stepRunWithPrismaArchivedResultsEqualsParam) archivedResultsField() {} -func (workflowRunTriggeredByWithPrismaTenantSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaTenantEqualsParam) equals() {} +func (stepRunWithPrismaArchivedResultsSetParam) settable() {} +func (stepRunWithPrismaArchivedResultsEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam struct { +type stepRunWithPrismaArchivedResultsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaArchivedResultsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaArchivedResultsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p stepRunWithPrismaArchivedResultsEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaArchivedResultsEqualsUniqueParam) archivedResultsField() {} -func (workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaTenantEqualsUniqueParam) equals() {} +func (stepRunWithPrismaArchivedResultsEqualsUniqueParam) unique() {} +func (stepRunWithPrismaArchivedResultsEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaTenantIDEqualsSetParam interface { +type StepRunWithPrismaStreamEventsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - tenantIDField() + stepRunModel() + streamEventsField() } -type WorkflowRunTriggeredByWithPrismaTenantIDSetParam interface { +type StepRunWithPrismaStreamEventsSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - tenantIDField() + stepRunModel() + streamEventsField() } -type workflowRunTriggeredByWithPrismaTenantIDSetParam struct { +type stepRunWithPrismaStreamEventsSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaTenantIDSetParam) field() builder.Field { +func (p stepRunWithPrismaStreamEventsSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaStreamEventsSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaTenantIDSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaStreamEventsSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaTenantIDSetParam) tenantIDField() {} +func (p stepRunWithPrismaStreamEventsSetParam) streamEventsField() {} -type WorkflowRunTriggeredByWithPrismaTenantIDWhereParam interface { +type StepRunWithPrismaStreamEventsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - tenantIDField() + stepRunModel() + streamEventsField() } -type workflowRunTriggeredByWithPrismaTenantIDEqualsParam struct { +type stepRunWithPrismaStreamEventsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p stepRunWithPrismaStreamEventsEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaStreamEventsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaTenantIDEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaStreamEventsEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p stepRunWithPrismaStreamEventsEqualsParam) streamEventsField() {} -func (workflowRunTriggeredByWithPrismaTenantIDSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaTenantIDEqualsParam) equals() {} +func (stepRunWithPrismaStreamEventsSetParam) settable() {} +func (stepRunWithPrismaStreamEventsEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam struct { +type stepRunWithPrismaStreamEventsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaStreamEventsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaStreamEventsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p stepRunWithPrismaStreamEventsEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaStreamEventsEqualsUniqueParam) streamEventsField() {} -func (workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (stepRunWithPrismaStreamEventsEqualsUniqueParam) unique() {} +func (stepRunWithPrismaStreamEventsEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaParentEqualsSetParam interface { +type StepRunWithPrismaLogsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - parentField() + stepRunModel() + logsField() } -type WorkflowRunTriggeredByWithPrismaParentSetParam interface { +type StepRunWithPrismaLogsSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - parentField() + stepRunModel() + logsField() } -type workflowRunTriggeredByWithPrismaParentSetParam struct { +type stepRunWithPrismaLogsSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaParentSetParam) field() builder.Field { +func (p stepRunWithPrismaLogsSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaParentSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaLogsSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaParentSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaLogsSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaParentSetParam) parentField() {} +func (p stepRunWithPrismaLogsSetParam) logsField() {} -type WorkflowRunTriggeredByWithPrismaParentWhereParam interface { +type StepRunWithPrismaLogsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - parentField() + stepRunModel() + logsField() } -type workflowRunTriggeredByWithPrismaParentEqualsParam struct { +type stepRunWithPrismaLogsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaParentEqualsParam) field() builder.Field { +func (p stepRunWithPrismaLogsEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaParentEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaLogsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaParentEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaLogsEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaParentEqualsParam) parentField() {} +func (p stepRunWithPrismaLogsEqualsParam) logsField() {} -func (workflowRunTriggeredByWithPrismaParentSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaParentEqualsParam) equals() {} +func (stepRunWithPrismaLogsSetParam) settable() {} +func (stepRunWithPrismaLogsEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaParentEqualsUniqueParam struct { +type stepRunWithPrismaLogsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaLogsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaLogsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) parentField() {} +func (p stepRunWithPrismaLogsEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaLogsEqualsUniqueParam) logsField() {} -func (workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaParentEqualsUniqueParam) equals() {} +func (stepRunWithPrismaLogsEqualsUniqueParam) unique() {} +func (stepRunWithPrismaLogsEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaParentIDEqualsSetParam interface { +type StepRunWithPrismaChildWorkflowRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - parentIDField() + stepRunModel() + childWorkflowRunsField() } -type WorkflowRunTriggeredByWithPrismaParentIDSetParam interface { +type StepRunWithPrismaChildWorkflowRunsSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - parentIDField() + stepRunModel() + childWorkflowRunsField() } -type workflowRunTriggeredByWithPrismaParentIDSetParam struct { +type stepRunWithPrismaChildWorkflowRunsSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaParentIDSetParam) field() builder.Field { +func (p stepRunWithPrismaChildWorkflowRunsSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaParentIDSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildWorkflowRunsSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaParentIDSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaChildWorkflowRunsSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaParentIDSetParam) parentIDField() {} +func (p stepRunWithPrismaChildWorkflowRunsSetParam) childWorkflowRunsField() {} -type WorkflowRunTriggeredByWithPrismaParentIDWhereParam interface { +type StepRunWithPrismaChildWorkflowRunsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - parentIDField() + stepRunModel() + childWorkflowRunsField() } -type workflowRunTriggeredByWithPrismaParentIDEqualsParam struct { +type stepRunWithPrismaChildWorkflowRunsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaParentIDEqualsParam) field() builder.Field { +func (p stepRunWithPrismaChildWorkflowRunsEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaParentIDEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildWorkflowRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaParentIDEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaChildWorkflowRunsEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaParentIDEqualsParam) parentIDField() {} +func (p stepRunWithPrismaChildWorkflowRunsEqualsParam) childWorkflowRunsField() {} -func (workflowRunTriggeredByWithPrismaParentIDSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaParentIDEqualsParam) equals() {} +func (stepRunWithPrismaChildWorkflowRunsSetParam) settable() {} +func (stepRunWithPrismaChildWorkflowRunsEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam struct { +type stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) parentIDField() {} +func (p stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) childWorkflowRunsField() {} -func (workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaParentIDEqualsUniqueParam) equals() {} +func (stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) unique() {} +func (stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaInputEqualsSetParam interface { +type StepRunWithPrismaChildSchedulesEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - inputField() + stepRunModel() + childSchedulesField() } -type WorkflowRunTriggeredByWithPrismaInputSetParam interface { +type StepRunWithPrismaChildSchedulesSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - inputField() + stepRunModel() + childSchedulesField() } -type workflowRunTriggeredByWithPrismaInputSetParam struct { +type stepRunWithPrismaChildSchedulesSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaInputSetParam) field() builder.Field { +func (p stepRunWithPrismaChildSchedulesSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaInputSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildSchedulesSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaInputSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaChildSchedulesSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaInputSetParam) inputField() {} +func (p stepRunWithPrismaChildSchedulesSetParam) childSchedulesField() {} -type WorkflowRunTriggeredByWithPrismaInputWhereParam interface { +type StepRunWithPrismaChildSchedulesWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - inputField() + stepRunModel() + childSchedulesField() } -type workflowRunTriggeredByWithPrismaInputEqualsParam struct { +type stepRunWithPrismaChildSchedulesEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaInputEqualsParam) field() builder.Field { +func (p stepRunWithPrismaChildSchedulesEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaInputEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildSchedulesEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaInputEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaChildSchedulesEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaInputEqualsParam) inputField() {} +func (p stepRunWithPrismaChildSchedulesEqualsParam) childSchedulesField() {} -func (workflowRunTriggeredByWithPrismaInputSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaInputEqualsParam) equals() {} +func (stepRunWithPrismaChildSchedulesSetParam) settable() {} +func (stepRunWithPrismaChildSchedulesEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaInputEqualsUniqueParam struct { +type stepRunWithPrismaChildSchedulesEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaChildSchedulesEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaChildSchedulesEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) inputField() {} +func (p stepRunWithPrismaChildSchedulesEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaChildSchedulesEqualsUniqueParam) childSchedulesField() {} -func (workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaInputEqualsUniqueParam) equals() {} +func (stepRunWithPrismaChildSchedulesEqualsUniqueParam) unique() {} +func (stepRunWithPrismaChildSchedulesEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaEventEqualsSetParam interface { +type StepRunWithPrismaEventsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - eventField() + stepRunModel() + eventsField() } -type WorkflowRunTriggeredByWithPrismaEventSetParam interface { +type StepRunWithPrismaEventsSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - eventField() + stepRunModel() + eventsField() } -type workflowRunTriggeredByWithPrismaEventSetParam struct { +type stepRunWithPrismaEventsSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaEventSetParam) field() builder.Field { +func (p stepRunWithPrismaEventsSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaEventSetParam) getQuery() builder.Query { +func (p stepRunWithPrismaEventsSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaEventSetParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaEventsSetParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaEventSetParam) eventField() {} +func (p stepRunWithPrismaEventsSetParam) eventsField() {} -type WorkflowRunTriggeredByWithPrismaEventWhereParam interface { +type StepRunWithPrismaEventsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - eventField() + stepRunModel() + eventsField() } -type workflowRunTriggeredByWithPrismaEventEqualsParam struct { +type stepRunWithPrismaEventsEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaEventEqualsParam) field() builder.Field { +func (p stepRunWithPrismaEventsEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaEventEqualsParam) getQuery() builder.Query { +func (p stepRunWithPrismaEventsEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaEventEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunWithPrismaEventsEqualsParam) stepRunModel() {} -func (p workflowRunTriggeredByWithPrismaEventEqualsParam) eventField() {} +func (p stepRunWithPrismaEventsEqualsParam) eventsField() {} -func (workflowRunTriggeredByWithPrismaEventSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaEventEqualsParam) equals() {} +func (stepRunWithPrismaEventsSetParam) settable() {} +func (stepRunWithPrismaEventsEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaEventEqualsUniqueParam struct { +type stepRunWithPrismaEventsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) field() builder.Field { +func (p stepRunWithPrismaEventsEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunWithPrismaEventsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) eventField() {} +func (p stepRunWithPrismaEventsEqualsUniqueParam) stepRunModel() {} +func (p stepRunWithPrismaEventsEqualsUniqueParam) eventsField() {} -func (workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaEventEqualsUniqueParam) equals() {} +func (stepRunWithPrismaEventsEqualsUniqueParam) unique() {} +func (stepRunWithPrismaEventsEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaEventIDEqualsSetParam interface { - field() builder.Field +type stepRunEventActions struct { + // client holds the prisma client + client *PrismaClient +} + +var stepRunEventOutput = []builder.Output{ + {Name: "id"}, + {Name: "timeFirstSeen"}, + {Name: "timeLastSeen"}, + {Name: "stepRunId"}, + {Name: "reason"}, + {Name: "severity"}, + {Name: "message"}, + {Name: "count"}, + {Name: "data"}, +} + +type StepRunEventRelationWith interface { getQuery() builder.Query - equals() - workflowRunTriggeredByModel() - eventIDField() + with() + stepRunEventRelation() } -type WorkflowRunTriggeredByWithPrismaEventIDSetParam interface { +type StepRunEventWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - eventIDField() + stepRunEventModel() } -type workflowRunTriggeredByWithPrismaEventIDSetParam struct { +type stepRunEventDefaultParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaEventIDSetParam) field() builder.Field { +func (p stepRunEventDefaultParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaEventIDSetParam) getQuery() builder.Query { +func (p stepRunEventDefaultParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaEventIDSetParam) workflowRunTriggeredByModel() {} - -func (p workflowRunTriggeredByWithPrismaEventIDSetParam) eventIDField() {} +func (p stepRunEventDefaultParam) stepRunEventModel() {} -type WorkflowRunTriggeredByWithPrismaEventIDWhereParam interface { +type StepRunEventOrderByParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - eventIDField() + stepRunEventModel() } -type workflowRunTriggeredByWithPrismaEventIDEqualsParam struct { +type stepRunEventOrderByParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaEventIDEqualsParam) field() builder.Field { +func (p stepRunEventOrderByParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaEventIDEqualsParam) getQuery() builder.Query { +func (p stepRunEventOrderByParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaEventIDEqualsParam) workflowRunTriggeredByModel() {} - -func (p workflowRunTriggeredByWithPrismaEventIDEqualsParam) eventIDField() {} +func (p stepRunEventOrderByParam) stepRunEventModel() {} -func (workflowRunTriggeredByWithPrismaEventIDSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaEventIDEqualsParam) equals() {} +type StepRunEventCursorParam interface { + field() builder.Field + getQuery() builder.Query + stepRunEventModel() + isCursor() +} -type workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam struct { +type stepRunEventCursorParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) field() builder.Field { +func (p stepRunEventCursorParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventCursorParam) isCursor() {} + +func (p stepRunEventCursorParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) eventIDField() {} - -func (workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaEventIDEqualsUniqueParam) equals() {} - -type WorkflowRunTriggeredByWithPrismaCronEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workflowRunTriggeredByModel() - cronField() -} +func (p stepRunEventCursorParam) stepRunEventModel() {} -type WorkflowRunTriggeredByWithPrismaCronSetParam interface { +type StepRunEventParamUnique interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - cronField() + unique() + stepRunEventModel() } -type workflowRunTriggeredByWithPrismaCronSetParam struct { +type stepRunEventParamUnique struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronSetParam) field() builder.Field { +func (p stepRunEventParamUnique) stepRunEventModel() {} + +func (stepRunEventParamUnique) unique() {} + +func (p stepRunEventParamUnique) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronSetParam) getQuery() builder.Query { +func (p stepRunEventParamUnique) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronSetParam) workflowRunTriggeredByModel() {} - -func (p workflowRunTriggeredByWithPrismaCronSetParam) cronField() {} - -type WorkflowRunTriggeredByWithPrismaCronWhereParam interface { +type StepRunEventEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - cronField() + equals() + stepRunEventModel() } -type workflowRunTriggeredByWithPrismaCronEqualsParam struct { +type stepRunEventEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronEqualsParam) field() builder.Field { +func (p stepRunEventEqualsParam) stepRunEventModel() {} + +func (stepRunEventEqualsParam) equals() {} + +func (p stepRunEventEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronEqualsParam) getQuery() builder.Query { +func (p stepRunEventEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronEqualsParam) workflowRunTriggeredByModel() {} - -func (p workflowRunTriggeredByWithPrismaCronEqualsParam) cronField() {} - -func (workflowRunTriggeredByWithPrismaCronSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaCronEqualsParam) equals() {} +type StepRunEventEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + stepRunEventModel() +} -type workflowRunTriggeredByWithPrismaCronEqualsUniqueParam struct { +type stepRunEventEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) field() builder.Field { +func (p stepRunEventEqualsUniqueParam) stepRunEventModel() {} + +func (stepRunEventEqualsUniqueParam) unique() {} +func (stepRunEventEqualsUniqueParam) equals() {} + +func (p stepRunEventEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) cronField() {} +type StepRunEventSetParam interface { + field() builder.Field + settable() + stepRunEventModel() +} -func (workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaCronEqualsUniqueParam) equals() {} +type stepRunEventSetParam struct { + data builder.Field +} -type WorkflowRunTriggeredByWithPrismaCronParentIDEqualsSetParam interface { +func (stepRunEventSetParam) settable() {} + +func (p stepRunEventSetParam) field() builder.Field { + return p.data +} + +func (p stepRunEventSetParam) stepRunEventModel() {} + +type StepRunEventWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - cronParentIDField() + stepRunEventModel() + idField() } -type WorkflowRunTriggeredByWithPrismaCronParentIDSetParam interface { +type StepRunEventWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - cronParentIDField() + stepRunEventModel() + idField() } -type workflowRunTriggeredByWithPrismaCronParentIDSetParam struct { +type stepRunEventWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronParentIDSetParam) field() builder.Field { +func (p stepRunEventWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronParentIDSetParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronParentIDSetParam) workflowRunTriggeredByModel() {} +func (p stepRunEventWithPrismaIDSetParam) stepRunEventModel() {} -func (p workflowRunTriggeredByWithPrismaCronParentIDSetParam) cronParentIDField() {} +func (p stepRunEventWithPrismaIDSetParam) idField() {} -type WorkflowRunTriggeredByWithPrismaCronParentIDWhereParam interface { +type StepRunEventWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - cronParentIDField() + stepRunEventModel() + idField() } -type workflowRunTriggeredByWithPrismaCronParentIDEqualsParam struct { +type stepRunEventWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunEventWithPrismaIDEqualsParam) stepRunEventModel() {} -func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) cronParentIDField() {} +func (p stepRunEventWithPrismaIDEqualsParam) idField() {} -func (workflowRunTriggeredByWithPrismaCronParentIDSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaCronParentIDEqualsParam) equals() {} +func (stepRunEventWithPrismaIDSetParam) settable() {} +func (stepRunEventWithPrismaIDEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam struct { +type stepRunEventWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) workflowRunTriggeredByModel() { -} -func (p workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) cronParentIDField() {} +func (p stepRunEventWithPrismaIDEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaIDEqualsUniqueParam) idField() {} -func (workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaCronParentIDEqualsUniqueParam) equals() {} +func (stepRunEventWithPrismaIDEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaIDEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaCronScheduleEqualsSetParam interface { +type StepRunEventWithPrismaTimeFirstSeenEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - cronScheduleField() + stepRunEventModel() + timeFirstSeenField() } -type WorkflowRunTriggeredByWithPrismaCronScheduleSetParam interface { +type StepRunEventWithPrismaTimeFirstSeenSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - cronScheduleField() + stepRunEventModel() + timeFirstSeenField() } -type workflowRunTriggeredByWithPrismaCronScheduleSetParam struct { +type stepRunEventWithPrismaTimeFirstSeenSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronScheduleSetParam) field() builder.Field { +func (p stepRunEventWithPrismaTimeFirstSeenSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronScheduleSetParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaTimeFirstSeenSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronScheduleSetParam) workflowRunTriggeredByModel() {} +func (p stepRunEventWithPrismaTimeFirstSeenSetParam) stepRunEventModel() {} -func (p workflowRunTriggeredByWithPrismaCronScheduleSetParam) cronScheduleField() {} +func (p stepRunEventWithPrismaTimeFirstSeenSetParam) timeFirstSeenField() {} -type WorkflowRunTriggeredByWithPrismaCronScheduleWhereParam interface { +type StepRunEventWithPrismaTimeFirstSeenWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - cronScheduleField() + stepRunEventModel() + timeFirstSeenField() } -type workflowRunTriggeredByWithPrismaCronScheduleEqualsParam struct { +type stepRunEventWithPrismaTimeFirstSeenEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaTimeFirstSeenEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaTimeFirstSeenEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunEventWithPrismaTimeFirstSeenEqualsParam) stepRunEventModel() {} -func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) cronScheduleField() {} +func (p stepRunEventWithPrismaTimeFirstSeenEqualsParam) timeFirstSeenField() {} -func (workflowRunTriggeredByWithPrismaCronScheduleSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaCronScheduleEqualsParam) equals() {} +func (stepRunEventWithPrismaTimeFirstSeenSetParam) settable() {} +func (stepRunEventWithPrismaTimeFirstSeenEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam struct { +type stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) workflowRunTriggeredByModel() { -} -func (p workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) cronScheduleField() {} +func (p stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) timeFirstSeenField() {} -func (workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaCronScheduleEqualsUniqueParam) equals() {} +func (stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaScheduledEqualsSetParam interface { +type StepRunEventWithPrismaTimeLastSeenEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - scheduledField() + stepRunEventModel() + timeLastSeenField() } -type WorkflowRunTriggeredByWithPrismaScheduledSetParam interface { +type StepRunEventWithPrismaTimeLastSeenSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - scheduledField() + stepRunEventModel() + timeLastSeenField() } -type workflowRunTriggeredByWithPrismaScheduledSetParam struct { +type stepRunEventWithPrismaTimeLastSeenSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaScheduledSetParam) field() builder.Field { +func (p stepRunEventWithPrismaTimeLastSeenSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaScheduledSetParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaTimeLastSeenSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaScheduledSetParam) workflowRunTriggeredByModel() {} +func (p stepRunEventWithPrismaTimeLastSeenSetParam) stepRunEventModel() {} -func (p workflowRunTriggeredByWithPrismaScheduledSetParam) scheduledField() {} +func (p stepRunEventWithPrismaTimeLastSeenSetParam) timeLastSeenField() {} -type WorkflowRunTriggeredByWithPrismaScheduledWhereParam interface { +type StepRunEventWithPrismaTimeLastSeenWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - scheduledField() + stepRunEventModel() + timeLastSeenField() } -type workflowRunTriggeredByWithPrismaScheduledEqualsParam struct { +type stepRunEventWithPrismaTimeLastSeenEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaScheduledEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaTimeLastSeenEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaScheduledEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaTimeLastSeenEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaScheduledEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunEventWithPrismaTimeLastSeenEqualsParam) stepRunEventModel() {} -func (p workflowRunTriggeredByWithPrismaScheduledEqualsParam) scheduledField() {} +func (p stepRunEventWithPrismaTimeLastSeenEqualsParam) timeLastSeenField() {} -func (workflowRunTriggeredByWithPrismaScheduledSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaScheduledEqualsParam) equals() {} +func (stepRunEventWithPrismaTimeLastSeenSetParam) settable() {} +func (stepRunEventWithPrismaTimeLastSeenEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam struct { +type stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) scheduledField() {} +func (p stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) timeLastSeenField() {} -func (workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaScheduledEqualsUniqueParam) equals() {} +func (stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) equals() {} -type WorkflowRunTriggeredByWithPrismaScheduledIDEqualsSetParam interface { +type StepRunEventWithPrismaStepRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workflowRunTriggeredByModel() - scheduledIDField() + stepRunEventModel() + stepRunField() } -type WorkflowRunTriggeredByWithPrismaScheduledIDSetParam interface { +type StepRunEventWithPrismaStepRunSetParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - scheduledIDField() + stepRunEventModel() + stepRunField() } -type workflowRunTriggeredByWithPrismaScheduledIDSetParam struct { +type stepRunEventWithPrismaStepRunSetParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaScheduledIDSetParam) field() builder.Field { +func (p stepRunEventWithPrismaStepRunSetParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaScheduledIDSetParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaStepRunSetParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaScheduledIDSetParam) workflowRunTriggeredByModel() {} +func (p stepRunEventWithPrismaStepRunSetParam) stepRunEventModel() {} -func (p workflowRunTriggeredByWithPrismaScheduledIDSetParam) scheduledIDField() {} +func (p stepRunEventWithPrismaStepRunSetParam) stepRunField() {} -type WorkflowRunTriggeredByWithPrismaScheduledIDWhereParam interface { +type StepRunEventWithPrismaStepRunWhereParam interface { field() builder.Field getQuery() builder.Query - workflowRunTriggeredByModel() - scheduledIDField() + stepRunEventModel() + stepRunField() } -type workflowRunTriggeredByWithPrismaScheduledIDEqualsParam struct { +type stepRunEventWithPrismaStepRunEqualsParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaStepRunEqualsParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaStepRunEqualsParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) workflowRunTriggeredByModel() {} +func (p stepRunEventWithPrismaStepRunEqualsParam) stepRunEventModel() {} -func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) scheduledIDField() {} +func (p stepRunEventWithPrismaStepRunEqualsParam) stepRunField() {} -func (workflowRunTriggeredByWithPrismaScheduledIDSetParam) settable() {} -func (workflowRunTriggeredByWithPrismaScheduledIDEqualsParam) equals() {} +func (stepRunEventWithPrismaStepRunSetParam) settable() {} +func (stepRunEventWithPrismaStepRunEqualsParam) equals() {} -type workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam struct { +type stepRunEventWithPrismaStepRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaStepRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) workflowRunTriggeredByModel() {} -func (p workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) scheduledIDField() {} - -func (workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) unique() {} -func (workflowRunTriggeredByWithPrismaScheduledIDEqualsUniqueParam) equals() {} - -type jobRunActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p stepRunEventWithPrismaStepRunEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaStepRunEqualsUniqueParam) stepRunField() {} -var jobRunOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "workflowRunId"}, - {Name: "jobId"}, - {Name: "tickerId"}, - {Name: "status"}, - {Name: "result"}, - {Name: "startedAt"}, - {Name: "finishedAt"}, - {Name: "timeoutAt"}, - {Name: "cancelledAt"}, - {Name: "cancelledReason"}, - {Name: "cancelledError"}, -} +func (stepRunEventWithPrismaStepRunEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaStepRunEqualsUniqueParam) equals() {} -type JobRunRelationWith interface { +type StepRunEventWithPrismaStepRunIDEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - jobRunRelation() + equals() + stepRunEventModel() + stepRunIDField() } -type JobRunWhereParam interface { +type StepRunEventWithPrismaStepRunIDSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunEventModel() + stepRunIDField() } -type jobRunDefaultParam struct { +type stepRunEventWithPrismaStepRunIDSetParam struct { data builder.Field query builder.Query } -func (p jobRunDefaultParam) field() builder.Field { +func (p stepRunEventWithPrismaStepRunIDSetParam) field() builder.Field { return p.data } -func (p jobRunDefaultParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaStepRunIDSetParam) getQuery() builder.Query { return p.query } -func (p jobRunDefaultParam) jobRunModel() {} +func (p stepRunEventWithPrismaStepRunIDSetParam) stepRunEventModel() {} -type JobRunOrderByParam interface { +func (p stepRunEventWithPrismaStepRunIDSetParam) stepRunIDField() {} + +type StepRunEventWithPrismaStepRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunEventModel() + stepRunIDField() } -type jobRunOrderByParam struct { +type stepRunEventWithPrismaStepRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunOrderByParam) field() builder.Field { +func (p stepRunEventWithPrismaStepRunIDEqualsParam) field() builder.Field { return p.data } -func (p jobRunOrderByParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunOrderByParam) jobRunModel() {} +func (p stepRunEventWithPrismaStepRunIDEqualsParam) stepRunEventModel() {} -type JobRunCursorParam interface { - field() builder.Field - getQuery() builder.Query - jobRunModel() - isCursor() -} +func (p stepRunEventWithPrismaStepRunIDEqualsParam) stepRunIDField() {} -type jobRunCursorParam struct { +func (stepRunEventWithPrismaStepRunIDSetParam) settable() {} +func (stepRunEventWithPrismaStepRunIDEqualsParam) equals() {} + +type stepRunEventWithPrismaStepRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunCursorParam) field() builder.Field { +func (p stepRunEventWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunCursorParam) isCursor() {} - -func (p jobRunCursorParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunCursorParam) jobRunModel() {} +func (p stepRunEventWithPrismaStepRunIDEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} -type JobRunParamUnique interface { +func (stepRunEventWithPrismaStepRunIDEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaStepRunIDEqualsUniqueParam) equals() {} + +type StepRunEventWithPrismaReasonEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - jobRunModel() + equals() + stepRunEventModel() + reasonField() } -type jobRunParamUnique struct { +type StepRunEventWithPrismaReasonSetParam interface { + field() builder.Field + getQuery() builder.Query + stepRunEventModel() + reasonField() +} + +type stepRunEventWithPrismaReasonSetParam struct { data builder.Field query builder.Query } -func (p jobRunParamUnique) jobRunModel() {} - -func (jobRunParamUnique) unique() {} - -func (p jobRunParamUnique) field() builder.Field { +func (p stepRunEventWithPrismaReasonSetParam) field() builder.Field { return p.data } -func (p jobRunParamUnique) getQuery() builder.Query { +func (p stepRunEventWithPrismaReasonSetParam) getQuery() builder.Query { return p.query } -type JobRunEqualsWhereParam interface { +func (p stepRunEventWithPrismaReasonSetParam) stepRunEventModel() {} + +func (p stepRunEventWithPrismaReasonSetParam) reasonField() {} + +type StepRunEventWithPrismaReasonWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - jobRunModel() + stepRunEventModel() + reasonField() } -type jobRunEqualsParam struct { +type stepRunEventWithPrismaReasonEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunEqualsParam) jobRunModel() {} - -func (jobRunEqualsParam) equals() {} - -func (p jobRunEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaReasonEqualsParam) field() builder.Field { return p.data } -func (p jobRunEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaReasonEqualsParam) getQuery() builder.Query { return p.query } -type JobRunEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - jobRunModel() -} +func (p stepRunEventWithPrismaReasonEqualsParam) stepRunEventModel() {} -type jobRunEqualsUniqueParam struct { +func (p stepRunEventWithPrismaReasonEqualsParam) reasonField() {} + +func (stepRunEventWithPrismaReasonSetParam) settable() {} +func (stepRunEventWithPrismaReasonEqualsParam) equals() {} + +type stepRunEventWithPrismaReasonEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunEqualsUniqueParam) jobRunModel() {} - -func (jobRunEqualsUniqueParam) unique() {} -func (jobRunEqualsUniqueParam) equals() {} - -func (p jobRunEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaReasonEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaReasonEqualsUniqueParam) getQuery() builder.Query { return p.query } -type JobRunSetParam interface { - field() builder.Field - settable() - jobRunModel() -} - -type jobRunSetParam struct { - data builder.Field -} - -func (jobRunSetParam) settable() {} - -func (p jobRunSetParam) field() builder.Field { - return p.data -} +func (p stepRunEventWithPrismaReasonEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaReasonEqualsUniqueParam) reasonField() {} -func (p jobRunSetParam) jobRunModel() {} +func (stepRunEventWithPrismaReasonEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaReasonEqualsUniqueParam) equals() {} -type JobRunWithPrismaIDEqualsSetParam interface { +type StepRunEventWithPrismaSeverityEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - idField() + stepRunEventModel() + severityField() } -type JobRunWithPrismaIDSetParam interface { +type StepRunEventWithPrismaSeveritySetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - idField() + stepRunEventModel() + severityField() } -type jobRunWithPrismaIDSetParam struct { +type stepRunEventWithPrismaSeveritySetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaIDSetParam) field() builder.Field { +func (p stepRunEventWithPrismaSeveritySetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaIDSetParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaSeveritySetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaIDSetParam) jobRunModel() {} +func (p stepRunEventWithPrismaSeveritySetParam) stepRunEventModel() {} -func (p jobRunWithPrismaIDSetParam) idField() {} +func (p stepRunEventWithPrismaSeveritySetParam) severityField() {} -type JobRunWithPrismaIDWhereParam interface { +type StepRunEventWithPrismaSeverityWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - idField() + stepRunEventModel() + severityField() } -type jobRunWithPrismaIDEqualsParam struct { +type stepRunEventWithPrismaSeverityEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaIDEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaSeverityEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaSeverityEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaIDEqualsParam) jobRunModel() {} +func (p stepRunEventWithPrismaSeverityEqualsParam) stepRunEventModel() {} -func (p jobRunWithPrismaIDEqualsParam) idField() {} +func (p stepRunEventWithPrismaSeverityEqualsParam) severityField() {} -func (jobRunWithPrismaIDSetParam) settable() {} -func (jobRunWithPrismaIDEqualsParam) equals() {} +func (stepRunEventWithPrismaSeveritySetParam) settable() {} +func (stepRunEventWithPrismaSeverityEqualsParam) equals() {} -type jobRunWithPrismaIDEqualsUniqueParam struct { +type stepRunEventWithPrismaSeverityEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaSeverityEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaSeverityEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaIDEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaIDEqualsUniqueParam) idField() {} +func (p stepRunEventWithPrismaSeverityEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaSeverityEqualsUniqueParam) severityField() {} -func (jobRunWithPrismaIDEqualsUniqueParam) unique() {} -func (jobRunWithPrismaIDEqualsUniqueParam) equals() {} +func (stepRunEventWithPrismaSeverityEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaSeverityEqualsUniqueParam) equals() {} -type JobRunWithPrismaCreatedAtEqualsSetParam interface { +type StepRunEventWithPrismaMessageEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - createdAtField() + stepRunEventModel() + messageField() } -type JobRunWithPrismaCreatedAtSetParam interface { +type StepRunEventWithPrismaMessageSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - createdAtField() + stepRunEventModel() + messageField() } -type jobRunWithPrismaCreatedAtSetParam struct { +type stepRunEventWithPrismaMessageSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCreatedAtSetParam) field() builder.Field { +func (p stepRunEventWithPrismaMessageSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaMessageSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCreatedAtSetParam) jobRunModel() {} +func (p stepRunEventWithPrismaMessageSetParam) stepRunEventModel() {} -func (p jobRunWithPrismaCreatedAtSetParam) createdAtField() {} +func (p stepRunEventWithPrismaMessageSetParam) messageField() {} -type JobRunWithPrismaCreatedAtWhereParam interface { +type StepRunEventWithPrismaMessageWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - createdAtField() + stepRunEventModel() + messageField() } -type jobRunWithPrismaCreatedAtEqualsParam struct { +type stepRunEventWithPrismaMessageEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaMessageEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaMessageEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCreatedAtEqualsParam) jobRunModel() {} +func (p stepRunEventWithPrismaMessageEqualsParam) stepRunEventModel() {} -func (p jobRunWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p stepRunEventWithPrismaMessageEqualsParam) messageField() {} -func (jobRunWithPrismaCreatedAtSetParam) settable() {} -func (jobRunWithPrismaCreatedAtEqualsParam) equals() {} +func (stepRunEventWithPrismaMessageSetParam) settable() {} +func (stepRunEventWithPrismaMessageEqualsParam) equals() {} -type jobRunWithPrismaCreatedAtEqualsUniqueParam struct { +type stepRunEventWithPrismaMessageEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaMessageEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaMessageEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCreatedAtEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p stepRunEventWithPrismaMessageEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaMessageEqualsUniqueParam) messageField() {} -func (jobRunWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (jobRunWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (stepRunEventWithPrismaMessageEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaMessageEqualsUniqueParam) equals() {} -type JobRunWithPrismaUpdatedAtEqualsSetParam interface { +type StepRunEventWithPrismaCountEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - updatedAtField() + stepRunEventModel() + countField() } -type JobRunWithPrismaUpdatedAtSetParam interface { +type StepRunEventWithPrismaCountSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - updatedAtField() + stepRunEventModel() + countField() } -type jobRunWithPrismaUpdatedAtSetParam struct { +type stepRunEventWithPrismaCountSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p stepRunEventWithPrismaCountSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaCountSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaUpdatedAtSetParam) jobRunModel() {} +func (p stepRunEventWithPrismaCountSetParam) stepRunEventModel() {} -func (p jobRunWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p stepRunEventWithPrismaCountSetParam) countField() {} -type JobRunWithPrismaUpdatedAtWhereParam interface { +type StepRunEventWithPrismaCountWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - updatedAtField() + stepRunEventModel() + countField() } -type jobRunWithPrismaUpdatedAtEqualsParam struct { +type stepRunEventWithPrismaCountEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaCountEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaCountEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaUpdatedAtEqualsParam) jobRunModel() {} +func (p stepRunEventWithPrismaCountEqualsParam) stepRunEventModel() {} -func (p jobRunWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p stepRunEventWithPrismaCountEqualsParam) countField() {} -func (jobRunWithPrismaUpdatedAtSetParam) settable() {} -func (jobRunWithPrismaUpdatedAtEqualsParam) equals() {} +func (stepRunEventWithPrismaCountSetParam) settable() {} +func (stepRunEventWithPrismaCountEqualsParam) equals() {} -type jobRunWithPrismaUpdatedAtEqualsUniqueParam struct { +type stepRunEventWithPrismaCountEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaCountEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaCountEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaUpdatedAtEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p stepRunEventWithPrismaCountEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaCountEqualsUniqueParam) countField() {} -func (jobRunWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (jobRunWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (stepRunEventWithPrismaCountEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaCountEqualsUniqueParam) equals() {} -type JobRunWithPrismaDeletedAtEqualsSetParam interface { +type StepRunEventWithPrismaDataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - deletedAtField() + stepRunEventModel() + dataField() } -type JobRunWithPrismaDeletedAtSetParam interface { +type StepRunEventWithPrismaDataSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - deletedAtField() + stepRunEventModel() + dataField() } -type jobRunWithPrismaDeletedAtSetParam struct { +type stepRunEventWithPrismaDataSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaDeletedAtSetParam) field() builder.Field { +func (p stepRunEventWithPrismaDataSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaDataSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaDeletedAtSetParam) jobRunModel() {} +func (p stepRunEventWithPrismaDataSetParam) stepRunEventModel() {} -func (p jobRunWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p stepRunEventWithPrismaDataSetParam) dataField() {} -type JobRunWithPrismaDeletedAtWhereParam interface { +type StepRunEventWithPrismaDataWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - deletedAtField() + stepRunEventModel() + dataField() } -type jobRunWithPrismaDeletedAtEqualsParam struct { +type stepRunEventWithPrismaDataEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p stepRunEventWithPrismaDataEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaDataEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaDeletedAtEqualsParam) jobRunModel() {} +func (p stepRunEventWithPrismaDataEqualsParam) stepRunEventModel() {} -func (p jobRunWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p stepRunEventWithPrismaDataEqualsParam) dataField() {} -func (jobRunWithPrismaDeletedAtSetParam) settable() {} -func (jobRunWithPrismaDeletedAtEqualsParam) equals() {} +func (stepRunEventWithPrismaDataSetParam) settable() {} +func (stepRunEventWithPrismaDataEqualsParam) equals() {} -type jobRunWithPrismaDeletedAtEqualsUniqueParam struct { +type stepRunEventWithPrismaDataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunEventWithPrismaDataEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunEventWithPrismaDataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaDeletedAtEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p stepRunEventWithPrismaDataEqualsUniqueParam) stepRunEventModel() {} +func (p stepRunEventWithPrismaDataEqualsUniqueParam) dataField() {} -func (jobRunWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (jobRunWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (stepRunEventWithPrismaDataEqualsUniqueParam) unique() {} +func (stepRunEventWithPrismaDataEqualsUniqueParam) equals() {} -type JobRunWithPrismaTenantEqualsSetParam interface { - field() builder.Field +type stepRunResultArchiveActions struct { + // client holds the prisma client + client *PrismaClient +} + +var stepRunResultArchiveOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "stepRunId"}, + {Name: "order"}, + {Name: "input"}, + {Name: "output"}, + {Name: "error"}, + {Name: "startedAt"}, + {Name: "finishedAt"}, + {Name: "timeoutAt"}, + {Name: "cancelledAt"}, + {Name: "cancelledReason"}, + {Name: "cancelledError"}, +} + +type StepRunResultArchiveRelationWith interface { getQuery() builder.Query - equals() - jobRunModel() - tenantField() + with() + stepRunResultArchiveRelation() } -type JobRunWithPrismaTenantSetParam interface { +type StepRunResultArchiveWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - tenantField() + stepRunResultArchiveModel() } -type jobRunWithPrismaTenantSetParam struct { +type stepRunResultArchiveDefaultParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTenantSetParam) field() builder.Field { +func (p stepRunResultArchiveDefaultParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTenantSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveDefaultParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTenantSetParam) jobRunModel() {} - -func (p jobRunWithPrismaTenantSetParam) tenantField() {} +func (p stepRunResultArchiveDefaultParam) stepRunResultArchiveModel() {} -type JobRunWithPrismaTenantWhereParam interface { +type StepRunResultArchiveOrderByParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - tenantField() + stepRunResultArchiveModel() } -type jobRunWithPrismaTenantEqualsParam struct { +type stepRunResultArchiveOrderByParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTenantEqualsParam) field() builder.Field { +func (p stepRunResultArchiveOrderByParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveOrderByParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTenantEqualsParam) jobRunModel() {} - -func (p jobRunWithPrismaTenantEqualsParam) tenantField() {} +func (p stepRunResultArchiveOrderByParam) stepRunResultArchiveModel() {} -func (jobRunWithPrismaTenantSetParam) settable() {} -func (jobRunWithPrismaTenantEqualsParam) equals() {} +type StepRunResultArchiveCursorParam interface { + field() builder.Field + getQuery() builder.Query + stepRunResultArchiveModel() + isCursor() +} -type jobRunWithPrismaTenantEqualsUniqueParam struct { +type stepRunResultArchiveCursorParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveCursorParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveCursorParam) isCursor() {} + +func (p stepRunResultArchiveCursorParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTenantEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaTenantEqualsUniqueParam) tenantField() {} - -func (jobRunWithPrismaTenantEqualsUniqueParam) unique() {} -func (jobRunWithPrismaTenantEqualsUniqueParam) equals() {} - -type JobRunWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - jobRunModel() - tenantIDField() -} +func (p stepRunResultArchiveCursorParam) stepRunResultArchiveModel() {} -type JobRunWithPrismaTenantIDSetParam interface { +type StepRunResultArchiveParamUnique interface { field() builder.Field getQuery() builder.Query - jobRunModel() - tenantIDField() + unique() + stepRunResultArchiveModel() } -type jobRunWithPrismaTenantIDSetParam struct { +type stepRunResultArchiveParamUnique struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTenantIDSetParam) field() builder.Field { +func (p stepRunResultArchiveParamUnique) stepRunResultArchiveModel() {} + +func (stepRunResultArchiveParamUnique) unique() {} + +func (p stepRunResultArchiveParamUnique) field() builder.Field { return p.data } -func (p jobRunWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveParamUnique) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTenantIDSetParam) jobRunModel() {} - -func (p jobRunWithPrismaTenantIDSetParam) tenantIDField() {} - -type JobRunWithPrismaTenantIDWhereParam interface { +type StepRunResultArchiveEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - tenantIDField() + equals() + stepRunResultArchiveModel() } -type jobRunWithPrismaTenantIDEqualsParam struct { +type stepRunResultArchiveEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p stepRunResultArchiveEqualsParam) stepRunResultArchiveModel() {} + +func (stepRunResultArchiveEqualsParam) equals() {} + +func (p stepRunResultArchiveEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTenantIDEqualsParam) jobRunModel() {} - -func (p jobRunWithPrismaTenantIDEqualsParam) tenantIDField() {} - -func (jobRunWithPrismaTenantIDSetParam) settable() {} -func (jobRunWithPrismaTenantIDEqualsParam) equals() {} +type StepRunResultArchiveEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + stepRunResultArchiveModel() +} -type jobRunWithPrismaTenantIDEqualsUniqueParam struct { +type stepRunResultArchiveEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveEqualsUniqueParam) stepRunResultArchiveModel() {} + +func (stepRunResultArchiveEqualsUniqueParam) unique() {} +func (stepRunResultArchiveEqualsUniqueParam) equals() {} + +func (p stepRunResultArchiveEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTenantIDEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +type StepRunResultArchiveSetParam interface { + field() builder.Field + settable() + stepRunResultArchiveModel() +} -func (jobRunWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (jobRunWithPrismaTenantIDEqualsUniqueParam) equals() {} +type stepRunResultArchiveSetParam struct { + data builder.Field +} -type JobRunWithPrismaWorkflowRunEqualsSetParam interface { +func (stepRunResultArchiveSetParam) settable() {} + +func (p stepRunResultArchiveSetParam) field() builder.Field { + return p.data +} + +func (p stepRunResultArchiveSetParam) stepRunResultArchiveModel() {} + +type StepRunResultArchiveWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - workflowRunField() + stepRunResultArchiveModel() + idField() } -type JobRunWithPrismaWorkflowRunSetParam interface { +type StepRunResultArchiveWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - workflowRunField() + stepRunResultArchiveModel() + idField() } -type jobRunWithPrismaWorkflowRunSetParam struct { +type stepRunResultArchiveWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaWorkflowRunSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaWorkflowRunSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaWorkflowRunSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaIDSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaWorkflowRunSetParam) workflowRunField() {} +func (p stepRunResultArchiveWithPrismaIDSetParam) idField() {} -type JobRunWithPrismaWorkflowRunWhereParam interface { +type StepRunResultArchiveWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - workflowRunField() + stepRunResultArchiveModel() + idField() } -type jobRunWithPrismaWorkflowRunEqualsParam struct { +type stepRunResultArchiveWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaWorkflowRunEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaWorkflowRunEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaWorkflowRunEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaIDEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaWorkflowRunEqualsParam) workflowRunField() {} +func (p stepRunResultArchiveWithPrismaIDEqualsParam) idField() {} -func (jobRunWithPrismaWorkflowRunSetParam) settable() {} -func (jobRunWithPrismaWorkflowRunEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaIDSetParam) settable() {} +func (stepRunResultArchiveWithPrismaIDEqualsParam) equals() {} -type jobRunWithPrismaWorkflowRunEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaWorkflowRunEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaWorkflowRunEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaWorkflowRunEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaWorkflowRunEqualsUniqueParam) workflowRunField() {} +func (p stepRunResultArchiveWithPrismaIDEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaIDEqualsUniqueParam) idField() {} -func (jobRunWithPrismaWorkflowRunEqualsUniqueParam) unique() {} -func (jobRunWithPrismaWorkflowRunEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaIDEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaIDEqualsUniqueParam) equals() {} -type JobRunWithPrismaWorkflowRunIDEqualsSetParam interface { +type StepRunResultArchiveWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - workflowRunIDField() + stepRunResultArchiveModel() + createdAtField() } -type JobRunWithPrismaWorkflowRunIDSetParam interface { +type StepRunResultArchiveWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - workflowRunIDField() + stepRunResultArchiveModel() + createdAtField() } -type jobRunWithPrismaWorkflowRunIDSetParam struct { +type stepRunResultArchiveWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaWorkflowRunIDSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaWorkflowRunIDSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaWorkflowRunIDSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaCreatedAtSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaWorkflowRunIDSetParam) workflowRunIDField() {} +func (p stepRunResultArchiveWithPrismaCreatedAtSetParam) createdAtField() {} -type JobRunWithPrismaWorkflowRunIDWhereParam interface { +type StepRunResultArchiveWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - workflowRunIDField() + stepRunResultArchiveModel() + createdAtField() } -type jobRunWithPrismaWorkflowRunIDEqualsParam struct { +type stepRunResultArchiveWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaWorkflowRunIDEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaWorkflowRunIDEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaWorkflowRunIDEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaCreatedAtEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaWorkflowRunIDEqualsParam) workflowRunIDField() {} +func (p stepRunResultArchiveWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (jobRunWithPrismaWorkflowRunIDSetParam) settable() {} -func (jobRunWithPrismaWorkflowRunIDEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaCreatedAtSetParam) settable() {} +func (stepRunResultArchiveWithPrismaCreatedAtEqualsParam) equals() {} -type jobRunWithPrismaWorkflowRunIDEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) workflowRunIDField() {} +func (p stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) unique() {} -func (jobRunWithPrismaWorkflowRunIDEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type JobRunWithPrismaJobEqualsSetParam interface { +type StepRunResultArchiveWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - jobField() + stepRunResultArchiveModel() + updatedAtField() } -type JobRunWithPrismaJobSetParam interface { +type StepRunResultArchiveWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - jobField() + stepRunResultArchiveModel() + updatedAtField() } -type jobRunWithPrismaJobSetParam struct { +type stepRunResultArchiveWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaJobSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaJobSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaJobSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaUpdatedAtSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaJobSetParam) jobField() {} +func (p stepRunResultArchiveWithPrismaUpdatedAtSetParam) updatedAtField() {} -type JobRunWithPrismaJobWhereParam interface { +type StepRunResultArchiveWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - jobField() + stepRunResultArchiveModel() + updatedAtField() } -type jobRunWithPrismaJobEqualsParam struct { +type stepRunResultArchiveWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaJobEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaJobEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaJobEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaJobEqualsParam) jobField() {} +func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (jobRunWithPrismaJobSetParam) settable() {} -func (jobRunWithPrismaJobEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaUpdatedAtSetParam) settable() {} +func (stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) equals() {} -type jobRunWithPrismaJobEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaJobEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaJobEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaJobEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaJobEqualsUniqueParam) jobField() {} +func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (jobRunWithPrismaJobEqualsUniqueParam) unique() {} -func (jobRunWithPrismaJobEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type JobRunWithPrismaJobIDEqualsSetParam interface { +type StepRunResultArchiveWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - jobIDField() + stepRunResultArchiveModel() + deletedAtField() } -type JobRunWithPrismaJobIDSetParam interface { +type StepRunResultArchiveWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - jobIDField() + stepRunResultArchiveModel() + deletedAtField() } -type jobRunWithPrismaJobIDSetParam struct { +type stepRunResultArchiveWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaJobIDSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaJobIDSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaJobIDSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaDeletedAtSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaJobIDSetParam) jobIDField() {} +func (p stepRunResultArchiveWithPrismaDeletedAtSetParam) deletedAtField() {} -type JobRunWithPrismaJobIDWhereParam interface { +type StepRunResultArchiveWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - jobIDField() + stepRunResultArchiveModel() + deletedAtField() } -type jobRunWithPrismaJobIDEqualsParam struct { +type stepRunResultArchiveWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaJobIDEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaJobIDEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaJobIDEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaDeletedAtEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaJobIDEqualsParam) jobIDField() {} +func (p stepRunResultArchiveWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (jobRunWithPrismaJobIDSetParam) settable() {} -func (jobRunWithPrismaJobIDEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaDeletedAtSetParam) settable() {} +func (stepRunResultArchiveWithPrismaDeletedAtEqualsParam) equals() {} -type jobRunWithPrismaJobIDEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaJobIDEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaJobIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaJobIDEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaJobIDEqualsUniqueParam) jobIDField() {} +func (p stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (jobRunWithPrismaJobIDEqualsUniqueParam) unique() {} -func (jobRunWithPrismaJobIDEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type JobRunWithPrismaTickerEqualsSetParam interface { +type StepRunResultArchiveWithPrismaStepRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - tickerField() + stepRunResultArchiveModel() + stepRunField() } -type JobRunWithPrismaTickerSetParam interface { +type StepRunResultArchiveWithPrismaStepRunSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - tickerField() + stepRunResultArchiveModel() + stepRunField() } -type jobRunWithPrismaTickerSetParam struct { +type stepRunResultArchiveWithPrismaStepRunSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTickerSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStepRunSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTickerSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStepRunSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTickerSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaStepRunSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaTickerSetParam) tickerField() {} +func (p stepRunResultArchiveWithPrismaStepRunSetParam) stepRunField() {} -type JobRunWithPrismaTickerWhereParam interface { +type StepRunResultArchiveWithPrismaStepRunWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - tickerField() + stepRunResultArchiveModel() + stepRunField() } -type jobRunWithPrismaTickerEqualsParam struct { +type stepRunResultArchiveWithPrismaStepRunEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTickerEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStepRunEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTickerEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStepRunEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTickerEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaStepRunEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaTickerEqualsParam) tickerField() {} +func (p stepRunResultArchiveWithPrismaStepRunEqualsParam) stepRunField() {} -func (jobRunWithPrismaTickerSetParam) settable() {} -func (jobRunWithPrismaTickerEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaStepRunSetParam) settable() {} +func (stepRunResultArchiveWithPrismaStepRunEqualsParam) equals() {} -type jobRunWithPrismaTickerEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTickerEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTickerEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaTickerEqualsUniqueParam) tickerField() {} +func (p stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) stepRunField() {} -func (jobRunWithPrismaTickerEqualsUniqueParam) unique() {} -func (jobRunWithPrismaTickerEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) equals() {} -type JobRunWithPrismaTickerIDEqualsSetParam interface { +type StepRunResultArchiveWithPrismaStepRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - tickerIDField() + stepRunResultArchiveModel() + stepRunIDField() } -type JobRunWithPrismaTickerIDSetParam interface { +type StepRunResultArchiveWithPrismaStepRunIDSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - tickerIDField() + stepRunResultArchiveModel() + stepRunIDField() } -type jobRunWithPrismaTickerIDSetParam struct { +type stepRunResultArchiveWithPrismaStepRunIDSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTickerIDSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStepRunIDSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTickerIDSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStepRunIDSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTickerIDSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaStepRunIDSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaTickerIDSetParam) tickerIDField() {} +func (p stepRunResultArchiveWithPrismaStepRunIDSetParam) stepRunIDField() {} -type JobRunWithPrismaTickerIDWhereParam interface { +type StepRunResultArchiveWithPrismaStepRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - tickerIDField() + stepRunResultArchiveModel() + stepRunIDField() } -type jobRunWithPrismaTickerIDEqualsParam struct { +type stepRunResultArchiveWithPrismaStepRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTickerIDEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStepRunIDEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTickerIDEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTickerIDEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaStepRunIDEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaTickerIDEqualsParam) tickerIDField() {} +func (p stepRunResultArchiveWithPrismaStepRunIDEqualsParam) stepRunIDField() {} -func (jobRunWithPrismaTickerIDSetParam) settable() {} -func (jobRunWithPrismaTickerIDEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaStepRunIDSetParam) settable() {} +func (stepRunResultArchiveWithPrismaStepRunIDEqualsParam) equals() {} -type jobRunWithPrismaTickerIDEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTickerIDEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} +func (p stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} -func (jobRunWithPrismaTickerIDEqualsUniqueParam) unique() {} -func (jobRunWithPrismaTickerIDEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) equals() {} -type JobRunWithPrismaStepRunsEqualsSetParam interface { +type StepRunResultArchiveWithPrismaOrderEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - stepRunsField() + stepRunResultArchiveModel() + orderField() } -type JobRunWithPrismaStepRunsSetParam interface { +type StepRunResultArchiveWithPrismaOrderSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - stepRunsField() + stepRunResultArchiveModel() + orderField() } -type jobRunWithPrismaStepRunsSetParam struct { +type stepRunResultArchiveWithPrismaOrderSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStepRunsSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaOrderSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStepRunsSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaOrderSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStepRunsSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaOrderSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaStepRunsSetParam) stepRunsField() {} +func (p stepRunResultArchiveWithPrismaOrderSetParam) orderField() {} -type JobRunWithPrismaStepRunsWhereParam interface { +type StepRunResultArchiveWithPrismaOrderWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - stepRunsField() + stepRunResultArchiveModel() + orderField() } -type jobRunWithPrismaStepRunsEqualsParam struct { +type stepRunResultArchiveWithPrismaOrderEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStepRunsEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaOrderEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStepRunsEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaOrderEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStepRunsEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaOrderEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaStepRunsEqualsParam) stepRunsField() {} +func (p stepRunResultArchiveWithPrismaOrderEqualsParam) orderField() {} -func (jobRunWithPrismaStepRunsSetParam) settable() {} -func (jobRunWithPrismaStepRunsEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaOrderSetParam) settable() {} +func (stepRunResultArchiveWithPrismaOrderEqualsParam) equals() {} -type jobRunWithPrismaStepRunsEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaOrderEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStepRunsEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} +func (p stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) orderField() {} -func (jobRunWithPrismaStepRunsEqualsUniqueParam) unique() {} -func (jobRunWithPrismaStepRunsEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) equals() {} -type JobRunWithPrismaStatusEqualsSetParam interface { +type StepRunResultArchiveWithPrismaInputEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - statusField() + stepRunResultArchiveModel() + inputField() } -type JobRunWithPrismaStatusSetParam interface { +type StepRunResultArchiveWithPrismaInputSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - statusField() + stepRunResultArchiveModel() + inputField() } -type jobRunWithPrismaStatusSetParam struct { +type stepRunResultArchiveWithPrismaInputSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStatusSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaInputSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStatusSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaInputSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStatusSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaInputSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaStatusSetParam) statusField() {} +func (p stepRunResultArchiveWithPrismaInputSetParam) inputField() {} -type JobRunWithPrismaStatusWhereParam interface { +type StepRunResultArchiveWithPrismaInputWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - statusField() + stepRunResultArchiveModel() + inputField() } -type jobRunWithPrismaStatusEqualsParam struct { +type stepRunResultArchiveWithPrismaInputEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStatusEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaInputEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStatusEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaInputEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStatusEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaInputEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaStatusEqualsParam) statusField() {} +func (p stepRunResultArchiveWithPrismaInputEqualsParam) inputField() {} -func (jobRunWithPrismaStatusSetParam) settable() {} -func (jobRunWithPrismaStatusEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaInputSetParam) settable() {} +func (stepRunResultArchiveWithPrismaInputEqualsParam) equals() {} -type jobRunWithPrismaStatusEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaInputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStatusEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaInputEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStatusEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaStatusEqualsUniqueParam) statusField() {} +func (p stepRunResultArchiveWithPrismaInputEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaInputEqualsUniqueParam) inputField() {} -func (jobRunWithPrismaStatusEqualsUniqueParam) unique() {} -func (jobRunWithPrismaStatusEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaInputEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaInputEqualsUniqueParam) equals() {} -type JobRunWithPrismaLookupDataEqualsSetParam interface { +type StepRunResultArchiveWithPrismaOutputEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - lookupDataField() + stepRunResultArchiveModel() + outputField() } -type JobRunWithPrismaLookupDataSetParam interface { +type StepRunResultArchiveWithPrismaOutputSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - lookupDataField() + stepRunResultArchiveModel() + outputField() } -type jobRunWithPrismaLookupDataSetParam struct { +type stepRunResultArchiveWithPrismaOutputSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaLookupDataSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaOutputSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaLookupDataSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaOutputSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaLookupDataSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaOutputSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaLookupDataSetParam) lookupDataField() {} +func (p stepRunResultArchiveWithPrismaOutputSetParam) outputField() {} -type JobRunWithPrismaLookupDataWhereParam interface { +type StepRunResultArchiveWithPrismaOutputWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - lookupDataField() + stepRunResultArchiveModel() + outputField() } -type jobRunWithPrismaLookupDataEqualsParam struct { +type stepRunResultArchiveWithPrismaOutputEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaLookupDataEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaOutputEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaLookupDataEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaOutputEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaLookupDataEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaOutputEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaLookupDataEqualsParam) lookupDataField() {} +func (p stepRunResultArchiveWithPrismaOutputEqualsParam) outputField() {} -func (jobRunWithPrismaLookupDataSetParam) settable() {} -func (jobRunWithPrismaLookupDataEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaOutputSetParam) settable() {} +func (stepRunResultArchiveWithPrismaOutputEqualsParam) equals() {} -type jobRunWithPrismaLookupDataEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaOutputEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaLookupDataEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaLookupDataEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaLookupDataEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaLookupDataEqualsUniqueParam) lookupDataField() {} +func (p stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) outputField() {} -func (jobRunWithPrismaLookupDataEqualsUniqueParam) unique() {} -func (jobRunWithPrismaLookupDataEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) equals() {} -type JobRunWithPrismaResultEqualsSetParam interface { +type StepRunResultArchiveWithPrismaErrorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() - resultField() + stepRunResultArchiveModel() + errorField() } -type JobRunWithPrismaResultSetParam interface { +type StepRunResultArchiveWithPrismaErrorSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - resultField() + stepRunResultArchiveModel() + errorField() } -type jobRunWithPrismaResultSetParam struct { +type stepRunResultArchiveWithPrismaErrorSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaResultSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaErrorSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaResultSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaErrorSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaResultSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaErrorSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaResultSetParam) resultField() {} +func (p stepRunResultArchiveWithPrismaErrorSetParam) errorField() {} -type JobRunWithPrismaResultWhereParam interface { +type StepRunResultArchiveWithPrismaErrorWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() - resultField() + stepRunResultArchiveModel() + errorField() } -type jobRunWithPrismaResultEqualsParam struct { +type stepRunResultArchiveWithPrismaErrorEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaResultEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaErrorEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaResultEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaErrorEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaResultEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaErrorEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaResultEqualsParam) resultField() {} +func (p stepRunResultArchiveWithPrismaErrorEqualsParam) errorField() {} -func (jobRunWithPrismaResultSetParam) settable() {} -func (jobRunWithPrismaResultEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaErrorSetParam) settable() {} +func (stepRunResultArchiveWithPrismaErrorEqualsParam) equals() {} -type jobRunWithPrismaResultEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaErrorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaResultEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaResultEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaResultEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaResultEqualsUniqueParam) resultField() {} +func (p stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) errorField() {} -func (jobRunWithPrismaResultEqualsUniqueParam) unique() {} -func (jobRunWithPrismaResultEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) equals() {} -type JobRunWithPrismaStartedAtEqualsSetParam interface { +type StepRunResultArchiveWithPrismaStartedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() + stepRunResultArchiveModel() startedAtField() } -type JobRunWithPrismaStartedAtSetParam interface { +type StepRunResultArchiveWithPrismaStartedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() startedAtField() } -type jobRunWithPrismaStartedAtSetParam struct { +type stepRunResultArchiveWithPrismaStartedAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStartedAtSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStartedAtSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStartedAtSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStartedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStartedAtSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaStartedAtSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaStartedAtSetParam) startedAtField() {} +func (p stepRunResultArchiveWithPrismaStartedAtSetParam) startedAtField() {} -type JobRunWithPrismaStartedAtWhereParam interface { +type StepRunResultArchiveWithPrismaStartedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() startedAtField() } -type jobRunWithPrismaStartedAtEqualsParam struct { +type stepRunResultArchiveWithPrismaStartedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStartedAtEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStartedAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStartedAtEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStartedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStartedAtEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaStartedAtEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaStartedAtEqualsParam) startedAtField() {} +func (p stepRunResultArchiveWithPrismaStartedAtEqualsParam) startedAtField() {} -func (jobRunWithPrismaStartedAtSetParam) settable() {} -func (jobRunWithPrismaStartedAtEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaStartedAtSetParam) settable() {} +func (stepRunResultArchiveWithPrismaStartedAtEqualsParam) equals() {} -type jobRunWithPrismaStartedAtEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaStartedAtEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} +func (p stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} -func (jobRunWithPrismaStartedAtEqualsUniqueParam) unique() {} -func (jobRunWithPrismaStartedAtEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) equals() {} -type JobRunWithPrismaFinishedAtEqualsSetParam interface { +type StepRunResultArchiveWithPrismaFinishedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() + stepRunResultArchiveModel() finishedAtField() } -type JobRunWithPrismaFinishedAtSetParam interface { +type StepRunResultArchiveWithPrismaFinishedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() finishedAtField() } -type jobRunWithPrismaFinishedAtSetParam struct { +type stepRunResultArchiveWithPrismaFinishedAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaFinishedAtSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaFinishedAtSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaFinishedAtSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaFinishedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaFinishedAtSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaFinishedAtSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaFinishedAtSetParam) finishedAtField() {} +func (p stepRunResultArchiveWithPrismaFinishedAtSetParam) finishedAtField() {} -type JobRunWithPrismaFinishedAtWhereParam interface { +type StepRunResultArchiveWithPrismaFinishedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() finishedAtField() } -type jobRunWithPrismaFinishedAtEqualsParam struct { +type stepRunResultArchiveWithPrismaFinishedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaFinishedAtEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaFinishedAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaFinishedAtEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaFinishedAtEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaFinishedAtEqualsParam) finishedAtField() {} +func (p stepRunResultArchiveWithPrismaFinishedAtEqualsParam) finishedAtField() {} -func (jobRunWithPrismaFinishedAtSetParam) settable() {} -func (jobRunWithPrismaFinishedAtEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaFinishedAtSetParam) settable() {} +func (stepRunResultArchiveWithPrismaFinishedAtEqualsParam) equals() {} -type jobRunWithPrismaFinishedAtEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaFinishedAtEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} +func (p stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} -func (jobRunWithPrismaFinishedAtEqualsUniqueParam) unique() {} -func (jobRunWithPrismaFinishedAtEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) equals() {} -type JobRunWithPrismaTimeoutAtEqualsSetParam interface { +type StepRunResultArchiveWithPrismaTimeoutAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() + stepRunResultArchiveModel() timeoutAtField() } -type JobRunWithPrismaTimeoutAtSetParam interface { +type StepRunResultArchiveWithPrismaTimeoutAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() timeoutAtField() } -type jobRunWithPrismaTimeoutAtSetParam struct { +type stepRunResultArchiveWithPrismaTimeoutAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTimeoutAtSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaTimeoutAtSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTimeoutAtSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaTimeoutAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTimeoutAtSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaTimeoutAtSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaTimeoutAtSetParam) timeoutAtField() {} +func (p stepRunResultArchiveWithPrismaTimeoutAtSetParam) timeoutAtField() {} -type JobRunWithPrismaTimeoutAtWhereParam interface { +type StepRunResultArchiveWithPrismaTimeoutAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() timeoutAtField() } -type jobRunWithPrismaTimeoutAtEqualsParam struct { +type stepRunResultArchiveWithPrismaTimeoutAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTimeoutAtEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTimeoutAtEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTimeoutAtEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaTimeoutAtEqualsParam) timeoutAtField() {} +func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) timeoutAtField() {} -func (jobRunWithPrismaTimeoutAtSetParam) settable() {} -func (jobRunWithPrismaTimeoutAtEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaTimeoutAtSetParam) settable() {} +func (stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) equals() {} -type jobRunWithPrismaTimeoutAtEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaTimeoutAtEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaTimeoutAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaTimeoutAtEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaTimeoutAtEqualsUniqueParam) timeoutAtField() {} +func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) timeoutAtField() {} -func (jobRunWithPrismaTimeoutAtEqualsUniqueParam) unique() {} -func (jobRunWithPrismaTimeoutAtEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) equals() {} -type JobRunWithPrismaCancelledAtEqualsSetParam interface { +type StepRunResultArchiveWithPrismaCancelledAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() + stepRunResultArchiveModel() cancelledAtField() } -type JobRunWithPrismaCancelledAtSetParam interface { +type StepRunResultArchiveWithPrismaCancelledAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() cancelledAtField() } -type jobRunWithPrismaCancelledAtSetParam struct { +type stepRunResultArchiveWithPrismaCancelledAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledAtSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledAtSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledAtSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledAtSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaCancelledAtSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaCancelledAtSetParam) cancelledAtField() {} +func (p stepRunResultArchiveWithPrismaCancelledAtSetParam) cancelledAtField() {} -type JobRunWithPrismaCancelledAtWhereParam interface { +type StepRunResultArchiveWithPrismaCancelledAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() cancelledAtField() } -type jobRunWithPrismaCancelledAtEqualsParam struct { +type stepRunResultArchiveWithPrismaCancelledAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledAtEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledAtEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledAtEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaCancelledAtEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaCancelledAtEqualsParam) cancelledAtField() {} +func (p stepRunResultArchiveWithPrismaCancelledAtEqualsParam) cancelledAtField() {} -func (jobRunWithPrismaCancelledAtSetParam) settable() {} -func (jobRunWithPrismaCancelledAtEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaCancelledAtSetParam) settable() {} +func (stepRunResultArchiveWithPrismaCancelledAtEqualsParam) equals() {} -type jobRunWithPrismaCancelledAtEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledAtEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledAtEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledAtEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaCancelledAtEqualsUniqueParam) cancelledAtField() {} +func (p stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) cancelledAtField() {} -func (jobRunWithPrismaCancelledAtEqualsUniqueParam) unique() {} -func (jobRunWithPrismaCancelledAtEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) equals() {} -type JobRunWithPrismaCancelledReasonEqualsSetParam interface { +type StepRunResultArchiveWithPrismaCancelledReasonEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() + stepRunResultArchiveModel() cancelledReasonField() } -type JobRunWithPrismaCancelledReasonSetParam interface { +type StepRunResultArchiveWithPrismaCancelledReasonSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() cancelledReasonField() } -type jobRunWithPrismaCancelledReasonSetParam struct { +type stepRunResultArchiveWithPrismaCancelledReasonSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledReasonSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledReasonSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledReasonSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledReasonSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledReasonSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaCancelledReasonSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaCancelledReasonSetParam) cancelledReasonField() {} +func (p stepRunResultArchiveWithPrismaCancelledReasonSetParam) cancelledReasonField() {} -type JobRunWithPrismaCancelledReasonWhereParam interface { +type StepRunResultArchiveWithPrismaCancelledReasonWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() cancelledReasonField() } -type jobRunWithPrismaCancelledReasonEqualsParam struct { +type stepRunResultArchiveWithPrismaCancelledReasonEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledReasonEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledReasonEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledReasonEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaCancelledReasonEqualsParam) cancelledReasonField() {} +func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) cancelledReasonField() {} -func (jobRunWithPrismaCancelledReasonSetParam) settable() {} -func (jobRunWithPrismaCancelledReasonEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaCancelledReasonSetParam) settable() {} +func (stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) equals() {} -type jobRunWithPrismaCancelledReasonEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledReasonEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledReasonEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledReasonEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaCancelledReasonEqualsUniqueParam) cancelledReasonField() {} +func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) cancelledReasonField() {} -func (jobRunWithPrismaCancelledReasonEqualsUniqueParam) unique() {} -func (jobRunWithPrismaCancelledReasonEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) equals() {} -type JobRunWithPrismaCancelledErrorEqualsSetParam interface { +type StepRunResultArchiveWithPrismaCancelledErrorEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunModel() + stepRunResultArchiveModel() cancelledErrorField() } -type JobRunWithPrismaCancelledErrorSetParam interface { +type StepRunResultArchiveWithPrismaCancelledErrorSetParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() cancelledErrorField() } -type jobRunWithPrismaCancelledErrorSetParam struct { +type stepRunResultArchiveWithPrismaCancelledErrorSetParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledErrorSetParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledErrorSetParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledErrorSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledErrorSetParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledErrorSetParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaCancelledErrorSetParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaCancelledErrorSetParam) cancelledErrorField() {} +func (p stepRunResultArchiveWithPrismaCancelledErrorSetParam) cancelledErrorField() {} -type JobRunWithPrismaCancelledErrorWhereParam interface { +type StepRunResultArchiveWithPrismaCancelledErrorWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunModel() + stepRunResultArchiveModel() cancelledErrorField() } -type jobRunWithPrismaCancelledErrorEqualsParam struct { +type stepRunResultArchiveWithPrismaCancelledErrorEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledErrorEqualsParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledErrorEqualsParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledErrorEqualsParam) jobRunModel() {} +func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) stepRunResultArchiveModel() {} -func (p jobRunWithPrismaCancelledErrorEqualsParam) cancelledErrorField() {} +func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) cancelledErrorField() {} -func (jobRunWithPrismaCancelledErrorSetParam) settable() {} -func (jobRunWithPrismaCancelledErrorEqualsParam) equals() {} +func (stepRunResultArchiveWithPrismaCancelledErrorSetParam) settable() {} +func (stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) equals() {} -type jobRunWithPrismaCancelledErrorEqualsUniqueParam struct { +type stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunWithPrismaCancelledErrorEqualsUniqueParam) field() builder.Field { +func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunWithPrismaCancelledErrorEqualsUniqueParam) getQuery() builder.Query { +func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunWithPrismaCancelledErrorEqualsUniqueParam) jobRunModel() {} -func (p jobRunWithPrismaCancelledErrorEqualsUniqueParam) cancelledErrorField() {} +func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) stepRunResultArchiveModel() {} +func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) cancelledErrorField() {} -func (jobRunWithPrismaCancelledErrorEqualsUniqueParam) unique() {} -func (jobRunWithPrismaCancelledErrorEqualsUniqueParam) equals() {} +func (stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) unique() {} +func (stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) equals() {} -type jobRunLookupDataActions struct { +type dispatcherActions struct { // client holds the prisma client client *PrismaClient } -var jobRunLookupDataOutput = []builder.Output{ +var dispatcherOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, {Name: "deletedAt"}, - {Name: "jobRunId"}, - {Name: "tenantId"}, - {Name: "data"}, + {Name: "lastHeartbeatAt"}, + {Name: "isActive"}, } -type JobRunLookupDataRelationWith interface { +type DispatcherRelationWith interface { getQuery() builder.Query with() - jobRunLookupDataRelation() + dispatcherRelation() } -type JobRunLookupDataWhereParam interface { +type DispatcherWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() } -type jobRunLookupDataDefaultParam struct { +type dispatcherDefaultParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataDefaultParam) field() builder.Field { +func (p dispatcherDefaultParam) field() builder.Field { return p.data } -func (p jobRunLookupDataDefaultParam) getQuery() builder.Query { +func (p dispatcherDefaultParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataDefaultParam) jobRunLookupDataModel() {} +func (p dispatcherDefaultParam) dispatcherModel() {} -type JobRunLookupDataOrderByParam interface { +type DispatcherOrderByParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() } -type jobRunLookupDataOrderByParam struct { +type dispatcherOrderByParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataOrderByParam) field() builder.Field { +func (p dispatcherOrderByParam) field() builder.Field { return p.data } -func (p jobRunLookupDataOrderByParam) getQuery() builder.Query { +func (p dispatcherOrderByParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataOrderByParam) jobRunLookupDataModel() {} +func (p dispatcherOrderByParam) dispatcherModel() {} -type JobRunLookupDataCursorParam interface { +type DispatcherCursorParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() isCursor() } -type jobRunLookupDataCursorParam struct { +type dispatcherCursorParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataCursorParam) field() builder.Field { +func (p dispatcherCursorParam) field() builder.Field { return p.data } -func (p jobRunLookupDataCursorParam) isCursor() {} +func (p dispatcherCursorParam) isCursor() {} -func (p jobRunLookupDataCursorParam) getQuery() builder.Query { +func (p dispatcherCursorParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataCursorParam) jobRunLookupDataModel() {} +func (p dispatcherCursorParam) dispatcherModel() {} -type JobRunLookupDataParamUnique interface { +type DispatcherParamUnique interface { field() builder.Field getQuery() builder.Query unique() - jobRunLookupDataModel() + dispatcherModel() } -type jobRunLookupDataParamUnique struct { +type dispatcherParamUnique struct { data builder.Field query builder.Query } -func (p jobRunLookupDataParamUnique) jobRunLookupDataModel() {} +func (p dispatcherParamUnique) dispatcherModel() {} -func (jobRunLookupDataParamUnique) unique() {} +func (dispatcherParamUnique) unique() {} -func (p jobRunLookupDataParamUnique) field() builder.Field { +func (p dispatcherParamUnique) field() builder.Field { return p.data } -func (p jobRunLookupDataParamUnique) getQuery() builder.Query { +func (p dispatcherParamUnique) getQuery() builder.Query { return p.query } -type JobRunLookupDataEqualsWhereParam interface { +type DispatcherEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunLookupDataModel() + dispatcherModel() } -type jobRunLookupDataEqualsParam struct { +type dispatcherEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataEqualsParam) jobRunLookupDataModel() {} +func (p dispatcherEqualsParam) dispatcherModel() {} -func (jobRunLookupDataEqualsParam) equals() {} +func (dispatcherEqualsParam) equals() {} -func (p jobRunLookupDataEqualsParam) field() builder.Field { +func (p dispatcherEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataEqualsParam) getQuery() builder.Query { +func (p dispatcherEqualsParam) getQuery() builder.Query { return p.query } -type JobRunLookupDataEqualsUniqueWhereParam interface { +type DispatcherEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - jobRunLookupDataModel() + dispatcherModel() } -type jobRunLookupDataEqualsUniqueParam struct { +type dispatcherEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataEqualsUniqueParam) jobRunLookupDataModel() {} +func (p dispatcherEqualsUniqueParam) dispatcherModel() {} -func (jobRunLookupDataEqualsUniqueParam) unique() {} -func (jobRunLookupDataEqualsUniqueParam) equals() {} +func (dispatcherEqualsUniqueParam) unique() {} +func (dispatcherEqualsUniqueParam) equals() {} -func (p jobRunLookupDataEqualsUniqueParam) field() builder.Field { +func (p dispatcherEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataEqualsUniqueParam) getQuery() builder.Query { +func (p dispatcherEqualsUniqueParam) getQuery() builder.Query { return p.query } -type JobRunLookupDataSetParam interface { +type DispatcherSetParam interface { field() builder.Field settable() - jobRunLookupDataModel() + dispatcherModel() } -type jobRunLookupDataSetParam struct { +type dispatcherSetParam struct { data builder.Field } -func (jobRunLookupDataSetParam) settable() {} +func (dispatcherSetParam) settable() {} -func (p jobRunLookupDataSetParam) field() builder.Field { +func (p dispatcherSetParam) field() builder.Field { return p.data } -func (p jobRunLookupDataSetParam) jobRunLookupDataModel() {} +func (p dispatcherSetParam) dispatcherModel() {} -type JobRunLookupDataWithPrismaIDEqualsSetParam interface { +type DispatcherWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunLookupDataModel() + dispatcherModel() idField() } -type JobRunLookupDataWithPrismaIDSetParam interface { +type DispatcherWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() idField() } -type jobRunLookupDataWithPrismaIDSetParam struct { +type dispatcherWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaIDSetParam) field() builder.Field { +func (p dispatcherWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaIDSetParam) getQuery() builder.Query { +func (p dispatcherWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaIDSetParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaIDSetParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaIDSetParam) idField() {} +func (p dispatcherWithPrismaIDSetParam) idField() {} -type JobRunLookupDataWithPrismaIDWhereParam interface { +type DispatcherWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() idField() } -type jobRunLookupDataWithPrismaIDEqualsParam struct { +type dispatcherWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaIDEqualsParam) field() builder.Field { +func (p dispatcherWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p dispatcherWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaIDEqualsParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaIDEqualsParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaIDEqualsParam) idField() {} +func (p dispatcherWithPrismaIDEqualsParam) idField() {} -func (jobRunLookupDataWithPrismaIDSetParam) settable() {} -func (jobRunLookupDataWithPrismaIDEqualsParam) equals() {} +func (dispatcherWithPrismaIDSetParam) settable() {} +func (dispatcherWithPrismaIDEqualsParam) equals() {} -type jobRunLookupDataWithPrismaIDEqualsUniqueParam struct { +type dispatcherWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p dispatcherWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p dispatcherWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaIDEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaIDEqualsUniqueParam) idField() {} +func (p dispatcherWithPrismaIDEqualsUniqueParam) dispatcherModel() {} +func (p dispatcherWithPrismaIDEqualsUniqueParam) idField() {} -func (jobRunLookupDataWithPrismaIDEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaIDEqualsUniqueParam) equals() {} +func (dispatcherWithPrismaIDEqualsUniqueParam) unique() {} +func (dispatcherWithPrismaIDEqualsUniqueParam) equals() {} -type JobRunLookupDataWithPrismaCreatedAtEqualsSetParam interface { +type DispatcherWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunLookupDataModel() + dispatcherModel() createdAtField() } -type JobRunLookupDataWithPrismaCreatedAtSetParam interface { +type DispatcherWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() createdAtField() } -type jobRunLookupDataWithPrismaCreatedAtSetParam struct { +type dispatcherWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaCreatedAtSetParam) field() builder.Field { +func (p dispatcherWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p dispatcherWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaCreatedAtSetParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaCreatedAtSetParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaCreatedAtSetParam) createdAtField() {} +func (p dispatcherWithPrismaCreatedAtSetParam) createdAtField() {} -type JobRunLookupDataWithPrismaCreatedAtWhereParam interface { +type DispatcherWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() createdAtField() } -type jobRunLookupDataWithPrismaCreatedAtEqualsParam struct { +type dispatcherWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p dispatcherWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p dispatcherWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaCreatedAtEqualsParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaCreatedAtEqualsParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p dispatcherWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (jobRunLookupDataWithPrismaCreatedAtSetParam) settable() {} -func (jobRunLookupDataWithPrismaCreatedAtEqualsParam) equals() {} +func (dispatcherWithPrismaCreatedAtSetParam) settable() {} +func (dispatcherWithPrismaCreatedAtEqualsParam) equals() {} -type jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam struct { +type dispatcherWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p dispatcherWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p dispatcherWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p dispatcherWithPrismaCreatedAtEqualsUniqueParam) dispatcherModel() {} +func (p dispatcherWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (dispatcherWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (dispatcherWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type JobRunLookupDataWithPrismaUpdatedAtEqualsSetParam interface { +type DispatcherWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunLookupDataModel() + dispatcherModel() updatedAtField() } -type JobRunLookupDataWithPrismaUpdatedAtSetParam interface { +type DispatcherWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() updatedAtField() } -type jobRunLookupDataWithPrismaUpdatedAtSetParam struct { +type dispatcherWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p dispatcherWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p dispatcherWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaUpdatedAtSetParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaUpdatedAtSetParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p dispatcherWithPrismaUpdatedAtSetParam) updatedAtField() {} -type JobRunLookupDataWithPrismaUpdatedAtWhereParam interface { +type DispatcherWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() updatedAtField() } -type jobRunLookupDataWithPrismaUpdatedAtEqualsParam struct { +type dispatcherWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p dispatcherWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p dispatcherWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaUpdatedAtEqualsParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaUpdatedAtEqualsParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p dispatcherWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (jobRunLookupDataWithPrismaUpdatedAtSetParam) settable() {} -func (jobRunLookupDataWithPrismaUpdatedAtEqualsParam) equals() {} +func (dispatcherWithPrismaUpdatedAtSetParam) settable() {} +func (dispatcherWithPrismaUpdatedAtEqualsParam) equals() {} -type jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam struct { +type dispatcherWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p dispatcherWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p dispatcherWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p dispatcherWithPrismaUpdatedAtEqualsUniqueParam) dispatcherModel() {} +func (p dispatcherWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (dispatcherWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (dispatcherWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type JobRunLookupDataWithPrismaDeletedAtEqualsSetParam interface { +type DispatcherWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunLookupDataModel() + dispatcherModel() deletedAtField() } -type JobRunLookupDataWithPrismaDeletedAtSetParam interface { +type DispatcherWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() deletedAtField() } -type jobRunLookupDataWithPrismaDeletedAtSetParam struct { +type dispatcherWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaDeletedAtSetParam) field() builder.Field { +func (p dispatcherWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p dispatcherWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaDeletedAtSetParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaDeletedAtSetParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p dispatcherWithPrismaDeletedAtSetParam) deletedAtField() {} -type JobRunLookupDataWithPrismaDeletedAtWhereParam interface { +type DispatcherWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() + dispatcherModel() deletedAtField() } -type jobRunLookupDataWithPrismaDeletedAtEqualsParam struct { +type dispatcherWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p dispatcherWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p dispatcherWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaDeletedAtEqualsParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaDeletedAtEqualsParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p dispatcherWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (jobRunLookupDataWithPrismaDeletedAtSetParam) settable() {} -func (jobRunLookupDataWithPrismaDeletedAtEqualsParam) equals() {} +func (dispatcherWithPrismaDeletedAtSetParam) settable() {} +func (dispatcherWithPrismaDeletedAtEqualsParam) equals() {} -type jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam struct { +type dispatcherWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p dispatcherWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p dispatcherWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p dispatcherWithPrismaDeletedAtEqualsUniqueParam) dispatcherModel() {} +func (p dispatcherWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (dispatcherWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (dispatcherWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type JobRunLookupDataWithPrismaJobRunEqualsSetParam interface { +type DispatcherWithPrismaLastHeartbeatAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunLookupDataModel() - jobRunField() + dispatcherModel() + lastHeartbeatAtField() } -type JobRunLookupDataWithPrismaJobRunSetParam interface { +type DispatcherWithPrismaLastHeartbeatAtSetParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - jobRunField() + dispatcherModel() + lastHeartbeatAtField() } -type jobRunLookupDataWithPrismaJobRunSetParam struct { +type dispatcherWithPrismaLastHeartbeatAtSetParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaJobRunSetParam) field() builder.Field { +func (p dispatcherWithPrismaLastHeartbeatAtSetParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaJobRunSetParam) getQuery() builder.Query { +func (p dispatcherWithPrismaLastHeartbeatAtSetParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaJobRunSetParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaLastHeartbeatAtSetParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaJobRunSetParam) jobRunField() {} +func (p dispatcherWithPrismaLastHeartbeatAtSetParam) lastHeartbeatAtField() {} -type JobRunLookupDataWithPrismaJobRunWhereParam interface { +type DispatcherWithPrismaLastHeartbeatAtWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - jobRunField() + dispatcherModel() + lastHeartbeatAtField() } -type jobRunLookupDataWithPrismaJobRunEqualsParam struct { +type dispatcherWithPrismaLastHeartbeatAtEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaJobRunEqualsParam) field() builder.Field { +func (p dispatcherWithPrismaLastHeartbeatAtEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaJobRunEqualsParam) getQuery() builder.Query { +func (p dispatcherWithPrismaLastHeartbeatAtEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaJobRunEqualsParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaLastHeartbeatAtEqualsParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaJobRunEqualsParam) jobRunField() {} +func (p dispatcherWithPrismaLastHeartbeatAtEqualsParam) lastHeartbeatAtField() {} -func (jobRunLookupDataWithPrismaJobRunSetParam) settable() {} -func (jobRunLookupDataWithPrismaJobRunEqualsParam) equals() {} +func (dispatcherWithPrismaLastHeartbeatAtSetParam) settable() {} +func (dispatcherWithPrismaLastHeartbeatAtEqualsParam) equals() {} -type jobRunLookupDataWithPrismaJobRunEqualsUniqueParam struct { +type dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) field() builder.Field { +func (p dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) getQuery() builder.Query { +func (p dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) jobRunField() {} +func (p dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) dispatcherModel() {} +func (p dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) lastHeartbeatAtField() {} -func (jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaJobRunEqualsUniqueParam) equals() {} +func (dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) unique() {} +func (dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) equals() {} -type JobRunLookupDataWithPrismaJobRunIDEqualsSetParam interface { +type DispatcherWithPrismaIsActiveEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunLookupDataModel() - jobRunIDField() + dispatcherModel() + isActiveField() } -type JobRunLookupDataWithPrismaJobRunIDSetParam interface { +type DispatcherWithPrismaIsActiveSetParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - jobRunIDField() + dispatcherModel() + isActiveField() } -type jobRunLookupDataWithPrismaJobRunIDSetParam struct { +type dispatcherWithPrismaIsActiveSetParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaJobRunIDSetParam) field() builder.Field { +func (p dispatcherWithPrismaIsActiveSetParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaJobRunIDSetParam) getQuery() builder.Query { +func (p dispatcherWithPrismaIsActiveSetParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaJobRunIDSetParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaIsActiveSetParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaJobRunIDSetParam) jobRunIDField() {} +func (p dispatcherWithPrismaIsActiveSetParam) isActiveField() {} -type JobRunLookupDataWithPrismaJobRunIDWhereParam interface { +type DispatcherWithPrismaIsActiveWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - jobRunIDField() + dispatcherModel() + isActiveField() } -type jobRunLookupDataWithPrismaJobRunIDEqualsParam struct { +type dispatcherWithPrismaIsActiveEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaJobRunIDEqualsParam) field() builder.Field { +func (p dispatcherWithPrismaIsActiveEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaJobRunIDEqualsParam) getQuery() builder.Query { +func (p dispatcherWithPrismaIsActiveEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaJobRunIDEqualsParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaIsActiveEqualsParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaJobRunIDEqualsParam) jobRunIDField() {} +func (p dispatcherWithPrismaIsActiveEqualsParam) isActiveField() {} -func (jobRunLookupDataWithPrismaJobRunIDSetParam) settable() {} -func (jobRunLookupDataWithPrismaJobRunIDEqualsParam) equals() {} +func (dispatcherWithPrismaIsActiveSetParam) settable() {} +func (dispatcherWithPrismaIsActiveEqualsParam) equals() {} -type jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam struct { +type dispatcherWithPrismaIsActiveEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) field() builder.Field { +func (p dispatcherWithPrismaIsActiveEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) getQuery() builder.Query { +func (p dispatcherWithPrismaIsActiveEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) jobRunIDField() {} +func (p dispatcherWithPrismaIsActiveEqualsUniqueParam) dispatcherModel() {} +func (p dispatcherWithPrismaIsActiveEqualsUniqueParam) isActiveField() {} -func (jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaJobRunIDEqualsUniqueParam) equals() {} +func (dispatcherWithPrismaIsActiveEqualsUniqueParam) unique() {} +func (dispatcherWithPrismaIsActiveEqualsUniqueParam) equals() {} -type JobRunLookupDataWithPrismaTenantEqualsSetParam interface { +type DispatcherWithPrismaWorkersEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - jobRunLookupDataModel() - tenantField() + dispatcherModel() + workersField() } -type JobRunLookupDataWithPrismaTenantSetParam interface { +type DispatcherWithPrismaWorkersSetParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - tenantField() + dispatcherModel() + workersField() } -type jobRunLookupDataWithPrismaTenantSetParam struct { +type dispatcherWithPrismaWorkersSetParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaTenantSetParam) field() builder.Field { +func (p dispatcherWithPrismaWorkersSetParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaTenantSetParam) getQuery() builder.Query { +func (p dispatcherWithPrismaWorkersSetParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaTenantSetParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaWorkersSetParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaTenantSetParam) tenantField() {} +func (p dispatcherWithPrismaWorkersSetParam) workersField() {} -type JobRunLookupDataWithPrismaTenantWhereParam interface { +type DispatcherWithPrismaWorkersWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - tenantField() + dispatcherModel() + workersField() } -type jobRunLookupDataWithPrismaTenantEqualsParam struct { +type dispatcherWithPrismaWorkersEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaTenantEqualsParam) field() builder.Field { +func (p dispatcherWithPrismaWorkersEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p dispatcherWithPrismaWorkersEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaTenantEqualsParam) jobRunLookupDataModel() {} +func (p dispatcherWithPrismaWorkersEqualsParam) dispatcherModel() {} -func (p jobRunLookupDataWithPrismaTenantEqualsParam) tenantField() {} +func (p dispatcherWithPrismaWorkersEqualsParam) workersField() {} -func (jobRunLookupDataWithPrismaTenantSetParam) settable() {} -func (jobRunLookupDataWithPrismaTenantEqualsParam) equals() {} +func (dispatcherWithPrismaWorkersSetParam) settable() {} +func (dispatcherWithPrismaWorkersEqualsParam) equals() {} -type jobRunLookupDataWithPrismaTenantEqualsUniqueParam struct { +type dispatcherWithPrismaWorkersEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p dispatcherWithPrismaWorkersEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p dispatcherWithPrismaWorkersEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaTenantEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p dispatcherWithPrismaWorkersEqualsUniqueParam) dispatcherModel() {} +func (p dispatcherWithPrismaWorkersEqualsUniqueParam) workersField() {} -func (jobRunLookupDataWithPrismaTenantEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaTenantEqualsUniqueParam) equals() {} +func (dispatcherWithPrismaWorkersEqualsUniqueParam) unique() {} +func (dispatcherWithPrismaWorkersEqualsUniqueParam) equals() {} -type JobRunLookupDataWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field +type tickerActions struct { + // client holds the prisma client + client *PrismaClient +} + +var tickerOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "lastHeartbeatAt"}, + {Name: "isActive"}, +} + +type TickerRelationWith interface { getQuery() builder.Query - equals() - jobRunLookupDataModel() - tenantIDField() + with() + tickerRelation() } -type JobRunLookupDataWithPrismaTenantIDSetParam interface { +type TickerWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - tenantIDField() + tickerModel() } -type jobRunLookupDataWithPrismaTenantIDSetParam struct { +type tickerDefaultParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaTenantIDSetParam) field() builder.Field { +func (p tickerDefaultParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p tickerDefaultParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaTenantIDSetParam) jobRunLookupDataModel() {} - -func (p jobRunLookupDataWithPrismaTenantIDSetParam) tenantIDField() {} +func (p tickerDefaultParam) tickerModel() {} -type JobRunLookupDataWithPrismaTenantIDWhereParam interface { +type TickerOrderByParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - tenantIDField() + tickerModel() } -type jobRunLookupDataWithPrismaTenantIDEqualsParam struct { +type tickerOrderByParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p tickerOrderByParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p tickerOrderByParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaTenantIDEqualsParam) jobRunLookupDataModel() {} - -func (p jobRunLookupDataWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p tickerOrderByParam) tickerModel() {} -func (jobRunLookupDataWithPrismaTenantIDSetParam) settable() {} -func (jobRunLookupDataWithPrismaTenantIDEqualsParam) equals() {} +type TickerCursorParam interface { + field() builder.Field + getQuery() builder.Query + tickerModel() + isCursor() +} -type jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam struct { +type tickerCursorParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p tickerCursorParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p tickerCursorParam) isCursor() {} + +func (p tickerCursorParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} - -func (jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaTenantIDEqualsUniqueParam) equals() {} - -type JobRunLookupDataWithPrismaDataEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - jobRunLookupDataModel() - dataField() -} +func (p tickerCursorParam) tickerModel() {} -type JobRunLookupDataWithPrismaDataSetParam interface { +type TickerParamUnique interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - dataField() + unique() + tickerModel() } -type jobRunLookupDataWithPrismaDataSetParam struct { +type tickerParamUnique struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaDataSetParam) field() builder.Field { +func (p tickerParamUnique) tickerModel() {} + +func (tickerParamUnique) unique() {} + +func (p tickerParamUnique) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaDataSetParam) getQuery() builder.Query { +func (p tickerParamUnique) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaDataSetParam) jobRunLookupDataModel() {} - -func (p jobRunLookupDataWithPrismaDataSetParam) dataField() {} - -type JobRunLookupDataWithPrismaDataWhereParam interface { +type TickerEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - jobRunLookupDataModel() - dataField() + equals() + tickerModel() } -type jobRunLookupDataWithPrismaDataEqualsParam struct { +type tickerEqualsParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaDataEqualsParam) field() builder.Field { +func (p tickerEqualsParam) tickerModel() {} + +func (tickerEqualsParam) equals() {} + +func (p tickerEqualsParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaDataEqualsParam) getQuery() builder.Query { +func (p tickerEqualsParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaDataEqualsParam) jobRunLookupDataModel() {} - -func (p jobRunLookupDataWithPrismaDataEqualsParam) dataField() {} - -func (jobRunLookupDataWithPrismaDataSetParam) settable() {} -func (jobRunLookupDataWithPrismaDataEqualsParam) equals() {} +type TickerEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + tickerModel() +} -type jobRunLookupDataWithPrismaDataEqualsUniqueParam struct { +type tickerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p jobRunLookupDataWithPrismaDataEqualsUniqueParam) field() builder.Field { +func (p tickerEqualsUniqueParam) tickerModel() {} + +func (tickerEqualsUniqueParam) unique() {} +func (tickerEqualsUniqueParam) equals() {} + +func (p tickerEqualsUniqueParam) field() builder.Field { return p.data } -func (p jobRunLookupDataWithPrismaDataEqualsUniqueParam) getQuery() builder.Query { +func (p tickerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p jobRunLookupDataWithPrismaDataEqualsUniqueParam) jobRunLookupDataModel() {} -func (p jobRunLookupDataWithPrismaDataEqualsUniqueParam) dataField() {} - -func (jobRunLookupDataWithPrismaDataEqualsUniqueParam) unique() {} -func (jobRunLookupDataWithPrismaDataEqualsUniqueParam) equals() {} +type TickerSetParam interface { + field() builder.Field + settable() + tickerModel() +} -type stepRunActions struct { - // client holds the prisma client - client *PrismaClient +type tickerSetParam struct { + data builder.Field } -var stepRunOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "jobRunId"}, - {Name: "stepId"}, - {Name: "order"}, - {Name: "workerId"}, - {Name: "tickerId"}, - {Name: "status"}, - {Name: "input"}, - {Name: "output"}, - {Name: "inputSchema"}, - {Name: "requeueAfter"}, - {Name: "scheduleTimeoutAt"}, - {Name: "retryCount"}, - {Name: "error"}, - {Name: "startedAt"}, - {Name: "finishedAt"}, - {Name: "timeoutAt"}, - {Name: "cancelledAt"}, - {Name: "cancelledReason"}, - {Name: "cancelledError"}, - {Name: "callerFiles"}, - {Name: "gitRepoBranch"}, - {Name: "semaphoreReleased"}, +func (tickerSetParam) settable() {} + +func (p tickerSetParam) field() builder.Field { + return p.data } -type StepRunRelationWith interface { +func (p tickerSetParam) tickerModel() {} + +type TickerWithPrismaIDEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - stepRunRelation() + equals() + tickerModel() + idField() } -type StepRunWhereParam interface { +type TickerWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() + tickerModel() + idField() } -type stepRunDefaultParam struct { +type tickerWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunDefaultParam) field() builder.Field { +func (p tickerWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p stepRunDefaultParam) getQuery() builder.Query { +func (p tickerWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunDefaultParam) stepRunModel() {} +func (p tickerWithPrismaIDSetParam) tickerModel() {} -type StepRunOrderByParam interface { +func (p tickerWithPrismaIDSetParam) idField() {} + +type TickerWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() + tickerModel() + idField() } -type stepRunOrderByParam struct { +type tickerWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunOrderByParam) field() builder.Field { +func (p tickerWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunOrderByParam) getQuery() builder.Query { +func (p tickerWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunOrderByParam) stepRunModel() {} +func (p tickerWithPrismaIDEqualsParam) tickerModel() {} -type StepRunCursorParam interface { +func (p tickerWithPrismaIDEqualsParam) idField() {} + +func (tickerWithPrismaIDSetParam) settable() {} +func (tickerWithPrismaIDEqualsParam) equals() {} + +type tickerWithPrismaIDEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tickerWithPrismaIDEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p tickerWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p tickerWithPrismaIDEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaIDEqualsUniqueParam) idField() {} + +func (tickerWithPrismaIDEqualsUniqueParam) unique() {} +func (tickerWithPrismaIDEqualsUniqueParam) equals() {} + +type TickerWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - isCursor() + equals() + tickerModel() + createdAtField() } -type stepRunCursorParam struct { +type TickerWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tickerModel() + createdAtField() +} + +type tickerWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunCursorParam) field() builder.Field { +func (p tickerWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunCursorParam) isCursor() {} - -func (p stepRunCursorParam) getQuery() builder.Query { +func (p tickerWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunCursorParam) stepRunModel() {} +func (p tickerWithPrismaCreatedAtSetParam) tickerModel() {} -type StepRunParamUnique interface { +func (p tickerWithPrismaCreatedAtSetParam) createdAtField() {} + +type TickerWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - unique() - stepRunModel() + tickerModel() + createdAtField() } -type stepRunParamUnique struct { +type tickerWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunParamUnique) stepRunModel() {} +func (p tickerWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} -func (stepRunParamUnique) unique() {} +func (p tickerWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} -func (p stepRunParamUnique) field() builder.Field { +func (p tickerWithPrismaCreatedAtEqualsParam) tickerModel() {} + +func (p tickerWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (tickerWithPrismaCreatedAtSetParam) settable() {} +func (tickerWithPrismaCreatedAtEqualsParam) equals() {} + +type tickerWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tickerWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunParamUnique) getQuery() builder.Query { +func (p tickerWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -type StepRunEqualsWhereParam interface { +func (p tickerWithPrismaCreatedAtEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (tickerWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tickerWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type TickerWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() + tickerModel() + updatedAtField() +} + +type TickerWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + tickerModel() + updatedAtField() } -type stepRunEqualsParam struct { +type tickerWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunEqualsParam) stepRunModel() {} - -func (stepRunEqualsParam) equals() {} - -func (p stepRunEqualsParam) field() builder.Field { +func (p tickerWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -type StepRunEqualsUniqueWhereParam interface { +func (p tickerWithPrismaUpdatedAtSetParam) tickerModel() {} + +func (p tickerWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type TickerWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - unique() - stepRunModel() + tickerModel() + updatedAtField() } -type stepRunEqualsUniqueParam struct { +type tickerWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEqualsUniqueParam) stepRunModel() {} - -func (stepRunEqualsUniqueParam) unique() {} -func (stepRunEqualsUniqueParam) equals() {} - -func (p stepRunEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -type StepRunSetParam interface { - field() builder.Field - settable() - stepRunModel() -} +func (p tickerWithPrismaUpdatedAtEqualsParam) tickerModel() {} -type stepRunSetParam struct { - data builder.Field -} +func (p tickerWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (stepRunSetParam) settable() {} +func (tickerWithPrismaUpdatedAtSetParam) settable() {} +func (tickerWithPrismaUpdatedAtEqualsParam) equals() {} -func (p stepRunSetParam) field() builder.Field { +type tickerWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p tickerWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunSetParam) stepRunModel() {} +func (p tickerWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} -type StepRunWithPrismaIDEqualsSetParam interface { +func (p tickerWithPrismaUpdatedAtEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (tickerWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tickerWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type TickerWithPrismaLastHeartbeatAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - idField() + tickerModel() + lastHeartbeatAtField() } -type StepRunWithPrismaIDSetParam interface { +type TickerWithPrismaLastHeartbeatAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - idField() + tickerModel() + lastHeartbeatAtField() } -type stepRunWithPrismaIDSetParam struct { +type tickerWithPrismaLastHeartbeatAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaIDSetParam) field() builder.Field { +func (p tickerWithPrismaLastHeartbeatAtSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaIDSetParam) getQuery() builder.Query { +func (p tickerWithPrismaLastHeartbeatAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaIDSetParam) stepRunModel() {} +func (p tickerWithPrismaLastHeartbeatAtSetParam) tickerModel() {} -func (p stepRunWithPrismaIDSetParam) idField() {} +func (p tickerWithPrismaLastHeartbeatAtSetParam) lastHeartbeatAtField() {} -type StepRunWithPrismaIDWhereParam interface { +type TickerWithPrismaLastHeartbeatAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - idField() + tickerModel() + lastHeartbeatAtField() } -type stepRunWithPrismaIDEqualsParam struct { +type tickerWithPrismaLastHeartbeatAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaIDEqualsParam) field() builder.Field { +func (p tickerWithPrismaLastHeartbeatAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaLastHeartbeatAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaIDEqualsParam) stepRunModel() {} +func (p tickerWithPrismaLastHeartbeatAtEqualsParam) tickerModel() {} -func (p stepRunWithPrismaIDEqualsParam) idField() {} +func (p tickerWithPrismaLastHeartbeatAtEqualsParam) lastHeartbeatAtField() {} -func (stepRunWithPrismaIDSetParam) settable() {} -func (stepRunWithPrismaIDEqualsParam) equals() {} +func (tickerWithPrismaLastHeartbeatAtSetParam) settable() {} +func (tickerWithPrismaLastHeartbeatAtEqualsParam) equals() {} -type stepRunWithPrismaIDEqualsUniqueParam struct { +type tickerWithPrismaLastHeartbeatAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaIDEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaIDEqualsUniqueParam) idField() {} +func (p tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) lastHeartbeatAtField() {} -func (stepRunWithPrismaIDEqualsUniqueParam) unique() {} -func (stepRunWithPrismaIDEqualsUniqueParam) equals() {} +func (tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) unique() {} +func (tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) equals() {} -type StepRunWithPrismaCreatedAtEqualsSetParam interface { +type TickerWithPrismaIsActiveEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - createdAtField() + tickerModel() + isActiveField() } -type StepRunWithPrismaCreatedAtSetParam interface { +type TickerWithPrismaIsActiveSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - createdAtField() + tickerModel() + isActiveField() } -type stepRunWithPrismaCreatedAtSetParam struct { +type tickerWithPrismaIsActiveSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCreatedAtSetParam) field() builder.Field { +func (p tickerWithPrismaIsActiveSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p tickerWithPrismaIsActiveSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCreatedAtSetParam) stepRunModel() {} +func (p tickerWithPrismaIsActiveSetParam) tickerModel() {} -func (p stepRunWithPrismaCreatedAtSetParam) createdAtField() {} +func (p tickerWithPrismaIsActiveSetParam) isActiveField() {} -type StepRunWithPrismaCreatedAtWhereParam interface { +type TickerWithPrismaIsActiveWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - createdAtField() + tickerModel() + isActiveField() } -type stepRunWithPrismaCreatedAtEqualsParam struct { +type tickerWithPrismaIsActiveEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p tickerWithPrismaIsActiveEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaIsActiveEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCreatedAtEqualsParam) stepRunModel() {} +func (p tickerWithPrismaIsActiveEqualsParam) tickerModel() {} -func (p stepRunWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p tickerWithPrismaIsActiveEqualsParam) isActiveField() {} -func (stepRunWithPrismaCreatedAtSetParam) settable() {} -func (stepRunWithPrismaCreatedAtEqualsParam) equals() {} +func (tickerWithPrismaIsActiveSetParam) settable() {} +func (tickerWithPrismaIsActiveEqualsParam) equals() {} -type stepRunWithPrismaCreatedAtEqualsUniqueParam struct { +type tickerWithPrismaIsActiveEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaIsActiveEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaIsActiveEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCreatedAtEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p tickerWithPrismaIsActiveEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaIsActiveEqualsUniqueParam) isActiveField() {} -func (stepRunWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (stepRunWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (tickerWithPrismaIsActiveEqualsUniqueParam) unique() {} +func (tickerWithPrismaIsActiveEqualsUniqueParam) equals() {} -type StepRunWithPrismaUpdatedAtEqualsSetParam interface { +type TickerWithPrismaJobRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - updatedAtField() + tickerModel() + jobRunsField() } -type StepRunWithPrismaUpdatedAtSetParam interface { +type TickerWithPrismaJobRunsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - updatedAtField() + tickerModel() + jobRunsField() } -type stepRunWithPrismaUpdatedAtSetParam struct { +type tickerWithPrismaJobRunsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p tickerWithPrismaJobRunsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p tickerWithPrismaJobRunsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaUpdatedAtSetParam) stepRunModel() {} +func (p tickerWithPrismaJobRunsSetParam) tickerModel() {} -func (p stepRunWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p tickerWithPrismaJobRunsSetParam) jobRunsField() {} -type StepRunWithPrismaUpdatedAtWhereParam interface { +type TickerWithPrismaJobRunsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - updatedAtField() + tickerModel() + jobRunsField() } -type stepRunWithPrismaUpdatedAtEqualsParam struct { +type tickerWithPrismaJobRunsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p tickerWithPrismaJobRunsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaJobRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaUpdatedAtEqualsParam) stepRunModel() {} +func (p tickerWithPrismaJobRunsEqualsParam) tickerModel() {} -func (p stepRunWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p tickerWithPrismaJobRunsEqualsParam) jobRunsField() {} -func (stepRunWithPrismaUpdatedAtSetParam) settable() {} -func (stepRunWithPrismaUpdatedAtEqualsParam) equals() {} +func (tickerWithPrismaJobRunsSetParam) settable() {} +func (tickerWithPrismaJobRunsEqualsParam) equals() {} -type stepRunWithPrismaUpdatedAtEqualsUniqueParam struct { +type tickerWithPrismaJobRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaJobRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaJobRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaUpdatedAtEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p tickerWithPrismaJobRunsEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaJobRunsEqualsUniqueParam) jobRunsField() {} -func (stepRunWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (stepRunWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (tickerWithPrismaJobRunsEqualsUniqueParam) unique() {} +func (tickerWithPrismaJobRunsEqualsUniqueParam) equals() {} -type StepRunWithPrismaDeletedAtEqualsSetParam interface { +type TickerWithPrismaStepRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - deletedAtField() + tickerModel() + stepRunsField() } -type StepRunWithPrismaDeletedAtSetParam interface { +type TickerWithPrismaStepRunsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - deletedAtField() + tickerModel() + stepRunsField() } -type stepRunWithPrismaDeletedAtSetParam struct { +type tickerWithPrismaStepRunsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaDeletedAtSetParam) field() builder.Field { +func (p tickerWithPrismaStepRunsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p tickerWithPrismaStepRunsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaDeletedAtSetParam) stepRunModel() {} +func (p tickerWithPrismaStepRunsSetParam) tickerModel() {} -func (p stepRunWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p tickerWithPrismaStepRunsSetParam) stepRunsField() {} -type StepRunWithPrismaDeletedAtWhereParam interface { +type TickerWithPrismaStepRunsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - deletedAtField() + tickerModel() + stepRunsField() } -type stepRunWithPrismaDeletedAtEqualsParam struct { +type tickerWithPrismaStepRunsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p tickerWithPrismaStepRunsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaStepRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaDeletedAtEqualsParam) stepRunModel() {} +func (p tickerWithPrismaStepRunsEqualsParam) tickerModel() {} -func (p stepRunWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p tickerWithPrismaStepRunsEqualsParam) stepRunsField() {} -func (stepRunWithPrismaDeletedAtSetParam) settable() {} -func (stepRunWithPrismaDeletedAtEqualsParam) equals() {} +func (tickerWithPrismaStepRunsSetParam) settable() {} +func (tickerWithPrismaStepRunsEqualsParam) equals() {} -type stepRunWithPrismaDeletedAtEqualsUniqueParam struct { +type tickerWithPrismaStepRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaDeletedAtEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p tickerWithPrismaStepRunsEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} -func (stepRunWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (stepRunWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (tickerWithPrismaStepRunsEqualsUniqueParam) unique() {} +func (tickerWithPrismaStepRunsEqualsUniqueParam) equals() {} -type StepRunWithPrismaTenantEqualsSetParam interface { +type TickerWithPrismaCronsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - tenantField() + tickerModel() + cronsField() } -type StepRunWithPrismaTenantSetParam interface { +type TickerWithPrismaCronsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - tenantField() + tickerModel() + cronsField() } -type stepRunWithPrismaTenantSetParam struct { +type tickerWithPrismaCronsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTenantSetParam) field() builder.Field { +func (p tickerWithPrismaCronsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTenantSetParam) getQuery() builder.Query { +func (p tickerWithPrismaCronsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTenantSetParam) stepRunModel() {} +func (p tickerWithPrismaCronsSetParam) tickerModel() {} -func (p stepRunWithPrismaTenantSetParam) tenantField() {} +func (p tickerWithPrismaCronsSetParam) cronsField() {} -type StepRunWithPrismaTenantWhereParam interface { +type TickerWithPrismaCronsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - tenantField() + tickerModel() + cronsField() } -type stepRunWithPrismaTenantEqualsParam struct { +type tickerWithPrismaCronsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTenantEqualsParam) field() builder.Field { +func (p tickerWithPrismaCronsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaCronsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTenantEqualsParam) stepRunModel() {} +func (p tickerWithPrismaCronsEqualsParam) tickerModel() {} -func (p stepRunWithPrismaTenantEqualsParam) tenantField() {} +func (p tickerWithPrismaCronsEqualsParam) cronsField() {} -func (stepRunWithPrismaTenantSetParam) settable() {} -func (stepRunWithPrismaTenantEqualsParam) equals() {} +func (tickerWithPrismaCronsSetParam) settable() {} +func (tickerWithPrismaCronsEqualsParam) equals() {} -type stepRunWithPrismaTenantEqualsUniqueParam struct { +type tickerWithPrismaCronsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaCronsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaCronsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTenantEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p tickerWithPrismaCronsEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaCronsEqualsUniqueParam) cronsField() {} -func (stepRunWithPrismaTenantEqualsUniqueParam) unique() {} -func (stepRunWithPrismaTenantEqualsUniqueParam) equals() {} +func (tickerWithPrismaCronsEqualsUniqueParam) unique() {} +func (tickerWithPrismaCronsEqualsUniqueParam) equals() {} -type StepRunWithPrismaTenantIDEqualsSetParam interface { +type TickerWithPrismaScheduledEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - tenantIDField() + tickerModel() + scheduledField() } -type StepRunWithPrismaTenantIDSetParam interface { +type TickerWithPrismaScheduledSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - tenantIDField() + tickerModel() + scheduledField() } -type stepRunWithPrismaTenantIDSetParam struct { +type tickerWithPrismaScheduledSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTenantIDSetParam) field() builder.Field { +func (p tickerWithPrismaScheduledSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p tickerWithPrismaScheduledSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTenantIDSetParam) stepRunModel() {} +func (p tickerWithPrismaScheduledSetParam) tickerModel() {} -func (p stepRunWithPrismaTenantIDSetParam) tenantIDField() {} +func (p tickerWithPrismaScheduledSetParam) scheduledField() {} -type StepRunWithPrismaTenantIDWhereParam interface { +type TickerWithPrismaScheduledWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - tenantIDField() + tickerModel() + scheduledField() } -type stepRunWithPrismaTenantIDEqualsParam struct { +type tickerWithPrismaScheduledEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p tickerWithPrismaScheduledEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaScheduledEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTenantIDEqualsParam) stepRunModel() {} +func (p tickerWithPrismaScheduledEqualsParam) tickerModel() {} -func (p stepRunWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p tickerWithPrismaScheduledEqualsParam) scheduledField() {} -func (stepRunWithPrismaTenantIDSetParam) settable() {} -func (stepRunWithPrismaTenantIDEqualsParam) equals() {} +func (tickerWithPrismaScheduledSetParam) settable() {} +func (tickerWithPrismaScheduledEqualsParam) equals() {} -type stepRunWithPrismaTenantIDEqualsUniqueParam struct { +type tickerWithPrismaScheduledEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaScheduledEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaScheduledEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTenantIDEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p tickerWithPrismaScheduledEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaScheduledEqualsUniqueParam) scheduledField() {} -func (stepRunWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (stepRunWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (tickerWithPrismaScheduledEqualsUniqueParam) unique() {} +func (tickerWithPrismaScheduledEqualsUniqueParam) equals() {} -type StepRunWithPrismaJobRunEqualsSetParam interface { +type TickerWithPrismaGroupKeyRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - jobRunField() + tickerModel() + groupKeyRunsField() } -type StepRunWithPrismaJobRunSetParam interface { +type TickerWithPrismaGroupKeyRunsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - jobRunField() + tickerModel() + groupKeyRunsField() } -type stepRunWithPrismaJobRunSetParam struct { +type tickerWithPrismaGroupKeyRunsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaJobRunSetParam) field() builder.Field { +func (p tickerWithPrismaGroupKeyRunsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaJobRunSetParam) getQuery() builder.Query { +func (p tickerWithPrismaGroupKeyRunsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaJobRunSetParam) stepRunModel() {} +func (p tickerWithPrismaGroupKeyRunsSetParam) tickerModel() {} -func (p stepRunWithPrismaJobRunSetParam) jobRunField() {} +func (p tickerWithPrismaGroupKeyRunsSetParam) groupKeyRunsField() {} -type StepRunWithPrismaJobRunWhereParam interface { +type TickerWithPrismaGroupKeyRunsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - jobRunField() + tickerModel() + groupKeyRunsField() } -type stepRunWithPrismaJobRunEqualsParam struct { +type tickerWithPrismaGroupKeyRunsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaJobRunEqualsParam) field() builder.Field { +func (p tickerWithPrismaGroupKeyRunsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaJobRunEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaGroupKeyRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaJobRunEqualsParam) stepRunModel() {} +func (p tickerWithPrismaGroupKeyRunsEqualsParam) tickerModel() {} -func (p stepRunWithPrismaJobRunEqualsParam) jobRunField() {} +func (p tickerWithPrismaGroupKeyRunsEqualsParam) groupKeyRunsField() {} -func (stepRunWithPrismaJobRunSetParam) settable() {} -func (stepRunWithPrismaJobRunEqualsParam) equals() {} +func (tickerWithPrismaGroupKeyRunsSetParam) settable() {} +func (tickerWithPrismaGroupKeyRunsEqualsParam) equals() {} -type stepRunWithPrismaJobRunEqualsUniqueParam struct { +type tickerWithPrismaGroupKeyRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaJobRunEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaGroupKeyRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaJobRunEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaGroupKeyRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaJobRunEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaJobRunEqualsUniqueParam) jobRunField() {} +func (p tickerWithPrismaGroupKeyRunsEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaGroupKeyRunsEqualsUniqueParam) groupKeyRunsField() {} -func (stepRunWithPrismaJobRunEqualsUniqueParam) unique() {} -func (stepRunWithPrismaJobRunEqualsUniqueParam) equals() {} +func (tickerWithPrismaGroupKeyRunsEqualsUniqueParam) unique() {} +func (tickerWithPrismaGroupKeyRunsEqualsUniqueParam) equals() {} -type StepRunWithPrismaJobRunIDEqualsSetParam interface { +type TickerWithPrismaTenantAlertsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - jobRunIDField() + tickerModel() + tenantAlertsField() } -type StepRunWithPrismaJobRunIDSetParam interface { +type TickerWithPrismaTenantAlertsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - jobRunIDField() + tickerModel() + tenantAlertsField() } -type stepRunWithPrismaJobRunIDSetParam struct { +type tickerWithPrismaTenantAlertsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaJobRunIDSetParam) field() builder.Field { +func (p tickerWithPrismaTenantAlertsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaJobRunIDSetParam) getQuery() builder.Query { +func (p tickerWithPrismaTenantAlertsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaJobRunIDSetParam) stepRunModel() {} +func (p tickerWithPrismaTenantAlertsSetParam) tickerModel() {} -func (p stepRunWithPrismaJobRunIDSetParam) jobRunIDField() {} +func (p tickerWithPrismaTenantAlertsSetParam) tenantAlertsField() {} -type StepRunWithPrismaJobRunIDWhereParam interface { +type TickerWithPrismaTenantAlertsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - jobRunIDField() + tickerModel() + tenantAlertsField() } -type stepRunWithPrismaJobRunIDEqualsParam struct { +type tickerWithPrismaTenantAlertsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaJobRunIDEqualsParam) field() builder.Field { +func (p tickerWithPrismaTenantAlertsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaJobRunIDEqualsParam) getQuery() builder.Query { +func (p tickerWithPrismaTenantAlertsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaJobRunIDEqualsParam) stepRunModel() {} +func (p tickerWithPrismaTenantAlertsEqualsParam) tickerModel() {} -func (p stepRunWithPrismaJobRunIDEqualsParam) jobRunIDField() {} +func (p tickerWithPrismaTenantAlertsEqualsParam) tenantAlertsField() {} -func (stepRunWithPrismaJobRunIDSetParam) settable() {} -func (stepRunWithPrismaJobRunIDEqualsParam) equals() {} +func (tickerWithPrismaTenantAlertsSetParam) settable() {} +func (tickerWithPrismaTenantAlertsEqualsParam) equals() {} -type stepRunWithPrismaJobRunIDEqualsUniqueParam struct { +type tickerWithPrismaTenantAlertsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaJobRunIDEqualsUniqueParam) field() builder.Field { +func (p tickerWithPrismaTenantAlertsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaJobRunIDEqualsUniqueParam) getQuery() builder.Query { +func (p tickerWithPrismaTenantAlertsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaJobRunIDEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaJobRunIDEqualsUniqueParam) jobRunIDField() {} +func (p tickerWithPrismaTenantAlertsEqualsUniqueParam) tickerModel() {} +func (p tickerWithPrismaTenantAlertsEqualsUniqueParam) tenantAlertsField() {} -func (stepRunWithPrismaJobRunIDEqualsUniqueParam) unique() {} -func (stepRunWithPrismaJobRunIDEqualsUniqueParam) equals() {} +func (tickerWithPrismaTenantAlertsEqualsUniqueParam) unique() {} +func (tickerWithPrismaTenantAlertsEqualsUniqueParam) equals() {} -type StepRunWithPrismaStepEqualsSetParam interface { - field() builder.Field +type workerLabelActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workerLabelOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "workerId"}, + {Name: "key"}, + {Name: "strValue"}, + {Name: "intValue"}, +} + +type WorkerLabelRelationWith interface { getQuery() builder.Query - equals() - stepRunModel() - stepField() + with() + workerLabelRelation() } -type StepRunWithPrismaStepSetParam interface { +type WorkerLabelWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - stepField() + workerLabelModel() } -type stepRunWithPrismaStepSetParam struct { +type workerLabelDefaultParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStepSetParam) field() builder.Field { +func (p workerLabelDefaultParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStepSetParam) getQuery() builder.Query { +func (p workerLabelDefaultParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStepSetParam) stepRunModel() {} - -func (p stepRunWithPrismaStepSetParam) stepField() {} +func (p workerLabelDefaultParam) workerLabelModel() {} -type StepRunWithPrismaStepWhereParam interface { +type WorkerLabelOrderByParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - stepField() + workerLabelModel() } -type stepRunWithPrismaStepEqualsParam struct { +type workerLabelOrderByParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStepEqualsParam) field() builder.Field { +func (p workerLabelOrderByParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStepEqualsParam) getQuery() builder.Query { +func (p workerLabelOrderByParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStepEqualsParam) stepRunModel() {} - -func (p stepRunWithPrismaStepEqualsParam) stepField() {} +func (p workerLabelOrderByParam) workerLabelModel() {} -func (stepRunWithPrismaStepSetParam) settable() {} -func (stepRunWithPrismaStepEqualsParam) equals() {} +type WorkerLabelCursorParam interface { + field() builder.Field + getQuery() builder.Query + workerLabelModel() + isCursor() +} -type stepRunWithPrismaStepEqualsUniqueParam struct { +type workerLabelCursorParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStepEqualsUniqueParam) field() builder.Field { +func (p workerLabelCursorParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStepEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelCursorParam) isCursor() {} + +func (p workerLabelCursorParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStepEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaStepEqualsUniqueParam) stepField() {} - -func (stepRunWithPrismaStepEqualsUniqueParam) unique() {} -func (stepRunWithPrismaStepEqualsUniqueParam) equals() {} - -type StepRunWithPrismaStepIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - stepRunModel() - stepIDField() -} +func (p workerLabelCursorParam) workerLabelModel() {} -type StepRunWithPrismaStepIDSetParam interface { +type WorkerLabelParamUnique interface { field() builder.Field getQuery() builder.Query - stepRunModel() - stepIDField() + unique() + workerLabelModel() } -type stepRunWithPrismaStepIDSetParam struct { +type workerLabelParamUnique struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStepIDSetParam) field() builder.Field { +func (p workerLabelParamUnique) workerLabelModel() {} + +func (workerLabelParamUnique) unique() {} + +func (p workerLabelParamUnique) field() builder.Field { return p.data } -func (p stepRunWithPrismaStepIDSetParam) getQuery() builder.Query { +func (p workerLabelParamUnique) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStepIDSetParam) stepRunModel() {} - -func (p stepRunWithPrismaStepIDSetParam) stepIDField() {} - -type StepRunWithPrismaStepIDWhereParam interface { +type WorkerLabelEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - stepIDField() + equals() + workerLabelModel() } -type stepRunWithPrismaStepIDEqualsParam struct { +type workerLabelEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStepIDEqualsParam) field() builder.Field { +func (p workerLabelEqualsParam) workerLabelModel() {} + +func (workerLabelEqualsParam) equals() {} + +func (p workerLabelEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStepIDEqualsParam) getQuery() builder.Query { +func (p workerLabelEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStepIDEqualsParam) stepRunModel() {} - -func (p stepRunWithPrismaStepIDEqualsParam) stepIDField() {} - -func (stepRunWithPrismaStepIDSetParam) settable() {} -func (stepRunWithPrismaStepIDEqualsParam) equals() {} +type WorkerLabelEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workerLabelModel() +} -type stepRunWithPrismaStepIDEqualsUniqueParam struct { +type workerLabelEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStepIDEqualsUniqueParam) field() builder.Field { +func (p workerLabelEqualsUniqueParam) workerLabelModel() {} + +func (workerLabelEqualsUniqueParam) unique() {} +func (workerLabelEqualsUniqueParam) equals() {} + +func (p workerLabelEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStepIDEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStepIDEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaStepIDEqualsUniqueParam) stepIDField() {} +type WorkerLabelSetParam interface { + field() builder.Field + settable() + workerLabelModel() +} -func (stepRunWithPrismaStepIDEqualsUniqueParam) unique() {} -func (stepRunWithPrismaStepIDEqualsUniqueParam) equals() {} +type workerLabelSetParam struct { + data builder.Field +} -type StepRunWithPrismaChildrenEqualsSetParam interface { +func (workerLabelSetParam) settable() {} + +func (p workerLabelSetParam) field() builder.Field { + return p.data +} + +func (p workerLabelSetParam) workerLabelModel() {} + +type WorkerLabelWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - childrenField() + workerLabelModel() + idField() } -type StepRunWithPrismaChildrenSetParam interface { +type WorkerLabelWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - childrenField() + workerLabelModel() + idField() } -type stepRunWithPrismaChildrenSetParam struct { +type workerLabelWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildrenSetParam) field() builder.Field { +func (p workerLabelWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildrenSetParam) getQuery() builder.Query { +func (p workerLabelWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildrenSetParam) stepRunModel() {} +func (p workerLabelWithPrismaIDSetParam) workerLabelModel() {} -func (p stepRunWithPrismaChildrenSetParam) childrenField() {} +func (p workerLabelWithPrismaIDSetParam) idField() {} -type StepRunWithPrismaChildrenWhereParam interface { +type WorkerLabelWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - childrenField() + workerLabelModel() + idField() } -type stepRunWithPrismaChildrenEqualsParam struct { +type workerLabelWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildrenEqualsParam) field() builder.Field { +func (p workerLabelWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildrenEqualsParam) getQuery() builder.Query { +func (p workerLabelWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildrenEqualsParam) stepRunModel() {} +func (p workerLabelWithPrismaIDEqualsParam) workerLabelModel() {} -func (p stepRunWithPrismaChildrenEqualsParam) childrenField() {} +func (p workerLabelWithPrismaIDEqualsParam) idField() {} -func (stepRunWithPrismaChildrenSetParam) settable() {} -func (stepRunWithPrismaChildrenEqualsParam) equals() {} +func (workerLabelWithPrismaIDSetParam) settable() {} +func (workerLabelWithPrismaIDEqualsParam) equals() {} -type stepRunWithPrismaChildrenEqualsUniqueParam struct { +type workerLabelWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildrenEqualsUniqueParam) field() builder.Field { +func (p workerLabelWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildrenEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildrenEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaChildrenEqualsUniqueParam) childrenField() {} +func (p workerLabelWithPrismaIDEqualsUniqueParam) workerLabelModel() {} +func (p workerLabelWithPrismaIDEqualsUniqueParam) idField() {} -func (stepRunWithPrismaChildrenEqualsUniqueParam) unique() {} -func (stepRunWithPrismaChildrenEqualsUniqueParam) equals() {} +func (workerLabelWithPrismaIDEqualsUniqueParam) unique() {} +func (workerLabelWithPrismaIDEqualsUniqueParam) equals() {} -type StepRunWithPrismaParentsEqualsSetParam interface { +type WorkerLabelWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - parentsField() + workerLabelModel() + createdAtField() } -type StepRunWithPrismaParentsSetParam interface { +type WorkerLabelWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - parentsField() + workerLabelModel() + createdAtField() } -type stepRunWithPrismaParentsSetParam struct { +type workerLabelWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaParentsSetParam) field() builder.Field { +func (p workerLabelWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaParentsSetParam) getQuery() builder.Query { +func (p workerLabelWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaParentsSetParam) stepRunModel() {} +func (p workerLabelWithPrismaCreatedAtSetParam) workerLabelModel() {} -func (p stepRunWithPrismaParentsSetParam) parentsField() {} +func (p workerLabelWithPrismaCreatedAtSetParam) createdAtField() {} -type StepRunWithPrismaParentsWhereParam interface { +type WorkerLabelWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - parentsField() + workerLabelModel() + createdAtField() } -type stepRunWithPrismaParentsEqualsParam struct { +type workerLabelWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaParentsEqualsParam) field() builder.Field { +func (p workerLabelWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaParentsEqualsParam) getQuery() builder.Query { +func (p workerLabelWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaParentsEqualsParam) stepRunModel() {} +func (p workerLabelWithPrismaCreatedAtEqualsParam) workerLabelModel() {} -func (p stepRunWithPrismaParentsEqualsParam) parentsField() {} +func (p workerLabelWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (stepRunWithPrismaParentsSetParam) settable() {} -func (stepRunWithPrismaParentsEqualsParam) equals() {} +func (workerLabelWithPrismaCreatedAtSetParam) settable() {} +func (workerLabelWithPrismaCreatedAtEqualsParam) equals() {} -type stepRunWithPrismaParentsEqualsUniqueParam struct { +type workerLabelWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaParentsEqualsUniqueParam) field() builder.Field { +func (p workerLabelWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaParentsEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaParentsEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaParentsEqualsUniqueParam) parentsField() {} +func (p workerLabelWithPrismaCreatedAtEqualsUniqueParam) workerLabelModel() {} +func (p workerLabelWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (stepRunWithPrismaParentsEqualsUniqueParam) unique() {} -func (stepRunWithPrismaParentsEqualsUniqueParam) equals() {} +func (workerLabelWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workerLabelWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type StepRunWithPrismaOrderEqualsSetParam interface { +type WorkerLabelWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - orderField() + workerLabelModel() + updatedAtField() } -type StepRunWithPrismaOrderSetParam interface { +type WorkerLabelWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - orderField() + workerLabelModel() + updatedAtField() } -type stepRunWithPrismaOrderSetParam struct { +type workerLabelWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaOrderSetParam) field() builder.Field { +func (p workerLabelWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaOrderSetParam) getQuery() builder.Query { +func (p workerLabelWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaOrderSetParam) stepRunModel() {} +func (p workerLabelWithPrismaUpdatedAtSetParam) workerLabelModel() {} -func (p stepRunWithPrismaOrderSetParam) orderField() {} +func (p workerLabelWithPrismaUpdatedAtSetParam) updatedAtField() {} -type StepRunWithPrismaOrderWhereParam interface { +type WorkerLabelWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - orderField() + workerLabelModel() + updatedAtField() } -type stepRunWithPrismaOrderEqualsParam struct { +type workerLabelWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaOrderEqualsParam) field() builder.Field { +func (p workerLabelWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaOrderEqualsParam) getQuery() builder.Query { +func (p workerLabelWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaOrderEqualsParam) stepRunModel() {} +func (p workerLabelWithPrismaUpdatedAtEqualsParam) workerLabelModel() {} -func (p stepRunWithPrismaOrderEqualsParam) orderField() {} +func (p workerLabelWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (stepRunWithPrismaOrderSetParam) settable() {} -func (stepRunWithPrismaOrderEqualsParam) equals() {} +func (workerLabelWithPrismaUpdatedAtSetParam) settable() {} +func (workerLabelWithPrismaUpdatedAtEqualsParam) equals() {} -type stepRunWithPrismaOrderEqualsUniqueParam struct { +type workerLabelWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaOrderEqualsUniqueParam) field() builder.Field { +func (p workerLabelWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaOrderEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaOrderEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaOrderEqualsUniqueParam) orderField() {} +func (p workerLabelWithPrismaUpdatedAtEqualsUniqueParam) workerLabelModel() {} +func (p workerLabelWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (stepRunWithPrismaOrderEqualsUniqueParam) unique() {} -func (stepRunWithPrismaOrderEqualsUniqueParam) equals() {} +func (workerLabelWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workerLabelWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type StepRunWithPrismaWorkerEqualsSetParam interface { +type WorkerLabelWithPrismaWorkerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() + workerLabelModel() workerField() } -type StepRunWithPrismaWorkerSetParam interface { +type WorkerLabelWithPrismaWorkerSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() + workerLabelModel() workerField() } -type stepRunWithPrismaWorkerSetParam struct { +type workerLabelWithPrismaWorkerSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaWorkerSetParam) field() builder.Field { +func (p workerLabelWithPrismaWorkerSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaWorkerSetParam) getQuery() builder.Query { +func (p workerLabelWithPrismaWorkerSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaWorkerSetParam) stepRunModel() {} +func (p workerLabelWithPrismaWorkerSetParam) workerLabelModel() {} -func (p stepRunWithPrismaWorkerSetParam) workerField() {} +func (p workerLabelWithPrismaWorkerSetParam) workerField() {} -type StepRunWithPrismaWorkerWhereParam interface { +type WorkerLabelWithPrismaWorkerWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() + workerLabelModel() workerField() } -type stepRunWithPrismaWorkerEqualsParam struct { +type workerLabelWithPrismaWorkerEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaWorkerEqualsParam) field() builder.Field { +func (p workerLabelWithPrismaWorkerEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaWorkerEqualsParam) getQuery() builder.Query { +func (p workerLabelWithPrismaWorkerEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaWorkerEqualsParam) stepRunModel() {} +func (p workerLabelWithPrismaWorkerEqualsParam) workerLabelModel() {} -func (p stepRunWithPrismaWorkerEqualsParam) workerField() {} +func (p workerLabelWithPrismaWorkerEqualsParam) workerField() {} -func (stepRunWithPrismaWorkerSetParam) settable() {} -func (stepRunWithPrismaWorkerEqualsParam) equals() {} +func (workerLabelWithPrismaWorkerSetParam) settable() {} +func (workerLabelWithPrismaWorkerEqualsParam) equals() {} -type stepRunWithPrismaWorkerEqualsUniqueParam struct { +type workerLabelWithPrismaWorkerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaWorkerEqualsUniqueParam) field() builder.Field { +func (p workerLabelWithPrismaWorkerEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaWorkerEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaWorkerEqualsUniqueParam) workerField() {} +func (p workerLabelWithPrismaWorkerEqualsUniqueParam) workerLabelModel() {} +func (p workerLabelWithPrismaWorkerEqualsUniqueParam) workerField() {} -func (stepRunWithPrismaWorkerEqualsUniqueParam) unique() {} -func (stepRunWithPrismaWorkerEqualsUniqueParam) equals() {} +func (workerLabelWithPrismaWorkerEqualsUniqueParam) unique() {} +func (workerLabelWithPrismaWorkerEqualsUniqueParam) equals() {} -type StepRunWithPrismaWorkerIDEqualsSetParam interface { +type WorkerLabelWithPrismaWorkerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() + workerLabelModel() workerIDField() } -type StepRunWithPrismaWorkerIDSetParam interface { +type WorkerLabelWithPrismaWorkerIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() + workerLabelModel() workerIDField() } -type stepRunWithPrismaWorkerIDSetParam struct { +type workerLabelWithPrismaWorkerIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaWorkerIDSetParam) field() builder.Field { +func (p workerLabelWithPrismaWorkerIDSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaWorkerIDSetParam) getQuery() builder.Query { +func (p workerLabelWithPrismaWorkerIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaWorkerIDSetParam) stepRunModel() {} +func (p workerLabelWithPrismaWorkerIDSetParam) workerLabelModel() {} -func (p stepRunWithPrismaWorkerIDSetParam) workerIDField() {} +func (p workerLabelWithPrismaWorkerIDSetParam) workerIDField() {} -type StepRunWithPrismaWorkerIDWhereParam interface { +type WorkerLabelWithPrismaWorkerIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() + workerLabelModel() workerIDField() } -type stepRunWithPrismaWorkerIDEqualsParam struct { +type workerLabelWithPrismaWorkerIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaWorkerIDEqualsParam) field() builder.Field { +func (p workerLabelWithPrismaWorkerIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { +func (p workerLabelWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaWorkerIDEqualsParam) stepRunModel() {} +func (p workerLabelWithPrismaWorkerIDEqualsParam) workerLabelModel() {} -func (p stepRunWithPrismaWorkerIDEqualsParam) workerIDField() {} +func (p workerLabelWithPrismaWorkerIDEqualsParam) workerIDField() {} -func (stepRunWithPrismaWorkerIDSetParam) settable() {} -func (stepRunWithPrismaWorkerIDEqualsParam) equals() {} +func (workerLabelWithPrismaWorkerIDSetParam) settable() {} +func (workerLabelWithPrismaWorkerIDEqualsParam) equals() {} -type stepRunWithPrismaWorkerIDEqualsUniqueParam struct { +type workerLabelWithPrismaWorkerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { +func (p workerLabelWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaWorkerIDEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} +func (p workerLabelWithPrismaWorkerIDEqualsUniqueParam) workerLabelModel() {} +func (p workerLabelWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} -func (stepRunWithPrismaWorkerIDEqualsUniqueParam) unique() {} -func (stepRunWithPrismaWorkerIDEqualsUniqueParam) equals() {} +func (workerLabelWithPrismaWorkerIDEqualsUniqueParam) unique() {} +func (workerLabelWithPrismaWorkerIDEqualsUniqueParam) equals() {} -type StepRunWithPrismaTickerEqualsSetParam interface { +type WorkerLabelWithPrismaKeyEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - tickerField() + workerLabelModel() + keyField() } -type StepRunWithPrismaTickerSetParam interface { +type WorkerLabelWithPrismaKeySetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - tickerField() + workerLabelModel() + keyField() } -type stepRunWithPrismaTickerSetParam struct { +type workerLabelWithPrismaKeySetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTickerSetParam) field() builder.Field { +func (p workerLabelWithPrismaKeySetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTickerSetParam) getQuery() builder.Query { +func (p workerLabelWithPrismaKeySetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTickerSetParam) stepRunModel() {} +func (p workerLabelWithPrismaKeySetParam) workerLabelModel() {} -func (p stepRunWithPrismaTickerSetParam) tickerField() {} +func (p workerLabelWithPrismaKeySetParam) keyField() {} -type StepRunWithPrismaTickerWhereParam interface { +type WorkerLabelWithPrismaKeyWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - tickerField() + workerLabelModel() + keyField() } -type stepRunWithPrismaTickerEqualsParam struct { +type workerLabelWithPrismaKeyEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTickerEqualsParam) field() builder.Field { +func (p workerLabelWithPrismaKeyEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTickerEqualsParam) getQuery() builder.Query { +func (p workerLabelWithPrismaKeyEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTickerEqualsParam) stepRunModel() {} +func (p workerLabelWithPrismaKeyEqualsParam) workerLabelModel() {} -func (p stepRunWithPrismaTickerEqualsParam) tickerField() {} +func (p workerLabelWithPrismaKeyEqualsParam) keyField() {} -func (stepRunWithPrismaTickerSetParam) settable() {} -func (stepRunWithPrismaTickerEqualsParam) equals() {} +func (workerLabelWithPrismaKeySetParam) settable() {} +func (workerLabelWithPrismaKeyEqualsParam) equals() {} -type stepRunWithPrismaTickerEqualsUniqueParam struct { +type workerLabelWithPrismaKeyEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTickerEqualsUniqueParam) field() builder.Field { +func (p workerLabelWithPrismaKeyEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTickerEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelWithPrismaKeyEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTickerEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaTickerEqualsUniqueParam) tickerField() {} +func (p workerLabelWithPrismaKeyEqualsUniqueParam) workerLabelModel() {} +func (p workerLabelWithPrismaKeyEqualsUniqueParam) keyField() {} -func (stepRunWithPrismaTickerEqualsUniqueParam) unique() {} -func (stepRunWithPrismaTickerEqualsUniqueParam) equals() {} +func (workerLabelWithPrismaKeyEqualsUniqueParam) unique() {} +func (workerLabelWithPrismaKeyEqualsUniqueParam) equals() {} -type StepRunWithPrismaTickerIDEqualsSetParam interface { +type WorkerLabelWithPrismaStrValueEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - tickerIDField() + workerLabelModel() + strValueField() } -type StepRunWithPrismaTickerIDSetParam interface { +type WorkerLabelWithPrismaStrValueSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - tickerIDField() + workerLabelModel() + strValueField() } -type stepRunWithPrismaTickerIDSetParam struct { +type workerLabelWithPrismaStrValueSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTickerIDSetParam) field() builder.Field { +func (p workerLabelWithPrismaStrValueSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTickerIDSetParam) getQuery() builder.Query { +func (p workerLabelWithPrismaStrValueSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTickerIDSetParam) stepRunModel() {} +func (p workerLabelWithPrismaStrValueSetParam) workerLabelModel() {} -func (p stepRunWithPrismaTickerIDSetParam) tickerIDField() {} +func (p workerLabelWithPrismaStrValueSetParam) strValueField() {} -type StepRunWithPrismaTickerIDWhereParam interface { +type WorkerLabelWithPrismaStrValueWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - tickerIDField() + workerLabelModel() + strValueField() } -type stepRunWithPrismaTickerIDEqualsParam struct { +type workerLabelWithPrismaStrValueEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTickerIDEqualsParam) field() builder.Field { +func (p workerLabelWithPrismaStrValueEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTickerIDEqualsParam) getQuery() builder.Query { +func (p workerLabelWithPrismaStrValueEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTickerIDEqualsParam) stepRunModel() {} +func (p workerLabelWithPrismaStrValueEqualsParam) workerLabelModel() {} -func (p stepRunWithPrismaTickerIDEqualsParam) tickerIDField() {} +func (p workerLabelWithPrismaStrValueEqualsParam) strValueField() {} -func (stepRunWithPrismaTickerIDSetParam) settable() {} -func (stepRunWithPrismaTickerIDEqualsParam) equals() {} +func (workerLabelWithPrismaStrValueSetParam) settable() {} +func (workerLabelWithPrismaStrValueEqualsParam) equals() {} -type stepRunWithPrismaTickerIDEqualsUniqueParam struct { +type workerLabelWithPrismaStrValueEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTickerIDEqualsUniqueParam) field() builder.Field { +func (p workerLabelWithPrismaStrValueEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTickerIDEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelWithPrismaStrValueEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTickerIDEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaTickerIDEqualsUniqueParam) tickerIDField() {} +func (p workerLabelWithPrismaStrValueEqualsUniqueParam) workerLabelModel() {} +func (p workerLabelWithPrismaStrValueEqualsUniqueParam) strValueField() {} -func (stepRunWithPrismaTickerIDEqualsUniqueParam) unique() {} -func (stepRunWithPrismaTickerIDEqualsUniqueParam) equals() {} +func (workerLabelWithPrismaStrValueEqualsUniqueParam) unique() {} +func (workerLabelWithPrismaStrValueEqualsUniqueParam) equals() {} -type StepRunWithPrismaStatusEqualsSetParam interface { +type WorkerLabelWithPrismaIntValueEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - statusField() + workerLabelModel() + intValueField() } -type StepRunWithPrismaStatusSetParam interface { +type WorkerLabelWithPrismaIntValueSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - statusField() + workerLabelModel() + intValueField() } -type stepRunWithPrismaStatusSetParam struct { +type workerLabelWithPrismaIntValueSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStatusSetParam) field() builder.Field { +func (p workerLabelWithPrismaIntValueSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStatusSetParam) getQuery() builder.Query { +func (p workerLabelWithPrismaIntValueSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStatusSetParam) stepRunModel() {} +func (p workerLabelWithPrismaIntValueSetParam) workerLabelModel() {} -func (p stepRunWithPrismaStatusSetParam) statusField() {} +func (p workerLabelWithPrismaIntValueSetParam) intValueField() {} -type StepRunWithPrismaStatusWhereParam interface { +type WorkerLabelWithPrismaIntValueWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - statusField() + workerLabelModel() + intValueField() } -type stepRunWithPrismaStatusEqualsParam struct { +type workerLabelWithPrismaIntValueEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStatusEqualsParam) field() builder.Field { +func (p workerLabelWithPrismaIntValueEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStatusEqualsParam) getQuery() builder.Query { +func (p workerLabelWithPrismaIntValueEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStatusEqualsParam) stepRunModel() {} +func (p workerLabelWithPrismaIntValueEqualsParam) workerLabelModel() {} -func (p stepRunWithPrismaStatusEqualsParam) statusField() {} +func (p workerLabelWithPrismaIntValueEqualsParam) intValueField() {} -func (stepRunWithPrismaStatusSetParam) settable() {} -func (stepRunWithPrismaStatusEqualsParam) equals() {} +func (workerLabelWithPrismaIntValueSetParam) settable() {} +func (workerLabelWithPrismaIntValueEqualsParam) equals() {} -type stepRunWithPrismaStatusEqualsUniqueParam struct { +type workerLabelWithPrismaIntValueEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStatusEqualsUniqueParam) field() builder.Field { +func (p workerLabelWithPrismaIntValueEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStatusEqualsUniqueParam) getQuery() builder.Query { +func (p workerLabelWithPrismaIntValueEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStatusEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaStatusEqualsUniqueParam) statusField() {} +func (p workerLabelWithPrismaIntValueEqualsUniqueParam) workerLabelModel() {} +func (p workerLabelWithPrismaIntValueEqualsUniqueParam) intValueField() {} -func (stepRunWithPrismaStatusEqualsUniqueParam) unique() {} -func (stepRunWithPrismaStatusEqualsUniqueParam) equals() {} +func (workerLabelWithPrismaIntValueEqualsUniqueParam) unique() {} +func (workerLabelWithPrismaIntValueEqualsUniqueParam) equals() {} -type StepRunWithPrismaInputEqualsSetParam interface { - field() builder.Field +type workerActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workerOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "lastHeartbeatAt"}, + {Name: "isPaused"}, + {Name: "isActive"}, + {Name: "lastListenerEstablished"}, + {Name: "name"}, + {Name: "dispatcherId"}, + {Name: "maxRuns"}, +} + +type WorkerRelationWith interface { getQuery() builder.Query - equals() - stepRunModel() - inputField() + with() + workerRelation() } -type StepRunWithPrismaInputSetParam interface { +type WorkerWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - inputField() + workerModel() } -type stepRunWithPrismaInputSetParam struct { +type workerDefaultParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaInputSetParam) field() builder.Field { +func (p workerDefaultParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaInputSetParam) getQuery() builder.Query { +func (p workerDefaultParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaInputSetParam) stepRunModel() {} - -func (p stepRunWithPrismaInputSetParam) inputField() {} +func (p workerDefaultParam) workerModel() {} -type StepRunWithPrismaInputWhereParam interface { +type WorkerOrderByParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - inputField() + workerModel() } -type stepRunWithPrismaInputEqualsParam struct { +type workerOrderByParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaInputEqualsParam) field() builder.Field { +func (p workerOrderByParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaInputEqualsParam) getQuery() builder.Query { +func (p workerOrderByParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaInputEqualsParam) stepRunModel() {} - -func (p stepRunWithPrismaInputEqualsParam) inputField() {} +func (p workerOrderByParam) workerModel() {} -func (stepRunWithPrismaInputSetParam) settable() {} -func (stepRunWithPrismaInputEqualsParam) equals() {} +type WorkerCursorParam interface { + field() builder.Field + getQuery() builder.Query + workerModel() + isCursor() +} -type stepRunWithPrismaInputEqualsUniqueParam struct { +type workerCursorParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaInputEqualsUniqueParam) field() builder.Field { +func (p workerCursorParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { +func (p workerCursorParam) isCursor() {} + +func (p workerCursorParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaInputEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaInputEqualsUniqueParam) inputField() {} - -func (stepRunWithPrismaInputEqualsUniqueParam) unique() {} -func (stepRunWithPrismaInputEqualsUniqueParam) equals() {} - -type StepRunWithPrismaOutputEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - stepRunModel() - outputField() -} +func (p workerCursorParam) workerModel() {} -type StepRunWithPrismaOutputSetParam interface { +type WorkerParamUnique interface { field() builder.Field getQuery() builder.Query - stepRunModel() - outputField() + unique() + workerModel() } -type stepRunWithPrismaOutputSetParam struct { +type workerParamUnique struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaOutputSetParam) field() builder.Field { +func (p workerParamUnique) workerModel() {} + +func (workerParamUnique) unique() {} + +func (p workerParamUnique) field() builder.Field { return p.data } -func (p stepRunWithPrismaOutputSetParam) getQuery() builder.Query { +func (p workerParamUnique) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaOutputSetParam) stepRunModel() {} - -func (p stepRunWithPrismaOutputSetParam) outputField() {} - -type StepRunWithPrismaOutputWhereParam interface { +type WorkerEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - outputField() + equals() + workerModel() } -type stepRunWithPrismaOutputEqualsParam struct { +type workerEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaOutputEqualsParam) field() builder.Field { +func (p workerEqualsParam) workerModel() {} + +func (workerEqualsParam) equals() {} + +func (p workerEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaOutputEqualsParam) getQuery() builder.Query { +func (p workerEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaOutputEqualsParam) stepRunModel() {} - -func (p stepRunWithPrismaOutputEqualsParam) outputField() {} - -func (stepRunWithPrismaOutputSetParam) settable() {} -func (stepRunWithPrismaOutputEqualsParam) equals() {} +type WorkerEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workerModel() +} -type stepRunWithPrismaOutputEqualsUniqueParam struct { +type workerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaOutputEqualsUniqueParam) field() builder.Field { +func (p workerEqualsUniqueParam) workerModel() {} + +func (workerEqualsUniqueParam) unique() {} +func (workerEqualsUniqueParam) equals() {} + +func (p workerEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaOutputEqualsUniqueParam) getQuery() builder.Query { +func (p workerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaOutputEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaOutputEqualsUniqueParam) outputField() {} +type WorkerSetParam interface { + field() builder.Field + settable() + workerModel() +} -func (stepRunWithPrismaOutputEqualsUniqueParam) unique() {} -func (stepRunWithPrismaOutputEqualsUniqueParam) equals() {} +type workerSetParam struct { + data builder.Field +} -type StepRunWithPrismaInputSchemaEqualsSetParam interface { +func (workerSetParam) settable() {} + +func (p workerSetParam) field() builder.Field { + return p.data +} + +func (p workerSetParam) workerModel() {} + +type WorkerWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - inputSchemaField() + workerModel() + idField() } -type StepRunWithPrismaInputSchemaSetParam interface { +type WorkerWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - inputSchemaField() + workerModel() + idField() } -type stepRunWithPrismaInputSchemaSetParam struct { +type workerWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaInputSchemaSetParam) field() builder.Field { +func (p workerWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaInputSchemaSetParam) getQuery() builder.Query { +func (p workerWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaInputSchemaSetParam) stepRunModel() {} +func (p workerWithPrismaIDSetParam) workerModel() {} -func (p stepRunWithPrismaInputSchemaSetParam) inputSchemaField() {} +func (p workerWithPrismaIDSetParam) idField() {} -type StepRunWithPrismaInputSchemaWhereParam interface { +type WorkerWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - inputSchemaField() + workerModel() + idField() } -type stepRunWithPrismaInputSchemaEqualsParam struct { +type workerWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaInputSchemaEqualsParam) field() builder.Field { +func (p workerWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaInputSchemaEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaInputSchemaEqualsParam) stepRunModel() {} +func (p workerWithPrismaIDEqualsParam) workerModel() {} -func (p stepRunWithPrismaInputSchemaEqualsParam) inputSchemaField() {} +func (p workerWithPrismaIDEqualsParam) idField() {} -func (stepRunWithPrismaInputSchemaSetParam) settable() {} -func (stepRunWithPrismaInputSchemaEqualsParam) equals() {} +func (workerWithPrismaIDSetParam) settable() {} +func (workerWithPrismaIDEqualsParam) equals() {} -type stepRunWithPrismaInputSchemaEqualsUniqueParam struct { +type workerWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaInputSchemaEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaInputSchemaEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaInputSchemaEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaInputSchemaEqualsUniqueParam) inputSchemaField() {} +func (p workerWithPrismaIDEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaIDEqualsUniqueParam) idField() {} -func (stepRunWithPrismaInputSchemaEqualsUniqueParam) unique() {} -func (stepRunWithPrismaInputSchemaEqualsUniqueParam) equals() {} +func (workerWithPrismaIDEqualsUniqueParam) unique() {} +func (workerWithPrismaIDEqualsUniqueParam) equals() {} -type StepRunWithPrismaRequeueAfterEqualsSetParam interface { +type WorkerWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - requeueAfterField() + workerModel() + createdAtField() } -type StepRunWithPrismaRequeueAfterSetParam interface { +type WorkerWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - requeueAfterField() + workerModel() + createdAtField() } -type stepRunWithPrismaRequeueAfterSetParam struct { +type workerWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaRequeueAfterSetParam) field() builder.Field { +func (p workerWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaRequeueAfterSetParam) getQuery() builder.Query { +func (p workerWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaRequeueAfterSetParam) stepRunModel() {} +func (p workerWithPrismaCreatedAtSetParam) workerModel() {} -func (p stepRunWithPrismaRequeueAfterSetParam) requeueAfterField() {} +func (p workerWithPrismaCreatedAtSetParam) createdAtField() {} -type StepRunWithPrismaRequeueAfterWhereParam interface { +type WorkerWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - requeueAfterField() + workerModel() + createdAtField() } -type stepRunWithPrismaRequeueAfterEqualsParam struct { +type workerWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaRequeueAfterEqualsParam) field() builder.Field { +func (p workerWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaRequeueAfterEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaRequeueAfterEqualsParam) stepRunModel() {} +func (p workerWithPrismaCreatedAtEqualsParam) workerModel() {} -func (p stepRunWithPrismaRequeueAfterEqualsParam) requeueAfterField() {} +func (p workerWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (stepRunWithPrismaRequeueAfterSetParam) settable() {} -func (stepRunWithPrismaRequeueAfterEqualsParam) equals() {} +func (workerWithPrismaCreatedAtSetParam) settable() {} +func (workerWithPrismaCreatedAtEqualsParam) equals() {} -type stepRunWithPrismaRequeueAfterEqualsUniqueParam struct { +type workerWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaRequeueAfterEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaRequeueAfterEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaRequeueAfterEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaRequeueAfterEqualsUniqueParam) requeueAfterField() {} +func (p workerWithPrismaCreatedAtEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (stepRunWithPrismaRequeueAfterEqualsUniqueParam) unique() {} -func (stepRunWithPrismaRequeueAfterEqualsUniqueParam) equals() {} +func (workerWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (workerWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type StepRunWithPrismaScheduleTimeoutAtEqualsSetParam interface { +type WorkerWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - scheduleTimeoutAtField() + workerModel() + updatedAtField() } -type StepRunWithPrismaScheduleTimeoutAtSetParam interface { +type WorkerWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - scheduleTimeoutAtField() + workerModel() + updatedAtField() } -type stepRunWithPrismaScheduleTimeoutAtSetParam struct { +type workerWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaScheduleTimeoutAtSetParam) field() builder.Field { +func (p workerWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaScheduleTimeoutAtSetParam) getQuery() builder.Query { +func (p workerWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaScheduleTimeoutAtSetParam) stepRunModel() {} +func (p workerWithPrismaUpdatedAtSetParam) workerModel() {} -func (p stepRunWithPrismaScheduleTimeoutAtSetParam) scheduleTimeoutAtField() {} +func (p workerWithPrismaUpdatedAtSetParam) updatedAtField() {} -type StepRunWithPrismaScheduleTimeoutAtWhereParam interface { +type WorkerWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - scheduleTimeoutAtField() + workerModel() + updatedAtField() } -type stepRunWithPrismaScheduleTimeoutAtEqualsParam struct { +type workerWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaScheduleTimeoutAtEqualsParam) field() builder.Field { +func (p workerWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaScheduleTimeoutAtEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaScheduleTimeoutAtEqualsParam) stepRunModel() {} +func (p workerWithPrismaUpdatedAtEqualsParam) workerModel() {} -func (p stepRunWithPrismaScheduleTimeoutAtEqualsParam) scheduleTimeoutAtField() {} +func (p workerWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (stepRunWithPrismaScheduleTimeoutAtSetParam) settable() {} -func (stepRunWithPrismaScheduleTimeoutAtEqualsParam) equals() {} +func (workerWithPrismaUpdatedAtSetParam) settable() {} +func (workerWithPrismaUpdatedAtEqualsParam) equals() {} -type stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam struct { +type workerWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) scheduleTimeoutAtField() {} +func (p workerWithPrismaUpdatedAtEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) unique() {} -func (stepRunWithPrismaScheduleTimeoutAtEqualsUniqueParam) equals() {} +func (workerWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (workerWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type StepRunWithPrismaRetryCountEqualsSetParam interface { +type WorkerWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - retryCountField() + workerModel() + deletedAtField() } -type StepRunWithPrismaRetryCountSetParam interface { +type WorkerWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - retryCountField() + workerModel() + deletedAtField() } -type stepRunWithPrismaRetryCountSetParam struct { +type workerWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaRetryCountSetParam) field() builder.Field { +func (p workerWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaRetryCountSetParam) getQuery() builder.Query { +func (p workerWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaRetryCountSetParam) stepRunModel() {} +func (p workerWithPrismaDeletedAtSetParam) workerModel() {} -func (p stepRunWithPrismaRetryCountSetParam) retryCountField() {} +func (p workerWithPrismaDeletedAtSetParam) deletedAtField() {} -type StepRunWithPrismaRetryCountWhereParam interface { +type WorkerWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - retryCountField() + workerModel() + deletedAtField() } -type stepRunWithPrismaRetryCountEqualsParam struct { +type workerWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaRetryCountEqualsParam) field() builder.Field { +func (p workerWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaRetryCountEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaRetryCountEqualsParam) stepRunModel() {} +func (p workerWithPrismaDeletedAtEqualsParam) workerModel() {} -func (p stepRunWithPrismaRetryCountEqualsParam) retryCountField() {} +func (p workerWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (stepRunWithPrismaRetryCountSetParam) settable() {} -func (stepRunWithPrismaRetryCountEqualsParam) equals() {} +func (workerWithPrismaDeletedAtSetParam) settable() {} +func (workerWithPrismaDeletedAtEqualsParam) equals() {} -type stepRunWithPrismaRetryCountEqualsUniqueParam struct { +type workerWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaRetryCountEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaRetryCountEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaRetryCountEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaRetryCountEqualsUniqueParam) retryCountField() {} +func (p workerWithPrismaDeletedAtEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (stepRunWithPrismaRetryCountEqualsUniqueParam) unique() {} -func (stepRunWithPrismaRetryCountEqualsUniqueParam) equals() {} +func (workerWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (workerWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type StepRunWithPrismaErrorEqualsSetParam interface { +type WorkerWithPrismaLabelsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - errorField() + workerModel() + labelsField() } -type StepRunWithPrismaErrorSetParam interface { +type WorkerWithPrismaLabelsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - errorField() + workerModel() + labelsField() } -type stepRunWithPrismaErrorSetParam struct { +type workerWithPrismaLabelsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaErrorSetParam) field() builder.Field { +func (p workerWithPrismaLabelsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaErrorSetParam) getQuery() builder.Query { +func (p workerWithPrismaLabelsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaErrorSetParam) stepRunModel() {} +func (p workerWithPrismaLabelsSetParam) workerModel() {} -func (p stepRunWithPrismaErrorSetParam) errorField() {} +func (p workerWithPrismaLabelsSetParam) labelsField() {} -type StepRunWithPrismaErrorWhereParam interface { +type WorkerWithPrismaLabelsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - errorField() + workerModel() + labelsField() } -type stepRunWithPrismaErrorEqualsParam struct { +type workerWithPrismaLabelsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaErrorEqualsParam) field() builder.Field { +func (p workerWithPrismaLabelsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaErrorEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaLabelsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaErrorEqualsParam) stepRunModel() {} +func (p workerWithPrismaLabelsEqualsParam) workerModel() {} -func (p stepRunWithPrismaErrorEqualsParam) errorField() {} +func (p workerWithPrismaLabelsEqualsParam) labelsField() {} -func (stepRunWithPrismaErrorSetParam) settable() {} -func (stepRunWithPrismaErrorEqualsParam) equals() {} +func (workerWithPrismaLabelsSetParam) settable() {} +func (workerWithPrismaLabelsEqualsParam) equals() {} -type stepRunWithPrismaErrorEqualsUniqueParam struct { +type workerWithPrismaLabelsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaErrorEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaLabelsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaErrorEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaLabelsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaErrorEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaErrorEqualsUniqueParam) errorField() {} +func (p workerWithPrismaLabelsEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaLabelsEqualsUniqueParam) labelsField() {} -func (stepRunWithPrismaErrorEqualsUniqueParam) unique() {} -func (stepRunWithPrismaErrorEqualsUniqueParam) equals() {} +func (workerWithPrismaLabelsEqualsUniqueParam) unique() {} +func (workerWithPrismaLabelsEqualsUniqueParam) equals() {} -type StepRunWithPrismaStartedAtEqualsSetParam interface { +type WorkerWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - startedAtField() + workerModel() + tenantField() } -type StepRunWithPrismaStartedAtSetParam interface { +type WorkerWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - startedAtField() + workerModel() + tenantField() } -type stepRunWithPrismaStartedAtSetParam struct { +type workerWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStartedAtSetParam) field() builder.Field { +func (p workerWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStartedAtSetParam) getQuery() builder.Query { +func (p workerWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStartedAtSetParam) stepRunModel() {} +func (p workerWithPrismaTenantSetParam) workerModel() {} -func (p stepRunWithPrismaStartedAtSetParam) startedAtField() {} +func (p workerWithPrismaTenantSetParam) tenantField() {} -type StepRunWithPrismaStartedAtWhereParam interface { +type WorkerWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - startedAtField() + workerModel() + tenantField() } -type stepRunWithPrismaStartedAtEqualsParam struct { +type workerWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStartedAtEqualsParam) field() builder.Field { +func (p workerWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStartedAtEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStartedAtEqualsParam) stepRunModel() {} +func (p workerWithPrismaTenantEqualsParam) workerModel() {} -func (p stepRunWithPrismaStartedAtEqualsParam) startedAtField() {} +func (p workerWithPrismaTenantEqualsParam) tenantField() {} -func (stepRunWithPrismaStartedAtSetParam) settable() {} -func (stepRunWithPrismaStartedAtEqualsParam) equals() {} +func (workerWithPrismaTenantSetParam) settable() {} +func (workerWithPrismaTenantEqualsParam) equals() {} -type stepRunWithPrismaStartedAtEqualsUniqueParam struct { +type workerWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStartedAtEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} +func (p workerWithPrismaTenantEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (stepRunWithPrismaStartedAtEqualsUniqueParam) unique() {} -func (stepRunWithPrismaStartedAtEqualsUniqueParam) equals() {} +func (workerWithPrismaTenantEqualsUniqueParam) unique() {} +func (workerWithPrismaTenantEqualsUniqueParam) equals() {} -type StepRunWithPrismaFinishedAtEqualsSetParam interface { +type WorkerWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - finishedAtField() + workerModel() + tenantIDField() } -type StepRunWithPrismaFinishedAtSetParam interface { +type WorkerWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - finishedAtField() + workerModel() + tenantIDField() } -type stepRunWithPrismaFinishedAtSetParam struct { +type workerWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaFinishedAtSetParam) field() builder.Field { +func (p workerWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaFinishedAtSetParam) getQuery() builder.Query { +func (p workerWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaFinishedAtSetParam) stepRunModel() {} +func (p workerWithPrismaTenantIDSetParam) workerModel() {} -func (p stepRunWithPrismaFinishedAtSetParam) finishedAtField() {} +func (p workerWithPrismaTenantIDSetParam) tenantIDField() {} -type StepRunWithPrismaFinishedAtWhereParam interface { +type WorkerWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - finishedAtField() + workerModel() + tenantIDField() } -type stepRunWithPrismaFinishedAtEqualsParam struct { +type workerWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaFinishedAtEqualsParam) field() builder.Field { +func (p workerWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaFinishedAtEqualsParam) stepRunModel() {} +func (p workerWithPrismaTenantIDEqualsParam) workerModel() {} -func (p stepRunWithPrismaFinishedAtEqualsParam) finishedAtField() {} +func (p workerWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (stepRunWithPrismaFinishedAtSetParam) settable() {} -func (stepRunWithPrismaFinishedAtEqualsParam) equals() {} +func (workerWithPrismaTenantIDSetParam) settable() {} +func (workerWithPrismaTenantIDEqualsParam) equals() {} -type stepRunWithPrismaFinishedAtEqualsUniqueParam struct { +type workerWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaFinishedAtEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} +func (p workerWithPrismaTenantIDEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (stepRunWithPrismaFinishedAtEqualsUniqueParam) unique() {} -func (stepRunWithPrismaFinishedAtEqualsUniqueParam) equals() {} +func (workerWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (workerWithPrismaTenantIDEqualsUniqueParam) equals() {} -type StepRunWithPrismaTimeoutAtEqualsSetParam interface { +type WorkerWithPrismaLastHeartbeatAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - timeoutAtField() + workerModel() + lastHeartbeatAtField() } -type StepRunWithPrismaTimeoutAtSetParam interface { +type WorkerWithPrismaLastHeartbeatAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - timeoutAtField() + workerModel() + lastHeartbeatAtField() } -type stepRunWithPrismaTimeoutAtSetParam struct { +type workerWithPrismaLastHeartbeatAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTimeoutAtSetParam) field() builder.Field { +func (p workerWithPrismaLastHeartbeatAtSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTimeoutAtSetParam) getQuery() builder.Query { +func (p workerWithPrismaLastHeartbeatAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTimeoutAtSetParam) stepRunModel() {} +func (p workerWithPrismaLastHeartbeatAtSetParam) workerModel() {} -func (p stepRunWithPrismaTimeoutAtSetParam) timeoutAtField() {} +func (p workerWithPrismaLastHeartbeatAtSetParam) lastHeartbeatAtField() {} -type StepRunWithPrismaTimeoutAtWhereParam interface { +type WorkerWithPrismaLastHeartbeatAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - timeoutAtField() + workerModel() + lastHeartbeatAtField() } -type stepRunWithPrismaTimeoutAtEqualsParam struct { +type workerWithPrismaLastHeartbeatAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTimeoutAtEqualsParam) field() builder.Field { +func (p workerWithPrismaLastHeartbeatAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTimeoutAtEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaLastHeartbeatAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTimeoutAtEqualsParam) stepRunModel() {} +func (p workerWithPrismaLastHeartbeatAtEqualsParam) workerModel() {} -func (p stepRunWithPrismaTimeoutAtEqualsParam) timeoutAtField() {} +func (p workerWithPrismaLastHeartbeatAtEqualsParam) lastHeartbeatAtField() {} -func (stepRunWithPrismaTimeoutAtSetParam) settable() {} -func (stepRunWithPrismaTimeoutAtEqualsParam) equals() {} +func (workerWithPrismaLastHeartbeatAtSetParam) settable() {} +func (workerWithPrismaLastHeartbeatAtEqualsParam) equals() {} -type stepRunWithPrismaTimeoutAtEqualsUniqueParam struct { +type workerWithPrismaLastHeartbeatAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaTimeoutAtEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaLastHeartbeatAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaTimeoutAtEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaLastHeartbeatAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaTimeoutAtEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaTimeoutAtEqualsUniqueParam) timeoutAtField() {} +func (p workerWithPrismaLastHeartbeatAtEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaLastHeartbeatAtEqualsUniqueParam) lastHeartbeatAtField() {} -func (stepRunWithPrismaTimeoutAtEqualsUniqueParam) unique() {} -func (stepRunWithPrismaTimeoutAtEqualsUniqueParam) equals() {} +func (workerWithPrismaLastHeartbeatAtEqualsUniqueParam) unique() {} +func (workerWithPrismaLastHeartbeatAtEqualsUniqueParam) equals() {} -type StepRunWithPrismaCancelledAtEqualsSetParam interface { +type WorkerWithPrismaIsPausedEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - cancelledAtField() + workerModel() + isPausedField() } -type StepRunWithPrismaCancelledAtSetParam interface { +type WorkerWithPrismaIsPausedSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - cancelledAtField() + workerModel() + isPausedField() } -type stepRunWithPrismaCancelledAtSetParam struct { +type workerWithPrismaIsPausedSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledAtSetParam) field() builder.Field { +func (p workerWithPrismaIsPausedSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledAtSetParam) getQuery() builder.Query { +func (p workerWithPrismaIsPausedSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledAtSetParam) stepRunModel() {} +func (p workerWithPrismaIsPausedSetParam) workerModel() {} -func (p stepRunWithPrismaCancelledAtSetParam) cancelledAtField() {} +func (p workerWithPrismaIsPausedSetParam) isPausedField() {} -type StepRunWithPrismaCancelledAtWhereParam interface { +type WorkerWithPrismaIsPausedWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - cancelledAtField() + workerModel() + isPausedField() } -type stepRunWithPrismaCancelledAtEqualsParam struct { +type workerWithPrismaIsPausedEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledAtEqualsParam) field() builder.Field { +func (p workerWithPrismaIsPausedEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledAtEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaIsPausedEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledAtEqualsParam) stepRunModel() {} +func (p workerWithPrismaIsPausedEqualsParam) workerModel() {} -func (p stepRunWithPrismaCancelledAtEqualsParam) cancelledAtField() {} +func (p workerWithPrismaIsPausedEqualsParam) isPausedField() {} -func (stepRunWithPrismaCancelledAtSetParam) settable() {} -func (stepRunWithPrismaCancelledAtEqualsParam) equals() {} +func (workerWithPrismaIsPausedSetParam) settable() {} +func (workerWithPrismaIsPausedEqualsParam) equals() {} -type stepRunWithPrismaCancelledAtEqualsUniqueParam struct { +type workerWithPrismaIsPausedEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledAtEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaIsPausedEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledAtEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaIsPausedEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledAtEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaCancelledAtEqualsUniqueParam) cancelledAtField() {} +func (p workerWithPrismaIsPausedEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaIsPausedEqualsUniqueParam) isPausedField() {} -func (stepRunWithPrismaCancelledAtEqualsUniqueParam) unique() {} -func (stepRunWithPrismaCancelledAtEqualsUniqueParam) equals() {} +func (workerWithPrismaIsPausedEqualsUniqueParam) unique() {} +func (workerWithPrismaIsPausedEqualsUniqueParam) equals() {} -type StepRunWithPrismaCancelledReasonEqualsSetParam interface { +type WorkerWithPrismaIsActiveEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - cancelledReasonField() + workerModel() + isActiveField() } -type StepRunWithPrismaCancelledReasonSetParam interface { +type WorkerWithPrismaIsActiveSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - cancelledReasonField() + workerModel() + isActiveField() } -type stepRunWithPrismaCancelledReasonSetParam struct { +type workerWithPrismaIsActiveSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledReasonSetParam) field() builder.Field { +func (p workerWithPrismaIsActiveSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledReasonSetParam) getQuery() builder.Query { +func (p workerWithPrismaIsActiveSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledReasonSetParam) stepRunModel() {} +func (p workerWithPrismaIsActiveSetParam) workerModel() {} -func (p stepRunWithPrismaCancelledReasonSetParam) cancelledReasonField() {} +func (p workerWithPrismaIsActiveSetParam) isActiveField() {} -type StepRunWithPrismaCancelledReasonWhereParam interface { +type WorkerWithPrismaIsActiveWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - cancelledReasonField() + workerModel() + isActiveField() } -type stepRunWithPrismaCancelledReasonEqualsParam struct { +type workerWithPrismaIsActiveEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledReasonEqualsParam) field() builder.Field { +func (p workerWithPrismaIsActiveEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledReasonEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaIsActiveEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledReasonEqualsParam) stepRunModel() {} +func (p workerWithPrismaIsActiveEqualsParam) workerModel() {} -func (p stepRunWithPrismaCancelledReasonEqualsParam) cancelledReasonField() {} +func (p workerWithPrismaIsActiveEqualsParam) isActiveField() {} -func (stepRunWithPrismaCancelledReasonSetParam) settable() {} -func (stepRunWithPrismaCancelledReasonEqualsParam) equals() {} +func (workerWithPrismaIsActiveSetParam) settable() {} +func (workerWithPrismaIsActiveEqualsParam) equals() {} -type stepRunWithPrismaCancelledReasonEqualsUniqueParam struct { +type workerWithPrismaIsActiveEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledReasonEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaIsActiveEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledReasonEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaIsActiveEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledReasonEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaCancelledReasonEqualsUniqueParam) cancelledReasonField() {} +func (p workerWithPrismaIsActiveEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaIsActiveEqualsUniqueParam) isActiveField() {} -func (stepRunWithPrismaCancelledReasonEqualsUniqueParam) unique() {} -func (stepRunWithPrismaCancelledReasonEqualsUniqueParam) equals() {} +func (workerWithPrismaIsActiveEqualsUniqueParam) unique() {} +func (workerWithPrismaIsActiveEqualsUniqueParam) equals() {} -type StepRunWithPrismaCancelledErrorEqualsSetParam interface { +type WorkerWithPrismaLastListenerEstablishedEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - cancelledErrorField() + workerModel() + lastListenerEstablishedField() } -type StepRunWithPrismaCancelledErrorSetParam interface { +type WorkerWithPrismaLastListenerEstablishedSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - cancelledErrorField() + workerModel() + lastListenerEstablishedField() } -type stepRunWithPrismaCancelledErrorSetParam struct { +type workerWithPrismaLastListenerEstablishedSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledErrorSetParam) field() builder.Field { +func (p workerWithPrismaLastListenerEstablishedSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledErrorSetParam) getQuery() builder.Query { +func (p workerWithPrismaLastListenerEstablishedSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledErrorSetParam) stepRunModel() {} +func (p workerWithPrismaLastListenerEstablishedSetParam) workerModel() {} -func (p stepRunWithPrismaCancelledErrorSetParam) cancelledErrorField() {} +func (p workerWithPrismaLastListenerEstablishedSetParam) lastListenerEstablishedField() {} -type StepRunWithPrismaCancelledErrorWhereParam interface { +type WorkerWithPrismaLastListenerEstablishedWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - cancelledErrorField() + workerModel() + lastListenerEstablishedField() } -type stepRunWithPrismaCancelledErrorEqualsParam struct { +type workerWithPrismaLastListenerEstablishedEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledErrorEqualsParam) field() builder.Field { +func (p workerWithPrismaLastListenerEstablishedEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledErrorEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaLastListenerEstablishedEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledErrorEqualsParam) stepRunModel() {} +func (p workerWithPrismaLastListenerEstablishedEqualsParam) workerModel() {} -func (p stepRunWithPrismaCancelledErrorEqualsParam) cancelledErrorField() {} +func (p workerWithPrismaLastListenerEstablishedEqualsParam) lastListenerEstablishedField() {} -func (stepRunWithPrismaCancelledErrorSetParam) settable() {} -func (stepRunWithPrismaCancelledErrorEqualsParam) equals() {} +func (workerWithPrismaLastListenerEstablishedSetParam) settable() {} +func (workerWithPrismaLastListenerEstablishedEqualsParam) equals() {} -type stepRunWithPrismaCancelledErrorEqualsUniqueParam struct { +type workerWithPrismaLastListenerEstablishedEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCancelledErrorEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaLastListenerEstablishedEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCancelledErrorEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaLastListenerEstablishedEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCancelledErrorEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaCancelledErrorEqualsUniqueParam) cancelledErrorField() {} +func (p workerWithPrismaLastListenerEstablishedEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaLastListenerEstablishedEqualsUniqueParam) lastListenerEstablishedField() {} -func (stepRunWithPrismaCancelledErrorEqualsUniqueParam) unique() {} -func (stepRunWithPrismaCancelledErrorEqualsUniqueParam) equals() {} +func (workerWithPrismaLastListenerEstablishedEqualsUniqueParam) unique() {} +func (workerWithPrismaLastListenerEstablishedEqualsUniqueParam) equals() {} -type StepRunWithPrismaCallerFilesEqualsSetParam interface { +type WorkerWithPrismaNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - callerFilesField() + workerModel() + nameField() } -type StepRunWithPrismaCallerFilesSetParam interface { +type WorkerWithPrismaNameSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - callerFilesField() + workerModel() + nameField() } -type stepRunWithPrismaCallerFilesSetParam struct { +type workerWithPrismaNameSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCallerFilesSetParam) field() builder.Field { +func (p workerWithPrismaNameSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCallerFilesSetParam) getQuery() builder.Query { +func (p workerWithPrismaNameSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCallerFilesSetParam) stepRunModel() {} +func (p workerWithPrismaNameSetParam) workerModel() {} -func (p stepRunWithPrismaCallerFilesSetParam) callerFilesField() {} +func (p workerWithPrismaNameSetParam) nameField() {} -type StepRunWithPrismaCallerFilesWhereParam interface { +type WorkerWithPrismaNameWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - callerFilesField() + workerModel() + nameField() } -type stepRunWithPrismaCallerFilesEqualsParam struct { +type workerWithPrismaNameEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCallerFilesEqualsParam) field() builder.Field { +func (p workerWithPrismaNameEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCallerFilesEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaNameEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCallerFilesEqualsParam) stepRunModel() {} +func (p workerWithPrismaNameEqualsParam) workerModel() {} -func (p stepRunWithPrismaCallerFilesEqualsParam) callerFilesField() {} +func (p workerWithPrismaNameEqualsParam) nameField() {} -func (stepRunWithPrismaCallerFilesSetParam) settable() {} -func (stepRunWithPrismaCallerFilesEqualsParam) equals() {} +func (workerWithPrismaNameSetParam) settable() {} +func (workerWithPrismaNameEqualsParam) equals() {} -type stepRunWithPrismaCallerFilesEqualsUniqueParam struct { +type workerWithPrismaNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaCallerFilesEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaCallerFilesEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaCallerFilesEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaCallerFilesEqualsUniqueParam) callerFilesField() {} +func (p workerWithPrismaNameEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaNameEqualsUniqueParam) nameField() {} -func (stepRunWithPrismaCallerFilesEqualsUniqueParam) unique() {} -func (stepRunWithPrismaCallerFilesEqualsUniqueParam) equals() {} +func (workerWithPrismaNameEqualsUniqueParam) unique() {} +func (workerWithPrismaNameEqualsUniqueParam) equals() {} -type StepRunWithPrismaGitRepoBranchEqualsSetParam interface { +type WorkerWithPrismaDispatcherEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - gitRepoBranchField() + workerModel() + dispatcherField() } -type StepRunWithPrismaGitRepoBranchSetParam interface { +type WorkerWithPrismaDispatcherSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - gitRepoBranchField() + workerModel() + dispatcherField() } -type stepRunWithPrismaGitRepoBranchSetParam struct { +type workerWithPrismaDispatcherSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaGitRepoBranchSetParam) field() builder.Field { +func (p workerWithPrismaDispatcherSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaGitRepoBranchSetParam) getQuery() builder.Query { +func (p workerWithPrismaDispatcherSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaGitRepoBranchSetParam) stepRunModel() {} +func (p workerWithPrismaDispatcherSetParam) workerModel() {} -func (p stepRunWithPrismaGitRepoBranchSetParam) gitRepoBranchField() {} +func (p workerWithPrismaDispatcherSetParam) dispatcherField() {} -type StepRunWithPrismaGitRepoBranchWhereParam interface { +type WorkerWithPrismaDispatcherWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - gitRepoBranchField() + workerModel() + dispatcherField() } -type stepRunWithPrismaGitRepoBranchEqualsParam struct { +type workerWithPrismaDispatcherEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaGitRepoBranchEqualsParam) field() builder.Field { +func (p workerWithPrismaDispatcherEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaGitRepoBranchEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaDispatcherEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaGitRepoBranchEqualsParam) stepRunModel() {} +func (p workerWithPrismaDispatcherEqualsParam) workerModel() {} -func (p stepRunWithPrismaGitRepoBranchEqualsParam) gitRepoBranchField() {} +func (p workerWithPrismaDispatcherEqualsParam) dispatcherField() {} -func (stepRunWithPrismaGitRepoBranchSetParam) settable() {} -func (stepRunWithPrismaGitRepoBranchEqualsParam) equals() {} +func (workerWithPrismaDispatcherSetParam) settable() {} +func (workerWithPrismaDispatcherEqualsParam) equals() {} -type stepRunWithPrismaGitRepoBranchEqualsUniqueParam struct { +type workerWithPrismaDispatcherEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaGitRepoBranchEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaDispatcherEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaGitRepoBranchEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaDispatcherEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaGitRepoBranchEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaGitRepoBranchEqualsUniqueParam) gitRepoBranchField() {} +func (p workerWithPrismaDispatcherEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaDispatcherEqualsUniqueParam) dispatcherField() {} -func (stepRunWithPrismaGitRepoBranchEqualsUniqueParam) unique() {} -func (stepRunWithPrismaGitRepoBranchEqualsUniqueParam) equals() {} +func (workerWithPrismaDispatcherEqualsUniqueParam) unique() {} +func (workerWithPrismaDispatcherEqualsUniqueParam) equals() {} -type StepRunWithPrismaSemaphoreReleasedEqualsSetParam interface { +type WorkerWithPrismaDispatcherIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - semaphoreReleasedField() + workerModel() + dispatcherIDField() } -type StepRunWithPrismaSemaphoreReleasedSetParam interface { +type WorkerWithPrismaDispatcherIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - semaphoreReleasedField() + workerModel() + dispatcherIDField() } -type stepRunWithPrismaSemaphoreReleasedSetParam struct { +type workerWithPrismaDispatcherIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaSemaphoreReleasedSetParam) field() builder.Field { +func (p workerWithPrismaDispatcherIDSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaSemaphoreReleasedSetParam) getQuery() builder.Query { +func (p workerWithPrismaDispatcherIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaSemaphoreReleasedSetParam) stepRunModel() {} +func (p workerWithPrismaDispatcherIDSetParam) workerModel() {} -func (p stepRunWithPrismaSemaphoreReleasedSetParam) semaphoreReleasedField() {} +func (p workerWithPrismaDispatcherIDSetParam) dispatcherIDField() {} -type StepRunWithPrismaSemaphoreReleasedWhereParam interface { +type WorkerWithPrismaDispatcherIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - semaphoreReleasedField() + workerModel() + dispatcherIDField() } -type stepRunWithPrismaSemaphoreReleasedEqualsParam struct { +type workerWithPrismaDispatcherIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaSemaphoreReleasedEqualsParam) field() builder.Field { +func (p workerWithPrismaDispatcherIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaSemaphoreReleasedEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaDispatcherIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaSemaphoreReleasedEqualsParam) stepRunModel() {} +func (p workerWithPrismaDispatcherIDEqualsParam) workerModel() {} -func (p stepRunWithPrismaSemaphoreReleasedEqualsParam) semaphoreReleasedField() {} +func (p workerWithPrismaDispatcherIDEqualsParam) dispatcherIDField() {} -func (stepRunWithPrismaSemaphoreReleasedSetParam) settable() {} -func (stepRunWithPrismaSemaphoreReleasedEqualsParam) equals() {} +func (workerWithPrismaDispatcherIDSetParam) settable() {} +func (workerWithPrismaDispatcherIDEqualsParam) equals() {} -type stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam struct { +type workerWithPrismaDispatcherIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaDispatcherIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaDispatcherIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) semaphoreReleasedField() {} +func (p workerWithPrismaDispatcherIDEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaDispatcherIDEqualsUniqueParam) dispatcherIDField() {} -func (stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) unique() {} -func (stepRunWithPrismaSemaphoreReleasedEqualsUniqueParam) equals() {} +func (workerWithPrismaDispatcherIDEqualsUniqueParam) unique() {} +func (workerWithPrismaDispatcherIDEqualsUniqueParam) equals() {} -type StepRunWithPrismaSemaphoreSlotEqualsSetParam interface { +type WorkerWithPrismaMaxRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - semaphoreSlotField() + workerModel() + maxRunsField() } -type StepRunWithPrismaSemaphoreSlotSetParam interface { +type WorkerWithPrismaMaxRunsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - semaphoreSlotField() + workerModel() + maxRunsField() } -type stepRunWithPrismaSemaphoreSlotSetParam struct { +type workerWithPrismaMaxRunsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaSemaphoreSlotSetParam) field() builder.Field { +func (p workerWithPrismaMaxRunsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaSemaphoreSlotSetParam) getQuery() builder.Query { +func (p workerWithPrismaMaxRunsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaSemaphoreSlotSetParam) stepRunModel() {} +func (p workerWithPrismaMaxRunsSetParam) workerModel() {} -func (p stepRunWithPrismaSemaphoreSlotSetParam) semaphoreSlotField() {} +func (p workerWithPrismaMaxRunsSetParam) maxRunsField() {} -type StepRunWithPrismaSemaphoreSlotWhereParam interface { +type WorkerWithPrismaMaxRunsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - semaphoreSlotField() + workerModel() + maxRunsField() } -type stepRunWithPrismaSemaphoreSlotEqualsParam struct { +type workerWithPrismaMaxRunsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaSemaphoreSlotEqualsParam) field() builder.Field { +func (p workerWithPrismaMaxRunsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaSemaphoreSlotEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaMaxRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaSemaphoreSlotEqualsParam) stepRunModel() {} +func (p workerWithPrismaMaxRunsEqualsParam) workerModel() {} -func (p stepRunWithPrismaSemaphoreSlotEqualsParam) semaphoreSlotField() {} +func (p workerWithPrismaMaxRunsEqualsParam) maxRunsField() {} -func (stepRunWithPrismaSemaphoreSlotSetParam) settable() {} -func (stepRunWithPrismaSemaphoreSlotEqualsParam) equals() {} +func (workerWithPrismaMaxRunsSetParam) settable() {} +func (workerWithPrismaMaxRunsEqualsParam) equals() {} -type stepRunWithPrismaSemaphoreSlotEqualsUniqueParam struct { +type workerWithPrismaMaxRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaMaxRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaMaxRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) semaphoreSlotField() {} +func (p workerWithPrismaMaxRunsEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaMaxRunsEqualsUniqueParam) maxRunsField() {} -func (stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) unique() {} -func (stepRunWithPrismaSemaphoreSlotEqualsUniqueParam) equals() {} +func (workerWithPrismaMaxRunsEqualsUniqueParam) unique() {} +func (workerWithPrismaMaxRunsEqualsUniqueParam) equals() {} -type StepRunWithPrismaArchivedResultsEqualsSetParam interface { +type WorkerWithPrismaServicesEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - archivedResultsField() + workerModel() + servicesField() } -type StepRunWithPrismaArchivedResultsSetParam interface { +type WorkerWithPrismaServicesSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - archivedResultsField() + workerModel() + servicesField() } -type stepRunWithPrismaArchivedResultsSetParam struct { +type workerWithPrismaServicesSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaArchivedResultsSetParam) field() builder.Field { +func (p workerWithPrismaServicesSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaArchivedResultsSetParam) getQuery() builder.Query { +func (p workerWithPrismaServicesSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaArchivedResultsSetParam) stepRunModel() {} +func (p workerWithPrismaServicesSetParam) workerModel() {} -func (p stepRunWithPrismaArchivedResultsSetParam) archivedResultsField() {} +func (p workerWithPrismaServicesSetParam) servicesField() {} -type StepRunWithPrismaArchivedResultsWhereParam interface { +type WorkerWithPrismaServicesWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - archivedResultsField() + workerModel() + servicesField() } -type stepRunWithPrismaArchivedResultsEqualsParam struct { +type workerWithPrismaServicesEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaArchivedResultsEqualsParam) field() builder.Field { +func (p workerWithPrismaServicesEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaArchivedResultsEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaServicesEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaArchivedResultsEqualsParam) stepRunModel() {} +func (p workerWithPrismaServicesEqualsParam) workerModel() {} -func (p stepRunWithPrismaArchivedResultsEqualsParam) archivedResultsField() {} +func (p workerWithPrismaServicesEqualsParam) servicesField() {} -func (stepRunWithPrismaArchivedResultsSetParam) settable() {} -func (stepRunWithPrismaArchivedResultsEqualsParam) equals() {} +func (workerWithPrismaServicesSetParam) settable() {} +func (workerWithPrismaServicesEqualsParam) equals() {} -type stepRunWithPrismaArchivedResultsEqualsUniqueParam struct { +type workerWithPrismaServicesEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaArchivedResultsEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaServicesEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaArchivedResultsEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaServicesEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaArchivedResultsEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaArchivedResultsEqualsUniqueParam) archivedResultsField() {} +func (p workerWithPrismaServicesEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaServicesEqualsUniqueParam) servicesField() {} -func (stepRunWithPrismaArchivedResultsEqualsUniqueParam) unique() {} -func (stepRunWithPrismaArchivedResultsEqualsUniqueParam) equals() {} +func (workerWithPrismaServicesEqualsUniqueParam) unique() {} +func (workerWithPrismaServicesEqualsUniqueParam) equals() {} -type StepRunWithPrismaStreamEventsEqualsSetParam interface { +type WorkerWithPrismaActionsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - streamEventsField() + workerModel() + actionsField() } -type StepRunWithPrismaStreamEventsSetParam interface { +type WorkerWithPrismaActionsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - streamEventsField() + workerModel() + actionsField() } -type stepRunWithPrismaStreamEventsSetParam struct { +type workerWithPrismaActionsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStreamEventsSetParam) field() builder.Field { +func (p workerWithPrismaActionsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStreamEventsSetParam) getQuery() builder.Query { +func (p workerWithPrismaActionsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStreamEventsSetParam) stepRunModel() {} +func (p workerWithPrismaActionsSetParam) workerModel() {} -func (p stepRunWithPrismaStreamEventsSetParam) streamEventsField() {} +func (p workerWithPrismaActionsSetParam) actionsField() {} -type StepRunWithPrismaStreamEventsWhereParam interface { +type WorkerWithPrismaActionsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - streamEventsField() + workerModel() + actionsField() } -type stepRunWithPrismaStreamEventsEqualsParam struct { +type workerWithPrismaActionsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStreamEventsEqualsParam) field() builder.Field { +func (p workerWithPrismaActionsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStreamEventsEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaActionsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStreamEventsEqualsParam) stepRunModel() {} +func (p workerWithPrismaActionsEqualsParam) workerModel() {} -func (p stepRunWithPrismaStreamEventsEqualsParam) streamEventsField() {} +func (p workerWithPrismaActionsEqualsParam) actionsField() {} -func (stepRunWithPrismaStreamEventsSetParam) settable() {} -func (stepRunWithPrismaStreamEventsEqualsParam) equals() {} +func (workerWithPrismaActionsSetParam) settable() {} +func (workerWithPrismaActionsEqualsParam) equals() {} -type stepRunWithPrismaStreamEventsEqualsUniqueParam struct { +type workerWithPrismaActionsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaStreamEventsEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaActionsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaStreamEventsEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaActionsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaStreamEventsEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaStreamEventsEqualsUniqueParam) streamEventsField() {} +func (p workerWithPrismaActionsEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaActionsEqualsUniqueParam) actionsField() {} -func (stepRunWithPrismaStreamEventsEqualsUniqueParam) unique() {} -func (stepRunWithPrismaStreamEventsEqualsUniqueParam) equals() {} +func (workerWithPrismaActionsEqualsUniqueParam) unique() {} +func (workerWithPrismaActionsEqualsUniqueParam) equals() {} -type StepRunWithPrismaLogsEqualsSetParam interface { +type WorkerWithPrismaStepRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - logsField() + workerModel() + stepRunsField() } -type StepRunWithPrismaLogsSetParam interface { +type WorkerWithPrismaStepRunsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - logsField() + workerModel() + stepRunsField() } -type stepRunWithPrismaLogsSetParam struct { +type workerWithPrismaStepRunsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaLogsSetParam) field() builder.Field { +func (p workerWithPrismaStepRunsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaLogsSetParam) getQuery() builder.Query { +func (p workerWithPrismaStepRunsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaLogsSetParam) stepRunModel() {} +func (p workerWithPrismaStepRunsSetParam) workerModel() {} -func (p stepRunWithPrismaLogsSetParam) logsField() {} +func (p workerWithPrismaStepRunsSetParam) stepRunsField() {} -type StepRunWithPrismaLogsWhereParam interface { +type WorkerWithPrismaStepRunsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - logsField() + workerModel() + stepRunsField() } -type stepRunWithPrismaLogsEqualsParam struct { +type workerWithPrismaStepRunsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaLogsEqualsParam) field() builder.Field { +func (p workerWithPrismaStepRunsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaLogsEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaStepRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaLogsEqualsParam) stepRunModel() {} +func (p workerWithPrismaStepRunsEqualsParam) workerModel() {} -func (p stepRunWithPrismaLogsEqualsParam) logsField() {} +func (p workerWithPrismaStepRunsEqualsParam) stepRunsField() {} -func (stepRunWithPrismaLogsSetParam) settable() {} -func (stepRunWithPrismaLogsEqualsParam) equals() {} +func (workerWithPrismaStepRunsSetParam) settable() {} +func (workerWithPrismaStepRunsEqualsParam) equals() {} -type stepRunWithPrismaLogsEqualsUniqueParam struct { +type workerWithPrismaStepRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaLogsEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaLogsEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaLogsEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaLogsEqualsUniqueParam) logsField() {} +func (p workerWithPrismaStepRunsEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} -func (stepRunWithPrismaLogsEqualsUniqueParam) unique() {} -func (stepRunWithPrismaLogsEqualsUniqueParam) equals() {} +func (workerWithPrismaStepRunsEqualsUniqueParam) unique() {} +func (workerWithPrismaStepRunsEqualsUniqueParam) equals() {} -type StepRunWithPrismaChildWorkflowRunsEqualsSetParam interface { +type WorkerWithPrismaGroupKeyRunsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - childWorkflowRunsField() + workerModel() + groupKeyRunsField() } -type StepRunWithPrismaChildWorkflowRunsSetParam interface { +type WorkerWithPrismaGroupKeyRunsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - childWorkflowRunsField() + workerModel() + groupKeyRunsField() } -type stepRunWithPrismaChildWorkflowRunsSetParam struct { +type workerWithPrismaGroupKeyRunsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildWorkflowRunsSetParam) field() builder.Field { +func (p workerWithPrismaGroupKeyRunsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildWorkflowRunsSetParam) getQuery() builder.Query { +func (p workerWithPrismaGroupKeyRunsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildWorkflowRunsSetParam) stepRunModel() {} +func (p workerWithPrismaGroupKeyRunsSetParam) workerModel() {} -func (p stepRunWithPrismaChildWorkflowRunsSetParam) childWorkflowRunsField() {} +func (p workerWithPrismaGroupKeyRunsSetParam) groupKeyRunsField() {} -type StepRunWithPrismaChildWorkflowRunsWhereParam interface { +type WorkerWithPrismaGroupKeyRunsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - childWorkflowRunsField() + workerModel() + groupKeyRunsField() } -type stepRunWithPrismaChildWorkflowRunsEqualsParam struct { +type workerWithPrismaGroupKeyRunsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildWorkflowRunsEqualsParam) field() builder.Field { +func (p workerWithPrismaGroupKeyRunsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildWorkflowRunsEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaGroupKeyRunsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildWorkflowRunsEqualsParam) stepRunModel() {} +func (p workerWithPrismaGroupKeyRunsEqualsParam) workerModel() {} -func (p stepRunWithPrismaChildWorkflowRunsEqualsParam) childWorkflowRunsField() {} +func (p workerWithPrismaGroupKeyRunsEqualsParam) groupKeyRunsField() {} -func (stepRunWithPrismaChildWorkflowRunsSetParam) settable() {} -func (stepRunWithPrismaChildWorkflowRunsEqualsParam) equals() {} +func (workerWithPrismaGroupKeyRunsSetParam) settable() {} +func (workerWithPrismaGroupKeyRunsEqualsParam) equals() {} -type stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam struct { +type workerWithPrismaGroupKeyRunsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaGroupKeyRunsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaGroupKeyRunsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) childWorkflowRunsField() {} +func (p workerWithPrismaGroupKeyRunsEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaGroupKeyRunsEqualsUniqueParam) groupKeyRunsField() {} -func (stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) unique() {} -func (stepRunWithPrismaChildWorkflowRunsEqualsUniqueParam) equals() {} +func (workerWithPrismaGroupKeyRunsEqualsUniqueParam) unique() {} +func (workerWithPrismaGroupKeyRunsEqualsUniqueParam) equals() {} -type StepRunWithPrismaChildSchedulesEqualsSetParam interface { +type WorkerWithPrismaSlotsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - childSchedulesField() + workerModel() + slotsField() } -type StepRunWithPrismaChildSchedulesSetParam interface { +type WorkerWithPrismaSlotsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - childSchedulesField() + workerModel() + slotsField() } -type stepRunWithPrismaChildSchedulesSetParam struct { +type workerWithPrismaSlotsSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildSchedulesSetParam) field() builder.Field { +func (p workerWithPrismaSlotsSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildSchedulesSetParam) getQuery() builder.Query { +func (p workerWithPrismaSlotsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildSchedulesSetParam) stepRunModel() {} +func (p workerWithPrismaSlotsSetParam) workerModel() {} -func (p stepRunWithPrismaChildSchedulesSetParam) childSchedulesField() {} +func (p workerWithPrismaSlotsSetParam) slotsField() {} -type StepRunWithPrismaChildSchedulesWhereParam interface { +type WorkerWithPrismaSlotsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - childSchedulesField() + workerModel() + slotsField() } -type stepRunWithPrismaChildSchedulesEqualsParam struct { +type workerWithPrismaSlotsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildSchedulesEqualsParam) field() builder.Field { +func (p workerWithPrismaSlotsEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildSchedulesEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaSlotsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildSchedulesEqualsParam) stepRunModel() {} +func (p workerWithPrismaSlotsEqualsParam) workerModel() {} -func (p stepRunWithPrismaChildSchedulesEqualsParam) childSchedulesField() {} +func (p workerWithPrismaSlotsEqualsParam) slotsField() {} -func (stepRunWithPrismaChildSchedulesSetParam) settable() {} -func (stepRunWithPrismaChildSchedulesEqualsParam) equals() {} +func (workerWithPrismaSlotsSetParam) settable() {} +func (workerWithPrismaSlotsEqualsParam) equals() {} -type stepRunWithPrismaChildSchedulesEqualsUniqueParam struct { +type workerWithPrismaSlotsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaChildSchedulesEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaSlotsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaChildSchedulesEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaSlotsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaChildSchedulesEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaChildSchedulesEqualsUniqueParam) childSchedulesField() {} +func (p workerWithPrismaSlotsEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaSlotsEqualsUniqueParam) slotsField() {} -func (stepRunWithPrismaChildSchedulesEqualsUniqueParam) unique() {} -func (stepRunWithPrismaChildSchedulesEqualsUniqueParam) equals() {} +func (workerWithPrismaSlotsEqualsUniqueParam) unique() {} +func (workerWithPrismaSlotsEqualsUniqueParam) equals() {} -type StepRunWithPrismaEventsEqualsSetParam interface { +type WorkerWithPrismaSemaphoreEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunModel() - eventsField() + workerModel() + semaphoreField() } -type StepRunWithPrismaEventsSetParam interface { +type WorkerWithPrismaSemaphoreSetParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - eventsField() + workerModel() + semaphoreField() } -type stepRunWithPrismaEventsSetParam struct { +type workerWithPrismaSemaphoreSetParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaEventsSetParam) field() builder.Field { +func (p workerWithPrismaSemaphoreSetParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaEventsSetParam) getQuery() builder.Query { +func (p workerWithPrismaSemaphoreSetParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaEventsSetParam) stepRunModel() {} +func (p workerWithPrismaSemaphoreSetParam) workerModel() {} -func (p stepRunWithPrismaEventsSetParam) eventsField() {} +func (p workerWithPrismaSemaphoreSetParam) semaphoreField() {} -type StepRunWithPrismaEventsWhereParam interface { +type WorkerWithPrismaSemaphoreWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunModel() - eventsField() + workerModel() + semaphoreField() } -type stepRunWithPrismaEventsEqualsParam struct { +type workerWithPrismaSemaphoreEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaEventsEqualsParam) field() builder.Field { +func (p workerWithPrismaSemaphoreEqualsParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaEventsEqualsParam) getQuery() builder.Query { +func (p workerWithPrismaSemaphoreEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaEventsEqualsParam) stepRunModel() {} +func (p workerWithPrismaSemaphoreEqualsParam) workerModel() {} -func (p stepRunWithPrismaEventsEqualsParam) eventsField() {} +func (p workerWithPrismaSemaphoreEqualsParam) semaphoreField() {} -func (stepRunWithPrismaEventsSetParam) settable() {} -func (stepRunWithPrismaEventsEqualsParam) equals() {} +func (workerWithPrismaSemaphoreSetParam) settable() {} +func (workerWithPrismaSemaphoreEqualsParam) equals() {} -type stepRunWithPrismaEventsEqualsUniqueParam struct { +type workerWithPrismaSemaphoreEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunWithPrismaEventsEqualsUniqueParam) field() builder.Field { +func (p workerWithPrismaSemaphoreEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunWithPrismaEventsEqualsUniqueParam) getQuery() builder.Query { +func (p workerWithPrismaSemaphoreEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunWithPrismaEventsEqualsUniqueParam) stepRunModel() {} -func (p stepRunWithPrismaEventsEqualsUniqueParam) eventsField() {} +func (p workerWithPrismaSemaphoreEqualsUniqueParam) workerModel() {} +func (p workerWithPrismaSemaphoreEqualsUniqueParam) semaphoreField() {} -func (stepRunWithPrismaEventsEqualsUniqueParam) unique() {} -func (stepRunWithPrismaEventsEqualsUniqueParam) equals() {} +func (workerWithPrismaSemaphoreEqualsUniqueParam) unique() {} +func (workerWithPrismaSemaphoreEqualsUniqueParam) equals() {} -type stepRunEventActions struct { +type workerSemaphoreActions struct { // client holds the prisma client client *PrismaClient } -var stepRunEventOutput = []builder.Output{ - {Name: "id"}, - {Name: "timeFirstSeen"}, - {Name: "timeLastSeen"}, - {Name: "stepRunId"}, - {Name: "reason"}, - {Name: "severity"}, - {Name: "message"}, - {Name: "count"}, - {Name: "data"}, +var workerSemaphoreOutput = []builder.Output{ + {Name: "workerId"}, + {Name: "slots"}, } -type StepRunEventRelationWith interface { +type WorkerSemaphoreRelationWith interface { getQuery() builder.Query with() - stepRunEventRelation() + workerSemaphoreRelation() } -type StepRunEventWhereParam interface { +type WorkerSemaphoreWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() + workerSemaphoreModel() } -type stepRunEventDefaultParam struct { +type workerSemaphoreDefaultParam struct { data builder.Field query builder.Query } -func (p stepRunEventDefaultParam) field() builder.Field { +func (p workerSemaphoreDefaultParam) field() builder.Field { return p.data } -func (p stepRunEventDefaultParam) getQuery() builder.Query { +func (p workerSemaphoreDefaultParam) getQuery() builder.Query { return p.query } -func (p stepRunEventDefaultParam) stepRunEventModel() {} +func (p workerSemaphoreDefaultParam) workerSemaphoreModel() {} -type StepRunEventOrderByParam interface { +type WorkerSemaphoreOrderByParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() + workerSemaphoreModel() } -type stepRunEventOrderByParam struct { +type workerSemaphoreOrderByParam struct { data builder.Field query builder.Query } -func (p stepRunEventOrderByParam) field() builder.Field { +func (p workerSemaphoreOrderByParam) field() builder.Field { return p.data } -func (p stepRunEventOrderByParam) getQuery() builder.Query { +func (p workerSemaphoreOrderByParam) getQuery() builder.Query { return p.query } -func (p stepRunEventOrderByParam) stepRunEventModel() {} +func (p workerSemaphoreOrderByParam) workerSemaphoreModel() {} -type StepRunEventCursorParam interface { +type WorkerSemaphoreCursorParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() + workerSemaphoreModel() isCursor() } -type stepRunEventCursorParam struct { +type workerSemaphoreCursorParam struct { data builder.Field query builder.Query } -func (p stepRunEventCursorParam) field() builder.Field { +func (p workerSemaphoreCursorParam) field() builder.Field { return p.data } -func (p stepRunEventCursorParam) isCursor() {} +func (p workerSemaphoreCursorParam) isCursor() {} -func (p stepRunEventCursorParam) getQuery() builder.Query { +func (p workerSemaphoreCursorParam) getQuery() builder.Query { return p.query } -func (p stepRunEventCursorParam) stepRunEventModel() {} +func (p workerSemaphoreCursorParam) workerSemaphoreModel() {} -type StepRunEventParamUnique interface { +type WorkerSemaphoreParamUnique interface { field() builder.Field getQuery() builder.Query unique() - stepRunEventModel() + workerSemaphoreModel() } -type stepRunEventParamUnique struct { +type workerSemaphoreParamUnique struct { data builder.Field query builder.Query } -func (p stepRunEventParamUnique) stepRunEventModel() {} +func (p workerSemaphoreParamUnique) workerSemaphoreModel() {} -func (stepRunEventParamUnique) unique() {} +func (workerSemaphoreParamUnique) unique() {} -func (p stepRunEventParamUnique) field() builder.Field { +func (p workerSemaphoreParamUnique) field() builder.Field { return p.data } -func (p stepRunEventParamUnique) getQuery() builder.Query { +func (p workerSemaphoreParamUnique) getQuery() builder.Query { return p.query } -type StepRunEventEqualsWhereParam interface { +type WorkerSemaphoreEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() + workerSemaphoreModel() } -type stepRunEventEqualsParam struct { +type workerSemaphoreEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreEqualsParam) workerSemaphoreModel() {} -func (stepRunEventEqualsParam) equals() {} +func (workerSemaphoreEqualsParam) equals() {} -func (p stepRunEventEqualsParam) field() builder.Field { +func (p workerSemaphoreEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreEqualsParam) getQuery() builder.Query { return p.query } -type StepRunEventEqualsUniqueWhereParam interface { +type WorkerSemaphoreEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - stepRunEventModel() + workerSemaphoreModel() } -type stepRunEventEqualsUniqueParam struct { +type workerSemaphoreEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventEqualsUniqueParam) stepRunEventModel() {} +func (p workerSemaphoreEqualsUniqueParam) workerSemaphoreModel() {} -func (stepRunEventEqualsUniqueParam) unique() {} -func (stepRunEventEqualsUniqueParam) equals() {} +func (workerSemaphoreEqualsUniqueParam) unique() {} +func (workerSemaphoreEqualsUniqueParam) equals() {} -func (p stepRunEventEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreEqualsUniqueParam) getQuery() builder.Query { return p.query } -type StepRunEventSetParam interface { +type WorkerSemaphoreSetParam interface { field() builder.Field settable() - stepRunEventModel() + workerSemaphoreModel() } -type stepRunEventSetParam struct { +type workerSemaphoreSetParam struct { data builder.Field } -func (stepRunEventSetParam) settable() {} +func (workerSemaphoreSetParam) settable() {} -func (p stepRunEventSetParam) field() builder.Field { +func (p workerSemaphoreSetParam) field() builder.Field { return p.data } -func (p stepRunEventSetParam) stepRunEventModel() {} +func (p workerSemaphoreSetParam) workerSemaphoreModel() {} -type StepRunEventWithPrismaIDEqualsSetParam interface { +type WorkerSemaphoreWithPrismaWorkerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() - idField() + workerSemaphoreModel() + workerField() } -type StepRunEventWithPrismaIDSetParam interface { +type WorkerSemaphoreWithPrismaWorkerSetParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - idField() + workerSemaphoreModel() + workerField() } -type stepRunEventWithPrismaIDSetParam struct { +type workerSemaphoreWithPrismaWorkerSetParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaIDSetParam) field() builder.Field { +func (p workerSemaphoreWithPrismaWorkerSetParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaIDSetParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaWorkerSetParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaIDSetParam) stepRunEventModel() {} +func (p workerSemaphoreWithPrismaWorkerSetParam) workerSemaphoreModel() {} -func (p stepRunEventWithPrismaIDSetParam) idField() {} +func (p workerSemaphoreWithPrismaWorkerSetParam) workerField() {} -type StepRunEventWithPrismaIDWhereParam interface { +type WorkerSemaphoreWithPrismaWorkerWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - idField() + workerSemaphoreModel() + workerField() } -type stepRunEventWithPrismaIDEqualsParam struct { +type workerSemaphoreWithPrismaWorkerEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaIDEqualsParam) field() builder.Field { +func (p workerSemaphoreWithPrismaWorkerEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaWorkerEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaIDEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreWithPrismaWorkerEqualsParam) workerSemaphoreModel() {} -func (p stepRunEventWithPrismaIDEqualsParam) idField() {} +func (p workerSemaphoreWithPrismaWorkerEqualsParam) workerField() {} -func (stepRunEventWithPrismaIDSetParam) settable() {} -func (stepRunEventWithPrismaIDEqualsParam) equals() {} +func (workerSemaphoreWithPrismaWorkerSetParam) settable() {} +func (workerSemaphoreWithPrismaWorkerEqualsParam) equals() {} -type stepRunEventWithPrismaIDEqualsUniqueParam struct { +type workerSemaphoreWithPrismaWorkerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreWithPrismaWorkerEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaIDEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaIDEqualsUniqueParam) idField() {} +func (p workerSemaphoreWithPrismaWorkerEqualsUniqueParam) workerSemaphoreModel() {} +func (p workerSemaphoreWithPrismaWorkerEqualsUniqueParam) workerField() {} -func (stepRunEventWithPrismaIDEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaIDEqualsUniqueParam) equals() {} +func (workerSemaphoreWithPrismaWorkerEqualsUniqueParam) unique() {} +func (workerSemaphoreWithPrismaWorkerEqualsUniqueParam) equals() {} -type StepRunEventWithPrismaTimeFirstSeenEqualsSetParam interface { +type WorkerSemaphoreWithPrismaWorkerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() - timeFirstSeenField() + workerSemaphoreModel() + workerIDField() } -type StepRunEventWithPrismaTimeFirstSeenSetParam interface { +type WorkerSemaphoreWithPrismaWorkerIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - timeFirstSeenField() + workerSemaphoreModel() + workerIDField() } -type stepRunEventWithPrismaTimeFirstSeenSetParam struct { +type workerSemaphoreWithPrismaWorkerIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaTimeFirstSeenSetParam) field() builder.Field { +func (p workerSemaphoreWithPrismaWorkerIDSetParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaTimeFirstSeenSetParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaWorkerIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaTimeFirstSeenSetParam) stepRunEventModel() {} +func (p workerSemaphoreWithPrismaWorkerIDSetParam) workerSemaphoreModel() {} -func (p stepRunEventWithPrismaTimeFirstSeenSetParam) timeFirstSeenField() {} +func (p workerSemaphoreWithPrismaWorkerIDSetParam) workerIDField() {} -type StepRunEventWithPrismaTimeFirstSeenWhereParam interface { +type WorkerSemaphoreWithPrismaWorkerIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - timeFirstSeenField() + workerSemaphoreModel() + workerIDField() } -type stepRunEventWithPrismaTimeFirstSeenEqualsParam struct { +type workerSemaphoreWithPrismaWorkerIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaTimeFirstSeenEqualsParam) field() builder.Field { +func (p workerSemaphoreWithPrismaWorkerIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaTimeFirstSeenEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaTimeFirstSeenEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreWithPrismaWorkerIDEqualsParam) workerSemaphoreModel() {} -func (p stepRunEventWithPrismaTimeFirstSeenEqualsParam) timeFirstSeenField() {} +func (p workerSemaphoreWithPrismaWorkerIDEqualsParam) workerIDField() {} -func (stepRunEventWithPrismaTimeFirstSeenSetParam) settable() {} -func (stepRunEventWithPrismaTimeFirstSeenEqualsParam) equals() {} +func (workerSemaphoreWithPrismaWorkerIDSetParam) settable() {} +func (workerSemaphoreWithPrismaWorkerIDEqualsParam) equals() {} -type stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam struct { +type workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) timeFirstSeenField() {} +func (p workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) workerSemaphoreModel() {} +func (p workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} -func (stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaTimeFirstSeenEqualsUniqueParam) equals() {} +func (workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) unique() {} +func (workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) equals() {} -type StepRunEventWithPrismaTimeLastSeenEqualsSetParam interface { +type WorkerSemaphoreWithPrismaSlotsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() - timeLastSeenField() + workerSemaphoreModel() + slotsField() } -type StepRunEventWithPrismaTimeLastSeenSetParam interface { +type WorkerSemaphoreWithPrismaSlotsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - timeLastSeenField() + workerSemaphoreModel() + slotsField() } -type stepRunEventWithPrismaTimeLastSeenSetParam struct { +type workerSemaphoreWithPrismaSlotsSetParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaTimeLastSeenSetParam) field() builder.Field { +func (p workerSemaphoreWithPrismaSlotsSetParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaTimeLastSeenSetParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaSlotsSetParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaTimeLastSeenSetParam) stepRunEventModel() {} +func (p workerSemaphoreWithPrismaSlotsSetParam) workerSemaphoreModel() {} -func (p stepRunEventWithPrismaTimeLastSeenSetParam) timeLastSeenField() {} +func (p workerSemaphoreWithPrismaSlotsSetParam) slotsField() {} -type StepRunEventWithPrismaTimeLastSeenWhereParam interface { +type WorkerSemaphoreWithPrismaSlotsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - timeLastSeenField() + workerSemaphoreModel() + slotsField() } -type stepRunEventWithPrismaTimeLastSeenEqualsParam struct { +type workerSemaphoreWithPrismaSlotsEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaTimeLastSeenEqualsParam) field() builder.Field { +func (p workerSemaphoreWithPrismaSlotsEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaTimeLastSeenEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaSlotsEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaTimeLastSeenEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreWithPrismaSlotsEqualsParam) workerSemaphoreModel() {} -func (p stepRunEventWithPrismaTimeLastSeenEqualsParam) timeLastSeenField() {} +func (p workerSemaphoreWithPrismaSlotsEqualsParam) slotsField() {} -func (stepRunEventWithPrismaTimeLastSeenSetParam) settable() {} -func (stepRunEventWithPrismaTimeLastSeenEqualsParam) equals() {} +func (workerSemaphoreWithPrismaSlotsSetParam) settable() {} +func (workerSemaphoreWithPrismaSlotsEqualsParam) equals() {} -type stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam struct { +type workerSemaphoreWithPrismaSlotsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreWithPrismaSlotsEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreWithPrismaSlotsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) timeLastSeenField() {} +func (p workerSemaphoreWithPrismaSlotsEqualsUniqueParam) workerSemaphoreModel() {} +func (p workerSemaphoreWithPrismaSlotsEqualsUniqueParam) slotsField() {} -func (stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaTimeLastSeenEqualsUniqueParam) equals() {} +func (workerSemaphoreWithPrismaSlotsEqualsUniqueParam) unique() {} +func (workerSemaphoreWithPrismaSlotsEqualsUniqueParam) equals() {} -type StepRunEventWithPrismaStepRunEqualsSetParam interface { +type workerSemaphoreSlotActions struct { + // client holds the prisma client + client *PrismaClient +} + +var workerSemaphoreSlotOutput = []builder.Output{ + {Name: "id"}, + {Name: "workerId"}, + {Name: "stepRunId"}, +} + +type WorkerSemaphoreSlotRelationWith interface { + getQuery() builder.Query + with() + workerSemaphoreSlotRelation() +} + +type WorkerSemaphoreSlotWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - stepRunEventModel() - stepRunField() + workerSemaphoreSlotModel() } -type StepRunEventWithPrismaStepRunSetParam interface { +type workerSemaphoreSlotDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p workerSemaphoreSlotDefaultParam) field() builder.Field { + return p.data +} + +func (p workerSemaphoreSlotDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p workerSemaphoreSlotDefaultParam) workerSemaphoreSlotModel() {} + +type WorkerSemaphoreSlotOrderByParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - stepRunField() + workerSemaphoreSlotModel() } -type stepRunEventWithPrismaStepRunSetParam struct { +type workerSemaphoreSlotOrderByParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaStepRunSetParam) field() builder.Field { +func (p workerSemaphoreSlotOrderByParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaStepRunSetParam) getQuery() builder.Query { +func (p workerSemaphoreSlotOrderByParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaStepRunSetParam) stepRunEventModel() {} +func (p workerSemaphoreSlotOrderByParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaStepRunSetParam) stepRunField() {} +type WorkerSemaphoreSlotCursorParam interface { + field() builder.Field + getQuery() builder.Query + workerSemaphoreSlotModel() + isCursor() +} -type StepRunEventWithPrismaStepRunWhereParam interface { +type workerSemaphoreSlotCursorParam struct { + data builder.Field + query builder.Query +} + +func (p workerSemaphoreSlotCursorParam) field() builder.Field { + return p.data +} + +func (p workerSemaphoreSlotCursorParam) isCursor() {} + +func (p workerSemaphoreSlotCursorParam) getQuery() builder.Query { + return p.query +} + +func (p workerSemaphoreSlotCursorParam) workerSemaphoreSlotModel() {} + +type WorkerSemaphoreSlotParamUnique interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - stepRunField() + unique() + workerSemaphoreSlotModel() } -type stepRunEventWithPrismaStepRunEqualsParam struct { +type workerSemaphoreSlotParamUnique struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaStepRunEqualsParam) field() builder.Field { +func (p workerSemaphoreSlotParamUnique) workerSemaphoreSlotModel() {} + +func (workerSemaphoreSlotParamUnique) unique() {} + +func (p workerSemaphoreSlotParamUnique) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaStepRunEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreSlotParamUnique) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaStepRunEqualsParam) stepRunEventModel() {} +type WorkerSemaphoreSlotEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + workerSemaphoreSlotModel() +} -func (p stepRunEventWithPrismaStepRunEqualsParam) stepRunField() {} +type workerSemaphoreSlotEqualsParam struct { + data builder.Field + query builder.Query +} -func (stepRunEventWithPrismaStepRunSetParam) settable() {} -func (stepRunEventWithPrismaStepRunEqualsParam) equals() {} +func (p workerSemaphoreSlotEqualsParam) workerSemaphoreSlotModel() {} -type stepRunEventWithPrismaStepRunEqualsUniqueParam struct { +func (workerSemaphoreSlotEqualsParam) equals() {} + +func (p workerSemaphoreSlotEqualsParam) field() builder.Field { + return p.data +} + +func (p workerSemaphoreSlotEqualsParam) getQuery() builder.Query { + return p.query +} + +type WorkerSemaphoreSlotEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + workerSemaphoreSlotModel() +} + +type workerSemaphoreSlotEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaStepRunEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreSlotEqualsUniqueParam) workerSemaphoreSlotModel() {} + +func (workerSemaphoreSlotEqualsUniqueParam) unique() {} +func (workerSemaphoreSlotEqualsUniqueParam) equals() {} + +func (p workerSemaphoreSlotEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreSlotEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaStepRunEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaStepRunEqualsUniqueParam) stepRunField() {} +type WorkerSemaphoreSlotSetParam interface { + field() builder.Field + settable() + workerSemaphoreSlotModel() +} -func (stepRunEventWithPrismaStepRunEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaStepRunEqualsUniqueParam) equals() {} +type workerSemaphoreSlotSetParam struct { + data builder.Field +} -type StepRunEventWithPrismaStepRunIDEqualsSetParam interface { +func (workerSemaphoreSlotSetParam) settable() {} + +func (p workerSemaphoreSlotSetParam) field() builder.Field { + return p.data +} + +func (p workerSemaphoreSlotSetParam) workerSemaphoreSlotModel() {} + +type WorkerSemaphoreSlotWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() - stepRunIDField() + workerSemaphoreSlotModel() + idField() } -type StepRunEventWithPrismaStepRunIDSetParam interface { +type WorkerSemaphoreSlotWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - stepRunIDField() + workerSemaphoreSlotModel() + idField() } -type stepRunEventWithPrismaStepRunIDSetParam struct { +type workerSemaphoreSlotWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaStepRunIDSetParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaStepRunIDSetParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaStepRunIDSetParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaIDSetParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaStepRunIDSetParam) stepRunIDField() {} +func (p workerSemaphoreSlotWithPrismaIDSetParam) idField() {} -type StepRunEventWithPrismaStepRunIDWhereParam interface { +type WorkerSemaphoreSlotWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - stepRunIDField() + workerSemaphoreSlotModel() + idField() } -type stepRunEventWithPrismaStepRunIDEqualsParam struct { +type workerSemaphoreSlotWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaStepRunIDEqualsParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaStepRunIDEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaIDEqualsParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaStepRunIDEqualsParam) stepRunIDField() {} +func (p workerSemaphoreSlotWithPrismaIDEqualsParam) idField() {} -func (stepRunEventWithPrismaStepRunIDSetParam) settable() {} -func (stepRunEventWithPrismaStepRunIDEqualsParam) equals() {} +func (workerSemaphoreSlotWithPrismaIDSetParam) settable() {} +func (workerSemaphoreSlotWithPrismaIDEqualsParam) equals() {} -type stepRunEventWithPrismaStepRunIDEqualsUniqueParam struct { +type workerSemaphoreSlotWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaStepRunIDEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} +func (p workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) workerSemaphoreSlotModel() {} +func (p workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) idField() {} -func (stepRunEventWithPrismaStepRunIDEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaStepRunIDEqualsUniqueParam) equals() {} +func (workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) unique() {} +func (workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) equals() {} -type StepRunEventWithPrismaReasonEqualsSetParam interface { +type WorkerSemaphoreSlotWithPrismaWorkerEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() - reasonField() + workerSemaphoreSlotModel() + workerField() } -type StepRunEventWithPrismaReasonSetParam interface { +type WorkerSemaphoreSlotWithPrismaWorkerSetParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - reasonField() + workerSemaphoreSlotModel() + workerField() } -type stepRunEventWithPrismaReasonSetParam struct { +type workerSemaphoreSlotWithPrismaWorkerSetParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaReasonSetParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaWorkerSetParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaReasonSetParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaWorkerSetParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaReasonSetParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaWorkerSetParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaReasonSetParam) reasonField() {} +func (p workerSemaphoreSlotWithPrismaWorkerSetParam) workerField() {} -type StepRunEventWithPrismaReasonWhereParam interface { +type WorkerSemaphoreSlotWithPrismaWorkerWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - reasonField() + workerSemaphoreSlotModel() + workerField() } -type stepRunEventWithPrismaReasonEqualsParam struct { +type workerSemaphoreSlotWithPrismaWorkerEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaReasonEqualsParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaWorkerEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaReasonEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaWorkerEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaReasonEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaWorkerEqualsParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaReasonEqualsParam) reasonField() {} +func (p workerSemaphoreSlotWithPrismaWorkerEqualsParam) workerField() {} -func (stepRunEventWithPrismaReasonSetParam) settable() {} -func (stepRunEventWithPrismaReasonEqualsParam) equals() {} +func (workerSemaphoreSlotWithPrismaWorkerSetParam) settable() {} +func (workerSemaphoreSlotWithPrismaWorkerEqualsParam) equals() {} -type stepRunEventWithPrismaReasonEqualsUniqueParam struct { +type workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaReasonEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaReasonEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaReasonEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaReasonEqualsUniqueParam) reasonField() {} +func (p workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) workerSemaphoreSlotModel() {} +func (p workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) workerField() {} -func (stepRunEventWithPrismaReasonEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaReasonEqualsUniqueParam) equals() {} +func (workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) unique() {} +func (workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) equals() {} -type StepRunEventWithPrismaSeverityEqualsSetParam interface { +type WorkerSemaphoreSlotWithPrismaWorkerIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() - severityField() + workerSemaphoreSlotModel() + workerIDField() } -type StepRunEventWithPrismaSeveritySetParam interface { +type WorkerSemaphoreSlotWithPrismaWorkerIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - severityField() + workerSemaphoreSlotModel() + workerIDField() } -type stepRunEventWithPrismaSeveritySetParam struct { +type workerSemaphoreSlotWithPrismaWorkerIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaSeveritySetParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaWorkerIDSetParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaSeveritySetParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaWorkerIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaSeveritySetParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaWorkerIDSetParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaSeveritySetParam) severityField() {} +func (p workerSemaphoreSlotWithPrismaWorkerIDSetParam) workerIDField() {} -type StepRunEventWithPrismaSeverityWhereParam interface { +type WorkerSemaphoreSlotWithPrismaWorkerIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - severityField() + workerSemaphoreSlotModel() + workerIDField() } -type stepRunEventWithPrismaSeverityEqualsParam struct { +type workerSemaphoreSlotWithPrismaWorkerIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaSeverityEqualsParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaSeverityEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaSeverityEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaSeverityEqualsParam) severityField() {} +func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) workerIDField() {} -func (stepRunEventWithPrismaSeveritySetParam) settable() {} -func (stepRunEventWithPrismaSeverityEqualsParam) equals() {} +func (workerSemaphoreSlotWithPrismaWorkerIDSetParam) settable() {} +func (workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) equals() {} -type stepRunEventWithPrismaSeverityEqualsUniqueParam struct { +type workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaSeverityEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaSeverityEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaSeverityEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaSeverityEqualsUniqueParam) severityField() {} +func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) workerSemaphoreSlotModel() {} +func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} -func (stepRunEventWithPrismaSeverityEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaSeverityEqualsUniqueParam) equals() {} +func (workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) unique() {} +func (workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) equals() {} -type StepRunEventWithPrismaMessageEqualsSetParam interface { +type WorkerSemaphoreSlotWithPrismaStepRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() - messageField() + workerSemaphoreSlotModel() + stepRunField() } -type StepRunEventWithPrismaMessageSetParam interface { +type WorkerSemaphoreSlotWithPrismaStepRunSetParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - messageField() + workerSemaphoreSlotModel() + stepRunField() } -type stepRunEventWithPrismaMessageSetParam struct { +type workerSemaphoreSlotWithPrismaStepRunSetParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaMessageSetParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaStepRunSetParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaMessageSetParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaStepRunSetParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaMessageSetParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaStepRunSetParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaMessageSetParam) messageField() {} +func (p workerSemaphoreSlotWithPrismaStepRunSetParam) stepRunField() {} -type StepRunEventWithPrismaMessageWhereParam interface { +type WorkerSemaphoreSlotWithPrismaStepRunWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - messageField() + workerSemaphoreSlotModel() + stepRunField() } -type stepRunEventWithPrismaMessageEqualsParam struct { +type workerSemaphoreSlotWithPrismaStepRunEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaMessageEqualsParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaStepRunEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaMessageEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaStepRunEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaMessageEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaStepRunEqualsParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaMessageEqualsParam) messageField() {} +func (p workerSemaphoreSlotWithPrismaStepRunEqualsParam) stepRunField() {} -func (stepRunEventWithPrismaMessageSetParam) settable() {} -func (stepRunEventWithPrismaMessageEqualsParam) equals() {} +func (workerSemaphoreSlotWithPrismaStepRunSetParam) settable() {} +func (workerSemaphoreSlotWithPrismaStepRunEqualsParam) equals() {} -type stepRunEventWithPrismaMessageEqualsUniqueParam struct { +type workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaMessageEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaMessageEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaMessageEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaMessageEqualsUniqueParam) messageField() {} +func (p workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) workerSemaphoreSlotModel() {} +func (p workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) stepRunField() {} -func (stepRunEventWithPrismaMessageEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaMessageEqualsUniqueParam) equals() {} +func (workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) unique() {} +func (workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) equals() {} -type StepRunEventWithPrismaCountEqualsSetParam interface { +type WorkerSemaphoreSlotWithPrismaStepRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunEventModel() - countField() + workerSemaphoreSlotModel() + stepRunIDField() } -type StepRunEventWithPrismaCountSetParam interface { +type WorkerSemaphoreSlotWithPrismaStepRunIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - countField() + workerSemaphoreSlotModel() + stepRunIDField() } -type stepRunEventWithPrismaCountSetParam struct { +type workerSemaphoreSlotWithPrismaStepRunIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaCountSetParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaStepRunIDSetParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaCountSetParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaStepRunIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaCountSetParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaStepRunIDSetParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaCountSetParam) countField() {} +func (p workerSemaphoreSlotWithPrismaStepRunIDSetParam) stepRunIDField() {} -type StepRunEventWithPrismaCountWhereParam interface { +type WorkerSemaphoreSlotWithPrismaStepRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - countField() + workerSemaphoreSlotModel() + stepRunIDField() } -type stepRunEventWithPrismaCountEqualsParam struct { +type workerSemaphoreSlotWithPrismaStepRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaCountEqualsParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaCountEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaCountEqualsParam) stepRunEventModel() {} +func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) workerSemaphoreSlotModel() {} -func (p stepRunEventWithPrismaCountEqualsParam) countField() {} +func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) stepRunIDField() {} -func (stepRunEventWithPrismaCountSetParam) settable() {} -func (stepRunEventWithPrismaCountEqualsParam) equals() {} +func (workerSemaphoreSlotWithPrismaStepRunIDSetParam) settable() {} +func (workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) equals() {} -type stepRunEventWithPrismaCountEqualsUniqueParam struct { +type workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaCountEqualsUniqueParam) field() builder.Field { +func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaCountEqualsUniqueParam) getQuery() builder.Query { +func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaCountEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaCountEqualsUniqueParam) countField() {} +func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) workerSemaphoreSlotModel() {} +func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} -func (stepRunEventWithPrismaCountEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaCountEqualsUniqueParam) equals() {} +func (workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) unique() {} +func (workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) equals() {} -type StepRunEventWithPrismaDataEqualsSetParam interface { +type serviceActions struct { + // client holds the prisma client + client *PrismaClient +} + +var serviceOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "name"}, + {Name: "description"}, + {Name: "tenantId"}, +} + +type ServiceRelationWith interface { + getQuery() builder.Query + with() + serviceRelation() +} + +type ServiceWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - stepRunEventModel() - dataField() + serviceModel() } -type StepRunEventWithPrismaDataSetParam interface { +type serviceDefaultParam struct { + data builder.Field + query builder.Query +} + +func (p serviceDefaultParam) field() builder.Field { + return p.data +} + +func (p serviceDefaultParam) getQuery() builder.Query { + return p.query +} + +func (p serviceDefaultParam) serviceModel() {} + +type ServiceOrderByParam interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - dataField() + serviceModel() } -type stepRunEventWithPrismaDataSetParam struct { +type serviceOrderByParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaDataSetParam) field() builder.Field { +func (p serviceOrderByParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaDataSetParam) getQuery() builder.Query { +func (p serviceOrderByParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaDataSetParam) stepRunEventModel() {} +func (p serviceOrderByParam) serviceModel() {} -func (p stepRunEventWithPrismaDataSetParam) dataField() {} +type ServiceCursorParam interface { + field() builder.Field + getQuery() builder.Query + serviceModel() + isCursor() +} -type StepRunEventWithPrismaDataWhereParam interface { +type serviceCursorParam struct { + data builder.Field + query builder.Query +} + +func (p serviceCursorParam) field() builder.Field { + return p.data +} + +func (p serviceCursorParam) isCursor() {} + +func (p serviceCursorParam) getQuery() builder.Query { + return p.query +} + +func (p serviceCursorParam) serviceModel() {} + +type ServiceParamUnique interface { field() builder.Field getQuery() builder.Query - stepRunEventModel() - dataField() + unique() + serviceModel() } -type stepRunEventWithPrismaDataEqualsParam struct { +type serviceParamUnique struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaDataEqualsParam) field() builder.Field { +func (p serviceParamUnique) serviceModel() {} + +func (serviceParamUnique) unique() {} + +func (p serviceParamUnique) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaDataEqualsParam) getQuery() builder.Query { +func (p serviceParamUnique) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaDataEqualsParam) stepRunEventModel() {} +type ServiceEqualsWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + serviceModel() +} -func (p stepRunEventWithPrismaDataEqualsParam) dataField() {} +type serviceEqualsParam struct { + data builder.Field + query builder.Query +} -func (stepRunEventWithPrismaDataSetParam) settable() {} -func (stepRunEventWithPrismaDataEqualsParam) equals() {} +func (p serviceEqualsParam) serviceModel() {} -type stepRunEventWithPrismaDataEqualsUniqueParam struct { +func (serviceEqualsParam) equals() {} + +func (p serviceEqualsParam) field() builder.Field { + return p.data +} + +func (p serviceEqualsParam) getQuery() builder.Query { + return p.query +} + +type ServiceEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + serviceModel() +} + +type serviceEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunEventWithPrismaDataEqualsUniqueParam) field() builder.Field { +func (p serviceEqualsUniqueParam) serviceModel() {} + +func (serviceEqualsUniqueParam) unique() {} +func (serviceEqualsUniqueParam) equals() {} + +func (p serviceEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunEventWithPrismaDataEqualsUniqueParam) getQuery() builder.Query { +func (p serviceEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunEventWithPrismaDataEqualsUniqueParam) stepRunEventModel() {} -func (p stepRunEventWithPrismaDataEqualsUniqueParam) dataField() {} +type ServiceSetParam interface { + field() builder.Field + settable() + serviceModel() +} -func (stepRunEventWithPrismaDataEqualsUniqueParam) unique() {} -func (stepRunEventWithPrismaDataEqualsUniqueParam) equals() {} +type serviceSetParam struct { + data builder.Field +} -type stepRunResultArchiveActions struct { - // client holds the prisma client - client *PrismaClient +func (serviceSetParam) settable() {} + +func (p serviceSetParam) field() builder.Field { + return p.data } -var stepRunResultArchiveOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "stepRunId"}, - {Name: "order"}, - {Name: "input"}, - {Name: "output"}, - {Name: "error"}, - {Name: "startedAt"}, - {Name: "finishedAt"}, - {Name: "timeoutAt"}, - {Name: "cancelledAt"}, - {Name: "cancelledReason"}, - {Name: "cancelledError"}, +func (p serviceSetParam) serviceModel() {} + +type ServiceWithPrismaIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + serviceModel() + idField() } -type StepRunResultArchiveRelationWith interface { +type ServiceWithPrismaIDSetParam interface { + field() builder.Field getQuery() builder.Query - with() - stepRunResultArchiveRelation() + serviceModel() + idField() } -type StepRunResultArchiveWhereParam interface { +type serviceWithPrismaIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p serviceWithPrismaIDSetParam) field() builder.Field { + return p.data +} + +func (p serviceWithPrismaIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p serviceWithPrismaIDSetParam) serviceModel() {} + +func (p serviceWithPrismaIDSetParam) idField() {} + +type ServiceWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() + serviceModel() + idField() } -type stepRunResultArchiveDefaultParam struct { +type serviceWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveDefaultParam) field() builder.Field { +func (p serviceWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveDefaultParam) getQuery() builder.Query { +func (p serviceWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveDefaultParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaIDEqualsParam) serviceModel() {} -type StepRunResultArchiveOrderByParam interface { - field() builder.Field - getQuery() builder.Query - stepRunResultArchiveModel() -} +func (p serviceWithPrismaIDEqualsParam) idField() {} -type stepRunResultArchiveOrderByParam struct { +func (serviceWithPrismaIDSetParam) settable() {} +func (serviceWithPrismaIDEqualsParam) equals() {} + +type serviceWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveOrderByParam) field() builder.Field { +func (p serviceWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveOrderByParam) getQuery() builder.Query { +func (p serviceWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveOrderByParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaIDEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaIDEqualsUniqueParam) idField() {} -type StepRunResultArchiveCursorParam interface { +func (serviceWithPrismaIDEqualsUniqueParam) unique() {} +func (serviceWithPrismaIDEqualsUniqueParam) equals() {} + +type ServiceWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - isCursor() + equals() + serviceModel() + createdAtField() } -type stepRunResultArchiveCursorParam struct { +type ServiceWithPrismaCreatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + serviceModel() + createdAtField() +} + +type serviceWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveCursorParam) field() builder.Field { +func (p serviceWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveCursorParam) isCursor() {} - -func (p stepRunResultArchiveCursorParam) getQuery() builder.Query { +func (p serviceWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveCursorParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaCreatedAtSetParam) serviceModel() {} -type StepRunResultArchiveParamUnique interface { +func (p serviceWithPrismaCreatedAtSetParam) createdAtField() {} + +type ServiceWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - unique() - stepRunResultArchiveModel() + serviceModel() + createdAtField() } -type stepRunResultArchiveParamUnique struct { +type serviceWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveParamUnique) stepRunResultArchiveModel() {} +func (p serviceWithPrismaCreatedAtEqualsParam) field() builder.Field { + return p.data +} -func (stepRunResultArchiveParamUnique) unique() {} +func (p serviceWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { + return p.query +} -func (p stepRunResultArchiveParamUnique) field() builder.Field { +func (p serviceWithPrismaCreatedAtEqualsParam) serviceModel() {} + +func (p serviceWithPrismaCreatedAtEqualsParam) createdAtField() {} + +func (serviceWithPrismaCreatedAtSetParam) settable() {} +func (serviceWithPrismaCreatedAtEqualsParam) equals() {} + +type serviceWithPrismaCreatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p serviceWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveParamUnique) getQuery() builder.Query { +func (p serviceWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -type StepRunResultArchiveEqualsWhereParam interface { +func (p serviceWithPrismaCreatedAtEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + +func (serviceWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (serviceWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type ServiceWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() + serviceModel() + updatedAtField() } -type stepRunResultArchiveEqualsParam struct { +type ServiceWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + serviceModel() + updatedAtField() +} + +type serviceWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveEqualsParam) stepRunResultArchiveModel() {} - -func (stepRunResultArchiveEqualsParam) equals() {} - -func (p stepRunResultArchiveEqualsParam) field() builder.Field { +func (p serviceWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveEqualsParam) getQuery() builder.Query { +func (p serviceWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -type StepRunResultArchiveEqualsUniqueWhereParam interface { +func (p serviceWithPrismaUpdatedAtSetParam) serviceModel() {} + +func (p serviceWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type ServiceWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - unique() - stepRunResultArchiveModel() + serviceModel() + updatedAtField() } -type stepRunResultArchiveEqualsUniqueParam struct { +type serviceWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveEqualsUniqueParam) stepRunResultArchiveModel() {} - -func (stepRunResultArchiveEqualsUniqueParam) unique() {} -func (stepRunResultArchiveEqualsUniqueParam) equals() {} - -func (p stepRunResultArchiveEqualsUniqueParam) field() builder.Field { +func (p serviceWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveEqualsUniqueParam) getQuery() builder.Query { +func (p serviceWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -type StepRunResultArchiveSetParam interface { - field() builder.Field - settable() - stepRunResultArchiveModel() -} +func (p serviceWithPrismaUpdatedAtEqualsParam) serviceModel() {} -type stepRunResultArchiveSetParam struct { - data builder.Field -} +func (p serviceWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (stepRunResultArchiveSetParam) settable() {} +func (serviceWithPrismaUpdatedAtSetParam) settable() {} +func (serviceWithPrismaUpdatedAtEqualsParam) equals() {} -func (p stepRunResultArchiveSetParam) field() builder.Field { +type serviceWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p serviceWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveSetParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} -type StepRunResultArchiveWithPrismaIDEqualsSetParam interface { +func (p serviceWithPrismaUpdatedAtEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (serviceWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (serviceWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type ServiceWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - idField() + serviceModel() + deletedAtField() } -type StepRunResultArchiveWithPrismaIDSetParam interface { +type ServiceWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - idField() + serviceModel() + deletedAtField() } -type stepRunResultArchiveWithPrismaIDSetParam struct { +type serviceWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaIDSetParam) field() builder.Field { +func (p serviceWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaIDSetParam) getQuery() builder.Query { +func (p serviceWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaIDSetParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaDeletedAtSetParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaIDSetParam) idField() {} +func (p serviceWithPrismaDeletedAtSetParam) deletedAtField() {} -type StepRunResultArchiveWithPrismaIDWhereParam interface { +type ServiceWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - idField() + serviceModel() + deletedAtField() } -type stepRunResultArchiveWithPrismaIDEqualsParam struct { +type serviceWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaIDEqualsParam) field() builder.Field { +func (p serviceWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p serviceWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaIDEqualsParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaDeletedAtEqualsParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaIDEqualsParam) idField() {} +func (p serviceWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (stepRunResultArchiveWithPrismaIDSetParam) settable() {} -func (stepRunResultArchiveWithPrismaIDEqualsParam) equals() {} +func (serviceWithPrismaDeletedAtSetParam) settable() {} +func (serviceWithPrismaDeletedAtEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaIDEqualsUniqueParam struct { +type serviceWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p serviceWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p serviceWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaIDEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaIDEqualsUniqueParam) idField() {} +func (p serviceWithPrismaDeletedAtEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (stepRunResultArchiveWithPrismaIDEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaIDEqualsUniqueParam) equals() {} +func (serviceWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (serviceWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaCreatedAtEqualsSetParam interface { +type ServiceWithPrismaNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - createdAtField() + serviceModel() + nameField() } -type StepRunResultArchiveWithPrismaCreatedAtSetParam interface { +type ServiceWithPrismaNameSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - createdAtField() + serviceModel() + nameField() } -type stepRunResultArchiveWithPrismaCreatedAtSetParam struct { +type serviceWithPrismaNameSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCreatedAtSetParam) field() builder.Field { +func (p serviceWithPrismaNameSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p serviceWithPrismaNameSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCreatedAtSetParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaNameSetParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaCreatedAtSetParam) createdAtField() {} +func (p serviceWithPrismaNameSetParam) nameField() {} -type StepRunResultArchiveWithPrismaCreatedAtWhereParam interface { +type ServiceWithPrismaNameWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - createdAtField() + serviceModel() + nameField() } -type stepRunResultArchiveWithPrismaCreatedAtEqualsParam struct { +type serviceWithPrismaNameEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p serviceWithPrismaNameEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p serviceWithPrismaNameEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCreatedAtEqualsParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaNameEqualsParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p serviceWithPrismaNameEqualsParam) nameField() {} -func (stepRunResultArchiveWithPrismaCreatedAtSetParam) settable() {} -func (stepRunResultArchiveWithPrismaCreatedAtEqualsParam) equals() {} +func (serviceWithPrismaNameSetParam) settable() {} +func (serviceWithPrismaNameEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam struct { +type serviceWithPrismaNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p serviceWithPrismaNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p serviceWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p serviceWithPrismaNameEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaNameEqualsUniqueParam) nameField() {} -func (stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (serviceWithPrismaNameEqualsUniqueParam) unique() {} +func (serviceWithPrismaNameEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaUpdatedAtEqualsSetParam interface { +type ServiceWithPrismaDescriptionEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - updatedAtField() + serviceModel() + descriptionField() } -type StepRunResultArchiveWithPrismaUpdatedAtSetParam interface { +type ServiceWithPrismaDescriptionSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - updatedAtField() + serviceModel() + descriptionField() } -type stepRunResultArchiveWithPrismaUpdatedAtSetParam struct { +type serviceWithPrismaDescriptionSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p serviceWithPrismaDescriptionSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p serviceWithPrismaDescriptionSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaUpdatedAtSetParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaDescriptionSetParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p serviceWithPrismaDescriptionSetParam) descriptionField() {} -type StepRunResultArchiveWithPrismaUpdatedAtWhereParam interface { +type ServiceWithPrismaDescriptionWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - updatedAtField() + serviceModel() + descriptionField() } -type stepRunResultArchiveWithPrismaUpdatedAtEqualsParam struct { +type serviceWithPrismaDescriptionEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p serviceWithPrismaDescriptionEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p serviceWithPrismaDescriptionEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaDescriptionEqualsParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p serviceWithPrismaDescriptionEqualsParam) descriptionField() {} -func (stepRunResultArchiveWithPrismaUpdatedAtSetParam) settable() {} -func (stepRunResultArchiveWithPrismaUpdatedAtEqualsParam) equals() {} +func (serviceWithPrismaDescriptionSetParam) settable() {} +func (serviceWithPrismaDescriptionEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam struct { +type serviceWithPrismaDescriptionEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p serviceWithPrismaDescriptionEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p serviceWithPrismaDescriptionEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p serviceWithPrismaDescriptionEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaDescriptionEqualsUniqueParam) descriptionField() {} -func (stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (serviceWithPrismaDescriptionEqualsUniqueParam) unique() {} +func (serviceWithPrismaDescriptionEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaDeletedAtEqualsSetParam interface { +type ServiceWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - deletedAtField() + serviceModel() + tenantField() } -type StepRunResultArchiveWithPrismaDeletedAtSetParam interface { +type ServiceWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - deletedAtField() + serviceModel() + tenantField() } -type stepRunResultArchiveWithPrismaDeletedAtSetParam struct { +type serviceWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaDeletedAtSetParam) field() builder.Field { +func (p serviceWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p serviceWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaDeletedAtSetParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaTenantSetParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p serviceWithPrismaTenantSetParam) tenantField() {} -type StepRunResultArchiveWithPrismaDeletedAtWhereParam interface { +type ServiceWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - deletedAtField() + serviceModel() + tenantField() } -type stepRunResultArchiveWithPrismaDeletedAtEqualsParam struct { +type serviceWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p serviceWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p serviceWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaDeletedAtEqualsParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaTenantEqualsParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p serviceWithPrismaTenantEqualsParam) tenantField() {} -func (stepRunResultArchiveWithPrismaDeletedAtSetParam) settable() {} -func (stepRunResultArchiveWithPrismaDeletedAtEqualsParam) equals() {} +func (serviceWithPrismaTenantSetParam) settable() {} +func (serviceWithPrismaTenantEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam struct { +type serviceWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p serviceWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p serviceWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p serviceWithPrismaTenantEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (serviceWithPrismaTenantEqualsUniqueParam) unique() {} +func (serviceWithPrismaTenantEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaStepRunEqualsSetParam interface { +type ServiceWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - stepRunField() + serviceModel() + tenantIDField() } -type StepRunResultArchiveWithPrismaStepRunSetParam interface { +type ServiceWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - stepRunField() + serviceModel() + tenantIDField() } -type stepRunResultArchiveWithPrismaStepRunSetParam struct { +type serviceWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStepRunSetParam) field() builder.Field { +func (p serviceWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStepRunSetParam) getQuery() builder.Query { +func (p serviceWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStepRunSetParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaTenantIDSetParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaStepRunSetParam) stepRunField() {} +func (p serviceWithPrismaTenantIDSetParam) tenantIDField() {} -type StepRunResultArchiveWithPrismaStepRunWhereParam interface { +type ServiceWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - stepRunField() + serviceModel() + tenantIDField() } -type stepRunResultArchiveWithPrismaStepRunEqualsParam struct { +type serviceWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStepRunEqualsParam) field() builder.Field { +func (p serviceWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStepRunEqualsParam) getQuery() builder.Query { +func (p serviceWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStepRunEqualsParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaTenantIDEqualsParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaStepRunEqualsParam) stepRunField() {} +func (p serviceWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (stepRunResultArchiveWithPrismaStepRunSetParam) settable() {} -func (stepRunResultArchiveWithPrismaStepRunEqualsParam) equals() {} +func (serviceWithPrismaTenantIDSetParam) settable() {} +func (serviceWithPrismaTenantIDEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam struct { +type serviceWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) field() builder.Field { +func (p serviceWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { +func (p serviceWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) stepRunField() {} +func (p serviceWithPrismaTenantIDEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaStepRunEqualsUniqueParam) equals() {} +func (serviceWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (serviceWithPrismaTenantIDEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaStepRunIDEqualsSetParam interface { +type ServiceWithPrismaWorkersEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - stepRunIDField() + serviceModel() + workersField() } -type StepRunResultArchiveWithPrismaStepRunIDSetParam interface { +type ServiceWithPrismaWorkersSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - stepRunIDField() + serviceModel() + workersField() } -type stepRunResultArchiveWithPrismaStepRunIDSetParam struct { +type serviceWithPrismaWorkersSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStepRunIDSetParam) field() builder.Field { +func (p serviceWithPrismaWorkersSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStepRunIDSetParam) getQuery() builder.Query { +func (p serviceWithPrismaWorkersSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStepRunIDSetParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaWorkersSetParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaStepRunIDSetParam) stepRunIDField() {} +func (p serviceWithPrismaWorkersSetParam) workersField() {} -type StepRunResultArchiveWithPrismaStepRunIDWhereParam interface { +type ServiceWithPrismaWorkersWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - stepRunIDField() + serviceModel() + workersField() } -type stepRunResultArchiveWithPrismaStepRunIDEqualsParam struct { +type serviceWithPrismaWorkersEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStepRunIDEqualsParam) field() builder.Field { +func (p serviceWithPrismaWorkersEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { +func (p serviceWithPrismaWorkersEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStepRunIDEqualsParam) stepRunResultArchiveModel() {} +func (p serviceWithPrismaWorkersEqualsParam) serviceModel() {} -func (p stepRunResultArchiveWithPrismaStepRunIDEqualsParam) stepRunIDField() {} +func (p serviceWithPrismaWorkersEqualsParam) workersField() {} -func (stepRunResultArchiveWithPrismaStepRunIDSetParam) settable() {} -func (stepRunResultArchiveWithPrismaStepRunIDEqualsParam) equals() {} +func (serviceWithPrismaWorkersSetParam) settable() {} +func (serviceWithPrismaWorkersEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam struct { +type serviceWithPrismaWorkersEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { +func (p serviceWithPrismaWorkersEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { +func (p serviceWithPrismaWorkersEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} +func (p serviceWithPrismaWorkersEqualsUniqueParam) serviceModel() {} +func (p serviceWithPrismaWorkersEqualsUniqueParam) workersField() {} -func (stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaStepRunIDEqualsUniqueParam) equals() {} +func (serviceWithPrismaWorkersEqualsUniqueParam) unique() {} +func (serviceWithPrismaWorkersEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaOrderEqualsSetParam interface { - field() builder.Field +type tenantVcsProviderActions struct { + // client holds the prisma client + client *PrismaClient +} + +var tenantVcsProviderOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "vcsProvider"}, + {Name: "config"}, +} + +type TenantVcsProviderRelationWith interface { getQuery() builder.Query - equals() - stepRunResultArchiveModel() - orderField() + with() + tenantVcsProviderRelation() } -type StepRunResultArchiveWithPrismaOrderSetParam interface { +type TenantVcsProviderWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - orderField() + tenantVcsProviderModel() } -type stepRunResultArchiveWithPrismaOrderSetParam struct { +type tenantVcsProviderDefaultParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaOrderSetParam) field() builder.Field { +func (p tenantVcsProviderDefaultParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaOrderSetParam) getQuery() builder.Query { +func (p tenantVcsProviderDefaultParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaOrderSetParam) stepRunResultArchiveModel() {} - -func (p stepRunResultArchiveWithPrismaOrderSetParam) orderField() {} +func (p tenantVcsProviderDefaultParam) tenantVcsProviderModel() {} -type StepRunResultArchiveWithPrismaOrderWhereParam interface { +type TenantVcsProviderOrderByParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - orderField() + tenantVcsProviderModel() } -type stepRunResultArchiveWithPrismaOrderEqualsParam struct { +type tenantVcsProviderOrderByParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaOrderEqualsParam) field() builder.Field { +func (p tenantVcsProviderOrderByParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaOrderEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderOrderByParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaOrderEqualsParam) stepRunResultArchiveModel() {} - -func (p stepRunResultArchiveWithPrismaOrderEqualsParam) orderField() {} +func (p tenantVcsProviderOrderByParam) tenantVcsProviderModel() {} -func (stepRunResultArchiveWithPrismaOrderSetParam) settable() {} -func (stepRunResultArchiveWithPrismaOrderEqualsParam) equals() {} +type TenantVcsProviderCursorParam interface { + field() builder.Field + getQuery() builder.Query + tenantVcsProviderModel() + isCursor() +} -type stepRunResultArchiveWithPrismaOrderEqualsUniqueParam struct { +type tenantVcsProviderCursorParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderCursorParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderCursorParam) isCursor() {} + +func (p tenantVcsProviderCursorParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) orderField() {} - -func (stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaOrderEqualsUniqueParam) equals() {} - -type StepRunResultArchiveWithPrismaInputEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - stepRunResultArchiveModel() - inputField() -} +func (p tenantVcsProviderCursorParam) tenantVcsProviderModel() {} -type StepRunResultArchiveWithPrismaInputSetParam interface { +type TenantVcsProviderParamUnique interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - inputField() + unique() + tenantVcsProviderModel() } -type stepRunResultArchiveWithPrismaInputSetParam struct { +type tenantVcsProviderParamUnique struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaInputSetParam) field() builder.Field { +func (p tenantVcsProviderParamUnique) tenantVcsProviderModel() {} + +func (tenantVcsProviderParamUnique) unique() {} + +func (p tenantVcsProviderParamUnique) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaInputSetParam) getQuery() builder.Query { +func (p tenantVcsProviderParamUnique) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaInputSetParam) stepRunResultArchiveModel() {} - -func (p stepRunResultArchiveWithPrismaInputSetParam) inputField() {} - -type StepRunResultArchiveWithPrismaInputWhereParam interface { +type TenantVcsProviderEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - inputField() + equals() + tenantVcsProviderModel() } -type stepRunResultArchiveWithPrismaInputEqualsParam struct { +type tenantVcsProviderEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaInputEqualsParam) field() builder.Field { +func (p tenantVcsProviderEqualsParam) tenantVcsProviderModel() {} + +func (tenantVcsProviderEqualsParam) equals() {} + +func (p tenantVcsProviderEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaInputEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaInputEqualsParam) stepRunResultArchiveModel() {} - -func (p stepRunResultArchiveWithPrismaInputEqualsParam) inputField() {} - -func (stepRunResultArchiveWithPrismaInputSetParam) settable() {} -func (stepRunResultArchiveWithPrismaInputEqualsParam) equals() {} +type TenantVcsProviderEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + tenantVcsProviderModel() +} -type stepRunResultArchiveWithPrismaInputEqualsUniqueParam struct { +type tenantVcsProviderEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaInputEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderEqualsUniqueParam) tenantVcsProviderModel() {} + +func (tenantVcsProviderEqualsUniqueParam) unique() {} +func (tenantVcsProviderEqualsUniqueParam) equals() {} + +func (p tenantVcsProviderEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaInputEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaInputEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaInputEqualsUniqueParam) inputField() {} +type TenantVcsProviderSetParam interface { + field() builder.Field + settable() + tenantVcsProviderModel() +} -func (stepRunResultArchiveWithPrismaInputEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaInputEqualsUniqueParam) equals() {} +type tenantVcsProviderSetParam struct { + data builder.Field +} -type StepRunResultArchiveWithPrismaOutputEqualsSetParam interface { +func (tenantVcsProviderSetParam) settable() {} + +func (p tenantVcsProviderSetParam) field() builder.Field { + return p.data +} + +func (p tenantVcsProviderSetParam) tenantVcsProviderModel() {} + +type TenantVcsProviderWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - outputField() + tenantVcsProviderModel() + idField() } -type StepRunResultArchiveWithPrismaOutputSetParam interface { +type TenantVcsProviderWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - outputField() + tenantVcsProviderModel() + idField() } -type stepRunResultArchiveWithPrismaOutputSetParam struct { +type tenantVcsProviderWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaOutputSetParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaOutputSetParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaOutputSetParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaIDSetParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaOutputSetParam) outputField() {} +func (p tenantVcsProviderWithPrismaIDSetParam) idField() {} -type StepRunResultArchiveWithPrismaOutputWhereParam interface { +type TenantVcsProviderWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - outputField() + tenantVcsProviderModel() + idField() } -type stepRunResultArchiveWithPrismaOutputEqualsParam struct { +type tenantVcsProviderWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaOutputEqualsParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaOutputEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaOutputEqualsParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaIDEqualsParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaOutputEqualsParam) outputField() {} +func (p tenantVcsProviderWithPrismaIDEqualsParam) idField() {} -func (stepRunResultArchiveWithPrismaOutputSetParam) settable() {} -func (stepRunResultArchiveWithPrismaOutputEqualsParam) equals() {} +func (tenantVcsProviderWithPrismaIDSetParam) settable() {} +func (tenantVcsProviderWithPrismaIDEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaOutputEqualsUniqueParam struct { +type tenantVcsProviderWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) outputField() {} +func (p tenantVcsProviderWithPrismaIDEqualsUniqueParam) tenantVcsProviderModel() {} +func (p tenantVcsProviderWithPrismaIDEqualsUniqueParam) idField() {} -func (stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaOutputEqualsUniqueParam) equals() {} +func (tenantVcsProviderWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantVcsProviderWithPrismaIDEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaErrorEqualsSetParam interface { +type TenantVcsProviderWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - errorField() + tenantVcsProviderModel() + createdAtField() } -type StepRunResultArchiveWithPrismaErrorSetParam interface { +type TenantVcsProviderWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - errorField() + tenantVcsProviderModel() + createdAtField() } -type stepRunResultArchiveWithPrismaErrorSetParam struct { +type tenantVcsProviderWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaErrorSetParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaErrorSetParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaErrorSetParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaCreatedAtSetParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaErrorSetParam) errorField() {} +func (p tenantVcsProviderWithPrismaCreatedAtSetParam) createdAtField() {} -type StepRunResultArchiveWithPrismaErrorWhereParam interface { +type TenantVcsProviderWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - errorField() + tenantVcsProviderModel() + createdAtField() } -type stepRunResultArchiveWithPrismaErrorEqualsParam struct { +type tenantVcsProviderWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaErrorEqualsParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaErrorEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaErrorEqualsParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaCreatedAtEqualsParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaErrorEqualsParam) errorField() {} +func (p tenantVcsProviderWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (stepRunResultArchiveWithPrismaErrorSetParam) settable() {} -func (stepRunResultArchiveWithPrismaErrorEqualsParam) equals() {} +func (tenantVcsProviderWithPrismaCreatedAtSetParam) settable() {} +func (tenantVcsProviderWithPrismaCreatedAtEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaErrorEqualsUniqueParam struct { +type tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) errorField() {} +func (p tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) tenantVcsProviderModel() {} +func (p tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaErrorEqualsUniqueParam) equals() {} +func (tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaStartedAtEqualsSetParam interface { +type TenantVcsProviderWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - startedAtField() + tenantVcsProviderModel() + updatedAtField() } -type StepRunResultArchiveWithPrismaStartedAtSetParam interface { +type TenantVcsProviderWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - startedAtField() + tenantVcsProviderModel() + updatedAtField() } -type stepRunResultArchiveWithPrismaStartedAtSetParam struct { +type tenantVcsProviderWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStartedAtSetParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStartedAtSetParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStartedAtSetParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaUpdatedAtSetParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaStartedAtSetParam) startedAtField() {} +func (p tenantVcsProviderWithPrismaUpdatedAtSetParam) updatedAtField() {} -type StepRunResultArchiveWithPrismaStartedAtWhereParam interface { +type TenantVcsProviderWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - startedAtField() + tenantVcsProviderModel() + updatedAtField() } -type stepRunResultArchiveWithPrismaStartedAtEqualsParam struct { +type tenantVcsProviderWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStartedAtEqualsParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStartedAtEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStartedAtEqualsParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaUpdatedAtEqualsParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaStartedAtEqualsParam) startedAtField() {} +func (p tenantVcsProviderWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (stepRunResultArchiveWithPrismaStartedAtSetParam) settable() {} -func (stepRunResultArchiveWithPrismaStartedAtEqualsParam) equals() {} +func (tenantVcsProviderWithPrismaUpdatedAtSetParam) settable() {} +func (tenantVcsProviderWithPrismaUpdatedAtEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam struct { +type tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) startedAtField() {} +func (p tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) tenantVcsProviderModel() {} +func (p tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaStartedAtEqualsUniqueParam) equals() {} +func (tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaFinishedAtEqualsSetParam interface { +type TenantVcsProviderWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - finishedAtField() + tenantVcsProviderModel() + deletedAtField() } -type StepRunResultArchiveWithPrismaFinishedAtSetParam interface { +type TenantVcsProviderWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - finishedAtField() + tenantVcsProviderModel() + deletedAtField() } -type stepRunResultArchiveWithPrismaFinishedAtSetParam struct { +type tenantVcsProviderWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaFinishedAtSetParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaFinishedAtSetParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaFinishedAtSetParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaDeletedAtSetParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaFinishedAtSetParam) finishedAtField() {} +func (p tenantVcsProviderWithPrismaDeletedAtSetParam) deletedAtField() {} -type StepRunResultArchiveWithPrismaFinishedAtWhereParam interface { +type TenantVcsProviderWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - finishedAtField() + tenantVcsProviderModel() + deletedAtField() } -type stepRunResultArchiveWithPrismaFinishedAtEqualsParam struct { +type tenantVcsProviderWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaFinishedAtEqualsParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaFinishedAtEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaFinishedAtEqualsParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaDeletedAtEqualsParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaFinishedAtEqualsParam) finishedAtField() {} +func (p tenantVcsProviderWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (stepRunResultArchiveWithPrismaFinishedAtSetParam) settable() {} -func (stepRunResultArchiveWithPrismaFinishedAtEqualsParam) equals() {} +func (tenantVcsProviderWithPrismaDeletedAtSetParam) settable() {} +func (tenantVcsProviderWithPrismaDeletedAtEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam struct { +type tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) finishedAtField() {} +func (p tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) tenantVcsProviderModel() {} +func (p tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaFinishedAtEqualsUniqueParam) equals() {} +func (tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaTimeoutAtEqualsSetParam interface { +type TenantVcsProviderWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - timeoutAtField() + tenantVcsProviderModel() + tenantField() } -type StepRunResultArchiveWithPrismaTimeoutAtSetParam interface { +type TenantVcsProviderWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - timeoutAtField() + tenantVcsProviderModel() + tenantField() } -type stepRunResultArchiveWithPrismaTimeoutAtSetParam struct { +type tenantVcsProviderWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaTimeoutAtSetParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaTimeoutAtSetParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaTimeoutAtSetParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaTenantSetParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaTimeoutAtSetParam) timeoutAtField() {} +func (p tenantVcsProviderWithPrismaTenantSetParam) tenantField() {} -type StepRunResultArchiveWithPrismaTimeoutAtWhereParam interface { +type TenantVcsProviderWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - timeoutAtField() + tenantVcsProviderModel() + tenantField() } -type stepRunResultArchiveWithPrismaTimeoutAtEqualsParam struct { +type tenantVcsProviderWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaTenantEqualsParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) timeoutAtField() {} +func (p tenantVcsProviderWithPrismaTenantEqualsParam) tenantField() {} -func (stepRunResultArchiveWithPrismaTimeoutAtSetParam) settable() {} -func (stepRunResultArchiveWithPrismaTimeoutAtEqualsParam) equals() {} +func (tenantVcsProviderWithPrismaTenantSetParam) settable() {} +func (tenantVcsProviderWithPrismaTenantEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam struct { +type tenantVcsProviderWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) timeoutAtField() {} +func (p tenantVcsProviderWithPrismaTenantEqualsUniqueParam) tenantVcsProviderModel() {} +func (p tenantVcsProviderWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaTimeoutAtEqualsUniqueParam) equals() {} +func (tenantVcsProviderWithPrismaTenantEqualsUniqueParam) unique() {} +func (tenantVcsProviderWithPrismaTenantEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaCancelledAtEqualsSetParam interface { +type TenantVcsProviderWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - cancelledAtField() + tenantVcsProviderModel() + tenantIDField() } -type StepRunResultArchiveWithPrismaCancelledAtSetParam interface { +type TenantVcsProviderWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - cancelledAtField() + tenantVcsProviderModel() + tenantIDField() } -type stepRunResultArchiveWithPrismaCancelledAtSetParam struct { +type tenantVcsProviderWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledAtSetParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledAtSetParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledAtSetParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaTenantIDSetParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaCancelledAtSetParam) cancelledAtField() {} +func (p tenantVcsProviderWithPrismaTenantIDSetParam) tenantIDField() {} -type StepRunResultArchiveWithPrismaCancelledAtWhereParam interface { +type TenantVcsProviderWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - cancelledAtField() + tenantVcsProviderModel() + tenantIDField() } -type stepRunResultArchiveWithPrismaCancelledAtEqualsParam struct { +type tenantVcsProviderWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledAtEqualsParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledAtEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledAtEqualsParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaTenantIDEqualsParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaCancelledAtEqualsParam) cancelledAtField() {} +func (p tenantVcsProviderWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (stepRunResultArchiveWithPrismaCancelledAtSetParam) settable() {} -func (stepRunResultArchiveWithPrismaCancelledAtEqualsParam) equals() {} +func (tenantVcsProviderWithPrismaTenantIDSetParam) settable() {} +func (tenantVcsProviderWithPrismaTenantIDEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam struct { +type tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) cancelledAtField() {} +func (p tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) tenantVcsProviderModel() {} +func (p tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaCancelledAtEqualsUniqueParam) equals() {} +func (tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaCancelledReasonEqualsSetParam interface { +type TenantVcsProviderWithPrismaVcsProviderEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - cancelledReasonField() + tenantVcsProviderModel() + vcsProviderField() } -type StepRunResultArchiveWithPrismaCancelledReasonSetParam interface { +type TenantVcsProviderWithPrismaVcsProviderSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - cancelledReasonField() + tenantVcsProviderModel() + vcsProviderField() } -type stepRunResultArchiveWithPrismaCancelledReasonSetParam struct { +type tenantVcsProviderWithPrismaVcsProviderSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledReasonSetParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaVcsProviderSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledReasonSetParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaVcsProviderSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledReasonSetParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaVcsProviderSetParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaCancelledReasonSetParam) cancelledReasonField() {} +func (p tenantVcsProviderWithPrismaVcsProviderSetParam) vcsProviderField() {} -type StepRunResultArchiveWithPrismaCancelledReasonWhereParam interface { +type TenantVcsProviderWithPrismaVcsProviderWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - cancelledReasonField() + tenantVcsProviderModel() + vcsProviderField() } -type stepRunResultArchiveWithPrismaCancelledReasonEqualsParam struct { +type tenantVcsProviderWithPrismaVcsProviderEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaVcsProviderEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaVcsProviderEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaVcsProviderEqualsParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) cancelledReasonField() {} +func (p tenantVcsProviderWithPrismaVcsProviderEqualsParam) vcsProviderField() {} -func (stepRunResultArchiveWithPrismaCancelledReasonSetParam) settable() {} -func (stepRunResultArchiveWithPrismaCancelledReasonEqualsParam) equals() {} +func (tenantVcsProviderWithPrismaVcsProviderSetParam) settable() {} +func (tenantVcsProviderWithPrismaVcsProviderEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam struct { +type tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) cancelledReasonField() {} +func (p tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) tenantVcsProviderModel() {} +func (p tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) vcsProviderField() {} -func (stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaCancelledReasonEqualsUniqueParam) equals() {} +func (tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) unique() {} +func (tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) equals() {} -type StepRunResultArchiveWithPrismaCancelledErrorEqualsSetParam interface { +type TenantVcsProviderWithPrismaConfigEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - stepRunResultArchiveModel() - cancelledErrorField() + tenantVcsProviderModel() + configField() } -type StepRunResultArchiveWithPrismaCancelledErrorSetParam interface { +type TenantVcsProviderWithPrismaConfigSetParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - cancelledErrorField() + tenantVcsProviderModel() + configField() } -type stepRunResultArchiveWithPrismaCancelledErrorSetParam struct { +type tenantVcsProviderWithPrismaConfigSetParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledErrorSetParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaConfigSetParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledErrorSetParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaConfigSetParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledErrorSetParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaConfigSetParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaCancelledErrorSetParam) cancelledErrorField() {} +func (p tenantVcsProviderWithPrismaConfigSetParam) configField() {} -type StepRunResultArchiveWithPrismaCancelledErrorWhereParam interface { +type TenantVcsProviderWithPrismaConfigWhereParam interface { field() builder.Field getQuery() builder.Query - stepRunResultArchiveModel() - cancelledErrorField() + tenantVcsProviderModel() + configField() } -type stepRunResultArchiveWithPrismaCancelledErrorEqualsParam struct { +type tenantVcsProviderWithPrismaConfigEqualsParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaConfigEqualsParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaConfigEqualsParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) stepRunResultArchiveModel() {} +func (p tenantVcsProviderWithPrismaConfigEqualsParam) tenantVcsProviderModel() {} -func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) cancelledErrorField() {} +func (p tenantVcsProviderWithPrismaConfigEqualsParam) configField() {} -func (stepRunResultArchiveWithPrismaCancelledErrorSetParam) settable() {} -func (stepRunResultArchiveWithPrismaCancelledErrorEqualsParam) equals() {} +func (tenantVcsProviderWithPrismaConfigSetParam) settable() {} +func (tenantVcsProviderWithPrismaConfigEqualsParam) equals() {} -type stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam struct { +type tenantVcsProviderWithPrismaConfigEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) field() builder.Field { +func (p tenantVcsProviderWithPrismaConfigEqualsUniqueParam) field() builder.Field { return p.data } -func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) getQuery() builder.Query { +func (p tenantVcsProviderWithPrismaConfigEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) stepRunResultArchiveModel() {} -func (p stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) cancelledErrorField() {} +func (p tenantVcsProviderWithPrismaConfigEqualsUniqueParam) tenantVcsProviderModel() {} +func (p tenantVcsProviderWithPrismaConfigEqualsUniqueParam) configField() {} -func (stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) unique() {} -func (stepRunResultArchiveWithPrismaCancelledErrorEqualsUniqueParam) equals() {} +func (tenantVcsProviderWithPrismaConfigEqualsUniqueParam) unique() {} +func (tenantVcsProviderWithPrismaConfigEqualsUniqueParam) equals() {} -type dispatcherActions struct { +type tenantAlertEmailGroupActions struct { // client holds the prisma client client *PrismaClient } -var dispatcherOutput = []builder.Output{ +var tenantAlertEmailGroupOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, {Name: "deletedAt"}, - {Name: "lastHeartbeatAt"}, - {Name: "isActive"}, + {Name: "tenantId"}, + {Name: "emails"}, } -type DispatcherRelationWith interface { +type TenantAlertEmailGroupRelationWith interface { getQuery() builder.Query with() - dispatcherRelation() + tenantAlertEmailGroupRelation() } -type DispatcherWhereParam interface { +type TenantAlertEmailGroupWhereParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() } -type dispatcherDefaultParam struct { +type tenantAlertEmailGroupDefaultParam struct { data builder.Field query builder.Query } -func (p dispatcherDefaultParam) field() builder.Field { +func (p tenantAlertEmailGroupDefaultParam) field() builder.Field { return p.data } -func (p dispatcherDefaultParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupDefaultParam) getQuery() builder.Query { return p.query } -func (p dispatcherDefaultParam) dispatcherModel() {} +func (p tenantAlertEmailGroupDefaultParam) tenantAlertEmailGroupModel() {} -type DispatcherOrderByParam interface { +type TenantAlertEmailGroupOrderByParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() } -type dispatcherOrderByParam struct { +type tenantAlertEmailGroupOrderByParam struct { data builder.Field query builder.Query } -func (p dispatcherOrderByParam) field() builder.Field { +func (p tenantAlertEmailGroupOrderByParam) field() builder.Field { return p.data } -func (p dispatcherOrderByParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupOrderByParam) getQuery() builder.Query { return p.query } -func (p dispatcherOrderByParam) dispatcherModel() {} +func (p tenantAlertEmailGroupOrderByParam) tenantAlertEmailGroupModel() {} -type DispatcherCursorParam interface { +type TenantAlertEmailGroupCursorParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() isCursor() } -type dispatcherCursorParam struct { +type tenantAlertEmailGroupCursorParam struct { data builder.Field query builder.Query } -func (p dispatcherCursorParam) field() builder.Field { +func (p tenantAlertEmailGroupCursorParam) field() builder.Field { return p.data } -func (p dispatcherCursorParam) isCursor() {} +func (p tenantAlertEmailGroupCursorParam) isCursor() {} -func (p dispatcherCursorParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupCursorParam) getQuery() builder.Query { return p.query } -func (p dispatcherCursorParam) dispatcherModel() {} +func (p tenantAlertEmailGroupCursorParam) tenantAlertEmailGroupModel() {} -type DispatcherParamUnique interface { +type TenantAlertEmailGroupParamUnique interface { field() builder.Field getQuery() builder.Query unique() - dispatcherModel() + tenantAlertEmailGroupModel() } -type dispatcherParamUnique struct { +type tenantAlertEmailGroupParamUnique struct { data builder.Field query builder.Query } -func (p dispatcherParamUnique) dispatcherModel() {} +func (p tenantAlertEmailGroupParamUnique) tenantAlertEmailGroupModel() {} -func (dispatcherParamUnique) unique() {} +func (tenantAlertEmailGroupParamUnique) unique() {} -func (p dispatcherParamUnique) field() builder.Field { +func (p tenantAlertEmailGroupParamUnique) field() builder.Field { return p.data } -func (p dispatcherParamUnique) getQuery() builder.Query { +func (p tenantAlertEmailGroupParamUnique) getQuery() builder.Query { return p.query } -type DispatcherEqualsWhereParam interface { +type TenantAlertEmailGroupEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - dispatcherModel() + tenantAlertEmailGroupModel() } -type dispatcherEqualsParam struct { +type tenantAlertEmailGroupEqualsParam struct { data builder.Field query builder.Query } -func (p dispatcherEqualsParam) dispatcherModel() {} +func (p tenantAlertEmailGroupEqualsParam) tenantAlertEmailGroupModel() {} -func (dispatcherEqualsParam) equals() {} +func (tenantAlertEmailGroupEqualsParam) equals() {} -func (p dispatcherEqualsParam) field() builder.Field { +func (p tenantAlertEmailGroupEqualsParam) field() builder.Field { return p.data } -func (p dispatcherEqualsParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupEqualsParam) getQuery() builder.Query { return p.query } -type DispatcherEqualsUniqueWhereParam interface { +type TenantAlertEmailGroupEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - dispatcherModel() + tenantAlertEmailGroupModel() } -type dispatcherEqualsUniqueParam struct { +type tenantAlertEmailGroupEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p dispatcherEqualsUniqueParam) dispatcherModel() {} +func (p tenantAlertEmailGroupEqualsUniqueParam) tenantAlertEmailGroupModel() {} -func (dispatcherEqualsUniqueParam) unique() {} -func (dispatcherEqualsUniqueParam) equals() {} +func (tenantAlertEmailGroupEqualsUniqueParam) unique() {} +func (tenantAlertEmailGroupEqualsUniqueParam) equals() {} -func (p dispatcherEqualsUniqueParam) field() builder.Field { +func (p tenantAlertEmailGroupEqualsUniqueParam) field() builder.Field { return p.data } -func (p dispatcherEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupEqualsUniqueParam) getQuery() builder.Query { return p.query } -type DispatcherSetParam interface { +type TenantAlertEmailGroupSetParam interface { field() builder.Field settable() - dispatcherModel() + tenantAlertEmailGroupModel() } -type dispatcherSetParam struct { +type tenantAlertEmailGroupSetParam struct { data builder.Field } -func (dispatcherSetParam) settable() {} +func (tenantAlertEmailGroupSetParam) settable() {} -func (p dispatcherSetParam) field() builder.Field { +func (p tenantAlertEmailGroupSetParam) field() builder.Field { return p.data } -func (p dispatcherSetParam) dispatcherModel() {} +func (p tenantAlertEmailGroupSetParam) tenantAlertEmailGroupModel() {} -type DispatcherWithPrismaIDEqualsSetParam interface { +type TenantAlertEmailGroupWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - dispatcherModel() + tenantAlertEmailGroupModel() idField() } -type DispatcherWithPrismaIDSetParam interface { +type TenantAlertEmailGroupWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() idField() } -type dispatcherWithPrismaIDSetParam struct { +type tenantAlertEmailGroupWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaIDSetParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaIDSetParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaIDSetParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaIDSetParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaIDSetParam) idField() {} +func (p tenantAlertEmailGroupWithPrismaIDSetParam) idField() {} -type DispatcherWithPrismaIDWhereParam interface { +type TenantAlertEmailGroupWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() idField() } -type dispatcherWithPrismaIDEqualsParam struct { +type tenantAlertEmailGroupWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaIDEqualsParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaIDEqualsParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaIDEqualsParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaIDEqualsParam) idField() {} +func (p tenantAlertEmailGroupWithPrismaIDEqualsParam) idField() {} -func (dispatcherWithPrismaIDSetParam) settable() {} -func (dispatcherWithPrismaIDEqualsParam) equals() {} +func (tenantAlertEmailGroupWithPrismaIDSetParam) settable() {} +func (tenantAlertEmailGroupWithPrismaIDEqualsParam) equals() {} -type dispatcherWithPrismaIDEqualsUniqueParam struct { +type tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaIDEqualsUniqueParam) dispatcherModel() {} -func (p dispatcherWithPrismaIDEqualsUniqueParam) idField() {} +func (p tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) tenantAlertEmailGroupModel() {} +func (p tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) idField() {} -func (dispatcherWithPrismaIDEqualsUniqueParam) unique() {} -func (dispatcherWithPrismaIDEqualsUniqueParam) equals() {} +func (tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) unique() {} +func (tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) equals() {} -type DispatcherWithPrismaCreatedAtEqualsSetParam interface { +type TenantAlertEmailGroupWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - dispatcherModel() + tenantAlertEmailGroupModel() createdAtField() } -type DispatcherWithPrismaCreatedAtSetParam interface { +type TenantAlertEmailGroupWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() createdAtField() } -type dispatcherWithPrismaCreatedAtSetParam struct { +type tenantAlertEmailGroupWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaCreatedAtSetParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaCreatedAtSetParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaCreatedAtSetParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaCreatedAtSetParam) createdAtField() {} +func (p tenantAlertEmailGroupWithPrismaCreatedAtSetParam) createdAtField() {} -type DispatcherWithPrismaCreatedAtWhereParam interface { +type TenantAlertEmailGroupWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() createdAtField() } -type dispatcherWithPrismaCreatedAtEqualsParam struct { +type tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaCreatedAtEqualsParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (dispatcherWithPrismaCreatedAtSetParam) settable() {} -func (dispatcherWithPrismaCreatedAtEqualsParam) equals() {} +func (tenantAlertEmailGroupWithPrismaCreatedAtSetParam) settable() {} +func (tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) equals() {} -type dispatcherWithPrismaCreatedAtEqualsUniqueParam struct { +type tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaCreatedAtEqualsUniqueParam) dispatcherModel() {} -func (p dispatcherWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) tenantAlertEmailGroupModel() {} +func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (dispatcherWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (dispatcherWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type DispatcherWithPrismaUpdatedAtEqualsSetParam interface { +type TenantAlertEmailGroupWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - dispatcherModel() + tenantAlertEmailGroupModel() updatedAtField() } -type DispatcherWithPrismaUpdatedAtSetParam interface { +type TenantAlertEmailGroupWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() updatedAtField() } -type dispatcherWithPrismaUpdatedAtSetParam struct { +type tenantAlertEmailGroupWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaUpdatedAtSetParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) updatedAtField() {} -type DispatcherWithPrismaUpdatedAtWhereParam interface { +type TenantAlertEmailGroupWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() updatedAtField() } -type dispatcherWithPrismaUpdatedAtEqualsParam struct { +type tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaUpdatedAtEqualsParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) updatedAtField() {} -func (dispatcherWithPrismaUpdatedAtSetParam) settable() {} -func (dispatcherWithPrismaUpdatedAtEqualsParam) equals() {} +func (tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) settable() {} +func (tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) equals() {} -type dispatcherWithPrismaUpdatedAtEqualsUniqueParam struct { +type tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaUpdatedAtEqualsUniqueParam) dispatcherModel() {} -func (p dispatcherWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) tenantAlertEmailGroupModel() {} +func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (dispatcherWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (dispatcherWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type DispatcherWithPrismaDeletedAtEqualsSetParam interface { +type TenantAlertEmailGroupWithPrismaDeletedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - dispatcherModel() + tenantAlertEmailGroupModel() deletedAtField() } -type DispatcherWithPrismaDeletedAtSetParam interface { +type TenantAlertEmailGroupWithPrismaDeletedAtSetParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() deletedAtField() } -type dispatcherWithPrismaDeletedAtSetParam struct { +type tenantAlertEmailGroupWithPrismaDeletedAtSetParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaDeletedAtSetParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaDeletedAtSetParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaDeletedAtSetParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaDeletedAtSetParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaDeletedAtSetParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p tenantAlertEmailGroupWithPrismaDeletedAtSetParam) deletedAtField() {} -type DispatcherWithPrismaDeletedAtWhereParam interface { +type TenantAlertEmailGroupWithPrismaDeletedAtWhereParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() + tenantAlertEmailGroupModel() deletedAtField() } -type dispatcherWithPrismaDeletedAtEqualsParam struct { +type tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaDeletedAtEqualsParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) deletedAtField() {} -func (dispatcherWithPrismaDeletedAtSetParam) settable() {} -func (dispatcherWithPrismaDeletedAtEqualsParam) equals() {} +func (tenantAlertEmailGroupWithPrismaDeletedAtSetParam) settable() {} +func (tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) equals() {} -type dispatcherWithPrismaDeletedAtEqualsUniqueParam struct { +type tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaDeletedAtEqualsUniqueParam) dispatcherModel() {} -func (p dispatcherWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) tenantAlertEmailGroupModel() {} +func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} -func (dispatcherWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (dispatcherWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) equals() {} -type DispatcherWithPrismaLastHeartbeatAtEqualsSetParam interface { +type TenantAlertEmailGroupWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - dispatcherModel() - lastHeartbeatAtField() + tenantAlertEmailGroupModel() + tenantField() } -type DispatcherWithPrismaLastHeartbeatAtSetParam interface { +type TenantAlertEmailGroupWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() - lastHeartbeatAtField() + tenantAlertEmailGroupModel() + tenantField() } -type dispatcherWithPrismaLastHeartbeatAtSetParam struct { +type tenantAlertEmailGroupWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaLastHeartbeatAtSetParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaLastHeartbeatAtSetParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaLastHeartbeatAtSetParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaTenantSetParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaLastHeartbeatAtSetParam) lastHeartbeatAtField() {} +func (p tenantAlertEmailGroupWithPrismaTenantSetParam) tenantField() {} -type DispatcherWithPrismaLastHeartbeatAtWhereParam interface { +type TenantAlertEmailGroupWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() - lastHeartbeatAtField() + tenantAlertEmailGroupModel() + tenantField() } -type dispatcherWithPrismaLastHeartbeatAtEqualsParam struct { +type tenantAlertEmailGroupWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaLastHeartbeatAtEqualsParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaLastHeartbeatAtEqualsParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaLastHeartbeatAtEqualsParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaTenantEqualsParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaLastHeartbeatAtEqualsParam) lastHeartbeatAtField() {} +func (p tenantAlertEmailGroupWithPrismaTenantEqualsParam) tenantField() {} -func (dispatcherWithPrismaLastHeartbeatAtSetParam) settable() {} -func (dispatcherWithPrismaLastHeartbeatAtEqualsParam) equals() {} +func (tenantAlertEmailGroupWithPrismaTenantSetParam) settable() {} +func (tenantAlertEmailGroupWithPrismaTenantEqualsParam) equals() {} -type dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam struct { +type tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) dispatcherModel() {} -func (p dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) lastHeartbeatAtField() {} +func (p tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) tenantAlertEmailGroupModel() {} +func (p tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) unique() {} -func (dispatcherWithPrismaLastHeartbeatAtEqualsUniqueParam) equals() {} +func (tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) unique() {} +func (tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) equals() {} -type DispatcherWithPrismaIsActiveEqualsSetParam interface { +type TenantAlertEmailGroupWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - dispatcherModel() - isActiveField() + tenantAlertEmailGroupModel() + tenantIDField() } -type DispatcherWithPrismaIsActiveSetParam interface { +type TenantAlertEmailGroupWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() - isActiveField() + tenantAlertEmailGroupModel() + tenantIDField() } -type dispatcherWithPrismaIsActiveSetParam struct { +type tenantAlertEmailGroupWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaIsActiveSetParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaIsActiveSetParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaIsActiveSetParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaTenantIDSetParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaIsActiveSetParam) isActiveField() {} +func (p tenantAlertEmailGroupWithPrismaTenantIDSetParam) tenantIDField() {} -type DispatcherWithPrismaIsActiveWhereParam interface { +type TenantAlertEmailGroupWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() - isActiveField() + tenantAlertEmailGroupModel() + tenantIDField() } -type dispatcherWithPrismaIsActiveEqualsParam struct { +type tenantAlertEmailGroupWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaIsActiveEqualsParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaIsActiveEqualsParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaIsActiveEqualsParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaIsActiveEqualsParam) isActiveField() {} +func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (dispatcherWithPrismaIsActiveSetParam) settable() {} -func (dispatcherWithPrismaIsActiveEqualsParam) equals() {} +func (tenantAlertEmailGroupWithPrismaTenantIDSetParam) settable() {} +func (tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) equals() {} -type dispatcherWithPrismaIsActiveEqualsUniqueParam struct { +type tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaIsActiveEqualsUniqueParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaIsActiveEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaIsActiveEqualsUniqueParam) dispatcherModel() {} -func (p dispatcherWithPrismaIsActiveEqualsUniqueParam) isActiveField() {} +func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) tenantAlertEmailGroupModel() {} +func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (dispatcherWithPrismaIsActiveEqualsUniqueParam) unique() {} -func (dispatcherWithPrismaIsActiveEqualsUniqueParam) equals() {} +func (tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) equals() {} -type DispatcherWithPrismaWorkersEqualsSetParam interface { +type TenantAlertEmailGroupWithPrismaEmailsEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - dispatcherModel() - workersField() + tenantAlertEmailGroupModel() + emailsField() } -type DispatcherWithPrismaWorkersSetParam interface { +type TenantAlertEmailGroupWithPrismaEmailsSetParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() - workersField() + tenantAlertEmailGroupModel() + emailsField() } -type dispatcherWithPrismaWorkersSetParam struct { +type tenantAlertEmailGroupWithPrismaEmailsSetParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaWorkersSetParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaEmailsSetParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaWorkersSetParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaEmailsSetParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaWorkersSetParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaEmailsSetParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaWorkersSetParam) workersField() {} +func (p tenantAlertEmailGroupWithPrismaEmailsSetParam) emailsField() {} -type DispatcherWithPrismaWorkersWhereParam interface { +type TenantAlertEmailGroupWithPrismaEmailsWhereParam interface { field() builder.Field getQuery() builder.Query - dispatcherModel() - workersField() + tenantAlertEmailGroupModel() + emailsField() } -type dispatcherWithPrismaWorkersEqualsParam struct { +type tenantAlertEmailGroupWithPrismaEmailsEqualsParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaWorkersEqualsParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaEmailsEqualsParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaWorkersEqualsParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaEmailsEqualsParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaWorkersEqualsParam) dispatcherModel() {} +func (p tenantAlertEmailGroupWithPrismaEmailsEqualsParam) tenantAlertEmailGroupModel() {} -func (p dispatcherWithPrismaWorkersEqualsParam) workersField() {} +func (p tenantAlertEmailGroupWithPrismaEmailsEqualsParam) emailsField() {} -func (dispatcherWithPrismaWorkersSetParam) settable() {} -func (dispatcherWithPrismaWorkersEqualsParam) equals() {} +func (tenantAlertEmailGroupWithPrismaEmailsSetParam) settable() {} +func (tenantAlertEmailGroupWithPrismaEmailsEqualsParam) equals() {} -type dispatcherWithPrismaWorkersEqualsUniqueParam struct { +type tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p dispatcherWithPrismaWorkersEqualsUniqueParam) field() builder.Field { +func (p tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) field() builder.Field { return p.data } -func (p dispatcherWithPrismaWorkersEqualsUniqueParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p dispatcherWithPrismaWorkersEqualsUniqueParam) dispatcherModel() {} -func (p dispatcherWithPrismaWorkersEqualsUniqueParam) workersField() {} +func (p tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) tenantAlertEmailGroupModel() {} +func (p tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) emailsField() {} -func (dispatcherWithPrismaWorkersEqualsUniqueParam) unique() {} -func (dispatcherWithPrismaWorkersEqualsUniqueParam) equals() {} +func (tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) unique() {} +func (tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) equals() {} -type tickerActions struct { +type slackAppWebhookActions struct { // client holds the prisma client client *PrismaClient } -var tickerOutput = []builder.Output{ +var slackAppWebhookOutput = []builder.Output{ {Name: "id"}, {Name: "createdAt"}, {Name: "updatedAt"}, - {Name: "lastHeartbeatAt"}, - {Name: "isActive"}, + {Name: "deletedAt"}, + {Name: "tenantId"}, + {Name: "teamId"}, + {Name: "teamName"}, + {Name: "channelId"}, + {Name: "channelName"}, + {Name: "webhookURL"}, } -type TickerRelationWith interface { +type SlackAppWebhookRelationWith interface { getQuery() builder.Query with() - tickerRelation() + slackAppWebhookRelation() } -type TickerWhereParam interface { +type SlackAppWebhookWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() + slackAppWebhookModel() } -type tickerDefaultParam struct { +type slackAppWebhookDefaultParam struct { data builder.Field query builder.Query } -func (p tickerDefaultParam) field() builder.Field { +func (p slackAppWebhookDefaultParam) field() builder.Field { return p.data } -func (p tickerDefaultParam) getQuery() builder.Query { +func (p slackAppWebhookDefaultParam) getQuery() builder.Query { return p.query } -func (p tickerDefaultParam) tickerModel() {} +func (p slackAppWebhookDefaultParam) slackAppWebhookModel() {} -type TickerOrderByParam interface { +type SlackAppWebhookOrderByParam interface { field() builder.Field getQuery() builder.Query - tickerModel() + slackAppWebhookModel() } -type tickerOrderByParam struct { +type slackAppWebhookOrderByParam struct { data builder.Field query builder.Query } -func (p tickerOrderByParam) field() builder.Field { +func (p slackAppWebhookOrderByParam) field() builder.Field { return p.data } -func (p tickerOrderByParam) getQuery() builder.Query { +func (p slackAppWebhookOrderByParam) getQuery() builder.Query { return p.query } -func (p tickerOrderByParam) tickerModel() {} +func (p slackAppWebhookOrderByParam) slackAppWebhookModel() {} -type TickerCursorParam interface { +type SlackAppWebhookCursorParam interface { field() builder.Field getQuery() builder.Query - tickerModel() + slackAppWebhookModel() isCursor() } -type tickerCursorParam struct { +type slackAppWebhookCursorParam struct { data builder.Field query builder.Query } -func (p tickerCursorParam) field() builder.Field { +func (p slackAppWebhookCursorParam) field() builder.Field { return p.data } -func (p tickerCursorParam) isCursor() {} +func (p slackAppWebhookCursorParam) isCursor() {} -func (p tickerCursorParam) getQuery() builder.Query { +func (p slackAppWebhookCursorParam) getQuery() builder.Query { return p.query } -func (p tickerCursorParam) tickerModel() {} +func (p slackAppWebhookCursorParam) slackAppWebhookModel() {} -type TickerParamUnique interface { +type SlackAppWebhookParamUnique interface { field() builder.Field getQuery() builder.Query unique() - tickerModel() + slackAppWebhookModel() } -type tickerParamUnique struct { +type slackAppWebhookParamUnique struct { data builder.Field query builder.Query } -func (p tickerParamUnique) tickerModel() {} +func (p slackAppWebhookParamUnique) slackAppWebhookModel() {} -func (tickerParamUnique) unique() {} +func (slackAppWebhookParamUnique) unique() {} -func (p tickerParamUnique) field() builder.Field { +func (p slackAppWebhookParamUnique) field() builder.Field { return p.data } -func (p tickerParamUnique) getQuery() builder.Query { +func (p slackAppWebhookParamUnique) getQuery() builder.Query { return p.query } -type TickerEqualsWhereParam interface { +type SlackAppWebhookEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() + slackAppWebhookModel() } -type tickerEqualsParam struct { +type slackAppWebhookEqualsParam struct { data builder.Field query builder.Query } -func (p tickerEqualsParam) tickerModel() {} +func (p slackAppWebhookEqualsParam) slackAppWebhookModel() {} -func (tickerEqualsParam) equals() {} +func (slackAppWebhookEqualsParam) equals() {} -func (p tickerEqualsParam) field() builder.Field { +func (p slackAppWebhookEqualsParam) field() builder.Field { return p.data } -func (p tickerEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookEqualsParam) getQuery() builder.Query { return p.query } -type TickerEqualsUniqueWhereParam interface { +type SlackAppWebhookEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - tickerModel() + slackAppWebhookModel() } -type tickerEqualsUniqueParam struct { +type slackAppWebhookEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerEqualsUniqueParam) tickerModel() {} +func (p slackAppWebhookEqualsUniqueParam) slackAppWebhookModel() {} -func (tickerEqualsUniqueParam) unique() {} -func (tickerEqualsUniqueParam) equals() {} +func (slackAppWebhookEqualsUniqueParam) unique() {} +func (slackAppWebhookEqualsUniqueParam) equals() {} -func (p tickerEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookEqualsUniqueParam) getQuery() builder.Query { return p.query } -type TickerSetParam interface { +type SlackAppWebhookSetParam interface { field() builder.Field settable() - tickerModel() + slackAppWebhookModel() } -type tickerSetParam struct { +type slackAppWebhookSetParam struct { data builder.Field } -func (tickerSetParam) settable() {} +func (slackAppWebhookSetParam) settable() {} -func (p tickerSetParam) field() builder.Field { +func (p slackAppWebhookSetParam) field() builder.Field { return p.data } -func (p tickerSetParam) tickerModel() {} +func (p slackAppWebhookSetParam) slackAppWebhookModel() {} -type TickerWithPrismaIDEqualsSetParam interface { +type SlackAppWebhookWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() + slackAppWebhookModel() idField() } -type TickerWithPrismaIDSetParam interface { +type SlackAppWebhookWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() + slackAppWebhookModel() idField() } -type tickerWithPrismaIDSetParam struct { +type slackAppWebhookWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaIDSetParam) field() builder.Field { +func (p slackAppWebhookWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaIDSetParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaIDSetParam) tickerModel() {} +func (p slackAppWebhookWithPrismaIDSetParam) slackAppWebhookModel() {} -func (p tickerWithPrismaIDSetParam) idField() {} +func (p slackAppWebhookWithPrismaIDSetParam) idField() {} -type TickerWithPrismaIDWhereParam interface { +type SlackAppWebhookWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() + slackAppWebhookModel() idField() } -type tickerWithPrismaIDEqualsParam struct { +type slackAppWebhookWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaIDEqualsParam) field() builder.Field { +func (p slackAppWebhookWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaIDEqualsParam) tickerModel() {} +func (p slackAppWebhookWithPrismaIDEqualsParam) slackAppWebhookModel() {} -func (p tickerWithPrismaIDEqualsParam) idField() {} +func (p slackAppWebhookWithPrismaIDEqualsParam) idField() {} -func (tickerWithPrismaIDSetParam) settable() {} -func (tickerWithPrismaIDEqualsParam) equals() {} +func (slackAppWebhookWithPrismaIDSetParam) settable() {} +func (slackAppWebhookWithPrismaIDEqualsParam) equals() {} -type tickerWithPrismaIDEqualsUniqueParam struct { +type slackAppWebhookWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaIDEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaIDEqualsUniqueParam) idField() {} +func (p slackAppWebhookWithPrismaIDEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaIDEqualsUniqueParam) idField() {} -func (tickerWithPrismaIDEqualsUniqueParam) unique() {} -func (tickerWithPrismaIDEqualsUniqueParam) equals() {} +func (slackAppWebhookWithPrismaIDEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaIDEqualsUniqueParam) equals() {} -type TickerWithPrismaCreatedAtEqualsSetParam interface { +type SlackAppWebhookWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() + slackAppWebhookModel() createdAtField() } -type TickerWithPrismaCreatedAtSetParam interface { +type SlackAppWebhookWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() + slackAppWebhookModel() createdAtField() } -type tickerWithPrismaCreatedAtSetParam struct { +type slackAppWebhookWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaCreatedAtSetParam) field() builder.Field { +func (p slackAppWebhookWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaCreatedAtSetParam) tickerModel() {} +func (p slackAppWebhookWithPrismaCreatedAtSetParam) slackAppWebhookModel() {} -func (p tickerWithPrismaCreatedAtSetParam) createdAtField() {} +func (p slackAppWebhookWithPrismaCreatedAtSetParam) createdAtField() {} -type TickerWithPrismaCreatedAtWhereParam interface { +type SlackAppWebhookWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() + slackAppWebhookModel() createdAtField() } -type tickerWithPrismaCreatedAtEqualsParam struct { +type slackAppWebhookWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p slackAppWebhookWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaCreatedAtEqualsParam) tickerModel() {} +func (p slackAppWebhookWithPrismaCreatedAtEqualsParam) slackAppWebhookModel() {} -func (p tickerWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p slackAppWebhookWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (tickerWithPrismaCreatedAtSetParam) settable() {} -func (tickerWithPrismaCreatedAtEqualsParam) equals() {} +func (slackAppWebhookWithPrismaCreatedAtSetParam) settable() {} +func (slackAppWebhookWithPrismaCreatedAtEqualsParam) equals() {} -type tickerWithPrismaCreatedAtEqualsUniqueParam struct { +type slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaCreatedAtEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (tickerWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tickerWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type TickerWithPrismaUpdatedAtEqualsSetParam interface { +type SlackAppWebhookWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() + slackAppWebhookModel() updatedAtField() } -type TickerWithPrismaUpdatedAtSetParam interface { +type SlackAppWebhookWithPrismaUpdatedAtSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() + slackAppWebhookModel() updatedAtField() } -type tickerWithPrismaUpdatedAtSetParam struct { +type slackAppWebhookWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p slackAppWebhookWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaUpdatedAtSetParam) tickerModel() {} +func (p slackAppWebhookWithPrismaUpdatedAtSetParam) slackAppWebhookModel() {} + +func (p slackAppWebhookWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type SlackAppWebhookWithPrismaUpdatedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + slackAppWebhookModel() + updatedAtField() +} + +type slackAppWebhookWithPrismaUpdatedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaUpdatedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaUpdatedAtEqualsParam) slackAppWebhookModel() {} + +func (p slackAppWebhookWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (slackAppWebhookWithPrismaUpdatedAtSetParam) settable() {} +func (slackAppWebhookWithPrismaUpdatedAtEqualsParam) equals() {} + +type slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + +func (slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + +type SlackAppWebhookWithPrismaDeletedAtEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + slackAppWebhookModel() + deletedAtField() +} + +type SlackAppWebhookWithPrismaDeletedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + slackAppWebhookModel() + deletedAtField() +} + +type slackAppWebhookWithPrismaDeletedAtSetParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaDeletedAtSetParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaDeletedAtSetParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaDeletedAtSetParam) slackAppWebhookModel() {} + +func (p slackAppWebhookWithPrismaDeletedAtSetParam) deletedAtField() {} + +type SlackAppWebhookWithPrismaDeletedAtWhereParam interface { + field() builder.Field + getQuery() builder.Query + slackAppWebhookModel() + deletedAtField() +} + +type slackAppWebhookWithPrismaDeletedAtEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaDeletedAtEqualsParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaDeletedAtEqualsParam) slackAppWebhookModel() {} + +func (p slackAppWebhookWithPrismaDeletedAtEqualsParam) deletedAtField() {} + +func (slackAppWebhookWithPrismaDeletedAtSetParam) settable() {} +func (slackAppWebhookWithPrismaDeletedAtEqualsParam) equals() {} + +type slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} + +func (slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) equals() {} + +type SlackAppWebhookWithPrismaTenantEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + slackAppWebhookModel() + tenantField() +} + +type SlackAppWebhookWithPrismaTenantSetParam interface { + field() builder.Field + getQuery() builder.Query + slackAppWebhookModel() + tenantField() +} + +type slackAppWebhookWithPrismaTenantSetParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaTenantSetParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaTenantSetParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaTenantSetParam) slackAppWebhookModel() {} + +func (p slackAppWebhookWithPrismaTenantSetParam) tenantField() {} + +type SlackAppWebhookWithPrismaTenantWhereParam interface { + field() builder.Field + getQuery() builder.Query + slackAppWebhookModel() + tenantField() +} + +type slackAppWebhookWithPrismaTenantEqualsParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaTenantEqualsParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaTenantEqualsParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaTenantEqualsParam) slackAppWebhookModel() {} + +func (p slackAppWebhookWithPrismaTenantEqualsParam) tenantField() {} + +func (slackAppWebhookWithPrismaTenantSetParam) settable() {} +func (slackAppWebhookWithPrismaTenantEqualsParam) equals() {} + +type slackAppWebhookWithPrismaTenantEqualsUniqueParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaTenantEqualsUniqueParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaTenantEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaTenantEqualsUniqueParam) tenantField() {} + +func (slackAppWebhookWithPrismaTenantEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaTenantEqualsUniqueParam) equals() {} + +type SlackAppWebhookWithPrismaTenantIDEqualsSetParam interface { + field() builder.Field + getQuery() builder.Query + equals() + slackAppWebhookModel() + tenantIDField() +} + +type SlackAppWebhookWithPrismaTenantIDSetParam interface { + field() builder.Field + getQuery() builder.Query + slackAppWebhookModel() + tenantIDField() +} + +type slackAppWebhookWithPrismaTenantIDSetParam struct { + data builder.Field + query builder.Query +} + +func (p slackAppWebhookWithPrismaTenantIDSetParam) field() builder.Field { + return p.data +} + +func (p slackAppWebhookWithPrismaTenantIDSetParam) getQuery() builder.Query { + return p.query +} + +func (p slackAppWebhookWithPrismaTenantIDSetParam) slackAppWebhookModel() {} -func (p tickerWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p slackAppWebhookWithPrismaTenantIDSetParam) tenantIDField() {} -type TickerWithPrismaUpdatedAtWhereParam interface { +type SlackAppWebhookWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - updatedAtField() + slackAppWebhookModel() + tenantIDField() } -type tickerWithPrismaUpdatedAtEqualsParam struct { +type slackAppWebhookWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p slackAppWebhookWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaUpdatedAtEqualsParam) tickerModel() {} +func (p slackAppWebhookWithPrismaTenantIDEqualsParam) slackAppWebhookModel() {} -func (p tickerWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p slackAppWebhookWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (tickerWithPrismaUpdatedAtSetParam) settable() {} -func (tickerWithPrismaUpdatedAtEqualsParam) equals() {} +func (slackAppWebhookWithPrismaTenantIDSetParam) settable() {} +func (slackAppWebhookWithPrismaTenantIDEqualsParam) equals() {} -type tickerWithPrismaUpdatedAtEqualsUniqueParam struct { +type slackAppWebhookWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaUpdatedAtEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (tickerWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tickerWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) equals() {} -type TickerWithPrismaLastHeartbeatAtEqualsSetParam interface { +type SlackAppWebhookWithPrismaTeamIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() - lastHeartbeatAtField() + slackAppWebhookModel() + teamIDField() } -type TickerWithPrismaLastHeartbeatAtSetParam interface { +type SlackAppWebhookWithPrismaTeamIDSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - lastHeartbeatAtField() + slackAppWebhookModel() + teamIDField() } -type tickerWithPrismaLastHeartbeatAtSetParam struct { +type slackAppWebhookWithPrismaTeamIDSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaLastHeartbeatAtSetParam) field() builder.Field { +func (p slackAppWebhookWithPrismaTeamIDSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaLastHeartbeatAtSetParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaTeamIDSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaLastHeartbeatAtSetParam) tickerModel() {} +func (p slackAppWebhookWithPrismaTeamIDSetParam) slackAppWebhookModel() {} -func (p tickerWithPrismaLastHeartbeatAtSetParam) lastHeartbeatAtField() {} +func (p slackAppWebhookWithPrismaTeamIDSetParam) teamIDField() {} -type TickerWithPrismaLastHeartbeatAtWhereParam interface { +type SlackAppWebhookWithPrismaTeamIDWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - lastHeartbeatAtField() + slackAppWebhookModel() + teamIDField() } -type tickerWithPrismaLastHeartbeatAtEqualsParam struct { +type slackAppWebhookWithPrismaTeamIDEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaLastHeartbeatAtEqualsParam) field() builder.Field { +func (p slackAppWebhookWithPrismaTeamIDEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaLastHeartbeatAtEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaTeamIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaLastHeartbeatAtEqualsParam) tickerModel() {} +func (p slackAppWebhookWithPrismaTeamIDEqualsParam) slackAppWebhookModel() {} -func (p tickerWithPrismaLastHeartbeatAtEqualsParam) lastHeartbeatAtField() {} +func (p slackAppWebhookWithPrismaTeamIDEqualsParam) teamIDField() {} -func (tickerWithPrismaLastHeartbeatAtSetParam) settable() {} -func (tickerWithPrismaLastHeartbeatAtEqualsParam) equals() {} +func (slackAppWebhookWithPrismaTeamIDSetParam) settable() {} +func (slackAppWebhookWithPrismaTeamIDEqualsParam) equals() {} -type tickerWithPrismaLastHeartbeatAtEqualsUniqueParam struct { +type slackAppWebhookWithPrismaTeamIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) lastHeartbeatAtField() {} +func (p slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) teamIDField() {} -func (tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) unique() {} -func (tickerWithPrismaLastHeartbeatAtEqualsUniqueParam) equals() {} +func (slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) equals() {} -type TickerWithPrismaIsActiveEqualsSetParam interface { +type SlackAppWebhookWithPrismaTeamNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() - isActiveField() + slackAppWebhookModel() + teamNameField() } -type TickerWithPrismaIsActiveSetParam interface { +type SlackAppWebhookWithPrismaTeamNameSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - isActiveField() + slackAppWebhookModel() + teamNameField() } -type tickerWithPrismaIsActiveSetParam struct { +type slackAppWebhookWithPrismaTeamNameSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaIsActiveSetParam) field() builder.Field { +func (p slackAppWebhookWithPrismaTeamNameSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaIsActiveSetParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaTeamNameSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaIsActiveSetParam) tickerModel() {} +func (p slackAppWebhookWithPrismaTeamNameSetParam) slackAppWebhookModel() {} -func (p tickerWithPrismaIsActiveSetParam) isActiveField() {} +func (p slackAppWebhookWithPrismaTeamNameSetParam) teamNameField() {} -type TickerWithPrismaIsActiveWhereParam interface { +type SlackAppWebhookWithPrismaTeamNameWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - isActiveField() + slackAppWebhookModel() + teamNameField() } -type tickerWithPrismaIsActiveEqualsParam struct { +type slackAppWebhookWithPrismaTeamNameEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaIsActiveEqualsParam) field() builder.Field { +func (p slackAppWebhookWithPrismaTeamNameEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaIsActiveEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaTeamNameEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaIsActiveEqualsParam) tickerModel() {} +func (p slackAppWebhookWithPrismaTeamNameEqualsParam) slackAppWebhookModel() {} -func (p tickerWithPrismaIsActiveEqualsParam) isActiveField() {} +func (p slackAppWebhookWithPrismaTeamNameEqualsParam) teamNameField() {} -func (tickerWithPrismaIsActiveSetParam) settable() {} -func (tickerWithPrismaIsActiveEqualsParam) equals() {} +func (slackAppWebhookWithPrismaTeamNameSetParam) settable() {} +func (slackAppWebhookWithPrismaTeamNameEqualsParam) equals() {} -type tickerWithPrismaIsActiveEqualsUniqueParam struct { +type slackAppWebhookWithPrismaTeamNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaIsActiveEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaIsActiveEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaIsActiveEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaIsActiveEqualsUniqueParam) isActiveField() {} +func (p slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) teamNameField() {} -func (tickerWithPrismaIsActiveEqualsUniqueParam) unique() {} -func (tickerWithPrismaIsActiveEqualsUniqueParam) equals() {} +func (slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) equals() {} -type TickerWithPrismaJobRunsEqualsSetParam interface { +type SlackAppWebhookWithPrismaChannelIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() - jobRunsField() + slackAppWebhookModel() + channelIDField() } -type TickerWithPrismaJobRunsSetParam interface { +type SlackAppWebhookWithPrismaChannelIDSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - jobRunsField() + slackAppWebhookModel() + channelIDField() } -type tickerWithPrismaJobRunsSetParam struct { +type slackAppWebhookWithPrismaChannelIDSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaJobRunsSetParam) field() builder.Field { +func (p slackAppWebhookWithPrismaChannelIDSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaJobRunsSetParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaChannelIDSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaJobRunsSetParam) tickerModel() {} +func (p slackAppWebhookWithPrismaChannelIDSetParam) slackAppWebhookModel() {} -func (p tickerWithPrismaJobRunsSetParam) jobRunsField() {} +func (p slackAppWebhookWithPrismaChannelIDSetParam) channelIDField() {} -type TickerWithPrismaJobRunsWhereParam interface { +type SlackAppWebhookWithPrismaChannelIDWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - jobRunsField() + slackAppWebhookModel() + channelIDField() } -type tickerWithPrismaJobRunsEqualsParam struct { +type slackAppWebhookWithPrismaChannelIDEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaJobRunsEqualsParam) field() builder.Field { +func (p slackAppWebhookWithPrismaChannelIDEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaJobRunsEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaChannelIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaJobRunsEqualsParam) tickerModel() {} +func (p slackAppWebhookWithPrismaChannelIDEqualsParam) slackAppWebhookModel() {} -func (p tickerWithPrismaJobRunsEqualsParam) jobRunsField() {} +func (p slackAppWebhookWithPrismaChannelIDEqualsParam) channelIDField() {} -func (tickerWithPrismaJobRunsSetParam) settable() {} -func (tickerWithPrismaJobRunsEqualsParam) equals() {} +func (slackAppWebhookWithPrismaChannelIDSetParam) settable() {} +func (slackAppWebhookWithPrismaChannelIDEqualsParam) equals() {} -type tickerWithPrismaJobRunsEqualsUniqueParam struct { +type slackAppWebhookWithPrismaChannelIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaJobRunsEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaJobRunsEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaJobRunsEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaJobRunsEqualsUniqueParam) jobRunsField() {} +func (p slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) channelIDField() {} -func (tickerWithPrismaJobRunsEqualsUniqueParam) unique() {} -func (tickerWithPrismaJobRunsEqualsUniqueParam) equals() {} +func (slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) equals() {} -type TickerWithPrismaStepRunsEqualsSetParam interface { +type SlackAppWebhookWithPrismaChannelNameEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() - stepRunsField() + slackAppWebhookModel() + channelNameField() } -type TickerWithPrismaStepRunsSetParam interface { +type SlackAppWebhookWithPrismaChannelNameSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - stepRunsField() + slackAppWebhookModel() + channelNameField() } -type tickerWithPrismaStepRunsSetParam struct { +type slackAppWebhookWithPrismaChannelNameSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaStepRunsSetParam) field() builder.Field { +func (p slackAppWebhookWithPrismaChannelNameSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaStepRunsSetParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaChannelNameSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaStepRunsSetParam) tickerModel() {} +func (p slackAppWebhookWithPrismaChannelNameSetParam) slackAppWebhookModel() {} -func (p tickerWithPrismaStepRunsSetParam) stepRunsField() {} +func (p slackAppWebhookWithPrismaChannelNameSetParam) channelNameField() {} -type TickerWithPrismaStepRunsWhereParam interface { +type SlackAppWebhookWithPrismaChannelNameWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - stepRunsField() + slackAppWebhookModel() + channelNameField() } -type tickerWithPrismaStepRunsEqualsParam struct { +type slackAppWebhookWithPrismaChannelNameEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaStepRunsEqualsParam) field() builder.Field { +func (p slackAppWebhookWithPrismaChannelNameEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaStepRunsEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaChannelNameEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaStepRunsEqualsParam) tickerModel() {} +func (p slackAppWebhookWithPrismaChannelNameEqualsParam) slackAppWebhookModel() {} -func (p tickerWithPrismaStepRunsEqualsParam) stepRunsField() {} +func (p slackAppWebhookWithPrismaChannelNameEqualsParam) channelNameField() {} -func (tickerWithPrismaStepRunsSetParam) settable() {} -func (tickerWithPrismaStepRunsEqualsParam) equals() {} +func (slackAppWebhookWithPrismaChannelNameSetParam) settable() {} +func (slackAppWebhookWithPrismaChannelNameEqualsParam) equals() {} -type tickerWithPrismaStepRunsEqualsUniqueParam struct { +type slackAppWebhookWithPrismaChannelNameEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaStepRunsEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} +func (p slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) channelNameField() {} -func (tickerWithPrismaStepRunsEqualsUniqueParam) unique() {} -func (tickerWithPrismaStepRunsEqualsUniqueParam) equals() {} +func (slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) equals() {} -type TickerWithPrismaCronsEqualsSetParam interface { +type SlackAppWebhookWithPrismaWebhookURLEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() - cronsField() + slackAppWebhookModel() + webhookURLField() } -type TickerWithPrismaCronsSetParam interface { +type SlackAppWebhookWithPrismaWebhookURLSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - cronsField() + slackAppWebhookModel() + webhookURLField() } -type tickerWithPrismaCronsSetParam struct { +type slackAppWebhookWithPrismaWebhookURLSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaCronsSetParam) field() builder.Field { +func (p slackAppWebhookWithPrismaWebhookURLSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaCronsSetParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaWebhookURLSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaCronsSetParam) tickerModel() {} +func (p slackAppWebhookWithPrismaWebhookURLSetParam) slackAppWebhookModel() {} -func (p tickerWithPrismaCronsSetParam) cronsField() {} +func (p slackAppWebhookWithPrismaWebhookURLSetParam) webhookURLField() {} -type TickerWithPrismaCronsWhereParam interface { +type SlackAppWebhookWithPrismaWebhookURLWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - cronsField() + slackAppWebhookModel() + webhookURLField() } -type tickerWithPrismaCronsEqualsParam struct { +type slackAppWebhookWithPrismaWebhookURLEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaCronsEqualsParam) field() builder.Field { +func (p slackAppWebhookWithPrismaWebhookURLEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaCronsEqualsParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaWebhookURLEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaCronsEqualsParam) tickerModel() {} +func (p slackAppWebhookWithPrismaWebhookURLEqualsParam) slackAppWebhookModel() {} -func (p tickerWithPrismaCronsEqualsParam) cronsField() {} +func (p slackAppWebhookWithPrismaWebhookURLEqualsParam) webhookURLField() {} -func (tickerWithPrismaCronsSetParam) settable() {} -func (tickerWithPrismaCronsEqualsParam) equals() {} +func (slackAppWebhookWithPrismaWebhookURLSetParam) settable() {} +func (slackAppWebhookWithPrismaWebhookURLEqualsParam) equals() {} -type tickerWithPrismaCronsEqualsUniqueParam struct { +type slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaCronsEqualsUniqueParam) field() builder.Field { +func (p slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaCronsEqualsUniqueParam) getQuery() builder.Query { +func (p slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaCronsEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaCronsEqualsUniqueParam) cronsField() {} +func (p slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) slackAppWebhookModel() {} +func (p slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) webhookURLField() {} -func (tickerWithPrismaCronsEqualsUniqueParam) unique() {} -func (tickerWithPrismaCronsEqualsUniqueParam) equals() {} +func (slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) unique() {} +func (slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) equals() {} -type TickerWithPrismaScheduledEqualsSetParam interface { - field() builder.Field +type logLineActions struct { + // client holds the prisma client + client *PrismaClient +} + +var logLineOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "tenantId"}, + {Name: "stepRunId"}, + {Name: "message"}, + {Name: "level"}, + {Name: "metadata"}, +} + +type LogLineRelationWith interface { getQuery() builder.Query - equals() - tickerModel() - scheduledField() + with() + logLineRelation() } -type TickerWithPrismaScheduledSetParam interface { +type LogLineWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - scheduledField() + logLineModel() } -type tickerWithPrismaScheduledSetParam struct { +type logLineDefaultParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaScheduledSetParam) field() builder.Field { +func (p logLineDefaultParam) field() builder.Field { return p.data } -func (p tickerWithPrismaScheduledSetParam) getQuery() builder.Query { +func (p logLineDefaultParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaScheduledSetParam) tickerModel() {} - -func (p tickerWithPrismaScheduledSetParam) scheduledField() {} +func (p logLineDefaultParam) logLineModel() {} -type TickerWithPrismaScheduledWhereParam interface { +type LogLineOrderByParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - scheduledField() + logLineModel() } -type tickerWithPrismaScheduledEqualsParam struct { +type logLineOrderByParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaScheduledEqualsParam) field() builder.Field { +func (p logLineOrderByParam) field() builder.Field { return p.data } -func (p tickerWithPrismaScheduledEqualsParam) getQuery() builder.Query { +func (p logLineOrderByParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaScheduledEqualsParam) tickerModel() {} - -func (p tickerWithPrismaScheduledEqualsParam) scheduledField() {} +func (p logLineOrderByParam) logLineModel() {} -func (tickerWithPrismaScheduledSetParam) settable() {} -func (tickerWithPrismaScheduledEqualsParam) equals() {} +type LogLineCursorParam interface { + field() builder.Field + getQuery() builder.Query + logLineModel() + isCursor() +} -type tickerWithPrismaScheduledEqualsUniqueParam struct { +type logLineCursorParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaScheduledEqualsUniqueParam) field() builder.Field { +func (p logLineCursorParam) field() builder.Field { return p.data } -func (p tickerWithPrismaScheduledEqualsUniqueParam) getQuery() builder.Query { +func (p logLineCursorParam) isCursor() {} + +func (p logLineCursorParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaScheduledEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaScheduledEqualsUniqueParam) scheduledField() {} - -func (tickerWithPrismaScheduledEqualsUniqueParam) unique() {} -func (tickerWithPrismaScheduledEqualsUniqueParam) equals() {} - -type TickerWithPrismaGroupKeyRunsEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tickerModel() - groupKeyRunsField() -} +func (p logLineCursorParam) logLineModel() {} -type TickerWithPrismaGroupKeyRunsSetParam interface { +type LogLineParamUnique interface { field() builder.Field getQuery() builder.Query - tickerModel() - groupKeyRunsField() + unique() + logLineModel() } -type tickerWithPrismaGroupKeyRunsSetParam struct { +type logLineParamUnique struct { data builder.Field query builder.Query } -func (p tickerWithPrismaGroupKeyRunsSetParam) field() builder.Field { +func (p logLineParamUnique) logLineModel() {} + +func (logLineParamUnique) unique() {} + +func (p logLineParamUnique) field() builder.Field { return p.data } -func (p tickerWithPrismaGroupKeyRunsSetParam) getQuery() builder.Query { +func (p logLineParamUnique) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaGroupKeyRunsSetParam) tickerModel() {} - -func (p tickerWithPrismaGroupKeyRunsSetParam) groupKeyRunsField() {} - -type TickerWithPrismaGroupKeyRunsWhereParam interface { +type LogLineEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - groupKeyRunsField() + equals() + logLineModel() } -type tickerWithPrismaGroupKeyRunsEqualsParam struct { +type logLineEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaGroupKeyRunsEqualsParam) field() builder.Field { +func (p logLineEqualsParam) logLineModel() {} + +func (logLineEqualsParam) equals() {} + +func (p logLineEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaGroupKeyRunsEqualsParam) getQuery() builder.Query { +func (p logLineEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaGroupKeyRunsEqualsParam) tickerModel() {} - -func (p tickerWithPrismaGroupKeyRunsEqualsParam) groupKeyRunsField() {} - -func (tickerWithPrismaGroupKeyRunsSetParam) settable() {} -func (tickerWithPrismaGroupKeyRunsEqualsParam) equals() {} +type LogLineEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + logLineModel() +} -type tickerWithPrismaGroupKeyRunsEqualsUniqueParam struct { +type logLineEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaGroupKeyRunsEqualsUniqueParam) field() builder.Field { +func (p logLineEqualsUniqueParam) logLineModel() {} + +func (logLineEqualsUniqueParam) unique() {} +func (logLineEqualsUniqueParam) equals() {} + +func (p logLineEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaGroupKeyRunsEqualsUniqueParam) getQuery() builder.Query { +func (p logLineEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaGroupKeyRunsEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaGroupKeyRunsEqualsUniqueParam) groupKeyRunsField() {} +type LogLineSetParam interface { + field() builder.Field + settable() + logLineModel() +} -func (tickerWithPrismaGroupKeyRunsEqualsUniqueParam) unique() {} -func (tickerWithPrismaGroupKeyRunsEqualsUniqueParam) equals() {} +type logLineSetParam struct { + data builder.Field +} -type TickerWithPrismaTenantAlertsEqualsSetParam interface { +func (logLineSetParam) settable() {} + +func (p logLineSetParam) field() builder.Field { + return p.data +} + +func (p logLineSetParam) logLineModel() {} + +type LogLineWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - tickerModel() - tenantAlertsField() + logLineModel() + idField() } -type TickerWithPrismaTenantAlertsSetParam interface { +type LogLineWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - tenantAlertsField() + logLineModel() + idField() } -type tickerWithPrismaTenantAlertsSetParam struct { +type logLineWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaTenantAlertsSetParam) field() builder.Field { +func (p logLineWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p tickerWithPrismaTenantAlertsSetParam) getQuery() builder.Query { +func (p logLineWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaTenantAlertsSetParam) tickerModel() {} +func (p logLineWithPrismaIDSetParam) logLineModel() {} -func (p tickerWithPrismaTenantAlertsSetParam) tenantAlertsField() {} +func (p logLineWithPrismaIDSetParam) idField() {} -type TickerWithPrismaTenantAlertsWhereParam interface { +type LogLineWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - tickerModel() - tenantAlertsField() + logLineModel() + idField() } -type tickerWithPrismaTenantAlertsEqualsParam struct { +type logLineWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaTenantAlertsEqualsParam) field() builder.Field { +func (p logLineWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p tickerWithPrismaTenantAlertsEqualsParam) getQuery() builder.Query { +func (p logLineWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaTenantAlertsEqualsParam) tickerModel() {} +func (p logLineWithPrismaIDEqualsParam) logLineModel() {} -func (p tickerWithPrismaTenantAlertsEqualsParam) tenantAlertsField() {} +func (p logLineWithPrismaIDEqualsParam) idField() {} -func (tickerWithPrismaTenantAlertsSetParam) settable() {} -func (tickerWithPrismaTenantAlertsEqualsParam) equals() {} +func (logLineWithPrismaIDSetParam) settable() {} +func (logLineWithPrismaIDEqualsParam) equals() {} -type tickerWithPrismaTenantAlertsEqualsUniqueParam struct { +type logLineWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p tickerWithPrismaTenantAlertsEqualsUniqueParam) field() builder.Field { +func (p logLineWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p tickerWithPrismaTenantAlertsEqualsUniqueParam) getQuery() builder.Query { +func (p logLineWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p tickerWithPrismaTenantAlertsEqualsUniqueParam) tickerModel() {} -func (p tickerWithPrismaTenantAlertsEqualsUniqueParam) tenantAlertsField() {} - -func (tickerWithPrismaTenantAlertsEqualsUniqueParam) unique() {} -func (tickerWithPrismaTenantAlertsEqualsUniqueParam) equals() {} - -type workerActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p logLineWithPrismaIDEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaIDEqualsUniqueParam) idField() {} -var workerOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "lastHeartbeatAt"}, - {Name: "isActive"}, - {Name: "lastListenerEstablished"}, - {Name: "name"}, - {Name: "dispatcherId"}, - {Name: "maxRuns"}, -} +func (logLineWithPrismaIDEqualsUniqueParam) unique() {} +func (logLineWithPrismaIDEqualsUniqueParam) equals() {} -type WorkerRelationWith interface { +type LogLineWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - workerRelation() + equals() + logLineModel() + createdAtField() } -type WorkerWhereParam interface { +type LogLineWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() + logLineModel() + createdAtField() } -type workerDefaultParam struct { +type logLineWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p workerDefaultParam) field() builder.Field { +func (p logLineWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p workerDefaultParam) getQuery() builder.Query { +func (p logLineWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workerDefaultParam) workerModel() {} +func (p logLineWithPrismaCreatedAtSetParam) logLineModel() {} -type WorkerOrderByParam interface { +func (p logLineWithPrismaCreatedAtSetParam) createdAtField() {} + +type LogLineWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() + logLineModel() + createdAtField() } -type workerOrderByParam struct { +type logLineWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workerOrderByParam) field() builder.Field { +func (p logLineWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p workerOrderByParam) getQuery() builder.Query { +func (p logLineWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workerOrderByParam) workerModel() {} +func (p logLineWithPrismaCreatedAtEqualsParam) logLineModel() {} -type WorkerCursorParam interface { - field() builder.Field - getQuery() builder.Query - workerModel() - isCursor() -} +func (p logLineWithPrismaCreatedAtEqualsParam) createdAtField() {} -type workerCursorParam struct { +func (logLineWithPrismaCreatedAtSetParam) settable() {} +func (logLineWithPrismaCreatedAtEqualsParam) equals() {} + +type logLineWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerCursorParam) field() builder.Field { +func (p logLineWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerCursorParam) isCursor() {} - -func (p workerCursorParam) getQuery() builder.Query { +func (p logLineWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerCursorParam) workerModel() {} +func (p logLineWithPrismaCreatedAtEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -type WorkerParamUnique interface { +func (logLineWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (logLineWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type LogLineWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - workerModel() + equals() + logLineModel() + tenantField() } -type workerParamUnique struct { +type LogLineWithPrismaTenantSetParam interface { + field() builder.Field + getQuery() builder.Query + logLineModel() + tenantField() +} + +type logLineWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p workerParamUnique) workerModel() {} - -func (workerParamUnique) unique() {} - -func (p workerParamUnique) field() builder.Field { +func (p logLineWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p workerParamUnique) getQuery() builder.Query { +func (p logLineWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -type WorkerEqualsWhereParam interface { +func (p logLineWithPrismaTenantSetParam) logLineModel() {} + +func (p logLineWithPrismaTenantSetParam) tenantField() {} + +type LogLineWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - workerModel() + logLineModel() + tenantField() } -type workerEqualsParam struct { +type logLineWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p workerEqualsParam) workerModel() {} - -func (workerEqualsParam) equals() {} - -func (p workerEqualsParam) field() builder.Field { +func (p logLineWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p workerEqualsParam) getQuery() builder.Query { +func (p logLineWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -type WorkerEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - workerModel() -} +func (p logLineWithPrismaTenantEqualsParam) logLineModel() {} -type workerEqualsUniqueParam struct { +func (p logLineWithPrismaTenantEqualsParam) tenantField() {} + +func (logLineWithPrismaTenantSetParam) settable() {} +func (logLineWithPrismaTenantEqualsParam) equals() {} + +type logLineWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerEqualsUniqueParam) workerModel() {} - -func (workerEqualsUniqueParam) unique() {} -func (workerEqualsUniqueParam) equals() {} - -func (p workerEqualsUniqueParam) field() builder.Field { +func (p logLineWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerEqualsUniqueParam) getQuery() builder.Query { +func (p logLineWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkerSetParam interface { - field() builder.Field - settable() - workerModel() -} - -type workerSetParam struct { - data builder.Field -} - -func (workerSetParam) settable() {} - -func (p workerSetParam) field() builder.Field { - return p.data -} +func (p logLineWithPrismaTenantEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (p workerSetParam) workerModel() {} +func (logLineWithPrismaTenantEqualsUniqueParam) unique() {} +func (logLineWithPrismaTenantEqualsUniqueParam) equals() {} -type WorkerWithPrismaIDEqualsSetParam interface { +type LogLineWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - idField() + logLineModel() + tenantIDField() } -type WorkerWithPrismaIDSetParam interface { +type LogLineWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - idField() + logLineModel() + tenantIDField() } -type workerWithPrismaIDSetParam struct { +type logLineWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaIDSetParam) field() builder.Field { +func (p logLineWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaIDSetParam) getQuery() builder.Query { +func (p logLineWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaIDSetParam) workerModel() {} +func (p logLineWithPrismaTenantIDSetParam) logLineModel() {} -func (p workerWithPrismaIDSetParam) idField() {} +func (p logLineWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkerWithPrismaIDWhereParam interface { +type LogLineWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - idField() + logLineModel() + tenantIDField() } -type workerWithPrismaIDEqualsParam struct { +type logLineWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaIDEqualsParam) field() builder.Field { +func (p logLineWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p logLineWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaIDEqualsParam) workerModel() {} +func (p logLineWithPrismaTenantIDEqualsParam) logLineModel() {} -func (p workerWithPrismaIDEqualsParam) idField() {} +func (p logLineWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workerWithPrismaIDSetParam) settable() {} -func (workerWithPrismaIDEqualsParam) equals() {} +func (logLineWithPrismaTenantIDSetParam) settable() {} +func (logLineWithPrismaTenantIDEqualsParam) equals() {} -type workerWithPrismaIDEqualsUniqueParam struct { +type logLineWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p logLineWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p logLineWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaIDEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaIDEqualsUniqueParam) idField() {} +func (p logLineWithPrismaTenantIDEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workerWithPrismaIDEqualsUniqueParam) unique() {} -func (workerWithPrismaIDEqualsUniqueParam) equals() {} +func (logLineWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (logLineWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WorkerWithPrismaCreatedAtEqualsSetParam interface { +type LogLineWithPrismaStepRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - createdAtField() + logLineModel() + stepRunField() } -type WorkerWithPrismaCreatedAtSetParam interface { +type LogLineWithPrismaStepRunSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - createdAtField() + logLineModel() + stepRunField() } -type workerWithPrismaCreatedAtSetParam struct { +type logLineWithPrismaStepRunSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaCreatedAtSetParam) field() builder.Field { +func (p logLineWithPrismaStepRunSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p logLineWithPrismaStepRunSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaCreatedAtSetParam) workerModel() {} +func (p logLineWithPrismaStepRunSetParam) logLineModel() {} -func (p workerWithPrismaCreatedAtSetParam) createdAtField() {} +func (p logLineWithPrismaStepRunSetParam) stepRunField() {} -type WorkerWithPrismaCreatedAtWhereParam interface { +type LogLineWithPrismaStepRunWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - createdAtField() + logLineModel() + stepRunField() } -type workerWithPrismaCreatedAtEqualsParam struct { +type logLineWithPrismaStepRunEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaCreatedAtEqualsParam) field() builder.Field { +func (p logLineWithPrismaStepRunEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p logLineWithPrismaStepRunEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaCreatedAtEqualsParam) workerModel() {} +func (p logLineWithPrismaStepRunEqualsParam) logLineModel() {} -func (p workerWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (p logLineWithPrismaStepRunEqualsParam) stepRunField() {} -func (workerWithPrismaCreatedAtSetParam) settable() {} -func (workerWithPrismaCreatedAtEqualsParam) equals() {} +func (logLineWithPrismaStepRunSetParam) settable() {} +func (logLineWithPrismaStepRunEqualsParam) equals() {} -type workerWithPrismaCreatedAtEqualsUniqueParam struct { +type logLineWithPrismaStepRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { +func (p logLineWithPrismaStepRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p logLineWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaCreatedAtEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p logLineWithPrismaStepRunEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaStepRunEqualsUniqueParam) stepRunField() {} -func (workerWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (workerWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (logLineWithPrismaStepRunEqualsUniqueParam) unique() {} +func (logLineWithPrismaStepRunEqualsUniqueParam) equals() {} -type WorkerWithPrismaUpdatedAtEqualsSetParam interface { +type LogLineWithPrismaStepRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - updatedAtField() + logLineModel() + stepRunIDField() } -type WorkerWithPrismaUpdatedAtSetParam interface { +type LogLineWithPrismaStepRunIDSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - updatedAtField() + logLineModel() + stepRunIDField() } -type workerWithPrismaUpdatedAtSetParam struct { +type logLineWithPrismaStepRunIDSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaUpdatedAtSetParam) field() builder.Field { +func (p logLineWithPrismaStepRunIDSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p logLineWithPrismaStepRunIDSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaUpdatedAtSetParam) workerModel() {} +func (p logLineWithPrismaStepRunIDSetParam) logLineModel() {} -func (p workerWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (p logLineWithPrismaStepRunIDSetParam) stepRunIDField() {} -type WorkerWithPrismaUpdatedAtWhereParam interface { +type LogLineWithPrismaStepRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - updatedAtField() + logLineModel() + stepRunIDField() } -type workerWithPrismaUpdatedAtEqualsParam struct { +type logLineWithPrismaStepRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaUpdatedAtEqualsParam) field() builder.Field { +func (p logLineWithPrismaStepRunIDEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p logLineWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaUpdatedAtEqualsParam) workerModel() {} +func (p logLineWithPrismaStepRunIDEqualsParam) logLineModel() {} -func (p workerWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (p logLineWithPrismaStepRunIDEqualsParam) stepRunIDField() {} -func (workerWithPrismaUpdatedAtSetParam) settable() {} -func (workerWithPrismaUpdatedAtEqualsParam) equals() {} +func (logLineWithPrismaStepRunIDSetParam) settable() {} +func (logLineWithPrismaStepRunIDEqualsParam) equals() {} -type workerWithPrismaUpdatedAtEqualsUniqueParam struct { +type logLineWithPrismaStepRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { +func (p logLineWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { +func (p logLineWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaUpdatedAtEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +func (p logLineWithPrismaStepRunIDEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} -func (workerWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (workerWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (logLineWithPrismaStepRunIDEqualsUniqueParam) unique() {} +func (logLineWithPrismaStepRunIDEqualsUniqueParam) equals() {} -type WorkerWithPrismaDeletedAtEqualsSetParam interface { +type LogLineWithPrismaMessageEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - deletedAtField() + logLineModel() + messageField() } -type WorkerWithPrismaDeletedAtSetParam interface { +type LogLineWithPrismaMessageSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - deletedAtField() + logLineModel() + messageField() } -type workerWithPrismaDeletedAtSetParam struct { +type logLineWithPrismaMessageSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDeletedAtSetParam) field() builder.Field { +func (p logLineWithPrismaMessageSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p logLineWithPrismaMessageSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDeletedAtSetParam) workerModel() {} +func (p logLineWithPrismaMessageSetParam) logLineModel() {} -func (p workerWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p logLineWithPrismaMessageSetParam) messageField() {} -type WorkerWithPrismaDeletedAtWhereParam interface { +type LogLineWithPrismaMessageWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - deletedAtField() + logLineModel() + messageField() } -type workerWithPrismaDeletedAtEqualsParam struct { +type logLineWithPrismaMessageEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDeletedAtEqualsParam) field() builder.Field { +func (p logLineWithPrismaMessageEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p logLineWithPrismaMessageEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDeletedAtEqualsParam) workerModel() {} +func (p logLineWithPrismaMessageEqualsParam) logLineModel() {} -func (p workerWithPrismaDeletedAtEqualsParam) deletedAtField() {} +func (p logLineWithPrismaMessageEqualsParam) messageField() {} -func (workerWithPrismaDeletedAtSetParam) settable() {} -func (workerWithPrismaDeletedAtEqualsParam) equals() {} +func (logLineWithPrismaMessageSetParam) settable() {} +func (logLineWithPrismaMessageEqualsParam) equals() {} -type workerWithPrismaDeletedAtEqualsUniqueParam struct { +type logLineWithPrismaMessageEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { +func (p logLineWithPrismaMessageEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { +func (p logLineWithPrismaMessageEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDeletedAtEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p logLineWithPrismaMessageEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaMessageEqualsUniqueParam) messageField() {} -func (workerWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (workerWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (logLineWithPrismaMessageEqualsUniqueParam) unique() {} +func (logLineWithPrismaMessageEqualsUniqueParam) equals() {} -type WorkerWithPrismaTenantEqualsSetParam interface { +type LogLineWithPrismaLevelEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - tenantField() + logLineModel() + levelField() } -type WorkerWithPrismaTenantSetParam interface { +type LogLineWithPrismaLevelSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - tenantField() + logLineModel() + levelField() } -type workerWithPrismaTenantSetParam struct { +type logLineWithPrismaLevelSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaTenantSetParam) field() builder.Field { +func (p logLineWithPrismaLevelSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaTenantSetParam) getQuery() builder.Query { +func (p logLineWithPrismaLevelSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaTenantSetParam) workerModel() {} +func (p logLineWithPrismaLevelSetParam) logLineModel() {} -func (p workerWithPrismaTenantSetParam) tenantField() {} +func (p logLineWithPrismaLevelSetParam) levelField() {} -type WorkerWithPrismaTenantWhereParam interface { +type LogLineWithPrismaLevelWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - tenantField() + logLineModel() + levelField() } -type workerWithPrismaTenantEqualsParam struct { +type logLineWithPrismaLevelEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaTenantEqualsParam) field() builder.Field { +func (p logLineWithPrismaLevelEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p logLineWithPrismaLevelEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaTenantEqualsParam) workerModel() {} +func (p logLineWithPrismaLevelEqualsParam) logLineModel() {} -func (p workerWithPrismaTenantEqualsParam) tenantField() {} +func (p logLineWithPrismaLevelEqualsParam) levelField() {} -func (workerWithPrismaTenantSetParam) settable() {} -func (workerWithPrismaTenantEqualsParam) equals() {} +func (logLineWithPrismaLevelSetParam) settable() {} +func (logLineWithPrismaLevelEqualsParam) equals() {} -type workerWithPrismaTenantEqualsUniqueParam struct { +type logLineWithPrismaLevelEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaTenantEqualsUniqueParam) field() builder.Field { +func (p logLineWithPrismaLevelEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { +func (p logLineWithPrismaLevelEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaTenantEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p logLineWithPrismaLevelEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaLevelEqualsUniqueParam) levelField() {} -func (workerWithPrismaTenantEqualsUniqueParam) unique() {} -func (workerWithPrismaTenantEqualsUniqueParam) equals() {} +func (logLineWithPrismaLevelEqualsUniqueParam) unique() {} +func (logLineWithPrismaLevelEqualsUniqueParam) equals() {} -type WorkerWithPrismaTenantIDEqualsSetParam interface { +type LogLineWithPrismaMetadataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - tenantIDField() + logLineModel() + metadataField() } -type WorkerWithPrismaTenantIDSetParam interface { +type LogLineWithPrismaMetadataSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - tenantIDField() + logLineModel() + metadataField() } -type workerWithPrismaTenantIDSetParam struct { +type logLineWithPrismaMetadataSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaTenantIDSetParam) field() builder.Field { +func (p logLineWithPrismaMetadataSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p logLineWithPrismaMetadataSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaTenantIDSetParam) workerModel() {} +func (p logLineWithPrismaMetadataSetParam) logLineModel() {} -func (p workerWithPrismaTenantIDSetParam) tenantIDField() {} +func (p logLineWithPrismaMetadataSetParam) metadataField() {} -type WorkerWithPrismaTenantIDWhereParam interface { +type LogLineWithPrismaMetadataWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - tenantIDField() + logLineModel() + metadataField() } -type workerWithPrismaTenantIDEqualsParam struct { +type logLineWithPrismaMetadataEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaTenantIDEqualsParam) field() builder.Field { +func (p logLineWithPrismaMetadataEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p logLineWithPrismaMetadataEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaTenantIDEqualsParam) workerModel() {} +func (p logLineWithPrismaMetadataEqualsParam) logLineModel() {} -func (p workerWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (p logLineWithPrismaMetadataEqualsParam) metadataField() {} -func (workerWithPrismaTenantIDSetParam) settable() {} -func (workerWithPrismaTenantIDEqualsParam) equals() {} +func (logLineWithPrismaMetadataSetParam) settable() {} +func (logLineWithPrismaMetadataEqualsParam) equals() {} -type workerWithPrismaTenantIDEqualsUniqueParam struct { +type logLineWithPrismaMetadataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { +func (p logLineWithPrismaMetadataEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p logLineWithPrismaMetadataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaTenantIDEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p logLineWithPrismaMetadataEqualsUniqueParam) logLineModel() {} +func (p logLineWithPrismaMetadataEqualsUniqueParam) metadataField() {} -func (workerWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (workerWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (logLineWithPrismaMetadataEqualsUniqueParam) unique() {} +func (logLineWithPrismaMetadataEqualsUniqueParam) equals() {} -type WorkerWithPrismaLastHeartbeatAtEqualsSetParam interface { - field() builder.Field +type streamEventActions struct { + // client holds the prisma client + client *PrismaClient +} + +var streamEventOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "tenantId"}, + {Name: "stepRunId"}, + {Name: "message"}, + {Name: "metadata"}, +} + +type StreamEventRelationWith interface { getQuery() builder.Query - equals() - workerModel() - lastHeartbeatAtField() + with() + streamEventRelation() } -type WorkerWithPrismaLastHeartbeatAtSetParam interface { +type StreamEventWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - lastHeartbeatAtField() + streamEventModel() } -type workerWithPrismaLastHeartbeatAtSetParam struct { +type streamEventDefaultParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaLastHeartbeatAtSetParam) field() builder.Field { +func (p streamEventDefaultParam) field() builder.Field { return p.data } -func (p workerWithPrismaLastHeartbeatAtSetParam) getQuery() builder.Query { +func (p streamEventDefaultParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaLastHeartbeatAtSetParam) workerModel() {} - -func (p workerWithPrismaLastHeartbeatAtSetParam) lastHeartbeatAtField() {} +func (p streamEventDefaultParam) streamEventModel() {} -type WorkerWithPrismaLastHeartbeatAtWhereParam interface { +type StreamEventOrderByParam interface { field() builder.Field getQuery() builder.Query - workerModel() - lastHeartbeatAtField() + streamEventModel() } -type workerWithPrismaLastHeartbeatAtEqualsParam struct { +type streamEventOrderByParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaLastHeartbeatAtEqualsParam) field() builder.Field { +func (p streamEventOrderByParam) field() builder.Field { return p.data } -func (p workerWithPrismaLastHeartbeatAtEqualsParam) getQuery() builder.Query { +func (p streamEventOrderByParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaLastHeartbeatAtEqualsParam) workerModel() {} - -func (p workerWithPrismaLastHeartbeatAtEqualsParam) lastHeartbeatAtField() {} +func (p streamEventOrderByParam) streamEventModel() {} -func (workerWithPrismaLastHeartbeatAtSetParam) settable() {} -func (workerWithPrismaLastHeartbeatAtEqualsParam) equals() {} +type StreamEventCursorParam interface { + field() builder.Field + getQuery() builder.Query + streamEventModel() + isCursor() +} -type workerWithPrismaLastHeartbeatAtEqualsUniqueParam struct { +type streamEventCursorParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaLastHeartbeatAtEqualsUniqueParam) field() builder.Field { +func (p streamEventCursorParam) field() builder.Field { return p.data } -func (p workerWithPrismaLastHeartbeatAtEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventCursorParam) isCursor() {} + +func (p streamEventCursorParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaLastHeartbeatAtEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaLastHeartbeatAtEqualsUniqueParam) lastHeartbeatAtField() {} - -func (workerWithPrismaLastHeartbeatAtEqualsUniqueParam) unique() {} -func (workerWithPrismaLastHeartbeatAtEqualsUniqueParam) equals() {} - -type WorkerWithPrismaIsActiveEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workerModel() - isActiveField() -} +func (p streamEventCursorParam) streamEventModel() {} -type WorkerWithPrismaIsActiveSetParam interface { +type StreamEventParamUnique interface { field() builder.Field getQuery() builder.Query - workerModel() - isActiveField() + unique() + streamEventModel() } -type workerWithPrismaIsActiveSetParam struct { +type streamEventParamUnique struct { data builder.Field query builder.Query } -func (p workerWithPrismaIsActiveSetParam) field() builder.Field { +func (p streamEventParamUnique) streamEventModel() {} + +func (streamEventParamUnique) unique() {} + +func (p streamEventParamUnique) field() builder.Field { return p.data } -func (p workerWithPrismaIsActiveSetParam) getQuery() builder.Query { +func (p streamEventParamUnique) getQuery() builder.Query { return p.query } -func (p workerWithPrismaIsActiveSetParam) workerModel() {} - -func (p workerWithPrismaIsActiveSetParam) isActiveField() {} - -type WorkerWithPrismaIsActiveWhereParam interface { +type StreamEventEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - isActiveField() + equals() + streamEventModel() } -type workerWithPrismaIsActiveEqualsParam struct { +type streamEventEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaIsActiveEqualsParam) field() builder.Field { +func (p streamEventEqualsParam) streamEventModel() {} + +func (streamEventEqualsParam) equals() {} + +func (p streamEventEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaIsActiveEqualsParam) getQuery() builder.Query { +func (p streamEventEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaIsActiveEqualsParam) workerModel() {} - -func (p workerWithPrismaIsActiveEqualsParam) isActiveField() {} - -func (workerWithPrismaIsActiveSetParam) settable() {} -func (workerWithPrismaIsActiveEqualsParam) equals() {} +type StreamEventEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + streamEventModel() +} -type workerWithPrismaIsActiveEqualsUniqueParam struct { +type streamEventEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaIsActiveEqualsUniqueParam) field() builder.Field { +func (p streamEventEqualsUniqueParam) streamEventModel() {} + +func (streamEventEqualsUniqueParam) unique() {} +func (streamEventEqualsUniqueParam) equals() {} + +func (p streamEventEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaIsActiveEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaIsActiveEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaIsActiveEqualsUniqueParam) isActiveField() {} +type StreamEventSetParam interface { + field() builder.Field + settable() + streamEventModel() +} -func (workerWithPrismaIsActiveEqualsUniqueParam) unique() {} -func (workerWithPrismaIsActiveEqualsUniqueParam) equals() {} +type streamEventSetParam struct { + data builder.Field +} -type WorkerWithPrismaLastListenerEstablishedEqualsSetParam interface { +func (streamEventSetParam) settable() {} + +func (p streamEventSetParam) field() builder.Field { + return p.data +} + +func (p streamEventSetParam) streamEventModel() {} + +type StreamEventWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - lastListenerEstablishedField() + streamEventModel() + idField() } -type WorkerWithPrismaLastListenerEstablishedSetParam interface { +type StreamEventWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - lastListenerEstablishedField() + streamEventModel() + idField() } -type workerWithPrismaLastListenerEstablishedSetParam struct { +type streamEventWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaLastListenerEstablishedSetParam) field() builder.Field { +func (p streamEventWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaLastListenerEstablishedSetParam) getQuery() builder.Query { +func (p streamEventWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaLastListenerEstablishedSetParam) workerModel() {} +func (p streamEventWithPrismaIDSetParam) streamEventModel() {} -func (p workerWithPrismaLastListenerEstablishedSetParam) lastListenerEstablishedField() {} +func (p streamEventWithPrismaIDSetParam) idField() {} -type WorkerWithPrismaLastListenerEstablishedWhereParam interface { +type StreamEventWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - lastListenerEstablishedField() + streamEventModel() + idField() } -type workerWithPrismaLastListenerEstablishedEqualsParam struct { +type streamEventWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaLastListenerEstablishedEqualsParam) field() builder.Field { +func (p streamEventWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaLastListenerEstablishedEqualsParam) getQuery() builder.Query { +func (p streamEventWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaLastListenerEstablishedEqualsParam) workerModel() {} +func (p streamEventWithPrismaIDEqualsParam) streamEventModel() {} -func (p workerWithPrismaLastListenerEstablishedEqualsParam) lastListenerEstablishedField() {} +func (p streamEventWithPrismaIDEqualsParam) idField() {} -func (workerWithPrismaLastListenerEstablishedSetParam) settable() {} -func (workerWithPrismaLastListenerEstablishedEqualsParam) equals() {} +func (streamEventWithPrismaIDSetParam) settable() {} +func (streamEventWithPrismaIDEqualsParam) equals() {} -type workerWithPrismaLastListenerEstablishedEqualsUniqueParam struct { +type streamEventWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaLastListenerEstablishedEqualsUniqueParam) field() builder.Field { +func (p streamEventWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaLastListenerEstablishedEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaLastListenerEstablishedEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaLastListenerEstablishedEqualsUniqueParam) lastListenerEstablishedField() {} +func (p streamEventWithPrismaIDEqualsUniqueParam) streamEventModel() {} +func (p streamEventWithPrismaIDEqualsUniqueParam) idField() {} -func (workerWithPrismaLastListenerEstablishedEqualsUniqueParam) unique() {} -func (workerWithPrismaLastListenerEstablishedEqualsUniqueParam) equals() {} +func (streamEventWithPrismaIDEqualsUniqueParam) unique() {} +func (streamEventWithPrismaIDEqualsUniqueParam) equals() {} -type WorkerWithPrismaNameEqualsSetParam interface { +type StreamEventWithPrismaCreatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - nameField() + streamEventModel() + createdAtField() } -type WorkerWithPrismaNameSetParam interface { +type StreamEventWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - nameField() + streamEventModel() + createdAtField() } -type workerWithPrismaNameSetParam struct { +type streamEventWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaNameSetParam) field() builder.Field { +func (p streamEventWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaNameSetParam) getQuery() builder.Query { +func (p streamEventWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaNameSetParam) workerModel() {} +func (p streamEventWithPrismaCreatedAtSetParam) streamEventModel() {} -func (p workerWithPrismaNameSetParam) nameField() {} +func (p streamEventWithPrismaCreatedAtSetParam) createdAtField() {} -type WorkerWithPrismaNameWhereParam interface { +type StreamEventWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - nameField() + streamEventModel() + createdAtField() } -type workerWithPrismaNameEqualsParam struct { +type streamEventWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaNameEqualsParam) field() builder.Field { +func (p streamEventWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaNameEqualsParam) getQuery() builder.Query { +func (p streamEventWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaNameEqualsParam) workerModel() {} +func (p streamEventWithPrismaCreatedAtEqualsParam) streamEventModel() {} -func (p workerWithPrismaNameEqualsParam) nameField() {} +func (p streamEventWithPrismaCreatedAtEqualsParam) createdAtField() {} -func (workerWithPrismaNameSetParam) settable() {} -func (workerWithPrismaNameEqualsParam) equals() {} +func (streamEventWithPrismaCreatedAtSetParam) settable() {} +func (streamEventWithPrismaCreatedAtEqualsParam) equals() {} -type workerWithPrismaNameEqualsUniqueParam struct { +type streamEventWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaNameEqualsUniqueParam) field() builder.Field { +func (p streamEventWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaNameEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaNameEqualsUniqueParam) nameField() {} +func (p streamEventWithPrismaCreatedAtEqualsUniqueParam) streamEventModel() {} +func (p streamEventWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -func (workerWithPrismaNameEqualsUniqueParam) unique() {} -func (workerWithPrismaNameEqualsUniqueParam) equals() {} +func (streamEventWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (streamEventWithPrismaCreatedAtEqualsUniqueParam) equals() {} -type WorkerWithPrismaDispatcherEqualsSetParam interface { +type StreamEventWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - dispatcherField() + streamEventModel() + tenantField() } -type WorkerWithPrismaDispatcherSetParam interface { +type StreamEventWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - dispatcherField() + streamEventModel() + tenantField() } -type workerWithPrismaDispatcherSetParam struct { +type streamEventWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDispatcherSetParam) field() builder.Field { +func (p streamEventWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaDispatcherSetParam) getQuery() builder.Query { +func (p streamEventWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDispatcherSetParam) workerModel() {} +func (p streamEventWithPrismaTenantSetParam) streamEventModel() {} -func (p workerWithPrismaDispatcherSetParam) dispatcherField() {} +func (p streamEventWithPrismaTenantSetParam) tenantField() {} -type WorkerWithPrismaDispatcherWhereParam interface { +type StreamEventWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - dispatcherField() + streamEventModel() + tenantField() } -type workerWithPrismaDispatcherEqualsParam struct { +type streamEventWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDispatcherEqualsParam) field() builder.Field { +func (p streamEventWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaDispatcherEqualsParam) getQuery() builder.Query { +func (p streamEventWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDispatcherEqualsParam) workerModel() {} +func (p streamEventWithPrismaTenantEqualsParam) streamEventModel() {} -func (p workerWithPrismaDispatcherEqualsParam) dispatcherField() {} +func (p streamEventWithPrismaTenantEqualsParam) tenantField() {} -func (workerWithPrismaDispatcherSetParam) settable() {} -func (workerWithPrismaDispatcherEqualsParam) equals() {} +func (streamEventWithPrismaTenantSetParam) settable() {} +func (streamEventWithPrismaTenantEqualsParam) equals() {} -type workerWithPrismaDispatcherEqualsUniqueParam struct { +type streamEventWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDispatcherEqualsUniqueParam) field() builder.Field { +func (p streamEventWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaDispatcherEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDispatcherEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaDispatcherEqualsUniqueParam) dispatcherField() {} +func (p streamEventWithPrismaTenantEqualsUniqueParam) streamEventModel() {} +func (p streamEventWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (workerWithPrismaDispatcherEqualsUniqueParam) unique() {} -func (workerWithPrismaDispatcherEqualsUniqueParam) equals() {} +func (streamEventWithPrismaTenantEqualsUniqueParam) unique() {} +func (streamEventWithPrismaTenantEqualsUniqueParam) equals() {} -type WorkerWithPrismaDispatcherIDEqualsSetParam interface { +type StreamEventWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - dispatcherIDField() + streamEventModel() + tenantIDField() } -type WorkerWithPrismaDispatcherIDSetParam interface { +type StreamEventWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - dispatcherIDField() + streamEventModel() + tenantIDField() } -type workerWithPrismaDispatcherIDSetParam struct { +type streamEventWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDispatcherIDSetParam) field() builder.Field { +func (p streamEventWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaDispatcherIDSetParam) getQuery() builder.Query { +func (p streamEventWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDispatcherIDSetParam) workerModel() {} +func (p streamEventWithPrismaTenantIDSetParam) streamEventModel() {} -func (p workerWithPrismaDispatcherIDSetParam) dispatcherIDField() {} +func (p streamEventWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkerWithPrismaDispatcherIDWhereParam interface { +type StreamEventWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - dispatcherIDField() + streamEventModel() + tenantIDField() } -type workerWithPrismaDispatcherIDEqualsParam struct { +type streamEventWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDispatcherIDEqualsParam) field() builder.Field { +func (p streamEventWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaDispatcherIDEqualsParam) getQuery() builder.Query { +func (p streamEventWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDispatcherIDEqualsParam) workerModel() {} +func (p streamEventWithPrismaTenantIDEqualsParam) streamEventModel() {} -func (p workerWithPrismaDispatcherIDEqualsParam) dispatcherIDField() {} +func (p streamEventWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workerWithPrismaDispatcherIDSetParam) settable() {} -func (workerWithPrismaDispatcherIDEqualsParam) equals() {} +func (streamEventWithPrismaTenantIDSetParam) settable() {} +func (streamEventWithPrismaTenantIDEqualsParam) equals() {} -type workerWithPrismaDispatcherIDEqualsUniqueParam struct { +type streamEventWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaDispatcherIDEqualsUniqueParam) field() builder.Field { +func (p streamEventWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaDispatcherIDEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaDispatcherIDEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaDispatcherIDEqualsUniqueParam) dispatcherIDField() {} +func (p streamEventWithPrismaTenantIDEqualsUniqueParam) streamEventModel() {} +func (p streamEventWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workerWithPrismaDispatcherIDEqualsUniqueParam) unique() {} -func (workerWithPrismaDispatcherIDEqualsUniqueParam) equals() {} +func (streamEventWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (streamEventWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WorkerWithPrismaMaxRunsEqualsSetParam interface { +type StreamEventWithPrismaStepRunEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - maxRunsField() + streamEventModel() + stepRunField() } -type WorkerWithPrismaMaxRunsSetParam interface { +type StreamEventWithPrismaStepRunSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - maxRunsField() + streamEventModel() + stepRunField() } -type workerWithPrismaMaxRunsSetParam struct { +type streamEventWithPrismaStepRunSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaMaxRunsSetParam) field() builder.Field { +func (p streamEventWithPrismaStepRunSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaMaxRunsSetParam) getQuery() builder.Query { +func (p streamEventWithPrismaStepRunSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaMaxRunsSetParam) workerModel() {} +func (p streamEventWithPrismaStepRunSetParam) streamEventModel() {} -func (p workerWithPrismaMaxRunsSetParam) maxRunsField() {} +func (p streamEventWithPrismaStepRunSetParam) stepRunField() {} -type WorkerWithPrismaMaxRunsWhereParam interface { +type StreamEventWithPrismaStepRunWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - maxRunsField() + streamEventModel() + stepRunField() } -type workerWithPrismaMaxRunsEqualsParam struct { +type streamEventWithPrismaStepRunEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaMaxRunsEqualsParam) field() builder.Field { +func (p streamEventWithPrismaStepRunEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaMaxRunsEqualsParam) getQuery() builder.Query { +func (p streamEventWithPrismaStepRunEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaMaxRunsEqualsParam) workerModel() {} +func (p streamEventWithPrismaStepRunEqualsParam) streamEventModel() {} -func (p workerWithPrismaMaxRunsEqualsParam) maxRunsField() {} +func (p streamEventWithPrismaStepRunEqualsParam) stepRunField() {} -func (workerWithPrismaMaxRunsSetParam) settable() {} -func (workerWithPrismaMaxRunsEqualsParam) equals() {} +func (streamEventWithPrismaStepRunSetParam) settable() {} +func (streamEventWithPrismaStepRunEqualsParam) equals() {} -type workerWithPrismaMaxRunsEqualsUniqueParam struct { +type streamEventWithPrismaStepRunEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaMaxRunsEqualsUniqueParam) field() builder.Field { +func (p streamEventWithPrismaStepRunEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaMaxRunsEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaMaxRunsEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaMaxRunsEqualsUniqueParam) maxRunsField() {} +func (p streamEventWithPrismaStepRunEqualsUniqueParam) streamEventModel() {} +func (p streamEventWithPrismaStepRunEqualsUniqueParam) stepRunField() {} -func (workerWithPrismaMaxRunsEqualsUniqueParam) unique() {} -func (workerWithPrismaMaxRunsEqualsUniqueParam) equals() {} +func (streamEventWithPrismaStepRunEqualsUniqueParam) unique() {} +func (streamEventWithPrismaStepRunEqualsUniqueParam) equals() {} -type WorkerWithPrismaServicesEqualsSetParam interface { +type StreamEventWithPrismaStepRunIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - servicesField() + streamEventModel() + stepRunIDField() } -type WorkerWithPrismaServicesSetParam interface { +type StreamEventWithPrismaStepRunIDSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - servicesField() + streamEventModel() + stepRunIDField() } -type workerWithPrismaServicesSetParam struct { +type streamEventWithPrismaStepRunIDSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaServicesSetParam) field() builder.Field { +func (p streamEventWithPrismaStepRunIDSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaServicesSetParam) getQuery() builder.Query { +func (p streamEventWithPrismaStepRunIDSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaServicesSetParam) workerModel() {} +func (p streamEventWithPrismaStepRunIDSetParam) streamEventModel() {} -func (p workerWithPrismaServicesSetParam) servicesField() {} +func (p streamEventWithPrismaStepRunIDSetParam) stepRunIDField() {} -type WorkerWithPrismaServicesWhereParam interface { +type StreamEventWithPrismaStepRunIDWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - servicesField() + streamEventModel() + stepRunIDField() } -type workerWithPrismaServicesEqualsParam struct { +type streamEventWithPrismaStepRunIDEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaServicesEqualsParam) field() builder.Field { +func (p streamEventWithPrismaStepRunIDEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaServicesEqualsParam) getQuery() builder.Query { +func (p streamEventWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaServicesEqualsParam) workerModel() {} +func (p streamEventWithPrismaStepRunIDEqualsParam) streamEventModel() {} -func (p workerWithPrismaServicesEqualsParam) servicesField() {} +func (p streamEventWithPrismaStepRunIDEqualsParam) stepRunIDField() {} -func (workerWithPrismaServicesSetParam) settable() {} -func (workerWithPrismaServicesEqualsParam) equals() {} +func (streamEventWithPrismaStepRunIDSetParam) settable() {} +func (streamEventWithPrismaStepRunIDEqualsParam) equals() {} -type workerWithPrismaServicesEqualsUniqueParam struct { +type streamEventWithPrismaStepRunIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaServicesEqualsUniqueParam) field() builder.Field { +func (p streamEventWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaServicesEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaServicesEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaServicesEqualsUniqueParam) servicesField() {} +func (p streamEventWithPrismaStepRunIDEqualsUniqueParam) streamEventModel() {} +func (p streamEventWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} -func (workerWithPrismaServicesEqualsUniqueParam) unique() {} -func (workerWithPrismaServicesEqualsUniqueParam) equals() {} +func (streamEventWithPrismaStepRunIDEqualsUniqueParam) unique() {} +func (streamEventWithPrismaStepRunIDEqualsUniqueParam) equals() {} -type WorkerWithPrismaActionsEqualsSetParam interface { +type StreamEventWithPrismaMessageEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - actionsField() + streamEventModel() + messageField() } -type WorkerWithPrismaActionsSetParam interface { +type StreamEventWithPrismaMessageSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - actionsField() + streamEventModel() + messageField() } -type workerWithPrismaActionsSetParam struct { +type streamEventWithPrismaMessageSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaActionsSetParam) field() builder.Field { +func (p streamEventWithPrismaMessageSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaActionsSetParam) getQuery() builder.Query { +func (p streamEventWithPrismaMessageSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaActionsSetParam) workerModel() {} +func (p streamEventWithPrismaMessageSetParam) streamEventModel() {} -func (p workerWithPrismaActionsSetParam) actionsField() {} +func (p streamEventWithPrismaMessageSetParam) messageField() {} -type WorkerWithPrismaActionsWhereParam interface { +type StreamEventWithPrismaMessageWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - actionsField() + streamEventModel() + messageField() } -type workerWithPrismaActionsEqualsParam struct { +type streamEventWithPrismaMessageEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaActionsEqualsParam) field() builder.Field { +func (p streamEventWithPrismaMessageEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaActionsEqualsParam) getQuery() builder.Query { +func (p streamEventWithPrismaMessageEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaActionsEqualsParam) workerModel() {} +func (p streamEventWithPrismaMessageEqualsParam) streamEventModel() {} -func (p workerWithPrismaActionsEqualsParam) actionsField() {} +func (p streamEventWithPrismaMessageEqualsParam) messageField() {} -func (workerWithPrismaActionsSetParam) settable() {} -func (workerWithPrismaActionsEqualsParam) equals() {} +func (streamEventWithPrismaMessageSetParam) settable() {} +func (streamEventWithPrismaMessageEqualsParam) equals() {} -type workerWithPrismaActionsEqualsUniqueParam struct { +type streamEventWithPrismaMessageEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaActionsEqualsUniqueParam) field() builder.Field { +func (p streamEventWithPrismaMessageEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaActionsEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventWithPrismaMessageEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaActionsEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaActionsEqualsUniqueParam) actionsField() {} +func (p streamEventWithPrismaMessageEqualsUniqueParam) streamEventModel() {} +func (p streamEventWithPrismaMessageEqualsUniqueParam) messageField() {} -func (workerWithPrismaActionsEqualsUniqueParam) unique() {} -func (workerWithPrismaActionsEqualsUniqueParam) equals() {} +func (streamEventWithPrismaMessageEqualsUniqueParam) unique() {} +func (streamEventWithPrismaMessageEqualsUniqueParam) equals() {} -type WorkerWithPrismaStepRunsEqualsSetParam interface { +type StreamEventWithPrismaMetadataEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - stepRunsField() + streamEventModel() + metadataField() } -type WorkerWithPrismaStepRunsSetParam interface { +type StreamEventWithPrismaMetadataSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - stepRunsField() + streamEventModel() + metadataField() } -type workerWithPrismaStepRunsSetParam struct { +type streamEventWithPrismaMetadataSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaStepRunsSetParam) field() builder.Field { +func (p streamEventWithPrismaMetadataSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaStepRunsSetParam) getQuery() builder.Query { +func (p streamEventWithPrismaMetadataSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaStepRunsSetParam) workerModel() {} +func (p streamEventWithPrismaMetadataSetParam) streamEventModel() {} -func (p workerWithPrismaStepRunsSetParam) stepRunsField() {} +func (p streamEventWithPrismaMetadataSetParam) metadataField() {} -type WorkerWithPrismaStepRunsWhereParam interface { +type StreamEventWithPrismaMetadataWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - stepRunsField() + streamEventModel() + metadataField() } -type workerWithPrismaStepRunsEqualsParam struct { +type streamEventWithPrismaMetadataEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaStepRunsEqualsParam) field() builder.Field { +func (p streamEventWithPrismaMetadataEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaStepRunsEqualsParam) getQuery() builder.Query { +func (p streamEventWithPrismaMetadataEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaStepRunsEqualsParam) workerModel() {} +func (p streamEventWithPrismaMetadataEqualsParam) streamEventModel() {} -func (p workerWithPrismaStepRunsEqualsParam) stepRunsField() {} +func (p streamEventWithPrismaMetadataEqualsParam) metadataField() {} -func (workerWithPrismaStepRunsSetParam) settable() {} -func (workerWithPrismaStepRunsEqualsParam) equals() {} +func (streamEventWithPrismaMetadataSetParam) settable() {} +func (streamEventWithPrismaMetadataEqualsParam) equals() {} -type workerWithPrismaStepRunsEqualsUniqueParam struct { +type streamEventWithPrismaMetadataEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaStepRunsEqualsUniqueParam) field() builder.Field { +func (p streamEventWithPrismaMetadataEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaStepRunsEqualsUniqueParam) getQuery() builder.Query { +func (p streamEventWithPrismaMetadataEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaStepRunsEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaStepRunsEqualsUniqueParam) stepRunsField() {} +func (p streamEventWithPrismaMetadataEqualsUniqueParam) streamEventModel() {} +func (p streamEventWithPrismaMetadataEqualsUniqueParam) metadataField() {} -func (workerWithPrismaStepRunsEqualsUniqueParam) unique() {} -func (workerWithPrismaStepRunsEqualsUniqueParam) equals() {} +func (streamEventWithPrismaMetadataEqualsUniqueParam) unique() {} +func (streamEventWithPrismaMetadataEqualsUniqueParam) equals() {} -type WorkerWithPrismaGroupKeyRunsEqualsSetParam interface { - field() builder.Field +type sNSIntegrationActions struct { + // client holds the prisma client + client *PrismaClient +} + +var sNSIntegrationOutput = []builder.Output{ + {Name: "id"}, + {Name: "createdAt"}, + {Name: "updatedAt"}, + {Name: "tenantId"}, + {Name: "topicArn"}, +} + +type SNSIntegrationRelationWith interface { getQuery() builder.Query - equals() - workerModel() - groupKeyRunsField() + with() + sNSIntegrationRelation() } -type WorkerWithPrismaGroupKeyRunsSetParam interface { +type SNSIntegrationWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - groupKeyRunsField() + sNSIntegrationModel() } -type workerWithPrismaGroupKeyRunsSetParam struct { +type sNSIntegrationDefaultParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaGroupKeyRunsSetParam) field() builder.Field { +func (p sNSIntegrationDefaultParam) field() builder.Field { return p.data } -func (p workerWithPrismaGroupKeyRunsSetParam) getQuery() builder.Query { +func (p sNSIntegrationDefaultParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaGroupKeyRunsSetParam) workerModel() {} - -func (p workerWithPrismaGroupKeyRunsSetParam) groupKeyRunsField() {} +func (p sNSIntegrationDefaultParam) sNSIntegrationModel() {} -type WorkerWithPrismaGroupKeyRunsWhereParam interface { +type SNSIntegrationOrderByParam interface { field() builder.Field getQuery() builder.Query - workerModel() - groupKeyRunsField() + sNSIntegrationModel() } -type workerWithPrismaGroupKeyRunsEqualsParam struct { +type sNSIntegrationOrderByParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaGroupKeyRunsEqualsParam) field() builder.Field { +func (p sNSIntegrationOrderByParam) field() builder.Field { return p.data } -func (p workerWithPrismaGroupKeyRunsEqualsParam) getQuery() builder.Query { +func (p sNSIntegrationOrderByParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaGroupKeyRunsEqualsParam) workerModel() {} - -func (p workerWithPrismaGroupKeyRunsEqualsParam) groupKeyRunsField() {} +func (p sNSIntegrationOrderByParam) sNSIntegrationModel() {} -func (workerWithPrismaGroupKeyRunsSetParam) settable() {} -func (workerWithPrismaGroupKeyRunsEqualsParam) equals() {} +type SNSIntegrationCursorParam interface { + field() builder.Field + getQuery() builder.Query + sNSIntegrationModel() + isCursor() +} -type workerWithPrismaGroupKeyRunsEqualsUniqueParam struct { +type sNSIntegrationCursorParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaGroupKeyRunsEqualsUniqueParam) field() builder.Field { +func (p sNSIntegrationCursorParam) field() builder.Field { return p.data } -func (p workerWithPrismaGroupKeyRunsEqualsUniqueParam) getQuery() builder.Query { +func (p sNSIntegrationCursorParam) isCursor() {} + +func (p sNSIntegrationCursorParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaGroupKeyRunsEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaGroupKeyRunsEqualsUniqueParam) groupKeyRunsField() {} - -func (workerWithPrismaGroupKeyRunsEqualsUniqueParam) unique() {} -func (workerWithPrismaGroupKeyRunsEqualsUniqueParam) equals() {} - -type WorkerWithPrismaSlotsEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workerModel() - slotsField() -} +func (p sNSIntegrationCursorParam) sNSIntegrationModel() {} -type WorkerWithPrismaSlotsSetParam interface { +type SNSIntegrationParamUnique interface { field() builder.Field getQuery() builder.Query - workerModel() - slotsField() + unique() + sNSIntegrationModel() } -type workerWithPrismaSlotsSetParam struct { +type sNSIntegrationParamUnique struct { data builder.Field query builder.Query } -func (p workerWithPrismaSlotsSetParam) field() builder.Field { +func (p sNSIntegrationParamUnique) sNSIntegrationModel() {} + +func (sNSIntegrationParamUnique) unique() {} + +func (p sNSIntegrationParamUnique) field() builder.Field { return p.data } -func (p workerWithPrismaSlotsSetParam) getQuery() builder.Query { +func (p sNSIntegrationParamUnique) getQuery() builder.Query { return p.query } -func (p workerWithPrismaSlotsSetParam) workerModel() {} - -func (p workerWithPrismaSlotsSetParam) slotsField() {} - -type WorkerWithPrismaSlotsWhereParam interface { +type SNSIntegrationEqualsWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - slotsField() + equals() + sNSIntegrationModel() } -type workerWithPrismaSlotsEqualsParam struct { +type sNSIntegrationEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaSlotsEqualsParam) field() builder.Field { +func (p sNSIntegrationEqualsParam) sNSIntegrationModel() {} + +func (sNSIntegrationEqualsParam) equals() {} + +func (p sNSIntegrationEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaSlotsEqualsParam) getQuery() builder.Query { +func (p sNSIntegrationEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaSlotsEqualsParam) workerModel() {} - -func (p workerWithPrismaSlotsEqualsParam) slotsField() {} - -func (workerWithPrismaSlotsSetParam) settable() {} -func (workerWithPrismaSlotsEqualsParam) equals() {} +type SNSIntegrationEqualsUniqueWhereParam interface { + field() builder.Field + getQuery() builder.Query + equals() + unique() + sNSIntegrationModel() +} -type workerWithPrismaSlotsEqualsUniqueParam struct { +type sNSIntegrationEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaSlotsEqualsUniqueParam) field() builder.Field { +func (p sNSIntegrationEqualsUniqueParam) sNSIntegrationModel() {} + +func (sNSIntegrationEqualsUniqueParam) unique() {} +func (sNSIntegrationEqualsUniqueParam) equals() {} + +func (p sNSIntegrationEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaSlotsEqualsUniqueParam) getQuery() builder.Query { +func (p sNSIntegrationEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaSlotsEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaSlotsEqualsUniqueParam) slotsField() {} +type SNSIntegrationSetParam interface { + field() builder.Field + settable() + sNSIntegrationModel() +} -func (workerWithPrismaSlotsEqualsUniqueParam) unique() {} -func (workerWithPrismaSlotsEqualsUniqueParam) equals() {} +type sNSIntegrationSetParam struct { + data builder.Field +} -type WorkerWithPrismaSemaphoreEqualsSetParam interface { +func (sNSIntegrationSetParam) settable() {} + +func (p sNSIntegrationSetParam) field() builder.Field { + return p.data +} + +func (p sNSIntegrationSetParam) sNSIntegrationModel() {} + +type SNSIntegrationWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerModel() - semaphoreField() + sNSIntegrationModel() + idField() } -type WorkerWithPrismaSemaphoreSetParam interface { +type SNSIntegrationWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workerModel() - semaphoreField() + sNSIntegrationModel() + idField() } -type workerWithPrismaSemaphoreSetParam struct { +type sNSIntegrationWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaSemaphoreSetParam) field() builder.Field { +func (p sNSIntegrationWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workerWithPrismaSemaphoreSetParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaSemaphoreSetParam) workerModel() {} +func (p sNSIntegrationWithPrismaIDSetParam) sNSIntegrationModel() {} -func (p workerWithPrismaSemaphoreSetParam) semaphoreField() {} +func (p sNSIntegrationWithPrismaIDSetParam) idField() {} -type WorkerWithPrismaSemaphoreWhereParam interface { +type SNSIntegrationWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workerModel() - semaphoreField() + sNSIntegrationModel() + idField() } -type workerWithPrismaSemaphoreEqualsParam struct { +type sNSIntegrationWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaSemaphoreEqualsParam) field() builder.Field { +func (p sNSIntegrationWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workerWithPrismaSemaphoreEqualsParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaSemaphoreEqualsParam) workerModel() {} +func (p sNSIntegrationWithPrismaIDEqualsParam) sNSIntegrationModel() {} -func (p workerWithPrismaSemaphoreEqualsParam) semaphoreField() {} +func (p sNSIntegrationWithPrismaIDEqualsParam) idField() {} -func (workerWithPrismaSemaphoreSetParam) settable() {} -func (workerWithPrismaSemaphoreEqualsParam) equals() {} +func (sNSIntegrationWithPrismaIDSetParam) settable() {} +func (sNSIntegrationWithPrismaIDEqualsParam) equals() {} -type workerWithPrismaSemaphoreEqualsUniqueParam struct { +type sNSIntegrationWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerWithPrismaSemaphoreEqualsUniqueParam) field() builder.Field { +func (p sNSIntegrationWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerWithPrismaSemaphoreEqualsUniqueParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerWithPrismaSemaphoreEqualsUniqueParam) workerModel() {} -func (p workerWithPrismaSemaphoreEqualsUniqueParam) semaphoreField() {} - -func (workerWithPrismaSemaphoreEqualsUniqueParam) unique() {} -func (workerWithPrismaSemaphoreEqualsUniqueParam) equals() {} - -type workerSemaphoreActions struct { - // client holds the prisma client - client *PrismaClient -} +func (p sNSIntegrationWithPrismaIDEqualsUniqueParam) sNSIntegrationModel() {} +func (p sNSIntegrationWithPrismaIDEqualsUniqueParam) idField() {} -var workerSemaphoreOutput = []builder.Output{ - {Name: "workerId"}, - {Name: "slots"}, -} +func (sNSIntegrationWithPrismaIDEqualsUniqueParam) unique() {} +func (sNSIntegrationWithPrismaIDEqualsUniqueParam) equals() {} -type WorkerSemaphoreRelationWith interface { +type SNSIntegrationWithPrismaCreatedAtEqualsSetParam interface { + field() builder.Field getQuery() builder.Query - with() - workerSemaphoreRelation() + equals() + sNSIntegrationModel() + createdAtField() } -type WorkerSemaphoreWhereParam interface { +type SNSIntegrationWithPrismaCreatedAtSetParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreModel() + sNSIntegrationModel() + createdAtField() } -type workerSemaphoreDefaultParam struct { +type sNSIntegrationWithPrismaCreatedAtSetParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreDefaultParam) field() builder.Field { +func (p sNSIntegrationWithPrismaCreatedAtSetParam) field() builder.Field { return p.data } -func (p workerSemaphoreDefaultParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaCreatedAtSetParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreDefaultParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaCreatedAtSetParam) sNSIntegrationModel() {} -type WorkerSemaphoreOrderByParam interface { +func (p sNSIntegrationWithPrismaCreatedAtSetParam) createdAtField() {} + +type SNSIntegrationWithPrismaCreatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreModel() + sNSIntegrationModel() + createdAtField() } -type workerSemaphoreOrderByParam struct { +type sNSIntegrationWithPrismaCreatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreOrderByParam) field() builder.Field { +func (p sNSIntegrationWithPrismaCreatedAtEqualsParam) field() builder.Field { return p.data } -func (p workerSemaphoreOrderByParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreOrderByParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaCreatedAtEqualsParam) sNSIntegrationModel() {} -type WorkerSemaphoreCursorParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreModel() - isCursor() -} +func (p sNSIntegrationWithPrismaCreatedAtEqualsParam) createdAtField() {} -type workerSemaphoreCursorParam struct { +func (sNSIntegrationWithPrismaCreatedAtSetParam) settable() {} +func (sNSIntegrationWithPrismaCreatedAtEqualsParam) equals() {} + +type sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreCursorParam) field() builder.Field { +func (p sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerSemaphoreCursorParam) isCursor() {} - -func (p workerSemaphoreCursorParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreCursorParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) sNSIntegrationModel() {} +func (p sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} -type WorkerSemaphoreParamUnique interface { +func (sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) unique() {} +func (sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) equals() {} + +type SNSIntegrationWithPrismaUpdatedAtEqualsSetParam interface { field() builder.Field getQuery() builder.Query - unique() - workerSemaphoreModel() + equals() + sNSIntegrationModel() + updatedAtField() } -type workerSemaphoreParamUnique struct { +type SNSIntegrationWithPrismaUpdatedAtSetParam interface { + field() builder.Field + getQuery() builder.Query + sNSIntegrationModel() + updatedAtField() +} + +type sNSIntegrationWithPrismaUpdatedAtSetParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreParamUnique) workerSemaphoreModel() {} - -func (workerSemaphoreParamUnique) unique() {} - -func (p workerSemaphoreParamUnique) field() builder.Field { +func (p sNSIntegrationWithPrismaUpdatedAtSetParam) field() builder.Field { return p.data } -func (p workerSemaphoreParamUnique) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaUpdatedAtSetParam) getQuery() builder.Query { return p.query } -type WorkerSemaphoreEqualsWhereParam interface { +func (p sNSIntegrationWithPrismaUpdatedAtSetParam) sNSIntegrationModel() {} + +func (p sNSIntegrationWithPrismaUpdatedAtSetParam) updatedAtField() {} + +type SNSIntegrationWithPrismaUpdatedAtWhereParam interface { field() builder.Field getQuery() builder.Query - equals() - workerSemaphoreModel() + sNSIntegrationModel() + updatedAtField() } -type workerSemaphoreEqualsParam struct { +type sNSIntegrationWithPrismaUpdatedAtEqualsParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreEqualsParam) workerSemaphoreModel() {} - -func (workerSemaphoreEqualsParam) equals() {} - -func (p workerSemaphoreEqualsParam) field() builder.Field { +func (p sNSIntegrationWithPrismaUpdatedAtEqualsParam) field() builder.Field { return p.data } -func (p workerSemaphoreEqualsParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { return p.query } -type WorkerSemaphoreEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - workerSemaphoreModel() -} +func (p sNSIntegrationWithPrismaUpdatedAtEqualsParam) sNSIntegrationModel() {} -type workerSemaphoreEqualsUniqueParam struct { +func (p sNSIntegrationWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + +func (sNSIntegrationWithPrismaUpdatedAtSetParam) settable() {} +func (sNSIntegrationWithPrismaUpdatedAtEqualsParam) equals() {} + +type sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreEqualsUniqueParam) workerSemaphoreModel() {} - -func (workerSemaphoreEqualsUniqueParam) unique() {} -func (workerSemaphoreEqualsUniqueParam) equals() {} - -func (p workerSemaphoreEqualsUniqueParam) field() builder.Field { +func (p sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerSemaphoreEqualsUniqueParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkerSemaphoreSetParam interface { - field() builder.Field - settable() - workerSemaphoreModel() -} - -type workerSemaphoreSetParam struct { - data builder.Field -} - -func (workerSemaphoreSetParam) settable() {} - -func (p workerSemaphoreSetParam) field() builder.Field { - return p.data -} +func (p sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) sNSIntegrationModel() {} +func (p sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} -func (p workerSemaphoreSetParam) workerSemaphoreModel() {} +func (sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) unique() {} +func (sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) equals() {} -type WorkerSemaphoreWithPrismaWorkerEqualsSetParam interface { +type SNSIntegrationWithPrismaTenantEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerSemaphoreModel() - workerField() + sNSIntegrationModel() + tenantField() } -type WorkerSemaphoreWithPrismaWorkerSetParam interface { +type SNSIntegrationWithPrismaTenantSetParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreModel() - workerField() + sNSIntegrationModel() + tenantField() } -type workerSemaphoreWithPrismaWorkerSetParam struct { +type sNSIntegrationWithPrismaTenantSetParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaWorkerSetParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTenantSetParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaWorkerSetParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTenantSetParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaWorkerSetParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaTenantSetParam) sNSIntegrationModel() {} -func (p workerSemaphoreWithPrismaWorkerSetParam) workerField() {} +func (p sNSIntegrationWithPrismaTenantSetParam) tenantField() {} -type WorkerSemaphoreWithPrismaWorkerWhereParam interface { +type SNSIntegrationWithPrismaTenantWhereParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreModel() - workerField() + sNSIntegrationModel() + tenantField() } -type workerSemaphoreWithPrismaWorkerEqualsParam struct { +type sNSIntegrationWithPrismaTenantEqualsParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaWorkerEqualsParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTenantEqualsParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaWorkerEqualsParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTenantEqualsParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaWorkerEqualsParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaTenantEqualsParam) sNSIntegrationModel() {} -func (p workerSemaphoreWithPrismaWorkerEqualsParam) workerField() {} +func (p sNSIntegrationWithPrismaTenantEqualsParam) tenantField() {} -func (workerSemaphoreWithPrismaWorkerSetParam) settable() {} -func (workerSemaphoreWithPrismaWorkerEqualsParam) equals() {} +func (sNSIntegrationWithPrismaTenantSetParam) settable() {} +func (sNSIntegrationWithPrismaTenantEqualsParam) equals() {} -type workerSemaphoreWithPrismaWorkerEqualsUniqueParam struct { +type sNSIntegrationWithPrismaTenantEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaWorkerEqualsUniqueParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTenantEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaWorkerEqualsUniqueParam) workerSemaphoreModel() {} -func (p workerSemaphoreWithPrismaWorkerEqualsUniqueParam) workerField() {} +func (p sNSIntegrationWithPrismaTenantEqualsUniqueParam) sNSIntegrationModel() {} +func (p sNSIntegrationWithPrismaTenantEqualsUniqueParam) tenantField() {} -func (workerSemaphoreWithPrismaWorkerEqualsUniqueParam) unique() {} -func (workerSemaphoreWithPrismaWorkerEqualsUniqueParam) equals() {} +func (sNSIntegrationWithPrismaTenantEqualsUniqueParam) unique() {} +func (sNSIntegrationWithPrismaTenantEqualsUniqueParam) equals() {} -type WorkerSemaphoreWithPrismaWorkerIDEqualsSetParam interface { +type SNSIntegrationWithPrismaTenantIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerSemaphoreModel() - workerIDField() + sNSIntegrationModel() + tenantIDField() } -type WorkerSemaphoreWithPrismaWorkerIDSetParam interface { +type SNSIntegrationWithPrismaTenantIDSetParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreModel() - workerIDField() + sNSIntegrationModel() + tenantIDField() } -type workerSemaphoreWithPrismaWorkerIDSetParam struct { +type sNSIntegrationWithPrismaTenantIDSetParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaWorkerIDSetParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTenantIDSetParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaWorkerIDSetParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTenantIDSetParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaWorkerIDSetParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaTenantIDSetParam) sNSIntegrationModel() {} -func (p workerSemaphoreWithPrismaWorkerIDSetParam) workerIDField() {} +func (p sNSIntegrationWithPrismaTenantIDSetParam) tenantIDField() {} -type WorkerSemaphoreWithPrismaWorkerIDWhereParam interface { +type SNSIntegrationWithPrismaTenantIDWhereParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreModel() - workerIDField() + sNSIntegrationModel() + tenantIDField() } -type workerSemaphoreWithPrismaWorkerIDEqualsParam struct { +type sNSIntegrationWithPrismaTenantIDEqualsParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaWorkerIDEqualsParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTenantIDEqualsParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTenantIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaWorkerIDEqualsParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaTenantIDEqualsParam) sNSIntegrationModel() {} -func (p workerSemaphoreWithPrismaWorkerIDEqualsParam) workerIDField() {} +func (p sNSIntegrationWithPrismaTenantIDEqualsParam) tenantIDField() {} -func (workerSemaphoreWithPrismaWorkerIDSetParam) settable() {} -func (workerSemaphoreWithPrismaWorkerIDEqualsParam) equals() {} +func (sNSIntegrationWithPrismaTenantIDSetParam) settable() {} +func (sNSIntegrationWithPrismaTenantIDEqualsParam) equals() {} -type workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam struct { +type sNSIntegrationWithPrismaTenantIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) workerSemaphoreModel() {} -func (p workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} +func (p sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) sNSIntegrationModel() {} +func (p sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} -func (workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) unique() {} -func (workerSemaphoreWithPrismaWorkerIDEqualsUniqueParam) equals() {} +func (sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) unique() {} +func (sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) equals() {} -type WorkerSemaphoreWithPrismaSlotsEqualsSetParam interface { +type SNSIntegrationWithPrismaTopicArnEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerSemaphoreModel() - slotsField() + sNSIntegrationModel() + topicArnField() } -type WorkerSemaphoreWithPrismaSlotsSetParam interface { +type SNSIntegrationWithPrismaTopicArnSetParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreModel() - slotsField() + sNSIntegrationModel() + topicArnField() } -type workerSemaphoreWithPrismaSlotsSetParam struct { +type sNSIntegrationWithPrismaTopicArnSetParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaSlotsSetParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTopicArnSetParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaSlotsSetParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTopicArnSetParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaSlotsSetParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaTopicArnSetParam) sNSIntegrationModel() {} -func (p workerSemaphoreWithPrismaSlotsSetParam) slotsField() {} +func (p sNSIntegrationWithPrismaTopicArnSetParam) topicArnField() {} -type WorkerSemaphoreWithPrismaSlotsWhereParam interface { +type SNSIntegrationWithPrismaTopicArnWhereParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreModel() - slotsField() + sNSIntegrationModel() + topicArnField() } -type workerSemaphoreWithPrismaSlotsEqualsParam struct { +type sNSIntegrationWithPrismaTopicArnEqualsParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaSlotsEqualsParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTopicArnEqualsParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaSlotsEqualsParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTopicArnEqualsParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaSlotsEqualsParam) workerSemaphoreModel() {} +func (p sNSIntegrationWithPrismaTopicArnEqualsParam) sNSIntegrationModel() {} -func (p workerSemaphoreWithPrismaSlotsEqualsParam) slotsField() {} +func (p sNSIntegrationWithPrismaTopicArnEqualsParam) topicArnField() {} -func (workerSemaphoreWithPrismaSlotsSetParam) settable() {} -func (workerSemaphoreWithPrismaSlotsEqualsParam) equals() {} +func (sNSIntegrationWithPrismaTopicArnSetParam) settable() {} +func (sNSIntegrationWithPrismaTopicArnEqualsParam) equals() {} -type workerSemaphoreWithPrismaSlotsEqualsUniqueParam struct { +type sNSIntegrationWithPrismaTopicArnEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreWithPrismaSlotsEqualsUniqueParam) field() builder.Field { +func (p sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerSemaphoreWithPrismaSlotsEqualsUniqueParam) getQuery() builder.Query { +func (p sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreWithPrismaSlotsEqualsUniqueParam) workerSemaphoreModel() {} -func (p workerSemaphoreWithPrismaSlotsEqualsUniqueParam) slotsField() {} +func (p sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) sNSIntegrationModel() {} +func (p sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) topicArnField() {} -func (workerSemaphoreWithPrismaSlotsEqualsUniqueParam) unique() {} -func (workerSemaphoreWithPrismaSlotsEqualsUniqueParam) equals() {} +func (sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) unique() {} +func (sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) equals() {} -type workerSemaphoreSlotActions struct { +type securityCheckIdentActions struct { // client holds the prisma client client *PrismaClient } -var workerSemaphoreSlotOutput = []builder.Output{ +var securityCheckIdentOutput = []builder.Output{ {Name: "id"}, - {Name: "workerId"}, - {Name: "stepRunId"}, } -type WorkerSemaphoreSlotRelationWith interface { +type SecurityCheckIdentRelationWith interface { getQuery() builder.Query with() - workerSemaphoreSlotRelation() + securityCheckIdentRelation() } -type WorkerSemaphoreSlotWhereParam interface { +type SecurityCheckIdentWhereParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreSlotModel() + securityCheckIdentModel() } -type workerSemaphoreSlotDefaultParam struct { +type securityCheckIdentDefaultParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotDefaultParam) field() builder.Field { +func (p securityCheckIdentDefaultParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotDefaultParam) getQuery() builder.Query { +func (p securityCheckIdentDefaultParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotDefaultParam) workerSemaphoreSlotModel() {} +func (p securityCheckIdentDefaultParam) securityCheckIdentModel() {} -type WorkerSemaphoreSlotOrderByParam interface { +type SecurityCheckIdentOrderByParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreSlotModel() + securityCheckIdentModel() } -type workerSemaphoreSlotOrderByParam struct { +type securityCheckIdentOrderByParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotOrderByParam) field() builder.Field { +func (p securityCheckIdentOrderByParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotOrderByParam) getQuery() builder.Query { +func (p securityCheckIdentOrderByParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotOrderByParam) workerSemaphoreSlotModel() {} +func (p securityCheckIdentOrderByParam) securityCheckIdentModel() {} -type WorkerSemaphoreSlotCursorParam interface { +type SecurityCheckIdentCursorParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreSlotModel() + securityCheckIdentModel() isCursor() } -type workerSemaphoreSlotCursorParam struct { +type securityCheckIdentCursorParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotCursorParam) field() builder.Field { +func (p securityCheckIdentCursorParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotCursorParam) isCursor() {} +func (p securityCheckIdentCursorParam) isCursor() {} -func (p workerSemaphoreSlotCursorParam) getQuery() builder.Query { +func (p securityCheckIdentCursorParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotCursorParam) workerSemaphoreSlotModel() {} +func (p securityCheckIdentCursorParam) securityCheckIdentModel() {} -type WorkerSemaphoreSlotParamUnique interface { +type SecurityCheckIdentParamUnique interface { field() builder.Field getQuery() builder.Query unique() - workerSemaphoreSlotModel() + securityCheckIdentModel() } -type workerSemaphoreSlotParamUnique struct { +type securityCheckIdentParamUnique struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotParamUnique) workerSemaphoreSlotModel() {} +func (p securityCheckIdentParamUnique) securityCheckIdentModel() {} -func (workerSemaphoreSlotParamUnique) unique() {} +func (securityCheckIdentParamUnique) unique() {} -func (p workerSemaphoreSlotParamUnique) field() builder.Field { +func (p securityCheckIdentParamUnique) field() builder.Field { return p.data } -func (p workerSemaphoreSlotParamUnique) getQuery() builder.Query { +func (p securityCheckIdentParamUnique) getQuery() builder.Query { return p.query } -type WorkerSemaphoreSlotEqualsWhereParam interface { +type SecurityCheckIdentEqualsWhereParam interface { field() builder.Field getQuery() builder.Query equals() - workerSemaphoreSlotModel() + securityCheckIdentModel() } -type workerSemaphoreSlotEqualsParam struct { +type securityCheckIdentEqualsParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotEqualsParam) workerSemaphoreSlotModel() {} +func (p securityCheckIdentEqualsParam) securityCheckIdentModel() {} -func (workerSemaphoreSlotEqualsParam) equals() {} +func (securityCheckIdentEqualsParam) equals() {} -func (p workerSemaphoreSlotEqualsParam) field() builder.Field { +func (p securityCheckIdentEqualsParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotEqualsParam) getQuery() builder.Query { +func (p securityCheckIdentEqualsParam) getQuery() builder.Query { return p.query } -type WorkerSemaphoreSlotEqualsUniqueWhereParam interface { +type SecurityCheckIdentEqualsUniqueWhereParam interface { field() builder.Field getQuery() builder.Query equals() unique() - workerSemaphoreSlotModel() + securityCheckIdentModel() } -type workerSemaphoreSlotEqualsUniqueParam struct { +type securityCheckIdentEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotEqualsUniqueParam) workerSemaphoreSlotModel() {} +func (p securityCheckIdentEqualsUniqueParam) securityCheckIdentModel() {} -func (workerSemaphoreSlotEqualsUniqueParam) unique() {} -func (workerSemaphoreSlotEqualsUniqueParam) equals() {} +func (securityCheckIdentEqualsUniqueParam) unique() {} +func (securityCheckIdentEqualsUniqueParam) equals() {} -func (p workerSemaphoreSlotEqualsUniqueParam) field() builder.Field { +func (p securityCheckIdentEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotEqualsUniqueParam) getQuery() builder.Query { +func (p securityCheckIdentEqualsUniqueParam) getQuery() builder.Query { return p.query } -type WorkerSemaphoreSlotSetParam interface { +type SecurityCheckIdentSetParam interface { field() builder.Field settable() - workerSemaphoreSlotModel() + securityCheckIdentModel() } -type workerSemaphoreSlotSetParam struct { +type securityCheckIdentSetParam struct { data builder.Field } -func (workerSemaphoreSlotSetParam) settable() {} +func (securityCheckIdentSetParam) settable() {} -func (p workerSemaphoreSlotSetParam) field() builder.Field { +func (p securityCheckIdentSetParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotSetParam) workerSemaphoreSlotModel() {} +func (p securityCheckIdentSetParam) securityCheckIdentModel() {} -type WorkerSemaphoreSlotWithPrismaIDEqualsSetParam interface { +type SecurityCheckIdentWithPrismaIDEqualsSetParam interface { field() builder.Field getQuery() builder.Query equals() - workerSemaphoreSlotModel() + securityCheckIdentModel() idField() } -type WorkerSemaphoreSlotWithPrismaIDSetParam interface { +type SecurityCheckIdentWithPrismaIDSetParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreSlotModel() + securityCheckIdentModel() idField() } -type workerSemaphoreSlotWithPrismaIDSetParam struct { +type securityCheckIdentWithPrismaIDSetParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotWithPrismaIDSetParam) field() builder.Field { +func (p securityCheckIdentWithPrismaIDSetParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotWithPrismaIDSetParam) getQuery() builder.Query { +func (p securityCheckIdentWithPrismaIDSetParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotWithPrismaIDSetParam) workerSemaphoreSlotModel() {} +func (p securityCheckIdentWithPrismaIDSetParam) securityCheckIdentModel() {} -func (p workerSemaphoreSlotWithPrismaIDSetParam) idField() {} +func (p securityCheckIdentWithPrismaIDSetParam) idField() {} -type WorkerSemaphoreSlotWithPrismaIDWhereParam interface { +type SecurityCheckIdentWithPrismaIDWhereParam interface { field() builder.Field getQuery() builder.Query - workerSemaphoreSlotModel() + securityCheckIdentModel() idField() } -type workerSemaphoreSlotWithPrismaIDEqualsParam struct { +type securityCheckIdentWithPrismaIDEqualsParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotWithPrismaIDEqualsParam) field() builder.Field { +func (p securityCheckIdentWithPrismaIDEqualsParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p securityCheckIdentWithPrismaIDEqualsParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotWithPrismaIDEqualsParam) workerSemaphoreSlotModel() {} +func (p securityCheckIdentWithPrismaIDEqualsParam) securityCheckIdentModel() {} -func (p workerSemaphoreSlotWithPrismaIDEqualsParam) idField() {} +func (p securityCheckIdentWithPrismaIDEqualsParam) idField() {} -func (workerSemaphoreSlotWithPrismaIDSetParam) settable() {} -func (workerSemaphoreSlotWithPrismaIDEqualsParam) equals() {} +func (securityCheckIdentWithPrismaIDSetParam) settable() {} +func (securityCheckIdentWithPrismaIDEqualsParam) equals() {} -type workerSemaphoreSlotWithPrismaIDEqualsUniqueParam struct { +type securityCheckIdentWithPrismaIDEqualsUniqueParam struct { data builder.Field query builder.Query } -func (p workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) field() builder.Field { +func (p securityCheckIdentWithPrismaIDEqualsUniqueParam) field() builder.Field { return p.data } -func (p workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { +func (p securityCheckIdentWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) workerSemaphoreSlotModel() {} -func (p workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) idField() {} +func (p securityCheckIdentWithPrismaIDEqualsUniqueParam) securityCheckIdentModel() {} +func (p securityCheckIdentWithPrismaIDEqualsUniqueParam) idField() {} -func (workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) unique() {} -func (workerSemaphoreSlotWithPrismaIDEqualsUniqueParam) equals() {} +func (securityCheckIdentWithPrismaIDEqualsUniqueParam) unique() {} +func (securityCheckIdentWithPrismaIDEqualsUniqueParam) equals() {} -type WorkerSemaphoreSlotWithPrismaWorkerEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workerSemaphoreSlotModel() - workerField() -} +// --- template create.gotpl --- -type WorkerSemaphoreSlotWithPrismaWorkerSetParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreSlotModel() - workerField() -} +// Creates a single user. +func (r userActions) CreateOne( + _email UserWithPrismaEmailSetParam, -type workerSemaphoreSlotWithPrismaWorkerSetParam struct { - data builder.Field - query builder.Query -} + optional ...UserSetParam, +) userCreateOne { + var v userCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p workerSemaphoreSlotWithPrismaWorkerSetParam) field() builder.Field { - return p.data -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "User" + v.query.Outputs = userOutput -func (p workerSemaphoreSlotWithPrismaWorkerSetParam) getQuery() builder.Query { - return p.query -} + var fields []builder.Field -func (p workerSemaphoreSlotWithPrismaWorkerSetParam) workerSemaphoreSlotModel() {} + fields = append(fields, _email.field()) -func (p workerSemaphoreSlotWithPrismaWorkerSetParam) workerField() {} + for _, q := range optional { + fields = append(fields, q.field()) + } -type WorkerSemaphoreSlotWithPrismaWorkerWhereParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreSlotModel() - workerField() + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type workerSemaphoreSlotWithPrismaWorkerEqualsParam struct { - data builder.Field - query builder.Query +func (r userCreateOne) With(params ...UserRelationWith) userCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p workerSemaphoreSlotWithPrismaWorkerEqualsParam) field() builder.Field { - return p.data +type userCreateOne struct { + query builder.Query } -func (p workerSemaphoreSlotWithPrismaWorkerEqualsParam) getQuery() builder.Query { +func (p userCreateOne) ExtractQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotWithPrismaWorkerEqualsParam) workerSemaphoreSlotModel() {} - -func (p workerSemaphoreSlotWithPrismaWorkerEqualsParam) workerField() {} - -func (workerSemaphoreSlotWithPrismaWorkerSetParam) settable() {} -func (workerSemaphoreSlotWithPrismaWorkerEqualsParam) equals() {} - -type workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (p userCreateOne) userModel() {} -func (p workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) field() builder.Field { - return p.data +func (r userCreateOne) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userCreateOne) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) workerSemaphoreSlotModel() {} -func (p workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) workerField() {} +// Creates a single userOAuth. +func (r userOAuthActions) CreateOne( + _user UserOAuthWithPrismaUserSetParam, + _provider UserOAuthWithPrismaProviderSetParam, + _providerUserID UserOAuthWithPrismaProviderUserIDSetParam, + _accessToken UserOAuthWithPrismaAccessTokenSetParam, -func (workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) unique() {} -func (workerSemaphoreSlotWithPrismaWorkerEqualsUniqueParam) equals() {} + optional ...UserOAuthSetParam, +) userOAuthCreateOne { + var v userOAuthCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type WorkerSemaphoreSlotWithPrismaWorkerIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workerSemaphoreSlotModel() - workerIDField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "UserOAuth" + v.query.Outputs = userOAuthOutput -type WorkerSemaphoreSlotWithPrismaWorkerIDSetParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreSlotModel() - workerIDField() -} + var fields []builder.Field -type workerSemaphoreSlotWithPrismaWorkerIDSetParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _user.field()) + fields = append(fields, _provider.field()) + fields = append(fields, _providerUserID.field()) + fields = append(fields, _accessToken.field()) -func (p workerSemaphoreSlotWithPrismaWorkerIDSetParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p workerSemaphoreSlotWithPrismaWorkerIDSetParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p workerSemaphoreSlotWithPrismaWorkerIDSetParam) workerSemaphoreSlotModel() {} - -func (p workerSemaphoreSlotWithPrismaWorkerIDSetParam) workerIDField() {} +func (r userOAuthCreateOne) With(params ...UserOAuthRelationWith) userOAuthCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type WorkerSemaphoreSlotWithPrismaWorkerIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreSlotModel() - workerIDField() + return r } -type workerSemaphoreSlotWithPrismaWorkerIDEqualsParam struct { - data builder.Field +type userOAuthCreateOne struct { query builder.Query } -func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) field() builder.Field { - return p.data -} - -func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) getQuery() builder.Query { +func (p userOAuthCreateOne) ExtractQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) workerSemaphoreSlotModel() {} - -func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) workerIDField() {} - -func (workerSemaphoreSlotWithPrismaWorkerIDSetParam) settable() {} -func (workerSemaphoreSlotWithPrismaWorkerIDEqualsParam) equals() {} - -type workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (p userOAuthCreateOne) userOAuthModel() {} -func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r userOAuthCreateOne) Exec(ctx context.Context) (*UserOAuthModel, error) { + var v UserOAuthModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userOAuthCreateOne) Tx() UserOAuthUniqueTxResult { + v := newUserOAuthUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) workerSemaphoreSlotModel() {} -func (p workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) workerIDField() {} +// Creates a single userPassword. +func (r userPasswordActions) CreateOne( + _hash UserPasswordWithPrismaHashSetParam, + _user UserPasswordWithPrismaUserSetParam, -func (workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) unique() {} -func (workerSemaphoreSlotWithPrismaWorkerIDEqualsUniqueParam) equals() {} + optional ...UserPasswordSetParam, +) userPasswordCreateOne { + var v userPasswordCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type WorkerSemaphoreSlotWithPrismaStepRunEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workerSemaphoreSlotModel() - stepRunField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "UserPassword" + v.query.Outputs = userPasswordOutput -type WorkerSemaphoreSlotWithPrismaStepRunSetParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreSlotModel() - stepRunField() -} + var fields []builder.Field -type workerSemaphoreSlotWithPrismaStepRunSetParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _hash.field()) + fields = append(fields, _user.field()) -func (p workerSemaphoreSlotWithPrismaStepRunSetParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p workerSemaphoreSlotWithPrismaStepRunSetParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p workerSemaphoreSlotWithPrismaStepRunSetParam) workerSemaphoreSlotModel() {} - -func (p workerSemaphoreSlotWithPrismaStepRunSetParam) stepRunField() {} +func (r userPasswordCreateOne) With(params ...UserPasswordRelationWith) userPasswordCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type WorkerSemaphoreSlotWithPrismaStepRunWhereParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreSlotModel() - stepRunField() + return r } -type workerSemaphoreSlotWithPrismaStepRunEqualsParam struct { - data builder.Field +type userPasswordCreateOne struct { query builder.Query } -func (p workerSemaphoreSlotWithPrismaStepRunEqualsParam) field() builder.Field { - return p.data -} - -func (p workerSemaphoreSlotWithPrismaStepRunEqualsParam) getQuery() builder.Query { +func (p userPasswordCreateOne) ExtractQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotWithPrismaStepRunEqualsParam) workerSemaphoreSlotModel() {} - -func (p workerSemaphoreSlotWithPrismaStepRunEqualsParam) stepRunField() {} - -func (workerSemaphoreSlotWithPrismaStepRunSetParam) settable() {} -func (workerSemaphoreSlotWithPrismaStepRunEqualsParam) equals() {} - -type workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (p userPasswordCreateOne) userPasswordModel() {} -func (p workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) field() builder.Field { - return p.data +func (r userPasswordCreateOne) Exec(ctx context.Context) (*UserPasswordModel, error) { + var v UserPasswordModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userPasswordCreateOne) Tx() UserPasswordUniqueTxResult { + v := newUserPasswordUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) workerSemaphoreSlotModel() {} -func (p workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) stepRunField() {} +// Creates a single userSession. +func (r userSessionActions) CreateOne( + _expiresAt UserSessionWithPrismaExpiresAtSetParam, -func (workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) unique() {} -func (workerSemaphoreSlotWithPrismaStepRunEqualsUniqueParam) equals() {} + optional ...UserSessionSetParam, +) userSessionCreateOne { + var v userSessionCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type WorkerSemaphoreSlotWithPrismaStepRunIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - workerSemaphoreSlotModel() - stepRunIDField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "UserSession" + v.query.Outputs = userSessionOutput -type WorkerSemaphoreSlotWithPrismaStepRunIDSetParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreSlotModel() - stepRunIDField() -} + var fields []builder.Field -type workerSemaphoreSlotWithPrismaStepRunIDSetParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _expiresAt.field()) -func (p workerSemaphoreSlotWithPrismaStepRunIDSetParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p workerSemaphoreSlotWithPrismaStepRunIDSetParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p workerSemaphoreSlotWithPrismaStepRunIDSetParam) workerSemaphoreSlotModel() {} - -func (p workerSemaphoreSlotWithPrismaStepRunIDSetParam) stepRunIDField() {} +func (r userSessionCreateOne) With(params ...UserSessionRelationWith) userSessionCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type WorkerSemaphoreSlotWithPrismaStepRunIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - workerSemaphoreSlotModel() - stepRunIDField() + return r } -type workerSemaphoreSlotWithPrismaStepRunIDEqualsParam struct { - data builder.Field +type userSessionCreateOne struct { query builder.Query } -func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) field() builder.Field { - return p.data -} - -func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { +func (p userSessionCreateOne) ExtractQuery() builder.Query { return p.query } -func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) workerSemaphoreSlotModel() {} - -func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) stepRunIDField() {} - -func (workerSemaphoreSlotWithPrismaStepRunIDSetParam) settable() {} -func (workerSemaphoreSlotWithPrismaStepRunIDEqualsParam) equals() {} +func (p userSessionCreateOne) userSessionModel() {} -type workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r userSessionCreateOne) Exec(ctx context.Context) (*UserSessionModel, error) { + var v UserSessionModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r userSessionCreateOne) Tx() UserSessionUniqueTxResult { + v := newUserSessionUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +// Creates a single webhookWorker. +func (r webhookWorkerActions) CreateOne( + _name WebhookWorkerWithPrismaNameSetParam, + _secret WebhookWorkerWithPrismaSecretSetParam, + _url WebhookWorkerWithPrismaURLSetParam, + _tenant WebhookWorkerWithPrismaTenantSetParam, -func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) workerSemaphoreSlotModel() {} -func (p workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} + optional ...WebhookWorkerSetParam, +) webhookWorkerCreateOne { + var v webhookWorkerCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) unique() {} -func (workerSemaphoreSlotWithPrismaStepRunIDEqualsUniqueParam) equals() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WebhookWorker" + v.query.Outputs = webhookWorkerOutput -type serviceActions struct { - // client holds the prisma client - client *PrismaClient -} + var fields []builder.Field -var serviceOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "name"}, - {Name: "description"}, - {Name: "tenantId"}, -} + fields = append(fields, _name.field()) + fields = append(fields, _secret.field()) + fields = append(fields, _url.field()) + fields = append(fields, _tenant.field()) -type ServiceRelationWith interface { - getQuery() builder.Query - with() - serviceRelation() -} + for _, q := range optional { + fields = append(fields, q.field()) + } -type ServiceWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type serviceDefaultParam struct { - data builder.Field - query builder.Query +func (r webhookWorkerCreateOne) With(params ...WebhookWorkerRelationWith) webhookWorkerCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p serviceDefaultParam) field() builder.Field { - return p.data +type webhookWorkerCreateOne struct { + query builder.Query } -func (p serviceDefaultParam) getQuery() builder.Query { +func (p webhookWorkerCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceDefaultParam) serviceModel() {} - -type ServiceOrderByParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() -} +func (p webhookWorkerCreateOne) webhookWorkerModel() {} -type serviceOrderByParam struct { - data builder.Field - query builder.Query +func (r webhookWorkerCreateOne) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceOrderByParam) field() builder.Field { - return p.data +func (r webhookWorkerCreateOne) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceOrderByParam) getQuery() builder.Query { - return p.query -} +// Creates a single webhookWorkerWorkflow. +func (r webhookWorkerWorkflowActions) CreateOne( + _webhookWorker WebhookWorkerWorkflowWithPrismaWebhookWorkerSetParam, + _workflow WebhookWorkerWorkflowWithPrismaWorkflowSetParam, -func (p serviceOrderByParam) serviceModel() {} + optional ...WebhookWorkerWorkflowSetParam, +) webhookWorkerWorkflowCreateOne { + var v webhookWorkerWorkflowCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type ServiceCursorParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - isCursor() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WebhookWorkerWorkflow" + v.query.Outputs = webhookWorkerWorkflowOutput -type serviceCursorParam struct { - data builder.Field - query builder.Query -} + var fields []builder.Field -func (p serviceCursorParam) field() builder.Field { - return p.data -} + fields = append(fields, _webhookWorker.field()) + fields = append(fields, _workflow.field()) -func (p serviceCursorParam) isCursor() {} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p serviceCursorParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceCursorParam) serviceModel() {} +func (r webhookWorkerWorkflowCreateOne) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerWorkflowCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type ServiceParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - serviceModel() + return r } -type serviceParamUnique struct { - data builder.Field +type webhookWorkerWorkflowCreateOne struct { query builder.Query } -func (p serviceParamUnique) serviceModel() {} +func (p webhookWorkerWorkflowCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (serviceParamUnique) unique() {} +func (p webhookWorkerWorkflowCreateOne) webhookWorkerWorkflowModel() {} -func (p serviceParamUnique) field() builder.Field { - return p.data +func (r webhookWorkerWorkflowCreateOne) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { + var v WebhookWorkerWorkflowModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceParamUnique) getQuery() builder.Query { - return p.query +func (r webhookWorkerWorkflowCreateOne) Tx() WebhookWorkerWorkflowUniqueTxResult { + v := newWebhookWorkerWorkflowUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type ServiceEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() -} +// Creates a single controllerPartition. +func (r controllerPartitionActions) CreateOne( + _id ControllerPartitionWithPrismaIDSetParam, -type serviceEqualsParam struct { - data builder.Field - query builder.Query -} + optional ...ControllerPartitionSetParam, +) controllerPartitionCreateOne { + var v controllerPartitionCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceEqualsParam) serviceModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "ControllerPartition" + v.query.Outputs = controllerPartitionOutput -func (serviceEqualsParam) equals() {} + var fields []builder.Field -func (p serviceEqualsParam) field() builder.Field { - return p.data -} + fields = append(fields, _id.field()) -func (p serviceEqualsParam) getQuery() builder.Query { - return p.query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type ServiceEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - serviceModel() +func (r controllerPartitionCreateOne) With(params ...ControllerPartitionRelationWith) controllerPartitionCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -type serviceEqualsUniqueParam struct { - data builder.Field +type controllerPartitionCreateOne struct { query builder.Query } -func (p serviceEqualsUniqueParam) serviceModel() {} +func (p controllerPartitionCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (serviceEqualsUniqueParam) unique() {} -func (serviceEqualsUniqueParam) equals() {} +func (p controllerPartitionCreateOne) controllerPartitionModel() {} -func (p serviceEqualsUniqueParam) field() builder.Field { - return p.data +func (r controllerPartitionCreateOne) Exec(ctx context.Context) (*ControllerPartitionModel, error) { + var v ControllerPartitionModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r controllerPartitionCreateOne) Tx() ControllerPartitionUniqueTxResult { + v := newControllerPartitionUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type ServiceSetParam interface { - field() builder.Field - settable() - serviceModel() -} +// Creates a single tenantWorkerPartition. +func (r tenantWorkerPartitionActions) CreateOne( + _id TenantWorkerPartitionWithPrismaIDSetParam, -type serviceSetParam struct { - data builder.Field -} + optional ...TenantWorkerPartitionSetParam, +) tenantWorkerPartitionCreateOne { + var v tenantWorkerPartitionCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (serviceSetParam) settable() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "TenantWorkerPartition" + v.query.Outputs = tenantWorkerPartitionOutput -func (p serviceSetParam) field() builder.Field { - return p.data -} + var fields []builder.Field -func (p serviceSetParam) serviceModel() {} + fields = append(fields, _id.field()) -type ServiceWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - idField() + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type ServiceWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - idField() +func (r tenantWorkerPartitionCreateOne) With(params ...TenantWorkerPartitionRelationWith) tenantWorkerPartitionCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -type serviceWithPrismaIDSetParam struct { - data builder.Field +type tenantWorkerPartitionCreateOne struct { query builder.Query } -func (p serviceWithPrismaIDSetParam) field() builder.Field { - return p.data -} - -func (p serviceWithPrismaIDSetParam) getQuery() builder.Query { +func (p tenantWorkerPartitionCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaIDSetParam) serviceModel() {} - -func (p serviceWithPrismaIDSetParam) idField() {} - -type ServiceWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - idField() -} +func (p tenantWorkerPartitionCreateOne) tenantWorkerPartitionModel() {} -type serviceWithPrismaIDEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantWorkerPartitionCreateOne) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { + var v TenantWorkerPartitionModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceWithPrismaIDEqualsParam) field() builder.Field { - return p.data +func (r tenantWorkerPartitionCreateOne) Tx() TenantWorkerPartitionUniqueTxResult { + v := newTenantWorkerPartitionUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceWithPrismaIDEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single tenant. +func (r tenantActions) CreateOne( + _name TenantWithPrismaNameSetParam, + _slug TenantWithPrismaSlugSetParam, -func (p serviceWithPrismaIDEqualsParam) serviceModel() {} + optional ...TenantSetParam, +) tenantCreateOne { + var v tenantCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceWithPrismaIDEqualsParam) idField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Tenant" + v.query.Outputs = tenantOutput -func (serviceWithPrismaIDSetParam) settable() {} -func (serviceWithPrismaIDEqualsParam) equals() {} + var fields []builder.Field -type serviceWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _name.field()) + fields = append(fields, _slug.field()) -func (p serviceWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p serviceWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceWithPrismaIDEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaIDEqualsUniqueParam) idField() {} - -func (serviceWithPrismaIDEqualsUniqueParam) unique() {} -func (serviceWithPrismaIDEqualsUniqueParam) equals() {} - -type ServiceWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - createdAtField() -} +func (r tenantCreateOne) With(params ...TenantRelationWith) tenantCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type ServiceWithPrismaCreatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - createdAtField() + return r } -type serviceWithPrismaCreatedAtSetParam struct { - data builder.Field +type tenantCreateOne struct { query builder.Query } -func (p serviceWithPrismaCreatedAtSetParam) field() builder.Field { - return p.data -} - -func (p serviceWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p tenantCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaCreatedAtSetParam) serviceModel() {} - -func (p serviceWithPrismaCreatedAtSetParam) createdAtField() {} - -type ServiceWithPrismaCreatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - createdAtField() -} +func (p tenantCreateOne) tenantModel() {} -type serviceWithPrismaCreatedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantCreateOne) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data +func (r tenantCreateOne) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single tenantResourceLimit. +func (r tenantResourceLimitActions) CreateOne( + _resource TenantResourceLimitWithPrismaResourceSetParam, + _tenant TenantResourceLimitWithPrismaTenantSetParam, + _limitValue TenantResourceLimitWithPrismaLimitValueSetParam, -func (p serviceWithPrismaCreatedAtEqualsParam) serviceModel() {} + optional ...TenantResourceLimitSetParam, +) tenantResourceLimitCreateOne { + var v tenantResourceLimitCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceWithPrismaCreatedAtEqualsParam) createdAtField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "TenantResourceLimit" + v.query.Outputs = tenantResourceLimitOutput -func (serviceWithPrismaCreatedAtSetParam) settable() {} -func (serviceWithPrismaCreatedAtEqualsParam) equals() {} + var fields []builder.Field -type serviceWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _resource.field()) + fields = append(fields, _tenant.field()) + fields = append(fields, _limitValue.field()) -func (p serviceWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p serviceWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceWithPrismaCreatedAtEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} - -func (serviceWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (serviceWithPrismaCreatedAtEqualsUniqueParam) equals() {} - -type ServiceWithPrismaUpdatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - updatedAtField() -} +func (r tenantResourceLimitCreateOne) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type ServiceWithPrismaUpdatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - updatedAtField() + return r } -type serviceWithPrismaUpdatedAtSetParam struct { - data builder.Field +type tenantResourceLimitCreateOne struct { query builder.Query } -func (p serviceWithPrismaUpdatedAtSetParam) field() builder.Field { - return p.data -} - -func (p serviceWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p tenantResourceLimitCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaUpdatedAtSetParam) serviceModel() {} - -func (p serviceWithPrismaUpdatedAtSetParam) updatedAtField() {} - -type ServiceWithPrismaUpdatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - updatedAtField() -} +func (p tenantResourceLimitCreateOne) tenantResourceLimitModel() {} -type serviceWithPrismaUpdatedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantResourceLimitCreateOne) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { + var v TenantResourceLimitModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data +func (r tenantResourceLimitCreateOne) Tx() TenantResourceLimitUniqueTxResult { + v := newTenantResourceLimitUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single tenantResourceLimitAlert. +func (r tenantResourceLimitAlertActions) CreateOne( + _resourceLimit TenantResourceLimitAlertWithPrismaResourceLimitSetParam, + _tenant TenantResourceLimitAlertWithPrismaTenantSetParam, + _resource TenantResourceLimitAlertWithPrismaResourceSetParam, + _alertType TenantResourceLimitAlertWithPrismaAlertTypeSetParam, + _value TenantResourceLimitAlertWithPrismaValueSetParam, + _limit TenantResourceLimitAlertWithPrismaLimitSetParam, -func (p serviceWithPrismaUpdatedAtEqualsParam) serviceModel() {} + optional ...TenantResourceLimitAlertSetParam, +) tenantResourceLimitAlertCreateOne { + var v tenantResourceLimitAlertCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "TenantResourceLimitAlert" + v.query.Outputs = tenantResourceLimitAlertOutput -func (serviceWithPrismaUpdatedAtSetParam) settable() {} -func (serviceWithPrismaUpdatedAtEqualsParam) equals() {} + var fields []builder.Field -type serviceWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _resourceLimit.field()) + fields = append(fields, _tenant.field()) + fields = append(fields, _resource.field()) + fields = append(fields, _alertType.field()) + fields = append(fields, _value.field()) + fields = append(fields, _limit.field()) -func (p serviceWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p serviceWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceWithPrismaUpdatedAtEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (serviceWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (serviceWithPrismaUpdatedAtEqualsUniqueParam) equals() {} - -type ServiceWithPrismaDeletedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - deletedAtField() -} +func (r tenantResourceLimitAlertCreateOne) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitAlertCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type ServiceWithPrismaDeletedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - deletedAtField() + return r } -type serviceWithPrismaDeletedAtSetParam struct { - data builder.Field +type tenantResourceLimitAlertCreateOne struct { query builder.Query } -func (p serviceWithPrismaDeletedAtSetParam) field() builder.Field { - return p.data -} - -func (p serviceWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p tenantResourceLimitAlertCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaDeletedAtSetParam) serviceModel() {} - -func (p serviceWithPrismaDeletedAtSetParam) deletedAtField() {} - -type ServiceWithPrismaDeletedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - deletedAtField() -} +func (p tenantResourceLimitAlertCreateOne) tenantResourceLimitAlertModel() {} -type serviceWithPrismaDeletedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantResourceLimitAlertCreateOne) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { + var v TenantResourceLimitAlertModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceWithPrismaDeletedAtEqualsParam) field() builder.Field { - return p.data +func (r tenantResourceLimitAlertCreateOne) Tx() TenantResourceLimitAlertUniqueTxResult { + v := newTenantResourceLimitAlertUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single tenantAlertingSettings. +func (r tenantAlertingSettingsActions) CreateOne( + _tenant TenantAlertingSettingsWithPrismaTenantSetParam, -func (p serviceWithPrismaDeletedAtEqualsParam) serviceModel() {} + optional ...TenantAlertingSettingsSetParam, +) tenantAlertingSettingsCreateOne { + var v tenantAlertingSettingsCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceWithPrismaDeletedAtEqualsParam) deletedAtField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "TenantAlertingSettings" + v.query.Outputs = tenantAlertingSettingsOutput -func (serviceWithPrismaDeletedAtSetParam) settable() {} -func (serviceWithPrismaDeletedAtEqualsParam) equals() {} + var fields []builder.Field -type serviceWithPrismaDeletedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _tenant.field()) -func (p serviceWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p serviceWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceWithPrismaDeletedAtEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} - -func (serviceWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (serviceWithPrismaDeletedAtEqualsUniqueParam) equals() {} - -type ServiceWithPrismaNameEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - nameField() -} +func (r tenantAlertingSettingsCreateOne) With(params ...TenantAlertingSettingsRelationWith) tenantAlertingSettingsCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type ServiceWithPrismaNameSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - nameField() + return r } -type serviceWithPrismaNameSetParam struct { - data builder.Field +type tenantAlertingSettingsCreateOne struct { query builder.Query } -func (p serviceWithPrismaNameSetParam) field() builder.Field { - return p.data -} - -func (p serviceWithPrismaNameSetParam) getQuery() builder.Query { +func (p tenantAlertingSettingsCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaNameSetParam) serviceModel() {} - -func (p serviceWithPrismaNameSetParam) nameField() {} - -type ServiceWithPrismaNameWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - nameField() -} +func (p tenantAlertingSettingsCreateOne) tenantAlertingSettingsModel() {} -type serviceWithPrismaNameEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantAlertingSettingsCreateOne) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { + var v TenantAlertingSettingsModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceWithPrismaNameEqualsParam) field() builder.Field { - return p.data +func (r tenantAlertingSettingsCreateOne) Tx() TenantAlertingSettingsUniqueTxResult { + v := newTenantAlertingSettingsUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceWithPrismaNameEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single tenantMember. +func (r tenantMemberActions) CreateOne( + _tenant TenantMemberWithPrismaTenantSetParam, + _user TenantMemberWithPrismaUserSetParam, + _role TenantMemberWithPrismaRoleSetParam, -func (p serviceWithPrismaNameEqualsParam) serviceModel() {} + optional ...TenantMemberSetParam, +) tenantMemberCreateOne { + var v tenantMemberCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceWithPrismaNameEqualsParam) nameField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "TenantMember" + v.query.Outputs = tenantMemberOutput -func (serviceWithPrismaNameSetParam) settable() {} -func (serviceWithPrismaNameEqualsParam) equals() {} + var fields []builder.Field -type serviceWithPrismaNameEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _tenant.field()) + fields = append(fields, _user.field()) + fields = append(fields, _role.field()) -func (p serviceWithPrismaNameEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p serviceWithPrismaNameEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceWithPrismaNameEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaNameEqualsUniqueParam) nameField() {} - -func (serviceWithPrismaNameEqualsUniqueParam) unique() {} -func (serviceWithPrismaNameEqualsUniqueParam) equals() {} - -type ServiceWithPrismaDescriptionEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - descriptionField() -} +func (r tenantMemberCreateOne) With(params ...TenantMemberRelationWith) tenantMemberCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type ServiceWithPrismaDescriptionSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - descriptionField() + return r } -type serviceWithPrismaDescriptionSetParam struct { - data builder.Field +type tenantMemberCreateOne struct { query builder.Query } -func (p serviceWithPrismaDescriptionSetParam) field() builder.Field { - return p.data -} - -func (p serviceWithPrismaDescriptionSetParam) getQuery() builder.Query { +func (p tenantMemberCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaDescriptionSetParam) serviceModel() {} - -func (p serviceWithPrismaDescriptionSetParam) descriptionField() {} - -type ServiceWithPrismaDescriptionWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - descriptionField() -} +func (p tenantMemberCreateOne) tenantMemberModel() {} -type serviceWithPrismaDescriptionEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantMemberCreateOne) Exec(ctx context.Context) (*TenantMemberModel, error) { + var v TenantMemberModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceWithPrismaDescriptionEqualsParam) field() builder.Field { - return p.data +func (r tenantMemberCreateOne) Tx() TenantMemberUniqueTxResult { + v := newTenantMemberUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceWithPrismaDescriptionEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single tenantInviteLink. +func (r tenantInviteLinkActions) CreateOne( + _tenant TenantInviteLinkWithPrismaTenantSetParam, + _inviterEmail TenantInviteLinkWithPrismaInviterEmailSetParam, + _inviteeEmail TenantInviteLinkWithPrismaInviteeEmailSetParam, + _expires TenantInviteLinkWithPrismaExpiresSetParam, -func (p serviceWithPrismaDescriptionEqualsParam) serviceModel() {} + optional ...TenantInviteLinkSetParam, +) tenantInviteLinkCreateOne { + var v tenantInviteLinkCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceWithPrismaDescriptionEqualsParam) descriptionField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "TenantInviteLink" + v.query.Outputs = tenantInviteLinkOutput -func (serviceWithPrismaDescriptionSetParam) settable() {} -func (serviceWithPrismaDescriptionEqualsParam) equals() {} + var fields []builder.Field -type serviceWithPrismaDescriptionEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _tenant.field()) + fields = append(fields, _inviterEmail.field()) + fields = append(fields, _inviteeEmail.field()) + fields = append(fields, _expires.field()) -func (p serviceWithPrismaDescriptionEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p serviceWithPrismaDescriptionEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceWithPrismaDescriptionEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaDescriptionEqualsUniqueParam) descriptionField() {} - -func (serviceWithPrismaDescriptionEqualsUniqueParam) unique() {} -func (serviceWithPrismaDescriptionEqualsUniqueParam) equals() {} - -type ServiceWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - tenantField() -} +func (r tenantInviteLinkCreateOne) With(params ...TenantInviteLinkRelationWith) tenantInviteLinkCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type ServiceWithPrismaTenantSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - tenantField() + return r } -type serviceWithPrismaTenantSetParam struct { - data builder.Field +type tenantInviteLinkCreateOne struct { query builder.Query } -func (p serviceWithPrismaTenantSetParam) field() builder.Field { - return p.data -} - -func (p serviceWithPrismaTenantSetParam) getQuery() builder.Query { +func (p tenantInviteLinkCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaTenantSetParam) serviceModel() {} - -func (p serviceWithPrismaTenantSetParam) tenantField() {} +func (p tenantInviteLinkCreateOne) tenantInviteLinkModel() {} -type ServiceWithPrismaTenantWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - tenantField() +func (r tenantInviteLinkCreateOne) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { + var v TenantInviteLinkModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type serviceWithPrismaTenantEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantInviteLinkCreateOne) Tx() TenantInviteLinkUniqueTxResult { + v := newTenantInviteLinkUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceWithPrismaTenantEqualsParam) field() builder.Field { - return p.data -} +// Creates a single aPIToken. +func (r aPITokenActions) CreateOne( -func (p serviceWithPrismaTenantEqualsParam) getQuery() builder.Query { - return p.query -} + optional ...APITokenSetParam, +) aPITokenCreateOne { + var v aPITokenCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceWithPrismaTenantEqualsParam) serviceModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "APIToken" + v.query.Outputs = aPITokenOutput -func (p serviceWithPrismaTenantEqualsParam) tenantField() {} + var fields []builder.Field -func (serviceWithPrismaTenantSetParam) settable() {} -func (serviceWithPrismaTenantEqualsParam) equals() {} + for _, q := range optional { + fields = append(fields, q.field()) + } -type serviceWithPrismaTenantEqualsUniqueParam struct { - data builder.Field - query builder.Query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceWithPrismaTenantEqualsUniqueParam) field() builder.Field { - return p.data -} +func (r aPITokenCreateOne) With(params ...APITokenRelationWith) aPITokenCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (p serviceWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { - return p.query + return r } -func (p serviceWithPrismaTenantEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaTenantEqualsUniqueParam) tenantField() {} - -func (serviceWithPrismaTenantEqualsUniqueParam) unique() {} -func (serviceWithPrismaTenantEqualsUniqueParam) equals() {} - -type ServiceWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - tenantIDField() +type aPITokenCreateOne struct { + query builder.Query } -type ServiceWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - tenantIDField() +func (p aPITokenCreateOne) ExtractQuery() builder.Query { + return p.query } -type serviceWithPrismaTenantIDSetParam struct { - data builder.Field - query builder.Query -} +func (p aPITokenCreateOne) aPITokenModel() {} -func (p serviceWithPrismaTenantIDSetParam) field() builder.Field { - return p.data +func (r aPITokenCreateOne) Exec(ctx context.Context) (*APITokenModel, error) { + var v APITokenModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p serviceWithPrismaTenantIDSetParam) getQuery() builder.Query { - return p.query +func (r aPITokenCreateOne) Tx() APITokenUniqueTxResult { + v := newAPITokenUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p serviceWithPrismaTenantIDSetParam) serviceModel() {} - -func (p serviceWithPrismaTenantIDSetParam) tenantIDField() {} +// Creates a single event. +func (r eventActions) CreateOne( + _key EventWithPrismaKeySetParam, + _tenant EventWithPrismaTenantSetParam, -type ServiceWithPrismaTenantIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - tenantIDField() -} + optional ...EventSetParam, +) eventCreateOne { + var v eventCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type serviceWithPrismaTenantIDEqualsParam struct { - data builder.Field - query builder.Query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Event" + v.query.Outputs = eventOutput -func (p serviceWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data -} + var fields []builder.Field -func (p serviceWithPrismaTenantIDEqualsParam) getQuery() builder.Query { - return p.query -} + fields = append(fields, _key.field()) + fields = append(fields, _tenant.field()) -func (p serviceWithPrismaTenantIDEqualsParam) serviceModel() {} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p serviceWithPrismaTenantIDEqualsParam) tenantIDField() {} + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v +} -func (serviceWithPrismaTenantIDSetParam) settable() {} -func (serviceWithPrismaTenantIDEqualsParam) equals() {} +func (r eventCreateOne) With(params ...EventRelationWith) eventCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type serviceWithPrismaTenantIDEqualsUniqueParam struct { - data builder.Field - query builder.Query + return r } -func (p serviceWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { - return p.data +type eventCreateOne struct { + query builder.Query } -func (p serviceWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { +func (p eventCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaTenantIDEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} - -func (serviceWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (serviceWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (p eventCreateOne) eventModel() {} -type ServiceWithPrismaWorkersEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - serviceModel() - workersField() +func (r eventCreateOne) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type ServiceWithPrismaWorkersSetParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - workersField() +func (r eventCreateOne) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type serviceWithPrismaWorkersSetParam struct { - data builder.Field - query builder.Query -} +// Creates a single workflowTag. +func (r workflowTagActions) CreateOne( + _tenant WorkflowTagWithPrismaTenantSetParam, + _name WorkflowTagWithPrismaNameSetParam, -func (p serviceWithPrismaWorkersSetParam) field() builder.Field { - return p.data -} + optional ...WorkflowTagSetParam, +) workflowTagCreateOne { + var v workflowTagCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p serviceWithPrismaWorkersSetParam) getQuery() builder.Query { - return p.query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowTag" + v.query.Outputs = workflowTagOutput -func (p serviceWithPrismaWorkersSetParam) serviceModel() {} + var fields []builder.Field -func (p serviceWithPrismaWorkersSetParam) workersField() {} + fields = append(fields, _tenant.field()) + fields = append(fields, _name.field()) -type ServiceWithPrismaWorkersWhereParam interface { - field() builder.Field - getQuery() builder.Query - serviceModel() - workersField() -} + for _, q := range optional { + fields = append(fields, q.field()) + } -type serviceWithPrismaWorkersEqualsParam struct { - data builder.Field - query builder.Query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p serviceWithPrismaWorkersEqualsParam) field() builder.Field { - return p.data -} +func (r workflowTagCreateOne) With(params ...WorkflowTagRelationWith) workflowTagCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (p serviceWithPrismaWorkersEqualsParam) getQuery() builder.Query { - return p.query + return r } -func (p serviceWithPrismaWorkersEqualsParam) serviceModel() {} - -func (p serviceWithPrismaWorkersEqualsParam) workersField() {} - -func (serviceWithPrismaWorkersSetParam) settable() {} -func (serviceWithPrismaWorkersEqualsParam) equals() {} - -type serviceWithPrismaWorkersEqualsUniqueParam struct { - data builder.Field +type workflowTagCreateOne struct { query builder.Query } -func (p serviceWithPrismaWorkersEqualsUniqueParam) field() builder.Field { - return p.data -} - -func (p serviceWithPrismaWorkersEqualsUniqueParam) getQuery() builder.Query { +func (p workflowTagCreateOne) ExtractQuery() builder.Query { return p.query } -func (p serviceWithPrismaWorkersEqualsUniqueParam) serviceModel() {} -func (p serviceWithPrismaWorkersEqualsUniqueParam) workersField() {} - -func (serviceWithPrismaWorkersEqualsUniqueParam) unique() {} -func (serviceWithPrismaWorkersEqualsUniqueParam) equals() {} +func (p workflowTagCreateOne) workflowTagModel() {} -type tenantVcsProviderActions struct { - // client holds the prisma client - client *PrismaClient +func (r workflowTagCreateOne) Exec(ctx context.Context) (*WorkflowTagModel, error) { + var v WorkflowTagModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -var tenantVcsProviderOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "vcsProvider"}, - {Name: "config"}, +func (r workflowTagCreateOne) Tx() WorkflowTagUniqueTxResult { + v := newWorkflowTagUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type TenantVcsProviderRelationWith interface { - getQuery() builder.Query - with() - tenantVcsProviderRelation() -} +// Creates a single workflow. +func (r workflowActions) CreateOne( + _tenant WorkflowWithPrismaTenantSetParam, + _name WorkflowWithPrismaNameSetParam, -type TenantVcsProviderWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() -} + optional ...WorkflowSetParam, +) workflowCreateOne { + var v workflowCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type tenantVcsProviderDefaultParam struct { - data builder.Field - query builder.Query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Workflow" + v.query.Outputs = workflowOutput -func (p tenantVcsProviderDefaultParam) field() builder.Field { - return p.data -} + var fields []builder.Field -func (p tenantVcsProviderDefaultParam) getQuery() builder.Query { - return p.query -} + fields = append(fields, _tenant.field()) + fields = append(fields, _name.field()) -func (p tenantVcsProviderDefaultParam) tenantVcsProviderModel() {} + for _, q := range optional { + fields = append(fields, q.field()) + } -type TenantVcsProviderOrderByParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type tenantVcsProviderOrderByParam struct { - data builder.Field - query builder.Query +func (r workflowCreateOne) With(params ...WorkflowRelationWith) workflowCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantVcsProviderOrderByParam) field() builder.Field { - return p.data +type workflowCreateOne struct { + query builder.Query } -func (p tenantVcsProviderOrderByParam) getQuery() builder.Query { +func (p workflowCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderOrderByParam) tenantVcsProviderModel() {} +func (p workflowCreateOne) workflowModel() {} -type TenantVcsProviderCursorParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - isCursor() +func (r workflowCreateOne) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type tenantVcsProviderCursorParam struct { - data builder.Field - query builder.Query +func (r workflowCreateOne) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderCursorParam) field() builder.Field { - return p.data -} +// Creates a single workflowVersion. +func (r workflowVersionActions) CreateOne( + _checksum WorkflowVersionWithPrismaChecksumSetParam, + _workflow WorkflowVersionWithPrismaWorkflowSetParam, -func (p tenantVcsProviderCursorParam) isCursor() {} + optional ...WorkflowVersionSetParam, +) workflowVersionCreateOne { + var v workflowVersionCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantVcsProviderCursorParam) getQuery() builder.Query { - return p.query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowVersion" + v.query.Outputs = workflowVersionOutput -func (p tenantVcsProviderCursorParam) tenantVcsProviderModel() {} + var fields []builder.Field -type TenantVcsProviderParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - tenantVcsProviderModel() -} + fields = append(fields, _checksum.field()) + fields = append(fields, _workflow.field()) -type tenantVcsProviderParamUnique struct { - data builder.Field - query builder.Query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantVcsProviderParamUnique) tenantVcsProviderModel() {} +func (r workflowVersionCreateOne) With(params ...WorkflowVersionRelationWith) workflowVersionCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (tenantVcsProviderParamUnique) unique() {} + return r +} -func (p tenantVcsProviderParamUnique) field() builder.Field { - return p.data +type workflowVersionCreateOne struct { + query builder.Query } -func (p tenantVcsProviderParamUnique) getQuery() builder.Query { +func (p workflowVersionCreateOne) ExtractQuery() builder.Query { return p.query } -type TenantVcsProviderEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() +func (p workflowVersionCreateOne) workflowVersionModel() {} + +func (r workflowVersionCreateOne) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type tenantVcsProviderEqualsParam struct { - data builder.Field - query builder.Query +func (r workflowVersionCreateOne) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderEqualsParam) tenantVcsProviderModel() {} +// Creates a single workflowConcurrency. +func (r workflowConcurrencyActions) CreateOne( + _workflow WorkflowConcurrencyWithPrismaWorkflowSetParam, -func (tenantVcsProviderEqualsParam) equals() {} + optional ...WorkflowConcurrencySetParam, +) workflowConcurrencyCreateOne { + var v workflowConcurrencyCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantVcsProviderEqualsParam) field() builder.Field { - return p.data -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowConcurrency" + v.query.Outputs = workflowConcurrencyOutput -func (p tenantVcsProviderEqualsParam) getQuery() builder.Query { - return p.query -} + var fields []builder.Field -type TenantVcsProviderEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - tenantVcsProviderModel() -} + fields = append(fields, _workflow.field()) -type tenantVcsProviderEqualsUniqueParam struct { - data builder.Field - query builder.Query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantVcsProviderEqualsUniqueParam) tenantVcsProviderModel() {} +func (r workflowConcurrencyCreateOne) With(params ...WorkflowConcurrencyRelationWith) workflowConcurrencyCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (tenantVcsProviderEqualsUniqueParam) unique() {} -func (tenantVcsProviderEqualsUniqueParam) equals() {} + return r +} -func (p tenantVcsProviderEqualsUniqueParam) field() builder.Field { - return p.data +type workflowConcurrencyCreateOne struct { + query builder.Query } -func (p tenantVcsProviderEqualsUniqueParam) getQuery() builder.Query { +func (p workflowConcurrencyCreateOne) ExtractQuery() builder.Query { return p.query } -type TenantVcsProviderSetParam interface { - field() builder.Field - settable() - tenantVcsProviderModel() -} +func (p workflowConcurrencyCreateOne) workflowConcurrencyModel() {} -type tenantVcsProviderSetParam struct { - data builder.Field +func (r workflowConcurrencyCreateOne) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { + var v WorkflowConcurrencyModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (tenantVcsProviderSetParam) settable() {} - -func (p tenantVcsProviderSetParam) field() builder.Field { - return p.data +func (r workflowConcurrencyCreateOne) Tx() WorkflowConcurrencyUniqueTxResult { + v := newWorkflowConcurrencyUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderSetParam) tenantVcsProviderModel() {} +// Creates a single workflowTriggers. +func (r workflowTriggersActions) CreateOne( + _workflow WorkflowTriggersWithPrismaWorkflowSetParam, + _tenant WorkflowTriggersWithPrismaTenantSetParam, -type TenantVcsProviderWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() - idField() -} + optional ...WorkflowTriggersSetParam, +) workflowTriggersCreateOne { + var v workflowTriggersCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type TenantVcsProviderWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - idField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowTriggers" + v.query.Outputs = workflowTriggersOutput -type tenantVcsProviderWithPrismaIDSetParam struct { - data builder.Field - query builder.Query -} + var fields []builder.Field -func (p tenantVcsProviderWithPrismaIDSetParam) field() builder.Field { - return p.data -} + fields = append(fields, _workflow.field()) + fields = append(fields, _tenant.field()) -func (p tenantVcsProviderWithPrismaIDSetParam) getQuery() builder.Query { - return p.query -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantVcsProviderWithPrismaIDSetParam) tenantVcsProviderModel() {} + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v +} -func (p tenantVcsProviderWithPrismaIDSetParam) idField() {} +func (r workflowTriggersCreateOne) With(params ...WorkflowTriggersRelationWith) workflowTriggersCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantVcsProviderWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - idField() + return r } -type tenantVcsProviderWithPrismaIDEqualsParam struct { - data builder.Field +type workflowTriggersCreateOne struct { query builder.Query } -func (p tenantVcsProviderWithPrismaIDEqualsParam) field() builder.Field { - return p.data -} - -func (p tenantVcsProviderWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workflowTriggersCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderWithPrismaIDEqualsParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaIDEqualsParam) idField() {} - -func (tenantVcsProviderWithPrismaIDSetParam) settable() {} -func (tenantVcsProviderWithPrismaIDEqualsParam) equals() {} - -type tenantVcsProviderWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (p workflowTriggersCreateOne) workflowTriggersModel() {} -func (p tenantVcsProviderWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r workflowTriggersCreateOne) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantVcsProviderWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r workflowTriggersCreateOne) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderWithPrismaIDEqualsUniqueParam) tenantVcsProviderModel() {} -func (p tenantVcsProviderWithPrismaIDEqualsUniqueParam) idField() {} +// Creates a single workflowTriggerEventRef. +func (r workflowTriggerEventRefActions) CreateOne( + _parent WorkflowTriggerEventRefWithPrismaParentSetParam, + _eventKey WorkflowTriggerEventRefWithPrismaEventKeySetParam, -func (tenantVcsProviderWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantVcsProviderWithPrismaIDEqualsUniqueParam) equals() {} + optional ...WorkflowTriggerEventRefSetParam, +) workflowTriggerEventRefCreateOne { + var v workflowTriggerEventRefCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type TenantVcsProviderWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() - createdAtField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowTriggerEventRef" + v.query.Outputs = workflowTriggerEventRefOutput -type TenantVcsProviderWithPrismaCreatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - createdAtField() -} + var fields []builder.Field -type tenantVcsProviderWithPrismaCreatedAtSetParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _parent.field()) + fields = append(fields, _eventKey.field()) -func (p tenantVcsProviderWithPrismaCreatedAtSetParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantVcsProviderWithPrismaCreatedAtSetParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantVcsProviderWithPrismaCreatedAtSetParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaCreatedAtSetParam) createdAtField() {} +func (r workflowTriggerEventRefCreateOne) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggerEventRefCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantVcsProviderWithPrismaCreatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - createdAtField() + return r } -type tenantVcsProviderWithPrismaCreatedAtEqualsParam struct { - data builder.Field +type workflowTriggerEventRefCreateOne struct { query builder.Query } -func (p tenantVcsProviderWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data -} - -func (p tenantVcsProviderWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerEventRefCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderWithPrismaCreatedAtEqualsParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaCreatedAtEqualsParam) createdAtField() {} - -func (tenantVcsProviderWithPrismaCreatedAtSetParam) settable() {} -func (tenantVcsProviderWithPrismaCreatedAtEqualsParam) equals() {} - -type tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (p workflowTriggerEventRefCreateOne) workflowTriggerEventRefModel() {} -func (p tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { - return p.data +func (r workflowTriggerEventRefCreateOne) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { + var v WorkflowTriggerEventRefModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r workflowTriggerEventRefCreateOne) Tx() WorkflowTriggerEventRefUniqueTxResult { + v := newWorkflowTriggerEventRefUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) tenantVcsProviderModel() {} -func (p tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +// Creates a single workflowTriggerCronRef. +func (r workflowTriggerCronRefActions) CreateOne( + _parent WorkflowTriggerCronRefWithPrismaParentSetParam, + _cron WorkflowTriggerCronRefWithPrismaCronSetParam, -func (tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantVcsProviderWithPrismaCreatedAtEqualsUniqueParam) equals() {} + optional ...WorkflowTriggerCronRefSetParam, +) workflowTriggerCronRefCreateOne { + var v workflowTriggerCronRefCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type TenantVcsProviderWithPrismaUpdatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() - updatedAtField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowTriggerCronRef" + v.query.Outputs = workflowTriggerCronRefOutput -type TenantVcsProviderWithPrismaUpdatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - updatedAtField() -} + var fields []builder.Field -type tenantVcsProviderWithPrismaUpdatedAtSetParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _parent.field()) + fields = append(fields, _cron.field()) -func (p tenantVcsProviderWithPrismaUpdatedAtSetParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantVcsProviderWithPrismaUpdatedAtSetParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantVcsProviderWithPrismaUpdatedAtSetParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaUpdatedAtSetParam) updatedAtField() {} +func (r workflowTriggerCronRefCreateOne) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggerCronRefCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantVcsProviderWithPrismaUpdatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - updatedAtField() + return r } -type tenantVcsProviderWithPrismaUpdatedAtEqualsParam struct { - data builder.Field +type workflowTriggerCronRefCreateOne struct { query builder.Query } -func (p tenantVcsProviderWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data -} - -func (p tenantVcsProviderWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerCronRefCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderWithPrismaUpdatedAtEqualsParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaUpdatedAtEqualsParam) updatedAtField() {} - -func (tenantVcsProviderWithPrismaUpdatedAtSetParam) settable() {} -func (tenantVcsProviderWithPrismaUpdatedAtEqualsParam) equals() {} - -type tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (p workflowTriggerCronRefCreateOne) workflowTriggerCronRefModel() {} -func (p tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { - return p.data +func (r workflowTriggerCronRefCreateOne) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r workflowTriggerCronRefCreateOne) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) tenantVcsProviderModel() {} -func (p tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} +// Creates a single workflowTriggerScheduledRef. +func (r workflowTriggerScheduledRefActions) CreateOne( + _parent WorkflowTriggerScheduledRefWithPrismaParentSetParam, + _triggerAt WorkflowTriggerScheduledRefWithPrismaTriggerAtSetParam, -func (tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantVcsProviderWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + optional ...WorkflowTriggerScheduledRefSetParam, +) workflowTriggerScheduledRefCreateOne { + var v workflowTriggerScheduledRefCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type TenantVcsProviderWithPrismaDeletedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() - deletedAtField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Outputs = workflowTriggerScheduledRefOutput -type TenantVcsProviderWithPrismaDeletedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - deletedAtField() -} + var fields []builder.Field -type tenantVcsProviderWithPrismaDeletedAtSetParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _parent.field()) + fields = append(fields, _triggerAt.field()) -func (p tenantVcsProviderWithPrismaDeletedAtSetParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantVcsProviderWithPrismaDeletedAtSetParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantVcsProviderWithPrismaDeletedAtSetParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaDeletedAtSetParam) deletedAtField() {} +func (r workflowTriggerScheduledRefCreateOne) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowTriggerScheduledRefCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantVcsProviderWithPrismaDeletedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - deletedAtField() + return r } -type tenantVcsProviderWithPrismaDeletedAtEqualsParam struct { - data builder.Field +type workflowTriggerScheduledRefCreateOne struct { query builder.Query } -func (p tenantVcsProviderWithPrismaDeletedAtEqualsParam) field() builder.Field { - return p.data -} - -func (p tenantVcsProviderWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { +func (p workflowTriggerScheduledRefCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderWithPrismaDeletedAtEqualsParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaDeletedAtEqualsParam) deletedAtField() {} - -func (tenantVcsProviderWithPrismaDeletedAtSetParam) settable() {} -func (tenantVcsProviderWithPrismaDeletedAtEqualsParam) equals() {} - -type tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (p workflowTriggerScheduledRefCreateOne) workflowTriggerScheduledRefModel() {} -func (p tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { - return p.data +func (r workflowTriggerScheduledRefCreateOne) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r workflowTriggerScheduledRefCreateOne) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) tenantVcsProviderModel() {} -func (p tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +// Creates a single job. +func (r jobActions) CreateOne( + _tenant JobWithPrismaTenantSetParam, + _workflow JobWithPrismaWorkflowSetParam, + _name JobWithPrismaNameSetParam, -func (tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (tenantVcsProviderWithPrismaDeletedAtEqualsUniqueParam) equals() {} + optional ...JobSetParam, +) jobCreateOne { + var v jobCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type TenantVcsProviderWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() - tenantField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Job" + v.query.Outputs = jobOutput -type TenantVcsProviderWithPrismaTenantSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - tenantField() -} + var fields []builder.Field -type tenantVcsProviderWithPrismaTenantSetParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _tenant.field()) + fields = append(fields, _workflow.field()) + fields = append(fields, _name.field()) -func (p tenantVcsProviderWithPrismaTenantSetParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantVcsProviderWithPrismaTenantSetParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantVcsProviderWithPrismaTenantSetParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaTenantSetParam) tenantField() {} +func (r jobCreateOne) With(params ...JobRelationWith) jobCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantVcsProviderWithPrismaTenantWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - tenantField() + return r } -type tenantVcsProviderWithPrismaTenantEqualsParam struct { - data builder.Field +type jobCreateOne struct { query builder.Query } -func (p tenantVcsProviderWithPrismaTenantEqualsParam) field() builder.Field { - return p.data -} - -func (p tenantVcsProviderWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p jobCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderWithPrismaTenantEqualsParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaTenantEqualsParam) tenantField() {} - -func (tenantVcsProviderWithPrismaTenantSetParam) settable() {} -func (tenantVcsProviderWithPrismaTenantEqualsParam) equals() {} +func (p jobCreateOne) jobModel() {} -type tenantVcsProviderWithPrismaTenantEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r jobCreateOne) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantVcsProviderWithPrismaTenantEqualsUniqueParam) field() builder.Field { - return p.data +func (r jobCreateOne) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +// Creates a single action. +func (r actionActions) CreateOne( + _actionID ActionWithPrismaActionIDSetParam, + _tenant ActionWithPrismaTenantSetParam, -func (p tenantVcsProviderWithPrismaTenantEqualsUniqueParam) tenantVcsProviderModel() {} -func (p tenantVcsProviderWithPrismaTenantEqualsUniqueParam) tenantField() {} + optional ...ActionSetParam, +) actionCreateOne { + var v actionCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (tenantVcsProviderWithPrismaTenantEqualsUniqueParam) unique() {} -func (tenantVcsProviderWithPrismaTenantEqualsUniqueParam) equals() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Action" + v.query.Outputs = actionOutput -type TenantVcsProviderWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() - tenantIDField() -} + var fields []builder.Field -type TenantVcsProviderWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - tenantIDField() + fields = append(fields, _actionID.field()) + fields = append(fields, _tenant.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type tenantVcsProviderWithPrismaTenantIDSetParam struct { - data builder.Field - query builder.Query +func (r actionCreateOne) With(params ...ActionRelationWith) actionCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantVcsProviderWithPrismaTenantIDSetParam) field() builder.Field { - return p.data +type actionCreateOne struct { + query builder.Query } -func (p tenantVcsProviderWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p actionCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderWithPrismaTenantIDSetParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaTenantIDSetParam) tenantIDField() {} +func (p actionCreateOne) actionModel() {} -type TenantVcsProviderWithPrismaTenantIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - tenantIDField() +func (r actionCreateOne) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type tenantVcsProviderWithPrismaTenantIDEqualsParam struct { - data builder.Field - query builder.Query +func (r actionCreateOne) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data -} +// Creates a single stepDesiredWorkerLabel. +func (r stepDesiredWorkerLabelActions) CreateOne( + _step StepDesiredWorkerLabelWithPrismaStepSetParam, + _key StepDesiredWorkerLabelWithPrismaKeySetParam, + _required StepDesiredWorkerLabelWithPrismaRequiredSetParam, + _comparator StepDesiredWorkerLabelWithPrismaComparatorSetParam, + _weight StepDesiredWorkerLabelWithPrismaWeightSetParam, -func (p tenantVcsProviderWithPrismaTenantIDEqualsParam) getQuery() builder.Query { - return p.query -} + optional ...StepDesiredWorkerLabelSetParam, +) stepDesiredWorkerLabelCreateOne { + var v stepDesiredWorkerLabelCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantVcsProviderWithPrismaTenantIDEqualsParam) tenantVcsProviderModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "StepDesiredWorkerLabel" + v.query.Outputs = stepDesiredWorkerLabelOutput -func (p tenantVcsProviderWithPrismaTenantIDEqualsParam) tenantIDField() {} + var fields []builder.Field -func (tenantVcsProviderWithPrismaTenantIDSetParam) settable() {} -func (tenantVcsProviderWithPrismaTenantIDEqualsParam) equals() {} + fields = append(fields, _step.field()) + fields = append(fields, _key.field()) + fields = append(fields, _required.field()) + fields = append(fields, _comparator.field()) + fields = append(fields, _weight.field()) -type tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam struct { - data builder.Field - query builder.Query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r stepDesiredWorkerLabelCreateOne) With(params ...StepDesiredWorkerLabelRelationWith) stepDesiredWorkerLabelCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +type stepDesiredWorkerLabelCreateOne struct { + query builder.Query } -func (p tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) tenantVcsProviderModel() {} -func (p tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (p stepDesiredWorkerLabelCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (tenantVcsProviderWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (p stepDesiredWorkerLabelCreateOne) stepDesiredWorkerLabelModel() {} -type TenantVcsProviderWithPrismaVcsProviderEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() - vcsProviderField() +func (r stepDesiredWorkerLabelCreateOne) Exec(ctx context.Context) (*StepDesiredWorkerLabelModel, error) { + var v StepDesiredWorkerLabelModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type TenantVcsProviderWithPrismaVcsProviderSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - vcsProviderField() +func (r stepDesiredWorkerLabelCreateOne) Tx() StepDesiredWorkerLabelUniqueTxResult { + v := newStepDesiredWorkerLabelUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type tenantVcsProviderWithPrismaVcsProviderSetParam struct { - data builder.Field - query builder.Query -} +// Creates a single step. +func (r stepActions) CreateOne( + _tenant StepWithPrismaTenantSetParam, + _job StepWithPrismaJobSetParam, + _action StepWithPrismaActionSetParam, -func (p tenantVcsProviderWithPrismaVcsProviderSetParam) field() builder.Field { - return p.data -} + optional ...StepSetParam, +) stepCreateOne { + var v stepCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantVcsProviderWithPrismaVcsProviderSetParam) getQuery() builder.Query { - return p.query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Step" + v.query.Outputs = stepOutput -func (p tenantVcsProviderWithPrismaVcsProviderSetParam) tenantVcsProviderModel() {} + var fields []builder.Field -func (p tenantVcsProviderWithPrismaVcsProviderSetParam) vcsProviderField() {} + fields = append(fields, _tenant.field()) + fields = append(fields, _job.field()) + fields = append(fields, _action.field()) -type TenantVcsProviderWithPrismaVcsProviderWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - vcsProviderField() + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type tenantVcsProviderWithPrismaVcsProviderEqualsParam struct { - data builder.Field - query builder.Query +func (r stepCreateOne) With(params ...StepRelationWith) stepCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantVcsProviderWithPrismaVcsProviderEqualsParam) field() builder.Field { - return p.data +type stepCreateOne struct { + query builder.Query } -func (p tenantVcsProviderWithPrismaVcsProviderEqualsParam) getQuery() builder.Query { +func (p stepCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderWithPrismaVcsProviderEqualsParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaVcsProviderEqualsParam) vcsProviderField() {} - -func (tenantVcsProviderWithPrismaVcsProviderSetParam) settable() {} -func (tenantVcsProviderWithPrismaVcsProviderEqualsParam) equals() {} - -type tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (p stepCreateOne) stepModel() {} -func (p tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) field() builder.Field { - return p.data +func (r stepCreateOne) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r stepCreateOne) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) tenantVcsProviderModel() {} -func (p tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) vcsProviderField() {} +// Creates a single stepRateLimit. +func (r stepRateLimitActions) CreateOne( + _units StepRateLimitWithPrismaUnitsSetParam, + _step StepRateLimitWithPrismaStepSetParam, + _rateLimit StepRateLimitWithPrismaRateLimitSetParam, + _tenant StepRateLimitWithPrismaTenantSetParam, -func (tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) unique() {} -func (tenantVcsProviderWithPrismaVcsProviderEqualsUniqueParam) equals() {} + optional ...StepRateLimitSetParam, +) stepRateLimitCreateOne { + var v stepRateLimitCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type TenantVcsProviderWithPrismaConfigEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantVcsProviderModel() - configField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "StepRateLimit" + v.query.Outputs = stepRateLimitOutput -type TenantVcsProviderWithPrismaConfigSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - configField() -} + var fields []builder.Field -type tenantVcsProviderWithPrismaConfigSetParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _units.field()) + fields = append(fields, _step.field()) + fields = append(fields, _rateLimit.field()) + fields = append(fields, _tenant.field()) -func (p tenantVcsProviderWithPrismaConfigSetParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantVcsProviderWithPrismaConfigSetParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantVcsProviderWithPrismaConfigSetParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaConfigSetParam) configField() {} +func (r stepRateLimitCreateOne) With(params ...StepRateLimitRelationWith) stepRateLimitCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantVcsProviderWithPrismaConfigWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantVcsProviderModel() - configField() + return r } -type tenantVcsProviderWithPrismaConfigEqualsParam struct { - data builder.Field +type stepRateLimitCreateOne struct { query builder.Query } -func (p tenantVcsProviderWithPrismaConfigEqualsParam) field() builder.Field { - return p.data -} - -func (p tenantVcsProviderWithPrismaConfigEqualsParam) getQuery() builder.Query { +func (p stepRateLimitCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantVcsProviderWithPrismaConfigEqualsParam) tenantVcsProviderModel() {} - -func (p tenantVcsProviderWithPrismaConfigEqualsParam) configField() {} - -func (tenantVcsProviderWithPrismaConfigSetParam) settable() {} -func (tenantVcsProviderWithPrismaConfigEqualsParam) equals() {} +func (p stepRateLimitCreateOne) stepRateLimitModel() {} -type tenantVcsProviderWithPrismaConfigEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r stepRateLimitCreateOne) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantVcsProviderWithPrismaConfigEqualsUniqueParam) field() builder.Field { - return p.data +func (r stepRateLimitCreateOne) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantVcsProviderWithPrismaConfigEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +// Creates a single rateLimit. +func (r rateLimitActions) CreateOne( + _tenant RateLimitWithPrismaTenantSetParam, + _key RateLimitWithPrismaKeySetParam, + _limitValue RateLimitWithPrismaLimitValueSetParam, + _value RateLimitWithPrismaValueSetParam, + _window RateLimitWithPrismaWindowSetParam, -func (p tenantVcsProviderWithPrismaConfigEqualsUniqueParam) tenantVcsProviderModel() {} -func (p tenantVcsProviderWithPrismaConfigEqualsUniqueParam) configField() {} + optional ...RateLimitSetParam, +) rateLimitCreateOne { + var v rateLimitCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (tenantVcsProviderWithPrismaConfigEqualsUniqueParam) unique() {} -func (tenantVcsProviderWithPrismaConfigEqualsUniqueParam) equals() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "RateLimit" + v.query.Outputs = rateLimitOutput -type tenantAlertEmailGroupActions struct { - // client holds the prisma client - client *PrismaClient -} + var fields []builder.Field -var tenantAlertEmailGroupOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "emails"}, -} + fields = append(fields, _tenant.field()) + fields = append(fields, _key.field()) + fields = append(fields, _limitValue.field()) + fields = append(fields, _value.field()) + fields = append(fields, _window.field()) -type TenantAlertEmailGroupRelationWith interface { - getQuery() builder.Query - with() - tenantAlertEmailGroupRelation() -} + for _, q := range optional { + fields = append(fields, q.field()) + } -type TenantAlertEmailGroupWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type tenantAlertEmailGroupDefaultParam struct { - data builder.Field - query builder.Query +func (r rateLimitCreateOne) With(params ...RateLimitRelationWith) rateLimitCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantAlertEmailGroupDefaultParam) field() builder.Field { - return p.data +type rateLimitCreateOne struct { + query builder.Query } -func (p tenantAlertEmailGroupDefaultParam) getQuery() builder.Query { +func (p rateLimitCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantAlertEmailGroupDefaultParam) tenantAlertEmailGroupModel() {} - -type TenantAlertEmailGroupOrderByParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() -} +func (p rateLimitCreateOne) rateLimitModel() {} -type tenantAlertEmailGroupOrderByParam struct { - data builder.Field - query builder.Query +func (r rateLimitCreateOne) Exec(ctx context.Context) (*RateLimitModel, error) { + var v RateLimitModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantAlertEmailGroupOrderByParam) field() builder.Field { - return p.data +func (r rateLimitCreateOne) Tx() RateLimitUniqueTxResult { + v := newRateLimitUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantAlertEmailGroupOrderByParam) getQuery() builder.Query { - return p.query -} +// Creates a single workflowRunStickyState. +func (r workflowRunStickyStateActions) CreateOne( + _tenantID WorkflowRunStickyStateWithPrismaTenantIDSetParam, + _workflowRun WorkflowRunStickyStateWithPrismaWorkflowRunSetParam, + _strategy WorkflowRunStickyStateWithPrismaStrategySetParam, -func (p tenantAlertEmailGroupOrderByParam) tenantAlertEmailGroupModel() {} + optional ...WorkflowRunStickyStateSetParam, +) workflowRunStickyStateCreateOne { + var v workflowRunStickyStateCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type TenantAlertEmailGroupCursorParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - isCursor() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowRunStickyState" + v.query.Outputs = workflowRunStickyStateOutput -type tenantAlertEmailGroupCursorParam struct { - data builder.Field - query builder.Query -} + var fields []builder.Field -func (p tenantAlertEmailGroupCursorParam) field() builder.Field { - return p.data -} + fields = append(fields, _tenantID.field()) + fields = append(fields, _workflowRun.field()) + fields = append(fields, _strategy.field()) -func (p tenantAlertEmailGroupCursorParam) isCursor() {} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantAlertEmailGroupCursorParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantAlertEmailGroupCursorParam) tenantAlertEmailGroupModel() {} +func (r workflowRunStickyStateCreateOne) With(params ...WorkflowRunStickyStateRelationWith) workflowRunStickyStateCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantAlertEmailGroupParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - tenantAlertEmailGroupModel() + return r } -type tenantAlertEmailGroupParamUnique struct { - data builder.Field +type workflowRunStickyStateCreateOne struct { query builder.Query } -func (p tenantAlertEmailGroupParamUnique) tenantAlertEmailGroupModel() {} +func (p workflowRunStickyStateCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (tenantAlertEmailGroupParamUnique) unique() {} +func (p workflowRunStickyStateCreateOne) workflowRunStickyStateModel() {} -func (p tenantAlertEmailGroupParamUnique) field() builder.Field { - return p.data +func (r workflowRunStickyStateCreateOne) Exec(ctx context.Context) (*WorkflowRunStickyStateModel, error) { + var v WorkflowRunStickyStateModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantAlertEmailGroupParamUnique) getQuery() builder.Query { - return p.query +func (r workflowRunStickyStateCreateOne) Tx() WorkflowRunStickyStateUniqueTxResult { + v := newWorkflowRunStickyStateUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type TenantAlertEmailGroupEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertEmailGroupModel() -} +// Creates a single workflowRun. +func (r workflowRunActions) CreateOne( + _tenant WorkflowRunWithPrismaTenantSetParam, + _workflowVersion WorkflowRunWithPrismaWorkflowVersionSetParam, -type tenantAlertEmailGroupEqualsParam struct { - data builder.Field - query builder.Query -} + optional ...WorkflowRunSetParam, +) workflowRunCreateOne { + var v workflowRunCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantAlertEmailGroupEqualsParam) tenantAlertEmailGroupModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowRun" + v.query.Outputs = workflowRunOutput -func (tenantAlertEmailGroupEqualsParam) equals() {} + var fields []builder.Field -func (p tenantAlertEmailGroupEqualsParam) field() builder.Field { - return p.data -} + fields = append(fields, _tenant.field()) + fields = append(fields, _workflowVersion.field()) -func (p tenantAlertEmailGroupEqualsParam) getQuery() builder.Query { - return p.query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type TenantAlertEmailGroupEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - tenantAlertEmailGroupModel() +func (r workflowRunCreateOne) With(params ...WorkflowRunRelationWith) workflowRunCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -type tenantAlertEmailGroupEqualsUniqueParam struct { - data builder.Field +type workflowRunCreateOne struct { query builder.Query } -func (p tenantAlertEmailGroupEqualsUniqueParam) tenantAlertEmailGroupModel() {} +func (p workflowRunCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (tenantAlertEmailGroupEqualsUniqueParam) unique() {} -func (tenantAlertEmailGroupEqualsUniqueParam) equals() {} +func (p workflowRunCreateOne) workflowRunModel() {} -func (p tenantAlertEmailGroupEqualsUniqueParam) field() builder.Field { - return p.data +func (r workflowRunCreateOne) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantAlertEmailGroupEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r workflowRunCreateOne) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type TenantAlertEmailGroupSetParam interface { - field() builder.Field - settable() - tenantAlertEmailGroupModel() -} +// Creates a single workflowRunDedupe. +func (r workflowRunDedupeActions) CreateOne( + _tenant WorkflowRunDedupeWithPrismaTenantSetParam, + _workflowID WorkflowRunDedupeWithPrismaWorkflowIDSetParam, + _workflowRunID WorkflowRunDedupeWithPrismaWorkflowRunIDSetParam, + _value WorkflowRunDedupeWithPrismaValueSetParam, -type tenantAlertEmailGroupSetParam struct { - data builder.Field -} + optional ...WorkflowRunDedupeSetParam, +) workflowRunDedupeCreateOne { + var v workflowRunDedupeCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (tenantAlertEmailGroupSetParam) settable() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowRunDedupe" + v.query.Outputs = workflowRunDedupeOutput -func (p tenantAlertEmailGroupSetParam) field() builder.Field { - return p.data -} + var fields []builder.Field -func (p tenantAlertEmailGroupSetParam) tenantAlertEmailGroupModel() {} + fields = append(fields, _tenant.field()) + fields = append(fields, _workflowID.field()) + fields = append(fields, _workflowRunID.field()) + fields = append(fields, _value.field()) -type TenantAlertEmailGroupWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertEmailGroupModel() - idField() -} + for _, q := range optional { + fields = append(fields, q.field()) + } -type TenantAlertEmailGroupWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - idField() + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type tenantAlertEmailGroupWithPrismaIDSetParam struct { - data builder.Field - query builder.Query +func (r workflowRunDedupeCreateOne) With(params ...WorkflowRunDedupeRelationWith) workflowRunDedupeCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantAlertEmailGroupWithPrismaIDSetParam) field() builder.Field { - return p.data +type workflowRunDedupeCreateOne struct { + query builder.Query } -func (p tenantAlertEmailGroupWithPrismaIDSetParam) getQuery() builder.Query { +func (p workflowRunDedupeCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantAlertEmailGroupWithPrismaIDSetParam) tenantAlertEmailGroupModel() {} - -func (p tenantAlertEmailGroupWithPrismaIDSetParam) idField() {} - -type TenantAlertEmailGroupWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - idField() -} +func (p workflowRunDedupeCreateOne) workflowRunDedupeModel() {} -type tenantAlertEmailGroupWithPrismaIDEqualsParam struct { - data builder.Field - query builder.Query +func (r workflowRunDedupeCreateOne) Exec(ctx context.Context) (*WorkflowRunDedupeModel, error) { + var v WorkflowRunDedupeModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantAlertEmailGroupWithPrismaIDEqualsParam) field() builder.Field { - return p.data +func (r workflowRunDedupeCreateOne) Tx() WorkflowRunDedupeUniqueTxResult { + v := newWorkflowRunDedupeUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantAlertEmailGroupWithPrismaIDEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single getGroupKeyRun. +func (r getGroupKeyRunActions) CreateOne( + _tenant GetGroupKeyRunWithPrismaTenantSetParam, + _workflowRun GetGroupKeyRunWithPrismaWorkflowRunSetParam, -func (p tenantAlertEmailGroupWithPrismaIDEqualsParam) tenantAlertEmailGroupModel() {} + optional ...GetGroupKeyRunSetParam, +) getGroupKeyRunCreateOne { + var v getGroupKeyRunCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantAlertEmailGroupWithPrismaIDEqualsParam) idField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "GetGroupKeyRun" + v.query.Outputs = getGroupKeyRunOutput -func (tenantAlertEmailGroupWithPrismaIDSetParam) settable() {} -func (tenantAlertEmailGroupWithPrismaIDEqualsParam) equals() {} + var fields []builder.Field -type tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _tenant.field()) + fields = append(fields, _workflowRun.field()) -func (p tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) tenantAlertEmailGroupModel() {} -func (p tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) idField() {} - -func (tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) unique() {} -func (tenantAlertEmailGroupWithPrismaIDEqualsUniqueParam) equals() {} - -type TenantAlertEmailGroupWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertEmailGroupModel() - createdAtField() -} +func (r getGroupKeyRunCreateOne) With(params ...GetGroupKeyRunRelationWith) getGroupKeyRunCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantAlertEmailGroupWithPrismaCreatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - createdAtField() + return r } -type tenantAlertEmailGroupWithPrismaCreatedAtSetParam struct { - data builder.Field +type getGroupKeyRunCreateOne struct { query builder.Query } -func (p tenantAlertEmailGroupWithPrismaCreatedAtSetParam) field() builder.Field { - return p.data -} - -func (p tenantAlertEmailGroupWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p getGroupKeyRunCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantAlertEmailGroupWithPrismaCreatedAtSetParam) tenantAlertEmailGroupModel() {} - -func (p tenantAlertEmailGroupWithPrismaCreatedAtSetParam) createdAtField() {} - -type TenantAlertEmailGroupWithPrismaCreatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - createdAtField() -} +func (p getGroupKeyRunCreateOne) getGroupKeyRunModel() {} -type tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r getGroupKeyRunCreateOne) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { + var v GetGroupKeyRunModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data +func (r getGroupKeyRunCreateOne) Tx() GetGroupKeyRunUniqueTxResult { + v := newGetGroupKeyRunUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single workflowRunTriggeredBy. +func (r workflowRunTriggeredByActions) CreateOne( + _tenant WorkflowRunTriggeredByWithPrismaTenantSetParam, + _parent WorkflowRunTriggeredByWithPrismaParentSetParam, -func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) tenantAlertEmailGroupModel() {} + optional ...WorkflowRunTriggeredBySetParam, +) workflowRunTriggeredByCreateOne { + var v workflowRunTriggeredByCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) createdAtField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkflowRunTriggeredBy" + v.query.Outputs = workflowRunTriggeredByOutput -func (tenantAlertEmailGroupWithPrismaCreatedAtSetParam) settable() {} -func (tenantAlertEmailGroupWithPrismaCreatedAtEqualsParam) equals() {} + var fields []builder.Field -type tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _tenant.field()) + fields = append(fields, _parent.field()) -func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) tenantAlertEmailGroupModel() {} -func (p tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} - -func (tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (tenantAlertEmailGroupWithPrismaCreatedAtEqualsUniqueParam) equals() {} - -type TenantAlertEmailGroupWithPrismaUpdatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertEmailGroupModel() - updatedAtField() -} +func (r workflowRunTriggeredByCreateOne) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunTriggeredByCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantAlertEmailGroupWithPrismaUpdatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - updatedAtField() + return r } -type tenantAlertEmailGroupWithPrismaUpdatedAtSetParam struct { - data builder.Field +type workflowRunTriggeredByCreateOne struct { query builder.Query } -func (p tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) field() builder.Field { - return p.data -} - -func (p tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) getQuery() builder.Query { +func (p workflowRunTriggeredByCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) tenantAlertEmailGroupModel() {} - -func (p tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) updatedAtField() {} - -type TenantAlertEmailGroupWithPrismaUpdatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - updatedAtField() -} +func (p workflowRunTriggeredByCreateOne) workflowRunTriggeredByModel() {} -type tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r workflowRunTriggeredByCreateOne) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { + var v WorkflowRunTriggeredByModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data +func (r workflowRunTriggeredByCreateOne) Tx() WorkflowRunTriggeredByUniqueTxResult { + v := newWorkflowRunTriggeredByUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single jobRun. +func (r jobRunActions) CreateOne( + _tenant JobRunWithPrismaTenantSetParam, + _workflowRun JobRunWithPrismaWorkflowRunSetParam, + _job JobRunWithPrismaJobSetParam, -func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) tenantAlertEmailGroupModel() {} + optional ...JobRunSetParam, +) jobRunCreateOne { + var v jobRunCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) updatedAtField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "JobRun" + v.query.Outputs = jobRunOutput -func (tenantAlertEmailGroupWithPrismaUpdatedAtSetParam) settable() {} -func (tenantAlertEmailGroupWithPrismaUpdatedAtEqualsParam) equals() {} + var fields []builder.Field -type tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _tenant.field()) + fields = append(fields, _workflowRun.field()) + fields = append(fields, _job.field()) -func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) tenantAlertEmailGroupModel() {} -func (p tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (tenantAlertEmailGroupWithPrismaUpdatedAtEqualsUniqueParam) equals() {} - -type TenantAlertEmailGroupWithPrismaDeletedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertEmailGroupModel() - deletedAtField() -} +func (r jobRunCreateOne) With(params ...JobRunRelationWith) jobRunCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantAlertEmailGroupWithPrismaDeletedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - deletedAtField() + return r } -type tenantAlertEmailGroupWithPrismaDeletedAtSetParam struct { - data builder.Field +type jobRunCreateOne struct { query builder.Query } -func (p tenantAlertEmailGroupWithPrismaDeletedAtSetParam) field() builder.Field { - return p.data -} - -func (p tenantAlertEmailGroupWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p jobRunCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantAlertEmailGroupWithPrismaDeletedAtSetParam) tenantAlertEmailGroupModel() {} - -func (p tenantAlertEmailGroupWithPrismaDeletedAtSetParam) deletedAtField() {} - -type TenantAlertEmailGroupWithPrismaDeletedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - deletedAtField() -} +func (p jobRunCreateOne) jobRunModel() {} -type tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r jobRunCreateOne) Exec(ctx context.Context) (*JobRunModel, error) { + var v JobRunModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) field() builder.Field { - return p.data +func (r jobRunCreateOne) Tx() JobRunUniqueTxResult { + v := newJobRunUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single jobRunLookupData. +func (r jobRunLookupDataActions) CreateOne( + _jobRun JobRunLookupDataWithPrismaJobRunSetParam, + _tenant JobRunLookupDataWithPrismaTenantSetParam, -func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) tenantAlertEmailGroupModel() {} + optional ...JobRunLookupDataSetParam, +) jobRunLookupDataCreateOne { + var v jobRunLookupDataCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) deletedAtField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "JobRunLookupData" + v.query.Outputs = jobRunLookupDataOutput -func (tenantAlertEmailGroupWithPrismaDeletedAtSetParam) settable() {} -func (tenantAlertEmailGroupWithPrismaDeletedAtEqualsParam) equals() {} + var fields []builder.Field -type tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _jobRun.field()) + fields = append(fields, _tenant.field()) -func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) tenantAlertEmailGroupModel() {} -func (p tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} - -func (tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (tenantAlertEmailGroupWithPrismaDeletedAtEqualsUniqueParam) equals() {} - -type TenantAlertEmailGroupWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertEmailGroupModel() - tenantField() -} +func (r jobRunLookupDataCreateOne) With(params ...JobRunLookupDataRelationWith) jobRunLookupDataCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type TenantAlertEmailGroupWithPrismaTenantSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - tenantField() + return r } -type tenantAlertEmailGroupWithPrismaTenantSetParam struct { - data builder.Field +type jobRunLookupDataCreateOne struct { query builder.Query } -func (p tenantAlertEmailGroupWithPrismaTenantSetParam) field() builder.Field { - return p.data -} - -func (p tenantAlertEmailGroupWithPrismaTenantSetParam) getQuery() builder.Query { +func (p jobRunLookupDataCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantAlertEmailGroupWithPrismaTenantSetParam) tenantAlertEmailGroupModel() {} - -func (p tenantAlertEmailGroupWithPrismaTenantSetParam) tenantField() {} +func (p jobRunLookupDataCreateOne) jobRunLookupDataModel() {} -type TenantAlertEmailGroupWithPrismaTenantWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - tenantField() +func (r jobRunLookupDataCreateOne) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { + var v JobRunLookupDataModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type tenantAlertEmailGroupWithPrismaTenantEqualsParam struct { - data builder.Field - query builder.Query +func (r jobRunLookupDataCreateOne) Tx() JobRunLookupDataUniqueTxResult { + v := newJobRunLookupDataUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantAlertEmailGroupWithPrismaTenantEqualsParam) field() builder.Field { - return p.data -} +// Creates a single stepRun. +func (r stepRunActions) CreateOne( + _tenant StepRunWithPrismaTenantSetParam, + _jobRun StepRunWithPrismaJobRunSetParam, + _step StepRunWithPrismaStepSetParam, -func (p tenantAlertEmailGroupWithPrismaTenantEqualsParam) getQuery() builder.Query { - return p.query -} + optional ...StepRunSetParam, +) stepRunCreateOne { + var v stepRunCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantAlertEmailGroupWithPrismaTenantEqualsParam) tenantAlertEmailGroupModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "StepRun" + v.query.Outputs = stepRunOutput -func (p tenantAlertEmailGroupWithPrismaTenantEqualsParam) tenantField() {} + var fields []builder.Field -func (tenantAlertEmailGroupWithPrismaTenantSetParam) settable() {} -func (tenantAlertEmailGroupWithPrismaTenantEqualsParam) equals() {} + fields = append(fields, _tenant.field()) + fields = append(fields, _jobRun.field()) + fields = append(fields, _step.field()) -type tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam struct { - data builder.Field - query builder.Query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) field() builder.Field { - return p.data +func (r stepRunCreateOne) With(params ...StepRunRelationWith) stepRunCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { - return p.query +type stepRunCreateOne struct { + query builder.Query } -func (p tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) tenantAlertEmailGroupModel() {} -func (p tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (p stepRunCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) unique() {} -func (tenantAlertEmailGroupWithPrismaTenantEqualsUniqueParam) equals() {} +func (p stepRunCreateOne) stepRunModel() {} -type TenantAlertEmailGroupWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertEmailGroupModel() - tenantIDField() +func (r stepRunCreateOne) Exec(ctx context.Context) (*StepRunModel, error) { + var v StepRunModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type TenantAlertEmailGroupWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - tenantIDField() +func (r stepRunCreateOne) Tx() StepRunUniqueTxResult { + v := newStepRunUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type tenantAlertEmailGroupWithPrismaTenantIDSetParam struct { - data builder.Field - query builder.Query -} +// Creates a single stepRunEvent. +func (r stepRunEventActions) CreateOne( + _stepRun StepRunEventWithPrismaStepRunSetParam, + _reason StepRunEventWithPrismaReasonSetParam, + _severity StepRunEventWithPrismaSeveritySetParam, + _message StepRunEventWithPrismaMessageSetParam, + _count StepRunEventWithPrismaCountSetParam, -func (p tenantAlertEmailGroupWithPrismaTenantIDSetParam) field() builder.Field { - return p.data -} + optional ...StepRunEventSetParam, +) stepRunEventCreateOne { + var v stepRunEventCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantAlertEmailGroupWithPrismaTenantIDSetParam) getQuery() builder.Query { - return p.query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "StepRunEvent" + v.query.Outputs = stepRunEventOutput -func (p tenantAlertEmailGroupWithPrismaTenantIDSetParam) tenantAlertEmailGroupModel() {} + var fields []builder.Field -func (p tenantAlertEmailGroupWithPrismaTenantIDSetParam) tenantIDField() {} + fields = append(fields, _stepRun.field()) + fields = append(fields, _reason.field()) + fields = append(fields, _severity.field()) + fields = append(fields, _message.field()) + fields = append(fields, _count.field()) -type TenantAlertEmailGroupWithPrismaTenantIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - tenantIDField() + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type tenantAlertEmailGroupWithPrismaTenantIDEqualsParam struct { - data builder.Field - query builder.Query +func (r stepRunEventCreateOne) With(params ...StepRunEventRelationWith) stepRunEventCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data +type stepRunEventCreateOne struct { + query builder.Query } -func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) getQuery() builder.Query { +func (p stepRunEventCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) tenantAlertEmailGroupModel() {} - -func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) tenantIDField() {} - -func (tenantAlertEmailGroupWithPrismaTenantIDSetParam) settable() {} -func (tenantAlertEmailGroupWithPrismaTenantIDEqualsParam) equals() {} +func (p stepRunEventCreateOne) stepRunEventModel() {} -type tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r stepRunEventCreateOne) Exec(ctx context.Context) (*StepRunEventModel, error) { + var v StepRunEventModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r stepRunEventCreateOne) Tx() StepRunEventUniqueTxResult { + v := newStepRunEventUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +// Creates a single stepRunResultArchive. +func (r stepRunResultArchiveActions) CreateOne( + _stepRun StepRunResultArchiveWithPrismaStepRunSetParam, -func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) tenantAlertEmailGroupModel() {} -func (p tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} + optional ...StepRunResultArchiveSetParam, +) stepRunResultArchiveCreateOne { + var v stepRunResultArchiveCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (tenantAlertEmailGroupWithPrismaTenantIDEqualsUniqueParam) equals() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "StepRunResultArchive" + v.query.Outputs = stepRunResultArchiveOutput -type TenantAlertEmailGroupWithPrismaEmailsEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - tenantAlertEmailGroupModel() - emailsField() -} + var fields []builder.Field -type TenantAlertEmailGroupWithPrismaEmailsSetParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - emailsField() + fields = append(fields, _stepRun.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type tenantAlertEmailGroupWithPrismaEmailsSetParam struct { - data builder.Field - query builder.Query +func (r stepRunResultArchiveCreateOne) With(params ...StepRunResultArchiveRelationWith) stepRunResultArchiveCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantAlertEmailGroupWithPrismaEmailsSetParam) field() builder.Field { - return p.data +type stepRunResultArchiveCreateOne struct { + query builder.Query } -func (p tenantAlertEmailGroupWithPrismaEmailsSetParam) getQuery() builder.Query { +func (p stepRunResultArchiveCreateOne) ExtractQuery() builder.Query { return p.query } -func (p tenantAlertEmailGroupWithPrismaEmailsSetParam) tenantAlertEmailGroupModel() {} - -func (p tenantAlertEmailGroupWithPrismaEmailsSetParam) emailsField() {} +func (p stepRunResultArchiveCreateOne) stepRunResultArchiveModel() {} -type TenantAlertEmailGroupWithPrismaEmailsWhereParam interface { - field() builder.Field - getQuery() builder.Query - tenantAlertEmailGroupModel() - emailsField() +func (r stepRunResultArchiveCreateOne) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { + var v StepRunResultArchiveModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type tenantAlertEmailGroupWithPrismaEmailsEqualsParam struct { - data builder.Field - query builder.Query +func (r stepRunResultArchiveCreateOne) Tx() StepRunResultArchiveUniqueTxResult { + v := newStepRunResultArchiveUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p tenantAlertEmailGroupWithPrismaEmailsEqualsParam) field() builder.Field { - return p.data -} +// Creates a single dispatcher. +func (r dispatcherActions) CreateOne( -func (p tenantAlertEmailGroupWithPrismaEmailsEqualsParam) getQuery() builder.Query { - return p.query -} + optional ...DispatcherSetParam, +) dispatcherCreateOne { + var v dispatcherCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p tenantAlertEmailGroupWithPrismaEmailsEqualsParam) tenantAlertEmailGroupModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Dispatcher" + v.query.Outputs = dispatcherOutput -func (p tenantAlertEmailGroupWithPrismaEmailsEqualsParam) emailsField() {} + var fields []builder.Field -func (tenantAlertEmailGroupWithPrismaEmailsSetParam) settable() {} -func (tenantAlertEmailGroupWithPrismaEmailsEqualsParam) equals() {} + for _, q := range optional { + fields = append(fields, q.field()) + } -type tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam struct { - data builder.Field - query builder.Query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) field() builder.Field { - return p.data +func (r dispatcherCreateOne) With(params ...DispatcherRelationWith) dispatcherCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) getQuery() builder.Query { - return p.query +type dispatcherCreateOne struct { + query builder.Query } -func (p tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) tenantAlertEmailGroupModel() {} -func (p tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) emailsField() {} +func (p dispatcherCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) unique() {} -func (tenantAlertEmailGroupWithPrismaEmailsEqualsUniqueParam) equals() {} +func (p dispatcherCreateOne) dispatcherModel() {} -type slackAppWebhookActions struct { - // client holds the prisma client - client *PrismaClient +func (r dispatcherCreateOne) Exec(ctx context.Context) (*DispatcherModel, error) { + var v DispatcherModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -var slackAppWebhookOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "deletedAt"}, - {Name: "tenantId"}, - {Name: "teamId"}, - {Name: "teamName"}, - {Name: "channelId"}, - {Name: "channelName"}, - {Name: "webhookURL"}, +func (r dispatcherCreateOne) Tx() DispatcherUniqueTxResult { + v := newDispatcherUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type SlackAppWebhookRelationWith interface { - getQuery() builder.Query - with() - slackAppWebhookRelation() -} +// Creates a single ticker. +func (r tickerActions) CreateOne( -type SlackAppWebhookWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() -} + optional ...TickerSetParam, +) tickerCreateOne { + var v tickerCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type slackAppWebhookDefaultParam struct { - data builder.Field - query builder.Query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Ticker" + v.query.Outputs = tickerOutput -func (p slackAppWebhookDefaultParam) field() builder.Field { - return p.data -} + var fields []builder.Field -func (p slackAppWebhookDefaultParam) getQuery() builder.Query { - return p.query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p slackAppWebhookDefaultParam) slackAppWebhookModel() {} +func (r tickerCreateOne) With(params ...TickerRelationWith) tickerCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type SlackAppWebhookOrderByParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() + return r } -type slackAppWebhookOrderByParam struct { - data builder.Field +type tickerCreateOne struct { query builder.Query } -func (p slackAppWebhookOrderByParam) field() builder.Field { - return p.data -} - -func (p slackAppWebhookOrderByParam) getQuery() builder.Query { +func (p tickerCreateOne) ExtractQuery() builder.Query { return p.query } -func (p slackAppWebhookOrderByParam) slackAppWebhookModel() {} +func (p tickerCreateOne) tickerModel() {} -type SlackAppWebhookCursorParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - isCursor() +func (r tickerCreateOne) Exec(ctx context.Context) (*TickerModel, error) { + var v TickerModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type slackAppWebhookCursorParam struct { - data builder.Field - query builder.Query +func (r tickerCreateOne) Tx() TickerUniqueTxResult { + v := newTickerUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookCursorParam) field() builder.Field { - return p.data -} +// Creates a single workerLabel. +func (r workerLabelActions) CreateOne( + _worker WorkerLabelWithPrismaWorkerSetParam, + _key WorkerLabelWithPrismaKeySetParam, -func (p slackAppWebhookCursorParam) isCursor() {} + optional ...WorkerLabelSetParam, +) workerLabelCreateOne { + var v workerLabelCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p slackAppWebhookCursorParam) getQuery() builder.Query { - return p.query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkerLabel" + v.query.Outputs = workerLabelOutput -func (p slackAppWebhookCursorParam) slackAppWebhookModel() {} + var fields []builder.Field -type SlackAppWebhookParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - slackAppWebhookModel() -} + fields = append(fields, _worker.field()) + fields = append(fields, _key.field()) -type slackAppWebhookParamUnique struct { - data builder.Field - query builder.Query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p slackAppWebhookParamUnique) slackAppWebhookModel() {} +func (r workerLabelCreateOne) With(params ...WorkerLabelRelationWith) workerLabelCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (slackAppWebhookParamUnique) unique() {} + return r +} -func (p slackAppWebhookParamUnique) field() builder.Field { - return p.data +type workerLabelCreateOne struct { + query builder.Query } -func (p slackAppWebhookParamUnique) getQuery() builder.Query { +func (p workerLabelCreateOne) ExtractQuery() builder.Query { return p.query } -type SlackAppWebhookEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() +func (p workerLabelCreateOne) workerLabelModel() {} + +func (r workerLabelCreateOne) Exec(ctx context.Context) (*WorkerLabelModel, error) { + var v WorkerLabelModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type slackAppWebhookEqualsParam struct { - data builder.Field - query builder.Query +func (r workerLabelCreateOne) Tx() WorkerLabelUniqueTxResult { + v := newWorkerLabelUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookEqualsParam) slackAppWebhookModel() {} +// Creates a single worker. +func (r workerActions) CreateOne( + _tenant WorkerWithPrismaTenantSetParam, + _name WorkerWithPrismaNameSetParam, -func (slackAppWebhookEqualsParam) equals() {} + optional ...WorkerSetParam, +) workerCreateOne { + var v workerCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p slackAppWebhookEqualsParam) field() builder.Field { - return p.data -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Worker" + v.query.Outputs = workerOutput -func (p slackAppWebhookEqualsParam) getQuery() builder.Query { - return p.query -} + var fields []builder.Field -type SlackAppWebhookEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - slackAppWebhookModel() -} + fields = append(fields, _tenant.field()) + fields = append(fields, _name.field()) -type slackAppWebhookEqualsUniqueParam struct { - data builder.Field - query builder.Query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p slackAppWebhookEqualsUniqueParam) slackAppWebhookModel() {} +func (r workerCreateOne) With(params ...WorkerRelationWith) workerCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (slackAppWebhookEqualsUniqueParam) unique() {} -func (slackAppWebhookEqualsUniqueParam) equals() {} + return r +} -func (p slackAppWebhookEqualsUniqueParam) field() builder.Field { - return p.data +type workerCreateOne struct { + query builder.Query } -func (p slackAppWebhookEqualsUniqueParam) getQuery() builder.Query { +func (p workerCreateOne) ExtractQuery() builder.Query { return p.query } -type SlackAppWebhookSetParam interface { - field() builder.Field - settable() - slackAppWebhookModel() -} +func (p workerCreateOne) workerModel() {} -type slackAppWebhookSetParam struct { - data builder.Field +func (r workerCreateOne) Exec(ctx context.Context) (*WorkerModel, error) { + var v WorkerModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (slackAppWebhookSetParam) settable() {} - -func (p slackAppWebhookSetParam) field() builder.Field { - return p.data +func (r workerCreateOne) Tx() WorkerUniqueTxResult { + v := newWorkerUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookSetParam) slackAppWebhookModel() {} +// Creates a single workerSemaphore. +func (r workerSemaphoreActions) CreateOne( + _worker WorkerSemaphoreWithPrismaWorkerSetParam, + _slots WorkerSemaphoreWithPrismaSlotsSetParam, -type SlackAppWebhookWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - idField() -} + optional ...WorkerSemaphoreSetParam, +) workerSemaphoreCreateOne { + var v workerSemaphoreCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -type SlackAppWebhookWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - idField() -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkerSemaphore" + v.query.Outputs = workerSemaphoreOutput -type slackAppWebhookWithPrismaIDSetParam struct { - data builder.Field - query builder.Query -} + var fields []builder.Field -func (p slackAppWebhookWithPrismaIDSetParam) field() builder.Field { - return p.data -} + fields = append(fields, _worker.field()) + fields = append(fields, _slots.field()) -func (p slackAppWebhookWithPrismaIDSetParam) getQuery() builder.Query { - return p.query -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p slackAppWebhookWithPrismaIDSetParam) slackAppWebhookModel() {} + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v +} -func (p slackAppWebhookWithPrismaIDSetParam) idField() {} +func (r workerSemaphoreCreateOne) With(params ...WorkerSemaphoreRelationWith) workerSemaphoreCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type SlackAppWebhookWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - idField() + return r } -type slackAppWebhookWithPrismaIDEqualsParam struct { - data builder.Field +type workerSemaphoreCreateOne struct { query builder.Query } -func (p slackAppWebhookWithPrismaIDEqualsParam) field() builder.Field { - return p.data -} - -func (p slackAppWebhookWithPrismaIDEqualsParam) getQuery() builder.Query { +func (p workerSemaphoreCreateOne) ExtractQuery() builder.Query { return p.query } -func (p slackAppWebhookWithPrismaIDEqualsParam) slackAppWebhookModel() {} - -func (p slackAppWebhookWithPrismaIDEqualsParam) idField() {} - -func (slackAppWebhookWithPrismaIDSetParam) settable() {} -func (slackAppWebhookWithPrismaIDEqualsParam) equals() {} +func (p workerSemaphoreCreateOne) workerSemaphoreModel() {} -type slackAppWebhookWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r workerSemaphoreCreateOne) Exec(ctx context.Context) (*WorkerSemaphoreModel, error) { + var v WorkerSemaphoreModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p slackAppWebhookWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r workerSemaphoreCreateOne) Tx() WorkerSemaphoreUniqueTxResult { + v := newWorkerSemaphoreUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +// Creates a single workerSemaphoreSlot. +func (r workerSemaphoreSlotActions) CreateOne( + _worker WorkerSemaphoreSlotWithPrismaWorkerSetParam, -func (p slackAppWebhookWithPrismaIDEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaIDEqualsUniqueParam) idField() {} + optional ...WorkerSemaphoreSlotSetParam, +) workerSemaphoreSlotCreateOne { + var v workerSemaphoreSlotCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (slackAppWebhookWithPrismaIDEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaIDEqualsUniqueParam) equals() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "WorkerSemaphoreSlot" + v.query.Outputs = workerSemaphoreSlotOutput -type SlackAppWebhookWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - createdAtField() -} + var fields []builder.Field -type SlackAppWebhookWithPrismaCreatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - createdAtField() + fields = append(fields, _worker.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type slackAppWebhookWithPrismaCreatedAtSetParam struct { - data builder.Field - query builder.Query +func (r workerSemaphoreSlotCreateOne) With(params ...WorkerSemaphoreSlotRelationWith) workerSemaphoreSlotCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p slackAppWebhookWithPrismaCreatedAtSetParam) field() builder.Field { - return p.data +type workerSemaphoreSlotCreateOne struct { + query builder.Query } -func (p slackAppWebhookWithPrismaCreatedAtSetParam) getQuery() builder.Query { +func (p workerSemaphoreSlotCreateOne) ExtractQuery() builder.Query { return p.query } -func (p slackAppWebhookWithPrismaCreatedAtSetParam) slackAppWebhookModel() {} - -func (p slackAppWebhookWithPrismaCreatedAtSetParam) createdAtField() {} +func (p workerSemaphoreSlotCreateOne) workerSemaphoreSlotModel() {} -type SlackAppWebhookWithPrismaCreatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - createdAtField() +func (r workerSemaphoreSlotCreateOne) Exec(ctx context.Context) (*WorkerSemaphoreSlotModel, error) { + var v WorkerSemaphoreSlotModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type slackAppWebhookWithPrismaCreatedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r workerSemaphoreSlotCreateOne) Tx() WorkerSemaphoreSlotUniqueTxResult { + v := newWorkerSemaphoreSlotUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data -} +// Creates a single service. +func (r serviceActions) CreateOne( + _name ServiceWithPrismaNameSetParam, + _tenant ServiceWithPrismaTenantSetParam, -func (p slackAppWebhookWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { - return p.query -} + optional ...ServiceSetParam, +) serviceCreateOne { + var v serviceCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p slackAppWebhookWithPrismaCreatedAtEqualsParam) slackAppWebhookModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "Service" + v.query.Outputs = serviceOutput -func (p slackAppWebhookWithPrismaCreatedAtEqualsParam) createdAtField() {} + var fields []builder.Field -func (slackAppWebhookWithPrismaCreatedAtSetParam) settable() {} -func (slackAppWebhookWithPrismaCreatedAtEqualsParam) equals() {} + fields = append(fields, _name.field()) + fields = append(fields, _tenant.field()) -type slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { - return p.data +func (r serviceCreateOne) With(params ...ServiceRelationWith) serviceCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +type serviceCreateOne struct { + query builder.Query } -func (p slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (p serviceCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (p serviceCreateOne) serviceModel() {} -type SlackAppWebhookWithPrismaUpdatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - updatedAtField() +func (r serviceCreateOne) Exec(ctx context.Context) (*ServiceModel, error) { + var v ServiceModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type SlackAppWebhookWithPrismaUpdatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - updatedAtField() +func (r serviceCreateOne) Tx() ServiceUniqueTxResult { + v := newServiceUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type slackAppWebhookWithPrismaUpdatedAtSetParam struct { - data builder.Field - query builder.Query -} +// Creates a single tenantVcsProvider. +func (r tenantVcsProviderActions) CreateOne( + _tenant TenantVcsProviderWithPrismaTenantSetParam, + _vcsProvider TenantVcsProviderWithPrismaVcsProviderSetParam, -func (p slackAppWebhookWithPrismaUpdatedAtSetParam) field() builder.Field { - return p.data -} + optional ...TenantVcsProviderSetParam, +) tenantVcsProviderCreateOne { + var v tenantVcsProviderCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p slackAppWebhookWithPrismaUpdatedAtSetParam) getQuery() builder.Query { - return p.query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "TenantVcsProvider" + v.query.Outputs = tenantVcsProviderOutput -func (p slackAppWebhookWithPrismaUpdatedAtSetParam) slackAppWebhookModel() {} + var fields []builder.Field -func (p slackAppWebhookWithPrismaUpdatedAtSetParam) updatedAtField() {} + fields = append(fields, _tenant.field()) + fields = append(fields, _vcsProvider.field()) -type SlackAppWebhookWithPrismaUpdatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - updatedAtField() + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type slackAppWebhookWithPrismaUpdatedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantVcsProviderCreateOne) With(params ...TenantVcsProviderRelationWith) tenantVcsProviderCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p slackAppWebhookWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data +type tenantVcsProviderCreateOne struct { + query builder.Query } -func (p slackAppWebhookWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { +func (p tenantVcsProviderCreateOne) ExtractQuery() builder.Query { return p.query } -func (p slackAppWebhookWithPrismaUpdatedAtEqualsParam) slackAppWebhookModel() {} - -func (p slackAppWebhookWithPrismaUpdatedAtEqualsParam) updatedAtField() {} - -func (slackAppWebhookWithPrismaUpdatedAtSetParam) settable() {} -func (slackAppWebhookWithPrismaUpdatedAtEqualsParam) equals() {} +func (p tenantVcsProviderCreateOne) tenantVcsProviderModel() {} -type slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r tenantVcsProviderCreateOne) Exec(ctx context.Context) (*TenantVcsProviderModel, error) { + var v TenantVcsProviderModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { - return p.data +func (r tenantVcsProviderCreateOne) Tx() TenantVcsProviderUniqueTxResult { + v := newTenantVcsProviderUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +// Creates a single tenantAlertEmailGroup. +func (r tenantAlertEmailGroupActions) CreateOne( + _tenant TenantAlertEmailGroupWithPrismaTenantSetParam, + _emails TenantAlertEmailGroupWithPrismaEmailsSetParam, -func (p slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} + optional ...TenantAlertEmailGroupSetParam, +) tenantAlertEmailGroupCreateOne { + var v tenantAlertEmailGroupCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaUpdatedAtEqualsUniqueParam) equals() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "TenantAlertEmailGroup" + v.query.Outputs = tenantAlertEmailGroupOutput -type SlackAppWebhookWithPrismaDeletedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - deletedAtField() -} + var fields []builder.Field -type SlackAppWebhookWithPrismaDeletedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - deletedAtField() + fields = append(fields, _tenant.field()) + fields = append(fields, _emails.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type slackAppWebhookWithPrismaDeletedAtSetParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupCreateOne) With(params ...TenantAlertEmailGroupRelationWith) tenantAlertEmailGroupCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p slackAppWebhookWithPrismaDeletedAtSetParam) field() builder.Field { - return p.data +type tenantAlertEmailGroupCreateOne struct { + query builder.Query } -func (p slackAppWebhookWithPrismaDeletedAtSetParam) getQuery() builder.Query { +func (p tenantAlertEmailGroupCreateOne) ExtractQuery() builder.Query { return p.query } -func (p slackAppWebhookWithPrismaDeletedAtSetParam) slackAppWebhookModel() {} - -func (p slackAppWebhookWithPrismaDeletedAtSetParam) deletedAtField() {} +func (p tenantAlertEmailGroupCreateOne) tenantAlertEmailGroupModel() {} -type SlackAppWebhookWithPrismaDeletedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - deletedAtField() +func (r tenantAlertEmailGroupCreateOne) Exec(ctx context.Context) (*TenantAlertEmailGroupModel, error) { + var v TenantAlertEmailGroupModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type slackAppWebhookWithPrismaDeletedAtEqualsParam struct { - data builder.Field - query builder.Query +func (r tenantAlertEmailGroupCreateOne) Tx() TenantAlertEmailGroupUniqueTxResult { + v := newTenantAlertEmailGroupUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookWithPrismaDeletedAtEqualsParam) field() builder.Field { - return p.data -} +// Creates a single slackAppWebhook. +func (r slackAppWebhookActions) CreateOne( + _tenant SlackAppWebhookWithPrismaTenantSetParam, + _teamID SlackAppWebhookWithPrismaTeamIDSetParam, + _teamName SlackAppWebhookWithPrismaTeamNameSetParam, + _channelID SlackAppWebhookWithPrismaChannelIDSetParam, + _channelName SlackAppWebhookWithPrismaChannelNameSetParam, + _webhookURL SlackAppWebhookWithPrismaWebhookURLSetParam, -func (p slackAppWebhookWithPrismaDeletedAtEqualsParam) getQuery() builder.Query { - return p.query -} + optional ...SlackAppWebhookSetParam, +) slackAppWebhookCreateOne { + var v slackAppWebhookCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p slackAppWebhookWithPrismaDeletedAtEqualsParam) slackAppWebhookModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "SlackAppWebhook" + v.query.Outputs = slackAppWebhookOutput -func (p slackAppWebhookWithPrismaDeletedAtEqualsParam) deletedAtField() {} + var fields []builder.Field -func (slackAppWebhookWithPrismaDeletedAtSetParam) settable() {} -func (slackAppWebhookWithPrismaDeletedAtEqualsParam) equals() {} + fields = append(fields, _tenant.field()) + fields = append(fields, _teamID.field()) + fields = append(fields, _teamName.field()) + fields = append(fields, _channelID.field()) + fields = append(fields, _channelName.field()) + fields = append(fields, _webhookURL.field()) -type slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) field() builder.Field { - return p.data +func (r slackAppWebhookCreateOne) With(params ...SlackAppWebhookRelationWith) slackAppWebhookCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +type slackAppWebhookCreateOne struct { + query builder.Query } -func (p slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) deletedAtField() {} +func (p slackAppWebhookCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaDeletedAtEqualsUniqueParam) equals() {} +func (p slackAppWebhookCreateOne) slackAppWebhookModel() {} -type SlackAppWebhookWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - tenantField() +func (r slackAppWebhookCreateOne) Exec(ctx context.Context) (*SlackAppWebhookModel, error) { + var v SlackAppWebhookModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type SlackAppWebhookWithPrismaTenantSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - tenantField() +func (r slackAppWebhookCreateOne) Tx() SlackAppWebhookUniqueTxResult { + v := newSlackAppWebhookUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type slackAppWebhookWithPrismaTenantSetParam struct { - data builder.Field - query builder.Query -} +// Creates a single logLine. +func (r logLineActions) CreateOne( + _tenant LogLineWithPrismaTenantSetParam, + _message LogLineWithPrismaMessageSetParam, -func (p slackAppWebhookWithPrismaTenantSetParam) field() builder.Field { - return p.data -} + optional ...LogLineSetParam, +) logLineCreateOne { + var v logLineCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p slackAppWebhookWithPrismaTenantSetParam) getQuery() builder.Query { - return p.query -} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "LogLine" + v.query.Outputs = logLineOutput -func (p slackAppWebhookWithPrismaTenantSetParam) slackAppWebhookModel() {} + var fields []builder.Field -func (p slackAppWebhookWithPrismaTenantSetParam) tenantField() {} + fields = append(fields, _tenant.field()) + fields = append(fields, _message.field()) -type SlackAppWebhookWithPrismaTenantWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - tenantField() + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type slackAppWebhookWithPrismaTenantEqualsParam struct { - data builder.Field - query builder.Query +func (r logLineCreateOne) With(params ...LogLineRelationWith) logLineCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p slackAppWebhookWithPrismaTenantEqualsParam) field() builder.Field { - return p.data +type logLineCreateOne struct { + query builder.Query } -func (p slackAppWebhookWithPrismaTenantEqualsParam) getQuery() builder.Query { +func (p logLineCreateOne) ExtractQuery() builder.Query { return p.query } -func (p slackAppWebhookWithPrismaTenantEqualsParam) slackAppWebhookModel() {} - -func (p slackAppWebhookWithPrismaTenantEqualsParam) tenantField() {} - -func (slackAppWebhookWithPrismaTenantSetParam) settable() {} -func (slackAppWebhookWithPrismaTenantEqualsParam) equals() {} +func (p logLineCreateOne) logLineModel() {} -type slackAppWebhookWithPrismaTenantEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r logLineCreateOne) Exec(ctx context.Context) (*LogLineModel, error) { + var v LogLineModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p slackAppWebhookWithPrismaTenantEqualsUniqueParam) field() builder.Field { - return p.data +func (r logLineCreateOne) Tx() LogLineUniqueTxResult { + v := newLogLineUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +// Creates a single streamEvent. +func (r streamEventActions) CreateOne( + _tenant StreamEventWithPrismaTenantSetParam, + _message StreamEventWithPrismaMessageSetParam, -func (p slackAppWebhookWithPrismaTenantEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaTenantEqualsUniqueParam) tenantField() {} + optional ...StreamEventSetParam, +) streamEventCreateOne { + var v streamEventCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (slackAppWebhookWithPrismaTenantEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaTenantEqualsUniqueParam) equals() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "StreamEvent" + v.query.Outputs = streamEventOutput -type SlackAppWebhookWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - tenantIDField() + var fields []builder.Field + + fields = append(fields, _tenant.field()) + fields = append(fields, _message.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type SlackAppWebhookWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - tenantIDField() +func (r streamEventCreateOne) With(params ...StreamEventRelationWith) streamEventCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -type slackAppWebhookWithPrismaTenantIDSetParam struct { - data builder.Field +type streamEventCreateOne struct { query builder.Query } -func (p slackAppWebhookWithPrismaTenantIDSetParam) field() builder.Field { - return p.data -} - -func (p slackAppWebhookWithPrismaTenantIDSetParam) getQuery() builder.Query { +func (p streamEventCreateOne) ExtractQuery() builder.Query { return p.query } -func (p slackAppWebhookWithPrismaTenantIDSetParam) slackAppWebhookModel() {} - -func (p slackAppWebhookWithPrismaTenantIDSetParam) tenantIDField() {} - -type SlackAppWebhookWithPrismaTenantIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - tenantIDField() -} +func (p streamEventCreateOne) streamEventModel() {} -type slackAppWebhookWithPrismaTenantIDEqualsParam struct { - data builder.Field - query builder.Query +func (r streamEventCreateOne) Exec(ctx context.Context) (*StreamEventModel, error) { + var v StreamEventModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p slackAppWebhookWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data +func (r streamEventCreateOne) Tx() StreamEventUniqueTxResult { + v := newStreamEventUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookWithPrismaTenantIDEqualsParam) getQuery() builder.Query { - return p.query -} +// Creates a single sNSIntegration. +func (r sNSIntegrationActions) CreateOne( + _tenant SNSIntegrationWithPrismaTenantSetParam, + _topicArn SNSIntegrationWithPrismaTopicArnSetParam, -func (p slackAppWebhookWithPrismaTenantIDEqualsParam) slackAppWebhookModel() {} + optional ...SNSIntegrationSetParam, +) sNSIntegrationCreateOne { + var v sNSIntegrationCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p slackAppWebhookWithPrismaTenantIDEqualsParam) tenantIDField() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "SNSIntegration" + v.query.Outputs = sNSIntegrationOutput -func (slackAppWebhookWithPrismaTenantIDSetParam) settable() {} -func (slackAppWebhookWithPrismaTenantIDEqualsParam) equals() {} + var fields []builder.Field -type slackAppWebhookWithPrismaTenantIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + fields = append(fields, _tenant.field()) + fields = append(fields, _topicArn.field()) -func (p slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { - return p.data -} + for _, q := range optional { + fields = append(fields, q.field()) + } -func (p slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { - return p.query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} - -func (slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaTenantIDEqualsUniqueParam) equals() {} - -type SlackAppWebhookWithPrismaTeamIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - teamIDField() -} +func (r sNSIntegrationCreateOne) With(params ...SNSIntegrationRelationWith) sNSIntegrationCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type SlackAppWebhookWithPrismaTeamIDSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - teamIDField() + return r } -type slackAppWebhookWithPrismaTeamIDSetParam struct { - data builder.Field +type sNSIntegrationCreateOne struct { query builder.Query } -func (p slackAppWebhookWithPrismaTeamIDSetParam) field() builder.Field { - return p.data -} - -func (p slackAppWebhookWithPrismaTeamIDSetParam) getQuery() builder.Query { +func (p sNSIntegrationCreateOne) ExtractQuery() builder.Query { return p.query } -func (p slackAppWebhookWithPrismaTeamIDSetParam) slackAppWebhookModel() {} - -func (p slackAppWebhookWithPrismaTeamIDSetParam) teamIDField() {} +func (p sNSIntegrationCreateOne) sNSIntegrationModel() {} -type SlackAppWebhookWithPrismaTeamIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - teamIDField() +func (r sNSIntegrationCreateOne) Exec(ctx context.Context) (*SNSIntegrationModel, error) { + var v SNSIntegrationModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type slackAppWebhookWithPrismaTeamIDEqualsParam struct { - data builder.Field - query builder.Query +func (r sNSIntegrationCreateOne) Tx() SNSIntegrationUniqueTxResult { + v := newSNSIntegrationUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p slackAppWebhookWithPrismaTeamIDEqualsParam) field() builder.Field { - return p.data -} +// Creates a single securityCheckIdent. +func (r securityCheckIdentActions) CreateOne( -func (p slackAppWebhookWithPrismaTeamIDEqualsParam) getQuery() builder.Query { - return p.query -} + optional ...SecurityCheckIdentSetParam, +) securityCheckIdentCreateOne { + var v securityCheckIdentCreateOne + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p slackAppWebhookWithPrismaTeamIDEqualsParam) slackAppWebhookModel() {} + v.query.Operation = "mutation" + v.query.Method = "createOne" + v.query.Model = "SecurityCheckIdent" + v.query.Outputs = securityCheckIdentOutput -func (p slackAppWebhookWithPrismaTeamIDEqualsParam) teamIDField() {} + var fields []builder.Field -func (slackAppWebhookWithPrismaTeamIDSetParam) settable() {} -func (slackAppWebhookWithPrismaTeamIDEqualsParam) equals() {} + for _, q := range optional { + fields = append(fields, q.field()) + } -type slackAppWebhookWithPrismaTeamIDEqualsUniqueParam struct { - data builder.Field - query builder.Query + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r securityCheckIdentCreateOne) With(params ...SecurityCheckIdentRelationWith) securityCheckIdentCreateOne { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +type securityCheckIdentCreateOne struct { + query builder.Query } -func (p slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) teamIDField() {} +func (p securityCheckIdentCreateOne) ExtractQuery() builder.Query { + return p.query +} -func (slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaTeamIDEqualsUniqueParam) equals() {} +func (p securityCheckIdentCreateOne) securityCheckIdentModel() {} -type SlackAppWebhookWithPrismaTeamNameEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - teamNameField() +func (r securityCheckIdentCreateOne) Exec(ctx context.Context) (*SecurityCheckIdentModel, error) { + var v SecurityCheckIdentModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type SlackAppWebhookWithPrismaTeamNameSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - teamNameField() +func (r securityCheckIdentCreateOne) Tx() SecurityCheckIdentUniqueTxResult { + v := newSecurityCheckIdentUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type slackAppWebhookWithPrismaTeamNameSetParam struct { - data builder.Field +// --- template find.gotpl --- + +type userToOauthProvidersFindUnique struct { query builder.Query } -func (p slackAppWebhookWithPrismaTeamNameSetParam) field() builder.Field { - return p.data +func (r userToOauthProvidersFindUnique) getQuery() builder.Query { + return r.query } -func (p slackAppWebhookWithPrismaTeamNameSetParam) getQuery() builder.Query { - return p.query +func (r userToOauthProvidersFindUnique) ExtractQuery() builder.Query { + return r.query } -func (p slackAppWebhookWithPrismaTeamNameSetParam) slackAppWebhookModel() {} +func (r userToOauthProvidersFindUnique) with() {} +func (r userToOauthProvidersFindUnique) userModel() {} +func (r userToOauthProvidersFindUnique) userRelation() {} -func (p slackAppWebhookWithPrismaTeamNameSetParam) teamNameField() {} +func (r userToOauthProvidersFindUnique) With(params ...UserOAuthRelationWith) userToOauthProvidersFindUnique { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type SlackAppWebhookWithPrismaTeamNameWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - teamNameField() + return r } -type slackAppWebhookWithPrismaTeamNameEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToOauthProvidersFindUnique) Select(params ...userPrismaFields) userToOauthProvidersFindUnique { + var outputs []builder.Output -func (p slackAppWebhookWithPrismaTeamNameEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p slackAppWebhookWithPrismaTeamNameEqualsParam) getQuery() builder.Query { - return p.query -} + r.query.Outputs = outputs -func (p slackAppWebhookWithPrismaTeamNameEqualsParam) slackAppWebhookModel() {} + return r +} -func (p slackAppWebhookWithPrismaTeamNameEqualsParam) teamNameField() {} +func (r userToOauthProvidersFindUnique) Omit(params ...userPrismaFields) userToOauthProvidersFindUnique { + var outputs []builder.Output -func (slackAppWebhookWithPrismaTeamNameSetParam) settable() {} -func (slackAppWebhookWithPrismaTeamNameEqualsParam) equals() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -type slackAppWebhookWithPrismaTeamNameEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) getQuery() builder.Query { - return p.query + return r } -func (p slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) teamNameField() {} +func (r userToOauthProvidersFindUnique) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaTeamNameEqualsUniqueParam) equals() {} + if v == nil { + return nil, ErrNotFound + } -type SlackAppWebhookWithPrismaChannelIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - channelIDField() + return v, nil } -type SlackAppWebhookWithPrismaChannelIDSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - channelIDField() -} +func (r userToOauthProvidersFindUnique) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type slackAppWebhookWithPrismaChannelIDSetParam struct { - data builder.Field - query builder.Query -} + if v == nil { + return nil, ErrNotFound + } -func (p slackAppWebhookWithPrismaChannelIDSetParam) field() builder.Field { - return p.data + return v, nil } -func (p slackAppWebhookWithPrismaChannelIDSetParam) getQuery() builder.Query { - return p.query -} +func (r userToOauthProvidersFindUnique) Update(params ...UserSetParam) userToOauthProvidersUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "User" -func (p slackAppWebhookWithPrismaChannelIDSetParam) slackAppWebhookModel() {} + var v userToOauthProvidersUpdateUnique + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p slackAppWebhookWithPrismaChannelIDSetParam) channelIDField() {} + field := q.field() -type SlackAppWebhookWithPrismaChannelIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - channelIDField() + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type slackAppWebhookWithPrismaChannelIDEqualsParam struct { - data builder.Field +type userToOauthProvidersUpdateUnique struct { query builder.Query } -func (p slackAppWebhookWithPrismaChannelIDEqualsParam) field() builder.Field { - return p.data +func (r userToOauthProvidersUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p slackAppWebhookWithPrismaChannelIDEqualsParam) getQuery() builder.Query { - return p.query -} +func (r userToOauthProvidersUpdateUnique) userModel() {} -func (p slackAppWebhookWithPrismaChannelIDEqualsParam) slackAppWebhookModel() {} +func (r userToOauthProvidersUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -func (p slackAppWebhookWithPrismaChannelIDEqualsParam) channelIDField() {} +func (r userToOauthProvidersUpdateUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (slackAppWebhookWithPrismaChannelIDSetParam) settable() {} -func (slackAppWebhookWithPrismaChannelIDEqualsParam) equals() {} +func (r userToOauthProvidersFindUnique) Delete() userToOauthProvidersDeleteUnique { + var v userToOauthProvidersDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "User" -type slackAppWebhookWithPrismaChannelIDEqualsUniqueParam struct { - data builder.Field - query builder.Query + return v } -func (p slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) field() builder.Field { - return p.data +type userToOauthProvidersDeleteUnique struct { + query builder.Query } -func (p slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToOauthProvidersDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) channelIDField() {} - -func (slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaChannelIDEqualsUniqueParam) equals() {} +func (p userToOauthProvidersDeleteUnique) userModel() {} -type SlackAppWebhookWithPrismaChannelNameEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - channelNameField() +func (r userToOauthProvidersDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type SlackAppWebhookWithPrismaChannelNameSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - channelNameField() +func (r userToOauthProvidersDeleteUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type slackAppWebhookWithPrismaChannelNameSetParam struct { - data builder.Field +type userToOauthProvidersFindFirst struct { query builder.Query } -func (p slackAppWebhookWithPrismaChannelNameSetParam) field() builder.Field { - return p.data +func (r userToOauthProvidersFindFirst) getQuery() builder.Query { + return r.query } -func (p slackAppWebhookWithPrismaChannelNameSetParam) getQuery() builder.Query { - return p.query +func (r userToOauthProvidersFindFirst) ExtractQuery() builder.Query { + return r.query } -func (p slackAppWebhookWithPrismaChannelNameSetParam) slackAppWebhookModel() {} +func (r userToOauthProvidersFindFirst) with() {} +func (r userToOauthProvidersFindFirst) userModel() {} +func (r userToOauthProvidersFindFirst) userRelation() {} -func (p slackAppWebhookWithPrismaChannelNameSetParam) channelNameField() {} +func (r userToOauthProvidersFindFirst) With(params ...UserOAuthRelationWith) userToOauthProvidersFindFirst { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type SlackAppWebhookWithPrismaChannelNameWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - channelNameField() + return r } -type slackAppWebhookWithPrismaChannelNameEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToOauthProvidersFindFirst) Select(params ...userPrismaFields) userToOauthProvidersFindFirst { + var outputs []builder.Output -func (p slackAppWebhookWithPrismaChannelNameEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p slackAppWebhookWithPrismaChannelNameEqualsParam) getQuery() builder.Query { - return p.query + r.query.Outputs = outputs + + return r } -func (p slackAppWebhookWithPrismaChannelNameEqualsParam) slackAppWebhookModel() {} +func (r userToOauthProvidersFindFirst) Omit(params ...userPrismaFields) userToOauthProvidersFindFirst { + var outputs []builder.Output -func (p slackAppWebhookWithPrismaChannelNameEqualsParam) channelNameField() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (slackAppWebhookWithPrismaChannelNameSetParam) settable() {} -func (slackAppWebhookWithPrismaChannelNameEqualsParam) equals() {} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -type slackAppWebhookWithPrismaChannelNameEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + r.query.Outputs = outputs -func (p slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) field() builder.Field { - return p.data + return r } -func (p slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (r userToOauthProvidersFindFirst) OrderBy(params ...UserOAuthOrderByParam) userToOauthProvidersFindFirst { + var fields []builder.Field -func (p slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) channelNameField() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaChannelNameEqualsUniqueParam) equals() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -type SlackAppWebhookWithPrismaWebhookURLEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - slackAppWebhookModel() - webhookURLField() + return r } -type SlackAppWebhookWithPrismaWebhookURLSetParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - webhookURLField() +func (r userToOauthProvidersFindFirst) Skip(count int) userToOauthProvidersFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -type slackAppWebhookWithPrismaWebhookURLSetParam struct { - data builder.Field - query builder.Query +func (r userToOauthProvidersFindFirst) Take(count int) userToOauthProvidersFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p slackAppWebhookWithPrismaWebhookURLSetParam) field() builder.Field { - return p.data +func (r userToOauthProvidersFindFirst) Cursor(cursor UserCursorParam) userToOauthProvidersFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p slackAppWebhookWithPrismaWebhookURLSetParam) getQuery() builder.Query { - return p.query +func (r userToOauthProvidersFindFirst) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -func (p slackAppWebhookWithPrismaWebhookURLSetParam) slackAppWebhookModel() {} +func (r userToOauthProvidersFindFirst) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p slackAppWebhookWithPrismaWebhookURLSetParam) webhookURLField() {} + if v == nil { + return nil, ErrNotFound + } -type SlackAppWebhookWithPrismaWebhookURLWhereParam interface { - field() builder.Field - getQuery() builder.Query - slackAppWebhookModel() - webhookURLField() + return v, nil } -type slackAppWebhookWithPrismaWebhookURLEqualsParam struct { - data builder.Field +type userToOauthProvidersFindMany struct { query builder.Query } -func (p slackAppWebhookWithPrismaWebhookURLEqualsParam) field() builder.Field { - return p.data +func (r userToOauthProvidersFindMany) getQuery() builder.Query { + return r.query } -func (p slackAppWebhookWithPrismaWebhookURLEqualsParam) getQuery() builder.Query { - return p.query +func (r userToOauthProvidersFindMany) ExtractQuery() builder.Query { + return r.query } -func (p slackAppWebhookWithPrismaWebhookURLEqualsParam) slackAppWebhookModel() {} - -func (p slackAppWebhookWithPrismaWebhookURLEqualsParam) webhookURLField() {} - -func (slackAppWebhookWithPrismaWebhookURLSetParam) settable() {} -func (slackAppWebhookWithPrismaWebhookURLEqualsParam) equals() {} +func (r userToOauthProvidersFindMany) with() {} +func (r userToOauthProvidersFindMany) userModel() {} +func (r userToOauthProvidersFindMany) userRelation() {} -type slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (r userToOauthProvidersFindMany) With(params ...UserOAuthRelationWith) userToOauthProvidersFindMany { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (p slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) field() builder.Field { - return p.data + return r } -func (p slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (r userToOauthProvidersFindMany) Select(params ...userPrismaFields) userToOauthProvidersFindMany { + var outputs []builder.Output -func (p slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) slackAppWebhookModel() {} -func (p slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) webhookURLField() {} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) unique() {} -func (slackAppWebhookWithPrismaWebhookURLEqualsUniqueParam) equals() {} + r.query.Outputs = outputs -type logLineActions struct { - // client holds the prisma client - client *PrismaClient + return r } -var logLineOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "tenantId"}, - {Name: "stepRunId"}, - {Name: "message"}, - {Name: "level"}, - {Name: "metadata"}, -} +func (r userToOauthProvidersFindMany) Omit(params ...userPrismaFields) userToOauthProvidersFindMany { + var outputs []builder.Output -type LogLineRelationWith interface { - getQuery() builder.Query - with() - logLineRelation() -} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -type LogLineWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() -} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -type logLineDefaultParam struct { - data builder.Field - query builder.Query -} + r.query.Outputs = outputs -func (p logLineDefaultParam) field() builder.Field { - return p.data + return r } -func (p logLineDefaultParam) getQuery() builder.Query { - return p.query -} +func (r userToOauthProvidersFindMany) OrderBy(params ...UserOAuthOrderByParam) userToOauthProvidersFindMany { + var fields []builder.Field -func (p logLineDefaultParam) logLineModel() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -type LogLineOrderByParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() -} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -type logLineOrderByParam struct { - data builder.Field - query builder.Query + return r } -func (p logLineOrderByParam) field() builder.Field { - return p.data +func (r userToOauthProvidersFindMany) Skip(count int) userToOauthProvidersFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p logLineOrderByParam) getQuery() builder.Query { - return p.query +func (r userToOauthProvidersFindMany) Take(count int) userToOauthProvidersFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p logLineOrderByParam) logLineModel() {} - -type LogLineCursorParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - isCursor() +func (r userToOauthProvidersFindMany) Cursor(cursor UserCursorParam) userToOauthProvidersFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -type logLineCursorParam struct { - data builder.Field - query builder.Query -} +func (r userToOauthProvidersFindMany) Exec(ctx context.Context) ( + []UserModel, + error, +) { + var v []UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p logLineCursorParam) field() builder.Field { - return p.data + return v, nil } -func (p logLineCursorParam) isCursor() {} +func (r userToOauthProvidersFindMany) ExecInner(ctx context.Context) ( + []InnerUser, + error, +) { + var v []InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p logLineCursorParam) getQuery() builder.Query { - return p.query + return v, nil } -func (p logLineCursorParam) logLineModel() {} - -type LogLineParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - logLineModel() -} +func (r userToOauthProvidersFindMany) Update(params ...UserSetParam) userToOauthProvidersUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "User" -type logLineParamUnique struct { - data builder.Field - query builder.Query -} + r.query.Outputs = countOutput -func (p logLineParamUnique) logLineModel() {} + var v userToOauthProvidersUpdateMany + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (logLineParamUnique) unique() {} + field := q.field() -func (p logLineParamUnique) field() builder.Field { - return p.data -} + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } -func (p logLineParamUnique) getQuery() builder.Query { - return p.query -} + field.Value = nil + } -type LogLineEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type logLineEqualsParam struct { - data builder.Field +type userToOauthProvidersUpdateMany struct { query builder.Query } -func (p logLineEqualsParam) logLineModel() {} - -func (logLineEqualsParam) equals() {} - -func (p logLineEqualsParam) field() builder.Field { - return p.data +func (r userToOauthProvidersUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p logLineEqualsParam) getQuery() builder.Query { - return p.query -} +func (r userToOauthProvidersUpdateMany) userModel() {} -type LogLineEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - logLineModel() +func (r userToOauthProvidersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type logLineEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r userToOauthProvidersUpdateMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p logLineEqualsUniqueParam) logLineModel() {} - -func (logLineEqualsUniqueParam) unique() {} -func (logLineEqualsUniqueParam) equals() {} - -func (p logLineEqualsUniqueParam) field() builder.Field { - return p.data -} +func (r userToOauthProvidersFindMany) Delete() userToOauthProvidersDeleteMany { + var v userToOauthProvidersDeleteMany + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteMany" + v.query.Model = "User" -func (p logLineEqualsUniqueParam) getQuery() builder.Query { - return p.query -} + v.query.Outputs = countOutput -type LogLineSetParam interface { - field() builder.Field - settable() - logLineModel() + return v } -type logLineSetParam struct { - data builder.Field +type userToOauthProvidersDeleteMany struct { + query builder.Query } -func (logLineSetParam) settable() {} - -func (p logLineSetParam) field() builder.Field { - return p.data +func (r userToOauthProvidersDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p logLineSetParam) logLineModel() {} +func (p userToOauthProvidersDeleteMany) userModel() {} -type LogLineWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - idField() +func (r userToOauthProvidersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type LogLineWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - idField() +func (r userToOauthProvidersDeleteMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type logLineWithPrismaIDSetParam struct { - data builder.Field +type userToPasswordFindUnique struct { query builder.Query } -func (p logLineWithPrismaIDSetParam) field() builder.Field { - return p.data +func (r userToPasswordFindUnique) getQuery() builder.Query { + return r.query } -func (p logLineWithPrismaIDSetParam) getQuery() builder.Query { - return p.query +func (r userToPasswordFindUnique) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaIDSetParam) logLineModel() {} +func (r userToPasswordFindUnique) with() {} +func (r userToPasswordFindUnique) userModel() {} +func (r userToPasswordFindUnique) userRelation() {} -func (p logLineWithPrismaIDSetParam) idField() {} +func (r userToPasswordFindUnique) With(params ...UserPasswordRelationWith) userToPasswordFindUnique { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type LogLineWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - idField() + return r } -type logLineWithPrismaIDEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToPasswordFindUnique) Select(params ...userPrismaFields) userToPasswordFindUnique { + var outputs []builder.Output -func (p logLineWithPrismaIDEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p logLineWithPrismaIDEqualsParam) getQuery() builder.Query { - return p.query + r.query.Outputs = outputs + + return r } -func (p logLineWithPrismaIDEqualsParam) logLineModel() {} +func (r userToPasswordFindUnique) Omit(params ...userPrismaFields) userToPasswordFindUnique { + var outputs []builder.Output -func (p logLineWithPrismaIDEqualsParam) idField() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (logLineWithPrismaIDSetParam) settable() {} -func (logLineWithPrismaIDEqualsParam) equals() {} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -type logLineWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + r.query.Outputs = outputs -func (p logLineWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data + return r } -func (p logLineWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToPasswordFindUnique) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -func (p logLineWithPrismaIDEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaIDEqualsUniqueParam) idField() {} - -func (logLineWithPrismaIDEqualsUniqueParam) unique() {} -func (logLineWithPrismaIDEqualsUniqueParam) equals() {} +func (r userToPasswordFindUnique) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type LogLineWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - createdAtField() -} + if v == nil { + return nil, ErrNotFound + } -type LogLineWithPrismaCreatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - createdAtField() + return v, nil } -type logLineWithPrismaCreatedAtSetParam struct { - data builder.Field - query builder.Query -} +func (r userToPasswordFindUnique) Update(params ...UserSetParam) userToPasswordUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "User" -func (p logLineWithPrismaCreatedAtSetParam) field() builder.Field { - return p.data -} + var v userToPasswordUpdateUnique + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p logLineWithPrismaCreatedAtSetParam) getQuery() builder.Query { - return p.query -} + field := q.field() -func (p logLineWithPrismaCreatedAtSetParam) logLineModel() {} + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } -func (p logLineWithPrismaCreatedAtSetParam) createdAtField() {} + field.Value = nil + } -type LogLineWithPrismaCreatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - createdAtField() + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type logLineWithPrismaCreatedAtEqualsParam struct { - data builder.Field +type userToPasswordUpdateUnique struct { query builder.Query } -func (p logLineWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data +func (r userToPasswordUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { - return p.query -} +func (r userToPasswordUpdateUnique) userModel() {} -func (p logLineWithPrismaCreatedAtEqualsParam) logLineModel() {} +func (r userToPasswordUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -func (p logLineWithPrismaCreatedAtEqualsParam) createdAtField() {} +func (r userToPasswordUpdateUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (logLineWithPrismaCreatedAtSetParam) settable() {} -func (logLineWithPrismaCreatedAtEqualsParam) equals() {} +func (r userToPasswordFindUnique) Delete() userToPasswordDeleteUnique { + var v userToPasswordDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "User" -type logLineWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query + return v } -func (p logLineWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { - return p.data +type userToPasswordDeleteUnique struct { + query builder.Query } -func (p logLineWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToPasswordDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaCreatedAtEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} - -func (logLineWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (logLineWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (p userToPasswordDeleteUnique) userModel() {} -type LogLineWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - tenantField() +func (r userToPasswordDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type LogLineWithPrismaTenantSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - tenantField() +func (r userToPasswordDeleteUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type logLineWithPrismaTenantSetParam struct { - data builder.Field +type userToPasswordFindFirst struct { query builder.Query } -func (p logLineWithPrismaTenantSetParam) field() builder.Field { - return p.data +func (r userToPasswordFindFirst) getQuery() builder.Query { + return r.query } -func (p logLineWithPrismaTenantSetParam) getQuery() builder.Query { - return p.query +func (r userToPasswordFindFirst) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaTenantSetParam) logLineModel() {} +func (r userToPasswordFindFirst) with() {} +func (r userToPasswordFindFirst) userModel() {} +func (r userToPasswordFindFirst) userRelation() {} -func (p logLineWithPrismaTenantSetParam) tenantField() {} +func (r userToPasswordFindFirst) With(params ...UserPasswordRelationWith) userToPasswordFindFirst { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type LogLineWithPrismaTenantWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - tenantField() + return r } -type logLineWithPrismaTenantEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToPasswordFindFirst) Select(params ...userPrismaFields) userToPasswordFindFirst { + var outputs []builder.Output -func (p logLineWithPrismaTenantEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p logLineWithPrismaTenantEqualsParam) getQuery() builder.Query { - return p.query -} + r.query.Outputs = outputs -func (p logLineWithPrismaTenantEqualsParam) logLineModel() {} + return r +} -func (p logLineWithPrismaTenantEqualsParam) tenantField() {} +func (r userToPasswordFindFirst) Omit(params ...userPrismaFields) userToPasswordFindFirst { + var outputs []builder.Output -func (logLineWithPrismaTenantSetParam) settable() {} -func (logLineWithPrismaTenantEqualsParam) equals() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -type logLineWithPrismaTenantEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p logLineWithPrismaTenantEqualsUniqueParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p logLineWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { - return p.query + return r } -func (p logLineWithPrismaTenantEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (r userToPasswordFindFirst) OrderBy(params ...UserPasswordOrderByParam) userToPasswordFindFirst { + var fields []builder.Field -func (logLineWithPrismaTenantEqualsUniqueParam) unique() {} -func (logLineWithPrismaTenantEqualsUniqueParam) equals() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -type LogLineWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - tenantIDField() -} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -type LogLineWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - tenantIDField() + return r } -type logLineWithPrismaTenantIDSetParam struct { - data builder.Field - query builder.Query +func (r userToPasswordFindFirst) Skip(count int) userToPasswordFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p logLineWithPrismaTenantIDSetParam) field() builder.Field { - return p.data +func (r userToPasswordFindFirst) Take(count int) userToPasswordFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p logLineWithPrismaTenantIDSetParam) getQuery() builder.Query { - return p.query +func (r userToPasswordFindFirst) Cursor(cursor UserCursorParam) userToPasswordFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p logLineWithPrismaTenantIDSetParam) logLineModel() {} +func (r userToPasswordFindFirst) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p logLineWithPrismaTenantIDSetParam) tenantIDField() {} + if v == nil { + return nil, ErrNotFound + } -type LogLineWithPrismaTenantIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - tenantIDField() + return v, nil } -type logLineWithPrismaTenantIDEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToPasswordFindFirst) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p logLineWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data -} + if v == nil { + return nil, ErrNotFound + } -func (p logLineWithPrismaTenantIDEqualsParam) getQuery() builder.Query { - return p.query + return v, nil } -func (p logLineWithPrismaTenantIDEqualsParam) logLineModel() {} - -func (p logLineWithPrismaTenantIDEqualsParam) tenantIDField() {} - -func (logLineWithPrismaTenantIDSetParam) settable() {} -func (logLineWithPrismaTenantIDEqualsParam) equals() {} - -type logLineWithPrismaTenantIDEqualsUniqueParam struct { - data builder.Field +type userToPasswordFindMany struct { query builder.Query } -func (p logLineWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r userToPasswordFindMany) getQuery() builder.Query { + return r.query } -func (p logLineWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToPasswordFindMany) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaTenantIDEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (r userToPasswordFindMany) with() {} +func (r userToPasswordFindMany) userModel() {} +func (r userToPasswordFindMany) userRelation() {} -func (logLineWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (logLineWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (r userToPasswordFindMany) With(params ...UserPasswordRelationWith) userToPasswordFindMany { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type LogLineWithPrismaStepRunEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - stepRunField() + return r } -type LogLineWithPrismaStepRunSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - stepRunField() -} +func (r userToPasswordFindMany) Select(params ...userPrismaFields) userToPasswordFindMany { + var outputs []builder.Output -type logLineWithPrismaStepRunSetParam struct { - data builder.Field - query builder.Query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p logLineWithPrismaStepRunSetParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p logLineWithPrismaStepRunSetParam) getQuery() builder.Query { - return p.query + return r } -func (p logLineWithPrismaStepRunSetParam) logLineModel() {} - -func (p logLineWithPrismaStepRunSetParam) stepRunField() {} +func (r userToPasswordFindMany) Omit(params ...userPrismaFields) userToPasswordFindMany { + var outputs []builder.Output -type LogLineWithPrismaStepRunWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - stepRunField() -} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -type logLineWithPrismaStepRunEqualsParam struct { - data builder.Field - query builder.Query -} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p logLineWithPrismaStepRunEqualsParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p logLineWithPrismaStepRunEqualsParam) getQuery() builder.Query { - return p.query + return r } -func (p logLineWithPrismaStepRunEqualsParam) logLineModel() {} +func (r userToPasswordFindMany) OrderBy(params ...UserPasswordOrderByParam) userToPasswordFindMany { + var fields []builder.Field -func (p logLineWithPrismaStepRunEqualsParam) stepRunField() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (logLineWithPrismaStepRunSetParam) settable() {} -func (logLineWithPrismaStepRunEqualsParam) equals() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -type logLineWithPrismaStepRunEqualsUniqueParam struct { - data builder.Field - query builder.Query + return r } -func (p logLineWithPrismaStepRunEqualsUniqueParam) field() builder.Field { - return p.data +func (r userToPasswordFindMany) Skip(count int) userToPasswordFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p logLineWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToPasswordFindMany) Take(count int) userToPasswordFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p logLineWithPrismaStepRunEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaStepRunEqualsUniqueParam) stepRunField() {} +func (r userToPasswordFindMany) Cursor(cursor UserCursorParam) userToPasswordFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (logLineWithPrismaStepRunEqualsUniqueParam) unique() {} -func (logLineWithPrismaStepRunEqualsUniqueParam) equals() {} +func (r userToPasswordFindMany) Exec(ctx context.Context) ( + []UserModel, + error, +) { + var v []UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type LogLineWithPrismaStepRunIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - stepRunIDField() + return v, nil } -type LogLineWithPrismaStepRunIDSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - stepRunIDField() -} +func (r userToPasswordFindMany) ExecInner(ctx context.Context) ( + []InnerUser, + error, +) { + var v []InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type logLineWithPrismaStepRunIDSetParam struct { - data builder.Field - query builder.Query + return v, nil } -func (p logLineWithPrismaStepRunIDSetParam) field() builder.Field { - return p.data -} +func (r userToPasswordFindMany) Update(params ...UserSetParam) userToPasswordUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "User" -func (p logLineWithPrismaStepRunIDSetParam) getQuery() builder.Query { - return p.query -} + r.query.Outputs = countOutput -func (p logLineWithPrismaStepRunIDSetParam) logLineModel() {} + var v userToPasswordUpdateMany + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p logLineWithPrismaStepRunIDSetParam) stepRunIDField() {} + field := q.field() -type LogLineWithPrismaStepRunIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - stepRunIDField() + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type logLineWithPrismaStepRunIDEqualsParam struct { - data builder.Field +type userToPasswordUpdateMany struct { query builder.Query } -func (p logLineWithPrismaStepRunIDEqualsParam) field() builder.Field { - return p.data +func (r userToPasswordUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { - return p.query +func (r userToPasswordUpdateMany) userModel() {} + +func (r userToPasswordUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p logLineWithPrismaStepRunIDEqualsParam) logLineModel() {} +func (r userToPasswordUpdateMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (p logLineWithPrismaStepRunIDEqualsParam) stepRunIDField() {} +func (r userToPasswordFindMany) Delete() userToPasswordDeleteMany { + var v userToPasswordDeleteMany + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteMany" + v.query.Model = "User" -func (logLineWithPrismaStepRunIDSetParam) settable() {} -func (logLineWithPrismaStepRunIDEqualsParam) equals() {} + v.query.Outputs = countOutput -type logLineWithPrismaStepRunIDEqualsUniqueParam struct { - data builder.Field - query builder.Query + return v } -func (p logLineWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { - return p.data +type userToPasswordDeleteMany struct { + query builder.Query } -func (p logLineWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToPasswordDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaStepRunIDEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} - -func (logLineWithPrismaStepRunIDEqualsUniqueParam) unique() {} -func (logLineWithPrismaStepRunIDEqualsUniqueParam) equals() {} +func (p userToPasswordDeleteMany) userModel() {} -type LogLineWithPrismaMessageEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - messageField() +func (r userToPasswordDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type LogLineWithPrismaMessageSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - messageField() +func (r userToPasswordDeleteMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type logLineWithPrismaMessageSetParam struct { - data builder.Field +type userToSessionsFindUnique struct { query builder.Query } -func (p logLineWithPrismaMessageSetParam) field() builder.Field { - return p.data +func (r userToSessionsFindUnique) getQuery() builder.Query { + return r.query } -func (p logLineWithPrismaMessageSetParam) getQuery() builder.Query { - return p.query +func (r userToSessionsFindUnique) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaMessageSetParam) logLineModel() {} +func (r userToSessionsFindUnique) with() {} +func (r userToSessionsFindUnique) userModel() {} +func (r userToSessionsFindUnique) userRelation() {} -func (p logLineWithPrismaMessageSetParam) messageField() {} +func (r userToSessionsFindUnique) With(params ...UserSessionRelationWith) userToSessionsFindUnique { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type LogLineWithPrismaMessageWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - messageField() + return r } -type logLineWithPrismaMessageEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToSessionsFindUnique) Select(params ...userPrismaFields) userToSessionsFindUnique { + var outputs []builder.Output -func (p logLineWithPrismaMessageEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p logLineWithPrismaMessageEqualsParam) getQuery() builder.Query { - return p.query -} + r.query.Outputs = outputs -func (p logLineWithPrismaMessageEqualsParam) logLineModel() {} + return r +} -func (p logLineWithPrismaMessageEqualsParam) messageField() {} +func (r userToSessionsFindUnique) Omit(params ...userPrismaFields) userToSessionsFindUnique { + var outputs []builder.Output -func (logLineWithPrismaMessageSetParam) settable() {} -func (logLineWithPrismaMessageEqualsParam) equals() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -type logLineWithPrismaMessageEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p logLineWithPrismaMessageEqualsUniqueParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p logLineWithPrismaMessageEqualsUniqueParam) getQuery() builder.Query { - return p.query + return r } -func (p logLineWithPrismaMessageEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaMessageEqualsUniqueParam) messageField() {} +func (r userToSessionsFindUnique) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (logLineWithPrismaMessageEqualsUniqueParam) unique() {} -func (logLineWithPrismaMessageEqualsUniqueParam) equals() {} + if v == nil { + return nil, ErrNotFound + } -type LogLineWithPrismaLevelEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - levelField() + return v, nil } -type LogLineWithPrismaLevelSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - levelField() -} +func (r userToSessionsFindUnique) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type logLineWithPrismaLevelSetParam struct { - data builder.Field - query builder.Query -} + if v == nil { + return nil, ErrNotFound + } -func (p logLineWithPrismaLevelSetParam) field() builder.Field { - return p.data + return v, nil } -func (p logLineWithPrismaLevelSetParam) getQuery() builder.Query { - return p.query -} +func (r userToSessionsFindUnique) Update(params ...UserSetParam) userToSessionsUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "User" -func (p logLineWithPrismaLevelSetParam) logLineModel() {} + var v userToSessionsUpdateUnique + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p logLineWithPrismaLevelSetParam) levelField() {} + field := q.field() -type LogLineWithPrismaLevelWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - levelField() + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type logLineWithPrismaLevelEqualsParam struct { - data builder.Field +type userToSessionsUpdateUnique struct { query builder.Query } -func (p logLineWithPrismaLevelEqualsParam) field() builder.Field { - return p.data +func (r userToSessionsUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaLevelEqualsParam) getQuery() builder.Query { - return p.query -} +func (r userToSessionsUpdateUnique) userModel() {} -func (p logLineWithPrismaLevelEqualsParam) logLineModel() {} +func (r userToSessionsUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -func (p logLineWithPrismaLevelEqualsParam) levelField() {} +func (r userToSessionsUpdateUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (logLineWithPrismaLevelSetParam) settable() {} -func (logLineWithPrismaLevelEqualsParam) equals() {} +func (r userToSessionsFindUnique) Delete() userToSessionsDeleteUnique { + var v userToSessionsDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "User" -type logLineWithPrismaLevelEqualsUniqueParam struct { - data builder.Field - query builder.Query + return v } -func (p logLineWithPrismaLevelEqualsUniqueParam) field() builder.Field { - return p.data +type userToSessionsDeleteUnique struct { + query builder.Query } -func (p logLineWithPrismaLevelEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToSessionsDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaLevelEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaLevelEqualsUniqueParam) levelField() {} - -func (logLineWithPrismaLevelEqualsUniqueParam) unique() {} -func (logLineWithPrismaLevelEqualsUniqueParam) equals() {} +func (p userToSessionsDeleteUnique) userModel() {} -type LogLineWithPrismaMetadataEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - logLineModel() - metadataField() +func (r userToSessionsDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type LogLineWithPrismaMetadataSetParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - metadataField() +func (r userToSessionsDeleteUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type logLineWithPrismaMetadataSetParam struct { - data builder.Field +type userToSessionsFindFirst struct { query builder.Query } -func (p logLineWithPrismaMetadataSetParam) field() builder.Field { - return p.data +func (r userToSessionsFindFirst) getQuery() builder.Query { + return r.query } -func (p logLineWithPrismaMetadataSetParam) getQuery() builder.Query { - return p.query +func (r userToSessionsFindFirst) ExtractQuery() builder.Query { + return r.query } -func (p logLineWithPrismaMetadataSetParam) logLineModel() {} +func (r userToSessionsFindFirst) with() {} +func (r userToSessionsFindFirst) userModel() {} +func (r userToSessionsFindFirst) userRelation() {} -func (p logLineWithPrismaMetadataSetParam) metadataField() {} +func (r userToSessionsFindFirst) With(params ...UserSessionRelationWith) userToSessionsFindFirst { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type LogLineWithPrismaMetadataWhereParam interface { - field() builder.Field - getQuery() builder.Query - logLineModel() - metadataField() + return r } -type logLineWithPrismaMetadataEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToSessionsFindFirst) Select(params ...userPrismaFields) userToSessionsFindFirst { + var outputs []builder.Output -func (p logLineWithPrismaMetadataEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p logLineWithPrismaMetadataEqualsParam) getQuery() builder.Query { - return p.query + r.query.Outputs = outputs + + return r } -func (p logLineWithPrismaMetadataEqualsParam) logLineModel() {} +func (r userToSessionsFindFirst) Omit(params ...userPrismaFields) userToSessionsFindFirst { + var outputs []builder.Output -func (p logLineWithPrismaMetadataEqualsParam) metadataField() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (logLineWithPrismaMetadataSetParam) settable() {} -func (logLineWithPrismaMetadataEqualsParam) equals() {} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -type logLineWithPrismaMetadataEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + r.query.Outputs = outputs -func (p logLineWithPrismaMetadataEqualsUniqueParam) field() builder.Field { - return p.data + return r } -func (p logLineWithPrismaMetadataEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (r userToSessionsFindFirst) OrderBy(params ...UserSessionOrderByParam) userToSessionsFindFirst { + var fields []builder.Field -func (p logLineWithPrismaMetadataEqualsUniqueParam) logLineModel() {} -func (p logLineWithPrismaMetadataEqualsUniqueParam) metadataField() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (logLineWithPrismaMetadataEqualsUniqueParam) unique() {} -func (logLineWithPrismaMetadataEqualsUniqueParam) equals() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -type streamEventActions struct { - // client holds the prisma client - client *PrismaClient + return r } -var streamEventOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "tenantId"}, - {Name: "stepRunId"}, - {Name: "message"}, - {Name: "metadata"}, +func (r userToSessionsFindFirst) Skip(count int) userToSessionsFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -type StreamEventRelationWith interface { - getQuery() builder.Query - with() - streamEventRelation() +func (r userToSessionsFindFirst) Take(count int) userToSessionsFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -type StreamEventWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() +func (r userToSessionsFindFirst) Cursor(cursor UserCursorParam) userToSessionsFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -type streamEventDefaultParam struct { - data builder.Field - query builder.Query -} +func (r userToSessionsFindFirst) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p streamEventDefaultParam) field() builder.Field { - return p.data -} + if v == nil { + return nil, ErrNotFound + } -func (p streamEventDefaultParam) getQuery() builder.Query { - return p.query + return v, nil } -func (p streamEventDefaultParam) streamEventModel() {} +func (r userToSessionsFindFirst) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type StreamEventOrderByParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -type streamEventOrderByParam struct { - data builder.Field +type userToSessionsFindMany struct { query builder.Query } -func (p streamEventOrderByParam) field() builder.Field { - return p.data +func (r userToSessionsFindMany) getQuery() builder.Query { + return r.query } -func (p streamEventOrderByParam) getQuery() builder.Query { - return p.query +func (r userToSessionsFindMany) ExtractQuery() builder.Query { + return r.query } -func (p streamEventOrderByParam) streamEventModel() {} - -type StreamEventCursorParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - isCursor() -} +func (r userToSessionsFindMany) with() {} +func (r userToSessionsFindMany) userModel() {} +func (r userToSessionsFindMany) userRelation() {} -type streamEventCursorParam struct { - data builder.Field - query builder.Query -} +func (r userToSessionsFindMany) With(params ...UserSessionRelationWith) userToSessionsFindMany { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (p streamEventCursorParam) field() builder.Field { - return p.data + return r } -func (p streamEventCursorParam) isCursor() {} - -func (p streamEventCursorParam) getQuery() builder.Query { - return p.query -} +func (r userToSessionsFindMany) Select(params ...userPrismaFields) userToSessionsFindMany { + var outputs []builder.Output -func (p streamEventCursorParam) streamEventModel() {} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -type StreamEventParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - streamEventModel() -} + r.query.Outputs = outputs -type streamEventParamUnique struct { - data builder.Field - query builder.Query + return r } -func (p streamEventParamUnique) streamEventModel() {} +func (r userToSessionsFindMany) Omit(params ...userPrismaFields) userToSessionsFindMany { + var outputs []builder.Output -func (streamEventParamUnique) unique() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (p streamEventParamUnique) field() builder.Field { - return p.data -} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p streamEventParamUnique) getQuery() builder.Query { - return p.query -} + r.query.Outputs = outputs -type StreamEventEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() + return r } -type streamEventEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToSessionsFindMany) OrderBy(params ...UserSessionOrderByParam) userToSessionsFindMany { + var fields []builder.Field -func (p streamEventEqualsParam) streamEventModel() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (streamEventEqualsParam) equals() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -func (p streamEventEqualsParam) field() builder.Field { - return p.data + return r } -func (p streamEventEqualsParam) getQuery() builder.Query { - return p.query +func (r userToSessionsFindMany) Skip(count int) userToSessionsFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -type StreamEventEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - streamEventModel() +func (r userToSessionsFindMany) Take(count int) userToSessionsFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -type streamEventEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r userToSessionsFindMany) Cursor(cursor UserCursorParam) userToSessionsFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p streamEventEqualsUniqueParam) streamEventModel() {} - -func (streamEventEqualsUniqueParam) unique() {} -func (streamEventEqualsUniqueParam) equals() {} +func (r userToSessionsFindMany) Exec(ctx context.Context) ( + []UserModel, + error, +) { + var v []UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p streamEventEqualsUniqueParam) field() builder.Field { - return p.data + return v, nil } -func (p streamEventEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (r userToSessionsFindMany) ExecInner(ctx context.Context) ( + []InnerUser, + error, +) { + var v []InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type StreamEventSetParam interface { - field() builder.Field - settable() - streamEventModel() + return v, nil } -type streamEventSetParam struct { - data builder.Field -} +func (r userToSessionsFindMany) Update(params ...UserSetParam) userToSessionsUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "User" -func (streamEventSetParam) settable() {} + r.query.Outputs = countOutput -func (p streamEventSetParam) field() builder.Field { - return p.data -} + var v userToSessionsUpdateMany + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p streamEventSetParam) streamEventModel() {} + field := q.field() -type StreamEventWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() - idField() -} + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } -type StreamEventWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - idField() + field.Value = nil + } + + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type streamEventWithPrismaIDSetParam struct { - data builder.Field +type userToSessionsUpdateMany struct { query builder.Query } -func (p streamEventWithPrismaIDSetParam) field() builder.Field { - return p.data +func (r userToSessionsUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaIDSetParam) getQuery() builder.Query { - return p.query +func (r userToSessionsUpdateMany) userModel() {} + +func (r userToSessionsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p streamEventWithPrismaIDSetParam) streamEventModel() {} +func (r userToSessionsUpdateMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (p streamEventWithPrismaIDSetParam) idField() {} +func (r userToSessionsFindMany) Delete() userToSessionsDeleteMany { + var v userToSessionsDeleteMany + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteMany" + v.query.Model = "User" -type StreamEventWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - idField() -} + v.query.Outputs = countOutput -type streamEventWithPrismaIDEqualsParam struct { - data builder.Field - query builder.Query + return v } -func (p streamEventWithPrismaIDEqualsParam) field() builder.Field { - return p.data +type userToSessionsDeleteMany struct { + query builder.Query } -func (p streamEventWithPrismaIDEqualsParam) getQuery() builder.Query { - return p.query +func (r userToSessionsDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaIDEqualsParam) streamEventModel() {} +func (p userToSessionsDeleteMany) userModel() {} -func (p streamEventWithPrismaIDEqualsParam) idField() {} +func (r userToSessionsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -func (streamEventWithPrismaIDSetParam) settable() {} -func (streamEventWithPrismaIDEqualsParam) equals() {} +func (r userToSessionsDeleteMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -type streamEventWithPrismaIDEqualsUniqueParam struct { - data builder.Field +type userToMembershipsFindUnique struct { query builder.Query } -func (p streamEventWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r userToMembershipsFindUnique) getQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToMembershipsFindUnique) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaIDEqualsUniqueParam) streamEventModel() {} -func (p streamEventWithPrismaIDEqualsUniqueParam) idField() {} +func (r userToMembershipsFindUnique) with() {} +func (r userToMembershipsFindUnique) userModel() {} +func (r userToMembershipsFindUnique) userRelation() {} -func (streamEventWithPrismaIDEqualsUniqueParam) unique() {} -func (streamEventWithPrismaIDEqualsUniqueParam) equals() {} +func (r userToMembershipsFindUnique) With(params ...TenantMemberRelationWith) userToMembershipsFindUnique { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type StreamEventWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() - createdAtField() + return r } -type StreamEventWithPrismaCreatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - createdAtField() -} +func (r userToMembershipsFindUnique) Select(params ...userPrismaFields) userToMembershipsFindUnique { + var outputs []builder.Output -type streamEventWithPrismaCreatedAtSetParam struct { - data builder.Field - query builder.Query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p streamEventWithPrismaCreatedAtSetParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p streamEventWithPrismaCreatedAtSetParam) getQuery() builder.Query { - return p.query + return r } -func (p streamEventWithPrismaCreatedAtSetParam) streamEventModel() {} +func (r userToMembershipsFindUnique) Omit(params ...userPrismaFields) userToMembershipsFindUnique { + var outputs []builder.Output -func (p streamEventWithPrismaCreatedAtSetParam) createdAtField() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -type StreamEventWithPrismaCreatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - createdAtField() -} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -type streamEventWithPrismaCreatedAtEqualsParam struct { - data builder.Field - query builder.Query -} + r.query.Outputs = outputs -func (p streamEventWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data + return r } -func (p streamEventWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { - return p.query -} +func (r userToMembershipsFindUnique) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p streamEventWithPrismaCreatedAtEqualsParam) streamEventModel() {} + if v == nil { + return nil, ErrNotFound + } -func (p streamEventWithPrismaCreatedAtEqualsParam) createdAtField() {} + return v, nil +} -func (streamEventWithPrismaCreatedAtSetParam) settable() {} -func (streamEventWithPrismaCreatedAtEqualsParam) equals() {} +func (r userToMembershipsFindUnique) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type streamEventWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + if v == nil { + return nil, ErrNotFound + } -func (p streamEventWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { - return p.data + return v, nil } -func (p streamEventWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (r userToMembershipsFindUnique) Update(params ...UserSetParam) userToMembershipsUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "User" -func (p streamEventWithPrismaCreatedAtEqualsUniqueParam) streamEventModel() {} -func (p streamEventWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} + var v userToMembershipsUpdateUnique + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (streamEventWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (streamEventWithPrismaCreatedAtEqualsUniqueParam) equals() {} + field := q.field() -type StreamEventWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() - tenantField() -} + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } -type StreamEventWithPrismaTenantSetParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - tenantField() + field.Value = nil + } + + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type streamEventWithPrismaTenantSetParam struct { - data builder.Field +type userToMembershipsUpdateUnique struct { query builder.Query } -func (p streamEventWithPrismaTenantSetParam) field() builder.Field { - return p.data +func (r userToMembershipsUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaTenantSetParam) getQuery() builder.Query { - return p.query +func (r userToMembershipsUpdateUnique) userModel() {} + +func (r userToMembershipsUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p streamEventWithPrismaTenantSetParam) streamEventModel() {} +func (r userToMembershipsUpdateUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (p streamEventWithPrismaTenantSetParam) tenantField() {} +func (r userToMembershipsFindUnique) Delete() userToMembershipsDeleteUnique { + var v userToMembershipsDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "User" -type StreamEventWithPrismaTenantWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - tenantField() + return v } -type streamEventWithPrismaTenantEqualsParam struct { - data builder.Field +type userToMembershipsDeleteUnique struct { query builder.Query } -func (p streamEventWithPrismaTenantEqualsParam) field() builder.Field { - return p.data -} - -func (p streamEventWithPrismaTenantEqualsParam) getQuery() builder.Query { - return p.query +func (r userToMembershipsDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaTenantEqualsParam) streamEventModel() {} +func (p userToMembershipsDeleteUnique) userModel() {} -func (p streamEventWithPrismaTenantEqualsParam) tenantField() {} +func (r userToMembershipsDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -func (streamEventWithPrismaTenantSetParam) settable() {} -func (streamEventWithPrismaTenantEqualsParam) equals() {} +func (r userToMembershipsDeleteUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -type streamEventWithPrismaTenantEqualsUniqueParam struct { - data builder.Field +type userToMembershipsFindFirst struct { query builder.Query } -func (p streamEventWithPrismaTenantEqualsUniqueParam) field() builder.Field { - return p.data +func (r userToMembershipsFindFirst) getQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToMembershipsFindFirst) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaTenantEqualsUniqueParam) streamEventModel() {} -func (p streamEventWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (r userToMembershipsFindFirst) with() {} +func (r userToMembershipsFindFirst) userModel() {} +func (r userToMembershipsFindFirst) userRelation() {} -func (streamEventWithPrismaTenantEqualsUniqueParam) unique() {} -func (streamEventWithPrismaTenantEqualsUniqueParam) equals() {} +func (r userToMembershipsFindFirst) With(params ...TenantMemberRelationWith) userToMembershipsFindFirst { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type StreamEventWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() - tenantIDField() + return r } -type StreamEventWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - tenantIDField() -} +func (r userToMembershipsFindFirst) Select(params ...userPrismaFields) userToMembershipsFindFirst { + var outputs []builder.Output -type streamEventWithPrismaTenantIDSetParam struct { - data builder.Field - query builder.Query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p streamEventWithPrismaTenantIDSetParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p streamEventWithPrismaTenantIDSetParam) getQuery() builder.Query { - return p.query + return r } -func (p streamEventWithPrismaTenantIDSetParam) streamEventModel() {} +func (r userToMembershipsFindFirst) Omit(params ...userPrismaFields) userToMembershipsFindFirst { + var outputs []builder.Output -func (p streamEventWithPrismaTenantIDSetParam) tenantIDField() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -type StreamEventWithPrismaTenantIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - tenantIDField() -} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -type streamEventWithPrismaTenantIDEqualsParam struct { - data builder.Field - query builder.Query -} + r.query.Outputs = outputs -func (p streamEventWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data + return r } -func (p streamEventWithPrismaTenantIDEqualsParam) getQuery() builder.Query { - return p.query -} +func (r userToMembershipsFindFirst) OrderBy(params ...TenantMemberOrderByParam) userToMembershipsFindFirst { + var fields []builder.Field -func (p streamEventWithPrismaTenantIDEqualsParam) streamEventModel() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (p streamEventWithPrismaTenantIDEqualsParam) tenantIDField() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -func (streamEventWithPrismaTenantIDSetParam) settable() {} -func (streamEventWithPrismaTenantIDEqualsParam) equals() {} + return r +} -type streamEventWithPrismaTenantIDEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r userToMembershipsFindFirst) Skip(count int) userToMembershipsFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p streamEventWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r userToMembershipsFindFirst) Take(count int) userToMembershipsFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p streamEventWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToMembershipsFindFirst) Cursor(cursor UserCursorParam) userToMembershipsFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p streamEventWithPrismaTenantIDEqualsUniqueParam) streamEventModel() {} -func (p streamEventWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} +func (r userToMembershipsFindFirst) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (streamEventWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (streamEventWithPrismaTenantIDEqualsUniqueParam) equals() {} + if v == nil { + return nil, ErrNotFound + } -type StreamEventWithPrismaStepRunEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() - stepRunField() + return v, nil } -type StreamEventWithPrismaStepRunSetParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - stepRunField() +func (r userToMembershipsFindFirst) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -type streamEventWithPrismaStepRunSetParam struct { - data builder.Field +type userToMembershipsFindMany struct { query builder.Query } -func (p streamEventWithPrismaStepRunSetParam) field() builder.Field { - return p.data +func (r userToMembershipsFindMany) getQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaStepRunSetParam) getQuery() builder.Query { - return p.query +func (r userToMembershipsFindMany) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaStepRunSetParam) streamEventModel() {} +func (r userToMembershipsFindMany) with() {} +func (r userToMembershipsFindMany) userModel() {} +func (r userToMembershipsFindMany) userRelation() {} -func (p streamEventWithPrismaStepRunSetParam) stepRunField() {} +func (r userToMembershipsFindMany) With(params ...TenantMemberRelationWith) userToMembershipsFindMany { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type StreamEventWithPrismaStepRunWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - stepRunField() + return r } -type streamEventWithPrismaStepRunEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToMembershipsFindMany) Select(params ...userPrismaFields) userToMembershipsFindMany { + var outputs []builder.Output -func (p streamEventWithPrismaStepRunEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p streamEventWithPrismaStepRunEqualsParam) getQuery() builder.Query { - return p.query + r.query.Outputs = outputs + + return r } -func (p streamEventWithPrismaStepRunEqualsParam) streamEventModel() {} +func (r userToMembershipsFindMany) Omit(params ...userPrismaFields) userToMembershipsFindMany { + var outputs []builder.Output -func (p streamEventWithPrismaStepRunEqualsParam) stepRunField() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (streamEventWithPrismaStepRunSetParam) settable() {} -func (streamEventWithPrismaStepRunEqualsParam) equals() {} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -type streamEventWithPrismaStepRunEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + r.query.Outputs = outputs -func (p streamEventWithPrismaStepRunEqualsUniqueParam) field() builder.Field { - return p.data + return r } -func (p streamEventWithPrismaStepRunEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (r userToMembershipsFindMany) OrderBy(params ...TenantMemberOrderByParam) userToMembershipsFindMany { + var fields []builder.Field -func (p streamEventWithPrismaStepRunEqualsUniqueParam) streamEventModel() {} -func (p streamEventWithPrismaStepRunEqualsUniqueParam) stepRunField() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (streamEventWithPrismaStepRunEqualsUniqueParam) unique() {} -func (streamEventWithPrismaStepRunEqualsUniqueParam) equals() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -type StreamEventWithPrismaStepRunIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() - stepRunIDField() + return r } -type StreamEventWithPrismaStepRunIDSetParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - stepRunIDField() +func (r userToMembershipsFindMany) Skip(count int) userToMembershipsFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -type streamEventWithPrismaStepRunIDSetParam struct { - data builder.Field - query builder.Query +func (r userToMembershipsFindMany) Take(count int) userToMembershipsFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p streamEventWithPrismaStepRunIDSetParam) field() builder.Field { - return p.data +func (r userToMembershipsFindMany) Cursor(cursor UserCursorParam) userToMembershipsFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p streamEventWithPrismaStepRunIDSetParam) getQuery() builder.Query { - return p.query -} +func (r userToMembershipsFindMany) Exec(ctx context.Context) ( + []UserModel, + error, +) { + var v []UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p streamEventWithPrismaStepRunIDSetParam) streamEventModel() {} + return v, nil +} -func (p streamEventWithPrismaStepRunIDSetParam) stepRunIDField() {} +func (r userToMembershipsFindMany) ExecInner(ctx context.Context) ( + []InnerUser, + error, +) { + var v []InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type StreamEventWithPrismaStepRunIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - stepRunIDField() + return v, nil } -type streamEventWithPrismaStepRunIDEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userToMembershipsFindMany) Update(params ...UserSetParam) userToMembershipsUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "User" -func (p streamEventWithPrismaStepRunIDEqualsParam) field() builder.Field { - return p.data -} + r.query.Outputs = countOutput -func (p streamEventWithPrismaStepRunIDEqualsParam) getQuery() builder.Query { - return p.query -} + var v userToMembershipsUpdateMany + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p streamEventWithPrismaStepRunIDEqualsParam) streamEventModel() {} + field := q.field() -func (p streamEventWithPrismaStepRunIDEqualsParam) stepRunIDField() {} + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } -func (streamEventWithPrismaStepRunIDSetParam) settable() {} -func (streamEventWithPrismaStepRunIDEqualsParam) equals() {} + field.Value = nil + } -type streamEventWithPrismaStepRunIDEqualsUniqueParam struct { - data builder.Field - query builder.Query + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -func (p streamEventWithPrismaStepRunIDEqualsUniqueParam) field() builder.Field { - return p.data +type userToMembershipsUpdateMany struct { + query builder.Query } -func (p streamEventWithPrismaStepRunIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userToMembershipsUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaStepRunIDEqualsUniqueParam) streamEventModel() {} -func (p streamEventWithPrismaStepRunIDEqualsUniqueParam) stepRunIDField() {} - -func (streamEventWithPrismaStepRunIDEqualsUniqueParam) unique() {} -func (streamEventWithPrismaStepRunIDEqualsUniqueParam) equals() {} +func (r userToMembershipsUpdateMany) userModel() {} -type StreamEventWithPrismaMessageEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() - messageField() +func (r userToMembershipsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type StreamEventWithPrismaMessageSetParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - messageField() +func (r userToMembershipsUpdateMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type streamEventWithPrismaMessageSetParam struct { - data builder.Field - query builder.Query +func (r userToMembershipsFindMany) Delete() userToMembershipsDeleteMany { + var v userToMembershipsDeleteMany + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteMany" + v.query.Model = "User" + + v.query.Outputs = countOutput + + return v } -func (p streamEventWithPrismaMessageSetParam) field() builder.Field { - return p.data +type userToMembershipsDeleteMany struct { + query builder.Query } -func (p streamEventWithPrismaMessageSetParam) getQuery() builder.Query { - return p.query +func (r userToMembershipsDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaMessageSetParam) streamEventModel() {} +func (p userToMembershipsDeleteMany) userModel() {} -func (p streamEventWithPrismaMessageSetParam) messageField() {} +func (r userToMembershipsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -type StreamEventWithPrismaMessageWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - messageField() +func (r userToMembershipsDeleteMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type streamEventWithPrismaMessageEqualsParam struct { - data builder.Field +type userFindUnique struct { query builder.Query } -func (p streamEventWithPrismaMessageEqualsParam) field() builder.Field { - return p.data +func (r userFindUnique) getQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaMessageEqualsParam) getQuery() builder.Query { - return p.query +func (r userFindUnique) ExtractQuery() builder.Query { + return r.query } -func (p streamEventWithPrismaMessageEqualsParam) streamEventModel() {} +func (r userFindUnique) with() {} +func (r userFindUnique) userModel() {} +func (r userFindUnique) userRelation() {} -func (p streamEventWithPrismaMessageEqualsParam) messageField() {} +func (r userActions) FindUnique( + params UserEqualsUniqueWhereParam, +) userFindUnique { + var v userFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client -func (streamEventWithPrismaMessageSetParam) settable() {} -func (streamEventWithPrismaMessageEqualsParam) equals() {} + v.query.Operation = "query" -type streamEventWithPrismaMessageEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + v.query.Method = "findUnique" -func (p streamEventWithPrismaMessageEqualsUniqueParam) field() builder.Field { - return p.data + v.query.Model = "User" + v.query.Outputs = userOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v } -func (p streamEventWithPrismaMessageEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userFindUnique) With(params ...UserRelationWith) userFindUnique { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } + + return r } -func (p streamEventWithPrismaMessageEqualsUniqueParam) streamEventModel() {} -func (p streamEventWithPrismaMessageEqualsUniqueParam) messageField() {} - -func (streamEventWithPrismaMessageEqualsUniqueParam) unique() {} -func (streamEventWithPrismaMessageEqualsUniqueParam) equals() {} +func (r userFindUnique) Select(params ...userPrismaFields) userFindUnique { + var outputs []builder.Output -type StreamEventWithPrismaMetadataEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - streamEventModel() - metadataField() -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -type StreamEventWithPrismaMetadataSetParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - metadataField() -} + r.query.Outputs = outputs -type streamEventWithPrismaMetadataSetParam struct { - data builder.Field - query builder.Query + return r } -func (p streamEventWithPrismaMetadataSetParam) field() builder.Field { - return p.data -} +func (r userFindUnique) Omit(params ...userPrismaFields) userFindUnique { + var outputs []builder.Output -func (p streamEventWithPrismaMetadataSetParam) getQuery() builder.Query { - return p.query -} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (p streamEventWithPrismaMetadataSetParam) streamEventModel() {} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p streamEventWithPrismaMetadataSetParam) metadataField() {} + r.query.Outputs = outputs -type StreamEventWithPrismaMetadataWhereParam interface { - field() builder.Field - getQuery() builder.Query - streamEventModel() - metadataField() + return r } -type streamEventWithPrismaMetadataEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userFindUnique) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p streamEventWithPrismaMetadataEqualsParam) field() builder.Field { - return p.data -} + if v == nil { + return nil, ErrNotFound + } -func (p streamEventWithPrismaMetadataEqualsParam) getQuery() builder.Query { - return p.query + return v, nil } -func (p streamEventWithPrismaMetadataEqualsParam) streamEventModel() {} - -func (p streamEventWithPrismaMetadataEqualsParam) metadataField() {} +func (r userFindUnique) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (streamEventWithPrismaMetadataSetParam) settable() {} -func (streamEventWithPrismaMetadataEqualsParam) equals() {} + if v == nil { + return nil, ErrNotFound + } -type streamEventWithPrismaMetadataEqualsUniqueParam struct { - data builder.Field - query builder.Query + return v, nil } -func (p streamEventWithPrismaMetadataEqualsUniqueParam) field() builder.Field { - return p.data -} +func (r userFindUnique) Update(params ...UserSetParam) userUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "User" -func (p streamEventWithPrismaMetadataEqualsUniqueParam) getQuery() builder.Query { - return p.query -} + var v userUpdateUnique + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p streamEventWithPrismaMetadataEqualsUniqueParam) streamEventModel() {} -func (p streamEventWithPrismaMetadataEqualsUniqueParam) metadataField() {} + field := q.field() -func (streamEventWithPrismaMetadataEqualsUniqueParam) unique() {} -func (streamEventWithPrismaMetadataEqualsUniqueParam) equals() {} + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } -type sNSIntegrationActions struct { - // client holds the prisma client - client *PrismaClient -} + field.Value = nil + } -var sNSIntegrationOutput = []builder.Output{ - {Name: "id"}, - {Name: "createdAt"}, - {Name: "updatedAt"}, - {Name: "tenantId"}, - {Name: "topicArn"}, + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type SNSIntegrationRelationWith interface { - getQuery() builder.Query - with() - sNSIntegrationRelation() +type userUpdateUnique struct { + query builder.Query } -type SNSIntegrationWhereParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() +func (r userUpdateUnique) ExtractQuery() builder.Query { + return r.query } -type sNSIntegrationDefaultParam struct { - data builder.Field - query builder.Query -} +func (r userUpdateUnique) userModel() {} -func (p sNSIntegrationDefaultParam) field() builder.Field { - return p.data +func (r userUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p sNSIntegrationDefaultParam) getQuery() builder.Query { - return p.query +func (r userUpdateUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -func (p sNSIntegrationDefaultParam) sNSIntegrationModel() {} +func (r userFindUnique) Delete() userDeleteUnique { + var v userDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "User" -type SNSIntegrationOrderByParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() + return v } -type sNSIntegrationOrderByParam struct { - data builder.Field +type userDeleteUnique struct { query builder.Query } -func (p sNSIntegrationOrderByParam) field() builder.Field { - return p.data +func (r userDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationOrderByParam) getQuery() builder.Query { - return p.query -} +func (p userDeleteUnique) userModel() {} -func (p sNSIntegrationOrderByParam) sNSIntegrationModel() {} +func (r userDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { + var v UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -type SNSIntegrationCursorParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - isCursor() +func (r userDeleteUnique) Tx() UserUniqueTxResult { + v := newUserUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type sNSIntegrationCursorParam struct { - data builder.Field +type userFindFirst struct { query builder.Query } -func (p sNSIntegrationCursorParam) field() builder.Field { - return p.data +func (r userFindFirst) getQuery() builder.Query { + return r.query } -func (p sNSIntegrationCursorParam) isCursor() {} - -func (p sNSIntegrationCursorParam) getQuery() builder.Query { - return p.query +func (r userFindFirst) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationCursorParam) sNSIntegrationModel() {} +func (r userFindFirst) with() {} +func (r userFindFirst) userModel() {} +func (r userFindFirst) userRelation() {} -type SNSIntegrationParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - sNSIntegrationModel() -} +func (r userActions) FindFirst( + params ...UserWhereParam, +) userFindFirst { + var v userFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client -type sNSIntegrationParamUnique struct { - data builder.Field - query builder.Query -} + v.query.Operation = "query" -func (p sNSIntegrationParamUnique) sNSIntegrationModel() {} + v.query.Method = "findFirst" -func (sNSIntegrationParamUnique) unique() {} + v.query.Model = "User" + v.query.Outputs = userOutput -func (p sNSIntegrationParamUnique) field() builder.Field { - return p.data -} + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } -func (p sNSIntegrationParamUnique) getQuery() builder.Query { - return p.query -} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } -type SNSIntegrationEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - sNSIntegrationModel() + return v } -type sNSIntegrationEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userFindFirst) With(params ...UserRelationWith) userFindFirst { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (p sNSIntegrationEqualsParam) sNSIntegrationModel() {} + return r +} -func (sNSIntegrationEqualsParam) equals() {} +func (r userFindFirst) Select(params ...userPrismaFields) userFindFirst { + var outputs []builder.Output -func (p sNSIntegrationEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p sNSIntegrationEqualsParam) getQuery() builder.Query { - return p.query -} + r.query.Outputs = outputs -type SNSIntegrationEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - sNSIntegrationModel() + return r } -type sNSIntegrationEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (r userFindFirst) Omit(params ...userPrismaFields) userFindFirst { + var outputs []builder.Output -func (p sNSIntegrationEqualsUniqueParam) sNSIntegrationModel() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (sNSIntegrationEqualsUniqueParam) unique() {} -func (sNSIntegrationEqualsUniqueParam) equals() {} + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p sNSIntegrationEqualsUniqueParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p sNSIntegrationEqualsUniqueParam) getQuery() builder.Query { - return p.query + return r } -type SNSIntegrationSetParam interface { - field() builder.Field - settable() - sNSIntegrationModel() -} +func (r userFindFirst) OrderBy(params ...UserOrderByParam) userFindFirst { + var fields []builder.Field -type sNSIntegrationSetParam struct { - data builder.Field -} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (sNSIntegrationSetParam) settable() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -func (p sNSIntegrationSetParam) field() builder.Field { - return p.data + return r } -func (p sNSIntegrationSetParam) sNSIntegrationModel() {} - -type SNSIntegrationWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - sNSIntegrationModel() - idField() +func (r userFindFirst) Skip(count int) userFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -type SNSIntegrationWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - idField() +func (r userFindFirst) Take(count int) userFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -type sNSIntegrationWithPrismaIDSetParam struct { - data builder.Field - query builder.Query +func (r userFindFirst) Cursor(cursor UserCursorParam) userFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p sNSIntegrationWithPrismaIDSetParam) field() builder.Field { - return p.data -} +func (r userFindFirst) Exec(ctx context.Context) ( + *UserModel, + error, +) { + var v *UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p sNSIntegrationWithPrismaIDSetParam) getQuery() builder.Query { - return p.query + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -func (p sNSIntegrationWithPrismaIDSetParam) sNSIntegrationModel() {} +func (r userFindFirst) ExecInner(ctx context.Context) ( + *InnerUser, + error, +) { + var v *InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p sNSIntegrationWithPrismaIDSetParam) idField() {} + if v == nil { + return nil, ErrNotFound + } -type SNSIntegrationWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - idField() + return v, nil } -type sNSIntegrationWithPrismaIDEqualsParam struct { - data builder.Field +type userFindMany struct { query builder.Query } -func (p sNSIntegrationWithPrismaIDEqualsParam) field() builder.Field { - return p.data +func (r userFindMany) getQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaIDEqualsParam) getQuery() builder.Query { - return p.query +func (r userFindMany) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaIDEqualsParam) sNSIntegrationModel() {} - -func (p sNSIntegrationWithPrismaIDEqualsParam) idField() {} - -func (sNSIntegrationWithPrismaIDSetParam) settable() {} -func (sNSIntegrationWithPrismaIDEqualsParam) equals() {} +func (r userFindMany) with() {} +func (r userFindMany) userModel() {} +func (r userFindMany) userRelation() {} -type sNSIntegrationWithPrismaIDEqualsUniqueParam struct { - data builder.Field - query builder.Query -} +func (r userActions) FindMany( + params ...UserWhereParam, +) userFindMany { + var v userFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client -func (p sNSIntegrationWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data -} + v.query.Operation = "query" -func (p sNSIntegrationWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query -} + v.query.Method = "findMany" -func (p sNSIntegrationWithPrismaIDEqualsUniqueParam) sNSIntegrationModel() {} -func (p sNSIntegrationWithPrismaIDEqualsUniqueParam) idField() {} + v.query.Model = "User" + v.query.Outputs = userOutput -func (sNSIntegrationWithPrismaIDEqualsUniqueParam) unique() {} -func (sNSIntegrationWithPrismaIDEqualsUniqueParam) equals() {} + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } -type SNSIntegrationWithPrismaCreatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - sNSIntegrationModel() - createdAtField() -} + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } -type SNSIntegrationWithPrismaCreatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - createdAtField() + return v } -type sNSIntegrationWithPrismaCreatedAtSetParam struct { - data builder.Field - query builder.Query -} +func (r userFindMany) With(params ...UserRelationWith) userFindMany { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (p sNSIntegrationWithPrismaCreatedAtSetParam) field() builder.Field { - return p.data + return r } -func (p sNSIntegrationWithPrismaCreatedAtSetParam) getQuery() builder.Query { - return p.query -} +func (r userFindMany) Select(params ...userPrismaFields) userFindMany { + var outputs []builder.Output -func (p sNSIntegrationWithPrismaCreatedAtSetParam) sNSIntegrationModel() {} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p sNSIntegrationWithPrismaCreatedAtSetParam) createdAtField() {} + r.query.Outputs = outputs -type SNSIntegrationWithPrismaCreatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - createdAtField() + return r } -type sNSIntegrationWithPrismaCreatedAtEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userFindMany) Omit(params ...userPrismaFields) userFindMany { + var outputs []builder.Output -func (p sNSIntegrationWithPrismaCreatedAtEqualsParam) field() builder.Field { - return p.data -} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (p sNSIntegrationWithPrismaCreatedAtEqualsParam) getQuery() builder.Query { - return p.query + for _, output := range userOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } + + r.query.Outputs = outputs + + return r } -func (p sNSIntegrationWithPrismaCreatedAtEqualsParam) sNSIntegrationModel() {} +func (r userFindMany) OrderBy(params ...UserOrderByParam) userFindMany { + var fields []builder.Field -func (p sNSIntegrationWithPrismaCreatedAtEqualsParam) createdAtField() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (sNSIntegrationWithPrismaCreatedAtSetParam) settable() {} -func (sNSIntegrationWithPrismaCreatedAtEqualsParam) equals() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -type sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query + return r } -func (p sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) field() builder.Field { - return p.data +func (r userFindMany) Skip(count int) userFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userFindMany) Take(count int) userFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) sNSIntegrationModel() {} -func (p sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) createdAtField() {} +func (r userFindMany) Cursor(cursor UserCursorParam) userFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) unique() {} -func (sNSIntegrationWithPrismaCreatedAtEqualsUniqueParam) equals() {} +func (r userFindMany) Exec(ctx context.Context) ( + []UserModel, + error, +) { + var v []UserModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type SNSIntegrationWithPrismaUpdatedAtEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - sNSIntegrationModel() - updatedAtField() + return v, nil } -type SNSIntegrationWithPrismaUpdatedAtSetParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - updatedAtField() -} +func (r userFindMany) ExecInner(ctx context.Context) ( + []InnerUser, + error, +) { + var v []InnerUser + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type sNSIntegrationWithPrismaUpdatedAtSetParam struct { - data builder.Field - query builder.Query + return v, nil } -func (p sNSIntegrationWithPrismaUpdatedAtSetParam) field() builder.Field { - return p.data -} +func (r userFindMany) Update(params ...UserSetParam) userUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "User" -func (p sNSIntegrationWithPrismaUpdatedAtSetParam) getQuery() builder.Query { - return p.query -} + r.query.Outputs = countOutput -func (p sNSIntegrationWithPrismaUpdatedAtSetParam) sNSIntegrationModel() {} + var v userUpdateMany + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p sNSIntegrationWithPrismaUpdatedAtSetParam) updatedAtField() {} + field := q.field() -type SNSIntegrationWithPrismaUpdatedAtWhereParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - updatedAtField() + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type sNSIntegrationWithPrismaUpdatedAtEqualsParam struct { - data builder.Field +type userUpdateMany struct { query builder.Query } -func (p sNSIntegrationWithPrismaUpdatedAtEqualsParam) field() builder.Field { - return p.data +func (r userUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaUpdatedAtEqualsParam) getQuery() builder.Query { - return p.query +func (r userUpdateMany) userModel() {} + +func (r userUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p sNSIntegrationWithPrismaUpdatedAtEqualsParam) sNSIntegrationModel() {} +func (r userUpdateMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (p sNSIntegrationWithPrismaUpdatedAtEqualsParam) updatedAtField() {} +func (r userFindMany) Delete() userDeleteMany { + var v userDeleteMany + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteMany" + v.query.Model = "User" -func (sNSIntegrationWithPrismaUpdatedAtSetParam) settable() {} -func (sNSIntegrationWithPrismaUpdatedAtEqualsParam) equals() {} + v.query.Outputs = countOutput -type sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam struct { - data builder.Field - query builder.Query + return v } -func (p sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) field() builder.Field { - return p.data +type userDeleteMany struct { + query builder.Query } -func (p sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) sNSIntegrationModel() {} -func (p sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) updatedAtField() {} - -func (sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) unique() {} -func (sNSIntegrationWithPrismaUpdatedAtEqualsUniqueParam) equals() {} +func (p userDeleteMany) userModel() {} -type SNSIntegrationWithPrismaTenantEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - sNSIntegrationModel() - tenantField() +func (r userDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type SNSIntegrationWithPrismaTenantSetParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - tenantField() +func (r userDeleteMany) Tx() UserManyTxResult { + v := newUserManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type sNSIntegrationWithPrismaTenantSetParam struct { - data builder.Field +type userOAuthToUserFindUnique struct { query builder.Query } -func (p sNSIntegrationWithPrismaTenantSetParam) field() builder.Field { - return p.data +func (r userOAuthToUserFindUnique) getQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaTenantSetParam) getQuery() builder.Query { - return p.query +func (r userOAuthToUserFindUnique) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaTenantSetParam) sNSIntegrationModel() {} +func (r userOAuthToUserFindUnique) with() {} +func (r userOAuthToUserFindUnique) userOAuthModel() {} +func (r userOAuthToUserFindUnique) userOAuthRelation() {} -func (p sNSIntegrationWithPrismaTenantSetParam) tenantField() {} +func (r userOAuthToUserFindUnique) With(params ...UserRelationWith) userOAuthToUserFindUnique { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type SNSIntegrationWithPrismaTenantWhereParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - tenantField() + return r } -type sNSIntegrationWithPrismaTenantEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userOAuthToUserFindUnique) Select(params ...userOAuthPrismaFields) userOAuthToUserFindUnique { + var outputs []builder.Output -func (p sNSIntegrationWithPrismaTenantEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p sNSIntegrationWithPrismaTenantEqualsParam) getQuery() builder.Query { - return p.query -} + r.query.Outputs = outputs -func (p sNSIntegrationWithPrismaTenantEqualsParam) sNSIntegrationModel() {} + return r +} -func (p sNSIntegrationWithPrismaTenantEqualsParam) tenantField() {} +func (r userOAuthToUserFindUnique) Omit(params ...userOAuthPrismaFields) userOAuthToUserFindUnique { + var outputs []builder.Output -func (sNSIntegrationWithPrismaTenantSetParam) settable() {} -func (sNSIntegrationWithPrismaTenantEqualsParam) equals() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -type sNSIntegrationWithPrismaTenantEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + for _, output := range userOAuthOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p sNSIntegrationWithPrismaTenantEqualsUniqueParam) field() builder.Field { - return p.data -} + r.query.Outputs = outputs -func (p sNSIntegrationWithPrismaTenantEqualsUniqueParam) getQuery() builder.Query { - return p.query + return r } -func (p sNSIntegrationWithPrismaTenantEqualsUniqueParam) sNSIntegrationModel() {} -func (p sNSIntegrationWithPrismaTenantEqualsUniqueParam) tenantField() {} +func (r userOAuthToUserFindUnique) Exec(ctx context.Context) ( + *UserOAuthModel, + error, +) { + var v *UserOAuthModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (sNSIntegrationWithPrismaTenantEqualsUniqueParam) unique() {} -func (sNSIntegrationWithPrismaTenantEqualsUniqueParam) equals() {} + if v == nil { + return nil, ErrNotFound + } -type SNSIntegrationWithPrismaTenantIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - sNSIntegrationModel() - tenantIDField() + return v, nil } -type SNSIntegrationWithPrismaTenantIDSetParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - tenantIDField() -} +func (r userOAuthToUserFindUnique) ExecInner(ctx context.Context) ( + *InnerUserOAuth, + error, +) { + var v *InnerUserOAuth + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type sNSIntegrationWithPrismaTenantIDSetParam struct { - data builder.Field - query builder.Query -} + if v == nil { + return nil, ErrNotFound + } -func (p sNSIntegrationWithPrismaTenantIDSetParam) field() builder.Field { - return p.data + return v, nil } -func (p sNSIntegrationWithPrismaTenantIDSetParam) getQuery() builder.Query { - return p.query -} +func (r userOAuthToUserFindUnique) Update(params ...UserOAuthSetParam) userOAuthToUserUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "UserOAuth" -func (p sNSIntegrationWithPrismaTenantIDSetParam) sNSIntegrationModel() {} + var v userOAuthToUserUpdateUnique + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p sNSIntegrationWithPrismaTenantIDSetParam) tenantIDField() {} + field := q.field() -type SNSIntegrationWithPrismaTenantIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - tenantIDField() + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type sNSIntegrationWithPrismaTenantIDEqualsParam struct { - data builder.Field +type userOAuthToUserUpdateUnique struct { query builder.Query } -func (p sNSIntegrationWithPrismaTenantIDEqualsParam) field() builder.Field { - return p.data +func (r userOAuthToUserUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaTenantIDEqualsParam) getQuery() builder.Query { - return p.query -} +func (r userOAuthToUserUpdateUnique) userOAuthModel() {} -func (p sNSIntegrationWithPrismaTenantIDEqualsParam) sNSIntegrationModel() {} +func (r userOAuthToUserUpdateUnique) Exec(ctx context.Context) (*UserOAuthModel, error) { + var v UserOAuthModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -func (p sNSIntegrationWithPrismaTenantIDEqualsParam) tenantIDField() {} +func (r userOAuthToUserUpdateUnique) Tx() UserOAuthUniqueTxResult { + v := newUserOAuthUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (sNSIntegrationWithPrismaTenantIDSetParam) settable() {} -func (sNSIntegrationWithPrismaTenantIDEqualsParam) equals() {} +func (r userOAuthToUserFindUnique) Delete() userOAuthToUserDeleteUnique { + var v userOAuthToUserDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "UserOAuth" -type sNSIntegrationWithPrismaTenantIDEqualsUniqueParam struct { - data builder.Field - query builder.Query + return v } -func (p sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) field() builder.Field { - return p.data +type userOAuthToUserDeleteUnique struct { + query builder.Query } -func (p sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userOAuthToUserDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) sNSIntegrationModel() {} -func (p sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) tenantIDField() {} - -func (sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) unique() {} -func (sNSIntegrationWithPrismaTenantIDEqualsUniqueParam) equals() {} +func (p userOAuthToUserDeleteUnique) userOAuthModel() {} -type SNSIntegrationWithPrismaTopicArnEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - sNSIntegrationModel() - topicArnField() +func (r userOAuthToUserDeleteUnique) Exec(ctx context.Context) (*UserOAuthModel, error) { + var v UserOAuthModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -type SNSIntegrationWithPrismaTopicArnSetParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - topicArnField() +func (r userOAuthToUserDeleteUnique) Tx() UserOAuthUniqueTxResult { + v := newUserOAuthUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type sNSIntegrationWithPrismaTopicArnSetParam struct { - data builder.Field +type userOAuthToUserFindFirst struct { query builder.Query } -func (p sNSIntegrationWithPrismaTopicArnSetParam) field() builder.Field { - return p.data +func (r userOAuthToUserFindFirst) getQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaTopicArnSetParam) getQuery() builder.Query { - return p.query +func (r userOAuthToUserFindFirst) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationWithPrismaTopicArnSetParam) sNSIntegrationModel() {} +func (r userOAuthToUserFindFirst) with() {} +func (r userOAuthToUserFindFirst) userOAuthModel() {} +func (r userOAuthToUserFindFirst) userOAuthRelation() {} -func (p sNSIntegrationWithPrismaTopicArnSetParam) topicArnField() {} +func (r userOAuthToUserFindFirst) With(params ...UserRelationWith) userOAuthToUserFindFirst { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -type SNSIntegrationWithPrismaTopicArnWhereParam interface { - field() builder.Field - getQuery() builder.Query - sNSIntegrationModel() - topicArnField() + return r } -type sNSIntegrationWithPrismaTopicArnEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userOAuthToUserFindFirst) Select(params ...userOAuthPrismaFields) userOAuthToUserFindFirst { + var outputs []builder.Output -func (p sNSIntegrationWithPrismaTopicArnEqualsParam) field() builder.Field { - return p.data -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p sNSIntegrationWithPrismaTopicArnEqualsParam) getQuery() builder.Query { - return p.query + r.query.Outputs = outputs + + return r } -func (p sNSIntegrationWithPrismaTopicArnEqualsParam) sNSIntegrationModel() {} +func (r userOAuthToUserFindFirst) Omit(params ...userOAuthPrismaFields) userOAuthToUserFindFirst { + var outputs []builder.Output -func (p sNSIntegrationWithPrismaTopicArnEqualsParam) topicArnField() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (sNSIntegrationWithPrismaTopicArnSetParam) settable() {} -func (sNSIntegrationWithPrismaTopicArnEqualsParam) equals() {} + for _, output := range userOAuthOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -type sNSIntegrationWithPrismaTopicArnEqualsUniqueParam struct { - data builder.Field - query builder.Query -} + r.query.Outputs = outputs -func (p sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) field() builder.Field { - return p.data + return r } -func (p sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (r userOAuthToUserFindFirst) OrderBy(params ...UserOrderByParam) userOAuthToUserFindFirst { + var fields []builder.Field -func (p sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) sNSIntegrationModel() {} -func (p sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) topicArnField() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) unique() {} -func (sNSIntegrationWithPrismaTopicArnEqualsUniqueParam) equals() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -type securityCheckIdentActions struct { - // client holds the prisma client - client *PrismaClient + return r } -var securityCheckIdentOutput = []builder.Output{ - {Name: "id"}, +func (r userOAuthToUserFindFirst) Skip(count int) userOAuthToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -type SecurityCheckIdentRelationWith interface { - getQuery() builder.Query - with() - securityCheckIdentRelation() +func (r userOAuthToUserFindFirst) Take(count int) userOAuthToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -type SecurityCheckIdentWhereParam interface { - field() builder.Field - getQuery() builder.Query - securityCheckIdentModel() +func (r userOAuthToUserFindFirst) Cursor(cursor UserOAuthCursorParam) userOAuthToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -type securityCheckIdentDefaultParam struct { - data builder.Field - query builder.Query -} +func (r userOAuthToUserFindFirst) Exec(ctx context.Context) ( + *UserOAuthModel, + error, +) { + var v *UserOAuthModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p securityCheckIdentDefaultParam) field() builder.Field { - return p.data -} + if v == nil { + return nil, ErrNotFound + } -func (p securityCheckIdentDefaultParam) getQuery() builder.Query { - return p.query + return v, nil } -func (p securityCheckIdentDefaultParam) securityCheckIdentModel() {} +func (r userOAuthToUserFindFirst) ExecInner(ctx context.Context) ( + *InnerUserOAuth, + error, +) { + var v *InnerUserOAuth + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type SecurityCheckIdentOrderByParam interface { - field() builder.Field - getQuery() builder.Query - securityCheckIdentModel() + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -type securityCheckIdentOrderByParam struct { - data builder.Field +type userOAuthToUserFindMany struct { query builder.Query } -func (p securityCheckIdentOrderByParam) field() builder.Field { - return p.data +func (r userOAuthToUserFindMany) getQuery() builder.Query { + return r.query } -func (p securityCheckIdentOrderByParam) getQuery() builder.Query { - return p.query +func (r userOAuthToUserFindMany) ExtractQuery() builder.Query { + return r.query } -func (p securityCheckIdentOrderByParam) securityCheckIdentModel() {} - -type SecurityCheckIdentCursorParam interface { - field() builder.Field - getQuery() builder.Query - securityCheckIdentModel() - isCursor() -} +func (r userOAuthToUserFindMany) with() {} +func (r userOAuthToUserFindMany) userOAuthModel() {} +func (r userOAuthToUserFindMany) userOAuthRelation() {} -type securityCheckIdentCursorParam struct { - data builder.Field - query builder.Query -} +func (r userOAuthToUserFindMany) With(params ...UserRelationWith) userOAuthToUserFindMany { + for _, q := range params { + query := q.getQuery() + r.query.Outputs = append(r.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } -func (p securityCheckIdentCursorParam) field() builder.Field { - return p.data + return r } -func (p securityCheckIdentCursorParam) isCursor() {} - -func (p securityCheckIdentCursorParam) getQuery() builder.Query { - return p.query -} +func (r userOAuthToUserFindMany) Select(params ...userOAuthPrismaFields) userOAuthToUserFindMany { + var outputs []builder.Output -func (p securityCheckIdentCursorParam) securityCheckIdentModel() {} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -type SecurityCheckIdentParamUnique interface { - field() builder.Field - getQuery() builder.Query - unique() - securityCheckIdentModel() -} + r.query.Outputs = outputs -type securityCheckIdentParamUnique struct { - data builder.Field - query builder.Query + return r } -func (p securityCheckIdentParamUnique) securityCheckIdentModel() {} +func (r userOAuthToUserFindMany) Omit(params ...userOAuthPrismaFields) userOAuthToUserFindMany { + var outputs []builder.Output -func (securityCheckIdentParamUnique) unique() {} + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } -func (p securityCheckIdentParamUnique) field() builder.Field { - return p.data -} + for _, output := range userOAuthOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } -func (p securityCheckIdentParamUnique) getQuery() builder.Query { - return p.query -} + r.query.Outputs = outputs -type SecurityCheckIdentEqualsWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - securityCheckIdentModel() + return r } -type securityCheckIdentEqualsParam struct { - data builder.Field - query builder.Query -} +func (r userOAuthToUserFindMany) OrderBy(params ...UserOrderByParam) userOAuthToUserFindMany { + var fields []builder.Field -func (p securityCheckIdentEqualsParam) securityCheckIdentModel() {} + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } -func (securityCheckIdentEqualsParam) equals() {} + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) -func (p securityCheckIdentEqualsParam) field() builder.Field { - return p.data + return r } -func (p securityCheckIdentEqualsParam) getQuery() builder.Query { - return p.query +func (r userOAuthToUserFindMany) Skip(count int) userOAuthToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -type SecurityCheckIdentEqualsUniqueWhereParam interface { - field() builder.Field - getQuery() builder.Query - equals() - unique() - securityCheckIdentModel() +func (r userOAuthToUserFindMany) Take(count int) userOAuthToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -type securityCheckIdentEqualsUniqueParam struct { - data builder.Field - query builder.Query +func (r userOAuthToUserFindMany) Cursor(cursor UserOAuthCursorParam) userOAuthToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p securityCheckIdentEqualsUniqueParam) securityCheckIdentModel() {} - -func (securityCheckIdentEqualsUniqueParam) unique() {} -func (securityCheckIdentEqualsUniqueParam) equals() {} +func (r userOAuthToUserFindMany) Exec(ctx context.Context) ( + []UserOAuthModel, + error, +) { + var v []UserOAuthModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p securityCheckIdentEqualsUniqueParam) field() builder.Field { - return p.data + return v, nil } -func (p securityCheckIdentEqualsUniqueParam) getQuery() builder.Query { - return p.query -} +func (r userOAuthToUserFindMany) ExecInner(ctx context.Context) ( + []InnerUserOAuth, + error, +) { + var v []InnerUserOAuth + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -type SecurityCheckIdentSetParam interface { - field() builder.Field - settable() - securityCheckIdentModel() + return v, nil } -type securityCheckIdentSetParam struct { - data builder.Field -} +func (r userOAuthToUserFindMany) Update(params ...UserOAuthSetParam) userOAuthToUserUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "UserOAuth" -func (securityCheckIdentSetParam) settable() {} + r.query.Outputs = countOutput -func (p securityCheckIdentSetParam) field() builder.Field { - return p.data -} + var v userOAuthToUserUpdateMany + v.query = r.query + var fields []builder.Field + for _, q := range params { -func (p securityCheckIdentSetParam) securityCheckIdentModel() {} + field := q.field() -type SecurityCheckIdentWithPrismaIDEqualsSetParam interface { - field() builder.Field - getQuery() builder.Query - equals() - securityCheckIdentModel() - idField() -} + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } -type SecurityCheckIdentWithPrismaIDSetParam interface { - field() builder.Field - getQuery() builder.Query - securityCheckIdentModel() - idField() + field.Value = nil + } + + fields = append(fields, field) + } + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "data", + Fields: fields, + }) + return v } -type securityCheckIdentWithPrismaIDSetParam struct { - data builder.Field +type userOAuthToUserUpdateMany struct { query builder.Query } -func (p securityCheckIdentWithPrismaIDSetParam) field() builder.Field { - return p.data +func (r userOAuthToUserUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p securityCheckIdentWithPrismaIDSetParam) getQuery() builder.Query { - return p.query +func (r userOAuthToUserUpdateMany) userOAuthModel() {} + +func (r userOAuthToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil } -func (p securityCheckIdentWithPrismaIDSetParam) securityCheckIdentModel() {} +func (r userOAuthToUserUpdateMany) Tx() UserOAuthManyTxResult { + v := newUserOAuthManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -func (p securityCheckIdentWithPrismaIDSetParam) idField() {} +func (r userOAuthToUserFindMany) Delete() userOAuthToUserDeleteMany { + var v userOAuthToUserDeleteMany + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteMany" + v.query.Model = "UserOAuth" -type SecurityCheckIdentWithPrismaIDWhereParam interface { - field() builder.Field - getQuery() builder.Query - securityCheckIdentModel() - idField() -} + v.query.Outputs = countOutput -type securityCheckIdentWithPrismaIDEqualsParam struct { - data builder.Field - query builder.Query + return v } -func (p securityCheckIdentWithPrismaIDEqualsParam) field() builder.Field { - return p.data +type userOAuthToUserDeleteMany struct { + query builder.Query } -func (p securityCheckIdentWithPrismaIDEqualsParam) getQuery() builder.Query { - return p.query +func (r userOAuthToUserDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p securityCheckIdentWithPrismaIDEqualsParam) securityCheckIdentModel() {} +func (p userOAuthToUserDeleteMany) userOAuthModel() {} -func (p securityCheckIdentWithPrismaIDEqualsParam) idField() {} +func (r userOAuthToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} -func (securityCheckIdentWithPrismaIDSetParam) settable() {} -func (securityCheckIdentWithPrismaIDEqualsParam) equals() {} +func (r userOAuthToUserDeleteMany) Tx() UserOAuthManyTxResult { + v := newUserOAuthManyTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} -type securityCheckIdentWithPrismaIDEqualsUniqueParam struct { - data builder.Field +type userOAuthFindUnique struct { query builder.Query } -func (p securityCheckIdentWithPrismaIDEqualsUniqueParam) field() builder.Field { - return p.data +func (r userOAuthFindUnique) getQuery() builder.Query { + return r.query } -func (p securityCheckIdentWithPrismaIDEqualsUniqueParam) getQuery() builder.Query { - return p.query +func (r userOAuthFindUnique) ExtractQuery() builder.Query { + return r.query } -func (p securityCheckIdentWithPrismaIDEqualsUniqueParam) securityCheckIdentModel() {} -func (p securityCheckIdentWithPrismaIDEqualsUniqueParam) idField() {} - -func (securityCheckIdentWithPrismaIDEqualsUniqueParam) unique() {} -func (securityCheckIdentWithPrismaIDEqualsUniqueParam) equals() {} - -// --- template create.gotpl --- - -// Creates a single user. -func (r userActions) CreateOne( - _email UserWithPrismaEmailSetParam, +func (r userOAuthFindUnique) with() {} +func (r userOAuthFindUnique) userOAuthModel() {} +func (r userOAuthFindUnique) userOAuthRelation() {} - optional ...UserSetParam, -) userCreateOne { - var v userCreateOne +func (r userOAuthActions) FindUnique( + params UserOAuthEqualsUniqueWhereParam, +) userOAuthFindUnique { + var v userOAuthFindUnique v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "User" - v.query.Outputs = userOutput - - var fields []builder.Field + v.query.Operation = "query" - fields = append(fields, _email.field()) + v.query.Method = "findUnique" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Model = "UserOAuth" + v.query.Outputs = userOAuthOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), }) + return v } -func (r userCreateOne) With(params ...UserRelationWith) userCreateOne { +func (r userOAuthFindUnique) With(params ...UserOAuthRelationWith) userOAuthFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -226985,60 +251906,98 @@ func (r userCreateOne) With(params ...UserRelationWith) userCreateOne { return r } -type userCreateOne struct { - query builder.Query -} +func (r userOAuthFindUnique) Select(params ...userOAuthPrismaFields) userOAuthFindUnique { + var outputs []builder.Output -func (p userCreateOne) ExtractQuery() builder.Query { - return p.query + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } + + r.query.Outputs = outputs + + return r } -func (p userCreateOne) userModel() {} +func (r userOAuthFindUnique) Omit(params ...userOAuthPrismaFields) userOAuthFindUnique { + var outputs []builder.Output -func (r userCreateOne) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } + + for _, output := range userOAuthOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } + + r.query.Outputs = outputs + + return r +} + +func (r userOAuthFindUnique) Exec(ctx context.Context) ( + *UserOAuthModel, + error, +) { + var v *UserOAuthModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r userCreateOne) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -// Creates a single userOAuth. -func (r userOAuthActions) CreateOne( - _user UserOAuthWithPrismaUserSetParam, - _provider UserOAuthWithPrismaProviderSetParam, - _providerUserID UserOAuthWithPrismaProviderUserIDSetParam, - _accessToken UserOAuthWithPrismaAccessTokenSetParam, +func (r userOAuthFindUnique) ExecInner(ctx context.Context) ( + *InnerUserOAuth, + error, +) { + var v *InnerUserOAuth + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...UserOAuthSetParam, -) userOAuthCreateOne { - var v userOAuthCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + if v == nil { + return nil, ErrNotFound + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "UserOAuth" - v.query.Outputs = userOAuthOutput + return v, nil +} + +func (r userOAuthFindUnique) Update(params ...UserOAuthSetParam) userOAuthUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "UserOAuth" + var v userOAuthUpdateUnique + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _user.field()) - fields = append(fields, _provider.field()) - fields = append(fields, _providerUserID.field()) - fields = append(fields, _accessToken.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -227046,30 +252005,52 @@ func (r userOAuthActions) CreateOne( return v } -func (r userOAuthCreateOne) With(params ...UserOAuthRelationWith) userOAuthCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) +type userOAuthUpdateUnique struct { + query builder.Query +} + +func (r userOAuthUpdateUnique) ExtractQuery() builder.Query { + return r.query +} + +func (r userOAuthUpdateUnique) userOAuthModel() {} + +func (r userOAuthUpdateUnique) Exec(ctx context.Context) (*UserOAuthModel, error) { + var v UserOAuthModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err } + return &v, nil +} - return r +func (r userOAuthUpdateUnique) Tx() UserOAuthUniqueTxResult { + v := newUserOAuthUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v } -type userOAuthCreateOne struct { +func (r userOAuthFindUnique) Delete() userOAuthDeleteUnique { + var v userOAuthDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "UserOAuth" + + return v +} + +type userOAuthDeleteUnique struct { query builder.Query } -func (p userOAuthCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userOAuthDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p userOAuthCreateOne) userOAuthModel() {} +func (p userOAuthDeleteUnique) userOAuthModel() {} -func (r userOAuthCreateOne) Exec(ctx context.Context) (*UserOAuthModel, error) { +func (r userOAuthDeleteUnique) Exec(ctx context.Context) (*UserOAuthModel, error) { var v UserOAuthModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -227077,46 +252058,67 @@ func (r userOAuthCreateOne) Exec(ctx context.Context) (*UserOAuthModel, error) { return &v, nil } -func (r userOAuthCreateOne) Tx() UserOAuthUniqueTxResult { +func (r userOAuthDeleteUnique) Tx() UserOAuthUniqueTxResult { v := newUserOAuthUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single userPassword. -func (r userPasswordActions) CreateOne( - _hash UserPasswordWithPrismaHashSetParam, - _user UserPasswordWithPrismaUserSetParam, +type userOAuthFindFirst struct { + query builder.Query +} - optional ...UserPasswordSetParam, -) userPasswordCreateOne { - var v userPasswordCreateOne +func (r userOAuthFindFirst) getQuery() builder.Query { + return r.query +} + +func (r userOAuthFindFirst) ExtractQuery() builder.Query { + return r.query +} + +func (r userOAuthFindFirst) with() {} +func (r userOAuthFindFirst) userOAuthModel() {} +func (r userOAuthFindFirst) userOAuthRelation() {} + +func (r userOAuthActions) FindFirst( + params ...UserOAuthWhereParam, +) userOAuthFindFirst { + var v userOAuthFindFirst v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "UserPassword" - v.query.Outputs = userPasswordOutput + v.query.Operation = "query" - var fields []builder.Field + v.query.Method = "findFirst" - fields = append(fields, _hash.field()) - fields = append(fields, _user.field()) + v.query.Model = "UserOAuth" + v.query.Outputs = userOAuthOutput - for _, q := range optional { - fields = append(fields, q.field()) + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r userPasswordCreateOne) With(params ...UserPasswordRelationWith) userPasswordCreateOne { +func (r userOAuthFindFirst) With(params ...UserOAuthRelationWith) userOAuthFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -227129,62 +252131,169 @@ func (r userPasswordCreateOne) With(params ...UserPasswordRelationWith) userPass return r } -type userPasswordCreateOne struct { - query builder.Query +func (r userOAuthFindFirst) Select(params ...userOAuthPrismaFields) userOAuthFindFirst { + var outputs []builder.Output + + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } + + r.query.Outputs = outputs + + return r } -func (p userPasswordCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userOAuthFindFirst) Omit(params ...userOAuthPrismaFields) userOAuthFindFirst { + var outputs []builder.Output + + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } + + for _, output := range userOAuthOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } + + r.query.Outputs = outputs + + return r } -func (p userPasswordCreateOne) userPasswordModel() {} +func (r userOAuthFindFirst) OrderBy(params ...UserOAuthOrderByParam) userOAuthFindFirst { + var fields []builder.Field -func (r userPasswordCreateOne) Exec(ctx context.Context) (*UserPasswordModel, error) { - var v UserPasswordModel + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } + + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) + + return r +} + +func (r userOAuthFindFirst) Skip(count int) userOAuthFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r +} + +func (r userOAuthFindFirst) Take(count int) userOAuthFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r +} + +func (r userOAuthFindFirst) Cursor(cursor UserOAuthCursorParam) userOAuthFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} + +func (r userOAuthFindFirst) Exec(ctx context.Context) ( + *UserOAuthModel, + error, +) { + var v *UserOAuthModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil + + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -func (r userPasswordCreateOne) Tx() UserPasswordUniqueTxResult { - v := newUserPasswordUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v +func (r userOAuthFindFirst) ExecInner(ctx context.Context) ( + *InnerUserOAuth, + error, +) { + var v *InnerUserOAuth + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -// Creates a single userSession. -func (r userSessionActions) CreateOne( - _expiresAt UserSessionWithPrismaExpiresAtSetParam, +type userOAuthFindMany struct { + query builder.Query +} - optional ...UserSessionSetParam, -) userSessionCreateOne { - var v userSessionCreateOne +func (r userOAuthFindMany) getQuery() builder.Query { + return r.query +} + +func (r userOAuthFindMany) ExtractQuery() builder.Query { + return r.query +} + +func (r userOAuthFindMany) with() {} +func (r userOAuthFindMany) userOAuthModel() {} +func (r userOAuthFindMany) userOAuthRelation() {} + +func (r userOAuthActions) FindMany( + params ...UserOAuthWhereParam, +) userOAuthFindMany { + var v userOAuthFindMany v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "UserSession" - v.query.Outputs = userSessionOutput + v.query.Operation = "query" - var fields []builder.Field + v.query.Method = "findMany" - fields = append(fields, _expiresAt.field()) + v.query.Model = "UserOAuth" + v.query.Outputs = userOAuthOutput - for _, q := range optional { - fields = append(fields, q.field()) + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r userSessionCreateOne) With(params ...UserSessionRelationWith) userSessionCreateOne { +func (r userOAuthFindMany) With(params ...UserOAuthRelationWith) userOAuthFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -227197,60 +252306,136 @@ func (r userSessionCreateOne) With(params ...UserSessionRelationWith) userSessio return r } -type userSessionCreateOne struct { - query builder.Query +func (r userOAuthFindMany) Select(params ...userOAuthPrismaFields) userOAuthFindMany { + var outputs []builder.Output + + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } + + r.query.Outputs = outputs + + return r } -func (p userSessionCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userOAuthFindMany) Omit(params ...userOAuthPrismaFields) userOAuthFindMany { + var outputs []builder.Output + + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } + + for _, output := range userOAuthOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } + + r.query.Outputs = outputs + + return r } -func (p userSessionCreateOne) userSessionModel() {} +func (r userOAuthFindMany) OrderBy(params ...UserOAuthOrderByParam) userOAuthFindMany { + var fields []builder.Field -func (r userSessionCreateOne) Exec(ctx context.Context) (*UserSessionModel, error) { - var v UserSessionModel + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) + } + + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, + }) + + return r +} + +func (r userOAuthFindMany) Skip(count int) userOAuthFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r +} + +func (r userOAuthFindMany) Take(count int) userOAuthFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r +} + +func (r userOAuthFindMany) Cursor(cursor UserOAuthCursorParam) userOAuthFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} + +func (r userOAuthFindMany) Exec(ctx context.Context) ( + []UserOAuthModel, + error, +) { + var v []UserOAuthModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r userSessionCreateOne) Tx() UserSessionUniqueTxResult { - v := newUserSessionUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + return v, nil } -// Creates a single webhookWorker. -func (r webhookWorkerActions) CreateOne( - _name WebhookWorkerWithPrismaNameSetParam, - _secret WebhookWorkerWithPrismaSecretSetParam, - _url WebhookWorkerWithPrismaURLSetParam, - _tenant WebhookWorkerWithPrismaTenantSetParam, +func (r userOAuthFindMany) ExecInner(ctx context.Context) ( + []InnerUserOAuth, + error, +) { + var v []InnerUserOAuth + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...WebhookWorkerSetParam, -) webhookWorkerCreateOne { - var v webhookWorkerCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + return v, nil +} - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WebhookWorker" - v.query.Outputs = webhookWorkerOutput +func (r userOAuthFindMany) Update(params ...UserOAuthSetParam) userOAuthUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "UserOAuth" + + r.query.Outputs = countOutput + var v userOAuthUpdateMany + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _name.field()) - fields = append(fields, _secret.field()) - fields = append(fields, _url.field()) - fields = append(fields, _tenant.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -227258,145 +252443,85 @@ func (r webhookWorkerActions) CreateOne( return v } -func (r webhookWorkerCreateOne) With(params ...WebhookWorkerRelationWith) webhookWorkerCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type webhookWorkerCreateOne struct { +type userOAuthUpdateMany struct { query builder.Query } -func (p webhookWorkerCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userOAuthUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p webhookWorkerCreateOne) webhookWorkerModel() {} +func (r userOAuthUpdateMany) userOAuthModel() {} -func (r webhookWorkerCreateOne) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r userOAuthUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerCreateOne) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r userOAuthUpdateMany) Tx() UserOAuthManyTxResult { + v := newUserOAuthManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single webhookWorkerWorkflow. -func (r webhookWorkerWorkflowActions) CreateOne( - _webhookWorker WebhookWorkerWorkflowWithPrismaWebhookWorkerSetParam, - _workflow WebhookWorkerWorkflowWithPrismaWorkflowSetParam, - - optional ...WebhookWorkerWorkflowSetParam, -) webhookWorkerWorkflowCreateOne { - var v webhookWorkerWorkflowCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r userOAuthFindMany) Delete() userOAuthDeleteMany { + var v userOAuthDeleteMany + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WebhookWorkerWorkflow" - v.query.Outputs = webhookWorkerWorkflowOutput - - var fields []builder.Field - - fields = append(fields, _webhookWorker.field()) - fields = append(fields, _workflow.field()) + v.query.Method = "deleteMany" + v.query.Model = "UserOAuth" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Outputs = countOutput - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r webhookWorkerWorkflowCreateOne) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerWorkflowCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type webhookWorkerWorkflowCreateOne struct { +type userOAuthDeleteMany struct { query builder.Query } -func (p webhookWorkerWorkflowCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userOAuthDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p webhookWorkerWorkflowCreateOne) webhookWorkerWorkflowModel() {} +func (p userOAuthDeleteMany) userOAuthModel() {} -func (r webhookWorkerWorkflowCreateOne) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { - var v WebhookWorkerWorkflowModel +func (r userOAuthDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerWorkflowCreateOne) Tx() WebhookWorkerWorkflowUniqueTxResult { - v := newWebhookWorkerWorkflowUniqueTxResult() +func (r userOAuthDeleteMany) Tx() UserOAuthManyTxResult { + v := newUserOAuthManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single controllerPartition. -func (r controllerPartitionActions) CreateOne( - _id ControllerPartitionWithPrismaIDSetParam, - - optional ...ControllerPartitionSetParam, -) controllerPartitionCreateOne { - var v controllerPartitionCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "ControllerPartition" - v.query.Outputs = controllerPartitionOutput - - var fields []builder.Field - - fields = append(fields, _id.field()) +type userPasswordToUserFindUnique struct { + query builder.Query +} - for _, q := range optional { - fields = append(fields, q.field()) - } +func (r userPasswordToUserFindUnique) getQuery() builder.Query { + return r.query +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) - return v +func (r userPasswordToUserFindUnique) ExtractQuery() builder.Query { + return r.query } -func (r controllerPartitionCreateOne) With(params ...ControllerPartitionRelationWith) controllerPartitionCreateOne { +func (r userPasswordToUserFindUnique) with() {} +func (r userPasswordToUserFindUnique) userPasswordModel() {} +func (r userPasswordToUserFindUnique) userPasswordRelation() {} + +func (r userPasswordToUserFindUnique) With(params ...UserRelationWith) userPasswordToUserFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -227409,54 +252534,98 @@ func (r controllerPartitionCreateOne) With(params ...ControllerPartitionRelation return r } -type controllerPartitionCreateOne struct { - query builder.Query -} +func (r userPasswordToUserFindUnique) Select(params ...userPasswordPrismaFields) userPasswordToUserFindUnique { + var outputs []builder.Output -func (p controllerPartitionCreateOne) ExtractQuery() builder.Query { - return p.query + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } + + r.query.Outputs = outputs + + return r } -func (p controllerPartitionCreateOne) controllerPartitionModel() {} +func (r userPasswordToUserFindUnique) Omit(params ...userPasswordPrismaFields) userPasswordToUserFindUnique { + var outputs []builder.Output -func (r controllerPartitionCreateOne) Exec(ctx context.Context) (*ControllerPartitionModel, error) { - var v ControllerPartitionModel + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } + + for _, output := range userPasswordOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } + + r.query.Outputs = outputs + + return r +} + +func (r userPasswordToUserFindUnique) Exec(ctx context.Context) ( + *UserPasswordModel, + error, +) { + var v *UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r controllerPartitionCreateOne) Tx() ControllerPartitionUniqueTxResult { - v := newControllerPartitionUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -// Creates a single tenantWorkerPartition. -func (r tenantWorkerPartitionActions) CreateOne( - _id TenantWorkerPartitionWithPrismaIDSetParam, +func (r userPasswordToUserFindUnique) ExecInner(ctx context.Context) ( + *InnerUserPassword, + error, +) { + var v *InnerUserPassword + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...TenantWorkerPartitionSetParam, -) tenantWorkerPartitionCreateOne { - var v tenantWorkerPartitionCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + if v == nil { + return nil, ErrNotFound + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "TenantWorkerPartition" - v.query.Outputs = tenantWorkerPartitionOutput + return v, nil +} + +func (r userPasswordToUserFindUnique) Update(params ...UserPasswordSetParam) userPasswordToUserUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "UserPassword" + var v userPasswordToUserUpdateUnique + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _id.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -227464,149 +252633,83 @@ func (r tenantWorkerPartitionActions) CreateOne( return v } -func (r tenantWorkerPartitionCreateOne) With(params ...TenantWorkerPartitionRelationWith) tenantWorkerPartitionCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type tenantWorkerPartitionCreateOne struct { +type userPasswordToUserUpdateUnique struct { query builder.Query } -func (p tenantWorkerPartitionCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordToUserUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p tenantWorkerPartitionCreateOne) tenantWorkerPartitionModel() {} +func (r userPasswordToUserUpdateUnique) userPasswordModel() {} -func (r tenantWorkerPartitionCreateOne) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { - var v TenantWorkerPartitionModel +func (r userPasswordToUserUpdateUnique) Exec(ctx context.Context) (*UserPasswordModel, error) { + var v UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantWorkerPartitionCreateOne) Tx() TenantWorkerPartitionUniqueTxResult { - v := newTenantWorkerPartitionUniqueTxResult() +func (r userPasswordToUserUpdateUnique) Tx() UserPasswordUniqueTxResult { + v := newUserPasswordUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single tenant. -func (r tenantActions) CreateOne( - _name TenantWithPrismaNameSetParam, - _slug TenantWithPrismaSlugSetParam, - - optional ...TenantSetParam, -) tenantCreateOne { - var v tenantCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r userPasswordToUserFindUnique) Delete() userPasswordToUserDeleteUnique { + var v userPasswordToUserDeleteUnique + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Tenant" - v.query.Outputs = tenantOutput - - var fields []builder.Field - - fields = append(fields, _name.field()) - fields = append(fields, _slug.field()) - - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Method = "deleteOne" + v.query.Model = "UserPassword" - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r tenantCreateOne) With(params ...TenantRelationWith) tenantCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type tenantCreateOne struct { +type userPasswordToUserDeleteUnique struct { query builder.Query } -func (p tenantCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordToUserDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p tenantCreateOne) tenantModel() {} +func (p userPasswordToUserDeleteUnique) userPasswordModel() {} -func (r tenantCreateOne) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r userPasswordToUserDeleteUnique) Exec(ctx context.Context) (*UserPasswordModel, error) { + var v UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantCreateOne) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r userPasswordToUserDeleteUnique) Tx() UserPasswordUniqueTxResult { + v := newUserPasswordUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single tenantResourceLimit. -func (r tenantResourceLimitActions) CreateOne( - _resource TenantResourceLimitWithPrismaResourceSetParam, - _tenant TenantResourceLimitWithPrismaTenantSetParam, - _limitValue TenantResourceLimitWithPrismaLimitValueSetParam, - - optional ...TenantResourceLimitSetParam, -) tenantResourceLimitCreateOne { - var v tenantResourceLimitCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "TenantResourceLimit" - v.query.Outputs = tenantResourceLimitOutput - - var fields []builder.Field - - fields = append(fields, _resource.field()) - fields = append(fields, _tenant.field()) - fields = append(fields, _limitValue.field()) +type userPasswordToUserFindFirst struct { + query builder.Query +} - for _, q := range optional { - fields = append(fields, q.field()) - } +func (r userPasswordToUserFindFirst) getQuery() builder.Query { + return r.query +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) - return v +func (r userPasswordToUserFindFirst) ExtractQuery() builder.Query { + return r.query } -func (r tenantResourceLimitCreateOne) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitCreateOne { +func (r userPasswordToUserFindFirst) with() {} +func (r userPasswordToUserFindFirst) userPasswordModel() {} +func (r userPasswordToUserFindFirst) userPasswordRelation() {} + +func (r userPasswordToUserFindFirst) With(params ...UserRelationWith) userPasswordToUserFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -227619,140 +252722,132 @@ func (r tenantResourceLimitCreateOne) With(params ...TenantResourceLimitRelation return r } -type tenantResourceLimitCreateOne struct { - query builder.Query -} +func (r userPasswordToUserFindFirst) Select(params ...userPasswordPrismaFields) userPasswordToUserFindFirst { + var outputs []builder.Output -func (p tenantResourceLimitCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p tenantResourceLimitCreateOne) tenantResourceLimitModel() {} + r.query.Outputs = outputs -func (r tenantResourceLimitCreateOne) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { - var v TenantResourceLimitModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r tenantResourceLimitCreateOne) Tx() TenantResourceLimitUniqueTxResult { - v := newTenantResourceLimitUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r userPasswordToUserFindFirst) Omit(params ...userPasswordPrismaFields) userPasswordToUserFindFirst { + var outputs []builder.Output -// Creates a single tenantResourceLimitAlert. -func (r tenantResourceLimitAlertActions) CreateOne( - _resourceLimit TenantResourceLimitAlertWithPrismaResourceLimitSetParam, - _tenant TenantResourceLimitAlertWithPrismaTenantSetParam, - _resource TenantResourceLimitAlertWithPrismaResourceSetParam, - _alertType TenantResourceLimitAlertWithPrismaAlertTypeSetParam, - _value TenantResourceLimitAlertWithPrismaValueSetParam, - _limit TenantResourceLimitAlertWithPrismaLimitSetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...TenantResourceLimitAlertSetParam, -) tenantResourceLimitAlertCreateOne { - var v tenantResourceLimitAlertCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range userPasswordOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "TenantResourceLimitAlert" - v.query.Outputs = tenantResourceLimitAlertOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _resourceLimit.field()) - fields = append(fields, _tenant.field()) - fields = append(fields, _resource.field()) - fields = append(fields, _alertType.field()) - fields = append(fields, _value.field()) - fields = append(fields, _limit.field()) +func (r userPasswordToUserFindFirst) OrderBy(params ...UserOrderByParam) userPasswordToUserFindFirst { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} - -func (r tenantResourceLimitAlertCreateOne) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitAlertCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } return r } -type tenantResourceLimitAlertCreateOne struct { - query builder.Query +func (r userPasswordToUserFindFirst) Skip(count int) userPasswordToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p tenantResourceLimitAlertCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordToUserFindFirst) Take(count int) userPasswordToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p tenantResourceLimitAlertCreateOne) tenantResourceLimitAlertModel() {} +func (r userPasswordToUserFindFirst) Cursor(cursor UserPasswordCursorParam) userPasswordToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (r tenantResourceLimitAlertCreateOne) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { - var v TenantResourceLimitAlertModel +func (r userPasswordToUserFindFirst) Exec(ctx context.Context) ( + *UserPasswordModel, + error, +) { + var v *UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r tenantResourceLimitAlertCreateOne) Tx() TenantResourceLimitAlertUniqueTxResult { - v := newTenantResourceLimitAlertUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} + if v == nil { + return nil, ErrNotFound + } -// Creates a single tenantAlertingSettings. -func (r tenantAlertingSettingsActions) CreateOne( - _tenant TenantAlertingSettingsWithPrismaTenantSetParam, + return v, nil +} - optional ...TenantAlertingSettingsSetParam, -) tenantAlertingSettingsCreateOne { - var v tenantAlertingSettingsCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client +func (r userPasswordToUserFindFirst) ExecInner(ctx context.Context) ( + *InnerUserPassword, + error, +) { + var v *InnerUserPassword + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "TenantAlertingSettings" - v.query.Outputs = tenantAlertingSettingsOutput + if v == nil { + return nil, ErrNotFound + } - var fields []builder.Field + return v, nil +} - fields = append(fields, _tenant.field()) +type userPasswordToUserFindMany struct { + query builder.Query +} - for _, q := range optional { - fields = append(fields, q.field()) - } +func (r userPasswordToUserFindMany) getQuery() builder.Query { + return r.query +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) - return v +func (r userPasswordToUserFindMany) ExtractQuery() builder.Query { + return r.query } -func (r tenantAlertingSettingsCreateOne) With(params ...TenantAlertingSettingsRelationWith) tenantAlertingSettingsCreateOne { +func (r userPasswordToUserFindMany) with() {} +func (r userPasswordToUserFindMany) userPasswordModel() {} +func (r userPasswordToUserFindMany) userPasswordRelation() {} + +func (r userPasswordToUserFindMany) With(params ...UserRelationWith) userPasswordToUserFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -227765,132 +252860,136 @@ func (r tenantAlertingSettingsCreateOne) With(params ...TenantAlertingSettingsRe return r } -type tenantAlertingSettingsCreateOne struct { - query builder.Query -} +func (r userPasswordToUserFindMany) Select(params ...userPasswordPrismaFields) userPasswordToUserFindMany { + var outputs []builder.Output -func (p tenantAlertingSettingsCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p tenantAlertingSettingsCreateOne) tenantAlertingSettingsModel() {} + r.query.Outputs = outputs -func (r tenantAlertingSettingsCreateOne) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { - var v TenantAlertingSettingsModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r tenantAlertingSettingsCreateOne) Tx() TenantAlertingSettingsUniqueTxResult { - v := newTenantAlertingSettingsUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r userPasswordToUserFindMany) Omit(params ...userPasswordPrismaFields) userPasswordToUserFindMany { + var outputs []builder.Output -// Creates a single tenantMember. -func (r tenantMemberActions) CreateOne( - _tenant TenantMemberWithPrismaTenantSetParam, - _user TenantMemberWithPrismaUserSetParam, - _role TenantMemberWithPrismaRoleSetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...TenantMemberSetParam, -) tenantMemberCreateOne { - var v tenantMemberCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range userPasswordOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "TenantMember" - v.query.Outputs = tenantMemberOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _tenant.field()) - fields = append(fields, _user.field()) - fields = append(fields, _role.field()) +func (r userPasswordToUserFindMany) OrderBy(params ...UserOrderByParam) userPasswordToUserFindMany { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} - -func (r tenantMemberCreateOne) With(params ...TenantMemberRelationWith) tenantMemberCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } return r } -type tenantMemberCreateOne struct { - query builder.Query +func (r userPasswordToUserFindMany) Skip(count int) userPasswordToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p tenantMemberCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordToUserFindMany) Take(count int) userPasswordToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p tenantMemberCreateOne) tenantMemberModel() {} +func (r userPasswordToUserFindMany) Cursor(cursor UserPasswordCursorParam) userPasswordToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (r tenantMemberCreateOne) Exec(ctx context.Context) (*TenantMemberModel, error) { - var v TenantMemberModel +func (r userPasswordToUserFindMany) Exec(ctx context.Context) ( + []UserPasswordModel, + error, +) { + var v []UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r tenantMemberCreateOne) Tx() TenantMemberUniqueTxResult { - v := newTenantMemberUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + return v, nil } -// Creates a single tenantInviteLink. -func (r tenantInviteLinkActions) CreateOne( - _tenant TenantInviteLinkWithPrismaTenantSetParam, - _inviterEmail TenantInviteLinkWithPrismaInviterEmailSetParam, - _inviteeEmail TenantInviteLinkWithPrismaInviteeEmailSetParam, - _expires TenantInviteLinkWithPrismaExpiresSetParam, +func (r userPasswordToUserFindMany) ExecInner(ctx context.Context) ( + []InnerUserPassword, + error, +) { + var v []InnerUserPassword + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...TenantInviteLinkSetParam, -) tenantInviteLinkCreateOne { - var v tenantInviteLinkCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + return v, nil +} - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "TenantInviteLink" - v.query.Outputs = tenantInviteLinkOutput +func (r userPasswordToUserFindMany) Update(params ...UserPasswordSetParam) userPasswordToUserUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "UserPassword" + + r.query.Outputs = countOutput + var v userPasswordToUserUpdateMany + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _tenant.field()) - fields = append(fields, _inviterEmail.field()) - fields = append(fields, _inviteeEmail.field()) - fields = append(fields, _expires.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -227898,142 +252997,107 @@ func (r tenantInviteLinkActions) CreateOne( return v } -func (r tenantInviteLinkCreateOne) With(params ...TenantInviteLinkRelationWith) tenantInviteLinkCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type tenantInviteLinkCreateOne struct { +type userPasswordToUserUpdateMany struct { query builder.Query } -func (p tenantInviteLinkCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordToUserUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p tenantInviteLinkCreateOne) tenantInviteLinkModel() {} +func (r userPasswordToUserUpdateMany) userPasswordModel() {} -func (r tenantInviteLinkCreateOne) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { - var v TenantInviteLinkModel +func (r userPasswordToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantInviteLinkCreateOne) Tx() TenantInviteLinkUniqueTxResult { - v := newTenantInviteLinkUniqueTxResult() +func (r userPasswordToUserUpdateMany) Tx() UserPasswordManyTxResult { + v := newUserPasswordManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single aPIToken. -func (r aPITokenActions) CreateOne( - - optional ...APITokenSetParam, -) aPITokenCreateOne { - var v aPITokenCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r userPasswordToUserFindMany) Delete() userPasswordToUserDeleteMany { + var v userPasswordToUserDeleteMany + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "APIToken" - v.query.Outputs = aPITokenOutput - - var fields []builder.Field + v.query.Method = "deleteMany" + v.query.Model = "UserPassword" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Outputs = countOutput - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r aPITokenCreateOne) With(params ...APITokenRelationWith) aPITokenCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type aPITokenCreateOne struct { +type userPasswordToUserDeleteMany struct { query builder.Query } -func (p aPITokenCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordToUserDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p aPITokenCreateOne) aPITokenModel() {} +func (p userPasswordToUserDeleteMany) userPasswordModel() {} -func (r aPITokenCreateOne) Exec(ctx context.Context) (*APITokenModel, error) { - var v APITokenModel +func (r userPasswordToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r aPITokenCreateOne) Tx() APITokenUniqueTxResult { - v := newAPITokenUniqueTxResult() +func (r userPasswordToUserDeleteMany) Tx() UserPasswordManyTxResult { + v := newUserPasswordManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single event. -func (r eventActions) CreateOne( - _key EventWithPrismaKeySetParam, - _tenant EventWithPrismaTenantSetParam, +type userPasswordFindUnique struct { + query builder.Query +} - optional ...EventSetParam, -) eventCreateOne { - var v eventCreateOne +func (r userPasswordFindUnique) getQuery() builder.Query { + return r.query +} + +func (r userPasswordFindUnique) ExtractQuery() builder.Query { + return r.query +} + +func (r userPasswordFindUnique) with() {} +func (r userPasswordFindUnique) userPasswordModel() {} +func (r userPasswordFindUnique) userPasswordRelation() {} + +func (r userPasswordActions) FindUnique( + params UserPasswordEqualsUniqueWhereParam, +) userPasswordFindUnique { + var v userPasswordFindUnique v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Event" - v.query.Outputs = eventOutput - - var fields []builder.Field + v.query.Operation = "query" - fields = append(fields, _key.field()) - fields = append(fields, _tenant.field()) + v.query.Method = "findUnique" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Model = "UserPassword" + v.query.Outputs = userPasswordOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), }) + return v } -func (r eventCreateOne) With(params ...EventRelationWith) eventCreateOne { +func (r userPasswordFindUnique) With(params ...UserPasswordRelationWith) userPasswordFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -228046,56 +253110,98 @@ func (r eventCreateOne) With(params ...EventRelationWith) eventCreateOne { return r } -type eventCreateOne struct { - query builder.Query -} +func (r userPasswordFindUnique) Select(params ...userPasswordPrismaFields) userPasswordFindUnique { + var outputs []builder.Output -func (p eventCreateOne) ExtractQuery() builder.Query { - return p.query + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } + + r.query.Outputs = outputs + + return r } -func (p eventCreateOne) eventModel() {} +func (r userPasswordFindUnique) Omit(params ...userPasswordPrismaFields) userPasswordFindUnique { + var outputs []builder.Output -func (r eventCreateOne) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } + + for _, output := range userPasswordOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } + + r.query.Outputs = outputs + + return r +} + +func (r userPasswordFindUnique) Exec(ctx context.Context) ( + *UserPasswordModel, + error, +) { + var v *UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r eventCreateOne) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -// Creates a single workflowTag. -func (r workflowTagActions) CreateOne( - _tenant WorkflowTagWithPrismaTenantSetParam, - _name WorkflowTagWithPrismaNameSetParam, +func (r userPasswordFindUnique) ExecInner(ctx context.Context) ( + *InnerUserPassword, + error, +) { + var v *InnerUserPassword + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...WorkflowTagSetParam, -) workflowTagCreateOne { - var v workflowTagCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + if v == nil { + return nil, ErrNotFound + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowTag" - v.query.Outputs = workflowTagOutput + return v, nil +} + +func (r userPasswordFindUnique) Update(params ...UserPasswordSetParam) userPasswordUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "UserPassword" + var v userPasswordUpdateUnique + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _tenant.field()) - fields = append(fields, _name.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -228103,147 +253209,120 @@ func (r workflowTagActions) CreateOne( return v } -func (r workflowTagCreateOne) With(params ...WorkflowTagRelationWith) workflowTagCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type workflowTagCreateOne struct { +type userPasswordUpdateUnique struct { query builder.Query } -func (p workflowTagCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p workflowTagCreateOne) workflowTagModel() {} +func (r userPasswordUpdateUnique) userPasswordModel() {} -func (r workflowTagCreateOne) Exec(ctx context.Context) (*WorkflowTagModel, error) { - var v WorkflowTagModel +func (r userPasswordUpdateUnique) Exec(ctx context.Context) (*UserPasswordModel, error) { + var v UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTagCreateOne) Tx() WorkflowTagUniqueTxResult { - v := newWorkflowTagUniqueTxResult() +func (r userPasswordUpdateUnique) Tx() UserPasswordUniqueTxResult { + v := newUserPasswordUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single workflow. -func (r workflowActions) CreateOne( - _tenant WorkflowWithPrismaTenantSetParam, - _name WorkflowWithPrismaNameSetParam, - - optional ...WorkflowSetParam, -) workflowCreateOne { - var v workflowCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r userPasswordFindUnique) Delete() userPasswordDeleteUnique { + var v userPasswordDeleteUnique + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Workflow" - v.query.Outputs = workflowOutput - - var fields []builder.Field - - fields = append(fields, _tenant.field()) - fields = append(fields, _name.field()) - - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Method = "deleteOne" + v.query.Model = "UserPassword" - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r workflowCreateOne) With(params ...WorkflowRelationWith) workflowCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type workflowCreateOne struct { +type userPasswordDeleteUnique struct { query builder.Query } -func (p workflowCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p workflowCreateOne) workflowModel() {} +func (p userPasswordDeleteUnique) userPasswordModel() {} -func (r workflowCreateOne) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r userPasswordDeleteUnique) Exec(ctx context.Context) (*UserPasswordModel, error) { + var v UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowCreateOne) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r userPasswordDeleteUnique) Tx() UserPasswordUniqueTxResult { + v := newUserPasswordUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single workflowVersion. -func (r workflowVersionActions) CreateOne( - _checksum WorkflowVersionWithPrismaChecksumSetParam, - _workflow WorkflowVersionWithPrismaWorkflowSetParam, +type userPasswordFindFirst struct { + query builder.Query +} - optional ...WorkflowVersionSetParam, -) workflowVersionCreateOne { - var v workflowVersionCreateOne +func (r userPasswordFindFirst) getQuery() builder.Query { + return r.query +} + +func (r userPasswordFindFirst) ExtractQuery() builder.Query { + return r.query +} + +func (r userPasswordFindFirst) with() {} +func (r userPasswordFindFirst) userPasswordModel() {} +func (r userPasswordFindFirst) userPasswordRelation() {} + +func (r userPasswordActions) FindFirst( + params ...UserPasswordWhereParam, +) userPasswordFindFirst { + var v userPasswordFindFirst v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowVersion" - v.query.Outputs = workflowVersionOutput + v.query.Operation = "query" - var fields []builder.Field + v.query.Method = "findFirst" - fields = append(fields, _checksum.field()) - fields = append(fields, _workflow.field()) + v.query.Model = "UserPassword" + v.query.Outputs = userPasswordOutput - for _, q := range optional { - fields = append(fields, q.field()) + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r workflowVersionCreateOne) With(params ...WorkflowVersionRelationWith) workflowVersionCreateOne { +func (r userPasswordFindFirst) With(params ...UserPasswordRelationWith) userPasswordFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -228256,132 +253335,169 @@ func (r workflowVersionCreateOne) With(params ...WorkflowVersionRelationWith) wo return r } -type workflowVersionCreateOne struct { - query builder.Query -} +func (r userPasswordFindFirst) Select(params ...userPasswordPrismaFields) userPasswordFindFirst { + var outputs []builder.Output -func (p workflowVersionCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p workflowVersionCreateOne) workflowVersionModel() {} + r.query.Outputs = outputs -func (r workflowVersionCreateOne) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r workflowVersionCreateOne) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r userPasswordFindFirst) Omit(params ...userPasswordPrismaFields) userPasswordFindFirst { + var outputs []builder.Output -// Creates a single workflowConcurrency. -func (r workflowConcurrencyActions) CreateOne( - _workflow WorkflowConcurrencyWithPrismaWorkflowSetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...WorkflowConcurrencySetParam, -) workflowConcurrencyCreateOne { - var v workflowConcurrencyCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range userPasswordOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowConcurrency" - v.query.Outputs = workflowConcurrencyOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _workflow.field()) +func (r userPasswordFindFirst) OrderBy(params ...UserPasswordOrderByParam) userPasswordFindFirst { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} -func (r workflowConcurrencyCreateOne) With(params ...WorkflowConcurrencyRelationWith) workflowConcurrencyCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } + return r +} +func (r userPasswordFindFirst) Skip(count int) userPasswordFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) return r } -type workflowConcurrencyCreateOne struct { - query builder.Query +func (r userPasswordFindFirst) Take(count int) userPasswordFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p workflowConcurrencyCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordFindFirst) Cursor(cursor UserPasswordCursorParam) userPasswordFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p workflowConcurrencyCreateOne) workflowConcurrencyModel() {} +func (r userPasswordFindFirst) Exec(ctx context.Context) ( + *UserPasswordModel, + error, +) { + var v *UserPasswordModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (r workflowConcurrencyCreateOne) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { - var v WorkflowConcurrencyModel + if v == nil { + return nil, ErrNotFound + } + + return v, nil +} + +func (r userPasswordFindFirst) ExecInner(ctx context.Context) ( + *InnerUserPassword, + error, +) { + var v *InnerUserPassword if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil + + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -func (r workflowConcurrencyCreateOne) Tx() WorkflowConcurrencyUniqueTxResult { - v := newWorkflowConcurrencyUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v +type userPasswordFindMany struct { + query builder.Query } -// Creates a single workflowTriggers. -func (r workflowTriggersActions) CreateOne( - _workflow WorkflowTriggersWithPrismaWorkflowSetParam, - _tenant WorkflowTriggersWithPrismaTenantSetParam, +func (r userPasswordFindMany) getQuery() builder.Query { + return r.query +} - optional ...WorkflowTriggersSetParam, -) workflowTriggersCreateOne { - var v workflowTriggersCreateOne +func (r userPasswordFindMany) ExtractQuery() builder.Query { + return r.query +} + +func (r userPasswordFindMany) with() {} +func (r userPasswordFindMany) userPasswordModel() {} +func (r userPasswordFindMany) userPasswordRelation() {} + +func (r userPasswordActions) FindMany( + params ...UserPasswordWhereParam, +) userPasswordFindMany { + var v userPasswordFindMany v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowTriggers" - v.query.Outputs = workflowTriggersOutput + v.query.Operation = "query" - var fields []builder.Field + v.query.Method = "findMany" - fields = append(fields, _workflow.field()) - fields = append(fields, _tenant.field()) + v.query.Model = "UserPassword" + v.query.Outputs = userPasswordOutput - for _, q := range optional { - fields = append(fields, q.field()) + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r workflowTriggersCreateOne) With(params ...WorkflowTriggersRelationWith) workflowTriggersCreateOne { +func (r userPasswordFindMany) With(params ...UserPasswordRelationWith) userPasswordFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -228394,126 +253510,136 @@ func (r workflowTriggersCreateOne) With(params ...WorkflowTriggersRelationWith) return r } -type workflowTriggersCreateOne struct { - query builder.Query -} +func (r userPasswordFindMany) Select(params ...userPasswordPrismaFields) userPasswordFindMany { + var outputs []builder.Output -func (p workflowTriggersCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p workflowTriggersCreateOne) workflowTriggersModel() {} + r.query.Outputs = outputs -func (r workflowTriggersCreateOne) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r workflowTriggersCreateOne) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r userPasswordFindMany) Omit(params ...userPasswordPrismaFields) userPasswordFindMany { + var outputs []builder.Output -// Creates a single workflowTriggerEventRef. -func (r workflowTriggerEventRefActions) CreateOne( - _parent WorkflowTriggerEventRefWithPrismaParentSetParam, - _eventKey WorkflowTriggerEventRefWithPrismaEventKeySetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...WorkflowTriggerEventRefSetParam, -) workflowTriggerEventRefCreateOne { - var v workflowTriggerEventRefCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range userPasswordOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowTriggerEventRef" - v.query.Outputs = workflowTriggerEventRefOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _parent.field()) - fields = append(fields, _eventKey.field()) +func (r userPasswordFindMany) OrderBy(params ...UserPasswordOrderByParam) userPasswordFindMany { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} - -func (r workflowTriggerEventRefCreateOne) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggerEventRefCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } return r } -type workflowTriggerEventRefCreateOne struct { - query builder.Query +func (r userPasswordFindMany) Skip(count int) userPasswordFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p workflowTriggerEventRefCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordFindMany) Take(count int) userPasswordFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p workflowTriggerEventRefCreateOne) workflowTriggerEventRefModel() {} +func (r userPasswordFindMany) Cursor(cursor UserPasswordCursorParam) userPasswordFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (r workflowTriggerEventRefCreateOne) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { - var v WorkflowTriggerEventRefModel +func (r userPasswordFindMany) Exec(ctx context.Context) ( + []UserPasswordModel, + error, +) { + var v []UserPasswordModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r workflowTriggerEventRefCreateOne) Tx() WorkflowTriggerEventRefUniqueTxResult { - v := newWorkflowTriggerEventRefUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + return v, nil } -// Creates a single workflowTriggerCronRef. -func (r workflowTriggerCronRefActions) CreateOne( - _parent WorkflowTriggerCronRefWithPrismaParentSetParam, - _cron WorkflowTriggerCronRefWithPrismaCronSetParam, +func (r userPasswordFindMany) ExecInner(ctx context.Context) ( + []InnerUserPassword, + error, +) { + var v []InnerUserPassword + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...WorkflowTriggerCronRefSetParam, -) workflowTriggerCronRefCreateOne { - var v workflowTriggerCronRefCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + return v, nil +} - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowTriggerCronRef" - v.query.Outputs = workflowTriggerCronRefOutput +func (r userPasswordFindMany) Update(params ...UserPasswordSetParam) userPasswordUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "UserPassword" + r.query.Outputs = countOutput + + var v userPasswordUpdateMany + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _parent.field()) - fields = append(fields, _cron.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + field.Value = nil + } + + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -228521,149 +253647,85 @@ func (r workflowTriggerCronRefActions) CreateOne( return v } -func (r workflowTriggerCronRefCreateOne) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggerCronRefCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type workflowTriggerCronRefCreateOne struct { +type userPasswordUpdateMany struct { query builder.Query } -func (p workflowTriggerCronRefCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p workflowTriggerCronRefCreateOne) workflowTriggerCronRefModel() {} +func (r userPasswordUpdateMany) userPasswordModel() {} -func (r workflowTriggerCronRefCreateOne) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r userPasswordUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefCreateOne) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r userPasswordUpdateMany) Tx() UserPasswordManyTxResult { + v := newUserPasswordManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single workflowTriggerScheduledRef. -func (r workflowTriggerScheduledRefActions) CreateOne( - _parent WorkflowTriggerScheduledRefWithPrismaParentSetParam, - _triggerAt WorkflowTriggerScheduledRefWithPrismaTriggerAtSetParam, - - optional ...WorkflowTriggerScheduledRefSetParam, -) workflowTriggerScheduledRefCreateOne { - var v workflowTriggerScheduledRefCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r userPasswordFindMany) Delete() userPasswordDeleteMany { + var v userPasswordDeleteMany + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowTriggerScheduledRef" - v.query.Outputs = workflowTriggerScheduledRefOutput - - var fields []builder.Field - - fields = append(fields, _parent.field()) - fields = append(fields, _triggerAt.field()) + v.query.Method = "deleteMany" + v.query.Model = "UserPassword" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Outputs = countOutput - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r workflowTriggerScheduledRefCreateOne) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowTriggerScheduledRefCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type workflowTriggerScheduledRefCreateOne struct { +type userPasswordDeleteMany struct { query builder.Query } -func (p workflowTriggerScheduledRefCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userPasswordDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p workflowTriggerScheduledRefCreateOne) workflowTriggerScheduledRefModel() {} +func (p userPasswordDeleteMany) userPasswordModel() {} -func (r workflowTriggerScheduledRefCreateOne) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r userPasswordDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefCreateOne) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r userPasswordDeleteMany) Tx() UserPasswordManyTxResult { + v := newUserPasswordManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single job. -func (r jobActions) CreateOne( - _tenant JobWithPrismaTenantSetParam, - _workflow JobWithPrismaWorkflowSetParam, - _name JobWithPrismaNameSetParam, - - optional ...JobSetParam, -) jobCreateOne { - var v jobCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Job" - v.query.Outputs = jobOutput - - var fields []builder.Field - - fields = append(fields, _tenant.field()) - fields = append(fields, _workflow.field()) - fields = append(fields, _name.field()) +type userSessionToUserFindUnique struct { + query builder.Query +} - for _, q := range optional { - fields = append(fields, q.field()) - } +func (r userSessionToUserFindUnique) getQuery() builder.Query { + return r.query +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) - return v +func (r userSessionToUserFindUnique) ExtractQuery() builder.Query { + return r.query } -func (r jobCreateOne) With(params ...JobRelationWith) jobCreateOne { +func (r userSessionToUserFindUnique) with() {} +func (r userSessionToUserFindUnique) userSessionModel() {} +func (r userSessionToUserFindUnique) userSessionRelation() {} + +func (r userSessionToUserFindUnique) With(params ...UserRelationWith) userSessionToUserFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -228676,56 +253738,98 @@ func (r jobCreateOne) With(params ...JobRelationWith) jobCreateOne { return r } -type jobCreateOne struct { - query builder.Query -} +func (r userSessionToUserFindUnique) Select(params ...userSessionPrismaFields) userSessionToUserFindUnique { + var outputs []builder.Output -func (p jobCreateOne) ExtractQuery() builder.Query { - return p.query + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } + + r.query.Outputs = outputs + + return r } -func (p jobCreateOne) jobModel() {} +func (r userSessionToUserFindUnique) Omit(params ...userSessionPrismaFields) userSessionToUserFindUnique { + var outputs []builder.Output -func (r jobCreateOne) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } + + for _, output := range userSessionOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } + + r.query.Outputs = outputs + + return r +} + +func (r userSessionToUserFindUnique) Exec(ctx context.Context) ( + *UserSessionModel, + error, +) { + var v *UserSessionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r jobCreateOne) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -// Creates a single action. -func (r actionActions) CreateOne( - _actionID ActionWithPrismaActionIDSetParam, - _tenant ActionWithPrismaTenantSetParam, +func (r userSessionToUserFindUnique) ExecInner(ctx context.Context) ( + *InnerUserSession, + error, +) { + var v *InnerUserSession + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...ActionSetParam, -) actionCreateOne { - var v actionCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + if v == nil { + return nil, ErrNotFound + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Action" - v.query.Outputs = actionOutput + return v, nil +} + +func (r userSessionToUserFindUnique) Update(params ...UserSessionSetParam) userSessionToUserUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "UserSession" + var v userSessionToUserUpdateUnique + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _actionID.field()) - fields = append(fields, _tenant.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -228733,79 +253837,83 @@ func (r actionActions) CreateOne( return v } -func (r actionCreateOne) With(params ...ActionRelationWith) actionCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type actionCreateOne struct { +type userSessionToUserUpdateUnique struct { query builder.Query } -func (p actionCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionToUserUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p actionCreateOne) actionModel() {} +func (r userSessionToUserUpdateUnique) userSessionModel() {} -func (r actionCreateOne) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r userSessionToUserUpdateUnique) Exec(ctx context.Context) (*UserSessionModel, error) { + var v UserSessionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionCreateOne) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r userSessionToUserUpdateUnique) Tx() UserSessionUniqueTxResult { + v := newUserSessionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single step. -func (r stepActions) CreateOne( - _tenant StepWithPrismaTenantSetParam, - _job StepWithPrismaJobSetParam, - _action StepWithPrismaActionSetParam, +func (r userSessionToUserFindUnique) Delete() userSessionToUserDeleteUnique { + var v userSessionToUserDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "UserSession" - optional ...StepSetParam, -) stepCreateOne { - var v stepCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + return v +} - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Step" - v.query.Outputs = stepOutput +type userSessionToUserDeleteUnique struct { + query builder.Query +} - var fields []builder.Field +func (r userSessionToUserDeleteUnique) ExtractQuery() builder.Query { + return r.query +} - fields = append(fields, _tenant.field()) - fields = append(fields, _job.field()) - fields = append(fields, _action.field()) +func (p userSessionToUserDeleteUnique) userSessionModel() {} - for _, q := range optional { - fields = append(fields, q.field()) +func (r userSessionToUserDeleteUnique) Exec(ctx context.Context) (*UserSessionModel, error) { + var v UserSessionModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err } + return &v, nil +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) +func (r userSessionToUserDeleteUnique) Tx() UserSessionUniqueTxResult { + v := newUserSessionUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) return v } -func (r stepCreateOne) With(params ...StepRelationWith) stepCreateOne { +type userSessionToUserFindFirst struct { + query builder.Query +} + +func (r userSessionToUserFindFirst) getQuery() builder.Query { + return r.query +} + +func (r userSessionToUserFindFirst) ExtractQuery() builder.Query { + return r.query +} + +func (r userSessionToUserFindFirst) with() {} +func (r userSessionToUserFindFirst) userSessionModel() {} +func (r userSessionToUserFindFirst) userSessionRelation() {} + +func (r userSessionToUserFindFirst) With(params ...UserRelationWith) userSessionToUserFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -228818,144 +253926,132 @@ func (r stepCreateOne) With(params ...StepRelationWith) stepCreateOne { return r } -type stepCreateOne struct { - query builder.Query -} +func (r userSessionToUserFindFirst) Select(params ...userSessionPrismaFields) userSessionToUserFindFirst { + var outputs []builder.Output -func (p stepCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p stepCreateOne) stepModel() {} + r.query.Outputs = outputs -func (r stepCreateOne) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r stepCreateOne) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r userSessionToUserFindFirst) Omit(params ...userSessionPrismaFields) userSessionToUserFindFirst { + var outputs []builder.Output -// Creates a single stepRateLimit. -func (r stepRateLimitActions) CreateOne( - _units StepRateLimitWithPrismaUnitsSetParam, - _step StepRateLimitWithPrismaStepSetParam, - _rateLimit StepRateLimitWithPrismaRateLimitSetParam, - _tenant StepRateLimitWithPrismaTenantSetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...StepRateLimitSetParam, -) stepRateLimitCreateOne { - var v stepRateLimitCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range userSessionOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "StepRateLimit" - v.query.Outputs = stepRateLimitOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _units.field()) - fields = append(fields, _step.field()) - fields = append(fields, _rateLimit.field()) - fields = append(fields, _tenant.field()) +func (r userSessionToUserFindFirst) OrderBy(params ...UserOrderByParam) userSessionToUserFindFirst { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} - -func (r stepRateLimitCreateOne) With(params ...StepRateLimitRelationWith) stepRateLimitCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } return r } -type stepRateLimitCreateOne struct { - query builder.Query +func (r userSessionToUserFindFirst) Skip(count int) userSessionToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p stepRateLimitCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionToUserFindFirst) Take(count int) userSessionToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p stepRateLimitCreateOne) stepRateLimitModel() {} +func (r userSessionToUserFindFirst) Cursor(cursor UserSessionCursorParam) userSessionToUserFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (r stepRateLimitCreateOne) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r userSessionToUserFindFirst) Exec(ctx context.Context) ( + *UserSessionModel, + error, +) { + var v *UserSessionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r stepRateLimitCreateOne) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} + if v == nil { + return nil, ErrNotFound + } -// Creates a single rateLimit. -func (r rateLimitActions) CreateOne( - _tenant RateLimitWithPrismaTenantSetParam, - _key RateLimitWithPrismaKeySetParam, - _limitValue RateLimitWithPrismaLimitValueSetParam, - _value RateLimitWithPrismaValueSetParam, - _window RateLimitWithPrismaWindowSetParam, + return v, nil +} - optional ...RateLimitSetParam, -) rateLimitCreateOne { - var v rateLimitCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client +func (r userSessionToUserFindFirst) ExecInner(ctx context.Context) ( + *InnerUserSession, + error, +) { + var v *InnerUserSession + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "RateLimit" - v.query.Outputs = rateLimitOutput + if v == nil { + return nil, ErrNotFound + } - var fields []builder.Field + return v, nil +} - fields = append(fields, _tenant.field()) - fields = append(fields, _key.field()) - fields = append(fields, _limitValue.field()) - fields = append(fields, _value.field()) - fields = append(fields, _window.field()) +type userSessionToUserFindMany struct { + query builder.Query +} - for _, q := range optional { - fields = append(fields, q.field()) - } +func (r userSessionToUserFindMany) getQuery() builder.Query { + return r.query +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) - return v +func (r userSessionToUserFindMany) ExtractQuery() builder.Query { + return r.query } -func (r rateLimitCreateOne) With(params ...RateLimitRelationWith) rateLimitCreateOne { +func (r userSessionToUserFindMany) with() {} +func (r userSessionToUserFindMany) userSessionModel() {} +func (r userSessionToUserFindMany) userSessionRelation() {} + +func (r userSessionToUserFindMany) With(params ...UserRelationWith) userSessionToUserFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -228968,126 +254064,136 @@ func (r rateLimitCreateOne) With(params ...RateLimitRelationWith) rateLimitCreat return r } -type rateLimitCreateOne struct { - query builder.Query -} +func (r userSessionToUserFindMany) Select(params ...userSessionPrismaFields) userSessionToUserFindMany { + var outputs []builder.Output -func (p rateLimitCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p rateLimitCreateOne) rateLimitModel() {} + r.query.Outputs = outputs -func (r rateLimitCreateOne) Exec(ctx context.Context) (*RateLimitModel, error) { - var v RateLimitModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r rateLimitCreateOne) Tx() RateLimitUniqueTxResult { - v := newRateLimitUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r userSessionToUserFindMany) Omit(params ...userSessionPrismaFields) userSessionToUserFindMany { + var outputs []builder.Output -// Creates a single workflowRun. -func (r workflowRunActions) CreateOne( - _tenant WorkflowRunWithPrismaTenantSetParam, - _workflowVersion WorkflowRunWithPrismaWorkflowVersionSetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...WorkflowRunSetParam, -) workflowRunCreateOne { - var v workflowRunCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range userSessionOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowRun" - v.query.Outputs = workflowRunOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _tenant.field()) - fields = append(fields, _workflowVersion.field()) +func (r userSessionToUserFindMany) OrderBy(params ...UserOrderByParam) userSessionToUserFindMany { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} - -func (r workflowRunCreateOne) With(params ...WorkflowRunRelationWith) workflowRunCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } return r } -type workflowRunCreateOne struct { - query builder.Query +func (r userSessionToUserFindMany) Skip(count int) userSessionToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p workflowRunCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionToUserFindMany) Take(count int) userSessionToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p workflowRunCreateOne) workflowRunModel() {} +func (r userSessionToUserFindMany) Cursor(cursor UserSessionCursorParam) userSessionToUserFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (r workflowRunCreateOne) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r userSessionToUserFindMany) Exec(ctx context.Context) ( + []UserSessionModel, + error, +) { + var v []UserSessionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r workflowRunCreateOne) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + return v, nil } -// Creates a single getGroupKeyRun. -func (r getGroupKeyRunActions) CreateOne( - _tenant GetGroupKeyRunWithPrismaTenantSetParam, - _workflowRun GetGroupKeyRunWithPrismaWorkflowRunSetParam, +func (r userSessionToUserFindMany) ExecInner(ctx context.Context) ( + []InnerUserSession, + error, +) { + var v []InnerUserSession + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...GetGroupKeyRunSetParam, -) getGroupKeyRunCreateOne { - var v getGroupKeyRunCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + return v, nil +} - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "GetGroupKeyRun" - v.query.Outputs = getGroupKeyRunOutput +func (r userSessionToUserFindMany) Update(params ...UserSessionSetParam) userSessionToUserUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "UserSession" + r.query.Outputs = countOutput + + var v userSessionToUserUpdateMany + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _tenant.field()) - fields = append(fields, _workflowRun.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + field.Value = nil + } + + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -229095,149 +254201,107 @@ func (r getGroupKeyRunActions) CreateOne( return v } -func (r getGroupKeyRunCreateOne) With(params ...GetGroupKeyRunRelationWith) getGroupKeyRunCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type getGroupKeyRunCreateOne struct { +type userSessionToUserUpdateMany struct { query builder.Query } -func (p getGroupKeyRunCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionToUserUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p getGroupKeyRunCreateOne) getGroupKeyRunModel() {} +func (r userSessionToUserUpdateMany) userSessionModel() {} -func (r getGroupKeyRunCreateOne) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { - var v GetGroupKeyRunModel +func (r userSessionToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r getGroupKeyRunCreateOne) Tx() GetGroupKeyRunUniqueTxResult { - v := newGetGroupKeyRunUniqueTxResult() +func (r userSessionToUserUpdateMany) Tx() UserSessionManyTxResult { + v := newUserSessionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single workflowRunTriggeredBy. -func (r workflowRunTriggeredByActions) CreateOne( - _tenant WorkflowRunTriggeredByWithPrismaTenantSetParam, - _parent WorkflowRunTriggeredByWithPrismaParentSetParam, - - optional ...WorkflowRunTriggeredBySetParam, -) workflowRunTriggeredByCreateOne { - var v workflowRunTriggeredByCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r userSessionToUserFindMany) Delete() userSessionToUserDeleteMany { + var v userSessionToUserDeleteMany + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkflowRunTriggeredBy" - v.query.Outputs = workflowRunTriggeredByOutput - - var fields []builder.Field - - fields = append(fields, _tenant.field()) - fields = append(fields, _parent.field()) + v.query.Method = "deleteMany" + v.query.Model = "UserSession" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Outputs = countOutput - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r workflowRunTriggeredByCreateOne) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunTriggeredByCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type workflowRunTriggeredByCreateOne struct { +type userSessionToUserDeleteMany struct { query builder.Query } -func (p workflowRunTriggeredByCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionToUserDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p workflowRunTriggeredByCreateOne) workflowRunTriggeredByModel() {} +func (p userSessionToUserDeleteMany) userSessionModel() {} -func (r workflowRunTriggeredByCreateOne) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { - var v WorkflowRunTriggeredByModel +func (r userSessionToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunTriggeredByCreateOne) Tx() WorkflowRunTriggeredByUniqueTxResult { - v := newWorkflowRunTriggeredByUniqueTxResult() +func (r userSessionToUserDeleteMany) Tx() UserSessionManyTxResult { + v := newUserSessionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single jobRun. -func (r jobRunActions) CreateOne( - _tenant JobRunWithPrismaTenantSetParam, - _workflowRun JobRunWithPrismaWorkflowRunSetParam, - _job JobRunWithPrismaJobSetParam, +type userSessionFindUnique struct { + query builder.Query +} - optional ...JobRunSetParam, -) jobRunCreateOne { - var v jobRunCreateOne +func (r userSessionFindUnique) getQuery() builder.Query { + return r.query +} + +func (r userSessionFindUnique) ExtractQuery() builder.Query { + return r.query +} + +func (r userSessionFindUnique) with() {} +func (r userSessionFindUnique) userSessionModel() {} +func (r userSessionFindUnique) userSessionRelation() {} + +func (r userSessionActions) FindUnique( + params UserSessionEqualsUniqueWhereParam, +) userSessionFindUnique { + var v userSessionFindUnique v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "JobRun" - v.query.Outputs = jobRunOutput - - var fields []builder.Field + v.query.Operation = "query" - fields = append(fields, _tenant.field()) - fields = append(fields, _workflowRun.field()) - fields = append(fields, _job.field()) + v.query.Method = "findUnique" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Model = "UserSession" + v.query.Outputs = userSessionOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), }) + return v } -func (r jobRunCreateOne) With(params ...JobRunRelationWith) jobRunCreateOne { +func (r userSessionFindUnique) With(params ...UserSessionRelationWith) userSessionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -229250,128 +254314,98 @@ func (r jobRunCreateOne) With(params ...JobRunRelationWith) jobRunCreateOne { return r } -type jobRunCreateOne struct { - query builder.Query -} - -func (p jobRunCreateOne) ExtractQuery() builder.Query { - return p.query -} - -func (p jobRunCreateOne) jobRunModel() {} +func (r userSessionFindUnique) Select(params ...userSessionPrismaFields) userSessionFindUnique { + var outputs []builder.Output -func (r jobRunCreateOne) Exec(ctx context.Context) (*JobRunModel, error) { - var v JobRunModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) } - return &v, nil -} - -func (r jobRunCreateOne) Tx() JobRunUniqueTxResult { - v := newJobRunUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} - -// Creates a single jobRunLookupData. -func (r jobRunLookupDataActions) CreateOne( - _jobRun JobRunLookupDataWithPrismaJobRunSetParam, - _tenant JobRunLookupDataWithPrismaTenantSetParam, - - optional ...JobRunLookupDataSetParam, -) jobRunLookupDataCreateOne { - var v jobRunLookupDataCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "JobRunLookupData" - v.query.Outputs = jobRunLookupDataOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _jobRun.field()) - fields = append(fields, _tenant.field()) +func (r userSessionFindUnique) Omit(params ...userSessionPrismaFields) userSessionFindUnique { + var outputs []builder.Output - for _, q := range optional { - fields = append(fields, q.field()) + var raw []string + for _, param := range params { + raw = append(raw, string(param)) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) - return v -} - -func (r jobRunLookupDataCreateOne) With(params ...JobRunLookupDataRelationWith) jobRunLookupDataCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) + for _, output := range userSessionOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } } + r.query.Outputs = outputs + return r } -type jobRunLookupDataCreateOne struct { - query builder.Query -} +func (r userSessionFindUnique) Exec(ctx context.Context) ( + *UserSessionModel, + error, +) { + var v *UserSessionModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (p jobRunLookupDataCreateOne) ExtractQuery() builder.Query { - return p.query -} + if v == nil { + return nil, ErrNotFound + } -func (p jobRunLookupDataCreateOne) jobRunLookupDataModel() {} + return v, nil +} -func (r jobRunLookupDataCreateOne) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { - var v JobRunLookupDataModel +func (r userSessionFindUnique) ExecInner(ctx context.Context) ( + *InnerUserSession, + error, +) { + var v *InnerUserSession if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r jobRunLookupDataCreateOne) Tx() JobRunLookupDataUniqueTxResult { - v := newJobRunLookupDataUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -// Creates a single stepRun. -func (r stepRunActions) CreateOne( - _tenant StepRunWithPrismaTenantSetParam, - _jobRun StepRunWithPrismaJobRunSetParam, - _step StepRunWithPrismaStepSetParam, +func (r userSessionFindUnique) Update(params ...UserSessionSetParam) userSessionUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "UserSession" - optional ...StepRunSetParam, -) stepRunCreateOne { - var v stepRunCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + var v userSessionUpdateUnique + v.query = r.query + var fields []builder.Field + for _, q := range params { - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "StepRun" - v.query.Outputs = stepRunOutput + field := q.field() - var fields []builder.Field + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } - fields = append(fields, _tenant.field()) - fields = append(fields, _jobRun.field()) - fields = append(fields, _step.field()) + field.Value = nil + } - for _, q := range optional { - fields = append(fields, q.field()) + fields = append(fields, field) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -229379,151 +254413,120 @@ func (r stepRunActions) CreateOne( return v } -func (r stepRunCreateOne) With(params ...StepRunRelationWith) stepRunCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type stepRunCreateOne struct { +type userSessionUpdateUnique struct { query builder.Query } -func (p stepRunCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p stepRunCreateOne) stepRunModel() {} +func (r userSessionUpdateUnique) userSessionModel() {} -func (r stepRunCreateOne) Exec(ctx context.Context) (*StepRunModel, error) { - var v StepRunModel +func (r userSessionUpdateUnique) Exec(ctx context.Context) (*UserSessionModel, error) { + var v UserSessionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunCreateOne) Tx() StepRunUniqueTxResult { - v := newStepRunUniqueTxResult() +func (r userSessionUpdateUnique) Tx() UserSessionUniqueTxResult { + v := newUserSessionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single stepRunEvent. -func (r stepRunEventActions) CreateOne( - _stepRun StepRunEventWithPrismaStepRunSetParam, - _reason StepRunEventWithPrismaReasonSetParam, - _severity StepRunEventWithPrismaSeveritySetParam, - _message StepRunEventWithPrismaMessageSetParam, - _count StepRunEventWithPrismaCountSetParam, - - optional ...StepRunEventSetParam, -) stepRunEventCreateOne { - var v stepRunEventCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r userSessionFindUnique) Delete() userSessionDeleteUnique { + var v userSessionDeleteUnique + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "StepRunEvent" - v.query.Outputs = stepRunEventOutput - - var fields []builder.Field - - fields = append(fields, _stepRun.field()) - fields = append(fields, _reason.field()) - fields = append(fields, _severity.field()) - fields = append(fields, _message.field()) - fields = append(fields, _count.field()) - - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Method = "deleteOne" + v.query.Model = "UserSession" - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r stepRunEventCreateOne) With(params ...StepRunEventRelationWith) stepRunEventCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type stepRunEventCreateOne struct { +type userSessionDeleteUnique struct { query builder.Query } -func (p stepRunEventCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionDeleteUnique) ExtractQuery() builder.Query { + return r.query } -func (p stepRunEventCreateOne) stepRunEventModel() {} +func (p userSessionDeleteUnique) userSessionModel() {} -func (r stepRunEventCreateOne) Exec(ctx context.Context) (*StepRunEventModel, error) { - var v StepRunEventModel +func (r userSessionDeleteUnique) Exec(ctx context.Context) (*UserSessionModel, error) { + var v UserSessionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunEventCreateOne) Tx() StepRunEventUniqueTxResult { - v := newStepRunEventUniqueTxResult() +func (r userSessionDeleteUnique) Tx() UserSessionUniqueTxResult { + v := newUserSessionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single stepRunResultArchive. -func (r stepRunResultArchiveActions) CreateOne( - _stepRun StepRunResultArchiveWithPrismaStepRunSetParam, +type userSessionFindFirst struct { + query builder.Query +} - optional ...StepRunResultArchiveSetParam, -) stepRunResultArchiveCreateOne { - var v stepRunResultArchiveCreateOne +func (r userSessionFindFirst) getQuery() builder.Query { + return r.query +} + +func (r userSessionFindFirst) ExtractQuery() builder.Query { + return r.query +} + +func (r userSessionFindFirst) with() {} +func (r userSessionFindFirst) userSessionModel() {} +func (r userSessionFindFirst) userSessionRelation() {} + +func (r userSessionActions) FindFirst( + params ...UserSessionWhereParam, +) userSessionFindFirst { + var v userSessionFindFirst v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "StepRunResultArchive" - v.query.Outputs = stepRunResultArchiveOutput + v.query.Operation = "query" - var fields []builder.Field + v.query.Method = "findFirst" - fields = append(fields, _stepRun.field()) + v.query.Model = "UserSession" + v.query.Outputs = userSessionOutput - for _, q := range optional { - fields = append(fields, q.field()) + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r stepRunResultArchiveCreateOne) With(params ...StepRunResultArchiveRelationWith) stepRunResultArchiveCreateOne { +func (r userSessionFindFirst) With(params ...UserSessionRelationWith) userSessionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -229536,124 +254539,169 @@ func (r stepRunResultArchiveCreateOne) With(params ...StepRunResultArchiveRelati return r } -type stepRunResultArchiveCreateOne struct { - query builder.Query -} +func (r userSessionFindFirst) Select(params ...userSessionPrismaFields) userSessionFindFirst { + var outputs []builder.Output -func (p stepRunResultArchiveCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p stepRunResultArchiveCreateOne) stepRunResultArchiveModel() {} + r.query.Outputs = outputs -func (r stepRunResultArchiveCreateOne) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { - var v StepRunResultArchiveModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r stepRunResultArchiveCreateOne) Tx() StepRunResultArchiveUniqueTxResult { - v := newStepRunResultArchiveUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r userSessionFindFirst) Omit(params ...userSessionPrismaFields) userSessionFindFirst { + var outputs []builder.Output -// Creates a single dispatcher. -func (r dispatcherActions) CreateOne( + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...DispatcherSetParam, -) dispatcherCreateOne { - var v dispatcherCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range userSessionOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Dispatcher" - v.query.Outputs = dispatcherOutput + r.query.Outputs = outputs + + return r +} +func (r userSessionFindFirst) OrderBy(params ...UserSessionOrderByParam) userSessionFindFirst { var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} -func (r dispatcherCreateOne) With(params ...DispatcherRelationWith) dispatcherCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } + return r +} +func (r userSessionFindFirst) Skip(count int) userSessionFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) return r } -type dispatcherCreateOne struct { - query builder.Query +func (r userSessionFindFirst) Take(count int) userSessionFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p dispatcherCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionFindFirst) Cursor(cursor UserSessionCursorParam) userSessionFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r } -func (p dispatcherCreateOne) dispatcherModel() {} +func (r userSessionFindFirst) Exec(ctx context.Context) ( + *UserSessionModel, + error, +) { + var v *UserSessionModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } -func (r dispatcherCreateOne) Exec(ctx context.Context) (*DispatcherModel, error) { - var v DispatcherModel + if v == nil { + return nil, ErrNotFound + } + + return v, nil +} + +func (r userSessionFindFirst) ExecInner(ctx context.Context) ( + *InnerUserSession, + error, +) { + var v *InnerUserSession if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil + + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -func (r dispatcherCreateOne) Tx() DispatcherUniqueTxResult { - v := newDispatcherUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v +type userSessionFindMany struct { + query builder.Query } -// Creates a single ticker. -func (r tickerActions) CreateOne( +func (r userSessionFindMany) getQuery() builder.Query { + return r.query +} - optional ...TickerSetParam, -) tickerCreateOne { - var v tickerCreateOne +func (r userSessionFindMany) ExtractQuery() builder.Query { + return r.query +} + +func (r userSessionFindMany) with() {} +func (r userSessionFindMany) userSessionModel() {} +func (r userSessionFindMany) userSessionRelation() {} + +func (r userSessionActions) FindMany( + params ...UserSessionWhereParam, +) userSessionFindMany { + var v userSessionFindMany v.query = builder.NewQuery() v.query.Engine = r.client - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Ticker" - v.query.Outputs = tickerOutput + v.query.Operation = "query" - var fields []builder.Field + v.query.Method = "findMany" - for _, q := range optional { - fields = append(fields, q.field()) + v.query.Model = "UserSession" + v.query.Outputs = userSessionOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r tickerCreateOne) With(params ...TickerRelationWith) tickerCreateOne { +func (r userSessionFindMany) With(params ...UserSessionRelationWith) userSessionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -229666,126 +254714,136 @@ func (r tickerCreateOne) With(params ...TickerRelationWith) tickerCreateOne { return r } -type tickerCreateOne struct { - query builder.Query -} +func (r userSessionFindMany) Select(params ...userSessionPrismaFields) userSessionFindMany { + var outputs []builder.Output -func (p tickerCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p tickerCreateOne) tickerModel() {} + r.query.Outputs = outputs -func (r tickerCreateOne) Exec(ctx context.Context) (*TickerModel, error) { - var v TickerModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r tickerCreateOne) Tx() TickerUniqueTxResult { - v := newTickerUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r userSessionFindMany) Omit(params ...userSessionPrismaFields) userSessionFindMany { + var outputs []builder.Output -// Creates a single worker. -func (r workerActions) CreateOne( - _tenant WorkerWithPrismaTenantSetParam, - _name WorkerWithPrismaNameSetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...WorkerSetParam, -) workerCreateOne { - var v workerCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range userSessionOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Worker" - v.query.Outputs = workerOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _tenant.field()) - fields = append(fields, _name.field()) +func (r userSessionFindMany) OrderBy(params ...UserSessionOrderByParam) userSessionFindMany { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} - -func (r workerCreateOne) With(params ...WorkerRelationWith) workerCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } return r } -type workerCreateOne struct { - query builder.Query +func (r userSessionFindMany) Skip(count int) userSessionFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p workerCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionFindMany) Take(count int) userSessionFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p workerCreateOne) workerModel() {} +func (r userSessionFindMany) Cursor(cursor UserSessionCursorParam) userSessionFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (r workerCreateOne) Exec(ctx context.Context) (*WorkerModel, error) { - var v WorkerModel +func (r userSessionFindMany) Exec(ctx context.Context) ( + []UserSessionModel, + error, +) { + var v []UserSessionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r workerCreateOne) Tx() WorkerUniqueTxResult { - v := newWorkerUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + return v, nil } -// Creates a single workerSemaphore. -func (r workerSemaphoreActions) CreateOne( - _worker WorkerSemaphoreWithPrismaWorkerSetParam, - _slots WorkerSemaphoreWithPrismaSlotsSetParam, +func (r userSessionFindMany) ExecInner(ctx context.Context) ( + []InnerUserSession, + error, +) { + var v []InnerUserSession + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...WorkerSemaphoreSetParam, -) workerSemaphoreCreateOne { - var v workerSemaphoreCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + return v, nil +} - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkerSemaphore" - v.query.Outputs = workerSemaphoreOutput +func (r userSessionFindMany) Update(params ...UserSessionSetParam) userSessionUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "UserSession" + + r.query.Outputs = countOutput + var v userSessionUpdateMany + v.query = r.query var fields []builder.Field + for _, q := range params { + + field := q.field() + + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } - fields = append(fields, _worker.field()) - fields = append(fields, _slots.field()) + field.Value = nil + } - for _, q := range optional { - fields = append(fields, q.field()) + fields = append(fields, field) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -229793,145 +254851,85 @@ func (r workerSemaphoreActions) CreateOne( return v } -func (r workerSemaphoreCreateOne) With(params ...WorkerSemaphoreRelationWith) workerSemaphoreCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type workerSemaphoreCreateOne struct { +type userSessionUpdateMany struct { query builder.Query } -func (p workerSemaphoreCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p workerSemaphoreCreateOne) workerSemaphoreModel() {} +func (r userSessionUpdateMany) userSessionModel() {} -func (r workerSemaphoreCreateOne) Exec(ctx context.Context) (*WorkerSemaphoreModel, error) { - var v WorkerSemaphoreModel +func (r userSessionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workerSemaphoreCreateOne) Tx() WorkerSemaphoreUniqueTxResult { - v := newWorkerSemaphoreUniqueTxResult() +func (r userSessionUpdateMany) Tx() UserSessionManyTxResult { + v := newUserSessionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single workerSemaphoreSlot. -func (r workerSemaphoreSlotActions) CreateOne( - _worker WorkerSemaphoreSlotWithPrismaWorkerSetParam, - - optional ...WorkerSemaphoreSlotSetParam, -) workerSemaphoreSlotCreateOne { - var v workerSemaphoreSlotCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r userSessionFindMany) Delete() userSessionDeleteMany { + var v userSessionDeleteMany + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "WorkerSemaphoreSlot" - v.query.Outputs = workerSemaphoreSlotOutput - - var fields []builder.Field - - fields = append(fields, _worker.field()) + v.query.Method = "deleteMany" + v.query.Model = "UserSession" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Outputs = countOutput - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r workerSemaphoreSlotCreateOne) With(params ...WorkerSemaphoreSlotRelationWith) workerSemaphoreSlotCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type workerSemaphoreSlotCreateOne struct { +type userSessionDeleteMany struct { query builder.Query } -func (p workerSemaphoreSlotCreateOne) ExtractQuery() builder.Query { - return p.query +func (r userSessionDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p workerSemaphoreSlotCreateOne) workerSemaphoreSlotModel() {} +func (p userSessionDeleteMany) userSessionModel() {} -func (r workerSemaphoreSlotCreateOne) Exec(ctx context.Context) (*WorkerSemaphoreSlotModel, error) { - var v WorkerSemaphoreSlotModel +func (r userSessionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workerSemaphoreSlotCreateOne) Tx() WorkerSemaphoreSlotUniqueTxResult { - v := newWorkerSemaphoreSlotUniqueTxResult() +func (r userSessionDeleteMany) Tx() UserSessionManyTxResult { + v := newUserSessionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single service. -func (r serviceActions) CreateOne( - _name ServiceWithPrismaNameSetParam, - _tenant ServiceWithPrismaTenantSetParam, - - optional ...ServiceSetParam, -) serviceCreateOne { - var v serviceCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "Service" - v.query.Outputs = serviceOutput - - var fields []builder.Field - - fields = append(fields, _name.field()) - fields = append(fields, _tenant.field()) +type webhookWorkerToTokenFindUnique struct { + query builder.Query +} - for _, q := range optional { - fields = append(fields, q.field()) - } +func (r webhookWorkerToTokenFindUnique) getQuery() builder.Query { + return r.query +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) - return v +func (r webhookWorkerToTokenFindUnique) ExtractQuery() builder.Query { + return r.query } -func (r serviceCreateOne) With(params ...ServiceRelationWith) serviceCreateOne { +func (r webhookWorkerToTokenFindUnique) with() {} +func (r webhookWorkerToTokenFindUnique) webhookWorkerModel() {} +func (r webhookWorkerToTokenFindUnique) webhookWorkerRelation() {} + +func (r webhookWorkerToTokenFindUnique) With(params ...APITokenRelationWith) webhookWorkerToTokenFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -229944,56 +254942,98 @@ func (r serviceCreateOne) With(params ...ServiceRelationWith) serviceCreateOne { return r } -type serviceCreateOne struct { - query builder.Query -} +func (r webhookWorkerToTokenFindUnique) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindUnique { + var outputs []builder.Output -func (p serviceCreateOne) ExtractQuery() builder.Query { - return p.query + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } + + r.query.Outputs = outputs + + return r } -func (p serviceCreateOne) serviceModel() {} +func (r webhookWorkerToTokenFindUnique) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindUnique { + var outputs []builder.Output -func (r serviceCreateOne) Exec(ctx context.Context) (*ServiceModel, error) { - var v ServiceModel + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } + + for _, output := range webhookWorkerOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } + + r.query.Outputs = outputs + + return r +} + +func (r webhookWorkerToTokenFindUnique) Exec(ctx context.Context) ( + *WebhookWorkerModel, + error, +) { + var v *WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r serviceCreateOne) Tx() ServiceUniqueTxResult { - v := newServiceUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + if v == nil { + return nil, ErrNotFound + } + + return v, nil } -// Creates a single tenantVcsProvider. -func (r tenantVcsProviderActions) CreateOne( - _tenant TenantVcsProviderWithPrismaTenantSetParam, - _vcsProvider TenantVcsProviderWithPrismaVcsProviderSetParam, +func (r webhookWorkerToTokenFindUnique) ExecInner(ctx context.Context) ( + *InnerWebhookWorker, + error, +) { + var v *InnerWebhookWorker + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...TenantVcsProviderSetParam, -) tenantVcsProviderCreateOne { - var v tenantVcsProviderCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + if v == nil { + return nil, ErrNotFound + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "TenantVcsProvider" - v.query.Outputs = tenantVcsProviderOutput + return v, nil +} + +func (r webhookWorkerToTokenFindUnique) Update(params ...WebhookWorkerSetParam) webhookWorkerToTokenUpdateUnique { + r.query.Operation = "mutation" + r.query.Method = "updateOne" + r.query.Model = "WebhookWorker" + var v webhookWorkerToTokenUpdateUnique + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _tenant.field()) - fields = append(fields, _vcsProvider.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + field.Value = nil + } + + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -230001,77 +255041,83 @@ func (r tenantVcsProviderActions) CreateOne( return v } -func (r tenantVcsProviderCreateOne) With(params ...TenantVcsProviderRelationWith) tenantVcsProviderCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type tenantVcsProviderCreateOne struct { +type webhookWorkerToTokenUpdateUnique struct { query builder.Query } -func (p tenantVcsProviderCreateOne) ExtractQuery() builder.Query { - return p.query +func (r webhookWorkerToTokenUpdateUnique) ExtractQuery() builder.Query { + return r.query } -func (p tenantVcsProviderCreateOne) tenantVcsProviderModel() {} +func (r webhookWorkerToTokenUpdateUnique) webhookWorkerModel() {} -func (r tenantVcsProviderCreateOne) Exec(ctx context.Context) (*TenantVcsProviderModel, error) { - var v TenantVcsProviderModel +func (r webhookWorkerToTokenUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantVcsProviderCreateOne) Tx() TenantVcsProviderUniqueTxResult { - v := newTenantVcsProviderUniqueTxResult() +func (r webhookWorkerToTokenUpdateUnique) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single tenantAlertEmailGroup. -func (r tenantAlertEmailGroupActions) CreateOne( - _tenant TenantAlertEmailGroupWithPrismaTenantSetParam, - _emails TenantAlertEmailGroupWithPrismaEmailsSetParam, +func (r webhookWorkerToTokenFindUnique) Delete() webhookWorkerToTokenDeleteUnique { + var v webhookWorkerToTokenDeleteUnique + v.query = r.query + v.query.Operation = "mutation" + v.query.Method = "deleteOne" + v.query.Model = "WebhookWorker" - optional ...TenantAlertEmailGroupSetParam, -) tenantAlertEmailGroupCreateOne { - var v tenantAlertEmailGroupCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + return v +} - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "TenantAlertEmailGroup" - v.query.Outputs = tenantAlertEmailGroupOutput +type webhookWorkerToTokenDeleteUnique struct { + query builder.Query +} - var fields []builder.Field +func (r webhookWorkerToTokenDeleteUnique) ExtractQuery() builder.Query { + return r.query +} - fields = append(fields, _tenant.field()) - fields = append(fields, _emails.field()) +func (p webhookWorkerToTokenDeleteUnique) webhookWorkerModel() {} - for _, q := range optional { - fields = append(fields, q.field()) +func (r webhookWorkerToTokenDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err } + return &v, nil +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) +func (r webhookWorkerToTokenDeleteUnique) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantAlertEmailGroupCreateOne) With(params ...TenantAlertEmailGroupRelationWith) tenantAlertEmailGroupCreateOne { +type webhookWorkerToTokenFindFirst struct { + query builder.Query +} + +func (r webhookWorkerToTokenFindFirst) getQuery() builder.Query { + return r.query +} + +func (r webhookWorkerToTokenFindFirst) ExtractQuery() builder.Query { + return r.query +} + +func (r webhookWorkerToTokenFindFirst) with() {} +func (r webhookWorkerToTokenFindFirst) webhookWorkerModel() {} +func (r webhookWorkerToTokenFindFirst) webhookWorkerRelation() {} + +func (r webhookWorkerToTokenFindFirst) With(params ...APITokenRelationWith) webhookWorkerToTokenFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -230084,142 +255130,132 @@ func (r tenantAlertEmailGroupCreateOne) With(params ...TenantAlertEmailGroupRela return r } -type tenantAlertEmailGroupCreateOne struct { - query builder.Query -} +func (r webhookWorkerToTokenFindFirst) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindFirst { + var outputs []builder.Output -func (p tenantAlertEmailGroupCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p tenantAlertEmailGroupCreateOne) tenantAlertEmailGroupModel() {} + r.query.Outputs = outputs -func (r tenantAlertEmailGroupCreateOne) Exec(ctx context.Context) (*TenantAlertEmailGroupModel, error) { - var v TenantAlertEmailGroupModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r tenantAlertEmailGroupCreateOne) Tx() TenantAlertEmailGroupUniqueTxResult { - v := newTenantAlertEmailGroupUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r webhookWorkerToTokenFindFirst) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindFirst { + var outputs []builder.Output -// Creates a single slackAppWebhook. -func (r slackAppWebhookActions) CreateOne( - _tenant SlackAppWebhookWithPrismaTenantSetParam, - _teamID SlackAppWebhookWithPrismaTeamIDSetParam, - _teamName SlackAppWebhookWithPrismaTeamNameSetParam, - _channelID SlackAppWebhookWithPrismaChannelIDSetParam, - _channelName SlackAppWebhookWithPrismaChannelNameSetParam, - _webhookURL SlackAppWebhookWithPrismaWebhookURLSetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...SlackAppWebhookSetParam, -) slackAppWebhookCreateOne { - var v slackAppWebhookCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range webhookWorkerOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "SlackAppWebhook" - v.query.Outputs = slackAppWebhookOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _tenant.field()) - fields = append(fields, _teamID.field()) - fields = append(fields, _teamName.field()) - fields = append(fields, _channelID.field()) - fields = append(fields, _channelName.field()) - fields = append(fields, _webhookURL.field()) +func (r webhookWorkerToTokenFindFirst) OrderBy(params ...APITokenOrderByParam) webhookWorkerToTokenFindFirst { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} - -func (r slackAppWebhookCreateOne) With(params ...SlackAppWebhookRelationWith) slackAppWebhookCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } return r } -type slackAppWebhookCreateOne struct { - query builder.Query +func (r webhookWorkerToTokenFindFirst) Skip(count int) webhookWorkerToTokenFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p slackAppWebhookCreateOne) ExtractQuery() builder.Query { - return p.query +func (r webhookWorkerToTokenFindFirst) Take(count int) webhookWorkerToTokenFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p slackAppWebhookCreateOne) slackAppWebhookModel() {} +func (r webhookWorkerToTokenFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToTokenFindFirst { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (r slackAppWebhookCreateOne) Exec(ctx context.Context) (*SlackAppWebhookModel, error) { - var v SlackAppWebhookModel +func (r webhookWorkerToTokenFindFirst) Exec(ctx context.Context) ( + *WebhookWorkerModel, + error, +) { + var v *WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r slackAppWebhookCreateOne) Tx() SlackAppWebhookUniqueTxResult { - v := newSlackAppWebhookUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} + if v == nil { + return nil, ErrNotFound + } -// Creates a single logLine. -func (r logLineActions) CreateOne( - _tenant LogLineWithPrismaTenantSetParam, - _message LogLineWithPrismaMessageSetParam, + return v, nil +} - optional ...LogLineSetParam, -) logLineCreateOne { - var v logLineCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client +func (r webhookWorkerToTokenFindFirst) ExecInner(ctx context.Context) ( + *InnerWebhookWorker, + error, +) { + var v *InnerWebhookWorker + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "LogLine" - v.query.Outputs = logLineOutput + if v == nil { + return nil, ErrNotFound + } - var fields []builder.Field + return v, nil +} - fields = append(fields, _tenant.field()) - fields = append(fields, _message.field()) +type webhookWorkerToTokenFindMany struct { + query builder.Query +} - for _, q := range optional { - fields = append(fields, q.field()) - } +func (r webhookWorkerToTokenFindMany) getQuery() builder.Query { + return r.query +} - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) - return v +func (r webhookWorkerToTokenFindMany) ExtractQuery() builder.Query { + return r.query } -func (r logLineCreateOne) With(params ...LogLineRelationWith) logLineCreateOne { +func (r webhookWorkerToTokenFindMany) with() {} +func (r webhookWorkerToTokenFindMany) webhookWorkerModel() {} +func (r webhookWorkerToTokenFindMany) webhookWorkerRelation() {} + +func (r webhookWorkerToTokenFindMany) With(params ...APITokenRelationWith) webhookWorkerToTokenFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -230232,126 +255268,136 @@ func (r logLineCreateOne) With(params ...LogLineRelationWith) logLineCreateOne { return r } -type logLineCreateOne struct { - query builder.Query -} +func (r webhookWorkerToTokenFindMany) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindMany { + var outputs []builder.Output -func (p logLineCreateOne) ExtractQuery() builder.Query { - return p.query -} + for _, param := range params { + outputs = append(outputs, builder.Output{ + Name: string(param), + }) + } -func (p logLineCreateOne) logLineModel() {} + r.query.Outputs = outputs -func (r logLineCreateOne) Exec(ctx context.Context) (*LogLineModel, error) { - var v LogLineModel - if err := r.query.Exec(ctx, &v); err != nil { - return nil, err - } - return &v, nil + return r } -func (r logLineCreateOne) Tx() LogLineUniqueTxResult { - v := newLogLineUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v -} +func (r webhookWorkerToTokenFindMany) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindMany { + var outputs []builder.Output -// Creates a single streamEvent. -func (r streamEventActions) CreateOne( - _tenant StreamEventWithPrismaTenantSetParam, - _message StreamEventWithPrismaMessageSetParam, + var raw []string + for _, param := range params { + raw = append(raw, string(param)) + } - optional ...StreamEventSetParam, -) streamEventCreateOne { - var v streamEventCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + for _, output := range webhookWorkerOutput { + if !slices.Contains(raw, output.Name) { + outputs = append(outputs, output) + } + } - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "StreamEvent" - v.query.Outputs = streamEventOutput + r.query.Outputs = outputs - var fields []builder.Field + return r +} - fields = append(fields, _tenant.field()) - fields = append(fields, _message.field()) +func (r webhookWorkerToTokenFindMany) OrderBy(params ...APITokenOrderByParam) webhookWorkerToTokenFindMany { + var fields []builder.Field - for _, q := range optional { - fields = append(fields, q.field()) + for _, param := range params { + fields = append(fields, builder.Field{ + Name: param.field().Name, + Value: param.field().Value, + Fields: param.field().Fields, + }) } - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "orderBy", + Fields: fields, + WrapList: true, }) - return v -} - -func (r streamEventCreateOne) With(params ...StreamEventRelationWith) streamEventCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } return r } -type streamEventCreateOne struct { - query builder.Query +func (r webhookWorkerToTokenFindMany) Skip(count int) webhookWorkerToTokenFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "skip", + Value: count, + }) + return r } -func (p streamEventCreateOne) ExtractQuery() builder.Query { - return p.query +func (r webhookWorkerToTokenFindMany) Take(count int) webhookWorkerToTokenFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "take", + Value: count, + }) + return r } -func (p streamEventCreateOne) streamEventModel() {} +func (r webhookWorkerToTokenFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToTokenFindMany { + r.query.Inputs = append(r.query.Inputs, builder.Input{ + Name: "cursor", + Fields: []builder.Field{cursor.field()}, + }) + return r +} -func (r streamEventCreateOne) Exec(ctx context.Context) (*StreamEventModel, error) { - var v StreamEventModel +func (r webhookWorkerToTokenFindMany) Exec(ctx context.Context) ( + []WebhookWorkerModel, + error, +) { + var v []WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } - return &v, nil -} -func (r streamEventCreateOne) Tx() StreamEventUniqueTxResult { - v := newStreamEventUniqueTxResult() - v.query = r.query - v.query.TxResult = make(chan []byte, 1) - return v + return v, nil } -// Creates a single sNSIntegration. -func (r sNSIntegrationActions) CreateOne( - _tenant SNSIntegrationWithPrismaTenantSetParam, - _topicArn SNSIntegrationWithPrismaTopicArnSetParam, +func (r webhookWorkerToTokenFindMany) ExecInner(ctx context.Context) ( + []InnerWebhookWorker, + error, +) { + var v []InnerWebhookWorker + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } - optional ...SNSIntegrationSetParam, -) sNSIntegrationCreateOne { - var v sNSIntegrationCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client + return v, nil +} - v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "SNSIntegration" - v.query.Outputs = sNSIntegrationOutput +func (r webhookWorkerToTokenFindMany) Update(params ...WebhookWorkerSetParam) webhookWorkerToTokenUpdateMany { + r.query.Operation = "mutation" + r.query.Method = "updateMany" + r.query.Model = "WebhookWorker" + + r.query.Outputs = countOutput + var v webhookWorkerToTokenUpdateMany + v.query = r.query var fields []builder.Field + for _, q := range params { - fields = append(fields, _tenant.field()) - fields = append(fields, _topicArn.field()) + field := q.field() - for _, q := range optional { - fields = append(fields, q.field()) - } + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + fields = append(fields, field) + } v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "data", Fields: fields, @@ -230359,128 +255405,85 @@ func (r sNSIntegrationActions) CreateOne( return v } -func (r sNSIntegrationCreateOne) With(params ...SNSIntegrationRelationWith) sNSIntegrationCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type sNSIntegrationCreateOne struct { +type webhookWorkerToTokenUpdateMany struct { query builder.Query } -func (p sNSIntegrationCreateOne) ExtractQuery() builder.Query { - return p.query +func (r webhookWorkerToTokenUpdateMany) ExtractQuery() builder.Query { + return r.query } -func (p sNSIntegrationCreateOne) sNSIntegrationModel() {} +func (r webhookWorkerToTokenUpdateMany) webhookWorkerModel() {} -func (r sNSIntegrationCreateOne) Exec(ctx context.Context) (*SNSIntegrationModel, error) { - var v SNSIntegrationModel +func (r webhookWorkerToTokenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r sNSIntegrationCreateOne) Tx() SNSIntegrationUniqueTxResult { - v := newSNSIntegrationUniqueTxResult() +func (r webhookWorkerToTokenUpdateMany) Tx() WebhookWorkerManyTxResult { + v := newWebhookWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// Creates a single securityCheckIdent. -func (r securityCheckIdentActions) CreateOne( - - optional ...SecurityCheckIdentSetParam, -) securityCheckIdentCreateOne { - var v securityCheckIdentCreateOne - v.query = builder.NewQuery() - v.query.Engine = r.client - +func (r webhookWorkerToTokenFindMany) Delete() webhookWorkerToTokenDeleteMany { + var v webhookWorkerToTokenDeleteMany + v.query = r.query v.query.Operation = "mutation" - v.query.Method = "createOne" - v.query.Model = "SecurityCheckIdent" - v.query.Outputs = securityCheckIdentOutput - - var fields []builder.Field + v.query.Method = "deleteMany" + v.query.Model = "WebhookWorker" - for _, q := range optional { - fields = append(fields, q.field()) - } + v.query.Outputs = countOutput - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "data", - Fields: fields, - }) return v } -func (r securityCheckIdentCreateOne) With(params ...SecurityCheckIdentRelationWith) securityCheckIdentCreateOne { - for _, q := range params { - query := q.getQuery() - r.query.Outputs = append(r.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } - - return r -} - -type securityCheckIdentCreateOne struct { +type webhookWorkerToTokenDeleteMany struct { query builder.Query } -func (p securityCheckIdentCreateOne) ExtractQuery() builder.Query { - return p.query +func (r webhookWorkerToTokenDeleteMany) ExtractQuery() builder.Query { + return r.query } -func (p securityCheckIdentCreateOne) securityCheckIdentModel() {} +func (p webhookWorkerToTokenDeleteMany) webhookWorkerModel() {} -func (r securityCheckIdentCreateOne) Exec(ctx context.Context) (*SecurityCheckIdentModel, error) { - var v SecurityCheckIdentModel +func (r webhookWorkerToTokenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { + var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r securityCheckIdentCreateOne) Tx() SecurityCheckIdentUniqueTxResult { - v := newSecurityCheckIdentUniqueTxResult() +func (r webhookWorkerToTokenDeleteMany) Tx() WebhookWorkerManyTxResult { + v := newWebhookWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -// --- template find.gotpl --- - -type userToOauthProvidersFindUnique struct { +type webhookWorkerToTenantFindUnique struct { query builder.Query } -func (r userToOauthProvidersFindUnique) getQuery() builder.Query { +func (r webhookWorkerToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r userToOauthProvidersFindUnique) ExtractQuery() builder.Query { +func (r webhookWorkerToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userToOauthProvidersFindUnique) with() {} -func (r userToOauthProvidersFindUnique) userModel() {} -func (r userToOauthProvidersFindUnique) userRelation() {} +func (r webhookWorkerToTenantFindUnique) with() {} +func (r webhookWorkerToTenantFindUnique) webhookWorkerModel() {} +func (r webhookWorkerToTenantFindUnique) webhookWorkerRelation() {} -func (r userToOauthProvidersFindUnique) With(params ...UserOAuthRelationWith) userToOauthProvidersFindUnique { +func (r webhookWorkerToTenantFindUnique) With(params ...TenantRelationWith) webhookWorkerToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -230493,7 +255496,7 @@ func (r userToOauthProvidersFindUnique) With(params ...UserOAuthRelationWith) us return r } -func (r userToOauthProvidersFindUnique) Select(params ...userPrismaFields) userToOauthProvidersFindUnique { +func (r webhookWorkerToTenantFindUnique) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -230507,7 +255510,7 @@ func (r userToOauthProvidersFindUnique) Select(params ...userPrismaFields) userT return r } -func (r userToOauthProvidersFindUnique) Omit(params ...userPrismaFields) userToOauthProvidersFindUnique { +func (r webhookWorkerToTenantFindUnique) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindUnique { var outputs []builder.Output var raw []string @@ -230515,7 +255518,7 @@ func (r userToOauthProvidersFindUnique) Omit(params ...userPrismaFields) userToO raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -230526,11 +255529,11 @@ func (r userToOauthProvidersFindUnique) Omit(params ...userPrismaFields) userToO return r } -func (r userToOauthProvidersFindUnique) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerToTenantFindUnique) Exec(ctx context.Context) ( + *WebhookWorkerModel, error, ) { - var v *UserModel + var v *WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -230542,11 +255545,11 @@ func (r userToOauthProvidersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userToOauthProvidersFindUnique) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerWebhookWorker, error, ) { - var v *InnerUser + var v *InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -230558,12 +255561,12 @@ func (r userToOauthProvidersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userToOauthProvidersFindUnique) Update(params ...UserSetParam) userToOauthProvidersUpdateUnique { +func (r webhookWorkerToTenantFindUnique) Update(params ...WebhookWorkerSetParam) webhookWorkerToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "User" + r.query.Model = "WebhookWorker" - var v userToOauthProvidersUpdateUnique + var v webhookWorkerToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -230592,83 +255595,83 @@ func (r userToOauthProvidersFindUnique) Update(params ...UserSetParam) userToOau return v } -type userToOauthProvidersUpdateUnique struct { +type webhookWorkerToTenantUpdateUnique struct { query builder.Query } -func (r userToOauthProvidersUpdateUnique) ExtractQuery() builder.Query { +func (r webhookWorkerToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userToOauthProvidersUpdateUnique) userModel() {} +func (r webhookWorkerToTenantUpdateUnique) webhookWorkerModel() {} -func (r userToOauthProvidersUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerToTenantUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userToOauthProvidersUpdateUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerToTenantUpdateUnique) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userToOauthProvidersFindUnique) Delete() userToOauthProvidersDeleteUnique { - var v userToOauthProvidersDeleteUnique +func (r webhookWorkerToTenantFindUnique) Delete() webhookWorkerToTenantDeleteUnique { + var v webhookWorkerToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "User" + v.query.Model = "WebhookWorker" return v } -type userToOauthProvidersDeleteUnique struct { +type webhookWorkerToTenantDeleteUnique struct { query builder.Query } -func (r userToOauthProvidersDeleteUnique) ExtractQuery() builder.Query { +func (r webhookWorkerToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userToOauthProvidersDeleteUnique) userModel() {} +func (p webhookWorkerToTenantDeleteUnique) webhookWorkerModel() {} -func (r userToOauthProvidersDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerToTenantDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userToOauthProvidersDeleteUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerToTenantDeleteUnique) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userToOauthProvidersFindFirst struct { +type webhookWorkerToTenantFindFirst struct { query builder.Query } -func (r userToOauthProvidersFindFirst) getQuery() builder.Query { +func (r webhookWorkerToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r userToOauthProvidersFindFirst) ExtractQuery() builder.Query { +func (r webhookWorkerToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userToOauthProvidersFindFirst) with() {} -func (r userToOauthProvidersFindFirst) userModel() {} -func (r userToOauthProvidersFindFirst) userRelation() {} +func (r webhookWorkerToTenantFindFirst) with() {} +func (r webhookWorkerToTenantFindFirst) webhookWorkerModel() {} +func (r webhookWorkerToTenantFindFirst) webhookWorkerRelation() {} -func (r userToOauthProvidersFindFirst) With(params ...UserOAuthRelationWith) userToOauthProvidersFindFirst { +func (r webhookWorkerToTenantFindFirst) With(params ...TenantRelationWith) webhookWorkerToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -230681,7 +255684,7 @@ func (r userToOauthProvidersFindFirst) With(params ...UserOAuthRelationWith) use return r } -func (r userToOauthProvidersFindFirst) Select(params ...userPrismaFields) userToOauthProvidersFindFirst { +func (r webhookWorkerToTenantFindFirst) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -230695,7 +255698,7 @@ func (r userToOauthProvidersFindFirst) Select(params ...userPrismaFields) userTo return r } -func (r userToOauthProvidersFindFirst) Omit(params ...userPrismaFields) userToOauthProvidersFindFirst { +func (r webhookWorkerToTenantFindFirst) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindFirst { var outputs []builder.Output var raw []string @@ -230703,7 +255706,7 @@ func (r userToOauthProvidersFindFirst) Omit(params ...userPrismaFields) userToOa raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -230714,7 +255717,7 @@ func (r userToOauthProvidersFindFirst) Omit(params ...userPrismaFields) userToOa return r } -func (r userToOauthProvidersFindFirst) OrderBy(params ...UserOAuthOrderByParam) userToOauthProvidersFindFirst { +func (r webhookWorkerToTenantFindFirst) OrderBy(params ...TenantOrderByParam) webhookWorkerToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -230734,7 +255737,7 @@ func (r userToOauthProvidersFindFirst) OrderBy(params ...UserOAuthOrderByParam) return r } -func (r userToOauthProvidersFindFirst) Skip(count int) userToOauthProvidersFindFirst { +func (r webhookWorkerToTenantFindFirst) Skip(count int) webhookWorkerToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -230742,7 +255745,7 @@ func (r userToOauthProvidersFindFirst) Skip(count int) userToOauthProvidersFindF return r } -func (r userToOauthProvidersFindFirst) Take(count int) userToOauthProvidersFindFirst { +func (r webhookWorkerToTenantFindFirst) Take(count int) webhookWorkerToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -230750,7 +255753,7 @@ func (r userToOauthProvidersFindFirst) Take(count int) userToOauthProvidersFindF return r } -func (r userToOauthProvidersFindFirst) Cursor(cursor UserCursorParam) userToOauthProvidersFindFirst { +func (r webhookWorkerToTenantFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -230758,11 +255761,11 @@ func (r userToOauthProvidersFindFirst) Cursor(cursor UserCursorParam) userToOaut return r } -func (r userToOauthProvidersFindFirst) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerToTenantFindFirst) Exec(ctx context.Context) ( + *WebhookWorkerModel, error, ) { - var v *UserModel + var v *WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -230774,11 +255777,11 @@ func (r userToOauthProvidersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userToOauthProvidersFindFirst) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerWebhookWorker, error, ) { - var v *InnerUser + var v *InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -230790,23 +255793,23 @@ func (r userToOauthProvidersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userToOauthProvidersFindMany struct { +type webhookWorkerToTenantFindMany struct { query builder.Query } -func (r userToOauthProvidersFindMany) getQuery() builder.Query { +func (r webhookWorkerToTenantFindMany) getQuery() builder.Query { return r.query } -func (r userToOauthProvidersFindMany) ExtractQuery() builder.Query { +func (r webhookWorkerToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r userToOauthProvidersFindMany) with() {} -func (r userToOauthProvidersFindMany) userModel() {} -func (r userToOauthProvidersFindMany) userRelation() {} +func (r webhookWorkerToTenantFindMany) with() {} +func (r webhookWorkerToTenantFindMany) webhookWorkerModel() {} +func (r webhookWorkerToTenantFindMany) webhookWorkerRelation() {} -func (r userToOauthProvidersFindMany) With(params ...UserOAuthRelationWith) userToOauthProvidersFindMany { +func (r webhookWorkerToTenantFindMany) With(params ...TenantRelationWith) webhookWorkerToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -230819,7 +255822,7 @@ func (r userToOauthProvidersFindMany) With(params ...UserOAuthRelationWith) user return r } -func (r userToOauthProvidersFindMany) Select(params ...userPrismaFields) userToOauthProvidersFindMany { +func (r webhookWorkerToTenantFindMany) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -230833,7 +255836,7 @@ func (r userToOauthProvidersFindMany) Select(params ...userPrismaFields) userToO return r } -func (r userToOauthProvidersFindMany) Omit(params ...userPrismaFields) userToOauthProvidersFindMany { +func (r webhookWorkerToTenantFindMany) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindMany { var outputs []builder.Output var raw []string @@ -230841,7 +255844,7 @@ func (r userToOauthProvidersFindMany) Omit(params ...userPrismaFields) userToOau raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -230852,7 +255855,7 @@ func (r userToOauthProvidersFindMany) Omit(params ...userPrismaFields) userToOau return r } -func (r userToOauthProvidersFindMany) OrderBy(params ...UserOAuthOrderByParam) userToOauthProvidersFindMany { +func (r webhookWorkerToTenantFindMany) OrderBy(params ...TenantOrderByParam) webhookWorkerToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -230872,7 +255875,7 @@ func (r userToOauthProvidersFindMany) OrderBy(params ...UserOAuthOrderByParam) u return r } -func (r userToOauthProvidersFindMany) Skip(count int) userToOauthProvidersFindMany { +func (r webhookWorkerToTenantFindMany) Skip(count int) webhookWorkerToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -230880,7 +255883,7 @@ func (r userToOauthProvidersFindMany) Skip(count int) userToOauthProvidersFindMa return r } -func (r userToOauthProvidersFindMany) Take(count int) userToOauthProvidersFindMany { +func (r webhookWorkerToTenantFindMany) Take(count int) webhookWorkerToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -230888,7 +255891,7 @@ func (r userToOauthProvidersFindMany) Take(count int) userToOauthProvidersFindMa return r } -func (r userToOauthProvidersFindMany) Cursor(cursor UserCursorParam) userToOauthProvidersFindMany { +func (r webhookWorkerToTenantFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -230896,11 +255899,11 @@ func (r userToOauthProvidersFindMany) Cursor(cursor UserCursorParam) userToOauth return r } -func (r userToOauthProvidersFindMany) Exec(ctx context.Context) ( - []UserModel, +func (r webhookWorkerToTenantFindMany) Exec(ctx context.Context) ( + []WebhookWorkerModel, error, ) { - var v []UserModel + var v []WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -230908,11 +255911,11 @@ func (r userToOauthProvidersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userToOauthProvidersFindMany) ExecInner(ctx context.Context) ( - []InnerUser, +func (r webhookWorkerToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerWebhookWorker, error, ) { - var v []InnerUser + var v []InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -230920,14 +255923,14 @@ func (r userToOauthProvidersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userToOauthProvidersFindMany) Update(params ...UserSetParam) userToOauthProvidersUpdateMany { +func (r webhookWorkerToTenantFindMany) Update(params ...WebhookWorkerSetParam) webhookWorkerToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "User" + r.query.Model = "WebhookWorker" r.query.Outputs = countOutput - var v userToOauthProvidersUpdateMany + var v webhookWorkerToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -230956,17 +255959,17 @@ func (r userToOauthProvidersFindMany) Update(params ...UserSetParam) userToOauth return v } -type userToOauthProvidersUpdateMany struct { +type webhookWorkerToTenantUpdateMany struct { query builder.Query } -func (r userToOauthProvidersUpdateMany) ExtractQuery() builder.Query { +func (r webhookWorkerToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userToOauthProvidersUpdateMany) userModel() {} +func (r webhookWorkerToTenantUpdateMany) webhookWorkerModel() {} -func (r userToOauthProvidersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -230974,36 +255977,36 @@ func (r userToOauthProvidersUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r userToOauthProvidersUpdateMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerToTenantUpdateMany) Tx() WebhookWorkerManyTxResult { + v := newWebhookWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userToOauthProvidersFindMany) Delete() userToOauthProvidersDeleteMany { - var v userToOauthProvidersDeleteMany +func (r webhookWorkerToTenantFindMany) Delete() webhookWorkerToTenantDeleteMany { + var v webhookWorkerToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "User" + v.query.Model = "WebhookWorker" v.query.Outputs = countOutput return v } -type userToOauthProvidersDeleteMany struct { +type webhookWorkerToTenantDeleteMany struct { query builder.Query } -func (r userToOauthProvidersDeleteMany) ExtractQuery() builder.Query { +func (r webhookWorkerToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userToOauthProvidersDeleteMany) userModel() {} +func (p webhookWorkerToTenantDeleteMany) webhookWorkerModel() {} -func (r userToOauthProvidersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -231011,30 +256014,30 @@ func (r userToOauthProvidersDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r userToOauthProvidersDeleteMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerToTenantDeleteMany) Tx() WebhookWorkerManyTxResult { + v := newWebhookWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userToPasswordFindUnique struct { +type webhookWorkerToWebhookWorkerWorkflowsFindUnique struct { query builder.Query } -func (r userToPasswordFindUnique) getQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) getQuery() builder.Query { return r.query } -func (r userToPasswordFindUnique) ExtractQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userToPasswordFindUnique) with() {} -func (r userToPasswordFindUnique) userModel() {} -func (r userToPasswordFindUnique) userRelation() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) with() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) webhookWorkerModel() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) webhookWorkerRelation() {} -func (r userToPasswordFindUnique) With(params ...UserPasswordRelationWith) userToPasswordFindUnique { +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerToWebhookWorkerWorkflowsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -231047,7 +256050,7 @@ func (r userToPasswordFindUnique) With(params ...UserPasswordRelationWith) userT return r } -func (r userToPasswordFindUnique) Select(params ...userPrismaFields) userToPasswordFindUnique { +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Select(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindUnique { var outputs []builder.Output for _, param := range params { @@ -231061,7 +256064,7 @@ func (r userToPasswordFindUnique) Select(params ...userPrismaFields) userToPassw return r } -func (r userToPasswordFindUnique) Omit(params ...userPrismaFields) userToPasswordFindUnique { +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindUnique { var outputs []builder.Output var raw []string @@ -231069,7 +256072,7 @@ func (r userToPasswordFindUnique) Omit(params ...userPrismaFields) userToPasswor raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -231080,11 +256083,11 @@ func (r userToPasswordFindUnique) Omit(params ...userPrismaFields) userToPasswor return r } -func (r userToPasswordFindUnique) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Exec(ctx context.Context) ( + *WebhookWorkerModel, error, ) { - var v *UserModel + var v *WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231096,11 +256099,11 @@ func (r userToPasswordFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userToPasswordFindUnique) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) ExecInner(ctx context.Context) ( + *InnerWebhookWorker, error, ) { - var v *InnerUser + var v *InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231112,12 +256115,12 @@ func (r userToPasswordFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userToPasswordFindUnique) Update(params ...UserSetParam) userToPasswordUpdateUnique { +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Update(params ...WebhookWorkerSetParam) webhookWorkerToWebhookWorkerWorkflowsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "User" + r.query.Model = "WebhookWorker" - var v userToPasswordUpdateUnique + var v webhookWorkerToWebhookWorkerWorkflowsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -231146,83 +256149,83 @@ func (r userToPasswordFindUnique) Update(params ...UserSetParam) userToPasswordU return v } -type userToPasswordUpdateUnique struct { +type webhookWorkerToWebhookWorkerWorkflowsUpdateUnique struct { query builder.Query } -func (r userToPasswordUpdateUnique) ExtractQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userToPasswordUpdateUnique) userModel() {} +func (r webhookWorkerToWebhookWorkerWorkflowsUpdateUnique) webhookWorkerModel() {} -func (r userToPasswordUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerToWebhookWorkerWorkflowsUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userToPasswordUpdateUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerToWebhookWorkerWorkflowsUpdateUnique) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userToPasswordFindUnique) Delete() userToPasswordDeleteUnique { - var v userToPasswordDeleteUnique +func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Delete() webhookWorkerToWebhookWorkerWorkflowsDeleteUnique { + var v webhookWorkerToWebhookWorkerWorkflowsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "User" + v.query.Model = "WebhookWorker" return v } -type userToPasswordDeleteUnique struct { +type webhookWorkerToWebhookWorkerWorkflowsDeleteUnique struct { query builder.Query } -func (r userToPasswordDeleteUnique) ExtractQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userToPasswordDeleteUnique) userModel() {} +func (p webhookWorkerToWebhookWorkerWorkflowsDeleteUnique) webhookWorkerModel() {} -func (r userToPasswordDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerToWebhookWorkerWorkflowsDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userToPasswordDeleteUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerToWebhookWorkerWorkflowsDeleteUnique) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userToPasswordFindFirst struct { +type webhookWorkerToWebhookWorkerWorkflowsFindFirst struct { query builder.Query } -func (r userToPasswordFindFirst) getQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) getQuery() builder.Query { return r.query } -func (r userToPasswordFindFirst) ExtractQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userToPasswordFindFirst) with() {} -func (r userToPasswordFindFirst) userModel() {} -func (r userToPasswordFindFirst) userRelation() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) with() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) webhookWorkerModel() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) webhookWorkerRelation() {} -func (r userToPasswordFindFirst) With(params ...UserPasswordRelationWith) userToPasswordFindFirst { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerToWebhookWorkerWorkflowsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -231235,7 +256238,7 @@ func (r userToPasswordFindFirst) With(params ...UserPasswordRelationWith) userTo return r } -func (r userToPasswordFindFirst) Select(params ...userPrismaFields) userToPasswordFindFirst { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Select(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindFirst { var outputs []builder.Output for _, param := range params { @@ -231249,7 +256252,7 @@ func (r userToPasswordFindFirst) Select(params ...userPrismaFields) userToPasswo return r } -func (r userToPasswordFindFirst) Omit(params ...userPrismaFields) userToPasswordFindFirst { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindFirst { var outputs []builder.Output var raw []string @@ -231257,7 +256260,7 @@ func (r userToPasswordFindFirst) Omit(params ...userPrismaFields) userToPassword raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -231268,7 +256271,7 @@ func (r userToPasswordFindFirst) Omit(params ...userPrismaFields) userToPassword return r } -func (r userToPasswordFindFirst) OrderBy(params ...UserPasswordOrderByParam) userToPasswordFindFirst { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) webhookWorkerToWebhookWorkerWorkflowsFindFirst { var fields []builder.Field for _, param := range params { @@ -231288,7 +256291,7 @@ func (r userToPasswordFindFirst) OrderBy(params ...UserPasswordOrderByParam) use return r } -func (r userToPasswordFindFirst) Skip(count int) userToPasswordFindFirst { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Skip(count int) webhookWorkerToWebhookWorkerWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -231296,7 +256299,7 @@ func (r userToPasswordFindFirst) Skip(count int) userToPasswordFindFirst { return r } -func (r userToPasswordFindFirst) Take(count int) userToPasswordFindFirst { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Take(count int) webhookWorkerToWebhookWorkerWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -231304,7 +256307,7 @@ func (r userToPasswordFindFirst) Take(count int) userToPasswordFindFirst { return r } -func (r userToPasswordFindFirst) Cursor(cursor UserCursorParam) userToPasswordFindFirst { +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToWebhookWorkerWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -231312,11 +256315,11 @@ func (r userToPasswordFindFirst) Cursor(cursor UserCursorParam) userToPasswordFi return r } -func (r userToPasswordFindFirst) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Exec(ctx context.Context) ( + *WebhookWorkerModel, error, ) { - var v *UserModel + var v *WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231328,11 +256331,11 @@ func (r userToPasswordFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userToPasswordFindFirst) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) ExecInner(ctx context.Context) ( + *InnerWebhookWorker, error, ) { - var v *InnerUser + var v *InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231344,23 +256347,23 @@ func (r userToPasswordFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userToPasswordFindMany struct { +type webhookWorkerToWebhookWorkerWorkflowsFindMany struct { query builder.Query } -func (r userToPasswordFindMany) getQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) getQuery() builder.Query { return r.query } -func (r userToPasswordFindMany) ExtractQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) ExtractQuery() builder.Query { return r.query } -func (r userToPasswordFindMany) with() {} -func (r userToPasswordFindMany) userModel() {} -func (r userToPasswordFindMany) userRelation() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) with() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) webhookWorkerModel() {} +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) webhookWorkerRelation() {} -func (r userToPasswordFindMany) With(params ...UserPasswordRelationWith) userToPasswordFindMany { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerToWebhookWorkerWorkflowsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -231373,7 +256376,7 @@ func (r userToPasswordFindMany) With(params ...UserPasswordRelationWith) userToP return r } -func (r userToPasswordFindMany) Select(params ...userPrismaFields) userToPasswordFindMany { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Select(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindMany { var outputs []builder.Output for _, param := range params { @@ -231387,7 +256390,7 @@ func (r userToPasswordFindMany) Select(params ...userPrismaFields) userToPasswor return r } -func (r userToPasswordFindMany) Omit(params ...userPrismaFields) userToPasswordFindMany { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindMany { var outputs []builder.Output var raw []string @@ -231395,7 +256398,7 @@ func (r userToPasswordFindMany) Omit(params ...userPrismaFields) userToPasswordF raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -231406,7 +256409,7 @@ func (r userToPasswordFindMany) Omit(params ...userPrismaFields) userToPasswordF return r } -func (r userToPasswordFindMany) OrderBy(params ...UserPasswordOrderByParam) userToPasswordFindMany { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) webhookWorkerToWebhookWorkerWorkflowsFindMany { var fields []builder.Field for _, param := range params { @@ -231426,7 +256429,7 @@ func (r userToPasswordFindMany) OrderBy(params ...UserPasswordOrderByParam) user return r } -func (r userToPasswordFindMany) Skip(count int) userToPasswordFindMany { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Skip(count int) webhookWorkerToWebhookWorkerWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -231434,7 +256437,7 @@ func (r userToPasswordFindMany) Skip(count int) userToPasswordFindMany { return r } -func (r userToPasswordFindMany) Take(count int) userToPasswordFindMany { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Take(count int) webhookWorkerToWebhookWorkerWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -231442,7 +256445,7 @@ func (r userToPasswordFindMany) Take(count int) userToPasswordFindMany { return r } -func (r userToPasswordFindMany) Cursor(cursor UserCursorParam) userToPasswordFindMany { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToWebhookWorkerWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -231450,11 +256453,11 @@ func (r userToPasswordFindMany) Cursor(cursor UserCursorParam) userToPasswordFin return r } -func (r userToPasswordFindMany) Exec(ctx context.Context) ( - []UserModel, +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Exec(ctx context.Context) ( + []WebhookWorkerModel, error, ) { - var v []UserModel + var v []WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231462,11 +256465,11 @@ func (r userToPasswordFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userToPasswordFindMany) ExecInner(ctx context.Context) ( - []InnerUser, +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) ExecInner(ctx context.Context) ( + []InnerWebhookWorker, error, ) { - var v []InnerUser + var v []InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231474,14 +256477,14 @@ func (r userToPasswordFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userToPasswordFindMany) Update(params ...UserSetParam) userToPasswordUpdateMany { +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Update(params ...WebhookWorkerSetParam) webhookWorkerToWebhookWorkerWorkflowsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "User" + r.query.Model = "WebhookWorker" r.query.Outputs = countOutput - var v userToPasswordUpdateMany + var v webhookWorkerToWebhookWorkerWorkflowsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -231510,17 +256513,17 @@ func (r userToPasswordFindMany) Update(params ...UserSetParam) userToPasswordUpd return v } -type userToPasswordUpdateMany struct { +type webhookWorkerToWebhookWorkerWorkflowsUpdateMany struct { query builder.Query } -func (r userToPasswordUpdateMany) ExtractQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userToPasswordUpdateMany) userModel() {} +func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) webhookWorkerModel() {} -func (r userToPasswordUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -231528,36 +256531,36 @@ func (r userToPasswordUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r userToPasswordUpdateMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) Tx() WebhookWorkerManyTxResult { + v := newWebhookWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userToPasswordFindMany) Delete() userToPasswordDeleteMany { - var v userToPasswordDeleteMany +func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Delete() webhookWorkerToWebhookWorkerWorkflowsDeleteMany { + var v webhookWorkerToWebhookWorkerWorkflowsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "User" + v.query.Model = "WebhookWorker" v.query.Outputs = countOutput return v } -type userToPasswordDeleteMany struct { +type webhookWorkerToWebhookWorkerWorkflowsDeleteMany struct { query builder.Query } -func (r userToPasswordDeleteMany) ExtractQuery() builder.Query { +func (r webhookWorkerToWebhookWorkerWorkflowsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userToPasswordDeleteMany) userModel() {} +func (p webhookWorkerToWebhookWorkerWorkflowsDeleteMany) webhookWorkerModel() {} -func (r userToPasswordDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerToWebhookWorkerWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -231565,30 +256568,52 @@ func (r userToPasswordDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r userToPasswordDeleteMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerToWebhookWorkerWorkflowsDeleteMany) Tx() WebhookWorkerManyTxResult { + v := newWebhookWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userToSessionsFindUnique struct { +type webhookWorkerFindUnique struct { query builder.Query } -func (r userToSessionsFindUnique) getQuery() builder.Query { +func (r webhookWorkerFindUnique) getQuery() builder.Query { return r.query } -func (r userToSessionsFindUnique) ExtractQuery() builder.Query { +func (r webhookWorkerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userToSessionsFindUnique) with() {} -func (r userToSessionsFindUnique) userModel() {} -func (r userToSessionsFindUnique) userRelation() {} +func (r webhookWorkerFindUnique) with() {} +func (r webhookWorkerFindUnique) webhookWorkerModel() {} +func (r webhookWorkerFindUnique) webhookWorkerRelation() {} -func (r userToSessionsFindUnique) With(params ...UserSessionRelationWith) userToSessionsFindUnique { +func (r webhookWorkerActions) FindUnique( + params WebhookWorkerEqualsUniqueWhereParam, +) webhookWorkerFindUnique { + var v webhookWorkerFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WebhookWorker" + v.query.Outputs = webhookWorkerOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r webhookWorkerFindUnique) With(params ...WebhookWorkerRelationWith) webhookWorkerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -231601,7 +256626,7 @@ func (r userToSessionsFindUnique) With(params ...UserSessionRelationWith) userTo return r } -func (r userToSessionsFindUnique) Select(params ...userPrismaFields) userToSessionsFindUnique { +func (r webhookWorkerFindUnique) Select(params ...webhookWorkerPrismaFields) webhookWorkerFindUnique { var outputs []builder.Output for _, param := range params { @@ -231615,7 +256640,7 @@ func (r userToSessionsFindUnique) Select(params ...userPrismaFields) userToSessi return r } -func (r userToSessionsFindUnique) Omit(params ...userPrismaFields) userToSessionsFindUnique { +func (r webhookWorkerFindUnique) Omit(params ...webhookWorkerPrismaFields) webhookWorkerFindUnique { var outputs []builder.Output var raw []string @@ -231623,7 +256648,7 @@ func (r userToSessionsFindUnique) Omit(params ...userPrismaFields) userToSession raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -231634,11 +256659,11 @@ func (r userToSessionsFindUnique) Omit(params ...userPrismaFields) userToSession return r } -func (r userToSessionsFindUnique) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerFindUnique) Exec(ctx context.Context) ( + *WebhookWorkerModel, error, ) { - var v *UserModel + var v *WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231650,11 +256675,11 @@ func (r userToSessionsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userToSessionsFindUnique) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerFindUnique) ExecInner(ctx context.Context) ( + *InnerWebhookWorker, error, ) { - var v *InnerUser + var v *InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231666,12 +256691,12 @@ func (r userToSessionsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userToSessionsFindUnique) Update(params ...UserSetParam) userToSessionsUpdateUnique { +func (r webhookWorkerFindUnique) Update(params ...WebhookWorkerSetParam) webhookWorkerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "User" + r.query.Model = "WebhookWorker" - var v userToSessionsUpdateUnique + var v webhookWorkerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -231700,83 +256725,120 @@ func (r userToSessionsFindUnique) Update(params ...UserSetParam) userToSessionsU return v } -type userToSessionsUpdateUnique struct { +type webhookWorkerUpdateUnique struct { query builder.Query } -func (r userToSessionsUpdateUnique) ExtractQuery() builder.Query { +func (r webhookWorkerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userToSessionsUpdateUnique) userModel() {} +func (r webhookWorkerUpdateUnique) webhookWorkerModel() {} -func (r userToSessionsUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userToSessionsUpdateUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerUpdateUnique) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userToSessionsFindUnique) Delete() userToSessionsDeleteUnique { - var v userToSessionsDeleteUnique +func (r webhookWorkerFindUnique) Delete() webhookWorkerDeleteUnique { + var v webhookWorkerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "User" + v.query.Model = "WebhookWorker" return v } -type userToSessionsDeleteUnique struct { +type webhookWorkerDeleteUnique struct { query builder.Query } -func (r userToSessionsDeleteUnique) ExtractQuery() builder.Query { +func (r webhookWorkerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userToSessionsDeleteUnique) userModel() {} +func (p webhookWorkerDeleteUnique) webhookWorkerModel() {} -func (r userToSessionsDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { + var v WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userToSessionsDeleteUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerDeleteUnique) Tx() WebhookWorkerUniqueTxResult { + v := newWebhookWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userToSessionsFindFirst struct { +type webhookWorkerFindFirst struct { query builder.Query } -func (r userToSessionsFindFirst) getQuery() builder.Query { +func (r webhookWorkerFindFirst) getQuery() builder.Query { return r.query } -func (r userToSessionsFindFirst) ExtractQuery() builder.Query { +func (r webhookWorkerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userToSessionsFindFirst) with() {} -func (r userToSessionsFindFirst) userModel() {} -func (r userToSessionsFindFirst) userRelation() {} +func (r webhookWorkerFindFirst) with() {} +func (r webhookWorkerFindFirst) webhookWorkerModel() {} +func (r webhookWorkerFindFirst) webhookWorkerRelation() {} -func (r userToSessionsFindFirst) With(params ...UserSessionRelationWith) userToSessionsFindFirst { +func (r webhookWorkerActions) FindFirst( + params ...WebhookWorkerWhereParam, +) webhookWorkerFindFirst { + var v webhookWorkerFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WebhookWorker" + v.query.Outputs = webhookWorkerOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r webhookWorkerFindFirst) With(params ...WebhookWorkerRelationWith) webhookWorkerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -231789,7 +256851,7 @@ func (r userToSessionsFindFirst) With(params ...UserSessionRelationWith) userToS return r } -func (r userToSessionsFindFirst) Select(params ...userPrismaFields) userToSessionsFindFirst { +func (r webhookWorkerFindFirst) Select(params ...webhookWorkerPrismaFields) webhookWorkerFindFirst { var outputs []builder.Output for _, param := range params { @@ -231803,7 +256865,7 @@ func (r userToSessionsFindFirst) Select(params ...userPrismaFields) userToSessio return r } -func (r userToSessionsFindFirst) Omit(params ...userPrismaFields) userToSessionsFindFirst { +func (r webhookWorkerFindFirst) Omit(params ...webhookWorkerPrismaFields) webhookWorkerFindFirst { var outputs []builder.Output var raw []string @@ -231811,7 +256873,7 @@ func (r userToSessionsFindFirst) Omit(params ...userPrismaFields) userToSessions raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -231822,7 +256884,7 @@ func (r userToSessionsFindFirst) Omit(params ...userPrismaFields) userToSessions return r } -func (r userToSessionsFindFirst) OrderBy(params ...UserSessionOrderByParam) userToSessionsFindFirst { +func (r webhookWorkerFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) webhookWorkerFindFirst { var fields []builder.Field for _, param := range params { @@ -231842,7 +256904,7 @@ func (r userToSessionsFindFirst) OrderBy(params ...UserSessionOrderByParam) user return r } -func (r userToSessionsFindFirst) Skip(count int) userToSessionsFindFirst { +func (r webhookWorkerFindFirst) Skip(count int) webhookWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -231850,7 +256912,7 @@ func (r userToSessionsFindFirst) Skip(count int) userToSessionsFindFirst { return r } -func (r userToSessionsFindFirst) Take(count int) userToSessionsFindFirst { +func (r webhookWorkerFindFirst) Take(count int) webhookWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -231858,7 +256920,7 @@ func (r userToSessionsFindFirst) Take(count int) userToSessionsFindFirst { return r } -func (r userToSessionsFindFirst) Cursor(cursor UserCursorParam) userToSessionsFindFirst { +func (r webhookWorkerFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -231866,11 +256928,11 @@ func (r userToSessionsFindFirst) Cursor(cursor UserCursorParam) userToSessionsFi return r } -func (r userToSessionsFindFirst) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerFindFirst) Exec(ctx context.Context) ( + *WebhookWorkerModel, error, ) { - var v *UserModel + var v *WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231882,11 +256944,11 @@ func (r userToSessionsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userToSessionsFindFirst) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerFindFirst) ExecInner(ctx context.Context) ( + *InnerWebhookWorker, error, ) { - var v *InnerUser + var v *InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -231898,23 +256960,60 @@ func (r userToSessionsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userToSessionsFindMany struct { +type webhookWorkerFindMany struct { query builder.Query } -func (r userToSessionsFindMany) getQuery() builder.Query { +func (r webhookWorkerFindMany) getQuery() builder.Query { return r.query } -func (r userToSessionsFindMany) ExtractQuery() builder.Query { +func (r webhookWorkerFindMany) ExtractQuery() builder.Query { return r.query } -func (r userToSessionsFindMany) with() {} -func (r userToSessionsFindMany) userModel() {} -func (r userToSessionsFindMany) userRelation() {} +func (r webhookWorkerFindMany) with() {} +func (r webhookWorkerFindMany) webhookWorkerModel() {} +func (r webhookWorkerFindMany) webhookWorkerRelation() {} -func (r userToSessionsFindMany) With(params ...UserSessionRelationWith) userToSessionsFindMany { +func (r webhookWorkerActions) FindMany( + params ...WebhookWorkerWhereParam, +) webhookWorkerFindMany { + var v webhookWorkerFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WebhookWorker" + v.query.Outputs = webhookWorkerOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r webhookWorkerFindMany) With(params ...WebhookWorkerRelationWith) webhookWorkerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -231927,7 +257026,7 @@ func (r userToSessionsFindMany) With(params ...UserSessionRelationWith) userToSe return r } -func (r userToSessionsFindMany) Select(params ...userPrismaFields) userToSessionsFindMany { +func (r webhookWorkerFindMany) Select(params ...webhookWorkerPrismaFields) webhookWorkerFindMany { var outputs []builder.Output for _, param := range params { @@ -231941,7 +257040,7 @@ func (r userToSessionsFindMany) Select(params ...userPrismaFields) userToSession return r } -func (r userToSessionsFindMany) Omit(params ...userPrismaFields) userToSessionsFindMany { +func (r webhookWorkerFindMany) Omit(params ...webhookWorkerPrismaFields) webhookWorkerFindMany { var outputs []builder.Output var raw []string @@ -231949,7 +257048,7 @@ func (r userToSessionsFindMany) Omit(params ...userPrismaFields) userToSessionsF raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -231960,7 +257059,7 @@ func (r userToSessionsFindMany) Omit(params ...userPrismaFields) userToSessionsF return r } -func (r userToSessionsFindMany) OrderBy(params ...UserSessionOrderByParam) userToSessionsFindMany { +func (r webhookWorkerFindMany) OrderBy(params ...WebhookWorkerOrderByParam) webhookWorkerFindMany { var fields []builder.Field for _, param := range params { @@ -231980,7 +257079,7 @@ func (r userToSessionsFindMany) OrderBy(params ...UserSessionOrderByParam) userT return r } -func (r userToSessionsFindMany) Skip(count int) userToSessionsFindMany { +func (r webhookWorkerFindMany) Skip(count int) webhookWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -231988,7 +257087,7 @@ func (r userToSessionsFindMany) Skip(count int) userToSessionsFindMany { return r } -func (r userToSessionsFindMany) Take(count int) userToSessionsFindMany { +func (r webhookWorkerFindMany) Take(count int) webhookWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -231996,7 +257095,7 @@ func (r userToSessionsFindMany) Take(count int) userToSessionsFindMany { return r } -func (r userToSessionsFindMany) Cursor(cursor UserCursorParam) userToSessionsFindMany { +func (r webhookWorkerFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -232004,11 +257103,11 @@ func (r userToSessionsFindMany) Cursor(cursor UserCursorParam) userToSessionsFin return r } -func (r userToSessionsFindMany) Exec(ctx context.Context) ( - []UserModel, +func (r webhookWorkerFindMany) Exec(ctx context.Context) ( + []WebhookWorkerModel, error, ) { - var v []UserModel + var v []WebhookWorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232016,11 +257115,11 @@ func (r userToSessionsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userToSessionsFindMany) ExecInner(ctx context.Context) ( - []InnerUser, +func (r webhookWorkerFindMany) ExecInner(ctx context.Context) ( + []InnerWebhookWorker, error, ) { - var v []InnerUser + var v []InnerWebhookWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232028,14 +257127,14 @@ func (r userToSessionsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userToSessionsFindMany) Update(params ...UserSetParam) userToSessionsUpdateMany { +func (r webhookWorkerFindMany) Update(params ...WebhookWorkerSetParam) webhookWorkerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "User" + r.query.Model = "WebhookWorker" r.query.Outputs = countOutput - var v userToSessionsUpdateMany + var v webhookWorkerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -232064,17 +257163,17 @@ func (r userToSessionsFindMany) Update(params ...UserSetParam) userToSessionsUpd return v } -type userToSessionsUpdateMany struct { +type webhookWorkerUpdateMany struct { query builder.Query } -func (r userToSessionsUpdateMany) ExtractQuery() builder.Query { +func (r webhookWorkerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userToSessionsUpdateMany) userModel() {} +func (r webhookWorkerUpdateMany) webhookWorkerModel() {} -func (r userToSessionsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -232082,36 +257181,36 @@ func (r userToSessionsUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r userToSessionsUpdateMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerUpdateMany) Tx() WebhookWorkerManyTxResult { + v := newWebhookWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userToSessionsFindMany) Delete() userToSessionsDeleteMany { - var v userToSessionsDeleteMany +func (r webhookWorkerFindMany) Delete() webhookWorkerDeleteMany { + var v webhookWorkerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "User" + v.query.Model = "WebhookWorker" v.query.Outputs = countOutput return v } -type userToSessionsDeleteMany struct { +type webhookWorkerDeleteMany struct { query builder.Query } -func (r userToSessionsDeleteMany) ExtractQuery() builder.Query { +func (r webhookWorkerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userToSessionsDeleteMany) userModel() {} +func (p webhookWorkerDeleteMany) webhookWorkerModel() {} -func (r userToSessionsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -232119,30 +257218,30 @@ func (r userToSessionsDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r userToSessionsDeleteMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerDeleteMany) Tx() WebhookWorkerManyTxResult { + v := newWebhookWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userToMembershipsFindUnique struct { +type webhookWorkerWorkflowToWebhookWorkerFindUnique struct { query builder.Query } -func (r userToMembershipsFindUnique) getQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) getQuery() builder.Query { return r.query } -func (r userToMembershipsFindUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userToMembershipsFindUnique) with() {} -func (r userToMembershipsFindUnique) userModel() {} -func (r userToMembershipsFindUnique) userRelation() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) with() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) webhookWorkerWorkflowRelation() {} -func (r userToMembershipsFindUnique) With(params ...TenantMemberRelationWith) userToMembershipsFindUnique { +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) With(params ...WebhookWorkerRelationWith) webhookWorkerWorkflowToWebhookWorkerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -232155,7 +257254,7 @@ func (r userToMembershipsFindUnique) With(params ...TenantMemberRelationWith) us return r } -func (r userToMembershipsFindUnique) Select(params ...userPrismaFields) userToMembershipsFindUnique { +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindUnique { var outputs []builder.Output for _, param := range params { @@ -232169,7 +257268,7 @@ func (r userToMembershipsFindUnique) Select(params ...userPrismaFields) userToMe return r } -func (r userToMembershipsFindUnique) Omit(params ...userPrismaFields) userToMembershipsFindUnique { +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindUnique { var outputs []builder.Output var raw []string @@ -232177,7 +257276,7 @@ func (r userToMembershipsFindUnique) Omit(params ...userPrismaFields) userToMemb raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -232188,11 +257287,11 @@ func (r userToMembershipsFindUnique) Omit(params ...userPrismaFields) userToMemb return r } -func (r userToMembershipsFindUnique) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Exec(ctx context.Context) ( + *WebhookWorkerWorkflowModel, error, ) { - var v *UserModel + var v *WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232204,11 +257303,11 @@ func (r userToMembershipsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userToMembershipsFindUnique) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) ExecInner(ctx context.Context) ( + *InnerWebhookWorkerWorkflow, error, ) { - var v *InnerUser + var v *InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232220,12 +257319,12 @@ func (r userToMembershipsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userToMembershipsFindUnique) Update(params ...UserSetParam) userToMembershipsUpdateUnique { +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowToWebhookWorkerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "User" + r.query.Model = "WebhookWorkerWorkflow" - var v userToMembershipsUpdateUnique + var v webhookWorkerWorkflowToWebhookWorkerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -232254,83 +257353,83 @@ func (r userToMembershipsFindUnique) Update(params ...UserSetParam) userToMember return v } -type userToMembershipsUpdateUnique struct { +type webhookWorkerWorkflowToWebhookWorkerUpdateUnique struct { query builder.Query } -func (r userToMembershipsUpdateUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userToMembershipsUpdateUnique) userModel() {} +func (r webhookWorkerWorkflowToWebhookWorkerUpdateUnique) webhookWorkerWorkflowModel() {} -func (r userToMembershipsUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerWorkflowToWebhookWorkerUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { + var v WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userToMembershipsUpdateUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerWorkflowToWebhookWorkerUpdateUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { + v := newWebhookWorkerWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userToMembershipsFindUnique) Delete() userToMembershipsDeleteUnique { - var v userToMembershipsDeleteUnique +func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Delete() webhookWorkerWorkflowToWebhookWorkerDeleteUnique { + var v webhookWorkerWorkflowToWebhookWorkerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "User" + v.query.Model = "WebhookWorkerWorkflow" return v } -type userToMembershipsDeleteUnique struct { +type webhookWorkerWorkflowToWebhookWorkerDeleteUnique struct { query builder.Query } -func (r userToMembershipsDeleteUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userToMembershipsDeleteUnique) userModel() {} +func (p webhookWorkerWorkflowToWebhookWorkerDeleteUnique) webhookWorkerWorkflowModel() {} -func (r userToMembershipsDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerWorkflowToWebhookWorkerDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { + var v WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userToMembershipsDeleteUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerWorkflowToWebhookWorkerDeleteUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { + v := newWebhookWorkerWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userToMembershipsFindFirst struct { +type webhookWorkerWorkflowToWebhookWorkerFindFirst struct { query builder.Query } -func (r userToMembershipsFindFirst) getQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) getQuery() builder.Query { return r.query } -func (r userToMembershipsFindFirst) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userToMembershipsFindFirst) with() {} -func (r userToMembershipsFindFirst) userModel() {} -func (r userToMembershipsFindFirst) userRelation() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) with() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) webhookWorkerWorkflowRelation() {} -func (r userToMembershipsFindFirst) With(params ...TenantMemberRelationWith) userToMembershipsFindFirst { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) With(params ...WebhookWorkerRelationWith) webhookWorkerWorkflowToWebhookWorkerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -232343,7 +257442,7 @@ func (r userToMembershipsFindFirst) With(params ...TenantMemberRelationWith) use return r } -func (r userToMembershipsFindFirst) Select(params ...userPrismaFields) userToMembershipsFindFirst { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindFirst { var outputs []builder.Output for _, param := range params { @@ -232357,7 +257456,7 @@ func (r userToMembershipsFindFirst) Select(params ...userPrismaFields) userToMem return r } -func (r userToMembershipsFindFirst) Omit(params ...userPrismaFields) userToMembershipsFindFirst { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindFirst { var outputs []builder.Output var raw []string @@ -232365,7 +257464,7 @@ func (r userToMembershipsFindFirst) Omit(params ...userPrismaFields) userToMembe raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -232376,7 +257475,7 @@ func (r userToMembershipsFindFirst) Omit(params ...userPrismaFields) userToMembe return r } -func (r userToMembershipsFindFirst) OrderBy(params ...TenantMemberOrderByParam) userToMembershipsFindFirst { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) webhookWorkerWorkflowToWebhookWorkerFindFirst { var fields []builder.Field for _, param := range params { @@ -232396,7 +257495,7 @@ func (r userToMembershipsFindFirst) OrderBy(params ...TenantMemberOrderByParam) return r } -func (r userToMembershipsFindFirst) Skip(count int) userToMembershipsFindFirst { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Skip(count int) webhookWorkerWorkflowToWebhookWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -232404,7 +257503,7 @@ func (r userToMembershipsFindFirst) Skip(count int) userToMembershipsFindFirst { return r } -func (r userToMembershipsFindFirst) Take(count int) userToMembershipsFindFirst { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Take(count int) webhookWorkerWorkflowToWebhookWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -232412,7 +257511,7 @@ func (r userToMembershipsFindFirst) Take(count int) userToMembershipsFindFirst { return r } -func (r userToMembershipsFindFirst) Cursor(cursor UserCursorParam) userToMembershipsFindFirst { +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowToWebhookWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -232420,11 +257519,11 @@ func (r userToMembershipsFindFirst) Cursor(cursor UserCursorParam) userToMembers return r } -func (r userToMembershipsFindFirst) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Exec(ctx context.Context) ( + *WebhookWorkerWorkflowModel, error, ) { - var v *UserModel + var v *WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232436,11 +257535,11 @@ func (r userToMembershipsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userToMembershipsFindFirst) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) ExecInner(ctx context.Context) ( + *InnerWebhookWorkerWorkflow, error, ) { - var v *InnerUser + var v *InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232452,23 +257551,23 @@ func (r userToMembershipsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userToMembershipsFindMany struct { +type webhookWorkerWorkflowToWebhookWorkerFindMany struct { query builder.Query } -func (r userToMembershipsFindMany) getQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) getQuery() builder.Query { return r.query } -func (r userToMembershipsFindMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) ExtractQuery() builder.Query { return r.query } -func (r userToMembershipsFindMany) with() {} -func (r userToMembershipsFindMany) userModel() {} -func (r userToMembershipsFindMany) userRelation() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) with() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) webhookWorkerWorkflowRelation() {} -func (r userToMembershipsFindMany) With(params ...TenantMemberRelationWith) userToMembershipsFindMany { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) With(params ...WebhookWorkerRelationWith) webhookWorkerWorkflowToWebhookWorkerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -232481,7 +257580,7 @@ func (r userToMembershipsFindMany) With(params ...TenantMemberRelationWith) user return r } -func (r userToMembershipsFindMany) Select(params ...userPrismaFields) userToMembershipsFindMany { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindMany { var outputs []builder.Output for _, param := range params { @@ -232495,7 +257594,7 @@ func (r userToMembershipsFindMany) Select(params ...userPrismaFields) userToMemb return r } -func (r userToMembershipsFindMany) Omit(params ...userPrismaFields) userToMembershipsFindMany { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindMany { var outputs []builder.Output var raw []string @@ -232503,7 +257602,7 @@ func (r userToMembershipsFindMany) Omit(params ...userPrismaFields) userToMember raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -232514,7 +257613,7 @@ func (r userToMembershipsFindMany) Omit(params ...userPrismaFields) userToMember return r } -func (r userToMembershipsFindMany) OrderBy(params ...TenantMemberOrderByParam) userToMembershipsFindMany { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) OrderBy(params ...WebhookWorkerOrderByParam) webhookWorkerWorkflowToWebhookWorkerFindMany { var fields []builder.Field for _, param := range params { @@ -232534,7 +257633,7 @@ func (r userToMembershipsFindMany) OrderBy(params ...TenantMemberOrderByParam) u return r } -func (r userToMembershipsFindMany) Skip(count int) userToMembershipsFindMany { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Skip(count int) webhookWorkerWorkflowToWebhookWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -232542,7 +257641,7 @@ func (r userToMembershipsFindMany) Skip(count int) userToMembershipsFindMany { return r } -func (r userToMembershipsFindMany) Take(count int) userToMembershipsFindMany { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Take(count int) webhookWorkerWorkflowToWebhookWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -232550,7 +257649,7 @@ func (r userToMembershipsFindMany) Take(count int) userToMembershipsFindMany { return r } -func (r userToMembershipsFindMany) Cursor(cursor UserCursorParam) userToMembershipsFindMany { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowToWebhookWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -232558,11 +257657,11 @@ func (r userToMembershipsFindMany) Cursor(cursor UserCursorParam) userToMembersh return r } -func (r userToMembershipsFindMany) Exec(ctx context.Context) ( - []UserModel, +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Exec(ctx context.Context) ( + []WebhookWorkerWorkflowModel, error, ) { - var v []UserModel + var v []WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232570,11 +257669,11 @@ func (r userToMembershipsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userToMembershipsFindMany) ExecInner(ctx context.Context) ( - []InnerUser, +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) ExecInner(ctx context.Context) ( + []InnerWebhookWorkerWorkflow, error, ) { - var v []InnerUser + var v []InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232582,14 +257681,14 @@ func (r userToMembershipsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userToMembershipsFindMany) Update(params ...UserSetParam) userToMembershipsUpdateMany { +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowToWebhookWorkerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "User" + r.query.Model = "WebhookWorkerWorkflow" r.query.Outputs = countOutput - var v userToMembershipsUpdateMany + var v webhookWorkerWorkflowToWebhookWorkerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -232618,17 +257717,17 @@ func (r userToMembershipsFindMany) Update(params ...UserSetParam) userToMembersh return v } -type userToMembershipsUpdateMany struct { +type webhookWorkerWorkflowToWebhookWorkerUpdateMany struct { query builder.Query } -func (r userToMembershipsUpdateMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userToMembershipsUpdateMany) userModel() {} +func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) webhookWorkerWorkflowModel() {} -func (r userToMembershipsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -232636,36 +257735,36 @@ func (r userToMembershipsUpdateMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r userToMembershipsUpdateMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) Tx() WebhookWorkerWorkflowManyTxResult { + v := newWebhookWorkerWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userToMembershipsFindMany) Delete() userToMembershipsDeleteMany { - var v userToMembershipsDeleteMany +func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Delete() webhookWorkerWorkflowToWebhookWorkerDeleteMany { + var v webhookWorkerWorkflowToWebhookWorkerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "User" + v.query.Model = "WebhookWorkerWorkflow" v.query.Outputs = countOutput return v } -type userToMembershipsDeleteMany struct { +type webhookWorkerWorkflowToWebhookWorkerDeleteMany struct { query builder.Query } -func (r userToMembershipsDeleteMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWebhookWorkerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userToMembershipsDeleteMany) userModel() {} +func (p webhookWorkerWorkflowToWebhookWorkerDeleteMany) webhookWorkerWorkflowModel() {} -func (r userToMembershipsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerWorkflowToWebhookWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -232673,52 +257772,30 @@ func (r userToMembershipsDeleteMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r userToMembershipsDeleteMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerWorkflowToWebhookWorkerDeleteMany) Tx() WebhookWorkerWorkflowManyTxResult { + v := newWebhookWorkerWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userFindUnique struct { +type webhookWorkerWorkflowToWorkflowFindUnique struct { query builder.Query } -func (r userFindUnique) getQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowFindUnique) getQuery() builder.Query { return r.query } -func (r userFindUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userFindUnique) with() {} -func (r userFindUnique) userModel() {} -func (r userFindUnique) userRelation() {} - -func (r userActions) FindUnique( - params UserEqualsUniqueWhereParam, -) userFindUnique { - var v userFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "User" - v.query.Outputs = userOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r webhookWorkerWorkflowToWorkflowFindUnique) with() {} +func (r webhookWorkerWorkflowToWorkflowFindUnique) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowToWorkflowFindUnique) webhookWorkerWorkflowRelation() {} -func (r userFindUnique) With(params ...UserRelationWith) userFindUnique { +func (r webhookWorkerWorkflowToWorkflowFindUnique) With(params ...WorkflowRelationWith) webhookWorkerWorkflowToWorkflowFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -232731,7 +257808,7 @@ func (r userFindUnique) With(params ...UserRelationWith) userFindUnique { return r } -func (r userFindUnique) Select(params ...userPrismaFields) userFindUnique { +func (r webhookWorkerWorkflowToWorkflowFindUnique) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindUnique { var outputs []builder.Output for _, param := range params { @@ -232745,7 +257822,7 @@ func (r userFindUnique) Select(params ...userPrismaFields) userFindUnique { return r } -func (r userFindUnique) Omit(params ...userPrismaFields) userFindUnique { +func (r webhookWorkerWorkflowToWorkflowFindUnique) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindUnique { var outputs []builder.Output var raw []string @@ -232753,7 +257830,7 @@ func (r userFindUnique) Omit(params ...userPrismaFields) userFindUnique { raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -232764,11 +257841,11 @@ func (r userFindUnique) Omit(params ...userPrismaFields) userFindUnique { return r } -func (r userFindUnique) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerWorkflowToWorkflowFindUnique) Exec(ctx context.Context) ( + *WebhookWorkerWorkflowModel, error, ) { - var v *UserModel + var v *WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232780,11 +257857,11 @@ func (r userFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userFindUnique) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerWorkflowToWorkflowFindUnique) ExecInner(ctx context.Context) ( + *InnerWebhookWorkerWorkflow, error, ) { - var v *InnerUser + var v *InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -232796,12 +257873,12 @@ func (r userFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userFindUnique) Update(params ...UserSetParam) userUpdateUnique { +func (r webhookWorkerWorkflowToWorkflowFindUnique) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowToWorkflowUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "User" + r.query.Model = "WebhookWorkerWorkflow" - var v userUpdateUnique + var v webhookWorkerWorkflowToWorkflowUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -232830,120 +257907,83 @@ func (r userFindUnique) Update(params ...UserSetParam) userUpdateUnique { return v } -type userUpdateUnique struct { +type webhookWorkerWorkflowToWorkflowUpdateUnique struct { query builder.Query } -func (r userUpdateUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userUpdateUnique) userModel() {} +func (r webhookWorkerWorkflowToWorkflowUpdateUnique) webhookWorkerWorkflowModel() {} -func (r userUpdateUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerWorkflowToWorkflowUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { + var v WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userUpdateUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerWorkflowToWorkflowUpdateUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { + v := newWebhookWorkerWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userFindUnique) Delete() userDeleteUnique { - var v userDeleteUnique +func (r webhookWorkerWorkflowToWorkflowFindUnique) Delete() webhookWorkerWorkflowToWorkflowDeleteUnique { + var v webhookWorkerWorkflowToWorkflowDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "User" + v.query.Model = "WebhookWorkerWorkflow" return v } -type userDeleteUnique struct { +type webhookWorkerWorkflowToWorkflowDeleteUnique struct { query builder.Query } -func (r userDeleteUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userDeleteUnique) userModel() {} +func (p webhookWorkerWorkflowToWorkflowDeleteUnique) webhookWorkerWorkflowModel() {} -func (r userDeleteUnique) Exec(ctx context.Context) (*UserModel, error) { - var v UserModel +func (r webhookWorkerWorkflowToWorkflowDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { + var v WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userDeleteUnique) Tx() UserUniqueTxResult { - v := newUserUniqueTxResult() +func (r webhookWorkerWorkflowToWorkflowDeleteUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { + v := newWebhookWorkerWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userFindFirst struct { +type webhookWorkerWorkflowToWorkflowFindFirst struct { query builder.Query } -func (r userFindFirst) getQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowFindFirst) getQuery() builder.Query { return r.query } -func (r userFindFirst) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userFindFirst) with() {} -func (r userFindFirst) userModel() {} -func (r userFindFirst) userRelation() {} - -func (r userActions) FindFirst( - params ...UserWhereParam, -) userFindFirst { - var v userFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "User" - v.query.Outputs = userOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r webhookWorkerWorkflowToWorkflowFindFirst) with() {} +func (r webhookWorkerWorkflowToWorkflowFindFirst) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowToWorkflowFindFirst) webhookWorkerWorkflowRelation() {} -func (r userFindFirst) With(params ...UserRelationWith) userFindFirst { +func (r webhookWorkerWorkflowToWorkflowFindFirst) With(params ...WorkflowRelationWith) webhookWorkerWorkflowToWorkflowFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -232956,7 +257996,7 @@ func (r userFindFirst) With(params ...UserRelationWith) userFindFirst { return r } -func (r userFindFirst) Select(params ...userPrismaFields) userFindFirst { +func (r webhookWorkerWorkflowToWorkflowFindFirst) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindFirst { var outputs []builder.Output for _, param := range params { @@ -232970,7 +258010,7 @@ func (r userFindFirst) Select(params ...userPrismaFields) userFindFirst { return r } -func (r userFindFirst) Omit(params ...userPrismaFields) userFindFirst { +func (r webhookWorkerWorkflowToWorkflowFindFirst) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindFirst { var outputs []builder.Output var raw []string @@ -232978,7 +258018,7 @@ func (r userFindFirst) Omit(params ...userPrismaFields) userFindFirst { raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -232989,7 +258029,7 @@ func (r userFindFirst) Omit(params ...userPrismaFields) userFindFirst { return r } -func (r userFindFirst) OrderBy(params ...UserOrderByParam) userFindFirst { +func (r webhookWorkerWorkflowToWorkflowFindFirst) OrderBy(params ...WorkflowOrderByParam) webhookWorkerWorkflowToWorkflowFindFirst { var fields []builder.Field for _, param := range params { @@ -233009,7 +258049,7 @@ func (r userFindFirst) OrderBy(params ...UserOrderByParam) userFindFirst { return r } -func (r userFindFirst) Skip(count int) userFindFirst { +func (r webhookWorkerWorkflowToWorkflowFindFirst) Skip(count int) webhookWorkerWorkflowToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -233017,7 +258057,7 @@ func (r userFindFirst) Skip(count int) userFindFirst { return r } -func (r userFindFirst) Take(count int) userFindFirst { +func (r webhookWorkerWorkflowToWorkflowFindFirst) Take(count int) webhookWorkerWorkflowToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -233025,7 +258065,7 @@ func (r userFindFirst) Take(count int) userFindFirst { return r } -func (r userFindFirst) Cursor(cursor UserCursorParam) userFindFirst { +func (r webhookWorkerWorkflowToWorkflowFindFirst) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -233033,11 +258073,11 @@ func (r userFindFirst) Cursor(cursor UserCursorParam) userFindFirst { return r } -func (r userFindFirst) Exec(ctx context.Context) ( - *UserModel, +func (r webhookWorkerWorkflowToWorkflowFindFirst) Exec(ctx context.Context) ( + *WebhookWorkerWorkflowModel, error, ) { - var v *UserModel + var v *WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233049,11 +258089,11 @@ func (r userFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userFindFirst) ExecInner(ctx context.Context) ( - *InnerUser, +func (r webhookWorkerWorkflowToWorkflowFindFirst) ExecInner(ctx context.Context) ( + *InnerWebhookWorkerWorkflow, error, ) { - var v *InnerUser + var v *InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233065,60 +258105,23 @@ func (r userFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userFindMany struct { +type webhookWorkerWorkflowToWorkflowFindMany struct { query builder.Query } -func (r userFindMany) getQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowFindMany) getQuery() builder.Query { return r.query } -func (r userFindMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowFindMany) ExtractQuery() builder.Query { return r.query } -func (r userFindMany) with() {} -func (r userFindMany) userModel() {} -func (r userFindMany) userRelation() {} - -func (r userActions) FindMany( - params ...UserWhereParam, -) userFindMany { - var v userFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "User" - v.query.Outputs = userOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r webhookWorkerWorkflowToWorkflowFindMany) with() {} +func (r webhookWorkerWorkflowToWorkflowFindMany) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowToWorkflowFindMany) webhookWorkerWorkflowRelation() {} -func (r userFindMany) With(params ...UserRelationWith) userFindMany { +func (r webhookWorkerWorkflowToWorkflowFindMany) With(params ...WorkflowRelationWith) webhookWorkerWorkflowToWorkflowFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -233131,7 +258134,7 @@ func (r userFindMany) With(params ...UserRelationWith) userFindMany { return r } -func (r userFindMany) Select(params ...userPrismaFields) userFindMany { +func (r webhookWorkerWorkflowToWorkflowFindMany) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindMany { var outputs []builder.Output for _, param := range params { @@ -233145,7 +258148,7 @@ func (r userFindMany) Select(params ...userPrismaFields) userFindMany { return r } -func (r userFindMany) Omit(params ...userPrismaFields) userFindMany { +func (r webhookWorkerWorkflowToWorkflowFindMany) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindMany { var outputs []builder.Output var raw []string @@ -233153,7 +258156,7 @@ func (r userFindMany) Omit(params ...userPrismaFields) userFindMany { raw = append(raw, string(param)) } - for _, output := range userOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -233164,7 +258167,7 @@ func (r userFindMany) Omit(params ...userPrismaFields) userFindMany { return r } -func (r userFindMany) OrderBy(params ...UserOrderByParam) userFindMany { +func (r webhookWorkerWorkflowToWorkflowFindMany) OrderBy(params ...WorkflowOrderByParam) webhookWorkerWorkflowToWorkflowFindMany { var fields []builder.Field for _, param := range params { @@ -233184,7 +258187,7 @@ func (r userFindMany) OrderBy(params ...UserOrderByParam) userFindMany { return r } -func (r userFindMany) Skip(count int) userFindMany { +func (r webhookWorkerWorkflowToWorkflowFindMany) Skip(count int) webhookWorkerWorkflowToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -233192,7 +258195,7 @@ func (r userFindMany) Skip(count int) userFindMany { return r } -func (r userFindMany) Take(count int) userFindMany { +func (r webhookWorkerWorkflowToWorkflowFindMany) Take(count int) webhookWorkerWorkflowToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -233200,7 +258203,7 @@ func (r userFindMany) Take(count int) userFindMany { return r } -func (r userFindMany) Cursor(cursor UserCursorParam) userFindMany { +func (r webhookWorkerWorkflowToWorkflowFindMany) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -233208,11 +258211,11 @@ func (r userFindMany) Cursor(cursor UserCursorParam) userFindMany { return r } -func (r userFindMany) Exec(ctx context.Context) ( - []UserModel, +func (r webhookWorkerWorkflowToWorkflowFindMany) Exec(ctx context.Context) ( + []WebhookWorkerWorkflowModel, error, ) { - var v []UserModel + var v []WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233220,11 +258223,11 @@ func (r userFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userFindMany) ExecInner(ctx context.Context) ( - []InnerUser, +func (r webhookWorkerWorkflowToWorkflowFindMany) ExecInner(ctx context.Context) ( + []InnerWebhookWorkerWorkflow, error, ) { - var v []InnerUser + var v []InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233232,14 +258235,14 @@ func (r userFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userFindMany) Update(params ...UserSetParam) userUpdateMany { +func (r webhookWorkerWorkflowToWorkflowFindMany) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowToWorkflowUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "User" + r.query.Model = "WebhookWorkerWorkflow" r.query.Outputs = countOutput - var v userUpdateMany + var v webhookWorkerWorkflowToWorkflowUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -233268,17 +258271,17 @@ func (r userFindMany) Update(params ...UserSetParam) userUpdateMany { return v } -type userUpdateMany struct { +type webhookWorkerWorkflowToWorkflowUpdateMany struct { query builder.Query } -func (r userUpdateMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userUpdateMany) userModel() {} +func (r webhookWorkerWorkflowToWorkflowUpdateMany) webhookWorkerWorkflowModel() {} -func (r userUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerWorkflowToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -233286,36 +258289,36 @@ func (r userUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r userUpdateMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerWorkflowToWorkflowUpdateMany) Tx() WebhookWorkerWorkflowManyTxResult { + v := newWebhookWorkerWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userFindMany) Delete() userDeleteMany { - var v userDeleteMany +func (r webhookWorkerWorkflowToWorkflowFindMany) Delete() webhookWorkerWorkflowToWorkflowDeleteMany { + var v webhookWorkerWorkflowToWorkflowDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "User" + v.query.Model = "WebhookWorkerWorkflow" v.query.Outputs = countOutput return v } -type userDeleteMany struct { +type webhookWorkerWorkflowToWorkflowDeleteMany struct { query builder.Query } -func (r userDeleteMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowToWorkflowDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userDeleteMany) userModel() {} +func (p webhookWorkerWorkflowToWorkflowDeleteMany) webhookWorkerWorkflowModel() {} -func (r userDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerWorkflowToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -233323,30 +258326,52 @@ func (r userDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r userDeleteMany) Tx() UserManyTxResult { - v := newUserManyTxResult() +func (r webhookWorkerWorkflowToWorkflowDeleteMany) Tx() WebhookWorkerWorkflowManyTxResult { + v := newWebhookWorkerWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userOAuthToUserFindUnique struct { +type webhookWorkerWorkflowFindUnique struct { query builder.Query } -func (r userOAuthToUserFindUnique) getQuery() builder.Query { +func (r webhookWorkerWorkflowFindUnique) getQuery() builder.Query { return r.query } -func (r userOAuthToUserFindUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userOAuthToUserFindUnique) with() {} -func (r userOAuthToUserFindUnique) userOAuthModel() {} -func (r userOAuthToUserFindUnique) userOAuthRelation() {} +func (r webhookWorkerWorkflowFindUnique) with() {} +func (r webhookWorkerWorkflowFindUnique) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowFindUnique) webhookWorkerWorkflowRelation() {} -func (r userOAuthToUserFindUnique) With(params ...UserRelationWith) userOAuthToUserFindUnique { +func (r webhookWorkerWorkflowActions) FindUnique( + params WebhookWorkerWorkflowEqualsUniqueWhereParam, +) webhookWorkerWorkflowFindUnique { + var v webhookWorkerWorkflowFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WebhookWorkerWorkflow" + v.query.Outputs = webhookWorkerWorkflowOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r webhookWorkerWorkflowFindUnique) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerWorkflowFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -233359,7 +258384,7 @@ func (r userOAuthToUserFindUnique) With(params ...UserRelationWith) userOAuthToU return r } -func (r userOAuthToUserFindUnique) Select(params ...userOAuthPrismaFields) userOAuthToUserFindUnique { +func (r webhookWorkerWorkflowFindUnique) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindUnique { var outputs []builder.Output for _, param := range params { @@ -233373,7 +258398,7 @@ func (r userOAuthToUserFindUnique) Select(params ...userOAuthPrismaFields) userO return r } -func (r userOAuthToUserFindUnique) Omit(params ...userOAuthPrismaFields) userOAuthToUserFindUnique { +func (r webhookWorkerWorkflowFindUnique) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindUnique { var outputs []builder.Output var raw []string @@ -233381,7 +258406,7 @@ func (r userOAuthToUserFindUnique) Omit(params ...userOAuthPrismaFields) userOAu raw = append(raw, string(param)) } - for _, output := range userOAuthOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -233392,11 +258417,11 @@ func (r userOAuthToUserFindUnique) Omit(params ...userOAuthPrismaFields) userOAu return r } -func (r userOAuthToUserFindUnique) Exec(ctx context.Context) ( - *UserOAuthModel, +func (r webhookWorkerWorkflowFindUnique) Exec(ctx context.Context) ( + *WebhookWorkerWorkflowModel, error, ) { - var v *UserOAuthModel + var v *WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233408,11 +258433,11 @@ func (r userOAuthToUserFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userOAuthToUserFindUnique) ExecInner(ctx context.Context) ( - *InnerUserOAuth, +func (r webhookWorkerWorkflowFindUnique) ExecInner(ctx context.Context) ( + *InnerWebhookWorkerWorkflow, error, ) { - var v *InnerUserOAuth + var v *InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233424,12 +258449,12 @@ func (r userOAuthToUserFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userOAuthToUserFindUnique) Update(params ...UserOAuthSetParam) userOAuthToUserUpdateUnique { +func (r webhookWorkerWorkflowFindUnique) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "UserOAuth" + r.query.Model = "WebhookWorkerWorkflow" - var v userOAuthToUserUpdateUnique + var v webhookWorkerWorkflowUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -233458,83 +258483,120 @@ func (r userOAuthToUserFindUnique) Update(params ...UserOAuthSetParam) userOAuth return v } -type userOAuthToUserUpdateUnique struct { +type webhookWorkerWorkflowUpdateUnique struct { query builder.Query } -func (r userOAuthToUserUpdateUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userOAuthToUserUpdateUnique) userOAuthModel() {} +func (r webhookWorkerWorkflowUpdateUnique) webhookWorkerWorkflowModel() {} -func (r userOAuthToUserUpdateUnique) Exec(ctx context.Context) (*UserOAuthModel, error) { - var v UserOAuthModel +func (r webhookWorkerWorkflowUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { + var v WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userOAuthToUserUpdateUnique) Tx() UserOAuthUniqueTxResult { - v := newUserOAuthUniqueTxResult() +func (r webhookWorkerWorkflowUpdateUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { + v := newWebhookWorkerWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userOAuthToUserFindUnique) Delete() userOAuthToUserDeleteUnique { - var v userOAuthToUserDeleteUnique +func (r webhookWorkerWorkflowFindUnique) Delete() webhookWorkerWorkflowDeleteUnique { + var v webhookWorkerWorkflowDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "UserOAuth" + v.query.Model = "WebhookWorkerWorkflow" return v } -type userOAuthToUserDeleteUnique struct { +type webhookWorkerWorkflowDeleteUnique struct { query builder.Query } -func (r userOAuthToUserDeleteUnique) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userOAuthToUserDeleteUnique) userOAuthModel() {} +func (p webhookWorkerWorkflowDeleteUnique) webhookWorkerWorkflowModel() {} -func (r userOAuthToUserDeleteUnique) Exec(ctx context.Context) (*UserOAuthModel, error) { - var v UserOAuthModel +func (r webhookWorkerWorkflowDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { + var v WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userOAuthToUserDeleteUnique) Tx() UserOAuthUniqueTxResult { - v := newUserOAuthUniqueTxResult() +func (r webhookWorkerWorkflowDeleteUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { + v := newWebhookWorkerWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userOAuthToUserFindFirst struct { +type webhookWorkerWorkflowFindFirst struct { query builder.Query } -func (r userOAuthToUserFindFirst) getQuery() builder.Query { +func (r webhookWorkerWorkflowFindFirst) getQuery() builder.Query { return r.query } -func (r userOAuthToUserFindFirst) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userOAuthToUserFindFirst) with() {} -func (r userOAuthToUserFindFirst) userOAuthModel() {} -func (r userOAuthToUserFindFirst) userOAuthRelation() {} +func (r webhookWorkerWorkflowFindFirst) with() {} +func (r webhookWorkerWorkflowFindFirst) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowFindFirst) webhookWorkerWorkflowRelation() {} -func (r userOAuthToUserFindFirst) With(params ...UserRelationWith) userOAuthToUserFindFirst { +func (r webhookWorkerWorkflowActions) FindFirst( + params ...WebhookWorkerWorkflowWhereParam, +) webhookWorkerWorkflowFindFirst { + var v webhookWorkerWorkflowFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WebhookWorkerWorkflow" + v.query.Outputs = webhookWorkerWorkflowOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r webhookWorkerWorkflowFindFirst) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerWorkflowFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -233547,7 +258609,7 @@ func (r userOAuthToUserFindFirst) With(params ...UserRelationWith) userOAuthToUs return r } -func (r userOAuthToUserFindFirst) Select(params ...userOAuthPrismaFields) userOAuthToUserFindFirst { +func (r webhookWorkerWorkflowFindFirst) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindFirst { var outputs []builder.Output for _, param := range params { @@ -233561,7 +258623,7 @@ func (r userOAuthToUserFindFirst) Select(params ...userOAuthPrismaFields) userOA return r } -func (r userOAuthToUserFindFirst) Omit(params ...userOAuthPrismaFields) userOAuthToUserFindFirst { +func (r webhookWorkerWorkflowFindFirst) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindFirst { var outputs []builder.Output var raw []string @@ -233569,7 +258631,7 @@ func (r userOAuthToUserFindFirst) Omit(params ...userOAuthPrismaFields) userOAut raw = append(raw, string(param)) } - for _, output := range userOAuthOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -233580,7 +258642,7 @@ func (r userOAuthToUserFindFirst) Omit(params ...userOAuthPrismaFields) userOAut return r } -func (r userOAuthToUserFindFirst) OrderBy(params ...UserOrderByParam) userOAuthToUserFindFirst { +func (r webhookWorkerWorkflowFindFirst) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) webhookWorkerWorkflowFindFirst { var fields []builder.Field for _, param := range params { @@ -233600,7 +258662,7 @@ func (r userOAuthToUserFindFirst) OrderBy(params ...UserOrderByParam) userOAuthT return r } -func (r userOAuthToUserFindFirst) Skip(count int) userOAuthToUserFindFirst { +func (r webhookWorkerWorkflowFindFirst) Skip(count int) webhookWorkerWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -233608,7 +258670,7 @@ func (r userOAuthToUserFindFirst) Skip(count int) userOAuthToUserFindFirst { return r } -func (r userOAuthToUserFindFirst) Take(count int) userOAuthToUserFindFirst { +func (r webhookWorkerWorkflowFindFirst) Take(count int) webhookWorkerWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -233616,7 +258678,7 @@ func (r userOAuthToUserFindFirst) Take(count int) userOAuthToUserFindFirst { return r } -func (r userOAuthToUserFindFirst) Cursor(cursor UserOAuthCursorParam) userOAuthToUserFindFirst { +func (r webhookWorkerWorkflowFindFirst) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -233624,11 +258686,11 @@ func (r userOAuthToUserFindFirst) Cursor(cursor UserOAuthCursorParam) userOAuthT return r } -func (r userOAuthToUserFindFirst) Exec(ctx context.Context) ( - *UserOAuthModel, +func (r webhookWorkerWorkflowFindFirst) Exec(ctx context.Context) ( + *WebhookWorkerWorkflowModel, error, ) { - var v *UserOAuthModel + var v *WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233640,11 +258702,11 @@ func (r userOAuthToUserFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userOAuthToUserFindFirst) ExecInner(ctx context.Context) ( - *InnerUserOAuth, +func (r webhookWorkerWorkflowFindFirst) ExecInner(ctx context.Context) ( + *InnerWebhookWorkerWorkflow, error, ) { - var v *InnerUserOAuth + var v *InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233656,23 +258718,60 @@ func (r userOAuthToUserFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userOAuthToUserFindMany struct { +type webhookWorkerWorkflowFindMany struct { query builder.Query } -func (r userOAuthToUserFindMany) getQuery() builder.Query { +func (r webhookWorkerWorkflowFindMany) getQuery() builder.Query { return r.query } -func (r userOAuthToUserFindMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowFindMany) ExtractQuery() builder.Query { return r.query } -func (r userOAuthToUserFindMany) with() {} -func (r userOAuthToUserFindMany) userOAuthModel() {} -func (r userOAuthToUserFindMany) userOAuthRelation() {} +func (r webhookWorkerWorkflowFindMany) with() {} +func (r webhookWorkerWorkflowFindMany) webhookWorkerWorkflowModel() {} +func (r webhookWorkerWorkflowFindMany) webhookWorkerWorkflowRelation() {} -func (r userOAuthToUserFindMany) With(params ...UserRelationWith) userOAuthToUserFindMany { +func (r webhookWorkerWorkflowActions) FindMany( + params ...WebhookWorkerWorkflowWhereParam, +) webhookWorkerWorkflowFindMany { + var v webhookWorkerWorkflowFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WebhookWorkerWorkflow" + v.query.Outputs = webhookWorkerWorkflowOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r webhookWorkerWorkflowFindMany) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerWorkflowFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -233685,7 +258784,7 @@ func (r userOAuthToUserFindMany) With(params ...UserRelationWith) userOAuthToUse return r } -func (r userOAuthToUserFindMany) Select(params ...userOAuthPrismaFields) userOAuthToUserFindMany { +func (r webhookWorkerWorkflowFindMany) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindMany { var outputs []builder.Output for _, param := range params { @@ -233699,7 +258798,7 @@ func (r userOAuthToUserFindMany) Select(params ...userOAuthPrismaFields) userOAu return r } -func (r userOAuthToUserFindMany) Omit(params ...userOAuthPrismaFields) userOAuthToUserFindMany { +func (r webhookWorkerWorkflowFindMany) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindMany { var outputs []builder.Output var raw []string @@ -233707,7 +258806,7 @@ func (r userOAuthToUserFindMany) Omit(params ...userOAuthPrismaFields) userOAuth raw = append(raw, string(param)) } - for _, output := range userOAuthOutput { + for _, output := range webhookWorkerWorkflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -233718,7 +258817,7 @@ func (r userOAuthToUserFindMany) Omit(params ...userOAuthPrismaFields) userOAuth return r } -func (r userOAuthToUserFindMany) OrderBy(params ...UserOrderByParam) userOAuthToUserFindMany { +func (r webhookWorkerWorkflowFindMany) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) webhookWorkerWorkflowFindMany { var fields []builder.Field for _, param := range params { @@ -233738,7 +258837,7 @@ func (r userOAuthToUserFindMany) OrderBy(params ...UserOrderByParam) userOAuthTo return r } -func (r userOAuthToUserFindMany) Skip(count int) userOAuthToUserFindMany { +func (r webhookWorkerWorkflowFindMany) Skip(count int) webhookWorkerWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -233746,7 +258845,7 @@ func (r userOAuthToUserFindMany) Skip(count int) userOAuthToUserFindMany { return r } -func (r userOAuthToUserFindMany) Take(count int) userOAuthToUserFindMany { +func (r webhookWorkerWorkflowFindMany) Take(count int) webhookWorkerWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -233754,7 +258853,7 @@ func (r userOAuthToUserFindMany) Take(count int) userOAuthToUserFindMany { return r } -func (r userOAuthToUserFindMany) Cursor(cursor UserOAuthCursorParam) userOAuthToUserFindMany { +func (r webhookWorkerWorkflowFindMany) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -233762,11 +258861,11 @@ func (r userOAuthToUserFindMany) Cursor(cursor UserOAuthCursorParam) userOAuthTo return r } -func (r userOAuthToUserFindMany) Exec(ctx context.Context) ( - []UserOAuthModel, +func (r webhookWorkerWorkflowFindMany) Exec(ctx context.Context) ( + []WebhookWorkerWorkflowModel, error, ) { - var v []UserOAuthModel + var v []WebhookWorkerWorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233774,11 +258873,11 @@ func (r userOAuthToUserFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userOAuthToUserFindMany) ExecInner(ctx context.Context) ( - []InnerUserOAuth, +func (r webhookWorkerWorkflowFindMany) ExecInner(ctx context.Context) ( + []InnerWebhookWorkerWorkflow, error, ) { - var v []InnerUserOAuth + var v []InnerWebhookWorkerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233786,14 +258885,14 @@ func (r userOAuthToUserFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userOAuthToUserFindMany) Update(params ...UserOAuthSetParam) userOAuthToUserUpdateMany { +func (r webhookWorkerWorkflowFindMany) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "UserOAuth" + r.query.Model = "WebhookWorkerWorkflow" r.query.Outputs = countOutput - var v userOAuthToUserUpdateMany + var v webhookWorkerWorkflowUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -233822,17 +258921,17 @@ func (r userOAuthToUserFindMany) Update(params ...UserOAuthSetParam) userOAuthTo return v } -type userOAuthToUserUpdateMany struct { +type webhookWorkerWorkflowUpdateMany struct { query builder.Query } -func (r userOAuthToUserUpdateMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userOAuthToUserUpdateMany) userOAuthModel() {} +func (r webhookWorkerWorkflowUpdateMany) webhookWorkerWorkflowModel() {} -func (r userOAuthToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -233840,36 +258939,36 @@ func (r userOAuthToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r userOAuthToUserUpdateMany) Tx() UserOAuthManyTxResult { - v := newUserOAuthManyTxResult() +func (r webhookWorkerWorkflowUpdateMany) Tx() WebhookWorkerWorkflowManyTxResult { + v := newWebhookWorkerWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userOAuthToUserFindMany) Delete() userOAuthToUserDeleteMany { - var v userOAuthToUserDeleteMany +func (r webhookWorkerWorkflowFindMany) Delete() webhookWorkerWorkflowDeleteMany { + var v webhookWorkerWorkflowDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "UserOAuth" + v.query.Model = "WebhookWorkerWorkflow" v.query.Outputs = countOutput return v } -type userOAuthToUserDeleteMany struct { +type webhookWorkerWorkflowDeleteMany struct { query builder.Query } -func (r userOAuthToUserDeleteMany) ExtractQuery() builder.Query { +func (r webhookWorkerWorkflowDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userOAuthToUserDeleteMany) userOAuthModel() {} +func (p webhookWorkerWorkflowDeleteMany) webhookWorkerWorkflowModel() {} -func (r userOAuthToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r webhookWorkerWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -233877,52 +258976,30 @@ func (r userOAuthToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r userOAuthToUserDeleteMany) Tx() UserOAuthManyTxResult { - v := newUserOAuthManyTxResult() +func (r webhookWorkerWorkflowDeleteMany) Tx() WebhookWorkerWorkflowManyTxResult { + v := newWebhookWorkerWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userOAuthFindUnique struct { +type controllerPartitionToTenantsFindUnique struct { query builder.Query } -func (r userOAuthFindUnique) getQuery() builder.Query { +func (r controllerPartitionToTenantsFindUnique) getQuery() builder.Query { return r.query } -func (r userOAuthFindUnique) ExtractQuery() builder.Query { +func (r controllerPartitionToTenantsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userOAuthFindUnique) with() {} -func (r userOAuthFindUnique) userOAuthModel() {} -func (r userOAuthFindUnique) userOAuthRelation() {} - -func (r userOAuthActions) FindUnique( - params UserOAuthEqualsUniqueWhereParam, -) userOAuthFindUnique { - var v userOAuthFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "UserOAuth" - v.query.Outputs = userOAuthOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r controllerPartitionToTenantsFindUnique) with() {} +func (r controllerPartitionToTenantsFindUnique) controllerPartitionModel() {} +func (r controllerPartitionToTenantsFindUnique) controllerPartitionRelation() {} -func (r userOAuthFindUnique) With(params ...UserOAuthRelationWith) userOAuthFindUnique { +func (r controllerPartitionToTenantsFindUnique) With(params ...TenantRelationWith) controllerPartitionToTenantsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -233935,7 +259012,7 @@ func (r userOAuthFindUnique) With(params ...UserOAuthRelationWith) userOAuthFind return r } -func (r userOAuthFindUnique) Select(params ...userOAuthPrismaFields) userOAuthFindUnique { +func (r controllerPartitionToTenantsFindUnique) Select(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindUnique { var outputs []builder.Output for _, param := range params { @@ -233949,7 +259026,7 @@ func (r userOAuthFindUnique) Select(params ...userOAuthPrismaFields) userOAuthFi return r } -func (r userOAuthFindUnique) Omit(params ...userOAuthPrismaFields) userOAuthFindUnique { +func (r controllerPartitionToTenantsFindUnique) Omit(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindUnique { var outputs []builder.Output var raw []string @@ -233957,7 +259034,7 @@ func (r userOAuthFindUnique) Omit(params ...userOAuthPrismaFields) userOAuthFind raw = append(raw, string(param)) } - for _, output := range userOAuthOutput { + for _, output := range controllerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -233968,11 +259045,11 @@ func (r userOAuthFindUnique) Omit(params ...userOAuthPrismaFields) userOAuthFind return r } -func (r userOAuthFindUnique) Exec(ctx context.Context) ( - *UserOAuthModel, +func (r controllerPartitionToTenantsFindUnique) Exec(ctx context.Context) ( + *ControllerPartitionModel, error, ) { - var v *UserOAuthModel + var v *ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -233984,11 +259061,11 @@ func (r userOAuthFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userOAuthFindUnique) ExecInner(ctx context.Context) ( - *InnerUserOAuth, +func (r controllerPartitionToTenantsFindUnique) ExecInner(ctx context.Context) ( + *InnerControllerPartition, error, ) { - var v *InnerUserOAuth + var v *InnerControllerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234000,12 +259077,12 @@ func (r userOAuthFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userOAuthFindUnique) Update(params ...UserOAuthSetParam) userOAuthUpdateUnique { +func (r controllerPartitionToTenantsFindUnique) Update(params ...ControllerPartitionSetParam) controllerPartitionToTenantsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "UserOAuth" + r.query.Model = "ControllerPartition" - var v userOAuthUpdateUnique + var v controllerPartitionToTenantsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -234034,120 +259111,83 @@ func (r userOAuthFindUnique) Update(params ...UserOAuthSetParam) userOAuthUpdate return v } -type userOAuthUpdateUnique struct { +type controllerPartitionToTenantsUpdateUnique struct { query builder.Query } -func (r userOAuthUpdateUnique) ExtractQuery() builder.Query { +func (r controllerPartitionToTenantsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userOAuthUpdateUnique) userOAuthModel() {} +func (r controllerPartitionToTenantsUpdateUnique) controllerPartitionModel() {} -func (r userOAuthUpdateUnique) Exec(ctx context.Context) (*UserOAuthModel, error) { - var v UserOAuthModel +func (r controllerPartitionToTenantsUpdateUnique) Exec(ctx context.Context) (*ControllerPartitionModel, error) { + var v ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userOAuthUpdateUnique) Tx() UserOAuthUniqueTxResult { - v := newUserOAuthUniqueTxResult() +func (r controllerPartitionToTenantsUpdateUnique) Tx() ControllerPartitionUniqueTxResult { + v := newControllerPartitionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userOAuthFindUnique) Delete() userOAuthDeleteUnique { - var v userOAuthDeleteUnique +func (r controllerPartitionToTenantsFindUnique) Delete() controllerPartitionToTenantsDeleteUnique { + var v controllerPartitionToTenantsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "UserOAuth" + v.query.Model = "ControllerPartition" return v } -type userOAuthDeleteUnique struct { +type controllerPartitionToTenantsDeleteUnique struct { query builder.Query } -func (r userOAuthDeleteUnique) ExtractQuery() builder.Query { +func (r controllerPartitionToTenantsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userOAuthDeleteUnique) userOAuthModel() {} +func (p controllerPartitionToTenantsDeleteUnique) controllerPartitionModel() {} -func (r userOAuthDeleteUnique) Exec(ctx context.Context) (*UserOAuthModel, error) { - var v UserOAuthModel +func (r controllerPartitionToTenantsDeleteUnique) Exec(ctx context.Context) (*ControllerPartitionModel, error) { + var v ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userOAuthDeleteUnique) Tx() UserOAuthUniqueTxResult { - v := newUserOAuthUniqueTxResult() +func (r controllerPartitionToTenantsDeleteUnique) Tx() ControllerPartitionUniqueTxResult { + v := newControllerPartitionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userOAuthFindFirst struct { +type controllerPartitionToTenantsFindFirst struct { query builder.Query } -func (r userOAuthFindFirst) getQuery() builder.Query { +func (r controllerPartitionToTenantsFindFirst) getQuery() builder.Query { return r.query } -func (r userOAuthFindFirst) ExtractQuery() builder.Query { +func (r controllerPartitionToTenantsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userOAuthFindFirst) with() {} -func (r userOAuthFindFirst) userOAuthModel() {} -func (r userOAuthFindFirst) userOAuthRelation() {} - -func (r userOAuthActions) FindFirst( - params ...UserOAuthWhereParam, -) userOAuthFindFirst { - var v userOAuthFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "UserOAuth" - v.query.Outputs = userOAuthOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r controllerPartitionToTenantsFindFirst) with() {} +func (r controllerPartitionToTenantsFindFirst) controllerPartitionModel() {} +func (r controllerPartitionToTenantsFindFirst) controllerPartitionRelation() {} -func (r userOAuthFindFirst) With(params ...UserOAuthRelationWith) userOAuthFindFirst { +func (r controllerPartitionToTenantsFindFirst) With(params ...TenantRelationWith) controllerPartitionToTenantsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -234160,7 +259200,7 @@ func (r userOAuthFindFirst) With(params ...UserOAuthRelationWith) userOAuthFindF return r } -func (r userOAuthFindFirst) Select(params ...userOAuthPrismaFields) userOAuthFindFirst { +func (r controllerPartitionToTenantsFindFirst) Select(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindFirst { var outputs []builder.Output for _, param := range params { @@ -234174,7 +259214,7 @@ func (r userOAuthFindFirst) Select(params ...userOAuthPrismaFields) userOAuthFin return r } -func (r userOAuthFindFirst) Omit(params ...userOAuthPrismaFields) userOAuthFindFirst { +func (r controllerPartitionToTenantsFindFirst) Omit(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindFirst { var outputs []builder.Output var raw []string @@ -234182,7 +259222,7 @@ func (r userOAuthFindFirst) Omit(params ...userOAuthPrismaFields) userOAuthFindF raw = append(raw, string(param)) } - for _, output := range userOAuthOutput { + for _, output := range controllerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -234193,7 +259233,7 @@ func (r userOAuthFindFirst) Omit(params ...userOAuthPrismaFields) userOAuthFindF return r } -func (r userOAuthFindFirst) OrderBy(params ...UserOAuthOrderByParam) userOAuthFindFirst { +func (r controllerPartitionToTenantsFindFirst) OrderBy(params ...TenantOrderByParam) controllerPartitionToTenantsFindFirst { var fields []builder.Field for _, param := range params { @@ -234213,7 +259253,7 @@ func (r userOAuthFindFirst) OrderBy(params ...UserOAuthOrderByParam) userOAuthFi return r } -func (r userOAuthFindFirst) Skip(count int) userOAuthFindFirst { +func (r controllerPartitionToTenantsFindFirst) Skip(count int) controllerPartitionToTenantsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -234221,7 +259261,7 @@ func (r userOAuthFindFirst) Skip(count int) userOAuthFindFirst { return r } -func (r userOAuthFindFirst) Take(count int) userOAuthFindFirst { +func (r controllerPartitionToTenantsFindFirst) Take(count int) controllerPartitionToTenantsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -234229,7 +259269,7 @@ func (r userOAuthFindFirst) Take(count int) userOAuthFindFirst { return r } -func (r userOAuthFindFirst) Cursor(cursor UserOAuthCursorParam) userOAuthFindFirst { +func (r controllerPartitionToTenantsFindFirst) Cursor(cursor ControllerPartitionCursorParam) controllerPartitionToTenantsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -234237,11 +259277,11 @@ func (r userOAuthFindFirst) Cursor(cursor UserOAuthCursorParam) userOAuthFindFir return r } -func (r userOAuthFindFirst) Exec(ctx context.Context) ( - *UserOAuthModel, +func (r controllerPartitionToTenantsFindFirst) Exec(ctx context.Context) ( + *ControllerPartitionModel, error, ) { - var v *UserOAuthModel + var v *ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234253,11 +259293,11 @@ func (r userOAuthFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userOAuthFindFirst) ExecInner(ctx context.Context) ( - *InnerUserOAuth, +func (r controllerPartitionToTenantsFindFirst) ExecInner(ctx context.Context) ( + *InnerControllerPartition, error, ) { - var v *InnerUserOAuth + var v *InnerControllerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234269,60 +259309,23 @@ func (r userOAuthFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userOAuthFindMany struct { +type controllerPartitionToTenantsFindMany struct { query builder.Query } -func (r userOAuthFindMany) getQuery() builder.Query { +func (r controllerPartitionToTenantsFindMany) getQuery() builder.Query { return r.query } -func (r userOAuthFindMany) ExtractQuery() builder.Query { +func (r controllerPartitionToTenantsFindMany) ExtractQuery() builder.Query { return r.query } -func (r userOAuthFindMany) with() {} -func (r userOAuthFindMany) userOAuthModel() {} -func (r userOAuthFindMany) userOAuthRelation() {} - -func (r userOAuthActions) FindMany( - params ...UserOAuthWhereParam, -) userOAuthFindMany { - var v userOAuthFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "UserOAuth" - v.query.Outputs = userOAuthOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r controllerPartitionToTenantsFindMany) with() {} +func (r controllerPartitionToTenantsFindMany) controllerPartitionModel() {} +func (r controllerPartitionToTenantsFindMany) controllerPartitionRelation() {} -func (r userOAuthFindMany) With(params ...UserOAuthRelationWith) userOAuthFindMany { +func (r controllerPartitionToTenantsFindMany) With(params ...TenantRelationWith) controllerPartitionToTenantsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -234335,7 +259338,7 @@ func (r userOAuthFindMany) With(params ...UserOAuthRelationWith) userOAuthFindMa return r } -func (r userOAuthFindMany) Select(params ...userOAuthPrismaFields) userOAuthFindMany { +func (r controllerPartitionToTenantsFindMany) Select(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindMany { var outputs []builder.Output for _, param := range params { @@ -234349,7 +259352,7 @@ func (r userOAuthFindMany) Select(params ...userOAuthPrismaFields) userOAuthFind return r } -func (r userOAuthFindMany) Omit(params ...userOAuthPrismaFields) userOAuthFindMany { +func (r controllerPartitionToTenantsFindMany) Omit(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindMany { var outputs []builder.Output var raw []string @@ -234357,7 +259360,7 @@ func (r userOAuthFindMany) Omit(params ...userOAuthPrismaFields) userOAuthFindMa raw = append(raw, string(param)) } - for _, output := range userOAuthOutput { + for _, output := range controllerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -234368,7 +259371,7 @@ func (r userOAuthFindMany) Omit(params ...userOAuthPrismaFields) userOAuthFindMa return r } -func (r userOAuthFindMany) OrderBy(params ...UserOAuthOrderByParam) userOAuthFindMany { +func (r controllerPartitionToTenantsFindMany) OrderBy(params ...TenantOrderByParam) controllerPartitionToTenantsFindMany { var fields []builder.Field for _, param := range params { @@ -234388,7 +259391,7 @@ func (r userOAuthFindMany) OrderBy(params ...UserOAuthOrderByParam) userOAuthFin return r } -func (r userOAuthFindMany) Skip(count int) userOAuthFindMany { +func (r controllerPartitionToTenantsFindMany) Skip(count int) controllerPartitionToTenantsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -234396,7 +259399,7 @@ func (r userOAuthFindMany) Skip(count int) userOAuthFindMany { return r } -func (r userOAuthFindMany) Take(count int) userOAuthFindMany { +func (r controllerPartitionToTenantsFindMany) Take(count int) controllerPartitionToTenantsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -234404,7 +259407,7 @@ func (r userOAuthFindMany) Take(count int) userOAuthFindMany { return r } -func (r userOAuthFindMany) Cursor(cursor UserOAuthCursorParam) userOAuthFindMany { +func (r controllerPartitionToTenantsFindMany) Cursor(cursor ControllerPartitionCursorParam) controllerPartitionToTenantsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -234412,11 +259415,11 @@ func (r userOAuthFindMany) Cursor(cursor UserOAuthCursorParam) userOAuthFindMany return r } -func (r userOAuthFindMany) Exec(ctx context.Context) ( - []UserOAuthModel, +func (r controllerPartitionToTenantsFindMany) Exec(ctx context.Context) ( + []ControllerPartitionModel, error, ) { - var v []UserOAuthModel + var v []ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234424,11 +259427,11 @@ func (r userOAuthFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userOAuthFindMany) ExecInner(ctx context.Context) ( - []InnerUserOAuth, +func (r controllerPartitionToTenantsFindMany) ExecInner(ctx context.Context) ( + []InnerControllerPartition, error, ) { - var v []InnerUserOAuth + var v []InnerControllerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234436,14 +259439,14 @@ func (r userOAuthFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userOAuthFindMany) Update(params ...UserOAuthSetParam) userOAuthUpdateMany { +func (r controllerPartitionToTenantsFindMany) Update(params ...ControllerPartitionSetParam) controllerPartitionToTenantsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "UserOAuth" + r.query.Model = "ControllerPartition" r.query.Outputs = countOutput - var v userOAuthUpdateMany + var v controllerPartitionToTenantsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -234472,17 +259475,17 @@ func (r userOAuthFindMany) Update(params ...UserOAuthSetParam) userOAuthUpdateMa return v } -type userOAuthUpdateMany struct { +type controllerPartitionToTenantsUpdateMany struct { query builder.Query } -func (r userOAuthUpdateMany) ExtractQuery() builder.Query { +func (r controllerPartitionToTenantsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userOAuthUpdateMany) userOAuthModel() {} +func (r controllerPartitionToTenantsUpdateMany) controllerPartitionModel() {} -func (r userOAuthUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r controllerPartitionToTenantsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -234490,36 +259493,36 @@ func (r userOAuthUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r userOAuthUpdateMany) Tx() UserOAuthManyTxResult { - v := newUserOAuthManyTxResult() +func (r controllerPartitionToTenantsUpdateMany) Tx() ControllerPartitionManyTxResult { + v := newControllerPartitionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userOAuthFindMany) Delete() userOAuthDeleteMany { - var v userOAuthDeleteMany +func (r controllerPartitionToTenantsFindMany) Delete() controllerPartitionToTenantsDeleteMany { + var v controllerPartitionToTenantsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "UserOAuth" + v.query.Model = "ControllerPartition" v.query.Outputs = countOutput return v } -type userOAuthDeleteMany struct { +type controllerPartitionToTenantsDeleteMany struct { query builder.Query } -func (r userOAuthDeleteMany) ExtractQuery() builder.Query { +func (r controllerPartitionToTenantsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userOAuthDeleteMany) userOAuthModel() {} +func (p controllerPartitionToTenantsDeleteMany) controllerPartitionModel() {} -func (r userOAuthDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r controllerPartitionToTenantsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -234527,30 +259530,52 @@ func (r userOAuthDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r userOAuthDeleteMany) Tx() UserOAuthManyTxResult { - v := newUserOAuthManyTxResult() +func (r controllerPartitionToTenantsDeleteMany) Tx() ControllerPartitionManyTxResult { + v := newControllerPartitionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userPasswordToUserFindUnique struct { +type controllerPartitionFindUnique struct { query builder.Query } -func (r userPasswordToUserFindUnique) getQuery() builder.Query { +func (r controllerPartitionFindUnique) getQuery() builder.Query { return r.query } -func (r userPasswordToUserFindUnique) ExtractQuery() builder.Query { +func (r controllerPartitionFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userPasswordToUserFindUnique) with() {} -func (r userPasswordToUserFindUnique) userPasswordModel() {} -func (r userPasswordToUserFindUnique) userPasswordRelation() {} +func (r controllerPartitionFindUnique) with() {} +func (r controllerPartitionFindUnique) controllerPartitionModel() {} +func (r controllerPartitionFindUnique) controllerPartitionRelation() {} -func (r userPasswordToUserFindUnique) With(params ...UserRelationWith) userPasswordToUserFindUnique { +func (r controllerPartitionActions) FindUnique( + params ControllerPartitionEqualsUniqueWhereParam, +) controllerPartitionFindUnique { + var v controllerPartitionFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "ControllerPartition" + v.query.Outputs = controllerPartitionOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r controllerPartitionFindUnique) With(params ...ControllerPartitionRelationWith) controllerPartitionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -234563,7 +259588,7 @@ func (r userPasswordToUserFindUnique) With(params ...UserRelationWith) userPassw return r } -func (r userPasswordToUserFindUnique) Select(params ...userPasswordPrismaFields) userPasswordToUserFindUnique { +func (r controllerPartitionFindUnique) Select(params ...controllerPartitionPrismaFields) controllerPartitionFindUnique { var outputs []builder.Output for _, param := range params { @@ -234577,7 +259602,7 @@ func (r userPasswordToUserFindUnique) Select(params ...userPasswordPrismaFields) return r } -func (r userPasswordToUserFindUnique) Omit(params ...userPasswordPrismaFields) userPasswordToUserFindUnique { +func (r controllerPartitionFindUnique) Omit(params ...controllerPartitionPrismaFields) controllerPartitionFindUnique { var outputs []builder.Output var raw []string @@ -234585,7 +259610,7 @@ func (r userPasswordToUserFindUnique) Omit(params ...userPasswordPrismaFields) u raw = append(raw, string(param)) } - for _, output := range userPasswordOutput { + for _, output := range controllerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -234596,11 +259621,11 @@ func (r userPasswordToUserFindUnique) Omit(params ...userPasswordPrismaFields) u return r } -func (r userPasswordToUserFindUnique) Exec(ctx context.Context) ( - *UserPasswordModel, +func (r controllerPartitionFindUnique) Exec(ctx context.Context) ( + *ControllerPartitionModel, error, ) { - var v *UserPasswordModel + var v *ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234612,11 +259637,11 @@ func (r userPasswordToUserFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userPasswordToUserFindUnique) ExecInner(ctx context.Context) ( - *InnerUserPassword, +func (r controllerPartitionFindUnique) ExecInner(ctx context.Context) ( + *InnerControllerPartition, error, ) { - var v *InnerUserPassword + var v *InnerControllerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234628,12 +259653,12 @@ func (r userPasswordToUserFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userPasswordToUserFindUnique) Update(params ...UserPasswordSetParam) userPasswordToUserUpdateUnique { +func (r controllerPartitionFindUnique) Update(params ...ControllerPartitionSetParam) controllerPartitionUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "UserPassword" + r.query.Model = "ControllerPartition" - var v userPasswordToUserUpdateUnique + var v controllerPartitionUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -234662,83 +259687,120 @@ func (r userPasswordToUserFindUnique) Update(params ...UserPasswordSetParam) use return v } -type userPasswordToUserUpdateUnique struct { +type controllerPartitionUpdateUnique struct { query builder.Query } -func (r userPasswordToUserUpdateUnique) ExtractQuery() builder.Query { +func (r controllerPartitionUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userPasswordToUserUpdateUnique) userPasswordModel() {} +func (r controllerPartitionUpdateUnique) controllerPartitionModel() {} -func (r userPasswordToUserUpdateUnique) Exec(ctx context.Context) (*UserPasswordModel, error) { - var v UserPasswordModel +func (r controllerPartitionUpdateUnique) Exec(ctx context.Context) (*ControllerPartitionModel, error) { + var v ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userPasswordToUserUpdateUnique) Tx() UserPasswordUniqueTxResult { - v := newUserPasswordUniqueTxResult() +func (r controllerPartitionUpdateUnique) Tx() ControllerPartitionUniqueTxResult { + v := newControllerPartitionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userPasswordToUserFindUnique) Delete() userPasswordToUserDeleteUnique { - var v userPasswordToUserDeleteUnique +func (r controllerPartitionFindUnique) Delete() controllerPartitionDeleteUnique { + var v controllerPartitionDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "UserPassword" + v.query.Model = "ControllerPartition" return v } -type userPasswordToUserDeleteUnique struct { +type controllerPartitionDeleteUnique struct { query builder.Query } -func (r userPasswordToUserDeleteUnique) ExtractQuery() builder.Query { +func (r controllerPartitionDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userPasswordToUserDeleteUnique) userPasswordModel() {} +func (p controllerPartitionDeleteUnique) controllerPartitionModel() {} -func (r userPasswordToUserDeleteUnique) Exec(ctx context.Context) (*UserPasswordModel, error) { - var v UserPasswordModel +func (r controllerPartitionDeleteUnique) Exec(ctx context.Context) (*ControllerPartitionModel, error) { + var v ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userPasswordToUserDeleteUnique) Tx() UserPasswordUniqueTxResult { - v := newUserPasswordUniqueTxResult() +func (r controllerPartitionDeleteUnique) Tx() ControllerPartitionUniqueTxResult { + v := newControllerPartitionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userPasswordToUserFindFirst struct { +type controllerPartitionFindFirst struct { query builder.Query } -func (r userPasswordToUserFindFirst) getQuery() builder.Query { +func (r controllerPartitionFindFirst) getQuery() builder.Query { return r.query } -func (r userPasswordToUserFindFirst) ExtractQuery() builder.Query { +func (r controllerPartitionFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userPasswordToUserFindFirst) with() {} -func (r userPasswordToUserFindFirst) userPasswordModel() {} -func (r userPasswordToUserFindFirst) userPasswordRelation() {} +func (r controllerPartitionFindFirst) with() {} +func (r controllerPartitionFindFirst) controllerPartitionModel() {} +func (r controllerPartitionFindFirst) controllerPartitionRelation() {} -func (r userPasswordToUserFindFirst) With(params ...UserRelationWith) userPasswordToUserFindFirst { +func (r controllerPartitionActions) FindFirst( + params ...ControllerPartitionWhereParam, +) controllerPartitionFindFirst { + var v controllerPartitionFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "ControllerPartition" + v.query.Outputs = controllerPartitionOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r controllerPartitionFindFirst) With(params ...ControllerPartitionRelationWith) controllerPartitionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -234751,7 +259813,7 @@ func (r userPasswordToUserFindFirst) With(params ...UserRelationWith) userPasswo return r } -func (r userPasswordToUserFindFirst) Select(params ...userPasswordPrismaFields) userPasswordToUserFindFirst { +func (r controllerPartitionFindFirst) Select(params ...controllerPartitionPrismaFields) controllerPartitionFindFirst { var outputs []builder.Output for _, param := range params { @@ -234765,7 +259827,7 @@ func (r userPasswordToUserFindFirst) Select(params ...userPasswordPrismaFields) return r } -func (r userPasswordToUserFindFirst) Omit(params ...userPasswordPrismaFields) userPasswordToUserFindFirst { +func (r controllerPartitionFindFirst) Omit(params ...controllerPartitionPrismaFields) controllerPartitionFindFirst { var outputs []builder.Output var raw []string @@ -234773,7 +259835,7 @@ func (r userPasswordToUserFindFirst) Omit(params ...userPasswordPrismaFields) us raw = append(raw, string(param)) } - for _, output := range userPasswordOutput { + for _, output := range controllerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -234784,7 +259846,7 @@ func (r userPasswordToUserFindFirst) Omit(params ...userPasswordPrismaFields) us return r } -func (r userPasswordToUserFindFirst) OrderBy(params ...UserOrderByParam) userPasswordToUserFindFirst { +func (r controllerPartitionFindFirst) OrderBy(params ...ControllerPartitionOrderByParam) controllerPartitionFindFirst { var fields []builder.Field for _, param := range params { @@ -234804,7 +259866,7 @@ func (r userPasswordToUserFindFirst) OrderBy(params ...UserOrderByParam) userPas return r } -func (r userPasswordToUserFindFirst) Skip(count int) userPasswordToUserFindFirst { +func (r controllerPartitionFindFirst) Skip(count int) controllerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -234812,7 +259874,7 @@ func (r userPasswordToUserFindFirst) Skip(count int) userPasswordToUserFindFirst return r } -func (r userPasswordToUserFindFirst) Take(count int) userPasswordToUserFindFirst { +func (r controllerPartitionFindFirst) Take(count int) controllerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -234820,7 +259882,7 @@ func (r userPasswordToUserFindFirst) Take(count int) userPasswordToUserFindFirst return r } -func (r userPasswordToUserFindFirst) Cursor(cursor UserPasswordCursorParam) userPasswordToUserFindFirst { +func (r controllerPartitionFindFirst) Cursor(cursor ControllerPartitionCursorParam) controllerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -234828,11 +259890,11 @@ func (r userPasswordToUserFindFirst) Cursor(cursor UserPasswordCursorParam) user return r } -func (r userPasswordToUserFindFirst) Exec(ctx context.Context) ( - *UserPasswordModel, +func (r controllerPartitionFindFirst) Exec(ctx context.Context) ( + *ControllerPartitionModel, error, ) { - var v *UserPasswordModel + var v *ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234844,11 +259906,11 @@ func (r userPasswordToUserFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userPasswordToUserFindFirst) ExecInner(ctx context.Context) ( - *InnerUserPassword, +func (r controllerPartitionFindFirst) ExecInner(ctx context.Context) ( + *InnerControllerPartition, error, ) { - var v *InnerUserPassword + var v *InnerControllerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234860,23 +259922,60 @@ func (r userPasswordToUserFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userPasswordToUserFindMany struct { +type controllerPartitionFindMany struct { query builder.Query } -func (r userPasswordToUserFindMany) getQuery() builder.Query { +func (r controllerPartitionFindMany) getQuery() builder.Query { return r.query } -func (r userPasswordToUserFindMany) ExtractQuery() builder.Query { +func (r controllerPartitionFindMany) ExtractQuery() builder.Query { return r.query } -func (r userPasswordToUserFindMany) with() {} -func (r userPasswordToUserFindMany) userPasswordModel() {} -func (r userPasswordToUserFindMany) userPasswordRelation() {} +func (r controllerPartitionFindMany) with() {} +func (r controllerPartitionFindMany) controllerPartitionModel() {} +func (r controllerPartitionFindMany) controllerPartitionRelation() {} -func (r userPasswordToUserFindMany) With(params ...UserRelationWith) userPasswordToUserFindMany { +func (r controllerPartitionActions) FindMany( + params ...ControllerPartitionWhereParam, +) controllerPartitionFindMany { + var v controllerPartitionFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "ControllerPartition" + v.query.Outputs = controllerPartitionOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r controllerPartitionFindMany) With(params ...ControllerPartitionRelationWith) controllerPartitionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -234889,7 +259988,7 @@ func (r userPasswordToUserFindMany) With(params ...UserRelationWith) userPasswor return r } -func (r userPasswordToUserFindMany) Select(params ...userPasswordPrismaFields) userPasswordToUserFindMany { +func (r controllerPartitionFindMany) Select(params ...controllerPartitionPrismaFields) controllerPartitionFindMany { var outputs []builder.Output for _, param := range params { @@ -234903,7 +260002,7 @@ func (r userPasswordToUserFindMany) Select(params ...userPasswordPrismaFields) u return r } -func (r userPasswordToUserFindMany) Omit(params ...userPasswordPrismaFields) userPasswordToUserFindMany { +func (r controllerPartitionFindMany) Omit(params ...controllerPartitionPrismaFields) controllerPartitionFindMany { var outputs []builder.Output var raw []string @@ -234911,7 +260010,7 @@ func (r userPasswordToUserFindMany) Omit(params ...userPasswordPrismaFields) use raw = append(raw, string(param)) } - for _, output := range userPasswordOutput { + for _, output := range controllerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -234922,7 +260021,7 @@ func (r userPasswordToUserFindMany) Omit(params ...userPasswordPrismaFields) use return r } -func (r userPasswordToUserFindMany) OrderBy(params ...UserOrderByParam) userPasswordToUserFindMany { +func (r controllerPartitionFindMany) OrderBy(params ...ControllerPartitionOrderByParam) controllerPartitionFindMany { var fields []builder.Field for _, param := range params { @@ -234942,7 +260041,7 @@ func (r userPasswordToUserFindMany) OrderBy(params ...UserOrderByParam) userPass return r } -func (r userPasswordToUserFindMany) Skip(count int) userPasswordToUserFindMany { +func (r controllerPartitionFindMany) Skip(count int) controllerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -234950,7 +260049,7 @@ func (r userPasswordToUserFindMany) Skip(count int) userPasswordToUserFindMany { return r } -func (r userPasswordToUserFindMany) Take(count int) userPasswordToUserFindMany { +func (r controllerPartitionFindMany) Take(count int) controllerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -234958,7 +260057,7 @@ func (r userPasswordToUserFindMany) Take(count int) userPasswordToUserFindMany { return r } -func (r userPasswordToUserFindMany) Cursor(cursor UserPasswordCursorParam) userPasswordToUserFindMany { +func (r controllerPartitionFindMany) Cursor(cursor ControllerPartitionCursorParam) controllerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -234966,11 +260065,11 @@ func (r userPasswordToUserFindMany) Cursor(cursor UserPasswordCursorParam) userP return r } -func (r userPasswordToUserFindMany) Exec(ctx context.Context) ( - []UserPasswordModel, +func (r controllerPartitionFindMany) Exec(ctx context.Context) ( + []ControllerPartitionModel, error, ) { - var v []UserPasswordModel + var v []ControllerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234978,11 +260077,11 @@ func (r userPasswordToUserFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userPasswordToUserFindMany) ExecInner(ctx context.Context) ( - []InnerUserPassword, +func (r controllerPartitionFindMany) ExecInner(ctx context.Context) ( + []InnerControllerPartition, error, ) { - var v []InnerUserPassword + var v []InnerControllerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -234990,14 +260089,14 @@ func (r userPasswordToUserFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userPasswordToUserFindMany) Update(params ...UserPasswordSetParam) userPasswordToUserUpdateMany { +func (r controllerPartitionFindMany) Update(params ...ControllerPartitionSetParam) controllerPartitionUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "UserPassword" + r.query.Model = "ControllerPartition" r.query.Outputs = countOutput - var v userPasswordToUserUpdateMany + var v controllerPartitionUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -235026,17 +260125,17 @@ func (r userPasswordToUserFindMany) Update(params ...UserPasswordSetParam) userP return v } -type userPasswordToUserUpdateMany struct { +type controllerPartitionUpdateMany struct { query builder.Query } -func (r userPasswordToUserUpdateMany) ExtractQuery() builder.Query { +func (r controllerPartitionUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userPasswordToUserUpdateMany) userPasswordModel() {} +func (r controllerPartitionUpdateMany) controllerPartitionModel() {} -func (r userPasswordToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r controllerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -235044,36 +260143,36 @@ func (r userPasswordToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r userPasswordToUserUpdateMany) Tx() UserPasswordManyTxResult { - v := newUserPasswordManyTxResult() +func (r controllerPartitionUpdateMany) Tx() ControllerPartitionManyTxResult { + v := newControllerPartitionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userPasswordToUserFindMany) Delete() userPasswordToUserDeleteMany { - var v userPasswordToUserDeleteMany +func (r controllerPartitionFindMany) Delete() controllerPartitionDeleteMany { + var v controllerPartitionDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "UserPassword" + v.query.Model = "ControllerPartition" v.query.Outputs = countOutput return v } -type userPasswordToUserDeleteMany struct { +type controllerPartitionDeleteMany struct { query builder.Query } -func (r userPasswordToUserDeleteMany) ExtractQuery() builder.Query { +func (r controllerPartitionDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userPasswordToUserDeleteMany) userPasswordModel() {} +func (p controllerPartitionDeleteMany) controllerPartitionModel() {} -func (r userPasswordToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r controllerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -235081,52 +260180,30 @@ func (r userPasswordToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r userPasswordToUserDeleteMany) Tx() UserPasswordManyTxResult { - v := newUserPasswordManyTxResult() +func (r controllerPartitionDeleteMany) Tx() ControllerPartitionManyTxResult { + v := newControllerPartitionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userPasswordFindUnique struct { +type tenantWorkerPartitionToTenantsFindUnique struct { query builder.Query } -func (r userPasswordFindUnique) getQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsFindUnique) getQuery() builder.Query { return r.query } -func (r userPasswordFindUnique) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userPasswordFindUnique) with() {} -func (r userPasswordFindUnique) userPasswordModel() {} -func (r userPasswordFindUnique) userPasswordRelation() {} - -func (r userPasswordActions) FindUnique( - params UserPasswordEqualsUniqueWhereParam, -) userPasswordFindUnique { - var v userPasswordFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "UserPassword" - v.query.Outputs = userPasswordOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tenantWorkerPartitionToTenantsFindUnique) with() {} +func (r tenantWorkerPartitionToTenantsFindUnique) tenantWorkerPartitionModel() {} +func (r tenantWorkerPartitionToTenantsFindUnique) tenantWorkerPartitionRelation() {} -func (r userPasswordFindUnique) With(params ...UserPasswordRelationWith) userPasswordFindUnique { +func (r tenantWorkerPartitionToTenantsFindUnique) With(params ...TenantRelationWith) tenantWorkerPartitionToTenantsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -235139,7 +260216,7 @@ func (r userPasswordFindUnique) With(params ...UserPasswordRelationWith) userPas return r } -func (r userPasswordFindUnique) Select(params ...userPasswordPrismaFields) userPasswordFindUnique { +func (r tenantWorkerPartitionToTenantsFindUnique) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindUnique { var outputs []builder.Output for _, param := range params { @@ -235153,7 +260230,7 @@ func (r userPasswordFindUnique) Select(params ...userPasswordPrismaFields) userP return r } -func (r userPasswordFindUnique) Omit(params ...userPasswordPrismaFields) userPasswordFindUnique { +func (r tenantWorkerPartitionToTenantsFindUnique) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindUnique { var outputs []builder.Output var raw []string @@ -235161,7 +260238,7 @@ func (r userPasswordFindUnique) Omit(params ...userPasswordPrismaFields) userPas raw = append(raw, string(param)) } - for _, output := range userPasswordOutput { + for _, output := range tenantWorkerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -235172,11 +260249,11 @@ func (r userPasswordFindUnique) Omit(params ...userPasswordPrismaFields) userPas return r } -func (r userPasswordFindUnique) Exec(ctx context.Context) ( - *UserPasswordModel, +func (r tenantWorkerPartitionToTenantsFindUnique) Exec(ctx context.Context) ( + *TenantWorkerPartitionModel, error, ) { - var v *UserPasswordModel + var v *TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -235188,11 +260265,11 @@ func (r userPasswordFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userPasswordFindUnique) ExecInner(ctx context.Context) ( - *InnerUserPassword, +func (r tenantWorkerPartitionToTenantsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantWorkerPartition, error, ) { - var v *InnerUserPassword + var v *InnerTenantWorkerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -235204,12 +260281,12 @@ func (r userPasswordFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userPasswordFindUnique) Update(params ...UserPasswordSetParam) userPasswordUpdateUnique { +func (r tenantWorkerPartitionToTenantsFindUnique) Update(params ...TenantWorkerPartitionSetParam) tenantWorkerPartitionToTenantsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "UserPassword" + r.query.Model = "TenantWorkerPartition" - var v userPasswordUpdateUnique + var v tenantWorkerPartitionToTenantsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -235238,120 +260315,83 @@ func (r userPasswordFindUnique) Update(params ...UserPasswordSetParam) userPassw return v } -type userPasswordUpdateUnique struct { +type tenantWorkerPartitionToTenantsUpdateUnique struct { query builder.Query } -func (r userPasswordUpdateUnique) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userPasswordUpdateUnique) userPasswordModel() {} +func (r tenantWorkerPartitionToTenantsUpdateUnique) tenantWorkerPartitionModel() {} -func (r userPasswordUpdateUnique) Exec(ctx context.Context) (*UserPasswordModel, error) { - var v UserPasswordModel +func (r tenantWorkerPartitionToTenantsUpdateUnique) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { + var v TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userPasswordUpdateUnique) Tx() UserPasswordUniqueTxResult { - v := newUserPasswordUniqueTxResult() +func (r tenantWorkerPartitionToTenantsUpdateUnique) Tx() TenantWorkerPartitionUniqueTxResult { + v := newTenantWorkerPartitionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userPasswordFindUnique) Delete() userPasswordDeleteUnique { - var v userPasswordDeleteUnique +func (r tenantWorkerPartitionToTenantsFindUnique) Delete() tenantWorkerPartitionToTenantsDeleteUnique { + var v tenantWorkerPartitionToTenantsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "UserPassword" + v.query.Model = "TenantWorkerPartition" return v } -type userPasswordDeleteUnique struct { +type tenantWorkerPartitionToTenantsDeleteUnique struct { query builder.Query } -func (r userPasswordDeleteUnique) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userPasswordDeleteUnique) userPasswordModel() {} +func (p tenantWorkerPartitionToTenantsDeleteUnique) tenantWorkerPartitionModel() {} -func (r userPasswordDeleteUnique) Exec(ctx context.Context) (*UserPasswordModel, error) { - var v UserPasswordModel +func (r tenantWorkerPartitionToTenantsDeleteUnique) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { + var v TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userPasswordDeleteUnique) Tx() UserPasswordUniqueTxResult { - v := newUserPasswordUniqueTxResult() +func (r tenantWorkerPartitionToTenantsDeleteUnique) Tx() TenantWorkerPartitionUniqueTxResult { + v := newTenantWorkerPartitionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userPasswordFindFirst struct { +type tenantWorkerPartitionToTenantsFindFirst struct { query builder.Query } -func (r userPasswordFindFirst) getQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsFindFirst) getQuery() builder.Query { return r.query } -func (r userPasswordFindFirst) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userPasswordFindFirst) with() {} -func (r userPasswordFindFirst) userPasswordModel() {} -func (r userPasswordFindFirst) userPasswordRelation() {} - -func (r userPasswordActions) FindFirst( - params ...UserPasswordWhereParam, -) userPasswordFindFirst { - var v userPasswordFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "UserPassword" - v.query.Outputs = userPasswordOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantWorkerPartitionToTenantsFindFirst) with() {} +func (r tenantWorkerPartitionToTenantsFindFirst) tenantWorkerPartitionModel() {} +func (r tenantWorkerPartitionToTenantsFindFirst) tenantWorkerPartitionRelation() {} -func (r userPasswordFindFirst) With(params ...UserPasswordRelationWith) userPasswordFindFirst { +func (r tenantWorkerPartitionToTenantsFindFirst) With(params ...TenantRelationWith) tenantWorkerPartitionToTenantsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -235364,7 +260404,7 @@ func (r userPasswordFindFirst) With(params ...UserPasswordRelationWith) userPass return r } -func (r userPasswordFindFirst) Select(params ...userPasswordPrismaFields) userPasswordFindFirst { +func (r tenantWorkerPartitionToTenantsFindFirst) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindFirst { var outputs []builder.Output for _, param := range params { @@ -235378,7 +260418,7 @@ func (r userPasswordFindFirst) Select(params ...userPasswordPrismaFields) userPa return r } -func (r userPasswordFindFirst) Omit(params ...userPasswordPrismaFields) userPasswordFindFirst { +func (r tenantWorkerPartitionToTenantsFindFirst) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindFirst { var outputs []builder.Output var raw []string @@ -235386,7 +260426,7 @@ func (r userPasswordFindFirst) Omit(params ...userPasswordPrismaFields) userPass raw = append(raw, string(param)) } - for _, output := range userPasswordOutput { + for _, output := range tenantWorkerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -235397,7 +260437,7 @@ func (r userPasswordFindFirst) Omit(params ...userPasswordPrismaFields) userPass return r } -func (r userPasswordFindFirst) OrderBy(params ...UserPasswordOrderByParam) userPasswordFindFirst { +func (r tenantWorkerPartitionToTenantsFindFirst) OrderBy(params ...TenantOrderByParam) tenantWorkerPartitionToTenantsFindFirst { var fields []builder.Field for _, param := range params { @@ -235417,7 +260457,7 @@ func (r userPasswordFindFirst) OrderBy(params ...UserPasswordOrderByParam) userP return r } -func (r userPasswordFindFirst) Skip(count int) userPasswordFindFirst { +func (r tenantWorkerPartitionToTenantsFindFirst) Skip(count int) tenantWorkerPartitionToTenantsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -235425,7 +260465,7 @@ func (r userPasswordFindFirst) Skip(count int) userPasswordFindFirst { return r } -func (r userPasswordFindFirst) Take(count int) userPasswordFindFirst { +func (r tenantWorkerPartitionToTenantsFindFirst) Take(count int) tenantWorkerPartitionToTenantsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -235433,7 +260473,7 @@ func (r userPasswordFindFirst) Take(count int) userPasswordFindFirst { return r } -func (r userPasswordFindFirst) Cursor(cursor UserPasswordCursorParam) userPasswordFindFirst { +func (r tenantWorkerPartitionToTenantsFindFirst) Cursor(cursor TenantWorkerPartitionCursorParam) tenantWorkerPartitionToTenantsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -235441,11 +260481,11 @@ func (r userPasswordFindFirst) Cursor(cursor UserPasswordCursorParam) userPasswo return r } -func (r userPasswordFindFirst) Exec(ctx context.Context) ( - *UserPasswordModel, +func (r tenantWorkerPartitionToTenantsFindFirst) Exec(ctx context.Context) ( + *TenantWorkerPartitionModel, error, ) { - var v *UserPasswordModel + var v *TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -235457,11 +260497,11 @@ func (r userPasswordFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userPasswordFindFirst) ExecInner(ctx context.Context) ( - *InnerUserPassword, +func (r tenantWorkerPartitionToTenantsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantWorkerPartition, error, ) { - var v *InnerUserPassword + var v *InnerTenantWorkerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -235473,60 +260513,23 @@ func (r userPasswordFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userPasswordFindMany struct { +type tenantWorkerPartitionToTenantsFindMany struct { query builder.Query } -func (r userPasswordFindMany) getQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsFindMany) getQuery() builder.Query { return r.query } -func (r userPasswordFindMany) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsFindMany) ExtractQuery() builder.Query { return r.query } -func (r userPasswordFindMany) with() {} -func (r userPasswordFindMany) userPasswordModel() {} -func (r userPasswordFindMany) userPasswordRelation() {} - -func (r userPasswordActions) FindMany( - params ...UserPasswordWhereParam, -) userPasswordFindMany { - var v userPasswordFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "UserPassword" - v.query.Outputs = userPasswordOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantWorkerPartitionToTenantsFindMany) with() {} +func (r tenantWorkerPartitionToTenantsFindMany) tenantWorkerPartitionModel() {} +func (r tenantWorkerPartitionToTenantsFindMany) tenantWorkerPartitionRelation() {} -func (r userPasswordFindMany) With(params ...UserPasswordRelationWith) userPasswordFindMany { +func (r tenantWorkerPartitionToTenantsFindMany) With(params ...TenantRelationWith) tenantWorkerPartitionToTenantsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -235539,7 +260542,7 @@ func (r userPasswordFindMany) With(params ...UserPasswordRelationWith) userPassw return r } -func (r userPasswordFindMany) Select(params ...userPasswordPrismaFields) userPasswordFindMany { +func (r tenantWorkerPartitionToTenantsFindMany) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindMany { var outputs []builder.Output for _, param := range params { @@ -235553,7 +260556,7 @@ func (r userPasswordFindMany) Select(params ...userPasswordPrismaFields) userPas return r } -func (r userPasswordFindMany) Omit(params ...userPasswordPrismaFields) userPasswordFindMany { +func (r tenantWorkerPartitionToTenantsFindMany) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindMany { var outputs []builder.Output var raw []string @@ -235561,7 +260564,7 @@ func (r userPasswordFindMany) Omit(params ...userPasswordPrismaFields) userPassw raw = append(raw, string(param)) } - for _, output := range userPasswordOutput { + for _, output := range tenantWorkerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -235572,7 +260575,7 @@ func (r userPasswordFindMany) Omit(params ...userPasswordPrismaFields) userPassw return r } -func (r userPasswordFindMany) OrderBy(params ...UserPasswordOrderByParam) userPasswordFindMany { +func (r tenantWorkerPartitionToTenantsFindMany) OrderBy(params ...TenantOrderByParam) tenantWorkerPartitionToTenantsFindMany { var fields []builder.Field for _, param := range params { @@ -235592,7 +260595,7 @@ func (r userPasswordFindMany) OrderBy(params ...UserPasswordOrderByParam) userPa return r } -func (r userPasswordFindMany) Skip(count int) userPasswordFindMany { +func (r tenantWorkerPartitionToTenantsFindMany) Skip(count int) tenantWorkerPartitionToTenantsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -235600,7 +260603,7 @@ func (r userPasswordFindMany) Skip(count int) userPasswordFindMany { return r } -func (r userPasswordFindMany) Take(count int) userPasswordFindMany { +func (r tenantWorkerPartitionToTenantsFindMany) Take(count int) tenantWorkerPartitionToTenantsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -235608,7 +260611,7 @@ func (r userPasswordFindMany) Take(count int) userPasswordFindMany { return r } -func (r userPasswordFindMany) Cursor(cursor UserPasswordCursorParam) userPasswordFindMany { +func (r tenantWorkerPartitionToTenantsFindMany) Cursor(cursor TenantWorkerPartitionCursorParam) tenantWorkerPartitionToTenantsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -235616,11 +260619,11 @@ func (r userPasswordFindMany) Cursor(cursor UserPasswordCursorParam) userPasswor return r } -func (r userPasswordFindMany) Exec(ctx context.Context) ( - []UserPasswordModel, +func (r tenantWorkerPartitionToTenantsFindMany) Exec(ctx context.Context) ( + []TenantWorkerPartitionModel, error, ) { - var v []UserPasswordModel + var v []TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -235628,11 +260631,11 @@ func (r userPasswordFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userPasswordFindMany) ExecInner(ctx context.Context) ( - []InnerUserPassword, +func (r tenantWorkerPartitionToTenantsFindMany) ExecInner(ctx context.Context) ( + []InnerTenantWorkerPartition, error, ) { - var v []InnerUserPassword + var v []InnerTenantWorkerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -235640,14 +260643,14 @@ func (r userPasswordFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userPasswordFindMany) Update(params ...UserPasswordSetParam) userPasswordUpdateMany { +func (r tenantWorkerPartitionToTenantsFindMany) Update(params ...TenantWorkerPartitionSetParam) tenantWorkerPartitionToTenantsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "UserPassword" + r.query.Model = "TenantWorkerPartition" r.query.Outputs = countOutput - var v userPasswordUpdateMany + var v tenantWorkerPartitionToTenantsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -235676,17 +260679,17 @@ func (r userPasswordFindMany) Update(params ...UserPasswordSetParam) userPasswor return v } -type userPasswordUpdateMany struct { +type tenantWorkerPartitionToTenantsUpdateMany struct { query builder.Query } -func (r userPasswordUpdateMany) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userPasswordUpdateMany) userPasswordModel() {} +func (r tenantWorkerPartitionToTenantsUpdateMany) tenantWorkerPartitionModel() {} -func (r userPasswordUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantWorkerPartitionToTenantsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -235694,36 +260697,36 @@ func (r userPasswordUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r userPasswordUpdateMany) Tx() UserPasswordManyTxResult { - v := newUserPasswordManyTxResult() +func (r tenantWorkerPartitionToTenantsUpdateMany) Tx() TenantWorkerPartitionManyTxResult { + v := newTenantWorkerPartitionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userPasswordFindMany) Delete() userPasswordDeleteMany { - var v userPasswordDeleteMany +func (r tenantWorkerPartitionToTenantsFindMany) Delete() tenantWorkerPartitionToTenantsDeleteMany { + var v tenantWorkerPartitionToTenantsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "UserPassword" + v.query.Model = "TenantWorkerPartition" v.query.Outputs = countOutput return v } -type userPasswordDeleteMany struct { +type tenantWorkerPartitionToTenantsDeleteMany struct { query builder.Query } -func (r userPasswordDeleteMany) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionToTenantsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userPasswordDeleteMany) userPasswordModel() {} +func (p tenantWorkerPartitionToTenantsDeleteMany) tenantWorkerPartitionModel() {} -func (r userPasswordDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantWorkerPartitionToTenantsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -235731,30 +260734,52 @@ func (r userPasswordDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r userPasswordDeleteMany) Tx() UserPasswordManyTxResult { - v := newUserPasswordManyTxResult() +func (r tenantWorkerPartitionToTenantsDeleteMany) Tx() TenantWorkerPartitionManyTxResult { + v := newTenantWorkerPartitionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userSessionToUserFindUnique struct { +type tenantWorkerPartitionFindUnique struct { query builder.Query } -func (r userSessionToUserFindUnique) getQuery() builder.Query { +func (r tenantWorkerPartitionFindUnique) getQuery() builder.Query { return r.query } -func (r userSessionToUserFindUnique) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userSessionToUserFindUnique) with() {} -func (r userSessionToUserFindUnique) userSessionModel() {} -func (r userSessionToUserFindUnique) userSessionRelation() {} +func (r tenantWorkerPartitionFindUnique) with() {} +func (r tenantWorkerPartitionFindUnique) tenantWorkerPartitionModel() {} +func (r tenantWorkerPartitionFindUnique) tenantWorkerPartitionRelation() {} -func (r userSessionToUserFindUnique) With(params ...UserRelationWith) userSessionToUserFindUnique { +func (r tenantWorkerPartitionActions) FindUnique( + params TenantWorkerPartitionEqualsUniqueWhereParam, +) tenantWorkerPartitionFindUnique { + var v tenantWorkerPartitionFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "TenantWorkerPartition" + v.query.Outputs = tenantWorkerPartitionOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r tenantWorkerPartitionFindUnique) With(params ...TenantWorkerPartitionRelationWith) tenantWorkerPartitionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -235767,7 +260792,7 @@ func (r userSessionToUserFindUnique) With(params ...UserRelationWith) userSessio return r } -func (r userSessionToUserFindUnique) Select(params ...userSessionPrismaFields) userSessionToUserFindUnique { +func (r tenantWorkerPartitionFindUnique) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindUnique { var outputs []builder.Output for _, param := range params { @@ -235781,7 +260806,7 @@ func (r userSessionToUserFindUnique) Select(params ...userSessionPrismaFields) u return r } -func (r userSessionToUserFindUnique) Omit(params ...userSessionPrismaFields) userSessionToUserFindUnique { +func (r tenantWorkerPartitionFindUnique) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindUnique { var outputs []builder.Output var raw []string @@ -235789,7 +260814,7 @@ func (r userSessionToUserFindUnique) Omit(params ...userSessionPrismaFields) use raw = append(raw, string(param)) } - for _, output := range userSessionOutput { + for _, output := range tenantWorkerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -235800,11 +260825,11 @@ func (r userSessionToUserFindUnique) Omit(params ...userSessionPrismaFields) use return r } -func (r userSessionToUserFindUnique) Exec(ctx context.Context) ( - *UserSessionModel, +func (r tenantWorkerPartitionFindUnique) Exec(ctx context.Context) ( + *TenantWorkerPartitionModel, error, ) { - var v *UserSessionModel + var v *TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -235816,11 +260841,11 @@ func (r userSessionToUserFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userSessionToUserFindUnique) ExecInner(ctx context.Context) ( - *InnerUserSession, +func (r tenantWorkerPartitionFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantWorkerPartition, error, ) { - var v *InnerUserSession + var v *InnerTenantWorkerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -235832,12 +260857,12 @@ func (r userSessionToUserFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userSessionToUserFindUnique) Update(params ...UserSessionSetParam) userSessionToUserUpdateUnique { +func (r tenantWorkerPartitionFindUnique) Update(params ...TenantWorkerPartitionSetParam) tenantWorkerPartitionUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "UserSession" + r.query.Model = "TenantWorkerPartition" - var v userSessionToUserUpdateUnique + var v tenantWorkerPartitionUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -235866,83 +260891,120 @@ func (r userSessionToUserFindUnique) Update(params ...UserSessionSetParam) userS return v } -type userSessionToUserUpdateUnique struct { +type tenantWorkerPartitionUpdateUnique struct { query builder.Query } -func (r userSessionToUserUpdateUnique) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userSessionToUserUpdateUnique) userSessionModel() {} +func (r tenantWorkerPartitionUpdateUnique) tenantWorkerPartitionModel() {} -func (r userSessionToUserUpdateUnique) Exec(ctx context.Context) (*UserSessionModel, error) { - var v UserSessionModel +func (r tenantWorkerPartitionUpdateUnique) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { + var v TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userSessionToUserUpdateUnique) Tx() UserSessionUniqueTxResult { - v := newUserSessionUniqueTxResult() +func (r tenantWorkerPartitionUpdateUnique) Tx() TenantWorkerPartitionUniqueTxResult { + v := newTenantWorkerPartitionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userSessionToUserFindUnique) Delete() userSessionToUserDeleteUnique { - var v userSessionToUserDeleteUnique +func (r tenantWorkerPartitionFindUnique) Delete() tenantWorkerPartitionDeleteUnique { + var v tenantWorkerPartitionDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "UserSession" + v.query.Model = "TenantWorkerPartition" return v } -type userSessionToUserDeleteUnique struct { +type tenantWorkerPartitionDeleteUnique struct { query builder.Query } -func (r userSessionToUserDeleteUnique) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userSessionToUserDeleteUnique) userSessionModel() {} +func (p tenantWorkerPartitionDeleteUnique) tenantWorkerPartitionModel() {} -func (r userSessionToUserDeleteUnique) Exec(ctx context.Context) (*UserSessionModel, error) { - var v UserSessionModel +func (r tenantWorkerPartitionDeleteUnique) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { + var v TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userSessionToUserDeleteUnique) Tx() UserSessionUniqueTxResult { - v := newUserSessionUniqueTxResult() +func (r tenantWorkerPartitionDeleteUnique) Tx() TenantWorkerPartitionUniqueTxResult { + v := newTenantWorkerPartitionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userSessionToUserFindFirst struct { +type tenantWorkerPartitionFindFirst struct { query builder.Query } -func (r userSessionToUserFindFirst) getQuery() builder.Query { +func (r tenantWorkerPartitionFindFirst) getQuery() builder.Query { return r.query } -func (r userSessionToUserFindFirst) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userSessionToUserFindFirst) with() {} -func (r userSessionToUserFindFirst) userSessionModel() {} -func (r userSessionToUserFindFirst) userSessionRelation() {} +func (r tenantWorkerPartitionFindFirst) with() {} +func (r tenantWorkerPartitionFindFirst) tenantWorkerPartitionModel() {} +func (r tenantWorkerPartitionFindFirst) tenantWorkerPartitionRelation() {} -func (r userSessionToUserFindFirst) With(params ...UserRelationWith) userSessionToUserFindFirst { +func (r tenantWorkerPartitionActions) FindFirst( + params ...TenantWorkerPartitionWhereParam, +) tenantWorkerPartitionFindFirst { + var v tenantWorkerPartitionFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "TenantWorkerPartition" + v.query.Outputs = tenantWorkerPartitionOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantWorkerPartitionFindFirst) With(params ...TenantWorkerPartitionRelationWith) tenantWorkerPartitionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -235955,7 +261017,7 @@ func (r userSessionToUserFindFirst) With(params ...UserRelationWith) userSession return r } -func (r userSessionToUserFindFirst) Select(params ...userSessionPrismaFields) userSessionToUserFindFirst { +func (r tenantWorkerPartitionFindFirst) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindFirst { var outputs []builder.Output for _, param := range params { @@ -235969,7 +261031,7 @@ func (r userSessionToUserFindFirst) Select(params ...userSessionPrismaFields) us return r } -func (r userSessionToUserFindFirst) Omit(params ...userSessionPrismaFields) userSessionToUserFindFirst { +func (r tenantWorkerPartitionFindFirst) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindFirst { var outputs []builder.Output var raw []string @@ -235977,7 +261039,7 @@ func (r userSessionToUserFindFirst) Omit(params ...userSessionPrismaFields) user raw = append(raw, string(param)) } - for _, output := range userSessionOutput { + for _, output := range tenantWorkerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -235988,7 +261050,7 @@ func (r userSessionToUserFindFirst) Omit(params ...userSessionPrismaFields) user return r } -func (r userSessionToUserFindFirst) OrderBy(params ...UserOrderByParam) userSessionToUserFindFirst { +func (r tenantWorkerPartitionFindFirst) OrderBy(params ...TenantWorkerPartitionOrderByParam) tenantWorkerPartitionFindFirst { var fields []builder.Field for _, param := range params { @@ -236008,7 +261070,7 @@ func (r userSessionToUserFindFirst) OrderBy(params ...UserOrderByParam) userSess return r } -func (r userSessionToUserFindFirst) Skip(count int) userSessionToUserFindFirst { +func (r tenantWorkerPartitionFindFirst) Skip(count int) tenantWorkerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -236016,7 +261078,7 @@ func (r userSessionToUserFindFirst) Skip(count int) userSessionToUserFindFirst { return r } -func (r userSessionToUserFindFirst) Take(count int) userSessionToUserFindFirst { +func (r tenantWorkerPartitionFindFirst) Take(count int) tenantWorkerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -236024,7 +261086,7 @@ func (r userSessionToUserFindFirst) Take(count int) userSessionToUserFindFirst { return r } -func (r userSessionToUserFindFirst) Cursor(cursor UserSessionCursorParam) userSessionToUserFindFirst { +func (r tenantWorkerPartitionFindFirst) Cursor(cursor TenantWorkerPartitionCursorParam) tenantWorkerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -236032,11 +261094,11 @@ func (r userSessionToUserFindFirst) Cursor(cursor UserSessionCursorParam) userSe return r } -func (r userSessionToUserFindFirst) Exec(ctx context.Context) ( - *UserSessionModel, +func (r tenantWorkerPartitionFindFirst) Exec(ctx context.Context) ( + *TenantWorkerPartitionModel, error, ) { - var v *UserSessionModel + var v *TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236048,11 +261110,11 @@ func (r userSessionToUserFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userSessionToUserFindFirst) ExecInner(ctx context.Context) ( - *InnerUserSession, +func (r tenantWorkerPartitionFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantWorkerPartition, error, ) { - var v *InnerUserSession + var v *InnerTenantWorkerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236064,23 +261126,60 @@ func (r userSessionToUserFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userSessionToUserFindMany struct { +type tenantWorkerPartitionFindMany struct { query builder.Query } -func (r userSessionToUserFindMany) getQuery() builder.Query { +func (r tenantWorkerPartitionFindMany) getQuery() builder.Query { return r.query } -func (r userSessionToUserFindMany) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionFindMany) ExtractQuery() builder.Query { return r.query } -func (r userSessionToUserFindMany) with() {} -func (r userSessionToUserFindMany) userSessionModel() {} -func (r userSessionToUserFindMany) userSessionRelation() {} +func (r tenantWorkerPartitionFindMany) with() {} +func (r tenantWorkerPartitionFindMany) tenantWorkerPartitionModel() {} +func (r tenantWorkerPartitionFindMany) tenantWorkerPartitionRelation() {} -func (r userSessionToUserFindMany) With(params ...UserRelationWith) userSessionToUserFindMany { +func (r tenantWorkerPartitionActions) FindMany( + params ...TenantWorkerPartitionWhereParam, +) tenantWorkerPartitionFindMany { + var v tenantWorkerPartitionFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "TenantWorkerPartition" + v.query.Outputs = tenantWorkerPartitionOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantWorkerPartitionFindMany) With(params ...TenantWorkerPartitionRelationWith) tenantWorkerPartitionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -236093,7 +261192,7 @@ func (r userSessionToUserFindMany) With(params ...UserRelationWith) userSessionT return r } -func (r userSessionToUserFindMany) Select(params ...userSessionPrismaFields) userSessionToUserFindMany { +func (r tenantWorkerPartitionFindMany) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindMany { var outputs []builder.Output for _, param := range params { @@ -236107,7 +261206,7 @@ func (r userSessionToUserFindMany) Select(params ...userSessionPrismaFields) use return r } -func (r userSessionToUserFindMany) Omit(params ...userSessionPrismaFields) userSessionToUserFindMany { +func (r tenantWorkerPartitionFindMany) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindMany { var outputs []builder.Output var raw []string @@ -236115,7 +261214,7 @@ func (r userSessionToUserFindMany) Omit(params ...userSessionPrismaFields) userS raw = append(raw, string(param)) } - for _, output := range userSessionOutput { + for _, output := range tenantWorkerPartitionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -236126,7 +261225,7 @@ func (r userSessionToUserFindMany) Omit(params ...userSessionPrismaFields) userS return r } -func (r userSessionToUserFindMany) OrderBy(params ...UserOrderByParam) userSessionToUserFindMany { +func (r tenantWorkerPartitionFindMany) OrderBy(params ...TenantWorkerPartitionOrderByParam) tenantWorkerPartitionFindMany { var fields []builder.Field for _, param := range params { @@ -236146,7 +261245,7 @@ func (r userSessionToUserFindMany) OrderBy(params ...UserOrderByParam) userSessi return r } -func (r userSessionToUserFindMany) Skip(count int) userSessionToUserFindMany { +func (r tenantWorkerPartitionFindMany) Skip(count int) tenantWorkerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -236154,7 +261253,7 @@ func (r userSessionToUserFindMany) Skip(count int) userSessionToUserFindMany { return r } -func (r userSessionToUserFindMany) Take(count int) userSessionToUserFindMany { +func (r tenantWorkerPartitionFindMany) Take(count int) tenantWorkerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -236162,7 +261261,7 @@ func (r userSessionToUserFindMany) Take(count int) userSessionToUserFindMany { return r } -func (r userSessionToUserFindMany) Cursor(cursor UserSessionCursorParam) userSessionToUserFindMany { +func (r tenantWorkerPartitionFindMany) Cursor(cursor TenantWorkerPartitionCursorParam) tenantWorkerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -236170,11 +261269,11 @@ func (r userSessionToUserFindMany) Cursor(cursor UserSessionCursorParam) userSes return r } -func (r userSessionToUserFindMany) Exec(ctx context.Context) ( - []UserSessionModel, +func (r tenantWorkerPartitionFindMany) Exec(ctx context.Context) ( + []TenantWorkerPartitionModel, error, ) { - var v []UserSessionModel + var v []TenantWorkerPartitionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236182,11 +261281,11 @@ func (r userSessionToUserFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userSessionToUserFindMany) ExecInner(ctx context.Context) ( - []InnerUserSession, +func (r tenantWorkerPartitionFindMany) ExecInner(ctx context.Context) ( + []InnerTenantWorkerPartition, error, ) { - var v []InnerUserSession + var v []InnerTenantWorkerPartition if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236194,14 +261293,14 @@ func (r userSessionToUserFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userSessionToUserFindMany) Update(params ...UserSessionSetParam) userSessionToUserUpdateMany { +func (r tenantWorkerPartitionFindMany) Update(params ...TenantWorkerPartitionSetParam) tenantWorkerPartitionUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "UserSession" + r.query.Model = "TenantWorkerPartition" r.query.Outputs = countOutput - var v userSessionToUserUpdateMany + var v tenantWorkerPartitionUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -236230,17 +261329,17 @@ func (r userSessionToUserFindMany) Update(params ...UserSessionSetParam) userSes return v } -type userSessionToUserUpdateMany struct { +type tenantWorkerPartitionUpdateMany struct { query builder.Query } -func (r userSessionToUserUpdateMany) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userSessionToUserUpdateMany) userSessionModel() {} +func (r tenantWorkerPartitionUpdateMany) tenantWorkerPartitionModel() {} -func (r userSessionToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantWorkerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -236248,36 +261347,36 @@ func (r userSessionToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r userSessionToUserUpdateMany) Tx() UserSessionManyTxResult { - v := newUserSessionManyTxResult() +func (r tenantWorkerPartitionUpdateMany) Tx() TenantWorkerPartitionManyTxResult { + v := newTenantWorkerPartitionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userSessionToUserFindMany) Delete() userSessionToUserDeleteMany { - var v userSessionToUserDeleteMany +func (r tenantWorkerPartitionFindMany) Delete() tenantWorkerPartitionDeleteMany { + var v tenantWorkerPartitionDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "UserSession" + v.query.Model = "TenantWorkerPartition" v.query.Outputs = countOutput return v } -type userSessionToUserDeleteMany struct { +type tenantWorkerPartitionDeleteMany struct { query builder.Query } -func (r userSessionToUserDeleteMany) ExtractQuery() builder.Query { +func (r tenantWorkerPartitionDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userSessionToUserDeleteMany) userSessionModel() {} +func (p tenantWorkerPartitionDeleteMany) tenantWorkerPartitionModel() {} -func (r userSessionToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantWorkerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -236285,52 +261384,30 @@ func (r userSessionToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r userSessionToUserDeleteMany) Tx() UserSessionManyTxResult { - v := newUserSessionManyTxResult() +func (r tenantWorkerPartitionDeleteMany) Tx() TenantWorkerPartitionManyTxResult { + v := newTenantWorkerPartitionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userSessionFindUnique struct { +type tenantToControllerPartitionFindUnique struct { query builder.Query } -func (r userSessionFindUnique) getQuery() builder.Query { +func (r tenantToControllerPartitionFindUnique) getQuery() builder.Query { return r.query } -func (r userSessionFindUnique) ExtractQuery() builder.Query { +func (r tenantToControllerPartitionFindUnique) ExtractQuery() builder.Query { return r.query } -func (r userSessionFindUnique) with() {} -func (r userSessionFindUnique) userSessionModel() {} -func (r userSessionFindUnique) userSessionRelation() {} - -func (r userSessionActions) FindUnique( - params UserSessionEqualsUniqueWhereParam, -) userSessionFindUnique { - var v userSessionFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "UserSession" - v.query.Outputs = userSessionOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tenantToControllerPartitionFindUnique) with() {} +func (r tenantToControllerPartitionFindUnique) tenantModel() {} +func (r tenantToControllerPartitionFindUnique) tenantRelation() {} -func (r userSessionFindUnique) With(params ...UserSessionRelationWith) userSessionFindUnique { +func (r tenantToControllerPartitionFindUnique) With(params ...ControllerPartitionRelationWith) tenantToControllerPartitionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -236343,7 +261420,7 @@ func (r userSessionFindUnique) With(params ...UserSessionRelationWith) userSessi return r } -func (r userSessionFindUnique) Select(params ...userSessionPrismaFields) userSessionFindUnique { +func (r tenantToControllerPartitionFindUnique) Select(params ...tenantPrismaFields) tenantToControllerPartitionFindUnique { var outputs []builder.Output for _, param := range params { @@ -236357,7 +261434,7 @@ func (r userSessionFindUnique) Select(params ...userSessionPrismaFields) userSes return r } -func (r userSessionFindUnique) Omit(params ...userSessionPrismaFields) userSessionFindUnique { +func (r tenantToControllerPartitionFindUnique) Omit(params ...tenantPrismaFields) tenantToControllerPartitionFindUnique { var outputs []builder.Output var raw []string @@ -236365,7 +261442,7 @@ func (r userSessionFindUnique) Omit(params ...userSessionPrismaFields) userSessi raw = append(raw, string(param)) } - for _, output := range userSessionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -236376,11 +261453,11 @@ func (r userSessionFindUnique) Omit(params ...userSessionPrismaFields) userSessi return r } -func (r userSessionFindUnique) Exec(ctx context.Context) ( - *UserSessionModel, +func (r tenantToControllerPartitionFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *UserSessionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236392,11 +261469,11 @@ func (r userSessionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r userSessionFindUnique) ExecInner(ctx context.Context) ( - *InnerUserSession, +func (r tenantToControllerPartitionFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerUserSession + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236408,12 +261485,12 @@ func (r userSessionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r userSessionFindUnique) Update(params ...UserSessionSetParam) userSessionUpdateUnique { +func (r tenantToControllerPartitionFindUnique) Update(params ...TenantSetParam) tenantToControllerPartitionUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "UserSession" + r.query.Model = "Tenant" - var v userSessionUpdateUnique + var v tenantToControllerPartitionUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -236442,120 +261519,83 @@ func (r userSessionFindUnique) Update(params ...UserSessionSetParam) userSession return v } -type userSessionUpdateUnique struct { +type tenantToControllerPartitionUpdateUnique struct { query builder.Query } -func (r userSessionUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToControllerPartitionUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r userSessionUpdateUnique) userSessionModel() {} +func (r tenantToControllerPartitionUpdateUnique) tenantModel() {} -func (r userSessionUpdateUnique) Exec(ctx context.Context) (*UserSessionModel, error) { - var v UserSessionModel +func (r tenantToControllerPartitionUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userSessionUpdateUnique) Tx() UserSessionUniqueTxResult { - v := newUserSessionUniqueTxResult() +func (r tenantToControllerPartitionUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userSessionFindUnique) Delete() userSessionDeleteUnique { - var v userSessionDeleteUnique +func (r tenantToControllerPartitionFindUnique) Delete() tenantToControllerPartitionDeleteUnique { + var v tenantToControllerPartitionDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "UserSession" + v.query.Model = "Tenant" return v } -type userSessionDeleteUnique struct { +type tenantToControllerPartitionDeleteUnique struct { query builder.Query } -func (r userSessionDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToControllerPartitionDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p userSessionDeleteUnique) userSessionModel() {} +func (p tenantToControllerPartitionDeleteUnique) tenantModel() {} -func (r userSessionDeleteUnique) Exec(ctx context.Context) (*UserSessionModel, error) { - var v UserSessionModel +func (r tenantToControllerPartitionDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r userSessionDeleteUnique) Tx() UserSessionUniqueTxResult { - v := newUserSessionUniqueTxResult() +func (r tenantToControllerPartitionDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type userSessionFindFirst struct { +type tenantToControllerPartitionFindFirst struct { query builder.Query } -func (r userSessionFindFirst) getQuery() builder.Query { +func (r tenantToControllerPartitionFindFirst) getQuery() builder.Query { return r.query } -func (r userSessionFindFirst) ExtractQuery() builder.Query { +func (r tenantToControllerPartitionFindFirst) ExtractQuery() builder.Query { return r.query } -func (r userSessionFindFirst) with() {} -func (r userSessionFindFirst) userSessionModel() {} -func (r userSessionFindFirst) userSessionRelation() {} - -func (r userSessionActions) FindFirst( - params ...UserSessionWhereParam, -) userSessionFindFirst { - var v userSessionFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "UserSession" - v.query.Outputs = userSessionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToControllerPartitionFindFirst) with() {} +func (r tenantToControllerPartitionFindFirst) tenantModel() {} +func (r tenantToControllerPartitionFindFirst) tenantRelation() {} -func (r userSessionFindFirst) With(params ...UserSessionRelationWith) userSessionFindFirst { +func (r tenantToControllerPartitionFindFirst) With(params ...ControllerPartitionRelationWith) tenantToControllerPartitionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -236568,7 +261608,7 @@ func (r userSessionFindFirst) With(params ...UserSessionRelationWith) userSessio return r } -func (r userSessionFindFirst) Select(params ...userSessionPrismaFields) userSessionFindFirst { +func (r tenantToControllerPartitionFindFirst) Select(params ...tenantPrismaFields) tenantToControllerPartitionFindFirst { var outputs []builder.Output for _, param := range params { @@ -236582,7 +261622,7 @@ func (r userSessionFindFirst) Select(params ...userSessionPrismaFields) userSess return r } -func (r userSessionFindFirst) Omit(params ...userSessionPrismaFields) userSessionFindFirst { +func (r tenantToControllerPartitionFindFirst) Omit(params ...tenantPrismaFields) tenantToControllerPartitionFindFirst { var outputs []builder.Output var raw []string @@ -236590,7 +261630,7 @@ func (r userSessionFindFirst) Omit(params ...userSessionPrismaFields) userSessio raw = append(raw, string(param)) } - for _, output := range userSessionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -236601,7 +261641,7 @@ func (r userSessionFindFirst) Omit(params ...userSessionPrismaFields) userSessio return r } -func (r userSessionFindFirst) OrderBy(params ...UserSessionOrderByParam) userSessionFindFirst { +func (r tenantToControllerPartitionFindFirst) OrderBy(params ...ControllerPartitionOrderByParam) tenantToControllerPartitionFindFirst { var fields []builder.Field for _, param := range params { @@ -236621,7 +261661,7 @@ func (r userSessionFindFirst) OrderBy(params ...UserSessionOrderByParam) userSes return r } -func (r userSessionFindFirst) Skip(count int) userSessionFindFirst { +func (r tenantToControllerPartitionFindFirst) Skip(count int) tenantToControllerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -236629,7 +261669,7 @@ func (r userSessionFindFirst) Skip(count int) userSessionFindFirst { return r } -func (r userSessionFindFirst) Take(count int) userSessionFindFirst { +func (r tenantToControllerPartitionFindFirst) Take(count int) tenantToControllerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -236637,7 +261677,7 @@ func (r userSessionFindFirst) Take(count int) userSessionFindFirst { return r } -func (r userSessionFindFirst) Cursor(cursor UserSessionCursorParam) userSessionFindFirst { +func (r tenantToControllerPartitionFindFirst) Cursor(cursor TenantCursorParam) tenantToControllerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -236645,11 +261685,11 @@ func (r userSessionFindFirst) Cursor(cursor UserSessionCursorParam) userSessionF return r } -func (r userSessionFindFirst) Exec(ctx context.Context) ( - *UserSessionModel, +func (r tenantToControllerPartitionFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *UserSessionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236661,11 +261701,11 @@ func (r userSessionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r userSessionFindFirst) ExecInner(ctx context.Context) ( - *InnerUserSession, +func (r tenantToControllerPartitionFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerUserSession + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236677,60 +261717,23 @@ func (r userSessionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type userSessionFindMany struct { +type tenantToControllerPartitionFindMany struct { query builder.Query } -func (r userSessionFindMany) getQuery() builder.Query { +func (r tenantToControllerPartitionFindMany) getQuery() builder.Query { return r.query } -func (r userSessionFindMany) ExtractQuery() builder.Query { +func (r tenantToControllerPartitionFindMany) ExtractQuery() builder.Query { return r.query } -func (r userSessionFindMany) with() {} -func (r userSessionFindMany) userSessionModel() {} -func (r userSessionFindMany) userSessionRelation() {} - -func (r userSessionActions) FindMany( - params ...UserSessionWhereParam, -) userSessionFindMany { - var v userSessionFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "UserSession" - v.query.Outputs = userSessionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToControllerPartitionFindMany) with() {} +func (r tenantToControllerPartitionFindMany) tenantModel() {} +func (r tenantToControllerPartitionFindMany) tenantRelation() {} -func (r userSessionFindMany) With(params ...UserSessionRelationWith) userSessionFindMany { +func (r tenantToControllerPartitionFindMany) With(params ...ControllerPartitionRelationWith) tenantToControllerPartitionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -236743,7 +261746,7 @@ func (r userSessionFindMany) With(params ...UserSessionRelationWith) userSession return r } -func (r userSessionFindMany) Select(params ...userSessionPrismaFields) userSessionFindMany { +func (r tenantToControllerPartitionFindMany) Select(params ...tenantPrismaFields) tenantToControllerPartitionFindMany { var outputs []builder.Output for _, param := range params { @@ -236757,7 +261760,7 @@ func (r userSessionFindMany) Select(params ...userSessionPrismaFields) userSessi return r } -func (r userSessionFindMany) Omit(params ...userSessionPrismaFields) userSessionFindMany { +func (r tenantToControllerPartitionFindMany) Omit(params ...tenantPrismaFields) tenantToControllerPartitionFindMany { var outputs []builder.Output var raw []string @@ -236765,7 +261768,7 @@ func (r userSessionFindMany) Omit(params ...userSessionPrismaFields) userSession raw = append(raw, string(param)) } - for _, output := range userSessionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -236776,7 +261779,7 @@ func (r userSessionFindMany) Omit(params ...userSessionPrismaFields) userSession return r } -func (r userSessionFindMany) OrderBy(params ...UserSessionOrderByParam) userSessionFindMany { +func (r tenantToControllerPartitionFindMany) OrderBy(params ...ControllerPartitionOrderByParam) tenantToControllerPartitionFindMany { var fields []builder.Field for _, param := range params { @@ -236796,7 +261799,7 @@ func (r userSessionFindMany) OrderBy(params ...UserSessionOrderByParam) userSess return r } -func (r userSessionFindMany) Skip(count int) userSessionFindMany { +func (r tenantToControllerPartitionFindMany) Skip(count int) tenantToControllerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -236804,7 +261807,7 @@ func (r userSessionFindMany) Skip(count int) userSessionFindMany { return r } -func (r userSessionFindMany) Take(count int) userSessionFindMany { +func (r tenantToControllerPartitionFindMany) Take(count int) tenantToControllerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -236812,7 +261815,7 @@ func (r userSessionFindMany) Take(count int) userSessionFindMany { return r } -func (r userSessionFindMany) Cursor(cursor UserSessionCursorParam) userSessionFindMany { +func (r tenantToControllerPartitionFindMany) Cursor(cursor TenantCursorParam) tenantToControllerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -236820,11 +261823,11 @@ func (r userSessionFindMany) Cursor(cursor UserSessionCursorParam) userSessionFi return r } -func (r userSessionFindMany) Exec(ctx context.Context) ( - []UserSessionModel, +func (r tenantToControllerPartitionFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []UserSessionModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236832,11 +261835,11 @@ func (r userSessionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r userSessionFindMany) ExecInner(ctx context.Context) ( - []InnerUserSession, +func (r tenantToControllerPartitionFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerUserSession + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -236844,14 +261847,14 @@ func (r userSessionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r userSessionFindMany) Update(params ...UserSessionSetParam) userSessionUpdateMany { +func (r tenantToControllerPartitionFindMany) Update(params ...TenantSetParam) tenantToControllerPartitionUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "UserSession" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v userSessionUpdateMany + var v tenantToControllerPartitionUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -236880,17 +261883,17 @@ func (r userSessionFindMany) Update(params ...UserSessionSetParam) userSessionUp return v } -type userSessionUpdateMany struct { +type tenantToControllerPartitionUpdateMany struct { query builder.Query } -func (r userSessionUpdateMany) ExtractQuery() builder.Query { +func (r tenantToControllerPartitionUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r userSessionUpdateMany) userSessionModel() {} +func (r tenantToControllerPartitionUpdateMany) tenantModel() {} -func (r userSessionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToControllerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -236898,36 +261901,36 @@ func (r userSessionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r userSessionUpdateMany) Tx() UserSessionManyTxResult { - v := newUserSessionManyTxResult() +func (r tenantToControllerPartitionUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r userSessionFindMany) Delete() userSessionDeleteMany { - var v userSessionDeleteMany +func (r tenantToControllerPartitionFindMany) Delete() tenantToControllerPartitionDeleteMany { + var v tenantToControllerPartitionDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "UserSession" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type userSessionDeleteMany struct { +type tenantToControllerPartitionDeleteMany struct { query builder.Query } -func (r userSessionDeleteMany) ExtractQuery() builder.Query { +func (r tenantToControllerPartitionDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p userSessionDeleteMany) userSessionModel() {} +func (p tenantToControllerPartitionDeleteMany) tenantModel() {} -func (r userSessionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToControllerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -236935,30 +261938,30 @@ func (r userSessionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r userSessionDeleteMany) Tx() UserSessionManyTxResult { - v := newUserSessionManyTxResult() +func (r tenantToControllerPartitionDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerToTokenFindUnique struct { +type tenantToWorkerPartitionFindUnique struct { query builder.Query } -func (r webhookWorkerToTokenFindUnique) getQuery() builder.Query { +func (r tenantToWorkerPartitionFindUnique) getQuery() builder.Query { return r.query } -func (r webhookWorkerToTokenFindUnique) ExtractQuery() builder.Query { +func (r tenantToWorkerPartitionFindUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTokenFindUnique) with() {} -func (r webhookWorkerToTokenFindUnique) webhookWorkerModel() {} -func (r webhookWorkerToTokenFindUnique) webhookWorkerRelation() {} +func (r tenantToWorkerPartitionFindUnique) with() {} +func (r tenantToWorkerPartitionFindUnique) tenantModel() {} +func (r tenantToWorkerPartitionFindUnique) tenantRelation() {} -func (r webhookWorkerToTokenFindUnique) With(params ...APITokenRelationWith) webhookWorkerToTokenFindUnique { +func (r tenantToWorkerPartitionFindUnique) With(params ...TenantWorkerPartitionRelationWith) tenantToWorkerPartitionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -236971,7 +261974,7 @@ func (r webhookWorkerToTokenFindUnique) With(params ...APITokenRelationWith) web return r } -func (r webhookWorkerToTokenFindUnique) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindUnique { +func (r tenantToWorkerPartitionFindUnique) Select(params ...tenantPrismaFields) tenantToWorkerPartitionFindUnique { var outputs []builder.Output for _, param := range params { @@ -236985,7 +261988,7 @@ func (r webhookWorkerToTokenFindUnique) Select(params ...webhookWorkerPrismaFiel return r } -func (r webhookWorkerToTokenFindUnique) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindUnique { +func (r tenantToWorkerPartitionFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkerPartitionFindUnique { var outputs []builder.Output var raw []string @@ -236993,7 +261996,7 @@ func (r webhookWorkerToTokenFindUnique) Omit(params ...webhookWorkerPrismaFields raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -237004,11 +262007,11 @@ func (r webhookWorkerToTokenFindUnique) Omit(params ...webhookWorkerPrismaFields return r } -func (r webhookWorkerToTokenFindUnique) Exec(ctx context.Context) ( - *WebhookWorkerModel, +func (r tenantToWorkerPartitionFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237020,11 +262023,11 @@ func (r webhookWorkerToTokenFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTokenFindUnique) ExecInner(ctx context.Context) ( - *InnerWebhookWorker, +func (r tenantToWorkerPartitionFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorker + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237036,12 +262039,12 @@ func (r webhookWorkerToTokenFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTokenFindUnique) Update(params ...WebhookWorkerSetParam) webhookWorkerToTokenUpdateUnique { +func (r tenantToWorkerPartitionFindUnique) Update(params ...TenantSetParam) tenantToWorkerPartitionUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WebhookWorker" + r.query.Model = "Tenant" - var v webhookWorkerToTokenUpdateUnique + var v tenantToWorkerPartitionUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -237070,83 +262073,83 @@ func (r webhookWorkerToTokenFindUnique) Update(params ...WebhookWorkerSetParam) return v } -type webhookWorkerToTokenUpdateUnique struct { +type tenantToWorkerPartitionUpdateUnique struct { query builder.Query } -func (r webhookWorkerToTokenUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToWorkerPartitionUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTokenUpdateUnique) webhookWorkerModel() {} +func (r tenantToWorkerPartitionUpdateUnique) tenantModel() {} -func (r webhookWorkerToTokenUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r tenantToWorkerPartitionUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerToTokenUpdateUnique) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r tenantToWorkerPartitionUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerToTokenFindUnique) Delete() webhookWorkerToTokenDeleteUnique { - var v webhookWorkerToTokenDeleteUnique +func (r tenantToWorkerPartitionFindUnique) Delete() tenantToWorkerPartitionDeleteUnique { + var v tenantToWorkerPartitionDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WebhookWorker" + v.query.Model = "Tenant" return v } -type webhookWorkerToTokenDeleteUnique struct { +type tenantToWorkerPartitionDeleteUnique struct { query builder.Query } -func (r webhookWorkerToTokenDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToWorkerPartitionDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerToTokenDeleteUnique) webhookWorkerModel() {} +func (p tenantToWorkerPartitionDeleteUnique) tenantModel() {} -func (r webhookWorkerToTokenDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r tenantToWorkerPartitionDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerToTokenDeleteUnique) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r tenantToWorkerPartitionDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerToTokenFindFirst struct { +type tenantToWorkerPartitionFindFirst struct { query builder.Query } -func (r webhookWorkerToTokenFindFirst) getQuery() builder.Query { +func (r tenantToWorkerPartitionFindFirst) getQuery() builder.Query { return r.query } -func (r webhookWorkerToTokenFindFirst) ExtractQuery() builder.Query { +func (r tenantToWorkerPartitionFindFirst) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTokenFindFirst) with() {} -func (r webhookWorkerToTokenFindFirst) webhookWorkerModel() {} -func (r webhookWorkerToTokenFindFirst) webhookWorkerRelation() {} +func (r tenantToWorkerPartitionFindFirst) with() {} +func (r tenantToWorkerPartitionFindFirst) tenantModel() {} +func (r tenantToWorkerPartitionFindFirst) tenantRelation() {} -func (r webhookWorkerToTokenFindFirst) With(params ...APITokenRelationWith) webhookWorkerToTokenFindFirst { +func (r tenantToWorkerPartitionFindFirst) With(params ...TenantWorkerPartitionRelationWith) tenantToWorkerPartitionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -237159,7 +262162,7 @@ func (r webhookWorkerToTokenFindFirst) With(params ...APITokenRelationWith) webh return r } -func (r webhookWorkerToTokenFindFirst) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindFirst { +func (r tenantToWorkerPartitionFindFirst) Select(params ...tenantPrismaFields) tenantToWorkerPartitionFindFirst { var outputs []builder.Output for _, param := range params { @@ -237173,7 +262176,7 @@ func (r webhookWorkerToTokenFindFirst) Select(params ...webhookWorkerPrismaField return r } -func (r webhookWorkerToTokenFindFirst) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindFirst { +func (r tenantToWorkerPartitionFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkerPartitionFindFirst { var outputs []builder.Output var raw []string @@ -237181,7 +262184,7 @@ func (r webhookWorkerToTokenFindFirst) Omit(params ...webhookWorkerPrismaFields) raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -237192,7 +262195,7 @@ func (r webhookWorkerToTokenFindFirst) Omit(params ...webhookWorkerPrismaFields) return r } -func (r webhookWorkerToTokenFindFirst) OrderBy(params ...APITokenOrderByParam) webhookWorkerToTokenFindFirst { +func (r tenantToWorkerPartitionFindFirst) OrderBy(params ...TenantWorkerPartitionOrderByParam) tenantToWorkerPartitionFindFirst { var fields []builder.Field for _, param := range params { @@ -237212,7 +262215,7 @@ func (r webhookWorkerToTokenFindFirst) OrderBy(params ...APITokenOrderByParam) w return r } -func (r webhookWorkerToTokenFindFirst) Skip(count int) webhookWorkerToTokenFindFirst { +func (r tenantToWorkerPartitionFindFirst) Skip(count int) tenantToWorkerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -237220,7 +262223,7 @@ func (r webhookWorkerToTokenFindFirst) Skip(count int) webhookWorkerToTokenFindF return r } -func (r webhookWorkerToTokenFindFirst) Take(count int) webhookWorkerToTokenFindFirst { +func (r tenantToWorkerPartitionFindFirst) Take(count int) tenantToWorkerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -237228,7 +262231,7 @@ func (r webhookWorkerToTokenFindFirst) Take(count int) webhookWorkerToTokenFindF return r } -func (r webhookWorkerToTokenFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToTokenFindFirst { +func (r tenantToWorkerPartitionFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkerPartitionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -237236,11 +262239,11 @@ func (r webhookWorkerToTokenFindFirst) Cursor(cursor WebhookWorkerCursorParam) w return r } -func (r webhookWorkerToTokenFindFirst) Exec(ctx context.Context) ( - *WebhookWorkerModel, +func (r tenantToWorkerPartitionFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237252,11 +262255,11 @@ func (r webhookWorkerToTokenFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTokenFindFirst) ExecInner(ctx context.Context) ( - *InnerWebhookWorker, +func (r tenantToWorkerPartitionFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorker + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237268,23 +262271,23 @@ func (r webhookWorkerToTokenFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type webhookWorkerToTokenFindMany struct { +type tenantToWorkerPartitionFindMany struct { query builder.Query } -func (r webhookWorkerToTokenFindMany) getQuery() builder.Query { +func (r tenantToWorkerPartitionFindMany) getQuery() builder.Query { return r.query } -func (r webhookWorkerToTokenFindMany) ExtractQuery() builder.Query { +func (r tenantToWorkerPartitionFindMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTokenFindMany) with() {} -func (r webhookWorkerToTokenFindMany) webhookWorkerModel() {} -func (r webhookWorkerToTokenFindMany) webhookWorkerRelation() {} +func (r tenantToWorkerPartitionFindMany) with() {} +func (r tenantToWorkerPartitionFindMany) tenantModel() {} +func (r tenantToWorkerPartitionFindMany) tenantRelation() {} -func (r webhookWorkerToTokenFindMany) With(params ...APITokenRelationWith) webhookWorkerToTokenFindMany { +func (r tenantToWorkerPartitionFindMany) With(params ...TenantWorkerPartitionRelationWith) tenantToWorkerPartitionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -237297,7 +262300,7 @@ func (r webhookWorkerToTokenFindMany) With(params ...APITokenRelationWith) webho return r } -func (r webhookWorkerToTokenFindMany) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindMany { +func (r tenantToWorkerPartitionFindMany) Select(params ...tenantPrismaFields) tenantToWorkerPartitionFindMany { var outputs []builder.Output for _, param := range params { @@ -237311,7 +262314,7 @@ func (r webhookWorkerToTokenFindMany) Select(params ...webhookWorkerPrismaFields return r } -func (r webhookWorkerToTokenFindMany) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTokenFindMany { +func (r tenantToWorkerPartitionFindMany) Omit(params ...tenantPrismaFields) tenantToWorkerPartitionFindMany { var outputs []builder.Output var raw []string @@ -237319,7 +262322,7 @@ func (r webhookWorkerToTokenFindMany) Omit(params ...webhookWorkerPrismaFields) raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -237330,7 +262333,7 @@ func (r webhookWorkerToTokenFindMany) Omit(params ...webhookWorkerPrismaFields) return r } -func (r webhookWorkerToTokenFindMany) OrderBy(params ...APITokenOrderByParam) webhookWorkerToTokenFindMany { +func (r tenantToWorkerPartitionFindMany) OrderBy(params ...TenantWorkerPartitionOrderByParam) tenantToWorkerPartitionFindMany { var fields []builder.Field for _, param := range params { @@ -237350,7 +262353,7 @@ func (r webhookWorkerToTokenFindMany) OrderBy(params ...APITokenOrderByParam) we return r } -func (r webhookWorkerToTokenFindMany) Skip(count int) webhookWorkerToTokenFindMany { +func (r tenantToWorkerPartitionFindMany) Skip(count int) tenantToWorkerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -237358,7 +262361,7 @@ func (r webhookWorkerToTokenFindMany) Skip(count int) webhookWorkerToTokenFindMa return r } -func (r webhookWorkerToTokenFindMany) Take(count int) webhookWorkerToTokenFindMany { +func (r tenantToWorkerPartitionFindMany) Take(count int) tenantToWorkerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -237366,7 +262369,7 @@ func (r webhookWorkerToTokenFindMany) Take(count int) webhookWorkerToTokenFindMa return r } -func (r webhookWorkerToTokenFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToTokenFindMany { +func (r tenantToWorkerPartitionFindMany) Cursor(cursor TenantCursorParam) tenantToWorkerPartitionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -237374,11 +262377,11 @@ func (r webhookWorkerToTokenFindMany) Cursor(cursor WebhookWorkerCursorParam) we return r } -func (r webhookWorkerToTokenFindMany) Exec(ctx context.Context) ( - []WebhookWorkerModel, +func (r tenantToWorkerPartitionFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []WebhookWorkerModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237386,11 +262389,11 @@ func (r webhookWorkerToTokenFindMany) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTokenFindMany) ExecInner(ctx context.Context) ( - []InnerWebhookWorker, +func (r tenantToWorkerPartitionFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerWebhookWorker + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237398,14 +262401,14 @@ func (r webhookWorkerToTokenFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTokenFindMany) Update(params ...WebhookWorkerSetParam) webhookWorkerToTokenUpdateMany { +func (r tenantToWorkerPartitionFindMany) Update(params ...TenantSetParam) tenantToWorkerPartitionUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WebhookWorker" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v webhookWorkerToTokenUpdateMany + var v tenantToWorkerPartitionUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -237434,17 +262437,17 @@ func (r webhookWorkerToTokenFindMany) Update(params ...WebhookWorkerSetParam) we return v } -type webhookWorkerToTokenUpdateMany struct { +type tenantToWorkerPartitionUpdateMany struct { query builder.Query } -func (r webhookWorkerToTokenUpdateMany) ExtractQuery() builder.Query { +func (r tenantToWorkerPartitionUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTokenUpdateMany) webhookWorkerModel() {} +func (r tenantToWorkerPartitionUpdateMany) tenantModel() {} -func (r webhookWorkerToTokenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -237452,36 +262455,36 @@ func (r webhookWorkerToTokenUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r webhookWorkerToTokenUpdateMany) Tx() WebhookWorkerManyTxResult { - v := newWebhookWorkerManyTxResult() +func (r tenantToWorkerPartitionUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerToTokenFindMany) Delete() webhookWorkerToTokenDeleteMany { - var v webhookWorkerToTokenDeleteMany +func (r tenantToWorkerPartitionFindMany) Delete() tenantToWorkerPartitionDeleteMany { + var v tenantToWorkerPartitionDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WebhookWorker" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type webhookWorkerToTokenDeleteMany struct { +type tenantToWorkerPartitionDeleteMany struct { query builder.Query } -func (r webhookWorkerToTokenDeleteMany) ExtractQuery() builder.Query { +func (r tenantToWorkerPartitionDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerToTokenDeleteMany) webhookWorkerModel() {} +func (p tenantToWorkerPartitionDeleteMany) tenantModel() {} -func (r webhookWorkerToTokenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -237489,30 +262492,30 @@ func (r webhookWorkerToTokenDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r webhookWorkerToTokenDeleteMany) Tx() WebhookWorkerManyTxResult { - v := newWebhookWorkerManyTxResult() +func (r tenantToWorkerPartitionDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerToTenantFindUnique struct { +type tenantToEventsFindUnique struct { query builder.Query } -func (r webhookWorkerToTenantFindUnique) getQuery() builder.Query { +func (r tenantToEventsFindUnique) getQuery() builder.Query { return r.query } -func (r webhookWorkerToTenantFindUnique) ExtractQuery() builder.Query { +func (r tenantToEventsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTenantFindUnique) with() {} -func (r webhookWorkerToTenantFindUnique) webhookWorkerModel() {} -func (r webhookWorkerToTenantFindUnique) webhookWorkerRelation() {} +func (r tenantToEventsFindUnique) with() {} +func (r tenantToEventsFindUnique) tenantModel() {} +func (r tenantToEventsFindUnique) tenantRelation() {} -func (r webhookWorkerToTenantFindUnique) With(params ...TenantRelationWith) webhookWorkerToTenantFindUnique { +func (r tenantToEventsFindUnique) With(params ...EventRelationWith) tenantToEventsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -237525,7 +262528,7 @@ func (r webhookWorkerToTenantFindUnique) With(params ...TenantRelationWith) webh return r } -func (r webhookWorkerToTenantFindUnique) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindUnique { +func (r tenantToEventsFindUnique) Select(params ...tenantPrismaFields) tenantToEventsFindUnique { var outputs []builder.Output for _, param := range params { @@ -237539,7 +262542,7 @@ func (r webhookWorkerToTenantFindUnique) Select(params ...webhookWorkerPrismaFie return r } -func (r webhookWorkerToTenantFindUnique) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindUnique { +func (r tenantToEventsFindUnique) Omit(params ...tenantPrismaFields) tenantToEventsFindUnique { var outputs []builder.Output var raw []string @@ -237547,7 +262550,7 @@ func (r webhookWorkerToTenantFindUnique) Omit(params ...webhookWorkerPrismaField raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -237558,11 +262561,11 @@ func (r webhookWorkerToTenantFindUnique) Omit(params ...webhookWorkerPrismaField return r } -func (r webhookWorkerToTenantFindUnique) Exec(ctx context.Context) ( - *WebhookWorkerModel, +func (r tenantToEventsFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237574,11 +262577,11 @@ func (r webhookWorkerToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerWebhookWorker, +func (r tenantToEventsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorker + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237590,12 +262593,12 @@ func (r webhookWorkerToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTenantFindUnique) Update(params ...WebhookWorkerSetParam) webhookWorkerToTenantUpdateUnique { +func (r tenantToEventsFindUnique) Update(params ...TenantSetParam) tenantToEventsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WebhookWorker" + r.query.Model = "Tenant" - var v webhookWorkerToTenantUpdateUnique + var v tenantToEventsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -237624,83 +262627,83 @@ func (r webhookWorkerToTenantFindUnique) Update(params ...WebhookWorkerSetParam) return v } -type webhookWorkerToTenantUpdateUnique struct { +type tenantToEventsUpdateUnique struct { query builder.Query } -func (r webhookWorkerToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToEventsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTenantUpdateUnique) webhookWorkerModel() {} +func (r tenantToEventsUpdateUnique) tenantModel() {} -func (r webhookWorkerToTenantUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r tenantToEventsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerToTenantUpdateUnique) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r tenantToEventsUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerToTenantFindUnique) Delete() webhookWorkerToTenantDeleteUnique { - var v webhookWorkerToTenantDeleteUnique +func (r tenantToEventsFindUnique) Delete() tenantToEventsDeleteUnique { + var v tenantToEventsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WebhookWorker" + v.query.Model = "Tenant" return v } -type webhookWorkerToTenantDeleteUnique struct { +type tenantToEventsDeleteUnique struct { query builder.Query } -func (r webhookWorkerToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToEventsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerToTenantDeleteUnique) webhookWorkerModel() {} +func (p tenantToEventsDeleteUnique) tenantModel() {} -func (r webhookWorkerToTenantDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r tenantToEventsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerToTenantDeleteUnique) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r tenantToEventsDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerToTenantFindFirst struct { +type tenantToEventsFindFirst struct { query builder.Query } -func (r webhookWorkerToTenantFindFirst) getQuery() builder.Query { +func (r tenantToEventsFindFirst) getQuery() builder.Query { return r.query } -func (r webhookWorkerToTenantFindFirst) ExtractQuery() builder.Query { +func (r tenantToEventsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTenantFindFirst) with() {} -func (r webhookWorkerToTenantFindFirst) webhookWorkerModel() {} -func (r webhookWorkerToTenantFindFirst) webhookWorkerRelation() {} +func (r tenantToEventsFindFirst) with() {} +func (r tenantToEventsFindFirst) tenantModel() {} +func (r tenantToEventsFindFirst) tenantRelation() {} -func (r webhookWorkerToTenantFindFirst) With(params ...TenantRelationWith) webhookWorkerToTenantFindFirst { +func (r tenantToEventsFindFirst) With(params ...EventRelationWith) tenantToEventsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -237713,7 +262716,7 @@ func (r webhookWorkerToTenantFindFirst) With(params ...TenantRelationWith) webho return r } -func (r webhookWorkerToTenantFindFirst) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindFirst { +func (r tenantToEventsFindFirst) Select(params ...tenantPrismaFields) tenantToEventsFindFirst { var outputs []builder.Output for _, param := range params { @@ -237727,7 +262730,7 @@ func (r webhookWorkerToTenantFindFirst) Select(params ...webhookWorkerPrismaFiel return r } -func (r webhookWorkerToTenantFindFirst) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindFirst { +func (r tenantToEventsFindFirst) Omit(params ...tenantPrismaFields) tenantToEventsFindFirst { var outputs []builder.Output var raw []string @@ -237735,7 +262738,7 @@ func (r webhookWorkerToTenantFindFirst) Omit(params ...webhookWorkerPrismaFields raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -237746,7 +262749,7 @@ func (r webhookWorkerToTenantFindFirst) Omit(params ...webhookWorkerPrismaFields return r } -func (r webhookWorkerToTenantFindFirst) OrderBy(params ...TenantOrderByParam) webhookWorkerToTenantFindFirst { +func (r tenantToEventsFindFirst) OrderBy(params ...EventOrderByParam) tenantToEventsFindFirst { var fields []builder.Field for _, param := range params { @@ -237766,7 +262769,7 @@ func (r webhookWorkerToTenantFindFirst) OrderBy(params ...TenantOrderByParam) we return r } -func (r webhookWorkerToTenantFindFirst) Skip(count int) webhookWorkerToTenantFindFirst { +func (r tenantToEventsFindFirst) Skip(count int) tenantToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -237774,7 +262777,7 @@ func (r webhookWorkerToTenantFindFirst) Skip(count int) webhookWorkerToTenantFin return r } -func (r webhookWorkerToTenantFindFirst) Take(count int) webhookWorkerToTenantFindFirst { +func (r tenantToEventsFindFirst) Take(count int) tenantToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -237782,7 +262785,7 @@ func (r webhookWorkerToTenantFindFirst) Take(count int) webhookWorkerToTenantFin return r } -func (r webhookWorkerToTenantFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToTenantFindFirst { +func (r tenantToEventsFindFirst) Cursor(cursor TenantCursorParam) tenantToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -237790,11 +262793,11 @@ func (r webhookWorkerToTenantFindFirst) Cursor(cursor WebhookWorkerCursorParam) return r } -func (r webhookWorkerToTenantFindFirst) Exec(ctx context.Context) ( - *WebhookWorkerModel, +func (r tenantToEventsFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237806,11 +262809,11 @@ func (r webhookWorkerToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerWebhookWorker, +func (r tenantToEventsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorker + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237822,23 +262825,23 @@ func (r webhookWorkerToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type webhookWorkerToTenantFindMany struct { +type tenantToEventsFindMany struct { query builder.Query } -func (r webhookWorkerToTenantFindMany) getQuery() builder.Query { +func (r tenantToEventsFindMany) getQuery() builder.Query { return r.query } -func (r webhookWorkerToTenantFindMany) ExtractQuery() builder.Query { +func (r tenantToEventsFindMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTenantFindMany) with() {} -func (r webhookWorkerToTenantFindMany) webhookWorkerModel() {} -func (r webhookWorkerToTenantFindMany) webhookWorkerRelation() {} +func (r tenantToEventsFindMany) with() {} +func (r tenantToEventsFindMany) tenantModel() {} +func (r tenantToEventsFindMany) tenantRelation() {} -func (r webhookWorkerToTenantFindMany) With(params ...TenantRelationWith) webhookWorkerToTenantFindMany { +func (r tenantToEventsFindMany) With(params ...EventRelationWith) tenantToEventsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -237851,7 +262854,7 @@ func (r webhookWorkerToTenantFindMany) With(params ...TenantRelationWith) webhoo return r } -func (r webhookWorkerToTenantFindMany) Select(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindMany { +func (r tenantToEventsFindMany) Select(params ...tenantPrismaFields) tenantToEventsFindMany { var outputs []builder.Output for _, param := range params { @@ -237865,7 +262868,7 @@ func (r webhookWorkerToTenantFindMany) Select(params ...webhookWorkerPrismaField return r } -func (r webhookWorkerToTenantFindMany) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToTenantFindMany { +func (r tenantToEventsFindMany) Omit(params ...tenantPrismaFields) tenantToEventsFindMany { var outputs []builder.Output var raw []string @@ -237873,7 +262876,7 @@ func (r webhookWorkerToTenantFindMany) Omit(params ...webhookWorkerPrismaFields) raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -237884,7 +262887,7 @@ func (r webhookWorkerToTenantFindMany) Omit(params ...webhookWorkerPrismaFields) return r } -func (r webhookWorkerToTenantFindMany) OrderBy(params ...TenantOrderByParam) webhookWorkerToTenantFindMany { +func (r tenantToEventsFindMany) OrderBy(params ...EventOrderByParam) tenantToEventsFindMany { var fields []builder.Field for _, param := range params { @@ -237904,7 +262907,7 @@ func (r webhookWorkerToTenantFindMany) OrderBy(params ...TenantOrderByParam) web return r } -func (r webhookWorkerToTenantFindMany) Skip(count int) webhookWorkerToTenantFindMany { +func (r tenantToEventsFindMany) Skip(count int) tenantToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -237912,7 +262915,7 @@ func (r webhookWorkerToTenantFindMany) Skip(count int) webhookWorkerToTenantFind return r } -func (r webhookWorkerToTenantFindMany) Take(count int) webhookWorkerToTenantFindMany { +func (r tenantToEventsFindMany) Take(count int) tenantToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -237920,7 +262923,7 @@ func (r webhookWorkerToTenantFindMany) Take(count int) webhookWorkerToTenantFind return r } -func (r webhookWorkerToTenantFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToTenantFindMany { +func (r tenantToEventsFindMany) Cursor(cursor TenantCursorParam) tenantToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -237928,11 +262931,11 @@ func (r webhookWorkerToTenantFindMany) Cursor(cursor WebhookWorkerCursorParam) w return r } -func (r webhookWorkerToTenantFindMany) Exec(ctx context.Context) ( - []WebhookWorkerModel, +func (r tenantToEventsFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []WebhookWorkerModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237940,11 +262943,11 @@ func (r webhookWorkerToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerWebhookWorker, +func (r tenantToEventsFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerWebhookWorker + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -237952,14 +262955,14 @@ func (r webhookWorkerToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r webhookWorkerToTenantFindMany) Update(params ...WebhookWorkerSetParam) webhookWorkerToTenantUpdateMany { +func (r tenantToEventsFindMany) Update(params ...TenantSetParam) tenantToEventsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WebhookWorker" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v webhookWorkerToTenantUpdateMany + var v tenantToEventsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -237988,17 +262991,17 @@ func (r webhookWorkerToTenantFindMany) Update(params ...WebhookWorkerSetParam) w return v } -type webhookWorkerToTenantUpdateMany struct { +type tenantToEventsUpdateMany struct { query builder.Query } -func (r webhookWorkerToTenantUpdateMany) ExtractQuery() builder.Query { +func (r tenantToEventsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToTenantUpdateMany) webhookWorkerModel() {} +func (r tenantToEventsUpdateMany) tenantModel() {} -func (r webhookWorkerToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -238006,36 +263009,36 @@ func (r webhookWorkerToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r webhookWorkerToTenantUpdateMany) Tx() WebhookWorkerManyTxResult { - v := newWebhookWorkerManyTxResult() +func (r tenantToEventsUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerToTenantFindMany) Delete() webhookWorkerToTenantDeleteMany { - var v webhookWorkerToTenantDeleteMany +func (r tenantToEventsFindMany) Delete() tenantToEventsDeleteMany { + var v tenantToEventsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WebhookWorker" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type webhookWorkerToTenantDeleteMany struct { +type tenantToEventsDeleteMany struct { query builder.Query } -func (r webhookWorkerToTenantDeleteMany) ExtractQuery() builder.Query { +func (r tenantToEventsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerToTenantDeleteMany) webhookWorkerModel() {} +func (p tenantToEventsDeleteMany) tenantModel() {} -func (r webhookWorkerToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -238043,30 +263046,30 @@ func (r webhookWorkerToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r webhookWorkerToTenantDeleteMany) Tx() WebhookWorkerManyTxResult { - v := newWebhookWorkerManyTxResult() +func (r tenantToEventsDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerToWebhookWorkerWorkflowsFindUnique struct { +type tenantToWorkflowsFindUnique struct { query builder.Query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) getQuery() builder.Query { +func (r tenantToWorkflowsFindUnique) getQuery() builder.Query { return r.query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) with() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) webhookWorkerModel() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) webhookWorkerRelation() {} +func (r tenantToWorkflowsFindUnique) with() {} +func (r tenantToWorkflowsFindUnique) tenantModel() {} +func (r tenantToWorkflowsFindUnique) tenantRelation() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerToWebhookWorkerWorkflowsFindUnique { +func (r tenantToWorkflowsFindUnique) With(params ...WorkflowRelationWith) tenantToWorkflowsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -238079,7 +263082,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) With(params ...WebhookW return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Select(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindUnique { +func (r tenantToWorkflowsFindUnique) Select(params ...tenantPrismaFields) tenantToWorkflowsFindUnique { var outputs []builder.Output for _, param := range params { @@ -238093,7 +263096,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Select(params ...webhoo return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindUnique { +func (r tenantToWorkflowsFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkflowsFindUnique { var outputs []builder.Output var raw []string @@ -238101,7 +263104,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Omit(params ...webhookW raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -238112,11 +263115,11 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Omit(params ...webhookW return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Exec(ctx context.Context) ( - *WebhookWorkerModel, +func (r tenantToWorkflowsFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238128,11 +263131,11 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Exec(ctx context.Contex return v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) ExecInner(ctx context.Context) ( - *InnerWebhookWorker, +func (r tenantToWorkflowsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorker + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238144,12 +263147,12 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) ExecInner(ctx context.C return v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Update(params ...WebhookWorkerSetParam) webhookWorkerToWebhookWorkerWorkflowsUpdateUnique { +func (r tenantToWorkflowsFindUnique) Update(params ...TenantSetParam) tenantToWorkflowsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WebhookWorker" + r.query.Model = "Tenant" - var v webhookWorkerToWebhookWorkerWorkflowsUpdateUnique + var v tenantToWorkflowsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -238178,83 +263181,83 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Update(params ...Webhoo return v } -type webhookWorkerToWebhookWorkerWorkflowsUpdateUnique struct { +type tenantToWorkflowsUpdateUnique struct { query builder.Query } -func (r webhookWorkerToWebhookWorkerWorkflowsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToWebhookWorkerWorkflowsUpdateUnique) webhookWorkerModel() {} +func (r tenantToWorkflowsUpdateUnique) tenantModel() {} -func (r webhookWorkerToWebhookWorkerWorkflowsUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r tenantToWorkflowsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsUpdateUnique) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r tenantToWorkflowsUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerToWebhookWorkerWorkflowsFindUnique) Delete() webhookWorkerToWebhookWorkerWorkflowsDeleteUnique { - var v webhookWorkerToWebhookWorkerWorkflowsDeleteUnique +func (r tenantToWorkflowsFindUnique) Delete() tenantToWorkflowsDeleteUnique { + var v tenantToWorkflowsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WebhookWorker" + v.query.Model = "Tenant" return v } -type webhookWorkerToWebhookWorkerWorkflowsDeleteUnique struct { +type tenantToWorkflowsDeleteUnique struct { query builder.Query } -func (r webhookWorkerToWebhookWorkerWorkflowsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerToWebhookWorkerWorkflowsDeleteUnique) webhookWorkerModel() {} +func (p tenantToWorkflowsDeleteUnique) tenantModel() {} -func (r webhookWorkerToWebhookWorkerWorkflowsDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r tenantToWorkflowsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsDeleteUnique) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r tenantToWorkflowsDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerToWebhookWorkerWorkflowsFindFirst struct { +type tenantToWorkflowsFindFirst struct { query builder.Query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) getQuery() builder.Query { +func (r tenantToWorkflowsFindFirst) getQuery() builder.Query { return r.query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) ExtractQuery() builder.Query { +func (r tenantToWorkflowsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) with() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) webhookWorkerModel() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) webhookWorkerRelation() {} +func (r tenantToWorkflowsFindFirst) with() {} +func (r tenantToWorkflowsFindFirst) tenantModel() {} +func (r tenantToWorkflowsFindFirst) tenantRelation() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerToWebhookWorkerWorkflowsFindFirst { +func (r tenantToWorkflowsFindFirst) With(params ...WorkflowRelationWith) tenantToWorkflowsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -238267,7 +263270,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) With(params ...WebhookWo return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Select(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindFirst { +func (r tenantToWorkflowsFindFirst) Select(params ...tenantPrismaFields) tenantToWorkflowsFindFirst { var outputs []builder.Output for _, param := range params { @@ -238281,7 +263284,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Select(params ...webhook return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindFirst { +func (r tenantToWorkflowsFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkflowsFindFirst { var outputs []builder.Output var raw []string @@ -238289,7 +263292,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Omit(params ...webhookWo raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -238300,7 +263303,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Omit(params ...webhookWo return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) webhookWorkerToWebhookWorkerWorkflowsFindFirst { +func (r tenantToWorkflowsFindFirst) OrderBy(params ...WorkflowOrderByParam) tenantToWorkflowsFindFirst { var fields []builder.Field for _, param := range params { @@ -238320,7 +263323,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) OrderBy(params ...Webhoo return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Skip(count int) webhookWorkerToWebhookWorkerWorkflowsFindFirst { +func (r tenantToWorkflowsFindFirst) Skip(count int) tenantToWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -238328,7 +263331,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Skip(count int) webhookW return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Take(count int) webhookWorkerToWebhookWorkerWorkflowsFindFirst { +func (r tenantToWorkflowsFindFirst) Take(count int) tenantToWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -238336,7 +263339,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Take(count int) webhookW return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToWebhookWorkerWorkflowsFindFirst { +func (r tenantToWorkflowsFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -238344,11 +263347,11 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Cursor(cursor WebhookWor return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Exec(ctx context.Context) ( - *WebhookWorkerModel, +func (r tenantToWorkflowsFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238360,11 +263363,11 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) Exec(ctx context.Context return v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) ExecInner(ctx context.Context) ( - *InnerWebhookWorker, +func (r tenantToWorkflowsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorker + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238376,23 +263379,23 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindFirst) ExecInner(ctx context.Co return v, nil } -type webhookWorkerToWebhookWorkerWorkflowsFindMany struct { +type tenantToWorkflowsFindMany struct { query builder.Query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) getQuery() builder.Query { +func (r tenantToWorkflowsFindMany) getQuery() builder.Query { return r.query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowsFindMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) with() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) webhookWorkerModel() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) webhookWorkerRelation() {} +func (r tenantToWorkflowsFindMany) with() {} +func (r tenantToWorkflowsFindMany) tenantModel() {} +func (r tenantToWorkflowsFindMany) tenantRelation() {} -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerToWebhookWorkerWorkflowsFindMany { +func (r tenantToWorkflowsFindMany) With(params ...WorkflowRelationWith) tenantToWorkflowsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -238405,7 +263408,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) With(params ...WebhookWor return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Select(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindMany { +func (r tenantToWorkflowsFindMany) Select(params ...tenantPrismaFields) tenantToWorkflowsFindMany { var outputs []builder.Output for _, param := range params { @@ -238419,7 +263422,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Select(params ...webhookW return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Omit(params ...webhookWorkerPrismaFields) webhookWorkerToWebhookWorkerWorkflowsFindMany { +func (r tenantToWorkflowsFindMany) Omit(params ...tenantPrismaFields) tenantToWorkflowsFindMany { var outputs []builder.Output var raw []string @@ -238427,7 +263430,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Omit(params ...webhookWor raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -238438,7 +263441,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Omit(params ...webhookWor return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) webhookWorkerToWebhookWorkerWorkflowsFindMany { +func (r tenantToWorkflowsFindMany) OrderBy(params ...WorkflowOrderByParam) tenantToWorkflowsFindMany { var fields []builder.Field for _, param := range params { @@ -238458,7 +263461,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) OrderBy(params ...Webhook return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Skip(count int) webhookWorkerToWebhookWorkerWorkflowsFindMany { +func (r tenantToWorkflowsFindMany) Skip(count int) tenantToWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -238466,7 +263469,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Skip(count int) webhookWo return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Take(count int) webhookWorkerToWebhookWorkerWorkflowsFindMany { +func (r tenantToWorkflowsFindMany) Take(count int) tenantToWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -238474,7 +263477,7 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Take(count int) webhookWo return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerToWebhookWorkerWorkflowsFindMany { +func (r tenantToWorkflowsFindMany) Cursor(cursor TenantCursorParam) tenantToWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -238482,11 +263485,11 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Cursor(cursor WebhookWork return r } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Exec(ctx context.Context) ( - []WebhookWorkerModel, +func (r tenantToWorkflowsFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []WebhookWorkerModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238494,11 +263497,11 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Exec(ctx context.Context) return v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) ExecInner(ctx context.Context) ( - []InnerWebhookWorker, +func (r tenantToWorkflowsFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerWebhookWorker + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238506,14 +263509,14 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) ExecInner(ctx context.Con return v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Update(params ...WebhookWorkerSetParam) webhookWorkerToWebhookWorkerWorkflowsUpdateMany { +func (r tenantToWorkflowsFindMany) Update(params ...TenantSetParam) tenantToWorkflowsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WebhookWorker" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v webhookWorkerToWebhookWorkerWorkflowsUpdateMany + var v tenantToWorkflowsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -238542,17 +263545,17 @@ func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Update(params ...WebhookW return v } -type webhookWorkerToWebhookWorkerWorkflowsUpdateMany struct { +type tenantToWorkflowsUpdateMany struct { query builder.Query } -func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) webhookWorkerModel() {} +func (r tenantToWorkflowsUpdateMany) tenantModel() {} -func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -238560,36 +263563,36 @@ func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) Exec(ctx context.Contex return &v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsUpdateMany) Tx() WebhookWorkerManyTxResult { - v := newWebhookWorkerManyTxResult() +func (r tenantToWorkflowsUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerToWebhookWorkerWorkflowsFindMany) Delete() webhookWorkerToWebhookWorkerWorkflowsDeleteMany { - var v webhookWorkerToWebhookWorkerWorkflowsDeleteMany +func (r tenantToWorkflowsFindMany) Delete() tenantToWorkflowsDeleteMany { + var v tenantToWorkflowsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WebhookWorker" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type webhookWorkerToWebhookWorkerWorkflowsDeleteMany struct { +type tenantToWorkflowsDeleteMany struct { query builder.Query } -func (r webhookWorkerToWebhookWorkerWorkflowsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerToWebhookWorkerWorkflowsDeleteMany) webhookWorkerModel() {} +func (p tenantToWorkflowsDeleteMany) tenantModel() {} -func (r webhookWorkerToWebhookWorkerWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -238597,52 +263600,30 @@ func (r webhookWorkerToWebhookWorkerWorkflowsDeleteMany) Exec(ctx context.Contex return &v, nil } -func (r webhookWorkerToWebhookWorkerWorkflowsDeleteMany) Tx() WebhookWorkerManyTxResult { - v := newWebhookWorkerManyTxResult() +func (r tenantToWorkflowsDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerFindUnique struct { +type tenantToJobsFindUnique struct { query builder.Query } -func (r webhookWorkerFindUnique) getQuery() builder.Query { +func (r tenantToJobsFindUnique) getQuery() builder.Query { return r.query } -func (r webhookWorkerFindUnique) ExtractQuery() builder.Query { +func (r tenantToJobsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerFindUnique) with() {} -func (r webhookWorkerFindUnique) webhookWorkerModel() {} -func (r webhookWorkerFindUnique) webhookWorkerRelation() {} - -func (r webhookWorkerActions) FindUnique( - params WebhookWorkerEqualsUniqueWhereParam, -) webhookWorkerFindUnique { - var v webhookWorkerFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WebhookWorker" - v.query.Outputs = webhookWorkerOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tenantToJobsFindUnique) with() {} +func (r tenantToJobsFindUnique) tenantModel() {} +func (r tenantToJobsFindUnique) tenantRelation() {} -func (r webhookWorkerFindUnique) With(params ...WebhookWorkerRelationWith) webhookWorkerFindUnique { +func (r tenantToJobsFindUnique) With(params ...JobRelationWith) tenantToJobsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -238655,7 +263636,7 @@ func (r webhookWorkerFindUnique) With(params ...WebhookWorkerRelationWith) webho return r } -func (r webhookWorkerFindUnique) Select(params ...webhookWorkerPrismaFields) webhookWorkerFindUnique { +func (r tenantToJobsFindUnique) Select(params ...tenantPrismaFields) tenantToJobsFindUnique { var outputs []builder.Output for _, param := range params { @@ -238669,7 +263650,7 @@ func (r webhookWorkerFindUnique) Select(params ...webhookWorkerPrismaFields) web return r } -func (r webhookWorkerFindUnique) Omit(params ...webhookWorkerPrismaFields) webhookWorkerFindUnique { +func (r tenantToJobsFindUnique) Omit(params ...tenantPrismaFields) tenantToJobsFindUnique { var outputs []builder.Output var raw []string @@ -238677,7 +263658,7 @@ func (r webhookWorkerFindUnique) Omit(params ...webhookWorkerPrismaFields) webho raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -238688,11 +263669,11 @@ func (r webhookWorkerFindUnique) Omit(params ...webhookWorkerPrismaFields) webho return r } -func (r webhookWorkerFindUnique) Exec(ctx context.Context) ( - *WebhookWorkerModel, +func (r tenantToJobsFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238704,11 +263685,11 @@ func (r webhookWorkerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerFindUnique) ExecInner(ctx context.Context) ( - *InnerWebhookWorker, +func (r tenantToJobsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorker + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238720,12 +263701,12 @@ func (r webhookWorkerFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r webhookWorkerFindUnique) Update(params ...WebhookWorkerSetParam) webhookWorkerUpdateUnique { +func (r tenantToJobsFindUnique) Update(params ...TenantSetParam) tenantToJobsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WebhookWorker" + r.query.Model = "Tenant" - var v webhookWorkerUpdateUnique + var v tenantToJobsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -238754,120 +263735,83 @@ func (r webhookWorkerFindUnique) Update(params ...WebhookWorkerSetParam) webhook return v } -type webhookWorkerUpdateUnique struct { +type tenantToJobsUpdateUnique struct { query builder.Query } -func (r webhookWorkerUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToJobsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerUpdateUnique) webhookWorkerModel() {} +func (r tenantToJobsUpdateUnique) tenantModel() {} -func (r webhookWorkerUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r tenantToJobsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerUpdateUnique) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r tenantToJobsUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerFindUnique) Delete() webhookWorkerDeleteUnique { - var v webhookWorkerDeleteUnique +func (r tenantToJobsFindUnique) Delete() tenantToJobsDeleteUnique { + var v tenantToJobsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WebhookWorker" + v.query.Model = "Tenant" return v } -type webhookWorkerDeleteUnique struct { +type tenantToJobsDeleteUnique struct { query builder.Query } -func (r webhookWorkerDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToJobsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerDeleteUnique) webhookWorkerModel() {} +func (p tenantToJobsDeleteUnique) tenantModel() {} -func (r webhookWorkerDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerModel, error) { - var v WebhookWorkerModel +func (r tenantToJobsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerDeleteUnique) Tx() WebhookWorkerUniqueTxResult { - v := newWebhookWorkerUniqueTxResult() +func (r tenantToJobsDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerFindFirst struct { +type tenantToJobsFindFirst struct { query builder.Query } -func (r webhookWorkerFindFirst) getQuery() builder.Query { +func (r tenantToJobsFindFirst) getQuery() builder.Query { return r.query } -func (r webhookWorkerFindFirst) ExtractQuery() builder.Query { +func (r tenantToJobsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerFindFirst) with() {} -func (r webhookWorkerFindFirst) webhookWorkerModel() {} -func (r webhookWorkerFindFirst) webhookWorkerRelation() {} - -func (r webhookWorkerActions) FindFirst( - params ...WebhookWorkerWhereParam, -) webhookWorkerFindFirst { - var v webhookWorkerFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WebhookWorker" - v.query.Outputs = webhookWorkerOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToJobsFindFirst) with() {} +func (r tenantToJobsFindFirst) tenantModel() {} +func (r tenantToJobsFindFirst) tenantRelation() {} -func (r webhookWorkerFindFirst) With(params ...WebhookWorkerRelationWith) webhookWorkerFindFirst { +func (r tenantToJobsFindFirst) With(params ...JobRelationWith) tenantToJobsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -238880,7 +263824,7 @@ func (r webhookWorkerFindFirst) With(params ...WebhookWorkerRelationWith) webhoo return r } -func (r webhookWorkerFindFirst) Select(params ...webhookWorkerPrismaFields) webhookWorkerFindFirst { +func (r tenantToJobsFindFirst) Select(params ...tenantPrismaFields) tenantToJobsFindFirst { var outputs []builder.Output for _, param := range params { @@ -238894,7 +263838,7 @@ func (r webhookWorkerFindFirst) Select(params ...webhookWorkerPrismaFields) webh return r } -func (r webhookWorkerFindFirst) Omit(params ...webhookWorkerPrismaFields) webhookWorkerFindFirst { +func (r tenantToJobsFindFirst) Omit(params ...tenantPrismaFields) tenantToJobsFindFirst { var outputs []builder.Output var raw []string @@ -238902,7 +263846,7 @@ func (r webhookWorkerFindFirst) Omit(params ...webhookWorkerPrismaFields) webhoo raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -238913,7 +263857,7 @@ func (r webhookWorkerFindFirst) Omit(params ...webhookWorkerPrismaFields) webhoo return r } -func (r webhookWorkerFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) webhookWorkerFindFirst { +func (r tenantToJobsFindFirst) OrderBy(params ...JobOrderByParam) tenantToJobsFindFirst { var fields []builder.Field for _, param := range params { @@ -238933,7 +263877,7 @@ func (r webhookWorkerFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) web return r } -func (r webhookWorkerFindFirst) Skip(count int) webhookWorkerFindFirst { +func (r tenantToJobsFindFirst) Skip(count int) tenantToJobsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -238941,7 +263885,7 @@ func (r webhookWorkerFindFirst) Skip(count int) webhookWorkerFindFirst { return r } -func (r webhookWorkerFindFirst) Take(count int) webhookWorkerFindFirst { +func (r tenantToJobsFindFirst) Take(count int) tenantToJobsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -238949,7 +263893,7 @@ func (r webhookWorkerFindFirst) Take(count int) webhookWorkerFindFirst { return r } -func (r webhookWorkerFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerFindFirst { +func (r tenantToJobsFindFirst) Cursor(cursor TenantCursorParam) tenantToJobsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -238957,11 +263901,11 @@ func (r webhookWorkerFindFirst) Cursor(cursor WebhookWorkerCursorParam) webhookW return r } -func (r webhookWorkerFindFirst) Exec(ctx context.Context) ( - *WebhookWorkerModel, +func (r tenantToJobsFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238973,11 +263917,11 @@ func (r webhookWorkerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerFindFirst) ExecInner(ctx context.Context) ( - *InnerWebhookWorker, +func (r tenantToJobsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorker + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -238989,60 +263933,23 @@ func (r webhookWorkerFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type webhookWorkerFindMany struct { +type tenantToJobsFindMany struct { query builder.Query } -func (r webhookWorkerFindMany) getQuery() builder.Query { +func (r tenantToJobsFindMany) getQuery() builder.Query { return r.query } -func (r webhookWorkerFindMany) ExtractQuery() builder.Query { +func (r tenantToJobsFindMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerFindMany) with() {} -func (r webhookWorkerFindMany) webhookWorkerModel() {} -func (r webhookWorkerFindMany) webhookWorkerRelation() {} - -func (r webhookWorkerActions) FindMany( - params ...WebhookWorkerWhereParam, -) webhookWorkerFindMany { - var v webhookWorkerFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WebhookWorker" - v.query.Outputs = webhookWorkerOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToJobsFindMany) with() {} +func (r tenantToJobsFindMany) tenantModel() {} +func (r tenantToJobsFindMany) tenantRelation() {} -func (r webhookWorkerFindMany) With(params ...WebhookWorkerRelationWith) webhookWorkerFindMany { +func (r tenantToJobsFindMany) With(params ...JobRelationWith) tenantToJobsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -239055,7 +263962,7 @@ func (r webhookWorkerFindMany) With(params ...WebhookWorkerRelationWith) webhook return r } -func (r webhookWorkerFindMany) Select(params ...webhookWorkerPrismaFields) webhookWorkerFindMany { +func (r tenantToJobsFindMany) Select(params ...tenantPrismaFields) tenantToJobsFindMany { var outputs []builder.Output for _, param := range params { @@ -239069,7 +263976,7 @@ func (r webhookWorkerFindMany) Select(params ...webhookWorkerPrismaFields) webho return r } -func (r webhookWorkerFindMany) Omit(params ...webhookWorkerPrismaFields) webhookWorkerFindMany { +func (r tenantToJobsFindMany) Omit(params ...tenantPrismaFields) tenantToJobsFindMany { var outputs []builder.Output var raw []string @@ -239077,7 +263984,7 @@ func (r webhookWorkerFindMany) Omit(params ...webhookWorkerPrismaFields) webhook raw = append(raw, string(param)) } - for _, output := range webhookWorkerOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -239088,7 +263995,7 @@ func (r webhookWorkerFindMany) Omit(params ...webhookWorkerPrismaFields) webhook return r } -func (r webhookWorkerFindMany) OrderBy(params ...WebhookWorkerOrderByParam) webhookWorkerFindMany { +func (r tenantToJobsFindMany) OrderBy(params ...JobOrderByParam) tenantToJobsFindMany { var fields []builder.Field for _, param := range params { @@ -239108,7 +264015,7 @@ func (r webhookWorkerFindMany) OrderBy(params ...WebhookWorkerOrderByParam) webh return r } -func (r webhookWorkerFindMany) Skip(count int) webhookWorkerFindMany { +func (r tenantToJobsFindMany) Skip(count int) tenantToJobsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -239116,7 +264023,7 @@ func (r webhookWorkerFindMany) Skip(count int) webhookWorkerFindMany { return r } -func (r webhookWorkerFindMany) Take(count int) webhookWorkerFindMany { +func (r tenantToJobsFindMany) Take(count int) tenantToJobsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -239124,7 +264031,7 @@ func (r webhookWorkerFindMany) Take(count int) webhookWorkerFindMany { return r } -func (r webhookWorkerFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWorkerFindMany { +func (r tenantToJobsFindMany) Cursor(cursor TenantCursorParam) tenantToJobsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -239132,11 +264039,11 @@ func (r webhookWorkerFindMany) Cursor(cursor WebhookWorkerCursorParam) webhookWo return r } -func (r webhookWorkerFindMany) Exec(ctx context.Context) ( - []WebhookWorkerModel, +func (r tenantToJobsFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []WebhookWorkerModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239144,11 +264051,11 @@ func (r webhookWorkerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerFindMany) ExecInner(ctx context.Context) ( - []InnerWebhookWorker, +func (r tenantToJobsFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerWebhookWorker + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239156,14 +264063,14 @@ func (r webhookWorkerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r webhookWorkerFindMany) Update(params ...WebhookWorkerSetParam) webhookWorkerUpdateMany { +func (r tenantToJobsFindMany) Update(params ...TenantSetParam) tenantToJobsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WebhookWorker" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v webhookWorkerUpdateMany + var v tenantToJobsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -239192,17 +264099,17 @@ func (r webhookWorkerFindMany) Update(params ...WebhookWorkerSetParam) webhookWo return v } -type webhookWorkerUpdateMany struct { +type tenantToJobsUpdateMany struct { query builder.Query } -func (r webhookWorkerUpdateMany) ExtractQuery() builder.Query { +func (r tenantToJobsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerUpdateMany) webhookWorkerModel() {} +func (r tenantToJobsUpdateMany) tenantModel() {} -func (r webhookWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToJobsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -239210,36 +264117,36 @@ func (r webhookWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r webhookWorkerUpdateMany) Tx() WebhookWorkerManyTxResult { - v := newWebhookWorkerManyTxResult() +func (r tenantToJobsUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerFindMany) Delete() webhookWorkerDeleteMany { - var v webhookWorkerDeleteMany +func (r tenantToJobsFindMany) Delete() tenantToJobsDeleteMany { + var v tenantToJobsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WebhookWorker" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type webhookWorkerDeleteMany struct { +type tenantToJobsDeleteMany struct { query builder.Query } -func (r webhookWorkerDeleteMany) ExtractQuery() builder.Query { +func (r tenantToJobsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerDeleteMany) webhookWorkerModel() {} +func (p tenantToJobsDeleteMany) tenantModel() {} -func (r webhookWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToJobsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -239247,30 +264154,30 @@ func (r webhookWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r webhookWorkerDeleteMany) Tx() WebhookWorkerManyTxResult { - v := newWebhookWorkerManyTxResult() +func (r tenantToJobsDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerWorkflowToWebhookWorkerFindUnique struct { +type tenantToStepsFindUnique struct { query builder.Query } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) getQuery() builder.Query { +func (r tenantToStepsFindUnique) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) ExtractQuery() builder.Query { +func (r tenantToStepsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) with() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) webhookWorkerWorkflowRelation() {} +func (r tenantToStepsFindUnique) with() {} +func (r tenantToStepsFindUnique) tenantModel() {} +func (r tenantToStepsFindUnique) tenantRelation() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) With(params ...WebhookWorkerRelationWith) webhookWorkerWorkflowToWebhookWorkerFindUnique { +func (r tenantToStepsFindUnique) With(params ...StepRelationWith) tenantToStepsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -239283,7 +264190,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) With(params ...WebhookWo return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindUnique { +func (r tenantToStepsFindUnique) Select(params ...tenantPrismaFields) tenantToStepsFindUnique { var outputs []builder.Output for _, param := range params { @@ -239297,7 +264204,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Select(params ...webhook return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindUnique { +func (r tenantToStepsFindUnique) Omit(params ...tenantPrismaFields) tenantToStepsFindUnique { var outputs []builder.Output var raw []string @@ -239305,7 +264212,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Omit(params ...webhookWo raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -239316,11 +264223,11 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Omit(params ...webhookWo return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Exec(ctx context.Context) ( - *WebhookWorkerWorkflowModel, +func (r tenantToStepsFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerWorkflowModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239332,11 +264239,11 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Exec(ctx context.Context return v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) ExecInner(ctx context.Context) ( - *InnerWebhookWorkerWorkflow, +func (r tenantToStepsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorkerWorkflow + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239348,12 +264255,12 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) ExecInner(ctx context.Co return v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowToWebhookWorkerUpdateUnique { +func (r tenantToStepsFindUnique) Update(params ...TenantSetParam) tenantToStepsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WebhookWorkerWorkflow" + r.query.Model = "Tenant" - var v webhookWorkerWorkflowToWebhookWorkerUpdateUnique + var v tenantToStepsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -239382,83 +264289,83 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Update(params ...Webhook return v } -type webhookWorkerWorkflowToWebhookWorkerUpdateUnique struct { +type tenantToStepsUpdateUnique struct { query builder.Query } -func (r webhookWorkerWorkflowToWebhookWorkerUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToStepsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWebhookWorkerUpdateUnique) webhookWorkerWorkflowModel() {} +func (r tenantToStepsUpdateUnique) tenantModel() {} -func (r webhookWorkerWorkflowToWebhookWorkerUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { - var v WebhookWorkerWorkflowModel +func (r tenantToStepsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerUpdateUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { - v := newWebhookWorkerWorkflowUniqueTxResult() +func (r tenantToStepsUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerWorkflowToWebhookWorkerFindUnique) Delete() webhookWorkerWorkflowToWebhookWorkerDeleteUnique { - var v webhookWorkerWorkflowToWebhookWorkerDeleteUnique +func (r tenantToStepsFindUnique) Delete() tenantToStepsDeleteUnique { + var v tenantToStepsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WebhookWorkerWorkflow" + v.query.Model = "Tenant" return v } -type webhookWorkerWorkflowToWebhookWorkerDeleteUnique struct { +type tenantToStepsDeleteUnique struct { query builder.Query } -func (r webhookWorkerWorkflowToWebhookWorkerDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToStepsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerWorkflowToWebhookWorkerDeleteUnique) webhookWorkerWorkflowModel() {} +func (p tenantToStepsDeleteUnique) tenantModel() {} -func (r webhookWorkerWorkflowToWebhookWorkerDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { - var v WebhookWorkerWorkflowModel +func (r tenantToStepsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerDeleteUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { - v := newWebhookWorkerWorkflowUniqueTxResult() +func (r tenantToStepsDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerWorkflowToWebhookWorkerFindFirst struct { +type tenantToStepsFindFirst struct { query builder.Query } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) getQuery() builder.Query { +func (r tenantToStepsFindFirst) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) ExtractQuery() builder.Query { +func (r tenantToStepsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) with() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) webhookWorkerWorkflowRelation() {} +func (r tenantToStepsFindFirst) with() {} +func (r tenantToStepsFindFirst) tenantModel() {} +func (r tenantToStepsFindFirst) tenantRelation() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) With(params ...WebhookWorkerRelationWith) webhookWorkerWorkflowToWebhookWorkerFindFirst { +func (r tenantToStepsFindFirst) With(params ...StepRelationWith) tenantToStepsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -239471,7 +264378,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) With(params ...WebhookWor return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindFirst { +func (r tenantToStepsFindFirst) Select(params ...tenantPrismaFields) tenantToStepsFindFirst { var outputs []builder.Output for _, param := range params { @@ -239485,7 +264392,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Select(params ...webhookW return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindFirst { +func (r tenantToStepsFindFirst) Omit(params ...tenantPrismaFields) tenantToStepsFindFirst { var outputs []builder.Output var raw []string @@ -239493,7 +264400,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Omit(params ...webhookWor raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -239504,7 +264411,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Omit(params ...webhookWor return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) webhookWorkerWorkflowToWebhookWorkerFindFirst { +func (r tenantToStepsFindFirst) OrderBy(params ...StepOrderByParam) tenantToStepsFindFirst { var fields []builder.Field for _, param := range params { @@ -239524,7 +264431,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) OrderBy(params ...Webhook return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Skip(count int) webhookWorkerWorkflowToWebhookWorkerFindFirst { +func (r tenantToStepsFindFirst) Skip(count int) tenantToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -239532,7 +264439,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Skip(count int) webhookWo return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Take(count int) webhookWorkerWorkflowToWebhookWorkerFindFirst { +func (r tenantToStepsFindFirst) Take(count int) tenantToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -239540,7 +264447,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Take(count int) webhookWo return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowToWebhookWorkerFindFirst { +func (r tenantToStepsFindFirst) Cursor(cursor TenantCursorParam) tenantToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -239548,11 +264455,11 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Cursor(cursor WebhookWork return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Exec(ctx context.Context) ( - *WebhookWorkerWorkflowModel, +func (r tenantToStepsFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerWorkflowModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239564,11 +264471,11 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) Exec(ctx context.Context) return v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) ExecInner(ctx context.Context) ( - *InnerWebhookWorkerWorkflow, +func (r tenantToStepsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorkerWorkflow + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239580,23 +264487,23 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindFirst) ExecInner(ctx context.Con return v, nil } -type webhookWorkerWorkflowToWebhookWorkerFindMany struct { +type tenantToStepsFindMany struct { query builder.Query } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) getQuery() builder.Query { +func (r tenantToStepsFindMany) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) ExtractQuery() builder.Query { +func (r tenantToStepsFindMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) with() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) webhookWorkerWorkflowRelation() {} +func (r tenantToStepsFindMany) with() {} +func (r tenantToStepsFindMany) tenantModel() {} +func (r tenantToStepsFindMany) tenantRelation() {} -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) With(params ...WebhookWorkerRelationWith) webhookWorkerWorkflowToWebhookWorkerFindMany { +func (r tenantToStepsFindMany) With(params ...StepRelationWith) tenantToStepsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -239609,7 +264516,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) With(params ...WebhookWork return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindMany { +func (r tenantToStepsFindMany) Select(params ...tenantPrismaFields) tenantToStepsFindMany { var outputs []builder.Output for _, param := range params { @@ -239623,7 +264530,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Select(params ...webhookWo return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWebhookWorkerFindMany { +func (r tenantToStepsFindMany) Omit(params ...tenantPrismaFields) tenantToStepsFindMany { var outputs []builder.Output var raw []string @@ -239631,7 +264538,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Omit(params ...webhookWork raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -239642,7 +264549,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Omit(params ...webhookWork return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) OrderBy(params ...WebhookWorkerOrderByParam) webhookWorkerWorkflowToWebhookWorkerFindMany { +func (r tenantToStepsFindMany) OrderBy(params ...StepOrderByParam) tenantToStepsFindMany { var fields []builder.Field for _, param := range params { @@ -239662,7 +264569,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) OrderBy(params ...WebhookW return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Skip(count int) webhookWorkerWorkflowToWebhookWorkerFindMany { +func (r tenantToStepsFindMany) Skip(count int) tenantToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -239670,7 +264577,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Skip(count int) webhookWor return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Take(count int) webhookWorkerWorkflowToWebhookWorkerFindMany { +func (r tenantToStepsFindMany) Take(count int) tenantToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -239678,7 +264585,7 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Take(count int) webhookWor return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowToWebhookWorkerFindMany { +func (r tenantToStepsFindMany) Cursor(cursor TenantCursorParam) tenantToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -239686,11 +264593,11 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Cursor(cursor WebhookWorke return r } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Exec(ctx context.Context) ( - []WebhookWorkerWorkflowModel, +func (r tenantToStepsFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []WebhookWorkerWorkflowModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239698,11 +264605,11 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Exec(ctx context.Context) return v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) ExecInner(ctx context.Context) ( - []InnerWebhookWorkerWorkflow, +func (r tenantToStepsFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerWebhookWorkerWorkflow + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239710,14 +264617,14 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) ExecInner(ctx context.Cont return v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowToWebhookWorkerUpdateMany { +func (r tenantToStepsFindMany) Update(params ...TenantSetParam) tenantToStepsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WebhookWorkerWorkflow" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v webhookWorkerWorkflowToWebhookWorkerUpdateMany + var v tenantToStepsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -239746,17 +264653,17 @@ func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Update(params ...WebhookWo return v } -type webhookWorkerWorkflowToWebhookWorkerUpdateMany struct { +type tenantToStepsUpdateMany struct { query builder.Query } -func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) ExtractQuery() builder.Query { +func (r tenantToStepsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) webhookWorkerWorkflowModel() {} +func (r tenantToStepsUpdateMany) tenantModel() {} -func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -239764,36 +264671,36 @@ func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) Exec(ctx context.Context return &v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerUpdateMany) Tx() WebhookWorkerWorkflowManyTxResult { - v := newWebhookWorkerWorkflowManyTxResult() +func (r tenantToStepsUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerWorkflowToWebhookWorkerFindMany) Delete() webhookWorkerWorkflowToWebhookWorkerDeleteMany { - var v webhookWorkerWorkflowToWebhookWorkerDeleteMany +func (r tenantToStepsFindMany) Delete() tenantToStepsDeleteMany { + var v tenantToStepsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WebhookWorkerWorkflow" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type webhookWorkerWorkflowToWebhookWorkerDeleteMany struct { +type tenantToStepsDeleteMany struct { query builder.Query } -func (r webhookWorkerWorkflowToWebhookWorkerDeleteMany) ExtractQuery() builder.Query { +func (r tenantToStepsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerWorkflowToWebhookWorkerDeleteMany) webhookWorkerWorkflowModel() {} +func (p tenantToStepsDeleteMany) tenantModel() {} -func (r webhookWorkerWorkflowToWebhookWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -239801,30 +264708,30 @@ func (r webhookWorkerWorkflowToWebhookWorkerDeleteMany) Exec(ctx context.Context return &v, nil } -func (r webhookWorkerWorkflowToWebhookWorkerDeleteMany) Tx() WebhookWorkerWorkflowManyTxResult { - v := newWebhookWorkerWorkflowManyTxResult() +func (r tenantToStepsDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerWorkflowToWorkflowFindUnique struct { +type tenantToTriggersFindUnique struct { query builder.Query } -func (r webhookWorkerWorkflowToWorkflowFindUnique) getQuery() builder.Query { +func (r tenantToTriggersFindUnique) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWorkflowFindUnique) ExtractQuery() builder.Query { +func (r tenantToTriggersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWorkflowFindUnique) with() {} -func (r webhookWorkerWorkflowToWorkflowFindUnique) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowToWorkflowFindUnique) webhookWorkerWorkflowRelation() {} +func (r tenantToTriggersFindUnique) with() {} +func (r tenantToTriggersFindUnique) tenantModel() {} +func (r tenantToTriggersFindUnique) tenantRelation() {} -func (r webhookWorkerWorkflowToWorkflowFindUnique) With(params ...WorkflowRelationWith) webhookWorkerWorkflowToWorkflowFindUnique { +func (r tenantToTriggersFindUnique) With(params ...WorkflowTriggersRelationWith) tenantToTriggersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -239837,7 +264744,7 @@ func (r webhookWorkerWorkflowToWorkflowFindUnique) With(params ...WorkflowRelati return r } -func (r webhookWorkerWorkflowToWorkflowFindUnique) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindUnique { +func (r tenantToTriggersFindUnique) Select(params ...tenantPrismaFields) tenantToTriggersFindUnique { var outputs []builder.Output for _, param := range params { @@ -239851,7 +264758,7 @@ func (r webhookWorkerWorkflowToWorkflowFindUnique) Select(params ...webhookWorke return r } -func (r webhookWorkerWorkflowToWorkflowFindUnique) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindUnique { +func (r tenantToTriggersFindUnique) Omit(params ...tenantPrismaFields) tenantToTriggersFindUnique { var outputs []builder.Output var raw []string @@ -239859,7 +264766,7 @@ func (r webhookWorkerWorkflowToWorkflowFindUnique) Omit(params ...webhookWorkerW raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -239870,11 +264777,11 @@ func (r webhookWorkerWorkflowToWorkflowFindUnique) Omit(params ...webhookWorkerW return r } -func (r webhookWorkerWorkflowToWorkflowFindUnique) Exec(ctx context.Context) ( - *WebhookWorkerWorkflowModel, +func (r tenantToTriggersFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerWorkflowModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239886,11 +264793,11 @@ func (r webhookWorkerWorkflowToWorkflowFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerWorkflowToWorkflowFindUnique) ExecInner(ctx context.Context) ( - *InnerWebhookWorkerWorkflow, +func (r tenantToTriggersFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorkerWorkflow + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -239902,12 +264809,12 @@ func (r webhookWorkerWorkflowToWorkflowFindUnique) ExecInner(ctx context.Context return v, nil } -func (r webhookWorkerWorkflowToWorkflowFindUnique) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowToWorkflowUpdateUnique { +func (r tenantToTriggersFindUnique) Update(params ...TenantSetParam) tenantToTriggersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WebhookWorkerWorkflow" + r.query.Model = "Tenant" - var v webhookWorkerWorkflowToWorkflowUpdateUnique + var v tenantToTriggersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -239936,83 +264843,83 @@ func (r webhookWorkerWorkflowToWorkflowFindUnique) Update(params ...WebhookWorke return v } -type webhookWorkerWorkflowToWorkflowUpdateUnique struct { +type tenantToTriggersUpdateUnique struct { query builder.Query } -func (r webhookWorkerWorkflowToWorkflowUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToTriggersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWorkflowUpdateUnique) webhookWorkerWorkflowModel() {} +func (r tenantToTriggersUpdateUnique) tenantModel() {} -func (r webhookWorkerWorkflowToWorkflowUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { - var v WebhookWorkerWorkflowModel +func (r tenantToTriggersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerWorkflowToWorkflowUpdateUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { - v := newWebhookWorkerWorkflowUniqueTxResult() +func (r tenantToTriggersUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerWorkflowToWorkflowFindUnique) Delete() webhookWorkerWorkflowToWorkflowDeleteUnique { - var v webhookWorkerWorkflowToWorkflowDeleteUnique +func (r tenantToTriggersFindUnique) Delete() tenantToTriggersDeleteUnique { + var v tenantToTriggersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WebhookWorkerWorkflow" + v.query.Model = "Tenant" return v } -type webhookWorkerWorkflowToWorkflowDeleteUnique struct { +type tenantToTriggersDeleteUnique struct { query builder.Query } -func (r webhookWorkerWorkflowToWorkflowDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToTriggersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerWorkflowToWorkflowDeleteUnique) webhookWorkerWorkflowModel() {} +func (p tenantToTriggersDeleteUnique) tenantModel() {} -func (r webhookWorkerWorkflowToWorkflowDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { - var v WebhookWorkerWorkflowModel +func (r tenantToTriggersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerWorkflowToWorkflowDeleteUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { - v := newWebhookWorkerWorkflowUniqueTxResult() +func (r tenantToTriggersDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerWorkflowToWorkflowFindFirst struct { +type tenantToTriggersFindFirst struct { query builder.Query } -func (r webhookWorkerWorkflowToWorkflowFindFirst) getQuery() builder.Query { +func (r tenantToTriggersFindFirst) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWorkflowFindFirst) ExtractQuery() builder.Query { +func (r tenantToTriggersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWorkflowFindFirst) with() {} -func (r webhookWorkerWorkflowToWorkflowFindFirst) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowToWorkflowFindFirst) webhookWorkerWorkflowRelation() {} +func (r tenantToTriggersFindFirst) with() {} +func (r tenantToTriggersFindFirst) tenantModel() {} +func (r tenantToTriggersFindFirst) tenantRelation() {} -func (r webhookWorkerWorkflowToWorkflowFindFirst) With(params ...WorkflowRelationWith) webhookWorkerWorkflowToWorkflowFindFirst { +func (r tenantToTriggersFindFirst) With(params ...WorkflowTriggersRelationWith) tenantToTriggersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -240025,7 +264932,7 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) With(params ...WorkflowRelatio return r } -func (r webhookWorkerWorkflowToWorkflowFindFirst) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindFirst { +func (r tenantToTriggersFindFirst) Select(params ...tenantPrismaFields) tenantToTriggersFindFirst { var outputs []builder.Output for _, param := range params { @@ -240039,7 +264946,7 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) Select(params ...webhookWorker return r } -func (r webhookWorkerWorkflowToWorkflowFindFirst) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindFirst { +func (r tenantToTriggersFindFirst) Omit(params ...tenantPrismaFields) tenantToTriggersFindFirst { var outputs []builder.Output var raw []string @@ -240047,7 +264954,7 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) Omit(params ...webhookWorkerWo raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -240058,7 +264965,7 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) Omit(params ...webhookWorkerWo return r } -func (r webhookWorkerWorkflowToWorkflowFindFirst) OrderBy(params ...WorkflowOrderByParam) webhookWorkerWorkflowToWorkflowFindFirst { +func (r tenantToTriggersFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) tenantToTriggersFindFirst { var fields []builder.Field for _, param := range params { @@ -240078,7 +264985,7 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) OrderBy(params ...WorkflowOrde return r } -func (r webhookWorkerWorkflowToWorkflowFindFirst) Skip(count int) webhookWorkerWorkflowToWorkflowFindFirst { +func (r tenantToTriggersFindFirst) Skip(count int) tenantToTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -240086,7 +264993,7 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) Skip(count int) webhookWorkerW return r } -func (r webhookWorkerWorkflowToWorkflowFindFirst) Take(count int) webhookWorkerWorkflowToWorkflowFindFirst { +func (r tenantToTriggersFindFirst) Take(count int) tenantToTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -240094,7 +265001,7 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) Take(count int) webhookWorkerW return r } -func (r webhookWorkerWorkflowToWorkflowFindFirst) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowToWorkflowFindFirst { +func (r tenantToTriggersFindFirst) Cursor(cursor TenantCursorParam) tenantToTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -240102,11 +265009,11 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) Cursor(cursor WebhookWorkerWor return r } -func (r webhookWorkerWorkflowToWorkflowFindFirst) Exec(ctx context.Context) ( - *WebhookWorkerWorkflowModel, +func (r tenantToTriggersFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerWorkflowModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240118,11 +265025,11 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerWorkflowToWorkflowFindFirst) ExecInner(ctx context.Context) ( - *InnerWebhookWorkerWorkflow, +func (r tenantToTriggersFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorkerWorkflow + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240134,23 +265041,23 @@ func (r webhookWorkerWorkflowToWorkflowFindFirst) ExecInner(ctx context.Context) return v, nil } -type webhookWorkerWorkflowToWorkflowFindMany struct { +type tenantToTriggersFindMany struct { query builder.Query } -func (r webhookWorkerWorkflowToWorkflowFindMany) getQuery() builder.Query { +func (r tenantToTriggersFindMany) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWorkflowFindMany) ExtractQuery() builder.Query { +func (r tenantToTriggersFindMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWorkflowFindMany) with() {} -func (r webhookWorkerWorkflowToWorkflowFindMany) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowToWorkflowFindMany) webhookWorkerWorkflowRelation() {} +func (r tenantToTriggersFindMany) with() {} +func (r tenantToTriggersFindMany) tenantModel() {} +func (r tenantToTriggersFindMany) tenantRelation() {} -func (r webhookWorkerWorkflowToWorkflowFindMany) With(params ...WorkflowRelationWith) webhookWorkerWorkflowToWorkflowFindMany { +func (r tenantToTriggersFindMany) With(params ...WorkflowTriggersRelationWith) tenantToTriggersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -240163,7 +265070,7 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) With(params ...WorkflowRelation return r } -func (r webhookWorkerWorkflowToWorkflowFindMany) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindMany { +func (r tenantToTriggersFindMany) Select(params ...tenantPrismaFields) tenantToTriggersFindMany { var outputs []builder.Output for _, param := range params { @@ -240177,7 +265084,7 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) Select(params ...webhookWorkerW return r } -func (r webhookWorkerWorkflowToWorkflowFindMany) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowToWorkflowFindMany { +func (r tenantToTriggersFindMany) Omit(params ...tenantPrismaFields) tenantToTriggersFindMany { var outputs []builder.Output var raw []string @@ -240185,7 +265092,7 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) Omit(params ...webhookWorkerWor raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -240196,7 +265103,7 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) Omit(params ...webhookWorkerWor return r } -func (r webhookWorkerWorkflowToWorkflowFindMany) OrderBy(params ...WorkflowOrderByParam) webhookWorkerWorkflowToWorkflowFindMany { +func (r tenantToTriggersFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) tenantToTriggersFindMany { var fields []builder.Field for _, param := range params { @@ -240216,7 +265123,7 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) OrderBy(params ...WorkflowOrder return r } -func (r webhookWorkerWorkflowToWorkflowFindMany) Skip(count int) webhookWorkerWorkflowToWorkflowFindMany { +func (r tenantToTriggersFindMany) Skip(count int) tenantToTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -240224,7 +265131,7 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) Skip(count int) webhookWorkerWo return r } -func (r webhookWorkerWorkflowToWorkflowFindMany) Take(count int) webhookWorkerWorkflowToWorkflowFindMany { +func (r tenantToTriggersFindMany) Take(count int) tenantToTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -240232,7 +265139,7 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) Take(count int) webhookWorkerWo return r } -func (r webhookWorkerWorkflowToWorkflowFindMany) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowToWorkflowFindMany { +func (r tenantToTriggersFindMany) Cursor(cursor TenantCursorParam) tenantToTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -240240,11 +265147,11 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) Cursor(cursor WebhookWorkerWork return r } -func (r webhookWorkerWorkflowToWorkflowFindMany) Exec(ctx context.Context) ( - []WebhookWorkerWorkflowModel, +func (r tenantToTriggersFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []WebhookWorkerWorkflowModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240252,11 +265159,11 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerWorkflowToWorkflowFindMany) ExecInner(ctx context.Context) ( - []InnerWebhookWorkerWorkflow, +func (r tenantToTriggersFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerWebhookWorkerWorkflow + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240264,14 +265171,14 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) ExecInner(ctx context.Context) return v, nil } -func (r webhookWorkerWorkflowToWorkflowFindMany) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowToWorkflowUpdateMany { +func (r tenantToTriggersFindMany) Update(params ...TenantSetParam) tenantToTriggersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WebhookWorkerWorkflow" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v webhookWorkerWorkflowToWorkflowUpdateMany + var v tenantToTriggersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -240300,17 +265207,17 @@ func (r webhookWorkerWorkflowToWorkflowFindMany) Update(params ...WebhookWorkerW return v } -type webhookWorkerWorkflowToWorkflowUpdateMany struct { +type tenantToTriggersUpdateMany struct { query builder.Query } -func (r webhookWorkerWorkflowToWorkflowUpdateMany) ExtractQuery() builder.Query { +func (r tenantToTriggersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowToWorkflowUpdateMany) webhookWorkerWorkflowModel() {} +func (r tenantToTriggersUpdateMany) tenantModel() {} -func (r webhookWorkerWorkflowToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -240318,36 +265225,36 @@ func (r webhookWorkerWorkflowToWorkflowUpdateMany) Exec(ctx context.Context) (*B return &v, nil } -func (r webhookWorkerWorkflowToWorkflowUpdateMany) Tx() WebhookWorkerWorkflowManyTxResult { - v := newWebhookWorkerWorkflowManyTxResult() +func (r tenantToTriggersUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerWorkflowToWorkflowFindMany) Delete() webhookWorkerWorkflowToWorkflowDeleteMany { - var v webhookWorkerWorkflowToWorkflowDeleteMany +func (r tenantToTriggersFindMany) Delete() tenantToTriggersDeleteMany { + var v tenantToTriggersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WebhookWorkerWorkflow" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type webhookWorkerWorkflowToWorkflowDeleteMany struct { +type tenantToTriggersDeleteMany struct { query builder.Query } -func (r webhookWorkerWorkflowToWorkflowDeleteMany) ExtractQuery() builder.Query { +func (r tenantToTriggersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerWorkflowToWorkflowDeleteMany) webhookWorkerWorkflowModel() {} +func (p tenantToTriggersDeleteMany) tenantModel() {} -func (r webhookWorkerWorkflowToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -240355,52 +265262,30 @@ func (r webhookWorkerWorkflowToWorkflowDeleteMany) Exec(ctx context.Context) (*B return &v, nil } -func (r webhookWorkerWorkflowToWorkflowDeleteMany) Tx() WebhookWorkerWorkflowManyTxResult { - v := newWebhookWorkerWorkflowManyTxResult() +func (r tenantToTriggersDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerWorkflowFindUnique struct { +type tenantToWorkflowRunsFindUnique struct { query builder.Query } -func (r webhookWorkerWorkflowFindUnique) getQuery() builder.Query { +func (r tenantToWorkflowRunsFindUnique) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowFindUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowFindUnique) with() {} -func (r webhookWorkerWorkflowFindUnique) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowFindUnique) webhookWorkerWorkflowRelation() {} - -func (r webhookWorkerWorkflowActions) FindUnique( - params WebhookWorkerWorkflowEqualsUniqueWhereParam, -) webhookWorkerWorkflowFindUnique { - var v webhookWorkerWorkflowFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WebhookWorkerWorkflow" - v.query.Outputs = webhookWorkerWorkflowOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tenantToWorkflowRunsFindUnique) with() {} +func (r tenantToWorkflowRunsFindUnique) tenantModel() {} +func (r tenantToWorkflowRunsFindUnique) tenantRelation() {} -func (r webhookWorkerWorkflowFindUnique) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerWorkflowFindUnique { +func (r tenantToWorkflowRunsFindUnique) With(params ...WorkflowRunRelationWith) tenantToWorkflowRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -240413,7 +265298,7 @@ func (r webhookWorkerWorkflowFindUnique) With(params ...WebhookWorkerWorkflowRel return r } -func (r webhookWorkerWorkflowFindUnique) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindUnique { +func (r tenantToWorkflowRunsFindUnique) Select(params ...tenantPrismaFields) tenantToWorkflowRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -240427,7 +265312,7 @@ func (r webhookWorkerWorkflowFindUnique) Select(params ...webhookWorkerWorkflowP return r } -func (r webhookWorkerWorkflowFindUnique) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindUnique { +func (r tenantToWorkflowRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkflowRunsFindUnique { var outputs []builder.Output var raw []string @@ -240435,7 +265320,7 @@ func (r webhookWorkerWorkflowFindUnique) Omit(params ...webhookWorkerWorkflowPri raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -240446,11 +265331,11 @@ func (r webhookWorkerWorkflowFindUnique) Omit(params ...webhookWorkerWorkflowPri return r } -func (r webhookWorkerWorkflowFindUnique) Exec(ctx context.Context) ( - *WebhookWorkerWorkflowModel, +func (r tenantToWorkflowRunsFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerWorkflowModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240462,11 +265347,11 @@ func (r webhookWorkerWorkflowFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerWorkflowFindUnique) ExecInner(ctx context.Context) ( - *InnerWebhookWorkerWorkflow, +func (r tenantToWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorkerWorkflow + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240478,12 +265363,12 @@ func (r webhookWorkerWorkflowFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r webhookWorkerWorkflowFindUnique) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowUpdateUnique { +func (r tenantToWorkflowRunsFindUnique) Update(params ...TenantSetParam) tenantToWorkflowRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WebhookWorkerWorkflow" + r.query.Model = "Tenant" - var v webhookWorkerWorkflowUpdateUnique + var v tenantToWorkflowRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -240512,120 +265397,83 @@ func (r webhookWorkerWorkflowFindUnique) Update(params ...WebhookWorkerWorkflowS return v } -type webhookWorkerWorkflowUpdateUnique struct { +type tenantToWorkflowRunsUpdateUnique struct { query builder.Query } -func (r webhookWorkerWorkflowUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowUpdateUnique) webhookWorkerWorkflowModel() {} +func (r tenantToWorkflowRunsUpdateUnique) tenantModel() {} -func (r webhookWorkerWorkflowUpdateUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { - var v WebhookWorkerWorkflowModel +func (r tenantToWorkflowRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerWorkflowUpdateUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { - v := newWebhookWorkerWorkflowUniqueTxResult() +func (r tenantToWorkflowRunsUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerWorkflowFindUnique) Delete() webhookWorkerWorkflowDeleteUnique { - var v webhookWorkerWorkflowDeleteUnique +func (r tenantToWorkflowRunsFindUnique) Delete() tenantToWorkflowRunsDeleteUnique { + var v tenantToWorkflowRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WebhookWorkerWorkflow" + v.query.Model = "Tenant" return v } -type webhookWorkerWorkflowDeleteUnique struct { +type tenantToWorkflowRunsDeleteUnique struct { query builder.Query } -func (r webhookWorkerWorkflowDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerWorkflowDeleteUnique) webhookWorkerWorkflowModel() {} +func (p tenantToWorkflowRunsDeleteUnique) tenantModel() {} -func (r webhookWorkerWorkflowDeleteUnique) Exec(ctx context.Context) (*WebhookWorkerWorkflowModel, error) { - var v WebhookWorkerWorkflowModel +func (r tenantToWorkflowRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r webhookWorkerWorkflowDeleteUnique) Tx() WebhookWorkerWorkflowUniqueTxResult { - v := newWebhookWorkerWorkflowUniqueTxResult() +func (r tenantToWorkflowRunsDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type webhookWorkerWorkflowFindFirst struct { +type tenantToWorkflowRunsFindFirst struct { query builder.Query } -func (r webhookWorkerWorkflowFindFirst) getQuery() builder.Query { +func (r tenantToWorkflowRunsFindFirst) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowFindFirst) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowFindFirst) with() {} -func (r webhookWorkerWorkflowFindFirst) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowFindFirst) webhookWorkerWorkflowRelation() {} - -func (r webhookWorkerWorkflowActions) FindFirst( - params ...WebhookWorkerWorkflowWhereParam, -) webhookWorkerWorkflowFindFirst { - var v webhookWorkerWorkflowFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WebhookWorkerWorkflow" - v.query.Outputs = webhookWorkerWorkflowOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToWorkflowRunsFindFirst) with() {} +func (r tenantToWorkflowRunsFindFirst) tenantModel() {} +func (r tenantToWorkflowRunsFindFirst) tenantRelation() {} -func (r webhookWorkerWorkflowFindFirst) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerWorkflowFindFirst { +func (r tenantToWorkflowRunsFindFirst) With(params ...WorkflowRunRelationWith) tenantToWorkflowRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -240638,7 +265486,7 @@ func (r webhookWorkerWorkflowFindFirst) With(params ...WebhookWorkerWorkflowRela return r } -func (r webhookWorkerWorkflowFindFirst) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindFirst { +func (r tenantToWorkflowRunsFindFirst) Select(params ...tenantPrismaFields) tenantToWorkflowRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -240652,7 +265500,7 @@ func (r webhookWorkerWorkflowFindFirst) Select(params ...webhookWorkerWorkflowPr return r } -func (r webhookWorkerWorkflowFindFirst) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindFirst { +func (r tenantToWorkflowRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkflowRunsFindFirst { var outputs []builder.Output var raw []string @@ -240660,7 +265508,7 @@ func (r webhookWorkerWorkflowFindFirst) Omit(params ...webhookWorkerWorkflowPris raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -240671,7 +265519,7 @@ func (r webhookWorkerWorkflowFindFirst) Omit(params ...webhookWorkerWorkflowPris return r } -func (r webhookWorkerWorkflowFindFirst) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) webhookWorkerWorkflowFindFirst { +func (r tenantToWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunOrderByParam) tenantToWorkflowRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -240691,7 +265539,7 @@ func (r webhookWorkerWorkflowFindFirst) OrderBy(params ...WebhookWorkerWorkflowO return r } -func (r webhookWorkerWorkflowFindFirst) Skip(count int) webhookWorkerWorkflowFindFirst { +func (r tenantToWorkflowRunsFindFirst) Skip(count int) tenantToWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -240699,7 +265547,7 @@ func (r webhookWorkerWorkflowFindFirst) Skip(count int) webhookWorkerWorkflowFin return r } -func (r webhookWorkerWorkflowFindFirst) Take(count int) webhookWorkerWorkflowFindFirst { +func (r tenantToWorkflowRunsFindFirst) Take(count int) tenantToWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -240707,7 +265555,7 @@ func (r webhookWorkerWorkflowFindFirst) Take(count int) webhookWorkerWorkflowFin return r } -func (r webhookWorkerWorkflowFindFirst) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowFindFirst { +func (r tenantToWorkflowRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -240715,11 +265563,11 @@ func (r webhookWorkerWorkflowFindFirst) Cursor(cursor WebhookWorkerWorkflowCurso return r } -func (r webhookWorkerWorkflowFindFirst) Exec(ctx context.Context) ( - *WebhookWorkerWorkflowModel, +func (r tenantToWorkflowRunsFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *WebhookWorkerWorkflowModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240731,11 +265579,11 @@ func (r webhookWorkerWorkflowFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerWorkflowFindFirst) ExecInner(ctx context.Context) ( - *InnerWebhookWorkerWorkflow, +func (r tenantToWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerWebhookWorkerWorkflow + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240747,60 +265595,23 @@ func (r webhookWorkerWorkflowFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type webhookWorkerWorkflowFindMany struct { +type tenantToWorkflowRunsFindMany struct { query builder.Query } -func (r webhookWorkerWorkflowFindMany) getQuery() builder.Query { +func (r tenantToWorkflowRunsFindMany) getQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowFindMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowFindMany) with() {} -func (r webhookWorkerWorkflowFindMany) webhookWorkerWorkflowModel() {} -func (r webhookWorkerWorkflowFindMany) webhookWorkerWorkflowRelation() {} - -func (r webhookWorkerWorkflowActions) FindMany( - params ...WebhookWorkerWorkflowWhereParam, -) webhookWorkerWorkflowFindMany { - var v webhookWorkerWorkflowFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WebhookWorkerWorkflow" - v.query.Outputs = webhookWorkerWorkflowOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToWorkflowRunsFindMany) with() {} +func (r tenantToWorkflowRunsFindMany) tenantModel() {} +func (r tenantToWorkflowRunsFindMany) tenantRelation() {} -func (r webhookWorkerWorkflowFindMany) With(params ...WebhookWorkerWorkflowRelationWith) webhookWorkerWorkflowFindMany { +func (r tenantToWorkflowRunsFindMany) With(params ...WorkflowRunRelationWith) tenantToWorkflowRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -240813,7 +265624,7 @@ func (r webhookWorkerWorkflowFindMany) With(params ...WebhookWorkerWorkflowRelat return r } -func (r webhookWorkerWorkflowFindMany) Select(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindMany { +func (r tenantToWorkflowRunsFindMany) Select(params ...tenantPrismaFields) tenantToWorkflowRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -240827,7 +265638,7 @@ func (r webhookWorkerWorkflowFindMany) Select(params ...webhookWorkerWorkflowPri return r } -func (r webhookWorkerWorkflowFindMany) Omit(params ...webhookWorkerWorkflowPrismaFields) webhookWorkerWorkflowFindMany { +func (r tenantToWorkflowRunsFindMany) Omit(params ...tenantPrismaFields) tenantToWorkflowRunsFindMany { var outputs []builder.Output var raw []string @@ -240835,7 +265646,7 @@ func (r webhookWorkerWorkflowFindMany) Omit(params ...webhookWorkerWorkflowPrism raw = append(raw, string(param)) } - for _, output := range webhookWorkerWorkflowOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -240846,7 +265657,7 @@ func (r webhookWorkerWorkflowFindMany) Omit(params ...webhookWorkerWorkflowPrism return r } -func (r webhookWorkerWorkflowFindMany) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) webhookWorkerWorkflowFindMany { +func (r tenantToWorkflowRunsFindMany) OrderBy(params ...WorkflowRunOrderByParam) tenantToWorkflowRunsFindMany { var fields []builder.Field for _, param := range params { @@ -240866,7 +265677,7 @@ func (r webhookWorkerWorkflowFindMany) OrderBy(params ...WebhookWorkerWorkflowOr return r } -func (r webhookWorkerWorkflowFindMany) Skip(count int) webhookWorkerWorkflowFindMany { +func (r tenantToWorkflowRunsFindMany) Skip(count int) tenantToWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -240874,7 +265685,7 @@ func (r webhookWorkerWorkflowFindMany) Skip(count int) webhookWorkerWorkflowFind return r } -func (r webhookWorkerWorkflowFindMany) Take(count int) webhookWorkerWorkflowFindMany { +func (r tenantToWorkflowRunsFindMany) Take(count int) tenantToWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -240882,7 +265693,7 @@ func (r webhookWorkerWorkflowFindMany) Take(count int) webhookWorkerWorkflowFind return r } -func (r webhookWorkerWorkflowFindMany) Cursor(cursor WebhookWorkerWorkflowCursorParam) webhookWorkerWorkflowFindMany { +func (r tenantToWorkflowRunsFindMany) Cursor(cursor TenantCursorParam) tenantToWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -240890,11 +265701,11 @@ func (r webhookWorkerWorkflowFindMany) Cursor(cursor WebhookWorkerWorkflowCursor return r } -func (r webhookWorkerWorkflowFindMany) Exec(ctx context.Context) ( - []WebhookWorkerWorkflowModel, +func (r tenantToWorkflowRunsFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []WebhookWorkerWorkflowModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240902,11 +265713,11 @@ func (r webhookWorkerWorkflowFindMany) Exec(ctx context.Context) ( return v, nil } -func (r webhookWorkerWorkflowFindMany) ExecInner(ctx context.Context) ( - []InnerWebhookWorkerWorkflow, +func (r tenantToWorkflowRunsFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerWebhookWorkerWorkflow + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -240914,14 +265725,14 @@ func (r webhookWorkerWorkflowFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r webhookWorkerWorkflowFindMany) Update(params ...WebhookWorkerWorkflowSetParam) webhookWorkerWorkflowUpdateMany { +func (r tenantToWorkflowRunsFindMany) Update(params ...TenantSetParam) tenantToWorkflowRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WebhookWorkerWorkflow" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v webhookWorkerWorkflowUpdateMany + var v tenantToWorkflowRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -240950,17 +265761,17 @@ func (r webhookWorkerWorkflowFindMany) Update(params ...WebhookWorkerWorkflowSet return v } -type webhookWorkerWorkflowUpdateMany struct { +type tenantToWorkflowRunsUpdateMany struct { query builder.Query } -func (r webhookWorkerWorkflowUpdateMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r webhookWorkerWorkflowUpdateMany) webhookWorkerWorkflowModel() {} +func (r tenantToWorkflowRunsUpdateMany) tenantModel() {} -func (r webhookWorkerWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -240968,36 +265779,36 @@ func (r webhookWorkerWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r webhookWorkerWorkflowUpdateMany) Tx() WebhookWorkerWorkflowManyTxResult { - v := newWebhookWorkerWorkflowManyTxResult() +func (r tenantToWorkflowRunsUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r webhookWorkerWorkflowFindMany) Delete() webhookWorkerWorkflowDeleteMany { - var v webhookWorkerWorkflowDeleteMany +func (r tenantToWorkflowRunsFindMany) Delete() tenantToWorkflowRunsDeleteMany { + var v tenantToWorkflowRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WebhookWorkerWorkflow" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type webhookWorkerWorkflowDeleteMany struct { +type tenantToWorkflowRunsDeleteMany struct { query builder.Query } -func (r webhookWorkerWorkflowDeleteMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p webhookWorkerWorkflowDeleteMany) webhookWorkerWorkflowModel() {} +func (p tenantToWorkflowRunsDeleteMany) tenantModel() {} -func (r webhookWorkerWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -241005,30 +265816,30 @@ func (r webhookWorkerWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r webhookWorkerWorkflowDeleteMany) Tx() WebhookWorkerWorkflowManyTxResult { - v := newWebhookWorkerWorkflowManyTxResult() +func (r tenantToWorkflowRunsDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type controllerPartitionToTenantsFindUnique struct { +type tenantToWorkflowRunTriggersFindUnique struct { query builder.Query } -func (r controllerPartitionToTenantsFindUnique) getQuery() builder.Query { +func (r tenantToWorkflowRunTriggersFindUnique) getQuery() builder.Query { return r.query } -func (r controllerPartitionToTenantsFindUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunTriggersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionToTenantsFindUnique) with() {} -func (r controllerPartitionToTenantsFindUnique) controllerPartitionModel() {} -func (r controllerPartitionToTenantsFindUnique) controllerPartitionRelation() {} +func (r tenantToWorkflowRunTriggersFindUnique) with() {} +func (r tenantToWorkflowRunTriggersFindUnique) tenantModel() {} +func (r tenantToWorkflowRunTriggersFindUnique) tenantRelation() {} -func (r controllerPartitionToTenantsFindUnique) With(params ...TenantRelationWith) controllerPartitionToTenantsFindUnique { +func (r tenantToWorkflowRunTriggersFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) tenantToWorkflowRunTriggersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -241041,7 +265852,7 @@ func (r controllerPartitionToTenantsFindUnique) With(params ...TenantRelationWit return r } -func (r controllerPartitionToTenantsFindUnique) Select(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindUnique { +func (r tenantToWorkflowRunTriggersFindUnique) Select(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindUnique { var outputs []builder.Output for _, param := range params { @@ -241055,7 +265866,7 @@ func (r controllerPartitionToTenantsFindUnique) Select(params ...controllerParti return r } -func (r controllerPartitionToTenantsFindUnique) Omit(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindUnique { +func (r tenantToWorkflowRunTriggersFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindUnique { var outputs []builder.Output var raw []string @@ -241063,7 +265874,7 @@ func (r controllerPartitionToTenantsFindUnique) Omit(params ...controllerPartiti raw = append(raw, string(param)) } - for _, output := range controllerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -241074,11 +265885,11 @@ func (r controllerPartitionToTenantsFindUnique) Omit(params ...controllerPartiti return r } -func (r controllerPartitionToTenantsFindUnique) Exec(ctx context.Context) ( - *ControllerPartitionModel, +func (r tenantToWorkflowRunTriggersFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *ControllerPartitionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241090,11 +265901,11 @@ func (r controllerPartitionToTenantsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r controllerPartitionToTenantsFindUnique) ExecInner(ctx context.Context) ( - *InnerControllerPartition, +func (r tenantToWorkflowRunTriggersFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerControllerPartition + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241106,12 +265917,12 @@ func (r controllerPartitionToTenantsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r controllerPartitionToTenantsFindUnique) Update(params ...ControllerPartitionSetParam) controllerPartitionToTenantsUpdateUnique { +func (r tenantToWorkflowRunTriggersFindUnique) Update(params ...TenantSetParam) tenantToWorkflowRunTriggersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "ControllerPartition" + r.query.Model = "Tenant" - var v controllerPartitionToTenantsUpdateUnique + var v tenantToWorkflowRunTriggersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -241140,83 +265951,83 @@ func (r controllerPartitionToTenantsFindUnique) Update(params ...ControllerParti return v } -type controllerPartitionToTenantsUpdateUnique struct { +type tenantToWorkflowRunTriggersUpdateUnique struct { query builder.Query } -func (r controllerPartitionToTenantsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunTriggersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionToTenantsUpdateUnique) controllerPartitionModel() {} +func (r tenantToWorkflowRunTriggersUpdateUnique) tenantModel() {} -func (r controllerPartitionToTenantsUpdateUnique) Exec(ctx context.Context) (*ControllerPartitionModel, error) { - var v ControllerPartitionModel +func (r tenantToWorkflowRunTriggersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r controllerPartitionToTenantsUpdateUnique) Tx() ControllerPartitionUniqueTxResult { - v := newControllerPartitionUniqueTxResult() +func (r tenantToWorkflowRunTriggersUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r controllerPartitionToTenantsFindUnique) Delete() controllerPartitionToTenantsDeleteUnique { - var v controllerPartitionToTenantsDeleteUnique +func (r tenantToWorkflowRunTriggersFindUnique) Delete() tenantToWorkflowRunTriggersDeleteUnique { + var v tenantToWorkflowRunTriggersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "ControllerPartition" + v.query.Model = "Tenant" return v } -type controllerPartitionToTenantsDeleteUnique struct { +type tenantToWorkflowRunTriggersDeleteUnique struct { query builder.Query } -func (r controllerPartitionToTenantsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunTriggersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p controllerPartitionToTenantsDeleteUnique) controllerPartitionModel() {} +func (p tenantToWorkflowRunTriggersDeleteUnique) tenantModel() {} -func (r controllerPartitionToTenantsDeleteUnique) Exec(ctx context.Context) (*ControllerPartitionModel, error) { - var v ControllerPartitionModel +func (r tenantToWorkflowRunTriggersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r controllerPartitionToTenantsDeleteUnique) Tx() ControllerPartitionUniqueTxResult { - v := newControllerPartitionUniqueTxResult() +func (r tenantToWorkflowRunTriggersDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type controllerPartitionToTenantsFindFirst struct { +type tenantToWorkflowRunTriggersFindFirst struct { query builder.Query } -func (r controllerPartitionToTenantsFindFirst) getQuery() builder.Query { +func (r tenantToWorkflowRunTriggersFindFirst) getQuery() builder.Query { return r.query } -func (r controllerPartitionToTenantsFindFirst) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunTriggersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionToTenantsFindFirst) with() {} -func (r controllerPartitionToTenantsFindFirst) controllerPartitionModel() {} -func (r controllerPartitionToTenantsFindFirst) controllerPartitionRelation() {} +func (r tenantToWorkflowRunTriggersFindFirst) with() {} +func (r tenantToWorkflowRunTriggersFindFirst) tenantModel() {} +func (r tenantToWorkflowRunTriggersFindFirst) tenantRelation() {} -func (r controllerPartitionToTenantsFindFirst) With(params ...TenantRelationWith) controllerPartitionToTenantsFindFirst { +func (r tenantToWorkflowRunTriggersFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) tenantToWorkflowRunTriggersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -241229,7 +266040,7 @@ func (r controllerPartitionToTenantsFindFirst) With(params ...TenantRelationWith return r } -func (r controllerPartitionToTenantsFindFirst) Select(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindFirst { +func (r tenantToWorkflowRunTriggersFindFirst) Select(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindFirst { var outputs []builder.Output for _, param := range params { @@ -241243,7 +266054,7 @@ func (r controllerPartitionToTenantsFindFirst) Select(params ...controllerPartit return r } -func (r controllerPartitionToTenantsFindFirst) Omit(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindFirst { +func (r tenantToWorkflowRunTriggersFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindFirst { var outputs []builder.Output var raw []string @@ -241251,7 +266062,7 @@ func (r controllerPartitionToTenantsFindFirst) Omit(params ...controllerPartitio raw = append(raw, string(param)) } - for _, output := range controllerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -241262,7 +266073,7 @@ func (r controllerPartitionToTenantsFindFirst) Omit(params ...controllerPartitio return r } -func (r controllerPartitionToTenantsFindFirst) OrderBy(params ...TenantOrderByParam) controllerPartitionToTenantsFindFirst { +func (r tenantToWorkflowRunTriggersFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) tenantToWorkflowRunTriggersFindFirst { var fields []builder.Field for _, param := range params { @@ -241282,7 +266093,7 @@ func (r controllerPartitionToTenantsFindFirst) OrderBy(params ...TenantOrderByPa return r } -func (r controllerPartitionToTenantsFindFirst) Skip(count int) controllerPartitionToTenantsFindFirst { +func (r tenantToWorkflowRunTriggersFindFirst) Skip(count int) tenantToWorkflowRunTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -241290,7 +266101,7 @@ func (r controllerPartitionToTenantsFindFirst) Skip(count int) controllerPartiti return r } -func (r controllerPartitionToTenantsFindFirst) Take(count int) controllerPartitionToTenantsFindFirst { +func (r tenantToWorkflowRunTriggersFindFirst) Take(count int) tenantToWorkflowRunTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -241298,7 +266109,7 @@ func (r controllerPartitionToTenantsFindFirst) Take(count int) controllerPartiti return r } -func (r controllerPartitionToTenantsFindFirst) Cursor(cursor ControllerPartitionCursorParam) controllerPartitionToTenantsFindFirst { +func (r tenantToWorkflowRunTriggersFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkflowRunTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -241306,11 +266117,11 @@ func (r controllerPartitionToTenantsFindFirst) Cursor(cursor ControllerPartition return r } -func (r controllerPartitionToTenantsFindFirst) Exec(ctx context.Context) ( - *ControllerPartitionModel, +func (r tenantToWorkflowRunTriggersFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *ControllerPartitionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241322,11 +266133,11 @@ func (r controllerPartitionToTenantsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r controllerPartitionToTenantsFindFirst) ExecInner(ctx context.Context) ( - *InnerControllerPartition, +func (r tenantToWorkflowRunTriggersFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerControllerPartition + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241338,23 +266149,23 @@ func (r controllerPartitionToTenantsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type controllerPartitionToTenantsFindMany struct { +type tenantToWorkflowRunTriggersFindMany struct { query builder.Query } -func (r controllerPartitionToTenantsFindMany) getQuery() builder.Query { +func (r tenantToWorkflowRunTriggersFindMany) getQuery() builder.Query { return r.query } -func (r controllerPartitionToTenantsFindMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunTriggersFindMany) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionToTenantsFindMany) with() {} -func (r controllerPartitionToTenantsFindMany) controllerPartitionModel() {} -func (r controllerPartitionToTenantsFindMany) controllerPartitionRelation() {} +func (r tenantToWorkflowRunTriggersFindMany) with() {} +func (r tenantToWorkflowRunTriggersFindMany) tenantModel() {} +func (r tenantToWorkflowRunTriggersFindMany) tenantRelation() {} -func (r controllerPartitionToTenantsFindMany) With(params ...TenantRelationWith) controllerPartitionToTenantsFindMany { +func (r tenantToWorkflowRunTriggersFindMany) With(params ...WorkflowRunTriggeredByRelationWith) tenantToWorkflowRunTriggersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -241367,7 +266178,7 @@ func (r controllerPartitionToTenantsFindMany) With(params ...TenantRelationWith) return r } -func (r controllerPartitionToTenantsFindMany) Select(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindMany { +func (r tenantToWorkflowRunTriggersFindMany) Select(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindMany { var outputs []builder.Output for _, param := range params { @@ -241381,7 +266192,7 @@ func (r controllerPartitionToTenantsFindMany) Select(params ...controllerPartiti return r } -func (r controllerPartitionToTenantsFindMany) Omit(params ...controllerPartitionPrismaFields) controllerPartitionToTenantsFindMany { +func (r tenantToWorkflowRunTriggersFindMany) Omit(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindMany { var outputs []builder.Output var raw []string @@ -241389,7 +266200,7 @@ func (r controllerPartitionToTenantsFindMany) Omit(params ...controllerPartition raw = append(raw, string(param)) } - for _, output := range controllerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -241400,7 +266211,7 @@ func (r controllerPartitionToTenantsFindMany) Omit(params ...controllerPartition return r } -func (r controllerPartitionToTenantsFindMany) OrderBy(params ...TenantOrderByParam) controllerPartitionToTenantsFindMany { +func (r tenantToWorkflowRunTriggersFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) tenantToWorkflowRunTriggersFindMany { var fields []builder.Field for _, param := range params { @@ -241420,7 +266231,7 @@ func (r controllerPartitionToTenantsFindMany) OrderBy(params ...TenantOrderByPar return r } -func (r controllerPartitionToTenantsFindMany) Skip(count int) controllerPartitionToTenantsFindMany { +func (r tenantToWorkflowRunTriggersFindMany) Skip(count int) tenantToWorkflowRunTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -241428,7 +266239,7 @@ func (r controllerPartitionToTenantsFindMany) Skip(count int) controllerPartitio return r } -func (r controllerPartitionToTenantsFindMany) Take(count int) controllerPartitionToTenantsFindMany { +func (r tenantToWorkflowRunTriggersFindMany) Take(count int) tenantToWorkflowRunTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -241436,7 +266247,7 @@ func (r controllerPartitionToTenantsFindMany) Take(count int) controllerPartitio return r } -func (r controllerPartitionToTenantsFindMany) Cursor(cursor ControllerPartitionCursorParam) controllerPartitionToTenantsFindMany { +func (r tenantToWorkflowRunTriggersFindMany) Cursor(cursor TenantCursorParam) tenantToWorkflowRunTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -241444,11 +266255,11 @@ func (r controllerPartitionToTenantsFindMany) Cursor(cursor ControllerPartitionC return r } -func (r controllerPartitionToTenantsFindMany) Exec(ctx context.Context) ( - []ControllerPartitionModel, +func (r tenantToWorkflowRunTriggersFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []ControllerPartitionModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241456,11 +266267,11 @@ func (r controllerPartitionToTenantsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r controllerPartitionToTenantsFindMany) ExecInner(ctx context.Context) ( - []InnerControllerPartition, +func (r tenantToWorkflowRunTriggersFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerControllerPartition + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241468,14 +266279,14 @@ func (r controllerPartitionToTenantsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r controllerPartitionToTenantsFindMany) Update(params ...ControllerPartitionSetParam) controllerPartitionToTenantsUpdateMany { +func (r tenantToWorkflowRunTriggersFindMany) Update(params ...TenantSetParam) tenantToWorkflowRunTriggersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "ControllerPartition" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v controllerPartitionToTenantsUpdateMany + var v tenantToWorkflowRunTriggersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -241504,17 +266315,17 @@ func (r controllerPartitionToTenantsFindMany) Update(params ...ControllerPartiti return v } -type controllerPartitionToTenantsUpdateMany struct { +type tenantToWorkflowRunTriggersUpdateMany struct { query builder.Query } -func (r controllerPartitionToTenantsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunTriggersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionToTenantsUpdateMany) controllerPartitionModel() {} +func (r tenantToWorkflowRunTriggersUpdateMany) tenantModel() {} -func (r controllerPartitionToTenantsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkflowRunTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -241522,36 +266333,36 @@ func (r controllerPartitionToTenantsUpdateMany) Exec(ctx context.Context) (*Batc return &v, nil } -func (r controllerPartitionToTenantsUpdateMany) Tx() ControllerPartitionManyTxResult { - v := newControllerPartitionManyTxResult() +func (r tenantToWorkflowRunTriggersUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r controllerPartitionToTenantsFindMany) Delete() controllerPartitionToTenantsDeleteMany { - var v controllerPartitionToTenantsDeleteMany +func (r tenantToWorkflowRunTriggersFindMany) Delete() tenantToWorkflowRunTriggersDeleteMany { + var v tenantToWorkflowRunTriggersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "ControllerPartition" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type controllerPartitionToTenantsDeleteMany struct { +type tenantToWorkflowRunTriggersDeleteMany struct { query builder.Query } -func (r controllerPartitionToTenantsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowRunTriggersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p controllerPartitionToTenantsDeleteMany) controllerPartitionModel() {} +func (p tenantToWorkflowRunTriggersDeleteMany) tenantModel() {} -func (r controllerPartitionToTenantsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkflowRunTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -241559,52 +266370,30 @@ func (r controllerPartitionToTenantsDeleteMany) Exec(ctx context.Context) (*Batc return &v, nil } -func (r controllerPartitionToTenantsDeleteMany) Tx() ControllerPartitionManyTxResult { - v := newControllerPartitionManyTxResult() +func (r tenantToWorkflowRunTriggersDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type controllerPartitionFindUnique struct { +type tenantToJobRunsFindUnique struct { query builder.Query } -func (r controllerPartitionFindUnique) getQuery() builder.Query { +func (r tenantToJobRunsFindUnique) getQuery() builder.Query { return r.query } -func (r controllerPartitionFindUnique) ExtractQuery() builder.Query { +func (r tenantToJobRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionFindUnique) with() {} -func (r controllerPartitionFindUnique) controllerPartitionModel() {} -func (r controllerPartitionFindUnique) controllerPartitionRelation() {} - -func (r controllerPartitionActions) FindUnique( - params ControllerPartitionEqualsUniqueWhereParam, -) controllerPartitionFindUnique { - var v controllerPartitionFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "ControllerPartition" - v.query.Outputs = controllerPartitionOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tenantToJobRunsFindUnique) with() {} +func (r tenantToJobRunsFindUnique) tenantModel() {} +func (r tenantToJobRunsFindUnique) tenantRelation() {} -func (r controllerPartitionFindUnique) With(params ...ControllerPartitionRelationWith) controllerPartitionFindUnique { +func (r tenantToJobRunsFindUnique) With(params ...JobRunRelationWith) tenantToJobRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -241617,7 +266406,7 @@ func (r controllerPartitionFindUnique) With(params ...ControllerPartitionRelatio return r } -func (r controllerPartitionFindUnique) Select(params ...controllerPartitionPrismaFields) controllerPartitionFindUnique { +func (r tenantToJobRunsFindUnique) Select(params ...tenantPrismaFields) tenantToJobRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -241631,7 +266420,7 @@ func (r controllerPartitionFindUnique) Select(params ...controllerPartitionPrism return r } -func (r controllerPartitionFindUnique) Omit(params ...controllerPartitionPrismaFields) controllerPartitionFindUnique { +func (r tenantToJobRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToJobRunsFindUnique { var outputs []builder.Output var raw []string @@ -241639,7 +266428,7 @@ func (r controllerPartitionFindUnique) Omit(params ...controllerPartitionPrismaF raw = append(raw, string(param)) } - for _, output := range controllerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -241650,11 +266439,11 @@ func (r controllerPartitionFindUnique) Omit(params ...controllerPartitionPrismaF return r } -func (r controllerPartitionFindUnique) Exec(ctx context.Context) ( - *ControllerPartitionModel, +func (r tenantToJobRunsFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *ControllerPartitionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241666,11 +266455,11 @@ func (r controllerPartitionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r controllerPartitionFindUnique) ExecInner(ctx context.Context) ( - *InnerControllerPartition, +func (r tenantToJobRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerControllerPartition + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241682,12 +266471,12 @@ func (r controllerPartitionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r controllerPartitionFindUnique) Update(params ...ControllerPartitionSetParam) controllerPartitionUpdateUnique { +func (r tenantToJobRunsFindUnique) Update(params ...TenantSetParam) tenantToJobRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "ControllerPartition" + r.query.Model = "Tenant" - var v controllerPartitionUpdateUnique + var v tenantToJobRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -241716,120 +266505,83 @@ func (r controllerPartitionFindUnique) Update(params ...ControllerPartitionSetPa return v } -type controllerPartitionUpdateUnique struct { +type tenantToJobRunsUpdateUnique struct { query builder.Query } -func (r controllerPartitionUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToJobRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionUpdateUnique) controllerPartitionModel() {} +func (r tenantToJobRunsUpdateUnique) tenantModel() {} -func (r controllerPartitionUpdateUnique) Exec(ctx context.Context) (*ControllerPartitionModel, error) { - var v ControllerPartitionModel +func (r tenantToJobRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r controllerPartitionUpdateUnique) Tx() ControllerPartitionUniqueTxResult { - v := newControllerPartitionUniqueTxResult() +func (r tenantToJobRunsUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r controllerPartitionFindUnique) Delete() controllerPartitionDeleteUnique { - var v controllerPartitionDeleteUnique +func (r tenantToJobRunsFindUnique) Delete() tenantToJobRunsDeleteUnique { + var v tenantToJobRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "ControllerPartition" + v.query.Model = "Tenant" return v } -type controllerPartitionDeleteUnique struct { +type tenantToJobRunsDeleteUnique struct { query builder.Query } -func (r controllerPartitionDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToJobRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p controllerPartitionDeleteUnique) controllerPartitionModel() {} +func (p tenantToJobRunsDeleteUnique) tenantModel() {} -func (r controllerPartitionDeleteUnique) Exec(ctx context.Context) (*ControllerPartitionModel, error) { - var v ControllerPartitionModel +func (r tenantToJobRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r controllerPartitionDeleteUnique) Tx() ControllerPartitionUniqueTxResult { - v := newControllerPartitionUniqueTxResult() +func (r tenantToJobRunsDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type controllerPartitionFindFirst struct { +type tenantToJobRunsFindFirst struct { query builder.Query } -func (r controllerPartitionFindFirst) getQuery() builder.Query { +func (r tenantToJobRunsFindFirst) getQuery() builder.Query { return r.query } -func (r controllerPartitionFindFirst) ExtractQuery() builder.Query { +func (r tenantToJobRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionFindFirst) with() {} -func (r controllerPartitionFindFirst) controllerPartitionModel() {} -func (r controllerPartitionFindFirst) controllerPartitionRelation() {} - -func (r controllerPartitionActions) FindFirst( - params ...ControllerPartitionWhereParam, -) controllerPartitionFindFirst { - var v controllerPartitionFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "ControllerPartition" - v.query.Outputs = controllerPartitionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToJobRunsFindFirst) with() {} +func (r tenantToJobRunsFindFirst) tenantModel() {} +func (r tenantToJobRunsFindFirst) tenantRelation() {} -func (r controllerPartitionFindFirst) With(params ...ControllerPartitionRelationWith) controllerPartitionFindFirst { +func (r tenantToJobRunsFindFirst) With(params ...JobRunRelationWith) tenantToJobRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -241842,7 +266594,7 @@ func (r controllerPartitionFindFirst) With(params ...ControllerPartitionRelation return r } -func (r controllerPartitionFindFirst) Select(params ...controllerPartitionPrismaFields) controllerPartitionFindFirst { +func (r tenantToJobRunsFindFirst) Select(params ...tenantPrismaFields) tenantToJobRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -241856,7 +266608,7 @@ func (r controllerPartitionFindFirst) Select(params ...controllerPartitionPrisma return r } -func (r controllerPartitionFindFirst) Omit(params ...controllerPartitionPrismaFields) controllerPartitionFindFirst { +func (r tenantToJobRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToJobRunsFindFirst { var outputs []builder.Output var raw []string @@ -241864,7 +266616,7 @@ func (r controllerPartitionFindFirst) Omit(params ...controllerPartitionPrismaFi raw = append(raw, string(param)) } - for _, output := range controllerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -241875,7 +266627,7 @@ func (r controllerPartitionFindFirst) Omit(params ...controllerPartitionPrismaFi return r } -func (r controllerPartitionFindFirst) OrderBy(params ...ControllerPartitionOrderByParam) controllerPartitionFindFirst { +func (r tenantToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) tenantToJobRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -241895,7 +266647,7 @@ func (r controllerPartitionFindFirst) OrderBy(params ...ControllerPartitionOrder return r } -func (r controllerPartitionFindFirst) Skip(count int) controllerPartitionFindFirst { +func (r tenantToJobRunsFindFirst) Skip(count int) tenantToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -241903,7 +266655,7 @@ func (r controllerPartitionFindFirst) Skip(count int) controllerPartitionFindFir return r } -func (r controllerPartitionFindFirst) Take(count int) controllerPartitionFindFirst { +func (r tenantToJobRunsFindFirst) Take(count int) tenantToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -241911,7 +266663,7 @@ func (r controllerPartitionFindFirst) Take(count int) controllerPartitionFindFir return r } -func (r controllerPartitionFindFirst) Cursor(cursor ControllerPartitionCursorParam) controllerPartitionFindFirst { +func (r tenantToJobRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -241919,11 +266671,11 @@ func (r controllerPartitionFindFirst) Cursor(cursor ControllerPartitionCursorPar return r } -func (r controllerPartitionFindFirst) Exec(ctx context.Context) ( - *ControllerPartitionModel, +func (r tenantToJobRunsFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *ControllerPartitionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241935,11 +266687,11 @@ func (r controllerPartitionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r controllerPartitionFindFirst) ExecInner(ctx context.Context) ( - *InnerControllerPartition, +func (r tenantToJobRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerControllerPartition + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -241951,60 +266703,23 @@ func (r controllerPartitionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type controllerPartitionFindMany struct { +type tenantToJobRunsFindMany struct { query builder.Query } -func (r controllerPartitionFindMany) getQuery() builder.Query { +func (r tenantToJobRunsFindMany) getQuery() builder.Query { return r.query } -func (r controllerPartitionFindMany) ExtractQuery() builder.Query { +func (r tenantToJobRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionFindMany) with() {} -func (r controllerPartitionFindMany) controllerPartitionModel() {} -func (r controllerPartitionFindMany) controllerPartitionRelation() {} - -func (r controllerPartitionActions) FindMany( - params ...ControllerPartitionWhereParam, -) controllerPartitionFindMany { - var v controllerPartitionFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "ControllerPartition" - v.query.Outputs = controllerPartitionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToJobRunsFindMany) with() {} +func (r tenantToJobRunsFindMany) tenantModel() {} +func (r tenantToJobRunsFindMany) tenantRelation() {} -func (r controllerPartitionFindMany) With(params ...ControllerPartitionRelationWith) controllerPartitionFindMany { +func (r tenantToJobRunsFindMany) With(params ...JobRunRelationWith) tenantToJobRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -242017,7 +266732,7 @@ func (r controllerPartitionFindMany) With(params ...ControllerPartitionRelationW return r } -func (r controllerPartitionFindMany) Select(params ...controllerPartitionPrismaFields) controllerPartitionFindMany { +func (r tenantToJobRunsFindMany) Select(params ...tenantPrismaFields) tenantToJobRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -242031,7 +266746,7 @@ func (r controllerPartitionFindMany) Select(params ...controllerPartitionPrismaF return r } -func (r controllerPartitionFindMany) Omit(params ...controllerPartitionPrismaFields) controllerPartitionFindMany { +func (r tenantToJobRunsFindMany) Omit(params ...tenantPrismaFields) tenantToJobRunsFindMany { var outputs []builder.Output var raw []string @@ -242039,7 +266754,7 @@ func (r controllerPartitionFindMany) Omit(params ...controllerPartitionPrismaFie raw = append(raw, string(param)) } - for _, output := range controllerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -242050,7 +266765,7 @@ func (r controllerPartitionFindMany) Omit(params ...controllerPartitionPrismaFie return r } -func (r controllerPartitionFindMany) OrderBy(params ...ControllerPartitionOrderByParam) controllerPartitionFindMany { +func (r tenantToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) tenantToJobRunsFindMany { var fields []builder.Field for _, param := range params { @@ -242070,7 +266785,7 @@ func (r controllerPartitionFindMany) OrderBy(params ...ControllerPartitionOrderB return r } -func (r controllerPartitionFindMany) Skip(count int) controllerPartitionFindMany { +func (r tenantToJobRunsFindMany) Skip(count int) tenantToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -242078,7 +266793,7 @@ func (r controllerPartitionFindMany) Skip(count int) controllerPartitionFindMany return r } -func (r controllerPartitionFindMany) Take(count int) controllerPartitionFindMany { +func (r tenantToJobRunsFindMany) Take(count int) tenantToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -242086,7 +266801,7 @@ func (r controllerPartitionFindMany) Take(count int) controllerPartitionFindMany return r } -func (r controllerPartitionFindMany) Cursor(cursor ControllerPartitionCursorParam) controllerPartitionFindMany { +func (r tenantToJobRunsFindMany) Cursor(cursor TenantCursorParam) tenantToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -242094,11 +266809,11 @@ func (r controllerPartitionFindMany) Cursor(cursor ControllerPartitionCursorPara return r } -func (r controllerPartitionFindMany) Exec(ctx context.Context) ( - []ControllerPartitionModel, +func (r tenantToJobRunsFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []ControllerPartitionModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242106,11 +266821,11 @@ func (r controllerPartitionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r controllerPartitionFindMany) ExecInner(ctx context.Context) ( - []InnerControllerPartition, +func (r tenantToJobRunsFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerControllerPartition + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242118,14 +266833,14 @@ func (r controllerPartitionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r controllerPartitionFindMany) Update(params ...ControllerPartitionSetParam) controllerPartitionUpdateMany { +func (r tenantToJobRunsFindMany) Update(params ...TenantSetParam) tenantToJobRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "ControllerPartition" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v controllerPartitionUpdateMany + var v tenantToJobRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -242154,17 +266869,17 @@ func (r controllerPartitionFindMany) Update(params ...ControllerPartitionSetPara return v } -type controllerPartitionUpdateMany struct { +type tenantToJobRunsUpdateMany struct { query builder.Query } -func (r controllerPartitionUpdateMany) ExtractQuery() builder.Query { +func (r tenantToJobRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r controllerPartitionUpdateMany) controllerPartitionModel() {} +func (r tenantToJobRunsUpdateMany) tenantModel() {} -func (r controllerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -242172,36 +266887,36 @@ func (r controllerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r controllerPartitionUpdateMany) Tx() ControllerPartitionManyTxResult { - v := newControllerPartitionManyTxResult() +func (r tenantToJobRunsUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r controllerPartitionFindMany) Delete() controllerPartitionDeleteMany { - var v controllerPartitionDeleteMany +func (r tenantToJobRunsFindMany) Delete() tenantToJobRunsDeleteMany { + var v tenantToJobRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "ControllerPartition" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type controllerPartitionDeleteMany struct { +type tenantToJobRunsDeleteMany struct { query builder.Query } -func (r controllerPartitionDeleteMany) ExtractQuery() builder.Query { +func (r tenantToJobRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p controllerPartitionDeleteMany) controllerPartitionModel() {} +func (p tenantToJobRunsDeleteMany) tenantModel() {} -func (r controllerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -242209,30 +266924,30 @@ func (r controllerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r controllerPartitionDeleteMany) Tx() ControllerPartitionManyTxResult { - v := newControllerPartitionManyTxResult() +func (r tenantToJobRunsDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantWorkerPartitionToTenantsFindUnique struct { +type tenantToJobRunLookupDatasFindUnique struct { query builder.Query } -func (r tenantWorkerPartitionToTenantsFindUnique) getQuery() builder.Query { +func (r tenantToJobRunLookupDatasFindUnique) getQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionToTenantsFindUnique) ExtractQuery() builder.Query { +func (r tenantToJobRunLookupDatasFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionToTenantsFindUnique) with() {} -func (r tenantWorkerPartitionToTenantsFindUnique) tenantWorkerPartitionModel() {} -func (r tenantWorkerPartitionToTenantsFindUnique) tenantWorkerPartitionRelation() {} +func (r tenantToJobRunLookupDatasFindUnique) with() {} +func (r tenantToJobRunLookupDatasFindUnique) tenantModel() {} +func (r tenantToJobRunLookupDatasFindUnique) tenantRelation() {} -func (r tenantWorkerPartitionToTenantsFindUnique) With(params ...TenantRelationWith) tenantWorkerPartitionToTenantsFindUnique { +func (r tenantToJobRunLookupDatasFindUnique) With(params ...JobRunLookupDataRelationWith) tenantToJobRunLookupDatasFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -242245,7 +266960,7 @@ func (r tenantWorkerPartitionToTenantsFindUnique) With(params ...TenantRelationW return r } -func (r tenantWorkerPartitionToTenantsFindUnique) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindUnique { +func (r tenantToJobRunLookupDatasFindUnique) Select(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindUnique { var outputs []builder.Output for _, param := range params { @@ -242259,7 +266974,7 @@ func (r tenantWorkerPartitionToTenantsFindUnique) Select(params ...tenantWorkerP return r } -func (r tenantWorkerPartitionToTenantsFindUnique) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindUnique { +func (r tenantToJobRunLookupDatasFindUnique) Omit(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindUnique { var outputs []builder.Output var raw []string @@ -242267,7 +266982,7 @@ func (r tenantWorkerPartitionToTenantsFindUnique) Omit(params ...tenantWorkerPar raw = append(raw, string(param)) } - for _, output := range tenantWorkerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -242278,11 +266993,11 @@ func (r tenantWorkerPartitionToTenantsFindUnique) Omit(params ...tenantWorkerPar return r } -func (r tenantWorkerPartitionToTenantsFindUnique) Exec(ctx context.Context) ( - *TenantWorkerPartitionModel, +func (r tenantToJobRunLookupDatasFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *TenantWorkerPartitionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242294,11 +267009,11 @@ func (r tenantWorkerPartitionToTenantsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionToTenantsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantWorkerPartition, +func (r tenantToJobRunLookupDatasFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerTenantWorkerPartition + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242310,12 +267025,12 @@ func (r tenantWorkerPartitionToTenantsFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r tenantWorkerPartitionToTenantsFindUnique) Update(params ...TenantWorkerPartitionSetParam) tenantWorkerPartitionToTenantsUpdateUnique { +func (r tenantToJobRunLookupDatasFindUnique) Update(params ...TenantSetParam) tenantToJobRunLookupDatasUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantWorkerPartition" + r.query.Model = "Tenant" - var v tenantWorkerPartitionToTenantsUpdateUnique + var v tenantToJobRunLookupDatasUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -242344,83 +267059,83 @@ func (r tenantWorkerPartitionToTenantsFindUnique) Update(params ...TenantWorkerP return v } -type tenantWorkerPartitionToTenantsUpdateUnique struct { +type tenantToJobRunLookupDatasUpdateUnique struct { query builder.Query } -func (r tenantWorkerPartitionToTenantsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToJobRunLookupDatasUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionToTenantsUpdateUnique) tenantWorkerPartitionModel() {} +func (r tenantToJobRunLookupDatasUpdateUnique) tenantModel() {} -func (r tenantWorkerPartitionToTenantsUpdateUnique) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { - var v TenantWorkerPartitionModel +func (r tenantToJobRunLookupDatasUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantWorkerPartitionToTenantsUpdateUnique) Tx() TenantWorkerPartitionUniqueTxResult { - v := newTenantWorkerPartitionUniqueTxResult() +func (r tenantToJobRunLookupDatasUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantWorkerPartitionToTenantsFindUnique) Delete() tenantWorkerPartitionToTenantsDeleteUnique { - var v tenantWorkerPartitionToTenantsDeleteUnique +func (r tenantToJobRunLookupDatasFindUnique) Delete() tenantToJobRunLookupDatasDeleteUnique { + var v tenantToJobRunLookupDatasDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantWorkerPartition" + v.query.Model = "Tenant" return v } -type tenantWorkerPartitionToTenantsDeleteUnique struct { +type tenantToJobRunLookupDatasDeleteUnique struct { query builder.Query } -func (r tenantWorkerPartitionToTenantsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToJobRunLookupDatasDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantWorkerPartitionToTenantsDeleteUnique) tenantWorkerPartitionModel() {} +func (p tenantToJobRunLookupDatasDeleteUnique) tenantModel() {} -func (r tenantWorkerPartitionToTenantsDeleteUnique) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { - var v TenantWorkerPartitionModel +func (r tenantToJobRunLookupDatasDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantWorkerPartitionToTenantsDeleteUnique) Tx() TenantWorkerPartitionUniqueTxResult { - v := newTenantWorkerPartitionUniqueTxResult() +func (r tenantToJobRunLookupDatasDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantWorkerPartitionToTenantsFindFirst struct { +type tenantToJobRunLookupDatasFindFirst struct { query builder.Query } -func (r tenantWorkerPartitionToTenantsFindFirst) getQuery() builder.Query { +func (r tenantToJobRunLookupDatasFindFirst) getQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionToTenantsFindFirst) ExtractQuery() builder.Query { +func (r tenantToJobRunLookupDatasFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionToTenantsFindFirst) with() {} -func (r tenantWorkerPartitionToTenantsFindFirst) tenantWorkerPartitionModel() {} -func (r tenantWorkerPartitionToTenantsFindFirst) tenantWorkerPartitionRelation() {} +func (r tenantToJobRunLookupDatasFindFirst) with() {} +func (r tenantToJobRunLookupDatasFindFirst) tenantModel() {} +func (r tenantToJobRunLookupDatasFindFirst) tenantRelation() {} -func (r tenantWorkerPartitionToTenantsFindFirst) With(params ...TenantRelationWith) tenantWorkerPartitionToTenantsFindFirst { +func (r tenantToJobRunLookupDatasFindFirst) With(params ...JobRunLookupDataRelationWith) tenantToJobRunLookupDatasFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -242433,7 +267148,7 @@ func (r tenantWorkerPartitionToTenantsFindFirst) With(params ...TenantRelationWi return r } -func (r tenantWorkerPartitionToTenantsFindFirst) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindFirst { +func (r tenantToJobRunLookupDatasFindFirst) Select(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindFirst { var outputs []builder.Output for _, param := range params { @@ -242447,7 +267162,7 @@ func (r tenantWorkerPartitionToTenantsFindFirst) Select(params ...tenantWorkerPa return r } -func (r tenantWorkerPartitionToTenantsFindFirst) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindFirst { +func (r tenantToJobRunLookupDatasFindFirst) Omit(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindFirst { var outputs []builder.Output var raw []string @@ -242455,7 +267170,7 @@ func (r tenantWorkerPartitionToTenantsFindFirst) Omit(params ...tenantWorkerPart raw = append(raw, string(param)) } - for _, output := range tenantWorkerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -242466,7 +267181,7 @@ func (r tenantWorkerPartitionToTenantsFindFirst) Omit(params ...tenantWorkerPart return r } -func (r tenantWorkerPartitionToTenantsFindFirst) OrderBy(params ...TenantOrderByParam) tenantWorkerPartitionToTenantsFindFirst { +func (r tenantToJobRunLookupDatasFindFirst) OrderBy(params ...JobRunLookupDataOrderByParam) tenantToJobRunLookupDatasFindFirst { var fields []builder.Field for _, param := range params { @@ -242486,7 +267201,7 @@ func (r tenantWorkerPartitionToTenantsFindFirst) OrderBy(params ...TenantOrderBy return r } -func (r tenantWorkerPartitionToTenantsFindFirst) Skip(count int) tenantWorkerPartitionToTenantsFindFirst { +func (r tenantToJobRunLookupDatasFindFirst) Skip(count int) tenantToJobRunLookupDatasFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -242494,7 +267209,7 @@ func (r tenantWorkerPartitionToTenantsFindFirst) Skip(count int) tenantWorkerPar return r } -func (r tenantWorkerPartitionToTenantsFindFirst) Take(count int) tenantWorkerPartitionToTenantsFindFirst { +func (r tenantToJobRunLookupDatasFindFirst) Take(count int) tenantToJobRunLookupDatasFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -242502,7 +267217,7 @@ func (r tenantWorkerPartitionToTenantsFindFirst) Take(count int) tenantWorkerPar return r } -func (r tenantWorkerPartitionToTenantsFindFirst) Cursor(cursor TenantWorkerPartitionCursorParam) tenantWorkerPartitionToTenantsFindFirst { +func (r tenantToJobRunLookupDatasFindFirst) Cursor(cursor TenantCursorParam) tenantToJobRunLookupDatasFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -242510,11 +267225,11 @@ func (r tenantWorkerPartitionToTenantsFindFirst) Cursor(cursor TenantWorkerParti return r } -func (r tenantWorkerPartitionToTenantsFindFirst) Exec(ctx context.Context) ( - *TenantWorkerPartitionModel, +func (r tenantToJobRunLookupDatasFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *TenantWorkerPartitionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242526,11 +267241,11 @@ func (r tenantWorkerPartitionToTenantsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionToTenantsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantWorkerPartition, +func (r tenantToJobRunLookupDatasFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerTenantWorkerPartition + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242542,23 +267257,23 @@ func (r tenantWorkerPartitionToTenantsFindFirst) ExecInner(ctx context.Context) return v, nil } -type tenantWorkerPartitionToTenantsFindMany struct { +type tenantToJobRunLookupDatasFindMany struct { query builder.Query } -func (r tenantWorkerPartitionToTenantsFindMany) getQuery() builder.Query { +func (r tenantToJobRunLookupDatasFindMany) getQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionToTenantsFindMany) ExtractQuery() builder.Query { +func (r tenantToJobRunLookupDatasFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionToTenantsFindMany) with() {} -func (r tenantWorkerPartitionToTenantsFindMany) tenantWorkerPartitionModel() {} -func (r tenantWorkerPartitionToTenantsFindMany) tenantWorkerPartitionRelation() {} +func (r tenantToJobRunLookupDatasFindMany) with() {} +func (r tenantToJobRunLookupDatasFindMany) tenantModel() {} +func (r tenantToJobRunLookupDatasFindMany) tenantRelation() {} -func (r tenantWorkerPartitionToTenantsFindMany) With(params ...TenantRelationWith) tenantWorkerPartitionToTenantsFindMany { +func (r tenantToJobRunLookupDatasFindMany) With(params ...JobRunLookupDataRelationWith) tenantToJobRunLookupDatasFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -242571,7 +267286,7 @@ func (r tenantWorkerPartitionToTenantsFindMany) With(params ...TenantRelationWit return r } -func (r tenantWorkerPartitionToTenantsFindMany) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindMany { +func (r tenantToJobRunLookupDatasFindMany) Select(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindMany { var outputs []builder.Output for _, param := range params { @@ -242585,7 +267300,7 @@ func (r tenantWorkerPartitionToTenantsFindMany) Select(params ...tenantWorkerPar return r } -func (r tenantWorkerPartitionToTenantsFindMany) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionToTenantsFindMany { +func (r tenantToJobRunLookupDatasFindMany) Omit(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindMany { var outputs []builder.Output var raw []string @@ -242593,7 +267308,7 @@ func (r tenantWorkerPartitionToTenantsFindMany) Omit(params ...tenantWorkerParti raw = append(raw, string(param)) } - for _, output := range tenantWorkerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -242604,7 +267319,7 @@ func (r tenantWorkerPartitionToTenantsFindMany) Omit(params ...tenantWorkerParti return r } -func (r tenantWorkerPartitionToTenantsFindMany) OrderBy(params ...TenantOrderByParam) tenantWorkerPartitionToTenantsFindMany { +func (r tenantToJobRunLookupDatasFindMany) OrderBy(params ...JobRunLookupDataOrderByParam) tenantToJobRunLookupDatasFindMany { var fields []builder.Field for _, param := range params { @@ -242624,7 +267339,7 @@ func (r tenantWorkerPartitionToTenantsFindMany) OrderBy(params ...TenantOrderByP return r } -func (r tenantWorkerPartitionToTenantsFindMany) Skip(count int) tenantWorkerPartitionToTenantsFindMany { +func (r tenantToJobRunLookupDatasFindMany) Skip(count int) tenantToJobRunLookupDatasFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -242632,7 +267347,7 @@ func (r tenantWorkerPartitionToTenantsFindMany) Skip(count int) tenantWorkerPart return r } -func (r tenantWorkerPartitionToTenantsFindMany) Take(count int) tenantWorkerPartitionToTenantsFindMany { +func (r tenantToJobRunLookupDatasFindMany) Take(count int) tenantToJobRunLookupDatasFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -242640,7 +267355,7 @@ func (r tenantWorkerPartitionToTenantsFindMany) Take(count int) tenantWorkerPart return r } -func (r tenantWorkerPartitionToTenantsFindMany) Cursor(cursor TenantWorkerPartitionCursorParam) tenantWorkerPartitionToTenantsFindMany { +func (r tenantToJobRunLookupDatasFindMany) Cursor(cursor TenantCursorParam) tenantToJobRunLookupDatasFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -242648,11 +267363,11 @@ func (r tenantWorkerPartitionToTenantsFindMany) Cursor(cursor TenantWorkerPartit return r } -func (r tenantWorkerPartitionToTenantsFindMany) Exec(ctx context.Context) ( - []TenantWorkerPartitionModel, +func (r tenantToJobRunLookupDatasFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []TenantWorkerPartitionModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242660,11 +267375,11 @@ func (r tenantWorkerPartitionToTenantsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionToTenantsFindMany) ExecInner(ctx context.Context) ( - []InnerTenantWorkerPartition, +func (r tenantToJobRunLookupDatasFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerTenantWorkerPartition + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242672,14 +267387,14 @@ func (r tenantWorkerPartitionToTenantsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionToTenantsFindMany) Update(params ...TenantWorkerPartitionSetParam) tenantWorkerPartitionToTenantsUpdateMany { +func (r tenantToJobRunLookupDatasFindMany) Update(params ...TenantSetParam) tenantToJobRunLookupDatasUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantWorkerPartition" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantWorkerPartitionToTenantsUpdateMany + var v tenantToJobRunLookupDatasUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -242708,17 +267423,17 @@ func (r tenantWorkerPartitionToTenantsFindMany) Update(params ...TenantWorkerPar return v } -type tenantWorkerPartitionToTenantsUpdateMany struct { +type tenantToJobRunLookupDatasUpdateMany struct { query builder.Query } -func (r tenantWorkerPartitionToTenantsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToJobRunLookupDatasUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionToTenantsUpdateMany) tenantWorkerPartitionModel() {} +func (r tenantToJobRunLookupDatasUpdateMany) tenantModel() {} -func (r tenantWorkerPartitionToTenantsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToJobRunLookupDatasUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -242726,36 +267441,36 @@ func (r tenantWorkerPartitionToTenantsUpdateMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r tenantWorkerPartitionToTenantsUpdateMany) Tx() TenantWorkerPartitionManyTxResult { - v := newTenantWorkerPartitionManyTxResult() +func (r tenantToJobRunLookupDatasUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantWorkerPartitionToTenantsFindMany) Delete() tenantWorkerPartitionToTenantsDeleteMany { - var v tenantWorkerPartitionToTenantsDeleteMany +func (r tenantToJobRunLookupDatasFindMany) Delete() tenantToJobRunLookupDatasDeleteMany { + var v tenantToJobRunLookupDatasDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantWorkerPartition" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type tenantWorkerPartitionToTenantsDeleteMany struct { +type tenantToJobRunLookupDatasDeleteMany struct { query builder.Query } -func (r tenantWorkerPartitionToTenantsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToJobRunLookupDatasDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantWorkerPartitionToTenantsDeleteMany) tenantWorkerPartitionModel() {} +func (p tenantToJobRunLookupDatasDeleteMany) tenantModel() {} -func (r tenantWorkerPartitionToTenantsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToJobRunLookupDatasDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -242763,52 +267478,30 @@ func (r tenantWorkerPartitionToTenantsDeleteMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r tenantWorkerPartitionToTenantsDeleteMany) Tx() TenantWorkerPartitionManyTxResult { - v := newTenantWorkerPartitionManyTxResult() +func (r tenantToJobRunLookupDatasDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantWorkerPartitionFindUnique struct { +type tenantToStepRunsFindUnique struct { query builder.Query } -func (r tenantWorkerPartitionFindUnique) getQuery() builder.Query { +func (r tenantToStepRunsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionFindUnique) ExtractQuery() builder.Query { +func (r tenantToStepRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionFindUnique) with() {} -func (r tenantWorkerPartitionFindUnique) tenantWorkerPartitionModel() {} -func (r tenantWorkerPartitionFindUnique) tenantWorkerPartitionRelation() {} - -func (r tenantWorkerPartitionActions) FindUnique( - params TenantWorkerPartitionEqualsUniqueWhereParam, -) tenantWorkerPartitionFindUnique { - var v tenantWorkerPartitionFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "TenantWorkerPartition" - v.query.Outputs = tenantWorkerPartitionOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tenantToStepRunsFindUnique) with() {} +func (r tenantToStepRunsFindUnique) tenantModel() {} +func (r tenantToStepRunsFindUnique) tenantRelation() {} -func (r tenantWorkerPartitionFindUnique) With(params ...TenantWorkerPartitionRelationWith) tenantWorkerPartitionFindUnique { +func (r tenantToStepRunsFindUnique) With(params ...StepRunRelationWith) tenantToStepRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -242821,7 +267514,7 @@ func (r tenantWorkerPartitionFindUnique) With(params ...TenantWorkerPartitionRel return r } -func (r tenantWorkerPartitionFindUnique) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindUnique { +func (r tenantToStepRunsFindUnique) Select(params ...tenantPrismaFields) tenantToStepRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -242835,7 +267528,7 @@ func (r tenantWorkerPartitionFindUnique) Select(params ...tenantWorkerPartitionP return r } -func (r tenantWorkerPartitionFindUnique) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindUnique { +func (r tenantToStepRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToStepRunsFindUnique { var outputs []builder.Output var raw []string @@ -242843,7 +267536,7 @@ func (r tenantWorkerPartitionFindUnique) Omit(params ...tenantWorkerPartitionPri raw = append(raw, string(param)) } - for _, output := range tenantWorkerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -242854,11 +267547,11 @@ func (r tenantWorkerPartitionFindUnique) Omit(params ...tenantWorkerPartitionPri return r } -func (r tenantWorkerPartitionFindUnique) Exec(ctx context.Context) ( - *TenantWorkerPartitionModel, +func (r tenantToStepRunsFindUnique) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *TenantWorkerPartitionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242870,11 +267563,11 @@ func (r tenantWorkerPartitionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantWorkerPartition, +func (r tenantToStepRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerTenantWorkerPartition + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -242886,12 +267579,12 @@ func (r tenantWorkerPartitionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionFindUnique) Update(params ...TenantWorkerPartitionSetParam) tenantWorkerPartitionUpdateUnique { +func (r tenantToStepRunsFindUnique) Update(params ...TenantSetParam) tenantToStepRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantWorkerPartition" + r.query.Model = "Tenant" - var v tenantWorkerPartitionUpdateUnique + var v tenantToStepRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -242920,120 +267613,83 @@ func (r tenantWorkerPartitionFindUnique) Update(params ...TenantWorkerPartitionS return v } -type tenantWorkerPartitionUpdateUnique struct { +type tenantToStepRunsUpdateUnique struct { query builder.Query } -func (r tenantWorkerPartitionUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToStepRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionUpdateUnique) tenantWorkerPartitionModel() {} +func (r tenantToStepRunsUpdateUnique) tenantModel() {} -func (r tenantWorkerPartitionUpdateUnique) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { - var v TenantWorkerPartitionModel +func (r tenantToStepRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantWorkerPartitionUpdateUnique) Tx() TenantWorkerPartitionUniqueTxResult { - v := newTenantWorkerPartitionUniqueTxResult() +func (r tenantToStepRunsUpdateUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantWorkerPartitionFindUnique) Delete() tenantWorkerPartitionDeleteUnique { - var v tenantWorkerPartitionDeleteUnique +func (r tenantToStepRunsFindUnique) Delete() tenantToStepRunsDeleteUnique { + var v tenantToStepRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantWorkerPartition" + v.query.Model = "Tenant" return v } -type tenantWorkerPartitionDeleteUnique struct { +type tenantToStepRunsDeleteUnique struct { query builder.Query } -func (r tenantWorkerPartitionDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToStepRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantWorkerPartitionDeleteUnique) tenantWorkerPartitionModel() {} +func (p tenantToStepRunsDeleteUnique) tenantModel() {} -func (r tenantWorkerPartitionDeleteUnique) Exec(ctx context.Context) (*TenantWorkerPartitionModel, error) { - var v TenantWorkerPartitionModel +func (r tenantToStepRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { + var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantWorkerPartitionDeleteUnique) Tx() TenantWorkerPartitionUniqueTxResult { - v := newTenantWorkerPartitionUniqueTxResult() +func (r tenantToStepRunsDeleteUnique) Tx() TenantUniqueTxResult { + v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantWorkerPartitionFindFirst struct { +type tenantToStepRunsFindFirst struct { query builder.Query } -func (r tenantWorkerPartitionFindFirst) getQuery() builder.Query { +func (r tenantToStepRunsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionFindFirst) ExtractQuery() builder.Query { +func (r tenantToStepRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionFindFirst) with() {} -func (r tenantWorkerPartitionFindFirst) tenantWorkerPartitionModel() {} -func (r tenantWorkerPartitionFindFirst) tenantWorkerPartitionRelation() {} - -func (r tenantWorkerPartitionActions) FindFirst( - params ...TenantWorkerPartitionWhereParam, -) tenantWorkerPartitionFindFirst { - var v tenantWorkerPartitionFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "TenantWorkerPartition" - v.query.Outputs = tenantWorkerPartitionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToStepRunsFindFirst) with() {} +func (r tenantToStepRunsFindFirst) tenantModel() {} +func (r tenantToStepRunsFindFirst) tenantRelation() {} -func (r tenantWorkerPartitionFindFirst) With(params ...TenantWorkerPartitionRelationWith) tenantWorkerPartitionFindFirst { +func (r tenantToStepRunsFindFirst) With(params ...StepRunRelationWith) tenantToStepRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -243046,7 +267702,7 @@ func (r tenantWorkerPartitionFindFirst) With(params ...TenantWorkerPartitionRela return r } -func (r tenantWorkerPartitionFindFirst) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindFirst { +func (r tenantToStepRunsFindFirst) Select(params ...tenantPrismaFields) tenantToStepRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -243060,7 +267716,7 @@ func (r tenantWorkerPartitionFindFirst) Select(params ...tenantWorkerPartitionPr return r } -func (r tenantWorkerPartitionFindFirst) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindFirst { +func (r tenantToStepRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToStepRunsFindFirst { var outputs []builder.Output var raw []string @@ -243068,7 +267724,7 @@ func (r tenantWorkerPartitionFindFirst) Omit(params ...tenantWorkerPartitionPris raw = append(raw, string(param)) } - for _, output := range tenantWorkerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -243079,7 +267735,7 @@ func (r tenantWorkerPartitionFindFirst) Omit(params ...tenantWorkerPartitionPris return r } -func (r tenantWorkerPartitionFindFirst) OrderBy(params ...TenantWorkerPartitionOrderByParam) tenantWorkerPartitionFindFirst { +func (r tenantToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) tenantToStepRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -243099,7 +267755,7 @@ func (r tenantWorkerPartitionFindFirst) OrderBy(params ...TenantWorkerPartitionO return r } -func (r tenantWorkerPartitionFindFirst) Skip(count int) tenantWorkerPartitionFindFirst { +func (r tenantToStepRunsFindFirst) Skip(count int) tenantToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -243107,7 +267763,7 @@ func (r tenantWorkerPartitionFindFirst) Skip(count int) tenantWorkerPartitionFin return r } -func (r tenantWorkerPartitionFindFirst) Take(count int) tenantWorkerPartitionFindFirst { +func (r tenantToStepRunsFindFirst) Take(count int) tenantToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -243115,7 +267771,7 @@ func (r tenantWorkerPartitionFindFirst) Take(count int) tenantWorkerPartitionFin return r } -func (r tenantWorkerPartitionFindFirst) Cursor(cursor TenantWorkerPartitionCursorParam) tenantWorkerPartitionFindFirst { +func (r tenantToStepRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -243123,11 +267779,11 @@ func (r tenantWorkerPartitionFindFirst) Cursor(cursor TenantWorkerPartitionCurso return r } -func (r tenantWorkerPartitionFindFirst) Exec(ctx context.Context) ( - *TenantWorkerPartitionModel, +func (r tenantToStepRunsFindFirst) Exec(ctx context.Context) ( + *TenantModel, error, ) { - var v *TenantWorkerPartitionModel + var v *TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -243139,11 +267795,11 @@ func (r tenantWorkerPartitionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantWorkerPartition, +func (r tenantToStepRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenant, error, ) { - var v *InnerTenantWorkerPartition + var v *InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -243155,60 +267811,23 @@ func (r tenantWorkerPartitionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantWorkerPartitionFindMany struct { +type tenantToStepRunsFindMany struct { query builder.Query } -func (r tenantWorkerPartitionFindMany) getQuery() builder.Query { +func (r tenantToStepRunsFindMany) getQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionFindMany) ExtractQuery() builder.Query { +func (r tenantToStepRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionFindMany) with() {} -func (r tenantWorkerPartitionFindMany) tenantWorkerPartitionModel() {} -func (r tenantWorkerPartitionFindMany) tenantWorkerPartitionRelation() {} - -func (r tenantWorkerPartitionActions) FindMany( - params ...TenantWorkerPartitionWhereParam, -) tenantWorkerPartitionFindMany { - var v tenantWorkerPartitionFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "TenantWorkerPartition" - v.query.Outputs = tenantWorkerPartitionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantToStepRunsFindMany) with() {} +func (r tenantToStepRunsFindMany) tenantModel() {} +func (r tenantToStepRunsFindMany) tenantRelation() {} -func (r tenantWorkerPartitionFindMany) With(params ...TenantWorkerPartitionRelationWith) tenantWorkerPartitionFindMany { +func (r tenantToStepRunsFindMany) With(params ...StepRunRelationWith) tenantToStepRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -243221,7 +267840,7 @@ func (r tenantWorkerPartitionFindMany) With(params ...TenantWorkerPartitionRelat return r } -func (r tenantWorkerPartitionFindMany) Select(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindMany { +func (r tenantToStepRunsFindMany) Select(params ...tenantPrismaFields) tenantToStepRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -243235,7 +267854,7 @@ func (r tenantWorkerPartitionFindMany) Select(params ...tenantWorkerPartitionPri return r } -func (r tenantWorkerPartitionFindMany) Omit(params ...tenantWorkerPartitionPrismaFields) tenantWorkerPartitionFindMany { +func (r tenantToStepRunsFindMany) Omit(params ...tenantPrismaFields) tenantToStepRunsFindMany { var outputs []builder.Output var raw []string @@ -243243,7 +267862,7 @@ func (r tenantWorkerPartitionFindMany) Omit(params ...tenantWorkerPartitionPrism raw = append(raw, string(param)) } - for _, output := range tenantWorkerPartitionOutput { + for _, output := range tenantOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -243254,7 +267873,7 @@ func (r tenantWorkerPartitionFindMany) Omit(params ...tenantWorkerPartitionPrism return r } -func (r tenantWorkerPartitionFindMany) OrderBy(params ...TenantWorkerPartitionOrderByParam) tenantWorkerPartitionFindMany { +func (r tenantToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) tenantToStepRunsFindMany { var fields []builder.Field for _, param := range params { @@ -243274,7 +267893,7 @@ func (r tenantWorkerPartitionFindMany) OrderBy(params ...TenantWorkerPartitionOr return r } -func (r tenantWorkerPartitionFindMany) Skip(count int) tenantWorkerPartitionFindMany { +func (r tenantToStepRunsFindMany) Skip(count int) tenantToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -243282,7 +267901,7 @@ func (r tenantWorkerPartitionFindMany) Skip(count int) tenantWorkerPartitionFind return r } -func (r tenantWorkerPartitionFindMany) Take(count int) tenantWorkerPartitionFindMany { +func (r tenantToStepRunsFindMany) Take(count int) tenantToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -243290,7 +267909,7 @@ func (r tenantWorkerPartitionFindMany) Take(count int) tenantWorkerPartitionFind return r } -func (r tenantWorkerPartitionFindMany) Cursor(cursor TenantWorkerPartitionCursorParam) tenantWorkerPartitionFindMany { +func (r tenantToStepRunsFindMany) Cursor(cursor TenantCursorParam) tenantToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -243298,11 +267917,11 @@ func (r tenantWorkerPartitionFindMany) Cursor(cursor TenantWorkerPartitionCursor return r } -func (r tenantWorkerPartitionFindMany) Exec(ctx context.Context) ( - []TenantWorkerPartitionModel, +func (r tenantToStepRunsFindMany) Exec(ctx context.Context) ( + []TenantModel, error, ) { - var v []TenantWorkerPartitionModel + var v []TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -243310,11 +267929,11 @@ func (r tenantWorkerPartitionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionFindMany) ExecInner(ctx context.Context) ( - []InnerTenantWorkerPartition, +func (r tenantToStepRunsFindMany) ExecInner(ctx context.Context) ( + []InnerTenant, error, ) { - var v []InnerTenantWorkerPartition + var v []InnerTenant if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -243322,14 +267941,14 @@ func (r tenantWorkerPartitionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantWorkerPartitionFindMany) Update(params ...TenantWorkerPartitionSetParam) tenantWorkerPartitionUpdateMany { +func (r tenantToStepRunsFindMany) Update(params ...TenantSetParam) tenantToStepRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantWorkerPartition" + r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantWorkerPartitionUpdateMany + var v tenantToStepRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -243358,17 +267977,17 @@ func (r tenantWorkerPartitionFindMany) Update(params ...TenantWorkerPartitionSet return v } -type tenantWorkerPartitionUpdateMany struct { +type tenantToStepRunsUpdateMany struct { query builder.Query } -func (r tenantWorkerPartitionUpdateMany) ExtractQuery() builder.Query { +func (r tenantToStepRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantWorkerPartitionUpdateMany) tenantWorkerPartitionModel() {} +func (r tenantToStepRunsUpdateMany) tenantModel() {} -func (r tenantWorkerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -243376,36 +267995,36 @@ func (r tenantWorkerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r tenantWorkerPartitionUpdateMany) Tx() TenantWorkerPartitionManyTxResult { - v := newTenantWorkerPartitionManyTxResult() +func (r tenantToStepRunsUpdateMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantWorkerPartitionFindMany) Delete() tenantWorkerPartitionDeleteMany { - var v tenantWorkerPartitionDeleteMany +func (r tenantToStepRunsFindMany) Delete() tenantToStepRunsDeleteMany { + var v tenantToStepRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantWorkerPartition" + v.query.Model = "Tenant" v.query.Outputs = countOutput return v } -type tenantWorkerPartitionDeleteMany struct { +type tenantToStepRunsDeleteMany struct { query builder.Query } -func (r tenantWorkerPartitionDeleteMany) ExtractQuery() builder.Query { +func (r tenantToStepRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantWorkerPartitionDeleteMany) tenantWorkerPartitionModel() {} +func (p tenantToStepRunsDeleteMany) tenantModel() {} -func (r tenantWorkerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -243413,30 +268032,30 @@ func (r tenantWorkerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r tenantWorkerPartitionDeleteMany) Tx() TenantWorkerPartitionManyTxResult { - v := newTenantWorkerPartitionManyTxResult() +func (r tenantToStepRunsDeleteMany) Tx() TenantManyTxResult { + v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToControllerPartitionFindUnique struct { +type tenantToWorkersFindUnique struct { query builder.Query } -func (r tenantToControllerPartitionFindUnique) getQuery() builder.Query { +func (r tenantToWorkersFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToControllerPartitionFindUnique) ExtractQuery() builder.Query { +func (r tenantToWorkersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToControllerPartitionFindUnique) with() {} -func (r tenantToControllerPartitionFindUnique) tenantModel() {} -func (r tenantToControllerPartitionFindUnique) tenantRelation() {} +func (r tenantToWorkersFindUnique) with() {} +func (r tenantToWorkersFindUnique) tenantModel() {} +func (r tenantToWorkersFindUnique) tenantRelation() {} -func (r tenantToControllerPartitionFindUnique) With(params ...ControllerPartitionRelationWith) tenantToControllerPartitionFindUnique { +func (r tenantToWorkersFindUnique) With(params ...WorkerRelationWith) tenantToWorkersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -243449,7 +268068,7 @@ func (r tenantToControllerPartitionFindUnique) With(params ...ControllerPartitio return r } -func (r tenantToControllerPartitionFindUnique) Select(params ...tenantPrismaFields) tenantToControllerPartitionFindUnique { +func (r tenantToWorkersFindUnique) Select(params ...tenantPrismaFields) tenantToWorkersFindUnique { var outputs []builder.Output for _, param := range params { @@ -243463,7 +268082,7 @@ func (r tenantToControllerPartitionFindUnique) Select(params ...tenantPrismaFiel return r } -func (r tenantToControllerPartitionFindUnique) Omit(params ...tenantPrismaFields) tenantToControllerPartitionFindUnique { +func (r tenantToWorkersFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkersFindUnique { var outputs []builder.Output var raw []string @@ -243482,7 +268101,7 @@ func (r tenantToControllerPartitionFindUnique) Omit(params ...tenantPrismaFields return r } -func (r tenantToControllerPartitionFindUnique) Exec(ctx context.Context) ( +func (r tenantToWorkersFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -243498,7 +268117,7 @@ func (r tenantToControllerPartitionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToControllerPartitionFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToWorkersFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -243514,12 +268133,12 @@ func (r tenantToControllerPartitionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToControllerPartitionFindUnique) Update(params ...TenantSetParam) tenantToControllerPartitionUpdateUnique { +func (r tenantToWorkersFindUnique) Update(params ...TenantSetParam) tenantToWorkersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToControllerPartitionUpdateUnique + var v tenantToWorkersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -243548,17 +268167,17 @@ func (r tenantToControllerPartitionFindUnique) Update(params ...TenantSetParam) return v } -type tenantToControllerPartitionUpdateUnique struct { +type tenantToWorkersUpdateUnique struct { query builder.Query } -func (r tenantToControllerPartitionUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToWorkersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToControllerPartitionUpdateUnique) tenantModel() {} +func (r tenantToWorkersUpdateUnique) tenantModel() {} -func (r tenantToControllerPartitionUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToWorkersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -243566,15 +268185,15 @@ func (r tenantToControllerPartitionUpdateUnique) Exec(ctx context.Context) (*Ten return &v, nil } -func (r tenantToControllerPartitionUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToWorkersUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToControllerPartitionFindUnique) Delete() tenantToControllerPartitionDeleteUnique { - var v tenantToControllerPartitionDeleteUnique +func (r tenantToWorkersFindUnique) Delete() tenantToWorkersDeleteUnique { + var v tenantToWorkersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -243583,17 +268202,17 @@ func (r tenantToControllerPartitionFindUnique) Delete() tenantToControllerPartit return v } -type tenantToControllerPartitionDeleteUnique struct { +type tenantToWorkersDeleteUnique struct { query builder.Query } -func (r tenantToControllerPartitionDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToWorkersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToControllerPartitionDeleteUnique) tenantModel() {} +func (p tenantToWorkersDeleteUnique) tenantModel() {} -func (r tenantToControllerPartitionDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToWorkersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -243601,30 +268220,30 @@ func (r tenantToControllerPartitionDeleteUnique) Exec(ctx context.Context) (*Ten return &v, nil } -func (r tenantToControllerPartitionDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToWorkersDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToControllerPartitionFindFirst struct { +type tenantToWorkersFindFirst struct { query builder.Query } -func (r tenantToControllerPartitionFindFirst) getQuery() builder.Query { +func (r tenantToWorkersFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToControllerPartitionFindFirst) ExtractQuery() builder.Query { +func (r tenantToWorkersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToControllerPartitionFindFirst) with() {} -func (r tenantToControllerPartitionFindFirst) tenantModel() {} -func (r tenantToControllerPartitionFindFirst) tenantRelation() {} +func (r tenantToWorkersFindFirst) with() {} +func (r tenantToWorkersFindFirst) tenantModel() {} +func (r tenantToWorkersFindFirst) tenantRelation() {} -func (r tenantToControllerPartitionFindFirst) With(params ...ControllerPartitionRelationWith) tenantToControllerPartitionFindFirst { +func (r tenantToWorkersFindFirst) With(params ...WorkerRelationWith) tenantToWorkersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -243637,7 +268256,7 @@ func (r tenantToControllerPartitionFindFirst) With(params ...ControllerPartition return r } -func (r tenantToControllerPartitionFindFirst) Select(params ...tenantPrismaFields) tenantToControllerPartitionFindFirst { +func (r tenantToWorkersFindFirst) Select(params ...tenantPrismaFields) tenantToWorkersFindFirst { var outputs []builder.Output for _, param := range params { @@ -243651,7 +268270,7 @@ func (r tenantToControllerPartitionFindFirst) Select(params ...tenantPrismaField return r } -func (r tenantToControllerPartitionFindFirst) Omit(params ...tenantPrismaFields) tenantToControllerPartitionFindFirst { +func (r tenantToWorkersFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkersFindFirst { var outputs []builder.Output var raw []string @@ -243670,7 +268289,7 @@ func (r tenantToControllerPartitionFindFirst) Omit(params ...tenantPrismaFields) return r } -func (r tenantToControllerPartitionFindFirst) OrderBy(params ...ControllerPartitionOrderByParam) tenantToControllerPartitionFindFirst { +func (r tenantToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) tenantToWorkersFindFirst { var fields []builder.Field for _, param := range params { @@ -243690,7 +268309,7 @@ func (r tenantToControllerPartitionFindFirst) OrderBy(params ...ControllerPartit return r } -func (r tenantToControllerPartitionFindFirst) Skip(count int) tenantToControllerPartitionFindFirst { +func (r tenantToWorkersFindFirst) Skip(count int) tenantToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -243698,7 +268317,7 @@ func (r tenantToControllerPartitionFindFirst) Skip(count int) tenantToController return r } -func (r tenantToControllerPartitionFindFirst) Take(count int) tenantToControllerPartitionFindFirst { +func (r tenantToWorkersFindFirst) Take(count int) tenantToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -243706,7 +268325,7 @@ func (r tenantToControllerPartitionFindFirst) Take(count int) tenantToController return r } -func (r tenantToControllerPartitionFindFirst) Cursor(cursor TenantCursorParam) tenantToControllerPartitionFindFirst { +func (r tenantToWorkersFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -243714,7 +268333,7 @@ func (r tenantToControllerPartitionFindFirst) Cursor(cursor TenantCursorParam) t return r } -func (r tenantToControllerPartitionFindFirst) Exec(ctx context.Context) ( +func (r tenantToWorkersFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -243730,7 +268349,7 @@ func (r tenantToControllerPartitionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToControllerPartitionFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToWorkersFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -243746,23 +268365,23 @@ func (r tenantToControllerPartitionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToControllerPartitionFindMany struct { +type tenantToWorkersFindMany struct { query builder.Query } -func (r tenantToControllerPartitionFindMany) getQuery() builder.Query { +func (r tenantToWorkersFindMany) getQuery() builder.Query { return r.query } -func (r tenantToControllerPartitionFindMany) ExtractQuery() builder.Query { +func (r tenantToWorkersFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToControllerPartitionFindMany) with() {} -func (r tenantToControllerPartitionFindMany) tenantModel() {} -func (r tenantToControllerPartitionFindMany) tenantRelation() {} +func (r tenantToWorkersFindMany) with() {} +func (r tenantToWorkersFindMany) tenantModel() {} +func (r tenantToWorkersFindMany) tenantRelation() {} -func (r tenantToControllerPartitionFindMany) With(params ...ControllerPartitionRelationWith) tenantToControllerPartitionFindMany { +func (r tenantToWorkersFindMany) With(params ...WorkerRelationWith) tenantToWorkersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -243775,7 +268394,7 @@ func (r tenantToControllerPartitionFindMany) With(params ...ControllerPartitionR return r } -func (r tenantToControllerPartitionFindMany) Select(params ...tenantPrismaFields) tenantToControllerPartitionFindMany { +func (r tenantToWorkersFindMany) Select(params ...tenantPrismaFields) tenantToWorkersFindMany { var outputs []builder.Output for _, param := range params { @@ -243789,7 +268408,7 @@ func (r tenantToControllerPartitionFindMany) Select(params ...tenantPrismaFields return r } -func (r tenantToControllerPartitionFindMany) Omit(params ...tenantPrismaFields) tenantToControllerPartitionFindMany { +func (r tenantToWorkersFindMany) Omit(params ...tenantPrismaFields) tenantToWorkersFindMany { var outputs []builder.Output var raw []string @@ -243808,7 +268427,7 @@ func (r tenantToControllerPartitionFindMany) Omit(params ...tenantPrismaFields) return r } -func (r tenantToControllerPartitionFindMany) OrderBy(params ...ControllerPartitionOrderByParam) tenantToControllerPartitionFindMany { +func (r tenantToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) tenantToWorkersFindMany { var fields []builder.Field for _, param := range params { @@ -243828,7 +268447,7 @@ func (r tenantToControllerPartitionFindMany) OrderBy(params ...ControllerPartiti return r } -func (r tenantToControllerPartitionFindMany) Skip(count int) tenantToControllerPartitionFindMany { +func (r tenantToWorkersFindMany) Skip(count int) tenantToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -243836,7 +268455,7 @@ func (r tenantToControllerPartitionFindMany) Skip(count int) tenantToControllerP return r } -func (r tenantToControllerPartitionFindMany) Take(count int) tenantToControllerPartitionFindMany { +func (r tenantToWorkersFindMany) Take(count int) tenantToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -243844,7 +268463,7 @@ func (r tenantToControllerPartitionFindMany) Take(count int) tenantToControllerP return r } -func (r tenantToControllerPartitionFindMany) Cursor(cursor TenantCursorParam) tenantToControllerPartitionFindMany { +func (r tenantToWorkersFindMany) Cursor(cursor TenantCursorParam) tenantToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -243852,7 +268471,7 @@ func (r tenantToControllerPartitionFindMany) Cursor(cursor TenantCursorParam) te return r } -func (r tenantToControllerPartitionFindMany) Exec(ctx context.Context) ( +func (r tenantToWorkersFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -243864,7 +268483,7 @@ func (r tenantToControllerPartitionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToControllerPartitionFindMany) ExecInner(ctx context.Context) ( +func (r tenantToWorkersFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -243876,14 +268495,14 @@ func (r tenantToControllerPartitionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToControllerPartitionFindMany) Update(params ...TenantSetParam) tenantToControllerPartitionUpdateMany { +func (r tenantToWorkersFindMany) Update(params ...TenantSetParam) tenantToWorkersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToControllerPartitionUpdateMany + var v tenantToWorkersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -243912,17 +268531,17 @@ func (r tenantToControllerPartitionFindMany) Update(params ...TenantSetParam) te return v } -type tenantToControllerPartitionUpdateMany struct { +type tenantToWorkersUpdateMany struct { query builder.Query } -func (r tenantToControllerPartitionUpdateMany) ExtractQuery() builder.Query { +func (r tenantToWorkersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToControllerPartitionUpdateMany) tenantModel() {} +func (r tenantToWorkersUpdateMany) tenantModel() {} -func (r tenantToControllerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -243930,15 +268549,15 @@ func (r tenantToControllerPartitionUpdateMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r tenantToControllerPartitionUpdateMany) Tx() TenantManyTxResult { +func (r tenantToWorkersUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToControllerPartitionFindMany) Delete() tenantToControllerPartitionDeleteMany { - var v tenantToControllerPartitionDeleteMany +func (r tenantToWorkersFindMany) Delete() tenantToWorkersDeleteMany { + var v tenantToWorkersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -243949,17 +268568,17 @@ func (r tenantToControllerPartitionFindMany) Delete() tenantToControllerPartitio return v } -type tenantToControllerPartitionDeleteMany struct { +type tenantToWorkersDeleteMany struct { query builder.Query } -func (r tenantToControllerPartitionDeleteMany) ExtractQuery() builder.Query { +func (r tenantToWorkersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToControllerPartitionDeleteMany) tenantModel() {} +func (p tenantToWorkersDeleteMany) tenantModel() {} -func (r tenantToControllerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -243967,30 +268586,30 @@ func (r tenantToControllerPartitionDeleteMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r tenantToControllerPartitionDeleteMany) Tx() TenantManyTxResult { +func (r tenantToWorkersDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkerPartitionFindUnique struct { +type tenantToMembersFindUnique struct { query builder.Query } -func (r tenantToWorkerPartitionFindUnique) getQuery() builder.Query { +func (r tenantToMembersFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToWorkerPartitionFindUnique) ExtractQuery() builder.Query { +func (r tenantToMembersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkerPartitionFindUnique) with() {} -func (r tenantToWorkerPartitionFindUnique) tenantModel() {} -func (r tenantToWorkerPartitionFindUnique) tenantRelation() {} +func (r tenantToMembersFindUnique) with() {} +func (r tenantToMembersFindUnique) tenantModel() {} +func (r tenantToMembersFindUnique) tenantRelation() {} -func (r tenantToWorkerPartitionFindUnique) With(params ...TenantWorkerPartitionRelationWith) tenantToWorkerPartitionFindUnique { +func (r tenantToMembersFindUnique) With(params ...TenantMemberRelationWith) tenantToMembersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -244003,7 +268622,7 @@ func (r tenantToWorkerPartitionFindUnique) With(params ...TenantWorkerPartitionR return r } -func (r tenantToWorkerPartitionFindUnique) Select(params ...tenantPrismaFields) tenantToWorkerPartitionFindUnique { +func (r tenantToMembersFindUnique) Select(params ...tenantPrismaFields) tenantToMembersFindUnique { var outputs []builder.Output for _, param := range params { @@ -244017,7 +268636,7 @@ func (r tenantToWorkerPartitionFindUnique) Select(params ...tenantPrismaFields) return r } -func (r tenantToWorkerPartitionFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkerPartitionFindUnique { +func (r tenantToMembersFindUnique) Omit(params ...tenantPrismaFields) tenantToMembersFindUnique { var outputs []builder.Output var raw []string @@ -244036,7 +268655,7 @@ func (r tenantToWorkerPartitionFindUnique) Omit(params ...tenantPrismaFields) te return r } -func (r tenantToWorkerPartitionFindUnique) Exec(ctx context.Context) ( +func (r tenantToMembersFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -244052,7 +268671,7 @@ func (r tenantToWorkerPartitionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkerPartitionFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToMembersFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -244068,12 +268687,12 @@ func (r tenantToWorkerPartitionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkerPartitionFindUnique) Update(params ...TenantSetParam) tenantToWorkerPartitionUpdateUnique { +func (r tenantToMembersFindUnique) Update(params ...TenantSetParam) tenantToMembersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToWorkerPartitionUpdateUnique + var v tenantToMembersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -244102,17 +268721,17 @@ func (r tenantToWorkerPartitionFindUnique) Update(params ...TenantSetParam) tena return v } -type tenantToWorkerPartitionUpdateUnique struct { +type tenantToMembersUpdateUnique struct { query builder.Query } -func (r tenantToWorkerPartitionUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToMembersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkerPartitionUpdateUnique) tenantModel() {} +func (r tenantToMembersUpdateUnique) tenantModel() {} -func (r tenantToWorkerPartitionUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToMembersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -244120,15 +268739,15 @@ func (r tenantToWorkerPartitionUpdateUnique) Exec(ctx context.Context) (*TenantM return &v, nil } -func (r tenantToWorkerPartitionUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToMembersUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkerPartitionFindUnique) Delete() tenantToWorkerPartitionDeleteUnique { - var v tenantToWorkerPartitionDeleteUnique +func (r tenantToMembersFindUnique) Delete() tenantToMembersDeleteUnique { + var v tenantToMembersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -244137,17 +268756,17 @@ func (r tenantToWorkerPartitionFindUnique) Delete() tenantToWorkerPartitionDelet return v } -type tenantToWorkerPartitionDeleteUnique struct { +type tenantToMembersDeleteUnique struct { query builder.Query } -func (r tenantToWorkerPartitionDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToMembersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkerPartitionDeleteUnique) tenantModel() {} +func (p tenantToMembersDeleteUnique) tenantModel() {} -func (r tenantToWorkerPartitionDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToMembersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -244155,30 +268774,30 @@ func (r tenantToWorkerPartitionDeleteUnique) Exec(ctx context.Context) (*TenantM return &v, nil } -func (r tenantToWorkerPartitionDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToMembersDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkerPartitionFindFirst struct { +type tenantToMembersFindFirst struct { query builder.Query } -func (r tenantToWorkerPartitionFindFirst) getQuery() builder.Query { +func (r tenantToMembersFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToWorkerPartitionFindFirst) ExtractQuery() builder.Query { +func (r tenantToMembersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkerPartitionFindFirst) with() {} -func (r tenantToWorkerPartitionFindFirst) tenantModel() {} -func (r tenantToWorkerPartitionFindFirst) tenantRelation() {} +func (r tenantToMembersFindFirst) with() {} +func (r tenantToMembersFindFirst) tenantModel() {} +func (r tenantToMembersFindFirst) tenantRelation() {} -func (r tenantToWorkerPartitionFindFirst) With(params ...TenantWorkerPartitionRelationWith) tenantToWorkerPartitionFindFirst { +func (r tenantToMembersFindFirst) With(params ...TenantMemberRelationWith) tenantToMembersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -244191,7 +268810,7 @@ func (r tenantToWorkerPartitionFindFirst) With(params ...TenantWorkerPartitionRe return r } -func (r tenantToWorkerPartitionFindFirst) Select(params ...tenantPrismaFields) tenantToWorkerPartitionFindFirst { +func (r tenantToMembersFindFirst) Select(params ...tenantPrismaFields) tenantToMembersFindFirst { var outputs []builder.Output for _, param := range params { @@ -244205,7 +268824,7 @@ func (r tenantToWorkerPartitionFindFirst) Select(params ...tenantPrismaFields) t return r } -func (r tenantToWorkerPartitionFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkerPartitionFindFirst { +func (r tenantToMembersFindFirst) Omit(params ...tenantPrismaFields) tenantToMembersFindFirst { var outputs []builder.Output var raw []string @@ -244224,7 +268843,7 @@ func (r tenantToWorkerPartitionFindFirst) Omit(params ...tenantPrismaFields) ten return r } -func (r tenantToWorkerPartitionFindFirst) OrderBy(params ...TenantWorkerPartitionOrderByParam) tenantToWorkerPartitionFindFirst { +func (r tenantToMembersFindFirst) OrderBy(params ...TenantMemberOrderByParam) tenantToMembersFindFirst { var fields []builder.Field for _, param := range params { @@ -244244,7 +268863,7 @@ func (r tenantToWorkerPartitionFindFirst) OrderBy(params ...TenantWorkerPartitio return r } -func (r tenantToWorkerPartitionFindFirst) Skip(count int) tenantToWorkerPartitionFindFirst { +func (r tenantToMembersFindFirst) Skip(count int) tenantToMembersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -244252,7 +268871,7 @@ func (r tenantToWorkerPartitionFindFirst) Skip(count int) tenantToWorkerPartitio return r } -func (r tenantToWorkerPartitionFindFirst) Take(count int) tenantToWorkerPartitionFindFirst { +func (r tenantToMembersFindFirst) Take(count int) tenantToMembersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -244260,7 +268879,7 @@ func (r tenantToWorkerPartitionFindFirst) Take(count int) tenantToWorkerPartitio return r } -func (r tenantToWorkerPartitionFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkerPartitionFindFirst { +func (r tenantToMembersFindFirst) Cursor(cursor TenantCursorParam) tenantToMembersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -244268,7 +268887,7 @@ func (r tenantToWorkerPartitionFindFirst) Cursor(cursor TenantCursorParam) tenan return r } -func (r tenantToWorkerPartitionFindFirst) Exec(ctx context.Context) ( +func (r tenantToMembersFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -244284,7 +268903,7 @@ func (r tenantToWorkerPartitionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkerPartitionFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToMembersFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -244300,23 +268919,23 @@ func (r tenantToWorkerPartitionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToWorkerPartitionFindMany struct { +type tenantToMembersFindMany struct { query builder.Query } -func (r tenantToWorkerPartitionFindMany) getQuery() builder.Query { +func (r tenantToMembersFindMany) getQuery() builder.Query { return r.query } -func (r tenantToWorkerPartitionFindMany) ExtractQuery() builder.Query { +func (r tenantToMembersFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkerPartitionFindMany) with() {} -func (r tenantToWorkerPartitionFindMany) tenantModel() {} -func (r tenantToWorkerPartitionFindMany) tenantRelation() {} +func (r tenantToMembersFindMany) with() {} +func (r tenantToMembersFindMany) tenantModel() {} +func (r tenantToMembersFindMany) tenantRelation() {} -func (r tenantToWorkerPartitionFindMany) With(params ...TenantWorkerPartitionRelationWith) tenantToWorkerPartitionFindMany { +func (r tenantToMembersFindMany) With(params ...TenantMemberRelationWith) tenantToMembersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -244329,7 +268948,7 @@ func (r tenantToWorkerPartitionFindMany) With(params ...TenantWorkerPartitionRel return r } -func (r tenantToWorkerPartitionFindMany) Select(params ...tenantPrismaFields) tenantToWorkerPartitionFindMany { +func (r tenantToMembersFindMany) Select(params ...tenantPrismaFields) tenantToMembersFindMany { var outputs []builder.Output for _, param := range params { @@ -244343,7 +268962,7 @@ func (r tenantToWorkerPartitionFindMany) Select(params ...tenantPrismaFields) te return r } -func (r tenantToWorkerPartitionFindMany) Omit(params ...tenantPrismaFields) tenantToWorkerPartitionFindMany { +func (r tenantToMembersFindMany) Omit(params ...tenantPrismaFields) tenantToMembersFindMany { var outputs []builder.Output var raw []string @@ -244362,7 +268981,7 @@ func (r tenantToWorkerPartitionFindMany) Omit(params ...tenantPrismaFields) tena return r } -func (r tenantToWorkerPartitionFindMany) OrderBy(params ...TenantWorkerPartitionOrderByParam) tenantToWorkerPartitionFindMany { +func (r tenantToMembersFindMany) OrderBy(params ...TenantMemberOrderByParam) tenantToMembersFindMany { var fields []builder.Field for _, param := range params { @@ -244382,7 +269001,7 @@ func (r tenantToWorkerPartitionFindMany) OrderBy(params ...TenantWorkerPartition return r } -func (r tenantToWorkerPartitionFindMany) Skip(count int) tenantToWorkerPartitionFindMany { +func (r tenantToMembersFindMany) Skip(count int) tenantToMembersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -244390,7 +269009,7 @@ func (r tenantToWorkerPartitionFindMany) Skip(count int) tenantToWorkerPartition return r } -func (r tenantToWorkerPartitionFindMany) Take(count int) tenantToWorkerPartitionFindMany { +func (r tenantToMembersFindMany) Take(count int) tenantToMembersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -244398,7 +269017,7 @@ func (r tenantToWorkerPartitionFindMany) Take(count int) tenantToWorkerPartition return r } -func (r tenantToWorkerPartitionFindMany) Cursor(cursor TenantCursorParam) tenantToWorkerPartitionFindMany { +func (r tenantToMembersFindMany) Cursor(cursor TenantCursorParam) tenantToMembersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -244406,7 +269025,7 @@ func (r tenantToWorkerPartitionFindMany) Cursor(cursor TenantCursorParam) tenant return r } -func (r tenantToWorkerPartitionFindMany) Exec(ctx context.Context) ( +func (r tenantToMembersFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -244418,7 +269037,7 @@ func (r tenantToWorkerPartitionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkerPartitionFindMany) ExecInner(ctx context.Context) ( +func (r tenantToMembersFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -244430,14 +269049,14 @@ func (r tenantToWorkerPartitionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkerPartitionFindMany) Update(params ...TenantSetParam) tenantToWorkerPartitionUpdateMany { +func (r tenantToMembersFindMany) Update(params ...TenantSetParam) tenantToMembersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToWorkerPartitionUpdateMany + var v tenantToMembersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -244466,17 +269085,17 @@ func (r tenantToWorkerPartitionFindMany) Update(params ...TenantSetParam) tenant return v } -type tenantToWorkerPartitionUpdateMany struct { +type tenantToMembersUpdateMany struct { query builder.Query } -func (r tenantToWorkerPartitionUpdateMany) ExtractQuery() builder.Query { +func (r tenantToMembersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkerPartitionUpdateMany) tenantModel() {} +func (r tenantToMembersUpdateMany) tenantModel() {} -func (r tenantToWorkerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToMembersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -244484,15 +269103,15 @@ func (r tenantToWorkerPartitionUpdateMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r tenantToWorkerPartitionUpdateMany) Tx() TenantManyTxResult { +func (r tenantToMembersUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkerPartitionFindMany) Delete() tenantToWorkerPartitionDeleteMany { - var v tenantToWorkerPartitionDeleteMany +func (r tenantToMembersFindMany) Delete() tenantToMembersDeleteMany { + var v tenantToMembersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -244503,17 +269122,17 @@ func (r tenantToWorkerPartitionFindMany) Delete() tenantToWorkerPartitionDeleteM return v } -type tenantToWorkerPartitionDeleteMany struct { +type tenantToMembersDeleteMany struct { query builder.Query } -func (r tenantToWorkerPartitionDeleteMany) ExtractQuery() builder.Query { +func (r tenantToMembersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkerPartitionDeleteMany) tenantModel() {} +func (p tenantToMembersDeleteMany) tenantModel() {} -func (r tenantToWorkerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToMembersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -244521,30 +269140,30 @@ func (r tenantToWorkerPartitionDeleteMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r tenantToWorkerPartitionDeleteMany) Tx() TenantManyTxResult { +func (r tenantToMembersDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToEventsFindUnique struct { +type tenantToWorkflowTagsFindUnique struct { query builder.Query } -func (r tenantToEventsFindUnique) getQuery() builder.Query { +func (r tenantToWorkflowTagsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToEventsFindUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowTagsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToEventsFindUnique) with() {} -func (r tenantToEventsFindUnique) tenantModel() {} -func (r tenantToEventsFindUnique) tenantRelation() {} +func (r tenantToWorkflowTagsFindUnique) with() {} +func (r tenantToWorkflowTagsFindUnique) tenantModel() {} +func (r tenantToWorkflowTagsFindUnique) tenantRelation() {} -func (r tenantToEventsFindUnique) With(params ...EventRelationWith) tenantToEventsFindUnique { +func (r tenantToWorkflowTagsFindUnique) With(params ...WorkflowTagRelationWith) tenantToWorkflowTagsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -244557,7 +269176,7 @@ func (r tenantToEventsFindUnique) With(params ...EventRelationWith) tenantToEven return r } -func (r tenantToEventsFindUnique) Select(params ...tenantPrismaFields) tenantToEventsFindUnique { +func (r tenantToWorkflowTagsFindUnique) Select(params ...tenantPrismaFields) tenantToWorkflowTagsFindUnique { var outputs []builder.Output for _, param := range params { @@ -244571,7 +269190,7 @@ func (r tenantToEventsFindUnique) Select(params ...tenantPrismaFields) tenantToE return r } -func (r tenantToEventsFindUnique) Omit(params ...tenantPrismaFields) tenantToEventsFindUnique { +func (r tenantToWorkflowTagsFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkflowTagsFindUnique { var outputs []builder.Output var raw []string @@ -244590,7 +269209,7 @@ func (r tenantToEventsFindUnique) Omit(params ...tenantPrismaFields) tenantToEve return r } -func (r tenantToEventsFindUnique) Exec(ctx context.Context) ( +func (r tenantToWorkflowTagsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -244606,7 +269225,7 @@ func (r tenantToEventsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToEventsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToWorkflowTagsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -244622,12 +269241,12 @@ func (r tenantToEventsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToEventsFindUnique) Update(params ...TenantSetParam) tenantToEventsUpdateUnique { +func (r tenantToWorkflowTagsFindUnique) Update(params ...TenantSetParam) tenantToWorkflowTagsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToEventsUpdateUnique + var v tenantToWorkflowTagsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -244656,17 +269275,17 @@ func (r tenantToEventsFindUnique) Update(params ...TenantSetParam) tenantToEvent return v } -type tenantToEventsUpdateUnique struct { +type tenantToWorkflowTagsUpdateUnique struct { query builder.Query } -func (r tenantToEventsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowTagsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToEventsUpdateUnique) tenantModel() {} +func (r tenantToWorkflowTagsUpdateUnique) tenantModel() {} -func (r tenantToEventsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToWorkflowTagsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -244674,15 +269293,15 @@ func (r tenantToEventsUpdateUnique) Exec(ctx context.Context) (*TenantModel, err return &v, nil } -func (r tenantToEventsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToWorkflowTagsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToEventsFindUnique) Delete() tenantToEventsDeleteUnique { - var v tenantToEventsDeleteUnique +func (r tenantToWorkflowTagsFindUnique) Delete() tenantToWorkflowTagsDeleteUnique { + var v tenantToWorkflowTagsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -244691,17 +269310,17 @@ func (r tenantToEventsFindUnique) Delete() tenantToEventsDeleteUnique { return v } -type tenantToEventsDeleteUnique struct { +type tenantToWorkflowTagsDeleteUnique struct { query builder.Query } -func (r tenantToEventsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToWorkflowTagsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToEventsDeleteUnique) tenantModel() {} +func (p tenantToWorkflowTagsDeleteUnique) tenantModel() {} -func (r tenantToEventsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToWorkflowTagsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -244709,30 +269328,30 @@ func (r tenantToEventsDeleteUnique) Exec(ctx context.Context) (*TenantModel, err return &v, nil } -func (r tenantToEventsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToWorkflowTagsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToEventsFindFirst struct { +type tenantToWorkflowTagsFindFirst struct { query builder.Query } -func (r tenantToEventsFindFirst) getQuery() builder.Query { +func (r tenantToWorkflowTagsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToEventsFindFirst) ExtractQuery() builder.Query { +func (r tenantToWorkflowTagsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToEventsFindFirst) with() {} -func (r tenantToEventsFindFirst) tenantModel() {} -func (r tenantToEventsFindFirst) tenantRelation() {} +func (r tenantToWorkflowTagsFindFirst) with() {} +func (r tenantToWorkflowTagsFindFirst) tenantModel() {} +func (r tenantToWorkflowTagsFindFirst) tenantRelation() {} -func (r tenantToEventsFindFirst) With(params ...EventRelationWith) tenantToEventsFindFirst { +func (r tenantToWorkflowTagsFindFirst) With(params ...WorkflowTagRelationWith) tenantToWorkflowTagsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -244745,7 +269364,7 @@ func (r tenantToEventsFindFirst) With(params ...EventRelationWith) tenantToEvent return r } -func (r tenantToEventsFindFirst) Select(params ...tenantPrismaFields) tenantToEventsFindFirst { +func (r tenantToWorkflowTagsFindFirst) Select(params ...tenantPrismaFields) tenantToWorkflowTagsFindFirst { var outputs []builder.Output for _, param := range params { @@ -244759,7 +269378,7 @@ func (r tenantToEventsFindFirst) Select(params ...tenantPrismaFields) tenantToEv return r } -func (r tenantToEventsFindFirst) Omit(params ...tenantPrismaFields) tenantToEventsFindFirst { +func (r tenantToWorkflowTagsFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkflowTagsFindFirst { var outputs []builder.Output var raw []string @@ -244778,7 +269397,7 @@ func (r tenantToEventsFindFirst) Omit(params ...tenantPrismaFields) tenantToEven return r } -func (r tenantToEventsFindFirst) OrderBy(params ...EventOrderByParam) tenantToEventsFindFirst { +func (r tenantToWorkflowTagsFindFirst) OrderBy(params ...WorkflowTagOrderByParam) tenantToWorkflowTagsFindFirst { var fields []builder.Field for _, param := range params { @@ -244798,7 +269417,7 @@ func (r tenantToEventsFindFirst) OrderBy(params ...EventOrderByParam) tenantToEv return r } -func (r tenantToEventsFindFirst) Skip(count int) tenantToEventsFindFirst { +func (r tenantToWorkflowTagsFindFirst) Skip(count int) tenantToWorkflowTagsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -244806,7 +269425,7 @@ func (r tenantToEventsFindFirst) Skip(count int) tenantToEventsFindFirst { return r } -func (r tenantToEventsFindFirst) Take(count int) tenantToEventsFindFirst { +func (r tenantToWorkflowTagsFindFirst) Take(count int) tenantToWorkflowTagsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -244814,7 +269433,7 @@ func (r tenantToEventsFindFirst) Take(count int) tenantToEventsFindFirst { return r } -func (r tenantToEventsFindFirst) Cursor(cursor TenantCursorParam) tenantToEventsFindFirst { +func (r tenantToWorkflowTagsFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkflowTagsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -244822,7 +269441,7 @@ func (r tenantToEventsFindFirst) Cursor(cursor TenantCursorParam) tenantToEvents return r } -func (r tenantToEventsFindFirst) Exec(ctx context.Context) ( +func (r tenantToWorkflowTagsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -244838,7 +269457,7 @@ func (r tenantToEventsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToEventsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToWorkflowTagsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -244854,23 +269473,23 @@ func (r tenantToEventsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToEventsFindMany struct { +type tenantToWorkflowTagsFindMany struct { query builder.Query } -func (r tenantToEventsFindMany) getQuery() builder.Query { +func (r tenantToWorkflowTagsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToEventsFindMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowTagsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToEventsFindMany) with() {} -func (r tenantToEventsFindMany) tenantModel() {} -func (r tenantToEventsFindMany) tenantRelation() {} +func (r tenantToWorkflowTagsFindMany) with() {} +func (r tenantToWorkflowTagsFindMany) tenantModel() {} +func (r tenantToWorkflowTagsFindMany) tenantRelation() {} -func (r tenantToEventsFindMany) With(params ...EventRelationWith) tenantToEventsFindMany { +func (r tenantToWorkflowTagsFindMany) With(params ...WorkflowTagRelationWith) tenantToWorkflowTagsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -244883,7 +269502,7 @@ func (r tenantToEventsFindMany) With(params ...EventRelationWith) tenantToEvents return r } -func (r tenantToEventsFindMany) Select(params ...tenantPrismaFields) tenantToEventsFindMany { +func (r tenantToWorkflowTagsFindMany) Select(params ...tenantPrismaFields) tenantToWorkflowTagsFindMany { var outputs []builder.Output for _, param := range params { @@ -244897,7 +269516,7 @@ func (r tenantToEventsFindMany) Select(params ...tenantPrismaFields) tenantToEve return r } -func (r tenantToEventsFindMany) Omit(params ...tenantPrismaFields) tenantToEventsFindMany { +func (r tenantToWorkflowTagsFindMany) Omit(params ...tenantPrismaFields) tenantToWorkflowTagsFindMany { var outputs []builder.Output var raw []string @@ -244916,7 +269535,7 @@ func (r tenantToEventsFindMany) Omit(params ...tenantPrismaFields) tenantToEvent return r } -func (r tenantToEventsFindMany) OrderBy(params ...EventOrderByParam) tenantToEventsFindMany { +func (r tenantToWorkflowTagsFindMany) OrderBy(params ...WorkflowTagOrderByParam) tenantToWorkflowTagsFindMany { var fields []builder.Field for _, param := range params { @@ -244936,7 +269555,7 @@ func (r tenantToEventsFindMany) OrderBy(params ...EventOrderByParam) tenantToEve return r } -func (r tenantToEventsFindMany) Skip(count int) tenantToEventsFindMany { +func (r tenantToWorkflowTagsFindMany) Skip(count int) tenantToWorkflowTagsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -244944,7 +269563,7 @@ func (r tenantToEventsFindMany) Skip(count int) tenantToEventsFindMany { return r } -func (r tenantToEventsFindMany) Take(count int) tenantToEventsFindMany { +func (r tenantToWorkflowTagsFindMany) Take(count int) tenantToWorkflowTagsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -244952,7 +269571,7 @@ func (r tenantToEventsFindMany) Take(count int) tenantToEventsFindMany { return r } -func (r tenantToEventsFindMany) Cursor(cursor TenantCursorParam) tenantToEventsFindMany { +func (r tenantToWorkflowTagsFindMany) Cursor(cursor TenantCursorParam) tenantToWorkflowTagsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -244960,7 +269579,7 @@ func (r tenantToEventsFindMany) Cursor(cursor TenantCursorParam) tenantToEventsF return r } -func (r tenantToEventsFindMany) Exec(ctx context.Context) ( +func (r tenantToWorkflowTagsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -244972,7 +269591,7 @@ func (r tenantToEventsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToEventsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToWorkflowTagsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -244984,14 +269603,14 @@ func (r tenantToEventsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToEventsFindMany) Update(params ...TenantSetParam) tenantToEventsUpdateMany { +func (r tenantToWorkflowTagsFindMany) Update(params ...TenantSetParam) tenantToWorkflowTagsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToEventsUpdateMany + var v tenantToWorkflowTagsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -245020,17 +269639,17 @@ func (r tenantToEventsFindMany) Update(params ...TenantSetParam) tenantToEventsU return v } -type tenantToEventsUpdateMany struct { +type tenantToWorkflowTagsUpdateMany struct { query builder.Query } -func (r tenantToEventsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowTagsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToEventsUpdateMany) tenantModel() {} +func (r tenantToWorkflowTagsUpdateMany) tenantModel() {} -func (r tenantToEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkflowTagsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -245038,15 +269657,15 @@ func (r tenantToEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r tenantToEventsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToWorkflowTagsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToEventsFindMany) Delete() tenantToEventsDeleteMany { - var v tenantToEventsDeleteMany +func (r tenantToWorkflowTagsFindMany) Delete() tenantToWorkflowTagsDeleteMany { + var v tenantToWorkflowTagsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -245057,17 +269676,17 @@ func (r tenantToEventsFindMany) Delete() tenantToEventsDeleteMany { return v } -type tenantToEventsDeleteMany struct { +type tenantToWorkflowTagsDeleteMany struct { query builder.Query } -func (r tenantToEventsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToWorkflowTagsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToEventsDeleteMany) tenantModel() {} +func (p tenantToWorkflowTagsDeleteMany) tenantModel() {} -func (r tenantToEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWorkflowTagsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -245075,30 +269694,30 @@ func (r tenantToEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r tenantToEventsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToWorkflowTagsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkflowsFindUnique struct { +type tenantToActionsFindUnique struct { query builder.Query } -func (r tenantToWorkflowsFindUnique) getQuery() builder.Query { +func (r tenantToActionsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowsFindUnique) ExtractQuery() builder.Query { +func (r tenantToActionsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowsFindUnique) with() {} -func (r tenantToWorkflowsFindUnique) tenantModel() {} -func (r tenantToWorkflowsFindUnique) tenantRelation() {} +func (r tenantToActionsFindUnique) with() {} +func (r tenantToActionsFindUnique) tenantModel() {} +func (r tenantToActionsFindUnique) tenantRelation() {} -func (r tenantToWorkflowsFindUnique) With(params ...WorkflowRelationWith) tenantToWorkflowsFindUnique { +func (r tenantToActionsFindUnique) With(params ...ActionRelationWith) tenantToActionsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -245111,7 +269730,7 @@ func (r tenantToWorkflowsFindUnique) With(params ...WorkflowRelationWith) tenant return r } -func (r tenantToWorkflowsFindUnique) Select(params ...tenantPrismaFields) tenantToWorkflowsFindUnique { +func (r tenantToActionsFindUnique) Select(params ...tenantPrismaFields) tenantToActionsFindUnique { var outputs []builder.Output for _, param := range params { @@ -245125,7 +269744,7 @@ func (r tenantToWorkflowsFindUnique) Select(params ...tenantPrismaFields) tenant return r } -func (r tenantToWorkflowsFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkflowsFindUnique { +func (r tenantToActionsFindUnique) Omit(params ...tenantPrismaFields) tenantToActionsFindUnique { var outputs []builder.Output var raw []string @@ -245144,7 +269763,7 @@ func (r tenantToWorkflowsFindUnique) Omit(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToWorkflowsFindUnique) Exec(ctx context.Context) ( +func (r tenantToActionsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -245160,7 +269779,7 @@ func (r tenantToWorkflowsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToActionsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -245176,12 +269795,12 @@ func (r tenantToWorkflowsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowsFindUnique) Update(params ...TenantSetParam) tenantToWorkflowsUpdateUnique { +func (r tenantToActionsFindUnique) Update(params ...TenantSetParam) tenantToActionsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToWorkflowsUpdateUnique + var v tenantToActionsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -245210,17 +269829,17 @@ func (r tenantToWorkflowsFindUnique) Update(params ...TenantSetParam) tenantToWo return v } -type tenantToWorkflowsUpdateUnique struct { +type tenantToActionsUpdateUnique struct { query builder.Query } -func (r tenantToWorkflowsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToActionsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowsUpdateUnique) tenantModel() {} +func (r tenantToActionsUpdateUnique) tenantModel() {} -func (r tenantToWorkflowsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToActionsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -245228,15 +269847,15 @@ func (r tenantToWorkflowsUpdateUnique) Exec(ctx context.Context) (*TenantModel, return &v, nil } -func (r tenantToWorkflowsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToActionsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkflowsFindUnique) Delete() tenantToWorkflowsDeleteUnique { - var v tenantToWorkflowsDeleteUnique +func (r tenantToActionsFindUnique) Delete() tenantToActionsDeleteUnique { + var v tenantToActionsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -245245,17 +269864,17 @@ func (r tenantToWorkflowsFindUnique) Delete() tenantToWorkflowsDeleteUnique { return v } -type tenantToWorkflowsDeleteUnique struct { +type tenantToActionsDeleteUnique struct { query builder.Query } -func (r tenantToWorkflowsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToActionsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkflowsDeleteUnique) tenantModel() {} +func (p tenantToActionsDeleteUnique) tenantModel() {} -func (r tenantToWorkflowsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToActionsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -245263,30 +269882,30 @@ func (r tenantToWorkflowsDeleteUnique) Exec(ctx context.Context) (*TenantModel, return &v, nil } -func (r tenantToWorkflowsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToActionsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkflowsFindFirst struct { +type tenantToActionsFindFirst struct { query builder.Query } -func (r tenantToWorkflowsFindFirst) getQuery() builder.Query { +func (r tenantToActionsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowsFindFirst) ExtractQuery() builder.Query { +func (r tenantToActionsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowsFindFirst) with() {} -func (r tenantToWorkflowsFindFirst) tenantModel() {} -func (r tenantToWorkflowsFindFirst) tenantRelation() {} +func (r tenantToActionsFindFirst) with() {} +func (r tenantToActionsFindFirst) tenantModel() {} +func (r tenantToActionsFindFirst) tenantRelation() {} -func (r tenantToWorkflowsFindFirst) With(params ...WorkflowRelationWith) tenantToWorkflowsFindFirst { +func (r tenantToActionsFindFirst) With(params ...ActionRelationWith) tenantToActionsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -245299,7 +269918,7 @@ func (r tenantToWorkflowsFindFirst) With(params ...WorkflowRelationWith) tenantT return r } -func (r tenantToWorkflowsFindFirst) Select(params ...tenantPrismaFields) tenantToWorkflowsFindFirst { +func (r tenantToActionsFindFirst) Select(params ...tenantPrismaFields) tenantToActionsFindFirst { var outputs []builder.Output for _, param := range params { @@ -245313,7 +269932,7 @@ func (r tenantToWorkflowsFindFirst) Select(params ...tenantPrismaFields) tenantT return r } -func (r tenantToWorkflowsFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkflowsFindFirst { +func (r tenantToActionsFindFirst) Omit(params ...tenantPrismaFields) tenantToActionsFindFirst { var outputs []builder.Output var raw []string @@ -245332,7 +269951,7 @@ func (r tenantToWorkflowsFindFirst) Omit(params ...tenantPrismaFields) tenantToW return r } -func (r tenantToWorkflowsFindFirst) OrderBy(params ...WorkflowOrderByParam) tenantToWorkflowsFindFirst { +func (r tenantToActionsFindFirst) OrderBy(params ...ActionOrderByParam) tenantToActionsFindFirst { var fields []builder.Field for _, param := range params { @@ -245352,7 +269971,7 @@ func (r tenantToWorkflowsFindFirst) OrderBy(params ...WorkflowOrderByParam) tena return r } -func (r tenantToWorkflowsFindFirst) Skip(count int) tenantToWorkflowsFindFirst { +func (r tenantToActionsFindFirst) Skip(count int) tenantToActionsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -245360,7 +269979,7 @@ func (r tenantToWorkflowsFindFirst) Skip(count int) tenantToWorkflowsFindFirst { return r } -func (r tenantToWorkflowsFindFirst) Take(count int) tenantToWorkflowsFindFirst { +func (r tenantToActionsFindFirst) Take(count int) tenantToActionsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -245368,7 +269987,7 @@ func (r tenantToWorkflowsFindFirst) Take(count int) tenantToWorkflowsFindFirst { return r } -func (r tenantToWorkflowsFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkflowsFindFirst { +func (r tenantToActionsFindFirst) Cursor(cursor TenantCursorParam) tenantToActionsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -245376,7 +269995,7 @@ func (r tenantToWorkflowsFindFirst) Cursor(cursor TenantCursorParam) tenantToWor return r } -func (r tenantToWorkflowsFindFirst) Exec(ctx context.Context) ( +func (r tenantToActionsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -245392,7 +270011,7 @@ func (r tenantToWorkflowsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToActionsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -245408,23 +270027,23 @@ func (r tenantToWorkflowsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToWorkflowsFindMany struct { +type tenantToActionsFindMany struct { query builder.Query } -func (r tenantToWorkflowsFindMany) getQuery() builder.Query { +func (r tenantToActionsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowsFindMany) ExtractQuery() builder.Query { +func (r tenantToActionsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowsFindMany) with() {} -func (r tenantToWorkflowsFindMany) tenantModel() {} -func (r tenantToWorkflowsFindMany) tenantRelation() {} +func (r tenantToActionsFindMany) with() {} +func (r tenantToActionsFindMany) tenantModel() {} +func (r tenantToActionsFindMany) tenantRelation() {} -func (r tenantToWorkflowsFindMany) With(params ...WorkflowRelationWith) tenantToWorkflowsFindMany { +func (r tenantToActionsFindMany) With(params ...ActionRelationWith) tenantToActionsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -245437,7 +270056,7 @@ func (r tenantToWorkflowsFindMany) With(params ...WorkflowRelationWith) tenantTo return r } -func (r tenantToWorkflowsFindMany) Select(params ...tenantPrismaFields) tenantToWorkflowsFindMany { +func (r tenantToActionsFindMany) Select(params ...tenantPrismaFields) tenantToActionsFindMany { var outputs []builder.Output for _, param := range params { @@ -245451,7 +270070,7 @@ func (r tenantToWorkflowsFindMany) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToWorkflowsFindMany) Omit(params ...tenantPrismaFields) tenantToWorkflowsFindMany { +func (r tenantToActionsFindMany) Omit(params ...tenantPrismaFields) tenantToActionsFindMany { var outputs []builder.Output var raw []string @@ -245470,7 +270089,7 @@ func (r tenantToWorkflowsFindMany) Omit(params ...tenantPrismaFields) tenantToWo return r } -func (r tenantToWorkflowsFindMany) OrderBy(params ...WorkflowOrderByParam) tenantToWorkflowsFindMany { +func (r tenantToActionsFindMany) OrderBy(params ...ActionOrderByParam) tenantToActionsFindMany { var fields []builder.Field for _, param := range params { @@ -245490,7 +270109,7 @@ func (r tenantToWorkflowsFindMany) OrderBy(params ...WorkflowOrderByParam) tenan return r } -func (r tenantToWorkflowsFindMany) Skip(count int) tenantToWorkflowsFindMany { +func (r tenantToActionsFindMany) Skip(count int) tenantToActionsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -245498,7 +270117,7 @@ func (r tenantToWorkflowsFindMany) Skip(count int) tenantToWorkflowsFindMany { return r } -func (r tenantToWorkflowsFindMany) Take(count int) tenantToWorkflowsFindMany { +func (r tenantToActionsFindMany) Take(count int) tenantToActionsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -245506,7 +270125,7 @@ func (r tenantToWorkflowsFindMany) Take(count int) tenantToWorkflowsFindMany { return r } -func (r tenantToWorkflowsFindMany) Cursor(cursor TenantCursorParam) tenantToWorkflowsFindMany { +func (r tenantToActionsFindMany) Cursor(cursor TenantCursorParam) tenantToActionsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -245514,7 +270133,7 @@ func (r tenantToWorkflowsFindMany) Cursor(cursor TenantCursorParam) tenantToWork return r } -func (r tenantToWorkflowsFindMany) Exec(ctx context.Context) ( +func (r tenantToActionsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -245526,7 +270145,7 @@ func (r tenantToWorkflowsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToActionsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -245538,14 +270157,14 @@ func (r tenantToWorkflowsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowsFindMany) Update(params ...TenantSetParam) tenantToWorkflowsUpdateMany { +func (r tenantToActionsFindMany) Update(params ...TenantSetParam) tenantToActionsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToWorkflowsUpdateMany + var v tenantToActionsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -245574,17 +270193,17 @@ func (r tenantToWorkflowsFindMany) Update(params ...TenantSetParam) tenantToWork return v } -type tenantToWorkflowsUpdateMany struct { +type tenantToActionsUpdateMany struct { query builder.Query } -func (r tenantToWorkflowsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToActionsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowsUpdateMany) tenantModel() {} +func (r tenantToActionsUpdateMany) tenantModel() {} -func (r tenantToWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToActionsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -245592,15 +270211,15 @@ func (r tenantToWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r tenantToWorkflowsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToActionsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkflowsFindMany) Delete() tenantToWorkflowsDeleteMany { - var v tenantToWorkflowsDeleteMany +func (r tenantToActionsFindMany) Delete() tenantToActionsDeleteMany { + var v tenantToActionsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -245611,17 +270230,17 @@ func (r tenantToWorkflowsFindMany) Delete() tenantToWorkflowsDeleteMany { return v } -type tenantToWorkflowsDeleteMany struct { +type tenantToActionsDeleteMany struct { query builder.Query } -func (r tenantToWorkflowsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToActionsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkflowsDeleteMany) tenantModel() {} +func (p tenantToActionsDeleteMany) tenantModel() {} -func (r tenantToWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToActionsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -245629,30 +270248,30 @@ func (r tenantToWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r tenantToWorkflowsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToActionsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToJobsFindUnique struct { +type tenantToServicesFindUnique struct { query builder.Query } -func (r tenantToJobsFindUnique) getQuery() builder.Query { +func (r tenantToServicesFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToJobsFindUnique) ExtractQuery() builder.Query { +func (r tenantToServicesFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobsFindUnique) with() {} -func (r tenantToJobsFindUnique) tenantModel() {} -func (r tenantToJobsFindUnique) tenantRelation() {} +func (r tenantToServicesFindUnique) with() {} +func (r tenantToServicesFindUnique) tenantModel() {} +func (r tenantToServicesFindUnique) tenantRelation() {} -func (r tenantToJobsFindUnique) With(params ...JobRelationWith) tenantToJobsFindUnique { +func (r tenantToServicesFindUnique) With(params ...ServiceRelationWith) tenantToServicesFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -245665,7 +270284,7 @@ func (r tenantToJobsFindUnique) With(params ...JobRelationWith) tenantToJobsFind return r } -func (r tenantToJobsFindUnique) Select(params ...tenantPrismaFields) tenantToJobsFindUnique { +func (r tenantToServicesFindUnique) Select(params ...tenantPrismaFields) tenantToServicesFindUnique { var outputs []builder.Output for _, param := range params { @@ -245679,7 +270298,7 @@ func (r tenantToJobsFindUnique) Select(params ...tenantPrismaFields) tenantToJob return r } -func (r tenantToJobsFindUnique) Omit(params ...tenantPrismaFields) tenantToJobsFindUnique { +func (r tenantToServicesFindUnique) Omit(params ...tenantPrismaFields) tenantToServicesFindUnique { var outputs []builder.Output var raw []string @@ -245698,7 +270317,7 @@ func (r tenantToJobsFindUnique) Omit(params ...tenantPrismaFields) tenantToJobsF return r } -func (r tenantToJobsFindUnique) Exec(ctx context.Context) ( +func (r tenantToServicesFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -245714,7 +270333,7 @@ func (r tenantToJobsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToServicesFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -245730,12 +270349,12 @@ func (r tenantToJobsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToJobsFindUnique) Update(params ...TenantSetParam) tenantToJobsUpdateUnique { +func (r tenantToServicesFindUnique) Update(params ...TenantSetParam) tenantToServicesUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToJobsUpdateUnique + var v tenantToServicesUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -245764,17 +270383,17 @@ func (r tenantToJobsFindUnique) Update(params ...TenantSetParam) tenantToJobsUpd return v } -type tenantToJobsUpdateUnique struct { +type tenantToServicesUpdateUnique struct { query builder.Query } -func (r tenantToJobsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToServicesUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobsUpdateUnique) tenantModel() {} +func (r tenantToServicesUpdateUnique) tenantModel() {} -func (r tenantToJobsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToServicesUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -245782,15 +270401,15 @@ func (r tenantToJobsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error return &v, nil } -func (r tenantToJobsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToServicesUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToJobsFindUnique) Delete() tenantToJobsDeleteUnique { - var v tenantToJobsDeleteUnique +func (r tenantToServicesFindUnique) Delete() tenantToServicesDeleteUnique { + var v tenantToServicesDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -245799,17 +270418,17 @@ func (r tenantToJobsFindUnique) Delete() tenantToJobsDeleteUnique { return v } -type tenantToJobsDeleteUnique struct { +type tenantToServicesDeleteUnique struct { query builder.Query } -func (r tenantToJobsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToServicesDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToJobsDeleteUnique) tenantModel() {} +func (p tenantToServicesDeleteUnique) tenantModel() {} -func (r tenantToJobsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToServicesDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -245817,30 +270436,30 @@ func (r tenantToJobsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error return &v, nil } -func (r tenantToJobsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToServicesDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToJobsFindFirst struct { +type tenantToServicesFindFirst struct { query builder.Query } -func (r tenantToJobsFindFirst) getQuery() builder.Query { +func (r tenantToServicesFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToJobsFindFirst) ExtractQuery() builder.Query { +func (r tenantToServicesFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobsFindFirst) with() {} -func (r tenantToJobsFindFirst) tenantModel() {} -func (r tenantToJobsFindFirst) tenantRelation() {} +func (r tenantToServicesFindFirst) with() {} +func (r tenantToServicesFindFirst) tenantModel() {} +func (r tenantToServicesFindFirst) tenantRelation() {} -func (r tenantToJobsFindFirst) With(params ...JobRelationWith) tenantToJobsFindFirst { +func (r tenantToServicesFindFirst) With(params ...ServiceRelationWith) tenantToServicesFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -245853,7 +270472,7 @@ func (r tenantToJobsFindFirst) With(params ...JobRelationWith) tenantToJobsFindF return r } -func (r tenantToJobsFindFirst) Select(params ...tenantPrismaFields) tenantToJobsFindFirst { +func (r tenantToServicesFindFirst) Select(params ...tenantPrismaFields) tenantToServicesFindFirst { var outputs []builder.Output for _, param := range params { @@ -245867,7 +270486,7 @@ func (r tenantToJobsFindFirst) Select(params ...tenantPrismaFields) tenantToJobs return r } -func (r tenantToJobsFindFirst) Omit(params ...tenantPrismaFields) tenantToJobsFindFirst { +func (r tenantToServicesFindFirst) Omit(params ...tenantPrismaFields) tenantToServicesFindFirst { var outputs []builder.Output var raw []string @@ -245886,7 +270505,7 @@ func (r tenantToJobsFindFirst) Omit(params ...tenantPrismaFields) tenantToJobsFi return r } -func (r tenantToJobsFindFirst) OrderBy(params ...JobOrderByParam) tenantToJobsFindFirst { +func (r tenantToServicesFindFirst) OrderBy(params ...ServiceOrderByParam) tenantToServicesFindFirst { var fields []builder.Field for _, param := range params { @@ -245906,7 +270525,7 @@ func (r tenantToJobsFindFirst) OrderBy(params ...JobOrderByParam) tenantToJobsFi return r } -func (r tenantToJobsFindFirst) Skip(count int) tenantToJobsFindFirst { +func (r tenantToServicesFindFirst) Skip(count int) tenantToServicesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -245914,7 +270533,7 @@ func (r tenantToJobsFindFirst) Skip(count int) tenantToJobsFindFirst { return r } -func (r tenantToJobsFindFirst) Take(count int) tenantToJobsFindFirst { +func (r tenantToServicesFindFirst) Take(count int) tenantToServicesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -245922,7 +270541,7 @@ func (r tenantToJobsFindFirst) Take(count int) tenantToJobsFindFirst { return r } -func (r tenantToJobsFindFirst) Cursor(cursor TenantCursorParam) tenantToJobsFindFirst { +func (r tenantToServicesFindFirst) Cursor(cursor TenantCursorParam) tenantToServicesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -245930,7 +270549,7 @@ func (r tenantToJobsFindFirst) Cursor(cursor TenantCursorParam) tenantToJobsFind return r } -func (r tenantToJobsFindFirst) Exec(ctx context.Context) ( +func (r tenantToServicesFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -245946,7 +270565,7 @@ func (r tenantToJobsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToServicesFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -245962,23 +270581,23 @@ func (r tenantToJobsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToJobsFindMany struct { +type tenantToServicesFindMany struct { query builder.Query } -func (r tenantToJobsFindMany) getQuery() builder.Query { +func (r tenantToServicesFindMany) getQuery() builder.Query { return r.query } -func (r tenantToJobsFindMany) ExtractQuery() builder.Query { +func (r tenantToServicesFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobsFindMany) with() {} -func (r tenantToJobsFindMany) tenantModel() {} -func (r tenantToJobsFindMany) tenantRelation() {} +func (r tenantToServicesFindMany) with() {} +func (r tenantToServicesFindMany) tenantModel() {} +func (r tenantToServicesFindMany) tenantRelation() {} -func (r tenantToJobsFindMany) With(params ...JobRelationWith) tenantToJobsFindMany { +func (r tenantToServicesFindMany) With(params ...ServiceRelationWith) tenantToServicesFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -245991,7 +270610,7 @@ func (r tenantToJobsFindMany) With(params ...JobRelationWith) tenantToJobsFindMa return r } -func (r tenantToJobsFindMany) Select(params ...tenantPrismaFields) tenantToJobsFindMany { +func (r tenantToServicesFindMany) Select(params ...tenantPrismaFields) tenantToServicesFindMany { var outputs []builder.Output for _, param := range params { @@ -246005,7 +270624,7 @@ func (r tenantToJobsFindMany) Select(params ...tenantPrismaFields) tenantToJobsF return r } -func (r tenantToJobsFindMany) Omit(params ...tenantPrismaFields) tenantToJobsFindMany { +func (r tenantToServicesFindMany) Omit(params ...tenantPrismaFields) tenantToServicesFindMany { var outputs []builder.Output var raw []string @@ -246024,7 +270643,7 @@ func (r tenantToJobsFindMany) Omit(params ...tenantPrismaFields) tenantToJobsFin return r } -func (r tenantToJobsFindMany) OrderBy(params ...JobOrderByParam) tenantToJobsFindMany { +func (r tenantToServicesFindMany) OrderBy(params ...ServiceOrderByParam) tenantToServicesFindMany { var fields []builder.Field for _, param := range params { @@ -246044,7 +270663,7 @@ func (r tenantToJobsFindMany) OrderBy(params ...JobOrderByParam) tenantToJobsFin return r } -func (r tenantToJobsFindMany) Skip(count int) tenantToJobsFindMany { +func (r tenantToServicesFindMany) Skip(count int) tenantToServicesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -246052,7 +270671,7 @@ func (r tenantToJobsFindMany) Skip(count int) tenantToJobsFindMany { return r } -func (r tenantToJobsFindMany) Take(count int) tenantToJobsFindMany { +func (r tenantToServicesFindMany) Take(count int) tenantToServicesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -246060,7 +270679,7 @@ func (r tenantToJobsFindMany) Take(count int) tenantToJobsFindMany { return r } -func (r tenantToJobsFindMany) Cursor(cursor TenantCursorParam) tenantToJobsFindMany { +func (r tenantToServicesFindMany) Cursor(cursor TenantCursorParam) tenantToServicesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -246068,7 +270687,7 @@ func (r tenantToJobsFindMany) Cursor(cursor TenantCursorParam) tenantToJobsFindM return r } -func (r tenantToJobsFindMany) Exec(ctx context.Context) ( +func (r tenantToServicesFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -246080,7 +270699,7 @@ func (r tenantToJobsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToServicesFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -246092,14 +270711,14 @@ func (r tenantToJobsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToJobsFindMany) Update(params ...TenantSetParam) tenantToJobsUpdateMany { +func (r tenantToServicesFindMany) Update(params ...TenantSetParam) tenantToServicesUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToJobsUpdateMany + var v tenantToServicesUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -246128,17 +270747,17 @@ func (r tenantToJobsFindMany) Update(params ...TenantSetParam) tenantToJobsUpdat return v } -type tenantToJobsUpdateMany struct { +type tenantToServicesUpdateMany struct { query builder.Query } -func (r tenantToJobsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToServicesUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobsUpdateMany) tenantModel() {} +func (r tenantToServicesUpdateMany) tenantModel() {} -func (r tenantToJobsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToServicesUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -246146,15 +270765,15 @@ func (r tenantToJobsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tenantToJobsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToServicesUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToJobsFindMany) Delete() tenantToJobsDeleteMany { - var v tenantToJobsDeleteMany +func (r tenantToServicesFindMany) Delete() tenantToServicesDeleteMany { + var v tenantToServicesDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -246165,17 +270784,17 @@ func (r tenantToJobsFindMany) Delete() tenantToJobsDeleteMany { return v } -type tenantToJobsDeleteMany struct { +type tenantToServicesDeleteMany struct { query builder.Query } -func (r tenantToJobsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToServicesDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToJobsDeleteMany) tenantModel() {} +func (p tenantToServicesDeleteMany) tenantModel() {} -func (r tenantToJobsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToServicesDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -246183,30 +270802,30 @@ func (r tenantToJobsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tenantToJobsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToServicesDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToStepsFindUnique struct { +type tenantToInvitesFindUnique struct { query builder.Query } -func (r tenantToStepsFindUnique) getQuery() builder.Query { +func (r tenantToInvitesFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToStepsFindUnique) ExtractQuery() builder.Query { +func (r tenantToInvitesFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepsFindUnique) with() {} -func (r tenantToStepsFindUnique) tenantModel() {} -func (r tenantToStepsFindUnique) tenantRelation() {} +func (r tenantToInvitesFindUnique) with() {} +func (r tenantToInvitesFindUnique) tenantModel() {} +func (r tenantToInvitesFindUnique) tenantRelation() {} -func (r tenantToStepsFindUnique) With(params ...StepRelationWith) tenantToStepsFindUnique { +func (r tenantToInvitesFindUnique) With(params ...TenantInviteLinkRelationWith) tenantToInvitesFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -246219,7 +270838,7 @@ func (r tenantToStepsFindUnique) With(params ...StepRelationWith) tenantToStepsF return r } -func (r tenantToStepsFindUnique) Select(params ...tenantPrismaFields) tenantToStepsFindUnique { +func (r tenantToInvitesFindUnique) Select(params ...tenantPrismaFields) tenantToInvitesFindUnique { var outputs []builder.Output for _, param := range params { @@ -246233,7 +270852,7 @@ func (r tenantToStepsFindUnique) Select(params ...tenantPrismaFields) tenantToSt return r } -func (r tenantToStepsFindUnique) Omit(params ...tenantPrismaFields) tenantToStepsFindUnique { +func (r tenantToInvitesFindUnique) Omit(params ...tenantPrismaFields) tenantToInvitesFindUnique { var outputs []builder.Output var raw []string @@ -246252,7 +270871,7 @@ func (r tenantToStepsFindUnique) Omit(params ...tenantPrismaFields) tenantToStep return r } -func (r tenantToStepsFindUnique) Exec(ctx context.Context) ( +func (r tenantToInvitesFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -246268,7 +270887,7 @@ func (r tenantToStepsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToInvitesFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -246284,12 +270903,12 @@ func (r tenantToStepsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToStepsFindUnique) Update(params ...TenantSetParam) tenantToStepsUpdateUnique { +func (r tenantToInvitesFindUnique) Update(params ...TenantSetParam) tenantToInvitesUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToStepsUpdateUnique + var v tenantToInvitesUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -246318,17 +270937,17 @@ func (r tenantToStepsFindUnique) Update(params ...TenantSetParam) tenantToStepsU return v } -type tenantToStepsUpdateUnique struct { +type tenantToInvitesUpdateUnique struct { query builder.Query } -func (r tenantToStepsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToInvitesUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepsUpdateUnique) tenantModel() {} +func (r tenantToInvitesUpdateUnique) tenantModel() {} -func (r tenantToStepsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToInvitesUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -246336,15 +270955,15 @@ func (r tenantToStepsUpdateUnique) Exec(ctx context.Context) (*TenantModel, erro return &v, nil } -func (r tenantToStepsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToInvitesUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToStepsFindUnique) Delete() tenantToStepsDeleteUnique { - var v tenantToStepsDeleteUnique +func (r tenantToInvitesFindUnique) Delete() tenantToInvitesDeleteUnique { + var v tenantToInvitesDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -246353,17 +270972,17 @@ func (r tenantToStepsFindUnique) Delete() tenantToStepsDeleteUnique { return v } -type tenantToStepsDeleteUnique struct { +type tenantToInvitesDeleteUnique struct { query builder.Query } -func (r tenantToStepsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToInvitesDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToStepsDeleteUnique) tenantModel() {} +func (p tenantToInvitesDeleteUnique) tenantModel() {} -func (r tenantToStepsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToInvitesDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -246371,30 +270990,30 @@ func (r tenantToStepsDeleteUnique) Exec(ctx context.Context) (*TenantModel, erro return &v, nil } -func (r tenantToStepsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToInvitesDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToStepsFindFirst struct { +type tenantToInvitesFindFirst struct { query builder.Query } -func (r tenantToStepsFindFirst) getQuery() builder.Query { +func (r tenantToInvitesFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToStepsFindFirst) ExtractQuery() builder.Query { +func (r tenantToInvitesFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepsFindFirst) with() {} -func (r tenantToStepsFindFirst) tenantModel() {} -func (r tenantToStepsFindFirst) tenantRelation() {} +func (r tenantToInvitesFindFirst) with() {} +func (r tenantToInvitesFindFirst) tenantModel() {} +func (r tenantToInvitesFindFirst) tenantRelation() {} -func (r tenantToStepsFindFirst) With(params ...StepRelationWith) tenantToStepsFindFirst { +func (r tenantToInvitesFindFirst) With(params ...TenantInviteLinkRelationWith) tenantToInvitesFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -246407,7 +271026,7 @@ func (r tenantToStepsFindFirst) With(params ...StepRelationWith) tenantToStepsFi return r } -func (r tenantToStepsFindFirst) Select(params ...tenantPrismaFields) tenantToStepsFindFirst { +func (r tenantToInvitesFindFirst) Select(params ...tenantPrismaFields) tenantToInvitesFindFirst { var outputs []builder.Output for _, param := range params { @@ -246421,7 +271040,7 @@ func (r tenantToStepsFindFirst) Select(params ...tenantPrismaFields) tenantToSte return r } -func (r tenantToStepsFindFirst) Omit(params ...tenantPrismaFields) tenantToStepsFindFirst { +func (r tenantToInvitesFindFirst) Omit(params ...tenantPrismaFields) tenantToInvitesFindFirst { var outputs []builder.Output var raw []string @@ -246440,7 +271059,7 @@ func (r tenantToStepsFindFirst) Omit(params ...tenantPrismaFields) tenantToSteps return r } -func (r tenantToStepsFindFirst) OrderBy(params ...StepOrderByParam) tenantToStepsFindFirst { +func (r tenantToInvitesFindFirst) OrderBy(params ...TenantInviteLinkOrderByParam) tenantToInvitesFindFirst { var fields []builder.Field for _, param := range params { @@ -246460,7 +271079,7 @@ func (r tenantToStepsFindFirst) OrderBy(params ...StepOrderByParam) tenantToStep return r } -func (r tenantToStepsFindFirst) Skip(count int) tenantToStepsFindFirst { +func (r tenantToInvitesFindFirst) Skip(count int) tenantToInvitesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -246468,7 +271087,7 @@ func (r tenantToStepsFindFirst) Skip(count int) tenantToStepsFindFirst { return r } -func (r tenantToStepsFindFirst) Take(count int) tenantToStepsFindFirst { +func (r tenantToInvitesFindFirst) Take(count int) tenantToInvitesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -246476,7 +271095,7 @@ func (r tenantToStepsFindFirst) Take(count int) tenantToStepsFindFirst { return r } -func (r tenantToStepsFindFirst) Cursor(cursor TenantCursorParam) tenantToStepsFindFirst { +func (r tenantToInvitesFindFirst) Cursor(cursor TenantCursorParam) tenantToInvitesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -246484,7 +271103,7 @@ func (r tenantToStepsFindFirst) Cursor(cursor TenantCursorParam) tenantToStepsFi return r } -func (r tenantToStepsFindFirst) Exec(ctx context.Context) ( +func (r tenantToInvitesFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -246500,7 +271119,7 @@ func (r tenantToStepsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToInvitesFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -246516,23 +271135,23 @@ func (r tenantToStepsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToStepsFindMany struct { +type tenantToInvitesFindMany struct { query builder.Query } -func (r tenantToStepsFindMany) getQuery() builder.Query { +func (r tenantToInvitesFindMany) getQuery() builder.Query { return r.query } -func (r tenantToStepsFindMany) ExtractQuery() builder.Query { +func (r tenantToInvitesFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepsFindMany) with() {} -func (r tenantToStepsFindMany) tenantModel() {} -func (r tenantToStepsFindMany) tenantRelation() {} +func (r tenantToInvitesFindMany) with() {} +func (r tenantToInvitesFindMany) tenantModel() {} +func (r tenantToInvitesFindMany) tenantRelation() {} -func (r tenantToStepsFindMany) With(params ...StepRelationWith) tenantToStepsFindMany { +func (r tenantToInvitesFindMany) With(params ...TenantInviteLinkRelationWith) tenantToInvitesFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -246545,7 +271164,7 @@ func (r tenantToStepsFindMany) With(params ...StepRelationWith) tenantToStepsFin return r } -func (r tenantToStepsFindMany) Select(params ...tenantPrismaFields) tenantToStepsFindMany { +func (r tenantToInvitesFindMany) Select(params ...tenantPrismaFields) tenantToInvitesFindMany { var outputs []builder.Output for _, param := range params { @@ -246559,7 +271178,7 @@ func (r tenantToStepsFindMany) Select(params ...tenantPrismaFields) tenantToStep return r } -func (r tenantToStepsFindMany) Omit(params ...tenantPrismaFields) tenantToStepsFindMany { +func (r tenantToInvitesFindMany) Omit(params ...tenantPrismaFields) tenantToInvitesFindMany { var outputs []builder.Output var raw []string @@ -246578,7 +271197,7 @@ func (r tenantToStepsFindMany) Omit(params ...tenantPrismaFields) tenantToStepsF return r } -func (r tenantToStepsFindMany) OrderBy(params ...StepOrderByParam) tenantToStepsFindMany { +func (r tenantToInvitesFindMany) OrderBy(params ...TenantInviteLinkOrderByParam) tenantToInvitesFindMany { var fields []builder.Field for _, param := range params { @@ -246598,7 +271217,7 @@ func (r tenantToStepsFindMany) OrderBy(params ...StepOrderByParam) tenantToSteps return r } -func (r tenantToStepsFindMany) Skip(count int) tenantToStepsFindMany { +func (r tenantToInvitesFindMany) Skip(count int) tenantToInvitesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -246606,7 +271225,7 @@ func (r tenantToStepsFindMany) Skip(count int) tenantToStepsFindMany { return r } -func (r tenantToStepsFindMany) Take(count int) tenantToStepsFindMany { +func (r tenantToInvitesFindMany) Take(count int) tenantToInvitesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -246614,7 +271233,7 @@ func (r tenantToStepsFindMany) Take(count int) tenantToStepsFindMany { return r } -func (r tenantToStepsFindMany) Cursor(cursor TenantCursorParam) tenantToStepsFindMany { +func (r tenantToInvitesFindMany) Cursor(cursor TenantCursorParam) tenantToInvitesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -246622,7 +271241,7 @@ func (r tenantToStepsFindMany) Cursor(cursor TenantCursorParam) tenantToStepsFin return r } -func (r tenantToStepsFindMany) Exec(ctx context.Context) ( +func (r tenantToInvitesFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -246634,7 +271253,7 @@ func (r tenantToStepsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToInvitesFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -246646,14 +271265,14 @@ func (r tenantToStepsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToStepsFindMany) Update(params ...TenantSetParam) tenantToStepsUpdateMany { +func (r tenantToInvitesFindMany) Update(params ...TenantSetParam) tenantToInvitesUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToStepsUpdateMany + var v tenantToInvitesUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -246682,17 +271301,17 @@ func (r tenantToStepsFindMany) Update(params ...TenantSetParam) tenantToStepsUpd return v } -type tenantToStepsUpdateMany struct { +type tenantToInvitesUpdateMany struct { query builder.Query } -func (r tenantToStepsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToInvitesUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepsUpdateMany) tenantModel() {} +func (r tenantToInvitesUpdateMany) tenantModel() {} -func (r tenantToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToInvitesUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -246700,15 +271319,15 @@ func (r tenantToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tenantToStepsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToInvitesUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToStepsFindMany) Delete() tenantToStepsDeleteMany { - var v tenantToStepsDeleteMany +func (r tenantToInvitesFindMany) Delete() tenantToInvitesDeleteMany { + var v tenantToInvitesDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -246719,17 +271338,17 @@ func (r tenantToStepsFindMany) Delete() tenantToStepsDeleteMany { return v } -type tenantToStepsDeleteMany struct { +type tenantToInvitesDeleteMany struct { query builder.Query } -func (r tenantToStepsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToInvitesDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToStepsDeleteMany) tenantModel() {} +func (p tenantToInvitesDeleteMany) tenantModel() {} -func (r tenantToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToInvitesDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -246737,30 +271356,30 @@ func (r tenantToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tenantToStepsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToInvitesDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToTriggersFindUnique struct { +type tenantToAPITokensFindUnique struct { query builder.Query } -func (r tenantToTriggersFindUnique) getQuery() builder.Query { +func (r tenantToAPITokensFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToTriggersFindUnique) ExtractQuery() builder.Query { +func (r tenantToAPITokensFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToTriggersFindUnique) with() {} -func (r tenantToTriggersFindUnique) tenantModel() {} -func (r tenantToTriggersFindUnique) tenantRelation() {} +func (r tenantToAPITokensFindUnique) with() {} +func (r tenantToAPITokensFindUnique) tenantModel() {} +func (r tenantToAPITokensFindUnique) tenantRelation() {} -func (r tenantToTriggersFindUnique) With(params ...WorkflowTriggersRelationWith) tenantToTriggersFindUnique { +func (r tenantToAPITokensFindUnique) With(params ...APITokenRelationWith) tenantToAPITokensFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -246773,7 +271392,7 @@ func (r tenantToTriggersFindUnique) With(params ...WorkflowTriggersRelationWith) return r } -func (r tenantToTriggersFindUnique) Select(params ...tenantPrismaFields) tenantToTriggersFindUnique { +func (r tenantToAPITokensFindUnique) Select(params ...tenantPrismaFields) tenantToAPITokensFindUnique { var outputs []builder.Output for _, param := range params { @@ -246787,7 +271406,7 @@ func (r tenantToTriggersFindUnique) Select(params ...tenantPrismaFields) tenantT return r } -func (r tenantToTriggersFindUnique) Omit(params ...tenantPrismaFields) tenantToTriggersFindUnique { +func (r tenantToAPITokensFindUnique) Omit(params ...tenantPrismaFields) tenantToAPITokensFindUnique { var outputs []builder.Output var raw []string @@ -246806,7 +271425,7 @@ func (r tenantToTriggersFindUnique) Omit(params ...tenantPrismaFields) tenantToT return r } -func (r tenantToTriggersFindUnique) Exec(ctx context.Context) ( +func (r tenantToAPITokensFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -246822,7 +271441,7 @@ func (r tenantToTriggersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToTriggersFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToAPITokensFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -246838,12 +271457,12 @@ func (r tenantToTriggersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToTriggersFindUnique) Update(params ...TenantSetParam) tenantToTriggersUpdateUnique { +func (r tenantToAPITokensFindUnique) Update(params ...TenantSetParam) tenantToAPITokensUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToTriggersUpdateUnique + var v tenantToAPITokensUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -246872,17 +271491,17 @@ func (r tenantToTriggersFindUnique) Update(params ...TenantSetParam) tenantToTri return v } -type tenantToTriggersUpdateUnique struct { +type tenantToAPITokensUpdateUnique struct { query builder.Query } -func (r tenantToTriggersUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToAPITokensUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToTriggersUpdateUnique) tenantModel() {} +func (r tenantToAPITokensUpdateUnique) tenantModel() {} -func (r tenantToTriggersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToAPITokensUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -246890,15 +271509,15 @@ func (r tenantToTriggersUpdateUnique) Exec(ctx context.Context) (*TenantModel, e return &v, nil } -func (r tenantToTriggersUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToAPITokensUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToTriggersFindUnique) Delete() tenantToTriggersDeleteUnique { - var v tenantToTriggersDeleteUnique +func (r tenantToAPITokensFindUnique) Delete() tenantToAPITokensDeleteUnique { + var v tenantToAPITokensDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -246907,17 +271526,17 @@ func (r tenantToTriggersFindUnique) Delete() tenantToTriggersDeleteUnique { return v } -type tenantToTriggersDeleteUnique struct { +type tenantToAPITokensDeleteUnique struct { query builder.Query } -func (r tenantToTriggersDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToAPITokensDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToTriggersDeleteUnique) tenantModel() {} +func (p tenantToAPITokensDeleteUnique) tenantModel() {} -func (r tenantToTriggersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToAPITokensDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -246925,30 +271544,30 @@ func (r tenantToTriggersDeleteUnique) Exec(ctx context.Context) (*TenantModel, e return &v, nil } -func (r tenantToTriggersDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToAPITokensDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToTriggersFindFirst struct { +type tenantToAPITokensFindFirst struct { query builder.Query } -func (r tenantToTriggersFindFirst) getQuery() builder.Query { +func (r tenantToAPITokensFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToTriggersFindFirst) ExtractQuery() builder.Query { +func (r tenantToAPITokensFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToTriggersFindFirst) with() {} -func (r tenantToTriggersFindFirst) tenantModel() {} -func (r tenantToTriggersFindFirst) tenantRelation() {} +func (r tenantToAPITokensFindFirst) with() {} +func (r tenantToAPITokensFindFirst) tenantModel() {} +func (r tenantToAPITokensFindFirst) tenantRelation() {} -func (r tenantToTriggersFindFirst) With(params ...WorkflowTriggersRelationWith) tenantToTriggersFindFirst { +func (r tenantToAPITokensFindFirst) With(params ...APITokenRelationWith) tenantToAPITokensFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -246961,7 +271580,7 @@ func (r tenantToTriggersFindFirst) With(params ...WorkflowTriggersRelationWith) return r } -func (r tenantToTriggersFindFirst) Select(params ...tenantPrismaFields) tenantToTriggersFindFirst { +func (r tenantToAPITokensFindFirst) Select(params ...tenantPrismaFields) tenantToAPITokensFindFirst { var outputs []builder.Output for _, param := range params { @@ -246975,7 +271594,7 @@ func (r tenantToTriggersFindFirst) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToTriggersFindFirst) Omit(params ...tenantPrismaFields) tenantToTriggersFindFirst { +func (r tenantToAPITokensFindFirst) Omit(params ...tenantPrismaFields) tenantToAPITokensFindFirst { var outputs []builder.Output var raw []string @@ -246994,7 +271613,7 @@ func (r tenantToTriggersFindFirst) Omit(params ...tenantPrismaFields) tenantToTr return r } -func (r tenantToTriggersFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) tenantToTriggersFindFirst { +func (r tenantToAPITokensFindFirst) OrderBy(params ...APITokenOrderByParam) tenantToAPITokensFindFirst { var fields []builder.Field for _, param := range params { @@ -247014,7 +271633,7 @@ func (r tenantToTriggersFindFirst) OrderBy(params ...WorkflowTriggersOrderByPara return r } -func (r tenantToTriggersFindFirst) Skip(count int) tenantToTriggersFindFirst { +func (r tenantToAPITokensFindFirst) Skip(count int) tenantToAPITokensFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -247022,7 +271641,7 @@ func (r tenantToTriggersFindFirst) Skip(count int) tenantToTriggersFindFirst { return r } -func (r tenantToTriggersFindFirst) Take(count int) tenantToTriggersFindFirst { +func (r tenantToAPITokensFindFirst) Take(count int) tenantToAPITokensFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -247030,7 +271649,7 @@ func (r tenantToTriggersFindFirst) Take(count int) tenantToTriggersFindFirst { return r } -func (r tenantToTriggersFindFirst) Cursor(cursor TenantCursorParam) tenantToTriggersFindFirst { +func (r tenantToAPITokensFindFirst) Cursor(cursor TenantCursorParam) tenantToAPITokensFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -247038,7 +271657,7 @@ func (r tenantToTriggersFindFirst) Cursor(cursor TenantCursorParam) tenantToTrig return r } -func (r tenantToTriggersFindFirst) Exec(ctx context.Context) ( +func (r tenantToAPITokensFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -247054,7 +271673,7 @@ func (r tenantToTriggersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToTriggersFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToAPITokensFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -247070,23 +271689,23 @@ func (r tenantToTriggersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToTriggersFindMany struct { +type tenantToAPITokensFindMany struct { query builder.Query } -func (r tenantToTriggersFindMany) getQuery() builder.Query { +func (r tenantToAPITokensFindMany) getQuery() builder.Query { return r.query } -func (r tenantToTriggersFindMany) ExtractQuery() builder.Query { +func (r tenantToAPITokensFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToTriggersFindMany) with() {} -func (r tenantToTriggersFindMany) tenantModel() {} -func (r tenantToTriggersFindMany) tenantRelation() {} +func (r tenantToAPITokensFindMany) with() {} +func (r tenantToAPITokensFindMany) tenantModel() {} +func (r tenantToAPITokensFindMany) tenantRelation() {} -func (r tenantToTriggersFindMany) With(params ...WorkflowTriggersRelationWith) tenantToTriggersFindMany { +func (r tenantToAPITokensFindMany) With(params ...APITokenRelationWith) tenantToAPITokensFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -247099,7 +271718,7 @@ func (r tenantToTriggersFindMany) With(params ...WorkflowTriggersRelationWith) t return r } -func (r tenantToTriggersFindMany) Select(params ...tenantPrismaFields) tenantToTriggersFindMany { +func (r tenantToAPITokensFindMany) Select(params ...tenantPrismaFields) tenantToAPITokensFindMany { var outputs []builder.Output for _, param := range params { @@ -247113,7 +271732,7 @@ func (r tenantToTriggersFindMany) Select(params ...tenantPrismaFields) tenantToT return r } -func (r tenantToTriggersFindMany) Omit(params ...tenantPrismaFields) tenantToTriggersFindMany { +func (r tenantToAPITokensFindMany) Omit(params ...tenantPrismaFields) tenantToAPITokensFindMany { var outputs []builder.Output var raw []string @@ -247132,7 +271751,7 @@ func (r tenantToTriggersFindMany) Omit(params ...tenantPrismaFields) tenantToTri return r } -func (r tenantToTriggersFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) tenantToTriggersFindMany { +func (r tenantToAPITokensFindMany) OrderBy(params ...APITokenOrderByParam) tenantToAPITokensFindMany { var fields []builder.Field for _, param := range params { @@ -247152,7 +271771,7 @@ func (r tenantToTriggersFindMany) OrderBy(params ...WorkflowTriggersOrderByParam return r } -func (r tenantToTriggersFindMany) Skip(count int) tenantToTriggersFindMany { +func (r tenantToAPITokensFindMany) Skip(count int) tenantToAPITokensFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -247160,7 +271779,7 @@ func (r tenantToTriggersFindMany) Skip(count int) tenantToTriggersFindMany { return r } -func (r tenantToTriggersFindMany) Take(count int) tenantToTriggersFindMany { +func (r tenantToAPITokensFindMany) Take(count int) tenantToAPITokensFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -247168,7 +271787,7 @@ func (r tenantToTriggersFindMany) Take(count int) tenantToTriggersFindMany { return r } -func (r tenantToTriggersFindMany) Cursor(cursor TenantCursorParam) tenantToTriggersFindMany { +func (r tenantToAPITokensFindMany) Cursor(cursor TenantCursorParam) tenantToAPITokensFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -247176,7 +271795,7 @@ func (r tenantToTriggersFindMany) Cursor(cursor TenantCursorParam) tenantToTrigg return r } -func (r tenantToTriggersFindMany) Exec(ctx context.Context) ( +func (r tenantToAPITokensFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -247188,7 +271807,7 @@ func (r tenantToTriggersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToTriggersFindMany) ExecInner(ctx context.Context) ( +func (r tenantToAPITokensFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -247200,14 +271819,14 @@ func (r tenantToTriggersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToTriggersFindMany) Update(params ...TenantSetParam) tenantToTriggersUpdateMany { +func (r tenantToAPITokensFindMany) Update(params ...TenantSetParam) tenantToAPITokensUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToTriggersUpdateMany + var v tenantToAPITokensUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -247236,17 +271855,17 @@ func (r tenantToTriggersFindMany) Update(params ...TenantSetParam) tenantToTrigg return v } -type tenantToTriggersUpdateMany struct { +type tenantToAPITokensUpdateMany struct { query builder.Query } -func (r tenantToTriggersUpdateMany) ExtractQuery() builder.Query { +func (r tenantToAPITokensUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToTriggersUpdateMany) tenantModel() {} +func (r tenantToAPITokensUpdateMany) tenantModel() {} -func (r tenantToTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToAPITokensUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -247254,15 +271873,15 @@ func (r tenantToTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tenantToTriggersUpdateMany) Tx() TenantManyTxResult { +func (r tenantToAPITokensUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToTriggersFindMany) Delete() tenantToTriggersDeleteMany { - var v tenantToTriggersDeleteMany +func (r tenantToAPITokensFindMany) Delete() tenantToAPITokensDeleteMany { + var v tenantToAPITokensDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -247273,17 +271892,17 @@ func (r tenantToTriggersFindMany) Delete() tenantToTriggersDeleteMany { return v } -type tenantToTriggersDeleteMany struct { +type tenantToAPITokensDeleteMany struct { query builder.Query } -func (r tenantToTriggersDeleteMany) ExtractQuery() builder.Query { +func (r tenantToAPITokensDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToTriggersDeleteMany) tenantModel() {} +func (p tenantToAPITokensDeleteMany) tenantModel() {} -func (r tenantToTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToAPITokensDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -247291,30 +271910,30 @@ func (r tenantToTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tenantToTriggersDeleteMany) Tx() TenantManyTxResult { +func (r tenantToAPITokensDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkflowRunsFindUnique struct { +type tenantToGroupKeyRunsFindUnique struct { query builder.Query } -func (r tenantToWorkflowRunsFindUnique) getQuery() builder.Query { +func (r tenantToGroupKeyRunsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunsFindUnique) ExtractQuery() builder.Query { +func (r tenantToGroupKeyRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunsFindUnique) with() {} -func (r tenantToWorkflowRunsFindUnique) tenantModel() {} -func (r tenantToWorkflowRunsFindUnique) tenantRelation() {} +func (r tenantToGroupKeyRunsFindUnique) with() {} +func (r tenantToGroupKeyRunsFindUnique) tenantModel() {} +func (r tenantToGroupKeyRunsFindUnique) tenantRelation() {} -func (r tenantToWorkflowRunsFindUnique) With(params ...WorkflowRunRelationWith) tenantToWorkflowRunsFindUnique { +func (r tenantToGroupKeyRunsFindUnique) With(params ...GetGroupKeyRunRelationWith) tenantToGroupKeyRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -247327,7 +271946,7 @@ func (r tenantToWorkflowRunsFindUnique) With(params ...WorkflowRunRelationWith) return r } -func (r tenantToWorkflowRunsFindUnique) Select(params ...tenantPrismaFields) tenantToWorkflowRunsFindUnique { +func (r tenantToGroupKeyRunsFindUnique) Select(params ...tenantPrismaFields) tenantToGroupKeyRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -247341,7 +271960,7 @@ func (r tenantToWorkflowRunsFindUnique) Select(params ...tenantPrismaFields) ten return r } -func (r tenantToWorkflowRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkflowRunsFindUnique { +func (r tenantToGroupKeyRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToGroupKeyRunsFindUnique { var outputs []builder.Output var raw []string @@ -247360,7 +271979,7 @@ func (r tenantToWorkflowRunsFindUnique) Omit(params ...tenantPrismaFields) tenan return r } -func (r tenantToWorkflowRunsFindUnique) Exec(ctx context.Context) ( +func (r tenantToGroupKeyRunsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -247376,7 +271995,7 @@ func (r tenantToWorkflowRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToGroupKeyRunsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -247392,12 +272011,12 @@ func (r tenantToWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunsFindUnique) Update(params ...TenantSetParam) tenantToWorkflowRunsUpdateUnique { +func (r tenantToGroupKeyRunsFindUnique) Update(params ...TenantSetParam) tenantToGroupKeyRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToWorkflowRunsUpdateUnique + var v tenantToGroupKeyRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -247426,17 +272045,17 @@ func (r tenantToWorkflowRunsFindUnique) Update(params ...TenantSetParam) tenantT return v } -type tenantToWorkflowRunsUpdateUnique struct { +type tenantToGroupKeyRunsUpdateUnique struct { query builder.Query } -func (r tenantToWorkflowRunsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToGroupKeyRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunsUpdateUnique) tenantModel() {} +func (r tenantToGroupKeyRunsUpdateUnique) tenantModel() {} -func (r tenantToWorkflowRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToGroupKeyRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -247444,15 +272063,15 @@ func (r tenantToWorkflowRunsUpdateUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToWorkflowRunsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToGroupKeyRunsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkflowRunsFindUnique) Delete() tenantToWorkflowRunsDeleteUnique { - var v tenantToWorkflowRunsDeleteUnique +func (r tenantToGroupKeyRunsFindUnique) Delete() tenantToGroupKeyRunsDeleteUnique { + var v tenantToGroupKeyRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -247461,17 +272080,17 @@ func (r tenantToWorkflowRunsFindUnique) Delete() tenantToWorkflowRunsDeleteUniqu return v } -type tenantToWorkflowRunsDeleteUnique struct { +type tenantToGroupKeyRunsDeleteUnique struct { query builder.Query } -func (r tenantToWorkflowRunsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToGroupKeyRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkflowRunsDeleteUnique) tenantModel() {} +func (p tenantToGroupKeyRunsDeleteUnique) tenantModel() {} -func (r tenantToWorkflowRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToGroupKeyRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -247479,30 +272098,30 @@ func (r tenantToWorkflowRunsDeleteUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToWorkflowRunsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToGroupKeyRunsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkflowRunsFindFirst struct { +type tenantToGroupKeyRunsFindFirst struct { query builder.Query } -func (r tenantToWorkflowRunsFindFirst) getQuery() builder.Query { +func (r tenantToGroupKeyRunsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunsFindFirst) ExtractQuery() builder.Query { +func (r tenantToGroupKeyRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunsFindFirst) with() {} -func (r tenantToWorkflowRunsFindFirst) tenantModel() {} -func (r tenantToWorkflowRunsFindFirst) tenantRelation() {} +func (r tenantToGroupKeyRunsFindFirst) with() {} +func (r tenantToGroupKeyRunsFindFirst) tenantModel() {} +func (r tenantToGroupKeyRunsFindFirst) tenantRelation() {} -func (r tenantToWorkflowRunsFindFirst) With(params ...WorkflowRunRelationWith) tenantToWorkflowRunsFindFirst { +func (r tenantToGroupKeyRunsFindFirst) With(params ...GetGroupKeyRunRelationWith) tenantToGroupKeyRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -247515,7 +272134,7 @@ func (r tenantToWorkflowRunsFindFirst) With(params ...WorkflowRunRelationWith) t return r } -func (r tenantToWorkflowRunsFindFirst) Select(params ...tenantPrismaFields) tenantToWorkflowRunsFindFirst { +func (r tenantToGroupKeyRunsFindFirst) Select(params ...tenantPrismaFields) tenantToGroupKeyRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -247529,7 +272148,7 @@ func (r tenantToWorkflowRunsFindFirst) Select(params ...tenantPrismaFields) tena return r } -func (r tenantToWorkflowRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkflowRunsFindFirst { +func (r tenantToGroupKeyRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToGroupKeyRunsFindFirst { var outputs []builder.Output var raw []string @@ -247548,7 +272167,7 @@ func (r tenantToWorkflowRunsFindFirst) Omit(params ...tenantPrismaFields) tenant return r } -func (r tenantToWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunOrderByParam) tenantToWorkflowRunsFindFirst { +func (r tenantToGroupKeyRunsFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) tenantToGroupKeyRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -247568,7 +272187,7 @@ func (r tenantToWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunOrderByParam return r } -func (r tenantToWorkflowRunsFindFirst) Skip(count int) tenantToWorkflowRunsFindFirst { +func (r tenantToGroupKeyRunsFindFirst) Skip(count int) tenantToGroupKeyRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -247576,7 +272195,7 @@ func (r tenantToWorkflowRunsFindFirst) Skip(count int) tenantToWorkflowRunsFindF return r } -func (r tenantToWorkflowRunsFindFirst) Take(count int) tenantToWorkflowRunsFindFirst { +func (r tenantToGroupKeyRunsFindFirst) Take(count int) tenantToGroupKeyRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -247584,7 +272203,7 @@ func (r tenantToWorkflowRunsFindFirst) Take(count int) tenantToWorkflowRunsFindF return r } -func (r tenantToWorkflowRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkflowRunsFindFirst { +func (r tenantToGroupKeyRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToGroupKeyRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -247592,7 +272211,7 @@ func (r tenantToWorkflowRunsFindFirst) Cursor(cursor TenantCursorParam) tenantTo return r } -func (r tenantToWorkflowRunsFindFirst) Exec(ctx context.Context) ( +func (r tenantToGroupKeyRunsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -247608,7 +272227,7 @@ func (r tenantToWorkflowRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToGroupKeyRunsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -247624,23 +272243,23 @@ func (r tenantToWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToWorkflowRunsFindMany struct { +type tenantToGroupKeyRunsFindMany struct { query builder.Query } -func (r tenantToWorkflowRunsFindMany) getQuery() builder.Query { +func (r tenantToGroupKeyRunsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunsFindMany) ExtractQuery() builder.Query { +func (r tenantToGroupKeyRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunsFindMany) with() {} -func (r tenantToWorkflowRunsFindMany) tenantModel() {} -func (r tenantToWorkflowRunsFindMany) tenantRelation() {} +func (r tenantToGroupKeyRunsFindMany) with() {} +func (r tenantToGroupKeyRunsFindMany) tenantModel() {} +func (r tenantToGroupKeyRunsFindMany) tenantRelation() {} -func (r tenantToWorkflowRunsFindMany) With(params ...WorkflowRunRelationWith) tenantToWorkflowRunsFindMany { +func (r tenantToGroupKeyRunsFindMany) With(params ...GetGroupKeyRunRelationWith) tenantToGroupKeyRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -247653,7 +272272,7 @@ func (r tenantToWorkflowRunsFindMany) With(params ...WorkflowRunRelationWith) te return r } -func (r tenantToWorkflowRunsFindMany) Select(params ...tenantPrismaFields) tenantToWorkflowRunsFindMany { +func (r tenantToGroupKeyRunsFindMany) Select(params ...tenantPrismaFields) tenantToGroupKeyRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -247667,7 +272286,7 @@ func (r tenantToWorkflowRunsFindMany) Select(params ...tenantPrismaFields) tenan return r } -func (r tenantToWorkflowRunsFindMany) Omit(params ...tenantPrismaFields) tenantToWorkflowRunsFindMany { +func (r tenantToGroupKeyRunsFindMany) Omit(params ...tenantPrismaFields) tenantToGroupKeyRunsFindMany { var outputs []builder.Output var raw []string @@ -247686,7 +272305,7 @@ func (r tenantToWorkflowRunsFindMany) Omit(params ...tenantPrismaFields) tenantT return r } -func (r tenantToWorkflowRunsFindMany) OrderBy(params ...WorkflowRunOrderByParam) tenantToWorkflowRunsFindMany { +func (r tenantToGroupKeyRunsFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) tenantToGroupKeyRunsFindMany { var fields []builder.Field for _, param := range params { @@ -247706,7 +272325,7 @@ func (r tenantToWorkflowRunsFindMany) OrderBy(params ...WorkflowRunOrderByParam) return r } -func (r tenantToWorkflowRunsFindMany) Skip(count int) tenantToWorkflowRunsFindMany { +func (r tenantToGroupKeyRunsFindMany) Skip(count int) tenantToGroupKeyRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -247714,7 +272333,7 @@ func (r tenantToWorkflowRunsFindMany) Skip(count int) tenantToWorkflowRunsFindMa return r } -func (r tenantToWorkflowRunsFindMany) Take(count int) tenantToWorkflowRunsFindMany { +func (r tenantToGroupKeyRunsFindMany) Take(count int) tenantToGroupKeyRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -247722,7 +272341,7 @@ func (r tenantToWorkflowRunsFindMany) Take(count int) tenantToWorkflowRunsFindMa return r } -func (r tenantToWorkflowRunsFindMany) Cursor(cursor TenantCursorParam) tenantToWorkflowRunsFindMany { +func (r tenantToGroupKeyRunsFindMany) Cursor(cursor TenantCursorParam) tenantToGroupKeyRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -247730,7 +272349,7 @@ func (r tenantToWorkflowRunsFindMany) Cursor(cursor TenantCursorParam) tenantToW return r } -func (r tenantToWorkflowRunsFindMany) Exec(ctx context.Context) ( +func (r tenantToGroupKeyRunsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -247742,7 +272361,7 @@ func (r tenantToWorkflowRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToGroupKeyRunsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -247754,14 +272373,14 @@ func (r tenantToWorkflowRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunsFindMany) Update(params ...TenantSetParam) tenantToWorkflowRunsUpdateMany { +func (r tenantToGroupKeyRunsFindMany) Update(params ...TenantSetParam) tenantToGroupKeyRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToWorkflowRunsUpdateMany + var v tenantToGroupKeyRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -247790,17 +272409,17 @@ func (r tenantToWorkflowRunsFindMany) Update(params ...TenantSetParam) tenantToW return v } -type tenantToWorkflowRunsUpdateMany struct { +type tenantToGroupKeyRunsUpdateMany struct { query builder.Query } -func (r tenantToWorkflowRunsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToGroupKeyRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunsUpdateMany) tenantModel() {} +func (r tenantToGroupKeyRunsUpdateMany) tenantModel() {} -func (r tenantToWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToGroupKeyRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -247808,15 +272427,15 @@ func (r tenantToWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToWorkflowRunsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToGroupKeyRunsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkflowRunsFindMany) Delete() tenantToWorkflowRunsDeleteMany { - var v tenantToWorkflowRunsDeleteMany +func (r tenantToGroupKeyRunsFindMany) Delete() tenantToGroupKeyRunsDeleteMany { + var v tenantToGroupKeyRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -247827,17 +272446,17 @@ func (r tenantToWorkflowRunsFindMany) Delete() tenantToWorkflowRunsDeleteMany { return v } -type tenantToWorkflowRunsDeleteMany struct { +type tenantToGroupKeyRunsDeleteMany struct { query builder.Query } -func (r tenantToWorkflowRunsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToGroupKeyRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkflowRunsDeleteMany) tenantModel() {} +func (p tenantToGroupKeyRunsDeleteMany) tenantModel() {} -func (r tenantToWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToGroupKeyRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -247845,30 +272464,30 @@ func (r tenantToWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToWorkflowRunsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToGroupKeyRunsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkflowRunTriggersFindUnique struct { +type tenantToVcsProvidersFindUnique struct { query builder.Query } -func (r tenantToWorkflowRunTriggersFindUnique) getQuery() builder.Query { +func (r tenantToVcsProvidersFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunTriggersFindUnique) ExtractQuery() builder.Query { +func (r tenantToVcsProvidersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunTriggersFindUnique) with() {} -func (r tenantToWorkflowRunTriggersFindUnique) tenantModel() {} -func (r tenantToWorkflowRunTriggersFindUnique) tenantRelation() {} +func (r tenantToVcsProvidersFindUnique) with() {} +func (r tenantToVcsProvidersFindUnique) tenantModel() {} +func (r tenantToVcsProvidersFindUnique) tenantRelation() {} -func (r tenantToWorkflowRunTriggersFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) tenantToWorkflowRunTriggersFindUnique { +func (r tenantToVcsProvidersFindUnique) With(params ...TenantVcsProviderRelationWith) tenantToVcsProvidersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -247881,7 +272500,7 @@ func (r tenantToWorkflowRunTriggersFindUnique) With(params ...WorkflowRunTrigger return r } -func (r tenantToWorkflowRunTriggersFindUnique) Select(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindUnique { +func (r tenantToVcsProvidersFindUnique) Select(params ...tenantPrismaFields) tenantToVcsProvidersFindUnique { var outputs []builder.Output for _, param := range params { @@ -247895,7 +272514,7 @@ func (r tenantToWorkflowRunTriggersFindUnique) Select(params ...tenantPrismaFiel return r } -func (r tenantToWorkflowRunTriggersFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindUnique { +func (r tenantToVcsProvidersFindUnique) Omit(params ...tenantPrismaFields) tenantToVcsProvidersFindUnique { var outputs []builder.Output var raw []string @@ -247914,7 +272533,7 @@ func (r tenantToWorkflowRunTriggersFindUnique) Omit(params ...tenantPrismaFields return r } -func (r tenantToWorkflowRunTriggersFindUnique) Exec(ctx context.Context) ( +func (r tenantToVcsProvidersFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -247930,7 +272549,7 @@ func (r tenantToWorkflowRunTriggersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunTriggersFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToVcsProvidersFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -247946,12 +272565,12 @@ func (r tenantToWorkflowRunTriggersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunTriggersFindUnique) Update(params ...TenantSetParam) tenantToWorkflowRunTriggersUpdateUnique { +func (r tenantToVcsProvidersFindUnique) Update(params ...TenantSetParam) tenantToVcsProvidersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToWorkflowRunTriggersUpdateUnique + var v tenantToVcsProvidersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -247980,17 +272599,17 @@ func (r tenantToWorkflowRunTriggersFindUnique) Update(params ...TenantSetParam) return v } -type tenantToWorkflowRunTriggersUpdateUnique struct { +type tenantToVcsProvidersUpdateUnique struct { query builder.Query } -func (r tenantToWorkflowRunTriggersUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToVcsProvidersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunTriggersUpdateUnique) tenantModel() {} +func (r tenantToVcsProvidersUpdateUnique) tenantModel() {} -func (r tenantToWorkflowRunTriggersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToVcsProvidersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -247998,15 +272617,15 @@ func (r tenantToWorkflowRunTriggersUpdateUnique) Exec(ctx context.Context) (*Ten return &v, nil } -func (r tenantToWorkflowRunTriggersUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToVcsProvidersUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkflowRunTriggersFindUnique) Delete() tenantToWorkflowRunTriggersDeleteUnique { - var v tenantToWorkflowRunTriggersDeleteUnique +func (r tenantToVcsProvidersFindUnique) Delete() tenantToVcsProvidersDeleteUnique { + var v tenantToVcsProvidersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -248015,17 +272634,17 @@ func (r tenantToWorkflowRunTriggersFindUnique) Delete() tenantToWorkflowRunTrigg return v } -type tenantToWorkflowRunTriggersDeleteUnique struct { +type tenantToVcsProvidersDeleteUnique struct { query builder.Query } -func (r tenantToWorkflowRunTriggersDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToVcsProvidersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkflowRunTriggersDeleteUnique) tenantModel() {} +func (p tenantToVcsProvidersDeleteUnique) tenantModel() {} -func (r tenantToWorkflowRunTriggersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToVcsProvidersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -248033,30 +272652,30 @@ func (r tenantToWorkflowRunTriggersDeleteUnique) Exec(ctx context.Context) (*Ten return &v, nil } -func (r tenantToWorkflowRunTriggersDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToVcsProvidersDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkflowRunTriggersFindFirst struct { +type tenantToVcsProvidersFindFirst struct { query builder.Query } -func (r tenantToWorkflowRunTriggersFindFirst) getQuery() builder.Query { +func (r tenantToVcsProvidersFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunTriggersFindFirst) ExtractQuery() builder.Query { +func (r tenantToVcsProvidersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunTriggersFindFirst) with() {} -func (r tenantToWorkflowRunTriggersFindFirst) tenantModel() {} -func (r tenantToWorkflowRunTriggersFindFirst) tenantRelation() {} +func (r tenantToVcsProvidersFindFirst) with() {} +func (r tenantToVcsProvidersFindFirst) tenantModel() {} +func (r tenantToVcsProvidersFindFirst) tenantRelation() {} -func (r tenantToWorkflowRunTriggersFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) tenantToWorkflowRunTriggersFindFirst { +func (r tenantToVcsProvidersFindFirst) With(params ...TenantVcsProviderRelationWith) tenantToVcsProvidersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -248069,7 +272688,7 @@ func (r tenantToWorkflowRunTriggersFindFirst) With(params ...WorkflowRunTriggere return r } -func (r tenantToWorkflowRunTriggersFindFirst) Select(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindFirst { +func (r tenantToVcsProvidersFindFirst) Select(params ...tenantPrismaFields) tenantToVcsProvidersFindFirst { var outputs []builder.Output for _, param := range params { @@ -248083,7 +272702,7 @@ func (r tenantToWorkflowRunTriggersFindFirst) Select(params ...tenantPrismaField return r } -func (r tenantToWorkflowRunTriggersFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindFirst { +func (r tenantToVcsProvidersFindFirst) Omit(params ...tenantPrismaFields) tenantToVcsProvidersFindFirst { var outputs []builder.Output var raw []string @@ -248102,7 +272721,7 @@ func (r tenantToWorkflowRunTriggersFindFirst) Omit(params ...tenantPrismaFields) return r } -func (r tenantToWorkflowRunTriggersFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) tenantToWorkflowRunTriggersFindFirst { +func (r tenantToVcsProvidersFindFirst) OrderBy(params ...TenantVcsProviderOrderByParam) tenantToVcsProvidersFindFirst { var fields []builder.Field for _, param := range params { @@ -248122,7 +272741,7 @@ func (r tenantToWorkflowRunTriggersFindFirst) OrderBy(params ...WorkflowRunTrigg return r } -func (r tenantToWorkflowRunTriggersFindFirst) Skip(count int) tenantToWorkflowRunTriggersFindFirst { +func (r tenantToVcsProvidersFindFirst) Skip(count int) tenantToVcsProvidersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -248130,7 +272749,7 @@ func (r tenantToWorkflowRunTriggersFindFirst) Skip(count int) tenantToWorkflowRu return r } -func (r tenantToWorkflowRunTriggersFindFirst) Take(count int) tenantToWorkflowRunTriggersFindFirst { +func (r tenantToVcsProvidersFindFirst) Take(count int) tenantToVcsProvidersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -248138,7 +272757,7 @@ func (r tenantToWorkflowRunTriggersFindFirst) Take(count int) tenantToWorkflowRu return r } -func (r tenantToWorkflowRunTriggersFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkflowRunTriggersFindFirst { +func (r tenantToVcsProvidersFindFirst) Cursor(cursor TenantCursorParam) tenantToVcsProvidersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -248146,7 +272765,7 @@ func (r tenantToWorkflowRunTriggersFindFirst) Cursor(cursor TenantCursorParam) t return r } -func (r tenantToWorkflowRunTriggersFindFirst) Exec(ctx context.Context) ( +func (r tenantToVcsProvidersFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -248162,7 +272781,7 @@ func (r tenantToWorkflowRunTriggersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunTriggersFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToVcsProvidersFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -248178,23 +272797,23 @@ func (r tenantToWorkflowRunTriggersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToWorkflowRunTriggersFindMany struct { +type tenantToVcsProvidersFindMany struct { query builder.Query } -func (r tenantToWorkflowRunTriggersFindMany) getQuery() builder.Query { +func (r tenantToVcsProvidersFindMany) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunTriggersFindMany) ExtractQuery() builder.Query { +func (r tenantToVcsProvidersFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunTriggersFindMany) with() {} -func (r tenantToWorkflowRunTriggersFindMany) tenantModel() {} -func (r tenantToWorkflowRunTriggersFindMany) tenantRelation() {} +func (r tenantToVcsProvidersFindMany) with() {} +func (r tenantToVcsProvidersFindMany) tenantModel() {} +func (r tenantToVcsProvidersFindMany) tenantRelation() {} -func (r tenantToWorkflowRunTriggersFindMany) With(params ...WorkflowRunTriggeredByRelationWith) tenantToWorkflowRunTriggersFindMany { +func (r tenantToVcsProvidersFindMany) With(params ...TenantVcsProviderRelationWith) tenantToVcsProvidersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -248207,7 +272826,7 @@ func (r tenantToWorkflowRunTriggersFindMany) With(params ...WorkflowRunTriggered return r } -func (r tenantToWorkflowRunTriggersFindMany) Select(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindMany { +func (r tenantToVcsProvidersFindMany) Select(params ...tenantPrismaFields) tenantToVcsProvidersFindMany { var outputs []builder.Output for _, param := range params { @@ -248221,7 +272840,7 @@ func (r tenantToWorkflowRunTriggersFindMany) Select(params ...tenantPrismaFields return r } -func (r tenantToWorkflowRunTriggersFindMany) Omit(params ...tenantPrismaFields) tenantToWorkflowRunTriggersFindMany { +func (r tenantToVcsProvidersFindMany) Omit(params ...tenantPrismaFields) tenantToVcsProvidersFindMany { var outputs []builder.Output var raw []string @@ -248240,7 +272859,7 @@ func (r tenantToWorkflowRunTriggersFindMany) Omit(params ...tenantPrismaFields) return r } -func (r tenantToWorkflowRunTriggersFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) tenantToWorkflowRunTriggersFindMany { +func (r tenantToVcsProvidersFindMany) OrderBy(params ...TenantVcsProviderOrderByParam) tenantToVcsProvidersFindMany { var fields []builder.Field for _, param := range params { @@ -248260,7 +272879,7 @@ func (r tenantToWorkflowRunTriggersFindMany) OrderBy(params ...WorkflowRunTrigge return r } -func (r tenantToWorkflowRunTriggersFindMany) Skip(count int) tenantToWorkflowRunTriggersFindMany { +func (r tenantToVcsProvidersFindMany) Skip(count int) tenantToVcsProvidersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -248268,7 +272887,7 @@ func (r tenantToWorkflowRunTriggersFindMany) Skip(count int) tenantToWorkflowRun return r } -func (r tenantToWorkflowRunTriggersFindMany) Take(count int) tenantToWorkflowRunTriggersFindMany { +func (r tenantToVcsProvidersFindMany) Take(count int) tenantToVcsProvidersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -248276,7 +272895,7 @@ func (r tenantToWorkflowRunTriggersFindMany) Take(count int) tenantToWorkflowRun return r } -func (r tenantToWorkflowRunTriggersFindMany) Cursor(cursor TenantCursorParam) tenantToWorkflowRunTriggersFindMany { +func (r tenantToVcsProvidersFindMany) Cursor(cursor TenantCursorParam) tenantToVcsProvidersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -248284,7 +272903,7 @@ func (r tenantToWorkflowRunTriggersFindMany) Cursor(cursor TenantCursorParam) te return r } -func (r tenantToWorkflowRunTriggersFindMany) Exec(ctx context.Context) ( +func (r tenantToVcsProvidersFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -248296,7 +272915,7 @@ func (r tenantToWorkflowRunTriggersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunTriggersFindMany) ExecInner(ctx context.Context) ( +func (r tenantToVcsProvidersFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -248308,14 +272927,14 @@ func (r tenantToWorkflowRunTriggersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowRunTriggersFindMany) Update(params ...TenantSetParam) tenantToWorkflowRunTriggersUpdateMany { +func (r tenantToVcsProvidersFindMany) Update(params ...TenantSetParam) tenantToVcsProvidersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToWorkflowRunTriggersUpdateMany + var v tenantToVcsProvidersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -248344,17 +272963,17 @@ func (r tenantToWorkflowRunTriggersFindMany) Update(params ...TenantSetParam) te return v } -type tenantToWorkflowRunTriggersUpdateMany struct { +type tenantToVcsProvidersUpdateMany struct { query builder.Query } -func (r tenantToWorkflowRunTriggersUpdateMany) ExtractQuery() builder.Query { +func (r tenantToVcsProvidersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowRunTriggersUpdateMany) tenantModel() {} +func (r tenantToVcsProvidersUpdateMany) tenantModel() {} -func (r tenantToWorkflowRunTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToVcsProvidersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -248362,15 +272981,15 @@ func (r tenantToWorkflowRunTriggersUpdateMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r tenantToWorkflowRunTriggersUpdateMany) Tx() TenantManyTxResult { +func (r tenantToVcsProvidersUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkflowRunTriggersFindMany) Delete() tenantToWorkflowRunTriggersDeleteMany { - var v tenantToWorkflowRunTriggersDeleteMany +func (r tenantToVcsProvidersFindMany) Delete() tenantToVcsProvidersDeleteMany { + var v tenantToVcsProvidersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -248381,17 +273000,17 @@ func (r tenantToWorkflowRunTriggersFindMany) Delete() tenantToWorkflowRunTrigger return v } -type tenantToWorkflowRunTriggersDeleteMany struct { +type tenantToVcsProvidersDeleteMany struct { query builder.Query } -func (r tenantToWorkflowRunTriggersDeleteMany) ExtractQuery() builder.Query { +func (r tenantToVcsProvidersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkflowRunTriggersDeleteMany) tenantModel() {} +func (p tenantToVcsProvidersDeleteMany) tenantModel() {} -func (r tenantToWorkflowRunTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToVcsProvidersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -248399,30 +273018,30 @@ func (r tenantToWorkflowRunTriggersDeleteMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r tenantToWorkflowRunTriggersDeleteMany) Tx() TenantManyTxResult { +func (r tenantToVcsProvidersDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToJobRunsFindUnique struct { +type tenantToStreamEventsFindUnique struct { query builder.Query } -func (r tenantToJobRunsFindUnique) getQuery() builder.Query { +func (r tenantToStreamEventsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToJobRunsFindUnique) ExtractQuery() builder.Query { +func (r tenantToStreamEventsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunsFindUnique) with() {} -func (r tenantToJobRunsFindUnique) tenantModel() {} -func (r tenantToJobRunsFindUnique) tenantRelation() {} +func (r tenantToStreamEventsFindUnique) with() {} +func (r tenantToStreamEventsFindUnique) tenantModel() {} +func (r tenantToStreamEventsFindUnique) tenantRelation() {} -func (r tenantToJobRunsFindUnique) With(params ...JobRunRelationWith) tenantToJobRunsFindUnique { +func (r tenantToStreamEventsFindUnique) With(params ...StreamEventRelationWith) tenantToStreamEventsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -248435,7 +273054,7 @@ func (r tenantToJobRunsFindUnique) With(params ...JobRunRelationWith) tenantToJo return r } -func (r tenantToJobRunsFindUnique) Select(params ...tenantPrismaFields) tenantToJobRunsFindUnique { +func (r tenantToStreamEventsFindUnique) Select(params ...tenantPrismaFields) tenantToStreamEventsFindUnique { var outputs []builder.Output for _, param := range params { @@ -248449,7 +273068,7 @@ func (r tenantToJobRunsFindUnique) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToJobRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToJobRunsFindUnique { +func (r tenantToStreamEventsFindUnique) Omit(params ...tenantPrismaFields) tenantToStreamEventsFindUnique { var outputs []builder.Output var raw []string @@ -248468,7 +273087,7 @@ func (r tenantToJobRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToJo return r } -func (r tenantToJobRunsFindUnique) Exec(ctx context.Context) ( +func (r tenantToStreamEventsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -248484,7 +273103,7 @@ func (r tenantToJobRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobRunsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToStreamEventsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -248500,12 +273119,12 @@ func (r tenantToJobRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToJobRunsFindUnique) Update(params ...TenantSetParam) tenantToJobRunsUpdateUnique { +func (r tenantToStreamEventsFindUnique) Update(params ...TenantSetParam) tenantToStreamEventsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToJobRunsUpdateUnique + var v tenantToStreamEventsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -248534,17 +273153,17 @@ func (r tenantToJobRunsFindUnique) Update(params ...TenantSetParam) tenantToJobR return v } -type tenantToJobRunsUpdateUnique struct { +type tenantToStreamEventsUpdateUnique struct { query builder.Query } -func (r tenantToJobRunsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToStreamEventsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunsUpdateUnique) tenantModel() {} +func (r tenantToStreamEventsUpdateUnique) tenantModel() {} -func (r tenantToJobRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToStreamEventsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -248552,15 +273171,15 @@ func (r tenantToJobRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToJobRunsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToStreamEventsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToJobRunsFindUnique) Delete() tenantToJobRunsDeleteUnique { - var v tenantToJobRunsDeleteUnique +func (r tenantToStreamEventsFindUnique) Delete() tenantToStreamEventsDeleteUnique { + var v tenantToStreamEventsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -248569,17 +273188,17 @@ func (r tenantToJobRunsFindUnique) Delete() tenantToJobRunsDeleteUnique { return v } -type tenantToJobRunsDeleteUnique struct { +type tenantToStreamEventsDeleteUnique struct { query builder.Query } -func (r tenantToJobRunsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToStreamEventsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToJobRunsDeleteUnique) tenantModel() {} +func (p tenantToStreamEventsDeleteUnique) tenantModel() {} -func (r tenantToJobRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToStreamEventsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -248587,30 +273206,30 @@ func (r tenantToJobRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToJobRunsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToStreamEventsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToJobRunsFindFirst struct { +type tenantToStreamEventsFindFirst struct { query builder.Query } -func (r tenantToJobRunsFindFirst) getQuery() builder.Query { +func (r tenantToStreamEventsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToJobRunsFindFirst) ExtractQuery() builder.Query { +func (r tenantToStreamEventsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunsFindFirst) with() {} -func (r tenantToJobRunsFindFirst) tenantModel() {} -func (r tenantToJobRunsFindFirst) tenantRelation() {} +func (r tenantToStreamEventsFindFirst) with() {} +func (r tenantToStreamEventsFindFirst) tenantModel() {} +func (r tenantToStreamEventsFindFirst) tenantRelation() {} -func (r tenantToJobRunsFindFirst) With(params ...JobRunRelationWith) tenantToJobRunsFindFirst { +func (r tenantToStreamEventsFindFirst) With(params ...StreamEventRelationWith) tenantToStreamEventsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -248623,7 +273242,7 @@ func (r tenantToJobRunsFindFirst) With(params ...JobRunRelationWith) tenantToJob return r } -func (r tenantToJobRunsFindFirst) Select(params ...tenantPrismaFields) tenantToJobRunsFindFirst { +func (r tenantToStreamEventsFindFirst) Select(params ...tenantPrismaFields) tenantToStreamEventsFindFirst { var outputs []builder.Output for _, param := range params { @@ -248637,7 +273256,7 @@ func (r tenantToJobRunsFindFirst) Select(params ...tenantPrismaFields) tenantToJ return r } -func (r tenantToJobRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToJobRunsFindFirst { +func (r tenantToStreamEventsFindFirst) Omit(params ...tenantPrismaFields) tenantToStreamEventsFindFirst { var outputs []builder.Output var raw []string @@ -248656,7 +273275,7 @@ func (r tenantToJobRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToJob return r } -func (r tenantToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) tenantToJobRunsFindFirst { +func (r tenantToStreamEventsFindFirst) OrderBy(params ...StreamEventOrderByParam) tenantToStreamEventsFindFirst { var fields []builder.Field for _, param := range params { @@ -248676,7 +273295,7 @@ func (r tenantToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) tenantTo return r } -func (r tenantToJobRunsFindFirst) Skip(count int) tenantToJobRunsFindFirst { +func (r tenantToStreamEventsFindFirst) Skip(count int) tenantToStreamEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -248684,7 +273303,7 @@ func (r tenantToJobRunsFindFirst) Skip(count int) tenantToJobRunsFindFirst { return r } -func (r tenantToJobRunsFindFirst) Take(count int) tenantToJobRunsFindFirst { +func (r tenantToStreamEventsFindFirst) Take(count int) tenantToStreamEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -248692,7 +273311,7 @@ func (r tenantToJobRunsFindFirst) Take(count int) tenantToJobRunsFindFirst { return r } -func (r tenantToJobRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToJobRunsFindFirst { +func (r tenantToStreamEventsFindFirst) Cursor(cursor TenantCursorParam) tenantToStreamEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -248700,7 +273319,7 @@ func (r tenantToJobRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToJobRu return r } -func (r tenantToJobRunsFindFirst) Exec(ctx context.Context) ( +func (r tenantToStreamEventsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -248716,7 +273335,7 @@ func (r tenantToJobRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobRunsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToStreamEventsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -248732,23 +273351,23 @@ func (r tenantToJobRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToJobRunsFindMany struct { +type tenantToStreamEventsFindMany struct { query builder.Query } -func (r tenantToJobRunsFindMany) getQuery() builder.Query { +func (r tenantToStreamEventsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToJobRunsFindMany) ExtractQuery() builder.Query { +func (r tenantToStreamEventsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunsFindMany) with() {} -func (r tenantToJobRunsFindMany) tenantModel() {} -func (r tenantToJobRunsFindMany) tenantRelation() {} +func (r tenantToStreamEventsFindMany) with() {} +func (r tenantToStreamEventsFindMany) tenantModel() {} +func (r tenantToStreamEventsFindMany) tenantRelation() {} -func (r tenantToJobRunsFindMany) With(params ...JobRunRelationWith) tenantToJobRunsFindMany { +func (r tenantToStreamEventsFindMany) With(params ...StreamEventRelationWith) tenantToStreamEventsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -248761,7 +273380,7 @@ func (r tenantToJobRunsFindMany) With(params ...JobRunRelationWith) tenantToJobR return r } -func (r tenantToJobRunsFindMany) Select(params ...tenantPrismaFields) tenantToJobRunsFindMany { +func (r tenantToStreamEventsFindMany) Select(params ...tenantPrismaFields) tenantToStreamEventsFindMany { var outputs []builder.Output for _, param := range params { @@ -248775,7 +273394,7 @@ func (r tenantToJobRunsFindMany) Select(params ...tenantPrismaFields) tenantToJo return r } -func (r tenantToJobRunsFindMany) Omit(params ...tenantPrismaFields) tenantToJobRunsFindMany { +func (r tenantToStreamEventsFindMany) Omit(params ...tenantPrismaFields) tenantToStreamEventsFindMany { var outputs []builder.Output var raw []string @@ -248794,7 +273413,7 @@ func (r tenantToJobRunsFindMany) Omit(params ...tenantPrismaFields) tenantToJobR return r } -func (r tenantToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) tenantToJobRunsFindMany { +func (r tenantToStreamEventsFindMany) OrderBy(params ...StreamEventOrderByParam) tenantToStreamEventsFindMany { var fields []builder.Field for _, param := range params { @@ -248814,7 +273433,7 @@ func (r tenantToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) tenantToJ return r } -func (r tenantToJobRunsFindMany) Skip(count int) tenantToJobRunsFindMany { +func (r tenantToStreamEventsFindMany) Skip(count int) tenantToStreamEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -248822,7 +273441,7 @@ func (r tenantToJobRunsFindMany) Skip(count int) tenantToJobRunsFindMany { return r } -func (r tenantToJobRunsFindMany) Take(count int) tenantToJobRunsFindMany { +func (r tenantToStreamEventsFindMany) Take(count int) tenantToStreamEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -248830,7 +273449,7 @@ func (r tenantToJobRunsFindMany) Take(count int) tenantToJobRunsFindMany { return r } -func (r tenantToJobRunsFindMany) Cursor(cursor TenantCursorParam) tenantToJobRunsFindMany { +func (r tenantToStreamEventsFindMany) Cursor(cursor TenantCursorParam) tenantToStreamEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -248838,7 +273457,7 @@ func (r tenantToJobRunsFindMany) Cursor(cursor TenantCursorParam) tenantToJobRun return r } -func (r tenantToJobRunsFindMany) Exec(ctx context.Context) ( +func (r tenantToStreamEventsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -248850,7 +273469,7 @@ func (r tenantToJobRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobRunsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToStreamEventsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -248862,14 +273481,14 @@ func (r tenantToJobRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToJobRunsFindMany) Update(params ...TenantSetParam) tenantToJobRunsUpdateMany { +func (r tenantToStreamEventsFindMany) Update(params ...TenantSetParam) tenantToStreamEventsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToJobRunsUpdateMany + var v tenantToStreamEventsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -248898,17 +273517,17 @@ func (r tenantToJobRunsFindMany) Update(params ...TenantSetParam) tenantToJobRun return v } -type tenantToJobRunsUpdateMany struct { +type tenantToStreamEventsUpdateMany struct { query builder.Query } -func (r tenantToJobRunsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToStreamEventsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunsUpdateMany) tenantModel() {} +func (r tenantToStreamEventsUpdateMany) tenantModel() {} -func (r tenantToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToStreamEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -248916,15 +273535,15 @@ func (r tenantToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToJobRunsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToStreamEventsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToJobRunsFindMany) Delete() tenantToJobRunsDeleteMany { - var v tenantToJobRunsDeleteMany +func (r tenantToStreamEventsFindMany) Delete() tenantToStreamEventsDeleteMany { + var v tenantToStreamEventsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -248935,17 +273554,17 @@ func (r tenantToJobRunsFindMany) Delete() tenantToJobRunsDeleteMany { return v } -type tenantToJobRunsDeleteMany struct { +type tenantToStreamEventsDeleteMany struct { query builder.Query } -func (r tenantToJobRunsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToStreamEventsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToJobRunsDeleteMany) tenantModel() {} +func (p tenantToStreamEventsDeleteMany) tenantModel() {} -func (r tenantToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToStreamEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -248953,30 +273572,30 @@ func (r tenantToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToJobRunsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToStreamEventsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToJobRunLookupDatasFindUnique struct { +type tenantToLogsFindUnique struct { query builder.Query } -func (r tenantToJobRunLookupDatasFindUnique) getQuery() builder.Query { +func (r tenantToLogsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToJobRunLookupDatasFindUnique) ExtractQuery() builder.Query { +func (r tenantToLogsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunLookupDatasFindUnique) with() {} -func (r tenantToJobRunLookupDatasFindUnique) tenantModel() {} -func (r tenantToJobRunLookupDatasFindUnique) tenantRelation() {} +func (r tenantToLogsFindUnique) with() {} +func (r tenantToLogsFindUnique) tenantModel() {} +func (r tenantToLogsFindUnique) tenantRelation() {} -func (r tenantToJobRunLookupDatasFindUnique) With(params ...JobRunLookupDataRelationWith) tenantToJobRunLookupDatasFindUnique { +func (r tenantToLogsFindUnique) With(params ...LogLineRelationWith) tenantToLogsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -248989,7 +273608,7 @@ func (r tenantToJobRunLookupDatasFindUnique) With(params ...JobRunLookupDataRela return r } -func (r tenantToJobRunLookupDatasFindUnique) Select(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindUnique { +func (r tenantToLogsFindUnique) Select(params ...tenantPrismaFields) tenantToLogsFindUnique { var outputs []builder.Output for _, param := range params { @@ -249003,7 +273622,7 @@ func (r tenantToJobRunLookupDatasFindUnique) Select(params ...tenantPrismaFields return r } -func (r tenantToJobRunLookupDatasFindUnique) Omit(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindUnique { +func (r tenantToLogsFindUnique) Omit(params ...tenantPrismaFields) tenantToLogsFindUnique { var outputs []builder.Output var raw []string @@ -249022,7 +273641,7 @@ func (r tenantToJobRunLookupDatasFindUnique) Omit(params ...tenantPrismaFields) return r } -func (r tenantToJobRunLookupDatasFindUnique) Exec(ctx context.Context) ( +func (r tenantToLogsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -249038,7 +273657,7 @@ func (r tenantToJobRunLookupDatasFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobRunLookupDatasFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToLogsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -249054,12 +273673,12 @@ func (r tenantToJobRunLookupDatasFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToJobRunLookupDatasFindUnique) Update(params ...TenantSetParam) tenantToJobRunLookupDatasUpdateUnique { +func (r tenantToLogsFindUnique) Update(params ...TenantSetParam) tenantToLogsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToJobRunLookupDatasUpdateUnique + var v tenantToLogsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -249088,17 +273707,17 @@ func (r tenantToJobRunLookupDatasFindUnique) Update(params ...TenantSetParam) te return v } -type tenantToJobRunLookupDatasUpdateUnique struct { +type tenantToLogsUpdateUnique struct { query builder.Query } -func (r tenantToJobRunLookupDatasUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToLogsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunLookupDatasUpdateUnique) tenantModel() {} +func (r tenantToLogsUpdateUnique) tenantModel() {} -func (r tenantToJobRunLookupDatasUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToLogsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -249106,15 +273725,15 @@ func (r tenantToJobRunLookupDatasUpdateUnique) Exec(ctx context.Context) (*Tenan return &v, nil } -func (r tenantToJobRunLookupDatasUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToLogsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToJobRunLookupDatasFindUnique) Delete() tenantToJobRunLookupDatasDeleteUnique { - var v tenantToJobRunLookupDatasDeleteUnique +func (r tenantToLogsFindUnique) Delete() tenantToLogsDeleteUnique { + var v tenantToLogsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -249123,17 +273742,17 @@ func (r tenantToJobRunLookupDatasFindUnique) Delete() tenantToJobRunLookupDatasD return v } -type tenantToJobRunLookupDatasDeleteUnique struct { +type tenantToLogsDeleteUnique struct { query builder.Query } -func (r tenantToJobRunLookupDatasDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToLogsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToJobRunLookupDatasDeleteUnique) tenantModel() {} +func (p tenantToLogsDeleteUnique) tenantModel() {} -func (r tenantToJobRunLookupDatasDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToLogsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -249141,30 +273760,30 @@ func (r tenantToJobRunLookupDatasDeleteUnique) Exec(ctx context.Context) (*Tenan return &v, nil } -func (r tenantToJobRunLookupDatasDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToLogsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToJobRunLookupDatasFindFirst struct { +type tenantToLogsFindFirst struct { query builder.Query } -func (r tenantToJobRunLookupDatasFindFirst) getQuery() builder.Query { +func (r tenantToLogsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToJobRunLookupDatasFindFirst) ExtractQuery() builder.Query { +func (r tenantToLogsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunLookupDatasFindFirst) with() {} -func (r tenantToJobRunLookupDatasFindFirst) tenantModel() {} -func (r tenantToJobRunLookupDatasFindFirst) tenantRelation() {} +func (r tenantToLogsFindFirst) with() {} +func (r tenantToLogsFindFirst) tenantModel() {} +func (r tenantToLogsFindFirst) tenantRelation() {} -func (r tenantToJobRunLookupDatasFindFirst) With(params ...JobRunLookupDataRelationWith) tenantToJobRunLookupDatasFindFirst { +func (r tenantToLogsFindFirst) With(params ...LogLineRelationWith) tenantToLogsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -249177,7 +273796,7 @@ func (r tenantToJobRunLookupDatasFindFirst) With(params ...JobRunLookupDataRelat return r } -func (r tenantToJobRunLookupDatasFindFirst) Select(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindFirst { +func (r tenantToLogsFindFirst) Select(params ...tenantPrismaFields) tenantToLogsFindFirst { var outputs []builder.Output for _, param := range params { @@ -249191,7 +273810,7 @@ func (r tenantToJobRunLookupDatasFindFirst) Select(params ...tenantPrismaFields) return r } -func (r tenantToJobRunLookupDatasFindFirst) Omit(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindFirst { +func (r tenantToLogsFindFirst) Omit(params ...tenantPrismaFields) tenantToLogsFindFirst { var outputs []builder.Output var raw []string @@ -249210,7 +273829,7 @@ func (r tenantToJobRunLookupDatasFindFirst) Omit(params ...tenantPrismaFields) t return r } -func (r tenantToJobRunLookupDatasFindFirst) OrderBy(params ...JobRunLookupDataOrderByParam) tenantToJobRunLookupDatasFindFirst { +func (r tenantToLogsFindFirst) OrderBy(params ...LogLineOrderByParam) tenantToLogsFindFirst { var fields []builder.Field for _, param := range params { @@ -249230,7 +273849,7 @@ func (r tenantToJobRunLookupDatasFindFirst) OrderBy(params ...JobRunLookupDataOr return r } -func (r tenantToJobRunLookupDatasFindFirst) Skip(count int) tenantToJobRunLookupDatasFindFirst { +func (r tenantToLogsFindFirst) Skip(count int) tenantToLogsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -249238,7 +273857,7 @@ func (r tenantToJobRunLookupDatasFindFirst) Skip(count int) tenantToJobRunLookup return r } -func (r tenantToJobRunLookupDatasFindFirst) Take(count int) tenantToJobRunLookupDatasFindFirst { +func (r tenantToLogsFindFirst) Take(count int) tenantToLogsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -249246,7 +273865,7 @@ func (r tenantToJobRunLookupDatasFindFirst) Take(count int) tenantToJobRunLookup return r } -func (r tenantToJobRunLookupDatasFindFirst) Cursor(cursor TenantCursorParam) tenantToJobRunLookupDatasFindFirst { +func (r tenantToLogsFindFirst) Cursor(cursor TenantCursorParam) tenantToLogsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -249254,7 +273873,7 @@ func (r tenantToJobRunLookupDatasFindFirst) Cursor(cursor TenantCursorParam) ten return r } -func (r tenantToJobRunLookupDatasFindFirst) Exec(ctx context.Context) ( +func (r tenantToLogsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -249270,7 +273889,7 @@ func (r tenantToJobRunLookupDatasFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobRunLookupDatasFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToLogsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -249286,23 +273905,23 @@ func (r tenantToJobRunLookupDatasFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToJobRunLookupDatasFindMany struct { +type tenantToLogsFindMany struct { query builder.Query } -func (r tenantToJobRunLookupDatasFindMany) getQuery() builder.Query { +func (r tenantToLogsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToJobRunLookupDatasFindMany) ExtractQuery() builder.Query { +func (r tenantToLogsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunLookupDatasFindMany) with() {} -func (r tenantToJobRunLookupDatasFindMany) tenantModel() {} -func (r tenantToJobRunLookupDatasFindMany) tenantRelation() {} +func (r tenantToLogsFindMany) with() {} +func (r tenantToLogsFindMany) tenantModel() {} +func (r tenantToLogsFindMany) tenantRelation() {} -func (r tenantToJobRunLookupDatasFindMany) With(params ...JobRunLookupDataRelationWith) tenantToJobRunLookupDatasFindMany { +func (r tenantToLogsFindMany) With(params ...LogLineRelationWith) tenantToLogsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -249315,7 +273934,7 @@ func (r tenantToJobRunLookupDatasFindMany) With(params ...JobRunLookupDataRelati return r } -func (r tenantToJobRunLookupDatasFindMany) Select(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindMany { +func (r tenantToLogsFindMany) Select(params ...tenantPrismaFields) tenantToLogsFindMany { var outputs []builder.Output for _, param := range params { @@ -249329,7 +273948,7 @@ func (r tenantToJobRunLookupDatasFindMany) Select(params ...tenantPrismaFields) return r } -func (r tenantToJobRunLookupDatasFindMany) Omit(params ...tenantPrismaFields) tenantToJobRunLookupDatasFindMany { +func (r tenantToLogsFindMany) Omit(params ...tenantPrismaFields) tenantToLogsFindMany { var outputs []builder.Output var raw []string @@ -249348,7 +273967,7 @@ func (r tenantToJobRunLookupDatasFindMany) Omit(params ...tenantPrismaFields) te return r } -func (r tenantToJobRunLookupDatasFindMany) OrderBy(params ...JobRunLookupDataOrderByParam) tenantToJobRunLookupDatasFindMany { +func (r tenantToLogsFindMany) OrderBy(params ...LogLineOrderByParam) tenantToLogsFindMany { var fields []builder.Field for _, param := range params { @@ -249368,7 +273987,7 @@ func (r tenantToJobRunLookupDatasFindMany) OrderBy(params ...JobRunLookupDataOrd return r } -func (r tenantToJobRunLookupDatasFindMany) Skip(count int) tenantToJobRunLookupDatasFindMany { +func (r tenantToLogsFindMany) Skip(count int) tenantToLogsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -249376,7 +273995,7 @@ func (r tenantToJobRunLookupDatasFindMany) Skip(count int) tenantToJobRunLookupD return r } -func (r tenantToJobRunLookupDatasFindMany) Take(count int) tenantToJobRunLookupDatasFindMany { +func (r tenantToLogsFindMany) Take(count int) tenantToLogsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -249384,7 +274003,7 @@ func (r tenantToJobRunLookupDatasFindMany) Take(count int) tenantToJobRunLookupD return r } -func (r tenantToJobRunLookupDatasFindMany) Cursor(cursor TenantCursorParam) tenantToJobRunLookupDatasFindMany { +func (r tenantToLogsFindMany) Cursor(cursor TenantCursorParam) tenantToLogsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -249392,7 +274011,7 @@ func (r tenantToJobRunLookupDatasFindMany) Cursor(cursor TenantCursorParam) tena return r } -func (r tenantToJobRunLookupDatasFindMany) Exec(ctx context.Context) ( +func (r tenantToLogsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -249404,7 +274023,7 @@ func (r tenantToJobRunLookupDatasFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToJobRunLookupDatasFindMany) ExecInner(ctx context.Context) ( +func (r tenantToLogsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -249416,14 +274035,14 @@ func (r tenantToJobRunLookupDatasFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToJobRunLookupDatasFindMany) Update(params ...TenantSetParam) tenantToJobRunLookupDatasUpdateMany { +func (r tenantToLogsFindMany) Update(params ...TenantSetParam) tenantToLogsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToJobRunLookupDatasUpdateMany + var v tenantToLogsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -249452,17 +274071,17 @@ func (r tenantToJobRunLookupDatasFindMany) Update(params ...TenantSetParam) tena return v } -type tenantToJobRunLookupDatasUpdateMany struct { +type tenantToLogsUpdateMany struct { query builder.Query } -func (r tenantToJobRunLookupDatasUpdateMany) ExtractQuery() builder.Query { +func (r tenantToLogsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToJobRunLookupDatasUpdateMany) tenantModel() {} +func (r tenantToLogsUpdateMany) tenantModel() {} -func (r tenantToJobRunLookupDatasUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToLogsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -249470,15 +274089,15 @@ func (r tenantToJobRunLookupDatasUpdateMany) Exec(ctx context.Context) (*BatchRe return &v, nil } -func (r tenantToJobRunLookupDatasUpdateMany) Tx() TenantManyTxResult { +func (r tenantToLogsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToJobRunLookupDatasFindMany) Delete() tenantToJobRunLookupDatasDeleteMany { - var v tenantToJobRunLookupDatasDeleteMany +func (r tenantToLogsFindMany) Delete() tenantToLogsDeleteMany { + var v tenantToLogsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -249489,17 +274108,17 @@ func (r tenantToJobRunLookupDatasFindMany) Delete() tenantToJobRunLookupDatasDel return v } -type tenantToJobRunLookupDatasDeleteMany struct { +type tenantToLogsDeleteMany struct { query builder.Query } -func (r tenantToJobRunLookupDatasDeleteMany) ExtractQuery() builder.Query { +func (r tenantToLogsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToJobRunLookupDatasDeleteMany) tenantModel() {} +func (p tenantToLogsDeleteMany) tenantModel() {} -func (r tenantToJobRunLookupDatasDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToLogsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -249507,30 +274126,30 @@ func (r tenantToJobRunLookupDatasDeleteMany) Exec(ctx context.Context) (*BatchRe return &v, nil } -func (r tenantToJobRunLookupDatasDeleteMany) Tx() TenantManyTxResult { +func (r tenantToLogsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToStepRunsFindUnique struct { +type tenantToSnsIntegrationsFindUnique struct { query builder.Query } -func (r tenantToStepRunsFindUnique) getQuery() builder.Query { +func (r tenantToSnsIntegrationsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToStepRunsFindUnique) ExtractQuery() builder.Query { +func (r tenantToSnsIntegrationsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRunsFindUnique) with() {} -func (r tenantToStepRunsFindUnique) tenantModel() {} -func (r tenantToStepRunsFindUnique) tenantRelation() {} +func (r tenantToSnsIntegrationsFindUnique) with() {} +func (r tenantToSnsIntegrationsFindUnique) tenantModel() {} +func (r tenantToSnsIntegrationsFindUnique) tenantRelation() {} -func (r tenantToStepRunsFindUnique) With(params ...StepRunRelationWith) tenantToStepRunsFindUnique { +func (r tenantToSnsIntegrationsFindUnique) With(params ...SNSIntegrationRelationWith) tenantToSnsIntegrationsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -249543,7 +274162,7 @@ func (r tenantToStepRunsFindUnique) With(params ...StepRunRelationWith) tenantTo return r } -func (r tenantToStepRunsFindUnique) Select(params ...tenantPrismaFields) tenantToStepRunsFindUnique { +func (r tenantToSnsIntegrationsFindUnique) Select(params ...tenantPrismaFields) tenantToSnsIntegrationsFindUnique { var outputs []builder.Output for _, param := range params { @@ -249557,7 +274176,7 @@ func (r tenantToStepRunsFindUnique) Select(params ...tenantPrismaFields) tenantT return r } -func (r tenantToStepRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToStepRunsFindUnique { +func (r tenantToSnsIntegrationsFindUnique) Omit(params ...tenantPrismaFields) tenantToSnsIntegrationsFindUnique { var outputs []builder.Output var raw []string @@ -249576,7 +274195,7 @@ func (r tenantToStepRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToS return r } -func (r tenantToStepRunsFindUnique) Exec(ctx context.Context) ( +func (r tenantToSnsIntegrationsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -249592,7 +274211,7 @@ func (r tenantToStepRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepRunsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToSnsIntegrationsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -249608,12 +274227,12 @@ func (r tenantToStepRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToStepRunsFindUnique) Update(params ...TenantSetParam) tenantToStepRunsUpdateUnique { +func (r tenantToSnsIntegrationsFindUnique) Update(params ...TenantSetParam) tenantToSnsIntegrationsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToStepRunsUpdateUnique + var v tenantToSnsIntegrationsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -249642,17 +274261,17 @@ func (r tenantToStepRunsFindUnique) Update(params ...TenantSetParam) tenantToSte return v } -type tenantToStepRunsUpdateUnique struct { +type tenantToSnsIntegrationsUpdateUnique struct { query builder.Query } -func (r tenantToStepRunsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToSnsIntegrationsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRunsUpdateUnique) tenantModel() {} +func (r tenantToSnsIntegrationsUpdateUnique) tenantModel() {} -func (r tenantToStepRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToSnsIntegrationsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -249660,15 +274279,15 @@ func (r tenantToStepRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, e return &v, nil } -func (r tenantToStepRunsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToSnsIntegrationsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToStepRunsFindUnique) Delete() tenantToStepRunsDeleteUnique { - var v tenantToStepRunsDeleteUnique +func (r tenantToSnsIntegrationsFindUnique) Delete() tenantToSnsIntegrationsDeleteUnique { + var v tenantToSnsIntegrationsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -249677,17 +274296,17 @@ func (r tenantToStepRunsFindUnique) Delete() tenantToStepRunsDeleteUnique { return v } -type tenantToStepRunsDeleteUnique struct { +type tenantToSnsIntegrationsDeleteUnique struct { query builder.Query } -func (r tenantToStepRunsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToSnsIntegrationsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToStepRunsDeleteUnique) tenantModel() {} +func (p tenantToSnsIntegrationsDeleteUnique) tenantModel() {} -func (r tenantToStepRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToSnsIntegrationsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -249695,30 +274314,30 @@ func (r tenantToStepRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, e return &v, nil } -func (r tenantToStepRunsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToSnsIntegrationsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToStepRunsFindFirst struct { +type tenantToSnsIntegrationsFindFirst struct { query builder.Query } -func (r tenantToStepRunsFindFirst) getQuery() builder.Query { +func (r tenantToSnsIntegrationsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToStepRunsFindFirst) ExtractQuery() builder.Query { +func (r tenantToSnsIntegrationsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRunsFindFirst) with() {} -func (r tenantToStepRunsFindFirst) tenantModel() {} -func (r tenantToStepRunsFindFirst) tenantRelation() {} +func (r tenantToSnsIntegrationsFindFirst) with() {} +func (r tenantToSnsIntegrationsFindFirst) tenantModel() {} +func (r tenantToSnsIntegrationsFindFirst) tenantRelation() {} -func (r tenantToStepRunsFindFirst) With(params ...StepRunRelationWith) tenantToStepRunsFindFirst { +func (r tenantToSnsIntegrationsFindFirst) With(params ...SNSIntegrationRelationWith) tenantToSnsIntegrationsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -249731,7 +274350,7 @@ func (r tenantToStepRunsFindFirst) With(params ...StepRunRelationWith) tenantToS return r } -func (r tenantToStepRunsFindFirst) Select(params ...tenantPrismaFields) tenantToStepRunsFindFirst { +func (r tenantToSnsIntegrationsFindFirst) Select(params ...tenantPrismaFields) tenantToSnsIntegrationsFindFirst { var outputs []builder.Output for _, param := range params { @@ -249745,7 +274364,7 @@ func (r tenantToStepRunsFindFirst) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToStepRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToStepRunsFindFirst { +func (r tenantToSnsIntegrationsFindFirst) Omit(params ...tenantPrismaFields) tenantToSnsIntegrationsFindFirst { var outputs []builder.Output var raw []string @@ -249764,7 +274383,7 @@ func (r tenantToStepRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToSt return r } -func (r tenantToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) tenantToStepRunsFindFirst { +func (r tenantToSnsIntegrationsFindFirst) OrderBy(params ...SNSIntegrationOrderByParam) tenantToSnsIntegrationsFindFirst { var fields []builder.Field for _, param := range params { @@ -249784,7 +274403,7 @@ func (r tenantToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) tenant return r } -func (r tenantToStepRunsFindFirst) Skip(count int) tenantToStepRunsFindFirst { +func (r tenantToSnsIntegrationsFindFirst) Skip(count int) tenantToSnsIntegrationsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -249792,7 +274411,7 @@ func (r tenantToStepRunsFindFirst) Skip(count int) tenantToStepRunsFindFirst { return r } -func (r tenantToStepRunsFindFirst) Take(count int) tenantToStepRunsFindFirst { +func (r tenantToSnsIntegrationsFindFirst) Take(count int) tenantToSnsIntegrationsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -249800,7 +274419,7 @@ func (r tenantToStepRunsFindFirst) Take(count int) tenantToStepRunsFindFirst { return r } -func (r tenantToStepRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToStepRunsFindFirst { +func (r tenantToSnsIntegrationsFindFirst) Cursor(cursor TenantCursorParam) tenantToSnsIntegrationsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -249808,7 +274427,7 @@ func (r tenantToStepRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToStep return r } -func (r tenantToStepRunsFindFirst) Exec(ctx context.Context) ( +func (r tenantToSnsIntegrationsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -249824,7 +274443,7 @@ func (r tenantToStepRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepRunsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToSnsIntegrationsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -249840,23 +274459,23 @@ func (r tenantToStepRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToStepRunsFindMany struct { +type tenantToSnsIntegrationsFindMany struct { query builder.Query } -func (r tenantToStepRunsFindMany) getQuery() builder.Query { +func (r tenantToSnsIntegrationsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToStepRunsFindMany) ExtractQuery() builder.Query { +func (r tenantToSnsIntegrationsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRunsFindMany) with() {} -func (r tenantToStepRunsFindMany) tenantModel() {} -func (r tenantToStepRunsFindMany) tenantRelation() {} +func (r tenantToSnsIntegrationsFindMany) with() {} +func (r tenantToSnsIntegrationsFindMany) tenantModel() {} +func (r tenantToSnsIntegrationsFindMany) tenantRelation() {} -func (r tenantToStepRunsFindMany) With(params ...StepRunRelationWith) tenantToStepRunsFindMany { +func (r tenantToSnsIntegrationsFindMany) With(params ...SNSIntegrationRelationWith) tenantToSnsIntegrationsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -249869,7 +274488,7 @@ func (r tenantToStepRunsFindMany) With(params ...StepRunRelationWith) tenantToSt return r } -func (r tenantToStepRunsFindMany) Select(params ...tenantPrismaFields) tenantToStepRunsFindMany { +func (r tenantToSnsIntegrationsFindMany) Select(params ...tenantPrismaFields) tenantToSnsIntegrationsFindMany { var outputs []builder.Output for _, param := range params { @@ -249883,7 +274502,7 @@ func (r tenantToStepRunsFindMany) Select(params ...tenantPrismaFields) tenantToS return r } -func (r tenantToStepRunsFindMany) Omit(params ...tenantPrismaFields) tenantToStepRunsFindMany { +func (r tenantToSnsIntegrationsFindMany) Omit(params ...tenantPrismaFields) tenantToSnsIntegrationsFindMany { var outputs []builder.Output var raw []string @@ -249902,7 +274521,7 @@ func (r tenantToStepRunsFindMany) Omit(params ...tenantPrismaFields) tenantToSte return r } -func (r tenantToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) tenantToStepRunsFindMany { +func (r tenantToSnsIntegrationsFindMany) OrderBy(params ...SNSIntegrationOrderByParam) tenantToSnsIntegrationsFindMany { var fields []builder.Field for _, param := range params { @@ -249922,7 +274541,7 @@ func (r tenantToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) tenantT return r } -func (r tenantToStepRunsFindMany) Skip(count int) tenantToStepRunsFindMany { +func (r tenantToSnsIntegrationsFindMany) Skip(count int) tenantToSnsIntegrationsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -249930,7 +274549,7 @@ func (r tenantToStepRunsFindMany) Skip(count int) tenantToStepRunsFindMany { return r } -func (r tenantToStepRunsFindMany) Take(count int) tenantToStepRunsFindMany { +func (r tenantToSnsIntegrationsFindMany) Take(count int) tenantToSnsIntegrationsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -249938,7 +274557,7 @@ func (r tenantToStepRunsFindMany) Take(count int) tenantToStepRunsFindMany { return r } -func (r tenantToStepRunsFindMany) Cursor(cursor TenantCursorParam) tenantToStepRunsFindMany { +func (r tenantToSnsIntegrationsFindMany) Cursor(cursor TenantCursorParam) tenantToSnsIntegrationsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -249946,7 +274565,7 @@ func (r tenantToStepRunsFindMany) Cursor(cursor TenantCursorParam) tenantToStepR return r } -func (r tenantToStepRunsFindMany) Exec(ctx context.Context) ( +func (r tenantToSnsIntegrationsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -249958,7 +274577,7 @@ func (r tenantToStepRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepRunsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToSnsIntegrationsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -249970,14 +274589,14 @@ func (r tenantToStepRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToStepRunsFindMany) Update(params ...TenantSetParam) tenantToStepRunsUpdateMany { +func (r tenantToSnsIntegrationsFindMany) Update(params ...TenantSetParam) tenantToSnsIntegrationsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToStepRunsUpdateMany + var v tenantToSnsIntegrationsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -250006,17 +274625,17 @@ func (r tenantToStepRunsFindMany) Update(params ...TenantSetParam) tenantToStepR return v } -type tenantToStepRunsUpdateMany struct { +type tenantToSnsIntegrationsUpdateMany struct { query builder.Query } -func (r tenantToStepRunsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToSnsIntegrationsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRunsUpdateMany) tenantModel() {} +func (r tenantToSnsIntegrationsUpdateMany) tenantModel() {} -func (r tenantToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToSnsIntegrationsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -250024,15 +274643,15 @@ func (r tenantToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tenantToStepRunsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToSnsIntegrationsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToStepRunsFindMany) Delete() tenantToStepRunsDeleteMany { - var v tenantToStepRunsDeleteMany +func (r tenantToSnsIntegrationsFindMany) Delete() tenantToSnsIntegrationsDeleteMany { + var v tenantToSnsIntegrationsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -250043,17 +274662,17 @@ func (r tenantToStepRunsFindMany) Delete() tenantToStepRunsDeleteMany { return v } -type tenantToStepRunsDeleteMany struct { +type tenantToSnsIntegrationsDeleteMany struct { query builder.Query } -func (r tenantToStepRunsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToSnsIntegrationsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToStepRunsDeleteMany) tenantModel() {} +func (p tenantToSnsIntegrationsDeleteMany) tenantModel() {} -func (r tenantToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToSnsIntegrationsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -250061,30 +274680,30 @@ func (r tenantToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tenantToStepRunsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToSnsIntegrationsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkersFindUnique struct { +type tenantToRateLimitsFindUnique struct { query builder.Query } -func (r tenantToWorkersFindUnique) getQuery() builder.Query { +func (r tenantToRateLimitsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToWorkersFindUnique) ExtractQuery() builder.Query { +func (r tenantToRateLimitsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkersFindUnique) with() {} -func (r tenantToWorkersFindUnique) tenantModel() {} -func (r tenantToWorkersFindUnique) tenantRelation() {} +func (r tenantToRateLimitsFindUnique) with() {} +func (r tenantToRateLimitsFindUnique) tenantModel() {} +func (r tenantToRateLimitsFindUnique) tenantRelation() {} -func (r tenantToWorkersFindUnique) With(params ...WorkerRelationWith) tenantToWorkersFindUnique { +func (r tenantToRateLimitsFindUnique) With(params ...RateLimitRelationWith) tenantToRateLimitsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -250097,7 +274716,7 @@ func (r tenantToWorkersFindUnique) With(params ...WorkerRelationWith) tenantToWo return r } -func (r tenantToWorkersFindUnique) Select(params ...tenantPrismaFields) tenantToWorkersFindUnique { +func (r tenantToRateLimitsFindUnique) Select(params ...tenantPrismaFields) tenantToRateLimitsFindUnique { var outputs []builder.Output for _, param := range params { @@ -250111,7 +274730,7 @@ func (r tenantToWorkersFindUnique) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToWorkersFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkersFindUnique { +func (r tenantToRateLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantToRateLimitsFindUnique { var outputs []builder.Output var raw []string @@ -250130,7 +274749,7 @@ func (r tenantToWorkersFindUnique) Omit(params ...tenantPrismaFields) tenantToWo return r } -func (r tenantToWorkersFindUnique) Exec(ctx context.Context) ( +func (r tenantToRateLimitsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -250146,7 +274765,7 @@ func (r tenantToWorkersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkersFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToRateLimitsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -250162,12 +274781,12 @@ func (r tenantToWorkersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkersFindUnique) Update(params ...TenantSetParam) tenantToWorkersUpdateUnique { +func (r tenantToRateLimitsFindUnique) Update(params ...TenantSetParam) tenantToRateLimitsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToWorkersUpdateUnique + var v tenantToRateLimitsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -250196,17 +274815,17 @@ func (r tenantToWorkersFindUnique) Update(params ...TenantSetParam) tenantToWork return v } -type tenantToWorkersUpdateUnique struct { +type tenantToRateLimitsUpdateUnique struct { query builder.Query } -func (r tenantToWorkersUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToRateLimitsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkersUpdateUnique) tenantModel() {} +func (r tenantToRateLimitsUpdateUnique) tenantModel() {} -func (r tenantToWorkersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToRateLimitsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -250214,15 +274833,15 @@ func (r tenantToWorkersUpdateUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToWorkersUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToRateLimitsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkersFindUnique) Delete() tenantToWorkersDeleteUnique { - var v tenantToWorkersDeleteUnique +func (r tenantToRateLimitsFindUnique) Delete() tenantToRateLimitsDeleteUnique { + var v tenantToRateLimitsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -250231,17 +274850,17 @@ func (r tenantToWorkersFindUnique) Delete() tenantToWorkersDeleteUnique { return v } -type tenantToWorkersDeleteUnique struct { +type tenantToRateLimitsDeleteUnique struct { query builder.Query } -func (r tenantToWorkersDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToRateLimitsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkersDeleteUnique) tenantModel() {} +func (p tenantToRateLimitsDeleteUnique) tenantModel() {} -func (r tenantToWorkersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToRateLimitsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -250249,30 +274868,30 @@ func (r tenantToWorkersDeleteUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToWorkersDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToRateLimitsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkersFindFirst struct { +type tenantToRateLimitsFindFirst struct { query builder.Query } -func (r tenantToWorkersFindFirst) getQuery() builder.Query { +func (r tenantToRateLimitsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToWorkersFindFirst) ExtractQuery() builder.Query { +func (r tenantToRateLimitsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkersFindFirst) with() {} -func (r tenantToWorkersFindFirst) tenantModel() {} -func (r tenantToWorkersFindFirst) tenantRelation() {} +func (r tenantToRateLimitsFindFirst) with() {} +func (r tenantToRateLimitsFindFirst) tenantModel() {} +func (r tenantToRateLimitsFindFirst) tenantRelation() {} -func (r tenantToWorkersFindFirst) With(params ...WorkerRelationWith) tenantToWorkersFindFirst { +func (r tenantToRateLimitsFindFirst) With(params ...RateLimitRelationWith) tenantToRateLimitsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -250285,7 +274904,7 @@ func (r tenantToWorkersFindFirst) With(params ...WorkerRelationWith) tenantToWor return r } -func (r tenantToWorkersFindFirst) Select(params ...tenantPrismaFields) tenantToWorkersFindFirst { +func (r tenantToRateLimitsFindFirst) Select(params ...tenantPrismaFields) tenantToRateLimitsFindFirst { var outputs []builder.Output for _, param := range params { @@ -250299,7 +274918,7 @@ func (r tenantToWorkersFindFirst) Select(params ...tenantPrismaFields) tenantToW return r } -func (r tenantToWorkersFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkersFindFirst { +func (r tenantToRateLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantToRateLimitsFindFirst { var outputs []builder.Output var raw []string @@ -250318,7 +274937,7 @@ func (r tenantToWorkersFindFirst) Omit(params ...tenantPrismaFields) tenantToWor return r } -func (r tenantToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) tenantToWorkersFindFirst { +func (r tenantToRateLimitsFindFirst) OrderBy(params ...RateLimitOrderByParam) tenantToRateLimitsFindFirst { var fields []builder.Field for _, param := range params { @@ -250338,7 +274957,7 @@ func (r tenantToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) tenantTo return r } -func (r tenantToWorkersFindFirst) Skip(count int) tenantToWorkersFindFirst { +func (r tenantToRateLimitsFindFirst) Skip(count int) tenantToRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -250346,7 +274965,7 @@ func (r tenantToWorkersFindFirst) Skip(count int) tenantToWorkersFindFirst { return r } -func (r tenantToWorkersFindFirst) Take(count int) tenantToWorkersFindFirst { +func (r tenantToRateLimitsFindFirst) Take(count int) tenantToRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -250354,7 +274973,7 @@ func (r tenantToWorkersFindFirst) Take(count int) tenantToWorkersFindFirst { return r } -func (r tenantToWorkersFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkersFindFirst { +func (r tenantToRateLimitsFindFirst) Cursor(cursor TenantCursorParam) tenantToRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -250362,7 +274981,7 @@ func (r tenantToWorkersFindFirst) Cursor(cursor TenantCursorParam) tenantToWorke return r } -func (r tenantToWorkersFindFirst) Exec(ctx context.Context) ( +func (r tenantToRateLimitsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -250378,7 +274997,7 @@ func (r tenantToWorkersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkersFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToRateLimitsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -250394,23 +275013,23 @@ func (r tenantToWorkersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToWorkersFindMany struct { +type tenantToRateLimitsFindMany struct { query builder.Query } -func (r tenantToWorkersFindMany) getQuery() builder.Query { +func (r tenantToRateLimitsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToWorkersFindMany) ExtractQuery() builder.Query { +func (r tenantToRateLimitsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkersFindMany) with() {} -func (r tenantToWorkersFindMany) tenantModel() {} -func (r tenantToWorkersFindMany) tenantRelation() {} +func (r tenantToRateLimitsFindMany) with() {} +func (r tenantToRateLimitsFindMany) tenantModel() {} +func (r tenantToRateLimitsFindMany) tenantRelation() {} -func (r tenantToWorkersFindMany) With(params ...WorkerRelationWith) tenantToWorkersFindMany { +func (r tenantToRateLimitsFindMany) With(params ...RateLimitRelationWith) tenantToRateLimitsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -250423,7 +275042,7 @@ func (r tenantToWorkersFindMany) With(params ...WorkerRelationWith) tenantToWork return r } -func (r tenantToWorkersFindMany) Select(params ...tenantPrismaFields) tenantToWorkersFindMany { +func (r tenantToRateLimitsFindMany) Select(params ...tenantPrismaFields) tenantToRateLimitsFindMany { var outputs []builder.Output for _, param := range params { @@ -250437,7 +275056,7 @@ func (r tenantToWorkersFindMany) Select(params ...tenantPrismaFields) tenantToWo return r } -func (r tenantToWorkersFindMany) Omit(params ...tenantPrismaFields) tenantToWorkersFindMany { +func (r tenantToRateLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToRateLimitsFindMany { var outputs []builder.Output var raw []string @@ -250456,7 +275075,7 @@ func (r tenantToWorkersFindMany) Omit(params ...tenantPrismaFields) tenantToWork return r } -func (r tenantToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) tenantToWorkersFindMany { +func (r tenantToRateLimitsFindMany) OrderBy(params ...RateLimitOrderByParam) tenantToRateLimitsFindMany { var fields []builder.Field for _, param := range params { @@ -250476,7 +275095,7 @@ func (r tenantToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) tenantToW return r } -func (r tenantToWorkersFindMany) Skip(count int) tenantToWorkersFindMany { +func (r tenantToRateLimitsFindMany) Skip(count int) tenantToRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -250484,7 +275103,7 @@ func (r tenantToWorkersFindMany) Skip(count int) tenantToWorkersFindMany { return r } -func (r tenantToWorkersFindMany) Take(count int) tenantToWorkersFindMany { +func (r tenantToRateLimitsFindMany) Take(count int) tenantToRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -250492,7 +275111,7 @@ func (r tenantToWorkersFindMany) Take(count int) tenantToWorkersFindMany { return r } -func (r tenantToWorkersFindMany) Cursor(cursor TenantCursorParam) tenantToWorkersFindMany { +func (r tenantToRateLimitsFindMany) Cursor(cursor TenantCursorParam) tenantToRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -250500,7 +275119,7 @@ func (r tenantToWorkersFindMany) Cursor(cursor TenantCursorParam) tenantToWorker return r } -func (r tenantToWorkersFindMany) Exec(ctx context.Context) ( +func (r tenantToRateLimitsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -250512,7 +275131,7 @@ func (r tenantToWorkersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkersFindMany) ExecInner(ctx context.Context) ( +func (r tenantToRateLimitsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -250524,14 +275143,14 @@ func (r tenantToWorkersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkersFindMany) Update(params ...TenantSetParam) tenantToWorkersUpdateMany { +func (r tenantToRateLimitsFindMany) Update(params ...TenantSetParam) tenantToRateLimitsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToWorkersUpdateMany + var v tenantToRateLimitsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -250560,17 +275179,17 @@ func (r tenantToWorkersFindMany) Update(params ...TenantSetParam) tenantToWorker return v } -type tenantToWorkersUpdateMany struct { +type tenantToRateLimitsUpdateMany struct { query builder.Query } -func (r tenantToWorkersUpdateMany) ExtractQuery() builder.Query { +func (r tenantToRateLimitsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkersUpdateMany) tenantModel() {} +func (r tenantToRateLimitsUpdateMany) tenantModel() {} -func (r tenantToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -250578,15 +275197,15 @@ func (r tenantToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToWorkersUpdateMany) Tx() TenantManyTxResult { +func (r tenantToRateLimitsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkersFindMany) Delete() tenantToWorkersDeleteMany { - var v tenantToWorkersDeleteMany +func (r tenantToRateLimitsFindMany) Delete() tenantToRateLimitsDeleteMany { + var v tenantToRateLimitsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -250597,17 +275216,17 @@ func (r tenantToWorkersFindMany) Delete() tenantToWorkersDeleteMany { return v } -type tenantToWorkersDeleteMany struct { +type tenantToRateLimitsDeleteMany struct { query builder.Query } -func (r tenantToWorkersDeleteMany) ExtractQuery() builder.Query { +func (r tenantToRateLimitsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkersDeleteMany) tenantModel() {} +func (p tenantToRateLimitsDeleteMany) tenantModel() {} -func (r tenantToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -250615,30 +275234,30 @@ func (r tenantToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToWorkersDeleteMany) Tx() TenantManyTxResult { +func (r tenantToRateLimitsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToMembersFindUnique struct { +type tenantToStepRateLimitsFindUnique struct { query builder.Query } -func (r tenantToMembersFindUnique) getQuery() builder.Query { +func (r tenantToStepRateLimitsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToMembersFindUnique) ExtractQuery() builder.Query { +func (r tenantToStepRateLimitsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToMembersFindUnique) with() {} -func (r tenantToMembersFindUnique) tenantModel() {} -func (r tenantToMembersFindUnique) tenantRelation() {} +func (r tenantToStepRateLimitsFindUnique) with() {} +func (r tenantToStepRateLimitsFindUnique) tenantModel() {} +func (r tenantToStepRateLimitsFindUnique) tenantRelation() {} -func (r tenantToMembersFindUnique) With(params ...TenantMemberRelationWith) tenantToMembersFindUnique { +func (r tenantToStepRateLimitsFindUnique) With(params ...StepRateLimitRelationWith) tenantToStepRateLimitsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -250651,7 +275270,7 @@ func (r tenantToMembersFindUnique) With(params ...TenantMemberRelationWith) tena return r } -func (r tenantToMembersFindUnique) Select(params ...tenantPrismaFields) tenantToMembersFindUnique { +func (r tenantToStepRateLimitsFindUnique) Select(params ...tenantPrismaFields) tenantToStepRateLimitsFindUnique { var outputs []builder.Output for _, param := range params { @@ -250665,7 +275284,7 @@ func (r tenantToMembersFindUnique) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToMembersFindUnique) Omit(params ...tenantPrismaFields) tenantToMembersFindUnique { +func (r tenantToStepRateLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantToStepRateLimitsFindUnique { var outputs []builder.Output var raw []string @@ -250684,7 +275303,7 @@ func (r tenantToMembersFindUnique) Omit(params ...tenantPrismaFields) tenantToMe return r } -func (r tenantToMembersFindUnique) Exec(ctx context.Context) ( +func (r tenantToStepRateLimitsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -250700,7 +275319,7 @@ func (r tenantToMembersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToMembersFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToStepRateLimitsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -250716,12 +275335,12 @@ func (r tenantToMembersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToMembersFindUnique) Update(params ...TenantSetParam) tenantToMembersUpdateUnique { +func (r tenantToStepRateLimitsFindUnique) Update(params ...TenantSetParam) tenantToStepRateLimitsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToMembersUpdateUnique + var v tenantToStepRateLimitsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -250750,17 +275369,17 @@ func (r tenantToMembersFindUnique) Update(params ...TenantSetParam) tenantToMemb return v } -type tenantToMembersUpdateUnique struct { +type tenantToStepRateLimitsUpdateUnique struct { query builder.Query } -func (r tenantToMembersUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToStepRateLimitsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToMembersUpdateUnique) tenantModel() {} +func (r tenantToStepRateLimitsUpdateUnique) tenantModel() {} -func (r tenantToMembersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToStepRateLimitsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -250768,15 +275387,15 @@ func (r tenantToMembersUpdateUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToMembersUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToStepRateLimitsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToMembersFindUnique) Delete() tenantToMembersDeleteUnique { - var v tenantToMembersDeleteUnique +func (r tenantToStepRateLimitsFindUnique) Delete() tenantToStepRateLimitsDeleteUnique { + var v tenantToStepRateLimitsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -250785,17 +275404,17 @@ func (r tenantToMembersFindUnique) Delete() tenantToMembersDeleteUnique { return v } -type tenantToMembersDeleteUnique struct { +type tenantToStepRateLimitsDeleteUnique struct { query builder.Query } -func (r tenantToMembersDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToStepRateLimitsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToMembersDeleteUnique) tenantModel() {} +func (p tenantToStepRateLimitsDeleteUnique) tenantModel() {} -func (r tenantToMembersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToStepRateLimitsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -250803,30 +275422,30 @@ func (r tenantToMembersDeleteUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToMembersDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToStepRateLimitsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToMembersFindFirst struct { +type tenantToStepRateLimitsFindFirst struct { query builder.Query } -func (r tenantToMembersFindFirst) getQuery() builder.Query { +func (r tenantToStepRateLimitsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToMembersFindFirst) ExtractQuery() builder.Query { +func (r tenantToStepRateLimitsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToMembersFindFirst) with() {} -func (r tenantToMembersFindFirst) tenantModel() {} -func (r tenantToMembersFindFirst) tenantRelation() {} +func (r tenantToStepRateLimitsFindFirst) with() {} +func (r tenantToStepRateLimitsFindFirst) tenantModel() {} +func (r tenantToStepRateLimitsFindFirst) tenantRelation() {} -func (r tenantToMembersFindFirst) With(params ...TenantMemberRelationWith) tenantToMembersFindFirst { +func (r tenantToStepRateLimitsFindFirst) With(params ...StepRateLimitRelationWith) tenantToStepRateLimitsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -250839,7 +275458,7 @@ func (r tenantToMembersFindFirst) With(params ...TenantMemberRelationWith) tenan return r } -func (r tenantToMembersFindFirst) Select(params ...tenantPrismaFields) tenantToMembersFindFirst { +func (r tenantToStepRateLimitsFindFirst) Select(params ...tenantPrismaFields) tenantToStepRateLimitsFindFirst { var outputs []builder.Output for _, param := range params { @@ -250853,7 +275472,7 @@ func (r tenantToMembersFindFirst) Select(params ...tenantPrismaFields) tenantToM return r } -func (r tenantToMembersFindFirst) Omit(params ...tenantPrismaFields) tenantToMembersFindFirst { +func (r tenantToStepRateLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantToStepRateLimitsFindFirst { var outputs []builder.Output var raw []string @@ -250872,7 +275491,7 @@ func (r tenantToMembersFindFirst) Omit(params ...tenantPrismaFields) tenantToMem return r } -func (r tenantToMembersFindFirst) OrderBy(params ...TenantMemberOrderByParam) tenantToMembersFindFirst { +func (r tenantToStepRateLimitsFindFirst) OrderBy(params ...StepRateLimitOrderByParam) tenantToStepRateLimitsFindFirst { var fields []builder.Field for _, param := range params { @@ -250892,7 +275511,7 @@ func (r tenantToMembersFindFirst) OrderBy(params ...TenantMemberOrderByParam) te return r } -func (r tenantToMembersFindFirst) Skip(count int) tenantToMembersFindFirst { +func (r tenantToStepRateLimitsFindFirst) Skip(count int) tenantToStepRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -250900,7 +275519,7 @@ func (r tenantToMembersFindFirst) Skip(count int) tenantToMembersFindFirst { return r } -func (r tenantToMembersFindFirst) Take(count int) tenantToMembersFindFirst { +func (r tenantToStepRateLimitsFindFirst) Take(count int) tenantToStepRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -250908,7 +275527,7 @@ func (r tenantToMembersFindFirst) Take(count int) tenantToMembersFindFirst { return r } -func (r tenantToMembersFindFirst) Cursor(cursor TenantCursorParam) tenantToMembersFindFirst { +func (r tenantToStepRateLimitsFindFirst) Cursor(cursor TenantCursorParam) tenantToStepRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -250916,7 +275535,7 @@ func (r tenantToMembersFindFirst) Cursor(cursor TenantCursorParam) tenantToMembe return r } -func (r tenantToMembersFindFirst) Exec(ctx context.Context) ( +func (r tenantToStepRateLimitsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -250932,7 +275551,7 @@ func (r tenantToMembersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToMembersFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToStepRateLimitsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -250948,23 +275567,23 @@ func (r tenantToMembersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToMembersFindMany struct { +type tenantToStepRateLimitsFindMany struct { query builder.Query } -func (r tenantToMembersFindMany) getQuery() builder.Query { +func (r tenantToStepRateLimitsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToMembersFindMany) ExtractQuery() builder.Query { +func (r tenantToStepRateLimitsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToMembersFindMany) with() {} -func (r tenantToMembersFindMany) tenantModel() {} -func (r tenantToMembersFindMany) tenantRelation() {} +func (r tenantToStepRateLimitsFindMany) with() {} +func (r tenantToStepRateLimitsFindMany) tenantModel() {} +func (r tenantToStepRateLimitsFindMany) tenantRelation() {} -func (r tenantToMembersFindMany) With(params ...TenantMemberRelationWith) tenantToMembersFindMany { +func (r tenantToStepRateLimitsFindMany) With(params ...StepRateLimitRelationWith) tenantToStepRateLimitsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -250977,7 +275596,7 @@ func (r tenantToMembersFindMany) With(params ...TenantMemberRelationWith) tenant return r } -func (r tenantToMembersFindMany) Select(params ...tenantPrismaFields) tenantToMembersFindMany { +func (r tenantToStepRateLimitsFindMany) Select(params ...tenantPrismaFields) tenantToStepRateLimitsFindMany { var outputs []builder.Output for _, param := range params { @@ -250991,7 +275610,7 @@ func (r tenantToMembersFindMany) Select(params ...tenantPrismaFields) tenantToMe return r } -func (r tenantToMembersFindMany) Omit(params ...tenantPrismaFields) tenantToMembersFindMany { +func (r tenantToStepRateLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToStepRateLimitsFindMany { var outputs []builder.Output var raw []string @@ -251010,7 +275629,7 @@ func (r tenantToMembersFindMany) Omit(params ...tenantPrismaFields) tenantToMemb return r } -func (r tenantToMembersFindMany) OrderBy(params ...TenantMemberOrderByParam) tenantToMembersFindMany { +func (r tenantToStepRateLimitsFindMany) OrderBy(params ...StepRateLimitOrderByParam) tenantToStepRateLimitsFindMany { var fields []builder.Field for _, param := range params { @@ -251030,7 +275649,7 @@ func (r tenantToMembersFindMany) OrderBy(params ...TenantMemberOrderByParam) ten return r } -func (r tenantToMembersFindMany) Skip(count int) tenantToMembersFindMany { +func (r tenantToStepRateLimitsFindMany) Skip(count int) tenantToStepRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -251038,7 +275657,7 @@ func (r tenantToMembersFindMany) Skip(count int) tenantToMembersFindMany { return r } -func (r tenantToMembersFindMany) Take(count int) tenantToMembersFindMany { +func (r tenantToStepRateLimitsFindMany) Take(count int) tenantToStepRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -251046,7 +275665,7 @@ func (r tenantToMembersFindMany) Take(count int) tenantToMembersFindMany { return r } -func (r tenantToMembersFindMany) Cursor(cursor TenantCursorParam) tenantToMembersFindMany { +func (r tenantToStepRateLimitsFindMany) Cursor(cursor TenantCursorParam) tenantToStepRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -251054,7 +275673,7 @@ func (r tenantToMembersFindMany) Cursor(cursor TenantCursorParam) tenantToMember return r } -func (r tenantToMembersFindMany) Exec(ctx context.Context) ( +func (r tenantToStepRateLimitsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -251066,7 +275685,7 @@ func (r tenantToMembersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToMembersFindMany) ExecInner(ctx context.Context) ( +func (r tenantToStepRateLimitsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -251078,14 +275697,14 @@ func (r tenantToMembersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToMembersFindMany) Update(params ...TenantSetParam) tenantToMembersUpdateMany { +func (r tenantToStepRateLimitsFindMany) Update(params ...TenantSetParam) tenantToStepRateLimitsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToMembersUpdateMany + var v tenantToStepRateLimitsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -251114,17 +275733,17 @@ func (r tenantToMembersFindMany) Update(params ...TenantSetParam) tenantToMember return v } -type tenantToMembersUpdateMany struct { +type tenantToStepRateLimitsUpdateMany struct { query builder.Query } -func (r tenantToMembersUpdateMany) ExtractQuery() builder.Query { +func (r tenantToStepRateLimitsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToMembersUpdateMany) tenantModel() {} +func (r tenantToStepRateLimitsUpdateMany) tenantModel() {} -func (r tenantToMembersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToStepRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -251132,15 +275751,15 @@ func (r tenantToMembersUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToMembersUpdateMany) Tx() TenantManyTxResult { +func (r tenantToStepRateLimitsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToMembersFindMany) Delete() tenantToMembersDeleteMany { - var v tenantToMembersDeleteMany +func (r tenantToStepRateLimitsFindMany) Delete() tenantToStepRateLimitsDeleteMany { + var v tenantToStepRateLimitsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -251151,17 +275770,17 @@ func (r tenantToMembersFindMany) Delete() tenantToMembersDeleteMany { return v } -type tenantToMembersDeleteMany struct { +type tenantToStepRateLimitsDeleteMany struct { query builder.Query } -func (r tenantToMembersDeleteMany) ExtractQuery() builder.Query { +func (r tenantToStepRateLimitsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToMembersDeleteMany) tenantModel() {} +func (p tenantToStepRateLimitsDeleteMany) tenantModel() {} -func (r tenantToMembersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToStepRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -251169,30 +275788,30 @@ func (r tenantToMembersDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToMembersDeleteMany) Tx() TenantManyTxResult { +func (r tenantToStepRateLimitsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkflowTagsFindUnique struct { +type tenantToAlertEmailGroupsFindUnique struct { query builder.Query } -func (r tenantToWorkflowTagsFindUnique) getQuery() builder.Query { +func (r tenantToAlertEmailGroupsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowTagsFindUnique) ExtractQuery() builder.Query { +func (r tenantToAlertEmailGroupsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowTagsFindUnique) with() {} -func (r tenantToWorkflowTagsFindUnique) tenantModel() {} -func (r tenantToWorkflowTagsFindUnique) tenantRelation() {} +func (r tenantToAlertEmailGroupsFindUnique) with() {} +func (r tenantToAlertEmailGroupsFindUnique) tenantModel() {} +func (r tenantToAlertEmailGroupsFindUnique) tenantRelation() {} -func (r tenantToWorkflowTagsFindUnique) With(params ...WorkflowTagRelationWith) tenantToWorkflowTagsFindUnique { +func (r tenantToAlertEmailGroupsFindUnique) With(params ...TenantAlertEmailGroupRelationWith) tenantToAlertEmailGroupsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -251205,7 +275824,7 @@ func (r tenantToWorkflowTagsFindUnique) With(params ...WorkflowTagRelationWith) return r } -func (r tenantToWorkflowTagsFindUnique) Select(params ...tenantPrismaFields) tenantToWorkflowTagsFindUnique { +func (r tenantToAlertEmailGroupsFindUnique) Select(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindUnique { var outputs []builder.Output for _, param := range params { @@ -251219,7 +275838,7 @@ func (r tenantToWorkflowTagsFindUnique) Select(params ...tenantPrismaFields) ten return r } -func (r tenantToWorkflowTagsFindUnique) Omit(params ...tenantPrismaFields) tenantToWorkflowTagsFindUnique { +func (r tenantToAlertEmailGroupsFindUnique) Omit(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindUnique { var outputs []builder.Output var raw []string @@ -251238,7 +275857,7 @@ func (r tenantToWorkflowTagsFindUnique) Omit(params ...tenantPrismaFields) tenan return r } -func (r tenantToWorkflowTagsFindUnique) Exec(ctx context.Context) ( +func (r tenantToAlertEmailGroupsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -251254,7 +275873,7 @@ func (r tenantToWorkflowTagsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowTagsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToAlertEmailGroupsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -251270,12 +275889,12 @@ func (r tenantToWorkflowTagsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowTagsFindUnique) Update(params ...TenantSetParam) tenantToWorkflowTagsUpdateUnique { +func (r tenantToAlertEmailGroupsFindUnique) Update(params ...TenantSetParam) tenantToAlertEmailGroupsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToWorkflowTagsUpdateUnique + var v tenantToAlertEmailGroupsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -251304,17 +275923,17 @@ func (r tenantToWorkflowTagsFindUnique) Update(params ...TenantSetParam) tenantT return v } -type tenantToWorkflowTagsUpdateUnique struct { +type tenantToAlertEmailGroupsUpdateUnique struct { query builder.Query } -func (r tenantToWorkflowTagsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToAlertEmailGroupsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowTagsUpdateUnique) tenantModel() {} +func (r tenantToAlertEmailGroupsUpdateUnique) tenantModel() {} -func (r tenantToWorkflowTagsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToAlertEmailGroupsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -251322,15 +275941,15 @@ func (r tenantToWorkflowTagsUpdateUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToWorkflowTagsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToAlertEmailGroupsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkflowTagsFindUnique) Delete() tenantToWorkflowTagsDeleteUnique { - var v tenantToWorkflowTagsDeleteUnique +func (r tenantToAlertEmailGroupsFindUnique) Delete() tenantToAlertEmailGroupsDeleteUnique { + var v tenantToAlertEmailGroupsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -251339,17 +275958,17 @@ func (r tenantToWorkflowTagsFindUnique) Delete() tenantToWorkflowTagsDeleteUniqu return v } -type tenantToWorkflowTagsDeleteUnique struct { +type tenantToAlertEmailGroupsDeleteUnique struct { query builder.Query } -func (r tenantToWorkflowTagsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToAlertEmailGroupsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkflowTagsDeleteUnique) tenantModel() {} +func (p tenantToAlertEmailGroupsDeleteUnique) tenantModel() {} -func (r tenantToWorkflowTagsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToAlertEmailGroupsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -251357,30 +275976,30 @@ func (r tenantToWorkflowTagsDeleteUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToWorkflowTagsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToAlertEmailGroupsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWorkflowTagsFindFirst struct { +type tenantToAlertEmailGroupsFindFirst struct { query builder.Query } -func (r tenantToWorkflowTagsFindFirst) getQuery() builder.Query { +func (r tenantToAlertEmailGroupsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowTagsFindFirst) ExtractQuery() builder.Query { +func (r tenantToAlertEmailGroupsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowTagsFindFirst) with() {} -func (r tenantToWorkflowTagsFindFirst) tenantModel() {} -func (r tenantToWorkflowTagsFindFirst) tenantRelation() {} +func (r tenantToAlertEmailGroupsFindFirst) with() {} +func (r tenantToAlertEmailGroupsFindFirst) tenantModel() {} +func (r tenantToAlertEmailGroupsFindFirst) tenantRelation() {} -func (r tenantToWorkflowTagsFindFirst) With(params ...WorkflowTagRelationWith) tenantToWorkflowTagsFindFirst { +func (r tenantToAlertEmailGroupsFindFirst) With(params ...TenantAlertEmailGroupRelationWith) tenantToAlertEmailGroupsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -251393,7 +276012,7 @@ func (r tenantToWorkflowTagsFindFirst) With(params ...WorkflowTagRelationWith) t return r } -func (r tenantToWorkflowTagsFindFirst) Select(params ...tenantPrismaFields) tenantToWorkflowTagsFindFirst { +func (r tenantToAlertEmailGroupsFindFirst) Select(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindFirst { var outputs []builder.Output for _, param := range params { @@ -251407,7 +276026,7 @@ func (r tenantToWorkflowTagsFindFirst) Select(params ...tenantPrismaFields) tena return r } -func (r tenantToWorkflowTagsFindFirst) Omit(params ...tenantPrismaFields) tenantToWorkflowTagsFindFirst { +func (r tenantToAlertEmailGroupsFindFirst) Omit(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindFirst { var outputs []builder.Output var raw []string @@ -251426,7 +276045,7 @@ func (r tenantToWorkflowTagsFindFirst) Omit(params ...tenantPrismaFields) tenant return r } -func (r tenantToWorkflowTagsFindFirst) OrderBy(params ...WorkflowTagOrderByParam) tenantToWorkflowTagsFindFirst { +func (r tenantToAlertEmailGroupsFindFirst) OrderBy(params ...TenantAlertEmailGroupOrderByParam) tenantToAlertEmailGroupsFindFirst { var fields []builder.Field for _, param := range params { @@ -251446,7 +276065,7 @@ func (r tenantToWorkflowTagsFindFirst) OrderBy(params ...WorkflowTagOrderByParam return r } -func (r tenantToWorkflowTagsFindFirst) Skip(count int) tenantToWorkflowTagsFindFirst { +func (r tenantToAlertEmailGroupsFindFirst) Skip(count int) tenantToAlertEmailGroupsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -251454,7 +276073,7 @@ func (r tenantToWorkflowTagsFindFirst) Skip(count int) tenantToWorkflowTagsFindF return r } -func (r tenantToWorkflowTagsFindFirst) Take(count int) tenantToWorkflowTagsFindFirst { +func (r tenantToAlertEmailGroupsFindFirst) Take(count int) tenantToAlertEmailGroupsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -251462,7 +276081,7 @@ func (r tenantToWorkflowTagsFindFirst) Take(count int) tenantToWorkflowTagsFindF return r } -func (r tenantToWorkflowTagsFindFirst) Cursor(cursor TenantCursorParam) tenantToWorkflowTagsFindFirst { +func (r tenantToAlertEmailGroupsFindFirst) Cursor(cursor TenantCursorParam) tenantToAlertEmailGroupsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -251470,7 +276089,7 @@ func (r tenantToWorkflowTagsFindFirst) Cursor(cursor TenantCursorParam) tenantTo return r } -func (r tenantToWorkflowTagsFindFirst) Exec(ctx context.Context) ( +func (r tenantToAlertEmailGroupsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -251486,7 +276105,7 @@ func (r tenantToWorkflowTagsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowTagsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToAlertEmailGroupsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -251502,23 +276121,23 @@ func (r tenantToWorkflowTagsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToWorkflowTagsFindMany struct { +type tenantToAlertEmailGroupsFindMany struct { query builder.Query } -func (r tenantToWorkflowTagsFindMany) getQuery() builder.Query { +func (r tenantToAlertEmailGroupsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToWorkflowTagsFindMany) ExtractQuery() builder.Query { +func (r tenantToAlertEmailGroupsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowTagsFindMany) with() {} -func (r tenantToWorkflowTagsFindMany) tenantModel() {} -func (r tenantToWorkflowTagsFindMany) tenantRelation() {} +func (r tenantToAlertEmailGroupsFindMany) with() {} +func (r tenantToAlertEmailGroupsFindMany) tenantModel() {} +func (r tenantToAlertEmailGroupsFindMany) tenantRelation() {} -func (r tenantToWorkflowTagsFindMany) With(params ...WorkflowTagRelationWith) tenantToWorkflowTagsFindMany { +func (r tenantToAlertEmailGroupsFindMany) With(params ...TenantAlertEmailGroupRelationWith) tenantToAlertEmailGroupsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -251531,7 +276150,7 @@ func (r tenantToWorkflowTagsFindMany) With(params ...WorkflowTagRelationWith) te return r } -func (r tenantToWorkflowTagsFindMany) Select(params ...tenantPrismaFields) tenantToWorkflowTagsFindMany { +func (r tenantToAlertEmailGroupsFindMany) Select(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindMany { var outputs []builder.Output for _, param := range params { @@ -251545,7 +276164,7 @@ func (r tenantToWorkflowTagsFindMany) Select(params ...tenantPrismaFields) tenan return r } -func (r tenantToWorkflowTagsFindMany) Omit(params ...tenantPrismaFields) tenantToWorkflowTagsFindMany { +func (r tenantToAlertEmailGroupsFindMany) Omit(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindMany { var outputs []builder.Output var raw []string @@ -251564,7 +276183,7 @@ func (r tenantToWorkflowTagsFindMany) Omit(params ...tenantPrismaFields) tenantT return r } -func (r tenantToWorkflowTagsFindMany) OrderBy(params ...WorkflowTagOrderByParam) tenantToWorkflowTagsFindMany { +func (r tenantToAlertEmailGroupsFindMany) OrderBy(params ...TenantAlertEmailGroupOrderByParam) tenantToAlertEmailGroupsFindMany { var fields []builder.Field for _, param := range params { @@ -251584,7 +276203,7 @@ func (r tenantToWorkflowTagsFindMany) OrderBy(params ...WorkflowTagOrderByParam) return r } -func (r tenantToWorkflowTagsFindMany) Skip(count int) tenantToWorkflowTagsFindMany { +func (r tenantToAlertEmailGroupsFindMany) Skip(count int) tenantToAlertEmailGroupsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -251592,7 +276211,7 @@ func (r tenantToWorkflowTagsFindMany) Skip(count int) tenantToWorkflowTagsFindMa return r } -func (r tenantToWorkflowTagsFindMany) Take(count int) tenantToWorkflowTagsFindMany { +func (r tenantToAlertEmailGroupsFindMany) Take(count int) tenantToAlertEmailGroupsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -251600,7 +276219,7 @@ func (r tenantToWorkflowTagsFindMany) Take(count int) tenantToWorkflowTagsFindMa return r } -func (r tenantToWorkflowTagsFindMany) Cursor(cursor TenantCursorParam) tenantToWorkflowTagsFindMany { +func (r tenantToAlertEmailGroupsFindMany) Cursor(cursor TenantCursorParam) tenantToAlertEmailGroupsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -251608,7 +276227,7 @@ func (r tenantToWorkflowTagsFindMany) Cursor(cursor TenantCursorParam) tenantToW return r } -func (r tenantToWorkflowTagsFindMany) Exec(ctx context.Context) ( +func (r tenantToAlertEmailGroupsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -251620,7 +276239,7 @@ func (r tenantToWorkflowTagsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowTagsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToAlertEmailGroupsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -251632,14 +276251,14 @@ func (r tenantToWorkflowTagsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWorkflowTagsFindMany) Update(params ...TenantSetParam) tenantToWorkflowTagsUpdateMany { +func (r tenantToAlertEmailGroupsFindMany) Update(params ...TenantSetParam) tenantToAlertEmailGroupsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToWorkflowTagsUpdateMany + var v tenantToAlertEmailGroupsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -251668,17 +276287,17 @@ func (r tenantToWorkflowTagsFindMany) Update(params ...TenantSetParam) tenantToW return v } -type tenantToWorkflowTagsUpdateMany struct { +type tenantToAlertEmailGroupsUpdateMany struct { query builder.Query } -func (r tenantToWorkflowTagsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToAlertEmailGroupsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWorkflowTagsUpdateMany) tenantModel() {} +func (r tenantToAlertEmailGroupsUpdateMany) tenantModel() {} -func (r tenantToWorkflowTagsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToAlertEmailGroupsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -251686,15 +276305,15 @@ func (r tenantToWorkflowTagsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToWorkflowTagsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToAlertEmailGroupsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWorkflowTagsFindMany) Delete() tenantToWorkflowTagsDeleteMany { - var v tenantToWorkflowTagsDeleteMany +func (r tenantToAlertEmailGroupsFindMany) Delete() tenantToAlertEmailGroupsDeleteMany { + var v tenantToAlertEmailGroupsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -251705,17 +276324,17 @@ func (r tenantToWorkflowTagsFindMany) Delete() tenantToWorkflowTagsDeleteMany { return v } -type tenantToWorkflowTagsDeleteMany struct { +type tenantToAlertEmailGroupsDeleteMany struct { query builder.Query } -func (r tenantToWorkflowTagsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToAlertEmailGroupsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToWorkflowTagsDeleteMany) tenantModel() {} +func (p tenantToAlertEmailGroupsDeleteMany) tenantModel() {} -func (r tenantToWorkflowTagsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToAlertEmailGroupsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -251723,30 +276342,30 @@ func (r tenantToWorkflowTagsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToWorkflowTagsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToAlertEmailGroupsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToActionsFindUnique struct { +type tenantToSlackWebhooksFindUnique struct { query builder.Query } -func (r tenantToActionsFindUnique) getQuery() builder.Query { +func (r tenantToSlackWebhooksFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToActionsFindUnique) ExtractQuery() builder.Query { +func (r tenantToSlackWebhooksFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToActionsFindUnique) with() {} -func (r tenantToActionsFindUnique) tenantModel() {} -func (r tenantToActionsFindUnique) tenantRelation() {} +func (r tenantToSlackWebhooksFindUnique) with() {} +func (r tenantToSlackWebhooksFindUnique) tenantModel() {} +func (r tenantToSlackWebhooksFindUnique) tenantRelation() {} -func (r tenantToActionsFindUnique) With(params ...ActionRelationWith) tenantToActionsFindUnique { +func (r tenantToSlackWebhooksFindUnique) With(params ...SlackAppWebhookRelationWith) tenantToSlackWebhooksFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -251759,7 +276378,7 @@ func (r tenantToActionsFindUnique) With(params ...ActionRelationWith) tenantToAc return r } -func (r tenantToActionsFindUnique) Select(params ...tenantPrismaFields) tenantToActionsFindUnique { +func (r tenantToSlackWebhooksFindUnique) Select(params ...tenantPrismaFields) tenantToSlackWebhooksFindUnique { var outputs []builder.Output for _, param := range params { @@ -251773,7 +276392,7 @@ func (r tenantToActionsFindUnique) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToActionsFindUnique) Omit(params ...tenantPrismaFields) tenantToActionsFindUnique { +func (r tenantToSlackWebhooksFindUnique) Omit(params ...tenantPrismaFields) tenantToSlackWebhooksFindUnique { var outputs []builder.Output var raw []string @@ -251792,7 +276411,7 @@ func (r tenantToActionsFindUnique) Omit(params ...tenantPrismaFields) tenantToAc return r } -func (r tenantToActionsFindUnique) Exec(ctx context.Context) ( +func (r tenantToSlackWebhooksFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -251808,7 +276427,7 @@ func (r tenantToActionsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToActionsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToSlackWebhooksFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -251824,12 +276443,12 @@ func (r tenantToActionsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToActionsFindUnique) Update(params ...TenantSetParam) tenantToActionsUpdateUnique { +func (r tenantToSlackWebhooksFindUnique) Update(params ...TenantSetParam) tenantToSlackWebhooksUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToActionsUpdateUnique + var v tenantToSlackWebhooksUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -251858,17 +276477,17 @@ func (r tenantToActionsFindUnique) Update(params ...TenantSetParam) tenantToActi return v } -type tenantToActionsUpdateUnique struct { +type tenantToSlackWebhooksUpdateUnique struct { query builder.Query } -func (r tenantToActionsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToSlackWebhooksUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToActionsUpdateUnique) tenantModel() {} +func (r tenantToSlackWebhooksUpdateUnique) tenantModel() {} -func (r tenantToActionsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToSlackWebhooksUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -251876,15 +276495,15 @@ func (r tenantToActionsUpdateUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToActionsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToSlackWebhooksUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToActionsFindUnique) Delete() tenantToActionsDeleteUnique { - var v tenantToActionsDeleteUnique +func (r tenantToSlackWebhooksFindUnique) Delete() tenantToSlackWebhooksDeleteUnique { + var v tenantToSlackWebhooksDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -251893,17 +276512,17 @@ func (r tenantToActionsFindUnique) Delete() tenantToActionsDeleteUnique { return v } -type tenantToActionsDeleteUnique struct { +type tenantToSlackWebhooksDeleteUnique struct { query builder.Query } -func (r tenantToActionsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToSlackWebhooksDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToActionsDeleteUnique) tenantModel() {} +func (p tenantToSlackWebhooksDeleteUnique) tenantModel() {} -func (r tenantToActionsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToSlackWebhooksDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -251911,30 +276530,30 @@ func (r tenantToActionsDeleteUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToActionsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToSlackWebhooksDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToActionsFindFirst struct { +type tenantToSlackWebhooksFindFirst struct { query builder.Query } -func (r tenantToActionsFindFirst) getQuery() builder.Query { +func (r tenantToSlackWebhooksFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToActionsFindFirst) ExtractQuery() builder.Query { +func (r tenantToSlackWebhooksFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToActionsFindFirst) with() {} -func (r tenantToActionsFindFirst) tenantModel() {} -func (r tenantToActionsFindFirst) tenantRelation() {} +func (r tenantToSlackWebhooksFindFirst) with() {} +func (r tenantToSlackWebhooksFindFirst) tenantModel() {} +func (r tenantToSlackWebhooksFindFirst) tenantRelation() {} -func (r tenantToActionsFindFirst) With(params ...ActionRelationWith) tenantToActionsFindFirst { +func (r tenantToSlackWebhooksFindFirst) With(params ...SlackAppWebhookRelationWith) tenantToSlackWebhooksFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -251947,7 +276566,7 @@ func (r tenantToActionsFindFirst) With(params ...ActionRelationWith) tenantToAct return r } -func (r tenantToActionsFindFirst) Select(params ...tenantPrismaFields) tenantToActionsFindFirst { +func (r tenantToSlackWebhooksFindFirst) Select(params ...tenantPrismaFields) tenantToSlackWebhooksFindFirst { var outputs []builder.Output for _, param := range params { @@ -251961,7 +276580,7 @@ func (r tenantToActionsFindFirst) Select(params ...tenantPrismaFields) tenantToA return r } -func (r tenantToActionsFindFirst) Omit(params ...tenantPrismaFields) tenantToActionsFindFirst { +func (r tenantToSlackWebhooksFindFirst) Omit(params ...tenantPrismaFields) tenantToSlackWebhooksFindFirst { var outputs []builder.Output var raw []string @@ -251980,7 +276599,7 @@ func (r tenantToActionsFindFirst) Omit(params ...tenantPrismaFields) tenantToAct return r } -func (r tenantToActionsFindFirst) OrderBy(params ...ActionOrderByParam) tenantToActionsFindFirst { +func (r tenantToSlackWebhooksFindFirst) OrderBy(params ...SlackAppWebhookOrderByParam) tenantToSlackWebhooksFindFirst { var fields []builder.Field for _, param := range params { @@ -252000,7 +276619,7 @@ func (r tenantToActionsFindFirst) OrderBy(params ...ActionOrderByParam) tenantTo return r } -func (r tenantToActionsFindFirst) Skip(count int) tenantToActionsFindFirst { +func (r tenantToSlackWebhooksFindFirst) Skip(count int) tenantToSlackWebhooksFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -252008,7 +276627,7 @@ func (r tenantToActionsFindFirst) Skip(count int) tenantToActionsFindFirst { return r } -func (r tenantToActionsFindFirst) Take(count int) tenantToActionsFindFirst { +func (r tenantToSlackWebhooksFindFirst) Take(count int) tenantToSlackWebhooksFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -252016,7 +276635,7 @@ func (r tenantToActionsFindFirst) Take(count int) tenantToActionsFindFirst { return r } -func (r tenantToActionsFindFirst) Cursor(cursor TenantCursorParam) tenantToActionsFindFirst { +func (r tenantToSlackWebhooksFindFirst) Cursor(cursor TenantCursorParam) tenantToSlackWebhooksFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -252024,7 +276643,7 @@ func (r tenantToActionsFindFirst) Cursor(cursor TenantCursorParam) tenantToActio return r } -func (r tenantToActionsFindFirst) Exec(ctx context.Context) ( +func (r tenantToSlackWebhooksFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -252040,7 +276659,7 @@ func (r tenantToActionsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToActionsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToSlackWebhooksFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -252056,23 +276675,23 @@ func (r tenantToActionsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToActionsFindMany struct { +type tenantToSlackWebhooksFindMany struct { query builder.Query } -func (r tenantToActionsFindMany) getQuery() builder.Query { +func (r tenantToSlackWebhooksFindMany) getQuery() builder.Query { return r.query } -func (r tenantToActionsFindMany) ExtractQuery() builder.Query { +func (r tenantToSlackWebhooksFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToActionsFindMany) with() {} -func (r tenantToActionsFindMany) tenantModel() {} -func (r tenantToActionsFindMany) tenantRelation() {} +func (r tenantToSlackWebhooksFindMany) with() {} +func (r tenantToSlackWebhooksFindMany) tenantModel() {} +func (r tenantToSlackWebhooksFindMany) tenantRelation() {} -func (r tenantToActionsFindMany) With(params ...ActionRelationWith) tenantToActionsFindMany { +func (r tenantToSlackWebhooksFindMany) With(params ...SlackAppWebhookRelationWith) tenantToSlackWebhooksFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -252085,7 +276704,7 @@ func (r tenantToActionsFindMany) With(params ...ActionRelationWith) tenantToActi return r } -func (r tenantToActionsFindMany) Select(params ...tenantPrismaFields) tenantToActionsFindMany { +func (r tenantToSlackWebhooksFindMany) Select(params ...tenantPrismaFields) tenantToSlackWebhooksFindMany { var outputs []builder.Output for _, param := range params { @@ -252099,7 +276718,7 @@ func (r tenantToActionsFindMany) Select(params ...tenantPrismaFields) tenantToAc return r } -func (r tenantToActionsFindMany) Omit(params ...tenantPrismaFields) tenantToActionsFindMany { +func (r tenantToSlackWebhooksFindMany) Omit(params ...tenantPrismaFields) tenantToSlackWebhooksFindMany { var outputs []builder.Output var raw []string @@ -252118,7 +276737,7 @@ func (r tenantToActionsFindMany) Omit(params ...tenantPrismaFields) tenantToActi return r } -func (r tenantToActionsFindMany) OrderBy(params ...ActionOrderByParam) tenantToActionsFindMany { +func (r tenantToSlackWebhooksFindMany) OrderBy(params ...SlackAppWebhookOrderByParam) tenantToSlackWebhooksFindMany { var fields []builder.Field for _, param := range params { @@ -252138,7 +276757,7 @@ func (r tenantToActionsFindMany) OrderBy(params ...ActionOrderByParam) tenantToA return r } -func (r tenantToActionsFindMany) Skip(count int) tenantToActionsFindMany { +func (r tenantToSlackWebhooksFindMany) Skip(count int) tenantToSlackWebhooksFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -252146,7 +276765,7 @@ func (r tenantToActionsFindMany) Skip(count int) tenantToActionsFindMany { return r } -func (r tenantToActionsFindMany) Take(count int) tenantToActionsFindMany { +func (r tenantToSlackWebhooksFindMany) Take(count int) tenantToSlackWebhooksFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -252154,7 +276773,7 @@ func (r tenantToActionsFindMany) Take(count int) tenantToActionsFindMany { return r } -func (r tenantToActionsFindMany) Cursor(cursor TenantCursorParam) tenantToActionsFindMany { +func (r tenantToSlackWebhooksFindMany) Cursor(cursor TenantCursorParam) tenantToSlackWebhooksFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -252162,7 +276781,7 @@ func (r tenantToActionsFindMany) Cursor(cursor TenantCursorParam) tenantToAction return r } -func (r tenantToActionsFindMany) Exec(ctx context.Context) ( +func (r tenantToSlackWebhooksFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -252174,7 +276793,7 @@ func (r tenantToActionsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToActionsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToSlackWebhooksFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -252186,14 +276805,14 @@ func (r tenantToActionsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToActionsFindMany) Update(params ...TenantSetParam) tenantToActionsUpdateMany { +func (r tenantToSlackWebhooksFindMany) Update(params ...TenantSetParam) tenantToSlackWebhooksUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToActionsUpdateMany + var v tenantToSlackWebhooksUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -252222,17 +276841,17 @@ func (r tenantToActionsFindMany) Update(params ...TenantSetParam) tenantToAction return v } -type tenantToActionsUpdateMany struct { +type tenantToSlackWebhooksUpdateMany struct { query builder.Query } -func (r tenantToActionsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToSlackWebhooksUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToActionsUpdateMany) tenantModel() {} +func (r tenantToSlackWebhooksUpdateMany) tenantModel() {} -func (r tenantToActionsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToSlackWebhooksUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -252240,15 +276859,15 @@ func (r tenantToActionsUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToActionsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToSlackWebhooksUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToActionsFindMany) Delete() tenantToActionsDeleteMany { - var v tenantToActionsDeleteMany +func (r tenantToSlackWebhooksFindMany) Delete() tenantToSlackWebhooksDeleteMany { + var v tenantToSlackWebhooksDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -252259,17 +276878,17 @@ func (r tenantToActionsFindMany) Delete() tenantToActionsDeleteMany { return v } -type tenantToActionsDeleteMany struct { +type tenantToSlackWebhooksDeleteMany struct { query builder.Query } -func (r tenantToActionsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToSlackWebhooksDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToActionsDeleteMany) tenantModel() {} +func (p tenantToSlackWebhooksDeleteMany) tenantModel() {} -func (r tenantToActionsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToSlackWebhooksDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -252277,30 +276896,30 @@ func (r tenantToActionsDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToActionsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToSlackWebhooksDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToServicesFindUnique struct { +type tenantToAlertingSettingsFindUnique struct { query builder.Query } -func (r tenantToServicesFindUnique) getQuery() builder.Query { +func (r tenantToAlertingSettingsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToServicesFindUnique) ExtractQuery() builder.Query { +func (r tenantToAlertingSettingsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToServicesFindUnique) with() {} -func (r tenantToServicesFindUnique) tenantModel() {} -func (r tenantToServicesFindUnique) tenantRelation() {} +func (r tenantToAlertingSettingsFindUnique) with() {} +func (r tenantToAlertingSettingsFindUnique) tenantModel() {} +func (r tenantToAlertingSettingsFindUnique) tenantRelation() {} -func (r tenantToServicesFindUnique) With(params ...ServiceRelationWith) tenantToServicesFindUnique { +func (r tenantToAlertingSettingsFindUnique) With(params ...TenantAlertingSettingsRelationWith) tenantToAlertingSettingsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -252313,7 +276932,7 @@ func (r tenantToServicesFindUnique) With(params ...ServiceRelationWith) tenantTo return r } -func (r tenantToServicesFindUnique) Select(params ...tenantPrismaFields) tenantToServicesFindUnique { +func (r tenantToAlertingSettingsFindUnique) Select(params ...tenantPrismaFields) tenantToAlertingSettingsFindUnique { var outputs []builder.Output for _, param := range params { @@ -252327,7 +276946,7 @@ func (r tenantToServicesFindUnique) Select(params ...tenantPrismaFields) tenantT return r } -func (r tenantToServicesFindUnique) Omit(params ...tenantPrismaFields) tenantToServicesFindUnique { +func (r tenantToAlertingSettingsFindUnique) Omit(params ...tenantPrismaFields) tenantToAlertingSettingsFindUnique { var outputs []builder.Output var raw []string @@ -252346,7 +276965,7 @@ func (r tenantToServicesFindUnique) Omit(params ...tenantPrismaFields) tenantToS return r } -func (r tenantToServicesFindUnique) Exec(ctx context.Context) ( +func (r tenantToAlertingSettingsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -252362,7 +276981,7 @@ func (r tenantToServicesFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToServicesFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToAlertingSettingsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -252378,12 +276997,12 @@ func (r tenantToServicesFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToServicesFindUnique) Update(params ...TenantSetParam) tenantToServicesUpdateUnique { +func (r tenantToAlertingSettingsFindUnique) Update(params ...TenantSetParam) tenantToAlertingSettingsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToServicesUpdateUnique + var v tenantToAlertingSettingsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -252412,17 +277031,17 @@ func (r tenantToServicesFindUnique) Update(params ...TenantSetParam) tenantToSer return v } -type tenantToServicesUpdateUnique struct { +type tenantToAlertingSettingsUpdateUnique struct { query builder.Query } -func (r tenantToServicesUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToAlertingSettingsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToServicesUpdateUnique) tenantModel() {} +func (r tenantToAlertingSettingsUpdateUnique) tenantModel() {} -func (r tenantToServicesUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToAlertingSettingsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -252430,15 +277049,15 @@ func (r tenantToServicesUpdateUnique) Exec(ctx context.Context) (*TenantModel, e return &v, nil } -func (r tenantToServicesUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToAlertingSettingsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToServicesFindUnique) Delete() tenantToServicesDeleteUnique { - var v tenantToServicesDeleteUnique +func (r tenantToAlertingSettingsFindUnique) Delete() tenantToAlertingSettingsDeleteUnique { + var v tenantToAlertingSettingsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -252447,17 +277066,17 @@ func (r tenantToServicesFindUnique) Delete() tenantToServicesDeleteUnique { return v } -type tenantToServicesDeleteUnique struct { +type tenantToAlertingSettingsDeleteUnique struct { query builder.Query } -func (r tenantToServicesDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToAlertingSettingsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToServicesDeleteUnique) tenantModel() {} +func (p tenantToAlertingSettingsDeleteUnique) tenantModel() {} -func (r tenantToServicesDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToAlertingSettingsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -252465,30 +277084,30 @@ func (r tenantToServicesDeleteUnique) Exec(ctx context.Context) (*TenantModel, e return &v, nil } -func (r tenantToServicesDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToAlertingSettingsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToServicesFindFirst struct { +type tenantToAlertingSettingsFindFirst struct { query builder.Query } -func (r tenantToServicesFindFirst) getQuery() builder.Query { +func (r tenantToAlertingSettingsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToServicesFindFirst) ExtractQuery() builder.Query { +func (r tenantToAlertingSettingsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToServicesFindFirst) with() {} -func (r tenantToServicesFindFirst) tenantModel() {} -func (r tenantToServicesFindFirst) tenantRelation() {} +func (r tenantToAlertingSettingsFindFirst) with() {} +func (r tenantToAlertingSettingsFindFirst) tenantModel() {} +func (r tenantToAlertingSettingsFindFirst) tenantRelation() {} -func (r tenantToServicesFindFirst) With(params ...ServiceRelationWith) tenantToServicesFindFirst { +func (r tenantToAlertingSettingsFindFirst) With(params ...TenantAlertingSettingsRelationWith) tenantToAlertingSettingsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -252501,7 +277120,7 @@ func (r tenantToServicesFindFirst) With(params ...ServiceRelationWith) tenantToS return r } -func (r tenantToServicesFindFirst) Select(params ...tenantPrismaFields) tenantToServicesFindFirst { +func (r tenantToAlertingSettingsFindFirst) Select(params ...tenantPrismaFields) tenantToAlertingSettingsFindFirst { var outputs []builder.Output for _, param := range params { @@ -252515,7 +277134,7 @@ func (r tenantToServicesFindFirst) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToServicesFindFirst) Omit(params ...tenantPrismaFields) tenantToServicesFindFirst { +func (r tenantToAlertingSettingsFindFirst) Omit(params ...tenantPrismaFields) tenantToAlertingSettingsFindFirst { var outputs []builder.Output var raw []string @@ -252534,7 +277153,7 @@ func (r tenantToServicesFindFirst) Omit(params ...tenantPrismaFields) tenantToSe return r } -func (r tenantToServicesFindFirst) OrderBy(params ...ServiceOrderByParam) tenantToServicesFindFirst { +func (r tenantToAlertingSettingsFindFirst) OrderBy(params ...TenantAlertingSettingsOrderByParam) tenantToAlertingSettingsFindFirst { var fields []builder.Field for _, param := range params { @@ -252554,7 +277173,7 @@ func (r tenantToServicesFindFirst) OrderBy(params ...ServiceOrderByParam) tenant return r } -func (r tenantToServicesFindFirst) Skip(count int) tenantToServicesFindFirst { +func (r tenantToAlertingSettingsFindFirst) Skip(count int) tenantToAlertingSettingsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -252562,7 +277181,7 @@ func (r tenantToServicesFindFirst) Skip(count int) tenantToServicesFindFirst { return r } -func (r tenantToServicesFindFirst) Take(count int) tenantToServicesFindFirst { +func (r tenantToAlertingSettingsFindFirst) Take(count int) tenantToAlertingSettingsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -252570,7 +277189,7 @@ func (r tenantToServicesFindFirst) Take(count int) tenantToServicesFindFirst { return r } -func (r tenantToServicesFindFirst) Cursor(cursor TenantCursorParam) tenantToServicesFindFirst { +func (r tenantToAlertingSettingsFindFirst) Cursor(cursor TenantCursorParam) tenantToAlertingSettingsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -252578,7 +277197,7 @@ func (r tenantToServicesFindFirst) Cursor(cursor TenantCursorParam) tenantToServ return r } -func (r tenantToServicesFindFirst) Exec(ctx context.Context) ( +func (r tenantToAlertingSettingsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -252594,7 +277213,7 @@ func (r tenantToServicesFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToServicesFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToAlertingSettingsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -252610,23 +277229,23 @@ func (r tenantToServicesFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToServicesFindMany struct { +type tenantToAlertingSettingsFindMany struct { query builder.Query } -func (r tenantToServicesFindMany) getQuery() builder.Query { +func (r tenantToAlertingSettingsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToServicesFindMany) ExtractQuery() builder.Query { +func (r tenantToAlertingSettingsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToServicesFindMany) with() {} -func (r tenantToServicesFindMany) tenantModel() {} -func (r tenantToServicesFindMany) tenantRelation() {} +func (r tenantToAlertingSettingsFindMany) with() {} +func (r tenantToAlertingSettingsFindMany) tenantModel() {} +func (r tenantToAlertingSettingsFindMany) tenantRelation() {} -func (r tenantToServicesFindMany) With(params ...ServiceRelationWith) tenantToServicesFindMany { +func (r tenantToAlertingSettingsFindMany) With(params ...TenantAlertingSettingsRelationWith) tenantToAlertingSettingsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -252639,7 +277258,7 @@ func (r tenantToServicesFindMany) With(params ...ServiceRelationWith) tenantToSe return r } -func (r tenantToServicesFindMany) Select(params ...tenantPrismaFields) tenantToServicesFindMany { +func (r tenantToAlertingSettingsFindMany) Select(params ...tenantPrismaFields) tenantToAlertingSettingsFindMany { var outputs []builder.Output for _, param := range params { @@ -252653,7 +277272,7 @@ func (r tenantToServicesFindMany) Select(params ...tenantPrismaFields) tenantToS return r } -func (r tenantToServicesFindMany) Omit(params ...tenantPrismaFields) tenantToServicesFindMany { +func (r tenantToAlertingSettingsFindMany) Omit(params ...tenantPrismaFields) tenantToAlertingSettingsFindMany { var outputs []builder.Output var raw []string @@ -252672,7 +277291,7 @@ func (r tenantToServicesFindMany) Omit(params ...tenantPrismaFields) tenantToSer return r } -func (r tenantToServicesFindMany) OrderBy(params ...ServiceOrderByParam) tenantToServicesFindMany { +func (r tenantToAlertingSettingsFindMany) OrderBy(params ...TenantAlertingSettingsOrderByParam) tenantToAlertingSettingsFindMany { var fields []builder.Field for _, param := range params { @@ -252692,7 +277311,7 @@ func (r tenantToServicesFindMany) OrderBy(params ...ServiceOrderByParam) tenantT return r } -func (r tenantToServicesFindMany) Skip(count int) tenantToServicesFindMany { +func (r tenantToAlertingSettingsFindMany) Skip(count int) tenantToAlertingSettingsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -252700,7 +277319,7 @@ func (r tenantToServicesFindMany) Skip(count int) tenantToServicesFindMany { return r } -func (r tenantToServicesFindMany) Take(count int) tenantToServicesFindMany { +func (r tenantToAlertingSettingsFindMany) Take(count int) tenantToAlertingSettingsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -252708,7 +277327,7 @@ func (r tenantToServicesFindMany) Take(count int) tenantToServicesFindMany { return r } -func (r tenantToServicesFindMany) Cursor(cursor TenantCursorParam) tenantToServicesFindMany { +func (r tenantToAlertingSettingsFindMany) Cursor(cursor TenantCursorParam) tenantToAlertingSettingsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -252716,7 +277335,7 @@ func (r tenantToServicesFindMany) Cursor(cursor TenantCursorParam) tenantToServi return r } -func (r tenantToServicesFindMany) Exec(ctx context.Context) ( +func (r tenantToAlertingSettingsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -252728,7 +277347,7 @@ func (r tenantToServicesFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToServicesFindMany) ExecInner(ctx context.Context) ( +func (r tenantToAlertingSettingsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -252740,14 +277359,14 @@ func (r tenantToServicesFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToServicesFindMany) Update(params ...TenantSetParam) tenantToServicesUpdateMany { +func (r tenantToAlertingSettingsFindMany) Update(params ...TenantSetParam) tenantToAlertingSettingsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToServicesUpdateMany + var v tenantToAlertingSettingsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -252776,17 +277395,17 @@ func (r tenantToServicesFindMany) Update(params ...TenantSetParam) tenantToServi return v } -type tenantToServicesUpdateMany struct { +type tenantToAlertingSettingsUpdateMany struct { query builder.Query } -func (r tenantToServicesUpdateMany) ExtractQuery() builder.Query { +func (r tenantToAlertingSettingsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToServicesUpdateMany) tenantModel() {} +func (r tenantToAlertingSettingsUpdateMany) tenantModel() {} -func (r tenantToServicesUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToAlertingSettingsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -252794,15 +277413,15 @@ func (r tenantToServicesUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tenantToServicesUpdateMany) Tx() TenantManyTxResult { +func (r tenantToAlertingSettingsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToServicesFindMany) Delete() tenantToServicesDeleteMany { - var v tenantToServicesDeleteMany +func (r tenantToAlertingSettingsFindMany) Delete() tenantToAlertingSettingsDeleteMany { + var v tenantToAlertingSettingsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -252813,17 +277432,17 @@ func (r tenantToServicesFindMany) Delete() tenantToServicesDeleteMany { return v } -type tenantToServicesDeleteMany struct { +type tenantToAlertingSettingsDeleteMany struct { query builder.Query } -func (r tenantToServicesDeleteMany) ExtractQuery() builder.Query { +func (r tenantToAlertingSettingsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToServicesDeleteMany) tenantModel() {} +func (p tenantToAlertingSettingsDeleteMany) tenantModel() {} -func (r tenantToServicesDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToAlertingSettingsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -252831,30 +277450,30 @@ func (r tenantToServicesDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tenantToServicesDeleteMany) Tx() TenantManyTxResult { +func (r tenantToAlertingSettingsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToInvitesFindUnique struct { +type tenantToLimitsFindUnique struct { query builder.Query } -func (r tenantToInvitesFindUnique) getQuery() builder.Query { +func (r tenantToLimitsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToInvitesFindUnique) ExtractQuery() builder.Query { +func (r tenantToLimitsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToInvitesFindUnique) with() {} -func (r tenantToInvitesFindUnique) tenantModel() {} -func (r tenantToInvitesFindUnique) tenantRelation() {} +func (r tenantToLimitsFindUnique) with() {} +func (r tenantToLimitsFindUnique) tenantModel() {} +func (r tenantToLimitsFindUnique) tenantRelation() {} -func (r tenantToInvitesFindUnique) With(params ...TenantInviteLinkRelationWith) tenantToInvitesFindUnique { +func (r tenantToLimitsFindUnique) With(params ...TenantResourceLimitRelationWith) tenantToLimitsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -252867,7 +277486,7 @@ func (r tenantToInvitesFindUnique) With(params ...TenantInviteLinkRelationWith) return r } -func (r tenantToInvitesFindUnique) Select(params ...tenantPrismaFields) tenantToInvitesFindUnique { +func (r tenantToLimitsFindUnique) Select(params ...tenantPrismaFields) tenantToLimitsFindUnique { var outputs []builder.Output for _, param := range params { @@ -252881,7 +277500,7 @@ func (r tenantToInvitesFindUnique) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToInvitesFindUnique) Omit(params ...tenantPrismaFields) tenantToInvitesFindUnique { +func (r tenantToLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantToLimitsFindUnique { var outputs []builder.Output var raw []string @@ -252900,7 +277519,7 @@ func (r tenantToInvitesFindUnique) Omit(params ...tenantPrismaFields) tenantToIn return r } -func (r tenantToInvitesFindUnique) Exec(ctx context.Context) ( +func (r tenantToLimitsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -252916,7 +277535,7 @@ func (r tenantToInvitesFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToInvitesFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToLimitsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -252932,12 +277551,12 @@ func (r tenantToInvitesFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToInvitesFindUnique) Update(params ...TenantSetParam) tenantToInvitesUpdateUnique { +func (r tenantToLimitsFindUnique) Update(params ...TenantSetParam) tenantToLimitsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToInvitesUpdateUnique + var v tenantToLimitsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -252966,17 +277585,17 @@ func (r tenantToInvitesFindUnique) Update(params ...TenantSetParam) tenantToInvi return v } -type tenantToInvitesUpdateUnique struct { +type tenantToLimitsUpdateUnique struct { query builder.Query } -func (r tenantToInvitesUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToLimitsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToInvitesUpdateUnique) tenantModel() {} +func (r tenantToLimitsUpdateUnique) tenantModel() {} -func (r tenantToInvitesUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToLimitsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -252984,15 +277603,15 @@ func (r tenantToInvitesUpdateUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToInvitesUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToLimitsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToInvitesFindUnique) Delete() tenantToInvitesDeleteUnique { - var v tenantToInvitesDeleteUnique +func (r tenantToLimitsFindUnique) Delete() tenantToLimitsDeleteUnique { + var v tenantToLimitsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -253001,17 +277620,17 @@ func (r tenantToInvitesFindUnique) Delete() tenantToInvitesDeleteUnique { return v } -type tenantToInvitesDeleteUnique struct { +type tenantToLimitsDeleteUnique struct { query builder.Query } -func (r tenantToInvitesDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToLimitsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToInvitesDeleteUnique) tenantModel() {} +func (p tenantToLimitsDeleteUnique) tenantModel() {} -func (r tenantToInvitesDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToLimitsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -253019,30 +277638,30 @@ func (r tenantToInvitesDeleteUnique) Exec(ctx context.Context) (*TenantModel, er return &v, nil } -func (r tenantToInvitesDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToLimitsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToInvitesFindFirst struct { +type tenantToLimitsFindFirst struct { query builder.Query } -func (r tenantToInvitesFindFirst) getQuery() builder.Query { +func (r tenantToLimitsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToInvitesFindFirst) ExtractQuery() builder.Query { +func (r tenantToLimitsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToInvitesFindFirst) with() {} -func (r tenantToInvitesFindFirst) tenantModel() {} -func (r tenantToInvitesFindFirst) tenantRelation() {} +func (r tenantToLimitsFindFirst) with() {} +func (r tenantToLimitsFindFirst) tenantModel() {} +func (r tenantToLimitsFindFirst) tenantRelation() {} -func (r tenantToInvitesFindFirst) With(params ...TenantInviteLinkRelationWith) tenantToInvitesFindFirst { +func (r tenantToLimitsFindFirst) With(params ...TenantResourceLimitRelationWith) tenantToLimitsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -253055,7 +277674,7 @@ func (r tenantToInvitesFindFirst) With(params ...TenantInviteLinkRelationWith) t return r } -func (r tenantToInvitesFindFirst) Select(params ...tenantPrismaFields) tenantToInvitesFindFirst { +func (r tenantToLimitsFindFirst) Select(params ...tenantPrismaFields) tenantToLimitsFindFirst { var outputs []builder.Output for _, param := range params { @@ -253069,7 +277688,7 @@ func (r tenantToInvitesFindFirst) Select(params ...tenantPrismaFields) tenantToI return r } -func (r tenantToInvitesFindFirst) Omit(params ...tenantPrismaFields) tenantToInvitesFindFirst { +func (r tenantToLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantToLimitsFindFirst { var outputs []builder.Output var raw []string @@ -253088,7 +277707,7 @@ func (r tenantToInvitesFindFirst) Omit(params ...tenantPrismaFields) tenantToInv return r } -func (r tenantToInvitesFindFirst) OrderBy(params ...TenantInviteLinkOrderByParam) tenantToInvitesFindFirst { +func (r tenantToLimitsFindFirst) OrderBy(params ...TenantResourceLimitOrderByParam) tenantToLimitsFindFirst { var fields []builder.Field for _, param := range params { @@ -253108,7 +277727,7 @@ func (r tenantToInvitesFindFirst) OrderBy(params ...TenantInviteLinkOrderByParam return r } -func (r tenantToInvitesFindFirst) Skip(count int) tenantToInvitesFindFirst { +func (r tenantToLimitsFindFirst) Skip(count int) tenantToLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -253116,7 +277735,7 @@ func (r tenantToInvitesFindFirst) Skip(count int) tenantToInvitesFindFirst { return r } -func (r tenantToInvitesFindFirst) Take(count int) tenantToInvitesFindFirst { +func (r tenantToLimitsFindFirst) Take(count int) tenantToLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -253124,7 +277743,7 @@ func (r tenantToInvitesFindFirst) Take(count int) tenantToInvitesFindFirst { return r } -func (r tenantToInvitesFindFirst) Cursor(cursor TenantCursorParam) tenantToInvitesFindFirst { +func (r tenantToLimitsFindFirst) Cursor(cursor TenantCursorParam) tenantToLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -253132,7 +277751,7 @@ func (r tenantToInvitesFindFirst) Cursor(cursor TenantCursorParam) tenantToInvit return r } -func (r tenantToInvitesFindFirst) Exec(ctx context.Context) ( +func (r tenantToLimitsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -253148,7 +277767,7 @@ func (r tenantToInvitesFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToInvitesFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToLimitsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -253164,23 +277783,23 @@ func (r tenantToInvitesFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToInvitesFindMany struct { +type tenantToLimitsFindMany struct { query builder.Query } -func (r tenantToInvitesFindMany) getQuery() builder.Query { +func (r tenantToLimitsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToInvitesFindMany) ExtractQuery() builder.Query { +func (r tenantToLimitsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToInvitesFindMany) with() {} -func (r tenantToInvitesFindMany) tenantModel() {} -func (r tenantToInvitesFindMany) tenantRelation() {} +func (r tenantToLimitsFindMany) with() {} +func (r tenantToLimitsFindMany) tenantModel() {} +func (r tenantToLimitsFindMany) tenantRelation() {} -func (r tenantToInvitesFindMany) With(params ...TenantInviteLinkRelationWith) tenantToInvitesFindMany { +func (r tenantToLimitsFindMany) With(params ...TenantResourceLimitRelationWith) tenantToLimitsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -253193,7 +277812,7 @@ func (r tenantToInvitesFindMany) With(params ...TenantInviteLinkRelationWith) te return r } -func (r tenantToInvitesFindMany) Select(params ...tenantPrismaFields) tenantToInvitesFindMany { +func (r tenantToLimitsFindMany) Select(params ...tenantPrismaFields) tenantToLimitsFindMany { var outputs []builder.Output for _, param := range params { @@ -253207,7 +277826,7 @@ func (r tenantToInvitesFindMany) Select(params ...tenantPrismaFields) tenantToIn return r } -func (r tenantToInvitesFindMany) Omit(params ...tenantPrismaFields) tenantToInvitesFindMany { +func (r tenantToLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToLimitsFindMany { var outputs []builder.Output var raw []string @@ -253226,7 +277845,7 @@ func (r tenantToInvitesFindMany) Omit(params ...tenantPrismaFields) tenantToInvi return r } -func (r tenantToInvitesFindMany) OrderBy(params ...TenantInviteLinkOrderByParam) tenantToInvitesFindMany { +func (r tenantToLimitsFindMany) OrderBy(params ...TenantResourceLimitOrderByParam) tenantToLimitsFindMany { var fields []builder.Field for _, param := range params { @@ -253246,7 +277865,7 @@ func (r tenantToInvitesFindMany) OrderBy(params ...TenantInviteLinkOrderByParam) return r } -func (r tenantToInvitesFindMany) Skip(count int) tenantToInvitesFindMany { +func (r tenantToLimitsFindMany) Skip(count int) tenantToLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -253254,7 +277873,7 @@ func (r tenantToInvitesFindMany) Skip(count int) tenantToInvitesFindMany { return r } -func (r tenantToInvitesFindMany) Take(count int) tenantToInvitesFindMany { +func (r tenantToLimitsFindMany) Take(count int) tenantToLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -253262,7 +277881,7 @@ func (r tenantToInvitesFindMany) Take(count int) tenantToInvitesFindMany { return r } -func (r tenantToInvitesFindMany) Cursor(cursor TenantCursorParam) tenantToInvitesFindMany { +func (r tenantToLimitsFindMany) Cursor(cursor TenantCursorParam) tenantToLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -253270,7 +277889,7 @@ func (r tenantToInvitesFindMany) Cursor(cursor TenantCursorParam) tenantToInvite return r } -func (r tenantToInvitesFindMany) Exec(ctx context.Context) ( +func (r tenantToLimitsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -253282,7 +277901,7 @@ func (r tenantToInvitesFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToInvitesFindMany) ExecInner(ctx context.Context) ( +func (r tenantToLimitsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -253294,14 +277913,14 @@ func (r tenantToInvitesFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToInvitesFindMany) Update(params ...TenantSetParam) tenantToInvitesUpdateMany { +func (r tenantToLimitsFindMany) Update(params ...TenantSetParam) tenantToLimitsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToInvitesUpdateMany + var v tenantToLimitsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -253330,17 +277949,17 @@ func (r tenantToInvitesFindMany) Update(params ...TenantSetParam) tenantToInvite return v } -type tenantToInvitesUpdateMany struct { +type tenantToLimitsUpdateMany struct { query builder.Query } -func (r tenantToInvitesUpdateMany) ExtractQuery() builder.Query { +func (r tenantToLimitsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToInvitesUpdateMany) tenantModel() {} +func (r tenantToLimitsUpdateMany) tenantModel() {} -func (r tenantToInvitesUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -253348,15 +277967,15 @@ func (r tenantToInvitesUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToInvitesUpdateMany) Tx() TenantManyTxResult { +func (r tenantToLimitsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToInvitesFindMany) Delete() tenantToInvitesDeleteMany { - var v tenantToInvitesDeleteMany +func (r tenantToLimitsFindMany) Delete() tenantToLimitsDeleteMany { + var v tenantToLimitsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -253367,17 +277986,17 @@ func (r tenantToInvitesFindMany) Delete() tenantToInvitesDeleteMany { return v } -type tenantToInvitesDeleteMany struct { +type tenantToLimitsDeleteMany struct { query builder.Query } -func (r tenantToInvitesDeleteMany) ExtractQuery() builder.Query { +func (r tenantToLimitsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToInvitesDeleteMany) tenantModel() {} +func (p tenantToLimitsDeleteMany) tenantModel() {} -func (r tenantToInvitesDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -253385,30 +278004,30 @@ func (r tenantToInvitesDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tenantToInvitesDeleteMany) Tx() TenantManyTxResult { +func (r tenantToLimitsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToAPITokensFindUnique struct { +type tenantToLimitAlertsFindUnique struct { query builder.Query } -func (r tenantToAPITokensFindUnique) getQuery() builder.Query { +func (r tenantToLimitAlertsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToAPITokensFindUnique) ExtractQuery() builder.Query { +func (r tenantToLimitAlertsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToAPITokensFindUnique) with() {} -func (r tenantToAPITokensFindUnique) tenantModel() {} -func (r tenantToAPITokensFindUnique) tenantRelation() {} +func (r tenantToLimitAlertsFindUnique) with() {} +func (r tenantToLimitAlertsFindUnique) tenantModel() {} +func (r tenantToLimitAlertsFindUnique) tenantRelation() {} -func (r tenantToAPITokensFindUnique) With(params ...APITokenRelationWith) tenantToAPITokensFindUnique { +func (r tenantToLimitAlertsFindUnique) With(params ...TenantResourceLimitAlertRelationWith) tenantToLimitAlertsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -253421,7 +278040,7 @@ func (r tenantToAPITokensFindUnique) With(params ...APITokenRelationWith) tenant return r } -func (r tenantToAPITokensFindUnique) Select(params ...tenantPrismaFields) tenantToAPITokensFindUnique { +func (r tenantToLimitAlertsFindUnique) Select(params ...tenantPrismaFields) tenantToLimitAlertsFindUnique { var outputs []builder.Output for _, param := range params { @@ -253435,7 +278054,7 @@ func (r tenantToAPITokensFindUnique) Select(params ...tenantPrismaFields) tenant return r } -func (r tenantToAPITokensFindUnique) Omit(params ...tenantPrismaFields) tenantToAPITokensFindUnique { +func (r tenantToLimitAlertsFindUnique) Omit(params ...tenantPrismaFields) tenantToLimitAlertsFindUnique { var outputs []builder.Output var raw []string @@ -253454,7 +278073,7 @@ func (r tenantToAPITokensFindUnique) Omit(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToAPITokensFindUnique) Exec(ctx context.Context) ( +func (r tenantToLimitAlertsFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -253470,7 +278089,7 @@ func (r tenantToAPITokensFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAPITokensFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToLimitAlertsFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -253486,12 +278105,12 @@ func (r tenantToAPITokensFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToAPITokensFindUnique) Update(params ...TenantSetParam) tenantToAPITokensUpdateUnique { +func (r tenantToLimitAlertsFindUnique) Update(params ...TenantSetParam) tenantToLimitAlertsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToAPITokensUpdateUnique + var v tenantToLimitAlertsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -253520,17 +278139,17 @@ func (r tenantToAPITokensFindUnique) Update(params ...TenantSetParam) tenantToAP return v } -type tenantToAPITokensUpdateUnique struct { +type tenantToLimitAlertsUpdateUnique struct { query builder.Query } -func (r tenantToAPITokensUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToLimitAlertsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToAPITokensUpdateUnique) tenantModel() {} +func (r tenantToLimitAlertsUpdateUnique) tenantModel() {} -func (r tenantToAPITokensUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToLimitAlertsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -253538,15 +278157,15 @@ func (r tenantToAPITokensUpdateUnique) Exec(ctx context.Context) (*TenantModel, return &v, nil } -func (r tenantToAPITokensUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToLimitAlertsUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToAPITokensFindUnique) Delete() tenantToAPITokensDeleteUnique { - var v tenantToAPITokensDeleteUnique +func (r tenantToLimitAlertsFindUnique) Delete() tenantToLimitAlertsDeleteUnique { + var v tenantToLimitAlertsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -253555,17 +278174,17 @@ func (r tenantToAPITokensFindUnique) Delete() tenantToAPITokensDeleteUnique { return v } -type tenantToAPITokensDeleteUnique struct { +type tenantToLimitAlertsDeleteUnique struct { query builder.Query } -func (r tenantToAPITokensDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToLimitAlertsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToAPITokensDeleteUnique) tenantModel() {} +func (p tenantToLimitAlertsDeleteUnique) tenantModel() {} -func (r tenantToAPITokensDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToLimitAlertsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -253573,30 +278192,30 @@ func (r tenantToAPITokensDeleteUnique) Exec(ctx context.Context) (*TenantModel, return &v, nil } -func (r tenantToAPITokensDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToLimitAlertsDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToAPITokensFindFirst struct { +type tenantToLimitAlertsFindFirst struct { query builder.Query } -func (r tenantToAPITokensFindFirst) getQuery() builder.Query { +func (r tenantToLimitAlertsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToAPITokensFindFirst) ExtractQuery() builder.Query { +func (r tenantToLimitAlertsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToAPITokensFindFirst) with() {} -func (r tenantToAPITokensFindFirst) tenantModel() {} -func (r tenantToAPITokensFindFirst) tenantRelation() {} +func (r tenantToLimitAlertsFindFirst) with() {} +func (r tenantToLimitAlertsFindFirst) tenantModel() {} +func (r tenantToLimitAlertsFindFirst) tenantRelation() {} -func (r tenantToAPITokensFindFirst) With(params ...APITokenRelationWith) tenantToAPITokensFindFirst { +func (r tenantToLimitAlertsFindFirst) With(params ...TenantResourceLimitAlertRelationWith) tenantToLimitAlertsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -253609,7 +278228,7 @@ func (r tenantToAPITokensFindFirst) With(params ...APITokenRelationWith) tenantT return r } -func (r tenantToAPITokensFindFirst) Select(params ...tenantPrismaFields) tenantToAPITokensFindFirst { +func (r tenantToLimitAlertsFindFirst) Select(params ...tenantPrismaFields) tenantToLimitAlertsFindFirst { var outputs []builder.Output for _, param := range params { @@ -253623,7 +278242,7 @@ func (r tenantToAPITokensFindFirst) Select(params ...tenantPrismaFields) tenantT return r } -func (r tenantToAPITokensFindFirst) Omit(params ...tenantPrismaFields) tenantToAPITokensFindFirst { +func (r tenantToLimitAlertsFindFirst) Omit(params ...tenantPrismaFields) tenantToLimitAlertsFindFirst { var outputs []builder.Output var raw []string @@ -253642,7 +278261,7 @@ func (r tenantToAPITokensFindFirst) Omit(params ...tenantPrismaFields) tenantToA return r } -func (r tenantToAPITokensFindFirst) OrderBy(params ...APITokenOrderByParam) tenantToAPITokensFindFirst { +func (r tenantToLimitAlertsFindFirst) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantToLimitAlertsFindFirst { var fields []builder.Field for _, param := range params { @@ -253662,7 +278281,7 @@ func (r tenantToAPITokensFindFirst) OrderBy(params ...APITokenOrderByParam) tena return r } -func (r tenantToAPITokensFindFirst) Skip(count int) tenantToAPITokensFindFirst { +func (r tenantToLimitAlertsFindFirst) Skip(count int) tenantToLimitAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -253670,7 +278289,7 @@ func (r tenantToAPITokensFindFirst) Skip(count int) tenantToAPITokensFindFirst { return r } -func (r tenantToAPITokensFindFirst) Take(count int) tenantToAPITokensFindFirst { +func (r tenantToLimitAlertsFindFirst) Take(count int) tenantToLimitAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -253678,7 +278297,7 @@ func (r tenantToAPITokensFindFirst) Take(count int) tenantToAPITokensFindFirst { return r } -func (r tenantToAPITokensFindFirst) Cursor(cursor TenantCursorParam) tenantToAPITokensFindFirst { +func (r tenantToLimitAlertsFindFirst) Cursor(cursor TenantCursorParam) tenantToLimitAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -253686,7 +278305,7 @@ func (r tenantToAPITokensFindFirst) Cursor(cursor TenantCursorParam) tenantToAPI return r } -func (r tenantToAPITokensFindFirst) Exec(ctx context.Context) ( +func (r tenantToLimitAlertsFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -253702,7 +278321,7 @@ func (r tenantToAPITokensFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAPITokensFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToLimitAlertsFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -253718,23 +278337,23 @@ func (r tenantToAPITokensFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToAPITokensFindMany struct { +type tenantToLimitAlertsFindMany struct { query builder.Query } -func (r tenantToAPITokensFindMany) getQuery() builder.Query { +func (r tenantToLimitAlertsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToAPITokensFindMany) ExtractQuery() builder.Query { +func (r tenantToLimitAlertsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToAPITokensFindMany) with() {} -func (r tenantToAPITokensFindMany) tenantModel() {} -func (r tenantToAPITokensFindMany) tenantRelation() {} +func (r tenantToLimitAlertsFindMany) with() {} +func (r tenantToLimitAlertsFindMany) tenantModel() {} +func (r tenantToLimitAlertsFindMany) tenantRelation() {} -func (r tenantToAPITokensFindMany) With(params ...APITokenRelationWith) tenantToAPITokensFindMany { +func (r tenantToLimitAlertsFindMany) With(params ...TenantResourceLimitAlertRelationWith) tenantToLimitAlertsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -253747,7 +278366,7 @@ func (r tenantToAPITokensFindMany) With(params ...APITokenRelationWith) tenantTo return r } -func (r tenantToAPITokensFindMany) Select(params ...tenantPrismaFields) tenantToAPITokensFindMany { +func (r tenantToLimitAlertsFindMany) Select(params ...tenantPrismaFields) tenantToLimitAlertsFindMany { var outputs []builder.Output for _, param := range params { @@ -253761,7 +278380,7 @@ func (r tenantToAPITokensFindMany) Select(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToAPITokensFindMany) Omit(params ...tenantPrismaFields) tenantToAPITokensFindMany { +func (r tenantToLimitAlertsFindMany) Omit(params ...tenantPrismaFields) tenantToLimitAlertsFindMany { var outputs []builder.Output var raw []string @@ -253780,7 +278399,7 @@ func (r tenantToAPITokensFindMany) Omit(params ...tenantPrismaFields) tenantToAP return r } -func (r tenantToAPITokensFindMany) OrderBy(params ...APITokenOrderByParam) tenantToAPITokensFindMany { +func (r tenantToLimitAlertsFindMany) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantToLimitAlertsFindMany { var fields []builder.Field for _, param := range params { @@ -253800,7 +278419,7 @@ func (r tenantToAPITokensFindMany) OrderBy(params ...APITokenOrderByParam) tenan return r } -func (r tenantToAPITokensFindMany) Skip(count int) tenantToAPITokensFindMany { +func (r tenantToLimitAlertsFindMany) Skip(count int) tenantToLimitAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -253808,7 +278427,7 @@ func (r tenantToAPITokensFindMany) Skip(count int) tenantToAPITokensFindMany { return r } -func (r tenantToAPITokensFindMany) Take(count int) tenantToAPITokensFindMany { +func (r tenantToLimitAlertsFindMany) Take(count int) tenantToLimitAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -253816,7 +278435,7 @@ func (r tenantToAPITokensFindMany) Take(count int) tenantToAPITokensFindMany { return r } -func (r tenantToAPITokensFindMany) Cursor(cursor TenantCursorParam) tenantToAPITokensFindMany { +func (r tenantToLimitAlertsFindMany) Cursor(cursor TenantCursorParam) tenantToLimitAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -253824,7 +278443,7 @@ func (r tenantToAPITokensFindMany) Cursor(cursor TenantCursorParam) tenantToAPIT return r } -func (r tenantToAPITokensFindMany) Exec(ctx context.Context) ( +func (r tenantToLimitAlertsFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -253836,7 +278455,7 @@ func (r tenantToAPITokensFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAPITokensFindMany) ExecInner(ctx context.Context) ( +func (r tenantToLimitAlertsFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -253848,14 +278467,14 @@ func (r tenantToAPITokensFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToAPITokensFindMany) Update(params ...TenantSetParam) tenantToAPITokensUpdateMany { +func (r tenantToLimitAlertsFindMany) Update(params ...TenantSetParam) tenantToLimitAlertsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToAPITokensUpdateMany + var v tenantToLimitAlertsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -253884,17 +278503,17 @@ func (r tenantToAPITokensFindMany) Update(params ...TenantSetParam) tenantToAPIT return v } -type tenantToAPITokensUpdateMany struct { +type tenantToLimitAlertsUpdateMany struct { query builder.Query } -func (r tenantToAPITokensUpdateMany) ExtractQuery() builder.Query { +func (r tenantToLimitAlertsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToAPITokensUpdateMany) tenantModel() {} +func (r tenantToLimitAlertsUpdateMany) tenantModel() {} -func (r tenantToAPITokensUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToLimitAlertsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -253902,15 +278521,15 @@ func (r tenantToAPITokensUpdateMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r tenantToAPITokensUpdateMany) Tx() TenantManyTxResult { +func (r tenantToLimitAlertsUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToAPITokensFindMany) Delete() tenantToAPITokensDeleteMany { - var v tenantToAPITokensDeleteMany +func (r tenantToLimitAlertsFindMany) Delete() tenantToLimitAlertsDeleteMany { + var v tenantToLimitAlertsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -253921,17 +278540,17 @@ func (r tenantToAPITokensFindMany) Delete() tenantToAPITokensDeleteMany { return v } -type tenantToAPITokensDeleteMany struct { +type tenantToLimitAlertsDeleteMany struct { query builder.Query } -func (r tenantToAPITokensDeleteMany) ExtractQuery() builder.Query { +func (r tenantToLimitAlertsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToAPITokensDeleteMany) tenantModel() {} +func (p tenantToLimitAlertsDeleteMany) tenantModel() {} -func (r tenantToAPITokensDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToLimitAlertsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -253939,30 +278558,30 @@ func (r tenantToAPITokensDeleteMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r tenantToAPITokensDeleteMany) Tx() TenantManyTxResult { +func (r tenantToLimitAlertsDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToGroupKeyRunsFindUnique struct { +type tenantToWebhookWorkersFindUnique struct { query builder.Query } -func (r tenantToGroupKeyRunsFindUnique) getQuery() builder.Query { +func (r tenantToWebhookWorkersFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToGroupKeyRunsFindUnique) ExtractQuery() builder.Query { +func (r tenantToWebhookWorkersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToGroupKeyRunsFindUnique) with() {} -func (r tenantToGroupKeyRunsFindUnique) tenantModel() {} -func (r tenantToGroupKeyRunsFindUnique) tenantRelation() {} +func (r tenantToWebhookWorkersFindUnique) with() {} +func (r tenantToWebhookWorkersFindUnique) tenantModel() {} +func (r tenantToWebhookWorkersFindUnique) tenantRelation() {} -func (r tenantToGroupKeyRunsFindUnique) With(params ...GetGroupKeyRunRelationWith) tenantToGroupKeyRunsFindUnique { +func (r tenantToWebhookWorkersFindUnique) With(params ...WebhookWorkerRelationWith) tenantToWebhookWorkersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -253975,7 +278594,7 @@ func (r tenantToGroupKeyRunsFindUnique) With(params ...GetGroupKeyRunRelationWit return r } -func (r tenantToGroupKeyRunsFindUnique) Select(params ...tenantPrismaFields) tenantToGroupKeyRunsFindUnique { +func (r tenantToWebhookWorkersFindUnique) Select(params ...tenantPrismaFields) tenantToWebhookWorkersFindUnique { var outputs []builder.Output for _, param := range params { @@ -253989,7 +278608,7 @@ func (r tenantToGroupKeyRunsFindUnique) Select(params ...tenantPrismaFields) ten return r } -func (r tenantToGroupKeyRunsFindUnique) Omit(params ...tenantPrismaFields) tenantToGroupKeyRunsFindUnique { +func (r tenantToWebhookWorkersFindUnique) Omit(params ...tenantPrismaFields) tenantToWebhookWorkersFindUnique { var outputs []builder.Output var raw []string @@ -254008,7 +278627,7 @@ func (r tenantToGroupKeyRunsFindUnique) Omit(params ...tenantPrismaFields) tenan return r } -func (r tenantToGroupKeyRunsFindUnique) Exec(ctx context.Context) ( +func (r tenantToWebhookWorkersFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -254024,7 +278643,7 @@ func (r tenantToGroupKeyRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToGroupKeyRunsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToWebhookWorkersFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -254040,12 +278659,12 @@ func (r tenantToGroupKeyRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToGroupKeyRunsFindUnique) Update(params ...TenantSetParam) tenantToGroupKeyRunsUpdateUnique { +func (r tenantToWebhookWorkersFindUnique) Update(params ...TenantSetParam) tenantToWebhookWorkersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToGroupKeyRunsUpdateUnique + var v tenantToWebhookWorkersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -254074,17 +278693,17 @@ func (r tenantToGroupKeyRunsFindUnique) Update(params ...TenantSetParam) tenantT return v } -type tenantToGroupKeyRunsUpdateUnique struct { +type tenantToWebhookWorkersUpdateUnique struct { query builder.Query } -func (r tenantToGroupKeyRunsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToWebhookWorkersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToGroupKeyRunsUpdateUnique) tenantModel() {} +func (r tenantToWebhookWorkersUpdateUnique) tenantModel() {} -func (r tenantToGroupKeyRunsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToWebhookWorkersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -254092,15 +278711,15 @@ func (r tenantToGroupKeyRunsUpdateUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToGroupKeyRunsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToWebhookWorkersUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToGroupKeyRunsFindUnique) Delete() tenantToGroupKeyRunsDeleteUnique { - var v tenantToGroupKeyRunsDeleteUnique +func (r tenantToWebhookWorkersFindUnique) Delete() tenantToWebhookWorkersDeleteUnique { + var v tenantToWebhookWorkersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -254109,17 +278728,17 @@ func (r tenantToGroupKeyRunsFindUnique) Delete() tenantToGroupKeyRunsDeleteUniqu return v } -type tenantToGroupKeyRunsDeleteUnique struct { +type tenantToWebhookWorkersDeleteUnique struct { query builder.Query } -func (r tenantToGroupKeyRunsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToWebhookWorkersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToGroupKeyRunsDeleteUnique) tenantModel() {} +func (p tenantToWebhookWorkersDeleteUnique) tenantModel() {} -func (r tenantToGroupKeyRunsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToWebhookWorkersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -254127,30 +278746,30 @@ func (r tenantToGroupKeyRunsDeleteUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToGroupKeyRunsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToWebhookWorkersDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToGroupKeyRunsFindFirst struct { +type tenantToWebhookWorkersFindFirst struct { query builder.Query } -func (r tenantToGroupKeyRunsFindFirst) getQuery() builder.Query { +func (r tenantToWebhookWorkersFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToGroupKeyRunsFindFirst) ExtractQuery() builder.Query { +func (r tenantToWebhookWorkersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToGroupKeyRunsFindFirst) with() {} -func (r tenantToGroupKeyRunsFindFirst) tenantModel() {} -func (r tenantToGroupKeyRunsFindFirst) tenantRelation() {} +func (r tenantToWebhookWorkersFindFirst) with() {} +func (r tenantToWebhookWorkersFindFirst) tenantModel() {} +func (r tenantToWebhookWorkersFindFirst) tenantRelation() {} -func (r tenantToGroupKeyRunsFindFirst) With(params ...GetGroupKeyRunRelationWith) tenantToGroupKeyRunsFindFirst { +func (r tenantToWebhookWorkersFindFirst) With(params ...WebhookWorkerRelationWith) tenantToWebhookWorkersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -254163,7 +278782,7 @@ func (r tenantToGroupKeyRunsFindFirst) With(params ...GetGroupKeyRunRelationWith return r } -func (r tenantToGroupKeyRunsFindFirst) Select(params ...tenantPrismaFields) tenantToGroupKeyRunsFindFirst { +func (r tenantToWebhookWorkersFindFirst) Select(params ...tenantPrismaFields) tenantToWebhookWorkersFindFirst { var outputs []builder.Output for _, param := range params { @@ -254177,7 +278796,7 @@ func (r tenantToGroupKeyRunsFindFirst) Select(params ...tenantPrismaFields) tena return r } -func (r tenantToGroupKeyRunsFindFirst) Omit(params ...tenantPrismaFields) tenantToGroupKeyRunsFindFirst { +func (r tenantToWebhookWorkersFindFirst) Omit(params ...tenantPrismaFields) tenantToWebhookWorkersFindFirst { var outputs []builder.Output var raw []string @@ -254196,7 +278815,7 @@ func (r tenantToGroupKeyRunsFindFirst) Omit(params ...tenantPrismaFields) tenant return r } -func (r tenantToGroupKeyRunsFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) tenantToGroupKeyRunsFindFirst { +func (r tenantToWebhookWorkersFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) tenantToWebhookWorkersFindFirst { var fields []builder.Field for _, param := range params { @@ -254216,7 +278835,7 @@ func (r tenantToGroupKeyRunsFindFirst) OrderBy(params ...GetGroupKeyRunOrderByPa return r } -func (r tenantToGroupKeyRunsFindFirst) Skip(count int) tenantToGroupKeyRunsFindFirst { +func (r tenantToWebhookWorkersFindFirst) Skip(count int) tenantToWebhookWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -254224,7 +278843,7 @@ func (r tenantToGroupKeyRunsFindFirst) Skip(count int) tenantToGroupKeyRunsFindF return r } -func (r tenantToGroupKeyRunsFindFirst) Take(count int) tenantToGroupKeyRunsFindFirst { +func (r tenantToWebhookWorkersFindFirst) Take(count int) tenantToWebhookWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -254232,7 +278851,7 @@ func (r tenantToGroupKeyRunsFindFirst) Take(count int) tenantToGroupKeyRunsFindF return r } -func (r tenantToGroupKeyRunsFindFirst) Cursor(cursor TenantCursorParam) tenantToGroupKeyRunsFindFirst { +func (r tenantToWebhookWorkersFindFirst) Cursor(cursor TenantCursorParam) tenantToWebhookWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -254240,7 +278859,7 @@ func (r tenantToGroupKeyRunsFindFirst) Cursor(cursor TenantCursorParam) tenantTo return r } -func (r tenantToGroupKeyRunsFindFirst) Exec(ctx context.Context) ( +func (r tenantToWebhookWorkersFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -254256,7 +278875,7 @@ func (r tenantToGroupKeyRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToGroupKeyRunsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToWebhookWorkersFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -254272,23 +278891,23 @@ func (r tenantToGroupKeyRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToGroupKeyRunsFindMany struct { +type tenantToWebhookWorkersFindMany struct { query builder.Query } -func (r tenantToGroupKeyRunsFindMany) getQuery() builder.Query { +func (r tenantToWebhookWorkersFindMany) getQuery() builder.Query { return r.query } -func (r tenantToGroupKeyRunsFindMany) ExtractQuery() builder.Query { +func (r tenantToWebhookWorkersFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToGroupKeyRunsFindMany) with() {} -func (r tenantToGroupKeyRunsFindMany) tenantModel() {} -func (r tenantToGroupKeyRunsFindMany) tenantRelation() {} +func (r tenantToWebhookWorkersFindMany) with() {} +func (r tenantToWebhookWorkersFindMany) tenantModel() {} +func (r tenantToWebhookWorkersFindMany) tenantRelation() {} -func (r tenantToGroupKeyRunsFindMany) With(params ...GetGroupKeyRunRelationWith) tenantToGroupKeyRunsFindMany { +func (r tenantToWebhookWorkersFindMany) With(params ...WebhookWorkerRelationWith) tenantToWebhookWorkersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -254301,7 +278920,7 @@ func (r tenantToGroupKeyRunsFindMany) With(params ...GetGroupKeyRunRelationWith) return r } -func (r tenantToGroupKeyRunsFindMany) Select(params ...tenantPrismaFields) tenantToGroupKeyRunsFindMany { +func (r tenantToWebhookWorkersFindMany) Select(params ...tenantPrismaFields) tenantToWebhookWorkersFindMany { var outputs []builder.Output for _, param := range params { @@ -254315,7 +278934,7 @@ func (r tenantToGroupKeyRunsFindMany) Select(params ...tenantPrismaFields) tenan return r } -func (r tenantToGroupKeyRunsFindMany) Omit(params ...tenantPrismaFields) tenantToGroupKeyRunsFindMany { +func (r tenantToWebhookWorkersFindMany) Omit(params ...tenantPrismaFields) tenantToWebhookWorkersFindMany { var outputs []builder.Output var raw []string @@ -254334,7 +278953,7 @@ func (r tenantToGroupKeyRunsFindMany) Omit(params ...tenantPrismaFields) tenantT return r } -func (r tenantToGroupKeyRunsFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) tenantToGroupKeyRunsFindMany { +func (r tenantToWebhookWorkersFindMany) OrderBy(params ...WebhookWorkerOrderByParam) tenantToWebhookWorkersFindMany { var fields []builder.Field for _, param := range params { @@ -254354,7 +278973,7 @@ func (r tenantToGroupKeyRunsFindMany) OrderBy(params ...GetGroupKeyRunOrderByPar return r } -func (r tenantToGroupKeyRunsFindMany) Skip(count int) tenantToGroupKeyRunsFindMany { +func (r tenantToWebhookWorkersFindMany) Skip(count int) tenantToWebhookWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -254362,7 +278981,7 @@ func (r tenantToGroupKeyRunsFindMany) Skip(count int) tenantToGroupKeyRunsFindMa return r } -func (r tenantToGroupKeyRunsFindMany) Take(count int) tenantToGroupKeyRunsFindMany { +func (r tenantToWebhookWorkersFindMany) Take(count int) tenantToWebhookWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -254370,7 +278989,7 @@ func (r tenantToGroupKeyRunsFindMany) Take(count int) tenantToGroupKeyRunsFindMa return r } -func (r tenantToGroupKeyRunsFindMany) Cursor(cursor TenantCursorParam) tenantToGroupKeyRunsFindMany { +func (r tenantToWebhookWorkersFindMany) Cursor(cursor TenantCursorParam) tenantToWebhookWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -254378,7 +278997,7 @@ func (r tenantToGroupKeyRunsFindMany) Cursor(cursor TenantCursorParam) tenantToG return r } -func (r tenantToGroupKeyRunsFindMany) Exec(ctx context.Context) ( +func (r tenantToWebhookWorkersFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -254390,7 +279009,7 @@ func (r tenantToGroupKeyRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToGroupKeyRunsFindMany) ExecInner(ctx context.Context) ( +func (r tenantToWebhookWorkersFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -254402,14 +279021,14 @@ func (r tenantToGroupKeyRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToGroupKeyRunsFindMany) Update(params ...TenantSetParam) tenantToGroupKeyRunsUpdateMany { +func (r tenantToWebhookWorkersFindMany) Update(params ...TenantSetParam) tenantToWebhookWorkersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToGroupKeyRunsUpdateMany + var v tenantToWebhookWorkersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -254438,17 +279057,17 @@ func (r tenantToGroupKeyRunsFindMany) Update(params ...TenantSetParam) tenantToG return v } -type tenantToGroupKeyRunsUpdateMany struct { +type tenantToWebhookWorkersUpdateMany struct { query builder.Query } -func (r tenantToGroupKeyRunsUpdateMany) ExtractQuery() builder.Query { +func (r tenantToWebhookWorkersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToGroupKeyRunsUpdateMany) tenantModel() {} +func (r tenantToWebhookWorkersUpdateMany) tenantModel() {} -func (r tenantToGroupKeyRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWebhookWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -254456,15 +279075,15 @@ func (r tenantToGroupKeyRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToGroupKeyRunsUpdateMany) Tx() TenantManyTxResult { +func (r tenantToWebhookWorkersUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToGroupKeyRunsFindMany) Delete() tenantToGroupKeyRunsDeleteMany { - var v tenantToGroupKeyRunsDeleteMany +func (r tenantToWebhookWorkersFindMany) Delete() tenantToWebhookWorkersDeleteMany { + var v tenantToWebhookWorkersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -254475,17 +279094,17 @@ func (r tenantToGroupKeyRunsFindMany) Delete() tenantToGroupKeyRunsDeleteMany { return v } -type tenantToGroupKeyRunsDeleteMany struct { +type tenantToWebhookWorkersDeleteMany struct { query builder.Query } -func (r tenantToGroupKeyRunsDeleteMany) ExtractQuery() builder.Query { +func (r tenantToWebhookWorkersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToGroupKeyRunsDeleteMany) tenantModel() {} +func (p tenantToWebhookWorkersDeleteMany) tenantModel() {} -func (r tenantToGroupKeyRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToWebhookWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -254493,30 +279112,30 @@ func (r tenantToGroupKeyRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToGroupKeyRunsDeleteMany) Tx() TenantManyTxResult { +func (r tenantToWebhookWorkersDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToVcsProvidersFindUnique struct { +type tenantToDedupesFindUnique struct { query builder.Query } -func (r tenantToVcsProvidersFindUnique) getQuery() builder.Query { +func (r tenantToDedupesFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToVcsProvidersFindUnique) ExtractQuery() builder.Query { +func (r tenantToDedupesFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToVcsProvidersFindUnique) with() {} -func (r tenantToVcsProvidersFindUnique) tenantModel() {} -func (r tenantToVcsProvidersFindUnique) tenantRelation() {} +func (r tenantToDedupesFindUnique) with() {} +func (r tenantToDedupesFindUnique) tenantModel() {} +func (r tenantToDedupesFindUnique) tenantRelation() {} -func (r tenantToVcsProvidersFindUnique) With(params ...TenantVcsProviderRelationWith) tenantToVcsProvidersFindUnique { +func (r tenantToDedupesFindUnique) With(params ...WorkflowRunDedupeRelationWith) tenantToDedupesFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -254529,7 +279148,7 @@ func (r tenantToVcsProvidersFindUnique) With(params ...TenantVcsProviderRelation return r } -func (r tenantToVcsProvidersFindUnique) Select(params ...tenantPrismaFields) tenantToVcsProvidersFindUnique { +func (r tenantToDedupesFindUnique) Select(params ...tenantPrismaFields) tenantToDedupesFindUnique { var outputs []builder.Output for _, param := range params { @@ -254543,7 +279162,7 @@ func (r tenantToVcsProvidersFindUnique) Select(params ...tenantPrismaFields) ten return r } -func (r tenantToVcsProvidersFindUnique) Omit(params ...tenantPrismaFields) tenantToVcsProvidersFindUnique { +func (r tenantToDedupesFindUnique) Omit(params ...tenantPrismaFields) tenantToDedupesFindUnique { var outputs []builder.Output var raw []string @@ -254562,7 +279181,7 @@ func (r tenantToVcsProvidersFindUnique) Omit(params ...tenantPrismaFields) tenan return r } -func (r tenantToVcsProvidersFindUnique) Exec(ctx context.Context) ( +func (r tenantToDedupesFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -254578,7 +279197,7 @@ func (r tenantToVcsProvidersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToVcsProvidersFindUnique) ExecInner(ctx context.Context) ( +func (r tenantToDedupesFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -254594,12 +279213,12 @@ func (r tenantToVcsProvidersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToVcsProvidersFindUnique) Update(params ...TenantSetParam) tenantToVcsProvidersUpdateUnique { +func (r tenantToDedupesFindUnique) Update(params ...TenantSetParam) tenantToDedupesUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToVcsProvidersUpdateUnique + var v tenantToDedupesUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -254628,17 +279247,17 @@ func (r tenantToVcsProvidersFindUnique) Update(params ...TenantSetParam) tenantT return v } -type tenantToVcsProvidersUpdateUnique struct { +type tenantToDedupesUpdateUnique struct { query builder.Query } -func (r tenantToVcsProvidersUpdateUnique) ExtractQuery() builder.Query { +func (r tenantToDedupesUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToVcsProvidersUpdateUnique) tenantModel() {} +func (r tenantToDedupesUpdateUnique) tenantModel() {} -func (r tenantToVcsProvidersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToDedupesUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -254646,15 +279265,15 @@ func (r tenantToVcsProvidersUpdateUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToVcsProvidersUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantToDedupesUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToVcsProvidersFindUnique) Delete() tenantToVcsProvidersDeleteUnique { - var v tenantToVcsProvidersDeleteUnique +func (r tenantToDedupesFindUnique) Delete() tenantToDedupesDeleteUnique { + var v tenantToDedupesDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -254663,17 +279282,17 @@ func (r tenantToVcsProvidersFindUnique) Delete() tenantToVcsProvidersDeleteUniqu return v } -type tenantToVcsProvidersDeleteUnique struct { +type tenantToDedupesDeleteUnique struct { query builder.Query } -func (r tenantToVcsProvidersDeleteUnique) ExtractQuery() builder.Query { +func (r tenantToDedupesDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToVcsProvidersDeleteUnique) tenantModel() {} +func (p tenantToDedupesDeleteUnique) tenantModel() {} -func (r tenantToVcsProvidersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantToDedupesDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -254681,30 +279300,30 @@ func (r tenantToVcsProvidersDeleteUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToVcsProvidersDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantToDedupesDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToVcsProvidersFindFirst struct { +type tenantToDedupesFindFirst struct { query builder.Query } -func (r tenantToVcsProvidersFindFirst) getQuery() builder.Query { +func (r tenantToDedupesFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToVcsProvidersFindFirst) ExtractQuery() builder.Query { +func (r tenantToDedupesFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToVcsProvidersFindFirst) with() {} -func (r tenantToVcsProvidersFindFirst) tenantModel() {} -func (r tenantToVcsProvidersFindFirst) tenantRelation() {} +func (r tenantToDedupesFindFirst) with() {} +func (r tenantToDedupesFindFirst) tenantModel() {} +func (r tenantToDedupesFindFirst) tenantRelation() {} -func (r tenantToVcsProvidersFindFirst) With(params ...TenantVcsProviderRelationWith) tenantToVcsProvidersFindFirst { +func (r tenantToDedupesFindFirst) With(params ...WorkflowRunDedupeRelationWith) tenantToDedupesFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -254717,7 +279336,7 @@ func (r tenantToVcsProvidersFindFirst) With(params ...TenantVcsProviderRelationW return r } -func (r tenantToVcsProvidersFindFirst) Select(params ...tenantPrismaFields) tenantToVcsProvidersFindFirst { +func (r tenantToDedupesFindFirst) Select(params ...tenantPrismaFields) tenantToDedupesFindFirst { var outputs []builder.Output for _, param := range params { @@ -254731,7 +279350,7 @@ func (r tenantToVcsProvidersFindFirst) Select(params ...tenantPrismaFields) tena return r } -func (r tenantToVcsProvidersFindFirst) Omit(params ...tenantPrismaFields) tenantToVcsProvidersFindFirst { +func (r tenantToDedupesFindFirst) Omit(params ...tenantPrismaFields) tenantToDedupesFindFirst { var outputs []builder.Output var raw []string @@ -254750,7 +279369,7 @@ func (r tenantToVcsProvidersFindFirst) Omit(params ...tenantPrismaFields) tenant return r } -func (r tenantToVcsProvidersFindFirst) OrderBy(params ...TenantVcsProviderOrderByParam) tenantToVcsProvidersFindFirst { +func (r tenantToDedupesFindFirst) OrderBy(params ...WorkflowRunDedupeOrderByParam) tenantToDedupesFindFirst { var fields []builder.Field for _, param := range params { @@ -254770,7 +279389,7 @@ func (r tenantToVcsProvidersFindFirst) OrderBy(params ...TenantVcsProviderOrderB return r } -func (r tenantToVcsProvidersFindFirst) Skip(count int) tenantToVcsProvidersFindFirst { +func (r tenantToDedupesFindFirst) Skip(count int) tenantToDedupesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -254778,7 +279397,7 @@ func (r tenantToVcsProvidersFindFirst) Skip(count int) tenantToVcsProvidersFindF return r } -func (r tenantToVcsProvidersFindFirst) Take(count int) tenantToVcsProvidersFindFirst { +func (r tenantToDedupesFindFirst) Take(count int) tenantToDedupesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -254786,7 +279405,7 @@ func (r tenantToVcsProvidersFindFirst) Take(count int) tenantToVcsProvidersFindF return r } -func (r tenantToVcsProvidersFindFirst) Cursor(cursor TenantCursorParam) tenantToVcsProvidersFindFirst { +func (r tenantToDedupesFindFirst) Cursor(cursor TenantCursorParam) tenantToDedupesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -254794,7 +279413,7 @@ func (r tenantToVcsProvidersFindFirst) Cursor(cursor TenantCursorParam) tenantTo return r } -func (r tenantToVcsProvidersFindFirst) Exec(ctx context.Context) ( +func (r tenantToDedupesFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -254810,7 +279429,7 @@ func (r tenantToVcsProvidersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToVcsProvidersFindFirst) ExecInner(ctx context.Context) ( +func (r tenantToDedupesFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -254826,23 +279445,23 @@ func (r tenantToVcsProvidersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToVcsProvidersFindMany struct { +type tenantToDedupesFindMany struct { query builder.Query } -func (r tenantToVcsProvidersFindMany) getQuery() builder.Query { +func (r tenantToDedupesFindMany) getQuery() builder.Query { return r.query } -func (r tenantToVcsProvidersFindMany) ExtractQuery() builder.Query { +func (r tenantToDedupesFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToVcsProvidersFindMany) with() {} -func (r tenantToVcsProvidersFindMany) tenantModel() {} -func (r tenantToVcsProvidersFindMany) tenantRelation() {} +func (r tenantToDedupesFindMany) with() {} +func (r tenantToDedupesFindMany) tenantModel() {} +func (r tenantToDedupesFindMany) tenantRelation() {} -func (r tenantToVcsProvidersFindMany) With(params ...TenantVcsProviderRelationWith) tenantToVcsProvidersFindMany { +func (r tenantToDedupesFindMany) With(params ...WorkflowRunDedupeRelationWith) tenantToDedupesFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -254855,7 +279474,7 @@ func (r tenantToVcsProvidersFindMany) With(params ...TenantVcsProviderRelationWi return r } -func (r tenantToVcsProvidersFindMany) Select(params ...tenantPrismaFields) tenantToVcsProvidersFindMany { +func (r tenantToDedupesFindMany) Select(params ...tenantPrismaFields) tenantToDedupesFindMany { var outputs []builder.Output for _, param := range params { @@ -254869,7 +279488,7 @@ func (r tenantToVcsProvidersFindMany) Select(params ...tenantPrismaFields) tenan return r } -func (r tenantToVcsProvidersFindMany) Omit(params ...tenantPrismaFields) tenantToVcsProvidersFindMany { +func (r tenantToDedupesFindMany) Omit(params ...tenantPrismaFields) tenantToDedupesFindMany { var outputs []builder.Output var raw []string @@ -254888,7 +279507,7 @@ func (r tenantToVcsProvidersFindMany) Omit(params ...tenantPrismaFields) tenantT return r } -func (r tenantToVcsProvidersFindMany) OrderBy(params ...TenantVcsProviderOrderByParam) tenantToVcsProvidersFindMany { +func (r tenantToDedupesFindMany) OrderBy(params ...WorkflowRunDedupeOrderByParam) tenantToDedupesFindMany { var fields []builder.Field for _, param := range params { @@ -254908,7 +279527,7 @@ func (r tenantToVcsProvidersFindMany) OrderBy(params ...TenantVcsProviderOrderBy return r } -func (r tenantToVcsProvidersFindMany) Skip(count int) tenantToVcsProvidersFindMany { +func (r tenantToDedupesFindMany) Skip(count int) tenantToDedupesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -254916,7 +279535,7 @@ func (r tenantToVcsProvidersFindMany) Skip(count int) tenantToVcsProvidersFindMa return r } -func (r tenantToVcsProvidersFindMany) Take(count int) tenantToVcsProvidersFindMany { +func (r tenantToDedupesFindMany) Take(count int) tenantToDedupesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -254924,7 +279543,7 @@ func (r tenantToVcsProvidersFindMany) Take(count int) tenantToVcsProvidersFindMa return r } -func (r tenantToVcsProvidersFindMany) Cursor(cursor TenantCursorParam) tenantToVcsProvidersFindMany { +func (r tenantToDedupesFindMany) Cursor(cursor TenantCursorParam) tenantToDedupesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -254932,7 +279551,7 @@ func (r tenantToVcsProvidersFindMany) Cursor(cursor TenantCursorParam) tenantToV return r } -func (r tenantToVcsProvidersFindMany) Exec(ctx context.Context) ( +func (r tenantToDedupesFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -254944,7 +279563,7 @@ func (r tenantToVcsProvidersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToVcsProvidersFindMany) ExecInner(ctx context.Context) ( +func (r tenantToDedupesFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -254956,14 +279575,14 @@ func (r tenantToVcsProvidersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToVcsProvidersFindMany) Update(params ...TenantSetParam) tenantToVcsProvidersUpdateMany { +func (r tenantToDedupesFindMany) Update(params ...TenantSetParam) tenantToDedupesUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToVcsProvidersUpdateMany + var v tenantToDedupesUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -254992,17 +279611,17 @@ func (r tenantToVcsProvidersFindMany) Update(params ...TenantSetParam) tenantToV return v } -type tenantToVcsProvidersUpdateMany struct { +type tenantToDedupesUpdateMany struct { query builder.Query } -func (r tenantToVcsProvidersUpdateMany) ExtractQuery() builder.Query { +func (r tenantToDedupesUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToVcsProvidersUpdateMany) tenantModel() {} +func (r tenantToDedupesUpdateMany) tenantModel() {} -func (r tenantToVcsProvidersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToDedupesUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -255010,15 +279629,15 @@ func (r tenantToVcsProvidersUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToVcsProvidersUpdateMany) Tx() TenantManyTxResult { +func (r tenantToDedupesUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToVcsProvidersFindMany) Delete() tenantToVcsProvidersDeleteMany { - var v tenantToVcsProvidersDeleteMany +func (r tenantToDedupesFindMany) Delete() tenantToDedupesDeleteMany { + var v tenantToDedupesDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -255029,17 +279648,17 @@ func (r tenantToVcsProvidersFindMany) Delete() tenantToVcsProvidersDeleteMany { return v } -type tenantToVcsProvidersDeleteMany struct { +type tenantToDedupesDeleteMany struct { query builder.Query } -func (r tenantToVcsProvidersDeleteMany) ExtractQuery() builder.Query { +func (r tenantToDedupesDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToVcsProvidersDeleteMany) tenantModel() {} +func (p tenantToDedupesDeleteMany) tenantModel() {} -func (r tenantToVcsProvidersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantToDedupesDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -255047,30 +279666,52 @@ func (r tenantToVcsProvidersDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToVcsProvidersDeleteMany) Tx() TenantManyTxResult { +func (r tenantToDedupesDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToStreamEventsFindUnique struct { +type tenantFindUnique struct { query builder.Query } -func (r tenantToStreamEventsFindUnique) getQuery() builder.Query { +func (r tenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToStreamEventsFindUnique) ExtractQuery() builder.Query { +func (r tenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToStreamEventsFindUnique) with() {} -func (r tenantToStreamEventsFindUnique) tenantModel() {} -func (r tenantToStreamEventsFindUnique) tenantRelation() {} +func (r tenantFindUnique) with() {} +func (r tenantFindUnique) tenantModel() {} +func (r tenantFindUnique) tenantRelation() {} -func (r tenantToStreamEventsFindUnique) With(params ...StreamEventRelationWith) tenantToStreamEventsFindUnique { +func (r tenantActions) FindUnique( + params TenantEqualsUniqueWhereParam, +) tenantFindUnique { + var v tenantFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "Tenant" + v.query.Outputs = tenantOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r tenantFindUnique) With(params ...TenantRelationWith) tenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -255083,7 +279724,7 @@ func (r tenantToStreamEventsFindUnique) With(params ...StreamEventRelationWith) return r } -func (r tenantToStreamEventsFindUnique) Select(params ...tenantPrismaFields) tenantToStreamEventsFindUnique { +func (r tenantFindUnique) Select(params ...tenantPrismaFields) tenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -255097,7 +279738,7 @@ func (r tenantToStreamEventsFindUnique) Select(params ...tenantPrismaFields) ten return r } -func (r tenantToStreamEventsFindUnique) Omit(params ...tenantPrismaFields) tenantToStreamEventsFindUnique { +func (r tenantFindUnique) Omit(params ...tenantPrismaFields) tenantFindUnique { var outputs []builder.Output var raw []string @@ -255116,7 +279757,7 @@ func (r tenantToStreamEventsFindUnique) Omit(params ...tenantPrismaFields) tenan return r } -func (r tenantToStreamEventsFindUnique) Exec(ctx context.Context) ( +func (r tenantFindUnique) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -255132,7 +279773,7 @@ func (r tenantToStreamEventsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStreamEventsFindUnique) ExecInner(ctx context.Context) ( +func (r tenantFindUnique) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -255148,12 +279789,12 @@ func (r tenantToStreamEventsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToStreamEventsFindUnique) Update(params ...TenantSetParam) tenantToStreamEventsUpdateUnique { +func (r tenantFindUnique) Update(params ...TenantSetParam) tenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Tenant" - var v tenantToStreamEventsUpdateUnique + var v tenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -255182,17 +279823,17 @@ func (r tenantToStreamEventsFindUnique) Update(params ...TenantSetParam) tenantT return v } -type tenantToStreamEventsUpdateUnique struct { +type tenantUpdateUnique struct { query builder.Query } -func (r tenantToStreamEventsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToStreamEventsUpdateUnique) tenantModel() {} +func (r tenantUpdateUnique) tenantModel() {} -func (r tenantToStreamEventsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -255200,15 +279841,15 @@ func (r tenantToStreamEventsUpdateUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToStreamEventsUpdateUnique) Tx() TenantUniqueTxResult { +func (r tenantUpdateUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToStreamEventsFindUnique) Delete() tenantToStreamEventsDeleteUnique { - var v tenantToStreamEventsDeleteUnique +func (r tenantFindUnique) Delete() tenantDeleteUnique { + var v tenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -255217,17 +279858,17 @@ func (r tenantToStreamEventsFindUnique) Delete() tenantToStreamEventsDeleteUniqu return v } -type tenantToStreamEventsDeleteUnique struct { +type tenantDeleteUnique struct { query builder.Query } -func (r tenantToStreamEventsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToStreamEventsDeleteUnique) tenantModel() {} +func (p tenantDeleteUnique) tenantModel() {} -func (r tenantToStreamEventsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { +func (r tenantDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { var v TenantModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -255235,30 +279876,67 @@ func (r tenantToStreamEventsDeleteUnique) Exec(ctx context.Context) (*TenantMode return &v, nil } -func (r tenantToStreamEventsDeleteUnique) Tx() TenantUniqueTxResult { +func (r tenantDeleteUnique) Tx() TenantUniqueTxResult { v := newTenantUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToStreamEventsFindFirst struct { +type tenantFindFirst struct { query builder.Query } -func (r tenantToStreamEventsFindFirst) getQuery() builder.Query { +func (r tenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToStreamEventsFindFirst) ExtractQuery() builder.Query { +func (r tenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToStreamEventsFindFirst) with() {} -func (r tenantToStreamEventsFindFirst) tenantModel() {} -func (r tenantToStreamEventsFindFirst) tenantRelation() {} +func (r tenantFindFirst) with() {} +func (r tenantFindFirst) tenantModel() {} +func (r tenantFindFirst) tenantRelation() {} -func (r tenantToStreamEventsFindFirst) With(params ...StreamEventRelationWith) tenantToStreamEventsFindFirst { +func (r tenantActions) FindFirst( + params ...TenantWhereParam, +) tenantFindFirst { + var v tenantFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "Tenant" + v.query.Outputs = tenantOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantFindFirst) With(params ...TenantRelationWith) tenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -255271,7 +279949,7 @@ func (r tenantToStreamEventsFindFirst) With(params ...StreamEventRelationWith) t return r } -func (r tenantToStreamEventsFindFirst) Select(params ...tenantPrismaFields) tenantToStreamEventsFindFirst { +func (r tenantFindFirst) Select(params ...tenantPrismaFields) tenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -255285,7 +279963,7 @@ func (r tenantToStreamEventsFindFirst) Select(params ...tenantPrismaFields) tena return r } -func (r tenantToStreamEventsFindFirst) Omit(params ...tenantPrismaFields) tenantToStreamEventsFindFirst { +func (r tenantFindFirst) Omit(params ...tenantPrismaFields) tenantFindFirst { var outputs []builder.Output var raw []string @@ -255304,7 +279982,7 @@ func (r tenantToStreamEventsFindFirst) Omit(params ...tenantPrismaFields) tenant return r } -func (r tenantToStreamEventsFindFirst) OrderBy(params ...StreamEventOrderByParam) tenantToStreamEventsFindFirst { +func (r tenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantFindFirst { var fields []builder.Field for _, param := range params { @@ -255324,7 +280002,7 @@ func (r tenantToStreamEventsFindFirst) OrderBy(params ...StreamEventOrderByParam return r } -func (r tenantToStreamEventsFindFirst) Skip(count int) tenantToStreamEventsFindFirst { +func (r tenantFindFirst) Skip(count int) tenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -255332,7 +280010,7 @@ func (r tenantToStreamEventsFindFirst) Skip(count int) tenantToStreamEventsFindF return r } -func (r tenantToStreamEventsFindFirst) Take(count int) tenantToStreamEventsFindFirst { +func (r tenantFindFirst) Take(count int) tenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -255340,7 +280018,7 @@ func (r tenantToStreamEventsFindFirst) Take(count int) tenantToStreamEventsFindF return r } -func (r tenantToStreamEventsFindFirst) Cursor(cursor TenantCursorParam) tenantToStreamEventsFindFirst { +func (r tenantFindFirst) Cursor(cursor TenantCursorParam) tenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -255348,7 +280026,7 @@ func (r tenantToStreamEventsFindFirst) Cursor(cursor TenantCursorParam) tenantTo return r } -func (r tenantToStreamEventsFindFirst) Exec(ctx context.Context) ( +func (r tenantFindFirst) Exec(ctx context.Context) ( *TenantModel, error, ) { @@ -255364,7 +280042,7 @@ func (r tenantToStreamEventsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStreamEventsFindFirst) ExecInner(ctx context.Context) ( +func (r tenantFindFirst) ExecInner(ctx context.Context) ( *InnerTenant, error, ) { @@ -255380,23 +280058,60 @@ func (r tenantToStreamEventsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToStreamEventsFindMany struct { +type tenantFindMany struct { query builder.Query } -func (r tenantToStreamEventsFindMany) getQuery() builder.Query { +func (r tenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantToStreamEventsFindMany) ExtractQuery() builder.Query { +func (r tenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToStreamEventsFindMany) with() {} -func (r tenantToStreamEventsFindMany) tenantModel() {} -func (r tenantToStreamEventsFindMany) tenantRelation() {} +func (r tenantFindMany) with() {} +func (r tenantFindMany) tenantModel() {} +func (r tenantFindMany) tenantRelation() {} -func (r tenantToStreamEventsFindMany) With(params ...StreamEventRelationWith) tenantToStreamEventsFindMany { +func (r tenantActions) FindMany( + params ...TenantWhereParam, +) tenantFindMany { + var v tenantFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "Tenant" + v.query.Outputs = tenantOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantFindMany) With(params ...TenantRelationWith) tenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -255409,7 +280124,7 @@ func (r tenantToStreamEventsFindMany) With(params ...StreamEventRelationWith) te return r } -func (r tenantToStreamEventsFindMany) Select(params ...tenantPrismaFields) tenantToStreamEventsFindMany { +func (r tenantFindMany) Select(params ...tenantPrismaFields) tenantFindMany { var outputs []builder.Output for _, param := range params { @@ -255423,7 +280138,7 @@ func (r tenantToStreamEventsFindMany) Select(params ...tenantPrismaFields) tenan return r } -func (r tenantToStreamEventsFindMany) Omit(params ...tenantPrismaFields) tenantToStreamEventsFindMany { +func (r tenantFindMany) Omit(params ...tenantPrismaFields) tenantFindMany { var outputs []builder.Output var raw []string @@ -255442,7 +280157,7 @@ func (r tenantToStreamEventsFindMany) Omit(params ...tenantPrismaFields) tenantT return r } -func (r tenantToStreamEventsFindMany) OrderBy(params ...StreamEventOrderByParam) tenantToStreamEventsFindMany { +func (r tenantFindMany) OrderBy(params ...TenantOrderByParam) tenantFindMany { var fields []builder.Field for _, param := range params { @@ -255462,7 +280177,7 @@ func (r tenantToStreamEventsFindMany) OrderBy(params ...StreamEventOrderByParam) return r } -func (r tenantToStreamEventsFindMany) Skip(count int) tenantToStreamEventsFindMany { +func (r tenantFindMany) Skip(count int) tenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -255470,7 +280185,7 @@ func (r tenantToStreamEventsFindMany) Skip(count int) tenantToStreamEventsFindMa return r } -func (r tenantToStreamEventsFindMany) Take(count int) tenantToStreamEventsFindMany { +func (r tenantFindMany) Take(count int) tenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -255478,7 +280193,7 @@ func (r tenantToStreamEventsFindMany) Take(count int) tenantToStreamEventsFindMa return r } -func (r tenantToStreamEventsFindMany) Cursor(cursor TenantCursorParam) tenantToStreamEventsFindMany { +func (r tenantFindMany) Cursor(cursor TenantCursorParam) tenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -255486,7 +280201,7 @@ func (r tenantToStreamEventsFindMany) Cursor(cursor TenantCursorParam) tenantToS return r } -func (r tenantToStreamEventsFindMany) Exec(ctx context.Context) ( +func (r tenantFindMany) Exec(ctx context.Context) ( []TenantModel, error, ) { @@ -255498,7 +280213,7 @@ func (r tenantToStreamEventsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStreamEventsFindMany) ExecInner(ctx context.Context) ( +func (r tenantFindMany) ExecInner(ctx context.Context) ( []InnerTenant, error, ) { @@ -255510,14 +280225,14 @@ func (r tenantToStreamEventsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToStreamEventsFindMany) Update(params ...TenantSetParam) tenantToStreamEventsUpdateMany { +func (r tenantFindMany) Update(params ...TenantSetParam) tenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Tenant" r.query.Outputs = countOutput - var v tenantToStreamEventsUpdateMany + var v tenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -255546,17 +280261,17 @@ func (r tenantToStreamEventsFindMany) Update(params ...TenantSetParam) tenantToS return v } -type tenantToStreamEventsUpdateMany struct { +type tenantUpdateMany struct { query builder.Query } -func (r tenantToStreamEventsUpdateMany) ExtractQuery() builder.Query { +func (r tenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToStreamEventsUpdateMany) tenantModel() {} +func (r tenantUpdateMany) tenantModel() {} -func (r tenantToStreamEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -255564,15 +280279,15 @@ func (r tenantToStreamEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToStreamEventsUpdateMany) Tx() TenantManyTxResult { +func (r tenantUpdateMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToStreamEventsFindMany) Delete() tenantToStreamEventsDeleteMany { - var v tenantToStreamEventsDeleteMany +func (r tenantFindMany) Delete() tenantDeleteMany { + var v tenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -255583,17 +280298,17 @@ func (r tenantToStreamEventsFindMany) Delete() tenantToStreamEventsDeleteMany { return v } -type tenantToStreamEventsDeleteMany struct { +type tenantDeleteMany struct { query builder.Query } -func (r tenantToStreamEventsDeleteMany) ExtractQuery() builder.Query { +func (r tenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToStreamEventsDeleteMany) tenantModel() {} +func (p tenantDeleteMany) tenantModel() {} -func (r tenantToStreamEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -255601,30 +280316,30 @@ func (r tenantToStreamEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToStreamEventsDeleteMany) Tx() TenantManyTxResult { +func (r tenantDeleteMany) Tx() TenantManyTxResult { v := newTenantManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToLogsFindUnique struct { +type tenantResourceLimitToTenantFindUnique struct { query builder.Query } -func (r tenantToLogsFindUnique) getQuery() builder.Query { +func (r tenantResourceLimitToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToLogsFindUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToLogsFindUnique) with() {} -func (r tenantToLogsFindUnique) tenantModel() {} -func (r tenantToLogsFindUnique) tenantRelation() {} +func (r tenantResourceLimitToTenantFindUnique) with() {} +func (r tenantResourceLimitToTenantFindUnique) tenantResourceLimitModel() {} +func (r tenantResourceLimitToTenantFindUnique) tenantResourceLimitRelation() {} -func (r tenantToLogsFindUnique) With(params ...LogLineRelationWith) tenantToLogsFindUnique { +func (r tenantResourceLimitToTenantFindUnique) With(params ...TenantRelationWith) tenantResourceLimitToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -255637,7 +280352,7 @@ func (r tenantToLogsFindUnique) With(params ...LogLineRelationWith) tenantToLogs return r } -func (r tenantToLogsFindUnique) Select(params ...tenantPrismaFields) tenantToLogsFindUnique { +func (r tenantResourceLimitToTenantFindUnique) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -255651,7 +280366,7 @@ func (r tenantToLogsFindUnique) Select(params ...tenantPrismaFields) tenantToLog return r } -func (r tenantToLogsFindUnique) Omit(params ...tenantPrismaFields) tenantToLogsFindUnique { +func (r tenantResourceLimitToTenantFindUnique) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindUnique { var outputs []builder.Output var raw []string @@ -255659,7 +280374,7 @@ func (r tenantToLogsFindUnique) Omit(params ...tenantPrismaFields) tenantToLogsF raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -255670,11 +280385,11 @@ func (r tenantToLogsFindUnique) Omit(params ...tenantPrismaFields) tenantToLogsF return r } -func (r tenantToLogsFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitToTenantFindUnique) Exec(ctx context.Context) ( + *TenantResourceLimitModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -255686,11 +280401,11 @@ func (r tenantToLogsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLogsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimit, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -255702,12 +280417,12 @@ func (r tenantToLogsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToLogsFindUnique) Update(params ...TenantSetParam) tenantToLogsUpdateUnique { +func (r tenantResourceLimitToTenantFindUnique) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimit" - var v tenantToLogsUpdateUnique + var v tenantResourceLimitToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -255736,83 +280451,83 @@ func (r tenantToLogsFindUnique) Update(params ...TenantSetParam) tenantToLogsUpd return v } -type tenantToLogsUpdateUnique struct { +type tenantResourceLimitToTenantUpdateUnique struct { query builder.Query } -func (r tenantToLogsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToLogsUpdateUnique) tenantModel() {} +func (r tenantResourceLimitToTenantUpdateUnique) tenantResourceLimitModel() {} -func (r tenantToLogsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitToTenantUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { + var v TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToLogsUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitToTenantUpdateUnique) Tx() TenantResourceLimitUniqueTxResult { + v := newTenantResourceLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToLogsFindUnique) Delete() tenantToLogsDeleteUnique { - var v tenantToLogsDeleteUnique +func (r tenantResourceLimitToTenantFindUnique) Delete() tenantResourceLimitToTenantDeleteUnique { + var v tenantResourceLimitToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimit" return v } -type tenantToLogsDeleteUnique struct { +type tenantResourceLimitToTenantDeleteUnique struct { query builder.Query } -func (r tenantToLogsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToLogsDeleteUnique) tenantModel() {} +func (p tenantResourceLimitToTenantDeleteUnique) tenantResourceLimitModel() {} -func (r tenantToLogsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitToTenantDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { + var v TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToLogsDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitToTenantDeleteUnique) Tx() TenantResourceLimitUniqueTxResult { + v := newTenantResourceLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToLogsFindFirst struct { +type tenantResourceLimitToTenantFindFirst struct { query builder.Query } -func (r tenantToLogsFindFirst) getQuery() builder.Query { +func (r tenantResourceLimitToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToLogsFindFirst) ExtractQuery() builder.Query { +func (r tenantResourceLimitToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToLogsFindFirst) with() {} -func (r tenantToLogsFindFirst) tenantModel() {} -func (r tenantToLogsFindFirst) tenantRelation() {} +func (r tenantResourceLimitToTenantFindFirst) with() {} +func (r tenantResourceLimitToTenantFindFirst) tenantResourceLimitModel() {} +func (r tenantResourceLimitToTenantFindFirst) tenantResourceLimitRelation() {} -func (r tenantToLogsFindFirst) With(params ...LogLineRelationWith) tenantToLogsFindFirst { +func (r tenantResourceLimitToTenantFindFirst) With(params ...TenantRelationWith) tenantResourceLimitToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -255825,7 +280540,7 @@ func (r tenantToLogsFindFirst) With(params ...LogLineRelationWith) tenantToLogsF return r } -func (r tenantToLogsFindFirst) Select(params ...tenantPrismaFields) tenantToLogsFindFirst { +func (r tenantResourceLimitToTenantFindFirst) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -255839,7 +280554,7 @@ func (r tenantToLogsFindFirst) Select(params ...tenantPrismaFields) tenantToLogs return r } -func (r tenantToLogsFindFirst) Omit(params ...tenantPrismaFields) tenantToLogsFindFirst { +func (r tenantResourceLimitToTenantFindFirst) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindFirst { var outputs []builder.Output var raw []string @@ -255847,7 +280562,7 @@ func (r tenantToLogsFindFirst) Omit(params ...tenantPrismaFields) tenantToLogsFi raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -255858,7 +280573,7 @@ func (r tenantToLogsFindFirst) Omit(params ...tenantPrismaFields) tenantToLogsFi return r } -func (r tenantToLogsFindFirst) OrderBy(params ...LogLineOrderByParam) tenantToLogsFindFirst { +func (r tenantResourceLimitToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantResourceLimitToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -255878,7 +280593,7 @@ func (r tenantToLogsFindFirst) OrderBy(params ...LogLineOrderByParam) tenantToLo return r } -func (r tenantToLogsFindFirst) Skip(count int) tenantToLogsFindFirst { +func (r tenantResourceLimitToTenantFindFirst) Skip(count int) tenantResourceLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -255886,7 +280601,7 @@ func (r tenantToLogsFindFirst) Skip(count int) tenantToLogsFindFirst { return r } -func (r tenantToLogsFindFirst) Take(count int) tenantToLogsFindFirst { +func (r tenantResourceLimitToTenantFindFirst) Take(count int) tenantResourceLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -255894,7 +280609,7 @@ func (r tenantToLogsFindFirst) Take(count int) tenantToLogsFindFirst { return r } -func (r tenantToLogsFindFirst) Cursor(cursor TenantCursorParam) tenantToLogsFindFirst { +func (r tenantResourceLimitToTenantFindFirst) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -255902,11 +280617,11 @@ func (r tenantToLogsFindFirst) Cursor(cursor TenantCursorParam) tenantToLogsFind return r } -func (r tenantToLogsFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitToTenantFindFirst) Exec(ctx context.Context) ( + *TenantResourceLimitModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -255918,11 +280633,11 @@ func (r tenantToLogsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLogsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimit, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -255934,23 +280649,23 @@ func (r tenantToLogsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToLogsFindMany struct { +type tenantResourceLimitToTenantFindMany struct { query builder.Query } -func (r tenantToLogsFindMany) getQuery() builder.Query { +func (r tenantResourceLimitToTenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantToLogsFindMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToLogsFindMany) with() {} -func (r tenantToLogsFindMany) tenantModel() {} -func (r tenantToLogsFindMany) tenantRelation() {} +func (r tenantResourceLimitToTenantFindMany) with() {} +func (r tenantResourceLimitToTenantFindMany) tenantResourceLimitModel() {} +func (r tenantResourceLimitToTenantFindMany) tenantResourceLimitRelation() {} -func (r tenantToLogsFindMany) With(params ...LogLineRelationWith) tenantToLogsFindMany { +func (r tenantResourceLimitToTenantFindMany) With(params ...TenantRelationWith) tenantResourceLimitToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -255963,7 +280678,7 @@ func (r tenantToLogsFindMany) With(params ...LogLineRelationWith) tenantToLogsFi return r } -func (r tenantToLogsFindMany) Select(params ...tenantPrismaFields) tenantToLogsFindMany { +func (r tenantResourceLimitToTenantFindMany) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -255977,7 +280692,7 @@ func (r tenantToLogsFindMany) Select(params ...tenantPrismaFields) tenantToLogsF return r } -func (r tenantToLogsFindMany) Omit(params ...tenantPrismaFields) tenantToLogsFindMany { +func (r tenantResourceLimitToTenantFindMany) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindMany { var outputs []builder.Output var raw []string @@ -255985,7 +280700,7 @@ func (r tenantToLogsFindMany) Omit(params ...tenantPrismaFields) tenantToLogsFin raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -255996,7 +280711,7 @@ func (r tenantToLogsFindMany) Omit(params ...tenantPrismaFields) tenantToLogsFin return r } -func (r tenantToLogsFindMany) OrderBy(params ...LogLineOrderByParam) tenantToLogsFindMany { +func (r tenantResourceLimitToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantResourceLimitToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -256016,7 +280731,7 @@ func (r tenantToLogsFindMany) OrderBy(params ...LogLineOrderByParam) tenantToLog return r } -func (r tenantToLogsFindMany) Skip(count int) tenantToLogsFindMany { +func (r tenantResourceLimitToTenantFindMany) Skip(count int) tenantResourceLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -256024,7 +280739,7 @@ func (r tenantToLogsFindMany) Skip(count int) tenantToLogsFindMany { return r } -func (r tenantToLogsFindMany) Take(count int) tenantToLogsFindMany { +func (r tenantResourceLimitToTenantFindMany) Take(count int) tenantResourceLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -256032,7 +280747,7 @@ func (r tenantToLogsFindMany) Take(count int) tenantToLogsFindMany { return r } -func (r tenantToLogsFindMany) Cursor(cursor TenantCursorParam) tenantToLogsFindMany { +func (r tenantResourceLimitToTenantFindMany) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -256040,11 +280755,11 @@ func (r tenantToLogsFindMany) Cursor(cursor TenantCursorParam) tenantToLogsFindM return r } -func (r tenantToLogsFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantResourceLimitToTenantFindMany) Exec(ctx context.Context) ( + []TenantResourceLimitModel, error, ) { - var v []TenantModel + var v []TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256052,11 +280767,11 @@ func (r tenantToLogsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLogsFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantResourceLimitToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerTenantResourceLimit, error, ) { - var v []InnerTenant + var v []InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256064,14 +280779,14 @@ func (r tenantToLogsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToLogsFindMany) Update(params ...TenantSetParam) tenantToLogsUpdateMany { +func (r tenantResourceLimitToTenantFindMany) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimit" r.query.Outputs = countOutput - var v tenantToLogsUpdateMany + var v tenantResourceLimitToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -256100,17 +280815,17 @@ func (r tenantToLogsFindMany) Update(params ...TenantSetParam) tenantToLogsUpdat return v } -type tenantToLogsUpdateMany struct { +type tenantResourceLimitToTenantUpdateMany struct { query builder.Query } -func (r tenantToLogsUpdateMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToLogsUpdateMany) tenantModel() {} +func (r tenantResourceLimitToTenantUpdateMany) tenantResourceLimitModel() {} -func (r tenantToLogsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -256118,36 +280833,36 @@ func (r tenantToLogsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tenantToLogsUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitToTenantUpdateMany) Tx() TenantResourceLimitManyTxResult { + v := newTenantResourceLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToLogsFindMany) Delete() tenantToLogsDeleteMany { - var v tenantToLogsDeleteMany +func (r tenantResourceLimitToTenantFindMany) Delete() tenantResourceLimitToTenantDeleteMany { + var v tenantResourceLimitToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimit" v.query.Outputs = countOutput return v } -type tenantToLogsDeleteMany struct { +type tenantResourceLimitToTenantDeleteMany struct { query builder.Query } -func (r tenantToLogsDeleteMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToLogsDeleteMany) tenantModel() {} +func (p tenantResourceLimitToTenantDeleteMany) tenantResourceLimitModel() {} -func (r tenantToLogsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -256155,30 +280870,30 @@ func (r tenantToLogsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tenantToLogsDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitToTenantDeleteMany) Tx() TenantResourceLimitManyTxResult { + v := newTenantResourceLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToSnsIntegrationsFindUnique struct { +type tenantResourceLimitToAlertsFindUnique struct { query builder.Query } -func (r tenantToSnsIntegrationsFindUnique) getQuery() builder.Query { +func (r tenantResourceLimitToAlertsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToSnsIntegrationsFindUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitToAlertsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToSnsIntegrationsFindUnique) with() {} -func (r tenantToSnsIntegrationsFindUnique) tenantModel() {} -func (r tenantToSnsIntegrationsFindUnique) tenantRelation() {} +func (r tenantResourceLimitToAlertsFindUnique) with() {} +func (r tenantResourceLimitToAlertsFindUnique) tenantResourceLimitModel() {} +func (r tenantResourceLimitToAlertsFindUnique) tenantResourceLimitRelation() {} -func (r tenantToSnsIntegrationsFindUnique) With(params ...SNSIntegrationRelationWith) tenantToSnsIntegrationsFindUnique { +func (r tenantResourceLimitToAlertsFindUnique) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitToAlertsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -256191,7 +280906,7 @@ func (r tenantToSnsIntegrationsFindUnique) With(params ...SNSIntegrationRelation return r } -func (r tenantToSnsIntegrationsFindUnique) Select(params ...tenantPrismaFields) tenantToSnsIntegrationsFindUnique { +func (r tenantResourceLimitToAlertsFindUnique) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindUnique { var outputs []builder.Output for _, param := range params { @@ -256205,7 +280920,7 @@ func (r tenantToSnsIntegrationsFindUnique) Select(params ...tenantPrismaFields) return r } -func (r tenantToSnsIntegrationsFindUnique) Omit(params ...tenantPrismaFields) tenantToSnsIntegrationsFindUnique { +func (r tenantResourceLimitToAlertsFindUnique) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindUnique { var outputs []builder.Output var raw []string @@ -256213,7 +280928,7 @@ func (r tenantToSnsIntegrationsFindUnique) Omit(params ...tenantPrismaFields) te raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -256224,11 +280939,11 @@ func (r tenantToSnsIntegrationsFindUnique) Omit(params ...tenantPrismaFields) te return r } -func (r tenantToSnsIntegrationsFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitToAlertsFindUnique) Exec(ctx context.Context) ( + *TenantResourceLimitModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256240,11 +280955,11 @@ func (r tenantToSnsIntegrationsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToSnsIntegrationsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitToAlertsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimit, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256256,12 +280971,12 @@ func (r tenantToSnsIntegrationsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToSnsIntegrationsFindUnique) Update(params ...TenantSetParam) tenantToSnsIntegrationsUpdateUnique { +func (r tenantResourceLimitToAlertsFindUnique) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitToAlertsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimit" - var v tenantToSnsIntegrationsUpdateUnique + var v tenantResourceLimitToAlertsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -256290,83 +281005,83 @@ func (r tenantToSnsIntegrationsFindUnique) Update(params ...TenantSetParam) tena return v } -type tenantToSnsIntegrationsUpdateUnique struct { +type tenantResourceLimitToAlertsUpdateUnique struct { query builder.Query } -func (r tenantToSnsIntegrationsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitToAlertsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToSnsIntegrationsUpdateUnique) tenantModel() {} +func (r tenantResourceLimitToAlertsUpdateUnique) tenantResourceLimitModel() {} -func (r tenantToSnsIntegrationsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitToAlertsUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { + var v TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToSnsIntegrationsUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitToAlertsUpdateUnique) Tx() TenantResourceLimitUniqueTxResult { + v := newTenantResourceLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToSnsIntegrationsFindUnique) Delete() tenantToSnsIntegrationsDeleteUnique { - var v tenantToSnsIntegrationsDeleteUnique +func (r tenantResourceLimitToAlertsFindUnique) Delete() tenantResourceLimitToAlertsDeleteUnique { + var v tenantResourceLimitToAlertsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimit" return v } -type tenantToSnsIntegrationsDeleteUnique struct { +type tenantResourceLimitToAlertsDeleteUnique struct { query builder.Query } -func (r tenantToSnsIntegrationsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitToAlertsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToSnsIntegrationsDeleteUnique) tenantModel() {} +func (p tenantResourceLimitToAlertsDeleteUnique) tenantResourceLimitModel() {} -func (r tenantToSnsIntegrationsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitToAlertsDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { + var v TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToSnsIntegrationsDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitToAlertsDeleteUnique) Tx() TenantResourceLimitUniqueTxResult { + v := newTenantResourceLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToSnsIntegrationsFindFirst struct { +type tenantResourceLimitToAlertsFindFirst struct { query builder.Query } -func (r tenantToSnsIntegrationsFindFirst) getQuery() builder.Query { +func (r tenantResourceLimitToAlertsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToSnsIntegrationsFindFirst) ExtractQuery() builder.Query { +func (r tenantResourceLimitToAlertsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToSnsIntegrationsFindFirst) with() {} -func (r tenantToSnsIntegrationsFindFirst) tenantModel() {} -func (r tenantToSnsIntegrationsFindFirst) tenantRelation() {} +func (r tenantResourceLimitToAlertsFindFirst) with() {} +func (r tenantResourceLimitToAlertsFindFirst) tenantResourceLimitModel() {} +func (r tenantResourceLimitToAlertsFindFirst) tenantResourceLimitRelation() {} -func (r tenantToSnsIntegrationsFindFirst) With(params ...SNSIntegrationRelationWith) tenantToSnsIntegrationsFindFirst { +func (r tenantResourceLimitToAlertsFindFirst) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitToAlertsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -256379,7 +281094,7 @@ func (r tenantToSnsIntegrationsFindFirst) With(params ...SNSIntegrationRelationW return r } -func (r tenantToSnsIntegrationsFindFirst) Select(params ...tenantPrismaFields) tenantToSnsIntegrationsFindFirst { +func (r tenantResourceLimitToAlertsFindFirst) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindFirst { var outputs []builder.Output for _, param := range params { @@ -256393,7 +281108,7 @@ func (r tenantToSnsIntegrationsFindFirst) Select(params ...tenantPrismaFields) t return r } -func (r tenantToSnsIntegrationsFindFirst) Omit(params ...tenantPrismaFields) tenantToSnsIntegrationsFindFirst { +func (r tenantResourceLimitToAlertsFindFirst) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindFirst { var outputs []builder.Output var raw []string @@ -256401,7 +281116,7 @@ func (r tenantToSnsIntegrationsFindFirst) Omit(params ...tenantPrismaFields) ten raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -256412,7 +281127,7 @@ func (r tenantToSnsIntegrationsFindFirst) Omit(params ...tenantPrismaFields) ten return r } -func (r tenantToSnsIntegrationsFindFirst) OrderBy(params ...SNSIntegrationOrderByParam) tenantToSnsIntegrationsFindFirst { +func (r tenantResourceLimitToAlertsFindFirst) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantResourceLimitToAlertsFindFirst { var fields []builder.Field for _, param := range params { @@ -256432,7 +281147,7 @@ func (r tenantToSnsIntegrationsFindFirst) OrderBy(params ...SNSIntegrationOrderB return r } -func (r tenantToSnsIntegrationsFindFirst) Skip(count int) tenantToSnsIntegrationsFindFirst { +func (r tenantResourceLimitToAlertsFindFirst) Skip(count int) tenantResourceLimitToAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -256440,7 +281155,7 @@ func (r tenantToSnsIntegrationsFindFirst) Skip(count int) tenantToSnsIntegration return r } -func (r tenantToSnsIntegrationsFindFirst) Take(count int) tenantToSnsIntegrationsFindFirst { +func (r tenantResourceLimitToAlertsFindFirst) Take(count int) tenantResourceLimitToAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -256448,7 +281163,7 @@ func (r tenantToSnsIntegrationsFindFirst) Take(count int) tenantToSnsIntegration return r } -func (r tenantToSnsIntegrationsFindFirst) Cursor(cursor TenantCursorParam) tenantToSnsIntegrationsFindFirst { +func (r tenantResourceLimitToAlertsFindFirst) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitToAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -256456,11 +281171,11 @@ func (r tenantToSnsIntegrationsFindFirst) Cursor(cursor TenantCursorParam) tenan return r } -func (r tenantToSnsIntegrationsFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitToAlertsFindFirst) Exec(ctx context.Context) ( + *TenantResourceLimitModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256472,11 +281187,11 @@ func (r tenantToSnsIntegrationsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToSnsIntegrationsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitToAlertsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimit, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256488,23 +281203,23 @@ func (r tenantToSnsIntegrationsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToSnsIntegrationsFindMany struct { +type tenantResourceLimitToAlertsFindMany struct { query builder.Query } -func (r tenantToSnsIntegrationsFindMany) getQuery() builder.Query { +func (r tenantResourceLimitToAlertsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToSnsIntegrationsFindMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitToAlertsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToSnsIntegrationsFindMany) with() {} -func (r tenantToSnsIntegrationsFindMany) tenantModel() {} -func (r tenantToSnsIntegrationsFindMany) tenantRelation() {} +func (r tenantResourceLimitToAlertsFindMany) with() {} +func (r tenantResourceLimitToAlertsFindMany) tenantResourceLimitModel() {} +func (r tenantResourceLimitToAlertsFindMany) tenantResourceLimitRelation() {} -func (r tenantToSnsIntegrationsFindMany) With(params ...SNSIntegrationRelationWith) tenantToSnsIntegrationsFindMany { +func (r tenantResourceLimitToAlertsFindMany) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitToAlertsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -256517,7 +281232,7 @@ func (r tenantToSnsIntegrationsFindMany) With(params ...SNSIntegrationRelationWi return r } -func (r tenantToSnsIntegrationsFindMany) Select(params ...tenantPrismaFields) tenantToSnsIntegrationsFindMany { +func (r tenantResourceLimitToAlertsFindMany) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindMany { var outputs []builder.Output for _, param := range params { @@ -256531,7 +281246,7 @@ func (r tenantToSnsIntegrationsFindMany) Select(params ...tenantPrismaFields) te return r } -func (r tenantToSnsIntegrationsFindMany) Omit(params ...tenantPrismaFields) tenantToSnsIntegrationsFindMany { +func (r tenantResourceLimitToAlertsFindMany) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindMany { var outputs []builder.Output var raw []string @@ -256539,7 +281254,7 @@ func (r tenantToSnsIntegrationsFindMany) Omit(params ...tenantPrismaFields) tena raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -256550,7 +281265,7 @@ func (r tenantToSnsIntegrationsFindMany) Omit(params ...tenantPrismaFields) tena return r } -func (r tenantToSnsIntegrationsFindMany) OrderBy(params ...SNSIntegrationOrderByParam) tenantToSnsIntegrationsFindMany { +func (r tenantResourceLimitToAlertsFindMany) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantResourceLimitToAlertsFindMany { var fields []builder.Field for _, param := range params { @@ -256570,7 +281285,7 @@ func (r tenantToSnsIntegrationsFindMany) OrderBy(params ...SNSIntegrationOrderBy return r } -func (r tenantToSnsIntegrationsFindMany) Skip(count int) tenantToSnsIntegrationsFindMany { +func (r tenantResourceLimitToAlertsFindMany) Skip(count int) tenantResourceLimitToAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -256578,7 +281293,7 @@ func (r tenantToSnsIntegrationsFindMany) Skip(count int) tenantToSnsIntegrations return r } -func (r tenantToSnsIntegrationsFindMany) Take(count int) tenantToSnsIntegrationsFindMany { +func (r tenantResourceLimitToAlertsFindMany) Take(count int) tenantResourceLimitToAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -256586,7 +281301,7 @@ func (r tenantToSnsIntegrationsFindMany) Take(count int) tenantToSnsIntegrations return r } -func (r tenantToSnsIntegrationsFindMany) Cursor(cursor TenantCursorParam) tenantToSnsIntegrationsFindMany { +func (r tenantResourceLimitToAlertsFindMany) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitToAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -256594,11 +281309,11 @@ func (r tenantToSnsIntegrationsFindMany) Cursor(cursor TenantCursorParam) tenant return r } -func (r tenantToSnsIntegrationsFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantResourceLimitToAlertsFindMany) Exec(ctx context.Context) ( + []TenantResourceLimitModel, error, ) { - var v []TenantModel + var v []TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256606,11 +281321,11 @@ func (r tenantToSnsIntegrationsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToSnsIntegrationsFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantResourceLimitToAlertsFindMany) ExecInner(ctx context.Context) ( + []InnerTenantResourceLimit, error, ) { - var v []InnerTenant + var v []InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256618,14 +281333,14 @@ func (r tenantToSnsIntegrationsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToSnsIntegrationsFindMany) Update(params ...TenantSetParam) tenantToSnsIntegrationsUpdateMany { +func (r tenantResourceLimitToAlertsFindMany) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitToAlertsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimit" r.query.Outputs = countOutput - var v tenantToSnsIntegrationsUpdateMany + var v tenantResourceLimitToAlertsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -256654,17 +281369,17 @@ func (r tenantToSnsIntegrationsFindMany) Update(params ...TenantSetParam) tenant return v } -type tenantToSnsIntegrationsUpdateMany struct { +type tenantResourceLimitToAlertsUpdateMany struct { query builder.Query } -func (r tenantToSnsIntegrationsUpdateMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitToAlertsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToSnsIntegrationsUpdateMany) tenantModel() {} +func (r tenantResourceLimitToAlertsUpdateMany) tenantResourceLimitModel() {} -func (r tenantToSnsIntegrationsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitToAlertsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -256672,36 +281387,36 @@ func (r tenantToSnsIntegrationsUpdateMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r tenantToSnsIntegrationsUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitToAlertsUpdateMany) Tx() TenantResourceLimitManyTxResult { + v := newTenantResourceLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToSnsIntegrationsFindMany) Delete() tenantToSnsIntegrationsDeleteMany { - var v tenantToSnsIntegrationsDeleteMany +func (r tenantResourceLimitToAlertsFindMany) Delete() tenantResourceLimitToAlertsDeleteMany { + var v tenantResourceLimitToAlertsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimit" v.query.Outputs = countOutput return v } -type tenantToSnsIntegrationsDeleteMany struct { +type tenantResourceLimitToAlertsDeleteMany struct { query builder.Query } -func (r tenantToSnsIntegrationsDeleteMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitToAlertsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToSnsIntegrationsDeleteMany) tenantModel() {} +func (p tenantResourceLimitToAlertsDeleteMany) tenantResourceLimitModel() {} -func (r tenantToSnsIntegrationsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitToAlertsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -256709,30 +281424,52 @@ func (r tenantToSnsIntegrationsDeleteMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r tenantToSnsIntegrationsDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitToAlertsDeleteMany) Tx() TenantResourceLimitManyTxResult { + v := newTenantResourceLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToRateLimitsFindUnique struct { +type tenantResourceLimitFindUnique struct { query builder.Query } -func (r tenantToRateLimitsFindUnique) getQuery() builder.Query { +func (r tenantResourceLimitFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToRateLimitsFindUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToRateLimitsFindUnique) with() {} -func (r tenantToRateLimitsFindUnique) tenantModel() {} -func (r tenantToRateLimitsFindUnique) tenantRelation() {} +func (r tenantResourceLimitFindUnique) with() {} +func (r tenantResourceLimitFindUnique) tenantResourceLimitModel() {} +func (r tenantResourceLimitFindUnique) tenantResourceLimitRelation() {} -func (r tenantToRateLimitsFindUnique) With(params ...RateLimitRelationWith) tenantToRateLimitsFindUnique { +func (r tenantResourceLimitActions) FindUnique( + params TenantResourceLimitEqualsUniqueWhereParam, +) tenantResourceLimitFindUnique { + var v tenantResourceLimitFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "TenantResourceLimit" + v.query.Outputs = tenantResourceLimitOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r tenantResourceLimitFindUnique) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -256745,7 +281482,7 @@ func (r tenantToRateLimitsFindUnique) With(params ...RateLimitRelationWith) tena return r } -func (r tenantToRateLimitsFindUnique) Select(params ...tenantPrismaFields) tenantToRateLimitsFindUnique { +func (r tenantResourceLimitFindUnique) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindUnique { var outputs []builder.Output for _, param := range params { @@ -256759,7 +281496,7 @@ func (r tenantToRateLimitsFindUnique) Select(params ...tenantPrismaFields) tenan return r } -func (r tenantToRateLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantToRateLimitsFindUnique { +func (r tenantResourceLimitFindUnique) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindUnique { var outputs []builder.Output var raw []string @@ -256767,7 +281504,7 @@ func (r tenantToRateLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantT raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -256778,11 +281515,11 @@ func (r tenantToRateLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantT return r } -func (r tenantToRateLimitsFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitFindUnique) Exec(ctx context.Context) ( + *TenantResourceLimitModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256794,11 +281531,11 @@ func (r tenantToRateLimitsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToRateLimitsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimit, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -256810,12 +281547,12 @@ func (r tenantToRateLimitsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToRateLimitsFindUnique) Update(params ...TenantSetParam) tenantToRateLimitsUpdateUnique { +func (r tenantResourceLimitFindUnique) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimit" - var v tenantToRateLimitsUpdateUnique + var v tenantResourceLimitUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -256844,83 +281581,120 @@ func (r tenantToRateLimitsFindUnique) Update(params ...TenantSetParam) tenantToR return v } -type tenantToRateLimitsUpdateUnique struct { +type tenantResourceLimitUpdateUnique struct { query builder.Query } -func (r tenantToRateLimitsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToRateLimitsUpdateUnique) tenantModel() {} +func (r tenantResourceLimitUpdateUnique) tenantResourceLimitModel() {} -func (r tenantToRateLimitsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { + var v TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToRateLimitsUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitUpdateUnique) Tx() TenantResourceLimitUniqueTxResult { + v := newTenantResourceLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToRateLimitsFindUnique) Delete() tenantToRateLimitsDeleteUnique { - var v tenantToRateLimitsDeleteUnique +func (r tenantResourceLimitFindUnique) Delete() tenantResourceLimitDeleteUnique { + var v tenantResourceLimitDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimit" return v } -type tenantToRateLimitsDeleteUnique struct { +type tenantResourceLimitDeleteUnique struct { query builder.Query } -func (r tenantToRateLimitsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToRateLimitsDeleteUnique) tenantModel() {} +func (p tenantResourceLimitDeleteUnique) tenantResourceLimitModel() {} -func (r tenantToRateLimitsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { + var v TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToRateLimitsDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitDeleteUnique) Tx() TenantResourceLimitUniqueTxResult { + v := newTenantResourceLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToRateLimitsFindFirst struct { +type tenantResourceLimitFindFirst struct { query builder.Query } -func (r tenantToRateLimitsFindFirst) getQuery() builder.Query { +func (r tenantResourceLimitFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToRateLimitsFindFirst) ExtractQuery() builder.Query { +func (r tenantResourceLimitFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToRateLimitsFindFirst) with() {} -func (r tenantToRateLimitsFindFirst) tenantModel() {} -func (r tenantToRateLimitsFindFirst) tenantRelation() {} +func (r tenantResourceLimitFindFirst) with() {} +func (r tenantResourceLimitFindFirst) tenantResourceLimitModel() {} +func (r tenantResourceLimitFindFirst) tenantResourceLimitRelation() {} -func (r tenantToRateLimitsFindFirst) With(params ...RateLimitRelationWith) tenantToRateLimitsFindFirst { +func (r tenantResourceLimitActions) FindFirst( + params ...TenantResourceLimitWhereParam, +) tenantResourceLimitFindFirst { + var v tenantResourceLimitFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "TenantResourceLimit" + v.query.Outputs = tenantResourceLimitOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantResourceLimitFindFirst) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -256933,7 +281707,7 @@ func (r tenantToRateLimitsFindFirst) With(params ...RateLimitRelationWith) tenan return r } -func (r tenantToRateLimitsFindFirst) Select(params ...tenantPrismaFields) tenantToRateLimitsFindFirst { +func (r tenantResourceLimitFindFirst) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindFirst { var outputs []builder.Output for _, param := range params { @@ -256947,7 +281721,7 @@ func (r tenantToRateLimitsFindFirst) Select(params ...tenantPrismaFields) tenant return r } -func (r tenantToRateLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantToRateLimitsFindFirst { +func (r tenantResourceLimitFindFirst) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindFirst { var outputs []builder.Output var raw []string @@ -256955,7 +281729,7 @@ func (r tenantToRateLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantTo raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -256966,7 +281740,7 @@ func (r tenantToRateLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToRateLimitsFindFirst) OrderBy(params ...RateLimitOrderByParam) tenantToRateLimitsFindFirst { +func (r tenantResourceLimitFindFirst) OrderBy(params ...TenantResourceLimitOrderByParam) tenantResourceLimitFindFirst { var fields []builder.Field for _, param := range params { @@ -256986,7 +281760,7 @@ func (r tenantToRateLimitsFindFirst) OrderBy(params ...RateLimitOrderByParam) te return r } -func (r tenantToRateLimitsFindFirst) Skip(count int) tenantToRateLimitsFindFirst { +func (r tenantResourceLimitFindFirst) Skip(count int) tenantResourceLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -256994,7 +281768,7 @@ func (r tenantToRateLimitsFindFirst) Skip(count int) tenantToRateLimitsFindFirst return r } -func (r tenantToRateLimitsFindFirst) Take(count int) tenantToRateLimitsFindFirst { +func (r tenantResourceLimitFindFirst) Take(count int) tenantResourceLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -257002,7 +281776,7 @@ func (r tenantToRateLimitsFindFirst) Take(count int) tenantToRateLimitsFindFirst return r } -func (r tenantToRateLimitsFindFirst) Cursor(cursor TenantCursorParam) tenantToRateLimitsFindFirst { +func (r tenantResourceLimitFindFirst) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -257010,11 +281784,11 @@ func (r tenantToRateLimitsFindFirst) Cursor(cursor TenantCursorParam) tenantToRa return r } -func (r tenantToRateLimitsFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitFindFirst) Exec(ctx context.Context) ( + *TenantResourceLimitModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257026,11 +281800,11 @@ func (r tenantToRateLimitsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToRateLimitsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimit, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257042,23 +281816,60 @@ func (r tenantToRateLimitsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToRateLimitsFindMany struct { +type tenantResourceLimitFindMany struct { query builder.Query } -func (r tenantToRateLimitsFindMany) getQuery() builder.Query { +func (r tenantResourceLimitFindMany) getQuery() builder.Query { return r.query } -func (r tenantToRateLimitsFindMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToRateLimitsFindMany) with() {} -func (r tenantToRateLimitsFindMany) tenantModel() {} -func (r tenantToRateLimitsFindMany) tenantRelation() {} +func (r tenantResourceLimitFindMany) with() {} +func (r tenantResourceLimitFindMany) tenantResourceLimitModel() {} +func (r tenantResourceLimitFindMany) tenantResourceLimitRelation() {} -func (r tenantToRateLimitsFindMany) With(params ...RateLimitRelationWith) tenantToRateLimitsFindMany { +func (r tenantResourceLimitActions) FindMany( + params ...TenantResourceLimitWhereParam, +) tenantResourceLimitFindMany { + var v tenantResourceLimitFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "TenantResourceLimit" + v.query.Outputs = tenantResourceLimitOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantResourceLimitFindMany) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -257071,7 +281882,7 @@ func (r tenantToRateLimitsFindMany) With(params ...RateLimitRelationWith) tenant return r } -func (r tenantToRateLimitsFindMany) Select(params ...tenantPrismaFields) tenantToRateLimitsFindMany { +func (r tenantResourceLimitFindMany) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindMany { var outputs []builder.Output for _, param := range params { @@ -257085,7 +281896,7 @@ func (r tenantToRateLimitsFindMany) Select(params ...tenantPrismaFields) tenantT return r } -func (r tenantToRateLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToRateLimitsFindMany { +func (r tenantResourceLimitFindMany) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindMany { var outputs []builder.Output var raw []string @@ -257093,7 +281904,7 @@ func (r tenantToRateLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToR raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -257104,7 +281915,7 @@ func (r tenantToRateLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToR return r } -func (r tenantToRateLimitsFindMany) OrderBy(params ...RateLimitOrderByParam) tenantToRateLimitsFindMany { +func (r tenantResourceLimitFindMany) OrderBy(params ...TenantResourceLimitOrderByParam) tenantResourceLimitFindMany { var fields []builder.Field for _, param := range params { @@ -257124,7 +281935,7 @@ func (r tenantToRateLimitsFindMany) OrderBy(params ...RateLimitOrderByParam) ten return r } -func (r tenantToRateLimitsFindMany) Skip(count int) tenantToRateLimitsFindMany { +func (r tenantResourceLimitFindMany) Skip(count int) tenantResourceLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -257132,7 +281943,7 @@ func (r tenantToRateLimitsFindMany) Skip(count int) tenantToRateLimitsFindMany { return r } -func (r tenantToRateLimitsFindMany) Take(count int) tenantToRateLimitsFindMany { +func (r tenantResourceLimitFindMany) Take(count int) tenantResourceLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -257140,7 +281951,7 @@ func (r tenantToRateLimitsFindMany) Take(count int) tenantToRateLimitsFindMany { return r } -func (r tenantToRateLimitsFindMany) Cursor(cursor TenantCursorParam) tenantToRateLimitsFindMany { +func (r tenantResourceLimitFindMany) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -257148,11 +281959,11 @@ func (r tenantToRateLimitsFindMany) Cursor(cursor TenantCursorParam) tenantToRat return r } -func (r tenantToRateLimitsFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantResourceLimitFindMany) Exec(ctx context.Context) ( + []TenantResourceLimitModel, error, ) { - var v []TenantModel + var v []TenantResourceLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257160,11 +281971,11 @@ func (r tenantToRateLimitsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToRateLimitsFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantResourceLimitFindMany) ExecInner(ctx context.Context) ( + []InnerTenantResourceLimit, error, ) { - var v []InnerTenant + var v []InnerTenantResourceLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257172,14 +281983,14 @@ func (r tenantToRateLimitsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToRateLimitsFindMany) Update(params ...TenantSetParam) tenantToRateLimitsUpdateMany { +func (r tenantResourceLimitFindMany) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimit" r.query.Outputs = countOutput - var v tenantToRateLimitsUpdateMany + var v tenantResourceLimitUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -257208,17 +282019,17 @@ func (r tenantToRateLimitsFindMany) Update(params ...TenantSetParam) tenantToRat return v } -type tenantToRateLimitsUpdateMany struct { +type tenantResourceLimitUpdateMany struct { query builder.Query } -func (r tenantToRateLimitsUpdateMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToRateLimitsUpdateMany) tenantModel() {} +func (r tenantResourceLimitUpdateMany) tenantResourceLimitModel() {} -func (r tenantToRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -257226,36 +282037,36 @@ func (r tenantToRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r tenantToRateLimitsUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitUpdateMany) Tx() TenantResourceLimitManyTxResult { + v := newTenantResourceLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToRateLimitsFindMany) Delete() tenantToRateLimitsDeleteMany { - var v tenantToRateLimitsDeleteMany +func (r tenantResourceLimitFindMany) Delete() tenantResourceLimitDeleteMany { + var v tenantResourceLimitDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimit" v.query.Outputs = countOutput return v } -type tenantToRateLimitsDeleteMany struct { +type tenantResourceLimitDeleteMany struct { query builder.Query } -func (r tenantToRateLimitsDeleteMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToRateLimitsDeleteMany) tenantModel() {} +func (p tenantResourceLimitDeleteMany) tenantResourceLimitModel() {} -func (r tenantToRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -257263,30 +282074,30 @@ func (r tenantToRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r tenantToRateLimitsDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitDeleteMany) Tx() TenantResourceLimitManyTxResult { + v := newTenantResourceLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToStepRateLimitsFindUnique struct { +type tenantResourceLimitAlertToResourceLimitFindUnique struct { query builder.Query } -func (r tenantToStepRateLimitsFindUnique) getQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToStepRateLimitsFindUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRateLimitsFindUnique) with() {} -func (r tenantToStepRateLimitsFindUnique) tenantModel() {} -func (r tenantToStepRateLimitsFindUnique) tenantRelation() {} +func (r tenantResourceLimitAlertToResourceLimitFindUnique) with() {} +func (r tenantResourceLimitAlertToResourceLimitFindUnique) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertToResourceLimitFindUnique) tenantResourceLimitAlertRelation() {} -func (r tenantToStepRateLimitsFindUnique) With(params ...StepRateLimitRelationWith) tenantToStepRateLimitsFindUnique { +func (r tenantResourceLimitAlertToResourceLimitFindUnique) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitAlertToResourceLimitFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -257299,7 +282110,7 @@ func (r tenantToStepRateLimitsFindUnique) With(params ...StepRateLimitRelationWi return r } -func (r tenantToStepRateLimitsFindUnique) Select(params ...tenantPrismaFields) tenantToStepRateLimitsFindUnique { +func (r tenantResourceLimitAlertToResourceLimitFindUnique) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindUnique { var outputs []builder.Output for _, param := range params { @@ -257313,7 +282124,7 @@ func (r tenantToStepRateLimitsFindUnique) Select(params ...tenantPrismaFields) t return r } -func (r tenantToStepRateLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantToStepRateLimitsFindUnique { +func (r tenantResourceLimitAlertToResourceLimitFindUnique) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindUnique { var outputs []builder.Output var raw []string @@ -257321,7 +282132,7 @@ func (r tenantToStepRateLimitsFindUnique) Omit(params ...tenantPrismaFields) ten raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -257332,11 +282143,11 @@ func (r tenantToStepRateLimitsFindUnique) Omit(params ...tenantPrismaFields) ten return r } -func (r tenantToStepRateLimitsFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitAlertToResourceLimitFindUnique) Exec(ctx context.Context) ( + *TenantResourceLimitAlertModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257348,11 +282159,11 @@ func (r tenantToStepRateLimitsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepRateLimitsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitAlertToResourceLimitFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimitAlert, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257364,12 +282175,12 @@ func (r tenantToStepRateLimitsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToStepRateLimitsFindUnique) Update(params ...TenantSetParam) tenantToStepRateLimitsUpdateUnique { +func (r tenantResourceLimitAlertToResourceLimitFindUnique) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertToResourceLimitUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimitAlert" - var v tenantToStepRateLimitsUpdateUnique + var v tenantResourceLimitAlertToResourceLimitUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -257398,83 +282209,83 @@ func (r tenantToStepRateLimitsFindUnique) Update(params ...TenantSetParam) tenan return v } -type tenantToStepRateLimitsUpdateUnique struct { +type tenantResourceLimitAlertToResourceLimitUpdateUnique struct { query builder.Query } -func (r tenantToStepRateLimitsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRateLimitsUpdateUnique) tenantModel() {} +func (r tenantResourceLimitAlertToResourceLimitUpdateUnique) tenantResourceLimitAlertModel() {} -func (r tenantToStepRateLimitsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitAlertToResourceLimitUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { + var v TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToStepRateLimitsUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitAlertToResourceLimitUpdateUnique) Tx() TenantResourceLimitAlertUniqueTxResult { + v := newTenantResourceLimitAlertUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToStepRateLimitsFindUnique) Delete() tenantToStepRateLimitsDeleteUnique { - var v tenantToStepRateLimitsDeleteUnique +func (r tenantResourceLimitAlertToResourceLimitFindUnique) Delete() tenantResourceLimitAlertToResourceLimitDeleteUnique { + var v tenantResourceLimitAlertToResourceLimitDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimitAlert" return v } -type tenantToStepRateLimitsDeleteUnique struct { +type tenantResourceLimitAlertToResourceLimitDeleteUnique struct { query builder.Query } -func (r tenantToStepRateLimitsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToStepRateLimitsDeleteUnique) tenantModel() {} +func (p tenantResourceLimitAlertToResourceLimitDeleteUnique) tenantResourceLimitAlertModel() {} -func (r tenantToStepRateLimitsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitAlertToResourceLimitDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { + var v TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToStepRateLimitsDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitAlertToResourceLimitDeleteUnique) Tx() TenantResourceLimitAlertUniqueTxResult { + v := newTenantResourceLimitAlertUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToStepRateLimitsFindFirst struct { +type tenantResourceLimitAlertToResourceLimitFindFirst struct { query builder.Query } -func (r tenantToStepRateLimitsFindFirst) getQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToStepRateLimitsFindFirst) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRateLimitsFindFirst) with() {} -func (r tenantToStepRateLimitsFindFirst) tenantModel() {} -func (r tenantToStepRateLimitsFindFirst) tenantRelation() {} +func (r tenantResourceLimitAlertToResourceLimitFindFirst) with() {} +func (r tenantResourceLimitAlertToResourceLimitFindFirst) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertToResourceLimitFindFirst) tenantResourceLimitAlertRelation() {} -func (r tenantToStepRateLimitsFindFirst) With(params ...StepRateLimitRelationWith) tenantToStepRateLimitsFindFirst { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitAlertToResourceLimitFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -257487,7 +282298,7 @@ func (r tenantToStepRateLimitsFindFirst) With(params ...StepRateLimitRelationWit return r } -func (r tenantToStepRateLimitsFindFirst) Select(params ...tenantPrismaFields) tenantToStepRateLimitsFindFirst { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindFirst { var outputs []builder.Output for _, param := range params { @@ -257501,7 +282312,7 @@ func (r tenantToStepRateLimitsFindFirst) Select(params ...tenantPrismaFields) te return r } -func (r tenantToStepRateLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantToStepRateLimitsFindFirst { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindFirst { var outputs []builder.Output var raw []string @@ -257509,7 +282320,7 @@ func (r tenantToStepRateLimitsFindFirst) Omit(params ...tenantPrismaFields) tena raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -257520,7 +282331,7 @@ func (r tenantToStepRateLimitsFindFirst) Omit(params ...tenantPrismaFields) tena return r } -func (r tenantToStepRateLimitsFindFirst) OrderBy(params ...StepRateLimitOrderByParam) tenantToStepRateLimitsFindFirst { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) OrderBy(params ...TenantResourceLimitOrderByParam) tenantResourceLimitAlertToResourceLimitFindFirst { var fields []builder.Field for _, param := range params { @@ -257540,7 +282351,7 @@ func (r tenantToStepRateLimitsFindFirst) OrderBy(params ...StepRateLimitOrderByP return r } -func (r tenantToStepRateLimitsFindFirst) Skip(count int) tenantToStepRateLimitsFindFirst { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) Skip(count int) tenantResourceLimitAlertToResourceLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -257548,7 +282359,7 @@ func (r tenantToStepRateLimitsFindFirst) Skip(count int) tenantToStepRateLimitsF return r } -func (r tenantToStepRateLimitsFindFirst) Take(count int) tenantToStepRateLimitsFindFirst { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) Take(count int) tenantResourceLimitAlertToResourceLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -257556,7 +282367,7 @@ func (r tenantToStepRateLimitsFindFirst) Take(count int) tenantToStepRateLimitsF return r } -func (r tenantToStepRateLimitsFindFirst) Cursor(cursor TenantCursorParam) tenantToStepRateLimitsFindFirst { +func (r tenantResourceLimitAlertToResourceLimitFindFirst) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertToResourceLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -257564,11 +282375,11 @@ func (r tenantToStepRateLimitsFindFirst) Cursor(cursor TenantCursorParam) tenant return r } -func (r tenantToStepRateLimitsFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitAlertToResourceLimitFindFirst) Exec(ctx context.Context) ( + *TenantResourceLimitAlertModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257580,11 +282391,11 @@ func (r tenantToStepRateLimitsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepRateLimitsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitAlertToResourceLimitFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimitAlert, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257596,23 +282407,23 @@ func (r tenantToStepRateLimitsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToStepRateLimitsFindMany struct { +type tenantResourceLimitAlertToResourceLimitFindMany struct { query builder.Query } -func (r tenantToStepRateLimitsFindMany) getQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitFindMany) getQuery() builder.Query { return r.query } -func (r tenantToStepRateLimitsFindMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRateLimitsFindMany) with() {} -func (r tenantToStepRateLimitsFindMany) tenantModel() {} -func (r tenantToStepRateLimitsFindMany) tenantRelation() {} +func (r tenantResourceLimitAlertToResourceLimitFindMany) with() {} +func (r tenantResourceLimitAlertToResourceLimitFindMany) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertToResourceLimitFindMany) tenantResourceLimitAlertRelation() {} -func (r tenantToStepRateLimitsFindMany) With(params ...StepRateLimitRelationWith) tenantToStepRateLimitsFindMany { +func (r tenantResourceLimitAlertToResourceLimitFindMany) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitAlertToResourceLimitFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -257625,7 +282436,7 @@ func (r tenantToStepRateLimitsFindMany) With(params ...StepRateLimitRelationWith return r } -func (r tenantToStepRateLimitsFindMany) Select(params ...tenantPrismaFields) tenantToStepRateLimitsFindMany { +func (r tenantResourceLimitAlertToResourceLimitFindMany) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindMany { var outputs []builder.Output for _, param := range params { @@ -257639,7 +282450,7 @@ func (r tenantToStepRateLimitsFindMany) Select(params ...tenantPrismaFields) ten return r } -func (r tenantToStepRateLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToStepRateLimitsFindMany { +func (r tenantResourceLimitAlertToResourceLimitFindMany) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindMany { var outputs []builder.Output var raw []string @@ -257647,7 +282458,7 @@ func (r tenantToStepRateLimitsFindMany) Omit(params ...tenantPrismaFields) tenan raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -257658,7 +282469,7 @@ func (r tenantToStepRateLimitsFindMany) Omit(params ...tenantPrismaFields) tenan return r } -func (r tenantToStepRateLimitsFindMany) OrderBy(params ...StepRateLimitOrderByParam) tenantToStepRateLimitsFindMany { +func (r tenantResourceLimitAlertToResourceLimitFindMany) OrderBy(params ...TenantResourceLimitOrderByParam) tenantResourceLimitAlertToResourceLimitFindMany { var fields []builder.Field for _, param := range params { @@ -257678,7 +282489,7 @@ func (r tenantToStepRateLimitsFindMany) OrderBy(params ...StepRateLimitOrderByPa return r } -func (r tenantToStepRateLimitsFindMany) Skip(count int) tenantToStepRateLimitsFindMany { +func (r tenantResourceLimitAlertToResourceLimitFindMany) Skip(count int) tenantResourceLimitAlertToResourceLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -257686,7 +282497,7 @@ func (r tenantToStepRateLimitsFindMany) Skip(count int) tenantToStepRateLimitsFi return r } -func (r tenantToStepRateLimitsFindMany) Take(count int) tenantToStepRateLimitsFindMany { +func (r tenantResourceLimitAlertToResourceLimitFindMany) Take(count int) tenantResourceLimitAlertToResourceLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -257694,7 +282505,7 @@ func (r tenantToStepRateLimitsFindMany) Take(count int) tenantToStepRateLimitsFi return r } -func (r tenantToStepRateLimitsFindMany) Cursor(cursor TenantCursorParam) tenantToStepRateLimitsFindMany { +func (r tenantResourceLimitAlertToResourceLimitFindMany) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertToResourceLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -257702,11 +282513,11 @@ func (r tenantToStepRateLimitsFindMany) Cursor(cursor TenantCursorParam) tenantT return r } -func (r tenantToStepRateLimitsFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantResourceLimitAlertToResourceLimitFindMany) Exec(ctx context.Context) ( + []TenantResourceLimitAlertModel, error, ) { - var v []TenantModel + var v []TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257714,11 +282525,11 @@ func (r tenantToStepRateLimitsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToStepRateLimitsFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantResourceLimitAlertToResourceLimitFindMany) ExecInner(ctx context.Context) ( + []InnerTenantResourceLimitAlert, error, ) { - var v []InnerTenant + var v []InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257726,14 +282537,14 @@ func (r tenantToStepRateLimitsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToStepRateLimitsFindMany) Update(params ...TenantSetParam) tenantToStepRateLimitsUpdateMany { +func (r tenantResourceLimitAlertToResourceLimitFindMany) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertToResourceLimitUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimitAlert" r.query.Outputs = countOutput - var v tenantToStepRateLimitsUpdateMany + var v tenantResourceLimitAlertToResourceLimitUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -257762,17 +282573,17 @@ func (r tenantToStepRateLimitsFindMany) Update(params ...TenantSetParam) tenantT return v } -type tenantToStepRateLimitsUpdateMany struct { +type tenantResourceLimitAlertToResourceLimitUpdateMany struct { query builder.Query } -func (r tenantToStepRateLimitsUpdateMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToStepRateLimitsUpdateMany) tenantModel() {} +func (r tenantResourceLimitAlertToResourceLimitUpdateMany) tenantResourceLimitAlertModel() {} -func (r tenantToStepRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitAlertToResourceLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -257780,36 +282591,36 @@ func (r tenantToStepRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r tenantToStepRateLimitsUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitAlertToResourceLimitUpdateMany) Tx() TenantResourceLimitAlertManyTxResult { + v := newTenantResourceLimitAlertManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToStepRateLimitsFindMany) Delete() tenantToStepRateLimitsDeleteMany { - var v tenantToStepRateLimitsDeleteMany +func (r tenantResourceLimitAlertToResourceLimitFindMany) Delete() tenantResourceLimitAlertToResourceLimitDeleteMany { + var v tenantResourceLimitAlertToResourceLimitDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimitAlert" v.query.Outputs = countOutput return v } -type tenantToStepRateLimitsDeleteMany struct { +type tenantResourceLimitAlertToResourceLimitDeleteMany struct { query builder.Query } -func (r tenantToStepRateLimitsDeleteMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToResourceLimitDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToStepRateLimitsDeleteMany) tenantModel() {} +func (p tenantResourceLimitAlertToResourceLimitDeleteMany) tenantResourceLimitAlertModel() {} -func (r tenantToStepRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitAlertToResourceLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -257817,30 +282628,30 @@ func (r tenantToStepRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r tenantToStepRateLimitsDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitAlertToResourceLimitDeleteMany) Tx() TenantResourceLimitAlertManyTxResult { + v := newTenantResourceLimitAlertManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToAlertEmailGroupsFindUnique struct { +type tenantResourceLimitAlertToTenantFindUnique struct { query builder.Query } -func (r tenantToAlertEmailGroupsFindUnique) getQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToAlertEmailGroupsFindUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertEmailGroupsFindUnique) with() {} -func (r tenantToAlertEmailGroupsFindUnique) tenantModel() {} -func (r tenantToAlertEmailGroupsFindUnique) tenantRelation() {} +func (r tenantResourceLimitAlertToTenantFindUnique) with() {} +func (r tenantResourceLimitAlertToTenantFindUnique) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertToTenantFindUnique) tenantResourceLimitAlertRelation() {} -func (r tenantToAlertEmailGroupsFindUnique) With(params ...TenantAlertEmailGroupRelationWith) tenantToAlertEmailGroupsFindUnique { +func (r tenantResourceLimitAlertToTenantFindUnique) With(params ...TenantRelationWith) tenantResourceLimitAlertToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -257853,7 +282664,7 @@ func (r tenantToAlertEmailGroupsFindUnique) With(params ...TenantAlertEmailGroup return r } -func (r tenantToAlertEmailGroupsFindUnique) Select(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindUnique { +func (r tenantResourceLimitAlertToTenantFindUnique) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -257867,7 +282678,7 @@ func (r tenantToAlertEmailGroupsFindUnique) Select(params ...tenantPrismaFields) return r } -func (r tenantToAlertEmailGroupsFindUnique) Omit(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindUnique { +func (r tenantResourceLimitAlertToTenantFindUnique) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindUnique { var outputs []builder.Output var raw []string @@ -257875,7 +282686,7 @@ func (r tenantToAlertEmailGroupsFindUnique) Omit(params ...tenantPrismaFields) t raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -257886,11 +282697,11 @@ func (r tenantToAlertEmailGroupsFindUnique) Omit(params ...tenantPrismaFields) t return r } -func (r tenantToAlertEmailGroupsFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitAlertToTenantFindUnique) Exec(ctx context.Context) ( + *TenantResourceLimitAlertModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257902,11 +282713,11 @@ func (r tenantToAlertEmailGroupsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAlertEmailGroupsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitAlertToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimitAlert, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -257918,12 +282729,12 @@ func (r tenantToAlertEmailGroupsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToAlertEmailGroupsFindUnique) Update(params ...TenantSetParam) tenantToAlertEmailGroupsUpdateUnique { +func (r tenantResourceLimitAlertToTenantFindUnique) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimitAlert" - var v tenantToAlertEmailGroupsUpdateUnique + var v tenantResourceLimitAlertToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -257952,83 +282763,83 @@ func (r tenantToAlertEmailGroupsFindUnique) Update(params ...TenantSetParam) ten return v } -type tenantToAlertEmailGroupsUpdateUnique struct { +type tenantResourceLimitAlertToTenantUpdateUnique struct { query builder.Query } -func (r tenantToAlertEmailGroupsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertEmailGroupsUpdateUnique) tenantModel() {} +func (r tenantResourceLimitAlertToTenantUpdateUnique) tenantResourceLimitAlertModel() {} -func (r tenantToAlertEmailGroupsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitAlertToTenantUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { + var v TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToAlertEmailGroupsUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitAlertToTenantUpdateUnique) Tx() TenantResourceLimitAlertUniqueTxResult { + v := newTenantResourceLimitAlertUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToAlertEmailGroupsFindUnique) Delete() tenantToAlertEmailGroupsDeleteUnique { - var v tenantToAlertEmailGroupsDeleteUnique +func (r tenantResourceLimitAlertToTenantFindUnique) Delete() tenantResourceLimitAlertToTenantDeleteUnique { + var v tenantResourceLimitAlertToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimitAlert" return v } -type tenantToAlertEmailGroupsDeleteUnique struct { +type tenantResourceLimitAlertToTenantDeleteUnique struct { query builder.Query } -func (r tenantToAlertEmailGroupsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToAlertEmailGroupsDeleteUnique) tenantModel() {} +func (p tenantResourceLimitAlertToTenantDeleteUnique) tenantResourceLimitAlertModel() {} -func (r tenantToAlertEmailGroupsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitAlertToTenantDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { + var v TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToAlertEmailGroupsDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitAlertToTenantDeleteUnique) Tx() TenantResourceLimitAlertUniqueTxResult { + v := newTenantResourceLimitAlertUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToAlertEmailGroupsFindFirst struct { +type tenantResourceLimitAlertToTenantFindFirst struct { query builder.Query } -func (r tenantToAlertEmailGroupsFindFirst) getQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToAlertEmailGroupsFindFirst) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertEmailGroupsFindFirst) with() {} -func (r tenantToAlertEmailGroupsFindFirst) tenantModel() {} -func (r tenantToAlertEmailGroupsFindFirst) tenantRelation() {} +func (r tenantResourceLimitAlertToTenantFindFirst) with() {} +func (r tenantResourceLimitAlertToTenantFindFirst) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertToTenantFindFirst) tenantResourceLimitAlertRelation() {} -func (r tenantToAlertEmailGroupsFindFirst) With(params ...TenantAlertEmailGroupRelationWith) tenantToAlertEmailGroupsFindFirst { +func (r tenantResourceLimitAlertToTenantFindFirst) With(params ...TenantRelationWith) tenantResourceLimitAlertToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -258041,7 +282852,7 @@ func (r tenantToAlertEmailGroupsFindFirst) With(params ...TenantAlertEmailGroupR return r } -func (r tenantToAlertEmailGroupsFindFirst) Select(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindFirst { +func (r tenantResourceLimitAlertToTenantFindFirst) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -258055,7 +282866,7 @@ func (r tenantToAlertEmailGroupsFindFirst) Select(params ...tenantPrismaFields) return r } -func (r tenantToAlertEmailGroupsFindFirst) Omit(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindFirst { +func (r tenantResourceLimitAlertToTenantFindFirst) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindFirst { var outputs []builder.Output var raw []string @@ -258063,7 +282874,7 @@ func (r tenantToAlertEmailGroupsFindFirst) Omit(params ...tenantPrismaFields) te raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -258074,7 +282885,7 @@ func (r tenantToAlertEmailGroupsFindFirst) Omit(params ...tenantPrismaFields) te return r } -func (r tenantToAlertEmailGroupsFindFirst) OrderBy(params ...TenantAlertEmailGroupOrderByParam) tenantToAlertEmailGroupsFindFirst { +func (r tenantResourceLimitAlertToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantResourceLimitAlertToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -258094,7 +282905,7 @@ func (r tenantToAlertEmailGroupsFindFirst) OrderBy(params ...TenantAlertEmailGro return r } -func (r tenantToAlertEmailGroupsFindFirst) Skip(count int) tenantToAlertEmailGroupsFindFirst { +func (r tenantResourceLimitAlertToTenantFindFirst) Skip(count int) tenantResourceLimitAlertToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -258102,7 +282913,7 @@ func (r tenantToAlertEmailGroupsFindFirst) Skip(count int) tenantToAlertEmailGro return r } -func (r tenantToAlertEmailGroupsFindFirst) Take(count int) tenantToAlertEmailGroupsFindFirst { +func (r tenantResourceLimitAlertToTenantFindFirst) Take(count int) tenantResourceLimitAlertToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -258110,7 +282921,7 @@ func (r tenantToAlertEmailGroupsFindFirst) Take(count int) tenantToAlertEmailGro return r } -func (r tenantToAlertEmailGroupsFindFirst) Cursor(cursor TenantCursorParam) tenantToAlertEmailGroupsFindFirst { +func (r tenantResourceLimitAlertToTenantFindFirst) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -258118,11 +282929,11 @@ func (r tenantToAlertEmailGroupsFindFirst) Cursor(cursor TenantCursorParam) tena return r } -func (r tenantToAlertEmailGroupsFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitAlertToTenantFindFirst) Exec(ctx context.Context) ( + *TenantResourceLimitAlertModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258134,11 +282945,11 @@ func (r tenantToAlertEmailGroupsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAlertEmailGroupsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitAlertToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimitAlert, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258150,23 +282961,23 @@ func (r tenantToAlertEmailGroupsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToAlertEmailGroupsFindMany struct { +type tenantResourceLimitAlertToTenantFindMany struct { query builder.Query } -func (r tenantToAlertEmailGroupsFindMany) getQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantToAlertEmailGroupsFindMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertEmailGroupsFindMany) with() {} -func (r tenantToAlertEmailGroupsFindMany) tenantModel() {} -func (r tenantToAlertEmailGroupsFindMany) tenantRelation() {} +func (r tenantResourceLimitAlertToTenantFindMany) with() {} +func (r tenantResourceLimitAlertToTenantFindMany) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertToTenantFindMany) tenantResourceLimitAlertRelation() {} -func (r tenantToAlertEmailGroupsFindMany) With(params ...TenantAlertEmailGroupRelationWith) tenantToAlertEmailGroupsFindMany { +func (r tenantResourceLimitAlertToTenantFindMany) With(params ...TenantRelationWith) tenantResourceLimitAlertToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -258179,7 +282990,7 @@ func (r tenantToAlertEmailGroupsFindMany) With(params ...TenantAlertEmailGroupRe return r } -func (r tenantToAlertEmailGroupsFindMany) Select(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindMany { +func (r tenantResourceLimitAlertToTenantFindMany) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -258193,7 +283004,7 @@ func (r tenantToAlertEmailGroupsFindMany) Select(params ...tenantPrismaFields) t return r } -func (r tenantToAlertEmailGroupsFindMany) Omit(params ...tenantPrismaFields) tenantToAlertEmailGroupsFindMany { +func (r tenantResourceLimitAlertToTenantFindMany) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindMany { var outputs []builder.Output var raw []string @@ -258201,7 +283012,7 @@ func (r tenantToAlertEmailGroupsFindMany) Omit(params ...tenantPrismaFields) ten raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -258212,7 +283023,7 @@ func (r tenantToAlertEmailGroupsFindMany) Omit(params ...tenantPrismaFields) ten return r } -func (r tenantToAlertEmailGroupsFindMany) OrderBy(params ...TenantAlertEmailGroupOrderByParam) tenantToAlertEmailGroupsFindMany { +func (r tenantResourceLimitAlertToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantResourceLimitAlertToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -258232,7 +283043,7 @@ func (r tenantToAlertEmailGroupsFindMany) OrderBy(params ...TenantAlertEmailGrou return r } -func (r tenantToAlertEmailGroupsFindMany) Skip(count int) tenantToAlertEmailGroupsFindMany { +func (r tenantResourceLimitAlertToTenantFindMany) Skip(count int) tenantResourceLimitAlertToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -258240,7 +283051,7 @@ func (r tenantToAlertEmailGroupsFindMany) Skip(count int) tenantToAlertEmailGrou return r } -func (r tenantToAlertEmailGroupsFindMany) Take(count int) tenantToAlertEmailGroupsFindMany { +func (r tenantResourceLimitAlertToTenantFindMany) Take(count int) tenantResourceLimitAlertToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -258248,7 +283059,7 @@ func (r tenantToAlertEmailGroupsFindMany) Take(count int) tenantToAlertEmailGrou return r } -func (r tenantToAlertEmailGroupsFindMany) Cursor(cursor TenantCursorParam) tenantToAlertEmailGroupsFindMany { +func (r tenantResourceLimitAlertToTenantFindMany) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -258256,11 +283067,11 @@ func (r tenantToAlertEmailGroupsFindMany) Cursor(cursor TenantCursorParam) tenan return r } -func (r tenantToAlertEmailGroupsFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantResourceLimitAlertToTenantFindMany) Exec(ctx context.Context) ( + []TenantResourceLimitAlertModel, error, ) { - var v []TenantModel + var v []TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258268,11 +283079,11 @@ func (r tenantToAlertEmailGroupsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAlertEmailGroupsFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantResourceLimitAlertToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerTenantResourceLimitAlert, error, ) { - var v []InnerTenant + var v []InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258280,14 +283091,14 @@ func (r tenantToAlertEmailGroupsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToAlertEmailGroupsFindMany) Update(params ...TenantSetParam) tenantToAlertEmailGroupsUpdateMany { +func (r tenantResourceLimitAlertToTenantFindMany) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimitAlert" r.query.Outputs = countOutput - var v tenantToAlertEmailGroupsUpdateMany + var v tenantResourceLimitAlertToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -258316,17 +283127,17 @@ func (r tenantToAlertEmailGroupsFindMany) Update(params ...TenantSetParam) tenan return v } -type tenantToAlertEmailGroupsUpdateMany struct { +type tenantResourceLimitAlertToTenantUpdateMany struct { query builder.Query } -func (r tenantToAlertEmailGroupsUpdateMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertEmailGroupsUpdateMany) tenantModel() {} +func (r tenantResourceLimitAlertToTenantUpdateMany) tenantResourceLimitAlertModel() {} -func (r tenantToAlertEmailGroupsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitAlertToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -258334,36 +283145,36 @@ func (r tenantToAlertEmailGroupsUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r tenantToAlertEmailGroupsUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitAlertToTenantUpdateMany) Tx() TenantResourceLimitAlertManyTxResult { + v := newTenantResourceLimitAlertManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToAlertEmailGroupsFindMany) Delete() tenantToAlertEmailGroupsDeleteMany { - var v tenantToAlertEmailGroupsDeleteMany +func (r tenantResourceLimitAlertToTenantFindMany) Delete() tenantResourceLimitAlertToTenantDeleteMany { + var v tenantResourceLimitAlertToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimitAlert" v.query.Outputs = countOutput return v } -type tenantToAlertEmailGroupsDeleteMany struct { +type tenantResourceLimitAlertToTenantDeleteMany struct { query builder.Query } -func (r tenantToAlertEmailGroupsDeleteMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToAlertEmailGroupsDeleteMany) tenantModel() {} +func (p tenantResourceLimitAlertToTenantDeleteMany) tenantResourceLimitAlertModel() {} -func (r tenantToAlertEmailGroupsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitAlertToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -258371,30 +283182,52 @@ func (r tenantToAlertEmailGroupsDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r tenantToAlertEmailGroupsDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitAlertToTenantDeleteMany) Tx() TenantResourceLimitAlertManyTxResult { + v := newTenantResourceLimitAlertManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToSlackWebhooksFindUnique struct { +type tenantResourceLimitAlertFindUnique struct { query builder.Query } -func (r tenantToSlackWebhooksFindUnique) getQuery() builder.Query { +func (r tenantResourceLimitAlertFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToSlackWebhooksFindUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToSlackWebhooksFindUnique) with() {} -func (r tenantToSlackWebhooksFindUnique) tenantModel() {} -func (r tenantToSlackWebhooksFindUnique) tenantRelation() {} +func (r tenantResourceLimitAlertFindUnique) with() {} +func (r tenantResourceLimitAlertFindUnique) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertFindUnique) tenantResourceLimitAlertRelation() {} -func (r tenantToSlackWebhooksFindUnique) With(params ...SlackAppWebhookRelationWith) tenantToSlackWebhooksFindUnique { +func (r tenantResourceLimitAlertActions) FindUnique( + params TenantResourceLimitAlertEqualsUniqueWhereParam, +) tenantResourceLimitAlertFindUnique { + var v tenantResourceLimitAlertFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "TenantResourceLimitAlert" + v.query.Outputs = tenantResourceLimitAlertOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r tenantResourceLimitAlertFindUnique) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitAlertFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -258407,7 +283240,7 @@ func (r tenantToSlackWebhooksFindUnique) With(params ...SlackAppWebhookRelationW return r } -func (r tenantToSlackWebhooksFindUnique) Select(params ...tenantPrismaFields) tenantToSlackWebhooksFindUnique { +func (r tenantResourceLimitAlertFindUnique) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindUnique { var outputs []builder.Output for _, param := range params { @@ -258421,7 +283254,7 @@ func (r tenantToSlackWebhooksFindUnique) Select(params ...tenantPrismaFields) te return r } -func (r tenantToSlackWebhooksFindUnique) Omit(params ...tenantPrismaFields) tenantToSlackWebhooksFindUnique { +func (r tenantResourceLimitAlertFindUnique) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindUnique { var outputs []builder.Output var raw []string @@ -258429,7 +283262,7 @@ func (r tenantToSlackWebhooksFindUnique) Omit(params ...tenantPrismaFields) tena raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -258440,11 +283273,11 @@ func (r tenantToSlackWebhooksFindUnique) Omit(params ...tenantPrismaFields) tena return r } -func (r tenantToSlackWebhooksFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitAlertFindUnique) Exec(ctx context.Context) ( + *TenantResourceLimitAlertModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258456,11 +283289,11 @@ func (r tenantToSlackWebhooksFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToSlackWebhooksFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitAlertFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimitAlert, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258472,12 +283305,12 @@ func (r tenantToSlackWebhooksFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToSlackWebhooksFindUnique) Update(params ...TenantSetParam) tenantToSlackWebhooksUpdateUnique { +func (r tenantResourceLimitAlertFindUnique) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimitAlert" - var v tenantToSlackWebhooksUpdateUnique + var v tenantResourceLimitAlertUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -258506,83 +283339,120 @@ func (r tenantToSlackWebhooksFindUnique) Update(params ...TenantSetParam) tenant return v } -type tenantToSlackWebhooksUpdateUnique struct { +type tenantResourceLimitAlertUpdateUnique struct { query builder.Query } -func (r tenantToSlackWebhooksUpdateUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToSlackWebhooksUpdateUnique) tenantModel() {} +func (r tenantResourceLimitAlertUpdateUnique) tenantResourceLimitAlertModel() {} -func (r tenantToSlackWebhooksUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitAlertUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { + var v TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToSlackWebhooksUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitAlertUpdateUnique) Tx() TenantResourceLimitAlertUniqueTxResult { + v := newTenantResourceLimitAlertUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToSlackWebhooksFindUnique) Delete() tenantToSlackWebhooksDeleteUnique { - var v tenantToSlackWebhooksDeleteUnique +func (r tenantResourceLimitAlertFindUnique) Delete() tenantResourceLimitAlertDeleteUnique { + var v tenantResourceLimitAlertDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimitAlert" return v } -type tenantToSlackWebhooksDeleteUnique struct { +type tenantResourceLimitAlertDeleteUnique struct { query builder.Query } -func (r tenantToSlackWebhooksDeleteUnique) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToSlackWebhooksDeleteUnique) tenantModel() {} +func (p tenantResourceLimitAlertDeleteUnique) tenantResourceLimitAlertModel() {} -func (r tenantToSlackWebhooksDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantResourceLimitAlertDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { + var v TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToSlackWebhooksDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantResourceLimitAlertDeleteUnique) Tx() TenantResourceLimitAlertUniqueTxResult { + v := newTenantResourceLimitAlertUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToSlackWebhooksFindFirst struct { +type tenantResourceLimitAlertFindFirst struct { query builder.Query } -func (r tenantToSlackWebhooksFindFirst) getQuery() builder.Query { +func (r tenantResourceLimitAlertFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToSlackWebhooksFindFirst) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToSlackWebhooksFindFirst) with() {} -func (r tenantToSlackWebhooksFindFirst) tenantModel() {} -func (r tenantToSlackWebhooksFindFirst) tenantRelation() {} +func (r tenantResourceLimitAlertFindFirst) with() {} +func (r tenantResourceLimitAlertFindFirst) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertFindFirst) tenantResourceLimitAlertRelation() {} -func (r tenantToSlackWebhooksFindFirst) With(params ...SlackAppWebhookRelationWith) tenantToSlackWebhooksFindFirst { +func (r tenantResourceLimitAlertActions) FindFirst( + params ...TenantResourceLimitAlertWhereParam, +) tenantResourceLimitAlertFindFirst { + var v tenantResourceLimitAlertFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "TenantResourceLimitAlert" + v.query.Outputs = tenantResourceLimitAlertOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantResourceLimitAlertFindFirst) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitAlertFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -258595,7 +283465,7 @@ func (r tenantToSlackWebhooksFindFirst) With(params ...SlackAppWebhookRelationWi return r } -func (r tenantToSlackWebhooksFindFirst) Select(params ...tenantPrismaFields) tenantToSlackWebhooksFindFirst { +func (r tenantResourceLimitAlertFindFirst) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindFirst { var outputs []builder.Output for _, param := range params { @@ -258609,7 +283479,7 @@ func (r tenantToSlackWebhooksFindFirst) Select(params ...tenantPrismaFields) ten return r } -func (r tenantToSlackWebhooksFindFirst) Omit(params ...tenantPrismaFields) tenantToSlackWebhooksFindFirst { +func (r tenantResourceLimitAlertFindFirst) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindFirst { var outputs []builder.Output var raw []string @@ -258617,7 +283487,7 @@ func (r tenantToSlackWebhooksFindFirst) Omit(params ...tenantPrismaFields) tenan raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -258628,7 +283498,7 @@ func (r tenantToSlackWebhooksFindFirst) Omit(params ...tenantPrismaFields) tenan return r } -func (r tenantToSlackWebhooksFindFirst) OrderBy(params ...SlackAppWebhookOrderByParam) tenantToSlackWebhooksFindFirst { +func (r tenantResourceLimitAlertFindFirst) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantResourceLimitAlertFindFirst { var fields []builder.Field for _, param := range params { @@ -258648,7 +283518,7 @@ func (r tenantToSlackWebhooksFindFirst) OrderBy(params ...SlackAppWebhookOrderBy return r } -func (r tenantToSlackWebhooksFindFirst) Skip(count int) tenantToSlackWebhooksFindFirst { +func (r tenantResourceLimitAlertFindFirst) Skip(count int) tenantResourceLimitAlertFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -258656,7 +283526,7 @@ func (r tenantToSlackWebhooksFindFirst) Skip(count int) tenantToSlackWebhooksFin return r } -func (r tenantToSlackWebhooksFindFirst) Take(count int) tenantToSlackWebhooksFindFirst { +func (r tenantResourceLimitAlertFindFirst) Take(count int) tenantResourceLimitAlertFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -258664,7 +283534,7 @@ func (r tenantToSlackWebhooksFindFirst) Take(count int) tenantToSlackWebhooksFin return r } -func (r tenantToSlackWebhooksFindFirst) Cursor(cursor TenantCursorParam) tenantToSlackWebhooksFindFirst { +func (r tenantResourceLimitAlertFindFirst) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -258672,11 +283542,11 @@ func (r tenantToSlackWebhooksFindFirst) Cursor(cursor TenantCursorParam) tenantT return r } -func (r tenantToSlackWebhooksFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantResourceLimitAlertFindFirst) Exec(ctx context.Context) ( + *TenantResourceLimitAlertModel, error, ) { - var v *TenantModel + var v *TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258688,11 +283558,11 @@ func (r tenantToSlackWebhooksFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToSlackWebhooksFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantResourceLimitAlertFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantResourceLimitAlert, error, ) { - var v *InnerTenant + var v *InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258704,23 +283574,60 @@ func (r tenantToSlackWebhooksFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToSlackWebhooksFindMany struct { +type tenantResourceLimitAlertFindMany struct { query builder.Query } -func (r tenantToSlackWebhooksFindMany) getQuery() builder.Query { +func (r tenantResourceLimitAlertFindMany) getQuery() builder.Query { return r.query } -func (r tenantToSlackWebhooksFindMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToSlackWebhooksFindMany) with() {} -func (r tenantToSlackWebhooksFindMany) tenantModel() {} -func (r tenantToSlackWebhooksFindMany) tenantRelation() {} +func (r tenantResourceLimitAlertFindMany) with() {} +func (r tenantResourceLimitAlertFindMany) tenantResourceLimitAlertModel() {} +func (r tenantResourceLimitAlertFindMany) tenantResourceLimitAlertRelation() {} -func (r tenantToSlackWebhooksFindMany) With(params ...SlackAppWebhookRelationWith) tenantToSlackWebhooksFindMany { +func (r tenantResourceLimitAlertActions) FindMany( + params ...TenantResourceLimitAlertWhereParam, +) tenantResourceLimitAlertFindMany { + var v tenantResourceLimitAlertFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "TenantResourceLimitAlert" + v.query.Outputs = tenantResourceLimitAlertOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantResourceLimitAlertFindMany) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitAlertFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -258733,7 +283640,7 @@ func (r tenantToSlackWebhooksFindMany) With(params ...SlackAppWebhookRelationWit return r } -func (r tenantToSlackWebhooksFindMany) Select(params ...tenantPrismaFields) tenantToSlackWebhooksFindMany { +func (r tenantResourceLimitAlertFindMany) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindMany { var outputs []builder.Output for _, param := range params { @@ -258747,7 +283654,7 @@ func (r tenantToSlackWebhooksFindMany) Select(params ...tenantPrismaFields) tena return r } -func (r tenantToSlackWebhooksFindMany) Omit(params ...tenantPrismaFields) tenantToSlackWebhooksFindMany { +func (r tenantResourceLimitAlertFindMany) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindMany { var outputs []builder.Output var raw []string @@ -258755,7 +283662,7 @@ func (r tenantToSlackWebhooksFindMany) Omit(params ...tenantPrismaFields) tenant raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantResourceLimitAlertOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -258766,7 +283673,7 @@ func (r tenantToSlackWebhooksFindMany) Omit(params ...tenantPrismaFields) tenant return r } -func (r tenantToSlackWebhooksFindMany) OrderBy(params ...SlackAppWebhookOrderByParam) tenantToSlackWebhooksFindMany { +func (r tenantResourceLimitAlertFindMany) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantResourceLimitAlertFindMany { var fields []builder.Field for _, param := range params { @@ -258786,7 +283693,7 @@ func (r tenantToSlackWebhooksFindMany) OrderBy(params ...SlackAppWebhookOrderByP return r } -func (r tenantToSlackWebhooksFindMany) Skip(count int) tenantToSlackWebhooksFindMany { +func (r tenantResourceLimitAlertFindMany) Skip(count int) tenantResourceLimitAlertFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -258794,7 +283701,7 @@ func (r tenantToSlackWebhooksFindMany) Skip(count int) tenantToSlackWebhooksFind return r } -func (r tenantToSlackWebhooksFindMany) Take(count int) tenantToSlackWebhooksFindMany { +func (r tenantResourceLimitAlertFindMany) Take(count int) tenantResourceLimitAlertFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -258802,7 +283709,7 @@ func (r tenantToSlackWebhooksFindMany) Take(count int) tenantToSlackWebhooksFind return r } -func (r tenantToSlackWebhooksFindMany) Cursor(cursor TenantCursorParam) tenantToSlackWebhooksFindMany { +func (r tenantResourceLimitAlertFindMany) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -258810,11 +283717,11 @@ func (r tenantToSlackWebhooksFindMany) Cursor(cursor TenantCursorParam) tenantTo return r } -func (r tenantToSlackWebhooksFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantResourceLimitAlertFindMany) Exec(ctx context.Context) ( + []TenantResourceLimitAlertModel, error, ) { - var v []TenantModel + var v []TenantResourceLimitAlertModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258822,11 +283729,11 @@ func (r tenantToSlackWebhooksFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToSlackWebhooksFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantResourceLimitAlertFindMany) ExecInner(ctx context.Context) ( + []InnerTenantResourceLimitAlert, error, ) { - var v []InnerTenant + var v []InnerTenantResourceLimitAlert if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -258834,14 +283741,14 @@ func (r tenantToSlackWebhooksFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToSlackWebhooksFindMany) Update(params ...TenantSetParam) tenantToSlackWebhooksUpdateMany { +func (r tenantResourceLimitAlertFindMany) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantResourceLimitAlert" r.query.Outputs = countOutput - var v tenantToSlackWebhooksUpdateMany + var v tenantResourceLimitAlertUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -258870,17 +283777,17 @@ func (r tenantToSlackWebhooksFindMany) Update(params ...TenantSetParam) tenantTo return v } -type tenantToSlackWebhooksUpdateMany struct { +type tenantResourceLimitAlertUpdateMany struct { query builder.Query } -func (r tenantToSlackWebhooksUpdateMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToSlackWebhooksUpdateMany) tenantModel() {} +func (r tenantResourceLimitAlertUpdateMany) tenantResourceLimitAlertModel() {} -func (r tenantToSlackWebhooksUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitAlertUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -258888,36 +283795,36 @@ func (r tenantToSlackWebhooksUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r tenantToSlackWebhooksUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitAlertUpdateMany) Tx() TenantResourceLimitAlertManyTxResult { + v := newTenantResourceLimitAlertManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToSlackWebhooksFindMany) Delete() tenantToSlackWebhooksDeleteMany { - var v tenantToSlackWebhooksDeleteMany +func (r tenantResourceLimitAlertFindMany) Delete() tenantResourceLimitAlertDeleteMany { + var v tenantResourceLimitAlertDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantResourceLimitAlert" v.query.Outputs = countOutput return v } -type tenantToSlackWebhooksDeleteMany struct { +type tenantResourceLimitAlertDeleteMany struct { query builder.Query } -func (r tenantToSlackWebhooksDeleteMany) ExtractQuery() builder.Query { +func (r tenantResourceLimitAlertDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToSlackWebhooksDeleteMany) tenantModel() {} +func (p tenantResourceLimitAlertDeleteMany) tenantResourceLimitAlertModel() {} -func (r tenantToSlackWebhooksDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantResourceLimitAlertDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -258925,30 +283832,30 @@ func (r tenantToSlackWebhooksDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r tenantToSlackWebhooksDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantResourceLimitAlertDeleteMany) Tx() TenantResourceLimitAlertManyTxResult { + v := newTenantResourceLimitAlertManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToAlertingSettingsFindUnique struct { +type tenantAlertingSettingsToTenantFindUnique struct { query builder.Query } -func (r tenantToAlertingSettingsFindUnique) getQuery() builder.Query { +func (r tenantAlertingSettingsToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToAlertingSettingsFindUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertingSettingsFindUnique) with() {} -func (r tenantToAlertingSettingsFindUnique) tenantModel() {} -func (r tenantToAlertingSettingsFindUnique) tenantRelation() {} +func (r tenantAlertingSettingsToTenantFindUnique) with() {} +func (r tenantAlertingSettingsToTenantFindUnique) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsToTenantFindUnique) tenantAlertingSettingsRelation() {} -func (r tenantToAlertingSettingsFindUnique) With(params ...TenantAlertingSettingsRelationWith) tenantToAlertingSettingsFindUnique { +func (r tenantAlertingSettingsToTenantFindUnique) With(params ...TenantRelationWith) tenantAlertingSettingsToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -258961,7 +283868,7 @@ func (r tenantToAlertingSettingsFindUnique) With(params ...TenantAlertingSetting return r } -func (r tenantToAlertingSettingsFindUnique) Select(params ...tenantPrismaFields) tenantToAlertingSettingsFindUnique { +func (r tenantAlertingSettingsToTenantFindUnique) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -258975,7 +283882,7 @@ func (r tenantToAlertingSettingsFindUnique) Select(params ...tenantPrismaFields) return r } -func (r tenantToAlertingSettingsFindUnique) Omit(params ...tenantPrismaFields) tenantToAlertingSettingsFindUnique { +func (r tenantAlertingSettingsToTenantFindUnique) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindUnique { var outputs []builder.Output var raw []string @@ -258983,7 +283890,7 @@ func (r tenantToAlertingSettingsFindUnique) Omit(params ...tenantPrismaFields) t raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -258994,11 +283901,11 @@ func (r tenantToAlertingSettingsFindUnique) Omit(params ...tenantPrismaFields) t return r } -func (r tenantToAlertingSettingsFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantAlertingSettingsToTenantFindUnique) Exec(ctx context.Context) ( + *TenantAlertingSettingsModel, error, ) { - var v *TenantModel + var v *TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259010,11 +283917,11 @@ func (r tenantToAlertingSettingsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAlertingSettingsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantAlertingSettingsToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantAlertingSettings, error, ) { - var v *InnerTenant + var v *InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259026,12 +283933,12 @@ func (r tenantToAlertingSettingsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToAlertingSettingsFindUnique) Update(params ...TenantSetParam) tenantToAlertingSettingsUpdateUnique { +func (r tenantAlertingSettingsToTenantFindUnique) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantAlertingSettings" - var v tenantToAlertingSettingsUpdateUnique + var v tenantAlertingSettingsToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -259060,83 +283967,83 @@ func (r tenantToAlertingSettingsFindUnique) Update(params ...TenantSetParam) ten return v } -type tenantToAlertingSettingsUpdateUnique struct { +type tenantAlertingSettingsToTenantUpdateUnique struct { query builder.Query } -func (r tenantToAlertingSettingsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertingSettingsUpdateUnique) tenantModel() {} +func (r tenantAlertingSettingsToTenantUpdateUnique) tenantAlertingSettingsModel() {} -func (r tenantToAlertingSettingsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantAlertingSettingsToTenantUpdateUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { + var v TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToAlertingSettingsUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantAlertingSettingsToTenantUpdateUnique) Tx() TenantAlertingSettingsUniqueTxResult { + v := newTenantAlertingSettingsUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToAlertingSettingsFindUnique) Delete() tenantToAlertingSettingsDeleteUnique { - var v tenantToAlertingSettingsDeleteUnique +func (r tenantAlertingSettingsToTenantFindUnique) Delete() tenantAlertingSettingsToTenantDeleteUnique { + var v tenantAlertingSettingsToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantAlertingSettings" return v } -type tenantToAlertingSettingsDeleteUnique struct { +type tenantAlertingSettingsToTenantDeleteUnique struct { query builder.Query } -func (r tenantToAlertingSettingsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToAlertingSettingsDeleteUnique) tenantModel() {} +func (p tenantAlertingSettingsToTenantDeleteUnique) tenantAlertingSettingsModel() {} -func (r tenantToAlertingSettingsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantAlertingSettingsToTenantDeleteUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { + var v TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToAlertingSettingsDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantAlertingSettingsToTenantDeleteUnique) Tx() TenantAlertingSettingsUniqueTxResult { + v := newTenantAlertingSettingsUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToAlertingSettingsFindFirst struct { +type tenantAlertingSettingsToTenantFindFirst struct { query builder.Query } -func (r tenantToAlertingSettingsFindFirst) getQuery() builder.Query { +func (r tenantAlertingSettingsToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToAlertingSettingsFindFirst) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertingSettingsFindFirst) with() {} -func (r tenantToAlertingSettingsFindFirst) tenantModel() {} -func (r tenantToAlertingSettingsFindFirst) tenantRelation() {} +func (r tenantAlertingSettingsToTenantFindFirst) with() {} +func (r tenantAlertingSettingsToTenantFindFirst) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsToTenantFindFirst) tenantAlertingSettingsRelation() {} -func (r tenantToAlertingSettingsFindFirst) With(params ...TenantAlertingSettingsRelationWith) tenantToAlertingSettingsFindFirst { +func (r tenantAlertingSettingsToTenantFindFirst) With(params ...TenantRelationWith) tenantAlertingSettingsToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -259149,7 +284056,7 @@ func (r tenantToAlertingSettingsFindFirst) With(params ...TenantAlertingSettings return r } -func (r tenantToAlertingSettingsFindFirst) Select(params ...tenantPrismaFields) tenantToAlertingSettingsFindFirst { +func (r tenantAlertingSettingsToTenantFindFirst) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -259163,7 +284070,7 @@ func (r tenantToAlertingSettingsFindFirst) Select(params ...tenantPrismaFields) return r } -func (r tenantToAlertingSettingsFindFirst) Omit(params ...tenantPrismaFields) tenantToAlertingSettingsFindFirst { +func (r tenantAlertingSettingsToTenantFindFirst) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindFirst { var outputs []builder.Output var raw []string @@ -259171,7 +284078,7 @@ func (r tenantToAlertingSettingsFindFirst) Omit(params ...tenantPrismaFields) te raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -259182,7 +284089,7 @@ func (r tenantToAlertingSettingsFindFirst) Omit(params ...tenantPrismaFields) te return r } -func (r tenantToAlertingSettingsFindFirst) OrderBy(params ...TenantAlertingSettingsOrderByParam) tenantToAlertingSettingsFindFirst { +func (r tenantAlertingSettingsToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantAlertingSettingsToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -259202,7 +284109,7 @@ func (r tenantToAlertingSettingsFindFirst) OrderBy(params ...TenantAlertingSetti return r } -func (r tenantToAlertingSettingsFindFirst) Skip(count int) tenantToAlertingSettingsFindFirst { +func (r tenantAlertingSettingsToTenantFindFirst) Skip(count int) tenantAlertingSettingsToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -259210,7 +284117,7 @@ func (r tenantToAlertingSettingsFindFirst) Skip(count int) tenantToAlertingSetti return r } -func (r tenantToAlertingSettingsFindFirst) Take(count int) tenantToAlertingSettingsFindFirst { +func (r tenantAlertingSettingsToTenantFindFirst) Take(count int) tenantAlertingSettingsToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -259218,7 +284125,7 @@ func (r tenantToAlertingSettingsFindFirst) Take(count int) tenantToAlertingSetti return r } -func (r tenantToAlertingSettingsFindFirst) Cursor(cursor TenantCursorParam) tenantToAlertingSettingsFindFirst { +func (r tenantAlertingSettingsToTenantFindFirst) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -259226,11 +284133,11 @@ func (r tenantToAlertingSettingsFindFirst) Cursor(cursor TenantCursorParam) tena return r } -func (r tenantToAlertingSettingsFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantAlertingSettingsToTenantFindFirst) Exec(ctx context.Context) ( + *TenantAlertingSettingsModel, error, ) { - var v *TenantModel + var v *TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259242,11 +284149,11 @@ func (r tenantToAlertingSettingsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAlertingSettingsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantAlertingSettingsToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantAlertingSettings, error, ) { - var v *InnerTenant + var v *InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259258,23 +284165,23 @@ func (r tenantToAlertingSettingsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToAlertingSettingsFindMany struct { +type tenantAlertingSettingsToTenantFindMany struct { query builder.Query } -func (r tenantToAlertingSettingsFindMany) getQuery() builder.Query { +func (r tenantAlertingSettingsToTenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantToAlertingSettingsFindMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertingSettingsFindMany) with() {} -func (r tenantToAlertingSettingsFindMany) tenantModel() {} -func (r tenantToAlertingSettingsFindMany) tenantRelation() {} +func (r tenantAlertingSettingsToTenantFindMany) with() {} +func (r tenantAlertingSettingsToTenantFindMany) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsToTenantFindMany) tenantAlertingSettingsRelation() {} -func (r tenantToAlertingSettingsFindMany) With(params ...TenantAlertingSettingsRelationWith) tenantToAlertingSettingsFindMany { +func (r tenantAlertingSettingsToTenantFindMany) With(params ...TenantRelationWith) tenantAlertingSettingsToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -259287,7 +284194,7 @@ func (r tenantToAlertingSettingsFindMany) With(params ...TenantAlertingSettingsR return r } -func (r tenantToAlertingSettingsFindMany) Select(params ...tenantPrismaFields) tenantToAlertingSettingsFindMany { +func (r tenantAlertingSettingsToTenantFindMany) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -259301,7 +284208,7 @@ func (r tenantToAlertingSettingsFindMany) Select(params ...tenantPrismaFields) t return r } -func (r tenantToAlertingSettingsFindMany) Omit(params ...tenantPrismaFields) tenantToAlertingSettingsFindMany { +func (r tenantAlertingSettingsToTenantFindMany) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindMany { var outputs []builder.Output var raw []string @@ -259309,7 +284216,7 @@ func (r tenantToAlertingSettingsFindMany) Omit(params ...tenantPrismaFields) ten raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -259320,7 +284227,7 @@ func (r tenantToAlertingSettingsFindMany) Omit(params ...tenantPrismaFields) ten return r } -func (r tenantToAlertingSettingsFindMany) OrderBy(params ...TenantAlertingSettingsOrderByParam) tenantToAlertingSettingsFindMany { +func (r tenantAlertingSettingsToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantAlertingSettingsToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -259340,7 +284247,7 @@ func (r tenantToAlertingSettingsFindMany) OrderBy(params ...TenantAlertingSettin return r } -func (r tenantToAlertingSettingsFindMany) Skip(count int) tenantToAlertingSettingsFindMany { +func (r tenantAlertingSettingsToTenantFindMany) Skip(count int) tenantAlertingSettingsToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -259348,7 +284255,7 @@ func (r tenantToAlertingSettingsFindMany) Skip(count int) tenantToAlertingSettin return r } -func (r tenantToAlertingSettingsFindMany) Take(count int) tenantToAlertingSettingsFindMany { +func (r tenantAlertingSettingsToTenantFindMany) Take(count int) tenantAlertingSettingsToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -259356,7 +284263,7 @@ func (r tenantToAlertingSettingsFindMany) Take(count int) tenantToAlertingSettin return r } -func (r tenantToAlertingSettingsFindMany) Cursor(cursor TenantCursorParam) tenantToAlertingSettingsFindMany { +func (r tenantAlertingSettingsToTenantFindMany) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -259364,11 +284271,11 @@ func (r tenantToAlertingSettingsFindMany) Cursor(cursor TenantCursorParam) tenan return r } -func (r tenantToAlertingSettingsFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantAlertingSettingsToTenantFindMany) Exec(ctx context.Context) ( + []TenantAlertingSettingsModel, error, ) { - var v []TenantModel + var v []TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259376,11 +284283,11 @@ func (r tenantToAlertingSettingsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToAlertingSettingsFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantAlertingSettingsToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerTenantAlertingSettings, error, ) { - var v []InnerTenant + var v []InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259388,14 +284295,14 @@ func (r tenantToAlertingSettingsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToAlertingSettingsFindMany) Update(params ...TenantSetParam) tenantToAlertingSettingsUpdateMany { +func (r tenantAlertingSettingsToTenantFindMany) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantAlertingSettings" r.query.Outputs = countOutput - var v tenantToAlertingSettingsUpdateMany + var v tenantAlertingSettingsToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -259424,17 +284331,17 @@ func (r tenantToAlertingSettingsFindMany) Update(params ...TenantSetParam) tenan return v } -type tenantToAlertingSettingsUpdateMany struct { +type tenantAlertingSettingsToTenantUpdateMany struct { query builder.Query } -func (r tenantToAlertingSettingsUpdateMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToAlertingSettingsUpdateMany) tenantModel() {} +func (r tenantAlertingSettingsToTenantUpdateMany) tenantAlertingSettingsModel() {} -func (r tenantToAlertingSettingsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantAlertingSettingsToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -259442,36 +284349,36 @@ func (r tenantToAlertingSettingsUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r tenantToAlertingSettingsUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantAlertingSettingsToTenantUpdateMany) Tx() TenantAlertingSettingsManyTxResult { + v := newTenantAlertingSettingsManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToAlertingSettingsFindMany) Delete() tenantToAlertingSettingsDeleteMany { - var v tenantToAlertingSettingsDeleteMany +func (r tenantAlertingSettingsToTenantFindMany) Delete() tenantAlertingSettingsToTenantDeleteMany { + var v tenantAlertingSettingsToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantAlertingSettings" v.query.Outputs = countOutput return v } -type tenantToAlertingSettingsDeleteMany struct { +type tenantAlertingSettingsToTenantDeleteMany struct { query builder.Query } -func (r tenantToAlertingSettingsDeleteMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToAlertingSettingsDeleteMany) tenantModel() {} +func (p tenantAlertingSettingsToTenantDeleteMany) tenantAlertingSettingsModel() {} -func (r tenantToAlertingSettingsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantAlertingSettingsToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -259479,30 +284386,30 @@ func (r tenantToAlertingSettingsDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r tenantToAlertingSettingsDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantAlertingSettingsToTenantDeleteMany) Tx() TenantAlertingSettingsManyTxResult { + v := newTenantAlertingSettingsManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToLimitsFindUnique struct { +type tenantAlertingSettingsToTickerFindUnique struct { query builder.Query } -func (r tenantToLimitsFindUnique) getQuery() builder.Query { +func (r tenantAlertingSettingsToTickerFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToLimitsFindUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTickerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitsFindUnique) with() {} -func (r tenantToLimitsFindUnique) tenantModel() {} -func (r tenantToLimitsFindUnique) tenantRelation() {} +func (r tenantAlertingSettingsToTickerFindUnique) with() {} +func (r tenantAlertingSettingsToTickerFindUnique) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsToTickerFindUnique) tenantAlertingSettingsRelation() {} -func (r tenantToLimitsFindUnique) With(params ...TenantResourceLimitRelationWith) tenantToLimitsFindUnique { +func (r tenantAlertingSettingsToTickerFindUnique) With(params ...TickerRelationWith) tenantAlertingSettingsToTickerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -259515,7 +284422,7 @@ func (r tenantToLimitsFindUnique) With(params ...TenantResourceLimitRelationWith return r } -func (r tenantToLimitsFindUnique) Select(params ...tenantPrismaFields) tenantToLimitsFindUnique { +func (r tenantAlertingSettingsToTickerFindUnique) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindUnique { var outputs []builder.Output for _, param := range params { @@ -259529,7 +284436,7 @@ func (r tenantToLimitsFindUnique) Select(params ...tenantPrismaFields) tenantToL return r } -func (r tenantToLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantToLimitsFindUnique { +func (r tenantAlertingSettingsToTickerFindUnique) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindUnique { var outputs []builder.Output var raw []string @@ -259537,7 +284444,7 @@ func (r tenantToLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantToLim raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -259548,11 +284455,11 @@ func (r tenantToLimitsFindUnique) Omit(params ...tenantPrismaFields) tenantToLim return r } -func (r tenantToLimitsFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantAlertingSettingsToTickerFindUnique) Exec(ctx context.Context) ( + *TenantAlertingSettingsModel, error, ) { - var v *TenantModel + var v *TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259564,11 +284471,11 @@ func (r tenantToLimitsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLimitsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantAlertingSettingsToTickerFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantAlertingSettings, error, ) { - var v *InnerTenant + var v *InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259580,12 +284487,12 @@ func (r tenantToLimitsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToLimitsFindUnique) Update(params ...TenantSetParam) tenantToLimitsUpdateUnique { +func (r tenantAlertingSettingsToTickerFindUnique) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsToTickerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantAlertingSettings" - var v tenantToLimitsUpdateUnique + var v tenantAlertingSettingsToTickerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -259614,83 +284521,83 @@ func (r tenantToLimitsFindUnique) Update(params ...TenantSetParam) tenantToLimit return v } -type tenantToLimitsUpdateUnique struct { +type tenantAlertingSettingsToTickerUpdateUnique struct { query builder.Query } -func (r tenantToLimitsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTickerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitsUpdateUnique) tenantModel() {} +func (r tenantAlertingSettingsToTickerUpdateUnique) tenantAlertingSettingsModel() {} -func (r tenantToLimitsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantAlertingSettingsToTickerUpdateUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { + var v TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToLimitsUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantAlertingSettingsToTickerUpdateUnique) Tx() TenantAlertingSettingsUniqueTxResult { + v := newTenantAlertingSettingsUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToLimitsFindUnique) Delete() tenantToLimitsDeleteUnique { - var v tenantToLimitsDeleteUnique +func (r tenantAlertingSettingsToTickerFindUnique) Delete() tenantAlertingSettingsToTickerDeleteUnique { + var v tenantAlertingSettingsToTickerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantAlertingSettings" return v } -type tenantToLimitsDeleteUnique struct { +type tenantAlertingSettingsToTickerDeleteUnique struct { query builder.Query } -func (r tenantToLimitsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTickerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToLimitsDeleteUnique) tenantModel() {} +func (p tenantAlertingSettingsToTickerDeleteUnique) tenantAlertingSettingsModel() {} -func (r tenantToLimitsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantAlertingSettingsToTickerDeleteUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { + var v TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToLimitsDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantAlertingSettingsToTickerDeleteUnique) Tx() TenantAlertingSettingsUniqueTxResult { + v := newTenantAlertingSettingsUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToLimitsFindFirst struct { +type tenantAlertingSettingsToTickerFindFirst struct { query builder.Query } -func (r tenantToLimitsFindFirst) getQuery() builder.Query { +func (r tenantAlertingSettingsToTickerFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToLimitsFindFirst) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTickerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitsFindFirst) with() {} -func (r tenantToLimitsFindFirst) tenantModel() {} -func (r tenantToLimitsFindFirst) tenantRelation() {} +func (r tenantAlertingSettingsToTickerFindFirst) with() {} +func (r tenantAlertingSettingsToTickerFindFirst) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsToTickerFindFirst) tenantAlertingSettingsRelation() {} -func (r tenantToLimitsFindFirst) With(params ...TenantResourceLimitRelationWith) tenantToLimitsFindFirst { +func (r tenantAlertingSettingsToTickerFindFirst) With(params ...TickerRelationWith) tenantAlertingSettingsToTickerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -259703,7 +284610,7 @@ func (r tenantToLimitsFindFirst) With(params ...TenantResourceLimitRelationWith) return r } -func (r tenantToLimitsFindFirst) Select(params ...tenantPrismaFields) tenantToLimitsFindFirst { +func (r tenantAlertingSettingsToTickerFindFirst) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindFirst { var outputs []builder.Output for _, param := range params { @@ -259717,7 +284624,7 @@ func (r tenantToLimitsFindFirst) Select(params ...tenantPrismaFields) tenantToLi return r } -func (r tenantToLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantToLimitsFindFirst { +func (r tenantAlertingSettingsToTickerFindFirst) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindFirst { var outputs []builder.Output var raw []string @@ -259725,7 +284632,7 @@ func (r tenantToLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantToLimi raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -259736,7 +284643,7 @@ func (r tenantToLimitsFindFirst) Omit(params ...tenantPrismaFields) tenantToLimi return r } -func (r tenantToLimitsFindFirst) OrderBy(params ...TenantResourceLimitOrderByParam) tenantToLimitsFindFirst { +func (r tenantAlertingSettingsToTickerFindFirst) OrderBy(params ...TickerOrderByParam) tenantAlertingSettingsToTickerFindFirst { var fields []builder.Field for _, param := range params { @@ -259756,7 +284663,7 @@ func (r tenantToLimitsFindFirst) OrderBy(params ...TenantResourceLimitOrderByPar return r } -func (r tenantToLimitsFindFirst) Skip(count int) tenantToLimitsFindFirst { +func (r tenantAlertingSettingsToTickerFindFirst) Skip(count int) tenantAlertingSettingsToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -259764,7 +284671,7 @@ func (r tenantToLimitsFindFirst) Skip(count int) tenantToLimitsFindFirst { return r } -func (r tenantToLimitsFindFirst) Take(count int) tenantToLimitsFindFirst { +func (r tenantAlertingSettingsToTickerFindFirst) Take(count int) tenantAlertingSettingsToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -259772,7 +284679,7 @@ func (r tenantToLimitsFindFirst) Take(count int) tenantToLimitsFindFirst { return r } -func (r tenantToLimitsFindFirst) Cursor(cursor TenantCursorParam) tenantToLimitsFindFirst { +func (r tenantAlertingSettingsToTickerFindFirst) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -259780,11 +284687,11 @@ func (r tenantToLimitsFindFirst) Cursor(cursor TenantCursorParam) tenantToLimits return r } -func (r tenantToLimitsFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantAlertingSettingsToTickerFindFirst) Exec(ctx context.Context) ( + *TenantAlertingSettingsModel, error, ) { - var v *TenantModel + var v *TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259796,11 +284703,11 @@ func (r tenantToLimitsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLimitsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantAlertingSettingsToTickerFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantAlertingSettings, error, ) { - var v *InnerTenant + var v *InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259812,23 +284719,23 @@ func (r tenantToLimitsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToLimitsFindMany struct { +type tenantAlertingSettingsToTickerFindMany struct { query builder.Query } -func (r tenantToLimitsFindMany) getQuery() builder.Query { +func (r tenantAlertingSettingsToTickerFindMany) getQuery() builder.Query { return r.query } -func (r tenantToLimitsFindMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTickerFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitsFindMany) with() {} -func (r tenantToLimitsFindMany) tenantModel() {} -func (r tenantToLimitsFindMany) tenantRelation() {} +func (r tenantAlertingSettingsToTickerFindMany) with() {} +func (r tenantAlertingSettingsToTickerFindMany) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsToTickerFindMany) tenantAlertingSettingsRelation() {} -func (r tenantToLimitsFindMany) With(params ...TenantResourceLimitRelationWith) tenantToLimitsFindMany { +func (r tenantAlertingSettingsToTickerFindMany) With(params ...TickerRelationWith) tenantAlertingSettingsToTickerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -259841,7 +284748,7 @@ func (r tenantToLimitsFindMany) With(params ...TenantResourceLimitRelationWith) return r } -func (r tenantToLimitsFindMany) Select(params ...tenantPrismaFields) tenantToLimitsFindMany { +func (r tenantAlertingSettingsToTickerFindMany) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindMany { var outputs []builder.Output for _, param := range params { @@ -259855,7 +284762,7 @@ func (r tenantToLimitsFindMany) Select(params ...tenantPrismaFields) tenantToLim return r } -func (r tenantToLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToLimitsFindMany { +func (r tenantAlertingSettingsToTickerFindMany) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindMany { var outputs []builder.Output var raw []string @@ -259863,7 +284770,7 @@ func (r tenantToLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToLimit raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -259874,7 +284781,7 @@ func (r tenantToLimitsFindMany) Omit(params ...tenantPrismaFields) tenantToLimit return r } -func (r tenantToLimitsFindMany) OrderBy(params ...TenantResourceLimitOrderByParam) tenantToLimitsFindMany { +func (r tenantAlertingSettingsToTickerFindMany) OrderBy(params ...TickerOrderByParam) tenantAlertingSettingsToTickerFindMany { var fields []builder.Field for _, param := range params { @@ -259894,7 +284801,7 @@ func (r tenantToLimitsFindMany) OrderBy(params ...TenantResourceLimitOrderByPara return r } -func (r tenantToLimitsFindMany) Skip(count int) tenantToLimitsFindMany { +func (r tenantAlertingSettingsToTickerFindMany) Skip(count int) tenantAlertingSettingsToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -259902,7 +284809,7 @@ func (r tenantToLimitsFindMany) Skip(count int) tenantToLimitsFindMany { return r } -func (r tenantToLimitsFindMany) Take(count int) tenantToLimitsFindMany { +func (r tenantAlertingSettingsToTickerFindMany) Take(count int) tenantAlertingSettingsToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -259910,7 +284817,7 @@ func (r tenantToLimitsFindMany) Take(count int) tenantToLimitsFindMany { return r } -func (r tenantToLimitsFindMany) Cursor(cursor TenantCursorParam) tenantToLimitsFindMany { +func (r tenantAlertingSettingsToTickerFindMany) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -259918,11 +284825,11 @@ func (r tenantToLimitsFindMany) Cursor(cursor TenantCursorParam) tenantToLimitsF return r } -func (r tenantToLimitsFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantAlertingSettingsToTickerFindMany) Exec(ctx context.Context) ( + []TenantAlertingSettingsModel, error, ) { - var v []TenantModel + var v []TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259930,11 +284837,11 @@ func (r tenantToLimitsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLimitsFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantAlertingSettingsToTickerFindMany) ExecInner(ctx context.Context) ( + []InnerTenantAlertingSettings, error, ) { - var v []InnerTenant + var v []InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -259942,14 +284849,14 @@ func (r tenantToLimitsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToLimitsFindMany) Update(params ...TenantSetParam) tenantToLimitsUpdateMany { +func (r tenantAlertingSettingsToTickerFindMany) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsToTickerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantAlertingSettings" r.query.Outputs = countOutput - var v tenantToLimitsUpdateMany + var v tenantAlertingSettingsToTickerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -259978,17 +284885,17 @@ func (r tenantToLimitsFindMany) Update(params ...TenantSetParam) tenantToLimitsU return v } -type tenantToLimitsUpdateMany struct { +type tenantAlertingSettingsToTickerUpdateMany struct { query builder.Query } -func (r tenantToLimitsUpdateMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTickerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitsUpdateMany) tenantModel() {} +func (r tenantAlertingSettingsToTickerUpdateMany) tenantAlertingSettingsModel() {} -func (r tenantToLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantAlertingSettingsToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -259996,36 +284903,36 @@ func (r tenantToLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r tenantToLimitsUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantAlertingSettingsToTickerUpdateMany) Tx() TenantAlertingSettingsManyTxResult { + v := newTenantAlertingSettingsManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToLimitsFindMany) Delete() tenantToLimitsDeleteMany { - var v tenantToLimitsDeleteMany +func (r tenantAlertingSettingsToTickerFindMany) Delete() tenantAlertingSettingsToTickerDeleteMany { + var v tenantAlertingSettingsToTickerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantAlertingSettings" v.query.Outputs = countOutput return v } -type tenantToLimitsDeleteMany struct { +type tenantAlertingSettingsToTickerDeleteMany struct { query builder.Query } -func (r tenantToLimitsDeleteMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsToTickerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToLimitsDeleteMany) tenantModel() {} +func (p tenantAlertingSettingsToTickerDeleteMany) tenantAlertingSettingsModel() {} -func (r tenantToLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantAlertingSettingsToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -260033,30 +284940,52 @@ func (r tenantToLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r tenantToLimitsDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantAlertingSettingsToTickerDeleteMany) Tx() TenantAlertingSettingsManyTxResult { + v := newTenantAlertingSettingsManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToLimitAlertsFindUnique struct { +type tenantAlertingSettingsFindUnique struct { query builder.Query } -func (r tenantToLimitAlertsFindUnique) getQuery() builder.Query { +func (r tenantAlertingSettingsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToLimitAlertsFindUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitAlertsFindUnique) with() {} -func (r tenantToLimitAlertsFindUnique) tenantModel() {} -func (r tenantToLimitAlertsFindUnique) tenantRelation() {} +func (r tenantAlertingSettingsFindUnique) with() {} +func (r tenantAlertingSettingsFindUnique) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsFindUnique) tenantAlertingSettingsRelation() {} -func (r tenantToLimitAlertsFindUnique) With(params ...TenantResourceLimitAlertRelationWith) tenantToLimitAlertsFindUnique { +func (r tenantAlertingSettingsActions) FindUnique( + params TenantAlertingSettingsEqualsUniqueWhereParam, +) tenantAlertingSettingsFindUnique { + var v tenantAlertingSettingsFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "TenantAlertingSettings" + v.query.Outputs = tenantAlertingSettingsOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r tenantAlertingSettingsFindUnique) With(params ...TenantAlertingSettingsRelationWith) tenantAlertingSettingsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -260069,7 +284998,7 @@ func (r tenantToLimitAlertsFindUnique) With(params ...TenantResourceLimitAlertRe return r } -func (r tenantToLimitAlertsFindUnique) Select(params ...tenantPrismaFields) tenantToLimitAlertsFindUnique { +func (r tenantAlertingSettingsFindUnique) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindUnique { var outputs []builder.Output for _, param := range params { @@ -260083,7 +285012,7 @@ func (r tenantToLimitAlertsFindUnique) Select(params ...tenantPrismaFields) tena return r } -func (r tenantToLimitAlertsFindUnique) Omit(params ...tenantPrismaFields) tenantToLimitAlertsFindUnique { +func (r tenantAlertingSettingsFindUnique) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindUnique { var outputs []builder.Output var raw []string @@ -260091,7 +285020,7 @@ func (r tenantToLimitAlertsFindUnique) Omit(params ...tenantPrismaFields) tenant raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -260102,11 +285031,11 @@ func (r tenantToLimitAlertsFindUnique) Omit(params ...tenantPrismaFields) tenant return r } -func (r tenantToLimitAlertsFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantAlertingSettingsFindUnique) Exec(ctx context.Context) ( + *TenantAlertingSettingsModel, error, ) { - var v *TenantModel + var v *TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260118,11 +285047,11 @@ func (r tenantToLimitAlertsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLimitAlertsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantAlertingSettingsFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantAlertingSettings, error, ) { - var v *InnerTenant + var v *InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260134,12 +285063,12 @@ func (r tenantToLimitAlertsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToLimitAlertsFindUnique) Update(params ...TenantSetParam) tenantToLimitAlertsUpdateUnique { +func (r tenantAlertingSettingsFindUnique) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantAlertingSettings" - var v tenantToLimitAlertsUpdateUnique + var v tenantAlertingSettingsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -260168,83 +285097,120 @@ func (r tenantToLimitAlertsFindUnique) Update(params ...TenantSetParam) tenantTo return v } -type tenantToLimitAlertsUpdateUnique struct { +type tenantAlertingSettingsUpdateUnique struct { query builder.Query } -func (r tenantToLimitAlertsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitAlertsUpdateUnique) tenantModel() {} +func (r tenantAlertingSettingsUpdateUnique) tenantAlertingSettingsModel() {} -func (r tenantToLimitAlertsUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantAlertingSettingsUpdateUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { + var v TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToLimitAlertsUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantAlertingSettingsUpdateUnique) Tx() TenantAlertingSettingsUniqueTxResult { + v := newTenantAlertingSettingsUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToLimitAlertsFindUnique) Delete() tenantToLimitAlertsDeleteUnique { - var v tenantToLimitAlertsDeleteUnique +func (r tenantAlertingSettingsFindUnique) Delete() tenantAlertingSettingsDeleteUnique { + var v tenantAlertingSettingsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantAlertingSettings" return v } -type tenantToLimitAlertsDeleteUnique struct { +type tenantAlertingSettingsDeleteUnique struct { query builder.Query } -func (r tenantToLimitAlertsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToLimitAlertsDeleteUnique) tenantModel() {} +func (p tenantAlertingSettingsDeleteUnique) tenantAlertingSettingsModel() {} -func (r tenantToLimitAlertsDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantAlertingSettingsDeleteUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { + var v TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToLimitAlertsDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantAlertingSettingsDeleteUnique) Tx() TenantAlertingSettingsUniqueTxResult { + v := newTenantAlertingSettingsUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToLimitAlertsFindFirst struct { +type tenantAlertingSettingsFindFirst struct { query builder.Query } -func (r tenantToLimitAlertsFindFirst) getQuery() builder.Query { +func (r tenantAlertingSettingsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToLimitAlertsFindFirst) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitAlertsFindFirst) with() {} -func (r tenantToLimitAlertsFindFirst) tenantModel() {} -func (r tenantToLimitAlertsFindFirst) tenantRelation() {} +func (r tenantAlertingSettingsFindFirst) with() {} +func (r tenantAlertingSettingsFindFirst) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsFindFirst) tenantAlertingSettingsRelation() {} -func (r tenantToLimitAlertsFindFirst) With(params ...TenantResourceLimitAlertRelationWith) tenantToLimitAlertsFindFirst { +func (r tenantAlertingSettingsActions) FindFirst( + params ...TenantAlertingSettingsWhereParam, +) tenantAlertingSettingsFindFirst { + var v tenantAlertingSettingsFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "TenantAlertingSettings" + v.query.Outputs = tenantAlertingSettingsOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantAlertingSettingsFindFirst) With(params ...TenantAlertingSettingsRelationWith) tenantAlertingSettingsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -260257,7 +285223,7 @@ func (r tenantToLimitAlertsFindFirst) With(params ...TenantResourceLimitAlertRel return r } -func (r tenantToLimitAlertsFindFirst) Select(params ...tenantPrismaFields) tenantToLimitAlertsFindFirst { +func (r tenantAlertingSettingsFindFirst) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindFirst { var outputs []builder.Output for _, param := range params { @@ -260271,7 +285237,7 @@ func (r tenantToLimitAlertsFindFirst) Select(params ...tenantPrismaFields) tenan return r } -func (r tenantToLimitAlertsFindFirst) Omit(params ...tenantPrismaFields) tenantToLimitAlertsFindFirst { +func (r tenantAlertingSettingsFindFirst) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindFirst { var outputs []builder.Output var raw []string @@ -260279,7 +285245,7 @@ func (r tenantToLimitAlertsFindFirst) Omit(params ...tenantPrismaFields) tenantT raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -260290,7 +285256,7 @@ func (r tenantToLimitAlertsFindFirst) Omit(params ...tenantPrismaFields) tenantT return r } -func (r tenantToLimitAlertsFindFirst) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantToLimitAlertsFindFirst { +func (r tenantAlertingSettingsFindFirst) OrderBy(params ...TenantAlertingSettingsOrderByParam) tenantAlertingSettingsFindFirst { var fields []builder.Field for _, param := range params { @@ -260310,7 +285276,7 @@ func (r tenantToLimitAlertsFindFirst) OrderBy(params ...TenantResourceLimitAlert return r } -func (r tenantToLimitAlertsFindFirst) Skip(count int) tenantToLimitAlertsFindFirst { +func (r tenantAlertingSettingsFindFirst) Skip(count int) tenantAlertingSettingsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -260318,7 +285284,7 @@ func (r tenantToLimitAlertsFindFirst) Skip(count int) tenantToLimitAlertsFindFir return r } -func (r tenantToLimitAlertsFindFirst) Take(count int) tenantToLimitAlertsFindFirst { +func (r tenantAlertingSettingsFindFirst) Take(count int) tenantAlertingSettingsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -260326,7 +285292,7 @@ func (r tenantToLimitAlertsFindFirst) Take(count int) tenantToLimitAlertsFindFir return r } -func (r tenantToLimitAlertsFindFirst) Cursor(cursor TenantCursorParam) tenantToLimitAlertsFindFirst { +func (r tenantAlertingSettingsFindFirst) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -260334,11 +285300,11 @@ func (r tenantToLimitAlertsFindFirst) Cursor(cursor TenantCursorParam) tenantToL return r } -func (r tenantToLimitAlertsFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantAlertingSettingsFindFirst) Exec(ctx context.Context) ( + *TenantAlertingSettingsModel, error, ) { - var v *TenantModel + var v *TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260350,11 +285316,11 @@ func (r tenantToLimitAlertsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLimitAlertsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantAlertingSettingsFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantAlertingSettings, error, ) { - var v *InnerTenant + var v *InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260366,23 +285332,60 @@ func (r tenantToLimitAlertsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToLimitAlertsFindMany struct { +type tenantAlertingSettingsFindMany struct { query builder.Query } -func (r tenantToLimitAlertsFindMany) getQuery() builder.Query { +func (r tenantAlertingSettingsFindMany) getQuery() builder.Query { return r.query } -func (r tenantToLimitAlertsFindMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitAlertsFindMany) with() {} -func (r tenantToLimitAlertsFindMany) tenantModel() {} -func (r tenantToLimitAlertsFindMany) tenantRelation() {} +func (r tenantAlertingSettingsFindMany) with() {} +func (r tenantAlertingSettingsFindMany) tenantAlertingSettingsModel() {} +func (r tenantAlertingSettingsFindMany) tenantAlertingSettingsRelation() {} -func (r tenantToLimitAlertsFindMany) With(params ...TenantResourceLimitAlertRelationWith) tenantToLimitAlertsFindMany { +func (r tenantAlertingSettingsActions) FindMany( + params ...TenantAlertingSettingsWhereParam, +) tenantAlertingSettingsFindMany { + var v tenantAlertingSettingsFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "TenantAlertingSettings" + v.query.Outputs = tenantAlertingSettingsOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantAlertingSettingsFindMany) With(params ...TenantAlertingSettingsRelationWith) tenantAlertingSettingsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -260395,7 +285398,7 @@ func (r tenantToLimitAlertsFindMany) With(params ...TenantResourceLimitAlertRela return r } -func (r tenantToLimitAlertsFindMany) Select(params ...tenantPrismaFields) tenantToLimitAlertsFindMany { +func (r tenantAlertingSettingsFindMany) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindMany { var outputs []builder.Output for _, param := range params { @@ -260409,7 +285412,7 @@ func (r tenantToLimitAlertsFindMany) Select(params ...tenantPrismaFields) tenant return r } -func (r tenantToLimitAlertsFindMany) Omit(params ...tenantPrismaFields) tenantToLimitAlertsFindMany { +func (r tenantAlertingSettingsFindMany) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindMany { var outputs []builder.Output var raw []string @@ -260417,7 +285420,7 @@ func (r tenantToLimitAlertsFindMany) Omit(params ...tenantPrismaFields) tenantTo raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantAlertingSettingsOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -260428,7 +285431,7 @@ func (r tenantToLimitAlertsFindMany) Omit(params ...tenantPrismaFields) tenantTo return r } -func (r tenantToLimitAlertsFindMany) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantToLimitAlertsFindMany { +func (r tenantAlertingSettingsFindMany) OrderBy(params ...TenantAlertingSettingsOrderByParam) tenantAlertingSettingsFindMany { var fields []builder.Field for _, param := range params { @@ -260448,7 +285451,7 @@ func (r tenantToLimitAlertsFindMany) OrderBy(params ...TenantResourceLimitAlertO return r } -func (r tenantToLimitAlertsFindMany) Skip(count int) tenantToLimitAlertsFindMany { +func (r tenantAlertingSettingsFindMany) Skip(count int) tenantAlertingSettingsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -260456,7 +285459,7 @@ func (r tenantToLimitAlertsFindMany) Skip(count int) tenantToLimitAlertsFindMany return r } -func (r tenantToLimitAlertsFindMany) Take(count int) tenantToLimitAlertsFindMany { +func (r tenantAlertingSettingsFindMany) Take(count int) tenantAlertingSettingsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -260464,7 +285467,7 @@ func (r tenantToLimitAlertsFindMany) Take(count int) tenantToLimitAlertsFindMany return r } -func (r tenantToLimitAlertsFindMany) Cursor(cursor TenantCursorParam) tenantToLimitAlertsFindMany { +func (r tenantAlertingSettingsFindMany) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -260472,11 +285475,11 @@ func (r tenantToLimitAlertsFindMany) Cursor(cursor TenantCursorParam) tenantToLi return r } -func (r tenantToLimitAlertsFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantAlertingSettingsFindMany) Exec(ctx context.Context) ( + []TenantAlertingSettingsModel, error, ) { - var v []TenantModel + var v []TenantAlertingSettingsModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260484,11 +285487,11 @@ func (r tenantToLimitAlertsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToLimitAlertsFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantAlertingSettingsFindMany) ExecInner(ctx context.Context) ( + []InnerTenantAlertingSettings, error, ) { - var v []InnerTenant + var v []InnerTenantAlertingSettings if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260496,14 +285499,14 @@ func (r tenantToLimitAlertsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToLimitAlertsFindMany) Update(params ...TenantSetParam) tenantToLimitAlertsUpdateMany { +func (r tenantAlertingSettingsFindMany) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantAlertingSettings" r.query.Outputs = countOutput - var v tenantToLimitAlertsUpdateMany + var v tenantAlertingSettingsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -260532,17 +285535,17 @@ func (r tenantToLimitAlertsFindMany) Update(params ...TenantSetParam) tenantToLi return v } -type tenantToLimitAlertsUpdateMany struct { +type tenantAlertingSettingsUpdateMany struct { query builder.Query } -func (r tenantToLimitAlertsUpdateMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToLimitAlertsUpdateMany) tenantModel() {} +func (r tenantAlertingSettingsUpdateMany) tenantAlertingSettingsModel() {} -func (r tenantToLimitAlertsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantAlertingSettingsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -260550,36 +285553,36 @@ func (r tenantToLimitAlertsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToLimitAlertsUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantAlertingSettingsUpdateMany) Tx() TenantAlertingSettingsManyTxResult { + v := newTenantAlertingSettingsManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToLimitAlertsFindMany) Delete() tenantToLimitAlertsDeleteMany { - var v tenantToLimitAlertsDeleteMany +func (r tenantAlertingSettingsFindMany) Delete() tenantAlertingSettingsDeleteMany { + var v tenantAlertingSettingsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantAlertingSettings" v.query.Outputs = countOutput return v } -type tenantToLimitAlertsDeleteMany struct { +type tenantAlertingSettingsDeleteMany struct { query builder.Query } -func (r tenantToLimitAlertsDeleteMany) ExtractQuery() builder.Query { +func (r tenantAlertingSettingsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToLimitAlertsDeleteMany) tenantModel() {} +func (p tenantAlertingSettingsDeleteMany) tenantAlertingSettingsModel() {} -func (r tenantToLimitAlertsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantAlertingSettingsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -260587,30 +285590,30 @@ func (r tenantToLimitAlertsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantToLimitAlertsDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantAlertingSettingsDeleteMany) Tx() TenantAlertingSettingsManyTxResult { + v := newTenantAlertingSettingsManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWebhookWorkersFindUnique struct { +type tenantMemberToTenantFindUnique struct { query builder.Query } -func (r tenantToWebhookWorkersFindUnique) getQuery() builder.Query { +func (r tenantMemberToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantToWebhookWorkersFindUnique) ExtractQuery() builder.Query { +func (r tenantMemberToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWebhookWorkersFindUnique) with() {} -func (r tenantToWebhookWorkersFindUnique) tenantModel() {} -func (r tenantToWebhookWorkersFindUnique) tenantRelation() {} +func (r tenantMemberToTenantFindUnique) with() {} +func (r tenantMemberToTenantFindUnique) tenantMemberModel() {} +func (r tenantMemberToTenantFindUnique) tenantMemberRelation() {} -func (r tenantToWebhookWorkersFindUnique) With(params ...WebhookWorkerRelationWith) tenantToWebhookWorkersFindUnique { +func (r tenantMemberToTenantFindUnique) With(params ...TenantRelationWith) tenantMemberToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -260623,7 +285626,7 @@ func (r tenantToWebhookWorkersFindUnique) With(params ...WebhookWorkerRelationWi return r } -func (r tenantToWebhookWorkersFindUnique) Select(params ...tenantPrismaFields) tenantToWebhookWorkersFindUnique { +func (r tenantMemberToTenantFindUnique) Select(params ...tenantMemberPrismaFields) tenantMemberToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -260637,7 +285640,7 @@ func (r tenantToWebhookWorkersFindUnique) Select(params ...tenantPrismaFields) t return r } -func (r tenantToWebhookWorkersFindUnique) Omit(params ...tenantPrismaFields) tenantToWebhookWorkersFindUnique { +func (r tenantMemberToTenantFindUnique) Omit(params ...tenantMemberPrismaFields) tenantMemberToTenantFindUnique { var outputs []builder.Output var raw []string @@ -260645,7 +285648,7 @@ func (r tenantToWebhookWorkersFindUnique) Omit(params ...tenantPrismaFields) ten raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -260656,11 +285659,11 @@ func (r tenantToWebhookWorkersFindUnique) Omit(params ...tenantPrismaFields) ten return r } -func (r tenantToWebhookWorkersFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantMemberToTenantFindUnique) Exec(ctx context.Context) ( + *TenantMemberModel, error, ) { - var v *TenantModel + var v *TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260672,11 +285675,11 @@ func (r tenantToWebhookWorkersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWebhookWorkersFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantMemberToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantMember, error, ) { - var v *InnerTenant + var v *InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260688,12 +285691,12 @@ func (r tenantToWebhookWorkersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWebhookWorkersFindUnique) Update(params ...TenantSetParam) tenantToWebhookWorkersUpdateUnique { +func (r tenantMemberToTenantFindUnique) Update(params ...TenantMemberSetParam) tenantMemberToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantMember" - var v tenantToWebhookWorkersUpdateUnique + var v tenantMemberToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -260722,83 +285725,83 @@ func (r tenantToWebhookWorkersFindUnique) Update(params ...TenantSetParam) tenan return v } -type tenantToWebhookWorkersUpdateUnique struct { +type tenantMemberToTenantUpdateUnique struct { query builder.Query } -func (r tenantToWebhookWorkersUpdateUnique) ExtractQuery() builder.Query { +func (r tenantMemberToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantToWebhookWorkersUpdateUnique) tenantModel() {} +func (r tenantMemberToTenantUpdateUnique) tenantMemberModel() {} -func (r tenantToWebhookWorkersUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantMemberToTenantUpdateUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { + var v TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToWebhookWorkersUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantMemberToTenantUpdateUnique) Tx() TenantMemberUniqueTxResult { + v := newTenantMemberUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWebhookWorkersFindUnique) Delete() tenantToWebhookWorkersDeleteUnique { - var v tenantToWebhookWorkersDeleteUnique +func (r tenantMemberToTenantFindUnique) Delete() tenantMemberToTenantDeleteUnique { + var v tenantMemberToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantMember" return v } -type tenantToWebhookWorkersDeleteUnique struct { +type tenantMemberToTenantDeleteUnique struct { query builder.Query } -func (r tenantToWebhookWorkersDeleteUnique) ExtractQuery() builder.Query { +func (r tenantMemberToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantToWebhookWorkersDeleteUnique) tenantModel() {} +func (p tenantMemberToTenantDeleteUnique) tenantMemberModel() {} -func (r tenantToWebhookWorkersDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantMemberToTenantDeleteUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { + var v TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantToWebhookWorkersDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantMemberToTenantDeleteUnique) Tx() TenantMemberUniqueTxResult { + v := newTenantMemberUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantToWebhookWorkersFindFirst struct { +type tenantMemberToTenantFindFirst struct { query builder.Query } -func (r tenantToWebhookWorkersFindFirst) getQuery() builder.Query { +func (r tenantMemberToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantToWebhookWorkersFindFirst) ExtractQuery() builder.Query { +func (r tenantMemberToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantToWebhookWorkersFindFirst) with() {} -func (r tenantToWebhookWorkersFindFirst) tenantModel() {} -func (r tenantToWebhookWorkersFindFirst) tenantRelation() {} +func (r tenantMemberToTenantFindFirst) with() {} +func (r tenantMemberToTenantFindFirst) tenantMemberModel() {} +func (r tenantMemberToTenantFindFirst) tenantMemberRelation() {} -func (r tenantToWebhookWorkersFindFirst) With(params ...WebhookWorkerRelationWith) tenantToWebhookWorkersFindFirst { +func (r tenantMemberToTenantFindFirst) With(params ...TenantRelationWith) tenantMemberToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -260811,7 +285814,7 @@ func (r tenantToWebhookWorkersFindFirst) With(params ...WebhookWorkerRelationWit return r } -func (r tenantToWebhookWorkersFindFirst) Select(params ...tenantPrismaFields) tenantToWebhookWorkersFindFirst { +func (r tenantMemberToTenantFindFirst) Select(params ...tenantMemberPrismaFields) tenantMemberToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -260825,7 +285828,7 @@ func (r tenantToWebhookWorkersFindFirst) Select(params ...tenantPrismaFields) te return r } -func (r tenantToWebhookWorkersFindFirst) Omit(params ...tenantPrismaFields) tenantToWebhookWorkersFindFirst { +func (r tenantMemberToTenantFindFirst) Omit(params ...tenantMemberPrismaFields) tenantMemberToTenantFindFirst { var outputs []builder.Output var raw []string @@ -260833,7 +285836,7 @@ func (r tenantToWebhookWorkersFindFirst) Omit(params ...tenantPrismaFields) tena raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -260844,7 +285847,7 @@ func (r tenantToWebhookWorkersFindFirst) Omit(params ...tenantPrismaFields) tena return r } -func (r tenantToWebhookWorkersFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) tenantToWebhookWorkersFindFirst { +func (r tenantMemberToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantMemberToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -260864,7 +285867,7 @@ func (r tenantToWebhookWorkersFindFirst) OrderBy(params ...WebhookWorkerOrderByP return r } -func (r tenantToWebhookWorkersFindFirst) Skip(count int) tenantToWebhookWorkersFindFirst { +func (r tenantMemberToTenantFindFirst) Skip(count int) tenantMemberToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -260872,7 +285875,7 @@ func (r tenantToWebhookWorkersFindFirst) Skip(count int) tenantToWebhookWorkersF return r } -func (r tenantToWebhookWorkersFindFirst) Take(count int) tenantToWebhookWorkersFindFirst { +func (r tenantMemberToTenantFindFirst) Take(count int) tenantMemberToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -260880,7 +285883,7 @@ func (r tenantToWebhookWorkersFindFirst) Take(count int) tenantToWebhookWorkersF return r } -func (r tenantToWebhookWorkersFindFirst) Cursor(cursor TenantCursorParam) tenantToWebhookWorkersFindFirst { +func (r tenantMemberToTenantFindFirst) Cursor(cursor TenantMemberCursorParam) tenantMemberToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -260888,11 +285891,11 @@ func (r tenantToWebhookWorkersFindFirst) Cursor(cursor TenantCursorParam) tenant return r } -func (r tenantToWebhookWorkersFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantMemberToTenantFindFirst) Exec(ctx context.Context) ( + *TenantMemberModel, error, ) { - var v *TenantModel + var v *TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260904,11 +285907,11 @@ func (r tenantToWebhookWorkersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWebhookWorkersFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantMemberToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantMember, error, ) { - var v *InnerTenant + var v *InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -260920,23 +285923,23 @@ func (r tenantToWebhookWorkersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantToWebhookWorkersFindMany struct { +type tenantMemberToTenantFindMany struct { query builder.Query } -func (r tenantToWebhookWorkersFindMany) getQuery() builder.Query { +func (r tenantMemberToTenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantToWebhookWorkersFindMany) ExtractQuery() builder.Query { +func (r tenantMemberToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWebhookWorkersFindMany) with() {} -func (r tenantToWebhookWorkersFindMany) tenantModel() {} -func (r tenantToWebhookWorkersFindMany) tenantRelation() {} +func (r tenantMemberToTenantFindMany) with() {} +func (r tenantMemberToTenantFindMany) tenantMemberModel() {} +func (r tenantMemberToTenantFindMany) tenantMemberRelation() {} -func (r tenantToWebhookWorkersFindMany) With(params ...WebhookWorkerRelationWith) tenantToWebhookWorkersFindMany { +func (r tenantMemberToTenantFindMany) With(params ...TenantRelationWith) tenantMemberToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -260949,7 +285952,7 @@ func (r tenantToWebhookWorkersFindMany) With(params ...WebhookWorkerRelationWith return r } -func (r tenantToWebhookWorkersFindMany) Select(params ...tenantPrismaFields) tenantToWebhookWorkersFindMany { +func (r tenantMemberToTenantFindMany) Select(params ...tenantMemberPrismaFields) tenantMemberToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -260963,7 +285966,7 @@ func (r tenantToWebhookWorkersFindMany) Select(params ...tenantPrismaFields) ten return r } -func (r tenantToWebhookWorkersFindMany) Omit(params ...tenantPrismaFields) tenantToWebhookWorkersFindMany { +func (r tenantMemberToTenantFindMany) Omit(params ...tenantMemberPrismaFields) tenantMemberToTenantFindMany { var outputs []builder.Output var raw []string @@ -260971,7 +285974,7 @@ func (r tenantToWebhookWorkersFindMany) Omit(params ...tenantPrismaFields) tenan raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -260982,7 +285985,7 @@ func (r tenantToWebhookWorkersFindMany) Omit(params ...tenantPrismaFields) tenan return r } -func (r tenantToWebhookWorkersFindMany) OrderBy(params ...WebhookWorkerOrderByParam) tenantToWebhookWorkersFindMany { +func (r tenantMemberToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantMemberToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -261002,7 +286005,7 @@ func (r tenantToWebhookWorkersFindMany) OrderBy(params ...WebhookWorkerOrderByPa return r } -func (r tenantToWebhookWorkersFindMany) Skip(count int) tenantToWebhookWorkersFindMany { +func (r tenantMemberToTenantFindMany) Skip(count int) tenantMemberToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -261010,7 +286013,7 @@ func (r tenantToWebhookWorkersFindMany) Skip(count int) tenantToWebhookWorkersFi return r } -func (r tenantToWebhookWorkersFindMany) Take(count int) tenantToWebhookWorkersFindMany { +func (r tenantMemberToTenantFindMany) Take(count int) tenantMemberToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -261018,7 +286021,7 @@ func (r tenantToWebhookWorkersFindMany) Take(count int) tenantToWebhookWorkersFi return r } -func (r tenantToWebhookWorkersFindMany) Cursor(cursor TenantCursorParam) tenantToWebhookWorkersFindMany { +func (r tenantMemberToTenantFindMany) Cursor(cursor TenantMemberCursorParam) tenantMemberToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -261026,11 +286029,11 @@ func (r tenantToWebhookWorkersFindMany) Cursor(cursor TenantCursorParam) tenantT return r } -func (r tenantToWebhookWorkersFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantMemberToTenantFindMany) Exec(ctx context.Context) ( + []TenantMemberModel, error, ) { - var v []TenantModel + var v []TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261038,11 +286041,11 @@ func (r tenantToWebhookWorkersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantToWebhookWorkersFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantMemberToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerTenantMember, error, ) { - var v []InnerTenant + var v []InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261050,14 +286053,14 @@ func (r tenantToWebhookWorkersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantToWebhookWorkersFindMany) Update(params ...TenantSetParam) tenantToWebhookWorkersUpdateMany { +func (r tenantMemberToTenantFindMany) Update(params ...TenantMemberSetParam) tenantMemberToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantMember" r.query.Outputs = countOutput - var v tenantToWebhookWorkersUpdateMany + var v tenantMemberToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -261086,17 +286089,17 @@ func (r tenantToWebhookWorkersFindMany) Update(params ...TenantSetParam) tenantT return v } -type tenantToWebhookWorkersUpdateMany struct { +type tenantMemberToTenantUpdateMany struct { query builder.Query } -func (r tenantToWebhookWorkersUpdateMany) ExtractQuery() builder.Query { +func (r tenantMemberToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantToWebhookWorkersUpdateMany) tenantModel() {} +func (r tenantMemberToTenantUpdateMany) tenantMemberModel() {} -func (r tenantToWebhookWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantMemberToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -261104,36 +286107,36 @@ func (r tenantToWebhookWorkersUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r tenantToWebhookWorkersUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantMemberToTenantUpdateMany) Tx() TenantMemberManyTxResult { + v := newTenantMemberManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantToWebhookWorkersFindMany) Delete() tenantToWebhookWorkersDeleteMany { - var v tenantToWebhookWorkersDeleteMany +func (r tenantMemberToTenantFindMany) Delete() tenantMemberToTenantDeleteMany { + var v tenantMemberToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantMember" v.query.Outputs = countOutput return v } -type tenantToWebhookWorkersDeleteMany struct { +type tenantMemberToTenantDeleteMany struct { query builder.Query } -func (r tenantToWebhookWorkersDeleteMany) ExtractQuery() builder.Query { +func (r tenantMemberToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantToWebhookWorkersDeleteMany) tenantModel() {} +func (p tenantMemberToTenantDeleteMany) tenantMemberModel() {} -func (r tenantToWebhookWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantMemberToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -261141,52 +286144,30 @@ func (r tenantToWebhookWorkersDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r tenantToWebhookWorkersDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantMemberToTenantDeleteMany) Tx() TenantMemberManyTxResult { + v := newTenantMemberManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantFindUnique struct { +type tenantMemberToUserFindUnique struct { query builder.Query } -func (r tenantFindUnique) getQuery() builder.Query { +func (r tenantMemberToUserFindUnique) getQuery() builder.Query { return r.query } -func (r tenantFindUnique) ExtractQuery() builder.Query { +func (r tenantMemberToUserFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantFindUnique) with() {} -func (r tenantFindUnique) tenantModel() {} -func (r tenantFindUnique) tenantRelation() {} - -func (r tenantActions) FindUnique( - params TenantEqualsUniqueWhereParam, -) tenantFindUnique { - var v tenantFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "Tenant" - v.query.Outputs = tenantOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tenantMemberToUserFindUnique) with() {} +func (r tenantMemberToUserFindUnique) tenantMemberModel() {} +func (r tenantMemberToUserFindUnique) tenantMemberRelation() {} -func (r tenantFindUnique) With(params ...TenantRelationWith) tenantFindUnique { +func (r tenantMemberToUserFindUnique) With(params ...UserRelationWith) tenantMemberToUserFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -261199,7 +286180,7 @@ func (r tenantFindUnique) With(params ...TenantRelationWith) tenantFindUnique { return r } -func (r tenantFindUnique) Select(params ...tenantPrismaFields) tenantFindUnique { +func (r tenantMemberToUserFindUnique) Select(params ...tenantMemberPrismaFields) tenantMemberToUserFindUnique { var outputs []builder.Output for _, param := range params { @@ -261213,7 +286194,7 @@ func (r tenantFindUnique) Select(params ...tenantPrismaFields) tenantFindUnique return r } -func (r tenantFindUnique) Omit(params ...tenantPrismaFields) tenantFindUnique { +func (r tenantMemberToUserFindUnique) Omit(params ...tenantMemberPrismaFields) tenantMemberToUserFindUnique { var outputs []builder.Output var raw []string @@ -261221,7 +286202,7 @@ func (r tenantFindUnique) Omit(params ...tenantPrismaFields) tenantFindUnique { raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -261232,11 +286213,11 @@ func (r tenantFindUnique) Omit(params ...tenantPrismaFields) tenantFindUnique { return r } -func (r tenantFindUnique) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantMemberToUserFindUnique) Exec(ctx context.Context) ( + *TenantMemberModel, error, ) { - var v *TenantModel + var v *TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261248,11 +286229,11 @@ func (r tenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantFindUnique) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantMemberToUserFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantMember, error, ) { - var v *InnerTenant + var v *InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261264,12 +286245,12 @@ func (r tenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantFindUnique) Update(params ...TenantSetParam) tenantUpdateUnique { +func (r tenantMemberToUserFindUnique) Update(params ...TenantMemberSetParam) tenantMemberToUserUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Tenant" + r.query.Model = "TenantMember" - var v tenantUpdateUnique + var v tenantMemberToUserUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -261298,120 +286279,83 @@ func (r tenantFindUnique) Update(params ...TenantSetParam) tenantUpdateUnique { return v } -type tenantUpdateUnique struct { +type tenantMemberToUserUpdateUnique struct { query builder.Query } -func (r tenantUpdateUnique) ExtractQuery() builder.Query { +func (r tenantMemberToUserUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantUpdateUnique) tenantModel() {} +func (r tenantMemberToUserUpdateUnique) tenantMemberModel() {} -func (r tenantUpdateUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantMemberToUserUpdateUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { + var v TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantUpdateUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantMemberToUserUpdateUnique) Tx() TenantMemberUniqueTxResult { + v := newTenantMemberUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantFindUnique) Delete() tenantDeleteUnique { - var v tenantDeleteUnique +func (r tenantMemberToUserFindUnique) Delete() tenantMemberToUserDeleteUnique { + var v tenantMemberToUserDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Tenant" + v.query.Model = "TenantMember" return v } -type tenantDeleteUnique struct { +type tenantMemberToUserDeleteUnique struct { query builder.Query } -func (r tenantDeleteUnique) ExtractQuery() builder.Query { +func (r tenantMemberToUserDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantDeleteUnique) tenantModel() {} +func (p tenantMemberToUserDeleteUnique) tenantMemberModel() {} -func (r tenantDeleteUnique) Exec(ctx context.Context) (*TenantModel, error) { - var v TenantModel +func (r tenantMemberToUserDeleteUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { + var v TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantDeleteUnique) Tx() TenantUniqueTxResult { - v := newTenantUniqueTxResult() +func (r tenantMemberToUserDeleteUnique) Tx() TenantMemberUniqueTxResult { + v := newTenantMemberUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantFindFirst struct { +type tenantMemberToUserFindFirst struct { query builder.Query } -func (r tenantFindFirst) getQuery() builder.Query { +func (r tenantMemberToUserFindFirst) getQuery() builder.Query { return r.query } -func (r tenantFindFirst) ExtractQuery() builder.Query { +func (r tenantMemberToUserFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantFindFirst) with() {} -func (r tenantFindFirst) tenantModel() {} -func (r tenantFindFirst) tenantRelation() {} - -func (r tenantActions) FindFirst( - params ...TenantWhereParam, -) tenantFindFirst { - var v tenantFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "Tenant" - v.query.Outputs = tenantOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantMemberToUserFindFirst) with() {} +func (r tenantMemberToUserFindFirst) tenantMemberModel() {} +func (r tenantMemberToUserFindFirst) tenantMemberRelation() {} -func (r tenantFindFirst) With(params ...TenantRelationWith) tenantFindFirst { +func (r tenantMemberToUserFindFirst) With(params ...UserRelationWith) tenantMemberToUserFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -261424,7 +286368,7 @@ func (r tenantFindFirst) With(params ...TenantRelationWith) tenantFindFirst { return r } -func (r tenantFindFirst) Select(params ...tenantPrismaFields) tenantFindFirst { +func (r tenantMemberToUserFindFirst) Select(params ...tenantMemberPrismaFields) tenantMemberToUserFindFirst { var outputs []builder.Output for _, param := range params { @@ -261438,7 +286382,7 @@ func (r tenantFindFirst) Select(params ...tenantPrismaFields) tenantFindFirst { return r } -func (r tenantFindFirst) Omit(params ...tenantPrismaFields) tenantFindFirst { +func (r tenantMemberToUserFindFirst) Omit(params ...tenantMemberPrismaFields) tenantMemberToUserFindFirst { var outputs []builder.Output var raw []string @@ -261446,7 +286390,7 @@ func (r tenantFindFirst) Omit(params ...tenantPrismaFields) tenantFindFirst { raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -261457,7 +286401,7 @@ func (r tenantFindFirst) Omit(params ...tenantPrismaFields) tenantFindFirst { return r } -func (r tenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantFindFirst { +func (r tenantMemberToUserFindFirst) OrderBy(params ...UserOrderByParam) tenantMemberToUserFindFirst { var fields []builder.Field for _, param := range params { @@ -261477,7 +286421,7 @@ func (r tenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantFindFirst { return r } -func (r tenantFindFirst) Skip(count int) tenantFindFirst { +func (r tenantMemberToUserFindFirst) Skip(count int) tenantMemberToUserFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -261485,7 +286429,7 @@ func (r tenantFindFirst) Skip(count int) tenantFindFirst { return r } -func (r tenantFindFirst) Take(count int) tenantFindFirst { +func (r tenantMemberToUserFindFirst) Take(count int) tenantMemberToUserFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -261493,7 +286437,7 @@ func (r tenantFindFirst) Take(count int) tenantFindFirst { return r } -func (r tenantFindFirst) Cursor(cursor TenantCursorParam) tenantFindFirst { +func (r tenantMemberToUserFindFirst) Cursor(cursor TenantMemberCursorParam) tenantMemberToUserFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -261501,11 +286445,11 @@ func (r tenantFindFirst) Cursor(cursor TenantCursorParam) tenantFindFirst { return r } -func (r tenantFindFirst) Exec(ctx context.Context) ( - *TenantModel, +func (r tenantMemberToUserFindFirst) Exec(ctx context.Context) ( + *TenantMemberModel, error, ) { - var v *TenantModel + var v *TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261517,11 +286461,11 @@ func (r tenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantFindFirst) ExecInner(ctx context.Context) ( - *InnerTenant, +func (r tenantMemberToUserFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantMember, error, ) { - var v *InnerTenant + var v *InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261533,60 +286477,23 @@ func (r tenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantFindMany struct { +type tenantMemberToUserFindMany struct { query builder.Query } -func (r tenantFindMany) getQuery() builder.Query { +func (r tenantMemberToUserFindMany) getQuery() builder.Query { return r.query } -func (r tenantFindMany) ExtractQuery() builder.Query { +func (r tenantMemberToUserFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantFindMany) with() {} -func (r tenantFindMany) tenantModel() {} -func (r tenantFindMany) tenantRelation() {} - -func (r tenantActions) FindMany( - params ...TenantWhereParam, -) tenantFindMany { - var v tenantFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "Tenant" - v.query.Outputs = tenantOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tenantMemberToUserFindMany) with() {} +func (r tenantMemberToUserFindMany) tenantMemberModel() {} +func (r tenantMemberToUserFindMany) tenantMemberRelation() {} -func (r tenantFindMany) With(params ...TenantRelationWith) tenantFindMany { +func (r tenantMemberToUserFindMany) With(params ...UserRelationWith) tenantMemberToUserFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -261599,7 +286506,7 @@ func (r tenantFindMany) With(params ...TenantRelationWith) tenantFindMany { return r } -func (r tenantFindMany) Select(params ...tenantPrismaFields) tenantFindMany { +func (r tenantMemberToUserFindMany) Select(params ...tenantMemberPrismaFields) tenantMemberToUserFindMany { var outputs []builder.Output for _, param := range params { @@ -261613,7 +286520,7 @@ func (r tenantFindMany) Select(params ...tenantPrismaFields) tenantFindMany { return r } -func (r tenantFindMany) Omit(params ...tenantPrismaFields) tenantFindMany { +func (r tenantMemberToUserFindMany) Omit(params ...tenantMemberPrismaFields) tenantMemberToUserFindMany { var outputs []builder.Output var raw []string @@ -261621,7 +286528,7 @@ func (r tenantFindMany) Omit(params ...tenantPrismaFields) tenantFindMany { raw = append(raw, string(param)) } - for _, output := range tenantOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -261632,7 +286539,7 @@ func (r tenantFindMany) Omit(params ...tenantPrismaFields) tenantFindMany { return r } -func (r tenantFindMany) OrderBy(params ...TenantOrderByParam) tenantFindMany { +func (r tenantMemberToUserFindMany) OrderBy(params ...UserOrderByParam) tenantMemberToUserFindMany { var fields []builder.Field for _, param := range params { @@ -261652,7 +286559,7 @@ func (r tenantFindMany) OrderBy(params ...TenantOrderByParam) tenantFindMany { return r } -func (r tenantFindMany) Skip(count int) tenantFindMany { +func (r tenantMemberToUserFindMany) Skip(count int) tenantMemberToUserFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -261660,7 +286567,7 @@ func (r tenantFindMany) Skip(count int) tenantFindMany { return r } -func (r tenantFindMany) Take(count int) tenantFindMany { +func (r tenantMemberToUserFindMany) Take(count int) tenantMemberToUserFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -261668,7 +286575,7 @@ func (r tenantFindMany) Take(count int) tenantFindMany { return r } -func (r tenantFindMany) Cursor(cursor TenantCursorParam) tenantFindMany { +func (r tenantMemberToUserFindMany) Cursor(cursor TenantMemberCursorParam) tenantMemberToUserFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -261676,11 +286583,11 @@ func (r tenantFindMany) Cursor(cursor TenantCursorParam) tenantFindMany { return r } -func (r tenantFindMany) Exec(ctx context.Context) ( - []TenantModel, +func (r tenantMemberToUserFindMany) Exec(ctx context.Context) ( + []TenantMemberModel, error, ) { - var v []TenantModel + var v []TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261688,11 +286595,11 @@ func (r tenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantFindMany) ExecInner(ctx context.Context) ( - []InnerTenant, +func (r tenantMemberToUserFindMany) ExecInner(ctx context.Context) ( + []InnerTenantMember, error, ) { - var v []InnerTenant + var v []InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261700,14 +286607,14 @@ func (r tenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantFindMany) Update(params ...TenantSetParam) tenantUpdateMany { +func (r tenantMemberToUserFindMany) Update(params ...TenantMemberSetParam) tenantMemberToUserUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Tenant" + r.query.Model = "TenantMember" r.query.Outputs = countOutput - var v tenantUpdateMany + var v tenantMemberToUserUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -261736,17 +286643,17 @@ func (r tenantFindMany) Update(params ...TenantSetParam) tenantUpdateMany { return v } -type tenantUpdateMany struct { +type tenantMemberToUserUpdateMany struct { query builder.Query } -func (r tenantUpdateMany) ExtractQuery() builder.Query { +func (r tenantMemberToUserUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantUpdateMany) tenantModel() {} +func (r tenantMemberToUserUpdateMany) tenantMemberModel() {} -func (r tenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantMemberToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -261754,36 +286661,36 @@ func (r tenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r tenantUpdateMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantMemberToUserUpdateMany) Tx() TenantMemberManyTxResult { + v := newTenantMemberManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantFindMany) Delete() tenantDeleteMany { - var v tenantDeleteMany +func (r tenantMemberToUserFindMany) Delete() tenantMemberToUserDeleteMany { + var v tenantMemberToUserDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Tenant" + v.query.Model = "TenantMember" v.query.Outputs = countOutput return v } -type tenantDeleteMany struct { +type tenantMemberToUserDeleteMany struct { query builder.Query } -func (r tenantDeleteMany) ExtractQuery() builder.Query { +func (r tenantMemberToUserDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantDeleteMany) tenantModel() {} +func (p tenantMemberToUserDeleteMany) tenantMemberModel() {} -func (r tenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantMemberToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -261791,30 +286698,52 @@ func (r tenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r tenantDeleteMany) Tx() TenantManyTxResult { - v := newTenantManyTxResult() +func (r tenantMemberToUserDeleteMany) Tx() TenantMemberManyTxResult { + v := newTenantMemberManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitToTenantFindUnique struct { +type tenantMemberFindUnique struct { query builder.Query } -func (r tenantResourceLimitToTenantFindUnique) getQuery() builder.Query { +func (r tenantMemberFindUnique) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitToTenantFindUnique) ExtractQuery() builder.Query { +func (r tenantMemberFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToTenantFindUnique) with() {} -func (r tenantResourceLimitToTenantFindUnique) tenantResourceLimitModel() {} -func (r tenantResourceLimitToTenantFindUnique) tenantResourceLimitRelation() {} +func (r tenantMemberFindUnique) with() {} +func (r tenantMemberFindUnique) tenantMemberModel() {} +func (r tenantMemberFindUnique) tenantMemberRelation() {} -func (r tenantResourceLimitToTenantFindUnique) With(params ...TenantRelationWith) tenantResourceLimitToTenantFindUnique { +func (r tenantMemberActions) FindUnique( + params TenantMemberEqualsUniqueWhereParam, +) tenantMemberFindUnique { + var v tenantMemberFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "TenantMember" + v.query.Outputs = tenantMemberOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r tenantMemberFindUnique) With(params ...TenantMemberRelationWith) tenantMemberFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -261827,7 +286756,7 @@ func (r tenantResourceLimitToTenantFindUnique) With(params ...TenantRelationWith return r } -func (r tenantResourceLimitToTenantFindUnique) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindUnique { +func (r tenantMemberFindUnique) Select(params ...tenantMemberPrismaFields) tenantMemberFindUnique { var outputs []builder.Output for _, param := range params { @@ -261841,7 +286770,7 @@ func (r tenantResourceLimitToTenantFindUnique) Select(params ...tenantResourceLi return r } -func (r tenantResourceLimitToTenantFindUnique) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindUnique { +func (r tenantMemberFindUnique) Omit(params ...tenantMemberPrismaFields) tenantMemberFindUnique { var outputs []builder.Output var raw []string @@ -261849,7 +286778,7 @@ func (r tenantResourceLimitToTenantFindUnique) Omit(params ...tenantResourceLimi raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -261860,11 +286789,11 @@ func (r tenantResourceLimitToTenantFindUnique) Omit(params ...tenantResourceLimi return r } -func (r tenantResourceLimitToTenantFindUnique) Exec(ctx context.Context) ( - *TenantResourceLimitModel, +func (r tenantMemberFindUnique) Exec(ctx context.Context) ( + *TenantMemberModel, error, ) { - var v *TenantResourceLimitModel + var v *TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261876,11 +286805,11 @@ func (r tenantResourceLimitToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimit, +func (r tenantMemberFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantMember, error, ) { - var v *InnerTenantResourceLimit + var v *InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -261892,12 +286821,12 @@ func (r tenantResourceLimitToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToTenantFindUnique) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitToTenantUpdateUnique { +func (r tenantMemberFindUnique) Update(params ...TenantMemberSetParam) tenantMemberUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantResourceLimit" + r.query.Model = "TenantMember" - var v tenantResourceLimitToTenantUpdateUnique + var v tenantMemberUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -261926,83 +286855,120 @@ func (r tenantResourceLimitToTenantFindUnique) Update(params ...TenantResourceLi return v } -type tenantResourceLimitToTenantUpdateUnique struct { +type tenantMemberUpdateUnique struct { query builder.Query } -func (r tenantResourceLimitToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r tenantMemberUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToTenantUpdateUnique) tenantResourceLimitModel() {} +func (r tenantMemberUpdateUnique) tenantMemberModel() {} -func (r tenantResourceLimitToTenantUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { - var v TenantResourceLimitModel +func (r tenantMemberUpdateUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { + var v TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitToTenantUpdateUnique) Tx() TenantResourceLimitUniqueTxResult { - v := newTenantResourceLimitUniqueTxResult() +func (r tenantMemberUpdateUnique) Tx() TenantMemberUniqueTxResult { + v := newTenantMemberUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitToTenantFindUnique) Delete() tenantResourceLimitToTenantDeleteUnique { - var v tenantResourceLimitToTenantDeleteUnique +func (r tenantMemberFindUnique) Delete() tenantMemberDeleteUnique { + var v tenantMemberDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantResourceLimit" + v.query.Model = "TenantMember" return v } -type tenantResourceLimitToTenantDeleteUnique struct { +type tenantMemberDeleteUnique struct { query builder.Query } -func (r tenantResourceLimitToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r tenantMemberDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitToTenantDeleteUnique) tenantResourceLimitModel() {} +func (p tenantMemberDeleteUnique) tenantMemberModel() {} -func (r tenantResourceLimitToTenantDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { - var v TenantResourceLimitModel +func (r tenantMemberDeleteUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { + var v TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitToTenantDeleteUnique) Tx() TenantResourceLimitUniqueTxResult { - v := newTenantResourceLimitUniqueTxResult() +func (r tenantMemberDeleteUnique) Tx() TenantMemberUniqueTxResult { + v := newTenantMemberUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitToTenantFindFirst struct { +type tenantMemberFindFirst struct { query builder.Query } -func (r tenantResourceLimitToTenantFindFirst) getQuery() builder.Query { +func (r tenantMemberFindFirst) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitToTenantFindFirst) ExtractQuery() builder.Query { +func (r tenantMemberFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToTenantFindFirst) with() {} -func (r tenantResourceLimitToTenantFindFirst) tenantResourceLimitModel() {} -func (r tenantResourceLimitToTenantFindFirst) tenantResourceLimitRelation() {} +func (r tenantMemberFindFirst) with() {} +func (r tenantMemberFindFirst) tenantMemberModel() {} +func (r tenantMemberFindFirst) tenantMemberRelation() {} -func (r tenantResourceLimitToTenantFindFirst) With(params ...TenantRelationWith) tenantResourceLimitToTenantFindFirst { +func (r tenantMemberActions) FindFirst( + params ...TenantMemberWhereParam, +) tenantMemberFindFirst { + var v tenantMemberFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "TenantMember" + v.query.Outputs = tenantMemberOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantMemberFindFirst) With(params ...TenantMemberRelationWith) tenantMemberFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -262015,7 +286981,7 @@ func (r tenantResourceLimitToTenantFindFirst) With(params ...TenantRelationWith) return r } -func (r tenantResourceLimitToTenantFindFirst) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindFirst { +func (r tenantMemberFindFirst) Select(params ...tenantMemberPrismaFields) tenantMemberFindFirst { var outputs []builder.Output for _, param := range params { @@ -262029,7 +286995,7 @@ func (r tenantResourceLimitToTenantFindFirst) Select(params ...tenantResourceLim return r } -func (r tenantResourceLimitToTenantFindFirst) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindFirst { +func (r tenantMemberFindFirst) Omit(params ...tenantMemberPrismaFields) tenantMemberFindFirst { var outputs []builder.Output var raw []string @@ -262037,7 +287003,7 @@ func (r tenantResourceLimitToTenantFindFirst) Omit(params ...tenantResourceLimit raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -262048,7 +287014,7 @@ func (r tenantResourceLimitToTenantFindFirst) Omit(params ...tenantResourceLimit return r } -func (r tenantResourceLimitToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantResourceLimitToTenantFindFirst { +func (r tenantMemberFindFirst) OrderBy(params ...TenantMemberOrderByParam) tenantMemberFindFirst { var fields []builder.Field for _, param := range params { @@ -262068,7 +287034,7 @@ func (r tenantResourceLimitToTenantFindFirst) OrderBy(params ...TenantOrderByPar return r } -func (r tenantResourceLimitToTenantFindFirst) Skip(count int) tenantResourceLimitToTenantFindFirst { +func (r tenantMemberFindFirst) Skip(count int) tenantMemberFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -262076,7 +287042,7 @@ func (r tenantResourceLimitToTenantFindFirst) Skip(count int) tenantResourceLimi return r } -func (r tenantResourceLimitToTenantFindFirst) Take(count int) tenantResourceLimitToTenantFindFirst { +func (r tenantMemberFindFirst) Take(count int) tenantMemberFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -262084,7 +287050,7 @@ func (r tenantResourceLimitToTenantFindFirst) Take(count int) tenantResourceLimi return r } -func (r tenantResourceLimitToTenantFindFirst) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitToTenantFindFirst { +func (r tenantMemberFindFirst) Cursor(cursor TenantMemberCursorParam) tenantMemberFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -262092,11 +287058,11 @@ func (r tenantResourceLimitToTenantFindFirst) Cursor(cursor TenantResourceLimitC return r } -func (r tenantResourceLimitToTenantFindFirst) Exec(ctx context.Context) ( - *TenantResourceLimitModel, +func (r tenantMemberFindFirst) Exec(ctx context.Context) ( + *TenantMemberModel, error, ) { - var v *TenantResourceLimitModel + var v *TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262108,11 +287074,11 @@ func (r tenantResourceLimitToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimit, +func (r tenantMemberFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantMember, error, ) { - var v *InnerTenantResourceLimit + var v *InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262124,23 +287090,60 @@ func (r tenantResourceLimitToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantResourceLimitToTenantFindMany struct { +type tenantMemberFindMany struct { query builder.Query } -func (r tenantResourceLimitToTenantFindMany) getQuery() builder.Query { +func (r tenantMemberFindMany) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitToTenantFindMany) ExtractQuery() builder.Query { +func (r tenantMemberFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToTenantFindMany) with() {} -func (r tenantResourceLimitToTenantFindMany) tenantResourceLimitModel() {} -func (r tenantResourceLimitToTenantFindMany) tenantResourceLimitRelation() {} +func (r tenantMemberFindMany) with() {} +func (r tenantMemberFindMany) tenantMemberModel() {} +func (r tenantMemberFindMany) tenantMemberRelation() {} -func (r tenantResourceLimitToTenantFindMany) With(params ...TenantRelationWith) tenantResourceLimitToTenantFindMany { +func (r tenantMemberActions) FindMany( + params ...TenantMemberWhereParam, +) tenantMemberFindMany { + var v tenantMemberFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "TenantMember" + v.query.Outputs = tenantMemberOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tenantMemberFindMany) With(params ...TenantMemberRelationWith) tenantMemberFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -262153,7 +287156,7 @@ func (r tenantResourceLimitToTenantFindMany) With(params ...TenantRelationWith) return r } -func (r tenantResourceLimitToTenantFindMany) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindMany { +func (r tenantMemberFindMany) Select(params ...tenantMemberPrismaFields) tenantMemberFindMany { var outputs []builder.Output for _, param := range params { @@ -262167,7 +287170,7 @@ func (r tenantResourceLimitToTenantFindMany) Select(params ...tenantResourceLimi return r } -func (r tenantResourceLimitToTenantFindMany) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToTenantFindMany { +func (r tenantMemberFindMany) Omit(params ...tenantMemberPrismaFields) tenantMemberFindMany { var outputs []builder.Output var raw []string @@ -262175,7 +287178,7 @@ func (r tenantResourceLimitToTenantFindMany) Omit(params ...tenantResourceLimitP raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantMemberOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -262186,7 +287189,7 @@ func (r tenantResourceLimitToTenantFindMany) Omit(params ...tenantResourceLimitP return r } -func (r tenantResourceLimitToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantResourceLimitToTenantFindMany { +func (r tenantMemberFindMany) OrderBy(params ...TenantMemberOrderByParam) tenantMemberFindMany { var fields []builder.Field for _, param := range params { @@ -262206,7 +287209,7 @@ func (r tenantResourceLimitToTenantFindMany) OrderBy(params ...TenantOrderByPara return r } -func (r tenantResourceLimitToTenantFindMany) Skip(count int) tenantResourceLimitToTenantFindMany { +func (r tenantMemberFindMany) Skip(count int) tenantMemberFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -262214,7 +287217,7 @@ func (r tenantResourceLimitToTenantFindMany) Skip(count int) tenantResourceLimit return r } -func (r tenantResourceLimitToTenantFindMany) Take(count int) tenantResourceLimitToTenantFindMany { +func (r tenantMemberFindMany) Take(count int) tenantMemberFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -262222,7 +287225,7 @@ func (r tenantResourceLimitToTenantFindMany) Take(count int) tenantResourceLimit return r } -func (r tenantResourceLimitToTenantFindMany) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitToTenantFindMany { +func (r tenantMemberFindMany) Cursor(cursor TenantMemberCursorParam) tenantMemberFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -262230,11 +287233,11 @@ func (r tenantResourceLimitToTenantFindMany) Cursor(cursor TenantResourceLimitCu return r } -func (r tenantResourceLimitToTenantFindMany) Exec(ctx context.Context) ( - []TenantResourceLimitModel, +func (r tenantMemberFindMany) Exec(ctx context.Context) ( + []TenantMemberModel, error, ) { - var v []TenantResourceLimitModel + var v []TenantMemberModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262242,11 +287245,11 @@ func (r tenantResourceLimitToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerTenantResourceLimit, +func (r tenantMemberFindMany) ExecInner(ctx context.Context) ( + []InnerTenantMember, error, ) { - var v []InnerTenantResourceLimit + var v []InnerTenantMember if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262254,14 +287257,14 @@ func (r tenantResourceLimitToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToTenantFindMany) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitToTenantUpdateMany { +func (r tenantMemberFindMany) Update(params ...TenantMemberSetParam) tenantMemberUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantResourceLimit" + r.query.Model = "TenantMember" r.query.Outputs = countOutput - var v tenantResourceLimitToTenantUpdateMany + var v tenantMemberUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -262290,17 +287293,17 @@ func (r tenantResourceLimitToTenantFindMany) Update(params ...TenantResourceLimi return v } -type tenantResourceLimitToTenantUpdateMany struct { +type tenantMemberUpdateMany struct { query builder.Query } -func (r tenantResourceLimitToTenantUpdateMany) ExtractQuery() builder.Query { +func (r tenantMemberUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToTenantUpdateMany) tenantResourceLimitModel() {} +func (r tenantMemberUpdateMany) tenantMemberModel() {} -func (r tenantResourceLimitToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantMemberUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -262308,36 +287311,36 @@ func (r tenantResourceLimitToTenantUpdateMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r tenantResourceLimitToTenantUpdateMany) Tx() TenantResourceLimitManyTxResult { - v := newTenantResourceLimitManyTxResult() +func (r tenantMemberUpdateMany) Tx() TenantMemberManyTxResult { + v := newTenantMemberManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitToTenantFindMany) Delete() tenantResourceLimitToTenantDeleteMany { - var v tenantResourceLimitToTenantDeleteMany +func (r tenantMemberFindMany) Delete() tenantMemberDeleteMany { + var v tenantMemberDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantResourceLimit" + v.query.Model = "TenantMember" v.query.Outputs = countOutput return v } -type tenantResourceLimitToTenantDeleteMany struct { +type tenantMemberDeleteMany struct { query builder.Query } -func (r tenantResourceLimitToTenantDeleteMany) ExtractQuery() builder.Query { +func (r tenantMemberDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitToTenantDeleteMany) tenantResourceLimitModel() {} +func (p tenantMemberDeleteMany) tenantMemberModel() {} -func (r tenantResourceLimitToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantMemberDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -262345,30 +287348,30 @@ func (r tenantResourceLimitToTenantDeleteMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r tenantResourceLimitToTenantDeleteMany) Tx() TenantResourceLimitManyTxResult { - v := newTenantResourceLimitManyTxResult() +func (r tenantMemberDeleteMany) Tx() TenantMemberManyTxResult { + v := newTenantMemberManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitToAlertsFindUnique struct { +type tenantInviteLinkToTenantFindUnique struct { query builder.Query } -func (r tenantResourceLimitToAlertsFindUnique) getQuery() builder.Query { +func (r tenantInviteLinkToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitToAlertsFindUnique) ExtractQuery() builder.Query { +func (r tenantInviteLinkToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToAlertsFindUnique) with() {} -func (r tenantResourceLimitToAlertsFindUnique) tenantResourceLimitModel() {} -func (r tenantResourceLimitToAlertsFindUnique) tenantResourceLimitRelation() {} +func (r tenantInviteLinkToTenantFindUnique) with() {} +func (r tenantInviteLinkToTenantFindUnique) tenantInviteLinkModel() {} +func (r tenantInviteLinkToTenantFindUnique) tenantInviteLinkRelation() {} -func (r tenantResourceLimitToAlertsFindUnique) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitToAlertsFindUnique { +func (r tenantInviteLinkToTenantFindUnique) With(params ...TenantRelationWith) tenantInviteLinkToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -262381,7 +287384,7 @@ func (r tenantResourceLimitToAlertsFindUnique) With(params ...TenantResourceLimi return r } -func (r tenantResourceLimitToAlertsFindUnique) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindUnique { +func (r tenantInviteLinkToTenantFindUnique) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -262395,7 +287398,7 @@ func (r tenantResourceLimitToAlertsFindUnique) Select(params ...tenantResourceLi return r } -func (r tenantResourceLimitToAlertsFindUnique) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindUnique { +func (r tenantInviteLinkToTenantFindUnique) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindUnique { var outputs []builder.Output var raw []string @@ -262403,7 +287406,7 @@ func (r tenantResourceLimitToAlertsFindUnique) Omit(params ...tenantResourceLimi raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantInviteLinkOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -262414,11 +287417,11 @@ func (r tenantResourceLimitToAlertsFindUnique) Omit(params ...tenantResourceLimi return r } -func (r tenantResourceLimitToAlertsFindUnique) Exec(ctx context.Context) ( - *TenantResourceLimitModel, +func (r tenantInviteLinkToTenantFindUnique) Exec(ctx context.Context) ( + *TenantInviteLinkModel, error, ) { - var v *TenantResourceLimitModel + var v *TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262430,11 +287433,11 @@ func (r tenantResourceLimitToAlertsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToAlertsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimit, +func (r tenantInviteLinkToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantInviteLink, error, ) { - var v *InnerTenantResourceLimit + var v *InnerTenantInviteLink if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262446,12 +287449,12 @@ func (r tenantResourceLimitToAlertsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToAlertsFindUnique) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitToAlertsUpdateUnique { +func (r tenantInviteLinkToTenantFindUnique) Update(params ...TenantInviteLinkSetParam) tenantInviteLinkToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantResourceLimit" + r.query.Model = "TenantInviteLink" - var v tenantResourceLimitToAlertsUpdateUnique + var v tenantInviteLinkToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -262480,83 +287483,83 @@ func (r tenantResourceLimitToAlertsFindUnique) Update(params ...TenantResourceLi return v } -type tenantResourceLimitToAlertsUpdateUnique struct { +type tenantInviteLinkToTenantUpdateUnique struct { query builder.Query } -func (r tenantResourceLimitToAlertsUpdateUnique) ExtractQuery() builder.Query { +func (r tenantInviteLinkToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToAlertsUpdateUnique) tenantResourceLimitModel() {} +func (r tenantInviteLinkToTenantUpdateUnique) tenantInviteLinkModel() {} -func (r tenantResourceLimitToAlertsUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { - var v TenantResourceLimitModel +func (r tenantInviteLinkToTenantUpdateUnique) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { + var v TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitToAlertsUpdateUnique) Tx() TenantResourceLimitUniqueTxResult { - v := newTenantResourceLimitUniqueTxResult() +func (r tenantInviteLinkToTenantUpdateUnique) Tx() TenantInviteLinkUniqueTxResult { + v := newTenantInviteLinkUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitToAlertsFindUnique) Delete() tenantResourceLimitToAlertsDeleteUnique { - var v tenantResourceLimitToAlertsDeleteUnique +func (r tenantInviteLinkToTenantFindUnique) Delete() tenantInviteLinkToTenantDeleteUnique { + var v tenantInviteLinkToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantResourceLimit" + v.query.Model = "TenantInviteLink" return v } -type tenantResourceLimitToAlertsDeleteUnique struct { +type tenantInviteLinkToTenantDeleteUnique struct { query builder.Query } -func (r tenantResourceLimitToAlertsDeleteUnique) ExtractQuery() builder.Query { +func (r tenantInviteLinkToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitToAlertsDeleteUnique) tenantResourceLimitModel() {} +func (p tenantInviteLinkToTenantDeleteUnique) tenantInviteLinkModel() {} -func (r tenantResourceLimitToAlertsDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { - var v TenantResourceLimitModel +func (r tenantInviteLinkToTenantDeleteUnique) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { + var v TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitToAlertsDeleteUnique) Tx() TenantResourceLimitUniqueTxResult { - v := newTenantResourceLimitUniqueTxResult() +func (r tenantInviteLinkToTenantDeleteUnique) Tx() TenantInviteLinkUniqueTxResult { + v := newTenantInviteLinkUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitToAlertsFindFirst struct { +type tenantInviteLinkToTenantFindFirst struct { query builder.Query } -func (r tenantResourceLimitToAlertsFindFirst) getQuery() builder.Query { +func (r tenantInviteLinkToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitToAlertsFindFirst) ExtractQuery() builder.Query { +func (r tenantInviteLinkToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToAlertsFindFirst) with() {} -func (r tenantResourceLimitToAlertsFindFirst) tenantResourceLimitModel() {} -func (r tenantResourceLimitToAlertsFindFirst) tenantResourceLimitRelation() {} +func (r tenantInviteLinkToTenantFindFirst) with() {} +func (r tenantInviteLinkToTenantFindFirst) tenantInviteLinkModel() {} +func (r tenantInviteLinkToTenantFindFirst) tenantInviteLinkRelation() {} -func (r tenantResourceLimitToAlertsFindFirst) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitToAlertsFindFirst { +func (r tenantInviteLinkToTenantFindFirst) With(params ...TenantRelationWith) tenantInviteLinkToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -262569,7 +287572,7 @@ func (r tenantResourceLimitToAlertsFindFirst) With(params ...TenantResourceLimit return r } -func (r tenantResourceLimitToAlertsFindFirst) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindFirst { +func (r tenantInviteLinkToTenantFindFirst) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -262583,7 +287586,7 @@ func (r tenantResourceLimitToAlertsFindFirst) Select(params ...tenantResourceLim return r } -func (r tenantResourceLimitToAlertsFindFirst) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindFirst { +func (r tenantInviteLinkToTenantFindFirst) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindFirst { var outputs []builder.Output var raw []string @@ -262591,7 +287594,7 @@ func (r tenantResourceLimitToAlertsFindFirst) Omit(params ...tenantResourceLimit raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantInviteLinkOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -262602,7 +287605,7 @@ func (r tenantResourceLimitToAlertsFindFirst) Omit(params ...tenantResourceLimit return r } -func (r tenantResourceLimitToAlertsFindFirst) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantResourceLimitToAlertsFindFirst { +func (r tenantInviteLinkToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantInviteLinkToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -262622,7 +287625,7 @@ func (r tenantResourceLimitToAlertsFindFirst) OrderBy(params ...TenantResourceLi return r } -func (r tenantResourceLimitToAlertsFindFirst) Skip(count int) tenantResourceLimitToAlertsFindFirst { +func (r tenantInviteLinkToTenantFindFirst) Skip(count int) tenantInviteLinkToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -262630,7 +287633,7 @@ func (r tenantResourceLimitToAlertsFindFirst) Skip(count int) tenantResourceLimi return r } -func (r tenantResourceLimitToAlertsFindFirst) Take(count int) tenantResourceLimitToAlertsFindFirst { +func (r tenantInviteLinkToTenantFindFirst) Take(count int) tenantInviteLinkToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -262638,7 +287641,7 @@ func (r tenantResourceLimitToAlertsFindFirst) Take(count int) tenantResourceLimi return r } -func (r tenantResourceLimitToAlertsFindFirst) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitToAlertsFindFirst { +func (r tenantInviteLinkToTenantFindFirst) Cursor(cursor TenantInviteLinkCursorParam) tenantInviteLinkToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -262646,11 +287649,11 @@ func (r tenantResourceLimitToAlertsFindFirst) Cursor(cursor TenantResourceLimitC return r } -func (r tenantResourceLimitToAlertsFindFirst) Exec(ctx context.Context) ( - *TenantResourceLimitModel, +func (r tenantInviteLinkToTenantFindFirst) Exec(ctx context.Context) ( + *TenantInviteLinkModel, error, ) { - var v *TenantResourceLimitModel + var v *TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262662,11 +287665,11 @@ func (r tenantResourceLimitToAlertsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToAlertsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimit, +func (r tenantInviteLinkToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantInviteLink, error, ) { - var v *InnerTenantResourceLimit + var v *InnerTenantInviteLink if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262678,23 +287681,23 @@ func (r tenantResourceLimitToAlertsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantResourceLimitToAlertsFindMany struct { +type tenantInviteLinkToTenantFindMany struct { query builder.Query } -func (r tenantResourceLimitToAlertsFindMany) getQuery() builder.Query { +func (r tenantInviteLinkToTenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitToAlertsFindMany) ExtractQuery() builder.Query { +func (r tenantInviteLinkToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToAlertsFindMany) with() {} -func (r tenantResourceLimitToAlertsFindMany) tenantResourceLimitModel() {} -func (r tenantResourceLimitToAlertsFindMany) tenantResourceLimitRelation() {} +func (r tenantInviteLinkToTenantFindMany) with() {} +func (r tenantInviteLinkToTenantFindMany) tenantInviteLinkModel() {} +func (r tenantInviteLinkToTenantFindMany) tenantInviteLinkRelation() {} -func (r tenantResourceLimitToAlertsFindMany) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitToAlertsFindMany { +func (r tenantInviteLinkToTenantFindMany) With(params ...TenantRelationWith) tenantInviteLinkToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -262707,7 +287710,7 @@ func (r tenantResourceLimitToAlertsFindMany) With(params ...TenantResourceLimitA return r } -func (r tenantResourceLimitToAlertsFindMany) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindMany { +func (r tenantInviteLinkToTenantFindMany) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -262721,7 +287724,7 @@ func (r tenantResourceLimitToAlertsFindMany) Select(params ...tenantResourceLimi return r } -func (r tenantResourceLimitToAlertsFindMany) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitToAlertsFindMany { +func (r tenantInviteLinkToTenantFindMany) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindMany { var outputs []builder.Output var raw []string @@ -262729,7 +287732,7 @@ func (r tenantResourceLimitToAlertsFindMany) Omit(params ...tenantResourceLimitP raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantInviteLinkOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -262740,7 +287743,7 @@ func (r tenantResourceLimitToAlertsFindMany) Omit(params ...tenantResourceLimitP return r } -func (r tenantResourceLimitToAlertsFindMany) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantResourceLimitToAlertsFindMany { +func (r tenantInviteLinkToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantInviteLinkToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -262760,7 +287763,7 @@ func (r tenantResourceLimitToAlertsFindMany) OrderBy(params ...TenantResourceLim return r } -func (r tenantResourceLimitToAlertsFindMany) Skip(count int) tenantResourceLimitToAlertsFindMany { +func (r tenantInviteLinkToTenantFindMany) Skip(count int) tenantInviteLinkToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -262768,7 +287771,7 @@ func (r tenantResourceLimitToAlertsFindMany) Skip(count int) tenantResourceLimit return r } -func (r tenantResourceLimitToAlertsFindMany) Take(count int) tenantResourceLimitToAlertsFindMany { +func (r tenantInviteLinkToTenantFindMany) Take(count int) tenantInviteLinkToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -262776,7 +287779,7 @@ func (r tenantResourceLimitToAlertsFindMany) Take(count int) tenantResourceLimit return r } -func (r tenantResourceLimitToAlertsFindMany) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitToAlertsFindMany { +func (r tenantInviteLinkToTenantFindMany) Cursor(cursor TenantInviteLinkCursorParam) tenantInviteLinkToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -262784,11 +287787,11 @@ func (r tenantResourceLimitToAlertsFindMany) Cursor(cursor TenantResourceLimitCu return r } -func (r tenantResourceLimitToAlertsFindMany) Exec(ctx context.Context) ( - []TenantResourceLimitModel, +func (r tenantInviteLinkToTenantFindMany) Exec(ctx context.Context) ( + []TenantInviteLinkModel, error, ) { - var v []TenantResourceLimitModel + var v []TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262796,11 +287799,11 @@ func (r tenantResourceLimitToAlertsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToAlertsFindMany) ExecInner(ctx context.Context) ( - []InnerTenantResourceLimit, +func (r tenantInviteLinkToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerTenantInviteLink, error, ) { - var v []InnerTenantResourceLimit + var v []InnerTenantInviteLink if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -262808,14 +287811,14 @@ func (r tenantResourceLimitToAlertsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitToAlertsFindMany) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitToAlertsUpdateMany { +func (r tenantInviteLinkToTenantFindMany) Update(params ...TenantInviteLinkSetParam) tenantInviteLinkToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantResourceLimit" + r.query.Model = "TenantInviteLink" r.query.Outputs = countOutput - var v tenantResourceLimitToAlertsUpdateMany + var v tenantInviteLinkToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -262844,17 +287847,17 @@ func (r tenantResourceLimitToAlertsFindMany) Update(params ...TenantResourceLimi return v } -type tenantResourceLimitToAlertsUpdateMany struct { +type tenantInviteLinkToTenantUpdateMany struct { query builder.Query } -func (r tenantResourceLimitToAlertsUpdateMany) ExtractQuery() builder.Query { +func (r tenantInviteLinkToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitToAlertsUpdateMany) tenantResourceLimitModel() {} +func (r tenantInviteLinkToTenantUpdateMany) tenantInviteLinkModel() {} -func (r tenantResourceLimitToAlertsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantInviteLinkToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -262862,36 +287865,36 @@ func (r tenantResourceLimitToAlertsUpdateMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r tenantResourceLimitToAlertsUpdateMany) Tx() TenantResourceLimitManyTxResult { - v := newTenantResourceLimitManyTxResult() +func (r tenantInviteLinkToTenantUpdateMany) Tx() TenantInviteLinkManyTxResult { + v := newTenantInviteLinkManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitToAlertsFindMany) Delete() tenantResourceLimitToAlertsDeleteMany { - var v tenantResourceLimitToAlertsDeleteMany +func (r tenantInviteLinkToTenantFindMany) Delete() tenantInviteLinkToTenantDeleteMany { + var v tenantInviteLinkToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantResourceLimit" + v.query.Model = "TenantInviteLink" v.query.Outputs = countOutput return v } -type tenantResourceLimitToAlertsDeleteMany struct { +type tenantInviteLinkToTenantDeleteMany struct { query builder.Query } -func (r tenantResourceLimitToAlertsDeleteMany) ExtractQuery() builder.Query { +func (r tenantInviteLinkToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitToAlertsDeleteMany) tenantResourceLimitModel() {} +func (p tenantInviteLinkToTenantDeleteMany) tenantInviteLinkModel() {} -func (r tenantResourceLimitToAlertsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantInviteLinkToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -262899,33 +287902,33 @@ func (r tenantResourceLimitToAlertsDeleteMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r tenantResourceLimitToAlertsDeleteMany) Tx() TenantResourceLimitManyTxResult { - v := newTenantResourceLimitManyTxResult() +func (r tenantInviteLinkToTenantDeleteMany) Tx() TenantInviteLinkManyTxResult { + v := newTenantInviteLinkManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitFindUnique struct { +type tenantInviteLinkFindUnique struct { query builder.Query } -func (r tenantResourceLimitFindUnique) getQuery() builder.Query { +func (r tenantInviteLinkFindUnique) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitFindUnique) ExtractQuery() builder.Query { +func (r tenantInviteLinkFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitFindUnique) with() {} -func (r tenantResourceLimitFindUnique) tenantResourceLimitModel() {} -func (r tenantResourceLimitFindUnique) tenantResourceLimitRelation() {} +func (r tenantInviteLinkFindUnique) with() {} +func (r tenantInviteLinkFindUnique) tenantInviteLinkModel() {} +func (r tenantInviteLinkFindUnique) tenantInviteLinkRelation() {} -func (r tenantResourceLimitActions) FindUnique( - params TenantResourceLimitEqualsUniqueWhereParam, -) tenantResourceLimitFindUnique { - var v tenantResourceLimitFindUnique +func (r tenantInviteLinkActions) FindUnique( + params TenantInviteLinkEqualsUniqueWhereParam, +) tenantInviteLinkFindUnique { + var v tenantInviteLinkFindUnique v.query = builder.NewQuery() v.query.Engine = r.client @@ -262933,8 +287936,8 @@ func (r tenantResourceLimitActions) FindUnique( v.query.Method = "findUnique" - v.query.Model = "TenantResourceLimit" - v.query.Outputs = tenantResourceLimitOutput + v.query.Model = "TenantInviteLink" + v.query.Outputs = tenantInviteLinkOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "where", @@ -262944,7 +287947,7 @@ func (r tenantResourceLimitActions) FindUnique( return v } -func (r tenantResourceLimitFindUnique) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitFindUnique { +func (r tenantInviteLinkFindUnique) With(params ...TenantInviteLinkRelationWith) tenantInviteLinkFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -262957,7 +287960,7 @@ func (r tenantResourceLimitFindUnique) With(params ...TenantResourceLimitRelatio return r } -func (r tenantResourceLimitFindUnique) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindUnique { +func (r tenantInviteLinkFindUnique) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindUnique { var outputs []builder.Output for _, param := range params { @@ -262971,7 +287974,7 @@ func (r tenantResourceLimitFindUnique) Select(params ...tenantResourceLimitPrism return r } -func (r tenantResourceLimitFindUnique) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindUnique { +func (r tenantInviteLinkFindUnique) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindUnique { var outputs []builder.Output var raw []string @@ -262979,7 +287982,7 @@ func (r tenantResourceLimitFindUnique) Omit(params ...tenantResourceLimitPrismaF raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantInviteLinkOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -262990,11 +287993,11 @@ func (r tenantResourceLimitFindUnique) Omit(params ...tenantResourceLimitPrismaF return r } -func (r tenantResourceLimitFindUnique) Exec(ctx context.Context) ( - *TenantResourceLimitModel, +func (r tenantInviteLinkFindUnique) Exec(ctx context.Context) ( + *TenantInviteLinkModel, error, ) { - var v *TenantResourceLimitModel + var v *TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263006,11 +288009,11 @@ func (r tenantResourceLimitFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimit, +func (r tenantInviteLinkFindUnique) ExecInner(ctx context.Context) ( + *InnerTenantInviteLink, error, ) { - var v *InnerTenantResourceLimit + var v *InnerTenantInviteLink if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263022,12 +288025,12 @@ func (r tenantResourceLimitFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitFindUnique) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitUpdateUnique { +func (r tenantInviteLinkFindUnique) Update(params ...TenantInviteLinkSetParam) tenantInviteLinkUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantResourceLimit" + r.query.Model = "TenantInviteLink" - var v tenantResourceLimitUpdateUnique + var v tenantInviteLinkUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -263056,86 +288059,86 @@ func (r tenantResourceLimitFindUnique) Update(params ...TenantResourceLimitSetPa return v } -type tenantResourceLimitUpdateUnique struct { +type tenantInviteLinkUpdateUnique struct { query builder.Query } -func (r tenantResourceLimitUpdateUnique) ExtractQuery() builder.Query { +func (r tenantInviteLinkUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitUpdateUnique) tenantResourceLimitModel() {} +func (r tenantInviteLinkUpdateUnique) tenantInviteLinkModel() {} -func (r tenantResourceLimitUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { - var v TenantResourceLimitModel +func (r tenantInviteLinkUpdateUnique) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { + var v TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitUpdateUnique) Tx() TenantResourceLimitUniqueTxResult { - v := newTenantResourceLimitUniqueTxResult() +func (r tenantInviteLinkUpdateUnique) Tx() TenantInviteLinkUniqueTxResult { + v := newTenantInviteLinkUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitFindUnique) Delete() tenantResourceLimitDeleteUnique { - var v tenantResourceLimitDeleteUnique +func (r tenantInviteLinkFindUnique) Delete() tenantInviteLinkDeleteUnique { + var v tenantInviteLinkDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantResourceLimit" + v.query.Model = "TenantInviteLink" return v } -type tenantResourceLimitDeleteUnique struct { +type tenantInviteLinkDeleteUnique struct { query builder.Query } -func (r tenantResourceLimitDeleteUnique) ExtractQuery() builder.Query { +func (r tenantInviteLinkDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitDeleteUnique) tenantResourceLimitModel() {} +func (p tenantInviteLinkDeleteUnique) tenantInviteLinkModel() {} -func (r tenantResourceLimitDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitModel, error) { - var v TenantResourceLimitModel +func (r tenantInviteLinkDeleteUnique) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { + var v TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitDeleteUnique) Tx() TenantResourceLimitUniqueTxResult { - v := newTenantResourceLimitUniqueTxResult() +func (r tenantInviteLinkDeleteUnique) Tx() TenantInviteLinkUniqueTxResult { + v := newTenantInviteLinkUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitFindFirst struct { +type tenantInviteLinkFindFirst struct { query builder.Query } -func (r tenantResourceLimitFindFirst) getQuery() builder.Query { +func (r tenantInviteLinkFindFirst) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitFindFirst) ExtractQuery() builder.Query { +func (r tenantInviteLinkFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitFindFirst) with() {} -func (r tenantResourceLimitFindFirst) tenantResourceLimitModel() {} -func (r tenantResourceLimitFindFirst) tenantResourceLimitRelation() {} +func (r tenantInviteLinkFindFirst) with() {} +func (r tenantInviteLinkFindFirst) tenantInviteLinkModel() {} +func (r tenantInviteLinkFindFirst) tenantInviteLinkRelation() {} -func (r tenantResourceLimitActions) FindFirst( - params ...TenantResourceLimitWhereParam, -) tenantResourceLimitFindFirst { - var v tenantResourceLimitFindFirst +func (r tenantInviteLinkActions) FindFirst( + params ...TenantInviteLinkWhereParam, +) tenantInviteLinkFindFirst { + var v tenantInviteLinkFindFirst v.query = builder.NewQuery() v.query.Engine = r.client @@ -263143,8 +288146,8 @@ func (r tenantResourceLimitActions) FindFirst( v.query.Method = "findFirst" - v.query.Model = "TenantResourceLimit" - v.query.Outputs = tenantResourceLimitOutput + v.query.Model = "TenantInviteLink" + v.query.Outputs = tenantInviteLinkOutput var where []builder.Field for _, q := range params { @@ -263169,7 +288172,7 @@ func (r tenantResourceLimitActions) FindFirst( return v } -func (r tenantResourceLimitFindFirst) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitFindFirst { +func (r tenantInviteLinkFindFirst) With(params ...TenantInviteLinkRelationWith) tenantInviteLinkFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -263182,7 +288185,7 @@ func (r tenantResourceLimitFindFirst) With(params ...TenantResourceLimitRelation return r } -func (r tenantResourceLimitFindFirst) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindFirst { +func (r tenantInviteLinkFindFirst) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindFirst { var outputs []builder.Output for _, param := range params { @@ -263196,7 +288199,7 @@ func (r tenantResourceLimitFindFirst) Select(params ...tenantResourceLimitPrisma return r } -func (r tenantResourceLimitFindFirst) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindFirst { +func (r tenantInviteLinkFindFirst) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindFirst { var outputs []builder.Output var raw []string @@ -263204,7 +288207,7 @@ func (r tenantResourceLimitFindFirst) Omit(params ...tenantResourceLimitPrismaFi raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantInviteLinkOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -263215,7 +288218,7 @@ func (r tenantResourceLimitFindFirst) Omit(params ...tenantResourceLimitPrismaFi return r } -func (r tenantResourceLimitFindFirst) OrderBy(params ...TenantResourceLimitOrderByParam) tenantResourceLimitFindFirst { +func (r tenantInviteLinkFindFirst) OrderBy(params ...TenantInviteLinkOrderByParam) tenantInviteLinkFindFirst { var fields []builder.Field for _, param := range params { @@ -263235,7 +288238,7 @@ func (r tenantResourceLimitFindFirst) OrderBy(params ...TenantResourceLimitOrder return r } -func (r tenantResourceLimitFindFirst) Skip(count int) tenantResourceLimitFindFirst { +func (r tenantInviteLinkFindFirst) Skip(count int) tenantInviteLinkFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -263243,7 +288246,7 @@ func (r tenantResourceLimitFindFirst) Skip(count int) tenantResourceLimitFindFir return r } -func (r tenantResourceLimitFindFirst) Take(count int) tenantResourceLimitFindFirst { +func (r tenantInviteLinkFindFirst) Take(count int) tenantInviteLinkFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -263251,7 +288254,7 @@ func (r tenantResourceLimitFindFirst) Take(count int) tenantResourceLimitFindFir return r } -func (r tenantResourceLimitFindFirst) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitFindFirst { +func (r tenantInviteLinkFindFirst) Cursor(cursor TenantInviteLinkCursorParam) tenantInviteLinkFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -263259,11 +288262,11 @@ func (r tenantResourceLimitFindFirst) Cursor(cursor TenantResourceLimitCursorPar return r } -func (r tenantResourceLimitFindFirst) Exec(ctx context.Context) ( - *TenantResourceLimitModel, +func (r tenantInviteLinkFindFirst) Exec(ctx context.Context) ( + *TenantInviteLinkModel, error, ) { - var v *TenantResourceLimitModel + var v *TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263275,11 +288278,11 @@ func (r tenantResourceLimitFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimit, +func (r tenantInviteLinkFindFirst) ExecInner(ctx context.Context) ( + *InnerTenantInviteLink, error, ) { - var v *InnerTenantResourceLimit + var v *InnerTenantInviteLink if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263291,26 +288294,26 @@ func (r tenantResourceLimitFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantResourceLimitFindMany struct { +type tenantInviteLinkFindMany struct { query builder.Query } -func (r tenantResourceLimitFindMany) getQuery() builder.Query { +func (r tenantInviteLinkFindMany) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitFindMany) ExtractQuery() builder.Query { +func (r tenantInviteLinkFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitFindMany) with() {} -func (r tenantResourceLimitFindMany) tenantResourceLimitModel() {} -func (r tenantResourceLimitFindMany) tenantResourceLimitRelation() {} +func (r tenantInviteLinkFindMany) with() {} +func (r tenantInviteLinkFindMany) tenantInviteLinkModel() {} +func (r tenantInviteLinkFindMany) tenantInviteLinkRelation() {} -func (r tenantResourceLimitActions) FindMany( - params ...TenantResourceLimitWhereParam, -) tenantResourceLimitFindMany { - var v tenantResourceLimitFindMany +func (r tenantInviteLinkActions) FindMany( + params ...TenantInviteLinkWhereParam, +) tenantInviteLinkFindMany { + var v tenantInviteLinkFindMany v.query = builder.NewQuery() v.query.Engine = r.client @@ -263318,8 +288321,8 @@ func (r tenantResourceLimitActions) FindMany( v.query.Method = "findMany" - v.query.Model = "TenantResourceLimit" - v.query.Outputs = tenantResourceLimitOutput + v.query.Model = "TenantInviteLink" + v.query.Outputs = tenantInviteLinkOutput var where []builder.Field for _, q := range params { @@ -263344,7 +288347,7 @@ func (r tenantResourceLimitActions) FindMany( return v } -func (r tenantResourceLimitFindMany) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitFindMany { +func (r tenantInviteLinkFindMany) With(params ...TenantInviteLinkRelationWith) tenantInviteLinkFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -263357,7 +288360,7 @@ func (r tenantResourceLimitFindMany) With(params ...TenantResourceLimitRelationW return r } -func (r tenantResourceLimitFindMany) Select(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindMany { +func (r tenantInviteLinkFindMany) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindMany { var outputs []builder.Output for _, param := range params { @@ -263371,7 +288374,7 @@ func (r tenantResourceLimitFindMany) Select(params ...tenantResourceLimitPrismaF return r } -func (r tenantResourceLimitFindMany) Omit(params ...tenantResourceLimitPrismaFields) tenantResourceLimitFindMany { +func (r tenantInviteLinkFindMany) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindMany { var outputs []builder.Output var raw []string @@ -263379,7 +288382,7 @@ func (r tenantResourceLimitFindMany) Omit(params ...tenantResourceLimitPrismaFie raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitOutput { + for _, output := range tenantInviteLinkOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -263390,7 +288393,7 @@ func (r tenantResourceLimitFindMany) Omit(params ...tenantResourceLimitPrismaFie return r } -func (r tenantResourceLimitFindMany) OrderBy(params ...TenantResourceLimitOrderByParam) tenantResourceLimitFindMany { +func (r tenantInviteLinkFindMany) OrderBy(params ...TenantInviteLinkOrderByParam) tenantInviteLinkFindMany { var fields []builder.Field for _, param := range params { @@ -263410,7 +288413,7 @@ func (r tenantResourceLimitFindMany) OrderBy(params ...TenantResourceLimitOrderB return r } -func (r tenantResourceLimitFindMany) Skip(count int) tenantResourceLimitFindMany { +func (r tenantInviteLinkFindMany) Skip(count int) tenantInviteLinkFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -263418,7 +288421,7 @@ func (r tenantResourceLimitFindMany) Skip(count int) tenantResourceLimitFindMany return r } -func (r tenantResourceLimitFindMany) Take(count int) tenantResourceLimitFindMany { +func (r tenantInviteLinkFindMany) Take(count int) tenantInviteLinkFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -263426,7 +288429,7 @@ func (r tenantResourceLimitFindMany) Take(count int) tenantResourceLimitFindMany return r } -func (r tenantResourceLimitFindMany) Cursor(cursor TenantResourceLimitCursorParam) tenantResourceLimitFindMany { +func (r tenantInviteLinkFindMany) Cursor(cursor TenantInviteLinkCursorParam) tenantInviteLinkFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -263434,11 +288437,11 @@ func (r tenantResourceLimitFindMany) Cursor(cursor TenantResourceLimitCursorPara return r } -func (r tenantResourceLimitFindMany) Exec(ctx context.Context) ( - []TenantResourceLimitModel, +func (r tenantInviteLinkFindMany) Exec(ctx context.Context) ( + []TenantInviteLinkModel, error, ) { - var v []TenantResourceLimitModel + var v []TenantInviteLinkModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263446,11 +288449,11 @@ func (r tenantResourceLimitFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitFindMany) ExecInner(ctx context.Context) ( - []InnerTenantResourceLimit, +func (r tenantInviteLinkFindMany) ExecInner(ctx context.Context) ( + []InnerTenantInviteLink, error, ) { - var v []InnerTenantResourceLimit + var v []InnerTenantInviteLink if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263458,14 +288461,14 @@ func (r tenantResourceLimitFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitFindMany) Update(params ...TenantResourceLimitSetParam) tenantResourceLimitUpdateMany { +func (r tenantInviteLinkFindMany) Update(params ...TenantInviteLinkSetParam) tenantInviteLinkUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantResourceLimit" + r.query.Model = "TenantInviteLink" r.query.Outputs = countOutput - var v tenantResourceLimitUpdateMany + var v tenantInviteLinkUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -263494,17 +288497,17 @@ func (r tenantResourceLimitFindMany) Update(params ...TenantResourceLimitSetPara return v } -type tenantResourceLimitUpdateMany struct { +type tenantInviteLinkUpdateMany struct { query builder.Query } -func (r tenantResourceLimitUpdateMany) ExtractQuery() builder.Query { +func (r tenantInviteLinkUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitUpdateMany) tenantResourceLimitModel() {} +func (r tenantInviteLinkUpdateMany) tenantInviteLinkModel() {} -func (r tenantResourceLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantInviteLinkUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -263512,36 +288515,36 @@ func (r tenantResourceLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantResourceLimitUpdateMany) Tx() TenantResourceLimitManyTxResult { - v := newTenantResourceLimitManyTxResult() +func (r tenantInviteLinkUpdateMany) Tx() TenantInviteLinkManyTxResult { + v := newTenantInviteLinkManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitFindMany) Delete() tenantResourceLimitDeleteMany { - var v tenantResourceLimitDeleteMany +func (r tenantInviteLinkFindMany) Delete() tenantInviteLinkDeleteMany { + var v tenantInviteLinkDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantResourceLimit" + v.query.Model = "TenantInviteLink" v.query.Outputs = countOutput return v } -type tenantResourceLimitDeleteMany struct { +type tenantInviteLinkDeleteMany struct { query builder.Query } -func (r tenantResourceLimitDeleteMany) ExtractQuery() builder.Query { +func (r tenantInviteLinkDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitDeleteMany) tenantResourceLimitModel() {} +func (p tenantInviteLinkDeleteMany) tenantInviteLinkModel() {} -func (r tenantResourceLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tenantInviteLinkDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -263549,30 +288552,30 @@ func (r tenantResourceLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantResourceLimitDeleteMany) Tx() TenantResourceLimitManyTxResult { - v := newTenantResourceLimitManyTxResult() +func (r tenantInviteLinkDeleteMany) Tx() TenantInviteLinkManyTxResult { + v := newTenantInviteLinkManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitAlertToResourceLimitFindUnique struct { +type aPITokenToTenantFindUnique struct { query builder.Query } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) getQuery() builder.Query { +func (r aPITokenToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) ExtractQuery() builder.Query { +func (r aPITokenToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) with() {} -func (r tenantResourceLimitAlertToResourceLimitFindUnique) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertToResourceLimitFindUnique) tenantResourceLimitAlertRelation() {} +func (r aPITokenToTenantFindUnique) with() {} +func (r aPITokenToTenantFindUnique) aPITokenModel() {} +func (r aPITokenToTenantFindUnique) aPITokenRelation() {} -func (r tenantResourceLimitAlertToResourceLimitFindUnique) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitAlertToResourceLimitFindUnique { +func (r aPITokenToTenantFindUnique) With(params ...TenantRelationWith) aPITokenToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -263585,7 +288588,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindUnique) With(params ...Tenant return r } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindUnique { +func (r aPITokenToTenantFindUnique) Select(params ...aPITokenPrismaFields) aPITokenToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -263599,7 +288602,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindUnique) Select(params ...tena return r } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindUnique { +func (r aPITokenToTenantFindUnique) Omit(params ...aPITokenPrismaFields) aPITokenToTenantFindUnique { var outputs []builder.Output var raw []string @@ -263607,7 +288610,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindUnique) Omit(params ...tenant raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -263618,11 +288621,11 @@ func (r tenantResourceLimitAlertToResourceLimitFindUnique) Omit(params ...tenant return r } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) Exec(ctx context.Context) ( - *TenantResourceLimitAlertModel, +func (r aPITokenToTenantFindUnique) Exec(ctx context.Context) ( + *APITokenModel, error, ) { - var v *TenantResourceLimitAlertModel + var v *APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263634,11 +288637,11 @@ func (r tenantResourceLimitAlertToResourceLimitFindUnique) Exec(ctx context.Cont return v, nil } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimitAlert, +func (r aPITokenToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerAPIToken, error, ) { - var v *InnerTenantResourceLimitAlert + var v *InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263650,12 +288653,12 @@ func (r tenantResourceLimitAlertToResourceLimitFindUnique) ExecInner(ctx context return v, nil } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertToResourceLimitUpdateUnique { +func (r aPITokenToTenantFindUnique) Update(params ...APITokenSetParam) aPITokenToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantResourceLimitAlert" + r.query.Model = "APIToken" - var v tenantResourceLimitAlertToResourceLimitUpdateUnique + var v aPITokenToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -263684,83 +288687,83 @@ func (r tenantResourceLimitAlertToResourceLimitFindUnique) Update(params ...Tena return v } -type tenantResourceLimitAlertToResourceLimitUpdateUnique struct { +type aPITokenToTenantUpdateUnique struct { query builder.Query } -func (r tenantResourceLimitAlertToResourceLimitUpdateUnique) ExtractQuery() builder.Query { +func (r aPITokenToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToResourceLimitUpdateUnique) tenantResourceLimitAlertModel() {} +func (r aPITokenToTenantUpdateUnique) aPITokenModel() {} -func (r tenantResourceLimitAlertToResourceLimitUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { - var v TenantResourceLimitAlertModel +func (r aPITokenToTenantUpdateUnique) Exec(ctx context.Context) (*APITokenModel, error) { + var v APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitAlertToResourceLimitUpdateUnique) Tx() TenantResourceLimitAlertUniqueTxResult { - v := newTenantResourceLimitAlertUniqueTxResult() +func (r aPITokenToTenantUpdateUnique) Tx() APITokenUniqueTxResult { + v := newAPITokenUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitAlertToResourceLimitFindUnique) Delete() tenantResourceLimitAlertToResourceLimitDeleteUnique { - var v tenantResourceLimitAlertToResourceLimitDeleteUnique +func (r aPITokenToTenantFindUnique) Delete() aPITokenToTenantDeleteUnique { + var v aPITokenToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantResourceLimitAlert" + v.query.Model = "APIToken" return v } -type tenantResourceLimitAlertToResourceLimitDeleteUnique struct { +type aPITokenToTenantDeleteUnique struct { query builder.Query } -func (r tenantResourceLimitAlertToResourceLimitDeleteUnique) ExtractQuery() builder.Query { +func (r aPITokenToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitAlertToResourceLimitDeleteUnique) tenantResourceLimitAlertModel() {} +func (p aPITokenToTenantDeleteUnique) aPITokenModel() {} -func (r tenantResourceLimitAlertToResourceLimitDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { - var v TenantResourceLimitAlertModel +func (r aPITokenToTenantDeleteUnique) Exec(ctx context.Context) (*APITokenModel, error) { + var v APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitAlertToResourceLimitDeleteUnique) Tx() TenantResourceLimitAlertUniqueTxResult { - v := newTenantResourceLimitAlertUniqueTxResult() +func (r aPITokenToTenantDeleteUnique) Tx() APITokenUniqueTxResult { + v := newAPITokenUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitAlertToResourceLimitFindFirst struct { +type aPITokenToTenantFindFirst struct { query builder.Query } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) getQuery() builder.Query { +func (r aPITokenToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) ExtractQuery() builder.Query { +func (r aPITokenToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) with() {} -func (r tenantResourceLimitAlertToResourceLimitFindFirst) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertToResourceLimitFindFirst) tenantResourceLimitAlertRelation() {} +func (r aPITokenToTenantFindFirst) with() {} +func (r aPITokenToTenantFindFirst) aPITokenModel() {} +func (r aPITokenToTenantFindFirst) aPITokenRelation() {} -func (r tenantResourceLimitAlertToResourceLimitFindFirst) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitAlertToResourceLimitFindFirst { +func (r aPITokenToTenantFindFirst) With(params ...TenantRelationWith) aPITokenToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -263773,7 +288776,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) With(params ...TenantR return r } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindFirst { +func (r aPITokenToTenantFindFirst) Select(params ...aPITokenPrismaFields) aPITokenToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -263787,7 +288790,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) Select(params ...tenan return r } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindFirst { +func (r aPITokenToTenantFindFirst) Omit(params ...aPITokenPrismaFields) aPITokenToTenantFindFirst { var outputs []builder.Output var raw []string @@ -263795,7 +288798,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) Omit(params ...tenantR raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -263806,7 +288809,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) Omit(params ...tenantR return r } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) OrderBy(params ...TenantResourceLimitOrderByParam) tenantResourceLimitAlertToResourceLimitFindFirst { +func (r aPITokenToTenantFindFirst) OrderBy(params ...TenantOrderByParam) aPITokenToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -263826,7 +288829,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) OrderBy(params ...Tena return r } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) Skip(count int) tenantResourceLimitAlertToResourceLimitFindFirst { +func (r aPITokenToTenantFindFirst) Skip(count int) aPITokenToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -263834,7 +288837,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) Skip(count int) tenant return r } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) Take(count int) tenantResourceLimitAlertToResourceLimitFindFirst { +func (r aPITokenToTenantFindFirst) Take(count int) aPITokenToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -263842,7 +288845,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) Take(count int) tenant return r } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertToResourceLimitFindFirst { +func (r aPITokenToTenantFindFirst) Cursor(cursor APITokenCursorParam) aPITokenToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -263850,11 +288853,11 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) Cursor(cursor TenantRe return r } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) Exec(ctx context.Context) ( - *TenantResourceLimitAlertModel, +func (r aPITokenToTenantFindFirst) Exec(ctx context.Context) ( + *APITokenModel, error, ) { - var v *TenantResourceLimitAlertModel + var v *APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263866,11 +288869,11 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) Exec(ctx context.Conte return v, nil } -func (r tenantResourceLimitAlertToResourceLimitFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimitAlert, +func (r aPITokenToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerAPIToken, error, ) { - var v *InnerTenantResourceLimitAlert + var v *InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -263882,23 +288885,23 @@ func (r tenantResourceLimitAlertToResourceLimitFindFirst) ExecInner(ctx context. return v, nil } -type tenantResourceLimitAlertToResourceLimitFindMany struct { +type aPITokenToTenantFindMany struct { query builder.Query } -func (r tenantResourceLimitAlertToResourceLimitFindMany) getQuery() builder.Query { +func (r aPITokenToTenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToResourceLimitFindMany) ExtractQuery() builder.Query { +func (r aPITokenToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToResourceLimitFindMany) with() {} -func (r tenantResourceLimitAlertToResourceLimitFindMany) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertToResourceLimitFindMany) tenantResourceLimitAlertRelation() {} +func (r aPITokenToTenantFindMany) with() {} +func (r aPITokenToTenantFindMany) aPITokenModel() {} +func (r aPITokenToTenantFindMany) aPITokenRelation() {} -func (r tenantResourceLimitAlertToResourceLimitFindMany) With(params ...TenantResourceLimitRelationWith) tenantResourceLimitAlertToResourceLimitFindMany { +func (r aPITokenToTenantFindMany) With(params ...TenantRelationWith) aPITokenToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -263911,7 +288914,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) With(params ...TenantRe return r } -func (r tenantResourceLimitAlertToResourceLimitFindMany) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindMany { +func (r aPITokenToTenantFindMany) Select(params ...aPITokenPrismaFields) aPITokenToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -263925,7 +288928,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) Select(params ...tenant return r } -func (r tenantResourceLimitAlertToResourceLimitFindMany) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToResourceLimitFindMany { +func (r aPITokenToTenantFindMany) Omit(params ...aPITokenPrismaFields) aPITokenToTenantFindMany { var outputs []builder.Output var raw []string @@ -263933,7 +288936,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) Omit(params ...tenantRe raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -263944,7 +288947,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) Omit(params ...tenantRe return r } -func (r tenantResourceLimitAlertToResourceLimitFindMany) OrderBy(params ...TenantResourceLimitOrderByParam) tenantResourceLimitAlertToResourceLimitFindMany { +func (r aPITokenToTenantFindMany) OrderBy(params ...TenantOrderByParam) aPITokenToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -263964,7 +288967,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) OrderBy(params ...Tenan return r } -func (r tenantResourceLimitAlertToResourceLimitFindMany) Skip(count int) tenantResourceLimitAlertToResourceLimitFindMany { +func (r aPITokenToTenantFindMany) Skip(count int) aPITokenToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -263972,7 +288975,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) Skip(count int) tenantR return r } -func (r tenantResourceLimitAlertToResourceLimitFindMany) Take(count int) tenantResourceLimitAlertToResourceLimitFindMany { +func (r aPITokenToTenantFindMany) Take(count int) aPITokenToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -263980,7 +288983,7 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) Take(count int) tenantR return r } -func (r tenantResourceLimitAlertToResourceLimitFindMany) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertToResourceLimitFindMany { +func (r aPITokenToTenantFindMany) Cursor(cursor APITokenCursorParam) aPITokenToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -263988,11 +288991,11 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) Cursor(cursor TenantRes return r } -func (r tenantResourceLimitAlertToResourceLimitFindMany) Exec(ctx context.Context) ( - []TenantResourceLimitAlertModel, +func (r aPITokenToTenantFindMany) Exec(ctx context.Context) ( + []APITokenModel, error, ) { - var v []TenantResourceLimitAlertModel + var v []APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264000,11 +289003,11 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) Exec(ctx context.Contex return v, nil } -func (r tenantResourceLimitAlertToResourceLimitFindMany) ExecInner(ctx context.Context) ( - []InnerTenantResourceLimitAlert, +func (r aPITokenToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerAPIToken, error, ) { - var v []InnerTenantResourceLimitAlert + var v []InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264012,14 +289015,14 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) ExecInner(ctx context.C return v, nil } -func (r tenantResourceLimitAlertToResourceLimitFindMany) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertToResourceLimitUpdateMany { +func (r aPITokenToTenantFindMany) Update(params ...APITokenSetParam) aPITokenToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantResourceLimitAlert" + r.query.Model = "APIToken" r.query.Outputs = countOutput - var v tenantResourceLimitAlertToResourceLimitUpdateMany + var v aPITokenToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -264048,17 +289051,17 @@ func (r tenantResourceLimitAlertToResourceLimitFindMany) Update(params ...Tenant return v } -type tenantResourceLimitAlertToResourceLimitUpdateMany struct { +type aPITokenToTenantUpdateMany struct { query builder.Query } -func (r tenantResourceLimitAlertToResourceLimitUpdateMany) ExtractQuery() builder.Query { +func (r aPITokenToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToResourceLimitUpdateMany) tenantResourceLimitAlertModel() {} +func (r aPITokenToTenantUpdateMany) aPITokenModel() {} -func (r tenantResourceLimitAlertToResourceLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r aPITokenToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -264066,36 +289069,36 @@ func (r tenantResourceLimitAlertToResourceLimitUpdateMany) Exec(ctx context.Cont return &v, nil } -func (r tenantResourceLimitAlertToResourceLimitUpdateMany) Tx() TenantResourceLimitAlertManyTxResult { - v := newTenantResourceLimitAlertManyTxResult() +func (r aPITokenToTenantUpdateMany) Tx() APITokenManyTxResult { + v := newAPITokenManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitAlertToResourceLimitFindMany) Delete() tenantResourceLimitAlertToResourceLimitDeleteMany { - var v tenantResourceLimitAlertToResourceLimitDeleteMany +func (r aPITokenToTenantFindMany) Delete() aPITokenToTenantDeleteMany { + var v aPITokenToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantResourceLimitAlert" + v.query.Model = "APIToken" v.query.Outputs = countOutput return v } -type tenantResourceLimitAlertToResourceLimitDeleteMany struct { +type aPITokenToTenantDeleteMany struct { query builder.Query } -func (r tenantResourceLimitAlertToResourceLimitDeleteMany) ExtractQuery() builder.Query { +func (r aPITokenToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitAlertToResourceLimitDeleteMany) tenantResourceLimitAlertModel() {} +func (p aPITokenToTenantDeleteMany) aPITokenModel() {} -func (r tenantResourceLimitAlertToResourceLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r aPITokenToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -264103,30 +289106,30 @@ func (r tenantResourceLimitAlertToResourceLimitDeleteMany) Exec(ctx context.Cont return &v, nil } -func (r tenantResourceLimitAlertToResourceLimitDeleteMany) Tx() TenantResourceLimitAlertManyTxResult { - v := newTenantResourceLimitAlertManyTxResult() +func (r aPITokenToTenantDeleteMany) Tx() APITokenManyTxResult { + v := newAPITokenManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitAlertToTenantFindUnique struct { +type aPITokenToWebhookWorkersFindUnique struct { query builder.Query } -func (r tenantResourceLimitAlertToTenantFindUnique) getQuery() builder.Query { +func (r aPITokenToWebhookWorkersFindUnique) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToTenantFindUnique) ExtractQuery() builder.Query { +func (r aPITokenToWebhookWorkersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToTenantFindUnique) with() {} -func (r tenantResourceLimitAlertToTenantFindUnique) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertToTenantFindUnique) tenantResourceLimitAlertRelation() {} +func (r aPITokenToWebhookWorkersFindUnique) with() {} +func (r aPITokenToWebhookWorkersFindUnique) aPITokenModel() {} +func (r aPITokenToWebhookWorkersFindUnique) aPITokenRelation() {} -func (r tenantResourceLimitAlertToTenantFindUnique) With(params ...TenantRelationWith) tenantResourceLimitAlertToTenantFindUnique { +func (r aPITokenToWebhookWorkersFindUnique) With(params ...WebhookWorkerRelationWith) aPITokenToWebhookWorkersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -264139,7 +289142,7 @@ func (r tenantResourceLimitAlertToTenantFindUnique) With(params ...TenantRelatio return r } -func (r tenantResourceLimitAlertToTenantFindUnique) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindUnique { +func (r aPITokenToWebhookWorkersFindUnique) Select(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindUnique { var outputs []builder.Output for _, param := range params { @@ -264153,7 +289156,7 @@ func (r tenantResourceLimitAlertToTenantFindUnique) Select(params ...tenantResou return r } -func (r tenantResourceLimitAlertToTenantFindUnique) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindUnique { +func (r aPITokenToWebhookWorkersFindUnique) Omit(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindUnique { var outputs []builder.Output var raw []string @@ -264161,7 +289164,7 @@ func (r tenantResourceLimitAlertToTenantFindUnique) Omit(params ...tenantResourc raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -264172,11 +289175,11 @@ func (r tenantResourceLimitAlertToTenantFindUnique) Omit(params ...tenantResourc return r } -func (r tenantResourceLimitAlertToTenantFindUnique) Exec(ctx context.Context) ( - *TenantResourceLimitAlertModel, +func (r aPITokenToWebhookWorkersFindUnique) Exec(ctx context.Context) ( + *APITokenModel, error, ) { - var v *TenantResourceLimitAlertModel + var v *APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264188,11 +289191,11 @@ func (r tenantResourceLimitAlertToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitAlertToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimitAlert, +func (r aPITokenToWebhookWorkersFindUnique) ExecInner(ctx context.Context) ( + *InnerAPIToken, error, ) { - var v *InnerTenantResourceLimitAlert + var v *InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264204,12 +289207,12 @@ func (r tenantResourceLimitAlertToTenantFindUnique) ExecInner(ctx context.Contex return v, nil } -func (r tenantResourceLimitAlertToTenantFindUnique) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertToTenantUpdateUnique { +func (r aPITokenToWebhookWorkersFindUnique) Update(params ...APITokenSetParam) aPITokenToWebhookWorkersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantResourceLimitAlert" + r.query.Model = "APIToken" - var v tenantResourceLimitAlertToTenantUpdateUnique + var v aPITokenToWebhookWorkersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -264238,83 +289241,83 @@ func (r tenantResourceLimitAlertToTenantFindUnique) Update(params ...TenantResou return v } -type tenantResourceLimitAlertToTenantUpdateUnique struct { +type aPITokenToWebhookWorkersUpdateUnique struct { query builder.Query } -func (r tenantResourceLimitAlertToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r aPITokenToWebhookWorkersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToTenantUpdateUnique) tenantResourceLimitAlertModel() {} +func (r aPITokenToWebhookWorkersUpdateUnique) aPITokenModel() {} -func (r tenantResourceLimitAlertToTenantUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { - var v TenantResourceLimitAlertModel +func (r aPITokenToWebhookWorkersUpdateUnique) Exec(ctx context.Context) (*APITokenModel, error) { + var v APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitAlertToTenantUpdateUnique) Tx() TenantResourceLimitAlertUniqueTxResult { - v := newTenantResourceLimitAlertUniqueTxResult() +func (r aPITokenToWebhookWorkersUpdateUnique) Tx() APITokenUniqueTxResult { + v := newAPITokenUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitAlertToTenantFindUnique) Delete() tenantResourceLimitAlertToTenantDeleteUnique { - var v tenantResourceLimitAlertToTenantDeleteUnique +func (r aPITokenToWebhookWorkersFindUnique) Delete() aPITokenToWebhookWorkersDeleteUnique { + var v aPITokenToWebhookWorkersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantResourceLimitAlert" + v.query.Model = "APIToken" return v } -type tenantResourceLimitAlertToTenantDeleteUnique struct { +type aPITokenToWebhookWorkersDeleteUnique struct { query builder.Query } -func (r tenantResourceLimitAlertToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r aPITokenToWebhookWorkersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitAlertToTenantDeleteUnique) tenantResourceLimitAlertModel() {} +func (p aPITokenToWebhookWorkersDeleteUnique) aPITokenModel() {} -func (r tenantResourceLimitAlertToTenantDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { - var v TenantResourceLimitAlertModel +func (r aPITokenToWebhookWorkersDeleteUnique) Exec(ctx context.Context) (*APITokenModel, error) { + var v APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitAlertToTenantDeleteUnique) Tx() TenantResourceLimitAlertUniqueTxResult { - v := newTenantResourceLimitAlertUniqueTxResult() +func (r aPITokenToWebhookWorkersDeleteUnique) Tx() APITokenUniqueTxResult { + v := newAPITokenUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitAlertToTenantFindFirst struct { +type aPITokenToWebhookWorkersFindFirst struct { query builder.Query } -func (r tenantResourceLimitAlertToTenantFindFirst) getQuery() builder.Query { +func (r aPITokenToWebhookWorkersFindFirst) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToTenantFindFirst) ExtractQuery() builder.Query { +func (r aPITokenToWebhookWorkersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToTenantFindFirst) with() {} -func (r tenantResourceLimitAlertToTenantFindFirst) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertToTenantFindFirst) tenantResourceLimitAlertRelation() {} +func (r aPITokenToWebhookWorkersFindFirst) with() {} +func (r aPITokenToWebhookWorkersFindFirst) aPITokenModel() {} +func (r aPITokenToWebhookWorkersFindFirst) aPITokenRelation() {} -func (r tenantResourceLimitAlertToTenantFindFirst) With(params ...TenantRelationWith) tenantResourceLimitAlertToTenantFindFirst { +func (r aPITokenToWebhookWorkersFindFirst) With(params ...WebhookWorkerRelationWith) aPITokenToWebhookWorkersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -264327,7 +289330,7 @@ func (r tenantResourceLimitAlertToTenantFindFirst) With(params ...TenantRelation return r } -func (r tenantResourceLimitAlertToTenantFindFirst) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindFirst { +func (r aPITokenToWebhookWorkersFindFirst) Select(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindFirst { var outputs []builder.Output for _, param := range params { @@ -264341,7 +289344,7 @@ func (r tenantResourceLimitAlertToTenantFindFirst) Select(params ...tenantResour return r } -func (r tenantResourceLimitAlertToTenantFindFirst) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindFirst { +func (r aPITokenToWebhookWorkersFindFirst) Omit(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindFirst { var outputs []builder.Output var raw []string @@ -264349,7 +289352,7 @@ func (r tenantResourceLimitAlertToTenantFindFirst) Omit(params ...tenantResource raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -264360,7 +289363,7 @@ func (r tenantResourceLimitAlertToTenantFindFirst) Omit(params ...tenantResource return r } -func (r tenantResourceLimitAlertToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantResourceLimitAlertToTenantFindFirst { +func (r aPITokenToWebhookWorkersFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) aPITokenToWebhookWorkersFindFirst { var fields []builder.Field for _, param := range params { @@ -264380,7 +289383,7 @@ func (r tenantResourceLimitAlertToTenantFindFirst) OrderBy(params ...TenantOrder return r } -func (r tenantResourceLimitAlertToTenantFindFirst) Skip(count int) tenantResourceLimitAlertToTenantFindFirst { +func (r aPITokenToWebhookWorkersFindFirst) Skip(count int) aPITokenToWebhookWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -264388,7 +289391,7 @@ func (r tenantResourceLimitAlertToTenantFindFirst) Skip(count int) tenantResourc return r } -func (r tenantResourceLimitAlertToTenantFindFirst) Take(count int) tenantResourceLimitAlertToTenantFindFirst { +func (r aPITokenToWebhookWorkersFindFirst) Take(count int) aPITokenToWebhookWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -264396,7 +289399,7 @@ func (r tenantResourceLimitAlertToTenantFindFirst) Take(count int) tenantResourc return r } -func (r tenantResourceLimitAlertToTenantFindFirst) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertToTenantFindFirst { +func (r aPITokenToWebhookWorkersFindFirst) Cursor(cursor APITokenCursorParam) aPITokenToWebhookWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -264404,11 +289407,11 @@ func (r tenantResourceLimitAlertToTenantFindFirst) Cursor(cursor TenantResourceL return r } -func (r tenantResourceLimitAlertToTenantFindFirst) Exec(ctx context.Context) ( - *TenantResourceLimitAlertModel, +func (r aPITokenToWebhookWorkersFindFirst) Exec(ctx context.Context) ( + *APITokenModel, error, ) { - var v *TenantResourceLimitAlertModel + var v *APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264420,11 +289423,11 @@ func (r tenantResourceLimitAlertToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitAlertToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimitAlert, +func (r aPITokenToWebhookWorkersFindFirst) ExecInner(ctx context.Context) ( + *InnerAPIToken, error, ) { - var v *InnerTenantResourceLimitAlert + var v *InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264436,23 +289439,23 @@ func (r tenantResourceLimitAlertToTenantFindFirst) ExecInner(ctx context.Context return v, nil } -type tenantResourceLimitAlertToTenantFindMany struct { +type aPITokenToWebhookWorkersFindMany struct { query builder.Query } -func (r tenantResourceLimitAlertToTenantFindMany) getQuery() builder.Query { +func (r aPITokenToWebhookWorkersFindMany) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToTenantFindMany) ExtractQuery() builder.Query { +func (r aPITokenToWebhookWorkersFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToTenantFindMany) with() {} -func (r tenantResourceLimitAlertToTenantFindMany) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertToTenantFindMany) tenantResourceLimitAlertRelation() {} +func (r aPITokenToWebhookWorkersFindMany) with() {} +func (r aPITokenToWebhookWorkersFindMany) aPITokenModel() {} +func (r aPITokenToWebhookWorkersFindMany) aPITokenRelation() {} -func (r tenantResourceLimitAlertToTenantFindMany) With(params ...TenantRelationWith) tenantResourceLimitAlertToTenantFindMany { +func (r aPITokenToWebhookWorkersFindMany) With(params ...WebhookWorkerRelationWith) aPITokenToWebhookWorkersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -264465,7 +289468,7 @@ func (r tenantResourceLimitAlertToTenantFindMany) With(params ...TenantRelationW return r } -func (r tenantResourceLimitAlertToTenantFindMany) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindMany { +func (r aPITokenToWebhookWorkersFindMany) Select(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindMany { var outputs []builder.Output for _, param := range params { @@ -264479,7 +289482,7 @@ func (r tenantResourceLimitAlertToTenantFindMany) Select(params ...tenantResourc return r } -func (r tenantResourceLimitAlertToTenantFindMany) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertToTenantFindMany { +func (r aPITokenToWebhookWorkersFindMany) Omit(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindMany { var outputs []builder.Output var raw []string @@ -264487,7 +289490,7 @@ func (r tenantResourceLimitAlertToTenantFindMany) Omit(params ...tenantResourceL raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -264498,7 +289501,7 @@ func (r tenantResourceLimitAlertToTenantFindMany) Omit(params ...tenantResourceL return r } -func (r tenantResourceLimitAlertToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantResourceLimitAlertToTenantFindMany { +func (r aPITokenToWebhookWorkersFindMany) OrderBy(params ...WebhookWorkerOrderByParam) aPITokenToWebhookWorkersFindMany { var fields []builder.Field for _, param := range params { @@ -264518,7 +289521,7 @@ func (r tenantResourceLimitAlertToTenantFindMany) OrderBy(params ...TenantOrderB return r } -func (r tenantResourceLimitAlertToTenantFindMany) Skip(count int) tenantResourceLimitAlertToTenantFindMany { +func (r aPITokenToWebhookWorkersFindMany) Skip(count int) aPITokenToWebhookWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -264526,7 +289529,7 @@ func (r tenantResourceLimitAlertToTenantFindMany) Skip(count int) tenantResource return r } -func (r tenantResourceLimitAlertToTenantFindMany) Take(count int) tenantResourceLimitAlertToTenantFindMany { +func (r aPITokenToWebhookWorkersFindMany) Take(count int) aPITokenToWebhookWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -264534,7 +289537,7 @@ func (r tenantResourceLimitAlertToTenantFindMany) Take(count int) tenantResource return r } -func (r tenantResourceLimitAlertToTenantFindMany) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertToTenantFindMany { +func (r aPITokenToWebhookWorkersFindMany) Cursor(cursor APITokenCursorParam) aPITokenToWebhookWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -264542,11 +289545,11 @@ func (r tenantResourceLimitAlertToTenantFindMany) Cursor(cursor TenantResourceLi return r } -func (r tenantResourceLimitAlertToTenantFindMany) Exec(ctx context.Context) ( - []TenantResourceLimitAlertModel, +func (r aPITokenToWebhookWorkersFindMany) Exec(ctx context.Context) ( + []APITokenModel, error, ) { - var v []TenantResourceLimitAlertModel + var v []APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264554,11 +289557,11 @@ func (r tenantResourceLimitAlertToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitAlertToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerTenantResourceLimitAlert, +func (r aPITokenToWebhookWorkersFindMany) ExecInner(ctx context.Context) ( + []InnerAPIToken, error, ) { - var v []InnerTenantResourceLimitAlert + var v []InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264566,14 +289569,14 @@ func (r tenantResourceLimitAlertToTenantFindMany) ExecInner(ctx context.Context) return v, nil } -func (r tenantResourceLimitAlertToTenantFindMany) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertToTenantUpdateMany { +func (r aPITokenToWebhookWorkersFindMany) Update(params ...APITokenSetParam) aPITokenToWebhookWorkersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantResourceLimitAlert" + r.query.Model = "APIToken" r.query.Outputs = countOutput - var v tenantResourceLimitAlertToTenantUpdateMany + var v aPITokenToWebhookWorkersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -264602,17 +289605,17 @@ func (r tenantResourceLimitAlertToTenantFindMany) Update(params ...TenantResourc return v } -type tenantResourceLimitAlertToTenantUpdateMany struct { +type aPITokenToWebhookWorkersUpdateMany struct { query builder.Query } -func (r tenantResourceLimitAlertToTenantUpdateMany) ExtractQuery() builder.Query { +func (r aPITokenToWebhookWorkersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertToTenantUpdateMany) tenantResourceLimitAlertModel() {} +func (r aPITokenToWebhookWorkersUpdateMany) aPITokenModel() {} -func (r tenantResourceLimitAlertToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r aPITokenToWebhookWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -264620,36 +289623,36 @@ func (r tenantResourceLimitAlertToTenantUpdateMany) Exec(ctx context.Context) (* return &v, nil } -func (r tenantResourceLimitAlertToTenantUpdateMany) Tx() TenantResourceLimitAlertManyTxResult { - v := newTenantResourceLimitAlertManyTxResult() +func (r aPITokenToWebhookWorkersUpdateMany) Tx() APITokenManyTxResult { + v := newAPITokenManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitAlertToTenantFindMany) Delete() tenantResourceLimitAlertToTenantDeleteMany { - var v tenantResourceLimitAlertToTenantDeleteMany +func (r aPITokenToWebhookWorkersFindMany) Delete() aPITokenToWebhookWorkersDeleteMany { + var v aPITokenToWebhookWorkersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantResourceLimitAlert" + v.query.Model = "APIToken" v.query.Outputs = countOutput return v } -type tenantResourceLimitAlertToTenantDeleteMany struct { +type aPITokenToWebhookWorkersDeleteMany struct { query builder.Query } -func (r tenantResourceLimitAlertToTenantDeleteMany) ExtractQuery() builder.Query { +func (r aPITokenToWebhookWorkersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitAlertToTenantDeleteMany) tenantResourceLimitAlertModel() {} +func (p aPITokenToWebhookWorkersDeleteMany) aPITokenModel() {} -func (r tenantResourceLimitAlertToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r aPITokenToWebhookWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -264657,33 +289660,33 @@ func (r tenantResourceLimitAlertToTenantDeleteMany) Exec(ctx context.Context) (* return &v, nil } -func (r tenantResourceLimitAlertToTenantDeleteMany) Tx() TenantResourceLimitAlertManyTxResult { - v := newTenantResourceLimitAlertManyTxResult() +func (r aPITokenToWebhookWorkersDeleteMany) Tx() APITokenManyTxResult { + v := newAPITokenManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitAlertFindUnique struct { +type aPITokenFindUnique struct { query builder.Query } -func (r tenantResourceLimitAlertFindUnique) getQuery() builder.Query { +func (r aPITokenFindUnique) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertFindUnique) ExtractQuery() builder.Query { +func (r aPITokenFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertFindUnique) with() {} -func (r tenantResourceLimitAlertFindUnique) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertFindUnique) tenantResourceLimitAlertRelation() {} +func (r aPITokenFindUnique) with() {} +func (r aPITokenFindUnique) aPITokenModel() {} +func (r aPITokenFindUnique) aPITokenRelation() {} -func (r tenantResourceLimitAlertActions) FindUnique( - params TenantResourceLimitAlertEqualsUniqueWhereParam, -) tenantResourceLimitAlertFindUnique { - var v tenantResourceLimitAlertFindUnique +func (r aPITokenActions) FindUnique( + params APITokenEqualsUniqueWhereParam, +) aPITokenFindUnique { + var v aPITokenFindUnique v.query = builder.NewQuery() v.query.Engine = r.client @@ -264691,8 +289694,8 @@ func (r tenantResourceLimitAlertActions) FindUnique( v.query.Method = "findUnique" - v.query.Model = "TenantResourceLimitAlert" - v.query.Outputs = tenantResourceLimitAlertOutput + v.query.Model = "APIToken" + v.query.Outputs = aPITokenOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "where", @@ -264702,7 +289705,7 @@ func (r tenantResourceLimitAlertActions) FindUnique( return v } -func (r tenantResourceLimitAlertFindUnique) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitAlertFindUnique { +func (r aPITokenFindUnique) With(params ...APITokenRelationWith) aPITokenFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -264715,7 +289718,7 @@ func (r tenantResourceLimitAlertFindUnique) With(params ...TenantResourceLimitAl return r } -func (r tenantResourceLimitAlertFindUnique) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindUnique { +func (r aPITokenFindUnique) Select(params ...aPITokenPrismaFields) aPITokenFindUnique { var outputs []builder.Output for _, param := range params { @@ -264729,7 +289732,7 @@ func (r tenantResourceLimitAlertFindUnique) Select(params ...tenantResourceLimit return r } -func (r tenantResourceLimitAlertFindUnique) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindUnique { +func (r aPITokenFindUnique) Omit(params ...aPITokenPrismaFields) aPITokenFindUnique { var outputs []builder.Output var raw []string @@ -264737,7 +289740,7 @@ func (r tenantResourceLimitAlertFindUnique) Omit(params ...tenantResourceLimitAl raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -264748,11 +289751,11 @@ func (r tenantResourceLimitAlertFindUnique) Omit(params ...tenantResourceLimitAl return r } -func (r tenantResourceLimitAlertFindUnique) Exec(ctx context.Context) ( - *TenantResourceLimitAlertModel, +func (r aPITokenFindUnique) Exec(ctx context.Context) ( + *APITokenModel, error, ) { - var v *TenantResourceLimitAlertModel + var v *APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264764,11 +289767,11 @@ func (r tenantResourceLimitAlertFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitAlertFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimitAlert, +func (r aPITokenFindUnique) ExecInner(ctx context.Context) ( + *InnerAPIToken, error, ) { - var v *InnerTenantResourceLimitAlert + var v *InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -264780,12 +289783,12 @@ func (r tenantResourceLimitAlertFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitAlertFindUnique) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertUpdateUnique { +func (r aPITokenFindUnique) Update(params ...APITokenSetParam) aPITokenUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantResourceLimitAlert" + r.query.Model = "APIToken" - var v tenantResourceLimitAlertUpdateUnique + var v aPITokenUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -264814,86 +289817,86 @@ func (r tenantResourceLimitAlertFindUnique) Update(params ...TenantResourceLimit return v } -type tenantResourceLimitAlertUpdateUnique struct { +type aPITokenUpdateUnique struct { query builder.Query } -func (r tenantResourceLimitAlertUpdateUnique) ExtractQuery() builder.Query { +func (r aPITokenUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertUpdateUnique) tenantResourceLimitAlertModel() {} +func (r aPITokenUpdateUnique) aPITokenModel() {} -func (r tenantResourceLimitAlertUpdateUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { - var v TenantResourceLimitAlertModel +func (r aPITokenUpdateUnique) Exec(ctx context.Context) (*APITokenModel, error) { + var v APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitAlertUpdateUnique) Tx() TenantResourceLimitAlertUniqueTxResult { - v := newTenantResourceLimitAlertUniqueTxResult() +func (r aPITokenUpdateUnique) Tx() APITokenUniqueTxResult { + v := newAPITokenUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitAlertFindUnique) Delete() tenantResourceLimitAlertDeleteUnique { - var v tenantResourceLimitAlertDeleteUnique +func (r aPITokenFindUnique) Delete() aPITokenDeleteUnique { + var v aPITokenDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantResourceLimitAlert" + v.query.Model = "APIToken" return v } -type tenantResourceLimitAlertDeleteUnique struct { +type aPITokenDeleteUnique struct { query builder.Query } -func (r tenantResourceLimitAlertDeleteUnique) ExtractQuery() builder.Query { +func (r aPITokenDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitAlertDeleteUnique) tenantResourceLimitAlertModel() {} +func (p aPITokenDeleteUnique) aPITokenModel() {} -func (r tenantResourceLimitAlertDeleteUnique) Exec(ctx context.Context) (*TenantResourceLimitAlertModel, error) { - var v TenantResourceLimitAlertModel +func (r aPITokenDeleteUnique) Exec(ctx context.Context) (*APITokenModel, error) { + var v APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantResourceLimitAlertDeleteUnique) Tx() TenantResourceLimitAlertUniqueTxResult { - v := newTenantResourceLimitAlertUniqueTxResult() +func (r aPITokenDeleteUnique) Tx() APITokenUniqueTxResult { + v := newAPITokenUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantResourceLimitAlertFindFirst struct { +type aPITokenFindFirst struct { query builder.Query } -func (r tenantResourceLimitAlertFindFirst) getQuery() builder.Query { +func (r aPITokenFindFirst) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertFindFirst) ExtractQuery() builder.Query { +func (r aPITokenFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertFindFirst) with() {} -func (r tenantResourceLimitAlertFindFirst) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertFindFirst) tenantResourceLimitAlertRelation() {} +func (r aPITokenFindFirst) with() {} +func (r aPITokenFindFirst) aPITokenModel() {} +func (r aPITokenFindFirst) aPITokenRelation() {} -func (r tenantResourceLimitAlertActions) FindFirst( - params ...TenantResourceLimitAlertWhereParam, -) tenantResourceLimitAlertFindFirst { - var v tenantResourceLimitAlertFindFirst +func (r aPITokenActions) FindFirst( + params ...APITokenWhereParam, +) aPITokenFindFirst { + var v aPITokenFindFirst v.query = builder.NewQuery() v.query.Engine = r.client @@ -264901,8 +289904,8 @@ func (r tenantResourceLimitAlertActions) FindFirst( v.query.Method = "findFirst" - v.query.Model = "TenantResourceLimitAlert" - v.query.Outputs = tenantResourceLimitAlertOutput + v.query.Model = "APIToken" + v.query.Outputs = aPITokenOutput var where []builder.Field for _, q := range params { @@ -264927,7 +289930,7 @@ func (r tenantResourceLimitAlertActions) FindFirst( return v } -func (r tenantResourceLimitAlertFindFirst) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitAlertFindFirst { +func (r aPITokenFindFirst) With(params ...APITokenRelationWith) aPITokenFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -264940,7 +289943,7 @@ func (r tenantResourceLimitAlertFindFirst) With(params ...TenantResourceLimitAle return r } -func (r tenantResourceLimitAlertFindFirst) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindFirst { +func (r aPITokenFindFirst) Select(params ...aPITokenPrismaFields) aPITokenFindFirst { var outputs []builder.Output for _, param := range params { @@ -264954,7 +289957,7 @@ func (r tenantResourceLimitAlertFindFirst) Select(params ...tenantResourceLimitA return r } -func (r tenantResourceLimitAlertFindFirst) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindFirst { +func (r aPITokenFindFirst) Omit(params ...aPITokenPrismaFields) aPITokenFindFirst { var outputs []builder.Output var raw []string @@ -264962,7 +289965,7 @@ func (r tenantResourceLimitAlertFindFirst) Omit(params ...tenantResourceLimitAle raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -264973,7 +289976,7 @@ func (r tenantResourceLimitAlertFindFirst) Omit(params ...tenantResourceLimitAle return r } -func (r tenantResourceLimitAlertFindFirst) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantResourceLimitAlertFindFirst { +func (r aPITokenFindFirst) OrderBy(params ...APITokenOrderByParam) aPITokenFindFirst { var fields []builder.Field for _, param := range params { @@ -264993,7 +289996,7 @@ func (r tenantResourceLimitAlertFindFirst) OrderBy(params ...TenantResourceLimit return r } -func (r tenantResourceLimitAlertFindFirst) Skip(count int) tenantResourceLimitAlertFindFirst { +func (r aPITokenFindFirst) Skip(count int) aPITokenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -265001,7 +290004,7 @@ func (r tenantResourceLimitAlertFindFirst) Skip(count int) tenantResourceLimitAl return r } -func (r tenantResourceLimitAlertFindFirst) Take(count int) tenantResourceLimitAlertFindFirst { +func (r aPITokenFindFirst) Take(count int) aPITokenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -265009,7 +290012,7 @@ func (r tenantResourceLimitAlertFindFirst) Take(count int) tenantResourceLimitAl return r } -func (r tenantResourceLimitAlertFindFirst) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertFindFirst { +func (r aPITokenFindFirst) Cursor(cursor APITokenCursorParam) aPITokenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -265017,11 +290020,11 @@ func (r tenantResourceLimitAlertFindFirst) Cursor(cursor TenantResourceLimitAler return r } -func (r tenantResourceLimitAlertFindFirst) Exec(ctx context.Context) ( - *TenantResourceLimitAlertModel, +func (r aPITokenFindFirst) Exec(ctx context.Context) ( + *APITokenModel, error, ) { - var v *TenantResourceLimitAlertModel + var v *APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265033,11 +290036,11 @@ func (r tenantResourceLimitAlertFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitAlertFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantResourceLimitAlert, +func (r aPITokenFindFirst) ExecInner(ctx context.Context) ( + *InnerAPIToken, error, ) { - var v *InnerTenantResourceLimitAlert + var v *InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265049,26 +290052,26 @@ func (r tenantResourceLimitAlertFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantResourceLimitAlertFindMany struct { +type aPITokenFindMany struct { query builder.Query } -func (r tenantResourceLimitAlertFindMany) getQuery() builder.Query { +func (r aPITokenFindMany) getQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertFindMany) ExtractQuery() builder.Query { +func (r aPITokenFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertFindMany) with() {} -func (r tenantResourceLimitAlertFindMany) tenantResourceLimitAlertModel() {} -func (r tenantResourceLimitAlertFindMany) tenantResourceLimitAlertRelation() {} +func (r aPITokenFindMany) with() {} +func (r aPITokenFindMany) aPITokenModel() {} +func (r aPITokenFindMany) aPITokenRelation() {} -func (r tenantResourceLimitAlertActions) FindMany( - params ...TenantResourceLimitAlertWhereParam, -) tenantResourceLimitAlertFindMany { - var v tenantResourceLimitAlertFindMany +func (r aPITokenActions) FindMany( + params ...APITokenWhereParam, +) aPITokenFindMany { + var v aPITokenFindMany v.query = builder.NewQuery() v.query.Engine = r.client @@ -265076,8 +290079,8 @@ func (r tenantResourceLimitAlertActions) FindMany( v.query.Method = "findMany" - v.query.Model = "TenantResourceLimitAlert" - v.query.Outputs = tenantResourceLimitAlertOutput + v.query.Model = "APIToken" + v.query.Outputs = aPITokenOutput var where []builder.Field for _, q := range params { @@ -265102,7 +290105,7 @@ func (r tenantResourceLimitAlertActions) FindMany( return v } -func (r tenantResourceLimitAlertFindMany) With(params ...TenantResourceLimitAlertRelationWith) tenantResourceLimitAlertFindMany { +func (r aPITokenFindMany) With(params ...APITokenRelationWith) aPITokenFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -265115,7 +290118,7 @@ func (r tenantResourceLimitAlertFindMany) With(params ...TenantResourceLimitAler return r } -func (r tenantResourceLimitAlertFindMany) Select(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindMany { +func (r aPITokenFindMany) Select(params ...aPITokenPrismaFields) aPITokenFindMany { var outputs []builder.Output for _, param := range params { @@ -265129,7 +290132,7 @@ func (r tenantResourceLimitAlertFindMany) Select(params ...tenantResourceLimitAl return r } -func (r tenantResourceLimitAlertFindMany) Omit(params ...tenantResourceLimitAlertPrismaFields) tenantResourceLimitAlertFindMany { +func (r aPITokenFindMany) Omit(params ...aPITokenPrismaFields) aPITokenFindMany { var outputs []builder.Output var raw []string @@ -265137,7 +290140,7 @@ func (r tenantResourceLimitAlertFindMany) Omit(params ...tenantResourceLimitAler raw = append(raw, string(param)) } - for _, output := range tenantResourceLimitAlertOutput { + for _, output := range aPITokenOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -265148,7 +290151,7 @@ func (r tenantResourceLimitAlertFindMany) Omit(params ...tenantResourceLimitAler return r } -func (r tenantResourceLimitAlertFindMany) OrderBy(params ...TenantResourceLimitAlertOrderByParam) tenantResourceLimitAlertFindMany { +func (r aPITokenFindMany) OrderBy(params ...APITokenOrderByParam) aPITokenFindMany { var fields []builder.Field for _, param := range params { @@ -265168,7 +290171,7 @@ func (r tenantResourceLimitAlertFindMany) OrderBy(params ...TenantResourceLimitA return r } -func (r tenantResourceLimitAlertFindMany) Skip(count int) tenantResourceLimitAlertFindMany { +func (r aPITokenFindMany) Skip(count int) aPITokenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -265176,7 +290179,7 @@ func (r tenantResourceLimitAlertFindMany) Skip(count int) tenantResourceLimitAle return r } -func (r tenantResourceLimitAlertFindMany) Take(count int) tenantResourceLimitAlertFindMany { +func (r aPITokenFindMany) Take(count int) aPITokenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -265184,7 +290187,7 @@ func (r tenantResourceLimitAlertFindMany) Take(count int) tenantResourceLimitAle return r } -func (r tenantResourceLimitAlertFindMany) Cursor(cursor TenantResourceLimitAlertCursorParam) tenantResourceLimitAlertFindMany { +func (r aPITokenFindMany) Cursor(cursor APITokenCursorParam) aPITokenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -265192,11 +290195,11 @@ func (r tenantResourceLimitAlertFindMany) Cursor(cursor TenantResourceLimitAlert return r } -func (r tenantResourceLimitAlertFindMany) Exec(ctx context.Context) ( - []TenantResourceLimitAlertModel, +func (r aPITokenFindMany) Exec(ctx context.Context) ( + []APITokenModel, error, ) { - var v []TenantResourceLimitAlertModel + var v []APITokenModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265204,11 +290207,11 @@ func (r tenantResourceLimitAlertFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitAlertFindMany) ExecInner(ctx context.Context) ( - []InnerTenantResourceLimitAlert, +func (r aPITokenFindMany) ExecInner(ctx context.Context) ( + []InnerAPIToken, error, ) { - var v []InnerTenantResourceLimitAlert + var v []InnerAPIToken if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265216,14 +290219,14 @@ func (r tenantResourceLimitAlertFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantResourceLimitAlertFindMany) Update(params ...TenantResourceLimitAlertSetParam) tenantResourceLimitAlertUpdateMany { +func (r aPITokenFindMany) Update(params ...APITokenSetParam) aPITokenUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantResourceLimitAlert" + r.query.Model = "APIToken" r.query.Outputs = countOutput - var v tenantResourceLimitAlertUpdateMany + var v aPITokenUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -265252,17 +290255,17 @@ func (r tenantResourceLimitAlertFindMany) Update(params ...TenantResourceLimitAl return v } -type tenantResourceLimitAlertUpdateMany struct { +type aPITokenUpdateMany struct { query builder.Query } -func (r tenantResourceLimitAlertUpdateMany) ExtractQuery() builder.Query { +func (r aPITokenUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantResourceLimitAlertUpdateMany) tenantResourceLimitAlertModel() {} +func (r aPITokenUpdateMany) aPITokenModel() {} -func (r tenantResourceLimitAlertUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r aPITokenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -265270,36 +290273,36 @@ func (r tenantResourceLimitAlertUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r tenantResourceLimitAlertUpdateMany) Tx() TenantResourceLimitAlertManyTxResult { - v := newTenantResourceLimitAlertManyTxResult() +func (r aPITokenUpdateMany) Tx() APITokenManyTxResult { + v := newAPITokenManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantResourceLimitAlertFindMany) Delete() tenantResourceLimitAlertDeleteMany { - var v tenantResourceLimitAlertDeleteMany +func (r aPITokenFindMany) Delete() aPITokenDeleteMany { + var v aPITokenDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantResourceLimitAlert" + v.query.Model = "APIToken" v.query.Outputs = countOutput return v } -type tenantResourceLimitAlertDeleteMany struct { +type aPITokenDeleteMany struct { query builder.Query } -func (r tenantResourceLimitAlertDeleteMany) ExtractQuery() builder.Query { +func (r aPITokenDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantResourceLimitAlertDeleteMany) tenantResourceLimitAlertModel() {} +func (p aPITokenDeleteMany) aPITokenModel() {} -func (r tenantResourceLimitAlertDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r aPITokenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -265307,30 +290310,30 @@ func (r tenantResourceLimitAlertDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r tenantResourceLimitAlertDeleteMany) Tx() TenantResourceLimitAlertManyTxResult { - v := newTenantResourceLimitAlertManyTxResult() +func (r aPITokenDeleteMany) Tx() APITokenManyTxResult { + v := newAPITokenManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantAlertingSettingsToTenantFindUnique struct { +type eventToTenantFindUnique struct { query builder.Query } -func (r tenantAlertingSettingsToTenantFindUnique) getQuery() builder.Query { +func (r eventToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTenantFindUnique) ExtractQuery() builder.Query { +func (r eventToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTenantFindUnique) with() {} -func (r tenantAlertingSettingsToTenantFindUnique) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsToTenantFindUnique) tenantAlertingSettingsRelation() {} +func (r eventToTenantFindUnique) with() {} +func (r eventToTenantFindUnique) eventModel() {} +func (r eventToTenantFindUnique) eventRelation() {} -func (r tenantAlertingSettingsToTenantFindUnique) With(params ...TenantRelationWith) tenantAlertingSettingsToTenantFindUnique { +func (r eventToTenantFindUnique) With(params ...TenantRelationWith) eventToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -265343,7 +290346,7 @@ func (r tenantAlertingSettingsToTenantFindUnique) With(params ...TenantRelationW return r } -func (r tenantAlertingSettingsToTenantFindUnique) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindUnique { +func (r eventToTenantFindUnique) Select(params ...eventPrismaFields) eventToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -265357,7 +290360,7 @@ func (r tenantAlertingSettingsToTenantFindUnique) Select(params ...tenantAlertin return r } -func (r tenantAlertingSettingsToTenantFindUnique) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindUnique { +func (r eventToTenantFindUnique) Omit(params ...eventPrismaFields) eventToTenantFindUnique { var outputs []builder.Output var raw []string @@ -265365,7 +290368,7 @@ func (r tenantAlertingSettingsToTenantFindUnique) Omit(params ...tenantAlertingS raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -265376,11 +290379,11 @@ func (r tenantAlertingSettingsToTenantFindUnique) Omit(params ...tenantAlertingS return r } -func (r tenantAlertingSettingsToTenantFindUnique) Exec(ctx context.Context) ( - *TenantAlertingSettingsModel, +func (r eventToTenantFindUnique) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantAlertingSettingsModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265392,11 +290395,11 @@ func (r tenantAlertingSettingsToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantAlertingSettings, +func (r eventToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantAlertingSettings + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265408,12 +290411,12 @@ func (r tenantAlertingSettingsToTenantFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r tenantAlertingSettingsToTenantFindUnique) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsToTenantUpdateUnique { +func (r eventToTenantFindUnique) Update(params ...EventSetParam) eventToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantAlertingSettings" + r.query.Model = "Event" - var v tenantAlertingSettingsToTenantUpdateUnique + var v eventToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -265442,83 +290445,83 @@ func (r tenantAlertingSettingsToTenantFindUnique) Update(params ...TenantAlertin return v } -type tenantAlertingSettingsToTenantUpdateUnique struct { +type eventToTenantUpdateUnique struct { query builder.Query } -func (r tenantAlertingSettingsToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r eventToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTenantUpdateUnique) tenantAlertingSettingsModel() {} +func (r eventToTenantUpdateUnique) eventModel() {} -func (r tenantAlertingSettingsToTenantUpdateUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { - var v TenantAlertingSettingsModel +func (r eventToTenantUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantAlertingSettingsToTenantUpdateUnique) Tx() TenantAlertingSettingsUniqueTxResult { - v := newTenantAlertingSettingsUniqueTxResult() +func (r eventToTenantUpdateUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantAlertingSettingsToTenantFindUnique) Delete() tenantAlertingSettingsToTenantDeleteUnique { - var v tenantAlertingSettingsToTenantDeleteUnique +func (r eventToTenantFindUnique) Delete() eventToTenantDeleteUnique { + var v eventToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantAlertingSettings" + v.query.Model = "Event" return v } -type tenantAlertingSettingsToTenantDeleteUnique struct { +type eventToTenantDeleteUnique struct { query builder.Query } -func (r tenantAlertingSettingsToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r eventToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantAlertingSettingsToTenantDeleteUnique) tenantAlertingSettingsModel() {} +func (p eventToTenantDeleteUnique) eventModel() {} -func (r tenantAlertingSettingsToTenantDeleteUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { - var v TenantAlertingSettingsModel +func (r eventToTenantDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantAlertingSettingsToTenantDeleteUnique) Tx() TenantAlertingSettingsUniqueTxResult { - v := newTenantAlertingSettingsUniqueTxResult() +func (r eventToTenantDeleteUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantAlertingSettingsToTenantFindFirst struct { +type eventToTenantFindFirst struct { query builder.Query } -func (r tenantAlertingSettingsToTenantFindFirst) getQuery() builder.Query { +func (r eventToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTenantFindFirst) ExtractQuery() builder.Query { +func (r eventToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTenantFindFirst) with() {} -func (r tenantAlertingSettingsToTenantFindFirst) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsToTenantFindFirst) tenantAlertingSettingsRelation() {} +func (r eventToTenantFindFirst) with() {} +func (r eventToTenantFindFirst) eventModel() {} +func (r eventToTenantFindFirst) eventRelation() {} -func (r tenantAlertingSettingsToTenantFindFirst) With(params ...TenantRelationWith) tenantAlertingSettingsToTenantFindFirst { +func (r eventToTenantFindFirst) With(params ...TenantRelationWith) eventToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -265531,7 +290534,7 @@ func (r tenantAlertingSettingsToTenantFindFirst) With(params ...TenantRelationWi return r } -func (r tenantAlertingSettingsToTenantFindFirst) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindFirst { +func (r eventToTenantFindFirst) Select(params ...eventPrismaFields) eventToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -265545,7 +290548,7 @@ func (r tenantAlertingSettingsToTenantFindFirst) Select(params ...tenantAlerting return r } -func (r tenantAlertingSettingsToTenantFindFirst) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindFirst { +func (r eventToTenantFindFirst) Omit(params ...eventPrismaFields) eventToTenantFindFirst { var outputs []builder.Output var raw []string @@ -265553,7 +290556,7 @@ func (r tenantAlertingSettingsToTenantFindFirst) Omit(params ...tenantAlertingSe raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -265564,7 +290567,7 @@ func (r tenantAlertingSettingsToTenantFindFirst) Omit(params ...tenantAlertingSe return r } -func (r tenantAlertingSettingsToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantAlertingSettingsToTenantFindFirst { +func (r eventToTenantFindFirst) OrderBy(params ...TenantOrderByParam) eventToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -265584,7 +290587,7 @@ func (r tenantAlertingSettingsToTenantFindFirst) OrderBy(params ...TenantOrderBy return r } -func (r tenantAlertingSettingsToTenantFindFirst) Skip(count int) tenantAlertingSettingsToTenantFindFirst { +func (r eventToTenantFindFirst) Skip(count int) eventToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -265592,7 +290595,7 @@ func (r tenantAlertingSettingsToTenantFindFirst) Skip(count int) tenantAlertingS return r } -func (r tenantAlertingSettingsToTenantFindFirst) Take(count int) tenantAlertingSettingsToTenantFindFirst { +func (r eventToTenantFindFirst) Take(count int) eventToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -265600,7 +290603,7 @@ func (r tenantAlertingSettingsToTenantFindFirst) Take(count int) tenantAlertingS return r } -func (r tenantAlertingSettingsToTenantFindFirst) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsToTenantFindFirst { +func (r eventToTenantFindFirst) Cursor(cursor EventCursorParam) eventToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -265608,11 +290611,11 @@ func (r tenantAlertingSettingsToTenantFindFirst) Cursor(cursor TenantAlertingSet return r } -func (r tenantAlertingSettingsToTenantFindFirst) Exec(ctx context.Context) ( - *TenantAlertingSettingsModel, +func (r eventToTenantFindFirst) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantAlertingSettingsModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265624,11 +290627,11 @@ func (r tenantAlertingSettingsToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantAlertingSettings, +func (r eventToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantAlertingSettings + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265640,23 +290643,23 @@ func (r tenantAlertingSettingsToTenantFindFirst) ExecInner(ctx context.Context) return v, nil } -type tenantAlertingSettingsToTenantFindMany struct { +type eventToTenantFindMany struct { query builder.Query } -func (r tenantAlertingSettingsToTenantFindMany) getQuery() builder.Query { +func (r eventToTenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTenantFindMany) ExtractQuery() builder.Query { +func (r eventToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTenantFindMany) with() {} -func (r tenantAlertingSettingsToTenantFindMany) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsToTenantFindMany) tenantAlertingSettingsRelation() {} +func (r eventToTenantFindMany) with() {} +func (r eventToTenantFindMany) eventModel() {} +func (r eventToTenantFindMany) eventRelation() {} -func (r tenantAlertingSettingsToTenantFindMany) With(params ...TenantRelationWith) tenantAlertingSettingsToTenantFindMany { +func (r eventToTenantFindMany) With(params ...TenantRelationWith) eventToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -265669,7 +290672,7 @@ func (r tenantAlertingSettingsToTenantFindMany) With(params ...TenantRelationWit return r } -func (r tenantAlertingSettingsToTenantFindMany) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindMany { +func (r eventToTenantFindMany) Select(params ...eventPrismaFields) eventToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -265683,7 +290686,7 @@ func (r tenantAlertingSettingsToTenantFindMany) Select(params ...tenantAlertingS return r } -func (r tenantAlertingSettingsToTenantFindMany) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTenantFindMany { +func (r eventToTenantFindMany) Omit(params ...eventPrismaFields) eventToTenantFindMany { var outputs []builder.Output var raw []string @@ -265691,7 +290694,7 @@ func (r tenantAlertingSettingsToTenantFindMany) Omit(params ...tenantAlertingSet raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -265702,7 +290705,7 @@ func (r tenantAlertingSettingsToTenantFindMany) Omit(params ...tenantAlertingSet return r } -func (r tenantAlertingSettingsToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantAlertingSettingsToTenantFindMany { +func (r eventToTenantFindMany) OrderBy(params ...TenantOrderByParam) eventToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -265722,7 +290725,7 @@ func (r tenantAlertingSettingsToTenantFindMany) OrderBy(params ...TenantOrderByP return r } -func (r tenantAlertingSettingsToTenantFindMany) Skip(count int) tenantAlertingSettingsToTenantFindMany { +func (r eventToTenantFindMany) Skip(count int) eventToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -265730,7 +290733,7 @@ func (r tenantAlertingSettingsToTenantFindMany) Skip(count int) tenantAlertingSe return r } -func (r tenantAlertingSettingsToTenantFindMany) Take(count int) tenantAlertingSettingsToTenantFindMany { +func (r eventToTenantFindMany) Take(count int) eventToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -265738,7 +290741,7 @@ func (r tenantAlertingSettingsToTenantFindMany) Take(count int) tenantAlertingSe return r } -func (r tenantAlertingSettingsToTenantFindMany) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsToTenantFindMany { +func (r eventToTenantFindMany) Cursor(cursor EventCursorParam) eventToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -265746,11 +290749,11 @@ func (r tenantAlertingSettingsToTenantFindMany) Cursor(cursor TenantAlertingSett return r } -func (r tenantAlertingSettingsToTenantFindMany) Exec(ctx context.Context) ( - []TenantAlertingSettingsModel, +func (r eventToTenantFindMany) Exec(ctx context.Context) ( + []EventModel, error, ) { - var v []TenantAlertingSettingsModel + var v []EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265758,11 +290761,11 @@ func (r tenantAlertingSettingsToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerTenantAlertingSettings, +func (r eventToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerEvent, error, ) { - var v []InnerTenantAlertingSettings + var v []InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265770,14 +290773,14 @@ func (r tenantAlertingSettingsToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsToTenantFindMany) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsToTenantUpdateMany { +func (r eventToTenantFindMany) Update(params ...EventSetParam) eventToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantAlertingSettings" + r.query.Model = "Event" r.query.Outputs = countOutput - var v tenantAlertingSettingsToTenantUpdateMany + var v eventToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -265806,17 +290809,17 @@ func (r tenantAlertingSettingsToTenantFindMany) Update(params ...TenantAlertingS return v } -type tenantAlertingSettingsToTenantUpdateMany struct { +type eventToTenantUpdateMany struct { query builder.Query } -func (r tenantAlertingSettingsToTenantUpdateMany) ExtractQuery() builder.Query { +func (r eventToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTenantUpdateMany) tenantAlertingSettingsModel() {} +func (r eventToTenantUpdateMany) eventModel() {} -func (r tenantAlertingSettingsToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -265824,36 +290827,36 @@ func (r tenantAlertingSettingsToTenantUpdateMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r tenantAlertingSettingsToTenantUpdateMany) Tx() TenantAlertingSettingsManyTxResult { - v := newTenantAlertingSettingsManyTxResult() +func (r eventToTenantUpdateMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantAlertingSettingsToTenantFindMany) Delete() tenantAlertingSettingsToTenantDeleteMany { - var v tenantAlertingSettingsToTenantDeleteMany +func (r eventToTenantFindMany) Delete() eventToTenantDeleteMany { + var v eventToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantAlertingSettings" + v.query.Model = "Event" v.query.Outputs = countOutput return v } -type tenantAlertingSettingsToTenantDeleteMany struct { +type eventToTenantDeleteMany struct { query builder.Query } -func (r tenantAlertingSettingsToTenantDeleteMany) ExtractQuery() builder.Query { +func (r eventToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantAlertingSettingsToTenantDeleteMany) tenantAlertingSettingsModel() {} +func (p eventToTenantDeleteMany) eventModel() {} -func (r tenantAlertingSettingsToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -265861,30 +290864,30 @@ func (r tenantAlertingSettingsToTenantDeleteMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r tenantAlertingSettingsToTenantDeleteMany) Tx() TenantAlertingSettingsManyTxResult { - v := newTenantAlertingSettingsManyTxResult() +func (r eventToTenantDeleteMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantAlertingSettingsToTickerFindUnique struct { +type eventToReplayedFromFindUnique struct { query builder.Query } -func (r tenantAlertingSettingsToTickerFindUnique) getQuery() builder.Query { +func (r eventToReplayedFromFindUnique) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTickerFindUnique) ExtractQuery() builder.Query { +func (r eventToReplayedFromFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTickerFindUnique) with() {} -func (r tenantAlertingSettingsToTickerFindUnique) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsToTickerFindUnique) tenantAlertingSettingsRelation() {} +func (r eventToReplayedFromFindUnique) with() {} +func (r eventToReplayedFromFindUnique) eventModel() {} +func (r eventToReplayedFromFindUnique) eventRelation() {} -func (r tenantAlertingSettingsToTickerFindUnique) With(params ...TickerRelationWith) tenantAlertingSettingsToTickerFindUnique { +func (r eventToReplayedFromFindUnique) With(params ...EventRelationWith) eventToReplayedFromFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -265897,7 +290900,7 @@ func (r tenantAlertingSettingsToTickerFindUnique) With(params ...TickerRelationW return r } -func (r tenantAlertingSettingsToTickerFindUnique) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindUnique { +func (r eventToReplayedFromFindUnique) Select(params ...eventPrismaFields) eventToReplayedFromFindUnique { var outputs []builder.Output for _, param := range params { @@ -265911,7 +290914,7 @@ func (r tenantAlertingSettingsToTickerFindUnique) Select(params ...tenantAlertin return r } -func (r tenantAlertingSettingsToTickerFindUnique) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindUnique { +func (r eventToReplayedFromFindUnique) Omit(params ...eventPrismaFields) eventToReplayedFromFindUnique { var outputs []builder.Output var raw []string @@ -265919,7 +290922,7 @@ func (r tenantAlertingSettingsToTickerFindUnique) Omit(params ...tenantAlertingS raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -265930,11 +290933,11 @@ func (r tenantAlertingSettingsToTickerFindUnique) Omit(params ...tenantAlertingS return r } -func (r tenantAlertingSettingsToTickerFindUnique) Exec(ctx context.Context) ( - *TenantAlertingSettingsModel, +func (r eventToReplayedFromFindUnique) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantAlertingSettingsModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265946,11 +290949,11 @@ func (r tenantAlertingSettingsToTickerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsToTickerFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantAlertingSettings, +func (r eventToReplayedFromFindUnique) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantAlertingSettings + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -265962,12 +290965,12 @@ func (r tenantAlertingSettingsToTickerFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r tenantAlertingSettingsToTickerFindUnique) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsToTickerUpdateUnique { +func (r eventToReplayedFromFindUnique) Update(params ...EventSetParam) eventToReplayedFromUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantAlertingSettings" + r.query.Model = "Event" - var v tenantAlertingSettingsToTickerUpdateUnique + var v eventToReplayedFromUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -265996,83 +290999,83 @@ func (r tenantAlertingSettingsToTickerFindUnique) Update(params ...TenantAlertin return v } -type tenantAlertingSettingsToTickerUpdateUnique struct { +type eventToReplayedFromUpdateUnique struct { query builder.Query } -func (r tenantAlertingSettingsToTickerUpdateUnique) ExtractQuery() builder.Query { +func (r eventToReplayedFromUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTickerUpdateUnique) tenantAlertingSettingsModel() {} +func (r eventToReplayedFromUpdateUnique) eventModel() {} -func (r tenantAlertingSettingsToTickerUpdateUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { - var v TenantAlertingSettingsModel +func (r eventToReplayedFromUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantAlertingSettingsToTickerUpdateUnique) Tx() TenantAlertingSettingsUniqueTxResult { - v := newTenantAlertingSettingsUniqueTxResult() +func (r eventToReplayedFromUpdateUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantAlertingSettingsToTickerFindUnique) Delete() tenantAlertingSettingsToTickerDeleteUnique { - var v tenantAlertingSettingsToTickerDeleteUnique +func (r eventToReplayedFromFindUnique) Delete() eventToReplayedFromDeleteUnique { + var v eventToReplayedFromDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantAlertingSettings" + v.query.Model = "Event" return v } -type tenantAlertingSettingsToTickerDeleteUnique struct { +type eventToReplayedFromDeleteUnique struct { query builder.Query } -func (r tenantAlertingSettingsToTickerDeleteUnique) ExtractQuery() builder.Query { +func (r eventToReplayedFromDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantAlertingSettingsToTickerDeleteUnique) tenantAlertingSettingsModel() {} +func (p eventToReplayedFromDeleteUnique) eventModel() {} -func (r tenantAlertingSettingsToTickerDeleteUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { - var v TenantAlertingSettingsModel +func (r eventToReplayedFromDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantAlertingSettingsToTickerDeleteUnique) Tx() TenantAlertingSettingsUniqueTxResult { - v := newTenantAlertingSettingsUniqueTxResult() +func (r eventToReplayedFromDeleteUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantAlertingSettingsToTickerFindFirst struct { +type eventToReplayedFromFindFirst struct { query builder.Query } -func (r tenantAlertingSettingsToTickerFindFirst) getQuery() builder.Query { +func (r eventToReplayedFromFindFirst) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTickerFindFirst) ExtractQuery() builder.Query { +func (r eventToReplayedFromFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTickerFindFirst) with() {} -func (r tenantAlertingSettingsToTickerFindFirst) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsToTickerFindFirst) tenantAlertingSettingsRelation() {} +func (r eventToReplayedFromFindFirst) with() {} +func (r eventToReplayedFromFindFirst) eventModel() {} +func (r eventToReplayedFromFindFirst) eventRelation() {} -func (r tenantAlertingSettingsToTickerFindFirst) With(params ...TickerRelationWith) tenantAlertingSettingsToTickerFindFirst { +func (r eventToReplayedFromFindFirst) With(params ...EventRelationWith) eventToReplayedFromFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -266085,7 +291088,7 @@ func (r tenantAlertingSettingsToTickerFindFirst) With(params ...TickerRelationWi return r } -func (r tenantAlertingSettingsToTickerFindFirst) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindFirst { +func (r eventToReplayedFromFindFirst) Select(params ...eventPrismaFields) eventToReplayedFromFindFirst { var outputs []builder.Output for _, param := range params { @@ -266099,7 +291102,7 @@ func (r tenantAlertingSettingsToTickerFindFirst) Select(params ...tenantAlerting return r } -func (r tenantAlertingSettingsToTickerFindFirst) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindFirst { +func (r eventToReplayedFromFindFirst) Omit(params ...eventPrismaFields) eventToReplayedFromFindFirst { var outputs []builder.Output var raw []string @@ -266107,7 +291110,7 @@ func (r tenantAlertingSettingsToTickerFindFirst) Omit(params ...tenantAlertingSe raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -266118,7 +291121,7 @@ func (r tenantAlertingSettingsToTickerFindFirst) Omit(params ...tenantAlertingSe return r } -func (r tenantAlertingSettingsToTickerFindFirst) OrderBy(params ...TickerOrderByParam) tenantAlertingSettingsToTickerFindFirst { +func (r eventToReplayedFromFindFirst) OrderBy(params ...EventOrderByParam) eventToReplayedFromFindFirst { var fields []builder.Field for _, param := range params { @@ -266138,7 +291141,7 @@ func (r tenantAlertingSettingsToTickerFindFirst) OrderBy(params ...TickerOrderBy return r } -func (r tenantAlertingSettingsToTickerFindFirst) Skip(count int) tenantAlertingSettingsToTickerFindFirst { +func (r eventToReplayedFromFindFirst) Skip(count int) eventToReplayedFromFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -266146,7 +291149,7 @@ func (r tenantAlertingSettingsToTickerFindFirst) Skip(count int) tenantAlertingS return r } -func (r tenantAlertingSettingsToTickerFindFirst) Take(count int) tenantAlertingSettingsToTickerFindFirst { +func (r eventToReplayedFromFindFirst) Take(count int) eventToReplayedFromFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -266154,7 +291157,7 @@ func (r tenantAlertingSettingsToTickerFindFirst) Take(count int) tenantAlertingS return r } -func (r tenantAlertingSettingsToTickerFindFirst) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsToTickerFindFirst { +func (r eventToReplayedFromFindFirst) Cursor(cursor EventCursorParam) eventToReplayedFromFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -266162,11 +291165,11 @@ func (r tenantAlertingSettingsToTickerFindFirst) Cursor(cursor TenantAlertingSet return r } -func (r tenantAlertingSettingsToTickerFindFirst) Exec(ctx context.Context) ( - *TenantAlertingSettingsModel, +func (r eventToReplayedFromFindFirst) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantAlertingSettingsModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266178,11 +291181,11 @@ func (r tenantAlertingSettingsToTickerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsToTickerFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantAlertingSettings, +func (r eventToReplayedFromFindFirst) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantAlertingSettings + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266194,23 +291197,23 @@ func (r tenantAlertingSettingsToTickerFindFirst) ExecInner(ctx context.Context) return v, nil } -type tenantAlertingSettingsToTickerFindMany struct { +type eventToReplayedFromFindMany struct { query builder.Query } -func (r tenantAlertingSettingsToTickerFindMany) getQuery() builder.Query { +func (r eventToReplayedFromFindMany) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTickerFindMany) ExtractQuery() builder.Query { +func (r eventToReplayedFromFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTickerFindMany) with() {} -func (r tenantAlertingSettingsToTickerFindMany) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsToTickerFindMany) tenantAlertingSettingsRelation() {} +func (r eventToReplayedFromFindMany) with() {} +func (r eventToReplayedFromFindMany) eventModel() {} +func (r eventToReplayedFromFindMany) eventRelation() {} -func (r tenantAlertingSettingsToTickerFindMany) With(params ...TickerRelationWith) tenantAlertingSettingsToTickerFindMany { +func (r eventToReplayedFromFindMany) With(params ...EventRelationWith) eventToReplayedFromFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -266223,7 +291226,7 @@ func (r tenantAlertingSettingsToTickerFindMany) With(params ...TickerRelationWit return r } -func (r tenantAlertingSettingsToTickerFindMany) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindMany { +func (r eventToReplayedFromFindMany) Select(params ...eventPrismaFields) eventToReplayedFromFindMany { var outputs []builder.Output for _, param := range params { @@ -266237,7 +291240,7 @@ func (r tenantAlertingSettingsToTickerFindMany) Select(params ...tenantAlertingS return r } -func (r tenantAlertingSettingsToTickerFindMany) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsToTickerFindMany { +func (r eventToReplayedFromFindMany) Omit(params ...eventPrismaFields) eventToReplayedFromFindMany { var outputs []builder.Output var raw []string @@ -266245,7 +291248,7 @@ func (r tenantAlertingSettingsToTickerFindMany) Omit(params ...tenantAlertingSet raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -266256,7 +291259,7 @@ func (r tenantAlertingSettingsToTickerFindMany) Omit(params ...tenantAlertingSet return r } -func (r tenantAlertingSettingsToTickerFindMany) OrderBy(params ...TickerOrderByParam) tenantAlertingSettingsToTickerFindMany { +func (r eventToReplayedFromFindMany) OrderBy(params ...EventOrderByParam) eventToReplayedFromFindMany { var fields []builder.Field for _, param := range params { @@ -266276,7 +291279,7 @@ func (r tenantAlertingSettingsToTickerFindMany) OrderBy(params ...TickerOrderByP return r } -func (r tenantAlertingSettingsToTickerFindMany) Skip(count int) tenantAlertingSettingsToTickerFindMany { +func (r eventToReplayedFromFindMany) Skip(count int) eventToReplayedFromFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -266284,7 +291287,7 @@ func (r tenantAlertingSettingsToTickerFindMany) Skip(count int) tenantAlertingSe return r } -func (r tenantAlertingSettingsToTickerFindMany) Take(count int) tenantAlertingSettingsToTickerFindMany { +func (r eventToReplayedFromFindMany) Take(count int) eventToReplayedFromFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -266292,7 +291295,7 @@ func (r tenantAlertingSettingsToTickerFindMany) Take(count int) tenantAlertingSe return r } -func (r tenantAlertingSettingsToTickerFindMany) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsToTickerFindMany { +func (r eventToReplayedFromFindMany) Cursor(cursor EventCursorParam) eventToReplayedFromFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -266300,11 +291303,11 @@ func (r tenantAlertingSettingsToTickerFindMany) Cursor(cursor TenantAlertingSett return r } -func (r tenantAlertingSettingsToTickerFindMany) Exec(ctx context.Context) ( - []TenantAlertingSettingsModel, +func (r eventToReplayedFromFindMany) Exec(ctx context.Context) ( + []EventModel, error, ) { - var v []TenantAlertingSettingsModel + var v []EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266312,11 +291315,11 @@ func (r tenantAlertingSettingsToTickerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsToTickerFindMany) ExecInner(ctx context.Context) ( - []InnerTenantAlertingSettings, +func (r eventToReplayedFromFindMany) ExecInner(ctx context.Context) ( + []InnerEvent, error, ) { - var v []InnerTenantAlertingSettings + var v []InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266324,14 +291327,14 @@ func (r tenantAlertingSettingsToTickerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsToTickerFindMany) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsToTickerUpdateMany { +func (r eventToReplayedFromFindMany) Update(params ...EventSetParam) eventToReplayedFromUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantAlertingSettings" + r.query.Model = "Event" r.query.Outputs = countOutput - var v tenantAlertingSettingsToTickerUpdateMany + var v eventToReplayedFromUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -266360,17 +291363,17 @@ func (r tenantAlertingSettingsToTickerFindMany) Update(params ...TenantAlertingS return v } -type tenantAlertingSettingsToTickerUpdateMany struct { +type eventToReplayedFromUpdateMany struct { query builder.Query } -func (r tenantAlertingSettingsToTickerUpdateMany) ExtractQuery() builder.Query { +func (r eventToReplayedFromUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsToTickerUpdateMany) tenantAlertingSettingsModel() {} +func (r eventToReplayedFromUpdateMany) eventModel() {} -func (r tenantAlertingSettingsToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventToReplayedFromUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -266378,36 +291381,36 @@ func (r tenantAlertingSettingsToTickerUpdateMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r tenantAlertingSettingsToTickerUpdateMany) Tx() TenantAlertingSettingsManyTxResult { - v := newTenantAlertingSettingsManyTxResult() +func (r eventToReplayedFromUpdateMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantAlertingSettingsToTickerFindMany) Delete() tenantAlertingSettingsToTickerDeleteMany { - var v tenantAlertingSettingsToTickerDeleteMany +func (r eventToReplayedFromFindMany) Delete() eventToReplayedFromDeleteMany { + var v eventToReplayedFromDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantAlertingSettings" + v.query.Model = "Event" v.query.Outputs = countOutput return v } -type tenantAlertingSettingsToTickerDeleteMany struct { +type eventToReplayedFromDeleteMany struct { query builder.Query } -func (r tenantAlertingSettingsToTickerDeleteMany) ExtractQuery() builder.Query { +func (r eventToReplayedFromDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantAlertingSettingsToTickerDeleteMany) tenantAlertingSettingsModel() {} +func (p eventToReplayedFromDeleteMany) eventModel() {} -func (r tenantAlertingSettingsToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventToReplayedFromDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -266415,52 +291418,30 @@ func (r tenantAlertingSettingsToTickerDeleteMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r tenantAlertingSettingsToTickerDeleteMany) Tx() TenantAlertingSettingsManyTxResult { - v := newTenantAlertingSettingsManyTxResult() +func (r eventToReplayedFromDeleteMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantAlertingSettingsFindUnique struct { +type eventToReplaysFindUnique struct { query builder.Query } -func (r tenantAlertingSettingsFindUnique) getQuery() builder.Query { +func (r eventToReplaysFindUnique) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsFindUnique) ExtractQuery() builder.Query { +func (r eventToReplaysFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsFindUnique) with() {} -func (r tenantAlertingSettingsFindUnique) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsFindUnique) tenantAlertingSettingsRelation() {} - -func (r tenantAlertingSettingsActions) FindUnique( - params TenantAlertingSettingsEqualsUniqueWhereParam, -) tenantAlertingSettingsFindUnique { - var v tenantAlertingSettingsFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "TenantAlertingSettings" - v.query.Outputs = tenantAlertingSettingsOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r eventToReplaysFindUnique) with() {} +func (r eventToReplaysFindUnique) eventModel() {} +func (r eventToReplaysFindUnique) eventRelation() {} -func (r tenantAlertingSettingsFindUnique) With(params ...TenantAlertingSettingsRelationWith) tenantAlertingSettingsFindUnique { +func (r eventToReplaysFindUnique) With(params ...EventRelationWith) eventToReplaysFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -266473,7 +291454,7 @@ func (r tenantAlertingSettingsFindUnique) With(params ...TenantAlertingSettingsR return r } -func (r tenantAlertingSettingsFindUnique) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindUnique { +func (r eventToReplaysFindUnique) Select(params ...eventPrismaFields) eventToReplaysFindUnique { var outputs []builder.Output for _, param := range params { @@ -266487,7 +291468,7 @@ func (r tenantAlertingSettingsFindUnique) Select(params ...tenantAlertingSetting return r } -func (r tenantAlertingSettingsFindUnique) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindUnique { +func (r eventToReplaysFindUnique) Omit(params ...eventPrismaFields) eventToReplaysFindUnique { var outputs []builder.Output var raw []string @@ -266495,7 +291476,7 @@ func (r tenantAlertingSettingsFindUnique) Omit(params ...tenantAlertingSettingsP raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -266506,11 +291487,11 @@ func (r tenantAlertingSettingsFindUnique) Omit(params ...tenantAlertingSettingsP return r } -func (r tenantAlertingSettingsFindUnique) Exec(ctx context.Context) ( - *TenantAlertingSettingsModel, +func (r eventToReplaysFindUnique) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantAlertingSettingsModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266522,11 +291503,11 @@ func (r tenantAlertingSettingsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantAlertingSettings, +func (r eventToReplaysFindUnique) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantAlertingSettings + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266538,12 +291519,12 @@ func (r tenantAlertingSettingsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsFindUnique) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsUpdateUnique { +func (r eventToReplaysFindUnique) Update(params ...EventSetParam) eventToReplaysUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantAlertingSettings" + r.query.Model = "Event" - var v tenantAlertingSettingsUpdateUnique + var v eventToReplaysUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -266572,120 +291553,83 @@ func (r tenantAlertingSettingsFindUnique) Update(params ...TenantAlertingSetting return v } -type tenantAlertingSettingsUpdateUnique struct { +type eventToReplaysUpdateUnique struct { query builder.Query } -func (r tenantAlertingSettingsUpdateUnique) ExtractQuery() builder.Query { +func (r eventToReplaysUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsUpdateUnique) tenantAlertingSettingsModel() {} +func (r eventToReplaysUpdateUnique) eventModel() {} -func (r tenantAlertingSettingsUpdateUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { - var v TenantAlertingSettingsModel +func (r eventToReplaysUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantAlertingSettingsUpdateUnique) Tx() TenantAlertingSettingsUniqueTxResult { - v := newTenantAlertingSettingsUniqueTxResult() +func (r eventToReplaysUpdateUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantAlertingSettingsFindUnique) Delete() tenantAlertingSettingsDeleteUnique { - var v tenantAlertingSettingsDeleteUnique +func (r eventToReplaysFindUnique) Delete() eventToReplaysDeleteUnique { + var v eventToReplaysDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantAlertingSettings" + v.query.Model = "Event" return v } -type tenantAlertingSettingsDeleteUnique struct { +type eventToReplaysDeleteUnique struct { query builder.Query } -func (r tenantAlertingSettingsDeleteUnique) ExtractQuery() builder.Query { +func (r eventToReplaysDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantAlertingSettingsDeleteUnique) tenantAlertingSettingsModel() {} +func (p eventToReplaysDeleteUnique) eventModel() {} -func (r tenantAlertingSettingsDeleteUnique) Exec(ctx context.Context) (*TenantAlertingSettingsModel, error) { - var v TenantAlertingSettingsModel +func (r eventToReplaysDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantAlertingSettingsDeleteUnique) Tx() TenantAlertingSettingsUniqueTxResult { - v := newTenantAlertingSettingsUniqueTxResult() +func (r eventToReplaysDeleteUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantAlertingSettingsFindFirst struct { +type eventToReplaysFindFirst struct { query builder.Query } -func (r tenantAlertingSettingsFindFirst) getQuery() builder.Query { +func (r eventToReplaysFindFirst) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsFindFirst) ExtractQuery() builder.Query { +func (r eventToReplaysFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsFindFirst) with() {} -func (r tenantAlertingSettingsFindFirst) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsFindFirst) tenantAlertingSettingsRelation() {} - -func (r tenantAlertingSettingsActions) FindFirst( - params ...TenantAlertingSettingsWhereParam, -) tenantAlertingSettingsFindFirst { - var v tenantAlertingSettingsFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "TenantAlertingSettings" - v.query.Outputs = tenantAlertingSettingsOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r eventToReplaysFindFirst) with() {} +func (r eventToReplaysFindFirst) eventModel() {} +func (r eventToReplaysFindFirst) eventRelation() {} -func (r tenantAlertingSettingsFindFirst) With(params ...TenantAlertingSettingsRelationWith) tenantAlertingSettingsFindFirst { +func (r eventToReplaysFindFirst) With(params ...EventRelationWith) eventToReplaysFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -266698,7 +291642,7 @@ func (r tenantAlertingSettingsFindFirst) With(params ...TenantAlertingSettingsRe return r } -func (r tenantAlertingSettingsFindFirst) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindFirst { +func (r eventToReplaysFindFirst) Select(params ...eventPrismaFields) eventToReplaysFindFirst { var outputs []builder.Output for _, param := range params { @@ -266712,7 +291656,7 @@ func (r tenantAlertingSettingsFindFirst) Select(params ...tenantAlertingSettings return r } -func (r tenantAlertingSettingsFindFirst) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindFirst { +func (r eventToReplaysFindFirst) Omit(params ...eventPrismaFields) eventToReplaysFindFirst { var outputs []builder.Output var raw []string @@ -266720,7 +291664,7 @@ func (r tenantAlertingSettingsFindFirst) Omit(params ...tenantAlertingSettingsPr raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -266731,7 +291675,7 @@ func (r tenantAlertingSettingsFindFirst) Omit(params ...tenantAlertingSettingsPr return r } -func (r tenantAlertingSettingsFindFirst) OrderBy(params ...TenantAlertingSettingsOrderByParam) tenantAlertingSettingsFindFirst { +func (r eventToReplaysFindFirst) OrderBy(params ...EventOrderByParam) eventToReplaysFindFirst { var fields []builder.Field for _, param := range params { @@ -266751,7 +291695,7 @@ func (r tenantAlertingSettingsFindFirst) OrderBy(params ...TenantAlertingSetting return r } -func (r tenantAlertingSettingsFindFirst) Skip(count int) tenantAlertingSettingsFindFirst { +func (r eventToReplaysFindFirst) Skip(count int) eventToReplaysFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -266759,7 +291703,7 @@ func (r tenantAlertingSettingsFindFirst) Skip(count int) tenantAlertingSettingsF return r } -func (r tenantAlertingSettingsFindFirst) Take(count int) tenantAlertingSettingsFindFirst { +func (r eventToReplaysFindFirst) Take(count int) eventToReplaysFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -266767,7 +291711,7 @@ func (r tenantAlertingSettingsFindFirst) Take(count int) tenantAlertingSettingsF return r } -func (r tenantAlertingSettingsFindFirst) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsFindFirst { +func (r eventToReplaysFindFirst) Cursor(cursor EventCursorParam) eventToReplaysFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -266775,11 +291719,11 @@ func (r tenantAlertingSettingsFindFirst) Cursor(cursor TenantAlertingSettingsCur return r } -func (r tenantAlertingSettingsFindFirst) Exec(ctx context.Context) ( - *TenantAlertingSettingsModel, +func (r eventToReplaysFindFirst) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantAlertingSettingsModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266791,11 +291735,11 @@ func (r tenantAlertingSettingsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantAlertingSettings, +func (r eventToReplaysFindFirst) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantAlertingSettings + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266807,60 +291751,23 @@ func (r tenantAlertingSettingsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantAlertingSettingsFindMany struct { +type eventToReplaysFindMany struct { query builder.Query } -func (r tenantAlertingSettingsFindMany) getQuery() builder.Query { +func (r eventToReplaysFindMany) getQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsFindMany) ExtractQuery() builder.Query { +func (r eventToReplaysFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsFindMany) with() {} -func (r tenantAlertingSettingsFindMany) tenantAlertingSettingsModel() {} -func (r tenantAlertingSettingsFindMany) tenantAlertingSettingsRelation() {} - -func (r tenantAlertingSettingsActions) FindMany( - params ...TenantAlertingSettingsWhereParam, -) tenantAlertingSettingsFindMany { - var v tenantAlertingSettingsFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "TenantAlertingSettings" - v.query.Outputs = tenantAlertingSettingsOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r eventToReplaysFindMany) with() {} +func (r eventToReplaysFindMany) eventModel() {} +func (r eventToReplaysFindMany) eventRelation() {} -func (r tenantAlertingSettingsFindMany) With(params ...TenantAlertingSettingsRelationWith) tenantAlertingSettingsFindMany { +func (r eventToReplaysFindMany) With(params ...EventRelationWith) eventToReplaysFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -266873,7 +291780,7 @@ func (r tenantAlertingSettingsFindMany) With(params ...TenantAlertingSettingsRel return r } -func (r tenantAlertingSettingsFindMany) Select(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindMany { +func (r eventToReplaysFindMany) Select(params ...eventPrismaFields) eventToReplaysFindMany { var outputs []builder.Output for _, param := range params { @@ -266887,7 +291794,7 @@ func (r tenantAlertingSettingsFindMany) Select(params ...tenantAlertingSettingsP return r } -func (r tenantAlertingSettingsFindMany) Omit(params ...tenantAlertingSettingsPrismaFields) tenantAlertingSettingsFindMany { +func (r eventToReplaysFindMany) Omit(params ...eventPrismaFields) eventToReplaysFindMany { var outputs []builder.Output var raw []string @@ -266895,7 +291802,7 @@ func (r tenantAlertingSettingsFindMany) Omit(params ...tenantAlertingSettingsPri raw = append(raw, string(param)) } - for _, output := range tenantAlertingSettingsOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -266906,7 +291813,7 @@ func (r tenantAlertingSettingsFindMany) Omit(params ...tenantAlertingSettingsPri return r } -func (r tenantAlertingSettingsFindMany) OrderBy(params ...TenantAlertingSettingsOrderByParam) tenantAlertingSettingsFindMany { +func (r eventToReplaysFindMany) OrderBy(params ...EventOrderByParam) eventToReplaysFindMany { var fields []builder.Field for _, param := range params { @@ -266926,7 +291833,7 @@ func (r tenantAlertingSettingsFindMany) OrderBy(params ...TenantAlertingSettings return r } -func (r tenantAlertingSettingsFindMany) Skip(count int) tenantAlertingSettingsFindMany { +func (r eventToReplaysFindMany) Skip(count int) eventToReplaysFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -266934,7 +291841,7 @@ func (r tenantAlertingSettingsFindMany) Skip(count int) tenantAlertingSettingsFi return r } -func (r tenantAlertingSettingsFindMany) Take(count int) tenantAlertingSettingsFindMany { +func (r eventToReplaysFindMany) Take(count int) eventToReplaysFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -266942,7 +291849,7 @@ func (r tenantAlertingSettingsFindMany) Take(count int) tenantAlertingSettingsFi return r } -func (r tenantAlertingSettingsFindMany) Cursor(cursor TenantAlertingSettingsCursorParam) tenantAlertingSettingsFindMany { +func (r eventToReplaysFindMany) Cursor(cursor EventCursorParam) eventToReplaysFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -266950,11 +291857,11 @@ func (r tenantAlertingSettingsFindMany) Cursor(cursor TenantAlertingSettingsCurs return r } -func (r tenantAlertingSettingsFindMany) Exec(ctx context.Context) ( - []TenantAlertingSettingsModel, +func (r eventToReplaysFindMany) Exec(ctx context.Context) ( + []EventModel, error, ) { - var v []TenantAlertingSettingsModel + var v []EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266962,11 +291869,11 @@ func (r tenantAlertingSettingsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsFindMany) ExecInner(ctx context.Context) ( - []InnerTenantAlertingSettings, +func (r eventToReplaysFindMany) ExecInner(ctx context.Context) ( + []InnerEvent, error, ) { - var v []InnerTenantAlertingSettings + var v []InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -266974,14 +291881,14 @@ func (r tenantAlertingSettingsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantAlertingSettingsFindMany) Update(params ...TenantAlertingSettingsSetParam) tenantAlertingSettingsUpdateMany { +func (r eventToReplaysFindMany) Update(params ...EventSetParam) eventToReplaysUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantAlertingSettings" + r.query.Model = "Event" r.query.Outputs = countOutput - var v tenantAlertingSettingsUpdateMany + var v eventToReplaysUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -267010,17 +291917,17 @@ func (r tenantAlertingSettingsFindMany) Update(params ...TenantAlertingSettingsS return v } -type tenantAlertingSettingsUpdateMany struct { +type eventToReplaysUpdateMany struct { query builder.Query } -func (r tenantAlertingSettingsUpdateMany) ExtractQuery() builder.Query { +func (r eventToReplaysUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantAlertingSettingsUpdateMany) tenantAlertingSettingsModel() {} +func (r eventToReplaysUpdateMany) eventModel() {} -func (r tenantAlertingSettingsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventToReplaysUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -267028,36 +291935,36 @@ func (r tenantAlertingSettingsUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r tenantAlertingSettingsUpdateMany) Tx() TenantAlertingSettingsManyTxResult { - v := newTenantAlertingSettingsManyTxResult() +func (r eventToReplaysUpdateMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantAlertingSettingsFindMany) Delete() tenantAlertingSettingsDeleteMany { - var v tenantAlertingSettingsDeleteMany +func (r eventToReplaysFindMany) Delete() eventToReplaysDeleteMany { + var v eventToReplaysDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantAlertingSettings" + v.query.Model = "Event" v.query.Outputs = countOutput return v } -type tenantAlertingSettingsDeleteMany struct { +type eventToReplaysDeleteMany struct { query builder.Query } -func (r tenantAlertingSettingsDeleteMany) ExtractQuery() builder.Query { +func (r eventToReplaysDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantAlertingSettingsDeleteMany) tenantAlertingSettingsModel() {} +func (p eventToReplaysDeleteMany) eventModel() {} -func (r tenantAlertingSettingsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventToReplaysDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -267065,30 +291972,30 @@ func (r tenantAlertingSettingsDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r tenantAlertingSettingsDeleteMany) Tx() TenantAlertingSettingsManyTxResult { - v := newTenantAlertingSettingsManyTxResult() +func (r eventToReplaysDeleteMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantMemberToTenantFindUnique struct { +type eventToWorkflowRunsFindUnique struct { query builder.Query } -func (r tenantMemberToTenantFindUnique) getQuery() builder.Query { +func (r eventToWorkflowRunsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantMemberToTenantFindUnique) ExtractQuery() builder.Query { +func (r eventToWorkflowRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToTenantFindUnique) with() {} -func (r tenantMemberToTenantFindUnique) tenantMemberModel() {} -func (r tenantMemberToTenantFindUnique) tenantMemberRelation() {} +func (r eventToWorkflowRunsFindUnique) with() {} +func (r eventToWorkflowRunsFindUnique) eventModel() {} +func (r eventToWorkflowRunsFindUnique) eventRelation() {} -func (r tenantMemberToTenantFindUnique) With(params ...TenantRelationWith) tenantMemberToTenantFindUnique { +func (r eventToWorkflowRunsFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) eventToWorkflowRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -267101,7 +292008,7 @@ func (r tenantMemberToTenantFindUnique) With(params ...TenantRelationWith) tenan return r } -func (r tenantMemberToTenantFindUnique) Select(params ...tenantMemberPrismaFields) tenantMemberToTenantFindUnique { +func (r eventToWorkflowRunsFindUnique) Select(params ...eventPrismaFields) eventToWorkflowRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -267115,7 +292022,7 @@ func (r tenantMemberToTenantFindUnique) Select(params ...tenantMemberPrismaField return r } -func (r tenantMemberToTenantFindUnique) Omit(params ...tenantMemberPrismaFields) tenantMemberToTenantFindUnique { +func (r eventToWorkflowRunsFindUnique) Omit(params ...eventPrismaFields) eventToWorkflowRunsFindUnique { var outputs []builder.Output var raw []string @@ -267123,7 +292030,7 @@ func (r tenantMemberToTenantFindUnique) Omit(params ...tenantMemberPrismaFields) raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -267134,11 +292041,11 @@ func (r tenantMemberToTenantFindUnique) Omit(params ...tenantMemberPrismaFields) return r } -func (r tenantMemberToTenantFindUnique) Exec(ctx context.Context) ( - *TenantMemberModel, +func (r eventToWorkflowRunsFindUnique) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantMemberModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267150,11 +292057,11 @@ func (r tenantMemberToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantMember, +func (r eventToWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantMember + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267166,12 +292073,12 @@ func (r tenantMemberToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantMemberToTenantFindUnique) Update(params ...TenantMemberSetParam) tenantMemberToTenantUpdateUnique { +func (r eventToWorkflowRunsFindUnique) Update(params ...EventSetParam) eventToWorkflowRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantMember" + r.query.Model = "Event" - var v tenantMemberToTenantUpdateUnique + var v eventToWorkflowRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -267200,83 +292107,83 @@ func (r tenantMemberToTenantFindUnique) Update(params ...TenantMemberSetParam) t return v } -type tenantMemberToTenantUpdateUnique struct { +type eventToWorkflowRunsUpdateUnique struct { query builder.Query } -func (r tenantMemberToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r eventToWorkflowRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToTenantUpdateUnique) tenantMemberModel() {} +func (r eventToWorkflowRunsUpdateUnique) eventModel() {} -func (r tenantMemberToTenantUpdateUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { - var v TenantMemberModel +func (r eventToWorkflowRunsUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantMemberToTenantUpdateUnique) Tx() TenantMemberUniqueTxResult { - v := newTenantMemberUniqueTxResult() +func (r eventToWorkflowRunsUpdateUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantMemberToTenantFindUnique) Delete() tenantMemberToTenantDeleteUnique { - var v tenantMemberToTenantDeleteUnique +func (r eventToWorkflowRunsFindUnique) Delete() eventToWorkflowRunsDeleteUnique { + var v eventToWorkflowRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantMember" + v.query.Model = "Event" return v } -type tenantMemberToTenantDeleteUnique struct { +type eventToWorkflowRunsDeleteUnique struct { query builder.Query } -func (r tenantMemberToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r eventToWorkflowRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantMemberToTenantDeleteUnique) tenantMemberModel() {} +func (p eventToWorkflowRunsDeleteUnique) eventModel() {} -func (r tenantMemberToTenantDeleteUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { - var v TenantMemberModel +func (r eventToWorkflowRunsDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantMemberToTenantDeleteUnique) Tx() TenantMemberUniqueTxResult { - v := newTenantMemberUniqueTxResult() +func (r eventToWorkflowRunsDeleteUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantMemberToTenantFindFirst struct { +type eventToWorkflowRunsFindFirst struct { query builder.Query } -func (r tenantMemberToTenantFindFirst) getQuery() builder.Query { +func (r eventToWorkflowRunsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantMemberToTenantFindFirst) ExtractQuery() builder.Query { +func (r eventToWorkflowRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToTenantFindFirst) with() {} -func (r tenantMemberToTenantFindFirst) tenantMemberModel() {} -func (r tenantMemberToTenantFindFirst) tenantMemberRelation() {} +func (r eventToWorkflowRunsFindFirst) with() {} +func (r eventToWorkflowRunsFindFirst) eventModel() {} +func (r eventToWorkflowRunsFindFirst) eventRelation() {} -func (r tenantMemberToTenantFindFirst) With(params ...TenantRelationWith) tenantMemberToTenantFindFirst { +func (r eventToWorkflowRunsFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) eventToWorkflowRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -267289,7 +292196,7 @@ func (r tenantMemberToTenantFindFirst) With(params ...TenantRelationWith) tenant return r } -func (r tenantMemberToTenantFindFirst) Select(params ...tenantMemberPrismaFields) tenantMemberToTenantFindFirst { +func (r eventToWorkflowRunsFindFirst) Select(params ...eventPrismaFields) eventToWorkflowRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -267303,7 +292210,7 @@ func (r tenantMemberToTenantFindFirst) Select(params ...tenantMemberPrismaFields return r } -func (r tenantMemberToTenantFindFirst) Omit(params ...tenantMemberPrismaFields) tenantMemberToTenantFindFirst { +func (r eventToWorkflowRunsFindFirst) Omit(params ...eventPrismaFields) eventToWorkflowRunsFindFirst { var outputs []builder.Output var raw []string @@ -267311,7 +292218,7 @@ func (r tenantMemberToTenantFindFirst) Omit(params ...tenantMemberPrismaFields) raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -267322,7 +292229,7 @@ func (r tenantMemberToTenantFindFirst) Omit(params ...tenantMemberPrismaFields) return r } -func (r tenantMemberToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantMemberToTenantFindFirst { +func (r eventToWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) eventToWorkflowRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -267342,7 +292249,7 @@ func (r tenantMemberToTenantFindFirst) OrderBy(params ...TenantOrderByParam) ten return r } -func (r tenantMemberToTenantFindFirst) Skip(count int) tenantMemberToTenantFindFirst { +func (r eventToWorkflowRunsFindFirst) Skip(count int) eventToWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -267350,7 +292257,7 @@ func (r tenantMemberToTenantFindFirst) Skip(count int) tenantMemberToTenantFindF return r } -func (r tenantMemberToTenantFindFirst) Take(count int) tenantMemberToTenantFindFirst { +func (r eventToWorkflowRunsFindFirst) Take(count int) eventToWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -267358,7 +292265,7 @@ func (r tenantMemberToTenantFindFirst) Take(count int) tenantMemberToTenantFindF return r } -func (r tenantMemberToTenantFindFirst) Cursor(cursor TenantMemberCursorParam) tenantMemberToTenantFindFirst { +func (r eventToWorkflowRunsFindFirst) Cursor(cursor EventCursorParam) eventToWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -267366,11 +292273,11 @@ func (r tenantMemberToTenantFindFirst) Cursor(cursor TenantMemberCursorParam) te return r } -func (r tenantMemberToTenantFindFirst) Exec(ctx context.Context) ( - *TenantMemberModel, +func (r eventToWorkflowRunsFindFirst) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantMemberModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267382,11 +292289,11 @@ func (r tenantMemberToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantMember, +func (r eventToWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantMember + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267398,23 +292305,23 @@ func (r tenantMemberToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantMemberToTenantFindMany struct { +type eventToWorkflowRunsFindMany struct { query builder.Query } -func (r tenantMemberToTenantFindMany) getQuery() builder.Query { +func (r eventToWorkflowRunsFindMany) getQuery() builder.Query { return r.query } -func (r tenantMemberToTenantFindMany) ExtractQuery() builder.Query { +func (r eventToWorkflowRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToTenantFindMany) with() {} -func (r tenantMemberToTenantFindMany) tenantMemberModel() {} -func (r tenantMemberToTenantFindMany) tenantMemberRelation() {} +func (r eventToWorkflowRunsFindMany) with() {} +func (r eventToWorkflowRunsFindMany) eventModel() {} +func (r eventToWorkflowRunsFindMany) eventRelation() {} -func (r tenantMemberToTenantFindMany) With(params ...TenantRelationWith) tenantMemberToTenantFindMany { +func (r eventToWorkflowRunsFindMany) With(params ...WorkflowRunTriggeredByRelationWith) eventToWorkflowRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -267427,7 +292334,7 @@ func (r tenantMemberToTenantFindMany) With(params ...TenantRelationWith) tenantM return r } -func (r tenantMemberToTenantFindMany) Select(params ...tenantMemberPrismaFields) tenantMemberToTenantFindMany { +func (r eventToWorkflowRunsFindMany) Select(params ...eventPrismaFields) eventToWorkflowRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -267441,7 +292348,7 @@ func (r tenantMemberToTenantFindMany) Select(params ...tenantMemberPrismaFields) return r } -func (r tenantMemberToTenantFindMany) Omit(params ...tenantMemberPrismaFields) tenantMemberToTenantFindMany { +func (r eventToWorkflowRunsFindMany) Omit(params ...eventPrismaFields) eventToWorkflowRunsFindMany { var outputs []builder.Output var raw []string @@ -267449,7 +292356,7 @@ func (r tenantMemberToTenantFindMany) Omit(params ...tenantMemberPrismaFields) t raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -267460,7 +292367,7 @@ func (r tenantMemberToTenantFindMany) Omit(params ...tenantMemberPrismaFields) t return r } -func (r tenantMemberToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantMemberToTenantFindMany { +func (r eventToWorkflowRunsFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) eventToWorkflowRunsFindMany { var fields []builder.Field for _, param := range params { @@ -267480,7 +292387,7 @@ func (r tenantMemberToTenantFindMany) OrderBy(params ...TenantOrderByParam) tena return r } -func (r tenantMemberToTenantFindMany) Skip(count int) tenantMemberToTenantFindMany { +func (r eventToWorkflowRunsFindMany) Skip(count int) eventToWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -267488,7 +292395,7 @@ func (r tenantMemberToTenantFindMany) Skip(count int) tenantMemberToTenantFindMa return r } -func (r tenantMemberToTenantFindMany) Take(count int) tenantMemberToTenantFindMany { +func (r eventToWorkflowRunsFindMany) Take(count int) eventToWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -267496,7 +292403,7 @@ func (r tenantMemberToTenantFindMany) Take(count int) tenantMemberToTenantFindMa return r } -func (r tenantMemberToTenantFindMany) Cursor(cursor TenantMemberCursorParam) tenantMemberToTenantFindMany { +func (r eventToWorkflowRunsFindMany) Cursor(cursor EventCursorParam) eventToWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -267504,11 +292411,11 @@ func (r tenantMemberToTenantFindMany) Cursor(cursor TenantMemberCursorParam) ten return r } -func (r tenantMemberToTenantFindMany) Exec(ctx context.Context) ( - []TenantMemberModel, +func (r eventToWorkflowRunsFindMany) Exec(ctx context.Context) ( + []EventModel, error, ) { - var v []TenantMemberModel + var v []EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267516,11 +292423,11 @@ func (r tenantMemberToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerTenantMember, +func (r eventToWorkflowRunsFindMany) ExecInner(ctx context.Context) ( + []InnerEvent, error, ) { - var v []InnerTenantMember + var v []InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267528,14 +292435,14 @@ func (r tenantMemberToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantMemberToTenantFindMany) Update(params ...TenantMemberSetParam) tenantMemberToTenantUpdateMany { +func (r eventToWorkflowRunsFindMany) Update(params ...EventSetParam) eventToWorkflowRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantMember" + r.query.Model = "Event" r.query.Outputs = countOutput - var v tenantMemberToTenantUpdateMany + var v eventToWorkflowRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -267564,17 +292471,17 @@ func (r tenantMemberToTenantFindMany) Update(params ...TenantMemberSetParam) ten return v } -type tenantMemberToTenantUpdateMany struct { +type eventToWorkflowRunsUpdateMany struct { query builder.Query } -func (r tenantMemberToTenantUpdateMany) ExtractQuery() builder.Query { +func (r eventToWorkflowRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToTenantUpdateMany) tenantMemberModel() {} +func (r eventToWorkflowRunsUpdateMany) eventModel() {} -func (r tenantMemberToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventToWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -267582,36 +292489,36 @@ func (r tenantMemberToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantMemberToTenantUpdateMany) Tx() TenantMemberManyTxResult { - v := newTenantMemberManyTxResult() +func (r eventToWorkflowRunsUpdateMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantMemberToTenantFindMany) Delete() tenantMemberToTenantDeleteMany { - var v tenantMemberToTenantDeleteMany +func (r eventToWorkflowRunsFindMany) Delete() eventToWorkflowRunsDeleteMany { + var v eventToWorkflowRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantMember" + v.query.Model = "Event" v.query.Outputs = countOutput return v } -type tenantMemberToTenantDeleteMany struct { +type eventToWorkflowRunsDeleteMany struct { query builder.Query } -func (r tenantMemberToTenantDeleteMany) ExtractQuery() builder.Query { +func (r eventToWorkflowRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantMemberToTenantDeleteMany) tenantMemberModel() {} +func (p eventToWorkflowRunsDeleteMany) eventModel() {} -func (r tenantMemberToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventToWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -267619,30 +292526,52 @@ func (r tenantMemberToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tenantMemberToTenantDeleteMany) Tx() TenantMemberManyTxResult { - v := newTenantMemberManyTxResult() +func (r eventToWorkflowRunsDeleteMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantMemberToUserFindUnique struct { +type eventFindUnique struct { query builder.Query } -func (r tenantMemberToUserFindUnique) getQuery() builder.Query { +func (r eventFindUnique) getQuery() builder.Query { return r.query } -func (r tenantMemberToUserFindUnique) ExtractQuery() builder.Query { +func (r eventFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToUserFindUnique) with() {} -func (r tenantMemberToUserFindUnique) tenantMemberModel() {} -func (r tenantMemberToUserFindUnique) tenantMemberRelation() {} +func (r eventFindUnique) with() {} +func (r eventFindUnique) eventModel() {} +func (r eventFindUnique) eventRelation() {} -func (r tenantMemberToUserFindUnique) With(params ...UserRelationWith) tenantMemberToUserFindUnique { +func (r eventActions) FindUnique( + params EventEqualsUniqueWhereParam, +) eventFindUnique { + var v eventFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "Event" + v.query.Outputs = eventOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r eventFindUnique) With(params ...EventRelationWith) eventFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -267655,7 +292584,7 @@ func (r tenantMemberToUserFindUnique) With(params ...UserRelationWith) tenantMem return r } -func (r tenantMemberToUserFindUnique) Select(params ...tenantMemberPrismaFields) tenantMemberToUserFindUnique { +func (r eventFindUnique) Select(params ...eventPrismaFields) eventFindUnique { var outputs []builder.Output for _, param := range params { @@ -267669,7 +292598,7 @@ func (r tenantMemberToUserFindUnique) Select(params ...tenantMemberPrismaFields) return r } -func (r tenantMemberToUserFindUnique) Omit(params ...tenantMemberPrismaFields) tenantMemberToUserFindUnique { +func (r eventFindUnique) Omit(params ...eventPrismaFields) eventFindUnique { var outputs []builder.Output var raw []string @@ -267677,7 +292606,7 @@ func (r tenantMemberToUserFindUnique) Omit(params ...tenantMemberPrismaFields) t raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -267688,11 +292617,11 @@ func (r tenantMemberToUserFindUnique) Omit(params ...tenantMemberPrismaFields) t return r } -func (r tenantMemberToUserFindUnique) Exec(ctx context.Context) ( - *TenantMemberModel, +func (r eventFindUnique) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantMemberModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267704,11 +292633,11 @@ func (r tenantMemberToUserFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberToUserFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantMember, +func (r eventFindUnique) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantMember + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267720,12 +292649,12 @@ func (r tenantMemberToUserFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantMemberToUserFindUnique) Update(params ...TenantMemberSetParam) tenantMemberToUserUpdateUnique { +func (r eventFindUnique) Update(params ...EventSetParam) eventUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantMember" + r.query.Model = "Event" - var v tenantMemberToUserUpdateUnique + var v eventUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -267754,83 +292683,120 @@ func (r tenantMemberToUserFindUnique) Update(params ...TenantMemberSetParam) ten return v } -type tenantMemberToUserUpdateUnique struct { +type eventUpdateUnique struct { query builder.Query } -func (r tenantMemberToUserUpdateUnique) ExtractQuery() builder.Query { +func (r eventUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToUserUpdateUnique) tenantMemberModel() {} +func (r eventUpdateUnique) eventModel() {} -func (r tenantMemberToUserUpdateUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { - var v TenantMemberModel +func (r eventUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantMemberToUserUpdateUnique) Tx() TenantMemberUniqueTxResult { - v := newTenantMemberUniqueTxResult() +func (r eventUpdateUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantMemberToUserFindUnique) Delete() tenantMemberToUserDeleteUnique { - var v tenantMemberToUserDeleteUnique +func (r eventFindUnique) Delete() eventDeleteUnique { + var v eventDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantMember" + v.query.Model = "Event" return v } -type tenantMemberToUserDeleteUnique struct { +type eventDeleteUnique struct { query builder.Query } -func (r tenantMemberToUserDeleteUnique) ExtractQuery() builder.Query { +func (r eventDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantMemberToUserDeleteUnique) tenantMemberModel() {} +func (p eventDeleteUnique) eventModel() {} -func (r tenantMemberToUserDeleteUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { - var v TenantMemberModel +func (r eventDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { + var v EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantMemberToUserDeleteUnique) Tx() TenantMemberUniqueTxResult { - v := newTenantMemberUniqueTxResult() +func (r eventDeleteUnique) Tx() EventUniqueTxResult { + v := newEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantMemberToUserFindFirst struct { +type eventFindFirst struct { query builder.Query } -func (r tenantMemberToUserFindFirst) getQuery() builder.Query { +func (r eventFindFirst) getQuery() builder.Query { return r.query } -func (r tenantMemberToUserFindFirst) ExtractQuery() builder.Query { +func (r eventFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToUserFindFirst) with() {} -func (r tenantMemberToUserFindFirst) tenantMemberModel() {} -func (r tenantMemberToUserFindFirst) tenantMemberRelation() {} +func (r eventFindFirst) with() {} +func (r eventFindFirst) eventModel() {} +func (r eventFindFirst) eventRelation() {} -func (r tenantMemberToUserFindFirst) With(params ...UserRelationWith) tenantMemberToUserFindFirst { +func (r eventActions) FindFirst( + params ...EventWhereParam, +) eventFindFirst { + var v eventFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "Event" + v.query.Outputs = eventOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r eventFindFirst) With(params ...EventRelationWith) eventFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -267843,7 +292809,7 @@ func (r tenantMemberToUserFindFirst) With(params ...UserRelationWith) tenantMemb return r } -func (r tenantMemberToUserFindFirst) Select(params ...tenantMemberPrismaFields) tenantMemberToUserFindFirst { +func (r eventFindFirst) Select(params ...eventPrismaFields) eventFindFirst { var outputs []builder.Output for _, param := range params { @@ -267857,7 +292823,7 @@ func (r tenantMemberToUserFindFirst) Select(params ...tenantMemberPrismaFields) return r } -func (r tenantMemberToUserFindFirst) Omit(params ...tenantMemberPrismaFields) tenantMemberToUserFindFirst { +func (r eventFindFirst) Omit(params ...eventPrismaFields) eventFindFirst { var outputs []builder.Output var raw []string @@ -267865,7 +292831,7 @@ func (r tenantMemberToUserFindFirst) Omit(params ...tenantMemberPrismaFields) te raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -267876,7 +292842,7 @@ func (r tenantMemberToUserFindFirst) Omit(params ...tenantMemberPrismaFields) te return r } -func (r tenantMemberToUserFindFirst) OrderBy(params ...UserOrderByParam) tenantMemberToUserFindFirst { +func (r eventFindFirst) OrderBy(params ...EventOrderByParam) eventFindFirst { var fields []builder.Field for _, param := range params { @@ -267896,7 +292862,7 @@ func (r tenantMemberToUserFindFirst) OrderBy(params ...UserOrderByParam) tenantM return r } -func (r tenantMemberToUserFindFirst) Skip(count int) tenantMemberToUserFindFirst { +func (r eventFindFirst) Skip(count int) eventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -267904,7 +292870,7 @@ func (r tenantMemberToUserFindFirst) Skip(count int) tenantMemberToUserFindFirst return r } -func (r tenantMemberToUserFindFirst) Take(count int) tenantMemberToUserFindFirst { +func (r eventFindFirst) Take(count int) eventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -267912,7 +292878,7 @@ func (r tenantMemberToUserFindFirst) Take(count int) tenantMemberToUserFindFirst return r } -func (r tenantMemberToUserFindFirst) Cursor(cursor TenantMemberCursorParam) tenantMemberToUserFindFirst { +func (r eventFindFirst) Cursor(cursor EventCursorParam) eventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -267920,11 +292886,11 @@ func (r tenantMemberToUserFindFirst) Cursor(cursor TenantMemberCursorParam) tena return r } -func (r tenantMemberToUserFindFirst) Exec(ctx context.Context) ( - *TenantMemberModel, +func (r eventFindFirst) Exec(ctx context.Context) ( + *EventModel, error, ) { - var v *TenantMemberModel + var v *EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267936,11 +292902,11 @@ func (r tenantMemberToUserFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberToUserFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantMember, +func (r eventFindFirst) ExecInner(ctx context.Context) ( + *InnerEvent, error, ) { - var v *InnerTenantMember + var v *InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -267952,23 +292918,60 @@ func (r tenantMemberToUserFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantMemberToUserFindMany struct { +type eventFindMany struct { query builder.Query } -func (r tenantMemberToUserFindMany) getQuery() builder.Query { +func (r eventFindMany) getQuery() builder.Query { return r.query } -func (r tenantMemberToUserFindMany) ExtractQuery() builder.Query { +func (r eventFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToUserFindMany) with() {} -func (r tenantMemberToUserFindMany) tenantMemberModel() {} -func (r tenantMemberToUserFindMany) tenantMemberRelation() {} +func (r eventFindMany) with() {} +func (r eventFindMany) eventModel() {} +func (r eventFindMany) eventRelation() {} -func (r tenantMemberToUserFindMany) With(params ...UserRelationWith) tenantMemberToUserFindMany { +func (r eventActions) FindMany( + params ...EventWhereParam, +) eventFindMany { + var v eventFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "Event" + v.query.Outputs = eventOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r eventFindMany) With(params ...EventRelationWith) eventFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -267981,7 +292984,7 @@ func (r tenantMemberToUserFindMany) With(params ...UserRelationWith) tenantMembe return r } -func (r tenantMemberToUserFindMany) Select(params ...tenantMemberPrismaFields) tenantMemberToUserFindMany { +func (r eventFindMany) Select(params ...eventPrismaFields) eventFindMany { var outputs []builder.Output for _, param := range params { @@ -267995,7 +292998,7 @@ func (r tenantMemberToUserFindMany) Select(params ...tenantMemberPrismaFields) t return r } -func (r tenantMemberToUserFindMany) Omit(params ...tenantMemberPrismaFields) tenantMemberToUserFindMany { +func (r eventFindMany) Omit(params ...eventPrismaFields) eventFindMany { var outputs []builder.Output var raw []string @@ -268003,7 +293006,7 @@ func (r tenantMemberToUserFindMany) Omit(params ...tenantMemberPrismaFields) ten raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range eventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -268014,7 +293017,7 @@ func (r tenantMemberToUserFindMany) Omit(params ...tenantMemberPrismaFields) ten return r } -func (r tenantMemberToUserFindMany) OrderBy(params ...UserOrderByParam) tenantMemberToUserFindMany { +func (r eventFindMany) OrderBy(params ...EventOrderByParam) eventFindMany { var fields []builder.Field for _, param := range params { @@ -268034,7 +293037,7 @@ func (r tenantMemberToUserFindMany) OrderBy(params ...UserOrderByParam) tenantMe return r } -func (r tenantMemberToUserFindMany) Skip(count int) tenantMemberToUserFindMany { +func (r eventFindMany) Skip(count int) eventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -268042,7 +293045,7 @@ func (r tenantMemberToUserFindMany) Skip(count int) tenantMemberToUserFindMany { return r } -func (r tenantMemberToUserFindMany) Take(count int) tenantMemberToUserFindMany { +func (r eventFindMany) Take(count int) eventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -268050,7 +293053,7 @@ func (r tenantMemberToUserFindMany) Take(count int) tenantMemberToUserFindMany { return r } -func (r tenantMemberToUserFindMany) Cursor(cursor TenantMemberCursorParam) tenantMemberToUserFindMany { +func (r eventFindMany) Cursor(cursor EventCursorParam) eventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -268058,11 +293061,11 @@ func (r tenantMemberToUserFindMany) Cursor(cursor TenantMemberCursorParam) tenan return r } -func (r tenantMemberToUserFindMany) Exec(ctx context.Context) ( - []TenantMemberModel, +func (r eventFindMany) Exec(ctx context.Context) ( + []EventModel, error, ) { - var v []TenantMemberModel + var v []EventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268070,11 +293073,11 @@ func (r tenantMemberToUserFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberToUserFindMany) ExecInner(ctx context.Context) ( - []InnerTenantMember, +func (r eventFindMany) ExecInner(ctx context.Context) ( + []InnerEvent, error, ) { - var v []InnerTenantMember + var v []InnerEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268082,14 +293085,14 @@ func (r tenantMemberToUserFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantMemberToUserFindMany) Update(params ...TenantMemberSetParam) tenantMemberToUserUpdateMany { +func (r eventFindMany) Update(params ...EventSetParam) eventUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantMember" + r.query.Model = "Event" r.query.Outputs = countOutput - var v tenantMemberToUserUpdateMany + var v eventUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -268118,17 +293121,17 @@ func (r tenantMemberToUserFindMany) Update(params ...TenantMemberSetParam) tenan return v } -type tenantMemberToUserUpdateMany struct { +type eventUpdateMany struct { query builder.Query } -func (r tenantMemberToUserUpdateMany) ExtractQuery() builder.Query { +func (r eventUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberToUserUpdateMany) tenantMemberModel() {} +func (r eventUpdateMany) eventModel() {} -func (r tenantMemberToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -268136,36 +293139,36 @@ func (r tenantMemberToUserUpdateMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r tenantMemberToUserUpdateMany) Tx() TenantMemberManyTxResult { - v := newTenantMemberManyTxResult() +func (r eventUpdateMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantMemberToUserFindMany) Delete() tenantMemberToUserDeleteMany { - var v tenantMemberToUserDeleteMany +func (r eventFindMany) Delete() eventDeleteMany { + var v eventDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantMember" + v.query.Model = "Event" v.query.Outputs = countOutput return v } -type tenantMemberToUserDeleteMany struct { +type eventDeleteMany struct { query builder.Query } -func (r tenantMemberToUserDeleteMany) ExtractQuery() builder.Query { +func (r eventDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantMemberToUserDeleteMany) tenantMemberModel() {} +func (p eventDeleteMany) eventModel() {} -func (r tenantMemberToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r eventDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -268173,52 +293176,30 @@ func (r tenantMemberToUserDeleteMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r tenantMemberToUserDeleteMany) Tx() TenantMemberManyTxResult { - v := newTenantMemberManyTxResult() +func (r eventDeleteMany) Tx() EventManyTxResult { + v := newEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantMemberFindUnique struct { +type workflowTagToTenantFindUnique struct { query builder.Query } -func (r tenantMemberFindUnique) getQuery() builder.Query { +func (r workflowTagToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r tenantMemberFindUnique) ExtractQuery() builder.Query { +func (r workflowTagToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberFindUnique) with() {} -func (r tenantMemberFindUnique) tenantMemberModel() {} -func (r tenantMemberFindUnique) tenantMemberRelation() {} - -func (r tenantMemberActions) FindUnique( - params TenantMemberEqualsUniqueWhereParam, -) tenantMemberFindUnique { - var v tenantMemberFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "TenantMember" - v.query.Outputs = tenantMemberOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowTagToTenantFindUnique) with() {} +func (r workflowTagToTenantFindUnique) workflowTagModel() {} +func (r workflowTagToTenantFindUnique) workflowTagRelation() {} -func (r tenantMemberFindUnique) With(params ...TenantMemberRelationWith) tenantMemberFindUnique { +func (r workflowTagToTenantFindUnique) With(params ...TenantRelationWith) workflowTagToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -268231,7 +293212,7 @@ func (r tenantMemberFindUnique) With(params ...TenantMemberRelationWith) tenantM return r } -func (r tenantMemberFindUnique) Select(params ...tenantMemberPrismaFields) tenantMemberFindUnique { +func (r workflowTagToTenantFindUnique) Select(params ...workflowTagPrismaFields) workflowTagToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -268245,7 +293226,7 @@ func (r tenantMemberFindUnique) Select(params ...tenantMemberPrismaFields) tenan return r } -func (r tenantMemberFindUnique) Omit(params ...tenantMemberPrismaFields) tenantMemberFindUnique { +func (r workflowTagToTenantFindUnique) Omit(params ...workflowTagPrismaFields) workflowTagToTenantFindUnique { var outputs []builder.Output var raw []string @@ -268253,7 +293234,7 @@ func (r tenantMemberFindUnique) Omit(params ...tenantMemberPrismaFields) tenantM raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -268264,11 +293245,11 @@ func (r tenantMemberFindUnique) Omit(params ...tenantMemberPrismaFields) tenantM return r } -func (r tenantMemberFindUnique) Exec(ctx context.Context) ( - *TenantMemberModel, +func (r workflowTagToTenantFindUnique) Exec(ctx context.Context) ( + *WorkflowTagModel, error, ) { - var v *TenantMemberModel + var v *WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268280,11 +293261,11 @@ func (r tenantMemberFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantMember, +func (r workflowTagToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTag, error, ) { - var v *InnerTenantMember + var v *InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268296,12 +293277,12 @@ func (r tenantMemberFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantMemberFindUnique) Update(params ...TenantMemberSetParam) tenantMemberUpdateUnique { +func (r workflowTagToTenantFindUnique) Update(params ...WorkflowTagSetParam) workflowTagToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantMember" + r.query.Model = "WorkflowTag" - var v tenantMemberUpdateUnique + var v workflowTagToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -268330,120 +293311,83 @@ func (r tenantMemberFindUnique) Update(params ...TenantMemberSetParam) tenantMem return v } -type tenantMemberUpdateUnique struct { +type workflowTagToTenantUpdateUnique struct { query builder.Query } -func (r tenantMemberUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTagToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberUpdateUnique) tenantMemberModel() {} +func (r workflowTagToTenantUpdateUnique) workflowTagModel() {} -func (r tenantMemberUpdateUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { - var v TenantMemberModel +func (r workflowTagToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { + var v WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantMemberUpdateUnique) Tx() TenantMemberUniqueTxResult { - v := newTenantMemberUniqueTxResult() +func (r workflowTagToTenantUpdateUnique) Tx() WorkflowTagUniqueTxResult { + v := newWorkflowTagUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantMemberFindUnique) Delete() tenantMemberDeleteUnique { - var v tenantMemberDeleteUnique +func (r workflowTagToTenantFindUnique) Delete() workflowTagToTenantDeleteUnique { + var v workflowTagToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantMember" + v.query.Model = "WorkflowTag" return v } -type tenantMemberDeleteUnique struct { +type workflowTagToTenantDeleteUnique struct { query builder.Query } -func (r tenantMemberDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTagToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantMemberDeleteUnique) tenantMemberModel() {} +func (p workflowTagToTenantDeleteUnique) workflowTagModel() {} -func (r tenantMemberDeleteUnique) Exec(ctx context.Context) (*TenantMemberModel, error) { - var v TenantMemberModel +func (r workflowTagToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { + var v WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantMemberDeleteUnique) Tx() TenantMemberUniqueTxResult { - v := newTenantMemberUniqueTxResult() +func (r workflowTagToTenantDeleteUnique) Tx() WorkflowTagUniqueTxResult { + v := newWorkflowTagUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantMemberFindFirst struct { +type workflowTagToTenantFindFirst struct { query builder.Query } -func (r tenantMemberFindFirst) getQuery() builder.Query { +func (r workflowTagToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r tenantMemberFindFirst) ExtractQuery() builder.Query { +func (r workflowTagToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberFindFirst) with() {} -func (r tenantMemberFindFirst) tenantMemberModel() {} -func (r tenantMemberFindFirst) tenantMemberRelation() {} - -func (r tenantMemberActions) FindFirst( - params ...TenantMemberWhereParam, -) tenantMemberFindFirst { - var v tenantMemberFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "TenantMember" - v.query.Outputs = tenantMemberOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowTagToTenantFindFirst) with() {} +func (r workflowTagToTenantFindFirst) workflowTagModel() {} +func (r workflowTagToTenantFindFirst) workflowTagRelation() {} -func (r tenantMemberFindFirst) With(params ...TenantMemberRelationWith) tenantMemberFindFirst { +func (r workflowTagToTenantFindFirst) With(params ...TenantRelationWith) workflowTagToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -268456,7 +293400,7 @@ func (r tenantMemberFindFirst) With(params ...TenantMemberRelationWith) tenantMe return r } -func (r tenantMemberFindFirst) Select(params ...tenantMemberPrismaFields) tenantMemberFindFirst { +func (r workflowTagToTenantFindFirst) Select(params ...workflowTagPrismaFields) workflowTagToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -268470,7 +293414,7 @@ func (r tenantMemberFindFirst) Select(params ...tenantMemberPrismaFields) tenant return r } -func (r tenantMemberFindFirst) Omit(params ...tenantMemberPrismaFields) tenantMemberFindFirst { +func (r workflowTagToTenantFindFirst) Omit(params ...workflowTagPrismaFields) workflowTagToTenantFindFirst { var outputs []builder.Output var raw []string @@ -268478,7 +293422,7 @@ func (r tenantMemberFindFirst) Omit(params ...tenantMemberPrismaFields) tenantMe raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -268489,7 +293433,7 @@ func (r tenantMemberFindFirst) Omit(params ...tenantMemberPrismaFields) tenantMe return r } -func (r tenantMemberFindFirst) OrderBy(params ...TenantMemberOrderByParam) tenantMemberFindFirst { +func (r workflowTagToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowTagToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -268509,7 +293453,7 @@ func (r tenantMemberFindFirst) OrderBy(params ...TenantMemberOrderByParam) tenan return r } -func (r tenantMemberFindFirst) Skip(count int) tenantMemberFindFirst { +func (r workflowTagToTenantFindFirst) Skip(count int) workflowTagToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -268517,7 +293461,7 @@ func (r tenantMemberFindFirst) Skip(count int) tenantMemberFindFirst { return r } -func (r tenantMemberFindFirst) Take(count int) tenantMemberFindFirst { +func (r workflowTagToTenantFindFirst) Take(count int) workflowTagToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -268525,7 +293469,7 @@ func (r tenantMemberFindFirst) Take(count int) tenantMemberFindFirst { return r } -func (r tenantMemberFindFirst) Cursor(cursor TenantMemberCursorParam) tenantMemberFindFirst { +func (r workflowTagToTenantFindFirst) Cursor(cursor WorkflowTagCursorParam) workflowTagToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -268533,11 +293477,11 @@ func (r tenantMemberFindFirst) Cursor(cursor TenantMemberCursorParam) tenantMemb return r } -func (r tenantMemberFindFirst) Exec(ctx context.Context) ( - *TenantMemberModel, +func (r workflowTagToTenantFindFirst) Exec(ctx context.Context) ( + *WorkflowTagModel, error, ) { - var v *TenantMemberModel + var v *WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268549,11 +293493,11 @@ func (r tenantMemberFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantMember, +func (r workflowTagToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTag, error, ) { - var v *InnerTenantMember + var v *InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268565,60 +293509,23 @@ func (r tenantMemberFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantMemberFindMany struct { +type workflowTagToTenantFindMany struct { query builder.Query } -func (r tenantMemberFindMany) getQuery() builder.Query { +func (r workflowTagToTenantFindMany) getQuery() builder.Query { return r.query } -func (r tenantMemberFindMany) ExtractQuery() builder.Query { +func (r workflowTagToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberFindMany) with() {} -func (r tenantMemberFindMany) tenantMemberModel() {} -func (r tenantMemberFindMany) tenantMemberRelation() {} - -func (r tenantMemberActions) FindMany( - params ...TenantMemberWhereParam, -) tenantMemberFindMany { - var v tenantMemberFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "TenantMember" - v.query.Outputs = tenantMemberOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowTagToTenantFindMany) with() {} +func (r workflowTagToTenantFindMany) workflowTagModel() {} +func (r workflowTagToTenantFindMany) workflowTagRelation() {} -func (r tenantMemberFindMany) With(params ...TenantMemberRelationWith) tenantMemberFindMany { +func (r workflowTagToTenantFindMany) With(params ...TenantRelationWith) workflowTagToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -268631,7 +293538,7 @@ func (r tenantMemberFindMany) With(params ...TenantMemberRelationWith) tenantMem return r } -func (r tenantMemberFindMany) Select(params ...tenantMemberPrismaFields) tenantMemberFindMany { +func (r workflowTagToTenantFindMany) Select(params ...workflowTagPrismaFields) workflowTagToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -268645,7 +293552,7 @@ func (r tenantMemberFindMany) Select(params ...tenantMemberPrismaFields) tenantM return r } -func (r tenantMemberFindMany) Omit(params ...tenantMemberPrismaFields) tenantMemberFindMany { +func (r workflowTagToTenantFindMany) Omit(params ...workflowTagPrismaFields) workflowTagToTenantFindMany { var outputs []builder.Output var raw []string @@ -268653,7 +293560,7 @@ func (r tenantMemberFindMany) Omit(params ...tenantMemberPrismaFields) tenantMem raw = append(raw, string(param)) } - for _, output := range tenantMemberOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -268664,7 +293571,7 @@ func (r tenantMemberFindMany) Omit(params ...tenantMemberPrismaFields) tenantMem return r } -func (r tenantMemberFindMany) OrderBy(params ...TenantMemberOrderByParam) tenantMemberFindMany { +func (r workflowTagToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowTagToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -268684,7 +293591,7 @@ func (r tenantMemberFindMany) OrderBy(params ...TenantMemberOrderByParam) tenant return r } -func (r tenantMemberFindMany) Skip(count int) tenantMemberFindMany { +func (r workflowTagToTenantFindMany) Skip(count int) workflowTagToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -268692,7 +293599,7 @@ func (r tenantMemberFindMany) Skip(count int) tenantMemberFindMany { return r } -func (r tenantMemberFindMany) Take(count int) tenantMemberFindMany { +func (r workflowTagToTenantFindMany) Take(count int) workflowTagToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -268700,7 +293607,7 @@ func (r tenantMemberFindMany) Take(count int) tenantMemberFindMany { return r } -func (r tenantMemberFindMany) Cursor(cursor TenantMemberCursorParam) tenantMemberFindMany { +func (r workflowTagToTenantFindMany) Cursor(cursor WorkflowTagCursorParam) workflowTagToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -268708,11 +293615,11 @@ func (r tenantMemberFindMany) Cursor(cursor TenantMemberCursorParam) tenantMembe return r } -func (r tenantMemberFindMany) Exec(ctx context.Context) ( - []TenantMemberModel, +func (r workflowTagToTenantFindMany) Exec(ctx context.Context) ( + []WorkflowTagModel, error, ) { - var v []TenantMemberModel + var v []WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268720,11 +293627,11 @@ func (r tenantMemberFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantMemberFindMany) ExecInner(ctx context.Context) ( - []InnerTenantMember, +func (r workflowTagToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTag, error, ) { - var v []InnerTenantMember + var v []InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268732,14 +293639,14 @@ func (r tenantMemberFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantMemberFindMany) Update(params ...TenantMemberSetParam) tenantMemberUpdateMany { +func (r workflowTagToTenantFindMany) Update(params ...WorkflowTagSetParam) workflowTagToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantMember" + r.query.Model = "WorkflowTag" r.query.Outputs = countOutput - var v tenantMemberUpdateMany + var v workflowTagToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -268768,17 +293675,17 @@ func (r tenantMemberFindMany) Update(params ...TenantMemberSetParam) tenantMembe return v } -type tenantMemberUpdateMany struct { +type workflowTagToTenantUpdateMany struct { query builder.Query } -func (r tenantMemberUpdateMany) ExtractQuery() builder.Query { +func (r workflowTagToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantMemberUpdateMany) tenantMemberModel() {} +func (r workflowTagToTenantUpdateMany) workflowTagModel() {} -func (r tenantMemberUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTagToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -268786,36 +293693,36 @@ func (r tenantMemberUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tenantMemberUpdateMany) Tx() TenantMemberManyTxResult { - v := newTenantMemberManyTxResult() +func (r workflowTagToTenantUpdateMany) Tx() WorkflowTagManyTxResult { + v := newWorkflowTagManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantMemberFindMany) Delete() tenantMemberDeleteMany { - var v tenantMemberDeleteMany +func (r workflowTagToTenantFindMany) Delete() workflowTagToTenantDeleteMany { + var v workflowTagToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantMember" + v.query.Model = "WorkflowTag" v.query.Outputs = countOutput return v } -type tenantMemberDeleteMany struct { +type workflowTagToTenantDeleteMany struct { query builder.Query } -func (r tenantMemberDeleteMany) ExtractQuery() builder.Query { +func (r workflowTagToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantMemberDeleteMany) tenantMemberModel() {} +func (p workflowTagToTenantDeleteMany) workflowTagModel() {} -func (r tenantMemberDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTagToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -268823,30 +293730,30 @@ func (r tenantMemberDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tenantMemberDeleteMany) Tx() TenantMemberManyTxResult { - v := newTenantMemberManyTxResult() +func (r workflowTagToTenantDeleteMany) Tx() WorkflowTagManyTxResult { + v := newWorkflowTagManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantInviteLinkToTenantFindUnique struct { +type workflowTagToWorkflowsFindUnique struct { query builder.Query } -func (r tenantInviteLinkToTenantFindUnique) getQuery() builder.Query { +func (r workflowTagToWorkflowsFindUnique) getQuery() builder.Query { return r.query } -func (r tenantInviteLinkToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowTagToWorkflowsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkToTenantFindUnique) with() {} -func (r tenantInviteLinkToTenantFindUnique) tenantInviteLinkModel() {} -func (r tenantInviteLinkToTenantFindUnique) tenantInviteLinkRelation() {} +func (r workflowTagToWorkflowsFindUnique) with() {} +func (r workflowTagToWorkflowsFindUnique) workflowTagModel() {} +func (r workflowTagToWorkflowsFindUnique) workflowTagRelation() {} -func (r tenantInviteLinkToTenantFindUnique) With(params ...TenantRelationWith) tenantInviteLinkToTenantFindUnique { +func (r workflowTagToWorkflowsFindUnique) With(params ...WorkflowRelationWith) workflowTagToWorkflowsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -268859,7 +293766,7 @@ func (r tenantInviteLinkToTenantFindUnique) With(params ...TenantRelationWith) t return r } -func (r tenantInviteLinkToTenantFindUnique) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindUnique { +func (r workflowTagToWorkflowsFindUnique) Select(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindUnique { var outputs []builder.Output for _, param := range params { @@ -268873,7 +293780,7 @@ func (r tenantInviteLinkToTenantFindUnique) Select(params ...tenantInviteLinkPri return r } -func (r tenantInviteLinkToTenantFindUnique) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindUnique { +func (r workflowTagToWorkflowsFindUnique) Omit(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindUnique { var outputs []builder.Output var raw []string @@ -268881,7 +293788,7 @@ func (r tenantInviteLinkToTenantFindUnique) Omit(params ...tenantInviteLinkPrism raw = append(raw, string(param)) } - for _, output := range tenantInviteLinkOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -268892,11 +293799,11 @@ func (r tenantInviteLinkToTenantFindUnique) Omit(params ...tenantInviteLinkPrism return r } -func (r tenantInviteLinkToTenantFindUnique) Exec(ctx context.Context) ( - *TenantInviteLinkModel, +func (r workflowTagToWorkflowsFindUnique) Exec(ctx context.Context) ( + *WorkflowTagModel, error, ) { - var v *TenantInviteLinkModel + var v *WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268908,11 +293815,11 @@ func (r tenantInviteLinkToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantInviteLink, +func (r workflowTagToWorkflowsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTag, error, ) { - var v *InnerTenantInviteLink + var v *InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -268924,12 +293831,12 @@ func (r tenantInviteLinkToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkToTenantFindUnique) Update(params ...TenantInviteLinkSetParam) tenantInviteLinkToTenantUpdateUnique { +func (r workflowTagToWorkflowsFindUnique) Update(params ...WorkflowTagSetParam) workflowTagToWorkflowsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantInviteLink" + r.query.Model = "WorkflowTag" - var v tenantInviteLinkToTenantUpdateUnique + var v workflowTagToWorkflowsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -268958,83 +293865,83 @@ func (r tenantInviteLinkToTenantFindUnique) Update(params ...TenantInviteLinkSet return v } -type tenantInviteLinkToTenantUpdateUnique struct { +type workflowTagToWorkflowsUpdateUnique struct { query builder.Query } -func (r tenantInviteLinkToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTagToWorkflowsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkToTenantUpdateUnique) tenantInviteLinkModel() {} +func (r workflowTagToWorkflowsUpdateUnique) workflowTagModel() {} -func (r tenantInviteLinkToTenantUpdateUnique) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { - var v TenantInviteLinkModel +func (r workflowTagToWorkflowsUpdateUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { + var v WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantInviteLinkToTenantUpdateUnique) Tx() TenantInviteLinkUniqueTxResult { - v := newTenantInviteLinkUniqueTxResult() +func (r workflowTagToWorkflowsUpdateUnique) Tx() WorkflowTagUniqueTxResult { + v := newWorkflowTagUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantInviteLinkToTenantFindUnique) Delete() tenantInviteLinkToTenantDeleteUnique { - var v tenantInviteLinkToTenantDeleteUnique +func (r workflowTagToWorkflowsFindUnique) Delete() workflowTagToWorkflowsDeleteUnique { + var v workflowTagToWorkflowsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantInviteLink" + v.query.Model = "WorkflowTag" return v } -type tenantInviteLinkToTenantDeleteUnique struct { +type workflowTagToWorkflowsDeleteUnique struct { query builder.Query } -func (r tenantInviteLinkToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTagToWorkflowsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantInviteLinkToTenantDeleteUnique) tenantInviteLinkModel() {} +func (p workflowTagToWorkflowsDeleteUnique) workflowTagModel() {} -func (r tenantInviteLinkToTenantDeleteUnique) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { - var v TenantInviteLinkModel +func (r workflowTagToWorkflowsDeleteUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { + var v WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantInviteLinkToTenantDeleteUnique) Tx() TenantInviteLinkUniqueTxResult { - v := newTenantInviteLinkUniqueTxResult() +func (r workflowTagToWorkflowsDeleteUnique) Tx() WorkflowTagUniqueTxResult { + v := newWorkflowTagUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantInviteLinkToTenantFindFirst struct { +type workflowTagToWorkflowsFindFirst struct { query builder.Query } -func (r tenantInviteLinkToTenantFindFirst) getQuery() builder.Query { +func (r workflowTagToWorkflowsFindFirst) getQuery() builder.Query { return r.query } -func (r tenantInviteLinkToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowTagToWorkflowsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkToTenantFindFirst) with() {} -func (r tenantInviteLinkToTenantFindFirst) tenantInviteLinkModel() {} -func (r tenantInviteLinkToTenantFindFirst) tenantInviteLinkRelation() {} +func (r workflowTagToWorkflowsFindFirst) with() {} +func (r workflowTagToWorkflowsFindFirst) workflowTagModel() {} +func (r workflowTagToWorkflowsFindFirst) workflowTagRelation() {} -func (r tenantInviteLinkToTenantFindFirst) With(params ...TenantRelationWith) tenantInviteLinkToTenantFindFirst { +func (r workflowTagToWorkflowsFindFirst) With(params ...WorkflowRelationWith) workflowTagToWorkflowsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -269047,7 +293954,7 @@ func (r tenantInviteLinkToTenantFindFirst) With(params ...TenantRelationWith) te return r } -func (r tenantInviteLinkToTenantFindFirst) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindFirst { +func (r workflowTagToWorkflowsFindFirst) Select(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindFirst { var outputs []builder.Output for _, param := range params { @@ -269061,7 +293968,7 @@ func (r tenantInviteLinkToTenantFindFirst) Select(params ...tenantInviteLinkPris return r } -func (r tenantInviteLinkToTenantFindFirst) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindFirst { +func (r workflowTagToWorkflowsFindFirst) Omit(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindFirst { var outputs []builder.Output var raw []string @@ -269069,7 +293976,7 @@ func (r tenantInviteLinkToTenantFindFirst) Omit(params ...tenantInviteLinkPrisma raw = append(raw, string(param)) } - for _, output := range tenantInviteLinkOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -269080,7 +293987,7 @@ func (r tenantInviteLinkToTenantFindFirst) Omit(params ...tenantInviteLinkPrisma return r } -func (r tenantInviteLinkToTenantFindFirst) OrderBy(params ...TenantOrderByParam) tenantInviteLinkToTenantFindFirst { +func (r workflowTagToWorkflowsFindFirst) OrderBy(params ...WorkflowOrderByParam) workflowTagToWorkflowsFindFirst { var fields []builder.Field for _, param := range params { @@ -269100,7 +294007,7 @@ func (r tenantInviteLinkToTenantFindFirst) OrderBy(params ...TenantOrderByParam) return r } -func (r tenantInviteLinkToTenantFindFirst) Skip(count int) tenantInviteLinkToTenantFindFirst { +func (r workflowTagToWorkflowsFindFirst) Skip(count int) workflowTagToWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -269108,7 +294015,7 @@ func (r tenantInviteLinkToTenantFindFirst) Skip(count int) tenantInviteLinkToTen return r } -func (r tenantInviteLinkToTenantFindFirst) Take(count int) tenantInviteLinkToTenantFindFirst { +func (r workflowTagToWorkflowsFindFirst) Take(count int) workflowTagToWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -269116,7 +294023,7 @@ func (r tenantInviteLinkToTenantFindFirst) Take(count int) tenantInviteLinkToTen return r } -func (r tenantInviteLinkToTenantFindFirst) Cursor(cursor TenantInviteLinkCursorParam) tenantInviteLinkToTenantFindFirst { +func (r workflowTagToWorkflowsFindFirst) Cursor(cursor WorkflowTagCursorParam) workflowTagToWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -269124,11 +294031,11 @@ func (r tenantInviteLinkToTenantFindFirst) Cursor(cursor TenantInviteLinkCursorP return r } -func (r tenantInviteLinkToTenantFindFirst) Exec(ctx context.Context) ( - *TenantInviteLinkModel, +func (r workflowTagToWorkflowsFindFirst) Exec(ctx context.Context) ( + *WorkflowTagModel, error, ) { - var v *TenantInviteLinkModel + var v *WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269140,11 +294047,11 @@ func (r tenantInviteLinkToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantInviteLink, +func (r workflowTagToWorkflowsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTag, error, ) { - var v *InnerTenantInviteLink + var v *InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269156,23 +294063,23 @@ func (r tenantInviteLinkToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantInviteLinkToTenantFindMany struct { +type workflowTagToWorkflowsFindMany struct { query builder.Query } -func (r tenantInviteLinkToTenantFindMany) getQuery() builder.Query { +func (r workflowTagToWorkflowsFindMany) getQuery() builder.Query { return r.query } -func (r tenantInviteLinkToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowTagToWorkflowsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkToTenantFindMany) with() {} -func (r tenantInviteLinkToTenantFindMany) tenantInviteLinkModel() {} -func (r tenantInviteLinkToTenantFindMany) tenantInviteLinkRelation() {} +func (r workflowTagToWorkflowsFindMany) with() {} +func (r workflowTagToWorkflowsFindMany) workflowTagModel() {} +func (r workflowTagToWorkflowsFindMany) workflowTagRelation() {} -func (r tenantInviteLinkToTenantFindMany) With(params ...TenantRelationWith) tenantInviteLinkToTenantFindMany { +func (r workflowTagToWorkflowsFindMany) With(params ...WorkflowRelationWith) workflowTagToWorkflowsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -269185,7 +294092,7 @@ func (r tenantInviteLinkToTenantFindMany) With(params ...TenantRelationWith) ten return r } -func (r tenantInviteLinkToTenantFindMany) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindMany { +func (r workflowTagToWorkflowsFindMany) Select(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindMany { var outputs []builder.Output for _, param := range params { @@ -269199,7 +294106,7 @@ func (r tenantInviteLinkToTenantFindMany) Select(params ...tenantInviteLinkPrism return r } -func (r tenantInviteLinkToTenantFindMany) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkToTenantFindMany { +func (r workflowTagToWorkflowsFindMany) Omit(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindMany { var outputs []builder.Output var raw []string @@ -269207,7 +294114,7 @@ func (r tenantInviteLinkToTenantFindMany) Omit(params ...tenantInviteLinkPrismaF raw = append(raw, string(param)) } - for _, output := range tenantInviteLinkOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -269218,7 +294125,7 @@ func (r tenantInviteLinkToTenantFindMany) Omit(params ...tenantInviteLinkPrismaF return r } -func (r tenantInviteLinkToTenantFindMany) OrderBy(params ...TenantOrderByParam) tenantInviteLinkToTenantFindMany { +func (r workflowTagToWorkflowsFindMany) OrderBy(params ...WorkflowOrderByParam) workflowTagToWorkflowsFindMany { var fields []builder.Field for _, param := range params { @@ -269238,7 +294145,7 @@ func (r tenantInviteLinkToTenantFindMany) OrderBy(params ...TenantOrderByParam) return r } -func (r tenantInviteLinkToTenantFindMany) Skip(count int) tenantInviteLinkToTenantFindMany { +func (r workflowTagToWorkflowsFindMany) Skip(count int) workflowTagToWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -269246,7 +294153,7 @@ func (r tenantInviteLinkToTenantFindMany) Skip(count int) tenantInviteLinkToTena return r } -func (r tenantInviteLinkToTenantFindMany) Take(count int) tenantInviteLinkToTenantFindMany { +func (r workflowTagToWorkflowsFindMany) Take(count int) workflowTagToWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -269254,7 +294161,7 @@ func (r tenantInviteLinkToTenantFindMany) Take(count int) tenantInviteLinkToTena return r } -func (r tenantInviteLinkToTenantFindMany) Cursor(cursor TenantInviteLinkCursorParam) tenantInviteLinkToTenantFindMany { +func (r workflowTagToWorkflowsFindMany) Cursor(cursor WorkflowTagCursorParam) workflowTagToWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -269262,11 +294169,11 @@ func (r tenantInviteLinkToTenantFindMany) Cursor(cursor TenantInviteLinkCursorPa return r } -func (r tenantInviteLinkToTenantFindMany) Exec(ctx context.Context) ( - []TenantInviteLinkModel, +func (r workflowTagToWorkflowsFindMany) Exec(ctx context.Context) ( + []WorkflowTagModel, error, ) { - var v []TenantInviteLinkModel + var v []WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269274,11 +294181,11 @@ func (r tenantInviteLinkToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerTenantInviteLink, +func (r workflowTagToWorkflowsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTag, error, ) { - var v []InnerTenantInviteLink + var v []InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269286,14 +294193,14 @@ func (r tenantInviteLinkToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkToTenantFindMany) Update(params ...TenantInviteLinkSetParam) tenantInviteLinkToTenantUpdateMany { +func (r workflowTagToWorkflowsFindMany) Update(params ...WorkflowTagSetParam) workflowTagToWorkflowsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantInviteLink" + r.query.Model = "WorkflowTag" r.query.Outputs = countOutput - var v tenantInviteLinkToTenantUpdateMany + var v workflowTagToWorkflowsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -269322,17 +294229,17 @@ func (r tenantInviteLinkToTenantFindMany) Update(params ...TenantInviteLinkSetPa return v } -type tenantInviteLinkToTenantUpdateMany struct { +type workflowTagToWorkflowsUpdateMany struct { query builder.Query } -func (r tenantInviteLinkToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowTagToWorkflowsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkToTenantUpdateMany) tenantInviteLinkModel() {} +func (r workflowTagToWorkflowsUpdateMany) workflowTagModel() {} -func (r tenantInviteLinkToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTagToWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -269340,36 +294247,36 @@ func (r tenantInviteLinkToTenantUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r tenantInviteLinkToTenantUpdateMany) Tx() TenantInviteLinkManyTxResult { - v := newTenantInviteLinkManyTxResult() +func (r workflowTagToWorkflowsUpdateMany) Tx() WorkflowTagManyTxResult { + v := newWorkflowTagManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantInviteLinkToTenantFindMany) Delete() tenantInviteLinkToTenantDeleteMany { - var v tenantInviteLinkToTenantDeleteMany +func (r workflowTagToWorkflowsFindMany) Delete() workflowTagToWorkflowsDeleteMany { + var v workflowTagToWorkflowsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantInviteLink" + v.query.Model = "WorkflowTag" v.query.Outputs = countOutput return v } -type tenantInviteLinkToTenantDeleteMany struct { +type workflowTagToWorkflowsDeleteMany struct { query builder.Query } -func (r tenantInviteLinkToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowTagToWorkflowsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantInviteLinkToTenantDeleteMany) tenantInviteLinkModel() {} +func (p workflowTagToWorkflowsDeleteMany) workflowTagModel() {} -func (r tenantInviteLinkToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTagToWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -269377,33 +294284,33 @@ func (r tenantInviteLinkToTenantDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r tenantInviteLinkToTenantDeleteMany) Tx() TenantInviteLinkManyTxResult { - v := newTenantInviteLinkManyTxResult() +func (r workflowTagToWorkflowsDeleteMany) Tx() WorkflowTagManyTxResult { + v := newWorkflowTagManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantInviteLinkFindUnique struct { +type workflowTagFindUnique struct { query builder.Query } -func (r tenantInviteLinkFindUnique) getQuery() builder.Query { +func (r workflowTagFindUnique) getQuery() builder.Query { return r.query } -func (r tenantInviteLinkFindUnique) ExtractQuery() builder.Query { +func (r workflowTagFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkFindUnique) with() {} -func (r tenantInviteLinkFindUnique) tenantInviteLinkModel() {} -func (r tenantInviteLinkFindUnique) tenantInviteLinkRelation() {} +func (r workflowTagFindUnique) with() {} +func (r workflowTagFindUnique) workflowTagModel() {} +func (r workflowTagFindUnique) workflowTagRelation() {} -func (r tenantInviteLinkActions) FindUnique( - params TenantInviteLinkEqualsUniqueWhereParam, -) tenantInviteLinkFindUnique { - var v tenantInviteLinkFindUnique +func (r workflowTagActions) FindUnique( + params WorkflowTagEqualsUniqueWhereParam, +) workflowTagFindUnique { + var v workflowTagFindUnique v.query = builder.NewQuery() v.query.Engine = r.client @@ -269411,8 +294318,8 @@ func (r tenantInviteLinkActions) FindUnique( v.query.Method = "findUnique" - v.query.Model = "TenantInviteLink" - v.query.Outputs = tenantInviteLinkOutput + v.query.Model = "WorkflowTag" + v.query.Outputs = workflowTagOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "where", @@ -269422,7 +294329,7 @@ func (r tenantInviteLinkActions) FindUnique( return v } -func (r tenantInviteLinkFindUnique) With(params ...TenantInviteLinkRelationWith) tenantInviteLinkFindUnique { +func (r workflowTagFindUnique) With(params ...WorkflowTagRelationWith) workflowTagFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -269435,7 +294342,7 @@ func (r tenantInviteLinkFindUnique) With(params ...TenantInviteLinkRelationWith) return r } -func (r tenantInviteLinkFindUnique) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindUnique { +func (r workflowTagFindUnique) Select(params ...workflowTagPrismaFields) workflowTagFindUnique { var outputs []builder.Output for _, param := range params { @@ -269449,7 +294356,7 @@ func (r tenantInviteLinkFindUnique) Select(params ...tenantInviteLinkPrismaField return r } -func (r tenantInviteLinkFindUnique) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindUnique { +func (r workflowTagFindUnique) Omit(params ...workflowTagPrismaFields) workflowTagFindUnique { var outputs []builder.Output var raw []string @@ -269457,7 +294364,7 @@ func (r tenantInviteLinkFindUnique) Omit(params ...tenantInviteLinkPrismaFields) raw = append(raw, string(param)) } - for _, output := range tenantInviteLinkOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -269468,11 +294375,11 @@ func (r tenantInviteLinkFindUnique) Omit(params ...tenantInviteLinkPrismaFields) return r } -func (r tenantInviteLinkFindUnique) Exec(ctx context.Context) ( - *TenantInviteLinkModel, +func (r workflowTagFindUnique) Exec(ctx context.Context) ( + *WorkflowTagModel, error, ) { - var v *TenantInviteLinkModel + var v *WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269484,11 +294391,11 @@ func (r tenantInviteLinkFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkFindUnique) ExecInner(ctx context.Context) ( - *InnerTenantInviteLink, +func (r workflowTagFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTag, error, ) { - var v *InnerTenantInviteLink + var v *InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269500,12 +294407,12 @@ func (r tenantInviteLinkFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkFindUnique) Update(params ...TenantInviteLinkSetParam) tenantInviteLinkUpdateUnique { +func (r workflowTagFindUnique) Update(params ...WorkflowTagSetParam) workflowTagUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "TenantInviteLink" + r.query.Model = "WorkflowTag" - var v tenantInviteLinkUpdateUnique + var v workflowTagUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -269534,86 +294441,86 @@ func (r tenantInviteLinkFindUnique) Update(params ...TenantInviteLinkSetParam) t return v } -type tenantInviteLinkUpdateUnique struct { +type workflowTagUpdateUnique struct { query builder.Query } -func (r tenantInviteLinkUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTagUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkUpdateUnique) tenantInviteLinkModel() {} +func (r workflowTagUpdateUnique) workflowTagModel() {} -func (r tenantInviteLinkUpdateUnique) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { - var v TenantInviteLinkModel +func (r workflowTagUpdateUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { + var v WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantInviteLinkUpdateUnique) Tx() TenantInviteLinkUniqueTxResult { - v := newTenantInviteLinkUniqueTxResult() +func (r workflowTagUpdateUnique) Tx() WorkflowTagUniqueTxResult { + v := newWorkflowTagUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantInviteLinkFindUnique) Delete() tenantInviteLinkDeleteUnique { - var v tenantInviteLinkDeleteUnique +func (r workflowTagFindUnique) Delete() workflowTagDeleteUnique { + var v workflowTagDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "TenantInviteLink" + v.query.Model = "WorkflowTag" return v } -type tenantInviteLinkDeleteUnique struct { +type workflowTagDeleteUnique struct { query builder.Query } -func (r tenantInviteLinkDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTagDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tenantInviteLinkDeleteUnique) tenantInviteLinkModel() {} +func (p workflowTagDeleteUnique) workflowTagModel() {} -func (r tenantInviteLinkDeleteUnique) Exec(ctx context.Context) (*TenantInviteLinkModel, error) { - var v TenantInviteLinkModel +func (r workflowTagDeleteUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { + var v WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tenantInviteLinkDeleteUnique) Tx() TenantInviteLinkUniqueTxResult { - v := newTenantInviteLinkUniqueTxResult() +func (r workflowTagDeleteUnique) Tx() WorkflowTagUniqueTxResult { + v := newWorkflowTagUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tenantInviteLinkFindFirst struct { +type workflowTagFindFirst struct { query builder.Query } -func (r tenantInviteLinkFindFirst) getQuery() builder.Query { +func (r workflowTagFindFirst) getQuery() builder.Query { return r.query } -func (r tenantInviteLinkFindFirst) ExtractQuery() builder.Query { +func (r workflowTagFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkFindFirst) with() {} -func (r tenantInviteLinkFindFirst) tenantInviteLinkModel() {} -func (r tenantInviteLinkFindFirst) tenantInviteLinkRelation() {} +func (r workflowTagFindFirst) with() {} +func (r workflowTagFindFirst) workflowTagModel() {} +func (r workflowTagFindFirst) workflowTagRelation() {} -func (r tenantInviteLinkActions) FindFirst( - params ...TenantInviteLinkWhereParam, -) tenantInviteLinkFindFirst { - var v tenantInviteLinkFindFirst +func (r workflowTagActions) FindFirst( + params ...WorkflowTagWhereParam, +) workflowTagFindFirst { + var v workflowTagFindFirst v.query = builder.NewQuery() v.query.Engine = r.client @@ -269621,8 +294528,8 @@ func (r tenantInviteLinkActions) FindFirst( v.query.Method = "findFirst" - v.query.Model = "TenantInviteLink" - v.query.Outputs = tenantInviteLinkOutput + v.query.Model = "WorkflowTag" + v.query.Outputs = workflowTagOutput var where []builder.Field for _, q := range params { @@ -269647,7 +294554,7 @@ func (r tenantInviteLinkActions) FindFirst( return v } -func (r tenantInviteLinkFindFirst) With(params ...TenantInviteLinkRelationWith) tenantInviteLinkFindFirst { +func (r workflowTagFindFirst) With(params ...WorkflowTagRelationWith) workflowTagFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -269660,7 +294567,7 @@ func (r tenantInviteLinkFindFirst) With(params ...TenantInviteLinkRelationWith) return r } -func (r tenantInviteLinkFindFirst) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindFirst { +func (r workflowTagFindFirst) Select(params ...workflowTagPrismaFields) workflowTagFindFirst { var outputs []builder.Output for _, param := range params { @@ -269674,7 +294581,7 @@ func (r tenantInviteLinkFindFirst) Select(params ...tenantInviteLinkPrismaFields return r } -func (r tenantInviteLinkFindFirst) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindFirst { +func (r workflowTagFindFirst) Omit(params ...workflowTagPrismaFields) workflowTagFindFirst { var outputs []builder.Output var raw []string @@ -269682,7 +294589,7 @@ func (r tenantInviteLinkFindFirst) Omit(params ...tenantInviteLinkPrismaFields) raw = append(raw, string(param)) } - for _, output := range tenantInviteLinkOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -269693,7 +294600,7 @@ func (r tenantInviteLinkFindFirst) Omit(params ...tenantInviteLinkPrismaFields) return r } -func (r tenantInviteLinkFindFirst) OrderBy(params ...TenantInviteLinkOrderByParam) tenantInviteLinkFindFirst { +func (r workflowTagFindFirst) OrderBy(params ...WorkflowTagOrderByParam) workflowTagFindFirst { var fields []builder.Field for _, param := range params { @@ -269713,7 +294620,7 @@ func (r tenantInviteLinkFindFirst) OrderBy(params ...TenantInviteLinkOrderByPara return r } -func (r tenantInviteLinkFindFirst) Skip(count int) tenantInviteLinkFindFirst { +func (r workflowTagFindFirst) Skip(count int) workflowTagFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -269721,7 +294628,7 @@ func (r tenantInviteLinkFindFirst) Skip(count int) tenantInviteLinkFindFirst { return r } -func (r tenantInviteLinkFindFirst) Take(count int) tenantInviteLinkFindFirst { +func (r workflowTagFindFirst) Take(count int) workflowTagFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -269729,7 +294636,7 @@ func (r tenantInviteLinkFindFirst) Take(count int) tenantInviteLinkFindFirst { return r } -func (r tenantInviteLinkFindFirst) Cursor(cursor TenantInviteLinkCursorParam) tenantInviteLinkFindFirst { +func (r workflowTagFindFirst) Cursor(cursor WorkflowTagCursorParam) workflowTagFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -269737,11 +294644,11 @@ func (r tenantInviteLinkFindFirst) Cursor(cursor TenantInviteLinkCursorParam) te return r } -func (r tenantInviteLinkFindFirst) Exec(ctx context.Context) ( - *TenantInviteLinkModel, +func (r workflowTagFindFirst) Exec(ctx context.Context) ( + *WorkflowTagModel, error, ) { - var v *TenantInviteLinkModel + var v *WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269753,11 +294660,11 @@ func (r tenantInviteLinkFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkFindFirst) ExecInner(ctx context.Context) ( - *InnerTenantInviteLink, +func (r workflowTagFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTag, error, ) { - var v *InnerTenantInviteLink + var v *InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269769,26 +294676,26 @@ func (r tenantInviteLinkFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tenantInviteLinkFindMany struct { +type workflowTagFindMany struct { query builder.Query } -func (r tenantInviteLinkFindMany) getQuery() builder.Query { +func (r workflowTagFindMany) getQuery() builder.Query { return r.query } -func (r tenantInviteLinkFindMany) ExtractQuery() builder.Query { +func (r workflowTagFindMany) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkFindMany) with() {} -func (r tenantInviteLinkFindMany) tenantInviteLinkModel() {} -func (r tenantInviteLinkFindMany) tenantInviteLinkRelation() {} +func (r workflowTagFindMany) with() {} +func (r workflowTagFindMany) workflowTagModel() {} +func (r workflowTagFindMany) workflowTagRelation() {} -func (r tenantInviteLinkActions) FindMany( - params ...TenantInviteLinkWhereParam, -) tenantInviteLinkFindMany { - var v tenantInviteLinkFindMany +func (r workflowTagActions) FindMany( + params ...WorkflowTagWhereParam, +) workflowTagFindMany { + var v workflowTagFindMany v.query = builder.NewQuery() v.query.Engine = r.client @@ -269796,8 +294703,8 @@ func (r tenantInviteLinkActions) FindMany( v.query.Method = "findMany" - v.query.Model = "TenantInviteLink" - v.query.Outputs = tenantInviteLinkOutput + v.query.Model = "WorkflowTag" + v.query.Outputs = workflowTagOutput var where []builder.Field for _, q := range params { @@ -269822,7 +294729,7 @@ func (r tenantInviteLinkActions) FindMany( return v } -func (r tenantInviteLinkFindMany) With(params ...TenantInviteLinkRelationWith) tenantInviteLinkFindMany { +func (r workflowTagFindMany) With(params ...WorkflowTagRelationWith) workflowTagFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -269835,7 +294742,7 @@ func (r tenantInviteLinkFindMany) With(params ...TenantInviteLinkRelationWith) t return r } -func (r tenantInviteLinkFindMany) Select(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindMany { +func (r workflowTagFindMany) Select(params ...workflowTagPrismaFields) workflowTagFindMany { var outputs []builder.Output for _, param := range params { @@ -269849,7 +294756,7 @@ func (r tenantInviteLinkFindMany) Select(params ...tenantInviteLinkPrismaFields) return r } -func (r tenantInviteLinkFindMany) Omit(params ...tenantInviteLinkPrismaFields) tenantInviteLinkFindMany { +func (r workflowTagFindMany) Omit(params ...workflowTagPrismaFields) workflowTagFindMany { var outputs []builder.Output var raw []string @@ -269857,7 +294764,7 @@ func (r tenantInviteLinkFindMany) Omit(params ...tenantInviteLinkPrismaFields) t raw = append(raw, string(param)) } - for _, output := range tenantInviteLinkOutput { + for _, output := range workflowTagOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -269868,7 +294775,7 @@ func (r tenantInviteLinkFindMany) Omit(params ...tenantInviteLinkPrismaFields) t return r } -func (r tenantInviteLinkFindMany) OrderBy(params ...TenantInviteLinkOrderByParam) tenantInviteLinkFindMany { +func (r workflowTagFindMany) OrderBy(params ...WorkflowTagOrderByParam) workflowTagFindMany { var fields []builder.Field for _, param := range params { @@ -269888,7 +294795,7 @@ func (r tenantInviteLinkFindMany) OrderBy(params ...TenantInviteLinkOrderByParam return r } -func (r tenantInviteLinkFindMany) Skip(count int) tenantInviteLinkFindMany { +func (r workflowTagFindMany) Skip(count int) workflowTagFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -269896,7 +294803,7 @@ func (r tenantInviteLinkFindMany) Skip(count int) tenantInviteLinkFindMany { return r } -func (r tenantInviteLinkFindMany) Take(count int) tenantInviteLinkFindMany { +func (r workflowTagFindMany) Take(count int) workflowTagFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -269904,7 +294811,7 @@ func (r tenantInviteLinkFindMany) Take(count int) tenantInviteLinkFindMany { return r } -func (r tenantInviteLinkFindMany) Cursor(cursor TenantInviteLinkCursorParam) tenantInviteLinkFindMany { +func (r workflowTagFindMany) Cursor(cursor WorkflowTagCursorParam) workflowTagFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -269912,11 +294819,11 @@ func (r tenantInviteLinkFindMany) Cursor(cursor TenantInviteLinkCursorParam) ten return r } -func (r tenantInviteLinkFindMany) Exec(ctx context.Context) ( - []TenantInviteLinkModel, +func (r workflowTagFindMany) Exec(ctx context.Context) ( + []WorkflowTagModel, error, ) { - var v []TenantInviteLinkModel + var v []WorkflowTagModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269924,11 +294831,11 @@ func (r tenantInviteLinkFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkFindMany) ExecInner(ctx context.Context) ( - []InnerTenantInviteLink, +func (r workflowTagFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTag, error, ) { - var v []InnerTenantInviteLink + var v []InnerWorkflowTag if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -269936,14 +294843,14 @@ func (r tenantInviteLinkFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tenantInviteLinkFindMany) Update(params ...TenantInviteLinkSetParam) tenantInviteLinkUpdateMany { +func (r workflowTagFindMany) Update(params ...WorkflowTagSetParam) workflowTagUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "TenantInviteLink" + r.query.Model = "WorkflowTag" r.query.Outputs = countOutput - var v tenantInviteLinkUpdateMany + var v workflowTagUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -269972,17 +294879,17 @@ func (r tenantInviteLinkFindMany) Update(params ...TenantInviteLinkSetParam) ten return v } -type tenantInviteLinkUpdateMany struct { +type workflowTagUpdateMany struct { query builder.Query } -func (r tenantInviteLinkUpdateMany) ExtractQuery() builder.Query { +func (r workflowTagUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tenantInviteLinkUpdateMany) tenantInviteLinkModel() {} +func (r workflowTagUpdateMany) workflowTagModel() {} -func (r tenantInviteLinkUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTagUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -269990,36 +294897,36 @@ func (r tenantInviteLinkUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tenantInviteLinkUpdateMany) Tx() TenantInviteLinkManyTxResult { - v := newTenantInviteLinkManyTxResult() +func (r workflowTagUpdateMany) Tx() WorkflowTagManyTxResult { + v := newWorkflowTagManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tenantInviteLinkFindMany) Delete() tenantInviteLinkDeleteMany { - var v tenantInviteLinkDeleteMany +func (r workflowTagFindMany) Delete() workflowTagDeleteMany { + var v workflowTagDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "TenantInviteLink" + v.query.Model = "WorkflowTag" v.query.Outputs = countOutput return v } -type tenantInviteLinkDeleteMany struct { +type workflowTagDeleteMany struct { query builder.Query } -func (r tenantInviteLinkDeleteMany) ExtractQuery() builder.Query { +func (r workflowTagDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tenantInviteLinkDeleteMany) tenantInviteLinkModel() {} +func (p workflowTagDeleteMany) workflowTagModel() {} -func (r tenantInviteLinkDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTagDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -270027,30 +294934,30 @@ func (r tenantInviteLinkDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tenantInviteLinkDeleteMany) Tx() TenantInviteLinkManyTxResult { - v := newTenantInviteLinkManyTxResult() +func (r workflowTagDeleteMany) Tx() WorkflowTagManyTxResult { + v := newWorkflowTagManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type aPITokenToTenantFindUnique struct { +type workflowToTenantFindUnique struct { query builder.Query } -func (r aPITokenToTenantFindUnique) getQuery() builder.Query { +func (r workflowToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r aPITokenToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToTenantFindUnique) with() {} -func (r aPITokenToTenantFindUnique) aPITokenModel() {} -func (r aPITokenToTenantFindUnique) aPITokenRelation() {} +func (r workflowToTenantFindUnique) with() {} +func (r workflowToTenantFindUnique) workflowModel() {} +func (r workflowToTenantFindUnique) workflowRelation() {} -func (r aPITokenToTenantFindUnique) With(params ...TenantRelationWith) aPITokenToTenantFindUnique { +func (r workflowToTenantFindUnique) With(params ...TenantRelationWith) workflowToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -270063,7 +294970,7 @@ func (r aPITokenToTenantFindUnique) With(params ...TenantRelationWith) aPITokenT return r } -func (r aPITokenToTenantFindUnique) Select(params ...aPITokenPrismaFields) aPITokenToTenantFindUnique { +func (r workflowToTenantFindUnique) Select(params ...workflowPrismaFields) workflowToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -270077,7 +294984,7 @@ func (r aPITokenToTenantFindUnique) Select(params ...aPITokenPrismaFields) aPITo return r } -func (r aPITokenToTenantFindUnique) Omit(params ...aPITokenPrismaFields) aPITokenToTenantFindUnique { +func (r workflowToTenantFindUnique) Omit(params ...workflowPrismaFields) workflowToTenantFindUnique { var outputs []builder.Output var raw []string @@ -270085,7 +294992,7 @@ func (r aPITokenToTenantFindUnique) Omit(params ...aPITokenPrismaFields) aPIToke raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -270096,11 +295003,11 @@ func (r aPITokenToTenantFindUnique) Omit(params ...aPITokenPrismaFields) aPIToke return r } -func (r aPITokenToTenantFindUnique) Exec(ctx context.Context) ( - *APITokenModel, +func (r workflowToTenantFindUnique) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *APITokenModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270112,11 +295019,11 @@ func (r aPITokenToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerAPIToken, +func (r workflowToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerAPIToken + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270128,12 +295035,12 @@ func (r aPITokenToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r aPITokenToTenantFindUnique) Update(params ...APITokenSetParam) aPITokenToTenantUpdateUnique { +func (r workflowToTenantFindUnique) Update(params ...WorkflowSetParam) workflowToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "APIToken" + r.query.Model = "Workflow" - var v aPITokenToTenantUpdateUnique + var v workflowToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -270162,83 +295069,83 @@ func (r aPITokenToTenantFindUnique) Update(params ...APITokenSetParam) aPITokenT return v } -type aPITokenToTenantUpdateUnique struct { +type workflowToTenantUpdateUnique struct { query builder.Query } -func (r aPITokenToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToTenantUpdateUnique) aPITokenModel() {} +func (r workflowToTenantUpdateUnique) workflowModel() {} -func (r aPITokenToTenantUpdateUnique) Exec(ctx context.Context) (*APITokenModel, error) { - var v APITokenModel +func (r workflowToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r aPITokenToTenantUpdateUnique) Tx() APITokenUniqueTxResult { - v := newAPITokenUniqueTxResult() +func (r workflowToTenantUpdateUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r aPITokenToTenantFindUnique) Delete() aPITokenToTenantDeleteUnique { - var v aPITokenToTenantDeleteUnique +func (r workflowToTenantFindUnique) Delete() workflowToTenantDeleteUnique { + var v workflowToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "APIToken" + v.query.Model = "Workflow" return v } -type aPITokenToTenantDeleteUnique struct { +type workflowToTenantDeleteUnique struct { query builder.Query } -func (r aPITokenToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p aPITokenToTenantDeleteUnique) aPITokenModel() {} +func (p workflowToTenantDeleteUnique) workflowModel() {} -func (r aPITokenToTenantDeleteUnique) Exec(ctx context.Context) (*APITokenModel, error) { - var v APITokenModel +func (r workflowToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r aPITokenToTenantDeleteUnique) Tx() APITokenUniqueTxResult { - v := newAPITokenUniqueTxResult() +func (r workflowToTenantDeleteUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type aPITokenToTenantFindFirst struct { +type workflowToTenantFindFirst struct { query builder.Query } -func (r aPITokenToTenantFindFirst) getQuery() builder.Query { +func (r workflowToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r aPITokenToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToTenantFindFirst) with() {} -func (r aPITokenToTenantFindFirst) aPITokenModel() {} -func (r aPITokenToTenantFindFirst) aPITokenRelation() {} +func (r workflowToTenantFindFirst) with() {} +func (r workflowToTenantFindFirst) workflowModel() {} +func (r workflowToTenantFindFirst) workflowRelation() {} -func (r aPITokenToTenantFindFirst) With(params ...TenantRelationWith) aPITokenToTenantFindFirst { +func (r workflowToTenantFindFirst) With(params ...TenantRelationWith) workflowToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -270251,7 +295158,7 @@ func (r aPITokenToTenantFindFirst) With(params ...TenantRelationWith) aPITokenTo return r } -func (r aPITokenToTenantFindFirst) Select(params ...aPITokenPrismaFields) aPITokenToTenantFindFirst { +func (r workflowToTenantFindFirst) Select(params ...workflowPrismaFields) workflowToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -270265,7 +295172,7 @@ func (r aPITokenToTenantFindFirst) Select(params ...aPITokenPrismaFields) aPITok return r } -func (r aPITokenToTenantFindFirst) Omit(params ...aPITokenPrismaFields) aPITokenToTenantFindFirst { +func (r workflowToTenantFindFirst) Omit(params ...workflowPrismaFields) workflowToTenantFindFirst { var outputs []builder.Output var raw []string @@ -270273,7 +295180,7 @@ func (r aPITokenToTenantFindFirst) Omit(params ...aPITokenPrismaFields) aPIToken raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -270284,7 +295191,7 @@ func (r aPITokenToTenantFindFirst) Omit(params ...aPITokenPrismaFields) aPIToken return r } -func (r aPITokenToTenantFindFirst) OrderBy(params ...TenantOrderByParam) aPITokenToTenantFindFirst { +func (r workflowToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -270304,7 +295211,7 @@ func (r aPITokenToTenantFindFirst) OrderBy(params ...TenantOrderByParam) aPIToke return r } -func (r aPITokenToTenantFindFirst) Skip(count int) aPITokenToTenantFindFirst { +func (r workflowToTenantFindFirst) Skip(count int) workflowToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -270312,7 +295219,7 @@ func (r aPITokenToTenantFindFirst) Skip(count int) aPITokenToTenantFindFirst { return r } -func (r aPITokenToTenantFindFirst) Take(count int) aPITokenToTenantFindFirst { +func (r workflowToTenantFindFirst) Take(count int) workflowToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -270320,7 +295227,7 @@ func (r aPITokenToTenantFindFirst) Take(count int) aPITokenToTenantFindFirst { return r } -func (r aPITokenToTenantFindFirst) Cursor(cursor APITokenCursorParam) aPITokenToTenantFindFirst { +func (r workflowToTenantFindFirst) Cursor(cursor WorkflowCursorParam) workflowToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -270328,11 +295235,11 @@ func (r aPITokenToTenantFindFirst) Cursor(cursor APITokenCursorParam) aPITokenTo return r } -func (r aPITokenToTenantFindFirst) Exec(ctx context.Context) ( - *APITokenModel, +func (r workflowToTenantFindFirst) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *APITokenModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270344,11 +295251,11 @@ func (r aPITokenToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerAPIToken, +func (r workflowToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerAPIToken + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270360,23 +295267,23 @@ func (r aPITokenToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type aPITokenToTenantFindMany struct { +type workflowToTenantFindMany struct { query builder.Query } -func (r aPITokenToTenantFindMany) getQuery() builder.Query { +func (r workflowToTenantFindMany) getQuery() builder.Query { return r.query } -func (r aPITokenToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToTenantFindMany) with() {} -func (r aPITokenToTenantFindMany) aPITokenModel() {} -func (r aPITokenToTenantFindMany) aPITokenRelation() {} +func (r workflowToTenantFindMany) with() {} +func (r workflowToTenantFindMany) workflowModel() {} +func (r workflowToTenantFindMany) workflowRelation() {} -func (r aPITokenToTenantFindMany) With(params ...TenantRelationWith) aPITokenToTenantFindMany { +func (r workflowToTenantFindMany) With(params ...TenantRelationWith) workflowToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -270389,7 +295296,7 @@ func (r aPITokenToTenantFindMany) With(params ...TenantRelationWith) aPITokenToT return r } -func (r aPITokenToTenantFindMany) Select(params ...aPITokenPrismaFields) aPITokenToTenantFindMany { +func (r workflowToTenantFindMany) Select(params ...workflowPrismaFields) workflowToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -270403,7 +295310,7 @@ func (r aPITokenToTenantFindMany) Select(params ...aPITokenPrismaFields) aPIToke return r } -func (r aPITokenToTenantFindMany) Omit(params ...aPITokenPrismaFields) aPITokenToTenantFindMany { +func (r workflowToTenantFindMany) Omit(params ...workflowPrismaFields) workflowToTenantFindMany { var outputs []builder.Output var raw []string @@ -270411,7 +295318,7 @@ func (r aPITokenToTenantFindMany) Omit(params ...aPITokenPrismaFields) aPITokenT raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -270422,7 +295329,7 @@ func (r aPITokenToTenantFindMany) Omit(params ...aPITokenPrismaFields) aPITokenT return r } -func (r aPITokenToTenantFindMany) OrderBy(params ...TenantOrderByParam) aPITokenToTenantFindMany { +func (r workflowToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -270442,7 +295349,7 @@ func (r aPITokenToTenantFindMany) OrderBy(params ...TenantOrderByParam) aPIToken return r } -func (r aPITokenToTenantFindMany) Skip(count int) aPITokenToTenantFindMany { +func (r workflowToTenantFindMany) Skip(count int) workflowToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -270450,7 +295357,7 @@ func (r aPITokenToTenantFindMany) Skip(count int) aPITokenToTenantFindMany { return r } -func (r aPITokenToTenantFindMany) Take(count int) aPITokenToTenantFindMany { +func (r workflowToTenantFindMany) Take(count int) workflowToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -270458,7 +295365,7 @@ func (r aPITokenToTenantFindMany) Take(count int) aPITokenToTenantFindMany { return r } -func (r aPITokenToTenantFindMany) Cursor(cursor APITokenCursorParam) aPITokenToTenantFindMany { +func (r workflowToTenantFindMany) Cursor(cursor WorkflowCursorParam) workflowToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -270466,11 +295373,11 @@ func (r aPITokenToTenantFindMany) Cursor(cursor APITokenCursorParam) aPITokenToT return r } -func (r aPITokenToTenantFindMany) Exec(ctx context.Context) ( - []APITokenModel, +func (r workflowToTenantFindMany) Exec(ctx context.Context) ( + []WorkflowModel, error, ) { - var v []APITokenModel + var v []WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270478,11 +295385,11 @@ func (r aPITokenToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerAPIToken, +func (r workflowToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflow, error, ) { - var v []InnerAPIToken + var v []InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270490,14 +295397,14 @@ func (r aPITokenToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r aPITokenToTenantFindMany) Update(params ...APITokenSetParam) aPITokenToTenantUpdateMany { +func (r workflowToTenantFindMany) Update(params ...WorkflowSetParam) workflowToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "APIToken" + r.query.Model = "Workflow" r.query.Outputs = countOutput - var v aPITokenToTenantUpdateMany + var v workflowToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -270526,17 +295433,17 @@ func (r aPITokenToTenantFindMany) Update(params ...APITokenSetParam) aPITokenToT return v } -type aPITokenToTenantUpdateMany struct { +type workflowToTenantUpdateMany struct { query builder.Query } -func (r aPITokenToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToTenantUpdateMany) aPITokenModel() {} +func (r workflowToTenantUpdateMany) workflowModel() {} -func (r aPITokenToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -270544,36 +295451,36 @@ func (r aPITokenToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r aPITokenToTenantUpdateMany) Tx() APITokenManyTxResult { - v := newAPITokenManyTxResult() +func (r workflowToTenantUpdateMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r aPITokenToTenantFindMany) Delete() aPITokenToTenantDeleteMany { - var v aPITokenToTenantDeleteMany +func (r workflowToTenantFindMany) Delete() workflowToTenantDeleteMany { + var v workflowToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "APIToken" + v.query.Model = "Workflow" v.query.Outputs = countOutput return v } -type aPITokenToTenantDeleteMany struct { +type workflowToTenantDeleteMany struct { query builder.Query } -func (r aPITokenToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p aPITokenToTenantDeleteMany) aPITokenModel() {} +func (p workflowToTenantDeleteMany) workflowModel() {} -func (r aPITokenToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -270581,30 +295488,30 @@ func (r aPITokenToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r aPITokenToTenantDeleteMany) Tx() APITokenManyTxResult { - v := newAPITokenManyTxResult() +func (r workflowToTenantDeleteMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type aPITokenToWebhookWorkersFindUnique struct { +type workflowToVersionsFindUnique struct { query builder.Query } -func (r aPITokenToWebhookWorkersFindUnique) getQuery() builder.Query { +func (r workflowToVersionsFindUnique) getQuery() builder.Query { return r.query } -func (r aPITokenToWebhookWorkersFindUnique) ExtractQuery() builder.Query { +func (r workflowToVersionsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToWebhookWorkersFindUnique) with() {} -func (r aPITokenToWebhookWorkersFindUnique) aPITokenModel() {} -func (r aPITokenToWebhookWorkersFindUnique) aPITokenRelation() {} +func (r workflowToVersionsFindUnique) with() {} +func (r workflowToVersionsFindUnique) workflowModel() {} +func (r workflowToVersionsFindUnique) workflowRelation() {} -func (r aPITokenToWebhookWorkersFindUnique) With(params ...WebhookWorkerRelationWith) aPITokenToWebhookWorkersFindUnique { +func (r workflowToVersionsFindUnique) With(params ...WorkflowVersionRelationWith) workflowToVersionsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -270617,7 +295524,7 @@ func (r aPITokenToWebhookWorkersFindUnique) With(params ...WebhookWorkerRelation return r } -func (r aPITokenToWebhookWorkersFindUnique) Select(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindUnique { +func (r workflowToVersionsFindUnique) Select(params ...workflowPrismaFields) workflowToVersionsFindUnique { var outputs []builder.Output for _, param := range params { @@ -270631,7 +295538,7 @@ func (r aPITokenToWebhookWorkersFindUnique) Select(params ...aPITokenPrismaField return r } -func (r aPITokenToWebhookWorkersFindUnique) Omit(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindUnique { +func (r workflowToVersionsFindUnique) Omit(params ...workflowPrismaFields) workflowToVersionsFindUnique { var outputs []builder.Output var raw []string @@ -270639,7 +295546,7 @@ func (r aPITokenToWebhookWorkersFindUnique) Omit(params ...aPITokenPrismaFields) raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -270650,11 +295557,11 @@ func (r aPITokenToWebhookWorkersFindUnique) Omit(params ...aPITokenPrismaFields) return r } -func (r aPITokenToWebhookWorkersFindUnique) Exec(ctx context.Context) ( - *APITokenModel, +func (r workflowToVersionsFindUnique) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *APITokenModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270666,11 +295573,11 @@ func (r aPITokenToWebhookWorkersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenToWebhookWorkersFindUnique) ExecInner(ctx context.Context) ( - *InnerAPIToken, +func (r workflowToVersionsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerAPIToken + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270682,12 +295589,12 @@ func (r aPITokenToWebhookWorkersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r aPITokenToWebhookWorkersFindUnique) Update(params ...APITokenSetParam) aPITokenToWebhookWorkersUpdateUnique { +func (r workflowToVersionsFindUnique) Update(params ...WorkflowSetParam) workflowToVersionsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "APIToken" + r.query.Model = "Workflow" - var v aPITokenToWebhookWorkersUpdateUnique + var v workflowToVersionsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -270716,83 +295623,83 @@ func (r aPITokenToWebhookWorkersFindUnique) Update(params ...APITokenSetParam) a return v } -type aPITokenToWebhookWorkersUpdateUnique struct { +type workflowToVersionsUpdateUnique struct { query builder.Query } -func (r aPITokenToWebhookWorkersUpdateUnique) ExtractQuery() builder.Query { +func (r workflowToVersionsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToWebhookWorkersUpdateUnique) aPITokenModel() {} +func (r workflowToVersionsUpdateUnique) workflowModel() {} -func (r aPITokenToWebhookWorkersUpdateUnique) Exec(ctx context.Context) (*APITokenModel, error) { - var v APITokenModel +func (r workflowToVersionsUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r aPITokenToWebhookWorkersUpdateUnique) Tx() APITokenUniqueTxResult { - v := newAPITokenUniqueTxResult() +func (r workflowToVersionsUpdateUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r aPITokenToWebhookWorkersFindUnique) Delete() aPITokenToWebhookWorkersDeleteUnique { - var v aPITokenToWebhookWorkersDeleteUnique +func (r workflowToVersionsFindUnique) Delete() workflowToVersionsDeleteUnique { + var v workflowToVersionsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "APIToken" + v.query.Model = "Workflow" return v } -type aPITokenToWebhookWorkersDeleteUnique struct { +type workflowToVersionsDeleteUnique struct { query builder.Query } -func (r aPITokenToWebhookWorkersDeleteUnique) ExtractQuery() builder.Query { +func (r workflowToVersionsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p aPITokenToWebhookWorkersDeleteUnique) aPITokenModel() {} +func (p workflowToVersionsDeleteUnique) workflowModel() {} -func (r aPITokenToWebhookWorkersDeleteUnique) Exec(ctx context.Context) (*APITokenModel, error) { - var v APITokenModel +func (r workflowToVersionsDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r aPITokenToWebhookWorkersDeleteUnique) Tx() APITokenUniqueTxResult { - v := newAPITokenUniqueTxResult() +func (r workflowToVersionsDeleteUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type aPITokenToWebhookWorkersFindFirst struct { +type workflowToVersionsFindFirst struct { query builder.Query } -func (r aPITokenToWebhookWorkersFindFirst) getQuery() builder.Query { +func (r workflowToVersionsFindFirst) getQuery() builder.Query { return r.query } -func (r aPITokenToWebhookWorkersFindFirst) ExtractQuery() builder.Query { +func (r workflowToVersionsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToWebhookWorkersFindFirst) with() {} -func (r aPITokenToWebhookWorkersFindFirst) aPITokenModel() {} -func (r aPITokenToWebhookWorkersFindFirst) aPITokenRelation() {} +func (r workflowToVersionsFindFirst) with() {} +func (r workflowToVersionsFindFirst) workflowModel() {} +func (r workflowToVersionsFindFirst) workflowRelation() {} -func (r aPITokenToWebhookWorkersFindFirst) With(params ...WebhookWorkerRelationWith) aPITokenToWebhookWorkersFindFirst { +func (r workflowToVersionsFindFirst) With(params ...WorkflowVersionRelationWith) workflowToVersionsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -270805,7 +295712,7 @@ func (r aPITokenToWebhookWorkersFindFirst) With(params ...WebhookWorkerRelationW return r } -func (r aPITokenToWebhookWorkersFindFirst) Select(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindFirst { +func (r workflowToVersionsFindFirst) Select(params ...workflowPrismaFields) workflowToVersionsFindFirst { var outputs []builder.Output for _, param := range params { @@ -270819,7 +295726,7 @@ func (r aPITokenToWebhookWorkersFindFirst) Select(params ...aPITokenPrismaFields return r } -func (r aPITokenToWebhookWorkersFindFirst) Omit(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindFirst { +func (r workflowToVersionsFindFirst) Omit(params ...workflowPrismaFields) workflowToVersionsFindFirst { var outputs []builder.Output var raw []string @@ -270827,7 +295734,7 @@ func (r aPITokenToWebhookWorkersFindFirst) Omit(params ...aPITokenPrismaFields) raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -270838,7 +295745,7 @@ func (r aPITokenToWebhookWorkersFindFirst) Omit(params ...aPITokenPrismaFields) return r } -func (r aPITokenToWebhookWorkersFindFirst) OrderBy(params ...WebhookWorkerOrderByParam) aPITokenToWebhookWorkersFindFirst { +func (r workflowToVersionsFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowToVersionsFindFirst { var fields []builder.Field for _, param := range params { @@ -270858,7 +295765,7 @@ func (r aPITokenToWebhookWorkersFindFirst) OrderBy(params ...WebhookWorkerOrderB return r } -func (r aPITokenToWebhookWorkersFindFirst) Skip(count int) aPITokenToWebhookWorkersFindFirst { +func (r workflowToVersionsFindFirst) Skip(count int) workflowToVersionsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -270866,7 +295773,7 @@ func (r aPITokenToWebhookWorkersFindFirst) Skip(count int) aPITokenToWebhookWork return r } -func (r aPITokenToWebhookWorkersFindFirst) Take(count int) aPITokenToWebhookWorkersFindFirst { +func (r workflowToVersionsFindFirst) Take(count int) workflowToVersionsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -270874,7 +295781,7 @@ func (r aPITokenToWebhookWorkersFindFirst) Take(count int) aPITokenToWebhookWork return r } -func (r aPITokenToWebhookWorkersFindFirst) Cursor(cursor APITokenCursorParam) aPITokenToWebhookWorkersFindFirst { +func (r workflowToVersionsFindFirst) Cursor(cursor WorkflowCursorParam) workflowToVersionsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -270882,11 +295789,11 @@ func (r aPITokenToWebhookWorkersFindFirst) Cursor(cursor APITokenCursorParam) aP return r } -func (r aPITokenToWebhookWorkersFindFirst) Exec(ctx context.Context) ( - *APITokenModel, +func (r workflowToVersionsFindFirst) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *APITokenModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270898,11 +295805,11 @@ func (r aPITokenToWebhookWorkersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenToWebhookWorkersFindFirst) ExecInner(ctx context.Context) ( - *InnerAPIToken, +func (r workflowToVersionsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerAPIToken + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -270914,23 +295821,23 @@ func (r aPITokenToWebhookWorkersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type aPITokenToWebhookWorkersFindMany struct { +type workflowToVersionsFindMany struct { query builder.Query } -func (r aPITokenToWebhookWorkersFindMany) getQuery() builder.Query { +func (r workflowToVersionsFindMany) getQuery() builder.Query { return r.query } -func (r aPITokenToWebhookWorkersFindMany) ExtractQuery() builder.Query { +func (r workflowToVersionsFindMany) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToWebhookWorkersFindMany) with() {} -func (r aPITokenToWebhookWorkersFindMany) aPITokenModel() {} -func (r aPITokenToWebhookWorkersFindMany) aPITokenRelation() {} +func (r workflowToVersionsFindMany) with() {} +func (r workflowToVersionsFindMany) workflowModel() {} +func (r workflowToVersionsFindMany) workflowRelation() {} -func (r aPITokenToWebhookWorkersFindMany) With(params ...WebhookWorkerRelationWith) aPITokenToWebhookWorkersFindMany { +func (r workflowToVersionsFindMany) With(params ...WorkflowVersionRelationWith) workflowToVersionsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -270943,7 +295850,7 @@ func (r aPITokenToWebhookWorkersFindMany) With(params ...WebhookWorkerRelationWi return r } -func (r aPITokenToWebhookWorkersFindMany) Select(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindMany { +func (r workflowToVersionsFindMany) Select(params ...workflowPrismaFields) workflowToVersionsFindMany { var outputs []builder.Output for _, param := range params { @@ -270957,7 +295864,7 @@ func (r aPITokenToWebhookWorkersFindMany) Select(params ...aPITokenPrismaFields) return r } -func (r aPITokenToWebhookWorkersFindMany) Omit(params ...aPITokenPrismaFields) aPITokenToWebhookWorkersFindMany { +func (r workflowToVersionsFindMany) Omit(params ...workflowPrismaFields) workflowToVersionsFindMany { var outputs []builder.Output var raw []string @@ -270965,7 +295872,7 @@ func (r aPITokenToWebhookWorkersFindMany) Omit(params ...aPITokenPrismaFields) a raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -270976,7 +295883,7 @@ func (r aPITokenToWebhookWorkersFindMany) Omit(params ...aPITokenPrismaFields) a return r } -func (r aPITokenToWebhookWorkersFindMany) OrderBy(params ...WebhookWorkerOrderByParam) aPITokenToWebhookWorkersFindMany { +func (r workflowToVersionsFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowToVersionsFindMany { var fields []builder.Field for _, param := range params { @@ -270996,7 +295903,7 @@ func (r aPITokenToWebhookWorkersFindMany) OrderBy(params ...WebhookWorkerOrderBy return r } -func (r aPITokenToWebhookWorkersFindMany) Skip(count int) aPITokenToWebhookWorkersFindMany { +func (r workflowToVersionsFindMany) Skip(count int) workflowToVersionsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -271004,7 +295911,7 @@ func (r aPITokenToWebhookWorkersFindMany) Skip(count int) aPITokenToWebhookWorke return r } -func (r aPITokenToWebhookWorkersFindMany) Take(count int) aPITokenToWebhookWorkersFindMany { +func (r workflowToVersionsFindMany) Take(count int) workflowToVersionsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -271012,7 +295919,7 @@ func (r aPITokenToWebhookWorkersFindMany) Take(count int) aPITokenToWebhookWorke return r } -func (r aPITokenToWebhookWorkersFindMany) Cursor(cursor APITokenCursorParam) aPITokenToWebhookWorkersFindMany { +func (r workflowToVersionsFindMany) Cursor(cursor WorkflowCursorParam) workflowToVersionsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -271020,11 +295927,11 @@ func (r aPITokenToWebhookWorkersFindMany) Cursor(cursor APITokenCursorParam) aPI return r } -func (r aPITokenToWebhookWorkersFindMany) Exec(ctx context.Context) ( - []APITokenModel, +func (r workflowToVersionsFindMany) Exec(ctx context.Context) ( + []WorkflowModel, error, ) { - var v []APITokenModel + var v []WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271032,11 +295939,11 @@ func (r aPITokenToWebhookWorkersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenToWebhookWorkersFindMany) ExecInner(ctx context.Context) ( - []InnerAPIToken, +func (r workflowToVersionsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflow, error, ) { - var v []InnerAPIToken + var v []InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271044,14 +295951,14 @@ func (r aPITokenToWebhookWorkersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r aPITokenToWebhookWorkersFindMany) Update(params ...APITokenSetParam) aPITokenToWebhookWorkersUpdateMany { +func (r workflowToVersionsFindMany) Update(params ...WorkflowSetParam) workflowToVersionsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "APIToken" + r.query.Model = "Workflow" r.query.Outputs = countOutput - var v aPITokenToWebhookWorkersUpdateMany + var v workflowToVersionsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -271080,17 +295987,17 @@ func (r aPITokenToWebhookWorkersFindMany) Update(params ...APITokenSetParam) aPI return v } -type aPITokenToWebhookWorkersUpdateMany struct { +type workflowToVersionsUpdateMany struct { query builder.Query } -func (r aPITokenToWebhookWorkersUpdateMany) ExtractQuery() builder.Query { +func (r workflowToVersionsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r aPITokenToWebhookWorkersUpdateMany) aPITokenModel() {} +func (r workflowToVersionsUpdateMany) workflowModel() {} -func (r aPITokenToWebhookWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowToVersionsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -271098,36 +296005,36 @@ func (r aPITokenToWebhookWorkersUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r aPITokenToWebhookWorkersUpdateMany) Tx() APITokenManyTxResult { - v := newAPITokenManyTxResult() +func (r workflowToVersionsUpdateMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r aPITokenToWebhookWorkersFindMany) Delete() aPITokenToWebhookWorkersDeleteMany { - var v aPITokenToWebhookWorkersDeleteMany +func (r workflowToVersionsFindMany) Delete() workflowToVersionsDeleteMany { + var v workflowToVersionsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "APIToken" + v.query.Model = "Workflow" v.query.Outputs = countOutput return v } -type aPITokenToWebhookWorkersDeleteMany struct { +type workflowToVersionsDeleteMany struct { query builder.Query } -func (r aPITokenToWebhookWorkersDeleteMany) ExtractQuery() builder.Query { +func (r workflowToVersionsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p aPITokenToWebhookWorkersDeleteMany) aPITokenModel() {} +func (p workflowToVersionsDeleteMany) workflowModel() {} -func (r aPITokenToWebhookWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowToVersionsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -271135,52 +296042,30 @@ func (r aPITokenToWebhookWorkersDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r aPITokenToWebhookWorkersDeleteMany) Tx() APITokenManyTxResult { - v := newAPITokenManyTxResult() +func (r workflowToVersionsDeleteMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type aPITokenFindUnique struct { +type workflowToTagsFindUnique struct { query builder.Query } -func (r aPITokenFindUnique) getQuery() builder.Query { +func (r workflowToTagsFindUnique) getQuery() builder.Query { return r.query } -func (r aPITokenFindUnique) ExtractQuery() builder.Query { +func (r workflowToTagsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r aPITokenFindUnique) with() {} -func (r aPITokenFindUnique) aPITokenModel() {} -func (r aPITokenFindUnique) aPITokenRelation() {} - -func (r aPITokenActions) FindUnique( - params APITokenEqualsUniqueWhereParam, -) aPITokenFindUnique { - var v aPITokenFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "APIToken" - v.query.Outputs = aPITokenOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowToTagsFindUnique) with() {} +func (r workflowToTagsFindUnique) workflowModel() {} +func (r workflowToTagsFindUnique) workflowRelation() {} -func (r aPITokenFindUnique) With(params ...APITokenRelationWith) aPITokenFindUnique { +func (r workflowToTagsFindUnique) With(params ...WorkflowTagRelationWith) workflowToTagsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -271193,7 +296078,7 @@ func (r aPITokenFindUnique) With(params ...APITokenRelationWith) aPITokenFindUni return r } -func (r aPITokenFindUnique) Select(params ...aPITokenPrismaFields) aPITokenFindUnique { +func (r workflowToTagsFindUnique) Select(params ...workflowPrismaFields) workflowToTagsFindUnique { var outputs []builder.Output for _, param := range params { @@ -271207,7 +296092,7 @@ func (r aPITokenFindUnique) Select(params ...aPITokenPrismaFields) aPITokenFindU return r } -func (r aPITokenFindUnique) Omit(params ...aPITokenPrismaFields) aPITokenFindUnique { +func (r workflowToTagsFindUnique) Omit(params ...workflowPrismaFields) workflowToTagsFindUnique { var outputs []builder.Output var raw []string @@ -271215,7 +296100,7 @@ func (r aPITokenFindUnique) Omit(params ...aPITokenPrismaFields) aPITokenFindUni raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -271226,11 +296111,11 @@ func (r aPITokenFindUnique) Omit(params ...aPITokenPrismaFields) aPITokenFindUni return r } -func (r aPITokenFindUnique) Exec(ctx context.Context) ( - *APITokenModel, +func (r workflowToTagsFindUnique) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *APITokenModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271242,11 +296127,11 @@ func (r aPITokenFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenFindUnique) ExecInner(ctx context.Context) ( - *InnerAPIToken, +func (r workflowToTagsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerAPIToken + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271258,12 +296143,12 @@ func (r aPITokenFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r aPITokenFindUnique) Update(params ...APITokenSetParam) aPITokenUpdateUnique { +func (r workflowToTagsFindUnique) Update(params ...WorkflowSetParam) workflowToTagsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "APIToken" + r.query.Model = "Workflow" - var v aPITokenUpdateUnique + var v workflowToTagsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -271292,120 +296177,83 @@ func (r aPITokenFindUnique) Update(params ...APITokenSetParam) aPITokenUpdateUni return v } -type aPITokenUpdateUnique struct { +type workflowToTagsUpdateUnique struct { query builder.Query } -func (r aPITokenUpdateUnique) ExtractQuery() builder.Query { +func (r workflowToTagsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r aPITokenUpdateUnique) aPITokenModel() {} +func (r workflowToTagsUpdateUnique) workflowModel() {} -func (r aPITokenUpdateUnique) Exec(ctx context.Context) (*APITokenModel, error) { - var v APITokenModel +func (r workflowToTagsUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r aPITokenUpdateUnique) Tx() APITokenUniqueTxResult { - v := newAPITokenUniqueTxResult() +func (r workflowToTagsUpdateUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r aPITokenFindUnique) Delete() aPITokenDeleteUnique { - var v aPITokenDeleteUnique +func (r workflowToTagsFindUnique) Delete() workflowToTagsDeleteUnique { + var v workflowToTagsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "APIToken" + v.query.Model = "Workflow" return v } -type aPITokenDeleteUnique struct { +type workflowToTagsDeleteUnique struct { query builder.Query } -func (r aPITokenDeleteUnique) ExtractQuery() builder.Query { +func (r workflowToTagsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p aPITokenDeleteUnique) aPITokenModel() {} +func (p workflowToTagsDeleteUnique) workflowModel() {} -func (r aPITokenDeleteUnique) Exec(ctx context.Context) (*APITokenModel, error) { - var v APITokenModel +func (r workflowToTagsDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r aPITokenDeleteUnique) Tx() APITokenUniqueTxResult { - v := newAPITokenUniqueTxResult() +func (r workflowToTagsDeleteUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type aPITokenFindFirst struct { +type workflowToTagsFindFirst struct { query builder.Query } -func (r aPITokenFindFirst) getQuery() builder.Query { +func (r workflowToTagsFindFirst) getQuery() builder.Query { return r.query } -func (r aPITokenFindFirst) ExtractQuery() builder.Query { +func (r workflowToTagsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r aPITokenFindFirst) with() {} -func (r aPITokenFindFirst) aPITokenModel() {} -func (r aPITokenFindFirst) aPITokenRelation() {} - -func (r aPITokenActions) FindFirst( - params ...APITokenWhereParam, -) aPITokenFindFirst { - var v aPITokenFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "APIToken" - v.query.Outputs = aPITokenOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowToTagsFindFirst) with() {} +func (r workflowToTagsFindFirst) workflowModel() {} +func (r workflowToTagsFindFirst) workflowRelation() {} -func (r aPITokenFindFirst) With(params ...APITokenRelationWith) aPITokenFindFirst { +func (r workflowToTagsFindFirst) With(params ...WorkflowTagRelationWith) workflowToTagsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -271418,7 +296266,7 @@ func (r aPITokenFindFirst) With(params ...APITokenRelationWith) aPITokenFindFirs return r } -func (r aPITokenFindFirst) Select(params ...aPITokenPrismaFields) aPITokenFindFirst { +func (r workflowToTagsFindFirst) Select(params ...workflowPrismaFields) workflowToTagsFindFirst { var outputs []builder.Output for _, param := range params { @@ -271432,7 +296280,7 @@ func (r aPITokenFindFirst) Select(params ...aPITokenPrismaFields) aPITokenFindFi return r } -func (r aPITokenFindFirst) Omit(params ...aPITokenPrismaFields) aPITokenFindFirst { +func (r workflowToTagsFindFirst) Omit(params ...workflowPrismaFields) workflowToTagsFindFirst { var outputs []builder.Output var raw []string @@ -271440,7 +296288,7 @@ func (r aPITokenFindFirst) Omit(params ...aPITokenPrismaFields) aPITokenFindFirs raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -271451,7 +296299,7 @@ func (r aPITokenFindFirst) Omit(params ...aPITokenPrismaFields) aPITokenFindFirs return r } -func (r aPITokenFindFirst) OrderBy(params ...APITokenOrderByParam) aPITokenFindFirst { +func (r workflowToTagsFindFirst) OrderBy(params ...WorkflowTagOrderByParam) workflowToTagsFindFirst { var fields []builder.Field for _, param := range params { @@ -271471,7 +296319,7 @@ func (r aPITokenFindFirst) OrderBy(params ...APITokenOrderByParam) aPITokenFindF return r } -func (r aPITokenFindFirst) Skip(count int) aPITokenFindFirst { +func (r workflowToTagsFindFirst) Skip(count int) workflowToTagsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -271479,7 +296327,7 @@ func (r aPITokenFindFirst) Skip(count int) aPITokenFindFirst { return r } -func (r aPITokenFindFirst) Take(count int) aPITokenFindFirst { +func (r workflowToTagsFindFirst) Take(count int) workflowToTagsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -271487,7 +296335,7 @@ func (r aPITokenFindFirst) Take(count int) aPITokenFindFirst { return r } -func (r aPITokenFindFirst) Cursor(cursor APITokenCursorParam) aPITokenFindFirst { +func (r workflowToTagsFindFirst) Cursor(cursor WorkflowCursorParam) workflowToTagsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -271495,11 +296343,11 @@ func (r aPITokenFindFirst) Cursor(cursor APITokenCursorParam) aPITokenFindFirst return r } -func (r aPITokenFindFirst) Exec(ctx context.Context) ( - *APITokenModel, +func (r workflowToTagsFindFirst) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *APITokenModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271511,11 +296359,11 @@ func (r aPITokenFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenFindFirst) ExecInner(ctx context.Context) ( - *InnerAPIToken, +func (r workflowToTagsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerAPIToken + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271527,60 +296375,23 @@ func (r aPITokenFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type aPITokenFindMany struct { +type workflowToTagsFindMany struct { query builder.Query } -func (r aPITokenFindMany) getQuery() builder.Query { +func (r workflowToTagsFindMany) getQuery() builder.Query { return r.query } -func (r aPITokenFindMany) ExtractQuery() builder.Query { +func (r workflowToTagsFindMany) ExtractQuery() builder.Query { return r.query } -func (r aPITokenFindMany) with() {} -func (r aPITokenFindMany) aPITokenModel() {} -func (r aPITokenFindMany) aPITokenRelation() {} - -func (r aPITokenActions) FindMany( - params ...APITokenWhereParam, -) aPITokenFindMany { - var v aPITokenFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "APIToken" - v.query.Outputs = aPITokenOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowToTagsFindMany) with() {} +func (r workflowToTagsFindMany) workflowModel() {} +func (r workflowToTagsFindMany) workflowRelation() {} -func (r aPITokenFindMany) With(params ...APITokenRelationWith) aPITokenFindMany { +func (r workflowToTagsFindMany) With(params ...WorkflowTagRelationWith) workflowToTagsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -271593,7 +296404,7 @@ func (r aPITokenFindMany) With(params ...APITokenRelationWith) aPITokenFindMany return r } -func (r aPITokenFindMany) Select(params ...aPITokenPrismaFields) aPITokenFindMany { +func (r workflowToTagsFindMany) Select(params ...workflowPrismaFields) workflowToTagsFindMany { var outputs []builder.Output for _, param := range params { @@ -271607,7 +296418,7 @@ func (r aPITokenFindMany) Select(params ...aPITokenPrismaFields) aPITokenFindMan return r } -func (r aPITokenFindMany) Omit(params ...aPITokenPrismaFields) aPITokenFindMany { +func (r workflowToTagsFindMany) Omit(params ...workflowPrismaFields) workflowToTagsFindMany { var outputs []builder.Output var raw []string @@ -271615,7 +296426,7 @@ func (r aPITokenFindMany) Omit(params ...aPITokenPrismaFields) aPITokenFindMany raw = append(raw, string(param)) } - for _, output := range aPITokenOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -271626,7 +296437,7 @@ func (r aPITokenFindMany) Omit(params ...aPITokenPrismaFields) aPITokenFindMany return r } -func (r aPITokenFindMany) OrderBy(params ...APITokenOrderByParam) aPITokenFindMany { +func (r workflowToTagsFindMany) OrderBy(params ...WorkflowTagOrderByParam) workflowToTagsFindMany { var fields []builder.Field for _, param := range params { @@ -271646,7 +296457,7 @@ func (r aPITokenFindMany) OrderBy(params ...APITokenOrderByParam) aPITokenFindMa return r } -func (r aPITokenFindMany) Skip(count int) aPITokenFindMany { +func (r workflowToTagsFindMany) Skip(count int) workflowToTagsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -271654,7 +296465,7 @@ func (r aPITokenFindMany) Skip(count int) aPITokenFindMany { return r } -func (r aPITokenFindMany) Take(count int) aPITokenFindMany { +func (r workflowToTagsFindMany) Take(count int) workflowToTagsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -271662,7 +296473,7 @@ func (r aPITokenFindMany) Take(count int) aPITokenFindMany { return r } -func (r aPITokenFindMany) Cursor(cursor APITokenCursorParam) aPITokenFindMany { +func (r workflowToTagsFindMany) Cursor(cursor WorkflowCursorParam) workflowToTagsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -271670,11 +296481,11 @@ func (r aPITokenFindMany) Cursor(cursor APITokenCursorParam) aPITokenFindMany { return r } -func (r aPITokenFindMany) Exec(ctx context.Context) ( - []APITokenModel, +func (r workflowToTagsFindMany) Exec(ctx context.Context) ( + []WorkflowModel, error, ) { - var v []APITokenModel + var v []WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271682,11 +296493,11 @@ func (r aPITokenFindMany) Exec(ctx context.Context) ( return v, nil } -func (r aPITokenFindMany) ExecInner(ctx context.Context) ( - []InnerAPIToken, +func (r workflowToTagsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflow, error, ) { - var v []InnerAPIToken + var v []InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271694,14 +296505,14 @@ func (r aPITokenFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r aPITokenFindMany) Update(params ...APITokenSetParam) aPITokenUpdateMany { +func (r workflowToTagsFindMany) Update(params ...WorkflowSetParam) workflowToTagsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "APIToken" + r.query.Model = "Workflow" r.query.Outputs = countOutput - var v aPITokenUpdateMany + var v workflowToTagsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -271730,17 +296541,17 @@ func (r aPITokenFindMany) Update(params ...APITokenSetParam) aPITokenUpdateMany return v } -type aPITokenUpdateMany struct { +type workflowToTagsUpdateMany struct { query builder.Query } -func (r aPITokenUpdateMany) ExtractQuery() builder.Query { +func (r workflowToTagsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r aPITokenUpdateMany) aPITokenModel() {} +func (r workflowToTagsUpdateMany) workflowModel() {} -func (r aPITokenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowToTagsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -271748,36 +296559,36 @@ func (r aPITokenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r aPITokenUpdateMany) Tx() APITokenManyTxResult { - v := newAPITokenManyTxResult() +func (r workflowToTagsUpdateMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r aPITokenFindMany) Delete() aPITokenDeleteMany { - var v aPITokenDeleteMany +func (r workflowToTagsFindMany) Delete() workflowToTagsDeleteMany { + var v workflowToTagsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "APIToken" + v.query.Model = "Workflow" v.query.Outputs = countOutput return v } -type aPITokenDeleteMany struct { +type workflowToTagsDeleteMany struct { query builder.Query } -func (r aPITokenDeleteMany) ExtractQuery() builder.Query { +func (r workflowToTagsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p aPITokenDeleteMany) aPITokenModel() {} +func (p workflowToTagsDeleteMany) workflowModel() {} -func (r aPITokenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowToTagsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -271785,30 +296596,30 @@ func (r aPITokenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r aPITokenDeleteMany) Tx() APITokenManyTxResult { - v := newAPITokenManyTxResult() +func (r workflowToTagsDeleteMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventToTenantFindUnique struct { +type workflowToWebhookWorkerWorkflowsFindUnique struct { query builder.Query } -func (r eventToTenantFindUnique) getQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsFindUnique) getQuery() builder.Query { return r.query } -func (r eventToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r eventToTenantFindUnique) with() {} -func (r eventToTenantFindUnique) eventModel() {} -func (r eventToTenantFindUnique) eventRelation() {} +func (r workflowToWebhookWorkerWorkflowsFindUnique) with() {} +func (r workflowToWebhookWorkerWorkflowsFindUnique) workflowModel() {} +func (r workflowToWebhookWorkerWorkflowsFindUnique) workflowRelation() {} -func (r eventToTenantFindUnique) With(params ...TenantRelationWith) eventToTenantFindUnique { +func (r workflowToWebhookWorkerWorkflowsFindUnique) With(params ...WebhookWorkerWorkflowRelationWith) workflowToWebhookWorkerWorkflowsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -271821,7 +296632,7 @@ func (r eventToTenantFindUnique) With(params ...TenantRelationWith) eventToTenan return r } -func (r eventToTenantFindUnique) Select(params ...eventPrismaFields) eventToTenantFindUnique { +func (r workflowToWebhookWorkerWorkflowsFindUnique) Select(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindUnique { var outputs []builder.Output for _, param := range params { @@ -271835,7 +296646,7 @@ func (r eventToTenantFindUnique) Select(params ...eventPrismaFields) eventToTena return r } -func (r eventToTenantFindUnique) Omit(params ...eventPrismaFields) eventToTenantFindUnique { +func (r workflowToWebhookWorkerWorkflowsFindUnique) Omit(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindUnique { var outputs []builder.Output var raw []string @@ -271843,7 +296654,7 @@ func (r eventToTenantFindUnique) Omit(params ...eventPrismaFields) eventToTenant raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -271854,11 +296665,11 @@ func (r eventToTenantFindUnique) Omit(params ...eventPrismaFields) eventToTenant return r } -func (r eventToTenantFindUnique) Exec(ctx context.Context) ( - *EventModel, +func (r workflowToWebhookWorkerWorkflowsFindUnique) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *EventModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271870,11 +296681,11 @@ func (r eventToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r eventToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowToWebhookWorkerWorkflowsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerEvent + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -271886,12 +296697,12 @@ func (r eventToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r eventToTenantFindUnique) Update(params ...EventSetParam) eventToTenantUpdateUnique { +func (r workflowToWebhookWorkerWorkflowsFindUnique) Update(params ...WorkflowSetParam) workflowToWebhookWorkerWorkflowsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Event" + r.query.Model = "Workflow" - var v eventToTenantUpdateUnique + var v workflowToWebhookWorkerWorkflowsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -271920,83 +296731,83 @@ func (r eventToTenantFindUnique) Update(params ...EventSetParam) eventToTenantUp return v } -type eventToTenantUpdateUnique struct { +type workflowToWebhookWorkerWorkflowsUpdateUnique struct { query builder.Query } -func (r eventToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r eventToTenantUpdateUnique) eventModel() {} +func (r workflowToWebhookWorkerWorkflowsUpdateUnique) workflowModel() {} -func (r eventToTenantUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowToWebhookWorkerWorkflowsUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventToTenantUpdateUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowToWebhookWorkerWorkflowsUpdateUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventToTenantFindUnique) Delete() eventToTenantDeleteUnique { - var v eventToTenantDeleteUnique +func (r workflowToWebhookWorkerWorkflowsFindUnique) Delete() workflowToWebhookWorkerWorkflowsDeleteUnique { + var v workflowToWebhookWorkerWorkflowsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Event" + v.query.Model = "Workflow" return v } -type eventToTenantDeleteUnique struct { +type workflowToWebhookWorkerWorkflowsDeleteUnique struct { query builder.Query } -func (r eventToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p eventToTenantDeleteUnique) eventModel() {} +func (p workflowToWebhookWorkerWorkflowsDeleteUnique) workflowModel() {} -func (r eventToTenantDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowToWebhookWorkerWorkflowsDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventToTenantDeleteUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowToWebhookWorkerWorkflowsDeleteUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventToTenantFindFirst struct { +type workflowToWebhookWorkerWorkflowsFindFirst struct { query builder.Query } -func (r eventToTenantFindFirst) getQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsFindFirst) getQuery() builder.Query { return r.query } -func (r eventToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r eventToTenantFindFirst) with() {} -func (r eventToTenantFindFirst) eventModel() {} -func (r eventToTenantFindFirst) eventRelation() {} +func (r workflowToWebhookWorkerWorkflowsFindFirst) with() {} +func (r workflowToWebhookWorkerWorkflowsFindFirst) workflowModel() {} +func (r workflowToWebhookWorkerWorkflowsFindFirst) workflowRelation() {} -func (r eventToTenantFindFirst) With(params ...TenantRelationWith) eventToTenantFindFirst { +func (r workflowToWebhookWorkerWorkflowsFindFirst) With(params ...WebhookWorkerWorkflowRelationWith) workflowToWebhookWorkerWorkflowsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -272009,7 +296820,7 @@ func (r eventToTenantFindFirst) With(params ...TenantRelationWith) eventToTenant return r } -func (r eventToTenantFindFirst) Select(params ...eventPrismaFields) eventToTenantFindFirst { +func (r workflowToWebhookWorkerWorkflowsFindFirst) Select(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindFirst { var outputs []builder.Output for _, param := range params { @@ -272023,7 +296834,7 @@ func (r eventToTenantFindFirst) Select(params ...eventPrismaFields) eventToTenan return r } -func (r eventToTenantFindFirst) Omit(params ...eventPrismaFields) eventToTenantFindFirst { +func (r workflowToWebhookWorkerWorkflowsFindFirst) Omit(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindFirst { var outputs []builder.Output var raw []string @@ -272031,7 +296842,7 @@ func (r eventToTenantFindFirst) Omit(params ...eventPrismaFields) eventToTenantF raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -272042,7 +296853,7 @@ func (r eventToTenantFindFirst) Omit(params ...eventPrismaFields) eventToTenantF return r } -func (r eventToTenantFindFirst) OrderBy(params ...TenantOrderByParam) eventToTenantFindFirst { +func (r workflowToWebhookWorkerWorkflowsFindFirst) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) workflowToWebhookWorkerWorkflowsFindFirst { var fields []builder.Field for _, param := range params { @@ -272062,7 +296873,7 @@ func (r eventToTenantFindFirst) OrderBy(params ...TenantOrderByParam) eventToTen return r } -func (r eventToTenantFindFirst) Skip(count int) eventToTenantFindFirst { +func (r workflowToWebhookWorkerWorkflowsFindFirst) Skip(count int) workflowToWebhookWorkerWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -272070,7 +296881,7 @@ func (r eventToTenantFindFirst) Skip(count int) eventToTenantFindFirst { return r } -func (r eventToTenantFindFirst) Take(count int) eventToTenantFindFirst { +func (r workflowToWebhookWorkerWorkflowsFindFirst) Take(count int) workflowToWebhookWorkerWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -272078,7 +296889,7 @@ func (r eventToTenantFindFirst) Take(count int) eventToTenantFindFirst { return r } -func (r eventToTenantFindFirst) Cursor(cursor EventCursorParam) eventToTenantFindFirst { +func (r workflowToWebhookWorkerWorkflowsFindFirst) Cursor(cursor WorkflowCursorParam) workflowToWebhookWorkerWorkflowsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -272086,11 +296897,11 @@ func (r eventToTenantFindFirst) Cursor(cursor EventCursorParam) eventToTenantFin return r } -func (r eventToTenantFindFirst) Exec(ctx context.Context) ( - *EventModel, +func (r workflowToWebhookWorkerWorkflowsFindFirst) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *EventModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272102,11 +296913,11 @@ func (r eventToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r eventToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowToWebhookWorkerWorkflowsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerEvent + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272118,23 +296929,23 @@ func (r eventToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type eventToTenantFindMany struct { +type workflowToWebhookWorkerWorkflowsFindMany struct { query builder.Query } -func (r eventToTenantFindMany) getQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsFindMany) getQuery() builder.Query { return r.query } -func (r eventToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsFindMany) ExtractQuery() builder.Query { return r.query } -func (r eventToTenantFindMany) with() {} -func (r eventToTenantFindMany) eventModel() {} -func (r eventToTenantFindMany) eventRelation() {} +func (r workflowToWebhookWorkerWorkflowsFindMany) with() {} +func (r workflowToWebhookWorkerWorkflowsFindMany) workflowModel() {} +func (r workflowToWebhookWorkerWorkflowsFindMany) workflowRelation() {} -func (r eventToTenantFindMany) With(params ...TenantRelationWith) eventToTenantFindMany { +func (r workflowToWebhookWorkerWorkflowsFindMany) With(params ...WebhookWorkerWorkflowRelationWith) workflowToWebhookWorkerWorkflowsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -272147,7 +296958,7 @@ func (r eventToTenantFindMany) With(params ...TenantRelationWith) eventToTenantF return r } -func (r eventToTenantFindMany) Select(params ...eventPrismaFields) eventToTenantFindMany { +func (r workflowToWebhookWorkerWorkflowsFindMany) Select(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindMany { var outputs []builder.Output for _, param := range params { @@ -272161,7 +296972,7 @@ func (r eventToTenantFindMany) Select(params ...eventPrismaFields) eventToTenant return r } -func (r eventToTenantFindMany) Omit(params ...eventPrismaFields) eventToTenantFindMany { +func (r workflowToWebhookWorkerWorkflowsFindMany) Omit(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindMany { var outputs []builder.Output var raw []string @@ -272169,7 +296980,7 @@ func (r eventToTenantFindMany) Omit(params ...eventPrismaFields) eventToTenantFi raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -272180,7 +296991,7 @@ func (r eventToTenantFindMany) Omit(params ...eventPrismaFields) eventToTenantFi return r } -func (r eventToTenantFindMany) OrderBy(params ...TenantOrderByParam) eventToTenantFindMany { +func (r workflowToWebhookWorkerWorkflowsFindMany) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) workflowToWebhookWorkerWorkflowsFindMany { var fields []builder.Field for _, param := range params { @@ -272200,7 +297011,7 @@ func (r eventToTenantFindMany) OrderBy(params ...TenantOrderByParam) eventToTena return r } -func (r eventToTenantFindMany) Skip(count int) eventToTenantFindMany { +func (r workflowToWebhookWorkerWorkflowsFindMany) Skip(count int) workflowToWebhookWorkerWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -272208,7 +297019,7 @@ func (r eventToTenantFindMany) Skip(count int) eventToTenantFindMany { return r } -func (r eventToTenantFindMany) Take(count int) eventToTenantFindMany { +func (r workflowToWebhookWorkerWorkflowsFindMany) Take(count int) workflowToWebhookWorkerWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -272216,7 +297027,7 @@ func (r eventToTenantFindMany) Take(count int) eventToTenantFindMany { return r } -func (r eventToTenantFindMany) Cursor(cursor EventCursorParam) eventToTenantFindMany { +func (r workflowToWebhookWorkerWorkflowsFindMany) Cursor(cursor WorkflowCursorParam) workflowToWebhookWorkerWorkflowsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -272224,11 +297035,11 @@ func (r eventToTenantFindMany) Cursor(cursor EventCursorParam) eventToTenantFind return r } -func (r eventToTenantFindMany) Exec(ctx context.Context) ( - []EventModel, +func (r workflowToWebhookWorkerWorkflowsFindMany) Exec(ctx context.Context) ( + []WorkflowModel, error, ) { - var v []EventModel + var v []WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272236,11 +297047,11 @@ func (r eventToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r eventToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerEvent, +func (r workflowToWebhookWorkerWorkflowsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflow, error, ) { - var v []InnerEvent + var v []InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272248,14 +297059,14 @@ func (r eventToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r eventToTenantFindMany) Update(params ...EventSetParam) eventToTenantUpdateMany { +func (r workflowToWebhookWorkerWorkflowsFindMany) Update(params ...WorkflowSetParam) workflowToWebhookWorkerWorkflowsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Event" + r.query.Model = "Workflow" r.query.Outputs = countOutput - var v eventToTenantUpdateMany + var v workflowToWebhookWorkerWorkflowsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -272284,17 +297095,17 @@ func (r eventToTenantFindMany) Update(params ...EventSetParam) eventToTenantUpda return v } -type eventToTenantUpdateMany struct { +type workflowToWebhookWorkerWorkflowsUpdateMany struct { query builder.Query } -func (r eventToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r eventToTenantUpdateMany) eventModel() {} +func (r workflowToWebhookWorkerWorkflowsUpdateMany) workflowModel() {} -func (r eventToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowToWebhookWorkerWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -272302,36 +297113,36 @@ func (r eventToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r eventToTenantUpdateMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowToWebhookWorkerWorkflowsUpdateMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventToTenantFindMany) Delete() eventToTenantDeleteMany { - var v eventToTenantDeleteMany +func (r workflowToWebhookWorkerWorkflowsFindMany) Delete() workflowToWebhookWorkerWorkflowsDeleteMany { + var v workflowToWebhookWorkerWorkflowsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Event" + v.query.Model = "Workflow" v.query.Outputs = countOutput return v } -type eventToTenantDeleteMany struct { +type workflowToWebhookWorkerWorkflowsDeleteMany struct { query builder.Query } -func (r eventToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowToWebhookWorkerWorkflowsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p eventToTenantDeleteMany) eventModel() {} +func (p workflowToWebhookWorkerWorkflowsDeleteMany) workflowModel() {} -func (r eventToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowToWebhookWorkerWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -272339,30 +297150,52 @@ func (r eventToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r eventToTenantDeleteMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowToWebhookWorkerWorkflowsDeleteMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventToReplayedFromFindUnique struct { +type workflowFindUnique struct { query builder.Query } -func (r eventToReplayedFromFindUnique) getQuery() builder.Query { +func (r workflowFindUnique) getQuery() builder.Query { return r.query } -func (r eventToReplayedFromFindUnique) ExtractQuery() builder.Query { +func (r workflowFindUnique) ExtractQuery() builder.Query { return r.query } -func (r eventToReplayedFromFindUnique) with() {} -func (r eventToReplayedFromFindUnique) eventModel() {} -func (r eventToReplayedFromFindUnique) eventRelation() {} +func (r workflowFindUnique) with() {} +func (r workflowFindUnique) workflowModel() {} +func (r workflowFindUnique) workflowRelation() {} -func (r eventToReplayedFromFindUnique) With(params ...EventRelationWith) eventToReplayedFromFindUnique { +func (r workflowActions) FindUnique( + params WorkflowEqualsUniqueWhereParam, +) workflowFindUnique { + var v workflowFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "Workflow" + v.query.Outputs = workflowOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowFindUnique) With(params ...WorkflowRelationWith) workflowFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -272375,7 +297208,7 @@ func (r eventToReplayedFromFindUnique) With(params ...EventRelationWith) eventTo return r } -func (r eventToReplayedFromFindUnique) Select(params ...eventPrismaFields) eventToReplayedFromFindUnique { +func (r workflowFindUnique) Select(params ...workflowPrismaFields) workflowFindUnique { var outputs []builder.Output for _, param := range params { @@ -272389,7 +297222,7 @@ func (r eventToReplayedFromFindUnique) Select(params ...eventPrismaFields) event return r } -func (r eventToReplayedFromFindUnique) Omit(params ...eventPrismaFields) eventToReplayedFromFindUnique { +func (r workflowFindUnique) Omit(params ...workflowPrismaFields) workflowFindUnique { var outputs []builder.Output var raw []string @@ -272397,7 +297230,7 @@ func (r eventToReplayedFromFindUnique) Omit(params ...eventPrismaFields) eventTo raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -272408,11 +297241,11 @@ func (r eventToReplayedFromFindUnique) Omit(params ...eventPrismaFields) eventTo return r } -func (r eventToReplayedFromFindUnique) Exec(ctx context.Context) ( - *EventModel, +func (r workflowFindUnique) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *EventModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272424,11 +297257,11 @@ func (r eventToReplayedFromFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r eventToReplayedFromFindUnique) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerEvent + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272440,12 +297273,12 @@ func (r eventToReplayedFromFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r eventToReplayedFromFindUnique) Update(params ...EventSetParam) eventToReplayedFromUpdateUnique { +func (r workflowFindUnique) Update(params ...WorkflowSetParam) workflowUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Event" + r.query.Model = "Workflow" - var v eventToReplayedFromUpdateUnique + var v workflowUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -272474,83 +297307,120 @@ func (r eventToReplayedFromFindUnique) Update(params ...EventSetParam) eventToRe return v } -type eventToReplayedFromUpdateUnique struct { +type workflowUpdateUnique struct { query builder.Query } -func (r eventToReplayedFromUpdateUnique) ExtractQuery() builder.Query { +func (r workflowUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r eventToReplayedFromUpdateUnique) eventModel() {} +func (r workflowUpdateUnique) workflowModel() {} -func (r eventToReplayedFromUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventToReplayedFromUpdateUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowUpdateUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventToReplayedFromFindUnique) Delete() eventToReplayedFromDeleteUnique { - var v eventToReplayedFromDeleteUnique +func (r workflowFindUnique) Delete() workflowDeleteUnique { + var v workflowDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Event" + v.query.Model = "Workflow" return v } -type eventToReplayedFromDeleteUnique struct { +type workflowDeleteUnique struct { query builder.Query } -func (r eventToReplayedFromDeleteUnique) ExtractQuery() builder.Query { +func (r workflowDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p eventToReplayedFromDeleteUnique) eventModel() {} +func (p workflowDeleteUnique) workflowModel() {} -func (r eventToReplayedFromDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { + var v WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventToReplayedFromDeleteUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowDeleteUnique) Tx() WorkflowUniqueTxResult { + v := newWorkflowUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventToReplayedFromFindFirst struct { +type workflowFindFirst struct { query builder.Query } -func (r eventToReplayedFromFindFirst) getQuery() builder.Query { +func (r workflowFindFirst) getQuery() builder.Query { return r.query } -func (r eventToReplayedFromFindFirst) ExtractQuery() builder.Query { +func (r workflowFindFirst) ExtractQuery() builder.Query { return r.query } -func (r eventToReplayedFromFindFirst) with() {} -func (r eventToReplayedFromFindFirst) eventModel() {} -func (r eventToReplayedFromFindFirst) eventRelation() {} +func (r workflowFindFirst) with() {} +func (r workflowFindFirst) workflowModel() {} +func (r workflowFindFirst) workflowRelation() {} -func (r eventToReplayedFromFindFirst) With(params ...EventRelationWith) eventToReplayedFromFindFirst { +func (r workflowActions) FindFirst( + params ...WorkflowWhereParam, +) workflowFindFirst { + var v workflowFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "Workflow" + v.query.Outputs = workflowOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowFindFirst) With(params ...WorkflowRelationWith) workflowFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -272563,7 +297433,7 @@ func (r eventToReplayedFromFindFirst) With(params ...EventRelationWith) eventToR return r } -func (r eventToReplayedFromFindFirst) Select(params ...eventPrismaFields) eventToReplayedFromFindFirst { +func (r workflowFindFirst) Select(params ...workflowPrismaFields) workflowFindFirst { var outputs []builder.Output for _, param := range params { @@ -272577,7 +297447,7 @@ func (r eventToReplayedFromFindFirst) Select(params ...eventPrismaFields) eventT return r } -func (r eventToReplayedFromFindFirst) Omit(params ...eventPrismaFields) eventToReplayedFromFindFirst { +func (r workflowFindFirst) Omit(params ...workflowPrismaFields) workflowFindFirst { var outputs []builder.Output var raw []string @@ -272585,7 +297455,7 @@ func (r eventToReplayedFromFindFirst) Omit(params ...eventPrismaFields) eventToR raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -272596,7 +297466,7 @@ func (r eventToReplayedFromFindFirst) Omit(params ...eventPrismaFields) eventToR return r } -func (r eventToReplayedFromFindFirst) OrderBy(params ...EventOrderByParam) eventToReplayedFromFindFirst { +func (r workflowFindFirst) OrderBy(params ...WorkflowOrderByParam) workflowFindFirst { var fields []builder.Field for _, param := range params { @@ -272616,7 +297486,7 @@ func (r eventToReplayedFromFindFirst) OrderBy(params ...EventOrderByParam) event return r } -func (r eventToReplayedFromFindFirst) Skip(count int) eventToReplayedFromFindFirst { +func (r workflowFindFirst) Skip(count int) workflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -272624,7 +297494,7 @@ func (r eventToReplayedFromFindFirst) Skip(count int) eventToReplayedFromFindFir return r } -func (r eventToReplayedFromFindFirst) Take(count int) eventToReplayedFromFindFirst { +func (r workflowFindFirst) Take(count int) workflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -272632,7 +297502,7 @@ func (r eventToReplayedFromFindFirst) Take(count int) eventToReplayedFromFindFir return r } -func (r eventToReplayedFromFindFirst) Cursor(cursor EventCursorParam) eventToReplayedFromFindFirst { +func (r workflowFindFirst) Cursor(cursor WorkflowCursorParam) workflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -272640,11 +297510,11 @@ func (r eventToReplayedFromFindFirst) Cursor(cursor EventCursorParam) eventToRep return r } -func (r eventToReplayedFromFindFirst) Exec(ctx context.Context) ( - *EventModel, +func (r workflowFindFirst) Exec(ctx context.Context) ( + *WorkflowModel, error, ) { - var v *EventModel + var v *WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272656,11 +297526,11 @@ func (r eventToReplayedFromFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r eventToReplayedFromFindFirst) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflow, error, ) { - var v *InnerEvent + var v *InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272672,23 +297542,60 @@ func (r eventToReplayedFromFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type eventToReplayedFromFindMany struct { +type workflowFindMany struct { query builder.Query } -func (r eventToReplayedFromFindMany) getQuery() builder.Query { +func (r workflowFindMany) getQuery() builder.Query { return r.query } -func (r eventToReplayedFromFindMany) ExtractQuery() builder.Query { +func (r workflowFindMany) ExtractQuery() builder.Query { return r.query } -func (r eventToReplayedFromFindMany) with() {} -func (r eventToReplayedFromFindMany) eventModel() {} -func (r eventToReplayedFromFindMany) eventRelation() {} +func (r workflowFindMany) with() {} +func (r workflowFindMany) workflowModel() {} +func (r workflowFindMany) workflowRelation() {} -func (r eventToReplayedFromFindMany) With(params ...EventRelationWith) eventToReplayedFromFindMany { +func (r workflowActions) FindMany( + params ...WorkflowWhereParam, +) workflowFindMany { + var v workflowFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "Workflow" + v.query.Outputs = workflowOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowFindMany) With(params ...WorkflowRelationWith) workflowFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -272701,7 +297608,7 @@ func (r eventToReplayedFromFindMany) With(params ...EventRelationWith) eventToRe return r } -func (r eventToReplayedFromFindMany) Select(params ...eventPrismaFields) eventToReplayedFromFindMany { +func (r workflowFindMany) Select(params ...workflowPrismaFields) workflowFindMany { var outputs []builder.Output for _, param := range params { @@ -272715,7 +297622,7 @@ func (r eventToReplayedFromFindMany) Select(params ...eventPrismaFields) eventTo return r } -func (r eventToReplayedFromFindMany) Omit(params ...eventPrismaFields) eventToReplayedFromFindMany { +func (r workflowFindMany) Omit(params ...workflowPrismaFields) workflowFindMany { var outputs []builder.Output var raw []string @@ -272723,7 +297630,7 @@ func (r eventToReplayedFromFindMany) Omit(params ...eventPrismaFields) eventToRe raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -272734,7 +297641,7 @@ func (r eventToReplayedFromFindMany) Omit(params ...eventPrismaFields) eventToRe return r } -func (r eventToReplayedFromFindMany) OrderBy(params ...EventOrderByParam) eventToReplayedFromFindMany { +func (r workflowFindMany) OrderBy(params ...WorkflowOrderByParam) workflowFindMany { var fields []builder.Field for _, param := range params { @@ -272754,7 +297661,7 @@ func (r eventToReplayedFromFindMany) OrderBy(params ...EventOrderByParam) eventT return r } -func (r eventToReplayedFromFindMany) Skip(count int) eventToReplayedFromFindMany { +func (r workflowFindMany) Skip(count int) workflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -272762,7 +297669,7 @@ func (r eventToReplayedFromFindMany) Skip(count int) eventToReplayedFromFindMany return r } -func (r eventToReplayedFromFindMany) Take(count int) eventToReplayedFromFindMany { +func (r workflowFindMany) Take(count int) workflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -272770,7 +297677,7 @@ func (r eventToReplayedFromFindMany) Take(count int) eventToReplayedFromFindMany return r } -func (r eventToReplayedFromFindMany) Cursor(cursor EventCursorParam) eventToReplayedFromFindMany { +func (r workflowFindMany) Cursor(cursor WorkflowCursorParam) workflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -272778,11 +297685,11 @@ func (r eventToReplayedFromFindMany) Cursor(cursor EventCursorParam) eventToRepl return r } -func (r eventToReplayedFromFindMany) Exec(ctx context.Context) ( - []EventModel, +func (r workflowFindMany) Exec(ctx context.Context) ( + []WorkflowModel, error, ) { - var v []EventModel + var v []WorkflowModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272790,11 +297697,11 @@ func (r eventToReplayedFromFindMany) Exec(ctx context.Context) ( return v, nil } -func (r eventToReplayedFromFindMany) ExecInner(ctx context.Context) ( - []InnerEvent, +func (r workflowFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflow, error, ) { - var v []InnerEvent + var v []InnerWorkflow if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272802,14 +297709,14 @@ func (r eventToReplayedFromFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r eventToReplayedFromFindMany) Update(params ...EventSetParam) eventToReplayedFromUpdateMany { +func (r workflowFindMany) Update(params ...WorkflowSetParam) workflowUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Event" + r.query.Model = "Workflow" r.query.Outputs = countOutput - var v eventToReplayedFromUpdateMany + var v workflowUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -272838,17 +297745,17 @@ func (r eventToReplayedFromFindMany) Update(params ...EventSetParam) eventToRepl return v } -type eventToReplayedFromUpdateMany struct { +type workflowUpdateMany struct { query builder.Query } -func (r eventToReplayedFromUpdateMany) ExtractQuery() builder.Query { +func (r workflowUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r eventToReplayedFromUpdateMany) eventModel() {} +func (r workflowUpdateMany) workflowModel() {} -func (r eventToReplayedFromUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -272856,36 +297763,36 @@ func (r eventToReplayedFromUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r eventToReplayedFromUpdateMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowUpdateMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventToReplayedFromFindMany) Delete() eventToReplayedFromDeleteMany { - var v eventToReplayedFromDeleteMany +func (r workflowFindMany) Delete() workflowDeleteMany { + var v workflowDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Event" + v.query.Model = "Workflow" v.query.Outputs = countOutput return v } -type eventToReplayedFromDeleteMany struct { +type workflowDeleteMany struct { query builder.Query } -func (r eventToReplayedFromDeleteMany) ExtractQuery() builder.Query { +func (r workflowDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p eventToReplayedFromDeleteMany) eventModel() {} +func (p workflowDeleteMany) workflowModel() {} -func (r eventToReplayedFromDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -272893,30 +297800,30 @@ func (r eventToReplayedFromDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r eventToReplayedFromDeleteMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowDeleteMany) Tx() WorkflowManyTxResult { + v := newWorkflowManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventToReplaysFindUnique struct { +type workflowVersionToWorkflowFindUnique struct { query builder.Query } -func (r eventToReplaysFindUnique) getQuery() builder.Query { +func (r workflowVersionToWorkflowFindUnique) getQuery() builder.Query { return r.query } -func (r eventToReplaysFindUnique) ExtractQuery() builder.Query { +func (r workflowVersionToWorkflowFindUnique) ExtractQuery() builder.Query { return r.query } -func (r eventToReplaysFindUnique) with() {} -func (r eventToReplaysFindUnique) eventModel() {} -func (r eventToReplaysFindUnique) eventRelation() {} +func (r workflowVersionToWorkflowFindUnique) with() {} +func (r workflowVersionToWorkflowFindUnique) workflowVersionModel() {} +func (r workflowVersionToWorkflowFindUnique) workflowVersionRelation() {} -func (r eventToReplaysFindUnique) With(params ...EventRelationWith) eventToReplaysFindUnique { +func (r workflowVersionToWorkflowFindUnique) With(params ...WorkflowRelationWith) workflowVersionToWorkflowFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -272929,7 +297836,7 @@ func (r eventToReplaysFindUnique) With(params ...EventRelationWith) eventToRepla return r } -func (r eventToReplaysFindUnique) Select(params ...eventPrismaFields) eventToReplaysFindUnique { +func (r workflowVersionToWorkflowFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindUnique { var outputs []builder.Output for _, param := range params { @@ -272943,7 +297850,7 @@ func (r eventToReplaysFindUnique) Select(params ...eventPrismaFields) eventToRep return r } -func (r eventToReplaysFindUnique) Omit(params ...eventPrismaFields) eventToReplaysFindUnique { +func (r workflowVersionToWorkflowFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindUnique { var outputs []builder.Output var raw []string @@ -272951,7 +297858,7 @@ func (r eventToReplaysFindUnique) Omit(params ...eventPrismaFields) eventToRepla raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -272962,11 +297869,11 @@ func (r eventToReplaysFindUnique) Omit(params ...eventPrismaFields) eventToRepla return r } -func (r eventToReplaysFindUnique) Exec(ctx context.Context) ( - *EventModel, +func (r workflowVersionToWorkflowFindUnique) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *EventModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272978,11 +297885,11 @@ func (r eventToReplaysFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r eventToReplaysFindUnique) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowVersionToWorkflowFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerEvent + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -272994,12 +297901,12 @@ func (r eventToReplaysFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r eventToReplaysFindUnique) Update(params ...EventSetParam) eventToReplaysUpdateUnique { +func (r workflowVersionToWorkflowFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToWorkflowUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Event" + r.query.Model = "WorkflowVersion" - var v eventToReplaysUpdateUnique + var v workflowVersionToWorkflowUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -273028,83 +297935,83 @@ func (r eventToReplaysFindUnique) Update(params ...EventSetParam) eventToReplays return v } -type eventToReplaysUpdateUnique struct { +type workflowVersionToWorkflowUpdateUnique struct { query builder.Query } -func (r eventToReplaysUpdateUnique) ExtractQuery() builder.Query { +func (r workflowVersionToWorkflowUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r eventToReplaysUpdateUnique) eventModel() {} +func (r workflowVersionToWorkflowUpdateUnique) workflowVersionModel() {} -func (r eventToReplaysUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowVersionToWorkflowUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventToReplaysUpdateUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowVersionToWorkflowUpdateUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventToReplaysFindUnique) Delete() eventToReplaysDeleteUnique { - var v eventToReplaysDeleteUnique +func (r workflowVersionToWorkflowFindUnique) Delete() workflowVersionToWorkflowDeleteUnique { + var v workflowVersionToWorkflowDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Event" + v.query.Model = "WorkflowVersion" return v } -type eventToReplaysDeleteUnique struct { +type workflowVersionToWorkflowDeleteUnique struct { query builder.Query } -func (r eventToReplaysDeleteUnique) ExtractQuery() builder.Query { +func (r workflowVersionToWorkflowDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p eventToReplaysDeleteUnique) eventModel() {} +func (p workflowVersionToWorkflowDeleteUnique) workflowVersionModel() {} -func (r eventToReplaysDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowVersionToWorkflowDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventToReplaysDeleteUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowVersionToWorkflowDeleteUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventToReplaysFindFirst struct { +type workflowVersionToWorkflowFindFirst struct { query builder.Query } -func (r eventToReplaysFindFirst) getQuery() builder.Query { +func (r workflowVersionToWorkflowFindFirst) getQuery() builder.Query { return r.query } -func (r eventToReplaysFindFirst) ExtractQuery() builder.Query { +func (r workflowVersionToWorkflowFindFirst) ExtractQuery() builder.Query { return r.query } -func (r eventToReplaysFindFirst) with() {} -func (r eventToReplaysFindFirst) eventModel() {} -func (r eventToReplaysFindFirst) eventRelation() {} +func (r workflowVersionToWorkflowFindFirst) with() {} +func (r workflowVersionToWorkflowFindFirst) workflowVersionModel() {} +func (r workflowVersionToWorkflowFindFirst) workflowVersionRelation() {} -func (r eventToReplaysFindFirst) With(params ...EventRelationWith) eventToReplaysFindFirst { +func (r workflowVersionToWorkflowFindFirst) With(params ...WorkflowRelationWith) workflowVersionToWorkflowFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -273117,7 +298024,7 @@ func (r eventToReplaysFindFirst) With(params ...EventRelationWith) eventToReplay return r } -func (r eventToReplaysFindFirst) Select(params ...eventPrismaFields) eventToReplaysFindFirst { +func (r workflowVersionToWorkflowFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindFirst { var outputs []builder.Output for _, param := range params { @@ -273131,7 +298038,7 @@ func (r eventToReplaysFindFirst) Select(params ...eventPrismaFields) eventToRepl return r } -func (r eventToReplaysFindFirst) Omit(params ...eventPrismaFields) eventToReplaysFindFirst { +func (r workflowVersionToWorkflowFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindFirst { var outputs []builder.Output var raw []string @@ -273139,7 +298046,7 @@ func (r eventToReplaysFindFirst) Omit(params ...eventPrismaFields) eventToReplay raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -273150,7 +298057,7 @@ func (r eventToReplaysFindFirst) Omit(params ...eventPrismaFields) eventToReplay return r } -func (r eventToReplaysFindFirst) OrderBy(params ...EventOrderByParam) eventToReplaysFindFirst { +func (r workflowVersionToWorkflowFindFirst) OrderBy(params ...WorkflowOrderByParam) workflowVersionToWorkflowFindFirst { var fields []builder.Field for _, param := range params { @@ -273170,7 +298077,7 @@ func (r eventToReplaysFindFirst) OrderBy(params ...EventOrderByParam) eventToRep return r } -func (r eventToReplaysFindFirst) Skip(count int) eventToReplaysFindFirst { +func (r workflowVersionToWorkflowFindFirst) Skip(count int) workflowVersionToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -273178,7 +298085,7 @@ func (r eventToReplaysFindFirst) Skip(count int) eventToReplaysFindFirst { return r } -func (r eventToReplaysFindFirst) Take(count int) eventToReplaysFindFirst { +func (r workflowVersionToWorkflowFindFirst) Take(count int) workflowVersionToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -273186,7 +298093,7 @@ func (r eventToReplaysFindFirst) Take(count int) eventToReplaysFindFirst { return r } -func (r eventToReplaysFindFirst) Cursor(cursor EventCursorParam) eventToReplaysFindFirst { +func (r workflowVersionToWorkflowFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -273194,11 +298101,11 @@ func (r eventToReplaysFindFirst) Cursor(cursor EventCursorParam) eventToReplaysF return r } -func (r eventToReplaysFindFirst) Exec(ctx context.Context) ( - *EventModel, +func (r workflowVersionToWorkflowFindFirst) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *EventModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273210,11 +298117,11 @@ func (r eventToReplaysFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r eventToReplaysFindFirst) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowVersionToWorkflowFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerEvent + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273226,23 +298133,23 @@ func (r eventToReplaysFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type eventToReplaysFindMany struct { +type workflowVersionToWorkflowFindMany struct { query builder.Query } -func (r eventToReplaysFindMany) getQuery() builder.Query { +func (r workflowVersionToWorkflowFindMany) getQuery() builder.Query { return r.query } -func (r eventToReplaysFindMany) ExtractQuery() builder.Query { +func (r workflowVersionToWorkflowFindMany) ExtractQuery() builder.Query { return r.query } -func (r eventToReplaysFindMany) with() {} -func (r eventToReplaysFindMany) eventModel() {} -func (r eventToReplaysFindMany) eventRelation() {} +func (r workflowVersionToWorkflowFindMany) with() {} +func (r workflowVersionToWorkflowFindMany) workflowVersionModel() {} +func (r workflowVersionToWorkflowFindMany) workflowVersionRelation() {} -func (r eventToReplaysFindMany) With(params ...EventRelationWith) eventToReplaysFindMany { +func (r workflowVersionToWorkflowFindMany) With(params ...WorkflowRelationWith) workflowVersionToWorkflowFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -273255,7 +298162,7 @@ func (r eventToReplaysFindMany) With(params ...EventRelationWith) eventToReplays return r } -func (r eventToReplaysFindMany) Select(params ...eventPrismaFields) eventToReplaysFindMany { +func (r workflowVersionToWorkflowFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindMany { var outputs []builder.Output for _, param := range params { @@ -273269,7 +298176,7 @@ func (r eventToReplaysFindMany) Select(params ...eventPrismaFields) eventToRepla return r } -func (r eventToReplaysFindMany) Omit(params ...eventPrismaFields) eventToReplaysFindMany { +func (r workflowVersionToWorkflowFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindMany { var outputs []builder.Output var raw []string @@ -273277,7 +298184,7 @@ func (r eventToReplaysFindMany) Omit(params ...eventPrismaFields) eventToReplays raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -273288,7 +298195,7 @@ func (r eventToReplaysFindMany) Omit(params ...eventPrismaFields) eventToReplays return r } -func (r eventToReplaysFindMany) OrderBy(params ...EventOrderByParam) eventToReplaysFindMany { +func (r workflowVersionToWorkflowFindMany) OrderBy(params ...WorkflowOrderByParam) workflowVersionToWorkflowFindMany { var fields []builder.Field for _, param := range params { @@ -273308,7 +298215,7 @@ func (r eventToReplaysFindMany) OrderBy(params ...EventOrderByParam) eventToRepl return r } -func (r eventToReplaysFindMany) Skip(count int) eventToReplaysFindMany { +func (r workflowVersionToWorkflowFindMany) Skip(count int) workflowVersionToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -273316,7 +298223,7 @@ func (r eventToReplaysFindMany) Skip(count int) eventToReplaysFindMany { return r } -func (r eventToReplaysFindMany) Take(count int) eventToReplaysFindMany { +func (r workflowVersionToWorkflowFindMany) Take(count int) workflowVersionToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -273324,7 +298231,7 @@ func (r eventToReplaysFindMany) Take(count int) eventToReplaysFindMany { return r } -func (r eventToReplaysFindMany) Cursor(cursor EventCursorParam) eventToReplaysFindMany { +func (r workflowVersionToWorkflowFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -273332,11 +298239,11 @@ func (r eventToReplaysFindMany) Cursor(cursor EventCursorParam) eventToReplaysFi return r } -func (r eventToReplaysFindMany) Exec(ctx context.Context) ( - []EventModel, +func (r workflowVersionToWorkflowFindMany) Exec(ctx context.Context) ( + []WorkflowVersionModel, error, ) { - var v []EventModel + var v []WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273344,11 +298251,11 @@ func (r eventToReplaysFindMany) Exec(ctx context.Context) ( return v, nil } -func (r eventToReplaysFindMany) ExecInner(ctx context.Context) ( - []InnerEvent, +func (r workflowVersionToWorkflowFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowVersion, error, ) { - var v []InnerEvent + var v []InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273356,14 +298263,14 @@ func (r eventToReplaysFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r eventToReplaysFindMany) Update(params ...EventSetParam) eventToReplaysUpdateMany { +func (r workflowVersionToWorkflowFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToWorkflowUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Event" + r.query.Model = "WorkflowVersion" r.query.Outputs = countOutput - var v eventToReplaysUpdateMany + var v workflowVersionToWorkflowUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -273392,17 +298299,17 @@ func (r eventToReplaysFindMany) Update(params ...EventSetParam) eventToReplaysUp return v } -type eventToReplaysUpdateMany struct { +type workflowVersionToWorkflowUpdateMany struct { query builder.Query } -func (r eventToReplaysUpdateMany) ExtractQuery() builder.Query { +func (r workflowVersionToWorkflowUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r eventToReplaysUpdateMany) eventModel() {} +func (r workflowVersionToWorkflowUpdateMany) workflowVersionModel() {} -func (r eventToReplaysUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -273410,36 +298317,36 @@ func (r eventToReplaysUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r eventToReplaysUpdateMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowVersionToWorkflowUpdateMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventToReplaysFindMany) Delete() eventToReplaysDeleteMany { - var v eventToReplaysDeleteMany +func (r workflowVersionToWorkflowFindMany) Delete() workflowVersionToWorkflowDeleteMany { + var v workflowVersionToWorkflowDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Event" + v.query.Model = "WorkflowVersion" v.query.Outputs = countOutput return v } -type eventToReplaysDeleteMany struct { +type workflowVersionToWorkflowDeleteMany struct { query builder.Query } -func (r eventToReplaysDeleteMany) ExtractQuery() builder.Query { +func (r workflowVersionToWorkflowDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p eventToReplaysDeleteMany) eventModel() {} +func (p workflowVersionToWorkflowDeleteMany) workflowVersionModel() {} -func (r eventToReplaysDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -273447,30 +298354,30 @@ func (r eventToReplaysDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r eventToReplaysDeleteMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowVersionToWorkflowDeleteMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventToWorkflowRunsFindUnique struct { +type workflowVersionToTriggersFindUnique struct { query builder.Query } -func (r eventToWorkflowRunsFindUnique) getQuery() builder.Query { +func (r workflowVersionToTriggersFindUnique) getQuery() builder.Query { return r.query } -func (r eventToWorkflowRunsFindUnique) ExtractQuery() builder.Query { +func (r workflowVersionToTriggersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r eventToWorkflowRunsFindUnique) with() {} -func (r eventToWorkflowRunsFindUnique) eventModel() {} -func (r eventToWorkflowRunsFindUnique) eventRelation() {} +func (r workflowVersionToTriggersFindUnique) with() {} +func (r workflowVersionToTriggersFindUnique) workflowVersionModel() {} +func (r workflowVersionToTriggersFindUnique) workflowVersionRelation() {} -func (r eventToWorkflowRunsFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) eventToWorkflowRunsFindUnique { +func (r workflowVersionToTriggersFindUnique) With(params ...WorkflowTriggersRelationWith) workflowVersionToTriggersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -273483,7 +298390,7 @@ func (r eventToWorkflowRunsFindUnique) With(params ...WorkflowRunTriggeredByRela return r } -func (r eventToWorkflowRunsFindUnique) Select(params ...eventPrismaFields) eventToWorkflowRunsFindUnique { +func (r workflowVersionToTriggersFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindUnique { var outputs []builder.Output for _, param := range params { @@ -273497,7 +298404,7 @@ func (r eventToWorkflowRunsFindUnique) Select(params ...eventPrismaFields) event return r } -func (r eventToWorkflowRunsFindUnique) Omit(params ...eventPrismaFields) eventToWorkflowRunsFindUnique { +func (r workflowVersionToTriggersFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindUnique { var outputs []builder.Output var raw []string @@ -273505,7 +298412,7 @@ func (r eventToWorkflowRunsFindUnique) Omit(params ...eventPrismaFields) eventTo raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -273516,11 +298423,11 @@ func (r eventToWorkflowRunsFindUnique) Omit(params ...eventPrismaFields) eventTo return r } -func (r eventToWorkflowRunsFindUnique) Exec(ctx context.Context) ( - *EventModel, +func (r workflowVersionToTriggersFindUnique) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *EventModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273532,11 +298439,11 @@ func (r eventToWorkflowRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r eventToWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowVersionToTriggersFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerEvent + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273548,12 +298455,12 @@ func (r eventToWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r eventToWorkflowRunsFindUnique) Update(params ...EventSetParam) eventToWorkflowRunsUpdateUnique { +func (r workflowVersionToTriggersFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToTriggersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Event" + r.query.Model = "WorkflowVersion" - var v eventToWorkflowRunsUpdateUnique + var v workflowVersionToTriggersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -273582,83 +298489,83 @@ func (r eventToWorkflowRunsFindUnique) Update(params ...EventSetParam) eventToWo return v } -type eventToWorkflowRunsUpdateUnique struct { +type workflowVersionToTriggersUpdateUnique struct { query builder.Query } -func (r eventToWorkflowRunsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowVersionToTriggersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r eventToWorkflowRunsUpdateUnique) eventModel() {} +func (r workflowVersionToTriggersUpdateUnique) workflowVersionModel() {} -func (r eventToWorkflowRunsUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowVersionToTriggersUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventToWorkflowRunsUpdateUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowVersionToTriggersUpdateUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventToWorkflowRunsFindUnique) Delete() eventToWorkflowRunsDeleteUnique { - var v eventToWorkflowRunsDeleteUnique +func (r workflowVersionToTriggersFindUnique) Delete() workflowVersionToTriggersDeleteUnique { + var v workflowVersionToTriggersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Event" + v.query.Model = "WorkflowVersion" return v } -type eventToWorkflowRunsDeleteUnique struct { +type workflowVersionToTriggersDeleteUnique struct { query builder.Query } -func (r eventToWorkflowRunsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowVersionToTriggersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p eventToWorkflowRunsDeleteUnique) eventModel() {} +func (p workflowVersionToTriggersDeleteUnique) workflowVersionModel() {} -func (r eventToWorkflowRunsDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowVersionToTriggersDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventToWorkflowRunsDeleteUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowVersionToTriggersDeleteUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventToWorkflowRunsFindFirst struct { +type workflowVersionToTriggersFindFirst struct { query builder.Query } -func (r eventToWorkflowRunsFindFirst) getQuery() builder.Query { +func (r workflowVersionToTriggersFindFirst) getQuery() builder.Query { return r.query } -func (r eventToWorkflowRunsFindFirst) ExtractQuery() builder.Query { +func (r workflowVersionToTriggersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r eventToWorkflowRunsFindFirst) with() {} -func (r eventToWorkflowRunsFindFirst) eventModel() {} -func (r eventToWorkflowRunsFindFirst) eventRelation() {} +func (r workflowVersionToTriggersFindFirst) with() {} +func (r workflowVersionToTriggersFindFirst) workflowVersionModel() {} +func (r workflowVersionToTriggersFindFirst) workflowVersionRelation() {} -func (r eventToWorkflowRunsFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) eventToWorkflowRunsFindFirst { +func (r workflowVersionToTriggersFindFirst) With(params ...WorkflowTriggersRelationWith) workflowVersionToTriggersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -273671,7 +298578,7 @@ func (r eventToWorkflowRunsFindFirst) With(params ...WorkflowRunTriggeredByRelat return r } -func (r eventToWorkflowRunsFindFirst) Select(params ...eventPrismaFields) eventToWorkflowRunsFindFirst { +func (r workflowVersionToTriggersFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindFirst { var outputs []builder.Output for _, param := range params { @@ -273685,7 +298592,7 @@ func (r eventToWorkflowRunsFindFirst) Select(params ...eventPrismaFields) eventT return r } -func (r eventToWorkflowRunsFindFirst) Omit(params ...eventPrismaFields) eventToWorkflowRunsFindFirst { +func (r workflowVersionToTriggersFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindFirst { var outputs []builder.Output var raw []string @@ -273693,7 +298600,7 @@ func (r eventToWorkflowRunsFindFirst) Omit(params ...eventPrismaFields) eventToW raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -273704,7 +298611,7 @@ func (r eventToWorkflowRunsFindFirst) Omit(params ...eventPrismaFields) eventToW return r } -func (r eventToWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) eventToWorkflowRunsFindFirst { +func (r workflowVersionToTriggersFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) workflowVersionToTriggersFindFirst { var fields []builder.Field for _, param := range params { @@ -273724,7 +298631,7 @@ func (r eventToWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunTriggeredByOr return r } -func (r eventToWorkflowRunsFindFirst) Skip(count int) eventToWorkflowRunsFindFirst { +func (r workflowVersionToTriggersFindFirst) Skip(count int) workflowVersionToTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -273732,7 +298639,7 @@ func (r eventToWorkflowRunsFindFirst) Skip(count int) eventToWorkflowRunsFindFir return r } -func (r eventToWorkflowRunsFindFirst) Take(count int) eventToWorkflowRunsFindFirst { +func (r workflowVersionToTriggersFindFirst) Take(count int) workflowVersionToTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -273740,7 +298647,7 @@ func (r eventToWorkflowRunsFindFirst) Take(count int) eventToWorkflowRunsFindFir return r } -func (r eventToWorkflowRunsFindFirst) Cursor(cursor EventCursorParam) eventToWorkflowRunsFindFirst { +func (r workflowVersionToTriggersFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -273748,11 +298655,11 @@ func (r eventToWorkflowRunsFindFirst) Cursor(cursor EventCursorParam) eventToWor return r } -func (r eventToWorkflowRunsFindFirst) Exec(ctx context.Context) ( - *EventModel, +func (r workflowVersionToTriggersFindFirst) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *EventModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273764,11 +298671,11 @@ func (r eventToWorkflowRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r eventToWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowVersionToTriggersFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerEvent + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273780,23 +298687,23 @@ func (r eventToWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type eventToWorkflowRunsFindMany struct { +type workflowVersionToTriggersFindMany struct { query builder.Query } -func (r eventToWorkflowRunsFindMany) getQuery() builder.Query { +func (r workflowVersionToTriggersFindMany) getQuery() builder.Query { return r.query } -func (r eventToWorkflowRunsFindMany) ExtractQuery() builder.Query { +func (r workflowVersionToTriggersFindMany) ExtractQuery() builder.Query { return r.query } -func (r eventToWorkflowRunsFindMany) with() {} -func (r eventToWorkflowRunsFindMany) eventModel() {} -func (r eventToWorkflowRunsFindMany) eventRelation() {} +func (r workflowVersionToTriggersFindMany) with() {} +func (r workflowVersionToTriggersFindMany) workflowVersionModel() {} +func (r workflowVersionToTriggersFindMany) workflowVersionRelation() {} -func (r eventToWorkflowRunsFindMany) With(params ...WorkflowRunTriggeredByRelationWith) eventToWorkflowRunsFindMany { +func (r workflowVersionToTriggersFindMany) With(params ...WorkflowTriggersRelationWith) workflowVersionToTriggersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -273809,7 +298716,7 @@ func (r eventToWorkflowRunsFindMany) With(params ...WorkflowRunTriggeredByRelati return r } -func (r eventToWorkflowRunsFindMany) Select(params ...eventPrismaFields) eventToWorkflowRunsFindMany { +func (r workflowVersionToTriggersFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindMany { var outputs []builder.Output for _, param := range params { @@ -273823,7 +298730,7 @@ func (r eventToWorkflowRunsFindMany) Select(params ...eventPrismaFields) eventTo return r } -func (r eventToWorkflowRunsFindMany) Omit(params ...eventPrismaFields) eventToWorkflowRunsFindMany { +func (r workflowVersionToTriggersFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindMany { var outputs []builder.Output var raw []string @@ -273831,7 +298738,7 @@ func (r eventToWorkflowRunsFindMany) Omit(params ...eventPrismaFields) eventToWo raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -273842,7 +298749,7 @@ func (r eventToWorkflowRunsFindMany) Omit(params ...eventPrismaFields) eventToWo return r } -func (r eventToWorkflowRunsFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) eventToWorkflowRunsFindMany { +func (r workflowVersionToTriggersFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) workflowVersionToTriggersFindMany { var fields []builder.Field for _, param := range params { @@ -273862,7 +298769,7 @@ func (r eventToWorkflowRunsFindMany) OrderBy(params ...WorkflowRunTriggeredByOrd return r } -func (r eventToWorkflowRunsFindMany) Skip(count int) eventToWorkflowRunsFindMany { +func (r workflowVersionToTriggersFindMany) Skip(count int) workflowVersionToTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -273870,7 +298777,7 @@ func (r eventToWorkflowRunsFindMany) Skip(count int) eventToWorkflowRunsFindMany return r } -func (r eventToWorkflowRunsFindMany) Take(count int) eventToWorkflowRunsFindMany { +func (r workflowVersionToTriggersFindMany) Take(count int) workflowVersionToTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -273878,7 +298785,7 @@ func (r eventToWorkflowRunsFindMany) Take(count int) eventToWorkflowRunsFindMany return r } -func (r eventToWorkflowRunsFindMany) Cursor(cursor EventCursorParam) eventToWorkflowRunsFindMany { +func (r workflowVersionToTriggersFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -273886,11 +298793,11 @@ func (r eventToWorkflowRunsFindMany) Cursor(cursor EventCursorParam) eventToWork return r } -func (r eventToWorkflowRunsFindMany) Exec(ctx context.Context) ( - []EventModel, +func (r workflowVersionToTriggersFindMany) Exec(ctx context.Context) ( + []WorkflowVersionModel, error, ) { - var v []EventModel + var v []WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273898,11 +298805,11 @@ func (r eventToWorkflowRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r eventToWorkflowRunsFindMany) ExecInner(ctx context.Context) ( - []InnerEvent, +func (r workflowVersionToTriggersFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowVersion, error, ) { - var v []InnerEvent + var v []InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -273910,14 +298817,14 @@ func (r eventToWorkflowRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r eventToWorkflowRunsFindMany) Update(params ...EventSetParam) eventToWorkflowRunsUpdateMany { +func (r workflowVersionToTriggersFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToTriggersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Event" + r.query.Model = "WorkflowVersion" r.query.Outputs = countOutput - var v eventToWorkflowRunsUpdateMany + var v workflowVersionToTriggersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -273946,17 +298853,17 @@ func (r eventToWorkflowRunsFindMany) Update(params ...EventSetParam) eventToWork return v } -type eventToWorkflowRunsUpdateMany struct { +type workflowVersionToTriggersUpdateMany struct { query builder.Query } -func (r eventToWorkflowRunsUpdateMany) ExtractQuery() builder.Query { +func (r workflowVersionToTriggersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r eventToWorkflowRunsUpdateMany) eventModel() {} +func (r workflowVersionToTriggersUpdateMany) workflowVersionModel() {} -func (r eventToWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -273964,36 +298871,36 @@ func (r eventToWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r eventToWorkflowRunsUpdateMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowVersionToTriggersUpdateMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventToWorkflowRunsFindMany) Delete() eventToWorkflowRunsDeleteMany { - var v eventToWorkflowRunsDeleteMany +func (r workflowVersionToTriggersFindMany) Delete() workflowVersionToTriggersDeleteMany { + var v workflowVersionToTriggersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Event" + v.query.Model = "WorkflowVersion" v.query.Outputs = countOutput return v } -type eventToWorkflowRunsDeleteMany struct { +type workflowVersionToTriggersDeleteMany struct { query builder.Query } -func (r eventToWorkflowRunsDeleteMany) ExtractQuery() builder.Query { +func (r workflowVersionToTriggersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p eventToWorkflowRunsDeleteMany) eventModel() {} +func (p workflowVersionToTriggersDeleteMany) workflowVersionModel() {} -func (r eventToWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -274001,52 +298908,30 @@ func (r eventToWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r eventToWorkflowRunsDeleteMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowVersionToTriggersDeleteMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventFindUnique struct { +type workflowVersionToConcurrencyFindUnique struct { query builder.Query } -func (r eventFindUnique) getQuery() builder.Query { +func (r workflowVersionToConcurrencyFindUnique) getQuery() builder.Query { return r.query } -func (r eventFindUnique) ExtractQuery() builder.Query { +func (r workflowVersionToConcurrencyFindUnique) ExtractQuery() builder.Query { return r.query } -func (r eventFindUnique) with() {} -func (r eventFindUnique) eventModel() {} -func (r eventFindUnique) eventRelation() {} - -func (r eventActions) FindUnique( - params EventEqualsUniqueWhereParam, -) eventFindUnique { - var v eventFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "Event" - v.query.Outputs = eventOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowVersionToConcurrencyFindUnique) with() {} +func (r workflowVersionToConcurrencyFindUnique) workflowVersionModel() {} +func (r workflowVersionToConcurrencyFindUnique) workflowVersionRelation() {} -func (r eventFindUnique) With(params ...EventRelationWith) eventFindUnique { +func (r workflowVersionToConcurrencyFindUnique) With(params ...WorkflowConcurrencyRelationWith) workflowVersionToConcurrencyFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -274059,7 +298944,7 @@ func (r eventFindUnique) With(params ...EventRelationWith) eventFindUnique { return r } -func (r eventFindUnique) Select(params ...eventPrismaFields) eventFindUnique { +func (r workflowVersionToConcurrencyFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindUnique { var outputs []builder.Output for _, param := range params { @@ -274073,7 +298958,7 @@ func (r eventFindUnique) Select(params ...eventPrismaFields) eventFindUnique { return r } -func (r eventFindUnique) Omit(params ...eventPrismaFields) eventFindUnique { +func (r workflowVersionToConcurrencyFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindUnique { var outputs []builder.Output var raw []string @@ -274081,7 +298966,7 @@ func (r eventFindUnique) Omit(params ...eventPrismaFields) eventFindUnique { raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -274092,11 +298977,11 @@ func (r eventFindUnique) Omit(params ...eventPrismaFields) eventFindUnique { return r } -func (r eventFindUnique) Exec(ctx context.Context) ( - *EventModel, +func (r workflowVersionToConcurrencyFindUnique) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *EventModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274108,11 +298993,11 @@ func (r eventFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r eventFindUnique) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowVersionToConcurrencyFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerEvent + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274124,12 +299009,12 @@ func (r eventFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r eventFindUnique) Update(params ...EventSetParam) eventUpdateUnique { +func (r workflowVersionToConcurrencyFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToConcurrencyUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Event" + r.query.Model = "WorkflowVersion" - var v eventUpdateUnique + var v workflowVersionToConcurrencyUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -274158,120 +299043,83 @@ func (r eventFindUnique) Update(params ...EventSetParam) eventUpdateUnique { return v } -type eventUpdateUnique struct { +type workflowVersionToConcurrencyUpdateUnique struct { query builder.Query } -func (r eventUpdateUnique) ExtractQuery() builder.Query { +func (r workflowVersionToConcurrencyUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r eventUpdateUnique) eventModel() {} +func (r workflowVersionToConcurrencyUpdateUnique) workflowVersionModel() {} -func (r eventUpdateUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowVersionToConcurrencyUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventUpdateUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowVersionToConcurrencyUpdateUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventFindUnique) Delete() eventDeleteUnique { - var v eventDeleteUnique +func (r workflowVersionToConcurrencyFindUnique) Delete() workflowVersionToConcurrencyDeleteUnique { + var v workflowVersionToConcurrencyDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Event" + v.query.Model = "WorkflowVersion" return v } -type eventDeleteUnique struct { +type workflowVersionToConcurrencyDeleteUnique struct { query builder.Query } -func (r eventDeleteUnique) ExtractQuery() builder.Query { +func (r workflowVersionToConcurrencyDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p eventDeleteUnique) eventModel() {} +func (p workflowVersionToConcurrencyDeleteUnique) workflowVersionModel() {} -func (r eventDeleteUnique) Exec(ctx context.Context) (*EventModel, error) { - var v EventModel +func (r workflowVersionToConcurrencyDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r eventDeleteUnique) Tx() EventUniqueTxResult { - v := newEventUniqueTxResult() +func (r workflowVersionToConcurrencyDeleteUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type eventFindFirst struct { +type workflowVersionToConcurrencyFindFirst struct { query builder.Query } -func (r eventFindFirst) getQuery() builder.Query { +func (r workflowVersionToConcurrencyFindFirst) getQuery() builder.Query { return r.query } -func (r eventFindFirst) ExtractQuery() builder.Query { +func (r workflowVersionToConcurrencyFindFirst) ExtractQuery() builder.Query { return r.query } -func (r eventFindFirst) with() {} -func (r eventFindFirst) eventModel() {} -func (r eventFindFirst) eventRelation() {} - -func (r eventActions) FindFirst( - params ...EventWhereParam, -) eventFindFirst { - var v eventFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "Event" - v.query.Outputs = eventOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowVersionToConcurrencyFindFirst) with() {} +func (r workflowVersionToConcurrencyFindFirst) workflowVersionModel() {} +func (r workflowVersionToConcurrencyFindFirst) workflowVersionRelation() {} -func (r eventFindFirst) With(params ...EventRelationWith) eventFindFirst { +func (r workflowVersionToConcurrencyFindFirst) With(params ...WorkflowConcurrencyRelationWith) workflowVersionToConcurrencyFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -274284,7 +299132,7 @@ func (r eventFindFirst) With(params ...EventRelationWith) eventFindFirst { return r } -func (r eventFindFirst) Select(params ...eventPrismaFields) eventFindFirst { +func (r workflowVersionToConcurrencyFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindFirst { var outputs []builder.Output for _, param := range params { @@ -274298,7 +299146,7 @@ func (r eventFindFirst) Select(params ...eventPrismaFields) eventFindFirst { return r } -func (r eventFindFirst) Omit(params ...eventPrismaFields) eventFindFirst { +func (r workflowVersionToConcurrencyFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindFirst { var outputs []builder.Output var raw []string @@ -274306,7 +299154,7 @@ func (r eventFindFirst) Omit(params ...eventPrismaFields) eventFindFirst { raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -274317,7 +299165,7 @@ func (r eventFindFirst) Omit(params ...eventPrismaFields) eventFindFirst { return r } -func (r eventFindFirst) OrderBy(params ...EventOrderByParam) eventFindFirst { +func (r workflowVersionToConcurrencyFindFirst) OrderBy(params ...WorkflowConcurrencyOrderByParam) workflowVersionToConcurrencyFindFirst { var fields []builder.Field for _, param := range params { @@ -274337,7 +299185,7 @@ func (r eventFindFirst) OrderBy(params ...EventOrderByParam) eventFindFirst { return r } -func (r eventFindFirst) Skip(count int) eventFindFirst { +func (r workflowVersionToConcurrencyFindFirst) Skip(count int) workflowVersionToConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -274345,7 +299193,7 @@ func (r eventFindFirst) Skip(count int) eventFindFirst { return r } -func (r eventFindFirst) Take(count int) eventFindFirst { +func (r workflowVersionToConcurrencyFindFirst) Take(count int) workflowVersionToConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -274353,7 +299201,7 @@ func (r eventFindFirst) Take(count int) eventFindFirst { return r } -func (r eventFindFirst) Cursor(cursor EventCursorParam) eventFindFirst { +func (r workflowVersionToConcurrencyFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -274361,11 +299209,11 @@ func (r eventFindFirst) Cursor(cursor EventCursorParam) eventFindFirst { return r } -func (r eventFindFirst) Exec(ctx context.Context) ( - *EventModel, +func (r workflowVersionToConcurrencyFindFirst) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *EventModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274377,11 +299225,11 @@ func (r eventFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r eventFindFirst) ExecInner(ctx context.Context) ( - *InnerEvent, +func (r workflowVersionToConcurrencyFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerEvent + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274393,60 +299241,23 @@ func (r eventFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type eventFindMany struct { +type workflowVersionToConcurrencyFindMany struct { query builder.Query } -func (r eventFindMany) getQuery() builder.Query { +func (r workflowVersionToConcurrencyFindMany) getQuery() builder.Query { return r.query } -func (r eventFindMany) ExtractQuery() builder.Query { +func (r workflowVersionToConcurrencyFindMany) ExtractQuery() builder.Query { return r.query } -func (r eventFindMany) with() {} -func (r eventFindMany) eventModel() {} -func (r eventFindMany) eventRelation() {} - -func (r eventActions) FindMany( - params ...EventWhereParam, -) eventFindMany { - var v eventFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "Event" - v.query.Outputs = eventOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowVersionToConcurrencyFindMany) with() {} +func (r workflowVersionToConcurrencyFindMany) workflowVersionModel() {} +func (r workflowVersionToConcurrencyFindMany) workflowVersionRelation() {} -func (r eventFindMany) With(params ...EventRelationWith) eventFindMany { +func (r workflowVersionToConcurrencyFindMany) With(params ...WorkflowConcurrencyRelationWith) workflowVersionToConcurrencyFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -274459,7 +299270,7 @@ func (r eventFindMany) With(params ...EventRelationWith) eventFindMany { return r } -func (r eventFindMany) Select(params ...eventPrismaFields) eventFindMany { +func (r workflowVersionToConcurrencyFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindMany { var outputs []builder.Output for _, param := range params { @@ -274473,7 +299284,7 @@ func (r eventFindMany) Select(params ...eventPrismaFields) eventFindMany { return r } -func (r eventFindMany) Omit(params ...eventPrismaFields) eventFindMany { +func (r workflowVersionToConcurrencyFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindMany { var outputs []builder.Output var raw []string @@ -274481,7 +299292,7 @@ func (r eventFindMany) Omit(params ...eventPrismaFields) eventFindMany { raw = append(raw, string(param)) } - for _, output := range eventOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -274492,7 +299303,7 @@ func (r eventFindMany) Omit(params ...eventPrismaFields) eventFindMany { return r } -func (r eventFindMany) OrderBy(params ...EventOrderByParam) eventFindMany { +func (r workflowVersionToConcurrencyFindMany) OrderBy(params ...WorkflowConcurrencyOrderByParam) workflowVersionToConcurrencyFindMany { var fields []builder.Field for _, param := range params { @@ -274512,7 +299323,7 @@ func (r eventFindMany) OrderBy(params ...EventOrderByParam) eventFindMany { return r } -func (r eventFindMany) Skip(count int) eventFindMany { +func (r workflowVersionToConcurrencyFindMany) Skip(count int) workflowVersionToConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -274520,7 +299331,7 @@ func (r eventFindMany) Skip(count int) eventFindMany { return r } -func (r eventFindMany) Take(count int) eventFindMany { +func (r workflowVersionToConcurrencyFindMany) Take(count int) workflowVersionToConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -274528,7 +299339,7 @@ func (r eventFindMany) Take(count int) eventFindMany { return r } -func (r eventFindMany) Cursor(cursor EventCursorParam) eventFindMany { +func (r workflowVersionToConcurrencyFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -274536,11 +299347,11 @@ func (r eventFindMany) Cursor(cursor EventCursorParam) eventFindMany { return r } -func (r eventFindMany) Exec(ctx context.Context) ( - []EventModel, +func (r workflowVersionToConcurrencyFindMany) Exec(ctx context.Context) ( + []WorkflowVersionModel, error, ) { - var v []EventModel + var v []WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274548,11 +299359,11 @@ func (r eventFindMany) Exec(ctx context.Context) ( return v, nil } -func (r eventFindMany) ExecInner(ctx context.Context) ( - []InnerEvent, +func (r workflowVersionToConcurrencyFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowVersion, error, ) { - var v []InnerEvent + var v []InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274560,14 +299371,14 @@ func (r eventFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r eventFindMany) Update(params ...EventSetParam) eventUpdateMany { +func (r workflowVersionToConcurrencyFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToConcurrencyUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Event" + r.query.Model = "WorkflowVersion" r.query.Outputs = countOutput - var v eventUpdateMany + var v workflowVersionToConcurrencyUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -274596,17 +299407,17 @@ func (r eventFindMany) Update(params ...EventSetParam) eventUpdateMany { return v } -type eventUpdateMany struct { +type workflowVersionToConcurrencyUpdateMany struct { query builder.Query } -func (r eventUpdateMany) ExtractQuery() builder.Query { +func (r workflowVersionToConcurrencyUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r eventUpdateMany) eventModel() {} +func (r workflowVersionToConcurrencyUpdateMany) workflowVersionModel() {} -func (r eventUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToConcurrencyUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -274614,36 +299425,36 @@ func (r eventUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r eventUpdateMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowVersionToConcurrencyUpdateMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r eventFindMany) Delete() eventDeleteMany { - var v eventDeleteMany +func (r workflowVersionToConcurrencyFindMany) Delete() workflowVersionToConcurrencyDeleteMany { + var v workflowVersionToConcurrencyDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Event" + v.query.Model = "WorkflowVersion" v.query.Outputs = countOutput return v } -type eventDeleteMany struct { +type workflowVersionToConcurrencyDeleteMany struct { query builder.Query } -func (r eventDeleteMany) ExtractQuery() builder.Query { +func (r workflowVersionToConcurrencyDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p eventDeleteMany) eventModel() {} +func (p workflowVersionToConcurrencyDeleteMany) workflowVersionModel() {} -func (r eventDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToConcurrencyDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -274651,30 +299462,30 @@ func (r eventDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r eventDeleteMany) Tx() EventManyTxResult { - v := newEventManyTxResult() +func (r workflowVersionToConcurrencyDeleteMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTagToTenantFindUnique struct { +type workflowVersionToJobsFindUnique struct { query builder.Query } -func (r workflowTagToTenantFindUnique) getQuery() builder.Query { +func (r workflowVersionToJobsFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTagToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowVersionToJobsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToTenantFindUnique) with() {} -func (r workflowTagToTenantFindUnique) workflowTagModel() {} -func (r workflowTagToTenantFindUnique) workflowTagRelation() {} +func (r workflowVersionToJobsFindUnique) with() {} +func (r workflowVersionToJobsFindUnique) workflowVersionModel() {} +func (r workflowVersionToJobsFindUnique) workflowVersionRelation() {} -func (r workflowTagToTenantFindUnique) With(params ...TenantRelationWith) workflowTagToTenantFindUnique { +func (r workflowVersionToJobsFindUnique) With(params ...JobRelationWith) workflowVersionToJobsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -274687,7 +299498,7 @@ func (r workflowTagToTenantFindUnique) With(params ...TenantRelationWith) workfl return r } -func (r workflowTagToTenantFindUnique) Select(params ...workflowTagPrismaFields) workflowTagToTenantFindUnique { +func (r workflowVersionToJobsFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToJobsFindUnique { var outputs []builder.Output for _, param := range params { @@ -274701,7 +299512,7 @@ func (r workflowTagToTenantFindUnique) Select(params ...workflowTagPrismaFields) return r } -func (r workflowTagToTenantFindUnique) Omit(params ...workflowTagPrismaFields) workflowTagToTenantFindUnique { +func (r workflowVersionToJobsFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToJobsFindUnique { var outputs []builder.Output var raw []string @@ -274709,7 +299520,7 @@ func (r workflowTagToTenantFindUnique) Omit(params ...workflowTagPrismaFields) w raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -274720,11 +299531,11 @@ func (r workflowTagToTenantFindUnique) Omit(params ...workflowTagPrismaFields) w return r } -func (r workflowTagToTenantFindUnique) Exec(ctx context.Context) ( - *WorkflowTagModel, +func (r workflowVersionToJobsFindUnique) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowTagModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274736,11 +299547,11 @@ func (r workflowTagToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTag, +func (r workflowVersionToJobsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflowTag + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274752,12 +299563,12 @@ func (r workflowTagToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTagToTenantFindUnique) Update(params ...WorkflowTagSetParam) workflowTagToTenantUpdateUnique { +func (r workflowVersionToJobsFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToJobsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTag" + r.query.Model = "WorkflowVersion" - var v workflowTagToTenantUpdateUnique + var v workflowVersionToJobsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -274786,83 +299597,83 @@ func (r workflowTagToTenantFindUnique) Update(params ...WorkflowTagSetParam) wor return v } -type workflowTagToTenantUpdateUnique struct { +type workflowVersionToJobsUpdateUnique struct { query builder.Query } -func (r workflowTagToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowVersionToJobsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToTenantUpdateUnique) workflowTagModel() {} +func (r workflowVersionToJobsUpdateUnique) workflowVersionModel() {} -func (r workflowTagToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { - var v WorkflowTagModel +func (r workflowVersionToJobsUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTagToTenantUpdateUnique) Tx() WorkflowTagUniqueTxResult { - v := newWorkflowTagUniqueTxResult() +func (r workflowVersionToJobsUpdateUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTagToTenantFindUnique) Delete() workflowTagToTenantDeleteUnique { - var v workflowTagToTenantDeleteUnique +func (r workflowVersionToJobsFindUnique) Delete() workflowVersionToJobsDeleteUnique { + var v workflowVersionToJobsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTag" + v.query.Model = "WorkflowVersion" return v } -type workflowTagToTenantDeleteUnique struct { +type workflowVersionToJobsDeleteUnique struct { query builder.Query } -func (r workflowTagToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowVersionToJobsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTagToTenantDeleteUnique) workflowTagModel() {} +func (p workflowVersionToJobsDeleteUnique) workflowVersionModel() {} -func (r workflowTagToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { - var v WorkflowTagModel +func (r workflowVersionToJobsDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTagToTenantDeleteUnique) Tx() WorkflowTagUniqueTxResult { - v := newWorkflowTagUniqueTxResult() +func (r workflowVersionToJobsDeleteUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTagToTenantFindFirst struct { +type workflowVersionToJobsFindFirst struct { query builder.Query } -func (r workflowTagToTenantFindFirst) getQuery() builder.Query { +func (r workflowVersionToJobsFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTagToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowVersionToJobsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToTenantFindFirst) with() {} -func (r workflowTagToTenantFindFirst) workflowTagModel() {} -func (r workflowTagToTenantFindFirst) workflowTagRelation() {} +func (r workflowVersionToJobsFindFirst) with() {} +func (r workflowVersionToJobsFindFirst) workflowVersionModel() {} +func (r workflowVersionToJobsFindFirst) workflowVersionRelation() {} -func (r workflowTagToTenantFindFirst) With(params ...TenantRelationWith) workflowTagToTenantFindFirst { +func (r workflowVersionToJobsFindFirst) With(params ...JobRelationWith) workflowVersionToJobsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -274875,7 +299686,7 @@ func (r workflowTagToTenantFindFirst) With(params ...TenantRelationWith) workflo return r } -func (r workflowTagToTenantFindFirst) Select(params ...workflowTagPrismaFields) workflowTagToTenantFindFirst { +func (r workflowVersionToJobsFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToJobsFindFirst { var outputs []builder.Output for _, param := range params { @@ -274889,7 +299700,7 @@ func (r workflowTagToTenantFindFirst) Select(params ...workflowTagPrismaFields) return r } -func (r workflowTagToTenantFindFirst) Omit(params ...workflowTagPrismaFields) workflowTagToTenantFindFirst { +func (r workflowVersionToJobsFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToJobsFindFirst { var outputs []builder.Output var raw []string @@ -274897,7 +299708,7 @@ func (r workflowTagToTenantFindFirst) Omit(params ...workflowTagPrismaFields) wo raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -274908,7 +299719,7 @@ func (r workflowTagToTenantFindFirst) Omit(params ...workflowTagPrismaFields) wo return r } -func (r workflowTagToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowTagToTenantFindFirst { +func (r workflowVersionToJobsFindFirst) OrderBy(params ...JobOrderByParam) workflowVersionToJobsFindFirst { var fields []builder.Field for _, param := range params { @@ -274928,7 +299739,7 @@ func (r workflowTagToTenantFindFirst) OrderBy(params ...TenantOrderByParam) work return r } -func (r workflowTagToTenantFindFirst) Skip(count int) workflowTagToTenantFindFirst { +func (r workflowVersionToJobsFindFirst) Skip(count int) workflowVersionToJobsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -274936,7 +299747,7 @@ func (r workflowTagToTenantFindFirst) Skip(count int) workflowTagToTenantFindFir return r } -func (r workflowTagToTenantFindFirst) Take(count int) workflowTagToTenantFindFirst { +func (r workflowVersionToJobsFindFirst) Take(count int) workflowVersionToJobsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -274944,7 +299755,7 @@ func (r workflowTagToTenantFindFirst) Take(count int) workflowTagToTenantFindFir return r } -func (r workflowTagToTenantFindFirst) Cursor(cursor WorkflowTagCursorParam) workflowTagToTenantFindFirst { +func (r workflowVersionToJobsFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToJobsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -274952,11 +299763,11 @@ func (r workflowTagToTenantFindFirst) Cursor(cursor WorkflowTagCursorParam) work return r } -func (r workflowTagToTenantFindFirst) Exec(ctx context.Context) ( - *WorkflowTagModel, +func (r workflowVersionToJobsFindFirst) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowTagModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274968,11 +299779,11 @@ func (r workflowTagToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTag, +func (r workflowVersionToJobsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflowTag + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -274984,23 +299795,23 @@ func (r workflowTagToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTagToTenantFindMany struct { +type workflowVersionToJobsFindMany struct { query builder.Query } -func (r workflowTagToTenantFindMany) getQuery() builder.Query { +func (r workflowVersionToJobsFindMany) getQuery() builder.Query { return r.query } -func (r workflowTagToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowVersionToJobsFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToTenantFindMany) with() {} -func (r workflowTagToTenantFindMany) workflowTagModel() {} -func (r workflowTagToTenantFindMany) workflowTagRelation() {} +func (r workflowVersionToJobsFindMany) with() {} +func (r workflowVersionToJobsFindMany) workflowVersionModel() {} +func (r workflowVersionToJobsFindMany) workflowVersionRelation() {} -func (r workflowTagToTenantFindMany) With(params ...TenantRelationWith) workflowTagToTenantFindMany { +func (r workflowVersionToJobsFindMany) With(params ...JobRelationWith) workflowVersionToJobsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -275013,7 +299824,7 @@ func (r workflowTagToTenantFindMany) With(params ...TenantRelationWith) workflow return r } -func (r workflowTagToTenantFindMany) Select(params ...workflowTagPrismaFields) workflowTagToTenantFindMany { +func (r workflowVersionToJobsFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToJobsFindMany { var outputs []builder.Output for _, param := range params { @@ -275027,7 +299838,7 @@ func (r workflowTagToTenantFindMany) Select(params ...workflowTagPrismaFields) w return r } -func (r workflowTagToTenantFindMany) Omit(params ...workflowTagPrismaFields) workflowTagToTenantFindMany { +func (r workflowVersionToJobsFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToJobsFindMany { var outputs []builder.Output var raw []string @@ -275035,7 +299846,7 @@ func (r workflowTagToTenantFindMany) Omit(params ...workflowTagPrismaFields) wor raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -275046,7 +299857,7 @@ func (r workflowTagToTenantFindMany) Omit(params ...workflowTagPrismaFields) wor return r } -func (r workflowTagToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowTagToTenantFindMany { +func (r workflowVersionToJobsFindMany) OrderBy(params ...JobOrderByParam) workflowVersionToJobsFindMany { var fields []builder.Field for _, param := range params { @@ -275066,7 +299877,7 @@ func (r workflowTagToTenantFindMany) OrderBy(params ...TenantOrderByParam) workf return r } -func (r workflowTagToTenantFindMany) Skip(count int) workflowTagToTenantFindMany { +func (r workflowVersionToJobsFindMany) Skip(count int) workflowVersionToJobsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -275074,7 +299885,7 @@ func (r workflowTagToTenantFindMany) Skip(count int) workflowTagToTenantFindMany return r } -func (r workflowTagToTenantFindMany) Take(count int) workflowTagToTenantFindMany { +func (r workflowVersionToJobsFindMany) Take(count int) workflowVersionToJobsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -275082,7 +299893,7 @@ func (r workflowTagToTenantFindMany) Take(count int) workflowTagToTenantFindMany return r } -func (r workflowTagToTenantFindMany) Cursor(cursor WorkflowTagCursorParam) workflowTagToTenantFindMany { +func (r workflowVersionToJobsFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToJobsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -275090,11 +299901,11 @@ func (r workflowTagToTenantFindMany) Cursor(cursor WorkflowTagCursorParam) workf return r } -func (r workflowTagToTenantFindMany) Exec(ctx context.Context) ( - []WorkflowTagModel, +func (r workflowVersionToJobsFindMany) Exec(ctx context.Context) ( + []WorkflowVersionModel, error, ) { - var v []WorkflowTagModel + var v []WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275102,11 +299913,11 @@ func (r workflowTagToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTag, +func (r workflowVersionToJobsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowVersion, error, ) { - var v []InnerWorkflowTag + var v []InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275114,14 +299925,14 @@ func (r workflowTagToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTagToTenantFindMany) Update(params ...WorkflowTagSetParam) workflowTagToTenantUpdateMany { +func (r workflowVersionToJobsFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToJobsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTag" + r.query.Model = "WorkflowVersion" r.query.Outputs = countOutput - var v workflowTagToTenantUpdateMany + var v workflowVersionToJobsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -275150,17 +299961,17 @@ func (r workflowTagToTenantFindMany) Update(params ...WorkflowTagSetParam) workf return v } -type workflowTagToTenantUpdateMany struct { +type workflowVersionToJobsUpdateMany struct { query builder.Query } -func (r workflowTagToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowVersionToJobsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToTenantUpdateMany) workflowTagModel() {} +func (r workflowVersionToJobsUpdateMany) workflowVersionModel() {} -func (r workflowTagToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToJobsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -275168,36 +299979,36 @@ func (r workflowTagToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowTagToTenantUpdateMany) Tx() WorkflowTagManyTxResult { - v := newWorkflowTagManyTxResult() +func (r workflowVersionToJobsUpdateMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTagToTenantFindMany) Delete() workflowTagToTenantDeleteMany { - var v workflowTagToTenantDeleteMany +func (r workflowVersionToJobsFindMany) Delete() workflowVersionToJobsDeleteMany { + var v workflowVersionToJobsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTag" + v.query.Model = "WorkflowVersion" v.query.Outputs = countOutput return v } -type workflowTagToTenantDeleteMany struct { +type workflowVersionToJobsDeleteMany struct { query builder.Query } -func (r workflowTagToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowVersionToJobsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTagToTenantDeleteMany) workflowTagModel() {} +func (p workflowVersionToJobsDeleteMany) workflowVersionModel() {} -func (r workflowTagToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToJobsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -275205,30 +300016,30 @@ func (r workflowTagToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowTagToTenantDeleteMany) Tx() WorkflowTagManyTxResult { - v := newWorkflowTagManyTxResult() +func (r workflowVersionToJobsDeleteMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTagToWorkflowsFindUnique struct { +type workflowVersionToOnFailureJobFindUnique struct { query builder.Query } -func (r workflowTagToWorkflowsFindUnique) getQuery() builder.Query { +func (r workflowVersionToOnFailureJobFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTagToWorkflowsFindUnique) ExtractQuery() builder.Query { +func (r workflowVersionToOnFailureJobFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToWorkflowsFindUnique) with() {} -func (r workflowTagToWorkflowsFindUnique) workflowTagModel() {} -func (r workflowTagToWorkflowsFindUnique) workflowTagRelation() {} +func (r workflowVersionToOnFailureJobFindUnique) with() {} +func (r workflowVersionToOnFailureJobFindUnique) workflowVersionModel() {} +func (r workflowVersionToOnFailureJobFindUnique) workflowVersionRelation() {} -func (r workflowTagToWorkflowsFindUnique) With(params ...WorkflowRelationWith) workflowTagToWorkflowsFindUnique { +func (r workflowVersionToOnFailureJobFindUnique) With(params ...JobRelationWith) workflowVersionToOnFailureJobFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -275241,7 +300052,7 @@ func (r workflowTagToWorkflowsFindUnique) With(params ...WorkflowRelationWith) w return r } -func (r workflowTagToWorkflowsFindUnique) Select(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindUnique { +func (r workflowVersionToOnFailureJobFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindUnique { var outputs []builder.Output for _, param := range params { @@ -275255,7 +300066,7 @@ func (r workflowTagToWorkflowsFindUnique) Select(params ...workflowTagPrismaFiel return r } -func (r workflowTagToWorkflowsFindUnique) Omit(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindUnique { +func (r workflowVersionToOnFailureJobFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindUnique { var outputs []builder.Output var raw []string @@ -275263,7 +300074,7 @@ func (r workflowTagToWorkflowsFindUnique) Omit(params ...workflowTagPrismaFields raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -275274,11 +300085,11 @@ func (r workflowTagToWorkflowsFindUnique) Omit(params ...workflowTagPrismaFields return r } -func (r workflowTagToWorkflowsFindUnique) Exec(ctx context.Context) ( - *WorkflowTagModel, +func (r workflowVersionToOnFailureJobFindUnique) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowTagModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275290,11 +300101,11 @@ func (r workflowTagToWorkflowsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagToWorkflowsFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTag, +func (r workflowVersionToOnFailureJobFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflowTag + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275306,12 +300117,12 @@ func (r workflowTagToWorkflowsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTagToWorkflowsFindUnique) Update(params ...WorkflowTagSetParam) workflowTagToWorkflowsUpdateUnique { +func (r workflowVersionToOnFailureJobFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToOnFailureJobUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTag" + r.query.Model = "WorkflowVersion" - var v workflowTagToWorkflowsUpdateUnique + var v workflowVersionToOnFailureJobUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -275340,83 +300151,83 @@ func (r workflowTagToWorkflowsFindUnique) Update(params ...WorkflowTagSetParam) return v } -type workflowTagToWorkflowsUpdateUnique struct { +type workflowVersionToOnFailureJobUpdateUnique struct { query builder.Query } -func (r workflowTagToWorkflowsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowVersionToOnFailureJobUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToWorkflowsUpdateUnique) workflowTagModel() {} +func (r workflowVersionToOnFailureJobUpdateUnique) workflowVersionModel() {} -func (r workflowTagToWorkflowsUpdateUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { - var v WorkflowTagModel +func (r workflowVersionToOnFailureJobUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTagToWorkflowsUpdateUnique) Tx() WorkflowTagUniqueTxResult { - v := newWorkflowTagUniqueTxResult() +func (r workflowVersionToOnFailureJobUpdateUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTagToWorkflowsFindUnique) Delete() workflowTagToWorkflowsDeleteUnique { - var v workflowTagToWorkflowsDeleteUnique +func (r workflowVersionToOnFailureJobFindUnique) Delete() workflowVersionToOnFailureJobDeleteUnique { + var v workflowVersionToOnFailureJobDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTag" + v.query.Model = "WorkflowVersion" return v } -type workflowTagToWorkflowsDeleteUnique struct { +type workflowVersionToOnFailureJobDeleteUnique struct { query builder.Query } -func (r workflowTagToWorkflowsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowVersionToOnFailureJobDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTagToWorkflowsDeleteUnique) workflowTagModel() {} +func (p workflowVersionToOnFailureJobDeleteUnique) workflowVersionModel() {} -func (r workflowTagToWorkflowsDeleteUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { - var v WorkflowTagModel +func (r workflowVersionToOnFailureJobDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTagToWorkflowsDeleteUnique) Tx() WorkflowTagUniqueTxResult { - v := newWorkflowTagUniqueTxResult() +func (r workflowVersionToOnFailureJobDeleteUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTagToWorkflowsFindFirst struct { +type workflowVersionToOnFailureJobFindFirst struct { query builder.Query } -func (r workflowTagToWorkflowsFindFirst) getQuery() builder.Query { +func (r workflowVersionToOnFailureJobFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTagToWorkflowsFindFirst) ExtractQuery() builder.Query { +func (r workflowVersionToOnFailureJobFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToWorkflowsFindFirst) with() {} -func (r workflowTagToWorkflowsFindFirst) workflowTagModel() {} -func (r workflowTagToWorkflowsFindFirst) workflowTagRelation() {} +func (r workflowVersionToOnFailureJobFindFirst) with() {} +func (r workflowVersionToOnFailureJobFindFirst) workflowVersionModel() {} +func (r workflowVersionToOnFailureJobFindFirst) workflowVersionRelation() {} -func (r workflowTagToWorkflowsFindFirst) With(params ...WorkflowRelationWith) workflowTagToWorkflowsFindFirst { +func (r workflowVersionToOnFailureJobFindFirst) With(params ...JobRelationWith) workflowVersionToOnFailureJobFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -275429,7 +300240,7 @@ func (r workflowTagToWorkflowsFindFirst) With(params ...WorkflowRelationWith) wo return r } -func (r workflowTagToWorkflowsFindFirst) Select(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindFirst { +func (r workflowVersionToOnFailureJobFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindFirst { var outputs []builder.Output for _, param := range params { @@ -275443,7 +300254,7 @@ func (r workflowTagToWorkflowsFindFirst) Select(params ...workflowTagPrismaField return r } -func (r workflowTagToWorkflowsFindFirst) Omit(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindFirst { +func (r workflowVersionToOnFailureJobFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindFirst { var outputs []builder.Output var raw []string @@ -275451,7 +300262,7 @@ func (r workflowTagToWorkflowsFindFirst) Omit(params ...workflowTagPrismaFields) raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -275462,7 +300273,7 @@ func (r workflowTagToWorkflowsFindFirst) Omit(params ...workflowTagPrismaFields) return r } -func (r workflowTagToWorkflowsFindFirst) OrderBy(params ...WorkflowOrderByParam) workflowTagToWorkflowsFindFirst { +func (r workflowVersionToOnFailureJobFindFirst) OrderBy(params ...JobOrderByParam) workflowVersionToOnFailureJobFindFirst { var fields []builder.Field for _, param := range params { @@ -275482,7 +300293,7 @@ func (r workflowTagToWorkflowsFindFirst) OrderBy(params ...WorkflowOrderByParam) return r } -func (r workflowTagToWorkflowsFindFirst) Skip(count int) workflowTagToWorkflowsFindFirst { +func (r workflowVersionToOnFailureJobFindFirst) Skip(count int) workflowVersionToOnFailureJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -275490,7 +300301,7 @@ func (r workflowTagToWorkflowsFindFirst) Skip(count int) workflowTagToWorkflowsF return r } -func (r workflowTagToWorkflowsFindFirst) Take(count int) workflowTagToWorkflowsFindFirst { +func (r workflowVersionToOnFailureJobFindFirst) Take(count int) workflowVersionToOnFailureJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -275498,7 +300309,7 @@ func (r workflowTagToWorkflowsFindFirst) Take(count int) workflowTagToWorkflowsF return r } -func (r workflowTagToWorkflowsFindFirst) Cursor(cursor WorkflowTagCursorParam) workflowTagToWorkflowsFindFirst { +func (r workflowVersionToOnFailureJobFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToOnFailureJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -275506,11 +300317,11 @@ func (r workflowTagToWorkflowsFindFirst) Cursor(cursor WorkflowTagCursorParam) w return r } -func (r workflowTagToWorkflowsFindFirst) Exec(ctx context.Context) ( - *WorkflowTagModel, +func (r workflowVersionToOnFailureJobFindFirst) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowTagModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275522,11 +300333,11 @@ func (r workflowTagToWorkflowsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagToWorkflowsFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTag, +func (r workflowVersionToOnFailureJobFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflowTag + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275538,23 +300349,23 @@ func (r workflowTagToWorkflowsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTagToWorkflowsFindMany struct { +type workflowVersionToOnFailureJobFindMany struct { query builder.Query } -func (r workflowTagToWorkflowsFindMany) getQuery() builder.Query { +func (r workflowVersionToOnFailureJobFindMany) getQuery() builder.Query { return r.query } -func (r workflowTagToWorkflowsFindMany) ExtractQuery() builder.Query { +func (r workflowVersionToOnFailureJobFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToWorkflowsFindMany) with() {} -func (r workflowTagToWorkflowsFindMany) workflowTagModel() {} -func (r workflowTagToWorkflowsFindMany) workflowTagRelation() {} +func (r workflowVersionToOnFailureJobFindMany) with() {} +func (r workflowVersionToOnFailureJobFindMany) workflowVersionModel() {} +func (r workflowVersionToOnFailureJobFindMany) workflowVersionRelation() {} -func (r workflowTagToWorkflowsFindMany) With(params ...WorkflowRelationWith) workflowTagToWorkflowsFindMany { +func (r workflowVersionToOnFailureJobFindMany) With(params ...JobRelationWith) workflowVersionToOnFailureJobFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -275567,7 +300378,7 @@ func (r workflowTagToWorkflowsFindMany) With(params ...WorkflowRelationWith) wor return r } -func (r workflowTagToWorkflowsFindMany) Select(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindMany { +func (r workflowVersionToOnFailureJobFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindMany { var outputs []builder.Output for _, param := range params { @@ -275581,7 +300392,7 @@ func (r workflowTagToWorkflowsFindMany) Select(params ...workflowTagPrismaFields return r } -func (r workflowTagToWorkflowsFindMany) Omit(params ...workflowTagPrismaFields) workflowTagToWorkflowsFindMany { +func (r workflowVersionToOnFailureJobFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindMany { var outputs []builder.Output var raw []string @@ -275589,7 +300400,7 @@ func (r workflowTagToWorkflowsFindMany) Omit(params ...workflowTagPrismaFields) raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -275600,7 +300411,7 @@ func (r workflowTagToWorkflowsFindMany) Omit(params ...workflowTagPrismaFields) return r } -func (r workflowTagToWorkflowsFindMany) OrderBy(params ...WorkflowOrderByParam) workflowTagToWorkflowsFindMany { +func (r workflowVersionToOnFailureJobFindMany) OrderBy(params ...JobOrderByParam) workflowVersionToOnFailureJobFindMany { var fields []builder.Field for _, param := range params { @@ -275620,7 +300431,7 @@ func (r workflowTagToWorkflowsFindMany) OrderBy(params ...WorkflowOrderByParam) return r } -func (r workflowTagToWorkflowsFindMany) Skip(count int) workflowTagToWorkflowsFindMany { +func (r workflowVersionToOnFailureJobFindMany) Skip(count int) workflowVersionToOnFailureJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -275628,7 +300439,7 @@ func (r workflowTagToWorkflowsFindMany) Skip(count int) workflowTagToWorkflowsFi return r } -func (r workflowTagToWorkflowsFindMany) Take(count int) workflowTagToWorkflowsFindMany { +func (r workflowVersionToOnFailureJobFindMany) Take(count int) workflowVersionToOnFailureJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -275636,7 +300447,7 @@ func (r workflowTagToWorkflowsFindMany) Take(count int) workflowTagToWorkflowsFi return r } -func (r workflowTagToWorkflowsFindMany) Cursor(cursor WorkflowTagCursorParam) workflowTagToWorkflowsFindMany { +func (r workflowVersionToOnFailureJobFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToOnFailureJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -275644,11 +300455,11 @@ func (r workflowTagToWorkflowsFindMany) Cursor(cursor WorkflowTagCursorParam) wo return r } -func (r workflowTagToWorkflowsFindMany) Exec(ctx context.Context) ( - []WorkflowTagModel, +func (r workflowVersionToOnFailureJobFindMany) Exec(ctx context.Context) ( + []WorkflowVersionModel, error, ) { - var v []WorkflowTagModel + var v []WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275656,11 +300467,11 @@ func (r workflowTagToWorkflowsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagToWorkflowsFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTag, +func (r workflowVersionToOnFailureJobFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowVersion, error, ) { - var v []InnerWorkflowTag + var v []InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275668,14 +300479,14 @@ func (r workflowTagToWorkflowsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTagToWorkflowsFindMany) Update(params ...WorkflowTagSetParam) workflowTagToWorkflowsUpdateMany { +func (r workflowVersionToOnFailureJobFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToOnFailureJobUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTag" + r.query.Model = "WorkflowVersion" r.query.Outputs = countOutput - var v workflowTagToWorkflowsUpdateMany + var v workflowVersionToOnFailureJobUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -275704,17 +300515,17 @@ func (r workflowTagToWorkflowsFindMany) Update(params ...WorkflowTagSetParam) wo return v } -type workflowTagToWorkflowsUpdateMany struct { +type workflowVersionToOnFailureJobUpdateMany struct { query builder.Query } -func (r workflowTagToWorkflowsUpdateMany) ExtractQuery() builder.Query { +func (r workflowVersionToOnFailureJobUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTagToWorkflowsUpdateMany) workflowTagModel() {} +func (r workflowVersionToOnFailureJobUpdateMany) workflowVersionModel() {} -func (r workflowTagToWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToOnFailureJobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -275722,36 +300533,36 @@ func (r workflowTagToWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r workflowTagToWorkflowsUpdateMany) Tx() WorkflowTagManyTxResult { - v := newWorkflowTagManyTxResult() +func (r workflowVersionToOnFailureJobUpdateMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTagToWorkflowsFindMany) Delete() workflowTagToWorkflowsDeleteMany { - var v workflowTagToWorkflowsDeleteMany +func (r workflowVersionToOnFailureJobFindMany) Delete() workflowVersionToOnFailureJobDeleteMany { + var v workflowVersionToOnFailureJobDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTag" + v.query.Model = "WorkflowVersion" v.query.Outputs = countOutput return v } -type workflowTagToWorkflowsDeleteMany struct { +type workflowVersionToOnFailureJobDeleteMany struct { query builder.Query } -func (r workflowTagToWorkflowsDeleteMany) ExtractQuery() builder.Query { +func (r workflowVersionToOnFailureJobDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTagToWorkflowsDeleteMany) workflowTagModel() {} +func (p workflowVersionToOnFailureJobDeleteMany) workflowVersionModel() {} -func (r workflowTagToWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToOnFailureJobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -275759,52 +300570,30 @@ func (r workflowTagToWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r workflowTagToWorkflowsDeleteMany) Tx() WorkflowTagManyTxResult { - v := newWorkflowTagManyTxResult() +func (r workflowVersionToOnFailureJobDeleteMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTagFindUnique struct { +type workflowVersionToRunsFindUnique struct { query builder.Query } -func (r workflowTagFindUnique) getQuery() builder.Query { +func (r workflowVersionToRunsFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTagFindUnique) ExtractQuery() builder.Query { +func (r workflowVersionToRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTagFindUnique) with() {} -func (r workflowTagFindUnique) workflowTagModel() {} -func (r workflowTagFindUnique) workflowTagRelation() {} - -func (r workflowTagActions) FindUnique( - params WorkflowTagEqualsUniqueWhereParam, -) workflowTagFindUnique { - var v workflowTagFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WorkflowTag" - v.query.Outputs = workflowTagOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowVersionToRunsFindUnique) with() {} +func (r workflowVersionToRunsFindUnique) workflowVersionModel() {} +func (r workflowVersionToRunsFindUnique) workflowVersionRelation() {} -func (r workflowTagFindUnique) With(params ...WorkflowTagRelationWith) workflowTagFindUnique { +func (r workflowVersionToRunsFindUnique) With(params ...WorkflowRunRelationWith) workflowVersionToRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -275817,7 +300606,7 @@ func (r workflowTagFindUnique) With(params ...WorkflowTagRelationWith) workflowT return r } -func (r workflowTagFindUnique) Select(params ...workflowTagPrismaFields) workflowTagFindUnique { +func (r workflowVersionToRunsFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -275831,7 +300620,7 @@ func (r workflowTagFindUnique) Select(params ...workflowTagPrismaFields) workflo return r } -func (r workflowTagFindUnique) Omit(params ...workflowTagPrismaFields) workflowTagFindUnique { +func (r workflowVersionToRunsFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToRunsFindUnique { var outputs []builder.Output var raw []string @@ -275839,7 +300628,7 @@ func (r workflowTagFindUnique) Omit(params ...workflowTagPrismaFields) workflowT raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -275850,11 +300639,11 @@ func (r workflowTagFindUnique) Omit(params ...workflowTagPrismaFields) workflowT return r } -func (r workflowTagFindUnique) Exec(ctx context.Context) ( - *WorkflowTagModel, +func (r workflowVersionToRunsFindUnique) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowTagModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275866,11 +300655,11 @@ func (r workflowTagFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTag, +func (r workflowVersionToRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflowTag + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -275882,12 +300671,12 @@ func (r workflowTagFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTagFindUnique) Update(params ...WorkflowTagSetParam) workflowTagUpdateUnique { +func (r workflowVersionToRunsFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTag" + r.query.Model = "WorkflowVersion" - var v workflowTagUpdateUnique + var v workflowVersionToRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -275916,120 +300705,83 @@ func (r workflowTagFindUnique) Update(params ...WorkflowTagSetParam) workflowTag return v } -type workflowTagUpdateUnique struct { +type workflowVersionToRunsUpdateUnique struct { query builder.Query } -func (r workflowTagUpdateUnique) ExtractQuery() builder.Query { +func (r workflowVersionToRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTagUpdateUnique) workflowTagModel() {} +func (r workflowVersionToRunsUpdateUnique) workflowVersionModel() {} -func (r workflowTagUpdateUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { - var v WorkflowTagModel +func (r workflowVersionToRunsUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTagUpdateUnique) Tx() WorkflowTagUniqueTxResult { - v := newWorkflowTagUniqueTxResult() +func (r workflowVersionToRunsUpdateUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTagFindUnique) Delete() workflowTagDeleteUnique { - var v workflowTagDeleteUnique +func (r workflowVersionToRunsFindUnique) Delete() workflowVersionToRunsDeleteUnique { + var v workflowVersionToRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTag" + v.query.Model = "WorkflowVersion" return v } -type workflowTagDeleteUnique struct { +type workflowVersionToRunsDeleteUnique struct { query builder.Query } -func (r workflowTagDeleteUnique) ExtractQuery() builder.Query { +func (r workflowVersionToRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTagDeleteUnique) workflowTagModel() {} +func (p workflowVersionToRunsDeleteUnique) workflowVersionModel() {} -func (r workflowTagDeleteUnique) Exec(ctx context.Context) (*WorkflowTagModel, error) { - var v WorkflowTagModel +func (r workflowVersionToRunsDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTagDeleteUnique) Tx() WorkflowTagUniqueTxResult { - v := newWorkflowTagUniqueTxResult() +func (r workflowVersionToRunsDeleteUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTagFindFirst struct { +type workflowVersionToRunsFindFirst struct { query builder.Query } -func (r workflowTagFindFirst) getQuery() builder.Query { +func (r workflowVersionToRunsFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTagFindFirst) ExtractQuery() builder.Query { +func (r workflowVersionToRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTagFindFirst) with() {} -func (r workflowTagFindFirst) workflowTagModel() {} -func (r workflowTagFindFirst) workflowTagRelation() {} - -func (r workflowTagActions) FindFirst( - params ...WorkflowTagWhereParam, -) workflowTagFindFirst { - var v workflowTagFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WorkflowTag" - v.query.Outputs = workflowTagOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowVersionToRunsFindFirst) with() {} +func (r workflowVersionToRunsFindFirst) workflowVersionModel() {} +func (r workflowVersionToRunsFindFirst) workflowVersionRelation() {} -func (r workflowTagFindFirst) With(params ...WorkflowTagRelationWith) workflowTagFindFirst { +func (r workflowVersionToRunsFindFirst) With(params ...WorkflowRunRelationWith) workflowVersionToRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -276042,7 +300794,7 @@ func (r workflowTagFindFirst) With(params ...WorkflowTagRelationWith) workflowTa return r } -func (r workflowTagFindFirst) Select(params ...workflowTagPrismaFields) workflowTagFindFirst { +func (r workflowVersionToRunsFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -276056,7 +300808,7 @@ func (r workflowTagFindFirst) Select(params ...workflowTagPrismaFields) workflow return r } -func (r workflowTagFindFirst) Omit(params ...workflowTagPrismaFields) workflowTagFindFirst { +func (r workflowVersionToRunsFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToRunsFindFirst { var outputs []builder.Output var raw []string @@ -276064,7 +300816,7 @@ func (r workflowTagFindFirst) Omit(params ...workflowTagPrismaFields) workflowTa raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -276075,7 +300827,7 @@ func (r workflowTagFindFirst) Omit(params ...workflowTagPrismaFields) workflowTa return r } -func (r workflowTagFindFirst) OrderBy(params ...WorkflowTagOrderByParam) workflowTagFindFirst { +func (r workflowVersionToRunsFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowVersionToRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -276095,7 +300847,7 @@ func (r workflowTagFindFirst) OrderBy(params ...WorkflowTagOrderByParam) workflo return r } -func (r workflowTagFindFirst) Skip(count int) workflowTagFindFirst { +func (r workflowVersionToRunsFindFirst) Skip(count int) workflowVersionToRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -276103,7 +300855,7 @@ func (r workflowTagFindFirst) Skip(count int) workflowTagFindFirst { return r } -func (r workflowTagFindFirst) Take(count int) workflowTagFindFirst { +func (r workflowVersionToRunsFindFirst) Take(count int) workflowVersionToRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -276111,7 +300863,7 @@ func (r workflowTagFindFirst) Take(count int) workflowTagFindFirst { return r } -func (r workflowTagFindFirst) Cursor(cursor WorkflowTagCursorParam) workflowTagFindFirst { +func (r workflowVersionToRunsFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -276119,11 +300871,11 @@ func (r workflowTagFindFirst) Cursor(cursor WorkflowTagCursorParam) workflowTagF return r } -func (r workflowTagFindFirst) Exec(ctx context.Context) ( - *WorkflowTagModel, +func (r workflowVersionToRunsFindFirst) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowTagModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276135,11 +300887,11 @@ func (r workflowTagFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTag, +func (r workflowVersionToRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflowTag + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276151,60 +300903,23 @@ func (r workflowTagFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTagFindMany struct { +type workflowVersionToRunsFindMany struct { query builder.Query } -func (r workflowTagFindMany) getQuery() builder.Query { +func (r workflowVersionToRunsFindMany) getQuery() builder.Query { return r.query } -func (r workflowTagFindMany) ExtractQuery() builder.Query { +func (r workflowVersionToRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTagFindMany) with() {} -func (r workflowTagFindMany) workflowTagModel() {} -func (r workflowTagFindMany) workflowTagRelation() {} - -func (r workflowTagActions) FindMany( - params ...WorkflowTagWhereParam, -) workflowTagFindMany { - var v workflowTagFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WorkflowTag" - v.query.Outputs = workflowTagOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowVersionToRunsFindMany) with() {} +func (r workflowVersionToRunsFindMany) workflowVersionModel() {} +func (r workflowVersionToRunsFindMany) workflowVersionRelation() {} -func (r workflowTagFindMany) With(params ...WorkflowTagRelationWith) workflowTagFindMany { +func (r workflowVersionToRunsFindMany) With(params ...WorkflowRunRelationWith) workflowVersionToRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -276217,7 +300932,7 @@ func (r workflowTagFindMany) With(params ...WorkflowTagRelationWith) workflowTag return r } -func (r workflowTagFindMany) Select(params ...workflowTagPrismaFields) workflowTagFindMany { +func (r workflowVersionToRunsFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -276231,7 +300946,7 @@ func (r workflowTagFindMany) Select(params ...workflowTagPrismaFields) workflowT return r } -func (r workflowTagFindMany) Omit(params ...workflowTagPrismaFields) workflowTagFindMany { +func (r workflowVersionToRunsFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToRunsFindMany { var outputs []builder.Output var raw []string @@ -276239,7 +300954,7 @@ func (r workflowTagFindMany) Omit(params ...workflowTagPrismaFields) workflowTag raw = append(raw, string(param)) } - for _, output := range workflowTagOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -276250,7 +300965,7 @@ func (r workflowTagFindMany) Omit(params ...workflowTagPrismaFields) workflowTag return r } -func (r workflowTagFindMany) OrderBy(params ...WorkflowTagOrderByParam) workflowTagFindMany { +func (r workflowVersionToRunsFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowVersionToRunsFindMany { var fields []builder.Field for _, param := range params { @@ -276270,7 +300985,7 @@ func (r workflowTagFindMany) OrderBy(params ...WorkflowTagOrderByParam) workflow return r } -func (r workflowTagFindMany) Skip(count int) workflowTagFindMany { +func (r workflowVersionToRunsFindMany) Skip(count int) workflowVersionToRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -276278,7 +300993,7 @@ func (r workflowTagFindMany) Skip(count int) workflowTagFindMany { return r } -func (r workflowTagFindMany) Take(count int) workflowTagFindMany { +func (r workflowVersionToRunsFindMany) Take(count int) workflowVersionToRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -276286,7 +301001,7 @@ func (r workflowTagFindMany) Take(count int) workflowTagFindMany { return r } -func (r workflowTagFindMany) Cursor(cursor WorkflowTagCursorParam) workflowTagFindMany { +func (r workflowVersionToRunsFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -276294,11 +301009,11 @@ func (r workflowTagFindMany) Cursor(cursor WorkflowTagCursorParam) workflowTagFi return r } -func (r workflowTagFindMany) Exec(ctx context.Context) ( - []WorkflowTagModel, +func (r workflowVersionToRunsFindMany) Exec(ctx context.Context) ( + []WorkflowVersionModel, error, ) { - var v []WorkflowTagModel + var v []WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276306,11 +301021,11 @@ func (r workflowTagFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTagFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTag, +func (r workflowVersionToRunsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowVersion, error, ) { - var v []InnerWorkflowTag + var v []InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276318,14 +301033,14 @@ func (r workflowTagFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTagFindMany) Update(params ...WorkflowTagSetParam) workflowTagUpdateMany { +func (r workflowVersionToRunsFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTag" + r.query.Model = "WorkflowVersion" r.query.Outputs = countOutput - var v workflowTagUpdateMany + var v workflowVersionToRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -276354,17 +301069,17 @@ func (r workflowTagFindMany) Update(params ...WorkflowTagSetParam) workflowTagUp return v } -type workflowTagUpdateMany struct { +type workflowVersionToRunsUpdateMany struct { query builder.Query } -func (r workflowTagUpdateMany) ExtractQuery() builder.Query { +func (r workflowVersionToRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTagUpdateMany) workflowTagModel() {} +func (r workflowVersionToRunsUpdateMany) workflowVersionModel() {} -func (r workflowTagUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -276372,36 +301087,36 @@ func (r workflowTagUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r workflowTagUpdateMany) Tx() WorkflowTagManyTxResult { - v := newWorkflowTagManyTxResult() +func (r workflowVersionToRunsUpdateMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTagFindMany) Delete() workflowTagDeleteMany { - var v workflowTagDeleteMany +func (r workflowVersionToRunsFindMany) Delete() workflowVersionToRunsDeleteMany { + var v workflowVersionToRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTag" + v.query.Model = "WorkflowVersion" v.query.Outputs = countOutput return v } -type workflowTagDeleteMany struct { +type workflowVersionToRunsDeleteMany struct { query builder.Query } -func (r workflowTagDeleteMany) ExtractQuery() builder.Query { +func (r workflowVersionToRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTagDeleteMany) workflowTagModel() {} +func (p workflowVersionToRunsDeleteMany) workflowVersionModel() {} -func (r workflowTagDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -276409,30 +301124,30 @@ func (r workflowTagDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r workflowTagDeleteMany) Tx() WorkflowTagManyTxResult { - v := newWorkflowTagManyTxResult() +func (r workflowVersionToRunsDeleteMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowToTenantFindUnique struct { +type workflowVersionToScheduledFindUnique struct { query builder.Query } -func (r workflowToTenantFindUnique) getQuery() builder.Query { +func (r workflowVersionToScheduledFindUnique) getQuery() builder.Query { return r.query } -func (r workflowToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowVersionToScheduledFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowToTenantFindUnique) with() {} -func (r workflowToTenantFindUnique) workflowModel() {} -func (r workflowToTenantFindUnique) workflowRelation() {} +func (r workflowVersionToScheduledFindUnique) with() {} +func (r workflowVersionToScheduledFindUnique) workflowVersionModel() {} +func (r workflowVersionToScheduledFindUnique) workflowVersionRelation() {} -func (r workflowToTenantFindUnique) With(params ...TenantRelationWith) workflowToTenantFindUnique { +func (r workflowVersionToScheduledFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowVersionToScheduledFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -276445,7 +301160,7 @@ func (r workflowToTenantFindUnique) With(params ...TenantRelationWith) workflowT return r } -func (r workflowToTenantFindUnique) Select(params ...workflowPrismaFields) workflowToTenantFindUnique { +func (r workflowVersionToScheduledFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindUnique { var outputs []builder.Output for _, param := range params { @@ -276459,7 +301174,7 @@ func (r workflowToTenantFindUnique) Select(params ...workflowPrismaFields) workf return r } -func (r workflowToTenantFindUnique) Omit(params ...workflowPrismaFields) workflowToTenantFindUnique { +func (r workflowVersionToScheduledFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindUnique { var outputs []builder.Output var raw []string @@ -276467,7 +301182,7 @@ func (r workflowToTenantFindUnique) Omit(params ...workflowPrismaFields) workflo raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -276478,11 +301193,11 @@ func (r workflowToTenantFindUnique) Omit(params ...workflowPrismaFields) workflo return r } -func (r workflowToTenantFindUnique) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowVersionToScheduledFindUnique) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276494,11 +301209,11 @@ func (r workflowToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowVersionToScheduledFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276510,12 +301225,12 @@ func (r workflowToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowToTenantFindUnique) Update(params ...WorkflowSetParam) workflowToTenantUpdateUnique { +func (r workflowVersionToScheduledFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToScheduledUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Workflow" + r.query.Model = "WorkflowVersion" - var v workflowToTenantUpdateUnique + var v workflowVersionToScheduledUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -276544,83 +301259,83 @@ func (r workflowToTenantFindUnique) Update(params ...WorkflowSetParam) workflowT return v } -type workflowToTenantUpdateUnique struct { +type workflowVersionToScheduledUpdateUnique struct { query builder.Query } -func (r workflowToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowVersionToScheduledUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowToTenantUpdateUnique) workflowModel() {} +func (r workflowVersionToScheduledUpdateUnique) workflowVersionModel() {} -func (r workflowToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowVersionToScheduledUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowToTenantUpdateUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowVersionToScheduledUpdateUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowToTenantFindUnique) Delete() workflowToTenantDeleteUnique { - var v workflowToTenantDeleteUnique +func (r workflowVersionToScheduledFindUnique) Delete() workflowVersionToScheduledDeleteUnique { + var v workflowVersionToScheduledDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Workflow" + v.query.Model = "WorkflowVersion" return v } -type workflowToTenantDeleteUnique struct { +type workflowVersionToScheduledDeleteUnique struct { query builder.Query } -func (r workflowToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowVersionToScheduledDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowToTenantDeleteUnique) workflowModel() {} +func (p workflowVersionToScheduledDeleteUnique) workflowVersionModel() {} -func (r workflowToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowVersionToScheduledDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowToTenantDeleteUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowVersionToScheduledDeleteUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowToTenantFindFirst struct { +type workflowVersionToScheduledFindFirst struct { query builder.Query } -func (r workflowToTenantFindFirst) getQuery() builder.Query { +func (r workflowVersionToScheduledFindFirst) getQuery() builder.Query { return r.query } -func (r workflowToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowVersionToScheduledFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowToTenantFindFirst) with() {} -func (r workflowToTenantFindFirst) workflowModel() {} -func (r workflowToTenantFindFirst) workflowRelation() {} +func (r workflowVersionToScheduledFindFirst) with() {} +func (r workflowVersionToScheduledFindFirst) workflowVersionModel() {} +func (r workflowVersionToScheduledFindFirst) workflowVersionRelation() {} -func (r workflowToTenantFindFirst) With(params ...TenantRelationWith) workflowToTenantFindFirst { +func (r workflowVersionToScheduledFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowVersionToScheduledFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -276633,7 +301348,7 @@ func (r workflowToTenantFindFirst) With(params ...TenantRelationWith) workflowTo return r } -func (r workflowToTenantFindFirst) Select(params ...workflowPrismaFields) workflowToTenantFindFirst { +func (r workflowVersionToScheduledFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindFirst { var outputs []builder.Output for _, param := range params { @@ -276647,7 +301362,7 @@ func (r workflowToTenantFindFirst) Select(params ...workflowPrismaFields) workfl return r } -func (r workflowToTenantFindFirst) Omit(params ...workflowPrismaFields) workflowToTenantFindFirst { +func (r workflowVersionToScheduledFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindFirst { var outputs []builder.Output var raw []string @@ -276655,7 +301370,7 @@ func (r workflowToTenantFindFirst) Omit(params ...workflowPrismaFields) workflow raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -276666,7 +301381,7 @@ func (r workflowToTenantFindFirst) Omit(params ...workflowPrismaFields) workflow return r } -func (r workflowToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowToTenantFindFirst { +func (r workflowVersionToScheduledFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowVersionToScheduledFindFirst { var fields []builder.Field for _, param := range params { @@ -276686,7 +301401,7 @@ func (r workflowToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflo return r } -func (r workflowToTenantFindFirst) Skip(count int) workflowToTenantFindFirst { +func (r workflowVersionToScheduledFindFirst) Skip(count int) workflowVersionToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -276694,7 +301409,7 @@ func (r workflowToTenantFindFirst) Skip(count int) workflowToTenantFindFirst { return r } -func (r workflowToTenantFindFirst) Take(count int) workflowToTenantFindFirst { +func (r workflowVersionToScheduledFindFirst) Take(count int) workflowVersionToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -276702,7 +301417,7 @@ func (r workflowToTenantFindFirst) Take(count int) workflowToTenantFindFirst { return r } -func (r workflowToTenantFindFirst) Cursor(cursor WorkflowCursorParam) workflowToTenantFindFirst { +func (r workflowVersionToScheduledFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -276710,11 +301425,11 @@ func (r workflowToTenantFindFirst) Cursor(cursor WorkflowCursorParam) workflowTo return r } -func (r workflowToTenantFindFirst) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowVersionToScheduledFindFirst) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276726,11 +301441,11 @@ func (r workflowToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowVersionToScheduledFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276742,23 +301457,23 @@ func (r workflowToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowToTenantFindMany struct { +type workflowVersionToScheduledFindMany struct { query builder.Query } -func (r workflowToTenantFindMany) getQuery() builder.Query { +func (r workflowVersionToScheduledFindMany) getQuery() builder.Query { return r.query } -func (r workflowToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowVersionToScheduledFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowToTenantFindMany) with() {} -func (r workflowToTenantFindMany) workflowModel() {} -func (r workflowToTenantFindMany) workflowRelation() {} +func (r workflowVersionToScheduledFindMany) with() {} +func (r workflowVersionToScheduledFindMany) workflowVersionModel() {} +func (r workflowVersionToScheduledFindMany) workflowVersionRelation() {} -func (r workflowToTenantFindMany) With(params ...TenantRelationWith) workflowToTenantFindMany { +func (r workflowVersionToScheduledFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowVersionToScheduledFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -276771,7 +301486,7 @@ func (r workflowToTenantFindMany) With(params ...TenantRelationWith) workflowToT return r } -func (r workflowToTenantFindMany) Select(params ...workflowPrismaFields) workflowToTenantFindMany { +func (r workflowVersionToScheduledFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindMany { var outputs []builder.Output for _, param := range params { @@ -276785,7 +301500,7 @@ func (r workflowToTenantFindMany) Select(params ...workflowPrismaFields) workflo return r } -func (r workflowToTenantFindMany) Omit(params ...workflowPrismaFields) workflowToTenantFindMany { +func (r workflowVersionToScheduledFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindMany { var outputs []builder.Output var raw []string @@ -276793,7 +301508,7 @@ func (r workflowToTenantFindMany) Omit(params ...workflowPrismaFields) workflowT raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -276804,7 +301519,7 @@ func (r workflowToTenantFindMany) Omit(params ...workflowPrismaFields) workflowT return r } -func (r workflowToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowToTenantFindMany { +func (r workflowVersionToScheduledFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowVersionToScheduledFindMany { var fields []builder.Field for _, param := range params { @@ -276824,7 +301539,7 @@ func (r workflowToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflow return r } -func (r workflowToTenantFindMany) Skip(count int) workflowToTenantFindMany { +func (r workflowVersionToScheduledFindMany) Skip(count int) workflowVersionToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -276832,7 +301547,7 @@ func (r workflowToTenantFindMany) Skip(count int) workflowToTenantFindMany { return r } -func (r workflowToTenantFindMany) Take(count int) workflowToTenantFindMany { +func (r workflowVersionToScheduledFindMany) Take(count int) workflowVersionToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -276840,7 +301555,7 @@ func (r workflowToTenantFindMany) Take(count int) workflowToTenantFindMany { return r } -func (r workflowToTenantFindMany) Cursor(cursor WorkflowCursorParam) workflowToTenantFindMany { +func (r workflowVersionToScheduledFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -276848,11 +301563,11 @@ func (r workflowToTenantFindMany) Cursor(cursor WorkflowCursorParam) workflowToT return r } -func (r workflowToTenantFindMany) Exec(ctx context.Context) ( - []WorkflowModel, +func (r workflowVersionToScheduledFindMany) Exec(ctx context.Context) ( + []WorkflowVersionModel, error, ) { - var v []WorkflowModel + var v []WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276860,11 +301575,11 @@ func (r workflowToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflow, +func (r workflowVersionToScheduledFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowVersion, error, ) { - var v []InnerWorkflow + var v []InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -276872,14 +301587,14 @@ func (r workflowToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowToTenantFindMany) Update(params ...WorkflowSetParam) workflowToTenantUpdateMany { +func (r workflowVersionToScheduledFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToScheduledUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Workflow" + r.query.Model = "WorkflowVersion" r.query.Outputs = countOutput - var v workflowToTenantUpdateMany + var v workflowVersionToScheduledUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -276908,17 +301623,17 @@ func (r workflowToTenantFindMany) Update(params ...WorkflowSetParam) workflowToT return v } -type workflowToTenantUpdateMany struct { +type workflowVersionToScheduledUpdateMany struct { query builder.Query } -func (r workflowToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowVersionToScheduledUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowToTenantUpdateMany) workflowModel() {} +func (r workflowVersionToScheduledUpdateMany) workflowVersionModel() {} -func (r workflowToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToScheduledUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -276926,36 +301641,36 @@ func (r workflowToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r workflowToTenantUpdateMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowVersionToScheduledUpdateMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowToTenantFindMany) Delete() workflowToTenantDeleteMany { - var v workflowToTenantDeleteMany +func (r workflowVersionToScheduledFindMany) Delete() workflowVersionToScheduledDeleteMany { + var v workflowVersionToScheduledDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Workflow" + v.query.Model = "WorkflowVersion" v.query.Outputs = countOutput return v } -type workflowToTenantDeleteMany struct { +type workflowVersionToScheduledDeleteMany struct { query builder.Query } -func (r workflowToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowVersionToScheduledDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowToTenantDeleteMany) workflowModel() {} +func (p workflowVersionToScheduledDeleteMany) workflowVersionModel() {} -func (r workflowToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionToScheduledDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -276963,30 +301678,52 @@ func (r workflowToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r workflowToTenantDeleteMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowVersionToScheduledDeleteMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowToVersionsFindUnique struct { +type workflowVersionFindUnique struct { query builder.Query } -func (r workflowToVersionsFindUnique) getQuery() builder.Query { +func (r workflowVersionFindUnique) getQuery() builder.Query { return r.query } -func (r workflowToVersionsFindUnique) ExtractQuery() builder.Query { +func (r workflowVersionFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowToVersionsFindUnique) with() {} -func (r workflowToVersionsFindUnique) workflowModel() {} -func (r workflowToVersionsFindUnique) workflowRelation() {} +func (r workflowVersionFindUnique) with() {} +func (r workflowVersionFindUnique) workflowVersionModel() {} +func (r workflowVersionFindUnique) workflowVersionRelation() {} -func (r workflowToVersionsFindUnique) With(params ...WorkflowVersionRelationWith) workflowToVersionsFindUnique { +func (r workflowVersionActions) FindUnique( + params WorkflowVersionEqualsUniqueWhereParam, +) workflowVersionFindUnique { + var v workflowVersionFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkflowVersion" + v.query.Outputs = workflowVersionOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowVersionFindUnique) With(params ...WorkflowVersionRelationWith) workflowVersionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -276999,7 +301736,7 @@ func (r workflowToVersionsFindUnique) With(params ...WorkflowVersionRelationWith return r } -func (r workflowToVersionsFindUnique) Select(params ...workflowPrismaFields) workflowToVersionsFindUnique { +func (r workflowVersionFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionFindUnique { var outputs []builder.Output for _, param := range params { @@ -277013,7 +301750,7 @@ func (r workflowToVersionsFindUnique) Select(params ...workflowPrismaFields) wor return r } -func (r workflowToVersionsFindUnique) Omit(params ...workflowPrismaFields) workflowToVersionsFindUnique { +func (r workflowVersionFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionFindUnique { var outputs []builder.Output var raw []string @@ -277021,7 +301758,7 @@ func (r workflowToVersionsFindUnique) Omit(params ...workflowPrismaFields) workf raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -277032,11 +301769,11 @@ func (r workflowToVersionsFindUnique) Omit(params ...workflowPrismaFields) workf return r } -func (r workflowToVersionsFindUnique) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowVersionFindUnique) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277048,11 +301785,11 @@ func (r workflowToVersionsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowToVersionsFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowVersionFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277064,12 +301801,12 @@ func (r workflowToVersionsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowToVersionsFindUnique) Update(params ...WorkflowSetParam) workflowToVersionsUpdateUnique { +func (r workflowVersionFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Workflow" + r.query.Model = "WorkflowVersion" - var v workflowToVersionsUpdateUnique + var v workflowVersionUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -277098,83 +301835,120 @@ func (r workflowToVersionsFindUnique) Update(params ...WorkflowSetParam) workflo return v } -type workflowToVersionsUpdateUnique struct { +type workflowVersionUpdateUnique struct { query builder.Query } -func (r workflowToVersionsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowVersionUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowToVersionsUpdateUnique) workflowModel() {} +func (r workflowVersionUpdateUnique) workflowVersionModel() {} -func (r workflowToVersionsUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowVersionUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowToVersionsUpdateUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowVersionUpdateUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowToVersionsFindUnique) Delete() workflowToVersionsDeleteUnique { - var v workflowToVersionsDeleteUnique +func (r workflowVersionFindUnique) Delete() workflowVersionDeleteUnique { + var v workflowVersionDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Workflow" + v.query.Model = "WorkflowVersion" return v } -type workflowToVersionsDeleteUnique struct { +type workflowVersionDeleteUnique struct { query builder.Query } -func (r workflowToVersionsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowVersionDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowToVersionsDeleteUnique) workflowModel() {} +func (p workflowVersionDeleteUnique) workflowVersionModel() {} -func (r workflowToVersionsDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowVersionDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { + var v WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowToVersionsDeleteUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowVersionDeleteUnique) Tx() WorkflowVersionUniqueTxResult { + v := newWorkflowVersionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowToVersionsFindFirst struct { +type workflowVersionFindFirst struct { query builder.Query } -func (r workflowToVersionsFindFirst) getQuery() builder.Query { +func (r workflowVersionFindFirst) getQuery() builder.Query { return r.query } -func (r workflowToVersionsFindFirst) ExtractQuery() builder.Query { +func (r workflowVersionFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowToVersionsFindFirst) with() {} -func (r workflowToVersionsFindFirst) workflowModel() {} -func (r workflowToVersionsFindFirst) workflowRelation() {} +func (r workflowVersionFindFirst) with() {} +func (r workflowVersionFindFirst) workflowVersionModel() {} +func (r workflowVersionFindFirst) workflowVersionRelation() {} -func (r workflowToVersionsFindFirst) With(params ...WorkflowVersionRelationWith) workflowToVersionsFindFirst { +func (r workflowVersionActions) FindFirst( + params ...WorkflowVersionWhereParam, +) workflowVersionFindFirst { + var v workflowVersionFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkflowVersion" + v.query.Outputs = workflowVersionOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowVersionFindFirst) With(params ...WorkflowVersionRelationWith) workflowVersionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -277187,7 +301961,7 @@ func (r workflowToVersionsFindFirst) With(params ...WorkflowVersionRelationWith) return r } -func (r workflowToVersionsFindFirst) Select(params ...workflowPrismaFields) workflowToVersionsFindFirst { +func (r workflowVersionFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionFindFirst { var outputs []builder.Output for _, param := range params { @@ -277201,7 +301975,7 @@ func (r workflowToVersionsFindFirst) Select(params ...workflowPrismaFields) work return r } -func (r workflowToVersionsFindFirst) Omit(params ...workflowPrismaFields) workflowToVersionsFindFirst { +func (r workflowVersionFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionFindFirst { var outputs []builder.Output var raw []string @@ -277209,7 +301983,7 @@ func (r workflowToVersionsFindFirst) Omit(params ...workflowPrismaFields) workfl raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -277220,7 +301994,7 @@ func (r workflowToVersionsFindFirst) Omit(params ...workflowPrismaFields) workfl return r } -func (r workflowToVersionsFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowToVersionsFindFirst { +func (r workflowVersionFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowVersionFindFirst { var fields []builder.Field for _, param := range params { @@ -277240,7 +302014,7 @@ func (r workflowToVersionsFindFirst) OrderBy(params ...WorkflowVersionOrderByPar return r } -func (r workflowToVersionsFindFirst) Skip(count int) workflowToVersionsFindFirst { +func (r workflowVersionFindFirst) Skip(count int) workflowVersionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -277248,7 +302022,7 @@ func (r workflowToVersionsFindFirst) Skip(count int) workflowToVersionsFindFirst return r } -func (r workflowToVersionsFindFirst) Take(count int) workflowToVersionsFindFirst { +func (r workflowVersionFindFirst) Take(count int) workflowVersionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -277256,7 +302030,7 @@ func (r workflowToVersionsFindFirst) Take(count int) workflowToVersionsFindFirst return r } -func (r workflowToVersionsFindFirst) Cursor(cursor WorkflowCursorParam) workflowToVersionsFindFirst { +func (r workflowVersionFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -277264,11 +302038,11 @@ func (r workflowToVersionsFindFirst) Cursor(cursor WorkflowCursorParam) workflow return r } -func (r workflowToVersionsFindFirst) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowVersionFindFirst) Exec(ctx context.Context) ( + *WorkflowVersionModel, error, ) { - var v *WorkflowModel + var v *WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277280,11 +302054,11 @@ func (r workflowToVersionsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowToVersionsFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowVersionFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowVersion, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277296,23 +302070,60 @@ func (r workflowToVersionsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowToVersionsFindMany struct { +type workflowVersionFindMany struct { query builder.Query } -func (r workflowToVersionsFindMany) getQuery() builder.Query { +func (r workflowVersionFindMany) getQuery() builder.Query { return r.query } -func (r workflowToVersionsFindMany) ExtractQuery() builder.Query { +func (r workflowVersionFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowToVersionsFindMany) with() {} -func (r workflowToVersionsFindMany) workflowModel() {} -func (r workflowToVersionsFindMany) workflowRelation() {} +func (r workflowVersionFindMany) with() {} +func (r workflowVersionFindMany) workflowVersionModel() {} +func (r workflowVersionFindMany) workflowVersionRelation() {} -func (r workflowToVersionsFindMany) With(params ...WorkflowVersionRelationWith) workflowToVersionsFindMany { +func (r workflowVersionActions) FindMany( + params ...WorkflowVersionWhereParam, +) workflowVersionFindMany { + var v workflowVersionFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkflowVersion" + v.query.Outputs = workflowVersionOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowVersionFindMany) With(params ...WorkflowVersionRelationWith) workflowVersionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -277325,7 +302136,7 @@ func (r workflowToVersionsFindMany) With(params ...WorkflowVersionRelationWith) return r } -func (r workflowToVersionsFindMany) Select(params ...workflowPrismaFields) workflowToVersionsFindMany { +func (r workflowVersionFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionFindMany { var outputs []builder.Output for _, param := range params { @@ -277339,7 +302150,7 @@ func (r workflowToVersionsFindMany) Select(params ...workflowPrismaFields) workf return r } -func (r workflowToVersionsFindMany) Omit(params ...workflowPrismaFields) workflowToVersionsFindMany { +func (r workflowVersionFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionFindMany { var outputs []builder.Output var raw []string @@ -277347,7 +302158,7 @@ func (r workflowToVersionsFindMany) Omit(params ...workflowPrismaFields) workflo raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowVersionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -277358,7 +302169,7 @@ func (r workflowToVersionsFindMany) Omit(params ...workflowPrismaFields) workflo return r } -func (r workflowToVersionsFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowToVersionsFindMany { +func (r workflowVersionFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowVersionFindMany { var fields []builder.Field for _, param := range params { @@ -277378,7 +302189,7 @@ func (r workflowToVersionsFindMany) OrderBy(params ...WorkflowVersionOrderByPara return r } -func (r workflowToVersionsFindMany) Skip(count int) workflowToVersionsFindMany { +func (r workflowVersionFindMany) Skip(count int) workflowVersionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -277386,7 +302197,7 @@ func (r workflowToVersionsFindMany) Skip(count int) workflowToVersionsFindMany { return r } -func (r workflowToVersionsFindMany) Take(count int) workflowToVersionsFindMany { +func (r workflowVersionFindMany) Take(count int) workflowVersionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -277394,7 +302205,7 @@ func (r workflowToVersionsFindMany) Take(count int) workflowToVersionsFindMany { return r } -func (r workflowToVersionsFindMany) Cursor(cursor WorkflowCursorParam) workflowToVersionsFindMany { +func (r workflowVersionFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -277402,11 +302213,11 @@ func (r workflowToVersionsFindMany) Cursor(cursor WorkflowCursorParam) workflowT return r } -func (r workflowToVersionsFindMany) Exec(ctx context.Context) ( - []WorkflowModel, +func (r workflowVersionFindMany) Exec(ctx context.Context) ( + []WorkflowVersionModel, error, ) { - var v []WorkflowModel + var v []WorkflowVersionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277414,11 +302225,11 @@ func (r workflowToVersionsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowToVersionsFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflow, +func (r workflowVersionFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowVersion, error, ) { - var v []InnerWorkflow + var v []InnerWorkflowVersion if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277426,14 +302237,14 @@ func (r workflowToVersionsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowToVersionsFindMany) Update(params ...WorkflowSetParam) workflowToVersionsUpdateMany { +func (r workflowVersionFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Workflow" + r.query.Model = "WorkflowVersion" r.query.Outputs = countOutput - var v workflowToVersionsUpdateMany + var v workflowVersionUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -277462,17 +302273,17 @@ func (r workflowToVersionsFindMany) Update(params ...WorkflowSetParam) workflowT return v } -type workflowToVersionsUpdateMany struct { +type workflowVersionUpdateMany struct { query builder.Query } -func (r workflowToVersionsUpdateMany) ExtractQuery() builder.Query { +func (r workflowVersionUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowToVersionsUpdateMany) workflowModel() {} +func (r workflowVersionUpdateMany) workflowVersionModel() {} -func (r workflowToVersionsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -277480,36 +302291,36 @@ func (r workflowToVersionsUpdateMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r workflowToVersionsUpdateMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowVersionUpdateMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowToVersionsFindMany) Delete() workflowToVersionsDeleteMany { - var v workflowToVersionsDeleteMany +func (r workflowVersionFindMany) Delete() workflowVersionDeleteMany { + var v workflowVersionDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Workflow" + v.query.Model = "WorkflowVersion" v.query.Outputs = countOutput return v } -type workflowToVersionsDeleteMany struct { +type workflowVersionDeleteMany struct { query builder.Query } -func (r workflowToVersionsDeleteMany) ExtractQuery() builder.Query { +func (r workflowVersionDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowToVersionsDeleteMany) workflowModel() {} +func (p workflowVersionDeleteMany) workflowVersionModel() {} -func (r workflowToVersionsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowVersionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -277517,30 +302328,30 @@ func (r workflowToVersionsDeleteMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r workflowToVersionsDeleteMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowVersionDeleteMany) Tx() WorkflowVersionManyTxResult { + v := newWorkflowVersionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowToTagsFindUnique struct { +type workflowConcurrencyToWorkflowFindUnique struct { query builder.Query } -func (r workflowToTagsFindUnique) getQuery() builder.Query { +func (r workflowConcurrencyToWorkflowFindUnique) getQuery() builder.Query { return r.query } -func (r workflowToTagsFindUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyToWorkflowFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowToTagsFindUnique) with() {} -func (r workflowToTagsFindUnique) workflowModel() {} -func (r workflowToTagsFindUnique) workflowRelation() {} +func (r workflowConcurrencyToWorkflowFindUnique) with() {} +func (r workflowConcurrencyToWorkflowFindUnique) workflowConcurrencyModel() {} +func (r workflowConcurrencyToWorkflowFindUnique) workflowConcurrencyRelation() {} -func (r workflowToTagsFindUnique) With(params ...WorkflowTagRelationWith) workflowToTagsFindUnique { +func (r workflowConcurrencyToWorkflowFindUnique) With(params ...WorkflowVersionRelationWith) workflowConcurrencyToWorkflowFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -277553,7 +302364,7 @@ func (r workflowToTagsFindUnique) With(params ...WorkflowTagRelationWith) workfl return r } -func (r workflowToTagsFindUnique) Select(params ...workflowPrismaFields) workflowToTagsFindUnique { +func (r workflowConcurrencyToWorkflowFindUnique) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindUnique { var outputs []builder.Output for _, param := range params { @@ -277567,7 +302378,7 @@ func (r workflowToTagsFindUnique) Select(params ...workflowPrismaFields) workflo return r } -func (r workflowToTagsFindUnique) Omit(params ...workflowPrismaFields) workflowToTagsFindUnique { +func (r workflowConcurrencyToWorkflowFindUnique) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindUnique { var outputs []builder.Output var raw []string @@ -277575,7 +302386,7 @@ func (r workflowToTagsFindUnique) Omit(params ...workflowPrismaFields) workflowT raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -277586,11 +302397,11 @@ func (r workflowToTagsFindUnique) Omit(params ...workflowPrismaFields) workflowT return r } -func (r workflowToTagsFindUnique) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowConcurrencyToWorkflowFindUnique) Exec(ctx context.Context) ( + *WorkflowConcurrencyModel, error, ) { - var v *WorkflowModel + var v *WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277602,11 +302413,11 @@ func (r workflowToTagsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowToTagsFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowConcurrencyToWorkflowFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowConcurrency, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277618,12 +302429,12 @@ func (r workflowToTagsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowToTagsFindUnique) Update(params ...WorkflowSetParam) workflowToTagsUpdateUnique { +func (r workflowConcurrencyToWorkflowFindUnique) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyToWorkflowUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Workflow" + r.query.Model = "WorkflowConcurrency" - var v workflowToTagsUpdateUnique + var v workflowConcurrencyToWorkflowUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -277652,83 +302463,83 @@ func (r workflowToTagsFindUnique) Update(params ...WorkflowSetParam) workflowToT return v } -type workflowToTagsUpdateUnique struct { +type workflowConcurrencyToWorkflowUpdateUnique struct { query builder.Query } -func (r workflowToTagsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyToWorkflowUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowToTagsUpdateUnique) workflowModel() {} +func (r workflowConcurrencyToWorkflowUpdateUnique) workflowConcurrencyModel() {} -func (r workflowToTagsUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowConcurrencyToWorkflowUpdateUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { + var v WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowToTagsUpdateUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowConcurrencyToWorkflowUpdateUnique) Tx() WorkflowConcurrencyUniqueTxResult { + v := newWorkflowConcurrencyUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowToTagsFindUnique) Delete() workflowToTagsDeleteUnique { - var v workflowToTagsDeleteUnique +func (r workflowConcurrencyToWorkflowFindUnique) Delete() workflowConcurrencyToWorkflowDeleteUnique { + var v workflowConcurrencyToWorkflowDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Workflow" + v.query.Model = "WorkflowConcurrency" return v } -type workflowToTagsDeleteUnique struct { +type workflowConcurrencyToWorkflowDeleteUnique struct { query builder.Query } -func (r workflowToTagsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyToWorkflowDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowToTagsDeleteUnique) workflowModel() {} +func (p workflowConcurrencyToWorkflowDeleteUnique) workflowConcurrencyModel() {} -func (r workflowToTagsDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowConcurrencyToWorkflowDeleteUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { + var v WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowToTagsDeleteUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowConcurrencyToWorkflowDeleteUnique) Tx() WorkflowConcurrencyUniqueTxResult { + v := newWorkflowConcurrencyUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowToTagsFindFirst struct { +type workflowConcurrencyToWorkflowFindFirst struct { query builder.Query } -func (r workflowToTagsFindFirst) getQuery() builder.Query { +func (r workflowConcurrencyToWorkflowFindFirst) getQuery() builder.Query { return r.query } -func (r workflowToTagsFindFirst) ExtractQuery() builder.Query { +func (r workflowConcurrencyToWorkflowFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowToTagsFindFirst) with() {} -func (r workflowToTagsFindFirst) workflowModel() {} -func (r workflowToTagsFindFirst) workflowRelation() {} +func (r workflowConcurrencyToWorkflowFindFirst) with() {} +func (r workflowConcurrencyToWorkflowFindFirst) workflowConcurrencyModel() {} +func (r workflowConcurrencyToWorkflowFindFirst) workflowConcurrencyRelation() {} -func (r workflowToTagsFindFirst) With(params ...WorkflowTagRelationWith) workflowToTagsFindFirst { +func (r workflowConcurrencyToWorkflowFindFirst) With(params ...WorkflowVersionRelationWith) workflowConcurrencyToWorkflowFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -277741,7 +302552,7 @@ func (r workflowToTagsFindFirst) With(params ...WorkflowTagRelationWith) workflo return r } -func (r workflowToTagsFindFirst) Select(params ...workflowPrismaFields) workflowToTagsFindFirst { +func (r workflowConcurrencyToWorkflowFindFirst) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindFirst { var outputs []builder.Output for _, param := range params { @@ -277755,7 +302566,7 @@ func (r workflowToTagsFindFirst) Select(params ...workflowPrismaFields) workflow return r } -func (r workflowToTagsFindFirst) Omit(params ...workflowPrismaFields) workflowToTagsFindFirst { +func (r workflowConcurrencyToWorkflowFindFirst) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindFirst { var outputs []builder.Output var raw []string @@ -277763,7 +302574,7 @@ func (r workflowToTagsFindFirst) Omit(params ...workflowPrismaFields) workflowTo raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -277774,7 +302585,7 @@ func (r workflowToTagsFindFirst) Omit(params ...workflowPrismaFields) workflowTo return r } -func (r workflowToTagsFindFirst) OrderBy(params ...WorkflowTagOrderByParam) workflowToTagsFindFirst { +func (r workflowConcurrencyToWorkflowFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowConcurrencyToWorkflowFindFirst { var fields []builder.Field for _, param := range params { @@ -277794,7 +302605,7 @@ func (r workflowToTagsFindFirst) OrderBy(params ...WorkflowTagOrderByParam) work return r } -func (r workflowToTagsFindFirst) Skip(count int) workflowToTagsFindFirst { +func (r workflowConcurrencyToWorkflowFindFirst) Skip(count int) workflowConcurrencyToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -277802,7 +302613,7 @@ func (r workflowToTagsFindFirst) Skip(count int) workflowToTagsFindFirst { return r } -func (r workflowToTagsFindFirst) Take(count int) workflowToTagsFindFirst { +func (r workflowConcurrencyToWorkflowFindFirst) Take(count int) workflowConcurrencyToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -277810,7 +302621,7 @@ func (r workflowToTagsFindFirst) Take(count int) workflowToTagsFindFirst { return r } -func (r workflowToTagsFindFirst) Cursor(cursor WorkflowCursorParam) workflowToTagsFindFirst { +func (r workflowConcurrencyToWorkflowFindFirst) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -277818,11 +302629,11 @@ func (r workflowToTagsFindFirst) Cursor(cursor WorkflowCursorParam) workflowToTa return r } -func (r workflowToTagsFindFirst) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowConcurrencyToWorkflowFindFirst) Exec(ctx context.Context) ( + *WorkflowConcurrencyModel, error, ) { - var v *WorkflowModel + var v *WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277834,11 +302645,11 @@ func (r workflowToTagsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowToTagsFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowConcurrencyToWorkflowFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowConcurrency, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277850,23 +302661,23 @@ func (r workflowToTagsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowToTagsFindMany struct { +type workflowConcurrencyToWorkflowFindMany struct { query builder.Query } -func (r workflowToTagsFindMany) getQuery() builder.Query { +func (r workflowConcurrencyToWorkflowFindMany) getQuery() builder.Query { return r.query } -func (r workflowToTagsFindMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyToWorkflowFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowToTagsFindMany) with() {} -func (r workflowToTagsFindMany) workflowModel() {} -func (r workflowToTagsFindMany) workflowRelation() {} +func (r workflowConcurrencyToWorkflowFindMany) with() {} +func (r workflowConcurrencyToWorkflowFindMany) workflowConcurrencyModel() {} +func (r workflowConcurrencyToWorkflowFindMany) workflowConcurrencyRelation() {} -func (r workflowToTagsFindMany) With(params ...WorkflowTagRelationWith) workflowToTagsFindMany { +func (r workflowConcurrencyToWorkflowFindMany) With(params ...WorkflowVersionRelationWith) workflowConcurrencyToWorkflowFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -277879,7 +302690,7 @@ func (r workflowToTagsFindMany) With(params ...WorkflowTagRelationWith) workflow return r } -func (r workflowToTagsFindMany) Select(params ...workflowPrismaFields) workflowToTagsFindMany { +func (r workflowConcurrencyToWorkflowFindMany) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindMany { var outputs []builder.Output for _, param := range params { @@ -277893,7 +302704,7 @@ func (r workflowToTagsFindMany) Select(params ...workflowPrismaFields) workflowT return r } -func (r workflowToTagsFindMany) Omit(params ...workflowPrismaFields) workflowToTagsFindMany { +func (r workflowConcurrencyToWorkflowFindMany) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindMany { var outputs []builder.Output var raw []string @@ -277901,7 +302712,7 @@ func (r workflowToTagsFindMany) Omit(params ...workflowPrismaFields) workflowToT raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -277912,7 +302723,7 @@ func (r workflowToTagsFindMany) Omit(params ...workflowPrismaFields) workflowToT return r } -func (r workflowToTagsFindMany) OrderBy(params ...WorkflowTagOrderByParam) workflowToTagsFindMany { +func (r workflowConcurrencyToWorkflowFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowConcurrencyToWorkflowFindMany { var fields []builder.Field for _, param := range params { @@ -277932,7 +302743,7 @@ func (r workflowToTagsFindMany) OrderBy(params ...WorkflowTagOrderByParam) workf return r } -func (r workflowToTagsFindMany) Skip(count int) workflowToTagsFindMany { +func (r workflowConcurrencyToWorkflowFindMany) Skip(count int) workflowConcurrencyToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -277940,7 +302751,7 @@ func (r workflowToTagsFindMany) Skip(count int) workflowToTagsFindMany { return r } -func (r workflowToTagsFindMany) Take(count int) workflowToTagsFindMany { +func (r workflowConcurrencyToWorkflowFindMany) Take(count int) workflowConcurrencyToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -277948,7 +302759,7 @@ func (r workflowToTagsFindMany) Take(count int) workflowToTagsFindMany { return r } -func (r workflowToTagsFindMany) Cursor(cursor WorkflowCursorParam) workflowToTagsFindMany { +func (r workflowConcurrencyToWorkflowFindMany) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -277956,11 +302767,11 @@ func (r workflowToTagsFindMany) Cursor(cursor WorkflowCursorParam) workflowToTag return r } -func (r workflowToTagsFindMany) Exec(ctx context.Context) ( - []WorkflowModel, +func (r workflowConcurrencyToWorkflowFindMany) Exec(ctx context.Context) ( + []WorkflowConcurrencyModel, error, ) { - var v []WorkflowModel + var v []WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277968,11 +302779,11 @@ func (r workflowToTagsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowToTagsFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflow, +func (r workflowConcurrencyToWorkflowFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowConcurrency, error, ) { - var v []InnerWorkflow + var v []InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -277980,14 +302791,14 @@ func (r workflowToTagsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowToTagsFindMany) Update(params ...WorkflowSetParam) workflowToTagsUpdateMany { +func (r workflowConcurrencyToWorkflowFindMany) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyToWorkflowUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Workflow" + r.query.Model = "WorkflowConcurrency" r.query.Outputs = countOutput - var v workflowToTagsUpdateMany + var v workflowConcurrencyToWorkflowUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -278016,17 +302827,17 @@ func (r workflowToTagsFindMany) Update(params ...WorkflowSetParam) workflowToTag return v } -type workflowToTagsUpdateMany struct { +type workflowConcurrencyToWorkflowUpdateMany struct { query builder.Query } -func (r workflowToTagsUpdateMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyToWorkflowUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowToTagsUpdateMany) workflowModel() {} +func (r workflowConcurrencyToWorkflowUpdateMany) workflowConcurrencyModel() {} -func (r workflowToTagsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowConcurrencyToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -278034,36 +302845,36 @@ func (r workflowToTagsUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r workflowToTagsUpdateMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowConcurrencyToWorkflowUpdateMany) Tx() WorkflowConcurrencyManyTxResult { + v := newWorkflowConcurrencyManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowToTagsFindMany) Delete() workflowToTagsDeleteMany { - var v workflowToTagsDeleteMany +func (r workflowConcurrencyToWorkflowFindMany) Delete() workflowConcurrencyToWorkflowDeleteMany { + var v workflowConcurrencyToWorkflowDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Workflow" + v.query.Model = "WorkflowConcurrency" v.query.Outputs = countOutput return v } -type workflowToTagsDeleteMany struct { +type workflowConcurrencyToWorkflowDeleteMany struct { query builder.Query } -func (r workflowToTagsDeleteMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyToWorkflowDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowToTagsDeleteMany) workflowModel() {} +func (p workflowConcurrencyToWorkflowDeleteMany) workflowConcurrencyModel() {} -func (r workflowToTagsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowConcurrencyToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -278071,30 +302882,30 @@ func (r workflowToTagsDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r workflowToTagsDeleteMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowConcurrencyToWorkflowDeleteMany) Tx() WorkflowConcurrencyManyTxResult { + v := newWorkflowConcurrencyManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowToWebhookWorkerWorkflowsFindUnique struct { +type workflowConcurrencyToGetConcurrencyGroupFindUnique struct { query builder.Query } -func (r workflowToWebhookWorkerWorkflowsFindUnique) getQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) getQuery() builder.Query { return r.query } -func (r workflowToWebhookWorkerWorkflowsFindUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowToWebhookWorkerWorkflowsFindUnique) with() {} -func (r workflowToWebhookWorkerWorkflowsFindUnique) workflowModel() {} -func (r workflowToWebhookWorkerWorkflowsFindUnique) workflowRelation() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) with() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) workflowConcurrencyModel() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) workflowConcurrencyRelation() {} -func (r workflowToWebhookWorkerWorkflowsFindUnique) With(params ...WebhookWorkerWorkflowRelationWith) workflowToWebhookWorkerWorkflowsFindUnique { +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) With(params ...ActionRelationWith) workflowConcurrencyToGetConcurrencyGroupFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -278107,7 +302918,7 @@ func (r workflowToWebhookWorkerWorkflowsFindUnique) With(params ...WebhookWorker return r } -func (r workflowToWebhookWorkerWorkflowsFindUnique) Select(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindUnique { +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindUnique { var outputs []builder.Output for _, param := range params { @@ -278121,7 +302932,7 @@ func (r workflowToWebhookWorkerWorkflowsFindUnique) Select(params ...workflowPri return r } -func (r workflowToWebhookWorkerWorkflowsFindUnique) Omit(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindUnique { +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindUnique { var outputs []builder.Output var raw []string @@ -278129,7 +302940,7 @@ func (r workflowToWebhookWorkerWorkflowsFindUnique) Omit(params ...workflowPrism raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -278140,11 +302951,11 @@ func (r workflowToWebhookWorkerWorkflowsFindUnique) Omit(params ...workflowPrism return r } -func (r workflowToWebhookWorkerWorkflowsFindUnique) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Exec(ctx context.Context) ( + *WorkflowConcurrencyModel, error, ) { - var v *WorkflowModel + var v *WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -278156,11 +302967,11 @@ func (r workflowToWebhookWorkerWorkflowsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowToWebhookWorkerWorkflowsFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowConcurrency, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -278172,12 +302983,12 @@ func (r workflowToWebhookWorkerWorkflowsFindUnique) ExecInner(ctx context.Contex return v, nil } -func (r workflowToWebhookWorkerWorkflowsFindUnique) Update(params ...WorkflowSetParam) workflowToWebhookWorkerWorkflowsUpdateUnique { +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyToGetConcurrencyGroupUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Workflow" + r.query.Model = "WorkflowConcurrency" - var v workflowToWebhookWorkerWorkflowsUpdateUnique + var v workflowConcurrencyToGetConcurrencyGroupUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -278206,83 +303017,83 @@ func (r workflowToWebhookWorkerWorkflowsFindUnique) Update(params ...WorkflowSet return v } -type workflowToWebhookWorkerWorkflowsUpdateUnique struct { +type workflowConcurrencyToGetConcurrencyGroupUpdateUnique struct { query builder.Query } -func (r workflowToWebhookWorkerWorkflowsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowToWebhookWorkerWorkflowsUpdateUnique) workflowModel() {} +func (r workflowConcurrencyToGetConcurrencyGroupUpdateUnique) workflowConcurrencyModel() {} -func (r workflowToWebhookWorkerWorkflowsUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowConcurrencyToGetConcurrencyGroupUpdateUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { + var v WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowToWebhookWorkerWorkflowsUpdateUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowConcurrencyToGetConcurrencyGroupUpdateUnique) Tx() WorkflowConcurrencyUniqueTxResult { + v := newWorkflowConcurrencyUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowToWebhookWorkerWorkflowsFindUnique) Delete() workflowToWebhookWorkerWorkflowsDeleteUnique { - var v workflowToWebhookWorkerWorkflowsDeleteUnique +func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Delete() workflowConcurrencyToGetConcurrencyGroupDeleteUnique { + var v workflowConcurrencyToGetConcurrencyGroupDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Workflow" + v.query.Model = "WorkflowConcurrency" return v } -type workflowToWebhookWorkerWorkflowsDeleteUnique struct { +type workflowConcurrencyToGetConcurrencyGroupDeleteUnique struct { query builder.Query } -func (r workflowToWebhookWorkerWorkflowsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowToWebhookWorkerWorkflowsDeleteUnique) workflowModel() {} +func (p workflowConcurrencyToGetConcurrencyGroupDeleteUnique) workflowConcurrencyModel() {} -func (r workflowToWebhookWorkerWorkflowsDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowConcurrencyToGetConcurrencyGroupDeleteUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { + var v WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowToWebhookWorkerWorkflowsDeleteUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowConcurrencyToGetConcurrencyGroupDeleteUnique) Tx() WorkflowConcurrencyUniqueTxResult { + v := newWorkflowConcurrencyUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowToWebhookWorkerWorkflowsFindFirst struct { +type workflowConcurrencyToGetConcurrencyGroupFindFirst struct { query builder.Query } -func (r workflowToWebhookWorkerWorkflowsFindFirst) getQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) getQuery() builder.Query { return r.query } -func (r workflowToWebhookWorkerWorkflowsFindFirst) ExtractQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowToWebhookWorkerWorkflowsFindFirst) with() {} -func (r workflowToWebhookWorkerWorkflowsFindFirst) workflowModel() {} -func (r workflowToWebhookWorkerWorkflowsFindFirst) workflowRelation() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) with() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) workflowConcurrencyModel() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) workflowConcurrencyRelation() {} -func (r workflowToWebhookWorkerWorkflowsFindFirst) With(params ...WebhookWorkerWorkflowRelationWith) workflowToWebhookWorkerWorkflowsFindFirst { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) With(params ...ActionRelationWith) workflowConcurrencyToGetConcurrencyGroupFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -278295,7 +303106,7 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) With(params ...WebhookWorkerW return r } -func (r workflowToWebhookWorkerWorkflowsFindFirst) Select(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindFirst { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindFirst { var outputs []builder.Output for _, param := range params { @@ -278309,7 +303120,7 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) Select(params ...workflowPris return r } -func (r workflowToWebhookWorkerWorkflowsFindFirst) Omit(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindFirst { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindFirst { var outputs []builder.Output var raw []string @@ -278317,7 +303128,7 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) Omit(params ...workflowPrisma raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -278328,7 +303139,7 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) Omit(params ...workflowPrisma return r } -func (r workflowToWebhookWorkerWorkflowsFindFirst) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) workflowToWebhookWorkerWorkflowsFindFirst { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) OrderBy(params ...ActionOrderByParam) workflowConcurrencyToGetConcurrencyGroupFindFirst { var fields []builder.Field for _, param := range params { @@ -278348,7 +303159,7 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) OrderBy(params ...WebhookWork return r } -func (r workflowToWebhookWorkerWorkflowsFindFirst) Skip(count int) workflowToWebhookWorkerWorkflowsFindFirst { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Skip(count int) workflowConcurrencyToGetConcurrencyGroupFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -278356,7 +303167,7 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) Skip(count int) workflowToWeb return r } -func (r workflowToWebhookWorkerWorkflowsFindFirst) Take(count int) workflowToWebhookWorkerWorkflowsFindFirst { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Take(count int) workflowConcurrencyToGetConcurrencyGroupFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -278364,7 +303175,7 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) Take(count int) workflowToWeb return r } -func (r workflowToWebhookWorkerWorkflowsFindFirst) Cursor(cursor WorkflowCursorParam) workflowToWebhookWorkerWorkflowsFindFirst { +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyToGetConcurrencyGroupFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -278372,11 +303183,11 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) Cursor(cursor WorkflowCursorP return r } -func (r workflowToWebhookWorkerWorkflowsFindFirst) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Exec(ctx context.Context) ( + *WorkflowConcurrencyModel, error, ) { - var v *WorkflowModel + var v *WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -278388,11 +303199,11 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowToWebhookWorkerWorkflowsFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowConcurrency, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -278404,23 +303215,23 @@ func (r workflowToWebhookWorkerWorkflowsFindFirst) ExecInner(ctx context.Context return v, nil } -type workflowToWebhookWorkerWorkflowsFindMany struct { +type workflowConcurrencyToGetConcurrencyGroupFindMany struct { query builder.Query } -func (r workflowToWebhookWorkerWorkflowsFindMany) getQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) getQuery() builder.Query { return r.query } -func (r workflowToWebhookWorkerWorkflowsFindMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowToWebhookWorkerWorkflowsFindMany) with() {} -func (r workflowToWebhookWorkerWorkflowsFindMany) workflowModel() {} -func (r workflowToWebhookWorkerWorkflowsFindMany) workflowRelation() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) with() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) workflowConcurrencyModel() {} +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) workflowConcurrencyRelation() {} -func (r workflowToWebhookWorkerWorkflowsFindMany) With(params ...WebhookWorkerWorkflowRelationWith) workflowToWebhookWorkerWorkflowsFindMany { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) With(params ...ActionRelationWith) workflowConcurrencyToGetConcurrencyGroupFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -278433,7 +303244,7 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) With(params ...WebhookWorkerWo return r } -func (r workflowToWebhookWorkerWorkflowsFindMany) Select(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindMany { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindMany { var outputs []builder.Output for _, param := range params { @@ -278447,7 +303258,7 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) Select(params ...workflowPrism return r } -func (r workflowToWebhookWorkerWorkflowsFindMany) Omit(params ...workflowPrismaFields) workflowToWebhookWorkerWorkflowsFindMany { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindMany { var outputs []builder.Output var raw []string @@ -278455,7 +303266,7 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) Omit(params ...workflowPrismaF raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -278466,7 +303277,7 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) Omit(params ...workflowPrismaF return r } -func (r workflowToWebhookWorkerWorkflowsFindMany) OrderBy(params ...WebhookWorkerWorkflowOrderByParam) workflowToWebhookWorkerWorkflowsFindMany { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) OrderBy(params ...ActionOrderByParam) workflowConcurrencyToGetConcurrencyGroupFindMany { var fields []builder.Field for _, param := range params { @@ -278486,7 +303297,7 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) OrderBy(params ...WebhookWorke return r } -func (r workflowToWebhookWorkerWorkflowsFindMany) Skip(count int) workflowToWebhookWorkerWorkflowsFindMany { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Skip(count int) workflowConcurrencyToGetConcurrencyGroupFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -278494,7 +303305,7 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) Skip(count int) workflowToWebh return r } -func (r workflowToWebhookWorkerWorkflowsFindMany) Take(count int) workflowToWebhookWorkerWorkflowsFindMany { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Take(count int) workflowConcurrencyToGetConcurrencyGroupFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -278502,7 +303313,7 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) Take(count int) workflowToWebh return r } -func (r workflowToWebhookWorkerWorkflowsFindMany) Cursor(cursor WorkflowCursorParam) workflowToWebhookWorkerWorkflowsFindMany { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyToGetConcurrencyGroupFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -278510,11 +303321,11 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) Cursor(cursor WorkflowCursorPa return r } -func (r workflowToWebhookWorkerWorkflowsFindMany) Exec(ctx context.Context) ( - []WorkflowModel, +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Exec(ctx context.Context) ( + []WorkflowConcurrencyModel, error, ) { - var v []WorkflowModel + var v []WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -278522,11 +303333,11 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowToWebhookWorkerWorkflowsFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflow, +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowConcurrency, error, ) { - var v []InnerWorkflow + var v []InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -278534,14 +303345,14 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) ExecInner(ctx context.Context) return v, nil } -func (r workflowToWebhookWorkerWorkflowsFindMany) Update(params ...WorkflowSetParam) workflowToWebhookWorkerWorkflowsUpdateMany { +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyToGetConcurrencyGroupUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Workflow" + r.query.Model = "WorkflowConcurrency" r.query.Outputs = countOutput - var v workflowToWebhookWorkerWorkflowsUpdateMany + var v workflowConcurrencyToGetConcurrencyGroupUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -278570,17 +303381,17 @@ func (r workflowToWebhookWorkerWorkflowsFindMany) Update(params ...WorkflowSetPa return v } -type workflowToWebhookWorkerWorkflowsUpdateMany struct { +type workflowConcurrencyToGetConcurrencyGroupUpdateMany struct { query builder.Query } -func (r workflowToWebhookWorkerWorkflowsUpdateMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowToWebhookWorkerWorkflowsUpdateMany) workflowModel() {} +func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) workflowConcurrencyModel() {} -func (r workflowToWebhookWorkerWorkflowsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -278588,36 +303399,36 @@ func (r workflowToWebhookWorkerWorkflowsUpdateMany) Exec(ctx context.Context) (* return &v, nil } -func (r workflowToWebhookWorkerWorkflowsUpdateMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) Tx() WorkflowConcurrencyManyTxResult { + v := newWorkflowConcurrencyManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowToWebhookWorkerWorkflowsFindMany) Delete() workflowToWebhookWorkerWorkflowsDeleteMany { - var v workflowToWebhookWorkerWorkflowsDeleteMany +func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Delete() workflowConcurrencyToGetConcurrencyGroupDeleteMany { + var v workflowConcurrencyToGetConcurrencyGroupDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Workflow" + v.query.Model = "WorkflowConcurrency" v.query.Outputs = countOutput return v } -type workflowToWebhookWorkerWorkflowsDeleteMany struct { +type workflowConcurrencyToGetConcurrencyGroupDeleteMany struct { query builder.Query } -func (r workflowToWebhookWorkerWorkflowsDeleteMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyToGetConcurrencyGroupDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowToWebhookWorkerWorkflowsDeleteMany) workflowModel() {} +func (p workflowConcurrencyToGetConcurrencyGroupDeleteMany) workflowConcurrencyModel() {} -func (r workflowToWebhookWorkerWorkflowsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowConcurrencyToGetConcurrencyGroupDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -278625,33 +303436,33 @@ func (r workflowToWebhookWorkerWorkflowsDeleteMany) Exec(ctx context.Context) (* return &v, nil } -func (r workflowToWebhookWorkerWorkflowsDeleteMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowConcurrencyToGetConcurrencyGroupDeleteMany) Tx() WorkflowConcurrencyManyTxResult { + v := newWorkflowConcurrencyManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowFindUnique struct { +type workflowConcurrencyFindUnique struct { query builder.Query } -func (r workflowFindUnique) getQuery() builder.Query { +func (r workflowConcurrencyFindUnique) getQuery() builder.Query { return r.query } -func (r workflowFindUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowFindUnique) with() {} -func (r workflowFindUnique) workflowModel() {} -func (r workflowFindUnique) workflowRelation() {} +func (r workflowConcurrencyFindUnique) with() {} +func (r workflowConcurrencyFindUnique) workflowConcurrencyModel() {} +func (r workflowConcurrencyFindUnique) workflowConcurrencyRelation() {} -func (r workflowActions) FindUnique( - params WorkflowEqualsUniqueWhereParam, -) workflowFindUnique { - var v workflowFindUnique +func (r workflowConcurrencyActions) FindUnique( + params WorkflowConcurrencyEqualsUniqueWhereParam, +) workflowConcurrencyFindUnique { + var v workflowConcurrencyFindUnique v.query = builder.NewQuery() v.query.Engine = r.client @@ -278659,8 +303470,8 @@ func (r workflowActions) FindUnique( v.query.Method = "findUnique" - v.query.Model = "Workflow" - v.query.Outputs = workflowOutput + v.query.Model = "WorkflowConcurrency" + v.query.Outputs = workflowConcurrencyOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "where", @@ -278670,7 +303481,7 @@ func (r workflowActions) FindUnique( return v } -func (r workflowFindUnique) With(params ...WorkflowRelationWith) workflowFindUnique { +func (r workflowConcurrencyFindUnique) With(params ...WorkflowConcurrencyRelationWith) workflowConcurrencyFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -278683,7 +303494,7 @@ func (r workflowFindUnique) With(params ...WorkflowRelationWith) workflowFindUni return r } -func (r workflowFindUnique) Select(params ...workflowPrismaFields) workflowFindUnique { +func (r workflowConcurrencyFindUnique) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindUnique { var outputs []builder.Output for _, param := range params { @@ -278697,7 +303508,7 @@ func (r workflowFindUnique) Select(params ...workflowPrismaFields) workflowFindU return r } -func (r workflowFindUnique) Omit(params ...workflowPrismaFields) workflowFindUnique { +func (r workflowConcurrencyFindUnique) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindUnique { var outputs []builder.Output var raw []string @@ -278705,7 +303516,7 @@ func (r workflowFindUnique) Omit(params ...workflowPrismaFields) workflowFindUni raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -278716,11 +303527,11 @@ func (r workflowFindUnique) Omit(params ...workflowPrismaFields) workflowFindUni return r } -func (r workflowFindUnique) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowConcurrencyFindUnique) Exec(ctx context.Context) ( + *WorkflowConcurrencyModel, error, ) { - var v *WorkflowModel + var v *WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -278732,11 +303543,11 @@ func (r workflowFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowConcurrencyFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowConcurrency, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -278748,12 +303559,12 @@ func (r workflowFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowFindUnique) Update(params ...WorkflowSetParam) workflowUpdateUnique { +func (r workflowConcurrencyFindUnique) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Workflow" + r.query.Model = "WorkflowConcurrency" - var v workflowUpdateUnique + var v workflowConcurrencyUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -278782,86 +303593,86 @@ func (r workflowFindUnique) Update(params ...WorkflowSetParam) workflowUpdateUni return v } -type workflowUpdateUnique struct { +type workflowConcurrencyUpdateUnique struct { query builder.Query } -func (r workflowUpdateUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowUpdateUnique) workflowModel() {} +func (r workflowConcurrencyUpdateUnique) workflowConcurrencyModel() {} -func (r workflowUpdateUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowConcurrencyUpdateUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { + var v WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowUpdateUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowConcurrencyUpdateUnique) Tx() WorkflowConcurrencyUniqueTxResult { + v := newWorkflowConcurrencyUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowFindUnique) Delete() workflowDeleteUnique { - var v workflowDeleteUnique +func (r workflowConcurrencyFindUnique) Delete() workflowConcurrencyDeleteUnique { + var v workflowConcurrencyDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Workflow" + v.query.Model = "WorkflowConcurrency" return v } -type workflowDeleteUnique struct { +type workflowConcurrencyDeleteUnique struct { query builder.Query } -func (r workflowDeleteUnique) ExtractQuery() builder.Query { +func (r workflowConcurrencyDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowDeleteUnique) workflowModel() {} +func (p workflowConcurrencyDeleteUnique) workflowConcurrencyModel() {} -func (r workflowDeleteUnique) Exec(ctx context.Context) (*WorkflowModel, error) { - var v WorkflowModel +func (r workflowConcurrencyDeleteUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { + var v WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowDeleteUnique) Tx() WorkflowUniqueTxResult { - v := newWorkflowUniqueTxResult() +func (r workflowConcurrencyDeleteUnique) Tx() WorkflowConcurrencyUniqueTxResult { + v := newWorkflowConcurrencyUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowFindFirst struct { +type workflowConcurrencyFindFirst struct { query builder.Query } -func (r workflowFindFirst) getQuery() builder.Query { +func (r workflowConcurrencyFindFirst) getQuery() builder.Query { return r.query } -func (r workflowFindFirst) ExtractQuery() builder.Query { +func (r workflowConcurrencyFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowFindFirst) with() {} -func (r workflowFindFirst) workflowModel() {} -func (r workflowFindFirst) workflowRelation() {} +func (r workflowConcurrencyFindFirst) with() {} +func (r workflowConcurrencyFindFirst) workflowConcurrencyModel() {} +func (r workflowConcurrencyFindFirst) workflowConcurrencyRelation() {} -func (r workflowActions) FindFirst( - params ...WorkflowWhereParam, -) workflowFindFirst { - var v workflowFindFirst +func (r workflowConcurrencyActions) FindFirst( + params ...WorkflowConcurrencyWhereParam, +) workflowConcurrencyFindFirst { + var v workflowConcurrencyFindFirst v.query = builder.NewQuery() v.query.Engine = r.client @@ -278869,8 +303680,8 @@ func (r workflowActions) FindFirst( v.query.Method = "findFirst" - v.query.Model = "Workflow" - v.query.Outputs = workflowOutput + v.query.Model = "WorkflowConcurrency" + v.query.Outputs = workflowConcurrencyOutput var where []builder.Field for _, q := range params { @@ -278895,7 +303706,7 @@ func (r workflowActions) FindFirst( return v } -func (r workflowFindFirst) With(params ...WorkflowRelationWith) workflowFindFirst { +func (r workflowConcurrencyFindFirst) With(params ...WorkflowConcurrencyRelationWith) workflowConcurrencyFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -278908,7 +303719,7 @@ func (r workflowFindFirst) With(params ...WorkflowRelationWith) workflowFindFirs return r } -func (r workflowFindFirst) Select(params ...workflowPrismaFields) workflowFindFirst { +func (r workflowConcurrencyFindFirst) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindFirst { var outputs []builder.Output for _, param := range params { @@ -278922,7 +303733,7 @@ func (r workflowFindFirst) Select(params ...workflowPrismaFields) workflowFindFi return r } -func (r workflowFindFirst) Omit(params ...workflowPrismaFields) workflowFindFirst { +func (r workflowConcurrencyFindFirst) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindFirst { var outputs []builder.Output var raw []string @@ -278930,7 +303741,7 @@ func (r workflowFindFirst) Omit(params ...workflowPrismaFields) workflowFindFirs raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -278941,7 +303752,7 @@ func (r workflowFindFirst) Omit(params ...workflowPrismaFields) workflowFindFirs return r } -func (r workflowFindFirst) OrderBy(params ...WorkflowOrderByParam) workflowFindFirst { +func (r workflowConcurrencyFindFirst) OrderBy(params ...WorkflowConcurrencyOrderByParam) workflowConcurrencyFindFirst { var fields []builder.Field for _, param := range params { @@ -278961,7 +303772,7 @@ func (r workflowFindFirst) OrderBy(params ...WorkflowOrderByParam) workflowFindF return r } -func (r workflowFindFirst) Skip(count int) workflowFindFirst { +func (r workflowConcurrencyFindFirst) Skip(count int) workflowConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -278969,7 +303780,7 @@ func (r workflowFindFirst) Skip(count int) workflowFindFirst { return r } -func (r workflowFindFirst) Take(count int) workflowFindFirst { +func (r workflowConcurrencyFindFirst) Take(count int) workflowConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -278977,7 +303788,7 @@ func (r workflowFindFirst) Take(count int) workflowFindFirst { return r } -func (r workflowFindFirst) Cursor(cursor WorkflowCursorParam) workflowFindFirst { +func (r workflowConcurrencyFindFirst) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -278985,11 +303796,11 @@ func (r workflowFindFirst) Cursor(cursor WorkflowCursorParam) workflowFindFirst return r } -func (r workflowFindFirst) Exec(ctx context.Context) ( - *WorkflowModel, +func (r workflowConcurrencyFindFirst) Exec(ctx context.Context) ( + *WorkflowConcurrencyModel, error, ) { - var v *WorkflowModel + var v *WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279001,11 +303812,11 @@ func (r workflowFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflow, +func (r workflowConcurrencyFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowConcurrency, error, ) { - var v *InnerWorkflow + var v *InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279017,26 +303828,26 @@ func (r workflowFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowFindMany struct { +type workflowConcurrencyFindMany struct { query builder.Query } -func (r workflowFindMany) getQuery() builder.Query { +func (r workflowConcurrencyFindMany) getQuery() builder.Query { return r.query } -func (r workflowFindMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowFindMany) with() {} -func (r workflowFindMany) workflowModel() {} -func (r workflowFindMany) workflowRelation() {} +func (r workflowConcurrencyFindMany) with() {} +func (r workflowConcurrencyFindMany) workflowConcurrencyModel() {} +func (r workflowConcurrencyFindMany) workflowConcurrencyRelation() {} -func (r workflowActions) FindMany( - params ...WorkflowWhereParam, -) workflowFindMany { - var v workflowFindMany +func (r workflowConcurrencyActions) FindMany( + params ...WorkflowConcurrencyWhereParam, +) workflowConcurrencyFindMany { + var v workflowConcurrencyFindMany v.query = builder.NewQuery() v.query.Engine = r.client @@ -279044,8 +303855,8 @@ func (r workflowActions) FindMany( v.query.Method = "findMany" - v.query.Model = "Workflow" - v.query.Outputs = workflowOutput + v.query.Model = "WorkflowConcurrency" + v.query.Outputs = workflowConcurrencyOutput var where []builder.Field for _, q := range params { @@ -279070,7 +303881,7 @@ func (r workflowActions) FindMany( return v } -func (r workflowFindMany) With(params ...WorkflowRelationWith) workflowFindMany { +func (r workflowConcurrencyFindMany) With(params ...WorkflowConcurrencyRelationWith) workflowConcurrencyFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -279083,7 +303894,7 @@ func (r workflowFindMany) With(params ...WorkflowRelationWith) workflowFindMany return r } -func (r workflowFindMany) Select(params ...workflowPrismaFields) workflowFindMany { +func (r workflowConcurrencyFindMany) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindMany { var outputs []builder.Output for _, param := range params { @@ -279097,7 +303908,7 @@ func (r workflowFindMany) Select(params ...workflowPrismaFields) workflowFindMan return r } -func (r workflowFindMany) Omit(params ...workflowPrismaFields) workflowFindMany { +func (r workflowConcurrencyFindMany) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindMany { var outputs []builder.Output var raw []string @@ -279105,7 +303916,7 @@ func (r workflowFindMany) Omit(params ...workflowPrismaFields) workflowFindMany raw = append(raw, string(param)) } - for _, output := range workflowOutput { + for _, output := range workflowConcurrencyOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -279116,7 +303927,7 @@ func (r workflowFindMany) Omit(params ...workflowPrismaFields) workflowFindMany return r } -func (r workflowFindMany) OrderBy(params ...WorkflowOrderByParam) workflowFindMany { +func (r workflowConcurrencyFindMany) OrderBy(params ...WorkflowConcurrencyOrderByParam) workflowConcurrencyFindMany { var fields []builder.Field for _, param := range params { @@ -279136,7 +303947,7 @@ func (r workflowFindMany) OrderBy(params ...WorkflowOrderByParam) workflowFindMa return r } -func (r workflowFindMany) Skip(count int) workflowFindMany { +func (r workflowConcurrencyFindMany) Skip(count int) workflowConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -279144,7 +303955,7 @@ func (r workflowFindMany) Skip(count int) workflowFindMany { return r } -func (r workflowFindMany) Take(count int) workflowFindMany { +func (r workflowConcurrencyFindMany) Take(count int) workflowConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -279152,7 +303963,7 @@ func (r workflowFindMany) Take(count int) workflowFindMany { return r } -func (r workflowFindMany) Cursor(cursor WorkflowCursorParam) workflowFindMany { +func (r workflowConcurrencyFindMany) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -279160,11 +303971,11 @@ func (r workflowFindMany) Cursor(cursor WorkflowCursorParam) workflowFindMany { return r } -func (r workflowFindMany) Exec(ctx context.Context) ( - []WorkflowModel, +func (r workflowConcurrencyFindMany) Exec(ctx context.Context) ( + []WorkflowConcurrencyModel, error, ) { - var v []WorkflowModel + var v []WorkflowConcurrencyModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279172,11 +303983,11 @@ func (r workflowFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflow, +func (r workflowConcurrencyFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowConcurrency, error, ) { - var v []InnerWorkflow + var v []InnerWorkflowConcurrency if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279184,14 +303995,14 @@ func (r workflowFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowFindMany) Update(params ...WorkflowSetParam) workflowUpdateMany { +func (r workflowConcurrencyFindMany) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Workflow" + r.query.Model = "WorkflowConcurrency" r.query.Outputs = countOutput - var v workflowUpdateMany + var v workflowConcurrencyUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -279220,17 +304031,17 @@ func (r workflowFindMany) Update(params ...WorkflowSetParam) workflowUpdateMany return v } -type workflowUpdateMany struct { +type workflowConcurrencyUpdateMany struct { query builder.Query } -func (r workflowUpdateMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowUpdateMany) workflowModel() {} +func (r workflowConcurrencyUpdateMany) workflowConcurrencyModel() {} -func (r workflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowConcurrencyUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -279238,36 +304049,36 @@ func (r workflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r workflowUpdateMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowConcurrencyUpdateMany) Tx() WorkflowConcurrencyManyTxResult { + v := newWorkflowConcurrencyManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowFindMany) Delete() workflowDeleteMany { - var v workflowDeleteMany +func (r workflowConcurrencyFindMany) Delete() workflowConcurrencyDeleteMany { + var v workflowConcurrencyDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Workflow" + v.query.Model = "WorkflowConcurrency" v.query.Outputs = countOutput return v } -type workflowDeleteMany struct { +type workflowConcurrencyDeleteMany struct { query builder.Query } -func (r workflowDeleteMany) ExtractQuery() builder.Query { +func (r workflowConcurrencyDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowDeleteMany) workflowModel() {} +func (p workflowConcurrencyDeleteMany) workflowConcurrencyModel() {} -func (r workflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowConcurrencyDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -279275,30 +304086,30 @@ func (r workflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r workflowDeleteMany) Tx() WorkflowManyTxResult { - v := newWorkflowManyTxResult() +func (r workflowConcurrencyDeleteMany) Tx() WorkflowConcurrencyManyTxResult { + v := newWorkflowConcurrencyManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToWorkflowFindUnique struct { +type workflowTriggersToWorkflowFindUnique struct { query builder.Query } -func (r workflowVersionToWorkflowFindUnique) getQuery() builder.Query { +func (r workflowTriggersToWorkflowFindUnique) getQuery() builder.Query { return r.query } -func (r workflowVersionToWorkflowFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToWorkflowFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToWorkflowFindUnique) with() {} -func (r workflowVersionToWorkflowFindUnique) workflowVersionModel() {} -func (r workflowVersionToWorkflowFindUnique) workflowVersionRelation() {} +func (r workflowTriggersToWorkflowFindUnique) with() {} +func (r workflowTriggersToWorkflowFindUnique) workflowTriggersModel() {} +func (r workflowTriggersToWorkflowFindUnique) workflowTriggersRelation() {} -func (r workflowVersionToWorkflowFindUnique) With(params ...WorkflowRelationWith) workflowVersionToWorkflowFindUnique { +func (r workflowTriggersToWorkflowFindUnique) With(params ...WorkflowVersionRelationWith) workflowTriggersToWorkflowFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -279311,7 +304122,7 @@ func (r workflowVersionToWorkflowFindUnique) With(params ...WorkflowRelationWith return r } -func (r workflowVersionToWorkflowFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindUnique { +func (r workflowTriggersToWorkflowFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindUnique { var outputs []builder.Output for _, param := range params { @@ -279325,7 +304136,7 @@ func (r workflowVersionToWorkflowFindUnique) Select(params ...workflowVersionPri return r } -func (r workflowVersionToWorkflowFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindUnique { +func (r workflowTriggersToWorkflowFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindUnique { var outputs []builder.Output var raw []string @@ -279333,7 +304144,7 @@ func (r workflowVersionToWorkflowFindUnique) Omit(params ...workflowVersionPrism raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -279344,11 +304155,11 @@ func (r workflowVersionToWorkflowFindUnique) Omit(params ...workflowVersionPrism return r } -func (r workflowVersionToWorkflowFindUnique) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersToWorkflowFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279360,11 +304171,11 @@ func (r workflowVersionToWorkflowFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToWorkflowFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersToWorkflowFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279376,12 +304187,12 @@ func (r workflowVersionToWorkflowFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToWorkflowFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToWorkflowUpdateUnique { +func (r workflowTriggersToWorkflowFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersToWorkflowUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" - var v workflowVersionToWorkflowUpdateUnique + var v workflowTriggersToWorkflowUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -279410,83 +304221,83 @@ func (r workflowVersionToWorkflowFindUnique) Update(params ...WorkflowVersionSet return v } -type workflowVersionToWorkflowUpdateUnique struct { +type workflowTriggersToWorkflowUpdateUnique struct { query builder.Query } -func (r workflowVersionToWorkflowUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToWorkflowUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToWorkflowUpdateUnique) workflowVersionModel() {} +func (r workflowTriggersToWorkflowUpdateUnique) workflowTriggersModel() {} -func (r workflowVersionToWorkflowUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersToWorkflowUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToWorkflowUpdateUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersToWorkflowUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToWorkflowFindUnique) Delete() workflowVersionToWorkflowDeleteUnique { - var v workflowVersionToWorkflowDeleteUnique +func (r workflowTriggersToWorkflowFindUnique) Delete() workflowTriggersToWorkflowDeleteUnique { + var v workflowTriggersToWorkflowDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" return v } -type workflowVersionToWorkflowDeleteUnique struct { +type workflowTriggersToWorkflowDeleteUnique struct { query builder.Query } -func (r workflowVersionToWorkflowDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToWorkflowDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToWorkflowDeleteUnique) workflowVersionModel() {} +func (p workflowTriggersToWorkflowDeleteUnique) workflowTriggersModel() {} -func (r workflowVersionToWorkflowDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersToWorkflowDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToWorkflowDeleteUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersToWorkflowDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToWorkflowFindFirst struct { +type workflowTriggersToWorkflowFindFirst struct { query builder.Query } -func (r workflowVersionToWorkflowFindFirst) getQuery() builder.Query { +func (r workflowTriggersToWorkflowFindFirst) getQuery() builder.Query { return r.query } -func (r workflowVersionToWorkflowFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggersToWorkflowFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToWorkflowFindFirst) with() {} -func (r workflowVersionToWorkflowFindFirst) workflowVersionModel() {} -func (r workflowVersionToWorkflowFindFirst) workflowVersionRelation() {} +func (r workflowTriggersToWorkflowFindFirst) with() {} +func (r workflowTriggersToWorkflowFindFirst) workflowTriggersModel() {} +func (r workflowTriggersToWorkflowFindFirst) workflowTriggersRelation() {} -func (r workflowVersionToWorkflowFindFirst) With(params ...WorkflowRelationWith) workflowVersionToWorkflowFindFirst { +func (r workflowTriggersToWorkflowFindFirst) With(params ...WorkflowVersionRelationWith) workflowTriggersToWorkflowFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -279499,7 +304310,7 @@ func (r workflowVersionToWorkflowFindFirst) With(params ...WorkflowRelationWith) return r } -func (r workflowVersionToWorkflowFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindFirst { +func (r workflowTriggersToWorkflowFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindFirst { var outputs []builder.Output for _, param := range params { @@ -279513,7 +304324,7 @@ func (r workflowVersionToWorkflowFindFirst) Select(params ...workflowVersionPris return r } -func (r workflowVersionToWorkflowFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindFirst { +func (r workflowTriggersToWorkflowFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindFirst { var outputs []builder.Output var raw []string @@ -279521,7 +304332,7 @@ func (r workflowVersionToWorkflowFindFirst) Omit(params ...workflowVersionPrisma raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -279532,7 +304343,7 @@ func (r workflowVersionToWorkflowFindFirst) Omit(params ...workflowVersionPrisma return r } -func (r workflowVersionToWorkflowFindFirst) OrderBy(params ...WorkflowOrderByParam) workflowVersionToWorkflowFindFirst { +func (r workflowTriggersToWorkflowFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowTriggersToWorkflowFindFirst { var fields []builder.Field for _, param := range params { @@ -279552,7 +304363,7 @@ func (r workflowVersionToWorkflowFindFirst) OrderBy(params ...WorkflowOrderByPar return r } -func (r workflowVersionToWorkflowFindFirst) Skip(count int) workflowVersionToWorkflowFindFirst { +func (r workflowTriggersToWorkflowFindFirst) Skip(count int) workflowTriggersToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -279560,7 +304371,7 @@ func (r workflowVersionToWorkflowFindFirst) Skip(count int) workflowVersionToWor return r } -func (r workflowVersionToWorkflowFindFirst) Take(count int) workflowVersionToWorkflowFindFirst { +func (r workflowTriggersToWorkflowFindFirst) Take(count int) workflowTriggersToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -279568,7 +304379,7 @@ func (r workflowVersionToWorkflowFindFirst) Take(count int) workflowVersionToWor return r } -func (r workflowVersionToWorkflowFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToWorkflowFindFirst { +func (r workflowTriggersToWorkflowFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -279576,11 +304387,11 @@ func (r workflowVersionToWorkflowFindFirst) Cursor(cursor WorkflowVersionCursorP return r } -func (r workflowVersionToWorkflowFindFirst) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersToWorkflowFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279592,11 +304403,11 @@ func (r workflowVersionToWorkflowFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToWorkflowFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersToWorkflowFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279608,23 +304419,23 @@ func (r workflowVersionToWorkflowFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowVersionToWorkflowFindMany struct { +type workflowTriggersToWorkflowFindMany struct { query builder.Query } -func (r workflowVersionToWorkflowFindMany) getQuery() builder.Query { +func (r workflowTriggersToWorkflowFindMany) getQuery() builder.Query { return r.query } -func (r workflowVersionToWorkflowFindMany) ExtractQuery() builder.Query { +func (r workflowTriggersToWorkflowFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToWorkflowFindMany) with() {} -func (r workflowVersionToWorkflowFindMany) workflowVersionModel() {} -func (r workflowVersionToWorkflowFindMany) workflowVersionRelation() {} +func (r workflowTriggersToWorkflowFindMany) with() {} +func (r workflowTriggersToWorkflowFindMany) workflowTriggersModel() {} +func (r workflowTriggersToWorkflowFindMany) workflowTriggersRelation() {} -func (r workflowVersionToWorkflowFindMany) With(params ...WorkflowRelationWith) workflowVersionToWorkflowFindMany { +func (r workflowTriggersToWorkflowFindMany) With(params ...WorkflowVersionRelationWith) workflowTriggersToWorkflowFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -279637,7 +304448,7 @@ func (r workflowVersionToWorkflowFindMany) With(params ...WorkflowRelationWith) return r } -func (r workflowVersionToWorkflowFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindMany { +func (r workflowTriggersToWorkflowFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindMany { var outputs []builder.Output for _, param := range params { @@ -279651,7 +304462,7 @@ func (r workflowVersionToWorkflowFindMany) Select(params ...workflowVersionPrism return r } -func (r workflowVersionToWorkflowFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToWorkflowFindMany { +func (r workflowTriggersToWorkflowFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindMany { var outputs []builder.Output var raw []string @@ -279659,7 +304470,7 @@ func (r workflowVersionToWorkflowFindMany) Omit(params ...workflowVersionPrismaF raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -279670,7 +304481,7 @@ func (r workflowVersionToWorkflowFindMany) Omit(params ...workflowVersionPrismaF return r } -func (r workflowVersionToWorkflowFindMany) OrderBy(params ...WorkflowOrderByParam) workflowVersionToWorkflowFindMany { +func (r workflowTriggersToWorkflowFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowTriggersToWorkflowFindMany { var fields []builder.Field for _, param := range params { @@ -279690,7 +304501,7 @@ func (r workflowVersionToWorkflowFindMany) OrderBy(params ...WorkflowOrderByPara return r } -func (r workflowVersionToWorkflowFindMany) Skip(count int) workflowVersionToWorkflowFindMany { +func (r workflowTriggersToWorkflowFindMany) Skip(count int) workflowTriggersToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -279698,7 +304509,7 @@ func (r workflowVersionToWorkflowFindMany) Skip(count int) workflowVersionToWork return r } -func (r workflowVersionToWorkflowFindMany) Take(count int) workflowVersionToWorkflowFindMany { +func (r workflowTriggersToWorkflowFindMany) Take(count int) workflowTriggersToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -279706,7 +304517,7 @@ func (r workflowVersionToWorkflowFindMany) Take(count int) workflowVersionToWork return r } -func (r workflowVersionToWorkflowFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToWorkflowFindMany { +func (r workflowTriggersToWorkflowFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -279714,11 +304525,11 @@ func (r workflowVersionToWorkflowFindMany) Cursor(cursor WorkflowVersionCursorPa return r } -func (r workflowVersionToWorkflowFindMany) Exec(ctx context.Context) ( - []WorkflowVersionModel, +func (r workflowTriggersToWorkflowFindMany) Exec(ctx context.Context) ( + []WorkflowTriggersModel, error, ) { - var v []WorkflowVersionModel + var v []WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279726,11 +304537,11 @@ func (r workflowVersionToWorkflowFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToWorkflowFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowVersion, +func (r workflowTriggersToWorkflowFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggers, error, ) { - var v []InnerWorkflowVersion + var v []InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279738,14 +304549,14 @@ func (r workflowVersionToWorkflowFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToWorkflowFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToWorkflowUpdateMany { +func (r workflowTriggersToWorkflowFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersToWorkflowUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" r.query.Outputs = countOutput - var v workflowVersionToWorkflowUpdateMany + var v workflowTriggersToWorkflowUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -279774,17 +304585,17 @@ func (r workflowVersionToWorkflowFindMany) Update(params ...WorkflowVersionSetPa return v } -type workflowVersionToWorkflowUpdateMany struct { +type workflowTriggersToWorkflowUpdateMany struct { query builder.Query } -func (r workflowVersionToWorkflowUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggersToWorkflowUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToWorkflowUpdateMany) workflowVersionModel() {} +func (r workflowTriggersToWorkflowUpdateMany) workflowTriggersModel() {} -func (r workflowVersionToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -279792,36 +304603,36 @@ func (r workflowVersionToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchRe return &v, nil } -func (r workflowVersionToWorkflowUpdateMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersToWorkflowUpdateMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToWorkflowFindMany) Delete() workflowVersionToWorkflowDeleteMany { - var v workflowVersionToWorkflowDeleteMany +func (r workflowTriggersToWorkflowFindMany) Delete() workflowTriggersToWorkflowDeleteMany { + var v workflowTriggersToWorkflowDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" v.query.Outputs = countOutput return v } -type workflowVersionToWorkflowDeleteMany struct { +type workflowTriggersToWorkflowDeleteMany struct { query builder.Query } -func (r workflowVersionToWorkflowDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggersToWorkflowDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToWorkflowDeleteMany) workflowVersionModel() {} +func (p workflowTriggersToWorkflowDeleteMany) workflowTriggersModel() {} -func (r workflowVersionToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -279829,30 +304640,30 @@ func (r workflowVersionToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchRe return &v, nil } -func (r workflowVersionToWorkflowDeleteMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersToWorkflowDeleteMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToTriggersFindUnique struct { +type workflowTriggersToTenantFindUnique struct { query builder.Query } -func (r workflowVersionToTriggersFindUnique) getQuery() builder.Query { +func (r workflowTriggersToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r workflowVersionToTriggersFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToTriggersFindUnique) with() {} -func (r workflowVersionToTriggersFindUnique) workflowVersionModel() {} -func (r workflowVersionToTriggersFindUnique) workflowVersionRelation() {} +func (r workflowTriggersToTenantFindUnique) with() {} +func (r workflowTriggersToTenantFindUnique) workflowTriggersModel() {} +func (r workflowTriggersToTenantFindUnique) workflowTriggersRelation() {} -func (r workflowVersionToTriggersFindUnique) With(params ...WorkflowTriggersRelationWith) workflowVersionToTriggersFindUnique { +func (r workflowTriggersToTenantFindUnique) With(params ...TenantRelationWith) workflowTriggersToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -279865,7 +304676,7 @@ func (r workflowVersionToTriggersFindUnique) With(params ...WorkflowTriggersRela return r } -func (r workflowVersionToTriggersFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindUnique { +func (r workflowTriggersToTenantFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -279879,7 +304690,7 @@ func (r workflowVersionToTriggersFindUnique) Select(params ...workflowVersionPri return r } -func (r workflowVersionToTriggersFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindUnique { +func (r workflowTriggersToTenantFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindUnique { var outputs []builder.Output var raw []string @@ -279887,7 +304698,7 @@ func (r workflowVersionToTriggersFindUnique) Omit(params ...workflowVersionPrism raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -279898,11 +304709,11 @@ func (r workflowVersionToTriggersFindUnique) Omit(params ...workflowVersionPrism return r } -func (r workflowVersionToTriggersFindUnique) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersToTenantFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279914,11 +304725,11 @@ func (r workflowVersionToTriggersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToTriggersFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -279930,12 +304741,12 @@ func (r workflowVersionToTriggersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToTriggersFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToTriggersUpdateUnique { +func (r workflowTriggersToTenantFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" - var v workflowVersionToTriggersUpdateUnique + var v workflowTriggersToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -279964,83 +304775,83 @@ func (r workflowVersionToTriggersFindUnique) Update(params ...WorkflowVersionSet return v } -type workflowVersionToTriggersUpdateUnique struct { +type workflowTriggersToTenantUpdateUnique struct { query builder.Query } -func (r workflowVersionToTriggersUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToTriggersUpdateUnique) workflowVersionModel() {} +func (r workflowTriggersToTenantUpdateUnique) workflowTriggersModel() {} -func (r workflowVersionToTriggersUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToTriggersUpdateUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersToTenantUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToTriggersFindUnique) Delete() workflowVersionToTriggersDeleteUnique { - var v workflowVersionToTriggersDeleteUnique +func (r workflowTriggersToTenantFindUnique) Delete() workflowTriggersToTenantDeleteUnique { + var v workflowTriggersToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" return v } -type workflowVersionToTriggersDeleteUnique struct { +type workflowTriggersToTenantDeleteUnique struct { query builder.Query } -func (r workflowVersionToTriggersDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToTriggersDeleteUnique) workflowVersionModel() {} +func (p workflowTriggersToTenantDeleteUnique) workflowTriggersModel() {} -func (r workflowVersionToTriggersDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToTriggersDeleteUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersToTenantDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToTriggersFindFirst struct { +type workflowTriggersToTenantFindFirst struct { query builder.Query } -func (r workflowVersionToTriggersFindFirst) getQuery() builder.Query { +func (r workflowTriggersToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r workflowVersionToTriggersFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggersToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToTriggersFindFirst) with() {} -func (r workflowVersionToTriggersFindFirst) workflowVersionModel() {} -func (r workflowVersionToTriggersFindFirst) workflowVersionRelation() {} +func (r workflowTriggersToTenantFindFirst) with() {} +func (r workflowTriggersToTenantFindFirst) workflowTriggersModel() {} +func (r workflowTriggersToTenantFindFirst) workflowTriggersRelation() {} -func (r workflowVersionToTriggersFindFirst) With(params ...WorkflowTriggersRelationWith) workflowVersionToTriggersFindFirst { +func (r workflowTriggersToTenantFindFirst) With(params ...TenantRelationWith) workflowTriggersToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -280053,7 +304864,7 @@ func (r workflowVersionToTriggersFindFirst) With(params ...WorkflowTriggersRelat return r } -func (r workflowVersionToTriggersFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindFirst { +func (r workflowTriggersToTenantFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -280067,7 +304878,7 @@ func (r workflowVersionToTriggersFindFirst) Select(params ...workflowVersionPris return r } -func (r workflowVersionToTriggersFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindFirst { +func (r workflowTriggersToTenantFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindFirst { var outputs []builder.Output var raw []string @@ -280075,7 +304886,7 @@ func (r workflowVersionToTriggersFindFirst) Omit(params ...workflowVersionPrisma raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -280086,7 +304897,7 @@ func (r workflowVersionToTriggersFindFirst) Omit(params ...workflowVersionPrisma return r } -func (r workflowVersionToTriggersFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) workflowVersionToTriggersFindFirst { +func (r workflowTriggersToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowTriggersToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -280106,7 +304917,7 @@ func (r workflowVersionToTriggersFindFirst) OrderBy(params ...WorkflowTriggersOr return r } -func (r workflowVersionToTriggersFindFirst) Skip(count int) workflowVersionToTriggersFindFirst { +func (r workflowTriggersToTenantFindFirst) Skip(count int) workflowTriggersToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -280114,7 +304925,7 @@ func (r workflowVersionToTriggersFindFirst) Skip(count int) workflowVersionToTri return r } -func (r workflowVersionToTriggersFindFirst) Take(count int) workflowVersionToTriggersFindFirst { +func (r workflowTriggersToTenantFindFirst) Take(count int) workflowTriggersToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -280122,7 +304933,7 @@ func (r workflowVersionToTriggersFindFirst) Take(count int) workflowVersionToTri return r } -func (r workflowVersionToTriggersFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToTriggersFindFirst { +func (r workflowTriggersToTenantFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -280130,11 +304941,11 @@ func (r workflowVersionToTriggersFindFirst) Cursor(cursor WorkflowVersionCursorP return r } -func (r workflowVersionToTriggersFindFirst) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersToTenantFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280146,11 +304957,11 @@ func (r workflowVersionToTriggersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToTriggersFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280162,23 +304973,23 @@ func (r workflowVersionToTriggersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowVersionToTriggersFindMany struct { +type workflowTriggersToTenantFindMany struct { query builder.Query } -func (r workflowVersionToTriggersFindMany) getQuery() builder.Query { +func (r workflowTriggersToTenantFindMany) getQuery() builder.Query { return r.query } -func (r workflowVersionToTriggersFindMany) ExtractQuery() builder.Query { +func (r workflowTriggersToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToTriggersFindMany) with() {} -func (r workflowVersionToTriggersFindMany) workflowVersionModel() {} -func (r workflowVersionToTriggersFindMany) workflowVersionRelation() {} +func (r workflowTriggersToTenantFindMany) with() {} +func (r workflowTriggersToTenantFindMany) workflowTriggersModel() {} +func (r workflowTriggersToTenantFindMany) workflowTriggersRelation() {} -func (r workflowVersionToTriggersFindMany) With(params ...WorkflowTriggersRelationWith) workflowVersionToTriggersFindMany { +func (r workflowTriggersToTenantFindMany) With(params ...TenantRelationWith) workflowTriggersToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -280191,7 +305002,7 @@ func (r workflowVersionToTriggersFindMany) With(params ...WorkflowTriggersRelati return r } -func (r workflowVersionToTriggersFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindMany { +func (r workflowTriggersToTenantFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -280205,7 +305016,7 @@ func (r workflowVersionToTriggersFindMany) Select(params ...workflowVersionPrism return r } -func (r workflowVersionToTriggersFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToTriggersFindMany { +func (r workflowTriggersToTenantFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindMany { var outputs []builder.Output var raw []string @@ -280213,7 +305024,7 @@ func (r workflowVersionToTriggersFindMany) Omit(params ...workflowVersionPrismaF raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -280224,7 +305035,7 @@ func (r workflowVersionToTriggersFindMany) Omit(params ...workflowVersionPrismaF return r } -func (r workflowVersionToTriggersFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) workflowVersionToTriggersFindMany { +func (r workflowTriggersToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowTriggersToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -280244,7 +305055,7 @@ func (r workflowVersionToTriggersFindMany) OrderBy(params ...WorkflowTriggersOrd return r } -func (r workflowVersionToTriggersFindMany) Skip(count int) workflowVersionToTriggersFindMany { +func (r workflowTriggersToTenantFindMany) Skip(count int) workflowTriggersToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -280252,7 +305063,7 @@ func (r workflowVersionToTriggersFindMany) Skip(count int) workflowVersionToTrig return r } -func (r workflowVersionToTriggersFindMany) Take(count int) workflowVersionToTriggersFindMany { +func (r workflowTriggersToTenantFindMany) Take(count int) workflowTriggersToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -280260,7 +305071,7 @@ func (r workflowVersionToTriggersFindMany) Take(count int) workflowVersionToTrig return r } -func (r workflowVersionToTriggersFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToTriggersFindMany { +func (r workflowTriggersToTenantFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -280268,11 +305079,11 @@ func (r workflowVersionToTriggersFindMany) Cursor(cursor WorkflowVersionCursorPa return r } -func (r workflowVersionToTriggersFindMany) Exec(ctx context.Context) ( - []WorkflowVersionModel, +func (r workflowTriggersToTenantFindMany) Exec(ctx context.Context) ( + []WorkflowTriggersModel, error, ) { - var v []WorkflowVersionModel + var v []WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280280,11 +305091,11 @@ func (r workflowVersionToTriggersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToTriggersFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowVersion, +func (r workflowTriggersToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggers, error, ) { - var v []InnerWorkflowVersion + var v []InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280292,14 +305103,14 @@ func (r workflowVersionToTriggersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToTriggersFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToTriggersUpdateMany { +func (r workflowTriggersToTenantFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" r.query.Outputs = countOutput - var v workflowVersionToTriggersUpdateMany + var v workflowTriggersToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -280328,17 +305139,17 @@ func (r workflowVersionToTriggersFindMany) Update(params ...WorkflowVersionSetPa return v } -type workflowVersionToTriggersUpdateMany struct { +type workflowTriggersToTenantUpdateMany struct { query builder.Query } -func (r workflowVersionToTriggersUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggersToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToTriggersUpdateMany) workflowVersionModel() {} +func (r workflowTriggersToTenantUpdateMany) workflowTriggersModel() {} -func (r workflowVersionToTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -280346,36 +305157,36 @@ func (r workflowVersionToTriggersUpdateMany) Exec(ctx context.Context) (*BatchRe return &v, nil } -func (r workflowVersionToTriggersUpdateMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersToTenantUpdateMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToTriggersFindMany) Delete() workflowVersionToTriggersDeleteMany { - var v workflowVersionToTriggersDeleteMany +func (r workflowTriggersToTenantFindMany) Delete() workflowTriggersToTenantDeleteMany { + var v workflowTriggersToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" v.query.Outputs = countOutput return v } -type workflowVersionToTriggersDeleteMany struct { +type workflowTriggersToTenantDeleteMany struct { query builder.Query } -func (r workflowVersionToTriggersDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggersToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToTriggersDeleteMany) workflowVersionModel() {} +func (p workflowTriggersToTenantDeleteMany) workflowTriggersModel() {} -func (r workflowVersionToTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -280383,30 +305194,30 @@ func (r workflowVersionToTriggersDeleteMany) Exec(ctx context.Context) (*BatchRe return &v, nil } -func (r workflowVersionToTriggersDeleteMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersToTenantDeleteMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToConcurrencyFindUnique struct { +type workflowTriggersToEventsFindUnique struct { query builder.Query } -func (r workflowVersionToConcurrencyFindUnique) getQuery() builder.Query { +func (r workflowTriggersToEventsFindUnique) getQuery() builder.Query { return r.query } -func (r workflowVersionToConcurrencyFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToEventsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToConcurrencyFindUnique) with() {} -func (r workflowVersionToConcurrencyFindUnique) workflowVersionModel() {} -func (r workflowVersionToConcurrencyFindUnique) workflowVersionRelation() {} +func (r workflowTriggersToEventsFindUnique) with() {} +func (r workflowTriggersToEventsFindUnique) workflowTriggersModel() {} +func (r workflowTriggersToEventsFindUnique) workflowTriggersRelation() {} -func (r workflowVersionToConcurrencyFindUnique) With(params ...WorkflowConcurrencyRelationWith) workflowVersionToConcurrencyFindUnique { +func (r workflowTriggersToEventsFindUnique) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggersToEventsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -280419,7 +305230,7 @@ func (r workflowVersionToConcurrencyFindUnique) With(params ...WorkflowConcurren return r } -func (r workflowVersionToConcurrencyFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindUnique { +func (r workflowTriggersToEventsFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindUnique { var outputs []builder.Output for _, param := range params { @@ -280433,7 +305244,7 @@ func (r workflowVersionToConcurrencyFindUnique) Select(params ...workflowVersion return r } -func (r workflowVersionToConcurrencyFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindUnique { +func (r workflowTriggersToEventsFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindUnique { var outputs []builder.Output var raw []string @@ -280441,7 +305252,7 @@ func (r workflowVersionToConcurrencyFindUnique) Omit(params ...workflowVersionPr raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -280452,11 +305263,11 @@ func (r workflowVersionToConcurrencyFindUnique) Omit(params ...workflowVersionPr return r } -func (r workflowVersionToConcurrencyFindUnique) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersToEventsFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280468,11 +305279,11 @@ func (r workflowVersionToConcurrencyFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToConcurrencyFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersToEventsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280484,12 +305295,12 @@ func (r workflowVersionToConcurrencyFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToConcurrencyFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToConcurrencyUpdateUnique { +func (r workflowTriggersToEventsFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersToEventsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" - var v workflowVersionToConcurrencyUpdateUnique + var v workflowTriggersToEventsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -280518,83 +305329,83 @@ func (r workflowVersionToConcurrencyFindUnique) Update(params ...WorkflowVersion return v } -type workflowVersionToConcurrencyUpdateUnique struct { +type workflowTriggersToEventsUpdateUnique struct { query builder.Query } -func (r workflowVersionToConcurrencyUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToEventsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToConcurrencyUpdateUnique) workflowVersionModel() {} +func (r workflowTriggersToEventsUpdateUnique) workflowTriggersModel() {} -func (r workflowVersionToConcurrencyUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersToEventsUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToConcurrencyUpdateUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersToEventsUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToConcurrencyFindUnique) Delete() workflowVersionToConcurrencyDeleteUnique { - var v workflowVersionToConcurrencyDeleteUnique +func (r workflowTriggersToEventsFindUnique) Delete() workflowTriggersToEventsDeleteUnique { + var v workflowTriggersToEventsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" return v } -type workflowVersionToConcurrencyDeleteUnique struct { +type workflowTriggersToEventsDeleteUnique struct { query builder.Query } -func (r workflowVersionToConcurrencyDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToEventsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToConcurrencyDeleteUnique) workflowVersionModel() {} +func (p workflowTriggersToEventsDeleteUnique) workflowTriggersModel() {} -func (r workflowVersionToConcurrencyDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersToEventsDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToConcurrencyDeleteUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersToEventsDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToConcurrencyFindFirst struct { +type workflowTriggersToEventsFindFirst struct { query builder.Query } -func (r workflowVersionToConcurrencyFindFirst) getQuery() builder.Query { +func (r workflowTriggersToEventsFindFirst) getQuery() builder.Query { return r.query } -func (r workflowVersionToConcurrencyFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggersToEventsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToConcurrencyFindFirst) with() {} -func (r workflowVersionToConcurrencyFindFirst) workflowVersionModel() {} -func (r workflowVersionToConcurrencyFindFirst) workflowVersionRelation() {} +func (r workflowTriggersToEventsFindFirst) with() {} +func (r workflowTriggersToEventsFindFirst) workflowTriggersModel() {} +func (r workflowTriggersToEventsFindFirst) workflowTriggersRelation() {} -func (r workflowVersionToConcurrencyFindFirst) With(params ...WorkflowConcurrencyRelationWith) workflowVersionToConcurrencyFindFirst { +func (r workflowTriggersToEventsFindFirst) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggersToEventsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -280607,7 +305418,7 @@ func (r workflowVersionToConcurrencyFindFirst) With(params ...WorkflowConcurrenc return r } -func (r workflowVersionToConcurrencyFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindFirst { +func (r workflowTriggersToEventsFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindFirst { var outputs []builder.Output for _, param := range params { @@ -280621,7 +305432,7 @@ func (r workflowVersionToConcurrencyFindFirst) Select(params ...workflowVersionP return r } -func (r workflowVersionToConcurrencyFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindFirst { +func (r workflowTriggersToEventsFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindFirst { var outputs []builder.Output var raw []string @@ -280629,7 +305440,7 @@ func (r workflowVersionToConcurrencyFindFirst) Omit(params ...workflowVersionPri raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -280640,7 +305451,7 @@ func (r workflowVersionToConcurrencyFindFirst) Omit(params ...workflowVersionPri return r } -func (r workflowVersionToConcurrencyFindFirst) OrderBy(params ...WorkflowConcurrencyOrderByParam) workflowVersionToConcurrencyFindFirst { +func (r workflowTriggersToEventsFindFirst) OrderBy(params ...WorkflowTriggerEventRefOrderByParam) workflowTriggersToEventsFindFirst { var fields []builder.Field for _, param := range params { @@ -280660,7 +305471,7 @@ func (r workflowVersionToConcurrencyFindFirst) OrderBy(params ...WorkflowConcurr return r } -func (r workflowVersionToConcurrencyFindFirst) Skip(count int) workflowVersionToConcurrencyFindFirst { +func (r workflowTriggersToEventsFindFirst) Skip(count int) workflowTriggersToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -280668,7 +305479,7 @@ func (r workflowVersionToConcurrencyFindFirst) Skip(count int) workflowVersionTo return r } -func (r workflowVersionToConcurrencyFindFirst) Take(count int) workflowVersionToConcurrencyFindFirst { +func (r workflowTriggersToEventsFindFirst) Take(count int) workflowTriggersToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -280676,7 +305487,7 @@ func (r workflowVersionToConcurrencyFindFirst) Take(count int) workflowVersionTo return r } -func (r workflowVersionToConcurrencyFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToConcurrencyFindFirst { +func (r workflowTriggersToEventsFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -280684,11 +305495,11 @@ func (r workflowVersionToConcurrencyFindFirst) Cursor(cursor WorkflowVersionCurs return r } -func (r workflowVersionToConcurrencyFindFirst) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersToEventsFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280700,11 +305511,11 @@ func (r workflowVersionToConcurrencyFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToConcurrencyFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersToEventsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280716,23 +305527,23 @@ func (r workflowVersionToConcurrencyFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowVersionToConcurrencyFindMany struct { +type workflowTriggersToEventsFindMany struct { query builder.Query } -func (r workflowVersionToConcurrencyFindMany) getQuery() builder.Query { +func (r workflowTriggersToEventsFindMany) getQuery() builder.Query { return r.query } -func (r workflowVersionToConcurrencyFindMany) ExtractQuery() builder.Query { +func (r workflowTriggersToEventsFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToConcurrencyFindMany) with() {} -func (r workflowVersionToConcurrencyFindMany) workflowVersionModel() {} -func (r workflowVersionToConcurrencyFindMany) workflowVersionRelation() {} +func (r workflowTriggersToEventsFindMany) with() {} +func (r workflowTriggersToEventsFindMany) workflowTriggersModel() {} +func (r workflowTriggersToEventsFindMany) workflowTriggersRelation() {} -func (r workflowVersionToConcurrencyFindMany) With(params ...WorkflowConcurrencyRelationWith) workflowVersionToConcurrencyFindMany { +func (r workflowTriggersToEventsFindMany) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggersToEventsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -280745,7 +305556,7 @@ func (r workflowVersionToConcurrencyFindMany) With(params ...WorkflowConcurrency return r } -func (r workflowVersionToConcurrencyFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindMany { +func (r workflowTriggersToEventsFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindMany { var outputs []builder.Output for _, param := range params { @@ -280759,7 +305570,7 @@ func (r workflowVersionToConcurrencyFindMany) Select(params ...workflowVersionPr return r } -func (r workflowVersionToConcurrencyFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToConcurrencyFindMany { +func (r workflowTriggersToEventsFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindMany { var outputs []builder.Output var raw []string @@ -280767,7 +305578,7 @@ func (r workflowVersionToConcurrencyFindMany) Omit(params ...workflowVersionPris raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -280778,7 +305589,7 @@ func (r workflowVersionToConcurrencyFindMany) Omit(params ...workflowVersionPris return r } -func (r workflowVersionToConcurrencyFindMany) OrderBy(params ...WorkflowConcurrencyOrderByParam) workflowVersionToConcurrencyFindMany { +func (r workflowTriggersToEventsFindMany) OrderBy(params ...WorkflowTriggerEventRefOrderByParam) workflowTriggersToEventsFindMany { var fields []builder.Field for _, param := range params { @@ -280798,7 +305609,7 @@ func (r workflowVersionToConcurrencyFindMany) OrderBy(params ...WorkflowConcurre return r } -func (r workflowVersionToConcurrencyFindMany) Skip(count int) workflowVersionToConcurrencyFindMany { +func (r workflowTriggersToEventsFindMany) Skip(count int) workflowTriggersToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -280806,7 +305617,7 @@ func (r workflowVersionToConcurrencyFindMany) Skip(count int) workflowVersionToC return r } -func (r workflowVersionToConcurrencyFindMany) Take(count int) workflowVersionToConcurrencyFindMany { +func (r workflowTriggersToEventsFindMany) Take(count int) workflowTriggersToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -280814,7 +305625,7 @@ func (r workflowVersionToConcurrencyFindMany) Take(count int) workflowVersionToC return r } -func (r workflowVersionToConcurrencyFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToConcurrencyFindMany { +func (r workflowTriggersToEventsFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -280822,11 +305633,11 @@ func (r workflowVersionToConcurrencyFindMany) Cursor(cursor WorkflowVersionCurso return r } -func (r workflowVersionToConcurrencyFindMany) Exec(ctx context.Context) ( - []WorkflowVersionModel, +func (r workflowTriggersToEventsFindMany) Exec(ctx context.Context) ( + []WorkflowTriggersModel, error, ) { - var v []WorkflowVersionModel + var v []WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280834,11 +305645,11 @@ func (r workflowVersionToConcurrencyFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToConcurrencyFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowVersion, +func (r workflowTriggersToEventsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggers, error, ) { - var v []InnerWorkflowVersion + var v []InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -280846,14 +305657,14 @@ func (r workflowVersionToConcurrencyFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToConcurrencyFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToConcurrencyUpdateMany { +func (r workflowTriggersToEventsFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersToEventsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" r.query.Outputs = countOutput - var v workflowVersionToConcurrencyUpdateMany + var v workflowTriggersToEventsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -280882,17 +305693,17 @@ func (r workflowVersionToConcurrencyFindMany) Update(params ...WorkflowVersionSe return v } -type workflowVersionToConcurrencyUpdateMany struct { +type workflowTriggersToEventsUpdateMany struct { query builder.Query } -func (r workflowVersionToConcurrencyUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggersToEventsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToConcurrencyUpdateMany) workflowVersionModel() {} +func (r workflowTriggersToEventsUpdateMany) workflowTriggersModel() {} -func (r workflowVersionToConcurrencyUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersToEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -280900,36 +305711,36 @@ func (r workflowVersionToConcurrencyUpdateMany) Exec(ctx context.Context) (*Batc return &v, nil } -func (r workflowVersionToConcurrencyUpdateMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersToEventsUpdateMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToConcurrencyFindMany) Delete() workflowVersionToConcurrencyDeleteMany { - var v workflowVersionToConcurrencyDeleteMany +func (r workflowTriggersToEventsFindMany) Delete() workflowTriggersToEventsDeleteMany { + var v workflowTriggersToEventsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" v.query.Outputs = countOutput return v } -type workflowVersionToConcurrencyDeleteMany struct { +type workflowTriggersToEventsDeleteMany struct { query builder.Query } -func (r workflowVersionToConcurrencyDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggersToEventsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToConcurrencyDeleteMany) workflowVersionModel() {} +func (p workflowTriggersToEventsDeleteMany) workflowTriggersModel() {} -func (r workflowVersionToConcurrencyDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersToEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -280937,30 +305748,30 @@ func (r workflowVersionToConcurrencyDeleteMany) Exec(ctx context.Context) (*Batc return &v, nil } -func (r workflowVersionToConcurrencyDeleteMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersToEventsDeleteMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToJobsFindUnique struct { +type workflowTriggersToCronsFindUnique struct { query builder.Query } -func (r workflowVersionToJobsFindUnique) getQuery() builder.Query { +func (r workflowTriggersToCronsFindUnique) getQuery() builder.Query { return r.query } -func (r workflowVersionToJobsFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToCronsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToJobsFindUnique) with() {} -func (r workflowVersionToJobsFindUnique) workflowVersionModel() {} -func (r workflowVersionToJobsFindUnique) workflowVersionRelation() {} +func (r workflowTriggersToCronsFindUnique) with() {} +func (r workflowTriggersToCronsFindUnique) workflowTriggersModel() {} +func (r workflowTriggersToCronsFindUnique) workflowTriggersRelation() {} -func (r workflowVersionToJobsFindUnique) With(params ...JobRelationWith) workflowVersionToJobsFindUnique { +func (r workflowTriggersToCronsFindUnique) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggersToCronsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -280973,7 +305784,7 @@ func (r workflowVersionToJobsFindUnique) With(params ...JobRelationWith) workflo return r } -func (r workflowVersionToJobsFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToJobsFindUnique { +func (r workflowTriggersToCronsFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindUnique { var outputs []builder.Output for _, param := range params { @@ -280987,7 +305798,7 @@ func (r workflowVersionToJobsFindUnique) Select(params ...workflowVersionPrismaF return r } -func (r workflowVersionToJobsFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToJobsFindUnique { +func (r workflowTriggersToCronsFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindUnique { var outputs []builder.Output var raw []string @@ -280995,7 +305806,7 @@ func (r workflowVersionToJobsFindUnique) Omit(params ...workflowVersionPrismaFie raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -281006,11 +305817,11 @@ func (r workflowVersionToJobsFindUnique) Omit(params ...workflowVersionPrismaFie return r } -func (r workflowVersionToJobsFindUnique) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersToCronsFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281022,11 +305833,11 @@ func (r workflowVersionToJobsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToJobsFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersToCronsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281038,12 +305849,12 @@ func (r workflowVersionToJobsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToJobsFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToJobsUpdateUnique { +func (r workflowTriggersToCronsFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersToCronsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" - var v workflowVersionToJobsUpdateUnique + var v workflowTriggersToCronsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -281072,83 +305883,83 @@ func (r workflowVersionToJobsFindUnique) Update(params ...WorkflowVersionSetPara return v } -type workflowVersionToJobsUpdateUnique struct { +type workflowTriggersToCronsUpdateUnique struct { query builder.Query } -func (r workflowVersionToJobsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToCronsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToJobsUpdateUnique) workflowVersionModel() {} +func (r workflowTriggersToCronsUpdateUnique) workflowTriggersModel() {} -func (r workflowVersionToJobsUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersToCronsUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToJobsUpdateUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersToCronsUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToJobsFindUnique) Delete() workflowVersionToJobsDeleteUnique { - var v workflowVersionToJobsDeleteUnique +func (r workflowTriggersToCronsFindUnique) Delete() workflowTriggersToCronsDeleteUnique { + var v workflowTriggersToCronsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" return v } -type workflowVersionToJobsDeleteUnique struct { +type workflowTriggersToCronsDeleteUnique struct { query builder.Query } -func (r workflowVersionToJobsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggersToCronsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToJobsDeleteUnique) workflowVersionModel() {} +func (p workflowTriggersToCronsDeleteUnique) workflowTriggersModel() {} -func (r workflowVersionToJobsDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersToCronsDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToJobsDeleteUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersToCronsDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToJobsFindFirst struct { +type workflowTriggersToCronsFindFirst struct { query builder.Query } -func (r workflowVersionToJobsFindFirst) getQuery() builder.Query { +func (r workflowTriggersToCronsFindFirst) getQuery() builder.Query { return r.query } -func (r workflowVersionToJobsFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggersToCronsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToJobsFindFirst) with() {} -func (r workflowVersionToJobsFindFirst) workflowVersionModel() {} -func (r workflowVersionToJobsFindFirst) workflowVersionRelation() {} +func (r workflowTriggersToCronsFindFirst) with() {} +func (r workflowTriggersToCronsFindFirst) workflowTriggersModel() {} +func (r workflowTriggersToCronsFindFirst) workflowTriggersRelation() {} -func (r workflowVersionToJobsFindFirst) With(params ...JobRelationWith) workflowVersionToJobsFindFirst { +func (r workflowTriggersToCronsFindFirst) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggersToCronsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -281161,7 +305972,7 @@ func (r workflowVersionToJobsFindFirst) With(params ...JobRelationWith) workflow return r } -func (r workflowVersionToJobsFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToJobsFindFirst { +func (r workflowTriggersToCronsFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindFirst { var outputs []builder.Output for _, param := range params { @@ -281175,7 +305986,7 @@ func (r workflowVersionToJobsFindFirst) Select(params ...workflowVersionPrismaFi return r } -func (r workflowVersionToJobsFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToJobsFindFirst { +func (r workflowTriggersToCronsFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindFirst { var outputs []builder.Output var raw []string @@ -281183,7 +305994,7 @@ func (r workflowVersionToJobsFindFirst) Omit(params ...workflowVersionPrismaFiel raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -281194,7 +306005,7 @@ func (r workflowVersionToJobsFindFirst) Omit(params ...workflowVersionPrismaFiel return r } -func (r workflowVersionToJobsFindFirst) OrderBy(params ...JobOrderByParam) workflowVersionToJobsFindFirst { +func (r workflowTriggersToCronsFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowTriggersToCronsFindFirst { var fields []builder.Field for _, param := range params { @@ -281214,7 +306025,7 @@ func (r workflowVersionToJobsFindFirst) OrderBy(params ...JobOrderByParam) workf return r } -func (r workflowVersionToJobsFindFirst) Skip(count int) workflowVersionToJobsFindFirst { +func (r workflowTriggersToCronsFindFirst) Skip(count int) workflowTriggersToCronsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -281222,7 +306033,7 @@ func (r workflowVersionToJobsFindFirst) Skip(count int) workflowVersionToJobsFin return r } -func (r workflowVersionToJobsFindFirst) Take(count int) workflowVersionToJobsFindFirst { +func (r workflowTriggersToCronsFindFirst) Take(count int) workflowTriggersToCronsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -281230,7 +306041,7 @@ func (r workflowVersionToJobsFindFirst) Take(count int) workflowVersionToJobsFin return r } -func (r workflowVersionToJobsFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToJobsFindFirst { +func (r workflowTriggersToCronsFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToCronsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -281238,11 +306049,11 @@ func (r workflowVersionToJobsFindFirst) Cursor(cursor WorkflowVersionCursorParam return r } -func (r workflowVersionToJobsFindFirst) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersToCronsFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281254,11 +306065,11 @@ func (r workflowVersionToJobsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToJobsFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersToCronsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281270,23 +306081,23 @@ func (r workflowVersionToJobsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowVersionToJobsFindMany struct { +type workflowTriggersToCronsFindMany struct { query builder.Query } -func (r workflowVersionToJobsFindMany) getQuery() builder.Query { +func (r workflowTriggersToCronsFindMany) getQuery() builder.Query { return r.query } -func (r workflowVersionToJobsFindMany) ExtractQuery() builder.Query { +func (r workflowTriggersToCronsFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToJobsFindMany) with() {} -func (r workflowVersionToJobsFindMany) workflowVersionModel() {} -func (r workflowVersionToJobsFindMany) workflowVersionRelation() {} +func (r workflowTriggersToCronsFindMany) with() {} +func (r workflowTriggersToCronsFindMany) workflowTriggersModel() {} +func (r workflowTriggersToCronsFindMany) workflowTriggersRelation() {} -func (r workflowVersionToJobsFindMany) With(params ...JobRelationWith) workflowVersionToJobsFindMany { +func (r workflowTriggersToCronsFindMany) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggersToCronsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -281299,7 +306110,7 @@ func (r workflowVersionToJobsFindMany) With(params ...JobRelationWith) workflowV return r } -func (r workflowVersionToJobsFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToJobsFindMany { +func (r workflowTriggersToCronsFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindMany { var outputs []builder.Output for _, param := range params { @@ -281313,7 +306124,7 @@ func (r workflowVersionToJobsFindMany) Select(params ...workflowVersionPrismaFie return r } -func (r workflowVersionToJobsFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToJobsFindMany { +func (r workflowTriggersToCronsFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindMany { var outputs []builder.Output var raw []string @@ -281321,7 +306132,7 @@ func (r workflowVersionToJobsFindMany) Omit(params ...workflowVersionPrismaField raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -281332,7 +306143,7 @@ func (r workflowVersionToJobsFindMany) Omit(params ...workflowVersionPrismaField return r } -func (r workflowVersionToJobsFindMany) OrderBy(params ...JobOrderByParam) workflowVersionToJobsFindMany { +func (r workflowTriggersToCronsFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowTriggersToCronsFindMany { var fields []builder.Field for _, param := range params { @@ -281352,7 +306163,7 @@ func (r workflowVersionToJobsFindMany) OrderBy(params ...JobOrderByParam) workfl return r } -func (r workflowVersionToJobsFindMany) Skip(count int) workflowVersionToJobsFindMany { +func (r workflowTriggersToCronsFindMany) Skip(count int) workflowTriggersToCronsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -281360,7 +306171,7 @@ func (r workflowVersionToJobsFindMany) Skip(count int) workflowVersionToJobsFind return r } -func (r workflowVersionToJobsFindMany) Take(count int) workflowVersionToJobsFindMany { +func (r workflowTriggersToCronsFindMany) Take(count int) workflowTriggersToCronsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -281368,7 +306179,7 @@ func (r workflowVersionToJobsFindMany) Take(count int) workflowVersionToJobsFind return r } -func (r workflowVersionToJobsFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToJobsFindMany { +func (r workflowTriggersToCronsFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToCronsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -281376,11 +306187,11 @@ func (r workflowVersionToJobsFindMany) Cursor(cursor WorkflowVersionCursorParam) return r } -func (r workflowVersionToJobsFindMany) Exec(ctx context.Context) ( - []WorkflowVersionModel, +func (r workflowTriggersToCronsFindMany) Exec(ctx context.Context) ( + []WorkflowTriggersModel, error, ) { - var v []WorkflowVersionModel + var v []WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281388,11 +306199,11 @@ func (r workflowVersionToJobsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToJobsFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowVersion, +func (r workflowTriggersToCronsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggers, error, ) { - var v []InnerWorkflowVersion + var v []InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281400,14 +306211,14 @@ func (r workflowVersionToJobsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToJobsFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToJobsUpdateMany { +func (r workflowTriggersToCronsFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersToCronsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" r.query.Outputs = countOutput - var v workflowVersionToJobsUpdateMany + var v workflowTriggersToCronsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -281436,17 +306247,17 @@ func (r workflowVersionToJobsFindMany) Update(params ...WorkflowVersionSetParam) return v } -type workflowVersionToJobsUpdateMany struct { +type workflowTriggersToCronsUpdateMany struct { query builder.Query } -func (r workflowVersionToJobsUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggersToCronsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToJobsUpdateMany) workflowVersionModel() {} +func (r workflowTriggersToCronsUpdateMany) workflowTriggersModel() {} -func (r workflowVersionToJobsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersToCronsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -281454,36 +306265,36 @@ func (r workflowVersionToJobsUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r workflowVersionToJobsUpdateMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersToCronsUpdateMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToJobsFindMany) Delete() workflowVersionToJobsDeleteMany { - var v workflowVersionToJobsDeleteMany +func (r workflowTriggersToCronsFindMany) Delete() workflowTriggersToCronsDeleteMany { + var v workflowTriggersToCronsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" v.query.Outputs = countOutput return v } -type workflowVersionToJobsDeleteMany struct { +type workflowTriggersToCronsDeleteMany struct { query builder.Query } -func (r workflowVersionToJobsDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggersToCronsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToJobsDeleteMany) workflowVersionModel() {} +func (p workflowTriggersToCronsDeleteMany) workflowTriggersModel() {} -func (r workflowVersionToJobsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersToCronsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -281491,30 +306302,52 @@ func (r workflowVersionToJobsDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r workflowVersionToJobsDeleteMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersToCronsDeleteMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToOnFailureJobFindUnique struct { +type workflowTriggersFindUnique struct { query builder.Query } -func (r workflowVersionToOnFailureJobFindUnique) getQuery() builder.Query { +func (r workflowTriggersFindUnique) getQuery() builder.Query { return r.query } -func (r workflowVersionToOnFailureJobFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToOnFailureJobFindUnique) with() {} -func (r workflowVersionToOnFailureJobFindUnique) workflowVersionModel() {} -func (r workflowVersionToOnFailureJobFindUnique) workflowVersionRelation() {} +func (r workflowTriggersFindUnique) with() {} +func (r workflowTriggersFindUnique) workflowTriggersModel() {} +func (r workflowTriggersFindUnique) workflowTriggersRelation() {} -func (r workflowVersionToOnFailureJobFindUnique) With(params ...JobRelationWith) workflowVersionToOnFailureJobFindUnique { +func (r workflowTriggersActions) FindUnique( + params WorkflowTriggersEqualsUniqueWhereParam, +) workflowTriggersFindUnique { + var v workflowTriggersFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkflowTriggers" + v.query.Outputs = workflowTriggersOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowTriggersFindUnique) With(params ...WorkflowTriggersRelationWith) workflowTriggersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -281527,7 +306360,7 @@ func (r workflowVersionToOnFailureJobFindUnique) With(params ...JobRelationWith) return r } -func (r workflowVersionToOnFailureJobFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindUnique { +func (r workflowTriggersFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersFindUnique { var outputs []builder.Output for _, param := range params { @@ -281541,7 +306374,7 @@ func (r workflowVersionToOnFailureJobFindUnique) Select(params ...workflowVersio return r } -func (r workflowVersionToOnFailureJobFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindUnique { +func (r workflowTriggersFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersFindUnique { var outputs []builder.Output var raw []string @@ -281549,7 +306382,7 @@ func (r workflowVersionToOnFailureJobFindUnique) Omit(params ...workflowVersionP raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -281560,11 +306393,11 @@ func (r workflowVersionToOnFailureJobFindUnique) Omit(params ...workflowVersionP return r } -func (r workflowVersionToOnFailureJobFindUnique) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281576,11 +306409,11 @@ func (r workflowVersionToOnFailureJobFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToOnFailureJobFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281592,12 +306425,12 @@ func (r workflowVersionToOnFailureJobFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r workflowVersionToOnFailureJobFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToOnFailureJobUpdateUnique { +func (r workflowTriggersFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" - var v workflowVersionToOnFailureJobUpdateUnique + var v workflowTriggersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -281626,83 +306459,120 @@ func (r workflowVersionToOnFailureJobFindUnique) Update(params ...WorkflowVersio return v } -type workflowVersionToOnFailureJobUpdateUnique struct { +type workflowTriggersUpdateUnique struct { query builder.Query } -func (r workflowVersionToOnFailureJobUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToOnFailureJobUpdateUnique) workflowVersionModel() {} +func (r workflowTriggersUpdateUnique) workflowTriggersModel() {} -func (r workflowVersionToOnFailureJobUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToOnFailureJobUpdateUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToOnFailureJobFindUnique) Delete() workflowVersionToOnFailureJobDeleteUnique { - var v workflowVersionToOnFailureJobDeleteUnique +func (r workflowTriggersFindUnique) Delete() workflowTriggersDeleteUnique { + var v workflowTriggersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" return v } -type workflowVersionToOnFailureJobDeleteUnique struct { +type workflowTriggersDeleteUnique struct { query builder.Query } -func (r workflowVersionToOnFailureJobDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToOnFailureJobDeleteUnique) workflowVersionModel() {} +func (p workflowTriggersDeleteUnique) workflowTriggersModel() {} -func (r workflowVersionToOnFailureJobDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggersDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { + var v WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToOnFailureJobDeleteUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggersDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { + v := newWorkflowTriggersUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToOnFailureJobFindFirst struct { +type workflowTriggersFindFirst struct { query builder.Query } -func (r workflowVersionToOnFailureJobFindFirst) getQuery() builder.Query { +func (r workflowTriggersFindFirst) getQuery() builder.Query { return r.query } -func (r workflowVersionToOnFailureJobFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToOnFailureJobFindFirst) with() {} -func (r workflowVersionToOnFailureJobFindFirst) workflowVersionModel() {} -func (r workflowVersionToOnFailureJobFindFirst) workflowVersionRelation() {} +func (r workflowTriggersFindFirst) with() {} +func (r workflowTriggersFindFirst) workflowTriggersModel() {} +func (r workflowTriggersFindFirst) workflowTriggersRelation() {} -func (r workflowVersionToOnFailureJobFindFirst) With(params ...JobRelationWith) workflowVersionToOnFailureJobFindFirst { +func (r workflowTriggersActions) FindFirst( + params ...WorkflowTriggersWhereParam, +) workflowTriggersFindFirst { + var v workflowTriggersFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkflowTriggers" + v.query.Outputs = workflowTriggersOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowTriggersFindFirst) With(params ...WorkflowTriggersRelationWith) workflowTriggersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -281715,7 +306585,7 @@ func (r workflowVersionToOnFailureJobFindFirst) With(params ...JobRelationWith) return r } -func (r workflowVersionToOnFailureJobFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindFirst { +func (r workflowTriggersFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersFindFirst { var outputs []builder.Output for _, param := range params { @@ -281729,7 +306599,7 @@ func (r workflowVersionToOnFailureJobFindFirst) Select(params ...workflowVersion return r } -func (r workflowVersionToOnFailureJobFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindFirst { +func (r workflowTriggersFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersFindFirst { var outputs []builder.Output var raw []string @@ -281737,7 +306607,7 @@ func (r workflowVersionToOnFailureJobFindFirst) Omit(params ...workflowVersionPr raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -281748,7 +306618,7 @@ func (r workflowVersionToOnFailureJobFindFirst) Omit(params ...workflowVersionPr return r } -func (r workflowVersionToOnFailureJobFindFirst) OrderBy(params ...JobOrderByParam) workflowVersionToOnFailureJobFindFirst { +func (r workflowTriggersFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggersFindFirst { var fields []builder.Field for _, param := range params { @@ -281768,7 +306638,7 @@ func (r workflowVersionToOnFailureJobFindFirst) OrderBy(params ...JobOrderByPara return r } -func (r workflowVersionToOnFailureJobFindFirst) Skip(count int) workflowVersionToOnFailureJobFindFirst { +func (r workflowTriggersFindFirst) Skip(count int) workflowTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -281776,7 +306646,7 @@ func (r workflowVersionToOnFailureJobFindFirst) Skip(count int) workflowVersionT return r } -func (r workflowVersionToOnFailureJobFindFirst) Take(count int) workflowVersionToOnFailureJobFindFirst { +func (r workflowTriggersFindFirst) Take(count int) workflowTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -281784,7 +306654,7 @@ func (r workflowVersionToOnFailureJobFindFirst) Take(count int) workflowVersionT return r } -func (r workflowVersionToOnFailureJobFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToOnFailureJobFindFirst { +func (r workflowTriggersFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -281792,11 +306662,11 @@ func (r workflowVersionToOnFailureJobFindFirst) Cursor(cursor WorkflowVersionCur return r } -func (r workflowVersionToOnFailureJobFindFirst) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggersFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggersModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281808,11 +306678,11 @@ func (r workflowVersionToOnFailureJobFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToOnFailureJobFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggersFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggers, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281824,23 +306694,60 @@ func (r workflowVersionToOnFailureJobFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowVersionToOnFailureJobFindMany struct { +type workflowTriggersFindMany struct { query builder.Query } -func (r workflowVersionToOnFailureJobFindMany) getQuery() builder.Query { +func (r workflowTriggersFindMany) getQuery() builder.Query { return r.query } -func (r workflowVersionToOnFailureJobFindMany) ExtractQuery() builder.Query { +func (r workflowTriggersFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToOnFailureJobFindMany) with() {} -func (r workflowVersionToOnFailureJobFindMany) workflowVersionModel() {} -func (r workflowVersionToOnFailureJobFindMany) workflowVersionRelation() {} +func (r workflowTriggersFindMany) with() {} +func (r workflowTriggersFindMany) workflowTriggersModel() {} +func (r workflowTriggersFindMany) workflowTriggersRelation() {} -func (r workflowVersionToOnFailureJobFindMany) With(params ...JobRelationWith) workflowVersionToOnFailureJobFindMany { +func (r workflowTriggersActions) FindMany( + params ...WorkflowTriggersWhereParam, +) workflowTriggersFindMany { + var v workflowTriggersFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkflowTriggers" + v.query.Outputs = workflowTriggersOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowTriggersFindMany) With(params ...WorkflowTriggersRelationWith) workflowTriggersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -281853,7 +306760,7 @@ func (r workflowVersionToOnFailureJobFindMany) With(params ...JobRelationWith) w return r } -func (r workflowVersionToOnFailureJobFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindMany { +func (r workflowTriggersFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersFindMany { var outputs []builder.Output for _, param := range params { @@ -281867,7 +306774,7 @@ func (r workflowVersionToOnFailureJobFindMany) Select(params ...workflowVersionP return r } -func (r workflowVersionToOnFailureJobFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToOnFailureJobFindMany { +func (r workflowTriggersFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersFindMany { var outputs []builder.Output var raw []string @@ -281875,7 +306782,7 @@ func (r workflowVersionToOnFailureJobFindMany) Omit(params ...workflowVersionPri raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggersOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -281886,7 +306793,7 @@ func (r workflowVersionToOnFailureJobFindMany) Omit(params ...workflowVersionPri return r } -func (r workflowVersionToOnFailureJobFindMany) OrderBy(params ...JobOrderByParam) workflowVersionToOnFailureJobFindMany { +func (r workflowTriggersFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggersFindMany { var fields []builder.Field for _, param := range params { @@ -281906,7 +306813,7 @@ func (r workflowVersionToOnFailureJobFindMany) OrderBy(params ...JobOrderByParam return r } -func (r workflowVersionToOnFailureJobFindMany) Skip(count int) workflowVersionToOnFailureJobFindMany { +func (r workflowTriggersFindMany) Skip(count int) workflowTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -281914,7 +306821,7 @@ func (r workflowVersionToOnFailureJobFindMany) Skip(count int) workflowVersionTo return r } -func (r workflowVersionToOnFailureJobFindMany) Take(count int) workflowVersionToOnFailureJobFindMany { +func (r workflowTriggersFindMany) Take(count int) workflowTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -281922,7 +306829,7 @@ func (r workflowVersionToOnFailureJobFindMany) Take(count int) workflowVersionTo return r } -func (r workflowVersionToOnFailureJobFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToOnFailureJobFindMany { +func (r workflowTriggersFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -281930,11 +306837,11 @@ func (r workflowVersionToOnFailureJobFindMany) Cursor(cursor WorkflowVersionCurs return r } -func (r workflowVersionToOnFailureJobFindMany) Exec(ctx context.Context) ( - []WorkflowVersionModel, +func (r workflowTriggersFindMany) Exec(ctx context.Context) ( + []WorkflowTriggersModel, error, ) { - var v []WorkflowVersionModel + var v []WorkflowTriggersModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281942,11 +306849,11 @@ func (r workflowVersionToOnFailureJobFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToOnFailureJobFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowVersion, +func (r workflowTriggersFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggers, error, ) { - var v []InnerWorkflowVersion + var v []InnerWorkflowTriggers if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -281954,14 +306861,14 @@ func (r workflowVersionToOnFailureJobFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToOnFailureJobFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToOnFailureJobUpdateMany { +func (r workflowTriggersFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggers" r.query.Outputs = countOutput - var v workflowVersionToOnFailureJobUpdateMany + var v workflowTriggersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -281990,17 +306897,17 @@ func (r workflowVersionToOnFailureJobFindMany) Update(params ...WorkflowVersionS return v } -type workflowVersionToOnFailureJobUpdateMany struct { +type workflowTriggersUpdateMany struct { query builder.Query } -func (r workflowVersionToOnFailureJobUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToOnFailureJobUpdateMany) workflowVersionModel() {} +func (r workflowTriggersUpdateMany) workflowTriggersModel() {} -func (r workflowVersionToOnFailureJobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -282008,36 +306915,36 @@ func (r workflowVersionToOnFailureJobUpdateMany) Exec(ctx context.Context) (*Bat return &v, nil } -func (r workflowVersionToOnFailureJobUpdateMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersUpdateMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToOnFailureJobFindMany) Delete() workflowVersionToOnFailureJobDeleteMany { - var v workflowVersionToOnFailureJobDeleteMany +func (r workflowTriggersFindMany) Delete() workflowTriggersDeleteMany { + var v workflowTriggersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggers" v.query.Outputs = countOutput return v } -type workflowVersionToOnFailureJobDeleteMany struct { +type workflowTriggersDeleteMany struct { query builder.Query } -func (r workflowVersionToOnFailureJobDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToOnFailureJobDeleteMany) workflowVersionModel() {} +func (p workflowTriggersDeleteMany) workflowTriggersModel() {} -func (r workflowVersionToOnFailureJobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -282045,30 +306952,30 @@ func (r workflowVersionToOnFailureJobDeleteMany) Exec(ctx context.Context) (*Bat return &v, nil } -func (r workflowVersionToOnFailureJobDeleteMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggersDeleteMany) Tx() WorkflowTriggersManyTxResult { + v := newWorkflowTriggersManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToRunsFindUnique struct { +type workflowTriggerEventRefToParentFindUnique struct { query builder.Query } -func (r workflowVersionToRunsFindUnique) getQuery() builder.Query { +func (r workflowTriggerEventRefToParentFindUnique) getQuery() builder.Query { return r.query } -func (r workflowVersionToRunsFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefToParentFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToRunsFindUnique) with() {} -func (r workflowVersionToRunsFindUnique) workflowVersionModel() {} -func (r workflowVersionToRunsFindUnique) workflowVersionRelation() {} +func (r workflowTriggerEventRefToParentFindUnique) with() {} +func (r workflowTriggerEventRefToParentFindUnique) workflowTriggerEventRefModel() {} +func (r workflowTriggerEventRefToParentFindUnique) workflowTriggerEventRefRelation() {} -func (r workflowVersionToRunsFindUnique) With(params ...WorkflowRunRelationWith) workflowVersionToRunsFindUnique { +func (r workflowTriggerEventRefToParentFindUnique) With(params ...WorkflowTriggersRelationWith) workflowTriggerEventRefToParentFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -282081,7 +306988,7 @@ func (r workflowVersionToRunsFindUnique) With(params ...WorkflowRunRelationWith) return r } -func (r workflowVersionToRunsFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToRunsFindUnique { +func (r workflowTriggerEventRefToParentFindUnique) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindUnique { var outputs []builder.Output for _, param := range params { @@ -282095,7 +307002,7 @@ func (r workflowVersionToRunsFindUnique) Select(params ...workflowVersionPrismaF return r } -func (r workflowVersionToRunsFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToRunsFindUnique { +func (r workflowTriggerEventRefToParentFindUnique) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindUnique { var outputs []builder.Output var raw []string @@ -282103,7 +307010,7 @@ func (r workflowVersionToRunsFindUnique) Omit(params ...workflowVersionPrismaFie raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerEventRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -282114,11 +307021,11 @@ func (r workflowVersionToRunsFindUnique) Omit(params ...workflowVersionPrismaFie return r } -func (r workflowVersionToRunsFindUnique) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggerEventRefToParentFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerEventRefModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282130,11 +307037,11 @@ func (r workflowVersionToRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToRunsFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggerEventRefToParentFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerEventRef, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggerEventRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282146,12 +307053,12 @@ func (r workflowVersionToRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToRunsFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToRunsUpdateUnique { +func (r workflowTriggerEventRefToParentFindUnique) Update(params ...WorkflowTriggerEventRefSetParam) workflowTriggerEventRefToParentUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggerEventRef" - var v workflowVersionToRunsUpdateUnique + var v workflowTriggerEventRefToParentUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -282180,83 +307087,83 @@ func (r workflowVersionToRunsFindUnique) Update(params ...WorkflowVersionSetPara return v } -type workflowVersionToRunsUpdateUnique struct { +type workflowTriggerEventRefToParentUpdateUnique struct { query builder.Query } -func (r workflowVersionToRunsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefToParentUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToRunsUpdateUnique) workflowVersionModel() {} +func (r workflowTriggerEventRefToParentUpdateUnique) workflowTriggerEventRefModel() {} -func (r workflowVersionToRunsUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggerEventRefToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { + var v WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToRunsUpdateUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggerEventRefToParentUpdateUnique) Tx() WorkflowTriggerEventRefUniqueTxResult { + v := newWorkflowTriggerEventRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToRunsFindUnique) Delete() workflowVersionToRunsDeleteUnique { - var v workflowVersionToRunsDeleteUnique +func (r workflowTriggerEventRefToParentFindUnique) Delete() workflowTriggerEventRefToParentDeleteUnique { + var v workflowTriggerEventRefToParentDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggerEventRef" return v } -type workflowVersionToRunsDeleteUnique struct { +type workflowTriggerEventRefToParentDeleteUnique struct { query builder.Query } -func (r workflowVersionToRunsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefToParentDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToRunsDeleteUnique) workflowVersionModel() {} +func (p workflowTriggerEventRefToParentDeleteUnique) workflowTriggerEventRefModel() {} -func (r workflowVersionToRunsDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggerEventRefToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { + var v WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToRunsDeleteUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggerEventRefToParentDeleteUnique) Tx() WorkflowTriggerEventRefUniqueTxResult { + v := newWorkflowTriggerEventRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToRunsFindFirst struct { +type workflowTriggerEventRefToParentFindFirst struct { query builder.Query } -func (r workflowVersionToRunsFindFirst) getQuery() builder.Query { +func (r workflowTriggerEventRefToParentFindFirst) getQuery() builder.Query { return r.query } -func (r workflowVersionToRunsFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefToParentFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToRunsFindFirst) with() {} -func (r workflowVersionToRunsFindFirst) workflowVersionModel() {} -func (r workflowVersionToRunsFindFirst) workflowVersionRelation() {} +func (r workflowTriggerEventRefToParentFindFirst) with() {} +func (r workflowTriggerEventRefToParentFindFirst) workflowTriggerEventRefModel() {} +func (r workflowTriggerEventRefToParentFindFirst) workflowTriggerEventRefRelation() {} -func (r workflowVersionToRunsFindFirst) With(params ...WorkflowRunRelationWith) workflowVersionToRunsFindFirst { +func (r workflowTriggerEventRefToParentFindFirst) With(params ...WorkflowTriggersRelationWith) workflowTriggerEventRefToParentFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -282269,7 +307176,7 @@ func (r workflowVersionToRunsFindFirst) With(params ...WorkflowRunRelationWith) return r } -func (r workflowVersionToRunsFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToRunsFindFirst { +func (r workflowTriggerEventRefToParentFindFirst) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindFirst { var outputs []builder.Output for _, param := range params { @@ -282283,7 +307190,7 @@ func (r workflowVersionToRunsFindFirst) Select(params ...workflowVersionPrismaFi return r } -func (r workflowVersionToRunsFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToRunsFindFirst { +func (r workflowTriggerEventRefToParentFindFirst) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindFirst { var outputs []builder.Output var raw []string @@ -282291,7 +307198,7 @@ func (r workflowVersionToRunsFindFirst) Omit(params ...workflowVersionPrismaFiel raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerEventRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -282302,7 +307209,7 @@ func (r workflowVersionToRunsFindFirst) Omit(params ...workflowVersionPrismaFiel return r } -func (r workflowVersionToRunsFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowVersionToRunsFindFirst { +func (r workflowTriggerEventRefToParentFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggerEventRefToParentFindFirst { var fields []builder.Field for _, param := range params { @@ -282322,7 +307229,7 @@ func (r workflowVersionToRunsFindFirst) OrderBy(params ...WorkflowRunOrderByPara return r } -func (r workflowVersionToRunsFindFirst) Skip(count int) workflowVersionToRunsFindFirst { +func (r workflowTriggerEventRefToParentFindFirst) Skip(count int) workflowTriggerEventRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -282330,7 +307237,7 @@ func (r workflowVersionToRunsFindFirst) Skip(count int) workflowVersionToRunsFin return r } -func (r workflowVersionToRunsFindFirst) Take(count int) workflowVersionToRunsFindFirst { +func (r workflowTriggerEventRefToParentFindFirst) Take(count int) workflowTriggerEventRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -282338,7 +307245,7 @@ func (r workflowVersionToRunsFindFirst) Take(count int) workflowVersionToRunsFin return r } -func (r workflowVersionToRunsFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToRunsFindFirst { +func (r workflowTriggerEventRefToParentFindFirst) Cursor(cursor WorkflowTriggerEventRefCursorParam) workflowTriggerEventRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -282346,11 +307253,11 @@ func (r workflowVersionToRunsFindFirst) Cursor(cursor WorkflowVersionCursorParam return r } -func (r workflowVersionToRunsFindFirst) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggerEventRefToParentFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerEventRefModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282362,11 +307269,11 @@ func (r workflowVersionToRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToRunsFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggerEventRefToParentFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerEventRef, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggerEventRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282378,23 +307285,23 @@ func (r workflowVersionToRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowVersionToRunsFindMany struct { +type workflowTriggerEventRefToParentFindMany struct { query builder.Query } -func (r workflowVersionToRunsFindMany) getQuery() builder.Query { +func (r workflowTriggerEventRefToParentFindMany) getQuery() builder.Query { return r.query } -func (r workflowVersionToRunsFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefToParentFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToRunsFindMany) with() {} -func (r workflowVersionToRunsFindMany) workflowVersionModel() {} -func (r workflowVersionToRunsFindMany) workflowVersionRelation() {} +func (r workflowTriggerEventRefToParentFindMany) with() {} +func (r workflowTriggerEventRefToParentFindMany) workflowTriggerEventRefModel() {} +func (r workflowTriggerEventRefToParentFindMany) workflowTriggerEventRefRelation() {} -func (r workflowVersionToRunsFindMany) With(params ...WorkflowRunRelationWith) workflowVersionToRunsFindMany { +func (r workflowTriggerEventRefToParentFindMany) With(params ...WorkflowTriggersRelationWith) workflowTriggerEventRefToParentFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -282407,7 +307314,7 @@ func (r workflowVersionToRunsFindMany) With(params ...WorkflowRunRelationWith) w return r } -func (r workflowVersionToRunsFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToRunsFindMany { +func (r workflowTriggerEventRefToParentFindMany) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindMany { var outputs []builder.Output for _, param := range params { @@ -282421,7 +307328,7 @@ func (r workflowVersionToRunsFindMany) Select(params ...workflowVersionPrismaFie return r } -func (r workflowVersionToRunsFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToRunsFindMany { +func (r workflowTriggerEventRefToParentFindMany) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindMany { var outputs []builder.Output var raw []string @@ -282429,7 +307336,7 @@ func (r workflowVersionToRunsFindMany) Omit(params ...workflowVersionPrismaField raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerEventRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -282440,7 +307347,7 @@ func (r workflowVersionToRunsFindMany) Omit(params ...workflowVersionPrismaField return r } -func (r workflowVersionToRunsFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowVersionToRunsFindMany { +func (r workflowTriggerEventRefToParentFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggerEventRefToParentFindMany { var fields []builder.Field for _, param := range params { @@ -282460,7 +307367,7 @@ func (r workflowVersionToRunsFindMany) OrderBy(params ...WorkflowRunOrderByParam return r } -func (r workflowVersionToRunsFindMany) Skip(count int) workflowVersionToRunsFindMany { +func (r workflowTriggerEventRefToParentFindMany) Skip(count int) workflowTriggerEventRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -282468,7 +307375,7 @@ func (r workflowVersionToRunsFindMany) Skip(count int) workflowVersionToRunsFind return r } -func (r workflowVersionToRunsFindMany) Take(count int) workflowVersionToRunsFindMany { +func (r workflowTriggerEventRefToParentFindMany) Take(count int) workflowTriggerEventRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -282476,7 +307383,7 @@ func (r workflowVersionToRunsFindMany) Take(count int) workflowVersionToRunsFind return r } -func (r workflowVersionToRunsFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToRunsFindMany { +func (r workflowTriggerEventRefToParentFindMany) Cursor(cursor WorkflowTriggerEventRefCursorParam) workflowTriggerEventRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -282484,11 +307391,11 @@ func (r workflowVersionToRunsFindMany) Cursor(cursor WorkflowVersionCursorParam) return r } -func (r workflowVersionToRunsFindMany) Exec(ctx context.Context) ( - []WorkflowVersionModel, +func (r workflowTriggerEventRefToParentFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerEventRefModel, error, ) { - var v []WorkflowVersionModel + var v []WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282496,11 +307403,11 @@ func (r workflowVersionToRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToRunsFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowVersion, +func (r workflowTriggerEventRefToParentFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerEventRef, error, ) { - var v []InnerWorkflowVersion + var v []InnerWorkflowTriggerEventRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282508,14 +307415,14 @@ func (r workflowVersionToRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToRunsFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToRunsUpdateMany { +func (r workflowTriggerEventRefToParentFindMany) Update(params ...WorkflowTriggerEventRefSetParam) workflowTriggerEventRefToParentUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggerEventRef" r.query.Outputs = countOutput - var v workflowVersionToRunsUpdateMany + var v workflowTriggerEventRefToParentUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -282544,17 +307451,17 @@ func (r workflowVersionToRunsFindMany) Update(params ...WorkflowVersionSetParam) return v } -type workflowVersionToRunsUpdateMany struct { +type workflowTriggerEventRefToParentUpdateMany struct { query builder.Query } -func (r workflowVersionToRunsUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefToParentUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToRunsUpdateMany) workflowVersionModel() {} +func (r workflowTriggerEventRefToParentUpdateMany) workflowTriggerEventRefModel() {} -func (r workflowVersionToRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerEventRefToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -282562,36 +307469,36 @@ func (r workflowVersionToRunsUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r workflowVersionToRunsUpdateMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggerEventRefToParentUpdateMany) Tx() WorkflowTriggerEventRefManyTxResult { + v := newWorkflowTriggerEventRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToRunsFindMany) Delete() workflowVersionToRunsDeleteMany { - var v workflowVersionToRunsDeleteMany +func (r workflowTriggerEventRefToParentFindMany) Delete() workflowTriggerEventRefToParentDeleteMany { + var v workflowTriggerEventRefToParentDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggerEventRef" v.query.Outputs = countOutput return v } -type workflowVersionToRunsDeleteMany struct { +type workflowTriggerEventRefToParentDeleteMany struct { query builder.Query } -func (r workflowVersionToRunsDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefToParentDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToRunsDeleteMany) workflowVersionModel() {} +func (p workflowTriggerEventRefToParentDeleteMany) workflowTriggerEventRefModel() {} -func (r workflowVersionToRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerEventRefToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -282599,30 +307506,52 @@ func (r workflowVersionToRunsDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r workflowVersionToRunsDeleteMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggerEventRefToParentDeleteMany) Tx() WorkflowTriggerEventRefManyTxResult { + v := newWorkflowTriggerEventRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToScheduledFindUnique struct { +type workflowTriggerEventRefFindUnique struct { query builder.Query } -func (r workflowVersionToScheduledFindUnique) getQuery() builder.Query { +func (r workflowTriggerEventRefFindUnique) getQuery() builder.Query { return r.query } -func (r workflowVersionToScheduledFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToScheduledFindUnique) with() {} -func (r workflowVersionToScheduledFindUnique) workflowVersionModel() {} -func (r workflowVersionToScheduledFindUnique) workflowVersionRelation() {} +func (r workflowTriggerEventRefFindUnique) with() {} +func (r workflowTriggerEventRefFindUnique) workflowTriggerEventRefModel() {} +func (r workflowTriggerEventRefFindUnique) workflowTriggerEventRefRelation() {} -func (r workflowVersionToScheduledFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowVersionToScheduledFindUnique { +func (r workflowTriggerEventRefActions) FindUnique( + params WorkflowTriggerEventRefEqualsUniqueWhereParam, +) workflowTriggerEventRefFindUnique { + var v workflowTriggerEventRefFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkflowTriggerEventRef" + v.query.Outputs = workflowTriggerEventRefOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowTriggerEventRefFindUnique) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggerEventRefFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -282635,7 +307564,7 @@ func (r workflowVersionToScheduledFindUnique) With(params ...WorkflowTriggerSche return r } -func (r workflowVersionToScheduledFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindUnique { +func (r workflowTriggerEventRefFindUnique) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindUnique { var outputs []builder.Output for _, param := range params { @@ -282649,7 +307578,7 @@ func (r workflowVersionToScheduledFindUnique) Select(params ...workflowVersionPr return r } -func (r workflowVersionToScheduledFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindUnique { +func (r workflowTriggerEventRefFindUnique) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindUnique { var outputs []builder.Output var raw []string @@ -282657,7 +307586,7 @@ func (r workflowVersionToScheduledFindUnique) Omit(params ...workflowVersionPris raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerEventRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -282668,11 +307597,11 @@ func (r workflowVersionToScheduledFindUnique) Omit(params ...workflowVersionPris return r } -func (r workflowVersionToScheduledFindUnique) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggerEventRefFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerEventRefModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282684,11 +307613,11 @@ func (r workflowVersionToScheduledFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToScheduledFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggerEventRefFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerEventRef, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggerEventRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282700,12 +307629,12 @@ func (r workflowVersionToScheduledFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToScheduledFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionToScheduledUpdateUnique { +func (r workflowTriggerEventRefFindUnique) Update(params ...WorkflowTriggerEventRefSetParam) workflowTriggerEventRefUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggerEventRef" - var v workflowVersionToScheduledUpdateUnique + var v workflowTriggerEventRefUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -282734,83 +307663,120 @@ func (r workflowVersionToScheduledFindUnique) Update(params ...WorkflowVersionSe return v } -type workflowVersionToScheduledUpdateUnique struct { +type workflowTriggerEventRefUpdateUnique struct { query builder.Query } -func (r workflowVersionToScheduledUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToScheduledUpdateUnique) workflowVersionModel() {} +func (r workflowTriggerEventRefUpdateUnique) workflowTriggerEventRefModel() {} -func (r workflowVersionToScheduledUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggerEventRefUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { + var v WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToScheduledUpdateUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggerEventRefUpdateUnique) Tx() WorkflowTriggerEventRefUniqueTxResult { + v := newWorkflowTriggerEventRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToScheduledFindUnique) Delete() workflowVersionToScheduledDeleteUnique { - var v workflowVersionToScheduledDeleteUnique +func (r workflowTriggerEventRefFindUnique) Delete() workflowTriggerEventRefDeleteUnique { + var v workflowTriggerEventRefDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggerEventRef" return v } -type workflowVersionToScheduledDeleteUnique struct { +type workflowTriggerEventRefDeleteUnique struct { query builder.Query } -func (r workflowVersionToScheduledDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToScheduledDeleteUnique) workflowVersionModel() {} +func (p workflowTriggerEventRefDeleteUnique) workflowTriggerEventRefModel() {} -func (r workflowVersionToScheduledDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggerEventRefDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { + var v WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionToScheduledDeleteUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggerEventRefDeleteUnique) Tx() WorkflowTriggerEventRefUniqueTxResult { + v := newWorkflowTriggerEventRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionToScheduledFindFirst struct { +type workflowTriggerEventRefFindFirst struct { query builder.Query } -func (r workflowVersionToScheduledFindFirst) getQuery() builder.Query { +func (r workflowTriggerEventRefFindFirst) getQuery() builder.Query { return r.query } -func (r workflowVersionToScheduledFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToScheduledFindFirst) with() {} -func (r workflowVersionToScheduledFindFirst) workflowVersionModel() {} -func (r workflowVersionToScheduledFindFirst) workflowVersionRelation() {} +func (r workflowTriggerEventRefFindFirst) with() {} +func (r workflowTriggerEventRefFindFirst) workflowTriggerEventRefModel() {} +func (r workflowTriggerEventRefFindFirst) workflowTriggerEventRefRelation() {} -func (r workflowVersionToScheduledFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowVersionToScheduledFindFirst { +func (r workflowTriggerEventRefActions) FindFirst( + params ...WorkflowTriggerEventRefWhereParam, +) workflowTriggerEventRefFindFirst { + var v workflowTriggerEventRefFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkflowTriggerEventRef" + v.query.Outputs = workflowTriggerEventRefOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowTriggerEventRefFindFirst) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggerEventRefFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -282823,7 +307789,7 @@ func (r workflowVersionToScheduledFindFirst) With(params ...WorkflowTriggerSched return r } -func (r workflowVersionToScheduledFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindFirst { +func (r workflowTriggerEventRefFindFirst) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindFirst { var outputs []builder.Output for _, param := range params { @@ -282837,7 +307803,7 @@ func (r workflowVersionToScheduledFindFirst) Select(params ...workflowVersionPri return r } -func (r workflowVersionToScheduledFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindFirst { +func (r workflowTriggerEventRefFindFirst) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindFirst { var outputs []builder.Output var raw []string @@ -282845,7 +307811,7 @@ func (r workflowVersionToScheduledFindFirst) Omit(params ...workflowVersionPrism raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerEventRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -282856,7 +307822,7 @@ func (r workflowVersionToScheduledFindFirst) Omit(params ...workflowVersionPrism return r } -func (r workflowVersionToScheduledFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowVersionToScheduledFindFirst { +func (r workflowTriggerEventRefFindFirst) OrderBy(params ...WorkflowTriggerEventRefOrderByParam) workflowTriggerEventRefFindFirst { var fields []builder.Field for _, param := range params { @@ -282876,7 +307842,7 @@ func (r workflowVersionToScheduledFindFirst) OrderBy(params ...WorkflowTriggerSc return r } -func (r workflowVersionToScheduledFindFirst) Skip(count int) workflowVersionToScheduledFindFirst { +func (r workflowTriggerEventRefFindFirst) Skip(count int) workflowTriggerEventRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -282884,7 +307850,7 @@ func (r workflowVersionToScheduledFindFirst) Skip(count int) workflowVersionToSc return r } -func (r workflowVersionToScheduledFindFirst) Take(count int) workflowVersionToScheduledFindFirst { +func (r workflowTriggerEventRefFindFirst) Take(count int) workflowTriggerEventRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -282892,7 +307858,7 @@ func (r workflowVersionToScheduledFindFirst) Take(count int) workflowVersionToSc return r } -func (r workflowVersionToScheduledFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToScheduledFindFirst { +func (r workflowTriggerEventRefFindFirst) Cursor(cursor WorkflowTriggerEventRefCursorParam) workflowTriggerEventRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -282900,11 +307866,11 @@ func (r workflowVersionToScheduledFindFirst) Cursor(cursor WorkflowVersionCursor return r } -func (r workflowVersionToScheduledFindFirst) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggerEventRefFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerEventRefModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282916,11 +307882,11 @@ func (r workflowVersionToScheduledFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToScheduledFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggerEventRefFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerEventRef, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggerEventRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -282932,23 +307898,60 @@ func (r workflowVersionToScheduledFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowVersionToScheduledFindMany struct { +type workflowTriggerEventRefFindMany struct { query builder.Query } -func (r workflowVersionToScheduledFindMany) getQuery() builder.Query { +func (r workflowTriggerEventRefFindMany) getQuery() builder.Query { return r.query } -func (r workflowVersionToScheduledFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToScheduledFindMany) with() {} -func (r workflowVersionToScheduledFindMany) workflowVersionModel() {} -func (r workflowVersionToScheduledFindMany) workflowVersionRelation() {} +func (r workflowTriggerEventRefFindMany) with() {} +func (r workflowTriggerEventRefFindMany) workflowTriggerEventRefModel() {} +func (r workflowTriggerEventRefFindMany) workflowTriggerEventRefRelation() {} -func (r workflowVersionToScheduledFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowVersionToScheduledFindMany { +func (r workflowTriggerEventRefActions) FindMany( + params ...WorkflowTriggerEventRefWhereParam, +) workflowTriggerEventRefFindMany { + var v workflowTriggerEventRefFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkflowTriggerEventRef" + v.query.Outputs = workflowTriggerEventRefOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowTriggerEventRefFindMany) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggerEventRefFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -282961,7 +307964,7 @@ func (r workflowVersionToScheduledFindMany) With(params ...WorkflowTriggerSchedu return r } -func (r workflowVersionToScheduledFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindMany { +func (r workflowTriggerEventRefFindMany) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindMany { var outputs []builder.Output for _, param := range params { @@ -282975,7 +307978,7 @@ func (r workflowVersionToScheduledFindMany) Select(params ...workflowVersionPris return r } -func (r workflowVersionToScheduledFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionToScheduledFindMany { +func (r workflowTriggerEventRefFindMany) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindMany { var outputs []builder.Output var raw []string @@ -282983,7 +307986,7 @@ func (r workflowVersionToScheduledFindMany) Omit(params ...workflowVersionPrisma raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerEventRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -282994,7 +307997,7 @@ func (r workflowVersionToScheduledFindMany) Omit(params ...workflowVersionPrisma return r } -func (r workflowVersionToScheduledFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowVersionToScheduledFindMany { +func (r workflowTriggerEventRefFindMany) OrderBy(params ...WorkflowTriggerEventRefOrderByParam) workflowTriggerEventRefFindMany { var fields []builder.Field for _, param := range params { @@ -283014,7 +308017,7 @@ func (r workflowVersionToScheduledFindMany) OrderBy(params ...WorkflowTriggerSch return r } -func (r workflowVersionToScheduledFindMany) Skip(count int) workflowVersionToScheduledFindMany { +func (r workflowTriggerEventRefFindMany) Skip(count int) workflowTriggerEventRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -283022,7 +308025,7 @@ func (r workflowVersionToScheduledFindMany) Skip(count int) workflowVersionToSch return r } -func (r workflowVersionToScheduledFindMany) Take(count int) workflowVersionToScheduledFindMany { +func (r workflowTriggerEventRefFindMany) Take(count int) workflowTriggerEventRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -283030,7 +308033,7 @@ func (r workflowVersionToScheduledFindMany) Take(count int) workflowVersionToSch return r } -func (r workflowVersionToScheduledFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionToScheduledFindMany { +func (r workflowTriggerEventRefFindMany) Cursor(cursor WorkflowTriggerEventRefCursorParam) workflowTriggerEventRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -283038,11 +308041,11 @@ func (r workflowVersionToScheduledFindMany) Cursor(cursor WorkflowVersionCursorP return r } -func (r workflowVersionToScheduledFindMany) Exec(ctx context.Context) ( - []WorkflowVersionModel, +func (r workflowTriggerEventRefFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerEventRefModel, error, ) { - var v []WorkflowVersionModel + var v []WorkflowTriggerEventRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283050,11 +308053,11 @@ func (r workflowVersionToScheduledFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionToScheduledFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowVersion, +func (r workflowTriggerEventRefFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerEventRef, error, ) { - var v []InnerWorkflowVersion + var v []InnerWorkflowTriggerEventRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283062,14 +308065,14 @@ func (r workflowVersionToScheduledFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionToScheduledFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionToScheduledUpdateMany { +func (r workflowTriggerEventRefFindMany) Update(params ...WorkflowTriggerEventRefSetParam) workflowTriggerEventRefUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggerEventRef" r.query.Outputs = countOutput - var v workflowVersionToScheduledUpdateMany + var v workflowTriggerEventRefUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -283098,17 +308101,17 @@ func (r workflowVersionToScheduledFindMany) Update(params ...WorkflowVersionSetP return v } -type workflowVersionToScheduledUpdateMany struct { +type workflowTriggerEventRefUpdateMany struct { query builder.Query } -func (r workflowVersionToScheduledUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionToScheduledUpdateMany) workflowVersionModel() {} +func (r workflowTriggerEventRefUpdateMany) workflowTriggerEventRefModel() {} -func (r workflowVersionToScheduledUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerEventRefUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -283116,36 +308119,36 @@ func (r workflowVersionToScheduledUpdateMany) Exec(ctx context.Context) (*BatchR return &v, nil } -func (r workflowVersionToScheduledUpdateMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggerEventRefUpdateMany) Tx() WorkflowTriggerEventRefManyTxResult { + v := newWorkflowTriggerEventRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionToScheduledFindMany) Delete() workflowVersionToScheduledDeleteMany { - var v workflowVersionToScheduledDeleteMany +func (r workflowTriggerEventRefFindMany) Delete() workflowTriggerEventRefDeleteMany { + var v workflowTriggerEventRefDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggerEventRef" v.query.Outputs = countOutput return v } -type workflowVersionToScheduledDeleteMany struct { +type workflowTriggerEventRefDeleteMany struct { query builder.Query } -func (r workflowVersionToScheduledDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerEventRefDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionToScheduledDeleteMany) workflowVersionModel() {} +func (p workflowTriggerEventRefDeleteMany) workflowTriggerEventRefModel() {} -func (r workflowVersionToScheduledDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerEventRefDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -283153,52 +308156,30 @@ func (r workflowVersionToScheduledDeleteMany) Exec(ctx context.Context) (*BatchR return &v, nil } -func (r workflowVersionToScheduledDeleteMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggerEventRefDeleteMany) Tx() WorkflowTriggerEventRefManyTxResult { + v := newWorkflowTriggerEventRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionFindUnique struct { +type workflowTriggerCronRefToParentFindUnique struct { query builder.Query } -func (r workflowVersionFindUnique) getQuery() builder.Query { +func (r workflowTriggerCronRefToParentFindUnique) getQuery() builder.Query { return r.query } -func (r workflowVersionFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToParentFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionFindUnique) with() {} -func (r workflowVersionFindUnique) workflowVersionModel() {} -func (r workflowVersionFindUnique) workflowVersionRelation() {} - -func (r workflowVersionActions) FindUnique( - params WorkflowVersionEqualsUniqueWhereParam, -) workflowVersionFindUnique { - var v workflowVersionFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WorkflowVersion" - v.query.Outputs = workflowVersionOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowTriggerCronRefToParentFindUnique) with() {} +func (r workflowTriggerCronRefToParentFindUnique) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToParentFindUnique) workflowTriggerCronRefRelation() {} -func (r workflowVersionFindUnique) With(params ...WorkflowVersionRelationWith) workflowVersionFindUnique { +func (r workflowTriggerCronRefToParentFindUnique) With(params ...WorkflowTriggersRelationWith) workflowTriggerCronRefToParentFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -283211,7 +308192,7 @@ func (r workflowVersionFindUnique) With(params ...WorkflowVersionRelationWith) w return r } -func (r workflowVersionFindUnique) Select(params ...workflowVersionPrismaFields) workflowVersionFindUnique { +func (r workflowTriggerCronRefToParentFindUnique) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindUnique { var outputs []builder.Output for _, param := range params { @@ -283225,7 +308206,7 @@ func (r workflowVersionFindUnique) Select(params ...workflowVersionPrismaFields) return r } -func (r workflowVersionFindUnique) Omit(params ...workflowVersionPrismaFields) workflowVersionFindUnique { +func (r workflowTriggerCronRefToParentFindUnique) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindUnique { var outputs []builder.Output var raw []string @@ -283233,7 +308214,7 @@ func (r workflowVersionFindUnique) Omit(params ...workflowVersionPrismaFields) w raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -283244,11 +308225,11 @@ func (r workflowVersionFindUnique) Omit(params ...workflowVersionPrismaFields) w return r } -func (r workflowVersionFindUnique) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggerCronRefToParentFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerCronRefModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283260,11 +308241,11 @@ func (r workflowVersionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggerCronRefToParentFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerCronRef, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283276,12 +308257,12 @@ func (r workflowVersionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionFindUnique) Update(params ...WorkflowVersionSetParam) workflowVersionUpdateUnique { +func (r workflowTriggerCronRefToParentFindUnique) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToParentUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggerCronRef" - var v workflowVersionUpdateUnique + var v workflowTriggerCronRefToParentUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -283310,120 +308291,83 @@ func (r workflowVersionFindUnique) Update(params ...WorkflowVersionSetParam) wor return v } -type workflowVersionUpdateUnique struct { +type workflowTriggerCronRefToParentUpdateUnique struct { query builder.Query } -func (r workflowVersionUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToParentUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionUpdateUnique) workflowVersionModel() {} +func (r workflowTriggerCronRefToParentUpdateUnique) workflowTriggerCronRefModel() {} -func (r workflowVersionUpdateUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggerCronRefToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionUpdateUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggerCronRefToParentUpdateUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionFindUnique) Delete() workflowVersionDeleteUnique { - var v workflowVersionDeleteUnique +func (r workflowTriggerCronRefToParentFindUnique) Delete() workflowTriggerCronRefToParentDeleteUnique { + var v workflowTriggerCronRefToParentDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggerCronRef" return v } -type workflowVersionDeleteUnique struct { +type workflowTriggerCronRefToParentDeleteUnique struct { query builder.Query } -func (r workflowVersionDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToParentDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionDeleteUnique) workflowVersionModel() {} +func (p workflowTriggerCronRefToParentDeleteUnique) workflowTriggerCronRefModel() {} -func (r workflowVersionDeleteUnique) Exec(ctx context.Context) (*WorkflowVersionModel, error) { - var v WorkflowVersionModel +func (r workflowTriggerCronRefToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowVersionDeleteUnique) Tx() WorkflowVersionUniqueTxResult { - v := newWorkflowVersionUniqueTxResult() +func (r workflowTriggerCronRefToParentDeleteUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowVersionFindFirst struct { +type workflowTriggerCronRefToParentFindFirst struct { query builder.Query } -func (r workflowVersionFindFirst) getQuery() builder.Query { +func (r workflowTriggerCronRefToParentFindFirst) getQuery() builder.Query { return r.query } -func (r workflowVersionFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToParentFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionFindFirst) with() {} -func (r workflowVersionFindFirst) workflowVersionModel() {} -func (r workflowVersionFindFirst) workflowVersionRelation() {} - -func (r workflowVersionActions) FindFirst( - params ...WorkflowVersionWhereParam, -) workflowVersionFindFirst { - var v workflowVersionFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WorkflowVersion" - v.query.Outputs = workflowVersionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowTriggerCronRefToParentFindFirst) with() {} +func (r workflowTriggerCronRefToParentFindFirst) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToParentFindFirst) workflowTriggerCronRefRelation() {} -func (r workflowVersionFindFirst) With(params ...WorkflowVersionRelationWith) workflowVersionFindFirst { +func (r workflowTriggerCronRefToParentFindFirst) With(params ...WorkflowTriggersRelationWith) workflowTriggerCronRefToParentFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -283436,7 +308380,7 @@ func (r workflowVersionFindFirst) With(params ...WorkflowVersionRelationWith) wo return r } -func (r workflowVersionFindFirst) Select(params ...workflowVersionPrismaFields) workflowVersionFindFirst { +func (r workflowTriggerCronRefToParentFindFirst) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindFirst { var outputs []builder.Output for _, param := range params { @@ -283450,7 +308394,7 @@ func (r workflowVersionFindFirst) Select(params ...workflowVersionPrismaFields) return r } -func (r workflowVersionFindFirst) Omit(params ...workflowVersionPrismaFields) workflowVersionFindFirst { +func (r workflowTriggerCronRefToParentFindFirst) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindFirst { var outputs []builder.Output var raw []string @@ -283458,7 +308402,7 @@ func (r workflowVersionFindFirst) Omit(params ...workflowVersionPrismaFields) wo raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -283469,7 +308413,7 @@ func (r workflowVersionFindFirst) Omit(params ...workflowVersionPrismaFields) wo return r } -func (r workflowVersionFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowVersionFindFirst { +func (r workflowTriggerCronRefToParentFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggerCronRefToParentFindFirst { var fields []builder.Field for _, param := range params { @@ -283489,7 +308433,7 @@ func (r workflowVersionFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) return r } -func (r workflowVersionFindFirst) Skip(count int) workflowVersionFindFirst { +func (r workflowTriggerCronRefToParentFindFirst) Skip(count int) workflowTriggerCronRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -283497,7 +308441,7 @@ func (r workflowVersionFindFirst) Skip(count int) workflowVersionFindFirst { return r } -func (r workflowVersionFindFirst) Take(count int) workflowVersionFindFirst { +func (r workflowTriggerCronRefToParentFindFirst) Take(count int) workflowTriggerCronRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -283505,7 +308449,7 @@ func (r workflowVersionFindFirst) Take(count int) workflowVersionFindFirst { return r } -func (r workflowVersionFindFirst) Cursor(cursor WorkflowVersionCursorParam) workflowVersionFindFirst { +func (r workflowTriggerCronRefToParentFindFirst) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -283513,11 +308457,11 @@ func (r workflowVersionFindFirst) Cursor(cursor WorkflowVersionCursorParam) work return r } -func (r workflowVersionFindFirst) Exec(ctx context.Context) ( - *WorkflowVersionModel, +func (r workflowTriggerCronRefToParentFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerCronRefModel, error, ) { - var v *WorkflowVersionModel + var v *WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283529,11 +308473,11 @@ func (r workflowVersionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowVersion, +func (r workflowTriggerCronRefToParentFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerCronRef, error, ) { - var v *InnerWorkflowVersion + var v *InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283545,60 +308489,23 @@ func (r workflowVersionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowVersionFindMany struct { +type workflowTriggerCronRefToParentFindMany struct { query builder.Query } -func (r workflowVersionFindMany) getQuery() builder.Query { +func (r workflowTriggerCronRefToParentFindMany) getQuery() builder.Query { return r.query } -func (r workflowVersionFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToParentFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionFindMany) with() {} -func (r workflowVersionFindMany) workflowVersionModel() {} -func (r workflowVersionFindMany) workflowVersionRelation() {} - -func (r workflowVersionActions) FindMany( - params ...WorkflowVersionWhereParam, -) workflowVersionFindMany { - var v workflowVersionFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WorkflowVersion" - v.query.Outputs = workflowVersionOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowTriggerCronRefToParentFindMany) with() {} +func (r workflowTriggerCronRefToParentFindMany) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToParentFindMany) workflowTriggerCronRefRelation() {} -func (r workflowVersionFindMany) With(params ...WorkflowVersionRelationWith) workflowVersionFindMany { +func (r workflowTriggerCronRefToParentFindMany) With(params ...WorkflowTriggersRelationWith) workflowTriggerCronRefToParentFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -283611,7 +308518,7 @@ func (r workflowVersionFindMany) With(params ...WorkflowVersionRelationWith) wor return r } -func (r workflowVersionFindMany) Select(params ...workflowVersionPrismaFields) workflowVersionFindMany { +func (r workflowTriggerCronRefToParentFindMany) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindMany { var outputs []builder.Output for _, param := range params { @@ -283625,7 +308532,7 @@ func (r workflowVersionFindMany) Select(params ...workflowVersionPrismaFields) w return r } -func (r workflowVersionFindMany) Omit(params ...workflowVersionPrismaFields) workflowVersionFindMany { +func (r workflowTriggerCronRefToParentFindMany) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindMany { var outputs []builder.Output var raw []string @@ -283633,7 +308540,7 @@ func (r workflowVersionFindMany) Omit(params ...workflowVersionPrismaFields) wor raw = append(raw, string(param)) } - for _, output := range workflowVersionOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -283644,7 +308551,7 @@ func (r workflowVersionFindMany) Omit(params ...workflowVersionPrismaFields) wor return r } -func (r workflowVersionFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowVersionFindMany { +func (r workflowTriggerCronRefToParentFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggerCronRefToParentFindMany { var fields []builder.Field for _, param := range params { @@ -283664,7 +308571,7 @@ func (r workflowVersionFindMany) OrderBy(params ...WorkflowVersionOrderByParam) return r } -func (r workflowVersionFindMany) Skip(count int) workflowVersionFindMany { +func (r workflowTriggerCronRefToParentFindMany) Skip(count int) workflowTriggerCronRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -283672,7 +308579,7 @@ func (r workflowVersionFindMany) Skip(count int) workflowVersionFindMany { return r } -func (r workflowVersionFindMany) Take(count int) workflowVersionFindMany { +func (r workflowTriggerCronRefToParentFindMany) Take(count int) workflowTriggerCronRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -283680,7 +308587,7 @@ func (r workflowVersionFindMany) Take(count int) workflowVersionFindMany { return r } -func (r workflowVersionFindMany) Cursor(cursor WorkflowVersionCursorParam) workflowVersionFindMany { +func (r workflowTriggerCronRefToParentFindMany) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -283688,11 +308595,11 @@ func (r workflowVersionFindMany) Cursor(cursor WorkflowVersionCursorParam) workf return r } -func (r workflowVersionFindMany) Exec(ctx context.Context) ( - []WorkflowVersionModel, +func (r workflowTriggerCronRefToParentFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerCronRefModel, error, ) { - var v []WorkflowVersionModel + var v []WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283700,11 +308607,11 @@ func (r workflowVersionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowVersionFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowVersion, +func (r workflowTriggerCronRefToParentFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerCronRef, error, ) { - var v []InnerWorkflowVersion + var v []InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283712,14 +308619,14 @@ func (r workflowVersionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowVersionFindMany) Update(params ...WorkflowVersionSetParam) workflowVersionUpdateMany { +func (r workflowTriggerCronRefToParentFindMany) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToParentUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowVersion" + r.query.Model = "WorkflowTriggerCronRef" r.query.Outputs = countOutput - var v workflowVersionUpdateMany + var v workflowTriggerCronRefToParentUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -283748,17 +308655,17 @@ func (r workflowVersionFindMany) Update(params ...WorkflowVersionSetParam) workf return v } -type workflowVersionUpdateMany struct { +type workflowTriggerCronRefToParentUpdateMany struct { query builder.Query } -func (r workflowVersionUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToParentUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowVersionUpdateMany) workflowVersionModel() {} +func (r workflowTriggerCronRefToParentUpdateMany) workflowTriggerCronRefModel() {} -func (r workflowVersionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerCronRefToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -283766,36 +308673,36 @@ func (r workflowVersionUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r workflowVersionUpdateMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggerCronRefToParentUpdateMany) Tx() WorkflowTriggerCronRefManyTxResult { + v := newWorkflowTriggerCronRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowVersionFindMany) Delete() workflowVersionDeleteMany { - var v workflowVersionDeleteMany +func (r workflowTriggerCronRefToParentFindMany) Delete() workflowTriggerCronRefToParentDeleteMany { + var v workflowTriggerCronRefToParentDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowVersion" + v.query.Model = "WorkflowTriggerCronRef" v.query.Outputs = countOutput return v } -type workflowVersionDeleteMany struct { +type workflowTriggerCronRefToParentDeleteMany struct { query builder.Query } -func (r workflowVersionDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToParentDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowVersionDeleteMany) workflowVersionModel() {} +func (p workflowTriggerCronRefToParentDeleteMany) workflowTriggerCronRefModel() {} -func (r workflowVersionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerCronRefToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -283803,30 +308710,30 @@ func (r workflowVersionDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r workflowVersionDeleteMany) Tx() WorkflowVersionManyTxResult { - v := newWorkflowVersionManyTxResult() +func (r workflowTriggerCronRefToParentDeleteMany) Tx() WorkflowTriggerCronRefManyTxResult { + v := newWorkflowTriggerCronRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowConcurrencyToWorkflowFindUnique struct { +type workflowTriggerCronRefToTickerFindUnique struct { query builder.Query } -func (r workflowConcurrencyToWorkflowFindUnique) getQuery() builder.Query { +func (r workflowTriggerCronRefToTickerFindUnique) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyToWorkflowFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTickerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToWorkflowFindUnique) with() {} -func (r workflowConcurrencyToWorkflowFindUnique) workflowConcurrencyModel() {} -func (r workflowConcurrencyToWorkflowFindUnique) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefToTickerFindUnique) with() {} +func (r workflowTriggerCronRefToTickerFindUnique) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToTickerFindUnique) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyToWorkflowFindUnique) With(params ...WorkflowVersionRelationWith) workflowConcurrencyToWorkflowFindUnique { +func (r workflowTriggerCronRefToTickerFindUnique) With(params ...TickerRelationWith) workflowTriggerCronRefToTickerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -283839,7 +308746,7 @@ func (r workflowConcurrencyToWorkflowFindUnique) With(params ...WorkflowVersionR return r } -func (r workflowConcurrencyToWorkflowFindUnique) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindUnique { +func (r workflowTriggerCronRefToTickerFindUnique) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindUnique { var outputs []builder.Output for _, param := range params { @@ -283853,7 +308760,7 @@ func (r workflowConcurrencyToWorkflowFindUnique) Select(params ...workflowConcur return r } -func (r workflowConcurrencyToWorkflowFindUnique) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindUnique { +func (r workflowTriggerCronRefToTickerFindUnique) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindUnique { var outputs []builder.Output var raw []string @@ -283861,7 +308768,7 @@ func (r workflowConcurrencyToWorkflowFindUnique) Omit(params ...workflowConcurre raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -283872,11 +308779,11 @@ func (r workflowConcurrencyToWorkflowFindUnique) Omit(params ...workflowConcurre return r } -func (r workflowConcurrencyToWorkflowFindUnique) Exec(ctx context.Context) ( - *WorkflowConcurrencyModel, +func (r workflowTriggerCronRefToTickerFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerCronRefModel, error, ) { - var v *WorkflowConcurrencyModel + var v *WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283888,11 +308795,11 @@ func (r workflowConcurrencyToWorkflowFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyToWorkflowFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowConcurrency, +func (r workflowTriggerCronRefToTickerFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerCronRef, error, ) { - var v *InnerWorkflowConcurrency + var v *InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -283904,12 +308811,12 @@ func (r workflowConcurrencyToWorkflowFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r workflowConcurrencyToWorkflowFindUnique) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyToWorkflowUpdateUnique { +func (r workflowTriggerCronRefToTickerFindUnique) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToTickerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowConcurrency" + r.query.Model = "WorkflowTriggerCronRef" - var v workflowConcurrencyToWorkflowUpdateUnique + var v workflowTriggerCronRefToTickerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -283938,83 +308845,83 @@ func (r workflowConcurrencyToWorkflowFindUnique) Update(params ...WorkflowConcur return v } -type workflowConcurrencyToWorkflowUpdateUnique struct { +type workflowTriggerCronRefToTickerUpdateUnique struct { query builder.Query } -func (r workflowConcurrencyToWorkflowUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTickerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToWorkflowUpdateUnique) workflowConcurrencyModel() {} +func (r workflowTriggerCronRefToTickerUpdateUnique) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyToWorkflowUpdateUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { - var v WorkflowConcurrencyModel +func (r workflowTriggerCronRefToTickerUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowConcurrencyToWorkflowUpdateUnique) Tx() WorkflowConcurrencyUniqueTxResult { - v := newWorkflowConcurrencyUniqueTxResult() +func (r workflowTriggerCronRefToTickerUpdateUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowConcurrencyToWorkflowFindUnique) Delete() workflowConcurrencyToWorkflowDeleteUnique { - var v workflowConcurrencyToWorkflowDeleteUnique +func (r workflowTriggerCronRefToTickerFindUnique) Delete() workflowTriggerCronRefToTickerDeleteUnique { + var v workflowTriggerCronRefToTickerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowConcurrency" + v.query.Model = "WorkflowTriggerCronRef" return v } -type workflowConcurrencyToWorkflowDeleteUnique struct { +type workflowTriggerCronRefToTickerDeleteUnique struct { query builder.Query } -func (r workflowConcurrencyToWorkflowDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTickerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowConcurrencyToWorkflowDeleteUnique) workflowConcurrencyModel() {} +func (p workflowTriggerCronRefToTickerDeleteUnique) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyToWorkflowDeleteUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { - var v WorkflowConcurrencyModel +func (r workflowTriggerCronRefToTickerDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowConcurrencyToWorkflowDeleteUnique) Tx() WorkflowConcurrencyUniqueTxResult { - v := newWorkflowConcurrencyUniqueTxResult() +func (r workflowTriggerCronRefToTickerDeleteUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowConcurrencyToWorkflowFindFirst struct { +type workflowTriggerCronRefToTickerFindFirst struct { query builder.Query } -func (r workflowConcurrencyToWorkflowFindFirst) getQuery() builder.Query { +func (r workflowTriggerCronRefToTickerFindFirst) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyToWorkflowFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTickerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToWorkflowFindFirst) with() {} -func (r workflowConcurrencyToWorkflowFindFirst) workflowConcurrencyModel() {} -func (r workflowConcurrencyToWorkflowFindFirst) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefToTickerFindFirst) with() {} +func (r workflowTriggerCronRefToTickerFindFirst) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToTickerFindFirst) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyToWorkflowFindFirst) With(params ...WorkflowVersionRelationWith) workflowConcurrencyToWorkflowFindFirst { +func (r workflowTriggerCronRefToTickerFindFirst) With(params ...TickerRelationWith) workflowTriggerCronRefToTickerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -284027,7 +308934,7 @@ func (r workflowConcurrencyToWorkflowFindFirst) With(params ...WorkflowVersionRe return r } -func (r workflowConcurrencyToWorkflowFindFirst) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindFirst { +func (r workflowTriggerCronRefToTickerFindFirst) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindFirst { var outputs []builder.Output for _, param := range params { @@ -284041,7 +308948,7 @@ func (r workflowConcurrencyToWorkflowFindFirst) Select(params ...workflowConcurr return r } -func (r workflowConcurrencyToWorkflowFindFirst) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindFirst { +func (r workflowTriggerCronRefToTickerFindFirst) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindFirst { var outputs []builder.Output var raw []string @@ -284049,7 +308956,7 @@ func (r workflowConcurrencyToWorkflowFindFirst) Omit(params ...workflowConcurren raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -284060,7 +308967,7 @@ func (r workflowConcurrencyToWorkflowFindFirst) Omit(params ...workflowConcurren return r } -func (r workflowConcurrencyToWorkflowFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowConcurrencyToWorkflowFindFirst { +func (r workflowTriggerCronRefToTickerFindFirst) OrderBy(params ...TickerOrderByParam) workflowTriggerCronRefToTickerFindFirst { var fields []builder.Field for _, param := range params { @@ -284080,7 +308987,7 @@ func (r workflowConcurrencyToWorkflowFindFirst) OrderBy(params ...WorkflowVersio return r } -func (r workflowConcurrencyToWorkflowFindFirst) Skip(count int) workflowConcurrencyToWorkflowFindFirst { +func (r workflowTriggerCronRefToTickerFindFirst) Skip(count int) workflowTriggerCronRefToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -284088,7 +308995,7 @@ func (r workflowConcurrencyToWorkflowFindFirst) Skip(count int) workflowConcurre return r } -func (r workflowConcurrencyToWorkflowFindFirst) Take(count int) workflowConcurrencyToWorkflowFindFirst { +func (r workflowTriggerCronRefToTickerFindFirst) Take(count int) workflowTriggerCronRefToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -284096,7 +309003,7 @@ func (r workflowConcurrencyToWorkflowFindFirst) Take(count int) workflowConcurre return r } -func (r workflowConcurrencyToWorkflowFindFirst) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyToWorkflowFindFirst { +func (r workflowTriggerCronRefToTickerFindFirst) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -284104,11 +309011,11 @@ func (r workflowConcurrencyToWorkflowFindFirst) Cursor(cursor WorkflowConcurrenc return r } -func (r workflowConcurrencyToWorkflowFindFirst) Exec(ctx context.Context) ( - *WorkflowConcurrencyModel, +func (r workflowTriggerCronRefToTickerFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerCronRefModel, error, ) { - var v *WorkflowConcurrencyModel + var v *WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284120,11 +309027,11 @@ func (r workflowConcurrencyToWorkflowFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyToWorkflowFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowConcurrency, +func (r workflowTriggerCronRefToTickerFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerCronRef, error, ) { - var v *InnerWorkflowConcurrency + var v *InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284136,23 +309043,23 @@ func (r workflowConcurrencyToWorkflowFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowConcurrencyToWorkflowFindMany struct { +type workflowTriggerCronRefToTickerFindMany struct { query builder.Query } -func (r workflowConcurrencyToWorkflowFindMany) getQuery() builder.Query { +func (r workflowTriggerCronRefToTickerFindMany) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyToWorkflowFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTickerFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToWorkflowFindMany) with() {} -func (r workflowConcurrencyToWorkflowFindMany) workflowConcurrencyModel() {} -func (r workflowConcurrencyToWorkflowFindMany) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefToTickerFindMany) with() {} +func (r workflowTriggerCronRefToTickerFindMany) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToTickerFindMany) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyToWorkflowFindMany) With(params ...WorkflowVersionRelationWith) workflowConcurrencyToWorkflowFindMany { +func (r workflowTriggerCronRefToTickerFindMany) With(params ...TickerRelationWith) workflowTriggerCronRefToTickerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -284165,7 +309072,7 @@ func (r workflowConcurrencyToWorkflowFindMany) With(params ...WorkflowVersionRel return r } -func (r workflowConcurrencyToWorkflowFindMany) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindMany { +func (r workflowTriggerCronRefToTickerFindMany) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindMany { var outputs []builder.Output for _, param := range params { @@ -284179,7 +309086,7 @@ func (r workflowConcurrencyToWorkflowFindMany) Select(params ...workflowConcurre return r } -func (r workflowConcurrencyToWorkflowFindMany) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToWorkflowFindMany { +func (r workflowTriggerCronRefToTickerFindMany) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindMany { var outputs []builder.Output var raw []string @@ -284187,7 +309094,7 @@ func (r workflowConcurrencyToWorkflowFindMany) Omit(params ...workflowConcurrenc raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -284198,7 +309105,7 @@ func (r workflowConcurrencyToWorkflowFindMany) Omit(params ...workflowConcurrenc return r } -func (r workflowConcurrencyToWorkflowFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowConcurrencyToWorkflowFindMany { +func (r workflowTriggerCronRefToTickerFindMany) OrderBy(params ...TickerOrderByParam) workflowTriggerCronRefToTickerFindMany { var fields []builder.Field for _, param := range params { @@ -284218,7 +309125,7 @@ func (r workflowConcurrencyToWorkflowFindMany) OrderBy(params ...WorkflowVersion return r } -func (r workflowConcurrencyToWorkflowFindMany) Skip(count int) workflowConcurrencyToWorkflowFindMany { +func (r workflowTriggerCronRefToTickerFindMany) Skip(count int) workflowTriggerCronRefToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -284226,7 +309133,7 @@ func (r workflowConcurrencyToWorkflowFindMany) Skip(count int) workflowConcurren return r } -func (r workflowConcurrencyToWorkflowFindMany) Take(count int) workflowConcurrencyToWorkflowFindMany { +func (r workflowTriggerCronRefToTickerFindMany) Take(count int) workflowTriggerCronRefToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -284234,7 +309141,7 @@ func (r workflowConcurrencyToWorkflowFindMany) Take(count int) workflowConcurren return r } -func (r workflowConcurrencyToWorkflowFindMany) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyToWorkflowFindMany { +func (r workflowTriggerCronRefToTickerFindMany) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -284242,11 +309149,11 @@ func (r workflowConcurrencyToWorkflowFindMany) Cursor(cursor WorkflowConcurrency return r } -func (r workflowConcurrencyToWorkflowFindMany) Exec(ctx context.Context) ( - []WorkflowConcurrencyModel, +func (r workflowTriggerCronRefToTickerFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerCronRefModel, error, ) { - var v []WorkflowConcurrencyModel + var v []WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284254,11 +309161,11 @@ func (r workflowConcurrencyToWorkflowFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyToWorkflowFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowConcurrency, +func (r workflowTriggerCronRefToTickerFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerCronRef, error, ) { - var v []InnerWorkflowConcurrency + var v []InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284266,14 +309173,14 @@ func (r workflowConcurrencyToWorkflowFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyToWorkflowFindMany) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyToWorkflowUpdateMany { +func (r workflowTriggerCronRefToTickerFindMany) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToTickerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowConcurrency" + r.query.Model = "WorkflowTriggerCronRef" r.query.Outputs = countOutput - var v workflowConcurrencyToWorkflowUpdateMany + var v workflowTriggerCronRefToTickerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -284302,17 +309209,17 @@ func (r workflowConcurrencyToWorkflowFindMany) Update(params ...WorkflowConcurre return v } -type workflowConcurrencyToWorkflowUpdateMany struct { +type workflowTriggerCronRefToTickerUpdateMany struct { query builder.Query } -func (r workflowConcurrencyToWorkflowUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTickerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToWorkflowUpdateMany) workflowConcurrencyModel() {} +func (r workflowTriggerCronRefToTickerUpdateMany) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerCronRefToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -284320,36 +309227,36 @@ func (r workflowConcurrencyToWorkflowUpdateMany) Exec(ctx context.Context) (*Bat return &v, nil } -func (r workflowConcurrencyToWorkflowUpdateMany) Tx() WorkflowConcurrencyManyTxResult { - v := newWorkflowConcurrencyManyTxResult() +func (r workflowTriggerCronRefToTickerUpdateMany) Tx() WorkflowTriggerCronRefManyTxResult { + v := newWorkflowTriggerCronRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowConcurrencyToWorkflowFindMany) Delete() workflowConcurrencyToWorkflowDeleteMany { - var v workflowConcurrencyToWorkflowDeleteMany +func (r workflowTriggerCronRefToTickerFindMany) Delete() workflowTriggerCronRefToTickerDeleteMany { + var v workflowTriggerCronRefToTickerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowConcurrency" + v.query.Model = "WorkflowTriggerCronRef" v.query.Outputs = countOutput return v } -type workflowConcurrencyToWorkflowDeleteMany struct { +type workflowTriggerCronRefToTickerDeleteMany struct { query builder.Query } -func (r workflowConcurrencyToWorkflowDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTickerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowConcurrencyToWorkflowDeleteMany) workflowConcurrencyModel() {} +func (p workflowTriggerCronRefToTickerDeleteMany) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerCronRefToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -284357,30 +309264,30 @@ func (r workflowConcurrencyToWorkflowDeleteMany) Exec(ctx context.Context) (*Bat return &v, nil } -func (r workflowConcurrencyToWorkflowDeleteMany) Tx() WorkflowConcurrencyManyTxResult { - v := newWorkflowConcurrencyManyTxResult() +func (r workflowTriggerCronRefToTickerDeleteMany) Tx() WorkflowTriggerCronRefManyTxResult { + v := newWorkflowTriggerCronRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowConcurrencyToGetConcurrencyGroupFindUnique struct { +type workflowTriggerCronRefToTriggeredFindUnique struct { query builder.Query } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) getQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredFindUnique) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) with() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) workflowConcurrencyModel() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefToTriggeredFindUnique) with() {} +func (r workflowTriggerCronRefToTriggeredFindUnique) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToTriggeredFindUnique) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) With(params ...ActionRelationWith) workflowConcurrencyToGetConcurrencyGroupFindUnique { +func (r workflowTriggerCronRefToTriggeredFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerCronRefToTriggeredFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -284393,7 +309300,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) With(params ...Actio return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindUnique { +func (r workflowTriggerCronRefToTriggeredFindUnique) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindUnique { var outputs []builder.Output for _, param := range params { @@ -284407,7 +309314,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Select(params ...wor return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindUnique { +func (r workflowTriggerCronRefToTriggeredFindUnique) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindUnique { var outputs []builder.Output var raw []string @@ -284415,7 +309322,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Omit(params ...workf raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -284426,11 +309333,11 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Omit(params ...workf return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Exec(ctx context.Context) ( - *WorkflowConcurrencyModel, +func (r workflowTriggerCronRefToTriggeredFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerCronRefModel, error, ) { - var v *WorkflowConcurrencyModel + var v *WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284442,11 +309349,11 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Exec(ctx context.Con return v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowConcurrency, +func (r workflowTriggerCronRefToTriggeredFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerCronRef, error, ) { - var v *InnerWorkflowConcurrency + var v *InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284458,12 +309365,12 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) ExecInner(ctx contex return v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyToGetConcurrencyGroupUpdateUnique { +func (r workflowTriggerCronRefToTriggeredFindUnique) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToTriggeredUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowConcurrency" + r.query.Model = "WorkflowTriggerCronRef" - var v workflowConcurrencyToGetConcurrencyGroupUpdateUnique + var v workflowTriggerCronRefToTriggeredUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -284492,83 +309399,83 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Update(params ...Wor return v } -type workflowConcurrencyToGetConcurrencyGroupUpdateUnique struct { +type workflowTriggerCronRefToTriggeredUpdateUnique struct { query builder.Query } -func (r workflowConcurrencyToGetConcurrencyGroupUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToGetConcurrencyGroupUpdateUnique) workflowConcurrencyModel() {} +func (r workflowTriggerCronRefToTriggeredUpdateUnique) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyToGetConcurrencyGroupUpdateUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { - var v WorkflowConcurrencyModel +func (r workflowTriggerCronRefToTriggeredUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupUpdateUnique) Tx() WorkflowConcurrencyUniqueTxResult { - v := newWorkflowConcurrencyUniqueTxResult() +func (r workflowTriggerCronRefToTriggeredUpdateUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowConcurrencyToGetConcurrencyGroupFindUnique) Delete() workflowConcurrencyToGetConcurrencyGroupDeleteUnique { - var v workflowConcurrencyToGetConcurrencyGroupDeleteUnique +func (r workflowTriggerCronRefToTriggeredFindUnique) Delete() workflowTriggerCronRefToTriggeredDeleteUnique { + var v workflowTriggerCronRefToTriggeredDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowConcurrency" + v.query.Model = "WorkflowTriggerCronRef" return v } -type workflowConcurrencyToGetConcurrencyGroupDeleteUnique struct { +type workflowTriggerCronRefToTriggeredDeleteUnique struct { query builder.Query } -func (r workflowConcurrencyToGetConcurrencyGroupDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowConcurrencyToGetConcurrencyGroupDeleteUnique) workflowConcurrencyModel() {} +func (p workflowTriggerCronRefToTriggeredDeleteUnique) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyToGetConcurrencyGroupDeleteUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { - var v WorkflowConcurrencyModel +func (r workflowTriggerCronRefToTriggeredDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupDeleteUnique) Tx() WorkflowConcurrencyUniqueTxResult { - v := newWorkflowConcurrencyUniqueTxResult() +func (r workflowTriggerCronRefToTriggeredDeleteUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowConcurrencyToGetConcurrencyGroupFindFirst struct { +type workflowTriggerCronRefToTriggeredFindFirst struct { query builder.Query } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) getQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredFindFirst) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) with() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) workflowConcurrencyModel() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefToTriggeredFindFirst) with() {} +func (r workflowTriggerCronRefToTriggeredFindFirst) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToTriggeredFindFirst) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) With(params ...ActionRelationWith) workflowConcurrencyToGetConcurrencyGroupFindFirst { +func (r workflowTriggerCronRefToTriggeredFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerCronRefToTriggeredFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -284581,7 +309488,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) With(params ...Action return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindFirst { +func (r workflowTriggerCronRefToTriggeredFindFirst) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindFirst { var outputs []builder.Output for _, param := range params { @@ -284595,7 +309502,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Select(params ...work return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindFirst { +func (r workflowTriggerCronRefToTriggeredFindFirst) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindFirst { var outputs []builder.Output var raw []string @@ -284603,7 +309510,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Omit(params ...workfl raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -284614,7 +309521,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Omit(params ...workfl return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) OrderBy(params ...ActionOrderByParam) workflowConcurrencyToGetConcurrencyGroupFindFirst { +func (r workflowTriggerCronRefToTriggeredFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowTriggerCronRefToTriggeredFindFirst { var fields []builder.Field for _, param := range params { @@ -284634,7 +309541,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) OrderBy(params ...Act return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Skip(count int) workflowConcurrencyToGetConcurrencyGroupFindFirst { +func (r workflowTriggerCronRefToTriggeredFindFirst) Skip(count int) workflowTriggerCronRefToTriggeredFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -284642,7 +309549,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Skip(count int) workf return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Take(count int) workflowConcurrencyToGetConcurrencyGroupFindFirst { +func (r workflowTriggerCronRefToTriggeredFindFirst) Take(count int) workflowTriggerCronRefToTriggeredFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -284650,7 +309557,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Take(count int) workf return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyToGetConcurrencyGroupFindFirst { +func (r workflowTriggerCronRefToTriggeredFindFirst) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToTriggeredFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -284658,11 +309565,11 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Cursor(cursor Workflo return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Exec(ctx context.Context) ( - *WorkflowConcurrencyModel, +func (r workflowTriggerCronRefToTriggeredFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerCronRefModel, error, ) { - var v *WorkflowConcurrencyModel + var v *WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284674,11 +309581,11 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) Exec(ctx context.Cont return v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowConcurrency, +func (r workflowTriggerCronRefToTriggeredFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerCronRef, error, ) { - var v *InnerWorkflowConcurrency + var v *InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284690,23 +309597,23 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindFirst) ExecInner(ctx context return v, nil } -type workflowConcurrencyToGetConcurrencyGroupFindMany struct { +type workflowTriggerCronRefToTriggeredFindMany struct { query builder.Query } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) getQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredFindMany) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) with() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) workflowConcurrencyModel() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefToTriggeredFindMany) with() {} +func (r workflowTriggerCronRefToTriggeredFindMany) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefToTriggeredFindMany) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) With(params ...ActionRelationWith) workflowConcurrencyToGetConcurrencyGroupFindMany { +func (r workflowTriggerCronRefToTriggeredFindMany) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerCronRefToTriggeredFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -284719,7 +309626,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) With(params ...ActionR return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindMany { +func (r workflowTriggerCronRefToTriggeredFindMany) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindMany { var outputs []builder.Output for _, param := range params { @@ -284733,7 +309640,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Select(params ...workf return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyToGetConcurrencyGroupFindMany { +func (r workflowTriggerCronRefToTriggeredFindMany) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindMany { var outputs []builder.Output var raw []string @@ -284741,7 +309648,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Omit(params ...workflo raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -284752,7 +309659,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Omit(params ...workflo return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) OrderBy(params ...ActionOrderByParam) workflowConcurrencyToGetConcurrencyGroupFindMany { +func (r workflowTriggerCronRefToTriggeredFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowTriggerCronRefToTriggeredFindMany { var fields []builder.Field for _, param := range params { @@ -284772,7 +309679,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) OrderBy(params ...Acti return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Skip(count int) workflowConcurrencyToGetConcurrencyGroupFindMany { +func (r workflowTriggerCronRefToTriggeredFindMany) Skip(count int) workflowTriggerCronRefToTriggeredFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -284780,7 +309687,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Skip(count int) workfl return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Take(count int) workflowConcurrencyToGetConcurrencyGroupFindMany { +func (r workflowTriggerCronRefToTriggeredFindMany) Take(count int) workflowTriggerCronRefToTriggeredFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -284788,7 +309695,7 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Take(count int) workfl return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyToGetConcurrencyGroupFindMany { +func (r workflowTriggerCronRefToTriggeredFindMany) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToTriggeredFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -284796,11 +309703,11 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Cursor(cursor Workflow return r } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Exec(ctx context.Context) ( - []WorkflowConcurrencyModel, +func (r workflowTriggerCronRefToTriggeredFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerCronRefModel, error, ) { - var v []WorkflowConcurrencyModel + var v []WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284808,11 +309715,11 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Exec(ctx context.Conte return v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowConcurrency, +func (r workflowTriggerCronRefToTriggeredFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerCronRef, error, ) { - var v []InnerWorkflowConcurrency + var v []InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -284820,14 +309727,14 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) ExecInner(ctx context. return v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyToGetConcurrencyGroupUpdateMany { +func (r workflowTriggerCronRefToTriggeredFindMany) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToTriggeredUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowConcurrency" + r.query.Model = "WorkflowTriggerCronRef" r.query.Outputs = countOutput - var v workflowConcurrencyToGetConcurrencyGroupUpdateMany + var v workflowTriggerCronRefToTriggeredUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -284856,17 +309763,17 @@ func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Update(params ...Workf return v } -type workflowConcurrencyToGetConcurrencyGroupUpdateMany struct { +type workflowTriggerCronRefToTriggeredUpdateMany struct { query builder.Query } -func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) workflowConcurrencyModel() {} +func (r workflowTriggerCronRefToTriggeredUpdateMany) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerCronRefToTriggeredUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -284874,36 +309781,36 @@ func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) Exec(ctx context.Con return &v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupUpdateMany) Tx() WorkflowConcurrencyManyTxResult { - v := newWorkflowConcurrencyManyTxResult() +func (r workflowTriggerCronRefToTriggeredUpdateMany) Tx() WorkflowTriggerCronRefManyTxResult { + v := newWorkflowTriggerCronRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowConcurrencyToGetConcurrencyGroupFindMany) Delete() workflowConcurrencyToGetConcurrencyGroupDeleteMany { - var v workflowConcurrencyToGetConcurrencyGroupDeleteMany +func (r workflowTriggerCronRefToTriggeredFindMany) Delete() workflowTriggerCronRefToTriggeredDeleteMany { + var v workflowTriggerCronRefToTriggeredDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowConcurrency" + v.query.Model = "WorkflowTriggerCronRef" v.query.Outputs = countOutput return v } -type workflowConcurrencyToGetConcurrencyGroupDeleteMany struct { +type workflowTriggerCronRefToTriggeredDeleteMany struct { query builder.Query } -func (r workflowConcurrencyToGetConcurrencyGroupDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefToTriggeredDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowConcurrencyToGetConcurrencyGroupDeleteMany) workflowConcurrencyModel() {} +func (p workflowTriggerCronRefToTriggeredDeleteMany) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyToGetConcurrencyGroupDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerCronRefToTriggeredDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -284911,33 +309818,33 @@ func (r workflowConcurrencyToGetConcurrencyGroupDeleteMany) Exec(ctx context.Con return &v, nil } -func (r workflowConcurrencyToGetConcurrencyGroupDeleteMany) Tx() WorkflowConcurrencyManyTxResult { - v := newWorkflowConcurrencyManyTxResult() +func (r workflowTriggerCronRefToTriggeredDeleteMany) Tx() WorkflowTriggerCronRefManyTxResult { + v := newWorkflowTriggerCronRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowConcurrencyFindUnique struct { +type workflowTriggerCronRefFindUnique struct { query builder.Query } -func (r workflowConcurrencyFindUnique) getQuery() builder.Query { +func (r workflowTriggerCronRefFindUnique) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyFindUnique) with() {} -func (r workflowConcurrencyFindUnique) workflowConcurrencyModel() {} -func (r workflowConcurrencyFindUnique) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefFindUnique) with() {} +func (r workflowTriggerCronRefFindUnique) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefFindUnique) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyActions) FindUnique( - params WorkflowConcurrencyEqualsUniqueWhereParam, -) workflowConcurrencyFindUnique { - var v workflowConcurrencyFindUnique +func (r workflowTriggerCronRefActions) FindUnique( + params WorkflowTriggerCronRefEqualsUniqueWhereParam, +) workflowTriggerCronRefFindUnique { + var v workflowTriggerCronRefFindUnique v.query = builder.NewQuery() v.query.Engine = r.client @@ -284945,8 +309852,8 @@ func (r workflowConcurrencyActions) FindUnique( v.query.Method = "findUnique" - v.query.Model = "WorkflowConcurrency" - v.query.Outputs = workflowConcurrencyOutput + v.query.Model = "WorkflowTriggerCronRef" + v.query.Outputs = workflowTriggerCronRefOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "where", @@ -284956,7 +309863,7 @@ func (r workflowConcurrencyActions) FindUnique( return v } -func (r workflowConcurrencyFindUnique) With(params ...WorkflowConcurrencyRelationWith) workflowConcurrencyFindUnique { +func (r workflowTriggerCronRefFindUnique) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggerCronRefFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -284969,7 +309876,7 @@ func (r workflowConcurrencyFindUnique) With(params ...WorkflowConcurrencyRelatio return r } -func (r workflowConcurrencyFindUnique) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindUnique { +func (r workflowTriggerCronRefFindUnique) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindUnique { var outputs []builder.Output for _, param := range params { @@ -284983,7 +309890,7 @@ func (r workflowConcurrencyFindUnique) Select(params ...workflowConcurrencyPrism return r } -func (r workflowConcurrencyFindUnique) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindUnique { +func (r workflowTriggerCronRefFindUnique) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindUnique { var outputs []builder.Output var raw []string @@ -284991,7 +309898,7 @@ func (r workflowConcurrencyFindUnique) Omit(params ...workflowConcurrencyPrismaF raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -285002,11 +309909,11 @@ func (r workflowConcurrencyFindUnique) Omit(params ...workflowConcurrencyPrismaF return r } -func (r workflowConcurrencyFindUnique) Exec(ctx context.Context) ( - *WorkflowConcurrencyModel, +func (r workflowTriggerCronRefFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerCronRefModel, error, ) { - var v *WorkflowConcurrencyModel + var v *WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285018,11 +309925,11 @@ func (r workflowConcurrencyFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowConcurrency, +func (r workflowTriggerCronRefFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerCronRef, error, ) { - var v *InnerWorkflowConcurrency + var v *InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285034,12 +309941,12 @@ func (r workflowConcurrencyFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyFindUnique) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyUpdateUnique { +func (r workflowTriggerCronRefFindUnique) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowConcurrency" + r.query.Model = "WorkflowTriggerCronRef" - var v workflowConcurrencyUpdateUnique + var v workflowTriggerCronRefUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -285068,86 +309975,86 @@ func (r workflowConcurrencyFindUnique) Update(params ...WorkflowConcurrencySetPa return v } -type workflowConcurrencyUpdateUnique struct { +type workflowTriggerCronRefUpdateUnique struct { query builder.Query } -func (r workflowConcurrencyUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyUpdateUnique) workflowConcurrencyModel() {} +func (r workflowTriggerCronRefUpdateUnique) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyUpdateUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { - var v WorkflowConcurrencyModel +func (r workflowTriggerCronRefUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowConcurrencyUpdateUnique) Tx() WorkflowConcurrencyUniqueTxResult { - v := newWorkflowConcurrencyUniqueTxResult() +func (r workflowTriggerCronRefUpdateUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowConcurrencyFindUnique) Delete() workflowConcurrencyDeleteUnique { - var v workflowConcurrencyDeleteUnique +func (r workflowTriggerCronRefFindUnique) Delete() workflowTriggerCronRefDeleteUnique { + var v workflowTriggerCronRefDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowConcurrency" + v.query.Model = "WorkflowTriggerCronRef" return v } -type workflowConcurrencyDeleteUnique struct { +type workflowTriggerCronRefDeleteUnique struct { query builder.Query } -func (r workflowConcurrencyDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowConcurrencyDeleteUnique) workflowConcurrencyModel() {} +func (p workflowTriggerCronRefDeleteUnique) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyDeleteUnique) Exec(ctx context.Context) (*WorkflowConcurrencyModel, error) { - var v WorkflowConcurrencyModel +func (r workflowTriggerCronRefDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { + var v WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowConcurrencyDeleteUnique) Tx() WorkflowConcurrencyUniqueTxResult { - v := newWorkflowConcurrencyUniqueTxResult() +func (r workflowTriggerCronRefDeleteUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { + v := newWorkflowTriggerCronRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowConcurrencyFindFirst struct { +type workflowTriggerCronRefFindFirst struct { query builder.Query } -func (r workflowConcurrencyFindFirst) getQuery() builder.Query { +func (r workflowTriggerCronRefFindFirst) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyFindFirst) with() {} -func (r workflowConcurrencyFindFirst) workflowConcurrencyModel() {} -func (r workflowConcurrencyFindFirst) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefFindFirst) with() {} +func (r workflowTriggerCronRefFindFirst) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefFindFirst) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyActions) FindFirst( - params ...WorkflowConcurrencyWhereParam, -) workflowConcurrencyFindFirst { - var v workflowConcurrencyFindFirst +func (r workflowTriggerCronRefActions) FindFirst( + params ...WorkflowTriggerCronRefWhereParam, +) workflowTriggerCronRefFindFirst { + var v workflowTriggerCronRefFindFirst v.query = builder.NewQuery() v.query.Engine = r.client @@ -285155,8 +310062,8 @@ func (r workflowConcurrencyActions) FindFirst( v.query.Method = "findFirst" - v.query.Model = "WorkflowConcurrency" - v.query.Outputs = workflowConcurrencyOutput + v.query.Model = "WorkflowTriggerCronRef" + v.query.Outputs = workflowTriggerCronRefOutput var where []builder.Field for _, q := range params { @@ -285181,7 +310088,7 @@ func (r workflowConcurrencyActions) FindFirst( return v } -func (r workflowConcurrencyFindFirst) With(params ...WorkflowConcurrencyRelationWith) workflowConcurrencyFindFirst { +func (r workflowTriggerCronRefFindFirst) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggerCronRefFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -285194,7 +310101,7 @@ func (r workflowConcurrencyFindFirst) With(params ...WorkflowConcurrencyRelation return r } -func (r workflowConcurrencyFindFirst) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindFirst { +func (r workflowTriggerCronRefFindFirst) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindFirst { var outputs []builder.Output for _, param := range params { @@ -285208,7 +310115,7 @@ func (r workflowConcurrencyFindFirst) Select(params ...workflowConcurrencyPrisma return r } -func (r workflowConcurrencyFindFirst) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindFirst { +func (r workflowTriggerCronRefFindFirst) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindFirst { var outputs []builder.Output var raw []string @@ -285216,7 +310123,7 @@ func (r workflowConcurrencyFindFirst) Omit(params ...workflowConcurrencyPrismaFi raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -285227,7 +310134,7 @@ func (r workflowConcurrencyFindFirst) Omit(params ...workflowConcurrencyPrismaFi return r } -func (r workflowConcurrencyFindFirst) OrderBy(params ...WorkflowConcurrencyOrderByParam) workflowConcurrencyFindFirst { +func (r workflowTriggerCronRefFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowTriggerCronRefFindFirst { var fields []builder.Field for _, param := range params { @@ -285247,7 +310154,7 @@ func (r workflowConcurrencyFindFirst) OrderBy(params ...WorkflowConcurrencyOrder return r } -func (r workflowConcurrencyFindFirst) Skip(count int) workflowConcurrencyFindFirst { +func (r workflowTriggerCronRefFindFirst) Skip(count int) workflowTriggerCronRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -285255,7 +310162,7 @@ func (r workflowConcurrencyFindFirst) Skip(count int) workflowConcurrencyFindFir return r } -func (r workflowConcurrencyFindFirst) Take(count int) workflowConcurrencyFindFirst { +func (r workflowTriggerCronRefFindFirst) Take(count int) workflowTriggerCronRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -285263,7 +310170,7 @@ func (r workflowConcurrencyFindFirst) Take(count int) workflowConcurrencyFindFir return r } -func (r workflowConcurrencyFindFirst) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyFindFirst { +func (r workflowTriggerCronRefFindFirst) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -285271,11 +310178,11 @@ func (r workflowConcurrencyFindFirst) Cursor(cursor WorkflowConcurrencyCursorPar return r } -func (r workflowConcurrencyFindFirst) Exec(ctx context.Context) ( - *WorkflowConcurrencyModel, +func (r workflowTriggerCronRefFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerCronRefModel, error, ) { - var v *WorkflowConcurrencyModel + var v *WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285287,11 +310194,11 @@ func (r workflowConcurrencyFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowConcurrency, +func (r workflowTriggerCronRefFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerCronRef, error, ) { - var v *InnerWorkflowConcurrency + var v *InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285303,26 +310210,26 @@ func (r workflowConcurrencyFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowConcurrencyFindMany struct { +type workflowTriggerCronRefFindMany struct { query builder.Query } -func (r workflowConcurrencyFindMany) getQuery() builder.Query { +func (r workflowTriggerCronRefFindMany) getQuery() builder.Query { return r.query } -func (r workflowConcurrencyFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyFindMany) with() {} -func (r workflowConcurrencyFindMany) workflowConcurrencyModel() {} -func (r workflowConcurrencyFindMany) workflowConcurrencyRelation() {} +func (r workflowTriggerCronRefFindMany) with() {} +func (r workflowTriggerCronRefFindMany) workflowTriggerCronRefModel() {} +func (r workflowTriggerCronRefFindMany) workflowTriggerCronRefRelation() {} -func (r workflowConcurrencyActions) FindMany( - params ...WorkflowConcurrencyWhereParam, -) workflowConcurrencyFindMany { - var v workflowConcurrencyFindMany +func (r workflowTriggerCronRefActions) FindMany( + params ...WorkflowTriggerCronRefWhereParam, +) workflowTriggerCronRefFindMany { + var v workflowTriggerCronRefFindMany v.query = builder.NewQuery() v.query.Engine = r.client @@ -285330,8 +310237,8 @@ func (r workflowConcurrencyActions) FindMany( v.query.Method = "findMany" - v.query.Model = "WorkflowConcurrency" - v.query.Outputs = workflowConcurrencyOutput + v.query.Model = "WorkflowTriggerCronRef" + v.query.Outputs = workflowTriggerCronRefOutput var where []builder.Field for _, q := range params { @@ -285356,7 +310263,7 @@ func (r workflowConcurrencyActions) FindMany( return v } -func (r workflowConcurrencyFindMany) With(params ...WorkflowConcurrencyRelationWith) workflowConcurrencyFindMany { +func (r workflowTriggerCronRefFindMany) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggerCronRefFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -285369,7 +310276,7 @@ func (r workflowConcurrencyFindMany) With(params ...WorkflowConcurrencyRelationW return r } -func (r workflowConcurrencyFindMany) Select(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindMany { +func (r workflowTriggerCronRefFindMany) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindMany { var outputs []builder.Output for _, param := range params { @@ -285383,7 +310290,7 @@ func (r workflowConcurrencyFindMany) Select(params ...workflowConcurrencyPrismaF return r } -func (r workflowConcurrencyFindMany) Omit(params ...workflowConcurrencyPrismaFields) workflowConcurrencyFindMany { +func (r workflowTriggerCronRefFindMany) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindMany { var outputs []builder.Output var raw []string @@ -285391,7 +310298,7 @@ func (r workflowConcurrencyFindMany) Omit(params ...workflowConcurrencyPrismaFie raw = append(raw, string(param)) } - for _, output := range workflowConcurrencyOutput { + for _, output := range workflowTriggerCronRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -285402,7 +310309,7 @@ func (r workflowConcurrencyFindMany) Omit(params ...workflowConcurrencyPrismaFie return r } -func (r workflowConcurrencyFindMany) OrderBy(params ...WorkflowConcurrencyOrderByParam) workflowConcurrencyFindMany { +func (r workflowTriggerCronRefFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowTriggerCronRefFindMany { var fields []builder.Field for _, param := range params { @@ -285422,7 +310329,7 @@ func (r workflowConcurrencyFindMany) OrderBy(params ...WorkflowConcurrencyOrderB return r } -func (r workflowConcurrencyFindMany) Skip(count int) workflowConcurrencyFindMany { +func (r workflowTriggerCronRefFindMany) Skip(count int) workflowTriggerCronRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -285430,7 +310337,7 @@ func (r workflowConcurrencyFindMany) Skip(count int) workflowConcurrencyFindMany return r } -func (r workflowConcurrencyFindMany) Take(count int) workflowConcurrencyFindMany { +func (r workflowTriggerCronRefFindMany) Take(count int) workflowTriggerCronRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -285438,7 +310345,7 @@ func (r workflowConcurrencyFindMany) Take(count int) workflowConcurrencyFindMany return r } -func (r workflowConcurrencyFindMany) Cursor(cursor WorkflowConcurrencyCursorParam) workflowConcurrencyFindMany { +func (r workflowTriggerCronRefFindMany) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -285446,11 +310353,11 @@ func (r workflowConcurrencyFindMany) Cursor(cursor WorkflowConcurrencyCursorPara return r } -func (r workflowConcurrencyFindMany) Exec(ctx context.Context) ( - []WorkflowConcurrencyModel, +func (r workflowTriggerCronRefFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerCronRefModel, error, ) { - var v []WorkflowConcurrencyModel + var v []WorkflowTriggerCronRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285458,11 +310365,11 @@ func (r workflowConcurrencyFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowConcurrency, +func (r workflowTriggerCronRefFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerCronRef, error, ) { - var v []InnerWorkflowConcurrency + var v []InnerWorkflowTriggerCronRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285470,14 +310377,14 @@ func (r workflowConcurrencyFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowConcurrencyFindMany) Update(params ...WorkflowConcurrencySetParam) workflowConcurrencyUpdateMany { +func (r workflowTriggerCronRefFindMany) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowConcurrency" + r.query.Model = "WorkflowTriggerCronRef" r.query.Outputs = countOutput - var v workflowConcurrencyUpdateMany + var v workflowTriggerCronRefUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -285506,17 +310413,17 @@ func (r workflowConcurrencyFindMany) Update(params ...WorkflowConcurrencySetPara return v } -type workflowConcurrencyUpdateMany struct { +type workflowTriggerCronRefUpdateMany struct { query builder.Query } -func (r workflowConcurrencyUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowConcurrencyUpdateMany) workflowConcurrencyModel() {} +func (r workflowTriggerCronRefUpdateMany) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerCronRefUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -285524,36 +310431,36 @@ func (r workflowConcurrencyUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowConcurrencyUpdateMany) Tx() WorkflowConcurrencyManyTxResult { - v := newWorkflowConcurrencyManyTxResult() +func (r workflowTriggerCronRefUpdateMany) Tx() WorkflowTriggerCronRefManyTxResult { + v := newWorkflowTriggerCronRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowConcurrencyFindMany) Delete() workflowConcurrencyDeleteMany { - var v workflowConcurrencyDeleteMany +func (r workflowTriggerCronRefFindMany) Delete() workflowTriggerCronRefDeleteMany { + var v workflowTriggerCronRefDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowConcurrency" + v.query.Model = "WorkflowTriggerCronRef" v.query.Outputs = countOutput return v } -type workflowConcurrencyDeleteMany struct { +type workflowTriggerCronRefDeleteMany struct { query builder.Query } -func (r workflowConcurrencyDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerCronRefDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowConcurrencyDeleteMany) workflowConcurrencyModel() {} +func (p workflowTriggerCronRefDeleteMany) workflowTriggerCronRefModel() {} -func (r workflowConcurrencyDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerCronRefDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -285561,30 +310468,30 @@ func (r workflowConcurrencyDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowConcurrencyDeleteMany) Tx() WorkflowConcurrencyManyTxResult { - v := newWorkflowConcurrencyManyTxResult() +func (r workflowTriggerCronRefDeleteMany) Tx() WorkflowTriggerCronRefManyTxResult { + v := newWorkflowTriggerCronRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersToWorkflowFindUnique struct { +type workflowTriggerScheduledRefToParentFindUnique struct { query builder.Query } -func (r workflowTriggersToWorkflowFindUnique) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggersToWorkflowFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToWorkflowFindUnique) with() {} -func (r workflowTriggersToWorkflowFindUnique) workflowTriggersModel() {} -func (r workflowTriggersToWorkflowFindUnique) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentFindUnique) with() {} +func (r workflowTriggerScheduledRefToParentFindUnique) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToParentFindUnique) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToWorkflowFindUnique) With(params ...WorkflowVersionRelationWith) workflowTriggersToWorkflowFindUnique { +func (r workflowTriggerScheduledRefToParentFindUnique) With(params ...WorkflowVersionRelationWith) workflowTriggerScheduledRefToParentFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -285597,7 +310504,7 @@ func (r workflowTriggersToWorkflowFindUnique) With(params ...WorkflowVersionRela return r } -func (r workflowTriggersToWorkflowFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindUnique { +func (r workflowTriggerScheduledRefToParentFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindUnique { var outputs []builder.Output for _, param := range params { @@ -285611,7 +310518,7 @@ func (r workflowTriggersToWorkflowFindUnique) Select(params ...workflowTriggersP return r } -func (r workflowTriggersToWorkflowFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindUnique { +func (r workflowTriggerScheduledRefToParentFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindUnique { var outputs []builder.Output var raw []string @@ -285619,7 +310526,7 @@ func (r workflowTriggersToWorkflowFindUnique) Omit(params ...workflowTriggersPri raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -285630,11 +310537,11 @@ func (r workflowTriggersToWorkflowFindUnique) Omit(params ...workflowTriggersPri return r } -func (r workflowTriggersToWorkflowFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285646,11 +310553,11 @@ func (r workflowTriggersToWorkflowFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToWorkflowFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285662,12 +310569,12 @@ func (r workflowTriggersToWorkflowFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersToWorkflowFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersToWorkflowUpdateUnique { +func (r workflowTriggerScheduledRefToParentFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" - var v workflowTriggersToWorkflowUpdateUnique + var v workflowTriggerScheduledRefToParentUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -285696,83 +310603,83 @@ func (r workflowTriggersToWorkflowFindUnique) Update(params ...WorkflowTriggersS return v } -type workflowTriggersToWorkflowUpdateUnique struct { +type workflowTriggerScheduledRefToParentUpdateUnique struct { query builder.Query } -func (r workflowTriggersToWorkflowUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToWorkflowUpdateUnique) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToParentUpdateUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToWorkflowUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersToWorkflowUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToParentUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersToWorkflowFindUnique) Delete() workflowTriggersToWorkflowDeleteUnique { - var v workflowTriggersToWorkflowDeleteUnique +func (r workflowTriggerScheduledRefToParentFindUnique) Delete() workflowTriggerScheduledRefToParentDeleteUnique { + var v workflowTriggerScheduledRefToParentDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" return v } -type workflowTriggersToWorkflowDeleteUnique struct { +type workflowTriggerScheduledRefToParentDeleteUnique struct { query builder.Query } -func (r workflowTriggersToWorkflowDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersToWorkflowDeleteUnique) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToParentDeleteUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToWorkflowDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersToWorkflowDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToParentDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersToWorkflowFindFirst struct { +type workflowTriggerScheduledRefToParentFindFirst struct { query builder.Query } -func (r workflowTriggersToWorkflowFindFirst) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggersToWorkflowFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToWorkflowFindFirst) with() {} -func (r workflowTriggersToWorkflowFindFirst) workflowTriggersModel() {} -func (r workflowTriggersToWorkflowFindFirst) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentFindFirst) with() {} +func (r workflowTriggerScheduledRefToParentFindFirst) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToParentFindFirst) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToWorkflowFindFirst) With(params ...WorkflowVersionRelationWith) workflowTriggersToWorkflowFindFirst { +func (r workflowTriggerScheduledRefToParentFindFirst) With(params ...WorkflowVersionRelationWith) workflowTriggerScheduledRefToParentFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -285785,7 +310692,7 @@ func (r workflowTriggersToWorkflowFindFirst) With(params ...WorkflowVersionRelat return r } -func (r workflowTriggersToWorkflowFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindFirst { +func (r workflowTriggerScheduledRefToParentFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindFirst { var outputs []builder.Output for _, param := range params { @@ -285799,7 +310706,7 @@ func (r workflowTriggersToWorkflowFindFirst) Select(params ...workflowTriggersPr return r } -func (r workflowTriggersToWorkflowFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindFirst { +func (r workflowTriggerScheduledRefToParentFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindFirst { var outputs []builder.Output var raw []string @@ -285807,7 +310714,7 @@ func (r workflowTriggersToWorkflowFindFirst) Omit(params ...workflowTriggersPris raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -285818,7 +310725,7 @@ func (r workflowTriggersToWorkflowFindFirst) Omit(params ...workflowTriggersPris return r } -func (r workflowTriggersToWorkflowFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowTriggersToWorkflowFindFirst { +func (r workflowTriggerScheduledRefToParentFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowTriggerScheduledRefToParentFindFirst { var fields []builder.Field for _, param := range params { @@ -285838,7 +310745,7 @@ func (r workflowTriggersToWorkflowFindFirst) OrderBy(params ...WorkflowVersionOr return r } -func (r workflowTriggersToWorkflowFindFirst) Skip(count int) workflowTriggersToWorkflowFindFirst { +func (r workflowTriggerScheduledRefToParentFindFirst) Skip(count int) workflowTriggerScheduledRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -285846,7 +310753,7 @@ func (r workflowTriggersToWorkflowFindFirst) Skip(count int) workflowTriggersToW return r } -func (r workflowTriggersToWorkflowFindFirst) Take(count int) workflowTriggersToWorkflowFindFirst { +func (r workflowTriggerScheduledRefToParentFindFirst) Take(count int) workflowTriggerScheduledRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -285854,7 +310761,7 @@ func (r workflowTriggersToWorkflowFindFirst) Take(count int) workflowTriggersToW return r } -func (r workflowTriggersToWorkflowFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToWorkflowFindFirst { +func (r workflowTriggerScheduledRefToParentFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -285862,11 +310769,11 @@ func (r workflowTriggersToWorkflowFindFirst) Cursor(cursor WorkflowTriggersCurso return r } -func (r workflowTriggersToWorkflowFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285878,11 +310785,11 @@ func (r workflowTriggersToWorkflowFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToWorkflowFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -285894,23 +310801,23 @@ func (r workflowTriggersToWorkflowFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTriggersToWorkflowFindMany struct { +type workflowTriggerScheduledRefToParentFindMany struct { query builder.Query } -func (r workflowTriggersToWorkflowFindMany) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggersToWorkflowFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToWorkflowFindMany) with() {} -func (r workflowTriggersToWorkflowFindMany) workflowTriggersModel() {} -func (r workflowTriggersToWorkflowFindMany) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentFindMany) with() {} +func (r workflowTriggerScheduledRefToParentFindMany) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToParentFindMany) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToWorkflowFindMany) With(params ...WorkflowVersionRelationWith) workflowTriggersToWorkflowFindMany { +func (r workflowTriggerScheduledRefToParentFindMany) With(params ...WorkflowVersionRelationWith) workflowTriggerScheduledRefToParentFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -285923,7 +310830,7 @@ func (r workflowTriggersToWorkflowFindMany) With(params ...WorkflowVersionRelati return r } -func (r workflowTriggersToWorkflowFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindMany { +func (r workflowTriggerScheduledRefToParentFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindMany { var outputs []builder.Output for _, param := range params { @@ -285937,7 +310844,7 @@ func (r workflowTriggersToWorkflowFindMany) Select(params ...workflowTriggersPri return r } -func (r workflowTriggersToWorkflowFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToWorkflowFindMany { +func (r workflowTriggerScheduledRefToParentFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindMany { var outputs []builder.Output var raw []string @@ -285945,7 +310852,7 @@ func (r workflowTriggersToWorkflowFindMany) Omit(params ...workflowTriggersPrism raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -285956,7 +310863,7 @@ func (r workflowTriggersToWorkflowFindMany) Omit(params ...workflowTriggersPrism return r } -func (r workflowTriggersToWorkflowFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowTriggersToWorkflowFindMany { +func (r workflowTriggerScheduledRefToParentFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowTriggerScheduledRefToParentFindMany { var fields []builder.Field for _, param := range params { @@ -285976,7 +310883,7 @@ func (r workflowTriggersToWorkflowFindMany) OrderBy(params ...WorkflowVersionOrd return r } -func (r workflowTriggersToWorkflowFindMany) Skip(count int) workflowTriggersToWorkflowFindMany { +func (r workflowTriggerScheduledRefToParentFindMany) Skip(count int) workflowTriggerScheduledRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -285984,7 +310891,7 @@ func (r workflowTriggersToWorkflowFindMany) Skip(count int) workflowTriggersToWo return r } -func (r workflowTriggersToWorkflowFindMany) Take(count int) workflowTriggersToWorkflowFindMany { +func (r workflowTriggerScheduledRefToParentFindMany) Take(count int) workflowTriggerScheduledRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -285992,7 +310899,7 @@ func (r workflowTriggersToWorkflowFindMany) Take(count int) workflowTriggersToWo return r } -func (r workflowTriggersToWorkflowFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToWorkflowFindMany { +func (r workflowTriggerScheduledRefToParentFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -286000,11 +310907,11 @@ func (r workflowTriggersToWorkflowFindMany) Cursor(cursor WorkflowTriggersCursor return r } -func (r workflowTriggersToWorkflowFindMany) Exec(ctx context.Context) ( - []WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerScheduledRefModel, error, ) { - var v []WorkflowTriggersModel + var v []WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286012,11 +310919,11 @@ func (r workflowTriggersToWorkflowFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToWorkflowFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerScheduledRef, error, ) { - var v []InnerWorkflowTriggers + var v []InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286024,14 +310931,14 @@ func (r workflowTriggersToWorkflowFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersToWorkflowFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersToWorkflowUpdateMany { +func (r workflowTriggerScheduledRefToParentFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" r.query.Outputs = countOutput - var v workflowTriggersToWorkflowUpdateMany + var v workflowTriggerScheduledRefToParentUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -286060,17 +310967,17 @@ func (r workflowTriggersToWorkflowFindMany) Update(params ...WorkflowTriggersSet return v } -type workflowTriggersToWorkflowUpdateMany struct { +type workflowTriggerScheduledRefToParentUpdateMany struct { query builder.Query } -func (r workflowTriggersToWorkflowUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToWorkflowUpdateMany) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToParentUpdateMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -286078,36 +310985,36 @@ func (r workflowTriggersToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchR return &v, nil } -func (r workflowTriggersToWorkflowUpdateMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToParentUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersToWorkflowFindMany) Delete() workflowTriggersToWorkflowDeleteMany { - var v workflowTriggersToWorkflowDeleteMany +func (r workflowTriggerScheduledRefToParentFindMany) Delete() workflowTriggerScheduledRefToParentDeleteMany { + var v workflowTriggerScheduledRefToParentDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" v.query.Outputs = countOutput return v } -type workflowTriggersToWorkflowDeleteMany struct { +type workflowTriggerScheduledRefToParentDeleteMany struct { query builder.Query } -func (r workflowTriggersToWorkflowDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersToWorkflowDeleteMany) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToParentDeleteMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -286115,30 +311022,30 @@ func (r workflowTriggersToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchR return &v, nil } -func (r workflowTriggersToWorkflowDeleteMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToParentDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersToTenantFindUnique struct { +type workflowTriggerScheduledRefToTickerFindUnique struct { query builder.Query } -func (r workflowTriggersToTenantFindUnique) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggersToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToTenantFindUnique) with() {} -func (r workflowTriggersToTenantFindUnique) workflowTriggersModel() {} -func (r workflowTriggersToTenantFindUnique) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToTickerFindUnique) with() {} +func (r workflowTriggerScheduledRefToTickerFindUnique) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToTickerFindUnique) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToTenantFindUnique) With(params ...TenantRelationWith) workflowTriggersToTenantFindUnique { +func (r workflowTriggerScheduledRefToTickerFindUnique) With(params ...TickerRelationWith) workflowTriggerScheduledRefToTickerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -286151,7 +311058,7 @@ func (r workflowTriggersToTenantFindUnique) With(params ...TenantRelationWith) w return r } -func (r workflowTriggersToTenantFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindUnique { +func (r workflowTriggerScheduledRefToTickerFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindUnique { var outputs []builder.Output for _, param := range params { @@ -286165,7 +311072,7 @@ func (r workflowTriggersToTenantFindUnique) Select(params ...workflowTriggersPri return r } -func (r workflowTriggersToTenantFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindUnique { +func (r workflowTriggerScheduledRefToTickerFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindUnique { var outputs []builder.Output var raw []string @@ -286173,7 +311080,7 @@ func (r workflowTriggersToTenantFindUnique) Omit(params ...workflowTriggersPrism raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -286184,11 +311091,11 @@ func (r workflowTriggersToTenantFindUnique) Omit(params ...workflowTriggersPrism return r } -func (r workflowTriggersToTenantFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToTickerFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286200,11 +311107,11 @@ func (r workflowTriggersToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToTickerFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286216,12 +311123,12 @@ func (r workflowTriggersToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersToTenantFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersToTenantUpdateUnique { +func (r workflowTriggerScheduledRefToTickerFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToTickerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" - var v workflowTriggersToTenantUpdateUnique + var v workflowTriggerScheduledRefToTickerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -286250,83 +311157,83 @@ func (r workflowTriggersToTenantFindUnique) Update(params ...WorkflowTriggersSet return v } -type workflowTriggersToTenantUpdateUnique struct { +type workflowTriggerScheduledRefToTickerUpdateUnique struct { query builder.Query } -func (r workflowTriggersToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToTenantUpdateUnique) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToTickerUpdateUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToTickerUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersToTenantUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToTickerUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersToTenantFindUnique) Delete() workflowTriggersToTenantDeleteUnique { - var v workflowTriggersToTenantDeleteUnique +func (r workflowTriggerScheduledRefToTickerFindUnique) Delete() workflowTriggerScheduledRefToTickerDeleteUnique { + var v workflowTriggerScheduledRefToTickerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" return v } -type workflowTriggersToTenantDeleteUnique struct { +type workflowTriggerScheduledRefToTickerDeleteUnique struct { query builder.Query } -func (r workflowTriggersToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersToTenantDeleteUnique) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToTickerDeleteUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToTickerDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersToTenantDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToTickerDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersToTenantFindFirst struct { +type workflowTriggerScheduledRefToTickerFindFirst struct { query builder.Query } -func (r workflowTriggersToTenantFindFirst) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggersToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToTenantFindFirst) with() {} -func (r workflowTriggersToTenantFindFirst) workflowTriggersModel() {} -func (r workflowTriggersToTenantFindFirst) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToTickerFindFirst) with() {} +func (r workflowTriggerScheduledRefToTickerFindFirst) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToTickerFindFirst) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToTenantFindFirst) With(params ...TenantRelationWith) workflowTriggersToTenantFindFirst { +func (r workflowTriggerScheduledRefToTickerFindFirst) With(params ...TickerRelationWith) workflowTriggerScheduledRefToTickerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -286339,7 +311246,7 @@ func (r workflowTriggersToTenantFindFirst) With(params ...TenantRelationWith) wo return r } -func (r workflowTriggersToTenantFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindFirst { +func (r workflowTriggerScheduledRefToTickerFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindFirst { var outputs []builder.Output for _, param := range params { @@ -286353,7 +311260,7 @@ func (r workflowTriggersToTenantFindFirst) Select(params ...workflowTriggersPris return r } -func (r workflowTriggersToTenantFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindFirst { +func (r workflowTriggerScheduledRefToTickerFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindFirst { var outputs []builder.Output var raw []string @@ -286361,7 +311268,7 @@ func (r workflowTriggersToTenantFindFirst) Omit(params ...workflowTriggersPrisma raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -286372,7 +311279,7 @@ func (r workflowTriggersToTenantFindFirst) Omit(params ...workflowTriggersPrisma return r } -func (r workflowTriggersToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowTriggersToTenantFindFirst { +func (r workflowTriggerScheduledRefToTickerFindFirst) OrderBy(params ...TickerOrderByParam) workflowTriggerScheduledRefToTickerFindFirst { var fields []builder.Field for _, param := range params { @@ -286392,7 +311299,7 @@ func (r workflowTriggersToTenantFindFirst) OrderBy(params ...TenantOrderByParam) return r } -func (r workflowTriggersToTenantFindFirst) Skip(count int) workflowTriggersToTenantFindFirst { +func (r workflowTriggerScheduledRefToTickerFindFirst) Skip(count int) workflowTriggerScheduledRefToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -286400,7 +311307,7 @@ func (r workflowTriggersToTenantFindFirst) Skip(count int) workflowTriggersToTen return r } -func (r workflowTriggersToTenantFindFirst) Take(count int) workflowTriggersToTenantFindFirst { +func (r workflowTriggerScheduledRefToTickerFindFirst) Take(count int) workflowTriggerScheduledRefToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -286408,7 +311315,7 @@ func (r workflowTriggersToTenantFindFirst) Take(count int) workflowTriggersToTen return r } -func (r workflowTriggersToTenantFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToTenantFindFirst { +func (r workflowTriggerScheduledRefToTickerFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -286416,11 +311323,11 @@ func (r workflowTriggersToTenantFindFirst) Cursor(cursor WorkflowTriggersCursorP return r } -func (r workflowTriggersToTenantFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToTickerFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286432,11 +311339,11 @@ func (r workflowTriggersToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToTickerFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286448,23 +311355,23 @@ func (r workflowTriggersToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTriggersToTenantFindMany struct { +type workflowTriggerScheduledRefToTickerFindMany struct { query builder.Query } -func (r workflowTriggersToTenantFindMany) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggersToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToTenantFindMany) with() {} -func (r workflowTriggersToTenantFindMany) workflowTriggersModel() {} -func (r workflowTriggersToTenantFindMany) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToTickerFindMany) with() {} +func (r workflowTriggerScheduledRefToTickerFindMany) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToTickerFindMany) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToTenantFindMany) With(params ...TenantRelationWith) workflowTriggersToTenantFindMany { +func (r workflowTriggerScheduledRefToTickerFindMany) With(params ...TickerRelationWith) workflowTriggerScheduledRefToTickerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -286477,7 +311384,7 @@ func (r workflowTriggersToTenantFindMany) With(params ...TenantRelationWith) wor return r } -func (r workflowTriggersToTenantFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindMany { +func (r workflowTriggerScheduledRefToTickerFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindMany { var outputs []builder.Output for _, param := range params { @@ -286491,7 +311398,7 @@ func (r workflowTriggersToTenantFindMany) Select(params ...workflowTriggersPrism return r } -func (r workflowTriggersToTenantFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToTenantFindMany { +func (r workflowTriggerScheduledRefToTickerFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindMany { var outputs []builder.Output var raw []string @@ -286499,7 +311406,7 @@ func (r workflowTriggersToTenantFindMany) Omit(params ...workflowTriggersPrismaF raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -286510,7 +311417,7 @@ func (r workflowTriggersToTenantFindMany) Omit(params ...workflowTriggersPrismaF return r } -func (r workflowTriggersToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowTriggersToTenantFindMany { +func (r workflowTriggerScheduledRefToTickerFindMany) OrderBy(params ...TickerOrderByParam) workflowTriggerScheduledRefToTickerFindMany { var fields []builder.Field for _, param := range params { @@ -286530,7 +311437,7 @@ func (r workflowTriggersToTenantFindMany) OrderBy(params ...TenantOrderByParam) return r } -func (r workflowTriggersToTenantFindMany) Skip(count int) workflowTriggersToTenantFindMany { +func (r workflowTriggerScheduledRefToTickerFindMany) Skip(count int) workflowTriggerScheduledRefToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -286538,7 +311445,7 @@ func (r workflowTriggersToTenantFindMany) Skip(count int) workflowTriggersToTena return r } -func (r workflowTriggersToTenantFindMany) Take(count int) workflowTriggersToTenantFindMany { +func (r workflowTriggerScheduledRefToTickerFindMany) Take(count int) workflowTriggerScheduledRefToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -286546,7 +311453,7 @@ func (r workflowTriggersToTenantFindMany) Take(count int) workflowTriggersToTena return r } -func (r workflowTriggersToTenantFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToTenantFindMany { +func (r workflowTriggerScheduledRefToTickerFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -286554,11 +311461,11 @@ func (r workflowTriggersToTenantFindMany) Cursor(cursor WorkflowTriggersCursorPa return r } -func (r workflowTriggersToTenantFindMany) Exec(ctx context.Context) ( - []WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToTickerFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerScheduledRefModel, error, ) { - var v []WorkflowTriggersModel + var v []WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286566,11 +311473,11 @@ func (r workflowTriggersToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToTickerFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerScheduledRef, error, ) { - var v []InnerWorkflowTriggers + var v []InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286578,14 +311485,14 @@ func (r workflowTriggersToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersToTenantFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersToTenantUpdateMany { +func (r workflowTriggerScheduledRefToTickerFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToTickerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" r.query.Outputs = countOutput - var v workflowTriggersToTenantUpdateMany + var v workflowTriggerScheduledRefToTickerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -286614,17 +311521,17 @@ func (r workflowTriggersToTenantFindMany) Update(params ...WorkflowTriggersSetPa return v } -type workflowTriggersToTenantUpdateMany struct { +type workflowTriggerScheduledRefToTickerUpdateMany struct { query builder.Query } -func (r workflowTriggersToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToTenantUpdateMany) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToTickerUpdateMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -286632,36 +311539,36 @@ func (r workflowTriggersToTenantUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r workflowTriggersToTenantUpdateMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToTickerUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersToTenantFindMany) Delete() workflowTriggersToTenantDeleteMany { - var v workflowTriggersToTenantDeleteMany +func (r workflowTriggerScheduledRefToTickerFindMany) Delete() workflowTriggerScheduledRefToTickerDeleteMany { + var v workflowTriggerScheduledRefToTickerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" v.query.Outputs = countOutput return v } -type workflowTriggersToTenantDeleteMany struct { +type workflowTriggerScheduledRefToTickerDeleteMany struct { query builder.Query } -func (r workflowTriggersToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTickerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersToTenantDeleteMany) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToTickerDeleteMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -286669,30 +311576,32 @@ func (r workflowTriggersToTenantDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r workflowTriggersToTenantDeleteMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToTickerDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersToEventsFindUnique struct { +type workflowTriggerScheduledRefToParentWorkflowRunFindUnique struct { query builder.Query } -func (r workflowTriggersToEventsFindUnique) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggersToEventsFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToEventsFindUnique) with() {} -func (r workflowTriggersToEventsFindUnique) workflowTriggersModel() {} -func (r workflowTriggersToEventsFindUnique) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) with() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) workflowTriggerScheduledRefModel() { +} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) workflowTriggerScheduledRefRelation() { +} -func (r workflowTriggersToEventsFindUnique) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggersToEventsFindUnique { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) With(params ...WorkflowRunRelationWith) workflowTriggerScheduledRefToParentWorkflowRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -286705,7 +311614,7 @@ func (r workflowTriggersToEventsFindUnique) With(params ...WorkflowTriggerEventR return r } -func (r workflowTriggersToEventsFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindUnique { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -286719,7 +311628,7 @@ func (r workflowTriggersToEventsFindUnique) Select(params ...workflowTriggersPri return r } -func (r workflowTriggersToEventsFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindUnique { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindUnique { var outputs []builder.Output var raw []string @@ -286727,7 +311636,7 @@ func (r workflowTriggersToEventsFindUnique) Omit(params ...workflowTriggersPrism raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -286738,11 +311647,11 @@ func (r workflowTriggersToEventsFindUnique) Omit(params ...workflowTriggersPrism return r } -func (r workflowTriggersToEventsFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286754,11 +311663,11 @@ func (r workflowTriggersToEventsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToEventsFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286770,12 +311679,12 @@ func (r workflowTriggersToEventsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersToEventsFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersToEventsUpdateUnique { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" - var v workflowTriggersToEventsUpdateUnique + var v workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -286804,83 +311713,86 @@ func (r workflowTriggersToEventsFindUnique) Update(params ...WorkflowTriggersSet return v } -type workflowTriggersToEventsUpdateUnique struct { +type workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique struct { query builder.Query } -func (r workflowTriggersToEventsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToEventsUpdateUnique) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique) workflowTriggerScheduledRefModel() { +} -func (r workflowTriggersToEventsUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersToEventsUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersToEventsFindUnique) Delete() workflowTriggersToEventsDeleteUnique { - var v workflowTriggersToEventsDeleteUnique +func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Delete() workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique { + var v workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" return v } -type workflowTriggersToEventsDeleteUnique struct { +type workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique struct { query builder.Query } -func (r workflowTriggersToEventsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersToEventsDeleteUnique) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique) workflowTriggerScheduledRefModel() { +} -func (r workflowTriggersToEventsDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersToEventsDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersToEventsFindFirst struct { +type workflowTriggerScheduledRefToParentWorkflowRunFindFirst struct { query builder.Query } -func (r workflowTriggersToEventsFindFirst) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggersToEventsFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToEventsFindFirst) with() {} -func (r workflowTriggersToEventsFindFirst) workflowTriggersModel() {} -func (r workflowTriggersToEventsFindFirst) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) with() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) workflowTriggerScheduledRefRelation() { +} -func (r workflowTriggersToEventsFindFirst) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggersToEventsFindFirst { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) With(params ...WorkflowRunRelationWith) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -286893,7 +311805,7 @@ func (r workflowTriggersToEventsFindFirst) With(params ...WorkflowTriggerEventRe return r } -func (r workflowTriggersToEventsFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindFirst { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -286907,7 +311819,7 @@ func (r workflowTriggersToEventsFindFirst) Select(params ...workflowTriggersPris return r } -func (r workflowTriggersToEventsFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindFirst { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { var outputs []builder.Output var raw []string @@ -286915,7 +311827,7 @@ func (r workflowTriggersToEventsFindFirst) Omit(params ...workflowTriggersPrisma raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -286926,7 +311838,7 @@ func (r workflowTriggersToEventsFindFirst) Omit(params ...workflowTriggersPrisma return r } -func (r workflowTriggersToEventsFindFirst) OrderBy(params ...WorkflowTriggerEventRefOrderByParam) workflowTriggersToEventsFindFirst { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { var fields []builder.Field for _, param := range params { @@ -286946,7 +311858,7 @@ func (r workflowTriggersToEventsFindFirst) OrderBy(params ...WorkflowTriggerEven return r } -func (r workflowTriggersToEventsFindFirst) Skip(count int) workflowTriggersToEventsFindFirst { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Skip(count int) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -286954,7 +311866,7 @@ func (r workflowTriggersToEventsFindFirst) Skip(count int) workflowTriggersToEve return r } -func (r workflowTriggersToEventsFindFirst) Take(count int) workflowTriggersToEventsFindFirst { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Take(count int) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -286962,7 +311874,7 @@ func (r workflowTriggersToEventsFindFirst) Take(count int) workflowTriggersToEve return r } -func (r workflowTriggersToEventsFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToEventsFindFirst { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -286970,11 +311882,11 @@ func (r workflowTriggersToEventsFindFirst) Cursor(cursor WorkflowTriggersCursorP return r } -func (r workflowTriggersToEventsFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -286986,11 +311898,11 @@ func (r workflowTriggersToEventsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToEventsFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287002,23 +311914,24 @@ func (r workflowTriggersToEventsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTriggersToEventsFindMany struct { +type workflowTriggerScheduledRefToParentWorkflowRunFindMany struct { query builder.Query } -func (r workflowTriggersToEventsFindMany) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggersToEventsFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToEventsFindMany) with() {} -func (r workflowTriggersToEventsFindMany) workflowTriggersModel() {} -func (r workflowTriggersToEventsFindMany) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) with() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) workflowTriggerScheduledRefRelation() { +} -func (r workflowTriggersToEventsFindMany) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggersToEventsFindMany { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) With(params ...WorkflowRunRelationWith) workflowTriggerScheduledRefToParentWorkflowRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -287031,7 +311944,7 @@ func (r workflowTriggersToEventsFindMany) With(params ...WorkflowTriggerEventRef return r } -func (r workflowTriggersToEventsFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindMany { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindMany { var outputs []builder.Output for _, param := range params { @@ -287045,7 +311958,7 @@ func (r workflowTriggersToEventsFindMany) Select(params ...workflowTriggersPrism return r } -func (r workflowTriggersToEventsFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToEventsFindMany { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindMany { var outputs []builder.Output var raw []string @@ -287053,7 +311966,7 @@ func (r workflowTriggersToEventsFindMany) Omit(params ...workflowTriggersPrismaF raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -287064,7 +311977,7 @@ func (r workflowTriggersToEventsFindMany) Omit(params ...workflowTriggersPrismaF return r } -func (r workflowTriggersToEventsFindMany) OrderBy(params ...WorkflowTriggerEventRefOrderByParam) workflowTriggersToEventsFindMany { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowTriggerScheduledRefToParentWorkflowRunFindMany { var fields []builder.Field for _, param := range params { @@ -287084,7 +311997,7 @@ func (r workflowTriggersToEventsFindMany) OrderBy(params ...WorkflowTriggerEvent return r } -func (r workflowTriggersToEventsFindMany) Skip(count int) workflowTriggersToEventsFindMany { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Skip(count int) workflowTriggerScheduledRefToParentWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -287092,7 +312005,7 @@ func (r workflowTriggersToEventsFindMany) Skip(count int) workflowTriggersToEven return r } -func (r workflowTriggersToEventsFindMany) Take(count int) workflowTriggersToEventsFindMany { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Take(count int) workflowTriggerScheduledRefToParentWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -287100,7 +312013,7 @@ func (r workflowTriggersToEventsFindMany) Take(count int) workflowTriggersToEven return r } -func (r workflowTriggersToEventsFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToEventsFindMany { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -287108,11 +312021,11 @@ func (r workflowTriggersToEventsFindMany) Cursor(cursor WorkflowTriggersCursorPa return r } -func (r workflowTriggersToEventsFindMany) Exec(ctx context.Context) ( - []WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerScheduledRefModel, error, ) { - var v []WorkflowTriggersModel + var v []WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287120,11 +312033,11 @@ func (r workflowTriggersToEventsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToEventsFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerScheduledRef, error, ) { - var v []InnerWorkflowTriggers + var v []InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287132,14 +312045,14 @@ func (r workflowTriggersToEventsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersToEventsFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersToEventsUpdateMany { +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentWorkflowRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" r.query.Outputs = countOutput - var v workflowTriggersToEventsUpdateMany + var v workflowTriggerScheduledRefToParentWorkflowRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -287168,17 +312081,18 @@ func (r workflowTriggersToEventsFindMany) Update(params ...WorkflowTriggersSetPa return v } -type workflowTriggersToEventsUpdateMany struct { +type workflowTriggerScheduledRefToParentWorkflowRunUpdateMany struct { query builder.Query } -func (r workflowTriggersToEventsUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToEventsUpdateMany) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) workflowTriggerScheduledRefModel() { +} -func (r workflowTriggersToEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -287186,36 +312100,37 @@ func (r workflowTriggersToEventsUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r workflowTriggersToEventsUpdateMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersToEventsFindMany) Delete() workflowTriggersToEventsDeleteMany { - var v workflowTriggersToEventsDeleteMany +func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Delete() workflowTriggerScheduledRefToParentWorkflowRunDeleteMany { + var v workflowTriggerScheduledRefToParentWorkflowRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" v.query.Outputs = countOutput return v } -type workflowTriggersToEventsDeleteMany struct { +type workflowTriggerScheduledRefToParentWorkflowRunDeleteMany struct { query builder.Query } -func (r workflowTriggersToEventsDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersToEventsDeleteMany) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) workflowTriggerScheduledRefModel() { +} -func (r workflowTriggersToEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -287223,30 +312138,30 @@ func (r workflowTriggersToEventsDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r workflowTriggersToEventsDeleteMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersToCronsFindUnique struct { +type workflowTriggerScheduledRefToParentStepRunFindUnique struct { query builder.Query } -func (r workflowTriggersToCronsFindUnique) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggersToCronsFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToCronsFindUnique) with() {} -func (r workflowTriggersToCronsFindUnique) workflowTriggersModel() {} -func (r workflowTriggersToCronsFindUnique) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) with() {} +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToCronsFindUnique) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggersToCronsFindUnique { +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) With(params ...StepRunRelationWith) workflowTriggerScheduledRefToParentStepRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -287259,7 +312174,7 @@ func (r workflowTriggersToCronsFindUnique) With(params ...WorkflowTriggerCronRef return r } -func (r workflowTriggersToCronsFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindUnique { +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -287273,7 +312188,7 @@ func (r workflowTriggersToCronsFindUnique) Select(params ...workflowTriggersPris return r } -func (r workflowTriggersToCronsFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindUnique { +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindUnique { var outputs []builder.Output var raw []string @@ -287281,7 +312196,7 @@ func (r workflowTriggersToCronsFindUnique) Omit(params ...workflowTriggersPrisma raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -287292,11 +312207,11 @@ func (r workflowTriggersToCronsFindUnique) Omit(params ...workflowTriggersPrisma return r } -func (r workflowTriggersToCronsFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287308,11 +312223,11 @@ func (r workflowTriggersToCronsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToCronsFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287324,12 +312239,12 @@ func (r workflowTriggersToCronsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersToCronsFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersToCronsUpdateUnique { +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentStepRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" - var v workflowTriggersToCronsUpdateUnique + var v workflowTriggerScheduledRefToParentStepRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -287358,83 +312273,83 @@ func (r workflowTriggersToCronsFindUnique) Update(params ...WorkflowTriggersSetP return v } -type workflowTriggersToCronsUpdateUnique struct { +type workflowTriggerScheduledRefToParentStepRunUpdateUnique struct { query builder.Query } -func (r workflowTriggersToCronsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToCronsUpdateUnique) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToParentStepRunUpdateUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToCronsUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToParentStepRunUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersToCronsUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToParentStepRunUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersToCronsFindUnique) Delete() workflowTriggersToCronsDeleteUnique { - var v workflowTriggersToCronsDeleteUnique +func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Delete() workflowTriggerScheduledRefToParentStepRunDeleteUnique { + var v workflowTriggerScheduledRefToParentStepRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" return v } -type workflowTriggersToCronsDeleteUnique struct { +type workflowTriggerScheduledRefToParentStepRunDeleteUnique struct { query builder.Query } -func (r workflowTriggersToCronsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersToCronsDeleteUnique) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToParentStepRunDeleteUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToCronsDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToParentStepRunDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersToCronsDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToParentStepRunDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersToCronsFindFirst struct { +type workflowTriggerScheduledRefToParentStepRunFindFirst struct { query builder.Query } -func (r workflowTriggersToCronsFindFirst) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggersToCronsFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToCronsFindFirst) with() {} -func (r workflowTriggersToCronsFindFirst) workflowTriggersModel() {} -func (r workflowTriggersToCronsFindFirst) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) with() {} +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToCronsFindFirst) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggersToCronsFindFirst { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) With(params ...StepRunRelationWith) workflowTriggerScheduledRefToParentStepRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -287447,7 +312362,7 @@ func (r workflowTriggersToCronsFindFirst) With(params ...WorkflowTriggerCronRefR return r } -func (r workflowTriggersToCronsFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindFirst { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -287461,7 +312376,7 @@ func (r workflowTriggersToCronsFindFirst) Select(params ...workflowTriggersPrism return r } -func (r workflowTriggersToCronsFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindFirst { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindFirst { var outputs []builder.Output var raw []string @@ -287469,7 +312384,7 @@ func (r workflowTriggersToCronsFindFirst) Omit(params ...workflowTriggersPrismaF raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -287480,7 +312395,7 @@ func (r workflowTriggersToCronsFindFirst) Omit(params ...workflowTriggersPrismaF return r } -func (r workflowTriggersToCronsFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowTriggersToCronsFindFirst { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) workflowTriggerScheduledRefToParentStepRunFindFirst { var fields []builder.Field for _, param := range params { @@ -287500,7 +312415,7 @@ func (r workflowTriggersToCronsFindFirst) OrderBy(params ...WorkflowTriggerCronR return r } -func (r workflowTriggersToCronsFindFirst) Skip(count int) workflowTriggersToCronsFindFirst { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Skip(count int) workflowTriggerScheduledRefToParentStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -287508,7 +312423,7 @@ func (r workflowTriggersToCronsFindFirst) Skip(count int) workflowTriggersToCron return r } -func (r workflowTriggersToCronsFindFirst) Take(count int) workflowTriggersToCronsFindFirst { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Take(count int) workflowTriggerScheduledRefToParentStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -287516,7 +312431,7 @@ func (r workflowTriggersToCronsFindFirst) Take(count int) workflowTriggersToCron return r } -func (r workflowTriggersToCronsFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToCronsFindFirst { +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -287524,11 +312439,11 @@ func (r workflowTriggersToCronsFindFirst) Cursor(cursor WorkflowTriggersCursorPa return r } -func (r workflowTriggersToCronsFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287540,11 +312455,11 @@ func (r workflowTriggersToCronsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToCronsFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentStepRunFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287556,23 +312471,23 @@ func (r workflowTriggersToCronsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTriggersToCronsFindMany struct { +type workflowTriggerScheduledRefToParentStepRunFindMany struct { query builder.Query } -func (r workflowTriggersToCronsFindMany) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggersToCronsFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToCronsFindMany) with() {} -func (r workflowTriggersToCronsFindMany) workflowTriggersModel() {} -func (r workflowTriggersToCronsFindMany) workflowTriggersRelation() {} +func (r workflowTriggerScheduledRefToParentStepRunFindMany) with() {} +func (r workflowTriggerScheduledRefToParentStepRunFindMany) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToParentStepRunFindMany) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersToCronsFindMany) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggersToCronsFindMany { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) With(params ...StepRunRelationWith) workflowTriggerScheduledRefToParentStepRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -287585,7 +312500,7 @@ func (r workflowTriggersToCronsFindMany) With(params ...WorkflowTriggerCronRefRe return r } -func (r workflowTriggersToCronsFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindMany { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindMany { var outputs []builder.Output for _, param := range params { @@ -287599,7 +312514,7 @@ func (r workflowTriggersToCronsFindMany) Select(params ...workflowTriggersPrisma return r } -func (r workflowTriggersToCronsFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersToCronsFindMany { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindMany { var outputs []builder.Output var raw []string @@ -287607,7 +312522,7 @@ func (r workflowTriggersToCronsFindMany) Omit(params ...workflowTriggersPrismaFi raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -287618,7 +312533,7 @@ func (r workflowTriggersToCronsFindMany) Omit(params ...workflowTriggersPrismaFi return r } -func (r workflowTriggersToCronsFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowTriggersToCronsFindMany { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) OrderBy(params ...StepRunOrderByParam) workflowTriggerScheduledRefToParentStepRunFindMany { var fields []builder.Field for _, param := range params { @@ -287638,7 +312553,7 @@ func (r workflowTriggersToCronsFindMany) OrderBy(params ...WorkflowTriggerCronRe return r } -func (r workflowTriggersToCronsFindMany) Skip(count int) workflowTriggersToCronsFindMany { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) Skip(count int) workflowTriggerScheduledRefToParentStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -287646,7 +312561,7 @@ func (r workflowTriggersToCronsFindMany) Skip(count int) workflowTriggersToCrons return r } -func (r workflowTriggersToCronsFindMany) Take(count int) workflowTriggersToCronsFindMany { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) Take(count int) workflowTriggerScheduledRefToParentStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -287654,7 +312569,7 @@ func (r workflowTriggersToCronsFindMany) Take(count int) workflowTriggersToCrons return r } -func (r workflowTriggersToCronsFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersToCronsFindMany { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -287662,11 +312577,11 @@ func (r workflowTriggersToCronsFindMany) Cursor(cursor WorkflowTriggersCursorPar return r } -func (r workflowTriggersToCronsFindMany) Exec(ctx context.Context) ( - []WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToParentStepRunFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerScheduledRefModel, error, ) { - var v []WorkflowTriggersModel + var v []WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287674,11 +312589,11 @@ func (r workflowTriggersToCronsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersToCronsFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToParentStepRunFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerScheduledRef, error, ) { - var v []InnerWorkflowTriggers + var v []InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287686,14 +312601,14 @@ func (r workflowTriggersToCronsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersToCronsFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersToCronsUpdateMany { +func (r workflowTriggerScheduledRefToParentStepRunFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentStepRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" r.query.Outputs = countOutput - var v workflowTriggersToCronsUpdateMany + var v workflowTriggerScheduledRefToParentStepRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -287722,17 +312637,17 @@ func (r workflowTriggersToCronsFindMany) Update(params ...WorkflowTriggersSetPar return v } -type workflowTriggersToCronsUpdateMany struct { +type workflowTriggerScheduledRefToParentStepRunUpdateMany struct { query builder.Query } -func (r workflowTriggersToCronsUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersToCronsUpdateMany) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToCronsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -287740,36 +312655,36 @@ func (r workflowTriggersToCronsUpdateMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r workflowTriggersToCronsUpdateMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersToCronsFindMany) Delete() workflowTriggersToCronsDeleteMany { - var v workflowTriggersToCronsDeleteMany +func (r workflowTriggerScheduledRefToParentStepRunFindMany) Delete() workflowTriggerScheduledRefToParentStepRunDeleteMany { + var v workflowTriggerScheduledRefToParentStepRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" v.query.Outputs = countOutput return v } -type workflowTriggersToCronsDeleteMany struct { +type workflowTriggerScheduledRefToParentStepRunDeleteMany struct { query builder.Query } -func (r workflowTriggersToCronsDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToParentStepRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersToCronsDeleteMany) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToParentStepRunDeleteMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersToCronsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToParentStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -287777,52 +312692,30 @@ func (r workflowTriggersToCronsDeleteMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r workflowTriggersToCronsDeleteMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToParentStepRunDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersFindUnique struct { +type workflowTriggerScheduledRefToTriggeredFindUnique struct { query builder.Query } -func (r workflowTriggersFindUnique) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggersFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersFindUnique) with() {} -func (r workflowTriggersFindUnique) workflowTriggersModel() {} -func (r workflowTriggersFindUnique) workflowTriggersRelation() {} - -func (r workflowTriggersActions) FindUnique( - params WorkflowTriggersEqualsUniqueWhereParam, -) workflowTriggersFindUnique { - var v workflowTriggersFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WorkflowTriggers" - v.query.Outputs = workflowTriggersOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowTriggerScheduledRefToTriggeredFindUnique) with() {} +func (r workflowTriggerScheduledRefToTriggeredFindUnique) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToTriggeredFindUnique) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersFindUnique) With(params ...WorkflowTriggersRelationWith) workflowTriggersFindUnique { +func (r workflowTriggerScheduledRefToTriggeredFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerScheduledRefToTriggeredFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -287835,7 +312728,7 @@ func (r workflowTriggersFindUnique) With(params ...WorkflowTriggersRelationWith) return r } -func (r workflowTriggersFindUnique) Select(params ...workflowTriggersPrismaFields) workflowTriggersFindUnique { +func (r workflowTriggerScheduledRefToTriggeredFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindUnique { var outputs []builder.Output for _, param := range params { @@ -287849,7 +312742,7 @@ func (r workflowTriggersFindUnique) Select(params ...workflowTriggersPrismaField return r } -func (r workflowTriggersFindUnique) Omit(params ...workflowTriggersPrismaFields) workflowTriggersFindUnique { +func (r workflowTriggerScheduledRefToTriggeredFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindUnique { var outputs []builder.Output var raw []string @@ -287857,7 +312750,7 @@ func (r workflowTriggersFindUnique) Omit(params ...workflowTriggersPrismaFields) raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -287868,11 +312761,11 @@ func (r workflowTriggersFindUnique) Omit(params ...workflowTriggersPrismaFields) return r } -func (r workflowTriggersFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToTriggeredFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287884,11 +312777,11 @@ func (r workflowTriggersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToTriggeredFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -287900,12 +312793,12 @@ func (r workflowTriggersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersFindUnique) Update(params ...WorkflowTriggersSetParam) workflowTriggersUpdateUnique { +func (r workflowTriggerScheduledRefToTriggeredFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToTriggeredUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" - var v workflowTriggersUpdateUnique + var v workflowTriggerScheduledRefToTriggeredUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -287934,120 +312827,83 @@ func (r workflowTriggersFindUnique) Update(params ...WorkflowTriggersSetParam) w return v } -type workflowTriggersUpdateUnique struct { +type workflowTriggerScheduledRefToTriggeredUpdateUnique struct { query builder.Query } -func (r workflowTriggersUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersUpdateUnique) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToTriggeredUpdateUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToTriggeredUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersUpdateUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToTriggeredUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersFindUnique) Delete() workflowTriggersDeleteUnique { - var v workflowTriggersDeleteUnique +func (r workflowTriggerScheduledRefToTriggeredFindUnique) Delete() workflowTriggerScheduledRefToTriggeredDeleteUnique { + var v workflowTriggerScheduledRefToTriggeredDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" return v } -type workflowTriggersDeleteUnique struct { +type workflowTriggerScheduledRefToTriggeredDeleteUnique struct { query builder.Query } -func (r workflowTriggersDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersDeleteUnique) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToTriggeredDeleteUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggersModel, error) { - var v WorkflowTriggersModel +func (r workflowTriggerScheduledRefToTriggeredDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggersDeleteUnique) Tx() WorkflowTriggersUniqueTxResult { - v := newWorkflowTriggersUniqueTxResult() +func (r workflowTriggerScheduledRefToTriggeredDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggersFindFirst struct { +type workflowTriggerScheduledRefToTriggeredFindFirst struct { query builder.Query } -func (r workflowTriggersFindFirst) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggersFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersFindFirst) with() {} -func (r workflowTriggersFindFirst) workflowTriggersModel() {} -func (r workflowTriggersFindFirst) workflowTriggersRelation() {} - -func (r workflowTriggersActions) FindFirst( - params ...WorkflowTriggersWhereParam, -) workflowTriggersFindFirst { - var v workflowTriggersFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WorkflowTriggers" - v.query.Outputs = workflowTriggersOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowTriggerScheduledRefToTriggeredFindFirst) with() {} +func (r workflowTriggerScheduledRefToTriggeredFindFirst) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToTriggeredFindFirst) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersFindFirst) With(params ...WorkflowTriggersRelationWith) workflowTriggersFindFirst { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerScheduledRefToTriggeredFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -288060,7 +312916,7 @@ func (r workflowTriggersFindFirst) With(params ...WorkflowTriggersRelationWith) return r } -func (r workflowTriggersFindFirst) Select(params ...workflowTriggersPrismaFields) workflowTriggersFindFirst { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindFirst { var outputs []builder.Output for _, param := range params { @@ -288074,7 +312930,7 @@ func (r workflowTriggersFindFirst) Select(params ...workflowTriggersPrismaFields return r } -func (r workflowTriggersFindFirst) Omit(params ...workflowTriggersPrismaFields) workflowTriggersFindFirst { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindFirst { var outputs []builder.Output var raw []string @@ -288082,7 +312938,7 @@ func (r workflowTriggersFindFirst) Omit(params ...workflowTriggersPrismaFields) raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -288093,7 +312949,7 @@ func (r workflowTriggersFindFirst) Omit(params ...workflowTriggersPrismaFields) return r } -func (r workflowTriggersFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggersFindFirst { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowTriggerScheduledRefToTriggeredFindFirst { var fields []builder.Field for _, param := range params { @@ -288113,7 +312969,7 @@ func (r workflowTriggersFindFirst) OrderBy(params ...WorkflowTriggersOrderByPara return r } -func (r workflowTriggersFindFirst) Skip(count int) workflowTriggersFindFirst { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) Skip(count int) workflowTriggerScheduledRefToTriggeredFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -288121,7 +312977,7 @@ func (r workflowTriggersFindFirst) Skip(count int) workflowTriggersFindFirst { return r } -func (r workflowTriggersFindFirst) Take(count int) workflowTriggersFindFirst { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) Take(count int) workflowTriggerScheduledRefToTriggeredFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -288129,7 +312985,7 @@ func (r workflowTriggersFindFirst) Take(count int) workflowTriggersFindFirst { return r } -func (r workflowTriggersFindFirst) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersFindFirst { +func (r workflowTriggerScheduledRefToTriggeredFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToTriggeredFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -288137,11 +312993,11 @@ func (r workflowTriggersFindFirst) Cursor(cursor WorkflowTriggersCursorParam) wo return r } -func (r workflowTriggersFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToTriggeredFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggersModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288153,11 +313009,11 @@ func (r workflowTriggersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToTriggeredFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggers + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288169,60 +313025,23 @@ func (r workflowTriggersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTriggersFindMany struct { +type workflowTriggerScheduledRefToTriggeredFindMany struct { query builder.Query } -func (r workflowTriggersFindMany) getQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggersFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersFindMany) with() {} -func (r workflowTriggersFindMany) workflowTriggersModel() {} -func (r workflowTriggersFindMany) workflowTriggersRelation() {} - -func (r workflowTriggersActions) FindMany( - params ...WorkflowTriggersWhereParam, -) workflowTriggersFindMany { - var v workflowTriggersFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WorkflowTriggers" - v.query.Outputs = workflowTriggersOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowTriggerScheduledRefToTriggeredFindMany) with() {} +func (r workflowTriggerScheduledRefToTriggeredFindMany) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefToTriggeredFindMany) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggersFindMany) With(params ...WorkflowTriggersRelationWith) workflowTriggersFindMany { +func (r workflowTriggerScheduledRefToTriggeredFindMany) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerScheduledRefToTriggeredFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -288235,7 +313054,7 @@ func (r workflowTriggersFindMany) With(params ...WorkflowTriggersRelationWith) w return r } -func (r workflowTriggersFindMany) Select(params ...workflowTriggersPrismaFields) workflowTriggersFindMany { +func (r workflowTriggerScheduledRefToTriggeredFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindMany { var outputs []builder.Output for _, param := range params { @@ -288249,7 +313068,7 @@ func (r workflowTriggersFindMany) Select(params ...workflowTriggersPrismaFields) return r } -func (r workflowTriggersFindMany) Omit(params ...workflowTriggersPrismaFields) workflowTriggersFindMany { +func (r workflowTriggerScheduledRefToTriggeredFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindMany { var outputs []builder.Output var raw []string @@ -288257,7 +313076,7 @@ func (r workflowTriggersFindMany) Omit(params ...workflowTriggersPrismaFields) w raw = append(raw, string(param)) } - for _, output := range workflowTriggersOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -288268,7 +313087,7 @@ func (r workflowTriggersFindMany) Omit(params ...workflowTriggersPrismaFields) w return r } -func (r workflowTriggersFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggersFindMany { +func (r workflowTriggerScheduledRefToTriggeredFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowTriggerScheduledRefToTriggeredFindMany { var fields []builder.Field for _, param := range params { @@ -288288,7 +313107,7 @@ func (r workflowTriggersFindMany) OrderBy(params ...WorkflowTriggersOrderByParam return r } -func (r workflowTriggersFindMany) Skip(count int) workflowTriggersFindMany { +func (r workflowTriggerScheduledRefToTriggeredFindMany) Skip(count int) workflowTriggerScheduledRefToTriggeredFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -288296,7 +313115,7 @@ func (r workflowTriggersFindMany) Skip(count int) workflowTriggersFindMany { return r } -func (r workflowTriggersFindMany) Take(count int) workflowTriggersFindMany { +func (r workflowTriggerScheduledRefToTriggeredFindMany) Take(count int) workflowTriggerScheduledRefToTriggeredFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -288304,7 +313123,7 @@ func (r workflowTriggersFindMany) Take(count int) workflowTriggersFindMany { return r } -func (r workflowTriggersFindMany) Cursor(cursor WorkflowTriggersCursorParam) workflowTriggersFindMany { +func (r workflowTriggerScheduledRefToTriggeredFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToTriggeredFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -288312,11 +313131,11 @@ func (r workflowTriggersFindMany) Cursor(cursor WorkflowTriggersCursorParam) wor return r } -func (r workflowTriggersFindMany) Exec(ctx context.Context) ( - []WorkflowTriggersModel, +func (r workflowTriggerScheduledRefToTriggeredFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerScheduledRefModel, error, ) { - var v []WorkflowTriggersModel + var v []WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288324,11 +313143,11 @@ func (r workflowTriggersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggersFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggers, +func (r workflowTriggerScheduledRefToTriggeredFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerScheduledRef, error, ) { - var v []InnerWorkflowTriggers + var v []InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288336,14 +313155,14 @@ func (r workflowTriggersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggersFindMany) Update(params ...WorkflowTriggersSetParam) workflowTriggersUpdateMany { +func (r workflowTriggerScheduledRefToTriggeredFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToTriggeredUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggers" + r.query.Model = "WorkflowTriggerScheduledRef" r.query.Outputs = countOutput - var v workflowTriggersUpdateMany + var v workflowTriggerScheduledRefToTriggeredUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -288372,17 +313191,17 @@ func (r workflowTriggersFindMany) Update(params ...WorkflowTriggersSetParam) wor return v } -type workflowTriggersUpdateMany struct { +type workflowTriggerScheduledRefToTriggeredUpdateMany struct { query builder.Query } -func (r workflowTriggersUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggersUpdateMany) workflowTriggersModel() {} +func (r workflowTriggerScheduledRefToTriggeredUpdateMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToTriggeredUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -288390,36 +313209,36 @@ func (r workflowTriggersUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r workflowTriggersUpdateMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToTriggeredUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggersFindMany) Delete() workflowTriggersDeleteMany { - var v workflowTriggersDeleteMany +func (r workflowTriggerScheduledRefToTriggeredFindMany) Delete() workflowTriggerScheduledRefToTriggeredDeleteMany { + var v workflowTriggerScheduledRefToTriggeredDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggers" + v.query.Model = "WorkflowTriggerScheduledRef" v.query.Outputs = countOutput return v } -type workflowTriggersDeleteMany struct { +type workflowTriggerScheduledRefToTriggeredDeleteMany struct { query builder.Query } -func (r workflowTriggersDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefToTriggeredDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggersDeleteMany) workflowTriggersModel() {} +func (p workflowTriggerScheduledRefToTriggeredDeleteMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefToTriggeredDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -288427,30 +313246,52 @@ func (r workflowTriggersDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r workflowTriggersDeleteMany) Tx() WorkflowTriggersManyTxResult { - v := newWorkflowTriggersManyTxResult() +func (r workflowTriggerScheduledRefToTriggeredDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerEventRefToParentFindUnique struct { +type workflowTriggerScheduledRefFindUnique struct { query builder.Query } -func (r workflowTriggerEventRefToParentFindUnique) getQuery() builder.Query { +func (r workflowTriggerScheduledRefFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefToParentFindUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefToParentFindUnique) with() {} -func (r workflowTriggerEventRefToParentFindUnique) workflowTriggerEventRefModel() {} -func (r workflowTriggerEventRefToParentFindUnique) workflowTriggerEventRefRelation() {} +func (r workflowTriggerScheduledRefFindUnique) with() {} +func (r workflowTriggerScheduledRefFindUnique) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefFindUnique) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggerEventRefToParentFindUnique) With(params ...WorkflowTriggersRelationWith) workflowTriggerEventRefToParentFindUnique { +func (r workflowTriggerScheduledRefActions) FindUnique( + params WorkflowTriggerScheduledRefEqualsUniqueWhereParam, +) workflowTriggerScheduledRefFindUnique { + var v workflowTriggerScheduledRefFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Outputs = workflowTriggerScheduledRefOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowTriggerScheduledRefFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowTriggerScheduledRefFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -288463,7 +313304,7 @@ func (r workflowTriggerEventRefToParentFindUnique) With(params ...WorkflowTrigge return r } -func (r workflowTriggerEventRefToParentFindUnique) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindUnique { +func (r workflowTriggerScheduledRefFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindUnique { var outputs []builder.Output for _, param := range params { @@ -288477,7 +313318,7 @@ func (r workflowTriggerEventRefToParentFindUnique) Select(params ...workflowTrig return r } -func (r workflowTriggerEventRefToParentFindUnique) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindUnique { +func (r workflowTriggerScheduledRefFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindUnique { var outputs []builder.Output var raw []string @@ -288485,7 +313326,7 @@ func (r workflowTriggerEventRefToParentFindUnique) Omit(params ...workflowTrigge raw = append(raw, string(param)) } - for _, output := range workflowTriggerEventRefOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -288496,11 +313337,11 @@ func (r workflowTriggerEventRefToParentFindUnique) Omit(params ...workflowTrigge return r } -func (r workflowTriggerEventRefToParentFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerEventRefModel, +func (r workflowTriggerScheduledRefFindUnique) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggerEventRefModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288512,11 +313353,11 @@ func (r workflowTriggerEventRefToParentFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerEventRefToParentFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerEventRef, +func (r workflowTriggerScheduledRefFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggerEventRef + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288528,12 +313369,12 @@ func (r workflowTriggerEventRefToParentFindUnique) ExecInner(ctx context.Context return v, nil } -func (r workflowTriggerEventRefToParentFindUnique) Update(params ...WorkflowTriggerEventRefSetParam) workflowTriggerEventRefToParentUpdateUnique { +func (r workflowTriggerScheduledRefFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerEventRef" + r.query.Model = "WorkflowTriggerScheduledRef" - var v workflowTriggerEventRefToParentUpdateUnique + var v workflowTriggerScheduledRefUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -288562,83 +313403,120 @@ func (r workflowTriggerEventRefToParentFindUnique) Update(params ...WorkflowTrig return v } -type workflowTriggerEventRefToParentUpdateUnique struct { +type workflowTriggerScheduledRefUpdateUnique struct { query builder.Query } -func (r workflowTriggerEventRefToParentUpdateUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefToParentUpdateUnique) workflowTriggerEventRefModel() {} +func (r workflowTriggerScheduledRefUpdateUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerEventRefToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { - var v WorkflowTriggerEventRefModel +func (r workflowTriggerScheduledRefUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerEventRefToParentUpdateUnique) Tx() WorkflowTriggerEventRefUniqueTxResult { - v := newWorkflowTriggerEventRefUniqueTxResult() +func (r workflowTriggerScheduledRefUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerEventRefToParentFindUnique) Delete() workflowTriggerEventRefToParentDeleteUnique { - var v workflowTriggerEventRefToParentDeleteUnique +func (r workflowTriggerScheduledRefFindUnique) Delete() workflowTriggerScheduledRefDeleteUnique { + var v workflowTriggerScheduledRefDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerEventRef" + v.query.Model = "WorkflowTriggerScheduledRef" return v } -type workflowTriggerEventRefToParentDeleteUnique struct { +type workflowTriggerScheduledRefDeleteUnique struct { query builder.Query } -func (r workflowTriggerEventRefToParentDeleteUnique) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerEventRefToParentDeleteUnique) workflowTriggerEventRefModel() {} +func (p workflowTriggerScheduledRefDeleteUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerEventRefToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { - var v WorkflowTriggerEventRefModel +func (r workflowTriggerScheduledRefDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { + var v WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerEventRefToParentDeleteUnique) Tx() WorkflowTriggerEventRefUniqueTxResult { - v := newWorkflowTriggerEventRefUniqueTxResult() +func (r workflowTriggerScheduledRefDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { + v := newWorkflowTriggerScheduledRefUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerEventRefToParentFindFirst struct { +type workflowTriggerScheduledRefFindFirst struct { query builder.Query } -func (r workflowTriggerEventRefToParentFindFirst) getQuery() builder.Query { +func (r workflowTriggerScheduledRefFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefToParentFindFirst) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefToParentFindFirst) with() {} -func (r workflowTriggerEventRefToParentFindFirst) workflowTriggerEventRefModel() {} -func (r workflowTriggerEventRefToParentFindFirst) workflowTriggerEventRefRelation() {} +func (r workflowTriggerScheduledRefFindFirst) with() {} +func (r workflowTriggerScheduledRefFindFirst) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefFindFirst) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggerEventRefToParentFindFirst) With(params ...WorkflowTriggersRelationWith) workflowTriggerEventRefToParentFindFirst { +func (r workflowTriggerScheduledRefActions) FindFirst( + params ...WorkflowTriggerScheduledRefWhereParam, +) workflowTriggerScheduledRefFindFirst { + var v workflowTriggerScheduledRefFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Outputs = workflowTriggerScheduledRefOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowTriggerScheduledRefFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowTriggerScheduledRefFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -288651,7 +313529,7 @@ func (r workflowTriggerEventRefToParentFindFirst) With(params ...WorkflowTrigger return r } -func (r workflowTriggerEventRefToParentFindFirst) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindFirst { +func (r workflowTriggerScheduledRefFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindFirst { var outputs []builder.Output for _, param := range params { @@ -288665,7 +313543,7 @@ func (r workflowTriggerEventRefToParentFindFirst) Select(params ...workflowTrigg return r } -func (r workflowTriggerEventRefToParentFindFirst) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindFirst { +func (r workflowTriggerScheduledRefFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindFirst { var outputs []builder.Output var raw []string @@ -288673,7 +313551,7 @@ func (r workflowTriggerEventRefToParentFindFirst) Omit(params ...workflowTrigger raw = append(raw, string(param)) } - for _, output := range workflowTriggerEventRefOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -288684,7 +313562,7 @@ func (r workflowTriggerEventRefToParentFindFirst) Omit(params ...workflowTrigger return r } -func (r workflowTriggerEventRefToParentFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggerEventRefToParentFindFirst { +func (r workflowTriggerScheduledRefFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowTriggerScheduledRefFindFirst { var fields []builder.Field for _, param := range params { @@ -288704,7 +313582,7 @@ func (r workflowTriggerEventRefToParentFindFirst) OrderBy(params ...WorkflowTrig return r } -func (r workflowTriggerEventRefToParentFindFirst) Skip(count int) workflowTriggerEventRefToParentFindFirst { +func (r workflowTriggerScheduledRefFindFirst) Skip(count int) workflowTriggerScheduledRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -288712,7 +313590,7 @@ func (r workflowTriggerEventRefToParentFindFirst) Skip(count int) workflowTrigge return r } -func (r workflowTriggerEventRefToParentFindFirst) Take(count int) workflowTriggerEventRefToParentFindFirst { +func (r workflowTriggerScheduledRefFindFirst) Take(count int) workflowTriggerScheduledRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -288720,7 +313598,7 @@ func (r workflowTriggerEventRefToParentFindFirst) Take(count int) workflowTrigge return r } -func (r workflowTriggerEventRefToParentFindFirst) Cursor(cursor WorkflowTriggerEventRefCursorParam) workflowTriggerEventRefToParentFindFirst { +func (r workflowTriggerScheduledRefFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -288728,11 +313606,11 @@ func (r workflowTriggerEventRefToParentFindFirst) Cursor(cursor WorkflowTriggerE return r } -func (r workflowTriggerEventRefToParentFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerEventRefModel, +func (r workflowTriggerScheduledRefFindFirst) Exec(ctx context.Context) ( + *WorkflowTriggerScheduledRefModel, error, ) { - var v *WorkflowTriggerEventRefModel + var v *WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288744,11 +313622,11 @@ func (r workflowTriggerEventRefToParentFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerEventRefToParentFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerEventRef, +func (r workflowTriggerScheduledRefFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowTriggerScheduledRef, error, ) { - var v *InnerWorkflowTriggerEventRef + var v *InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288760,23 +313638,60 @@ func (r workflowTriggerEventRefToParentFindFirst) ExecInner(ctx context.Context) return v, nil } -type workflowTriggerEventRefToParentFindMany struct { +type workflowTriggerScheduledRefFindMany struct { query builder.Query } -func (r workflowTriggerEventRefToParentFindMany) getQuery() builder.Query { +func (r workflowTriggerScheduledRefFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefToParentFindMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefToParentFindMany) with() {} -func (r workflowTriggerEventRefToParentFindMany) workflowTriggerEventRefModel() {} -func (r workflowTriggerEventRefToParentFindMany) workflowTriggerEventRefRelation() {} +func (r workflowTriggerScheduledRefFindMany) with() {} +func (r workflowTriggerScheduledRefFindMany) workflowTriggerScheduledRefModel() {} +func (r workflowTriggerScheduledRefFindMany) workflowTriggerScheduledRefRelation() {} -func (r workflowTriggerEventRefToParentFindMany) With(params ...WorkflowTriggersRelationWith) workflowTriggerEventRefToParentFindMany { +func (r workflowTriggerScheduledRefActions) FindMany( + params ...WorkflowTriggerScheduledRefWhereParam, +) workflowTriggerScheduledRefFindMany { + var v workflowTriggerScheduledRefFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Outputs = workflowTriggerScheduledRefOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowTriggerScheduledRefFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowTriggerScheduledRefFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -288789,7 +313704,7 @@ func (r workflowTriggerEventRefToParentFindMany) With(params ...WorkflowTriggers return r } -func (r workflowTriggerEventRefToParentFindMany) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindMany { +func (r workflowTriggerScheduledRefFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindMany { var outputs []builder.Output for _, param := range params { @@ -288803,7 +313718,7 @@ func (r workflowTriggerEventRefToParentFindMany) Select(params ...workflowTrigge return r } -func (r workflowTriggerEventRefToParentFindMany) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefToParentFindMany { +func (r workflowTriggerScheduledRefFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindMany { var outputs []builder.Output var raw []string @@ -288811,7 +313726,7 @@ func (r workflowTriggerEventRefToParentFindMany) Omit(params ...workflowTriggerE raw = append(raw, string(param)) } - for _, output := range workflowTriggerEventRefOutput { + for _, output := range workflowTriggerScheduledRefOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -288822,7 +313737,7 @@ func (r workflowTriggerEventRefToParentFindMany) Omit(params ...workflowTriggerE return r } -func (r workflowTriggerEventRefToParentFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggerEventRefToParentFindMany { +func (r workflowTriggerScheduledRefFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowTriggerScheduledRefFindMany { var fields []builder.Field for _, param := range params { @@ -288842,7 +313757,7 @@ func (r workflowTriggerEventRefToParentFindMany) OrderBy(params ...WorkflowTrigg return r } -func (r workflowTriggerEventRefToParentFindMany) Skip(count int) workflowTriggerEventRefToParentFindMany { +func (r workflowTriggerScheduledRefFindMany) Skip(count int) workflowTriggerScheduledRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -288850,7 +313765,7 @@ func (r workflowTriggerEventRefToParentFindMany) Skip(count int) workflowTrigger return r } -func (r workflowTriggerEventRefToParentFindMany) Take(count int) workflowTriggerEventRefToParentFindMany { +func (r workflowTriggerScheduledRefFindMany) Take(count int) workflowTriggerScheduledRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -288858,7 +313773,7 @@ func (r workflowTriggerEventRefToParentFindMany) Take(count int) workflowTrigger return r } -func (r workflowTriggerEventRefToParentFindMany) Cursor(cursor WorkflowTriggerEventRefCursorParam) workflowTriggerEventRefToParentFindMany { +func (r workflowTriggerScheduledRefFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -288866,11 +313781,11 @@ func (r workflowTriggerEventRefToParentFindMany) Cursor(cursor WorkflowTriggerEv return r } -func (r workflowTriggerEventRefToParentFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerEventRefModel, +func (r workflowTriggerScheduledRefFindMany) Exec(ctx context.Context) ( + []WorkflowTriggerScheduledRefModel, error, ) { - var v []WorkflowTriggerEventRefModel + var v []WorkflowTriggerScheduledRefModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288878,11 +313793,11 @@ func (r workflowTriggerEventRefToParentFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerEventRefToParentFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerEventRef, +func (r workflowTriggerScheduledRefFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowTriggerScheduledRef, error, ) { - var v []InnerWorkflowTriggerEventRef + var v []InnerWorkflowTriggerScheduledRef if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -288890,14 +313805,14 @@ func (r workflowTriggerEventRefToParentFindMany) ExecInner(ctx context.Context) return v, nil } -func (r workflowTriggerEventRefToParentFindMany) Update(params ...WorkflowTriggerEventRefSetParam) workflowTriggerEventRefToParentUpdateMany { +func (r workflowTriggerScheduledRefFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerEventRef" + r.query.Model = "WorkflowTriggerScheduledRef" r.query.Outputs = countOutput - var v workflowTriggerEventRefToParentUpdateMany + var v workflowTriggerScheduledRefUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -288926,17 +313841,17 @@ func (r workflowTriggerEventRefToParentFindMany) Update(params ...WorkflowTrigge return v } -type workflowTriggerEventRefToParentUpdateMany struct { +type workflowTriggerScheduledRefUpdateMany struct { query builder.Query } -func (r workflowTriggerEventRefToParentUpdateMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefToParentUpdateMany) workflowTriggerEventRefModel() {} +func (r workflowTriggerScheduledRefUpdateMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerEventRefToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -288944,36 +313859,36 @@ func (r workflowTriggerEventRefToParentUpdateMany) Exec(ctx context.Context) (*B return &v, nil } -func (r workflowTriggerEventRefToParentUpdateMany) Tx() WorkflowTriggerEventRefManyTxResult { - v := newWorkflowTriggerEventRefManyTxResult() +func (r workflowTriggerScheduledRefUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerEventRefToParentFindMany) Delete() workflowTriggerEventRefToParentDeleteMany { - var v workflowTriggerEventRefToParentDeleteMany +func (r workflowTriggerScheduledRefFindMany) Delete() workflowTriggerScheduledRefDeleteMany { + var v workflowTriggerScheduledRefDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerEventRef" + v.query.Model = "WorkflowTriggerScheduledRef" v.query.Outputs = countOutput return v } -type workflowTriggerEventRefToParentDeleteMany struct { +type workflowTriggerScheduledRefDeleteMany struct { query builder.Query } -func (r workflowTriggerEventRefToParentDeleteMany) ExtractQuery() builder.Query { +func (r workflowTriggerScheduledRefDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerEventRefToParentDeleteMany) workflowTriggerEventRefModel() {} +func (p workflowTriggerScheduledRefDeleteMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerEventRefToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowTriggerScheduledRefDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -288981,52 +313896,30 @@ func (r workflowTriggerEventRefToParentDeleteMany) Exec(ctx context.Context) (*B return &v, nil } -func (r workflowTriggerEventRefToParentDeleteMany) Tx() WorkflowTriggerEventRefManyTxResult { - v := newWorkflowTriggerEventRefManyTxResult() +func (r workflowTriggerScheduledRefDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { + v := newWorkflowTriggerScheduledRefManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerEventRefFindUnique struct { +type jobToTenantFindUnique struct { query builder.Query } -func (r workflowTriggerEventRefFindUnique) getQuery() builder.Query { +func (r jobToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefFindUnique) ExtractQuery() builder.Query { +func (r jobToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefFindUnique) with() {} -func (r workflowTriggerEventRefFindUnique) workflowTriggerEventRefModel() {} -func (r workflowTriggerEventRefFindUnique) workflowTriggerEventRefRelation() {} - -func (r workflowTriggerEventRefActions) FindUnique( - params WorkflowTriggerEventRefEqualsUniqueWhereParam, -) workflowTriggerEventRefFindUnique { - var v workflowTriggerEventRefFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WorkflowTriggerEventRef" - v.query.Outputs = workflowTriggerEventRefOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r jobToTenantFindUnique) with() {} +func (r jobToTenantFindUnique) jobModel() {} +func (r jobToTenantFindUnique) jobRelation() {} -func (r workflowTriggerEventRefFindUnique) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggerEventRefFindUnique { +func (r jobToTenantFindUnique) With(params ...TenantRelationWith) jobToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -289039,7 +313932,7 @@ func (r workflowTriggerEventRefFindUnique) With(params ...WorkflowTriggerEventRe return r } -func (r workflowTriggerEventRefFindUnique) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindUnique { +func (r jobToTenantFindUnique) Select(params ...jobPrismaFields) jobToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -289053,7 +313946,7 @@ func (r workflowTriggerEventRefFindUnique) Select(params ...workflowTriggerEvent return r } -func (r workflowTriggerEventRefFindUnique) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindUnique { +func (r jobToTenantFindUnique) Omit(params ...jobPrismaFields) jobToTenantFindUnique { var outputs []builder.Output var raw []string @@ -289061,7 +313954,7 @@ func (r workflowTriggerEventRefFindUnique) Omit(params ...workflowTriggerEventRe raw = append(raw, string(param)) } - for _, output := range workflowTriggerEventRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -289072,11 +313965,11 @@ func (r workflowTriggerEventRefFindUnique) Omit(params ...workflowTriggerEventRe return r } -func (r workflowTriggerEventRefFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerEventRefModel, +func (r jobToTenantFindUnique) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerEventRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289088,11 +313981,11 @@ func (r workflowTriggerEventRefFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerEventRefFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerEventRef, +func (r jobToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerEventRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289104,12 +313997,12 @@ func (r workflowTriggerEventRefFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggerEventRefFindUnique) Update(params ...WorkflowTriggerEventRefSetParam) workflowTriggerEventRefUpdateUnique { +func (r jobToTenantFindUnique) Update(params ...JobSetParam) jobToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerEventRef" + r.query.Model = "Job" - var v workflowTriggerEventRefUpdateUnique + var v jobToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -289138,120 +314031,83 @@ func (r workflowTriggerEventRefFindUnique) Update(params ...WorkflowTriggerEvent return v } -type workflowTriggerEventRefUpdateUnique struct { +type jobToTenantUpdateUnique struct { query builder.Query } -func (r workflowTriggerEventRefUpdateUnique) ExtractQuery() builder.Query { +func (r jobToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefUpdateUnique) workflowTriggerEventRefModel() {} +func (r jobToTenantUpdateUnique) jobModel() {} -func (r workflowTriggerEventRefUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { - var v WorkflowTriggerEventRefModel +func (r jobToTenantUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerEventRefUpdateUnique) Tx() WorkflowTriggerEventRefUniqueTxResult { - v := newWorkflowTriggerEventRefUniqueTxResult() +func (r jobToTenantUpdateUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerEventRefFindUnique) Delete() workflowTriggerEventRefDeleteUnique { - var v workflowTriggerEventRefDeleteUnique +func (r jobToTenantFindUnique) Delete() jobToTenantDeleteUnique { + var v jobToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerEventRef" + v.query.Model = "Job" return v } -type workflowTriggerEventRefDeleteUnique struct { +type jobToTenantDeleteUnique struct { query builder.Query } -func (r workflowTriggerEventRefDeleteUnique) ExtractQuery() builder.Query { +func (r jobToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerEventRefDeleteUnique) workflowTriggerEventRefModel() {} +func (p jobToTenantDeleteUnique) jobModel() {} -func (r workflowTriggerEventRefDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerEventRefModel, error) { - var v WorkflowTriggerEventRefModel +func (r jobToTenantDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerEventRefDeleteUnique) Tx() WorkflowTriggerEventRefUniqueTxResult { - v := newWorkflowTriggerEventRefUniqueTxResult() +func (r jobToTenantDeleteUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerEventRefFindFirst struct { +type jobToTenantFindFirst struct { query builder.Query } -func (r workflowTriggerEventRefFindFirst) getQuery() builder.Query { +func (r jobToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefFindFirst) ExtractQuery() builder.Query { +func (r jobToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefFindFirst) with() {} -func (r workflowTriggerEventRefFindFirst) workflowTriggerEventRefModel() {} -func (r workflowTriggerEventRefFindFirst) workflowTriggerEventRefRelation() {} - -func (r workflowTriggerEventRefActions) FindFirst( - params ...WorkflowTriggerEventRefWhereParam, -) workflowTriggerEventRefFindFirst { - var v workflowTriggerEventRefFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WorkflowTriggerEventRef" - v.query.Outputs = workflowTriggerEventRefOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r jobToTenantFindFirst) with() {} +func (r jobToTenantFindFirst) jobModel() {} +func (r jobToTenantFindFirst) jobRelation() {} -func (r workflowTriggerEventRefFindFirst) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggerEventRefFindFirst { +func (r jobToTenantFindFirst) With(params ...TenantRelationWith) jobToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -289264,7 +314120,7 @@ func (r workflowTriggerEventRefFindFirst) With(params ...WorkflowTriggerEventRef return r } -func (r workflowTriggerEventRefFindFirst) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindFirst { +func (r jobToTenantFindFirst) Select(params ...jobPrismaFields) jobToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -289278,7 +314134,7 @@ func (r workflowTriggerEventRefFindFirst) Select(params ...workflowTriggerEventR return r } -func (r workflowTriggerEventRefFindFirst) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindFirst { +func (r jobToTenantFindFirst) Omit(params ...jobPrismaFields) jobToTenantFindFirst { var outputs []builder.Output var raw []string @@ -289286,7 +314142,7 @@ func (r workflowTriggerEventRefFindFirst) Omit(params ...workflowTriggerEventRef raw = append(raw, string(param)) } - for _, output := range workflowTriggerEventRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -289297,7 +314153,7 @@ func (r workflowTriggerEventRefFindFirst) Omit(params ...workflowTriggerEventRef return r } -func (r workflowTriggerEventRefFindFirst) OrderBy(params ...WorkflowTriggerEventRefOrderByParam) workflowTriggerEventRefFindFirst { +func (r jobToTenantFindFirst) OrderBy(params ...TenantOrderByParam) jobToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -289317,7 +314173,7 @@ func (r workflowTriggerEventRefFindFirst) OrderBy(params ...WorkflowTriggerEvent return r } -func (r workflowTriggerEventRefFindFirst) Skip(count int) workflowTriggerEventRefFindFirst { +func (r jobToTenantFindFirst) Skip(count int) jobToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -289325,7 +314181,7 @@ func (r workflowTriggerEventRefFindFirst) Skip(count int) workflowTriggerEventRe return r } -func (r workflowTriggerEventRefFindFirst) Take(count int) workflowTriggerEventRefFindFirst { +func (r jobToTenantFindFirst) Take(count int) jobToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -289333,7 +314189,7 @@ func (r workflowTriggerEventRefFindFirst) Take(count int) workflowTriggerEventRe return r } -func (r workflowTriggerEventRefFindFirst) Cursor(cursor WorkflowTriggerEventRefCursorParam) workflowTriggerEventRefFindFirst { +func (r jobToTenantFindFirst) Cursor(cursor JobCursorParam) jobToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -289341,11 +314197,11 @@ func (r workflowTriggerEventRefFindFirst) Cursor(cursor WorkflowTriggerEventRefC return r } -func (r workflowTriggerEventRefFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerEventRefModel, +func (r jobToTenantFindFirst) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerEventRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289357,11 +314213,11 @@ func (r workflowTriggerEventRefFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerEventRefFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerEventRef, +func (r jobToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerEventRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289373,60 +314229,23 @@ func (r workflowTriggerEventRefFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTriggerEventRefFindMany struct { +type jobToTenantFindMany struct { query builder.Query } -func (r workflowTriggerEventRefFindMany) getQuery() builder.Query { +func (r jobToTenantFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefFindMany) ExtractQuery() builder.Query { +func (r jobToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefFindMany) with() {} -func (r workflowTriggerEventRefFindMany) workflowTriggerEventRefModel() {} -func (r workflowTriggerEventRefFindMany) workflowTriggerEventRefRelation() {} - -func (r workflowTriggerEventRefActions) FindMany( - params ...WorkflowTriggerEventRefWhereParam, -) workflowTriggerEventRefFindMany { - var v workflowTriggerEventRefFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WorkflowTriggerEventRef" - v.query.Outputs = workflowTriggerEventRefOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r jobToTenantFindMany) with() {} +func (r jobToTenantFindMany) jobModel() {} +func (r jobToTenantFindMany) jobRelation() {} -func (r workflowTriggerEventRefFindMany) With(params ...WorkflowTriggerEventRefRelationWith) workflowTriggerEventRefFindMany { +func (r jobToTenantFindMany) With(params ...TenantRelationWith) jobToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -289439,7 +314258,7 @@ func (r workflowTriggerEventRefFindMany) With(params ...WorkflowTriggerEventRefR return r } -func (r workflowTriggerEventRefFindMany) Select(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindMany { +func (r jobToTenantFindMany) Select(params ...jobPrismaFields) jobToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -289453,7 +314272,7 @@ func (r workflowTriggerEventRefFindMany) Select(params ...workflowTriggerEventRe return r } -func (r workflowTriggerEventRefFindMany) Omit(params ...workflowTriggerEventRefPrismaFields) workflowTriggerEventRefFindMany { +func (r jobToTenantFindMany) Omit(params ...jobPrismaFields) jobToTenantFindMany { var outputs []builder.Output var raw []string @@ -289461,7 +314280,7 @@ func (r workflowTriggerEventRefFindMany) Omit(params ...workflowTriggerEventRefP raw = append(raw, string(param)) } - for _, output := range workflowTriggerEventRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -289472,7 +314291,7 @@ func (r workflowTriggerEventRefFindMany) Omit(params ...workflowTriggerEventRefP return r } -func (r workflowTriggerEventRefFindMany) OrderBy(params ...WorkflowTriggerEventRefOrderByParam) workflowTriggerEventRefFindMany { +func (r jobToTenantFindMany) OrderBy(params ...TenantOrderByParam) jobToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -289492,7 +314311,7 @@ func (r workflowTriggerEventRefFindMany) OrderBy(params ...WorkflowTriggerEventR return r } -func (r workflowTriggerEventRefFindMany) Skip(count int) workflowTriggerEventRefFindMany { +func (r jobToTenantFindMany) Skip(count int) jobToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -289500,7 +314319,7 @@ func (r workflowTriggerEventRefFindMany) Skip(count int) workflowTriggerEventRef return r } -func (r workflowTriggerEventRefFindMany) Take(count int) workflowTriggerEventRefFindMany { +func (r jobToTenantFindMany) Take(count int) jobToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -289508,7 +314327,7 @@ func (r workflowTriggerEventRefFindMany) Take(count int) workflowTriggerEventRef return r } -func (r workflowTriggerEventRefFindMany) Cursor(cursor WorkflowTriggerEventRefCursorParam) workflowTriggerEventRefFindMany { +func (r jobToTenantFindMany) Cursor(cursor JobCursorParam) jobToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -289516,11 +314335,11 @@ func (r workflowTriggerEventRefFindMany) Cursor(cursor WorkflowTriggerEventRefCu return r } -func (r workflowTriggerEventRefFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerEventRefModel, +func (r jobToTenantFindMany) Exec(ctx context.Context) ( + []JobModel, error, ) { - var v []WorkflowTriggerEventRefModel + var v []JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289528,11 +314347,11 @@ func (r workflowTriggerEventRefFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerEventRefFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerEventRef, +func (r jobToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerJob, error, ) { - var v []InnerWorkflowTriggerEventRef + var v []InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289540,14 +314359,14 @@ func (r workflowTriggerEventRefFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggerEventRefFindMany) Update(params ...WorkflowTriggerEventRefSetParam) workflowTriggerEventRefUpdateMany { +func (r jobToTenantFindMany) Update(params ...JobSetParam) jobToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerEventRef" + r.query.Model = "Job" r.query.Outputs = countOutput - var v workflowTriggerEventRefUpdateMany + var v jobToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -289576,17 +314395,17 @@ func (r workflowTriggerEventRefFindMany) Update(params ...WorkflowTriggerEventRe return v } -type workflowTriggerEventRefUpdateMany struct { +type jobToTenantUpdateMany struct { query builder.Query } -func (r workflowTriggerEventRefUpdateMany) ExtractQuery() builder.Query { +func (r jobToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerEventRefUpdateMany) workflowTriggerEventRefModel() {} +func (r jobToTenantUpdateMany) jobModel() {} -func (r workflowTriggerEventRefUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -289594,36 +314413,36 @@ func (r workflowTriggerEventRefUpdateMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r workflowTriggerEventRefUpdateMany) Tx() WorkflowTriggerEventRefManyTxResult { - v := newWorkflowTriggerEventRefManyTxResult() +func (r jobToTenantUpdateMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerEventRefFindMany) Delete() workflowTriggerEventRefDeleteMany { - var v workflowTriggerEventRefDeleteMany +func (r jobToTenantFindMany) Delete() jobToTenantDeleteMany { + var v jobToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerEventRef" + v.query.Model = "Job" v.query.Outputs = countOutput return v } -type workflowTriggerEventRefDeleteMany struct { +type jobToTenantDeleteMany struct { query builder.Query } -func (r workflowTriggerEventRefDeleteMany) ExtractQuery() builder.Query { +func (r jobToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerEventRefDeleteMany) workflowTriggerEventRefModel() {} +func (p jobToTenantDeleteMany) jobModel() {} -func (r workflowTriggerEventRefDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -289631,30 +314450,30 @@ func (r workflowTriggerEventRefDeleteMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r workflowTriggerEventRefDeleteMany) Tx() WorkflowTriggerEventRefManyTxResult { - v := newWorkflowTriggerEventRefManyTxResult() +func (r jobToTenantDeleteMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerCronRefToParentFindUnique struct { +type jobToWorkflowFindUnique struct { query builder.Query } -func (r workflowTriggerCronRefToParentFindUnique) getQuery() builder.Query { +func (r jobToWorkflowFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToParentFindUnique) ExtractQuery() builder.Query { +func (r jobToWorkflowFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToParentFindUnique) with() {} -func (r workflowTriggerCronRefToParentFindUnique) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToParentFindUnique) workflowTriggerCronRefRelation() {} +func (r jobToWorkflowFindUnique) with() {} +func (r jobToWorkflowFindUnique) jobModel() {} +func (r jobToWorkflowFindUnique) jobRelation() {} -func (r workflowTriggerCronRefToParentFindUnique) With(params ...WorkflowTriggersRelationWith) workflowTriggerCronRefToParentFindUnique { +func (r jobToWorkflowFindUnique) With(params ...WorkflowVersionRelationWith) jobToWorkflowFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -289667,7 +314486,7 @@ func (r workflowTriggerCronRefToParentFindUnique) With(params ...WorkflowTrigger return r } -func (r workflowTriggerCronRefToParentFindUnique) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindUnique { +func (r jobToWorkflowFindUnique) Select(params ...jobPrismaFields) jobToWorkflowFindUnique { var outputs []builder.Output for _, param := range params { @@ -289681,7 +314500,7 @@ func (r workflowTriggerCronRefToParentFindUnique) Select(params ...workflowTrigg return r } -func (r workflowTriggerCronRefToParentFindUnique) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindUnique { +func (r jobToWorkflowFindUnique) Omit(params ...jobPrismaFields) jobToWorkflowFindUnique { var outputs []builder.Output var raw []string @@ -289689,7 +314508,7 @@ func (r workflowTriggerCronRefToParentFindUnique) Omit(params ...workflowTrigger raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -289700,11 +314519,11 @@ func (r workflowTriggerCronRefToParentFindUnique) Omit(params ...workflowTrigger return r } -func (r workflowTriggerCronRefToParentFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerCronRefModel, +func (r jobToWorkflowFindUnique) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerCronRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289716,11 +314535,11 @@ func (r workflowTriggerCronRefToParentFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToParentFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerCronRef, +func (r jobToWorkflowFindUnique) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerCronRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289732,12 +314551,12 @@ func (r workflowTriggerCronRefToParentFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r workflowTriggerCronRefToParentFindUnique) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToParentUpdateUnique { +func (r jobToWorkflowFindUnique) Update(params ...JobSetParam) jobToWorkflowUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerCronRef" + r.query.Model = "Job" - var v workflowTriggerCronRefToParentUpdateUnique + var v jobToWorkflowUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -289766,83 +314585,83 @@ func (r workflowTriggerCronRefToParentFindUnique) Update(params ...WorkflowTrigg return v } -type workflowTriggerCronRefToParentUpdateUnique struct { +type jobToWorkflowUpdateUnique struct { query builder.Query } -func (r workflowTriggerCronRefToParentUpdateUnique) ExtractQuery() builder.Query { +func (r jobToWorkflowUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToParentUpdateUnique) workflowTriggerCronRefModel() {} +func (r jobToWorkflowUpdateUnique) jobModel() {} -func (r workflowTriggerCronRefToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r jobToWorkflowUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefToParentUpdateUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r jobToWorkflowUpdateUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerCronRefToParentFindUnique) Delete() workflowTriggerCronRefToParentDeleteUnique { - var v workflowTriggerCronRefToParentDeleteUnique +func (r jobToWorkflowFindUnique) Delete() jobToWorkflowDeleteUnique { + var v jobToWorkflowDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerCronRef" + v.query.Model = "Job" return v } -type workflowTriggerCronRefToParentDeleteUnique struct { +type jobToWorkflowDeleteUnique struct { query builder.Query } -func (r workflowTriggerCronRefToParentDeleteUnique) ExtractQuery() builder.Query { +func (r jobToWorkflowDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerCronRefToParentDeleteUnique) workflowTriggerCronRefModel() {} +func (p jobToWorkflowDeleteUnique) jobModel() {} -func (r workflowTriggerCronRefToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r jobToWorkflowDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefToParentDeleteUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r jobToWorkflowDeleteUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerCronRefToParentFindFirst struct { +type jobToWorkflowFindFirst struct { query builder.Query } -func (r workflowTriggerCronRefToParentFindFirst) getQuery() builder.Query { +func (r jobToWorkflowFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToParentFindFirst) ExtractQuery() builder.Query { +func (r jobToWorkflowFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToParentFindFirst) with() {} -func (r workflowTriggerCronRefToParentFindFirst) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToParentFindFirst) workflowTriggerCronRefRelation() {} +func (r jobToWorkflowFindFirst) with() {} +func (r jobToWorkflowFindFirst) jobModel() {} +func (r jobToWorkflowFindFirst) jobRelation() {} -func (r workflowTriggerCronRefToParentFindFirst) With(params ...WorkflowTriggersRelationWith) workflowTriggerCronRefToParentFindFirst { +func (r jobToWorkflowFindFirst) With(params ...WorkflowVersionRelationWith) jobToWorkflowFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -289855,7 +314674,7 @@ func (r workflowTriggerCronRefToParentFindFirst) With(params ...WorkflowTriggers return r } -func (r workflowTriggerCronRefToParentFindFirst) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindFirst { +func (r jobToWorkflowFindFirst) Select(params ...jobPrismaFields) jobToWorkflowFindFirst { var outputs []builder.Output for _, param := range params { @@ -289869,7 +314688,7 @@ func (r workflowTriggerCronRefToParentFindFirst) Select(params ...workflowTrigge return r } -func (r workflowTriggerCronRefToParentFindFirst) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindFirst { +func (r jobToWorkflowFindFirst) Omit(params ...jobPrismaFields) jobToWorkflowFindFirst { var outputs []builder.Output var raw []string @@ -289877,7 +314696,7 @@ func (r workflowTriggerCronRefToParentFindFirst) Omit(params ...workflowTriggerC raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -289888,7 +314707,7 @@ func (r workflowTriggerCronRefToParentFindFirst) Omit(params ...workflowTriggerC return r } -func (r workflowTriggerCronRefToParentFindFirst) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggerCronRefToParentFindFirst { +func (r jobToWorkflowFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) jobToWorkflowFindFirst { var fields []builder.Field for _, param := range params { @@ -289908,7 +314727,7 @@ func (r workflowTriggerCronRefToParentFindFirst) OrderBy(params ...WorkflowTrigg return r } -func (r workflowTriggerCronRefToParentFindFirst) Skip(count int) workflowTriggerCronRefToParentFindFirst { +func (r jobToWorkflowFindFirst) Skip(count int) jobToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -289916,7 +314735,7 @@ func (r workflowTriggerCronRefToParentFindFirst) Skip(count int) workflowTrigger return r } -func (r workflowTriggerCronRefToParentFindFirst) Take(count int) workflowTriggerCronRefToParentFindFirst { +func (r jobToWorkflowFindFirst) Take(count int) jobToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -289924,7 +314743,7 @@ func (r workflowTriggerCronRefToParentFindFirst) Take(count int) workflowTrigger return r } -func (r workflowTriggerCronRefToParentFindFirst) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToParentFindFirst { +func (r jobToWorkflowFindFirst) Cursor(cursor JobCursorParam) jobToWorkflowFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -289932,11 +314751,11 @@ func (r workflowTriggerCronRefToParentFindFirst) Cursor(cursor WorkflowTriggerCr return r } -func (r workflowTriggerCronRefToParentFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerCronRefModel, +func (r jobToWorkflowFindFirst) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerCronRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289948,11 +314767,11 @@ func (r workflowTriggerCronRefToParentFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToParentFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerCronRef, +func (r jobToWorkflowFindFirst) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerCronRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -289964,23 +314783,23 @@ func (r workflowTriggerCronRefToParentFindFirst) ExecInner(ctx context.Context) return v, nil } -type workflowTriggerCronRefToParentFindMany struct { +type jobToWorkflowFindMany struct { query builder.Query } -func (r workflowTriggerCronRefToParentFindMany) getQuery() builder.Query { +func (r jobToWorkflowFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToParentFindMany) ExtractQuery() builder.Query { +func (r jobToWorkflowFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToParentFindMany) with() {} -func (r workflowTriggerCronRefToParentFindMany) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToParentFindMany) workflowTriggerCronRefRelation() {} +func (r jobToWorkflowFindMany) with() {} +func (r jobToWorkflowFindMany) jobModel() {} +func (r jobToWorkflowFindMany) jobRelation() {} -func (r workflowTriggerCronRefToParentFindMany) With(params ...WorkflowTriggersRelationWith) workflowTriggerCronRefToParentFindMany { +func (r jobToWorkflowFindMany) With(params ...WorkflowVersionRelationWith) jobToWorkflowFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -289993,7 +314812,7 @@ func (r workflowTriggerCronRefToParentFindMany) With(params ...WorkflowTriggersR return r } -func (r workflowTriggerCronRefToParentFindMany) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindMany { +func (r jobToWorkflowFindMany) Select(params ...jobPrismaFields) jobToWorkflowFindMany { var outputs []builder.Output for _, param := range params { @@ -290007,7 +314826,7 @@ func (r workflowTriggerCronRefToParentFindMany) Select(params ...workflowTrigger return r } -func (r workflowTriggerCronRefToParentFindMany) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToParentFindMany { +func (r jobToWorkflowFindMany) Omit(params ...jobPrismaFields) jobToWorkflowFindMany { var outputs []builder.Output var raw []string @@ -290015,7 +314834,7 @@ func (r workflowTriggerCronRefToParentFindMany) Omit(params ...workflowTriggerCr raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -290026,7 +314845,7 @@ func (r workflowTriggerCronRefToParentFindMany) Omit(params ...workflowTriggerCr return r } -func (r workflowTriggerCronRefToParentFindMany) OrderBy(params ...WorkflowTriggersOrderByParam) workflowTriggerCronRefToParentFindMany { +func (r jobToWorkflowFindMany) OrderBy(params ...WorkflowVersionOrderByParam) jobToWorkflowFindMany { var fields []builder.Field for _, param := range params { @@ -290046,7 +314865,7 @@ func (r workflowTriggerCronRefToParentFindMany) OrderBy(params ...WorkflowTrigge return r } -func (r workflowTriggerCronRefToParentFindMany) Skip(count int) workflowTriggerCronRefToParentFindMany { +func (r jobToWorkflowFindMany) Skip(count int) jobToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -290054,7 +314873,7 @@ func (r workflowTriggerCronRefToParentFindMany) Skip(count int) workflowTriggerC return r } -func (r workflowTriggerCronRefToParentFindMany) Take(count int) workflowTriggerCronRefToParentFindMany { +func (r jobToWorkflowFindMany) Take(count int) jobToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -290062,7 +314881,7 @@ func (r workflowTriggerCronRefToParentFindMany) Take(count int) workflowTriggerC return r } -func (r workflowTriggerCronRefToParentFindMany) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToParentFindMany { +func (r jobToWorkflowFindMany) Cursor(cursor JobCursorParam) jobToWorkflowFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -290070,11 +314889,11 @@ func (r workflowTriggerCronRefToParentFindMany) Cursor(cursor WorkflowTriggerCro return r } -func (r workflowTriggerCronRefToParentFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerCronRefModel, +func (r jobToWorkflowFindMany) Exec(ctx context.Context) ( + []JobModel, error, ) { - var v []WorkflowTriggerCronRefModel + var v []JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290082,11 +314901,11 @@ func (r workflowTriggerCronRefToParentFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToParentFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerCronRef, +func (r jobToWorkflowFindMany) ExecInner(ctx context.Context) ( + []InnerJob, error, ) { - var v []InnerWorkflowTriggerCronRef + var v []InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290094,14 +314913,14 @@ func (r workflowTriggerCronRefToParentFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToParentFindMany) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToParentUpdateMany { +func (r jobToWorkflowFindMany) Update(params ...JobSetParam) jobToWorkflowUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerCronRef" + r.query.Model = "Job" r.query.Outputs = countOutput - var v workflowTriggerCronRefToParentUpdateMany + var v jobToWorkflowUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -290130,17 +314949,17 @@ func (r workflowTriggerCronRefToParentFindMany) Update(params ...WorkflowTrigger return v } -type workflowTriggerCronRefToParentUpdateMany struct { +type jobToWorkflowUpdateMany struct { query builder.Query } -func (r workflowTriggerCronRefToParentUpdateMany) ExtractQuery() builder.Query { +func (r jobToWorkflowUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToParentUpdateMany) workflowTriggerCronRefModel() {} +func (r jobToWorkflowUpdateMany) jobModel() {} -func (r workflowTriggerCronRefToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -290148,36 +314967,36 @@ func (r workflowTriggerCronRefToParentUpdateMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowTriggerCronRefToParentUpdateMany) Tx() WorkflowTriggerCronRefManyTxResult { - v := newWorkflowTriggerCronRefManyTxResult() +func (r jobToWorkflowUpdateMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerCronRefToParentFindMany) Delete() workflowTriggerCronRefToParentDeleteMany { - var v workflowTriggerCronRefToParentDeleteMany +func (r jobToWorkflowFindMany) Delete() jobToWorkflowDeleteMany { + var v jobToWorkflowDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerCronRef" + v.query.Model = "Job" v.query.Outputs = countOutput return v } -type workflowTriggerCronRefToParentDeleteMany struct { +type jobToWorkflowDeleteMany struct { query builder.Query } -func (r workflowTriggerCronRefToParentDeleteMany) ExtractQuery() builder.Query { +func (r jobToWorkflowDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerCronRefToParentDeleteMany) workflowTriggerCronRefModel() {} +func (p jobToWorkflowDeleteMany) jobModel() {} -func (r workflowTriggerCronRefToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -290185,30 +315004,30 @@ func (r workflowTriggerCronRefToParentDeleteMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowTriggerCronRefToParentDeleteMany) Tx() WorkflowTriggerCronRefManyTxResult { - v := newWorkflowTriggerCronRefManyTxResult() +func (r jobToWorkflowDeleteMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerCronRefToTickerFindUnique struct { +type jobToStepsFindUnique struct { query builder.Query } -func (r workflowTriggerCronRefToTickerFindUnique) getQuery() builder.Query { +func (r jobToStepsFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTickerFindUnique) ExtractQuery() builder.Query { +func (r jobToStepsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTickerFindUnique) with() {} -func (r workflowTriggerCronRefToTickerFindUnique) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToTickerFindUnique) workflowTriggerCronRefRelation() {} +func (r jobToStepsFindUnique) with() {} +func (r jobToStepsFindUnique) jobModel() {} +func (r jobToStepsFindUnique) jobRelation() {} -func (r workflowTriggerCronRefToTickerFindUnique) With(params ...TickerRelationWith) workflowTriggerCronRefToTickerFindUnique { +func (r jobToStepsFindUnique) With(params ...StepRelationWith) jobToStepsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -290221,7 +315040,7 @@ func (r workflowTriggerCronRefToTickerFindUnique) With(params ...TickerRelationW return r } -func (r workflowTriggerCronRefToTickerFindUnique) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindUnique { +func (r jobToStepsFindUnique) Select(params ...jobPrismaFields) jobToStepsFindUnique { var outputs []builder.Output for _, param := range params { @@ -290235,7 +315054,7 @@ func (r workflowTriggerCronRefToTickerFindUnique) Select(params ...workflowTrigg return r } -func (r workflowTriggerCronRefToTickerFindUnique) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindUnique { +func (r jobToStepsFindUnique) Omit(params ...jobPrismaFields) jobToStepsFindUnique { var outputs []builder.Output var raw []string @@ -290243,7 +315062,7 @@ func (r workflowTriggerCronRefToTickerFindUnique) Omit(params ...workflowTrigger raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -290254,11 +315073,11 @@ func (r workflowTriggerCronRefToTickerFindUnique) Omit(params ...workflowTrigger return r } -func (r workflowTriggerCronRefToTickerFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerCronRefModel, +func (r jobToStepsFindUnique) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerCronRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290270,11 +315089,11 @@ func (r workflowTriggerCronRefToTickerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToTickerFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerCronRef, +func (r jobToStepsFindUnique) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerCronRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290286,12 +315105,12 @@ func (r workflowTriggerCronRefToTickerFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r workflowTriggerCronRefToTickerFindUnique) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToTickerUpdateUnique { +func (r jobToStepsFindUnique) Update(params ...JobSetParam) jobToStepsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerCronRef" + r.query.Model = "Job" - var v workflowTriggerCronRefToTickerUpdateUnique + var v jobToStepsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -290320,83 +315139,83 @@ func (r workflowTriggerCronRefToTickerFindUnique) Update(params ...WorkflowTrigg return v } -type workflowTriggerCronRefToTickerUpdateUnique struct { +type jobToStepsUpdateUnique struct { query builder.Query } -func (r workflowTriggerCronRefToTickerUpdateUnique) ExtractQuery() builder.Query { +func (r jobToStepsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTickerUpdateUnique) workflowTriggerCronRefModel() {} +func (r jobToStepsUpdateUnique) jobModel() {} -func (r workflowTriggerCronRefToTickerUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r jobToStepsUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefToTickerUpdateUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r jobToStepsUpdateUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerCronRefToTickerFindUnique) Delete() workflowTriggerCronRefToTickerDeleteUnique { - var v workflowTriggerCronRefToTickerDeleteUnique +func (r jobToStepsFindUnique) Delete() jobToStepsDeleteUnique { + var v jobToStepsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerCronRef" + v.query.Model = "Job" return v } -type workflowTriggerCronRefToTickerDeleteUnique struct { +type jobToStepsDeleteUnique struct { query builder.Query } -func (r workflowTriggerCronRefToTickerDeleteUnique) ExtractQuery() builder.Query { +func (r jobToStepsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerCronRefToTickerDeleteUnique) workflowTriggerCronRefModel() {} +func (p jobToStepsDeleteUnique) jobModel() {} -func (r workflowTriggerCronRefToTickerDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r jobToStepsDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefToTickerDeleteUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r jobToStepsDeleteUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerCronRefToTickerFindFirst struct { +type jobToStepsFindFirst struct { query builder.Query } -func (r workflowTriggerCronRefToTickerFindFirst) getQuery() builder.Query { +func (r jobToStepsFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTickerFindFirst) ExtractQuery() builder.Query { +func (r jobToStepsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTickerFindFirst) with() {} -func (r workflowTriggerCronRefToTickerFindFirst) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToTickerFindFirst) workflowTriggerCronRefRelation() {} +func (r jobToStepsFindFirst) with() {} +func (r jobToStepsFindFirst) jobModel() {} +func (r jobToStepsFindFirst) jobRelation() {} -func (r workflowTriggerCronRefToTickerFindFirst) With(params ...TickerRelationWith) workflowTriggerCronRefToTickerFindFirst { +func (r jobToStepsFindFirst) With(params ...StepRelationWith) jobToStepsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -290409,7 +315228,7 @@ func (r workflowTriggerCronRefToTickerFindFirst) With(params ...TickerRelationWi return r } -func (r workflowTriggerCronRefToTickerFindFirst) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindFirst { +func (r jobToStepsFindFirst) Select(params ...jobPrismaFields) jobToStepsFindFirst { var outputs []builder.Output for _, param := range params { @@ -290423,7 +315242,7 @@ func (r workflowTriggerCronRefToTickerFindFirst) Select(params ...workflowTrigge return r } -func (r workflowTriggerCronRefToTickerFindFirst) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindFirst { +func (r jobToStepsFindFirst) Omit(params ...jobPrismaFields) jobToStepsFindFirst { var outputs []builder.Output var raw []string @@ -290431,7 +315250,7 @@ func (r workflowTriggerCronRefToTickerFindFirst) Omit(params ...workflowTriggerC raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -290442,7 +315261,7 @@ func (r workflowTriggerCronRefToTickerFindFirst) Omit(params ...workflowTriggerC return r } -func (r workflowTriggerCronRefToTickerFindFirst) OrderBy(params ...TickerOrderByParam) workflowTriggerCronRefToTickerFindFirst { +func (r jobToStepsFindFirst) OrderBy(params ...StepOrderByParam) jobToStepsFindFirst { var fields []builder.Field for _, param := range params { @@ -290462,7 +315281,7 @@ func (r workflowTriggerCronRefToTickerFindFirst) OrderBy(params ...TickerOrderBy return r } -func (r workflowTriggerCronRefToTickerFindFirst) Skip(count int) workflowTriggerCronRefToTickerFindFirst { +func (r jobToStepsFindFirst) Skip(count int) jobToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -290470,7 +315289,7 @@ func (r workflowTriggerCronRefToTickerFindFirst) Skip(count int) workflowTrigger return r } -func (r workflowTriggerCronRefToTickerFindFirst) Take(count int) workflowTriggerCronRefToTickerFindFirst { +func (r jobToStepsFindFirst) Take(count int) jobToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -290478,7 +315297,7 @@ func (r workflowTriggerCronRefToTickerFindFirst) Take(count int) workflowTrigger return r } -func (r workflowTriggerCronRefToTickerFindFirst) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToTickerFindFirst { +func (r jobToStepsFindFirst) Cursor(cursor JobCursorParam) jobToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -290486,11 +315305,11 @@ func (r workflowTriggerCronRefToTickerFindFirst) Cursor(cursor WorkflowTriggerCr return r } -func (r workflowTriggerCronRefToTickerFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerCronRefModel, +func (r jobToStepsFindFirst) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerCronRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290502,11 +315321,11 @@ func (r workflowTriggerCronRefToTickerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToTickerFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerCronRef, +func (r jobToStepsFindFirst) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerCronRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290518,23 +315337,23 @@ func (r workflowTriggerCronRefToTickerFindFirst) ExecInner(ctx context.Context) return v, nil } -type workflowTriggerCronRefToTickerFindMany struct { +type jobToStepsFindMany struct { query builder.Query } -func (r workflowTriggerCronRefToTickerFindMany) getQuery() builder.Query { +func (r jobToStepsFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTickerFindMany) ExtractQuery() builder.Query { +func (r jobToStepsFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTickerFindMany) with() {} -func (r workflowTriggerCronRefToTickerFindMany) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToTickerFindMany) workflowTriggerCronRefRelation() {} +func (r jobToStepsFindMany) with() {} +func (r jobToStepsFindMany) jobModel() {} +func (r jobToStepsFindMany) jobRelation() {} -func (r workflowTriggerCronRefToTickerFindMany) With(params ...TickerRelationWith) workflowTriggerCronRefToTickerFindMany { +func (r jobToStepsFindMany) With(params ...StepRelationWith) jobToStepsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -290547,7 +315366,7 @@ func (r workflowTriggerCronRefToTickerFindMany) With(params ...TickerRelationWit return r } -func (r workflowTriggerCronRefToTickerFindMany) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindMany { +func (r jobToStepsFindMany) Select(params ...jobPrismaFields) jobToStepsFindMany { var outputs []builder.Output for _, param := range params { @@ -290561,7 +315380,7 @@ func (r workflowTriggerCronRefToTickerFindMany) Select(params ...workflowTrigger return r } -func (r workflowTriggerCronRefToTickerFindMany) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTickerFindMany { +func (r jobToStepsFindMany) Omit(params ...jobPrismaFields) jobToStepsFindMany { var outputs []builder.Output var raw []string @@ -290569,7 +315388,7 @@ func (r workflowTriggerCronRefToTickerFindMany) Omit(params ...workflowTriggerCr raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -290580,7 +315399,7 @@ func (r workflowTriggerCronRefToTickerFindMany) Omit(params ...workflowTriggerCr return r } -func (r workflowTriggerCronRefToTickerFindMany) OrderBy(params ...TickerOrderByParam) workflowTriggerCronRefToTickerFindMany { +func (r jobToStepsFindMany) OrderBy(params ...StepOrderByParam) jobToStepsFindMany { var fields []builder.Field for _, param := range params { @@ -290600,7 +315419,7 @@ func (r workflowTriggerCronRefToTickerFindMany) OrderBy(params ...TickerOrderByP return r } -func (r workflowTriggerCronRefToTickerFindMany) Skip(count int) workflowTriggerCronRefToTickerFindMany { +func (r jobToStepsFindMany) Skip(count int) jobToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -290608,7 +315427,7 @@ func (r workflowTriggerCronRefToTickerFindMany) Skip(count int) workflowTriggerC return r } -func (r workflowTriggerCronRefToTickerFindMany) Take(count int) workflowTriggerCronRefToTickerFindMany { +func (r jobToStepsFindMany) Take(count int) jobToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -290616,7 +315435,7 @@ func (r workflowTriggerCronRefToTickerFindMany) Take(count int) workflowTriggerC return r } -func (r workflowTriggerCronRefToTickerFindMany) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToTickerFindMany { +func (r jobToStepsFindMany) Cursor(cursor JobCursorParam) jobToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -290624,11 +315443,11 @@ func (r workflowTriggerCronRefToTickerFindMany) Cursor(cursor WorkflowTriggerCro return r } -func (r workflowTriggerCronRefToTickerFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerCronRefModel, +func (r jobToStepsFindMany) Exec(ctx context.Context) ( + []JobModel, error, ) { - var v []WorkflowTriggerCronRefModel + var v []JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290636,11 +315455,11 @@ func (r workflowTriggerCronRefToTickerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToTickerFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerCronRef, +func (r jobToStepsFindMany) ExecInner(ctx context.Context) ( + []InnerJob, error, ) { - var v []InnerWorkflowTriggerCronRef + var v []InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290648,14 +315467,14 @@ func (r workflowTriggerCronRefToTickerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToTickerFindMany) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToTickerUpdateMany { +func (r jobToStepsFindMany) Update(params ...JobSetParam) jobToStepsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerCronRef" + r.query.Model = "Job" r.query.Outputs = countOutput - var v workflowTriggerCronRefToTickerUpdateMany + var v jobToStepsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -290684,17 +315503,17 @@ func (r workflowTriggerCronRefToTickerFindMany) Update(params ...WorkflowTrigger return v } -type workflowTriggerCronRefToTickerUpdateMany struct { +type jobToStepsUpdateMany struct { query builder.Query } -func (r workflowTriggerCronRefToTickerUpdateMany) ExtractQuery() builder.Query { +func (r jobToStepsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTickerUpdateMany) workflowTriggerCronRefModel() {} +func (r jobToStepsUpdateMany) jobModel() {} -func (r workflowTriggerCronRefToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -290702,36 +315521,36 @@ func (r workflowTriggerCronRefToTickerUpdateMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowTriggerCronRefToTickerUpdateMany) Tx() WorkflowTriggerCronRefManyTxResult { - v := newWorkflowTriggerCronRefManyTxResult() +func (r jobToStepsUpdateMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerCronRefToTickerFindMany) Delete() workflowTriggerCronRefToTickerDeleteMany { - var v workflowTriggerCronRefToTickerDeleteMany +func (r jobToStepsFindMany) Delete() jobToStepsDeleteMany { + var v jobToStepsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerCronRef" + v.query.Model = "Job" v.query.Outputs = countOutput return v } -type workflowTriggerCronRefToTickerDeleteMany struct { +type jobToStepsDeleteMany struct { query builder.Query } -func (r workflowTriggerCronRefToTickerDeleteMany) ExtractQuery() builder.Query { +func (r jobToStepsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerCronRefToTickerDeleteMany) workflowTriggerCronRefModel() {} +func (p jobToStepsDeleteMany) jobModel() {} -func (r workflowTriggerCronRefToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -290739,30 +315558,30 @@ func (r workflowTriggerCronRefToTickerDeleteMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowTriggerCronRefToTickerDeleteMany) Tx() WorkflowTriggerCronRefManyTxResult { - v := newWorkflowTriggerCronRefManyTxResult() +func (r jobToStepsDeleteMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerCronRefToTriggeredFindUnique struct { +type jobToRunsFindUnique struct { query builder.Query } -func (r workflowTriggerCronRefToTriggeredFindUnique) getQuery() builder.Query { +func (r jobToRunsFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTriggeredFindUnique) ExtractQuery() builder.Query { +func (r jobToRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTriggeredFindUnique) with() {} -func (r workflowTriggerCronRefToTriggeredFindUnique) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToTriggeredFindUnique) workflowTriggerCronRefRelation() {} +func (r jobToRunsFindUnique) with() {} +func (r jobToRunsFindUnique) jobModel() {} +func (r jobToRunsFindUnique) jobRelation() {} -func (r workflowTriggerCronRefToTriggeredFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerCronRefToTriggeredFindUnique { +func (r jobToRunsFindUnique) With(params ...JobRunRelationWith) jobToRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -290775,7 +315594,7 @@ func (r workflowTriggerCronRefToTriggeredFindUnique) With(params ...WorkflowRunT return r } -func (r workflowTriggerCronRefToTriggeredFindUnique) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindUnique { +func (r jobToRunsFindUnique) Select(params ...jobPrismaFields) jobToRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -290789,7 +315608,7 @@ func (r workflowTriggerCronRefToTriggeredFindUnique) Select(params ...workflowTr return r } -func (r workflowTriggerCronRefToTriggeredFindUnique) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindUnique { +func (r jobToRunsFindUnique) Omit(params ...jobPrismaFields) jobToRunsFindUnique { var outputs []builder.Output var raw []string @@ -290797,7 +315616,7 @@ func (r workflowTriggerCronRefToTriggeredFindUnique) Omit(params ...workflowTrig raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -290808,11 +315627,11 @@ func (r workflowTriggerCronRefToTriggeredFindUnique) Omit(params ...workflowTrig return r } -func (r workflowTriggerCronRefToTriggeredFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerCronRefModel, +func (r jobToRunsFindUnique) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerCronRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290824,11 +315643,11 @@ func (r workflowTriggerCronRefToTriggeredFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToTriggeredFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerCronRef, +func (r jobToRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerCronRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -290840,12 +315659,12 @@ func (r workflowTriggerCronRefToTriggeredFindUnique) ExecInner(ctx context.Conte return v, nil } -func (r workflowTriggerCronRefToTriggeredFindUnique) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToTriggeredUpdateUnique { +func (r jobToRunsFindUnique) Update(params ...JobSetParam) jobToRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerCronRef" + r.query.Model = "Job" - var v workflowTriggerCronRefToTriggeredUpdateUnique + var v jobToRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -290874,83 +315693,83 @@ func (r workflowTriggerCronRefToTriggeredFindUnique) Update(params ...WorkflowTr return v } -type workflowTriggerCronRefToTriggeredUpdateUnique struct { +type jobToRunsUpdateUnique struct { query builder.Query } -func (r workflowTriggerCronRefToTriggeredUpdateUnique) ExtractQuery() builder.Query { +func (r jobToRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTriggeredUpdateUnique) workflowTriggerCronRefModel() {} +func (r jobToRunsUpdateUnique) jobModel() {} -func (r workflowTriggerCronRefToTriggeredUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r jobToRunsUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefToTriggeredUpdateUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r jobToRunsUpdateUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerCronRefToTriggeredFindUnique) Delete() workflowTriggerCronRefToTriggeredDeleteUnique { - var v workflowTriggerCronRefToTriggeredDeleteUnique +func (r jobToRunsFindUnique) Delete() jobToRunsDeleteUnique { + var v jobToRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerCronRef" + v.query.Model = "Job" return v } -type workflowTriggerCronRefToTriggeredDeleteUnique struct { +type jobToRunsDeleteUnique struct { query builder.Query } -func (r workflowTriggerCronRefToTriggeredDeleteUnique) ExtractQuery() builder.Query { +func (r jobToRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerCronRefToTriggeredDeleteUnique) workflowTriggerCronRefModel() {} +func (p jobToRunsDeleteUnique) jobModel() {} -func (r workflowTriggerCronRefToTriggeredDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r jobToRunsDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefToTriggeredDeleteUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r jobToRunsDeleteUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerCronRefToTriggeredFindFirst struct { +type jobToRunsFindFirst struct { query builder.Query } -func (r workflowTriggerCronRefToTriggeredFindFirst) getQuery() builder.Query { +func (r jobToRunsFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTriggeredFindFirst) ExtractQuery() builder.Query { +func (r jobToRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTriggeredFindFirst) with() {} -func (r workflowTriggerCronRefToTriggeredFindFirst) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToTriggeredFindFirst) workflowTriggerCronRefRelation() {} +func (r jobToRunsFindFirst) with() {} +func (r jobToRunsFindFirst) jobModel() {} +func (r jobToRunsFindFirst) jobRelation() {} -func (r workflowTriggerCronRefToTriggeredFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerCronRefToTriggeredFindFirst { +func (r jobToRunsFindFirst) With(params ...JobRunRelationWith) jobToRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -290963,7 +315782,7 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) With(params ...WorkflowRunTr return r } -func (r workflowTriggerCronRefToTriggeredFindFirst) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindFirst { +func (r jobToRunsFindFirst) Select(params ...jobPrismaFields) jobToRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -290977,7 +315796,7 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) Select(params ...workflowTri return r } -func (r workflowTriggerCronRefToTriggeredFindFirst) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindFirst { +func (r jobToRunsFindFirst) Omit(params ...jobPrismaFields) jobToRunsFindFirst { var outputs []builder.Output var raw []string @@ -290985,7 +315804,7 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) Omit(params ...workflowTrigg raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -290996,7 +315815,7 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) Omit(params ...workflowTrigg return r } -func (r workflowTriggerCronRefToTriggeredFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowTriggerCronRefToTriggeredFindFirst { +func (r jobToRunsFindFirst) OrderBy(params ...JobRunOrderByParam) jobToRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -291016,7 +315835,7 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) OrderBy(params ...WorkflowRu return r } -func (r workflowTriggerCronRefToTriggeredFindFirst) Skip(count int) workflowTriggerCronRefToTriggeredFindFirst { +func (r jobToRunsFindFirst) Skip(count int) jobToRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -291024,7 +315843,7 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) Skip(count int) workflowTrig return r } -func (r workflowTriggerCronRefToTriggeredFindFirst) Take(count int) workflowTriggerCronRefToTriggeredFindFirst { +func (r jobToRunsFindFirst) Take(count int) jobToRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -291032,7 +315851,7 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) Take(count int) workflowTrig return r } -func (r workflowTriggerCronRefToTriggeredFindFirst) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToTriggeredFindFirst { +func (r jobToRunsFindFirst) Cursor(cursor JobCursorParam) jobToRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -291040,11 +315859,11 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) Cursor(cursor WorkflowTrigge return r } -func (r workflowTriggerCronRefToTriggeredFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerCronRefModel, +func (r jobToRunsFindFirst) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerCronRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291056,11 +315875,11 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToTriggeredFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerCronRef, +func (r jobToRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerCronRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291072,23 +315891,23 @@ func (r workflowTriggerCronRefToTriggeredFindFirst) ExecInner(ctx context.Contex return v, nil } -type workflowTriggerCronRefToTriggeredFindMany struct { +type jobToRunsFindMany struct { query builder.Query } -func (r workflowTriggerCronRefToTriggeredFindMany) getQuery() builder.Query { +func (r jobToRunsFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTriggeredFindMany) ExtractQuery() builder.Query { +func (r jobToRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTriggeredFindMany) with() {} -func (r workflowTriggerCronRefToTriggeredFindMany) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefToTriggeredFindMany) workflowTriggerCronRefRelation() {} +func (r jobToRunsFindMany) with() {} +func (r jobToRunsFindMany) jobModel() {} +func (r jobToRunsFindMany) jobRelation() {} -func (r workflowTriggerCronRefToTriggeredFindMany) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerCronRefToTriggeredFindMany { +func (r jobToRunsFindMany) With(params ...JobRunRelationWith) jobToRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -291101,7 +315920,7 @@ func (r workflowTriggerCronRefToTriggeredFindMany) With(params ...WorkflowRunTri return r } -func (r workflowTriggerCronRefToTriggeredFindMany) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindMany { +func (r jobToRunsFindMany) Select(params ...jobPrismaFields) jobToRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -291115,7 +315934,7 @@ func (r workflowTriggerCronRefToTriggeredFindMany) Select(params ...workflowTrig return r } -func (r workflowTriggerCronRefToTriggeredFindMany) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefToTriggeredFindMany { +func (r jobToRunsFindMany) Omit(params ...jobPrismaFields) jobToRunsFindMany { var outputs []builder.Output var raw []string @@ -291123,7 +315942,7 @@ func (r workflowTriggerCronRefToTriggeredFindMany) Omit(params ...workflowTrigge raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -291134,7 +315953,7 @@ func (r workflowTriggerCronRefToTriggeredFindMany) Omit(params ...workflowTrigge return r } -func (r workflowTriggerCronRefToTriggeredFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowTriggerCronRefToTriggeredFindMany { +func (r jobToRunsFindMany) OrderBy(params ...JobRunOrderByParam) jobToRunsFindMany { var fields []builder.Field for _, param := range params { @@ -291154,7 +315973,7 @@ func (r workflowTriggerCronRefToTriggeredFindMany) OrderBy(params ...WorkflowRun return r } -func (r workflowTriggerCronRefToTriggeredFindMany) Skip(count int) workflowTriggerCronRefToTriggeredFindMany { +func (r jobToRunsFindMany) Skip(count int) jobToRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -291162,7 +315981,7 @@ func (r workflowTriggerCronRefToTriggeredFindMany) Skip(count int) workflowTrigg return r } -func (r workflowTriggerCronRefToTriggeredFindMany) Take(count int) workflowTriggerCronRefToTriggeredFindMany { +func (r jobToRunsFindMany) Take(count int) jobToRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -291170,7 +315989,7 @@ func (r workflowTriggerCronRefToTriggeredFindMany) Take(count int) workflowTrigg return r } -func (r workflowTriggerCronRefToTriggeredFindMany) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefToTriggeredFindMany { +func (r jobToRunsFindMany) Cursor(cursor JobCursorParam) jobToRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -291178,11 +315997,11 @@ func (r workflowTriggerCronRefToTriggeredFindMany) Cursor(cursor WorkflowTrigger return r } -func (r workflowTriggerCronRefToTriggeredFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerCronRefModel, +func (r jobToRunsFindMany) Exec(ctx context.Context) ( + []JobModel, error, ) { - var v []WorkflowTriggerCronRefModel + var v []JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291190,11 +316009,11 @@ func (r workflowTriggerCronRefToTriggeredFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefToTriggeredFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerCronRef, +func (r jobToRunsFindMany) ExecInner(ctx context.Context) ( + []InnerJob, error, ) { - var v []InnerWorkflowTriggerCronRef + var v []InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291202,14 +316021,14 @@ func (r workflowTriggerCronRefToTriggeredFindMany) ExecInner(ctx context.Context return v, nil } -func (r workflowTriggerCronRefToTriggeredFindMany) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefToTriggeredUpdateMany { +func (r jobToRunsFindMany) Update(params ...JobSetParam) jobToRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerCronRef" + r.query.Model = "Job" r.query.Outputs = countOutput - var v workflowTriggerCronRefToTriggeredUpdateMany + var v jobToRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -291238,17 +316057,17 @@ func (r workflowTriggerCronRefToTriggeredFindMany) Update(params ...WorkflowTrig return v } -type workflowTriggerCronRefToTriggeredUpdateMany struct { +type jobToRunsUpdateMany struct { query builder.Query } -func (r workflowTriggerCronRefToTriggeredUpdateMany) ExtractQuery() builder.Query { +func (r jobToRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefToTriggeredUpdateMany) workflowTriggerCronRefModel() {} +func (r jobToRunsUpdateMany) jobModel() {} -func (r workflowTriggerCronRefToTriggeredUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -291256,36 +316075,36 @@ func (r workflowTriggerCronRefToTriggeredUpdateMany) Exec(ctx context.Context) ( return &v, nil } -func (r workflowTriggerCronRefToTriggeredUpdateMany) Tx() WorkflowTriggerCronRefManyTxResult { - v := newWorkflowTriggerCronRefManyTxResult() +func (r jobToRunsUpdateMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerCronRefToTriggeredFindMany) Delete() workflowTriggerCronRefToTriggeredDeleteMany { - var v workflowTriggerCronRefToTriggeredDeleteMany +func (r jobToRunsFindMany) Delete() jobToRunsDeleteMany { + var v jobToRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerCronRef" + v.query.Model = "Job" v.query.Outputs = countOutput return v } -type workflowTriggerCronRefToTriggeredDeleteMany struct { +type jobToRunsDeleteMany struct { query builder.Query } -func (r workflowTriggerCronRefToTriggeredDeleteMany) ExtractQuery() builder.Query { +func (r jobToRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerCronRefToTriggeredDeleteMany) workflowTriggerCronRefModel() {} +func (p jobToRunsDeleteMany) jobModel() {} -func (r workflowTriggerCronRefToTriggeredDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -291293,52 +316112,30 @@ func (r workflowTriggerCronRefToTriggeredDeleteMany) Exec(ctx context.Context) ( return &v, nil } -func (r workflowTriggerCronRefToTriggeredDeleteMany) Tx() WorkflowTriggerCronRefManyTxResult { - v := newWorkflowTriggerCronRefManyTxResult() +func (r jobToRunsDeleteMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerCronRefFindUnique struct { +type jobToFailureRelationsFindUnique struct { query builder.Query } -func (r workflowTriggerCronRefFindUnique) getQuery() builder.Query { +func (r jobToFailureRelationsFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefFindUnique) ExtractQuery() builder.Query { +func (r jobToFailureRelationsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefFindUnique) with() {} -func (r workflowTriggerCronRefFindUnique) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefFindUnique) workflowTriggerCronRefRelation() {} - -func (r workflowTriggerCronRefActions) FindUnique( - params WorkflowTriggerCronRefEqualsUniqueWhereParam, -) workflowTriggerCronRefFindUnique { - var v workflowTriggerCronRefFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WorkflowTriggerCronRef" - v.query.Outputs = workflowTriggerCronRefOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r jobToFailureRelationsFindUnique) with() {} +func (r jobToFailureRelationsFindUnique) jobModel() {} +func (r jobToFailureRelationsFindUnique) jobRelation() {} -func (r workflowTriggerCronRefFindUnique) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggerCronRefFindUnique { +func (r jobToFailureRelationsFindUnique) With(params ...WorkflowVersionRelationWith) jobToFailureRelationsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -291351,7 +316148,7 @@ func (r workflowTriggerCronRefFindUnique) With(params ...WorkflowTriggerCronRefR return r } -func (r workflowTriggerCronRefFindUnique) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindUnique { +func (r jobToFailureRelationsFindUnique) Select(params ...jobPrismaFields) jobToFailureRelationsFindUnique { var outputs []builder.Output for _, param := range params { @@ -291365,7 +316162,7 @@ func (r workflowTriggerCronRefFindUnique) Select(params ...workflowTriggerCronRe return r } -func (r workflowTriggerCronRefFindUnique) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindUnique { +func (r jobToFailureRelationsFindUnique) Omit(params ...jobPrismaFields) jobToFailureRelationsFindUnique { var outputs []builder.Output var raw []string @@ -291373,7 +316170,7 @@ func (r workflowTriggerCronRefFindUnique) Omit(params ...workflowTriggerCronRefP raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -291384,11 +316181,11 @@ func (r workflowTriggerCronRefFindUnique) Omit(params ...workflowTriggerCronRefP return r } -func (r workflowTriggerCronRefFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerCronRefModel, +func (r jobToFailureRelationsFindUnique) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerCronRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291400,11 +316197,11 @@ func (r workflowTriggerCronRefFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerCronRef, +func (r jobToFailureRelationsFindUnique) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerCronRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291416,12 +316213,12 @@ func (r workflowTriggerCronRefFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefFindUnique) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefUpdateUnique { +func (r jobToFailureRelationsFindUnique) Update(params ...JobSetParam) jobToFailureRelationsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerCronRef" + r.query.Model = "Job" - var v workflowTriggerCronRefUpdateUnique + var v jobToFailureRelationsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -291450,120 +316247,83 @@ func (r workflowTriggerCronRefFindUnique) Update(params ...WorkflowTriggerCronRe return v } -type workflowTriggerCronRefUpdateUnique struct { +type jobToFailureRelationsUpdateUnique struct { query builder.Query } -func (r workflowTriggerCronRefUpdateUnique) ExtractQuery() builder.Query { +func (r jobToFailureRelationsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefUpdateUnique) workflowTriggerCronRefModel() {} +func (r jobToFailureRelationsUpdateUnique) jobModel() {} -func (r workflowTriggerCronRefUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r jobToFailureRelationsUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefUpdateUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r jobToFailureRelationsUpdateUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerCronRefFindUnique) Delete() workflowTriggerCronRefDeleteUnique { - var v workflowTriggerCronRefDeleteUnique +func (r jobToFailureRelationsFindUnique) Delete() jobToFailureRelationsDeleteUnique { + var v jobToFailureRelationsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerCronRef" + v.query.Model = "Job" return v } -type workflowTriggerCronRefDeleteUnique struct { +type jobToFailureRelationsDeleteUnique struct { query builder.Query } -func (r workflowTriggerCronRefDeleteUnique) ExtractQuery() builder.Query { +func (r jobToFailureRelationsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerCronRefDeleteUnique) workflowTriggerCronRefModel() {} +func (p jobToFailureRelationsDeleteUnique) jobModel() {} -func (r workflowTriggerCronRefDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerCronRefModel, error) { - var v WorkflowTriggerCronRefModel +func (r jobToFailureRelationsDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerCronRefDeleteUnique) Tx() WorkflowTriggerCronRefUniqueTxResult { - v := newWorkflowTriggerCronRefUniqueTxResult() +func (r jobToFailureRelationsDeleteUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerCronRefFindFirst struct { +type jobToFailureRelationsFindFirst struct { query builder.Query } -func (r workflowTriggerCronRefFindFirst) getQuery() builder.Query { +func (r jobToFailureRelationsFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefFindFirst) ExtractQuery() builder.Query { +func (r jobToFailureRelationsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefFindFirst) with() {} -func (r workflowTriggerCronRefFindFirst) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefFindFirst) workflowTriggerCronRefRelation() {} - -func (r workflowTriggerCronRefActions) FindFirst( - params ...WorkflowTriggerCronRefWhereParam, -) workflowTriggerCronRefFindFirst { - var v workflowTriggerCronRefFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WorkflowTriggerCronRef" - v.query.Outputs = workflowTriggerCronRefOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r jobToFailureRelationsFindFirst) with() {} +func (r jobToFailureRelationsFindFirst) jobModel() {} +func (r jobToFailureRelationsFindFirst) jobRelation() {} -func (r workflowTriggerCronRefFindFirst) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggerCronRefFindFirst { +func (r jobToFailureRelationsFindFirst) With(params ...WorkflowVersionRelationWith) jobToFailureRelationsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -291576,7 +316336,7 @@ func (r workflowTriggerCronRefFindFirst) With(params ...WorkflowTriggerCronRefRe return r } -func (r workflowTriggerCronRefFindFirst) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindFirst { +func (r jobToFailureRelationsFindFirst) Select(params ...jobPrismaFields) jobToFailureRelationsFindFirst { var outputs []builder.Output for _, param := range params { @@ -291590,7 +316350,7 @@ func (r workflowTriggerCronRefFindFirst) Select(params ...workflowTriggerCronRef return r } -func (r workflowTriggerCronRefFindFirst) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindFirst { +func (r jobToFailureRelationsFindFirst) Omit(params ...jobPrismaFields) jobToFailureRelationsFindFirst { var outputs []builder.Output var raw []string @@ -291598,7 +316358,7 @@ func (r workflowTriggerCronRefFindFirst) Omit(params ...workflowTriggerCronRefPr raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -291609,7 +316369,7 @@ func (r workflowTriggerCronRefFindFirst) Omit(params ...workflowTriggerCronRefPr return r } -func (r workflowTriggerCronRefFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowTriggerCronRefFindFirst { +func (r jobToFailureRelationsFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) jobToFailureRelationsFindFirst { var fields []builder.Field for _, param := range params { @@ -291629,7 +316389,7 @@ func (r workflowTriggerCronRefFindFirst) OrderBy(params ...WorkflowTriggerCronRe return r } -func (r workflowTriggerCronRefFindFirst) Skip(count int) workflowTriggerCronRefFindFirst { +func (r jobToFailureRelationsFindFirst) Skip(count int) jobToFailureRelationsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -291637,7 +316397,7 @@ func (r workflowTriggerCronRefFindFirst) Skip(count int) workflowTriggerCronRefF return r } -func (r workflowTriggerCronRefFindFirst) Take(count int) workflowTriggerCronRefFindFirst { +func (r jobToFailureRelationsFindFirst) Take(count int) jobToFailureRelationsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -291645,7 +316405,7 @@ func (r workflowTriggerCronRefFindFirst) Take(count int) workflowTriggerCronRefF return r } -func (r workflowTriggerCronRefFindFirst) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefFindFirst { +func (r jobToFailureRelationsFindFirst) Cursor(cursor JobCursorParam) jobToFailureRelationsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -291653,11 +316413,11 @@ func (r workflowTriggerCronRefFindFirst) Cursor(cursor WorkflowTriggerCronRefCur return r } -func (r workflowTriggerCronRefFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerCronRefModel, +func (r jobToFailureRelationsFindFirst) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerCronRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291669,11 +316429,11 @@ func (r workflowTriggerCronRefFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerCronRef, +func (r jobToFailureRelationsFindFirst) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerCronRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291685,60 +316445,23 @@ func (r workflowTriggerCronRefFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTriggerCronRefFindMany struct { +type jobToFailureRelationsFindMany struct { query builder.Query } -func (r workflowTriggerCronRefFindMany) getQuery() builder.Query { +func (r jobToFailureRelationsFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefFindMany) ExtractQuery() builder.Query { +func (r jobToFailureRelationsFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefFindMany) with() {} -func (r workflowTriggerCronRefFindMany) workflowTriggerCronRefModel() {} -func (r workflowTriggerCronRefFindMany) workflowTriggerCronRefRelation() {} - -func (r workflowTriggerCronRefActions) FindMany( - params ...WorkflowTriggerCronRefWhereParam, -) workflowTriggerCronRefFindMany { - var v workflowTriggerCronRefFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WorkflowTriggerCronRef" - v.query.Outputs = workflowTriggerCronRefOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r jobToFailureRelationsFindMany) with() {} +func (r jobToFailureRelationsFindMany) jobModel() {} +func (r jobToFailureRelationsFindMany) jobRelation() {} -func (r workflowTriggerCronRefFindMany) With(params ...WorkflowTriggerCronRefRelationWith) workflowTriggerCronRefFindMany { +func (r jobToFailureRelationsFindMany) With(params ...WorkflowVersionRelationWith) jobToFailureRelationsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -291751,7 +316474,7 @@ func (r workflowTriggerCronRefFindMany) With(params ...WorkflowTriggerCronRefRel return r } -func (r workflowTriggerCronRefFindMany) Select(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindMany { +func (r jobToFailureRelationsFindMany) Select(params ...jobPrismaFields) jobToFailureRelationsFindMany { var outputs []builder.Output for _, param := range params { @@ -291765,7 +316488,7 @@ func (r workflowTriggerCronRefFindMany) Select(params ...workflowTriggerCronRefP return r } -func (r workflowTriggerCronRefFindMany) Omit(params ...workflowTriggerCronRefPrismaFields) workflowTriggerCronRefFindMany { +func (r jobToFailureRelationsFindMany) Omit(params ...jobPrismaFields) jobToFailureRelationsFindMany { var outputs []builder.Output var raw []string @@ -291773,7 +316496,7 @@ func (r workflowTriggerCronRefFindMany) Omit(params ...workflowTriggerCronRefPri raw = append(raw, string(param)) } - for _, output := range workflowTriggerCronRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -291784,7 +316507,7 @@ func (r workflowTriggerCronRefFindMany) Omit(params ...workflowTriggerCronRefPri return r } -func (r workflowTriggerCronRefFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowTriggerCronRefFindMany { +func (r jobToFailureRelationsFindMany) OrderBy(params ...WorkflowVersionOrderByParam) jobToFailureRelationsFindMany { var fields []builder.Field for _, param := range params { @@ -291804,7 +316527,7 @@ func (r workflowTriggerCronRefFindMany) OrderBy(params ...WorkflowTriggerCronRef return r } -func (r workflowTriggerCronRefFindMany) Skip(count int) workflowTriggerCronRefFindMany { +func (r jobToFailureRelationsFindMany) Skip(count int) jobToFailureRelationsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -291812,7 +316535,7 @@ func (r workflowTriggerCronRefFindMany) Skip(count int) workflowTriggerCronRefFi return r } -func (r workflowTriggerCronRefFindMany) Take(count int) workflowTriggerCronRefFindMany { +func (r jobToFailureRelationsFindMany) Take(count int) jobToFailureRelationsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -291820,7 +316543,7 @@ func (r workflowTriggerCronRefFindMany) Take(count int) workflowTriggerCronRefFi return r } -func (r workflowTriggerCronRefFindMany) Cursor(cursor WorkflowTriggerCronRefCursorParam) workflowTriggerCronRefFindMany { +func (r jobToFailureRelationsFindMany) Cursor(cursor JobCursorParam) jobToFailureRelationsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -291828,11 +316551,11 @@ func (r workflowTriggerCronRefFindMany) Cursor(cursor WorkflowTriggerCronRefCurs return r } -func (r workflowTriggerCronRefFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerCronRefModel, +func (r jobToFailureRelationsFindMany) Exec(ctx context.Context) ( + []JobModel, error, ) { - var v []WorkflowTriggerCronRefModel + var v []JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291840,11 +316563,11 @@ func (r workflowTriggerCronRefFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerCronRef, +func (r jobToFailureRelationsFindMany) ExecInner(ctx context.Context) ( + []InnerJob, error, ) { - var v []InnerWorkflowTriggerCronRef + var v []InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -291852,14 +316575,14 @@ func (r workflowTriggerCronRefFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggerCronRefFindMany) Update(params ...WorkflowTriggerCronRefSetParam) workflowTriggerCronRefUpdateMany { +func (r jobToFailureRelationsFindMany) Update(params ...JobSetParam) jobToFailureRelationsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerCronRef" + r.query.Model = "Job" r.query.Outputs = countOutput - var v workflowTriggerCronRefUpdateMany + var v jobToFailureRelationsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -291888,17 +316611,17 @@ func (r workflowTriggerCronRefFindMany) Update(params ...WorkflowTriggerCronRefS return v } -type workflowTriggerCronRefUpdateMany struct { +type jobToFailureRelationsUpdateMany struct { query builder.Query } -func (r workflowTriggerCronRefUpdateMany) ExtractQuery() builder.Query { +func (r jobToFailureRelationsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerCronRefUpdateMany) workflowTriggerCronRefModel() {} +func (r jobToFailureRelationsUpdateMany) jobModel() {} -func (r workflowTriggerCronRefUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToFailureRelationsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -291906,36 +316629,36 @@ func (r workflowTriggerCronRefUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r workflowTriggerCronRefUpdateMany) Tx() WorkflowTriggerCronRefManyTxResult { - v := newWorkflowTriggerCronRefManyTxResult() +func (r jobToFailureRelationsUpdateMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerCronRefFindMany) Delete() workflowTriggerCronRefDeleteMany { - var v workflowTriggerCronRefDeleteMany +func (r jobToFailureRelationsFindMany) Delete() jobToFailureRelationsDeleteMany { + var v jobToFailureRelationsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerCronRef" + v.query.Model = "Job" v.query.Outputs = countOutput return v } -type workflowTriggerCronRefDeleteMany struct { +type jobToFailureRelationsDeleteMany struct { query builder.Query } -func (r workflowTriggerCronRefDeleteMany) ExtractQuery() builder.Query { +func (r jobToFailureRelationsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerCronRefDeleteMany) workflowTriggerCronRefModel() {} +func (p jobToFailureRelationsDeleteMany) jobModel() {} -func (r workflowTriggerCronRefDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobToFailureRelationsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -291943,30 +316666,52 @@ func (r workflowTriggerCronRefDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r workflowTriggerCronRefDeleteMany) Tx() WorkflowTriggerCronRefManyTxResult { - v := newWorkflowTriggerCronRefManyTxResult() +func (r jobToFailureRelationsDeleteMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToParentFindUnique struct { +type jobFindUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentFindUnique) getQuery() builder.Query { +func (r jobFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentFindUnique) ExtractQuery() builder.Query { +func (r jobFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentFindUnique) with() {} -func (r workflowTriggerScheduledRefToParentFindUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToParentFindUnique) workflowTriggerScheduledRefRelation() {} +func (r jobFindUnique) with() {} +func (r jobFindUnique) jobModel() {} +func (r jobFindUnique) jobRelation() {} -func (r workflowTriggerScheduledRefToParentFindUnique) With(params ...WorkflowVersionRelationWith) workflowTriggerScheduledRefToParentFindUnique { +func (r jobActions) FindUnique( + params JobEqualsUniqueWhereParam, +) jobFindUnique { + var v jobFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "Job" + v.query.Outputs = jobOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r jobFindUnique) With(params ...JobRelationWith) jobFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -291979,7 +316724,7 @@ func (r workflowTriggerScheduledRefToParentFindUnique) With(params ...WorkflowVe return r } -func (r workflowTriggerScheduledRefToParentFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindUnique { +func (r jobFindUnique) Select(params ...jobPrismaFields) jobFindUnique { var outputs []builder.Output for _, param := range params { @@ -291993,7 +316738,7 @@ func (r workflowTriggerScheduledRefToParentFindUnique) Select(params ...workflow return r } -func (r workflowTriggerScheduledRefToParentFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindUnique { +func (r jobFindUnique) Omit(params ...jobPrismaFields) jobFindUnique { var outputs []builder.Output var raw []string @@ -292001,7 +316746,7 @@ func (r workflowTriggerScheduledRefToParentFindUnique) Omit(params ...workflowTr raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -292012,11 +316757,11 @@ func (r workflowTriggerScheduledRefToParentFindUnique) Omit(params ...workflowTr return r } -func (r workflowTriggerScheduledRefToParentFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r jobFindUnique) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292028,11 +316773,11 @@ func (r workflowTriggerScheduledRefToParentFindUnique) Exec(ctx context.Context) return v, nil } -func (r workflowTriggerScheduledRefToParentFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r jobFindUnique) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292044,12 +316789,12 @@ func (r workflowTriggerScheduledRefToParentFindUnique) ExecInner(ctx context.Con return v, nil } -func (r workflowTriggerScheduledRefToParentFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentUpdateUnique { +func (r jobFindUnique) Update(params ...JobSetParam) jobUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Job" - var v workflowTriggerScheduledRefToParentUpdateUnique + var v jobUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -292078,83 +316823,120 @@ func (r workflowTriggerScheduledRefToParentFindUnique) Update(params ...Workflow return v } -type workflowTriggerScheduledRefToParentUpdateUnique struct { +type jobUpdateUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentUpdateUnique) ExtractQuery() builder.Query { +func (r jobUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentUpdateUnique) workflowTriggerScheduledRefModel() {} +func (r jobUpdateUnique) jobModel() {} -func (r workflowTriggerScheduledRefToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r jobUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToParentUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r jobUpdateUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToParentFindUnique) Delete() workflowTriggerScheduledRefToParentDeleteUnique { - var v workflowTriggerScheduledRefToParentDeleteUnique +func (r jobFindUnique) Delete() jobDeleteUnique { + var v jobDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Job" return v } -type workflowTriggerScheduledRefToParentDeleteUnique struct { +type jobDeleteUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentDeleteUnique) ExtractQuery() builder.Query { +func (r jobDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToParentDeleteUnique) workflowTriggerScheduledRefModel() {} +func (p jobDeleteUnique) jobModel() {} -func (r workflowTriggerScheduledRefToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r jobDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { + var v JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToParentDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r jobDeleteUnique) Tx() JobUniqueTxResult { + v := newJobUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToParentFindFirst struct { +type jobFindFirst struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentFindFirst) getQuery() builder.Query { +func (r jobFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentFindFirst) ExtractQuery() builder.Query { +func (r jobFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentFindFirst) with() {} -func (r workflowTriggerScheduledRefToParentFindFirst) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToParentFindFirst) workflowTriggerScheduledRefRelation() {} +func (r jobFindFirst) with() {} +func (r jobFindFirst) jobModel() {} +func (r jobFindFirst) jobRelation() {} -func (r workflowTriggerScheduledRefToParentFindFirst) With(params ...WorkflowVersionRelationWith) workflowTriggerScheduledRefToParentFindFirst { +func (r jobActions) FindFirst( + params ...JobWhereParam, +) jobFindFirst { + var v jobFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "Job" + v.query.Outputs = jobOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r jobFindFirst) With(params ...JobRelationWith) jobFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -292167,7 +316949,7 @@ func (r workflowTriggerScheduledRefToParentFindFirst) With(params ...WorkflowVer return r } -func (r workflowTriggerScheduledRefToParentFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindFirst { +func (r jobFindFirst) Select(params ...jobPrismaFields) jobFindFirst { var outputs []builder.Output for _, param := range params { @@ -292181,7 +316963,7 @@ func (r workflowTriggerScheduledRefToParentFindFirst) Select(params ...workflowT return r } -func (r workflowTriggerScheduledRefToParentFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindFirst { +func (r jobFindFirst) Omit(params ...jobPrismaFields) jobFindFirst { var outputs []builder.Output var raw []string @@ -292189,7 +316971,7 @@ func (r workflowTriggerScheduledRefToParentFindFirst) Omit(params ...workflowTri raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -292200,7 +316982,7 @@ func (r workflowTriggerScheduledRefToParentFindFirst) Omit(params ...workflowTri return r } -func (r workflowTriggerScheduledRefToParentFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowTriggerScheduledRefToParentFindFirst { +func (r jobFindFirst) OrderBy(params ...JobOrderByParam) jobFindFirst { var fields []builder.Field for _, param := range params { @@ -292220,7 +317002,7 @@ func (r workflowTriggerScheduledRefToParentFindFirst) OrderBy(params ...Workflow return r } -func (r workflowTriggerScheduledRefToParentFindFirst) Skip(count int) workflowTriggerScheduledRefToParentFindFirst { +func (r jobFindFirst) Skip(count int) jobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -292228,7 +317010,7 @@ func (r workflowTriggerScheduledRefToParentFindFirst) Skip(count int) workflowTr return r } -func (r workflowTriggerScheduledRefToParentFindFirst) Take(count int) workflowTriggerScheduledRefToParentFindFirst { +func (r jobFindFirst) Take(count int) jobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -292236,7 +317018,7 @@ func (r workflowTriggerScheduledRefToParentFindFirst) Take(count int) workflowTr return r } -func (r workflowTriggerScheduledRefToParentFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentFindFirst { +func (r jobFindFirst) Cursor(cursor JobCursorParam) jobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -292244,11 +317026,11 @@ func (r workflowTriggerScheduledRefToParentFindFirst) Cursor(cursor WorkflowTrig return r } -func (r workflowTriggerScheduledRefToParentFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r jobFindFirst) Exec(ctx context.Context) ( + *JobModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292260,11 +317042,11 @@ func (r workflowTriggerScheduledRefToParentFindFirst) Exec(ctx context.Context) return v, nil } -func (r workflowTriggerScheduledRefToParentFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r jobFindFirst) ExecInner(ctx context.Context) ( + *InnerJob, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292276,23 +317058,60 @@ func (r workflowTriggerScheduledRefToParentFindFirst) ExecInner(ctx context.Cont return v, nil } -type workflowTriggerScheduledRefToParentFindMany struct { +type jobFindMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentFindMany) getQuery() builder.Query { +func (r jobFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentFindMany) ExtractQuery() builder.Query { +func (r jobFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentFindMany) with() {} -func (r workflowTriggerScheduledRefToParentFindMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToParentFindMany) workflowTriggerScheduledRefRelation() {} +func (r jobFindMany) with() {} +func (r jobFindMany) jobModel() {} +func (r jobFindMany) jobRelation() {} -func (r workflowTriggerScheduledRefToParentFindMany) With(params ...WorkflowVersionRelationWith) workflowTriggerScheduledRefToParentFindMany { +func (r jobActions) FindMany( + params ...JobWhereParam, +) jobFindMany { + var v jobFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "Job" + v.query.Outputs = jobOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r jobFindMany) With(params ...JobRelationWith) jobFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -292305,7 +317124,7 @@ func (r workflowTriggerScheduledRefToParentFindMany) With(params ...WorkflowVers return r } -func (r workflowTriggerScheduledRefToParentFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindMany { +func (r jobFindMany) Select(params ...jobPrismaFields) jobFindMany { var outputs []builder.Output for _, param := range params { @@ -292319,7 +317138,7 @@ func (r workflowTriggerScheduledRefToParentFindMany) Select(params ...workflowTr return r } -func (r workflowTriggerScheduledRefToParentFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentFindMany { +func (r jobFindMany) Omit(params ...jobPrismaFields) jobFindMany { var outputs []builder.Output var raw []string @@ -292327,7 +317146,7 @@ func (r workflowTriggerScheduledRefToParentFindMany) Omit(params ...workflowTrig raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range jobOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -292338,7 +317157,7 @@ func (r workflowTriggerScheduledRefToParentFindMany) Omit(params ...workflowTrig return r } -func (r workflowTriggerScheduledRefToParentFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowTriggerScheduledRefToParentFindMany { +func (r jobFindMany) OrderBy(params ...JobOrderByParam) jobFindMany { var fields []builder.Field for _, param := range params { @@ -292358,7 +317177,7 @@ func (r workflowTriggerScheduledRefToParentFindMany) OrderBy(params ...WorkflowV return r } -func (r workflowTriggerScheduledRefToParentFindMany) Skip(count int) workflowTriggerScheduledRefToParentFindMany { +func (r jobFindMany) Skip(count int) jobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -292366,7 +317185,7 @@ func (r workflowTriggerScheduledRefToParentFindMany) Skip(count int) workflowTri return r } -func (r workflowTriggerScheduledRefToParentFindMany) Take(count int) workflowTriggerScheduledRefToParentFindMany { +func (r jobFindMany) Take(count int) jobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -292374,7 +317193,7 @@ func (r workflowTriggerScheduledRefToParentFindMany) Take(count int) workflowTri return r } -func (r workflowTriggerScheduledRefToParentFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentFindMany { +func (r jobFindMany) Cursor(cursor JobCursorParam) jobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -292382,11 +317201,11 @@ func (r workflowTriggerScheduledRefToParentFindMany) Cursor(cursor WorkflowTrigg return r } -func (r workflowTriggerScheduledRefToParentFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerScheduledRefModel, +func (r jobFindMany) Exec(ctx context.Context) ( + []JobModel, error, ) { - var v []WorkflowTriggerScheduledRefModel + var v []JobModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292394,11 +317213,11 @@ func (r workflowTriggerScheduledRefToParentFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerScheduledRefToParentFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerScheduledRef, +func (r jobFindMany) ExecInner(ctx context.Context) ( + []InnerJob, error, ) { - var v []InnerWorkflowTriggerScheduledRef + var v []InnerJob if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292406,14 +317225,14 @@ func (r workflowTriggerScheduledRefToParentFindMany) ExecInner(ctx context.Conte return v, nil } -func (r workflowTriggerScheduledRefToParentFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentUpdateMany { +func (r jobFindMany) Update(params ...JobSetParam) jobUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Job" r.query.Outputs = countOutput - var v workflowTriggerScheduledRefToParentUpdateMany + var v jobUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -292442,17 +317261,17 @@ func (r workflowTriggerScheduledRefToParentFindMany) Update(params ...WorkflowTr return v } -type workflowTriggerScheduledRefToParentUpdateMany struct { +type jobUpdateMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentUpdateMany) ExtractQuery() builder.Query { +func (r jobUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentUpdateMany) workflowTriggerScheduledRefModel() {} +func (r jobUpdateMany) jobModel() {} -func (r workflowTriggerScheduledRefToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -292460,36 +317279,36 @@ func (r workflowTriggerScheduledRefToParentUpdateMany) Exec(ctx context.Context) return &v, nil } -func (r workflowTriggerScheduledRefToParentUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r jobUpdateMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToParentFindMany) Delete() workflowTriggerScheduledRefToParentDeleteMany { - var v workflowTriggerScheduledRefToParentDeleteMany +func (r jobFindMany) Delete() jobDeleteMany { + var v jobDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Job" v.query.Outputs = countOutput return v } -type workflowTriggerScheduledRefToParentDeleteMany struct { +type jobDeleteMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentDeleteMany) ExtractQuery() builder.Query { +func (r jobDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToParentDeleteMany) workflowTriggerScheduledRefModel() {} +func (p jobDeleteMany) jobModel() {} -func (r workflowTriggerScheduledRefToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -292497,30 +317316,30 @@ func (r workflowTriggerScheduledRefToParentDeleteMany) Exec(ctx context.Context) return &v, nil } -func (r workflowTriggerScheduledRefToParentDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r jobDeleteMany) Tx() JobManyTxResult { + v := newJobManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToTickerFindUnique struct { +type actionToTenantFindUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToTickerFindUnique) getQuery() builder.Query { +func (r actionToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTickerFindUnique) ExtractQuery() builder.Query { +func (r actionToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTickerFindUnique) with() {} -func (r workflowTriggerScheduledRefToTickerFindUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToTickerFindUnique) workflowTriggerScheduledRefRelation() {} +func (r actionToTenantFindUnique) with() {} +func (r actionToTenantFindUnique) actionModel() {} +func (r actionToTenantFindUnique) actionRelation() {} -func (r workflowTriggerScheduledRefToTickerFindUnique) With(params ...TickerRelationWith) workflowTriggerScheduledRefToTickerFindUnique { +func (r actionToTenantFindUnique) With(params ...TenantRelationWith) actionToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -292533,7 +317352,7 @@ func (r workflowTriggerScheduledRefToTickerFindUnique) With(params ...TickerRela return r } -func (r workflowTriggerScheduledRefToTickerFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindUnique { +func (r actionToTenantFindUnique) Select(params ...actionPrismaFields) actionToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -292547,7 +317366,7 @@ func (r workflowTriggerScheduledRefToTickerFindUnique) Select(params ...workflow return r } -func (r workflowTriggerScheduledRefToTickerFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindUnique { +func (r actionToTenantFindUnique) Omit(params ...actionPrismaFields) actionToTenantFindUnique { var outputs []builder.Output var raw []string @@ -292555,7 +317374,7 @@ func (r workflowTriggerScheduledRefToTickerFindUnique) Omit(params ...workflowTr raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -292566,11 +317385,11 @@ func (r workflowTriggerScheduledRefToTickerFindUnique) Omit(params ...workflowTr return r } -func (r workflowTriggerScheduledRefToTickerFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionToTenantFindUnique) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292582,11 +317401,11 @@ func (r workflowTriggerScheduledRefToTickerFindUnique) Exec(ctx context.Context) return v, nil } -func (r workflowTriggerScheduledRefToTickerFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292598,12 +317417,12 @@ func (r workflowTriggerScheduledRefToTickerFindUnique) ExecInner(ctx context.Con return v, nil } -func (r workflowTriggerScheduledRefToTickerFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToTickerUpdateUnique { +func (r actionToTenantFindUnique) Update(params ...ActionSetParam) actionToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" - var v workflowTriggerScheduledRefToTickerUpdateUnique + var v actionToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -292632,83 +317451,83 @@ func (r workflowTriggerScheduledRefToTickerFindUnique) Update(params ...Workflow return v } -type workflowTriggerScheduledRefToTickerUpdateUnique struct { +type actionToTenantUpdateUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToTickerUpdateUnique) ExtractQuery() builder.Query { +func (r actionToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTickerUpdateUnique) workflowTriggerScheduledRefModel() {} +func (r actionToTenantUpdateUnique) actionModel() {} -func (r workflowTriggerScheduledRefToTickerUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionToTenantUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToTickerUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionToTenantUpdateUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToTickerFindUnique) Delete() workflowTriggerScheduledRefToTickerDeleteUnique { - var v workflowTriggerScheduledRefToTickerDeleteUnique +func (r actionToTenantFindUnique) Delete() actionToTenantDeleteUnique { + var v actionToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" return v } -type workflowTriggerScheduledRefToTickerDeleteUnique struct { +type actionToTenantDeleteUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToTickerDeleteUnique) ExtractQuery() builder.Query { +func (r actionToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToTickerDeleteUnique) workflowTriggerScheduledRefModel() {} +func (p actionToTenantDeleteUnique) actionModel() {} -func (r workflowTriggerScheduledRefToTickerDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionToTenantDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToTickerDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionToTenantDeleteUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToTickerFindFirst struct { +type actionToTenantFindFirst struct { query builder.Query } -func (r workflowTriggerScheduledRefToTickerFindFirst) getQuery() builder.Query { +func (r actionToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTickerFindFirst) ExtractQuery() builder.Query { +func (r actionToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTickerFindFirst) with() {} -func (r workflowTriggerScheduledRefToTickerFindFirst) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToTickerFindFirst) workflowTriggerScheduledRefRelation() {} +func (r actionToTenantFindFirst) with() {} +func (r actionToTenantFindFirst) actionModel() {} +func (r actionToTenantFindFirst) actionRelation() {} -func (r workflowTriggerScheduledRefToTickerFindFirst) With(params ...TickerRelationWith) workflowTriggerScheduledRefToTickerFindFirst { +func (r actionToTenantFindFirst) With(params ...TenantRelationWith) actionToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -292721,7 +317540,7 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) With(params ...TickerRelat return r } -func (r workflowTriggerScheduledRefToTickerFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindFirst { +func (r actionToTenantFindFirst) Select(params ...actionPrismaFields) actionToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -292735,7 +317554,7 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) Select(params ...workflowT return r } -func (r workflowTriggerScheduledRefToTickerFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindFirst { +func (r actionToTenantFindFirst) Omit(params ...actionPrismaFields) actionToTenantFindFirst { var outputs []builder.Output var raw []string @@ -292743,7 +317562,7 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) Omit(params ...workflowTri raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -292754,7 +317573,7 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) Omit(params ...workflowTri return r } -func (r workflowTriggerScheduledRefToTickerFindFirst) OrderBy(params ...TickerOrderByParam) workflowTriggerScheduledRefToTickerFindFirst { +func (r actionToTenantFindFirst) OrderBy(params ...TenantOrderByParam) actionToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -292774,7 +317593,7 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) OrderBy(params ...TickerOr return r } -func (r workflowTriggerScheduledRefToTickerFindFirst) Skip(count int) workflowTriggerScheduledRefToTickerFindFirst { +func (r actionToTenantFindFirst) Skip(count int) actionToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -292782,7 +317601,7 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) Skip(count int) workflowTr return r } -func (r workflowTriggerScheduledRefToTickerFindFirst) Take(count int) workflowTriggerScheduledRefToTickerFindFirst { +func (r actionToTenantFindFirst) Take(count int) actionToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -292790,7 +317609,7 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) Take(count int) workflowTr return r } -func (r workflowTriggerScheduledRefToTickerFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToTickerFindFirst { +func (r actionToTenantFindFirst) Cursor(cursor ActionCursorParam) actionToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -292798,11 +317617,11 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) Cursor(cursor WorkflowTrig return r } -func (r workflowTriggerScheduledRefToTickerFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionToTenantFindFirst) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292814,11 +317633,11 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) Exec(ctx context.Context) return v, nil } -func (r workflowTriggerScheduledRefToTickerFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292830,23 +317649,23 @@ func (r workflowTriggerScheduledRefToTickerFindFirst) ExecInner(ctx context.Cont return v, nil } -type workflowTriggerScheduledRefToTickerFindMany struct { +type actionToTenantFindMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToTickerFindMany) getQuery() builder.Query { +func (r actionToTenantFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTickerFindMany) ExtractQuery() builder.Query { +func (r actionToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTickerFindMany) with() {} -func (r workflowTriggerScheduledRefToTickerFindMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToTickerFindMany) workflowTriggerScheduledRefRelation() {} +func (r actionToTenantFindMany) with() {} +func (r actionToTenantFindMany) actionModel() {} +func (r actionToTenantFindMany) actionRelation() {} -func (r workflowTriggerScheduledRefToTickerFindMany) With(params ...TickerRelationWith) workflowTriggerScheduledRefToTickerFindMany { +func (r actionToTenantFindMany) With(params ...TenantRelationWith) actionToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -292859,7 +317678,7 @@ func (r workflowTriggerScheduledRefToTickerFindMany) With(params ...TickerRelati return r } -func (r workflowTriggerScheduledRefToTickerFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindMany { +func (r actionToTenantFindMany) Select(params ...actionPrismaFields) actionToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -292873,7 +317692,7 @@ func (r workflowTriggerScheduledRefToTickerFindMany) Select(params ...workflowTr return r } -func (r workflowTriggerScheduledRefToTickerFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTickerFindMany { +func (r actionToTenantFindMany) Omit(params ...actionPrismaFields) actionToTenantFindMany { var outputs []builder.Output var raw []string @@ -292881,7 +317700,7 @@ func (r workflowTriggerScheduledRefToTickerFindMany) Omit(params ...workflowTrig raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -292892,7 +317711,7 @@ func (r workflowTriggerScheduledRefToTickerFindMany) Omit(params ...workflowTrig return r } -func (r workflowTriggerScheduledRefToTickerFindMany) OrderBy(params ...TickerOrderByParam) workflowTriggerScheduledRefToTickerFindMany { +func (r actionToTenantFindMany) OrderBy(params ...TenantOrderByParam) actionToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -292912,7 +317731,7 @@ func (r workflowTriggerScheduledRefToTickerFindMany) OrderBy(params ...TickerOrd return r } -func (r workflowTriggerScheduledRefToTickerFindMany) Skip(count int) workflowTriggerScheduledRefToTickerFindMany { +func (r actionToTenantFindMany) Skip(count int) actionToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -292920,7 +317739,7 @@ func (r workflowTriggerScheduledRefToTickerFindMany) Skip(count int) workflowTri return r } -func (r workflowTriggerScheduledRefToTickerFindMany) Take(count int) workflowTriggerScheduledRefToTickerFindMany { +func (r actionToTenantFindMany) Take(count int) actionToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -292928,7 +317747,7 @@ func (r workflowTriggerScheduledRefToTickerFindMany) Take(count int) workflowTri return r } -func (r workflowTriggerScheduledRefToTickerFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToTickerFindMany { +func (r actionToTenantFindMany) Cursor(cursor ActionCursorParam) actionToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -292936,11 +317755,11 @@ func (r workflowTriggerScheduledRefToTickerFindMany) Cursor(cursor WorkflowTrigg return r } -func (r workflowTriggerScheduledRefToTickerFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerScheduledRefModel, +func (r actionToTenantFindMany) Exec(ctx context.Context) ( + []ActionModel, error, ) { - var v []WorkflowTriggerScheduledRefModel + var v []ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292948,11 +317767,11 @@ func (r workflowTriggerScheduledRefToTickerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerScheduledRefToTickerFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerScheduledRef, +func (r actionToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerAction, error, ) { - var v []InnerWorkflowTriggerScheduledRef + var v []InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -292960,14 +317779,14 @@ func (r workflowTriggerScheduledRefToTickerFindMany) ExecInner(ctx context.Conte return v, nil } -func (r workflowTriggerScheduledRefToTickerFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToTickerUpdateMany { +func (r actionToTenantFindMany) Update(params ...ActionSetParam) actionToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" r.query.Outputs = countOutput - var v workflowTriggerScheduledRefToTickerUpdateMany + var v actionToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -292996,17 +317815,17 @@ func (r workflowTriggerScheduledRefToTickerFindMany) Update(params ...WorkflowTr return v } -type workflowTriggerScheduledRefToTickerUpdateMany struct { +type actionToTenantUpdateMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToTickerUpdateMany) ExtractQuery() builder.Query { +func (r actionToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTickerUpdateMany) workflowTriggerScheduledRefModel() {} +func (r actionToTenantUpdateMany) actionModel() {} -func (r workflowTriggerScheduledRefToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -293014,36 +317833,36 @@ func (r workflowTriggerScheduledRefToTickerUpdateMany) Exec(ctx context.Context) return &v, nil } -func (r workflowTriggerScheduledRefToTickerUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionToTenantUpdateMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToTickerFindMany) Delete() workflowTriggerScheduledRefToTickerDeleteMany { - var v workflowTriggerScheduledRefToTickerDeleteMany +func (r actionToTenantFindMany) Delete() actionToTenantDeleteMany { + var v actionToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" v.query.Outputs = countOutput return v } -type workflowTriggerScheduledRefToTickerDeleteMany struct { +type actionToTenantDeleteMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToTickerDeleteMany) ExtractQuery() builder.Query { +func (r actionToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToTickerDeleteMany) workflowTriggerScheduledRefModel() {} +func (p actionToTenantDeleteMany) actionModel() {} -func (r workflowTriggerScheduledRefToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -293051,32 +317870,30 @@ func (r workflowTriggerScheduledRefToTickerDeleteMany) Exec(ctx context.Context) return &v, nil } -func (r workflowTriggerScheduledRefToTickerDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionToTenantDeleteMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToParentWorkflowRunFindUnique struct { +type actionToStepsFindUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) getQuery() builder.Query { +func (r actionToStepsFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) ExtractQuery() builder.Query { +func (r actionToStepsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) with() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) workflowTriggerScheduledRefModel() { -} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) workflowTriggerScheduledRefRelation() { -} +func (r actionToStepsFindUnique) with() {} +func (r actionToStepsFindUnique) actionModel() {} +func (r actionToStepsFindUnique) actionRelation() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) With(params ...WorkflowRunRelationWith) workflowTriggerScheduledRefToParentWorkflowRunFindUnique { +func (r actionToStepsFindUnique) With(params ...StepRelationWith) actionToStepsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -293089,7 +317906,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) With(params .. return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindUnique { +func (r actionToStepsFindUnique) Select(params ...actionPrismaFields) actionToStepsFindUnique { var outputs []builder.Output for _, param := range params { @@ -293103,7 +317920,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Select(params return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindUnique { +func (r actionToStepsFindUnique) Omit(params ...actionPrismaFields) actionToStepsFindUnique { var outputs []builder.Output var raw []string @@ -293111,7 +317928,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Omit(params .. raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -293122,11 +317939,11 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Omit(params .. return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionToStepsFindUnique) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293138,11 +317955,11 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Exec(ctx conte return v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionToStepsFindUnique) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293154,12 +317971,12 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) ExecInner(ctx return v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique { +func (r actionToStepsFindUnique) Update(params ...ActionSetParam) actionToStepsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" - var v workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique + var v actionToStepsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -293188,86 +318005,83 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Update(params return v } -type workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique struct { +type actionToStepsUpdateUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique) ExtractQuery() builder.Query { +func (r actionToStepsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique) workflowTriggerScheduledRefModel() { -} +func (r actionToStepsUpdateUnique) actionModel() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionToStepsUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionToStepsUpdateUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindUnique) Delete() workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique { - var v workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique +func (r actionToStepsFindUnique) Delete() actionToStepsDeleteUnique { + var v actionToStepsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" return v } -type workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique struct { +type actionToStepsDeleteUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique) ExtractQuery() builder.Query { +func (r actionToStepsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique) workflowTriggerScheduledRefModel() { -} +func (p actionToStepsDeleteUnique) actionModel() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionToStepsDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionToStepsDeleteUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToParentWorkflowRunFindFirst struct { +type actionToStepsFindFirst struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) getQuery() builder.Query { +func (r actionToStepsFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) ExtractQuery() builder.Query { +func (r actionToStepsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) with() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) workflowTriggerScheduledRefRelation() { -} +func (r actionToStepsFindFirst) with() {} +func (r actionToStepsFindFirst) actionModel() {} +func (r actionToStepsFindFirst) actionRelation() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) With(params ...WorkflowRunRelationWith) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { +func (r actionToStepsFindFirst) With(params ...StepRelationWith) actionToStepsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -293280,7 +318094,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) With(params ... return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { +func (r actionToStepsFindFirst) Select(params ...actionPrismaFields) actionToStepsFindFirst { var outputs []builder.Output for _, param := range params { @@ -293294,7 +318108,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Select(params . return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { +func (r actionToStepsFindFirst) Omit(params ...actionPrismaFields) actionToStepsFindFirst { var outputs []builder.Output var raw []string @@ -293302,7 +318116,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Omit(params ... raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -293313,7 +318127,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Omit(params ... return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { +func (r actionToStepsFindFirst) OrderBy(params ...StepOrderByParam) actionToStepsFindFirst { var fields []builder.Field for _, param := range params { @@ -293333,7 +318147,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) OrderBy(params return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Skip(count int) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { +func (r actionToStepsFindFirst) Skip(count int) actionToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -293341,7 +318155,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Skip(count int) return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Take(count int) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { +func (r actionToStepsFindFirst) Take(count int) actionToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -293349,7 +318163,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Take(count int) return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentWorkflowRunFindFirst { +func (r actionToStepsFindFirst) Cursor(cursor ActionCursorParam) actionToStepsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -293357,11 +318171,11 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Cursor(cursor W return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionToStepsFindFirst) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293373,11 +318187,11 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) Exec(ctx contex return v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionToStepsFindFirst) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293389,24 +318203,23 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindFirst) ExecInner(ctx c return v, nil } -type workflowTriggerScheduledRefToParentWorkflowRunFindMany struct { +type actionToStepsFindMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) getQuery() builder.Query { +func (r actionToStepsFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) ExtractQuery() builder.Query { +func (r actionToStepsFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) with() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) workflowTriggerScheduledRefRelation() { -} +func (r actionToStepsFindMany) with() {} +func (r actionToStepsFindMany) actionModel() {} +func (r actionToStepsFindMany) actionRelation() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) With(params ...WorkflowRunRelationWith) workflowTriggerScheduledRefToParentWorkflowRunFindMany { +func (r actionToStepsFindMany) With(params ...StepRelationWith) actionToStepsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -293419,7 +318232,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) With(params ...W return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindMany { +func (r actionToStepsFindMany) Select(params ...actionPrismaFields) actionToStepsFindMany { var outputs []builder.Output for _, param := range params { @@ -293433,7 +318246,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Select(params .. return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentWorkflowRunFindMany { +func (r actionToStepsFindMany) Omit(params ...actionPrismaFields) actionToStepsFindMany { var outputs []builder.Output var raw []string @@ -293441,7 +318254,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Omit(params ...w raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -293452,7 +318265,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Omit(params ...w return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowTriggerScheduledRefToParentWorkflowRunFindMany { +func (r actionToStepsFindMany) OrderBy(params ...StepOrderByParam) actionToStepsFindMany { var fields []builder.Field for _, param := range params { @@ -293472,7 +318285,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) OrderBy(params . return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Skip(count int) workflowTriggerScheduledRefToParentWorkflowRunFindMany { +func (r actionToStepsFindMany) Skip(count int) actionToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -293480,7 +318293,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Skip(count int) return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Take(count int) workflowTriggerScheduledRefToParentWorkflowRunFindMany { +func (r actionToStepsFindMany) Take(count int) actionToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -293488,7 +318301,7 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Take(count int) return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentWorkflowRunFindMany { +func (r actionToStepsFindMany) Cursor(cursor ActionCursorParam) actionToStepsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -293496,11 +318309,11 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Cursor(cursor Wo return r } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerScheduledRefModel, +func (r actionToStepsFindMany) Exec(ctx context.Context) ( + []ActionModel, error, ) { - var v []WorkflowTriggerScheduledRefModel + var v []ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293508,11 +318321,11 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Exec(ctx context return v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerScheduledRef, +func (r actionToStepsFindMany) ExecInner(ctx context.Context) ( + []InnerAction, error, ) { - var v []InnerWorkflowTriggerScheduledRef + var v []InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293520,14 +318333,14 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) ExecInner(ctx co return v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentWorkflowRunUpdateMany { +func (r actionToStepsFindMany) Update(params ...ActionSetParam) actionToStepsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" r.query.Outputs = countOutput - var v workflowTriggerScheduledRefToParentWorkflowRunUpdateMany + var v actionToStepsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -293556,18 +318369,17 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Update(params .. return v } -type workflowTriggerScheduledRefToParentWorkflowRunUpdateMany struct { +type actionToStepsUpdateMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) ExtractQuery() builder.Query { +func (r actionToStepsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) workflowTriggerScheduledRefModel() { -} +func (r actionToStepsUpdateMany) actionModel() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -293575,37 +318387,36 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) Exec(ctx conte return &v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionToStepsUpdateMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToParentWorkflowRunFindMany) Delete() workflowTriggerScheduledRefToParentWorkflowRunDeleteMany { - var v workflowTriggerScheduledRefToParentWorkflowRunDeleteMany +func (r actionToStepsFindMany) Delete() actionToStepsDeleteMany { + var v actionToStepsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" v.query.Outputs = countOutput return v } -type workflowTriggerScheduledRefToParentWorkflowRunDeleteMany struct { +type actionToStepsDeleteMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) ExtractQuery() builder.Query { +func (r actionToStepsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) workflowTriggerScheduledRefModel() { -} +func (p actionToStepsDeleteMany) actionModel() {} -func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -293613,30 +318424,30 @@ func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) Exec(ctx conte return &v, nil } -func (r workflowTriggerScheduledRefToParentWorkflowRunDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionToStepsDeleteMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToParentStepRunFindUnique struct { +type actionToWorkersFindUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) getQuery() builder.Query { +func (r actionToWorkersFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) ExtractQuery() builder.Query { +func (r actionToWorkersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) with() {} -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) workflowTriggerScheduledRefRelation() {} +func (r actionToWorkersFindUnique) with() {} +func (r actionToWorkersFindUnique) actionModel() {} +func (r actionToWorkersFindUnique) actionRelation() {} -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) With(params ...StepRunRelationWith) workflowTriggerScheduledRefToParentStepRunFindUnique { +func (r actionToWorkersFindUnique) With(params ...WorkerRelationWith) actionToWorkersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -293649,7 +318460,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindUnique) With(params ...Ste return r } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindUnique { +func (r actionToWorkersFindUnique) Select(params ...actionPrismaFields) actionToWorkersFindUnique { var outputs []builder.Output for _, param := range params { @@ -293663,7 +318474,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Select(params ...w return r } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindUnique { +func (r actionToWorkersFindUnique) Omit(params ...actionPrismaFields) actionToWorkersFindUnique { var outputs []builder.Output var raw []string @@ -293671,7 +318482,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Omit(params ...wor raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -293682,11 +318493,11 @@ func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Omit(params ...wor return r } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionToWorkersFindUnique) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293698,11 +318509,11 @@ func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Exec(ctx context.C return v, nil } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionToWorkersFindUnique) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293714,12 +318525,12 @@ func (r workflowTriggerScheduledRefToParentStepRunFindUnique) ExecInner(ctx cont return v, nil } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentStepRunUpdateUnique { +func (r actionToWorkersFindUnique) Update(params ...ActionSetParam) actionToWorkersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" - var v workflowTriggerScheduledRefToParentStepRunUpdateUnique + var v actionToWorkersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -293748,83 +318559,83 @@ func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Update(params ...W return v } -type workflowTriggerScheduledRefToParentStepRunUpdateUnique struct { +type actionToWorkersUpdateUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentStepRunUpdateUnique) ExtractQuery() builder.Query { +func (r actionToWorkersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentStepRunUpdateUnique) workflowTriggerScheduledRefModel() {} +func (r actionToWorkersUpdateUnique) actionModel() {} -func (r workflowTriggerScheduledRefToParentStepRunUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionToWorkersUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToParentStepRunUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionToWorkersUpdateUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToParentStepRunFindUnique) Delete() workflowTriggerScheduledRefToParentStepRunDeleteUnique { - var v workflowTriggerScheduledRefToParentStepRunDeleteUnique +func (r actionToWorkersFindUnique) Delete() actionToWorkersDeleteUnique { + var v actionToWorkersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" return v } -type workflowTriggerScheduledRefToParentStepRunDeleteUnique struct { +type actionToWorkersDeleteUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentStepRunDeleteUnique) ExtractQuery() builder.Query { +func (r actionToWorkersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToParentStepRunDeleteUnique) workflowTriggerScheduledRefModel() {} +func (p actionToWorkersDeleteUnique) actionModel() {} -func (r workflowTriggerScheduledRefToParentStepRunDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionToWorkersDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToParentStepRunDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionToWorkersDeleteUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToParentStepRunFindFirst struct { +type actionToWorkersFindFirst struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) getQuery() builder.Query { +func (r actionToWorkersFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) ExtractQuery() builder.Query { +func (r actionToWorkersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) with() {} -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) workflowTriggerScheduledRefRelation() {} +func (r actionToWorkersFindFirst) with() {} +func (r actionToWorkersFindFirst) actionModel() {} +func (r actionToWorkersFindFirst) actionRelation() {} -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) With(params ...StepRunRelationWith) workflowTriggerScheduledRefToParentStepRunFindFirst { +func (r actionToWorkersFindFirst) With(params ...WorkerRelationWith) actionToWorkersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -293837,7 +318648,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) With(params ...Step return r } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindFirst { +func (r actionToWorkersFindFirst) Select(params ...actionPrismaFields) actionToWorkersFindFirst { var outputs []builder.Output for _, param := range params { @@ -293851,7 +318662,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Select(params ...wo return r } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindFirst { +func (r actionToWorkersFindFirst) Omit(params ...actionPrismaFields) actionToWorkersFindFirst { var outputs []builder.Output var raw []string @@ -293859,7 +318670,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Omit(params ...work raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -293870,7 +318681,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Omit(params ...work return r } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) workflowTriggerScheduledRefToParentStepRunFindFirst { +func (r actionToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) actionToWorkersFindFirst { var fields []builder.Field for _, param := range params { @@ -293890,7 +318701,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) OrderBy(params ...S return r } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Skip(count int) workflowTriggerScheduledRefToParentStepRunFindFirst { +func (r actionToWorkersFindFirst) Skip(count int) actionToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -293898,7 +318709,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Skip(count int) wor return r } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Take(count int) workflowTriggerScheduledRefToParentStepRunFindFirst { +func (r actionToWorkersFindFirst) Take(count int) actionToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -293906,7 +318717,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Take(count int) wor return r } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentStepRunFindFirst { +func (r actionToWorkersFindFirst) Cursor(cursor ActionCursorParam) actionToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -293914,11 +318725,11 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Cursor(cursor Workf return r } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionToWorkersFindFirst) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293930,11 +318741,11 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) Exec(ctx context.Co return v, nil } -func (r workflowTriggerScheduledRefToParentStepRunFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionToWorkersFindFirst) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -293946,23 +318757,23 @@ func (r workflowTriggerScheduledRefToParentStepRunFindFirst) ExecInner(ctx conte return v, nil } -type workflowTriggerScheduledRefToParentStepRunFindMany struct { +type actionToWorkersFindMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) getQuery() builder.Query { +func (r actionToWorkersFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) ExtractQuery() builder.Query { +func (r actionToWorkersFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) with() {} -func (r workflowTriggerScheduledRefToParentStepRunFindMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToParentStepRunFindMany) workflowTriggerScheduledRefRelation() {} +func (r actionToWorkersFindMany) with() {} +func (r actionToWorkersFindMany) actionModel() {} +func (r actionToWorkersFindMany) actionRelation() {} -func (r workflowTriggerScheduledRefToParentStepRunFindMany) With(params ...StepRunRelationWith) workflowTriggerScheduledRefToParentStepRunFindMany { +func (r actionToWorkersFindMany) With(params ...WorkerRelationWith) actionToWorkersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -293975,7 +318786,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) With(params ...StepR return r } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindMany { +func (r actionToWorkersFindMany) Select(params ...actionPrismaFields) actionToWorkersFindMany { var outputs []builder.Output for _, param := range params { @@ -293989,7 +318800,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) Select(params ...wor return r } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToParentStepRunFindMany { +func (r actionToWorkersFindMany) Omit(params ...actionPrismaFields) actionToWorkersFindMany { var outputs []builder.Output var raw []string @@ -293997,7 +318808,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) Omit(params ...workf raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -294008,7 +318819,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) Omit(params ...workf return r } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) OrderBy(params ...StepRunOrderByParam) workflowTriggerScheduledRefToParentStepRunFindMany { +func (r actionToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) actionToWorkersFindMany { var fields []builder.Field for _, param := range params { @@ -294028,7 +318839,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) OrderBy(params ...St return r } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) Skip(count int) workflowTriggerScheduledRefToParentStepRunFindMany { +func (r actionToWorkersFindMany) Skip(count int) actionToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -294036,7 +318847,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) Skip(count int) work return r } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) Take(count int) workflowTriggerScheduledRefToParentStepRunFindMany { +func (r actionToWorkersFindMany) Take(count int) actionToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -294044,7 +318855,7 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) Take(count int) work return r } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToParentStepRunFindMany { +func (r actionToWorkersFindMany) Cursor(cursor ActionCursorParam) actionToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -294052,11 +318863,11 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) Cursor(cursor Workfl return r } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerScheduledRefModel, +func (r actionToWorkersFindMany) Exec(ctx context.Context) ( + []ActionModel, error, ) { - var v []WorkflowTriggerScheduledRefModel + var v []ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294064,11 +318875,11 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) Exec(ctx context.Con return v, nil } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerScheduledRef, +func (r actionToWorkersFindMany) ExecInner(ctx context.Context) ( + []InnerAction, error, ) { - var v []InnerWorkflowTriggerScheduledRef + var v []InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294076,14 +318887,14 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) ExecInner(ctx contex return v, nil } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToParentStepRunUpdateMany { +func (r actionToWorkersFindMany) Update(params ...ActionSetParam) actionToWorkersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" r.query.Outputs = countOutput - var v workflowTriggerScheduledRefToParentStepRunUpdateMany + var v actionToWorkersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -294112,17 +318923,17 @@ func (r workflowTriggerScheduledRefToParentStepRunFindMany) Update(params ...Wor return v } -type workflowTriggerScheduledRefToParentStepRunUpdateMany struct { +type actionToWorkersUpdateMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) ExtractQuery() builder.Query { +func (r actionToWorkersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) workflowTriggerScheduledRefModel() {} +func (r actionToWorkersUpdateMany) actionModel() {} -func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -294130,36 +318941,36 @@ func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) Exec(ctx context.C return &v, nil } -func (r workflowTriggerScheduledRefToParentStepRunUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionToWorkersUpdateMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToParentStepRunFindMany) Delete() workflowTriggerScheduledRefToParentStepRunDeleteMany { - var v workflowTriggerScheduledRefToParentStepRunDeleteMany +func (r actionToWorkersFindMany) Delete() actionToWorkersDeleteMany { + var v actionToWorkersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" v.query.Outputs = countOutput return v } -type workflowTriggerScheduledRefToParentStepRunDeleteMany struct { +type actionToWorkersDeleteMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToParentStepRunDeleteMany) ExtractQuery() builder.Query { +func (r actionToWorkersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToParentStepRunDeleteMany) workflowTriggerScheduledRefModel() {} +func (p actionToWorkersDeleteMany) actionModel() {} -func (r workflowTriggerScheduledRefToParentStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -294167,30 +318978,30 @@ func (r workflowTriggerScheduledRefToParentStepRunDeleteMany) Exec(ctx context.C return &v, nil } -func (r workflowTriggerScheduledRefToParentStepRunDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionToWorkersDeleteMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToTriggeredFindUnique struct { +type actionToConcurrencyFindUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) getQuery() builder.Query { +func (r actionToConcurrencyFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) ExtractQuery() builder.Query { +func (r actionToConcurrencyFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) with() {} -func (r workflowTriggerScheduledRefToTriggeredFindUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToTriggeredFindUnique) workflowTriggerScheduledRefRelation() {} +func (r actionToConcurrencyFindUnique) with() {} +func (r actionToConcurrencyFindUnique) actionModel() {} +func (r actionToConcurrencyFindUnique) actionRelation() {} -func (r workflowTriggerScheduledRefToTriggeredFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerScheduledRefToTriggeredFindUnique { +func (r actionToConcurrencyFindUnique) With(params ...WorkflowConcurrencyRelationWith) actionToConcurrencyFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -294203,7 +319014,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindUnique) With(params ...Workflo return r } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindUnique { +func (r actionToConcurrencyFindUnique) Select(params ...actionPrismaFields) actionToConcurrencyFindUnique { var outputs []builder.Output for _, param := range params { @@ -294217,7 +319028,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindUnique) Select(params ...workf return r } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindUnique { +func (r actionToConcurrencyFindUnique) Omit(params ...actionPrismaFields) actionToConcurrencyFindUnique { var outputs []builder.Output var raw []string @@ -294225,7 +319036,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindUnique) Omit(params ...workflo raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -294236,11 +319047,11 @@ func (r workflowTriggerScheduledRefToTriggeredFindUnique) Omit(params ...workflo return r } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionToConcurrencyFindUnique) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294252,11 +319063,11 @@ func (r workflowTriggerScheduledRefToTriggeredFindUnique) Exec(ctx context.Conte return v, nil } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionToConcurrencyFindUnique) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294268,12 +319079,12 @@ func (r workflowTriggerScheduledRefToTriggeredFindUnique) ExecInner(ctx context. return v, nil } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToTriggeredUpdateUnique { +func (r actionToConcurrencyFindUnique) Update(params ...ActionSetParam) actionToConcurrencyUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" - var v workflowTriggerScheduledRefToTriggeredUpdateUnique + var v actionToConcurrencyUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -294302,83 +319113,83 @@ func (r workflowTriggerScheduledRefToTriggeredFindUnique) Update(params ...Workf return v } -type workflowTriggerScheduledRefToTriggeredUpdateUnique struct { +type actionToConcurrencyUpdateUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToTriggeredUpdateUnique) ExtractQuery() builder.Query { +func (r actionToConcurrencyUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTriggeredUpdateUnique) workflowTriggerScheduledRefModel() {} +func (r actionToConcurrencyUpdateUnique) actionModel() {} -func (r workflowTriggerScheduledRefToTriggeredUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionToConcurrencyUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToTriggeredUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionToConcurrencyUpdateUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToTriggeredFindUnique) Delete() workflowTriggerScheduledRefToTriggeredDeleteUnique { - var v workflowTriggerScheduledRefToTriggeredDeleteUnique +func (r actionToConcurrencyFindUnique) Delete() actionToConcurrencyDeleteUnique { + var v actionToConcurrencyDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" return v } -type workflowTriggerScheduledRefToTriggeredDeleteUnique struct { +type actionToConcurrencyDeleteUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefToTriggeredDeleteUnique) ExtractQuery() builder.Query { +func (r actionToConcurrencyDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToTriggeredDeleteUnique) workflowTriggerScheduledRefModel() {} +func (p actionToConcurrencyDeleteUnique) actionModel() {} -func (r workflowTriggerScheduledRefToTriggeredDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionToConcurrencyDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefToTriggeredDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionToConcurrencyDeleteUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefToTriggeredFindFirst struct { +type actionToConcurrencyFindFirst struct { query builder.Query } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) getQuery() builder.Query { +func (r actionToConcurrencyFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) ExtractQuery() builder.Query { +func (r actionToConcurrencyFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) with() {} -func (r workflowTriggerScheduledRefToTriggeredFindFirst) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToTriggeredFindFirst) workflowTriggerScheduledRefRelation() {} +func (r actionToConcurrencyFindFirst) with() {} +func (r actionToConcurrencyFindFirst) actionModel() {} +func (r actionToConcurrencyFindFirst) actionRelation() {} -func (r workflowTriggerScheduledRefToTriggeredFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerScheduledRefToTriggeredFindFirst { +func (r actionToConcurrencyFindFirst) With(params ...WorkflowConcurrencyRelationWith) actionToConcurrencyFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -294391,7 +319202,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) With(params ...Workflow return r } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindFirst { +func (r actionToConcurrencyFindFirst) Select(params ...actionPrismaFields) actionToConcurrencyFindFirst { var outputs []builder.Output for _, param := range params { @@ -294405,7 +319216,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) Select(params ...workfl return r } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindFirst { +func (r actionToConcurrencyFindFirst) Omit(params ...actionPrismaFields) actionToConcurrencyFindFirst { var outputs []builder.Output var raw []string @@ -294413,7 +319224,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) Omit(params ...workflow raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -294424,7 +319235,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) Omit(params ...workflow return r } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowTriggerScheduledRefToTriggeredFindFirst { +func (r actionToConcurrencyFindFirst) OrderBy(params ...WorkflowConcurrencyOrderByParam) actionToConcurrencyFindFirst { var fields []builder.Field for _, param := range params { @@ -294444,7 +319255,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) OrderBy(params ...Workf return r } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) Skip(count int) workflowTriggerScheduledRefToTriggeredFindFirst { +func (r actionToConcurrencyFindFirst) Skip(count int) actionToConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -294452,7 +319263,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) Skip(count int) workflo return r } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) Take(count int) workflowTriggerScheduledRefToTriggeredFindFirst { +func (r actionToConcurrencyFindFirst) Take(count int) actionToConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -294460,7 +319271,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) Take(count int) workflo return r } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToTriggeredFindFirst { +func (r actionToConcurrencyFindFirst) Cursor(cursor ActionCursorParam) actionToConcurrencyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -294468,11 +319279,11 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) Cursor(cursor WorkflowT return r } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionToConcurrencyFindFirst) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294484,11 +319295,11 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) Exec(ctx context.Contex return v, nil } -func (r workflowTriggerScheduledRefToTriggeredFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionToConcurrencyFindFirst) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294500,23 +319311,23 @@ func (r workflowTriggerScheduledRefToTriggeredFindFirst) ExecInner(ctx context.C return v, nil } -type workflowTriggerScheduledRefToTriggeredFindMany struct { +type actionToConcurrencyFindMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToTriggeredFindMany) getQuery() builder.Query { +func (r actionToConcurrencyFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTriggeredFindMany) ExtractQuery() builder.Query { +func (r actionToConcurrencyFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTriggeredFindMany) with() {} -func (r workflowTriggerScheduledRefToTriggeredFindMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefToTriggeredFindMany) workflowTriggerScheduledRefRelation() {} +func (r actionToConcurrencyFindMany) with() {} +func (r actionToConcurrencyFindMany) actionModel() {} +func (r actionToConcurrencyFindMany) actionRelation() {} -func (r workflowTriggerScheduledRefToTriggeredFindMany) With(params ...WorkflowRunTriggeredByRelationWith) workflowTriggerScheduledRefToTriggeredFindMany { +func (r actionToConcurrencyFindMany) With(params ...WorkflowConcurrencyRelationWith) actionToConcurrencyFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -294529,7 +319340,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) With(params ...WorkflowR return r } -func (r workflowTriggerScheduledRefToTriggeredFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindMany { +func (r actionToConcurrencyFindMany) Select(params ...actionPrismaFields) actionToConcurrencyFindMany { var outputs []builder.Output for _, param := range params { @@ -294543,7 +319354,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) Select(params ...workflo return r } -func (r workflowTriggerScheduledRefToTriggeredFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefToTriggeredFindMany { +func (r actionToConcurrencyFindMany) Omit(params ...actionPrismaFields) actionToConcurrencyFindMany { var outputs []builder.Output var raw []string @@ -294551,7 +319362,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) Omit(params ...workflowT raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -294562,7 +319373,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) Omit(params ...workflowT return r } -func (r workflowTriggerScheduledRefToTriggeredFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowTriggerScheduledRefToTriggeredFindMany { +func (r actionToConcurrencyFindMany) OrderBy(params ...WorkflowConcurrencyOrderByParam) actionToConcurrencyFindMany { var fields []builder.Field for _, param := range params { @@ -294582,7 +319393,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) OrderBy(params ...Workfl return r } -func (r workflowTriggerScheduledRefToTriggeredFindMany) Skip(count int) workflowTriggerScheduledRefToTriggeredFindMany { +func (r actionToConcurrencyFindMany) Skip(count int) actionToConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -294590,7 +319401,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) Skip(count int) workflow return r } -func (r workflowTriggerScheduledRefToTriggeredFindMany) Take(count int) workflowTriggerScheduledRefToTriggeredFindMany { +func (r actionToConcurrencyFindMany) Take(count int) actionToConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -294598,7 +319409,7 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) Take(count int) workflow return r } -func (r workflowTriggerScheduledRefToTriggeredFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefToTriggeredFindMany { +func (r actionToConcurrencyFindMany) Cursor(cursor ActionCursorParam) actionToConcurrencyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -294606,11 +319417,11 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) Cursor(cursor WorkflowTr return r } -func (r workflowTriggerScheduledRefToTriggeredFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerScheduledRefModel, +func (r actionToConcurrencyFindMany) Exec(ctx context.Context) ( + []ActionModel, error, ) { - var v []WorkflowTriggerScheduledRefModel + var v []ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294618,11 +319429,11 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) Exec(ctx context.Context return v, nil } -func (r workflowTriggerScheduledRefToTriggeredFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerScheduledRef, +func (r actionToConcurrencyFindMany) ExecInner(ctx context.Context) ( + []InnerAction, error, ) { - var v []InnerWorkflowTriggerScheduledRef + var v []InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294630,14 +319441,14 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) ExecInner(ctx context.Co return v, nil } -func (r workflowTriggerScheduledRefToTriggeredFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefToTriggeredUpdateMany { +func (r actionToConcurrencyFindMany) Update(params ...ActionSetParam) actionToConcurrencyUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" r.query.Outputs = countOutput - var v workflowTriggerScheduledRefToTriggeredUpdateMany + var v actionToConcurrencyUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -294666,17 +319477,17 @@ func (r workflowTriggerScheduledRefToTriggeredFindMany) Update(params ...Workflo return v } -type workflowTriggerScheduledRefToTriggeredUpdateMany struct { +type actionToConcurrencyUpdateMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToTriggeredUpdateMany) ExtractQuery() builder.Query { +func (r actionToConcurrencyUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefToTriggeredUpdateMany) workflowTriggerScheduledRefModel() {} +func (r actionToConcurrencyUpdateMany) actionModel() {} -func (r workflowTriggerScheduledRefToTriggeredUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionToConcurrencyUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -294684,36 +319495,36 @@ func (r workflowTriggerScheduledRefToTriggeredUpdateMany) Exec(ctx context.Conte return &v, nil } -func (r workflowTriggerScheduledRefToTriggeredUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionToConcurrencyUpdateMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefToTriggeredFindMany) Delete() workflowTriggerScheduledRefToTriggeredDeleteMany { - var v workflowTriggerScheduledRefToTriggeredDeleteMany +func (r actionToConcurrencyFindMany) Delete() actionToConcurrencyDeleteMany { + var v actionToConcurrencyDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" v.query.Outputs = countOutput return v } -type workflowTriggerScheduledRefToTriggeredDeleteMany struct { +type actionToConcurrencyDeleteMany struct { query builder.Query } -func (r workflowTriggerScheduledRefToTriggeredDeleteMany) ExtractQuery() builder.Query { +func (r actionToConcurrencyDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefToTriggeredDeleteMany) workflowTriggerScheduledRefModel() {} +func (p actionToConcurrencyDeleteMany) actionModel() {} -func (r workflowTriggerScheduledRefToTriggeredDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionToConcurrencyDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -294721,33 +319532,33 @@ func (r workflowTriggerScheduledRefToTriggeredDeleteMany) Exec(ctx context.Conte return &v, nil } -func (r workflowTriggerScheduledRefToTriggeredDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionToConcurrencyDeleteMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefFindUnique struct { +type actionFindUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefFindUnique) getQuery() builder.Query { +func (r actionFindUnique) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefFindUnique) ExtractQuery() builder.Query { +func (r actionFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefFindUnique) with() {} -func (r workflowTriggerScheduledRefFindUnique) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefFindUnique) workflowTriggerScheduledRefRelation() {} +func (r actionFindUnique) with() {} +func (r actionFindUnique) actionModel() {} +func (r actionFindUnique) actionRelation() {} -func (r workflowTriggerScheduledRefActions) FindUnique( - params WorkflowTriggerScheduledRefEqualsUniqueWhereParam, -) workflowTriggerScheduledRefFindUnique { - var v workflowTriggerScheduledRefFindUnique +func (r actionActions) FindUnique( + params ActionEqualsUniqueWhereParam, +) actionFindUnique { + var v actionFindUnique v.query = builder.NewQuery() v.query.Engine = r.client @@ -294755,8 +319566,8 @@ func (r workflowTriggerScheduledRefActions) FindUnique( v.query.Method = "findUnique" - v.query.Model = "WorkflowTriggerScheduledRef" - v.query.Outputs = workflowTriggerScheduledRefOutput + v.query.Model = "Action" + v.query.Outputs = actionOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "where", @@ -294766,7 +319577,7 @@ func (r workflowTriggerScheduledRefActions) FindUnique( return v } -func (r workflowTriggerScheduledRefFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowTriggerScheduledRefFindUnique { +func (r actionFindUnique) With(params ...ActionRelationWith) actionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -294779,7 +319590,7 @@ func (r workflowTriggerScheduledRefFindUnique) With(params ...WorkflowTriggerSch return r } -func (r workflowTriggerScheduledRefFindUnique) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindUnique { +func (r actionFindUnique) Select(params ...actionPrismaFields) actionFindUnique { var outputs []builder.Output for _, param := range params { @@ -294793,7 +319604,7 @@ func (r workflowTriggerScheduledRefFindUnique) Select(params ...workflowTriggerS return r } -func (r workflowTriggerScheduledRefFindUnique) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindUnique { +func (r actionFindUnique) Omit(params ...actionPrismaFields) actionFindUnique { var outputs []builder.Output var raw []string @@ -294801,7 +319612,7 @@ func (r workflowTriggerScheduledRefFindUnique) Omit(params ...workflowTriggerSch raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -294812,11 +319623,11 @@ func (r workflowTriggerScheduledRefFindUnique) Omit(params ...workflowTriggerSch return r } -func (r workflowTriggerScheduledRefFindUnique) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionFindUnique) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294828,11 +319639,11 @@ func (r workflowTriggerScheduledRefFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerScheduledRefFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionFindUnique) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -294844,12 +319655,12 @@ func (r workflowTriggerScheduledRefFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggerScheduledRefFindUnique) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefUpdateUnique { +func (r actionFindUnique) Update(params ...ActionSetParam) actionUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" - var v workflowTriggerScheduledRefUpdateUnique + var v actionUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -294878,86 +319689,86 @@ func (r workflowTriggerScheduledRefFindUnique) Update(params ...WorkflowTriggerS return v } -type workflowTriggerScheduledRefUpdateUnique struct { +type actionUpdateUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefUpdateUnique) ExtractQuery() builder.Query { +func (r actionUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefUpdateUnique) workflowTriggerScheduledRefModel() {} +func (r actionUpdateUnique) actionModel() {} -func (r workflowTriggerScheduledRefUpdateUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefUpdateUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionUpdateUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefFindUnique) Delete() workflowTriggerScheduledRefDeleteUnique { - var v workflowTriggerScheduledRefDeleteUnique +func (r actionFindUnique) Delete() actionDeleteUnique { + var v actionDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" return v } -type workflowTriggerScheduledRefDeleteUnique struct { +type actionDeleteUnique struct { query builder.Query } -func (r workflowTriggerScheduledRefDeleteUnique) ExtractQuery() builder.Query { +func (r actionDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefDeleteUnique) workflowTriggerScheduledRefModel() {} +func (p actionDeleteUnique) actionModel() {} -func (r workflowTriggerScheduledRefDeleteUnique) Exec(ctx context.Context) (*WorkflowTriggerScheduledRefModel, error) { - var v WorkflowTriggerScheduledRefModel +func (r actionDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { + var v ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowTriggerScheduledRefDeleteUnique) Tx() WorkflowTriggerScheduledRefUniqueTxResult { - v := newWorkflowTriggerScheduledRefUniqueTxResult() +func (r actionDeleteUnique) Tx() ActionUniqueTxResult { + v := newActionUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowTriggerScheduledRefFindFirst struct { +type actionFindFirst struct { query builder.Query } -func (r workflowTriggerScheduledRefFindFirst) getQuery() builder.Query { +func (r actionFindFirst) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefFindFirst) ExtractQuery() builder.Query { +func (r actionFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefFindFirst) with() {} -func (r workflowTriggerScheduledRefFindFirst) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefFindFirst) workflowTriggerScheduledRefRelation() {} +func (r actionFindFirst) with() {} +func (r actionFindFirst) actionModel() {} +func (r actionFindFirst) actionRelation() {} -func (r workflowTriggerScheduledRefActions) FindFirst( - params ...WorkflowTriggerScheduledRefWhereParam, -) workflowTriggerScheduledRefFindFirst { - var v workflowTriggerScheduledRefFindFirst +func (r actionActions) FindFirst( + params ...ActionWhereParam, +) actionFindFirst { + var v actionFindFirst v.query = builder.NewQuery() v.query.Engine = r.client @@ -294965,8 +319776,8 @@ func (r workflowTriggerScheduledRefActions) FindFirst( v.query.Method = "findFirst" - v.query.Model = "WorkflowTriggerScheduledRef" - v.query.Outputs = workflowTriggerScheduledRefOutput + v.query.Model = "Action" + v.query.Outputs = actionOutput var where []builder.Field for _, q := range params { @@ -294991,7 +319802,7 @@ func (r workflowTriggerScheduledRefActions) FindFirst( return v } -func (r workflowTriggerScheduledRefFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowTriggerScheduledRefFindFirst { +func (r actionFindFirst) With(params ...ActionRelationWith) actionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -295004,7 +319815,7 @@ func (r workflowTriggerScheduledRefFindFirst) With(params ...WorkflowTriggerSche return r } -func (r workflowTriggerScheduledRefFindFirst) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindFirst { +func (r actionFindFirst) Select(params ...actionPrismaFields) actionFindFirst { var outputs []builder.Output for _, param := range params { @@ -295018,7 +319829,7 @@ func (r workflowTriggerScheduledRefFindFirst) Select(params ...workflowTriggerSc return r } -func (r workflowTriggerScheduledRefFindFirst) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindFirst { +func (r actionFindFirst) Omit(params ...actionPrismaFields) actionFindFirst { var outputs []builder.Output var raw []string @@ -295026,7 +319837,7 @@ func (r workflowTriggerScheduledRefFindFirst) Omit(params ...workflowTriggerSche raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -295037,7 +319848,7 @@ func (r workflowTriggerScheduledRefFindFirst) Omit(params ...workflowTriggerSche return r } -func (r workflowTriggerScheduledRefFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowTriggerScheduledRefFindFirst { +func (r actionFindFirst) OrderBy(params ...ActionOrderByParam) actionFindFirst { var fields []builder.Field for _, param := range params { @@ -295057,7 +319868,7 @@ func (r workflowTriggerScheduledRefFindFirst) OrderBy(params ...WorkflowTriggerS return r } -func (r workflowTriggerScheduledRefFindFirst) Skip(count int) workflowTriggerScheduledRefFindFirst { +func (r actionFindFirst) Skip(count int) actionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -295065,7 +319876,7 @@ func (r workflowTriggerScheduledRefFindFirst) Skip(count int) workflowTriggerSch return r } -func (r workflowTriggerScheduledRefFindFirst) Take(count int) workflowTriggerScheduledRefFindFirst { +func (r actionFindFirst) Take(count int) actionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -295073,7 +319884,7 @@ func (r workflowTriggerScheduledRefFindFirst) Take(count int) workflowTriggerSch return r } -func (r workflowTriggerScheduledRefFindFirst) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefFindFirst { +func (r actionFindFirst) Cursor(cursor ActionCursorParam) actionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -295081,11 +319892,11 @@ func (r workflowTriggerScheduledRefFindFirst) Cursor(cursor WorkflowTriggerSched return r } -func (r workflowTriggerScheduledRefFindFirst) Exec(ctx context.Context) ( - *WorkflowTriggerScheduledRefModel, +func (r actionFindFirst) Exec(ctx context.Context) ( + *ActionModel, error, ) { - var v *WorkflowTriggerScheduledRefModel + var v *ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295097,11 +319908,11 @@ func (r workflowTriggerScheduledRefFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerScheduledRefFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowTriggerScheduledRef, +func (r actionFindFirst) ExecInner(ctx context.Context) ( + *InnerAction, error, ) { - var v *InnerWorkflowTriggerScheduledRef + var v *InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295113,26 +319924,26 @@ func (r workflowTriggerScheduledRefFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowTriggerScheduledRefFindMany struct { +type actionFindMany struct { query builder.Query } -func (r workflowTriggerScheduledRefFindMany) getQuery() builder.Query { +func (r actionFindMany) getQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefFindMany) ExtractQuery() builder.Query { +func (r actionFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefFindMany) with() {} -func (r workflowTriggerScheduledRefFindMany) workflowTriggerScheduledRefModel() {} -func (r workflowTriggerScheduledRefFindMany) workflowTriggerScheduledRefRelation() {} +func (r actionFindMany) with() {} +func (r actionFindMany) actionModel() {} +func (r actionFindMany) actionRelation() {} -func (r workflowTriggerScheduledRefActions) FindMany( - params ...WorkflowTriggerScheduledRefWhereParam, -) workflowTriggerScheduledRefFindMany { - var v workflowTriggerScheduledRefFindMany +func (r actionActions) FindMany( + params ...ActionWhereParam, +) actionFindMany { + var v actionFindMany v.query = builder.NewQuery() v.query.Engine = r.client @@ -295140,8 +319951,8 @@ func (r workflowTriggerScheduledRefActions) FindMany( v.query.Method = "findMany" - v.query.Model = "WorkflowTriggerScheduledRef" - v.query.Outputs = workflowTriggerScheduledRefOutput + v.query.Model = "Action" + v.query.Outputs = actionOutput var where []builder.Field for _, q := range params { @@ -295166,7 +319977,7 @@ func (r workflowTriggerScheduledRefActions) FindMany( return v } -func (r workflowTriggerScheduledRefFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowTriggerScheduledRefFindMany { +func (r actionFindMany) With(params ...ActionRelationWith) actionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -295179,7 +319990,7 @@ func (r workflowTriggerScheduledRefFindMany) With(params ...WorkflowTriggerSched return r } -func (r workflowTriggerScheduledRefFindMany) Select(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindMany { +func (r actionFindMany) Select(params ...actionPrismaFields) actionFindMany { var outputs []builder.Output for _, param := range params { @@ -295193,7 +320004,7 @@ func (r workflowTriggerScheduledRefFindMany) Select(params ...workflowTriggerSch return r } -func (r workflowTriggerScheduledRefFindMany) Omit(params ...workflowTriggerScheduledRefPrismaFields) workflowTriggerScheduledRefFindMany { +func (r actionFindMany) Omit(params ...actionPrismaFields) actionFindMany { var outputs []builder.Output var raw []string @@ -295201,7 +320012,7 @@ func (r workflowTriggerScheduledRefFindMany) Omit(params ...workflowTriggerSched raw = append(raw, string(param)) } - for _, output := range workflowTriggerScheduledRefOutput { + for _, output := range actionOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -295212,7 +320023,7 @@ func (r workflowTriggerScheduledRefFindMany) Omit(params ...workflowTriggerSched return r } -func (r workflowTriggerScheduledRefFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowTriggerScheduledRefFindMany { +func (r actionFindMany) OrderBy(params ...ActionOrderByParam) actionFindMany { var fields []builder.Field for _, param := range params { @@ -295232,7 +320043,7 @@ func (r workflowTriggerScheduledRefFindMany) OrderBy(params ...WorkflowTriggerSc return r } -func (r workflowTriggerScheduledRefFindMany) Skip(count int) workflowTriggerScheduledRefFindMany { +func (r actionFindMany) Skip(count int) actionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -295240,7 +320051,7 @@ func (r workflowTriggerScheduledRefFindMany) Skip(count int) workflowTriggerSche return r } -func (r workflowTriggerScheduledRefFindMany) Take(count int) workflowTriggerScheduledRefFindMany { +func (r actionFindMany) Take(count int) actionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -295248,7 +320059,7 @@ func (r workflowTriggerScheduledRefFindMany) Take(count int) workflowTriggerSche return r } -func (r workflowTriggerScheduledRefFindMany) Cursor(cursor WorkflowTriggerScheduledRefCursorParam) workflowTriggerScheduledRefFindMany { +func (r actionFindMany) Cursor(cursor ActionCursorParam) actionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -295256,11 +320067,11 @@ func (r workflowTriggerScheduledRefFindMany) Cursor(cursor WorkflowTriggerSchedu return r } -func (r workflowTriggerScheduledRefFindMany) Exec(ctx context.Context) ( - []WorkflowTriggerScheduledRefModel, +func (r actionFindMany) Exec(ctx context.Context) ( + []ActionModel, error, ) { - var v []WorkflowTriggerScheduledRefModel + var v []ActionModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295268,11 +320079,11 @@ func (r workflowTriggerScheduledRefFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowTriggerScheduledRefFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowTriggerScheduledRef, +func (r actionFindMany) ExecInner(ctx context.Context) ( + []InnerAction, error, ) { - var v []InnerWorkflowTriggerScheduledRef + var v []InnerAction if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295280,14 +320091,14 @@ func (r workflowTriggerScheduledRefFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowTriggerScheduledRefFindMany) Update(params ...WorkflowTriggerScheduledRefSetParam) workflowTriggerScheduledRefUpdateMany { +func (r actionFindMany) Update(params ...ActionSetParam) actionUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowTriggerScheduledRef" + r.query.Model = "Action" r.query.Outputs = countOutput - var v workflowTriggerScheduledRefUpdateMany + var v actionUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -295316,17 +320127,17 @@ func (r workflowTriggerScheduledRefFindMany) Update(params ...WorkflowTriggerSch return v } -type workflowTriggerScheduledRefUpdateMany struct { +type actionUpdateMany struct { query builder.Query } -func (r workflowTriggerScheduledRefUpdateMany) ExtractQuery() builder.Query { +func (r actionUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowTriggerScheduledRefUpdateMany) workflowTriggerScheduledRefModel() {} +func (r actionUpdateMany) actionModel() {} -func (r workflowTriggerScheduledRefUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -295334,36 +320145,36 @@ func (r workflowTriggerScheduledRefUpdateMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r workflowTriggerScheduledRefUpdateMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionUpdateMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowTriggerScheduledRefFindMany) Delete() workflowTriggerScheduledRefDeleteMany { - var v workflowTriggerScheduledRefDeleteMany +func (r actionFindMany) Delete() actionDeleteMany { + var v actionDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowTriggerScheduledRef" + v.query.Model = "Action" v.query.Outputs = countOutput return v } -type workflowTriggerScheduledRefDeleteMany struct { +type actionDeleteMany struct { query builder.Query } -func (r workflowTriggerScheduledRefDeleteMany) ExtractQuery() builder.Query { +func (r actionDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowTriggerScheduledRefDeleteMany) workflowTriggerScheduledRefModel() {} +func (p actionDeleteMany) actionModel() {} -func (r workflowTriggerScheduledRefDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r actionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -295371,30 +320182,30 @@ func (r workflowTriggerScheduledRefDeleteMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r workflowTriggerScheduledRefDeleteMany) Tx() WorkflowTriggerScheduledRefManyTxResult { - v := newWorkflowTriggerScheduledRefManyTxResult() +func (r actionDeleteMany) Tx() ActionManyTxResult { + v := newActionManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToTenantFindUnique struct { +type stepDesiredWorkerLabelToStepFindUnique struct { query builder.Query } -func (r jobToTenantFindUnique) getQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepFindUnique) getQuery() builder.Query { return r.query } -func (r jobToTenantFindUnique) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToTenantFindUnique) with() {} -func (r jobToTenantFindUnique) jobModel() {} -func (r jobToTenantFindUnique) jobRelation() {} +func (r stepDesiredWorkerLabelToStepFindUnique) with() {} +func (r stepDesiredWorkerLabelToStepFindUnique) stepDesiredWorkerLabelModel() {} +func (r stepDesiredWorkerLabelToStepFindUnique) stepDesiredWorkerLabelRelation() {} -func (r jobToTenantFindUnique) With(params ...TenantRelationWith) jobToTenantFindUnique { +func (r stepDesiredWorkerLabelToStepFindUnique) With(params ...StepRelationWith) stepDesiredWorkerLabelToStepFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -295407,7 +320218,7 @@ func (r jobToTenantFindUnique) With(params ...TenantRelationWith) jobToTenantFin return r } -func (r jobToTenantFindUnique) Select(params ...jobPrismaFields) jobToTenantFindUnique { +func (r stepDesiredWorkerLabelToStepFindUnique) Select(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelToStepFindUnique { var outputs []builder.Output for _, param := range params { @@ -295421,7 +320232,7 @@ func (r jobToTenantFindUnique) Select(params ...jobPrismaFields) jobToTenantFind return r } -func (r jobToTenantFindUnique) Omit(params ...jobPrismaFields) jobToTenantFindUnique { +func (r stepDesiredWorkerLabelToStepFindUnique) Omit(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelToStepFindUnique { var outputs []builder.Output var raw []string @@ -295429,7 +320240,7 @@ func (r jobToTenantFindUnique) Omit(params ...jobPrismaFields) jobToTenantFindUn raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepDesiredWorkerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -295440,11 +320251,11 @@ func (r jobToTenantFindUnique) Omit(params ...jobPrismaFields) jobToTenantFindUn return r } -func (r jobToTenantFindUnique) Exec(ctx context.Context) ( - *JobModel, +func (r stepDesiredWorkerLabelToStepFindUnique) Exec(ctx context.Context) ( + *StepDesiredWorkerLabelModel, error, ) { - var v *JobModel + var v *StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295456,11 +320267,11 @@ func (r jobToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepDesiredWorkerLabelToStepFindUnique) ExecInner(ctx context.Context) ( + *InnerStepDesiredWorkerLabel, error, ) { - var v *InnerJob + var v *InnerStepDesiredWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295472,12 +320283,12 @@ func (r jobToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToTenantFindUnique) Update(params ...JobSetParam) jobToTenantUpdateUnique { +func (r stepDesiredWorkerLabelToStepFindUnique) Update(params ...StepDesiredWorkerLabelSetParam) stepDesiredWorkerLabelToStepUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Job" + r.query.Model = "StepDesiredWorkerLabel" - var v jobToTenantUpdateUnique + var v stepDesiredWorkerLabelToStepUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -295506,83 +320317,83 @@ func (r jobToTenantFindUnique) Update(params ...JobSetParam) jobToTenantUpdateUn return v } -type jobToTenantUpdateUnique struct { +type stepDesiredWorkerLabelToStepUpdateUnique struct { query builder.Query } -func (r jobToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToTenantUpdateUnique) jobModel() {} +func (r stepDesiredWorkerLabelToStepUpdateUnique) stepDesiredWorkerLabelModel() {} -func (r jobToTenantUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepDesiredWorkerLabelToStepUpdateUnique) Exec(ctx context.Context) (*StepDesiredWorkerLabelModel, error) { + var v StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToTenantUpdateUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepDesiredWorkerLabelToStepUpdateUnique) Tx() StepDesiredWorkerLabelUniqueTxResult { + v := newStepDesiredWorkerLabelUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToTenantFindUnique) Delete() jobToTenantDeleteUnique { - var v jobToTenantDeleteUnique +func (r stepDesiredWorkerLabelToStepFindUnique) Delete() stepDesiredWorkerLabelToStepDeleteUnique { + var v stepDesiredWorkerLabelToStepDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Job" + v.query.Model = "StepDesiredWorkerLabel" return v } -type jobToTenantDeleteUnique struct { +type stepDesiredWorkerLabelToStepDeleteUnique struct { query builder.Query } -func (r jobToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobToTenantDeleteUnique) jobModel() {} +func (p stepDesiredWorkerLabelToStepDeleteUnique) stepDesiredWorkerLabelModel() {} -func (r jobToTenantDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepDesiredWorkerLabelToStepDeleteUnique) Exec(ctx context.Context) (*StepDesiredWorkerLabelModel, error) { + var v StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToTenantDeleteUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepDesiredWorkerLabelToStepDeleteUnique) Tx() StepDesiredWorkerLabelUniqueTxResult { + v := newStepDesiredWorkerLabelUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToTenantFindFirst struct { +type stepDesiredWorkerLabelToStepFindFirst struct { query builder.Query } -func (r jobToTenantFindFirst) getQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepFindFirst) getQuery() builder.Query { return r.query } -func (r jobToTenantFindFirst) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobToTenantFindFirst) with() {} -func (r jobToTenantFindFirst) jobModel() {} -func (r jobToTenantFindFirst) jobRelation() {} +func (r stepDesiredWorkerLabelToStepFindFirst) with() {} +func (r stepDesiredWorkerLabelToStepFindFirst) stepDesiredWorkerLabelModel() {} +func (r stepDesiredWorkerLabelToStepFindFirst) stepDesiredWorkerLabelRelation() {} -func (r jobToTenantFindFirst) With(params ...TenantRelationWith) jobToTenantFindFirst { +func (r stepDesiredWorkerLabelToStepFindFirst) With(params ...StepRelationWith) stepDesiredWorkerLabelToStepFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -295595,7 +320406,7 @@ func (r jobToTenantFindFirst) With(params ...TenantRelationWith) jobToTenantFind return r } -func (r jobToTenantFindFirst) Select(params ...jobPrismaFields) jobToTenantFindFirst { +func (r stepDesiredWorkerLabelToStepFindFirst) Select(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelToStepFindFirst { var outputs []builder.Output for _, param := range params { @@ -295609,7 +320420,7 @@ func (r jobToTenantFindFirst) Select(params ...jobPrismaFields) jobToTenantFindF return r } -func (r jobToTenantFindFirst) Omit(params ...jobPrismaFields) jobToTenantFindFirst { +func (r stepDesiredWorkerLabelToStepFindFirst) Omit(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelToStepFindFirst { var outputs []builder.Output var raw []string @@ -295617,7 +320428,7 @@ func (r jobToTenantFindFirst) Omit(params ...jobPrismaFields) jobToTenantFindFir raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepDesiredWorkerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -295628,7 +320439,7 @@ func (r jobToTenantFindFirst) Omit(params ...jobPrismaFields) jobToTenantFindFir return r } -func (r jobToTenantFindFirst) OrderBy(params ...TenantOrderByParam) jobToTenantFindFirst { +func (r stepDesiredWorkerLabelToStepFindFirst) OrderBy(params ...StepOrderByParam) stepDesiredWorkerLabelToStepFindFirst { var fields []builder.Field for _, param := range params { @@ -295648,7 +320459,7 @@ func (r jobToTenantFindFirst) OrderBy(params ...TenantOrderByParam) jobToTenantF return r } -func (r jobToTenantFindFirst) Skip(count int) jobToTenantFindFirst { +func (r stepDesiredWorkerLabelToStepFindFirst) Skip(count int) stepDesiredWorkerLabelToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -295656,7 +320467,7 @@ func (r jobToTenantFindFirst) Skip(count int) jobToTenantFindFirst { return r } -func (r jobToTenantFindFirst) Take(count int) jobToTenantFindFirst { +func (r stepDesiredWorkerLabelToStepFindFirst) Take(count int) stepDesiredWorkerLabelToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -295664,7 +320475,7 @@ func (r jobToTenantFindFirst) Take(count int) jobToTenantFindFirst { return r } -func (r jobToTenantFindFirst) Cursor(cursor JobCursorParam) jobToTenantFindFirst { +func (r stepDesiredWorkerLabelToStepFindFirst) Cursor(cursor StepDesiredWorkerLabelCursorParam) stepDesiredWorkerLabelToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -295672,11 +320483,11 @@ func (r jobToTenantFindFirst) Cursor(cursor JobCursorParam) jobToTenantFindFirst return r } -func (r jobToTenantFindFirst) Exec(ctx context.Context) ( - *JobModel, +func (r stepDesiredWorkerLabelToStepFindFirst) Exec(ctx context.Context) ( + *StepDesiredWorkerLabelModel, error, ) { - var v *JobModel + var v *StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295688,11 +320499,11 @@ func (r jobToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepDesiredWorkerLabelToStepFindFirst) ExecInner(ctx context.Context) ( + *InnerStepDesiredWorkerLabel, error, ) { - var v *InnerJob + var v *InnerStepDesiredWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295704,23 +320515,23 @@ func (r jobToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobToTenantFindMany struct { +type stepDesiredWorkerLabelToStepFindMany struct { query builder.Query } -func (r jobToTenantFindMany) getQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepFindMany) getQuery() builder.Query { return r.query } -func (r jobToTenantFindMany) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobToTenantFindMany) with() {} -func (r jobToTenantFindMany) jobModel() {} -func (r jobToTenantFindMany) jobRelation() {} +func (r stepDesiredWorkerLabelToStepFindMany) with() {} +func (r stepDesiredWorkerLabelToStepFindMany) stepDesiredWorkerLabelModel() {} +func (r stepDesiredWorkerLabelToStepFindMany) stepDesiredWorkerLabelRelation() {} -func (r jobToTenantFindMany) With(params ...TenantRelationWith) jobToTenantFindMany { +func (r stepDesiredWorkerLabelToStepFindMany) With(params ...StepRelationWith) stepDesiredWorkerLabelToStepFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -295733,7 +320544,7 @@ func (r jobToTenantFindMany) With(params ...TenantRelationWith) jobToTenantFindM return r } -func (r jobToTenantFindMany) Select(params ...jobPrismaFields) jobToTenantFindMany { +func (r stepDesiredWorkerLabelToStepFindMany) Select(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelToStepFindMany { var outputs []builder.Output for _, param := range params { @@ -295747,7 +320558,7 @@ func (r jobToTenantFindMany) Select(params ...jobPrismaFields) jobToTenantFindMa return r } -func (r jobToTenantFindMany) Omit(params ...jobPrismaFields) jobToTenantFindMany { +func (r stepDesiredWorkerLabelToStepFindMany) Omit(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelToStepFindMany { var outputs []builder.Output var raw []string @@ -295755,7 +320566,7 @@ func (r jobToTenantFindMany) Omit(params ...jobPrismaFields) jobToTenantFindMany raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepDesiredWorkerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -295766,7 +320577,7 @@ func (r jobToTenantFindMany) Omit(params ...jobPrismaFields) jobToTenantFindMany return r } -func (r jobToTenantFindMany) OrderBy(params ...TenantOrderByParam) jobToTenantFindMany { +func (r stepDesiredWorkerLabelToStepFindMany) OrderBy(params ...StepOrderByParam) stepDesiredWorkerLabelToStepFindMany { var fields []builder.Field for _, param := range params { @@ -295786,7 +320597,7 @@ func (r jobToTenantFindMany) OrderBy(params ...TenantOrderByParam) jobToTenantFi return r } -func (r jobToTenantFindMany) Skip(count int) jobToTenantFindMany { +func (r stepDesiredWorkerLabelToStepFindMany) Skip(count int) stepDesiredWorkerLabelToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -295794,7 +320605,7 @@ func (r jobToTenantFindMany) Skip(count int) jobToTenantFindMany { return r } -func (r jobToTenantFindMany) Take(count int) jobToTenantFindMany { +func (r stepDesiredWorkerLabelToStepFindMany) Take(count int) stepDesiredWorkerLabelToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -295802,7 +320613,7 @@ func (r jobToTenantFindMany) Take(count int) jobToTenantFindMany { return r } -func (r jobToTenantFindMany) Cursor(cursor JobCursorParam) jobToTenantFindMany { +func (r stepDesiredWorkerLabelToStepFindMany) Cursor(cursor StepDesiredWorkerLabelCursorParam) stepDesiredWorkerLabelToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -295810,11 +320621,11 @@ func (r jobToTenantFindMany) Cursor(cursor JobCursorParam) jobToTenantFindMany { return r } -func (r jobToTenantFindMany) Exec(ctx context.Context) ( - []JobModel, +func (r stepDesiredWorkerLabelToStepFindMany) Exec(ctx context.Context) ( + []StepDesiredWorkerLabelModel, error, ) { - var v []JobModel + var v []StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295822,11 +320633,11 @@ func (r jobToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerJob, +func (r stepDesiredWorkerLabelToStepFindMany) ExecInner(ctx context.Context) ( + []InnerStepDesiredWorkerLabel, error, ) { - var v []InnerJob + var v []InnerStepDesiredWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -295834,14 +320645,14 @@ func (r jobToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToTenantFindMany) Update(params ...JobSetParam) jobToTenantUpdateMany { +func (r stepDesiredWorkerLabelToStepFindMany) Update(params ...StepDesiredWorkerLabelSetParam) stepDesiredWorkerLabelToStepUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Job" + r.query.Model = "StepDesiredWorkerLabel" r.query.Outputs = countOutput - var v jobToTenantUpdateMany + var v stepDesiredWorkerLabelToStepUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -295870,17 +320681,17 @@ func (r jobToTenantFindMany) Update(params ...JobSetParam) jobToTenantUpdateMany return v } -type jobToTenantUpdateMany struct { +type stepDesiredWorkerLabelToStepUpdateMany struct { query builder.Query } -func (r jobToTenantUpdateMany) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobToTenantUpdateMany) jobModel() {} +func (r stepDesiredWorkerLabelToStepUpdateMany) stepDesiredWorkerLabelModel() {} -func (r jobToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepDesiredWorkerLabelToStepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -295888,36 +320699,36 @@ func (r jobToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobToTenantUpdateMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepDesiredWorkerLabelToStepUpdateMany) Tx() StepDesiredWorkerLabelManyTxResult { + v := newStepDesiredWorkerLabelManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToTenantFindMany) Delete() jobToTenantDeleteMany { - var v jobToTenantDeleteMany +func (r stepDesiredWorkerLabelToStepFindMany) Delete() stepDesiredWorkerLabelToStepDeleteMany { + var v stepDesiredWorkerLabelToStepDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Job" + v.query.Model = "StepDesiredWorkerLabel" v.query.Outputs = countOutput return v } -type jobToTenantDeleteMany struct { +type stepDesiredWorkerLabelToStepDeleteMany struct { query builder.Query } -func (r jobToTenantDeleteMany) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelToStepDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobToTenantDeleteMany) jobModel() {} +func (p stepDesiredWorkerLabelToStepDeleteMany) stepDesiredWorkerLabelModel() {} -func (r jobToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepDesiredWorkerLabelToStepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -295925,30 +320736,52 @@ func (r jobToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobToTenantDeleteMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepDesiredWorkerLabelToStepDeleteMany) Tx() StepDesiredWorkerLabelManyTxResult { + v := newStepDesiredWorkerLabelManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToWorkflowFindUnique struct { +type stepDesiredWorkerLabelFindUnique struct { query builder.Query } -func (r jobToWorkflowFindUnique) getQuery() builder.Query { +func (r stepDesiredWorkerLabelFindUnique) getQuery() builder.Query { return r.query } -func (r jobToWorkflowFindUnique) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToWorkflowFindUnique) with() {} -func (r jobToWorkflowFindUnique) jobModel() {} -func (r jobToWorkflowFindUnique) jobRelation() {} +func (r stepDesiredWorkerLabelFindUnique) with() {} +func (r stepDesiredWorkerLabelFindUnique) stepDesiredWorkerLabelModel() {} +func (r stepDesiredWorkerLabelFindUnique) stepDesiredWorkerLabelRelation() {} -func (r jobToWorkflowFindUnique) With(params ...WorkflowVersionRelationWith) jobToWorkflowFindUnique { +func (r stepDesiredWorkerLabelActions) FindUnique( + params StepDesiredWorkerLabelEqualsUniqueWhereParam, +) stepDesiredWorkerLabelFindUnique { + var v stepDesiredWorkerLabelFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "StepDesiredWorkerLabel" + v.query.Outputs = stepDesiredWorkerLabelOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r stepDesiredWorkerLabelFindUnique) With(params ...StepDesiredWorkerLabelRelationWith) stepDesiredWorkerLabelFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -295961,7 +320794,7 @@ func (r jobToWorkflowFindUnique) With(params ...WorkflowVersionRelationWith) job return r } -func (r jobToWorkflowFindUnique) Select(params ...jobPrismaFields) jobToWorkflowFindUnique { +func (r stepDesiredWorkerLabelFindUnique) Select(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelFindUnique { var outputs []builder.Output for _, param := range params { @@ -295975,7 +320808,7 @@ func (r jobToWorkflowFindUnique) Select(params ...jobPrismaFields) jobToWorkflow return r } -func (r jobToWorkflowFindUnique) Omit(params ...jobPrismaFields) jobToWorkflowFindUnique { +func (r stepDesiredWorkerLabelFindUnique) Omit(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelFindUnique { var outputs []builder.Output var raw []string @@ -295983,7 +320816,7 @@ func (r jobToWorkflowFindUnique) Omit(params ...jobPrismaFields) jobToWorkflowFi raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepDesiredWorkerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -295994,11 +320827,11 @@ func (r jobToWorkflowFindUnique) Omit(params ...jobPrismaFields) jobToWorkflowFi return r } -func (r jobToWorkflowFindUnique) Exec(ctx context.Context) ( - *JobModel, +func (r stepDesiredWorkerLabelFindUnique) Exec(ctx context.Context) ( + *StepDesiredWorkerLabelModel, error, ) { - var v *JobModel + var v *StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296010,11 +320843,11 @@ func (r jobToWorkflowFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobToWorkflowFindUnique) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepDesiredWorkerLabelFindUnique) ExecInner(ctx context.Context) ( + *InnerStepDesiredWorkerLabel, error, ) { - var v *InnerJob + var v *InnerStepDesiredWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296026,12 +320859,12 @@ func (r jobToWorkflowFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToWorkflowFindUnique) Update(params ...JobSetParam) jobToWorkflowUpdateUnique { +func (r stepDesiredWorkerLabelFindUnique) Update(params ...StepDesiredWorkerLabelSetParam) stepDesiredWorkerLabelUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Job" + r.query.Model = "StepDesiredWorkerLabel" - var v jobToWorkflowUpdateUnique + var v stepDesiredWorkerLabelUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -296060,83 +320893,120 @@ func (r jobToWorkflowFindUnique) Update(params ...JobSetParam) jobToWorkflowUpda return v } -type jobToWorkflowUpdateUnique struct { +type stepDesiredWorkerLabelUpdateUnique struct { query builder.Query } -func (r jobToWorkflowUpdateUnique) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToWorkflowUpdateUnique) jobModel() {} +func (r stepDesiredWorkerLabelUpdateUnique) stepDesiredWorkerLabelModel() {} -func (r jobToWorkflowUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepDesiredWorkerLabelUpdateUnique) Exec(ctx context.Context) (*StepDesiredWorkerLabelModel, error) { + var v StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToWorkflowUpdateUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepDesiredWorkerLabelUpdateUnique) Tx() StepDesiredWorkerLabelUniqueTxResult { + v := newStepDesiredWorkerLabelUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToWorkflowFindUnique) Delete() jobToWorkflowDeleteUnique { - var v jobToWorkflowDeleteUnique +func (r stepDesiredWorkerLabelFindUnique) Delete() stepDesiredWorkerLabelDeleteUnique { + var v stepDesiredWorkerLabelDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Job" + v.query.Model = "StepDesiredWorkerLabel" return v } -type jobToWorkflowDeleteUnique struct { +type stepDesiredWorkerLabelDeleteUnique struct { query builder.Query } -func (r jobToWorkflowDeleteUnique) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobToWorkflowDeleteUnique) jobModel() {} +func (p stepDesiredWorkerLabelDeleteUnique) stepDesiredWorkerLabelModel() {} -func (r jobToWorkflowDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepDesiredWorkerLabelDeleteUnique) Exec(ctx context.Context) (*StepDesiredWorkerLabelModel, error) { + var v StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToWorkflowDeleteUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepDesiredWorkerLabelDeleteUnique) Tx() StepDesiredWorkerLabelUniqueTxResult { + v := newStepDesiredWorkerLabelUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToWorkflowFindFirst struct { +type stepDesiredWorkerLabelFindFirst struct { query builder.Query } -func (r jobToWorkflowFindFirst) getQuery() builder.Query { +func (r stepDesiredWorkerLabelFindFirst) getQuery() builder.Query { return r.query } -func (r jobToWorkflowFindFirst) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobToWorkflowFindFirst) with() {} -func (r jobToWorkflowFindFirst) jobModel() {} -func (r jobToWorkflowFindFirst) jobRelation() {} +func (r stepDesiredWorkerLabelFindFirst) with() {} +func (r stepDesiredWorkerLabelFindFirst) stepDesiredWorkerLabelModel() {} +func (r stepDesiredWorkerLabelFindFirst) stepDesiredWorkerLabelRelation() {} -func (r jobToWorkflowFindFirst) With(params ...WorkflowVersionRelationWith) jobToWorkflowFindFirst { +func (r stepDesiredWorkerLabelActions) FindFirst( + params ...StepDesiredWorkerLabelWhereParam, +) stepDesiredWorkerLabelFindFirst { + var v stepDesiredWorkerLabelFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "StepDesiredWorkerLabel" + v.query.Outputs = stepDesiredWorkerLabelOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepDesiredWorkerLabelFindFirst) With(params ...StepDesiredWorkerLabelRelationWith) stepDesiredWorkerLabelFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -296149,7 +321019,7 @@ func (r jobToWorkflowFindFirst) With(params ...WorkflowVersionRelationWith) jobT return r } -func (r jobToWorkflowFindFirst) Select(params ...jobPrismaFields) jobToWorkflowFindFirst { +func (r stepDesiredWorkerLabelFindFirst) Select(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelFindFirst { var outputs []builder.Output for _, param := range params { @@ -296163,7 +321033,7 @@ func (r jobToWorkflowFindFirst) Select(params ...jobPrismaFields) jobToWorkflowF return r } -func (r jobToWorkflowFindFirst) Omit(params ...jobPrismaFields) jobToWorkflowFindFirst { +func (r stepDesiredWorkerLabelFindFirst) Omit(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelFindFirst { var outputs []builder.Output var raw []string @@ -296171,7 +321041,7 @@ func (r jobToWorkflowFindFirst) Omit(params ...jobPrismaFields) jobToWorkflowFin raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepDesiredWorkerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -296182,7 +321052,7 @@ func (r jobToWorkflowFindFirst) Omit(params ...jobPrismaFields) jobToWorkflowFin return r } -func (r jobToWorkflowFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) jobToWorkflowFindFirst { +func (r stepDesiredWorkerLabelFindFirst) OrderBy(params ...StepDesiredWorkerLabelOrderByParam) stepDesiredWorkerLabelFindFirst { var fields []builder.Field for _, param := range params { @@ -296202,7 +321072,7 @@ func (r jobToWorkflowFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) j return r } -func (r jobToWorkflowFindFirst) Skip(count int) jobToWorkflowFindFirst { +func (r stepDesiredWorkerLabelFindFirst) Skip(count int) stepDesiredWorkerLabelFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -296210,7 +321080,7 @@ func (r jobToWorkflowFindFirst) Skip(count int) jobToWorkflowFindFirst { return r } -func (r jobToWorkflowFindFirst) Take(count int) jobToWorkflowFindFirst { +func (r stepDesiredWorkerLabelFindFirst) Take(count int) stepDesiredWorkerLabelFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -296218,7 +321088,7 @@ func (r jobToWorkflowFindFirst) Take(count int) jobToWorkflowFindFirst { return r } -func (r jobToWorkflowFindFirst) Cursor(cursor JobCursorParam) jobToWorkflowFindFirst { +func (r stepDesiredWorkerLabelFindFirst) Cursor(cursor StepDesiredWorkerLabelCursorParam) stepDesiredWorkerLabelFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -296226,11 +321096,11 @@ func (r jobToWorkflowFindFirst) Cursor(cursor JobCursorParam) jobToWorkflowFindF return r } -func (r jobToWorkflowFindFirst) Exec(ctx context.Context) ( - *JobModel, +func (r stepDesiredWorkerLabelFindFirst) Exec(ctx context.Context) ( + *StepDesiredWorkerLabelModel, error, ) { - var v *JobModel + var v *StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296242,11 +321112,11 @@ func (r jobToWorkflowFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobToWorkflowFindFirst) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepDesiredWorkerLabelFindFirst) ExecInner(ctx context.Context) ( + *InnerStepDesiredWorkerLabel, error, ) { - var v *InnerJob + var v *InnerStepDesiredWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296258,23 +321128,60 @@ func (r jobToWorkflowFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobToWorkflowFindMany struct { +type stepDesiredWorkerLabelFindMany struct { query builder.Query } -func (r jobToWorkflowFindMany) getQuery() builder.Query { +func (r stepDesiredWorkerLabelFindMany) getQuery() builder.Query { return r.query } -func (r jobToWorkflowFindMany) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobToWorkflowFindMany) with() {} -func (r jobToWorkflowFindMany) jobModel() {} -func (r jobToWorkflowFindMany) jobRelation() {} +func (r stepDesiredWorkerLabelFindMany) with() {} +func (r stepDesiredWorkerLabelFindMany) stepDesiredWorkerLabelModel() {} +func (r stepDesiredWorkerLabelFindMany) stepDesiredWorkerLabelRelation() {} -func (r jobToWorkflowFindMany) With(params ...WorkflowVersionRelationWith) jobToWorkflowFindMany { +func (r stepDesiredWorkerLabelActions) FindMany( + params ...StepDesiredWorkerLabelWhereParam, +) stepDesiredWorkerLabelFindMany { + var v stepDesiredWorkerLabelFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "StepDesiredWorkerLabel" + v.query.Outputs = stepDesiredWorkerLabelOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepDesiredWorkerLabelFindMany) With(params ...StepDesiredWorkerLabelRelationWith) stepDesiredWorkerLabelFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -296287,7 +321194,7 @@ func (r jobToWorkflowFindMany) With(params ...WorkflowVersionRelationWith) jobTo return r } -func (r jobToWorkflowFindMany) Select(params ...jobPrismaFields) jobToWorkflowFindMany { +func (r stepDesiredWorkerLabelFindMany) Select(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelFindMany { var outputs []builder.Output for _, param := range params { @@ -296301,7 +321208,7 @@ func (r jobToWorkflowFindMany) Select(params ...jobPrismaFields) jobToWorkflowFi return r } -func (r jobToWorkflowFindMany) Omit(params ...jobPrismaFields) jobToWorkflowFindMany { +func (r stepDesiredWorkerLabelFindMany) Omit(params ...stepDesiredWorkerLabelPrismaFields) stepDesiredWorkerLabelFindMany { var outputs []builder.Output var raw []string @@ -296309,7 +321216,7 @@ func (r jobToWorkflowFindMany) Omit(params ...jobPrismaFields) jobToWorkflowFind raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepDesiredWorkerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -296320,7 +321227,7 @@ func (r jobToWorkflowFindMany) Omit(params ...jobPrismaFields) jobToWorkflowFind return r } -func (r jobToWorkflowFindMany) OrderBy(params ...WorkflowVersionOrderByParam) jobToWorkflowFindMany { +func (r stepDesiredWorkerLabelFindMany) OrderBy(params ...StepDesiredWorkerLabelOrderByParam) stepDesiredWorkerLabelFindMany { var fields []builder.Field for _, param := range params { @@ -296340,7 +321247,7 @@ func (r jobToWorkflowFindMany) OrderBy(params ...WorkflowVersionOrderByParam) jo return r } -func (r jobToWorkflowFindMany) Skip(count int) jobToWorkflowFindMany { +func (r stepDesiredWorkerLabelFindMany) Skip(count int) stepDesiredWorkerLabelFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -296348,7 +321255,7 @@ func (r jobToWorkflowFindMany) Skip(count int) jobToWorkflowFindMany { return r } -func (r jobToWorkflowFindMany) Take(count int) jobToWorkflowFindMany { +func (r stepDesiredWorkerLabelFindMany) Take(count int) stepDesiredWorkerLabelFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -296356,7 +321263,7 @@ func (r jobToWorkflowFindMany) Take(count int) jobToWorkflowFindMany { return r } -func (r jobToWorkflowFindMany) Cursor(cursor JobCursorParam) jobToWorkflowFindMany { +func (r stepDesiredWorkerLabelFindMany) Cursor(cursor StepDesiredWorkerLabelCursorParam) stepDesiredWorkerLabelFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -296364,11 +321271,11 @@ func (r jobToWorkflowFindMany) Cursor(cursor JobCursorParam) jobToWorkflowFindMa return r } -func (r jobToWorkflowFindMany) Exec(ctx context.Context) ( - []JobModel, +func (r stepDesiredWorkerLabelFindMany) Exec(ctx context.Context) ( + []StepDesiredWorkerLabelModel, error, ) { - var v []JobModel + var v []StepDesiredWorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296376,11 +321283,11 @@ func (r jobToWorkflowFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobToWorkflowFindMany) ExecInner(ctx context.Context) ( - []InnerJob, +func (r stepDesiredWorkerLabelFindMany) ExecInner(ctx context.Context) ( + []InnerStepDesiredWorkerLabel, error, ) { - var v []InnerJob + var v []InnerStepDesiredWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296388,14 +321295,14 @@ func (r jobToWorkflowFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToWorkflowFindMany) Update(params ...JobSetParam) jobToWorkflowUpdateMany { +func (r stepDesiredWorkerLabelFindMany) Update(params ...StepDesiredWorkerLabelSetParam) stepDesiredWorkerLabelUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Job" + r.query.Model = "StepDesiredWorkerLabel" r.query.Outputs = countOutput - var v jobToWorkflowUpdateMany + var v stepDesiredWorkerLabelUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -296424,17 +321331,17 @@ func (r jobToWorkflowFindMany) Update(params ...JobSetParam) jobToWorkflowUpdate return v } -type jobToWorkflowUpdateMany struct { +type stepDesiredWorkerLabelUpdateMany struct { query builder.Query } -func (r jobToWorkflowUpdateMany) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobToWorkflowUpdateMany) jobModel() {} +func (r stepDesiredWorkerLabelUpdateMany) stepDesiredWorkerLabelModel() {} -func (r jobToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepDesiredWorkerLabelUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -296442,36 +321349,36 @@ func (r jobToWorkflowUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r jobToWorkflowUpdateMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepDesiredWorkerLabelUpdateMany) Tx() StepDesiredWorkerLabelManyTxResult { + v := newStepDesiredWorkerLabelManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToWorkflowFindMany) Delete() jobToWorkflowDeleteMany { - var v jobToWorkflowDeleteMany +func (r stepDesiredWorkerLabelFindMany) Delete() stepDesiredWorkerLabelDeleteMany { + var v stepDesiredWorkerLabelDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Job" + v.query.Model = "StepDesiredWorkerLabel" v.query.Outputs = countOutput return v } -type jobToWorkflowDeleteMany struct { +type stepDesiredWorkerLabelDeleteMany struct { query builder.Query } -func (r jobToWorkflowDeleteMany) ExtractQuery() builder.Query { +func (r stepDesiredWorkerLabelDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobToWorkflowDeleteMany) jobModel() {} +func (p stepDesiredWorkerLabelDeleteMany) stepDesiredWorkerLabelModel() {} -func (r jobToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepDesiredWorkerLabelDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -296479,30 +321386,30 @@ func (r jobToWorkflowDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r jobToWorkflowDeleteMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepDesiredWorkerLabelDeleteMany) Tx() StepDesiredWorkerLabelManyTxResult { + v := newStepDesiredWorkerLabelManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToStepsFindUnique struct { +type stepToTenantFindUnique struct { query builder.Query } -func (r jobToStepsFindUnique) getQuery() builder.Query { +func (r stepToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r jobToStepsFindUnique) ExtractQuery() builder.Query { +func (r stepToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToStepsFindUnique) with() {} -func (r jobToStepsFindUnique) jobModel() {} -func (r jobToStepsFindUnique) jobRelation() {} +func (r stepToTenantFindUnique) with() {} +func (r stepToTenantFindUnique) stepModel() {} +func (r stepToTenantFindUnique) stepRelation() {} -func (r jobToStepsFindUnique) With(params ...StepRelationWith) jobToStepsFindUnique { +func (r stepToTenantFindUnique) With(params ...TenantRelationWith) stepToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -296515,7 +321422,7 @@ func (r jobToStepsFindUnique) With(params ...StepRelationWith) jobToStepsFindUni return r } -func (r jobToStepsFindUnique) Select(params ...jobPrismaFields) jobToStepsFindUnique { +func (r stepToTenantFindUnique) Select(params ...stepPrismaFields) stepToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -296529,7 +321436,7 @@ func (r jobToStepsFindUnique) Select(params ...jobPrismaFields) jobToStepsFindUn return r } -func (r jobToStepsFindUnique) Omit(params ...jobPrismaFields) jobToStepsFindUnique { +func (r stepToTenantFindUnique) Omit(params ...stepPrismaFields) stepToTenantFindUnique { var outputs []builder.Output var raw []string @@ -296537,7 +321444,7 @@ func (r jobToStepsFindUnique) Omit(params ...jobPrismaFields) jobToStepsFindUniq raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -296548,11 +321455,11 @@ func (r jobToStepsFindUnique) Omit(params ...jobPrismaFields) jobToStepsFindUniq return r } -func (r jobToStepsFindUnique) Exec(ctx context.Context) ( - *JobModel, +func (r stepToTenantFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *JobModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296564,11 +321471,11 @@ func (r jobToStepsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobToStepsFindUnique) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerJob + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296580,12 +321487,12 @@ func (r jobToStepsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToStepsFindUnique) Update(params ...JobSetParam) jobToStepsUpdateUnique { +func (r stepToTenantFindUnique) Update(params ...StepSetParam) stepToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Job" + r.query.Model = "Step" - var v jobToStepsUpdateUnique + var v stepToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -296614,83 +321521,83 @@ func (r jobToStepsFindUnique) Update(params ...JobSetParam) jobToStepsUpdateUniq return v } -type jobToStepsUpdateUnique struct { +type stepToTenantUpdateUnique struct { query builder.Query } -func (r jobToStepsUpdateUnique) ExtractQuery() builder.Query { +func (r stepToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToStepsUpdateUnique) jobModel() {} +func (r stepToTenantUpdateUnique) stepModel() {} -func (r jobToStepsUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepToTenantUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToStepsUpdateUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepToTenantUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToStepsFindUnique) Delete() jobToStepsDeleteUnique { - var v jobToStepsDeleteUnique +func (r stepToTenantFindUnique) Delete() stepToTenantDeleteUnique { + var v stepToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Job" + v.query.Model = "Step" return v } -type jobToStepsDeleteUnique struct { +type stepToTenantDeleteUnique struct { query builder.Query } -func (r jobToStepsDeleteUnique) ExtractQuery() builder.Query { +func (r stepToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobToStepsDeleteUnique) jobModel() {} +func (p stepToTenantDeleteUnique) stepModel() {} -func (r jobToStepsDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepToTenantDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToStepsDeleteUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepToTenantDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToStepsFindFirst struct { +type stepToTenantFindFirst struct { query builder.Query } -func (r jobToStepsFindFirst) getQuery() builder.Query { +func (r stepToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r jobToStepsFindFirst) ExtractQuery() builder.Query { +func (r stepToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobToStepsFindFirst) with() {} -func (r jobToStepsFindFirst) jobModel() {} -func (r jobToStepsFindFirst) jobRelation() {} +func (r stepToTenantFindFirst) with() {} +func (r stepToTenantFindFirst) stepModel() {} +func (r stepToTenantFindFirst) stepRelation() {} -func (r jobToStepsFindFirst) With(params ...StepRelationWith) jobToStepsFindFirst { +func (r stepToTenantFindFirst) With(params ...TenantRelationWith) stepToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -296703,7 +321610,7 @@ func (r jobToStepsFindFirst) With(params ...StepRelationWith) jobToStepsFindFirs return r } -func (r jobToStepsFindFirst) Select(params ...jobPrismaFields) jobToStepsFindFirst { +func (r stepToTenantFindFirst) Select(params ...stepPrismaFields) stepToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -296717,7 +321624,7 @@ func (r jobToStepsFindFirst) Select(params ...jobPrismaFields) jobToStepsFindFir return r } -func (r jobToStepsFindFirst) Omit(params ...jobPrismaFields) jobToStepsFindFirst { +func (r stepToTenantFindFirst) Omit(params ...stepPrismaFields) stepToTenantFindFirst { var outputs []builder.Output var raw []string @@ -296725,7 +321632,7 @@ func (r jobToStepsFindFirst) Omit(params ...jobPrismaFields) jobToStepsFindFirst raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -296736,7 +321643,7 @@ func (r jobToStepsFindFirst) Omit(params ...jobPrismaFields) jobToStepsFindFirst return r } -func (r jobToStepsFindFirst) OrderBy(params ...StepOrderByParam) jobToStepsFindFirst { +func (r stepToTenantFindFirst) OrderBy(params ...TenantOrderByParam) stepToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -296756,7 +321663,7 @@ func (r jobToStepsFindFirst) OrderBy(params ...StepOrderByParam) jobToStepsFindF return r } -func (r jobToStepsFindFirst) Skip(count int) jobToStepsFindFirst { +func (r stepToTenantFindFirst) Skip(count int) stepToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -296764,7 +321671,7 @@ func (r jobToStepsFindFirst) Skip(count int) jobToStepsFindFirst { return r } -func (r jobToStepsFindFirst) Take(count int) jobToStepsFindFirst { +func (r stepToTenantFindFirst) Take(count int) stepToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -296772,7 +321679,7 @@ func (r jobToStepsFindFirst) Take(count int) jobToStepsFindFirst { return r } -func (r jobToStepsFindFirst) Cursor(cursor JobCursorParam) jobToStepsFindFirst { +func (r stepToTenantFindFirst) Cursor(cursor StepCursorParam) stepToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -296780,11 +321687,11 @@ func (r jobToStepsFindFirst) Cursor(cursor JobCursorParam) jobToStepsFindFirst { return r } -func (r jobToStepsFindFirst) Exec(ctx context.Context) ( - *JobModel, +func (r stepToTenantFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *JobModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296796,11 +321703,11 @@ func (r jobToStepsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobToStepsFindFirst) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerJob + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296812,23 +321719,23 @@ func (r jobToStepsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobToStepsFindMany struct { +type stepToTenantFindMany struct { query builder.Query } -func (r jobToStepsFindMany) getQuery() builder.Query { +func (r stepToTenantFindMany) getQuery() builder.Query { return r.query } -func (r jobToStepsFindMany) ExtractQuery() builder.Query { +func (r stepToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobToStepsFindMany) with() {} -func (r jobToStepsFindMany) jobModel() {} -func (r jobToStepsFindMany) jobRelation() {} +func (r stepToTenantFindMany) with() {} +func (r stepToTenantFindMany) stepModel() {} +func (r stepToTenantFindMany) stepRelation() {} -func (r jobToStepsFindMany) With(params ...StepRelationWith) jobToStepsFindMany { +func (r stepToTenantFindMany) With(params ...TenantRelationWith) stepToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -296841,7 +321748,7 @@ func (r jobToStepsFindMany) With(params ...StepRelationWith) jobToStepsFindMany return r } -func (r jobToStepsFindMany) Select(params ...jobPrismaFields) jobToStepsFindMany { +func (r stepToTenantFindMany) Select(params ...stepPrismaFields) stepToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -296855,7 +321762,7 @@ func (r jobToStepsFindMany) Select(params ...jobPrismaFields) jobToStepsFindMany return r } -func (r jobToStepsFindMany) Omit(params ...jobPrismaFields) jobToStepsFindMany { +func (r stepToTenantFindMany) Omit(params ...stepPrismaFields) stepToTenantFindMany { var outputs []builder.Output var raw []string @@ -296863,7 +321770,7 @@ func (r jobToStepsFindMany) Omit(params ...jobPrismaFields) jobToStepsFindMany { raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -296874,7 +321781,7 @@ func (r jobToStepsFindMany) Omit(params ...jobPrismaFields) jobToStepsFindMany { return r } -func (r jobToStepsFindMany) OrderBy(params ...StepOrderByParam) jobToStepsFindMany { +func (r stepToTenantFindMany) OrderBy(params ...TenantOrderByParam) stepToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -296894,7 +321801,7 @@ func (r jobToStepsFindMany) OrderBy(params ...StepOrderByParam) jobToStepsFindMa return r } -func (r jobToStepsFindMany) Skip(count int) jobToStepsFindMany { +func (r stepToTenantFindMany) Skip(count int) stepToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -296902,7 +321809,7 @@ func (r jobToStepsFindMany) Skip(count int) jobToStepsFindMany { return r } -func (r jobToStepsFindMany) Take(count int) jobToStepsFindMany { +func (r stepToTenantFindMany) Take(count int) stepToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -296910,7 +321817,7 @@ func (r jobToStepsFindMany) Take(count int) jobToStepsFindMany { return r } -func (r jobToStepsFindMany) Cursor(cursor JobCursorParam) jobToStepsFindMany { +func (r stepToTenantFindMany) Cursor(cursor StepCursorParam) stepToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -296918,11 +321825,11 @@ func (r jobToStepsFindMany) Cursor(cursor JobCursorParam) jobToStepsFindMany { return r } -func (r jobToStepsFindMany) Exec(ctx context.Context) ( - []JobModel, +func (r stepToTenantFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []JobModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296930,11 +321837,11 @@ func (r jobToStepsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobToStepsFindMany) ExecInner(ctx context.Context) ( - []InnerJob, +func (r stepToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerJob + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -296942,14 +321849,14 @@ func (r jobToStepsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToStepsFindMany) Update(params ...JobSetParam) jobToStepsUpdateMany { +func (r stepToTenantFindMany) Update(params ...StepSetParam) stepToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Job" + r.query.Model = "Step" r.query.Outputs = countOutput - var v jobToStepsUpdateMany + var v stepToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -296978,17 +321885,17 @@ func (r jobToStepsFindMany) Update(params ...JobSetParam) jobToStepsUpdateMany { return v } -type jobToStepsUpdateMany struct { +type stepToTenantUpdateMany struct { query builder.Query } -func (r jobToStepsUpdateMany) ExtractQuery() builder.Query { +func (r stepToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobToStepsUpdateMany) jobModel() {} +func (r stepToTenantUpdateMany) stepModel() {} -func (r jobToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -296996,36 +321903,36 @@ func (r jobToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobToStepsUpdateMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepToTenantUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToStepsFindMany) Delete() jobToStepsDeleteMany { - var v jobToStepsDeleteMany +func (r stepToTenantFindMany) Delete() stepToTenantDeleteMany { + var v stepToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Job" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type jobToStepsDeleteMany struct { +type stepToTenantDeleteMany struct { query builder.Query } -func (r jobToStepsDeleteMany) ExtractQuery() builder.Query { +func (r stepToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobToStepsDeleteMany) jobModel() {} +func (p stepToTenantDeleteMany) stepModel() {} -func (r jobToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -297033,30 +321940,30 @@ func (r jobToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobToStepsDeleteMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepToTenantDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToRunsFindUnique struct { +type stepToJobFindUnique struct { query builder.Query } -func (r jobToRunsFindUnique) getQuery() builder.Query { +func (r stepToJobFindUnique) getQuery() builder.Query { return r.query } -func (r jobToRunsFindUnique) ExtractQuery() builder.Query { +func (r stepToJobFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToRunsFindUnique) with() {} -func (r jobToRunsFindUnique) jobModel() {} -func (r jobToRunsFindUnique) jobRelation() {} +func (r stepToJobFindUnique) with() {} +func (r stepToJobFindUnique) stepModel() {} +func (r stepToJobFindUnique) stepRelation() {} -func (r jobToRunsFindUnique) With(params ...JobRunRelationWith) jobToRunsFindUnique { +func (r stepToJobFindUnique) With(params ...JobRelationWith) stepToJobFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -297069,7 +321976,7 @@ func (r jobToRunsFindUnique) With(params ...JobRunRelationWith) jobToRunsFindUni return r } -func (r jobToRunsFindUnique) Select(params ...jobPrismaFields) jobToRunsFindUnique { +func (r stepToJobFindUnique) Select(params ...stepPrismaFields) stepToJobFindUnique { var outputs []builder.Output for _, param := range params { @@ -297083,7 +321990,7 @@ func (r jobToRunsFindUnique) Select(params ...jobPrismaFields) jobToRunsFindUniq return r } -func (r jobToRunsFindUnique) Omit(params ...jobPrismaFields) jobToRunsFindUnique { +func (r stepToJobFindUnique) Omit(params ...stepPrismaFields) stepToJobFindUnique { var outputs []builder.Output var raw []string @@ -297091,7 +321998,7 @@ func (r jobToRunsFindUnique) Omit(params ...jobPrismaFields) jobToRunsFindUnique raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -297102,11 +322009,11 @@ func (r jobToRunsFindUnique) Omit(params ...jobPrismaFields) jobToRunsFindUnique return r } -func (r jobToRunsFindUnique) Exec(ctx context.Context) ( - *JobModel, +func (r stepToJobFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *JobModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297118,11 +322025,11 @@ func (r jobToRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobToRunsFindUnique) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepToJobFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerJob + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297134,12 +322041,12 @@ func (r jobToRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToRunsFindUnique) Update(params ...JobSetParam) jobToRunsUpdateUnique { +func (r stepToJobFindUnique) Update(params ...StepSetParam) stepToJobUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Job" + r.query.Model = "Step" - var v jobToRunsUpdateUnique + var v stepToJobUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -297168,83 +322075,83 @@ func (r jobToRunsFindUnique) Update(params ...JobSetParam) jobToRunsUpdateUnique return v } -type jobToRunsUpdateUnique struct { +type stepToJobUpdateUnique struct { query builder.Query } -func (r jobToRunsUpdateUnique) ExtractQuery() builder.Query { +func (r stepToJobUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToRunsUpdateUnique) jobModel() {} +func (r stepToJobUpdateUnique) stepModel() {} -func (r jobToRunsUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepToJobUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToRunsUpdateUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepToJobUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToRunsFindUnique) Delete() jobToRunsDeleteUnique { - var v jobToRunsDeleteUnique +func (r stepToJobFindUnique) Delete() stepToJobDeleteUnique { + var v stepToJobDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Job" + v.query.Model = "Step" return v } -type jobToRunsDeleteUnique struct { +type stepToJobDeleteUnique struct { query builder.Query } -func (r jobToRunsDeleteUnique) ExtractQuery() builder.Query { +func (r stepToJobDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobToRunsDeleteUnique) jobModel() {} +func (p stepToJobDeleteUnique) stepModel() {} -func (r jobToRunsDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepToJobDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToRunsDeleteUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepToJobDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToRunsFindFirst struct { +type stepToJobFindFirst struct { query builder.Query } -func (r jobToRunsFindFirst) getQuery() builder.Query { +func (r stepToJobFindFirst) getQuery() builder.Query { return r.query } -func (r jobToRunsFindFirst) ExtractQuery() builder.Query { +func (r stepToJobFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobToRunsFindFirst) with() {} -func (r jobToRunsFindFirst) jobModel() {} -func (r jobToRunsFindFirst) jobRelation() {} +func (r stepToJobFindFirst) with() {} +func (r stepToJobFindFirst) stepModel() {} +func (r stepToJobFindFirst) stepRelation() {} -func (r jobToRunsFindFirst) With(params ...JobRunRelationWith) jobToRunsFindFirst { +func (r stepToJobFindFirst) With(params ...JobRelationWith) stepToJobFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -297257,7 +322164,7 @@ func (r jobToRunsFindFirst) With(params ...JobRunRelationWith) jobToRunsFindFirs return r } -func (r jobToRunsFindFirst) Select(params ...jobPrismaFields) jobToRunsFindFirst { +func (r stepToJobFindFirst) Select(params ...stepPrismaFields) stepToJobFindFirst { var outputs []builder.Output for _, param := range params { @@ -297271,7 +322178,7 @@ func (r jobToRunsFindFirst) Select(params ...jobPrismaFields) jobToRunsFindFirst return r } -func (r jobToRunsFindFirst) Omit(params ...jobPrismaFields) jobToRunsFindFirst { +func (r stepToJobFindFirst) Omit(params ...stepPrismaFields) stepToJobFindFirst { var outputs []builder.Output var raw []string @@ -297279,7 +322186,7 @@ func (r jobToRunsFindFirst) Omit(params ...jobPrismaFields) jobToRunsFindFirst { raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -297290,7 +322197,7 @@ func (r jobToRunsFindFirst) Omit(params ...jobPrismaFields) jobToRunsFindFirst { return r } -func (r jobToRunsFindFirst) OrderBy(params ...JobRunOrderByParam) jobToRunsFindFirst { +func (r stepToJobFindFirst) OrderBy(params ...JobOrderByParam) stepToJobFindFirst { var fields []builder.Field for _, param := range params { @@ -297310,7 +322217,7 @@ func (r jobToRunsFindFirst) OrderBy(params ...JobRunOrderByParam) jobToRunsFindF return r } -func (r jobToRunsFindFirst) Skip(count int) jobToRunsFindFirst { +func (r stepToJobFindFirst) Skip(count int) stepToJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -297318,7 +322225,7 @@ func (r jobToRunsFindFirst) Skip(count int) jobToRunsFindFirst { return r } -func (r jobToRunsFindFirst) Take(count int) jobToRunsFindFirst { +func (r stepToJobFindFirst) Take(count int) stepToJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -297326,7 +322233,7 @@ func (r jobToRunsFindFirst) Take(count int) jobToRunsFindFirst { return r } -func (r jobToRunsFindFirst) Cursor(cursor JobCursorParam) jobToRunsFindFirst { +func (r stepToJobFindFirst) Cursor(cursor StepCursorParam) stepToJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -297334,11 +322241,11 @@ func (r jobToRunsFindFirst) Cursor(cursor JobCursorParam) jobToRunsFindFirst { return r } -func (r jobToRunsFindFirst) Exec(ctx context.Context) ( - *JobModel, +func (r stepToJobFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *JobModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297350,11 +322257,11 @@ func (r jobToRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobToRunsFindFirst) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepToJobFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerJob + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297366,23 +322273,23 @@ func (r jobToRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobToRunsFindMany struct { +type stepToJobFindMany struct { query builder.Query } -func (r jobToRunsFindMany) getQuery() builder.Query { +func (r stepToJobFindMany) getQuery() builder.Query { return r.query } -func (r jobToRunsFindMany) ExtractQuery() builder.Query { +func (r stepToJobFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobToRunsFindMany) with() {} -func (r jobToRunsFindMany) jobModel() {} -func (r jobToRunsFindMany) jobRelation() {} +func (r stepToJobFindMany) with() {} +func (r stepToJobFindMany) stepModel() {} +func (r stepToJobFindMany) stepRelation() {} -func (r jobToRunsFindMany) With(params ...JobRunRelationWith) jobToRunsFindMany { +func (r stepToJobFindMany) With(params ...JobRelationWith) stepToJobFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -297395,7 +322302,7 @@ func (r jobToRunsFindMany) With(params ...JobRunRelationWith) jobToRunsFindMany return r } -func (r jobToRunsFindMany) Select(params ...jobPrismaFields) jobToRunsFindMany { +func (r stepToJobFindMany) Select(params ...stepPrismaFields) stepToJobFindMany { var outputs []builder.Output for _, param := range params { @@ -297409,7 +322316,7 @@ func (r jobToRunsFindMany) Select(params ...jobPrismaFields) jobToRunsFindMany { return r } -func (r jobToRunsFindMany) Omit(params ...jobPrismaFields) jobToRunsFindMany { +func (r stepToJobFindMany) Omit(params ...stepPrismaFields) stepToJobFindMany { var outputs []builder.Output var raw []string @@ -297417,7 +322324,7 @@ func (r jobToRunsFindMany) Omit(params ...jobPrismaFields) jobToRunsFindMany { raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -297428,7 +322335,7 @@ func (r jobToRunsFindMany) Omit(params ...jobPrismaFields) jobToRunsFindMany { return r } -func (r jobToRunsFindMany) OrderBy(params ...JobRunOrderByParam) jobToRunsFindMany { +func (r stepToJobFindMany) OrderBy(params ...JobOrderByParam) stepToJobFindMany { var fields []builder.Field for _, param := range params { @@ -297448,7 +322355,7 @@ func (r jobToRunsFindMany) OrderBy(params ...JobRunOrderByParam) jobToRunsFindMa return r } -func (r jobToRunsFindMany) Skip(count int) jobToRunsFindMany { +func (r stepToJobFindMany) Skip(count int) stepToJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -297456,7 +322363,7 @@ func (r jobToRunsFindMany) Skip(count int) jobToRunsFindMany { return r } -func (r jobToRunsFindMany) Take(count int) jobToRunsFindMany { +func (r stepToJobFindMany) Take(count int) stepToJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -297464,7 +322371,7 @@ func (r jobToRunsFindMany) Take(count int) jobToRunsFindMany { return r } -func (r jobToRunsFindMany) Cursor(cursor JobCursorParam) jobToRunsFindMany { +func (r stepToJobFindMany) Cursor(cursor StepCursorParam) stepToJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -297472,11 +322379,11 @@ func (r jobToRunsFindMany) Cursor(cursor JobCursorParam) jobToRunsFindMany { return r } -func (r jobToRunsFindMany) Exec(ctx context.Context) ( - []JobModel, +func (r stepToJobFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []JobModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297484,11 +322391,11 @@ func (r jobToRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobToRunsFindMany) ExecInner(ctx context.Context) ( - []InnerJob, +func (r stepToJobFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerJob + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297496,14 +322403,14 @@ func (r jobToRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToRunsFindMany) Update(params ...JobSetParam) jobToRunsUpdateMany { +func (r stepToJobFindMany) Update(params ...StepSetParam) stepToJobUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Job" + r.query.Model = "Step" r.query.Outputs = countOutput - var v jobToRunsUpdateMany + var v stepToJobUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -297532,17 +322439,17 @@ func (r jobToRunsFindMany) Update(params ...JobSetParam) jobToRunsUpdateMany { return v } -type jobToRunsUpdateMany struct { +type stepToJobUpdateMany struct { query builder.Query } -func (r jobToRunsUpdateMany) ExtractQuery() builder.Query { +func (r stepToJobUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobToRunsUpdateMany) jobModel() {} +func (r stepToJobUpdateMany) stepModel() {} -func (r jobToRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToJobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -297550,36 +322457,36 @@ func (r jobToRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobToRunsUpdateMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepToJobUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToRunsFindMany) Delete() jobToRunsDeleteMany { - var v jobToRunsDeleteMany +func (r stepToJobFindMany) Delete() stepToJobDeleteMany { + var v stepToJobDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Job" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type jobToRunsDeleteMany struct { +type stepToJobDeleteMany struct { query builder.Query } -func (r jobToRunsDeleteMany) ExtractQuery() builder.Query { +func (r stepToJobDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobToRunsDeleteMany) jobModel() {} +func (p stepToJobDeleteMany) stepModel() {} -func (r jobToRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToJobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -297587,30 +322494,30 @@ func (r jobToRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobToRunsDeleteMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepToJobDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToFailureRelationsFindUnique struct { +type stepToActionFindUnique struct { query builder.Query } -func (r jobToFailureRelationsFindUnique) getQuery() builder.Query { +func (r stepToActionFindUnique) getQuery() builder.Query { return r.query } -func (r jobToFailureRelationsFindUnique) ExtractQuery() builder.Query { +func (r stepToActionFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToFailureRelationsFindUnique) with() {} -func (r jobToFailureRelationsFindUnique) jobModel() {} -func (r jobToFailureRelationsFindUnique) jobRelation() {} +func (r stepToActionFindUnique) with() {} +func (r stepToActionFindUnique) stepModel() {} +func (r stepToActionFindUnique) stepRelation() {} -func (r jobToFailureRelationsFindUnique) With(params ...WorkflowVersionRelationWith) jobToFailureRelationsFindUnique { +func (r stepToActionFindUnique) With(params ...ActionRelationWith) stepToActionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -297623,7 +322530,7 @@ func (r jobToFailureRelationsFindUnique) With(params ...WorkflowVersionRelationW return r } -func (r jobToFailureRelationsFindUnique) Select(params ...jobPrismaFields) jobToFailureRelationsFindUnique { +func (r stepToActionFindUnique) Select(params ...stepPrismaFields) stepToActionFindUnique { var outputs []builder.Output for _, param := range params { @@ -297637,7 +322544,7 @@ func (r jobToFailureRelationsFindUnique) Select(params ...jobPrismaFields) jobTo return r } -func (r jobToFailureRelationsFindUnique) Omit(params ...jobPrismaFields) jobToFailureRelationsFindUnique { +func (r stepToActionFindUnique) Omit(params ...stepPrismaFields) stepToActionFindUnique { var outputs []builder.Output var raw []string @@ -297645,7 +322552,7 @@ func (r jobToFailureRelationsFindUnique) Omit(params ...jobPrismaFields) jobToFa raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -297656,11 +322563,11 @@ func (r jobToFailureRelationsFindUnique) Omit(params ...jobPrismaFields) jobToFa return r } -func (r jobToFailureRelationsFindUnique) Exec(ctx context.Context) ( - *JobModel, +func (r stepToActionFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *JobModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297672,11 +322579,11 @@ func (r jobToFailureRelationsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobToFailureRelationsFindUnique) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepToActionFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerJob + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297688,12 +322595,12 @@ func (r jobToFailureRelationsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToFailureRelationsFindUnique) Update(params ...JobSetParam) jobToFailureRelationsUpdateUnique { +func (r stepToActionFindUnique) Update(params ...StepSetParam) stepToActionUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Job" + r.query.Model = "Step" - var v jobToFailureRelationsUpdateUnique + var v stepToActionUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -297722,83 +322629,83 @@ func (r jobToFailureRelationsFindUnique) Update(params ...JobSetParam) jobToFail return v } -type jobToFailureRelationsUpdateUnique struct { +type stepToActionUpdateUnique struct { query builder.Query } -func (r jobToFailureRelationsUpdateUnique) ExtractQuery() builder.Query { +func (r stepToActionUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobToFailureRelationsUpdateUnique) jobModel() {} +func (r stepToActionUpdateUnique) stepModel() {} -func (r jobToFailureRelationsUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepToActionUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToFailureRelationsUpdateUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepToActionUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToFailureRelationsFindUnique) Delete() jobToFailureRelationsDeleteUnique { - var v jobToFailureRelationsDeleteUnique +func (r stepToActionFindUnique) Delete() stepToActionDeleteUnique { + var v stepToActionDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Job" + v.query.Model = "Step" return v } -type jobToFailureRelationsDeleteUnique struct { +type stepToActionDeleteUnique struct { query builder.Query } -func (r jobToFailureRelationsDeleteUnique) ExtractQuery() builder.Query { +func (r stepToActionDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobToFailureRelationsDeleteUnique) jobModel() {} +func (p stepToActionDeleteUnique) stepModel() {} -func (r jobToFailureRelationsDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepToActionDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobToFailureRelationsDeleteUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepToActionDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobToFailureRelationsFindFirst struct { +type stepToActionFindFirst struct { query builder.Query } -func (r jobToFailureRelationsFindFirst) getQuery() builder.Query { +func (r stepToActionFindFirst) getQuery() builder.Query { return r.query } -func (r jobToFailureRelationsFindFirst) ExtractQuery() builder.Query { +func (r stepToActionFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobToFailureRelationsFindFirst) with() {} -func (r jobToFailureRelationsFindFirst) jobModel() {} -func (r jobToFailureRelationsFindFirst) jobRelation() {} +func (r stepToActionFindFirst) with() {} +func (r stepToActionFindFirst) stepModel() {} +func (r stepToActionFindFirst) stepRelation() {} -func (r jobToFailureRelationsFindFirst) With(params ...WorkflowVersionRelationWith) jobToFailureRelationsFindFirst { +func (r stepToActionFindFirst) With(params ...ActionRelationWith) stepToActionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -297811,7 +322718,7 @@ func (r jobToFailureRelationsFindFirst) With(params ...WorkflowVersionRelationWi return r } -func (r jobToFailureRelationsFindFirst) Select(params ...jobPrismaFields) jobToFailureRelationsFindFirst { +func (r stepToActionFindFirst) Select(params ...stepPrismaFields) stepToActionFindFirst { var outputs []builder.Output for _, param := range params { @@ -297825,7 +322732,7 @@ func (r jobToFailureRelationsFindFirst) Select(params ...jobPrismaFields) jobToF return r } -func (r jobToFailureRelationsFindFirst) Omit(params ...jobPrismaFields) jobToFailureRelationsFindFirst { +func (r stepToActionFindFirst) Omit(params ...stepPrismaFields) stepToActionFindFirst { var outputs []builder.Output var raw []string @@ -297833,7 +322740,7 @@ func (r jobToFailureRelationsFindFirst) Omit(params ...jobPrismaFields) jobToFai raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -297844,7 +322751,7 @@ func (r jobToFailureRelationsFindFirst) Omit(params ...jobPrismaFields) jobToFai return r } -func (r jobToFailureRelationsFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) jobToFailureRelationsFindFirst { +func (r stepToActionFindFirst) OrderBy(params ...ActionOrderByParam) stepToActionFindFirst { var fields []builder.Field for _, param := range params { @@ -297864,7 +322771,7 @@ func (r jobToFailureRelationsFindFirst) OrderBy(params ...WorkflowVersionOrderBy return r } -func (r jobToFailureRelationsFindFirst) Skip(count int) jobToFailureRelationsFindFirst { +func (r stepToActionFindFirst) Skip(count int) stepToActionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -297872,7 +322779,7 @@ func (r jobToFailureRelationsFindFirst) Skip(count int) jobToFailureRelationsFin return r } -func (r jobToFailureRelationsFindFirst) Take(count int) jobToFailureRelationsFindFirst { +func (r stepToActionFindFirst) Take(count int) stepToActionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -297880,7 +322787,7 @@ func (r jobToFailureRelationsFindFirst) Take(count int) jobToFailureRelationsFin return r } -func (r jobToFailureRelationsFindFirst) Cursor(cursor JobCursorParam) jobToFailureRelationsFindFirst { +func (r stepToActionFindFirst) Cursor(cursor StepCursorParam) stepToActionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -297888,11 +322795,11 @@ func (r jobToFailureRelationsFindFirst) Cursor(cursor JobCursorParam) jobToFailu return r } -func (r jobToFailureRelationsFindFirst) Exec(ctx context.Context) ( - *JobModel, +func (r stepToActionFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *JobModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297904,11 +322811,11 @@ func (r jobToFailureRelationsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobToFailureRelationsFindFirst) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepToActionFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerJob + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -297920,23 +322827,23 @@ func (r jobToFailureRelationsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobToFailureRelationsFindMany struct { +type stepToActionFindMany struct { query builder.Query } -func (r jobToFailureRelationsFindMany) getQuery() builder.Query { +func (r stepToActionFindMany) getQuery() builder.Query { return r.query } -func (r jobToFailureRelationsFindMany) ExtractQuery() builder.Query { +func (r stepToActionFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobToFailureRelationsFindMany) with() {} -func (r jobToFailureRelationsFindMany) jobModel() {} -func (r jobToFailureRelationsFindMany) jobRelation() {} +func (r stepToActionFindMany) with() {} +func (r stepToActionFindMany) stepModel() {} +func (r stepToActionFindMany) stepRelation() {} -func (r jobToFailureRelationsFindMany) With(params ...WorkflowVersionRelationWith) jobToFailureRelationsFindMany { +func (r stepToActionFindMany) With(params ...ActionRelationWith) stepToActionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -297949,7 +322856,7 @@ func (r jobToFailureRelationsFindMany) With(params ...WorkflowVersionRelationWit return r } -func (r jobToFailureRelationsFindMany) Select(params ...jobPrismaFields) jobToFailureRelationsFindMany { +func (r stepToActionFindMany) Select(params ...stepPrismaFields) stepToActionFindMany { var outputs []builder.Output for _, param := range params { @@ -297963,7 +322870,7 @@ func (r jobToFailureRelationsFindMany) Select(params ...jobPrismaFields) jobToFa return r } -func (r jobToFailureRelationsFindMany) Omit(params ...jobPrismaFields) jobToFailureRelationsFindMany { +func (r stepToActionFindMany) Omit(params ...stepPrismaFields) stepToActionFindMany { var outputs []builder.Output var raw []string @@ -297971,7 +322878,7 @@ func (r jobToFailureRelationsFindMany) Omit(params ...jobPrismaFields) jobToFail raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -297982,7 +322889,7 @@ func (r jobToFailureRelationsFindMany) Omit(params ...jobPrismaFields) jobToFail return r } -func (r jobToFailureRelationsFindMany) OrderBy(params ...WorkflowVersionOrderByParam) jobToFailureRelationsFindMany { +func (r stepToActionFindMany) OrderBy(params ...ActionOrderByParam) stepToActionFindMany { var fields []builder.Field for _, param := range params { @@ -298002,7 +322909,7 @@ func (r jobToFailureRelationsFindMany) OrderBy(params ...WorkflowVersionOrderByP return r } -func (r jobToFailureRelationsFindMany) Skip(count int) jobToFailureRelationsFindMany { +func (r stepToActionFindMany) Skip(count int) stepToActionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -298010,7 +322917,7 @@ func (r jobToFailureRelationsFindMany) Skip(count int) jobToFailureRelationsFind return r } -func (r jobToFailureRelationsFindMany) Take(count int) jobToFailureRelationsFindMany { +func (r stepToActionFindMany) Take(count int) stepToActionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -298018,7 +322925,7 @@ func (r jobToFailureRelationsFindMany) Take(count int) jobToFailureRelationsFind return r } -func (r jobToFailureRelationsFindMany) Cursor(cursor JobCursorParam) jobToFailureRelationsFindMany { +func (r stepToActionFindMany) Cursor(cursor StepCursorParam) stepToActionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -298026,11 +322933,11 @@ func (r jobToFailureRelationsFindMany) Cursor(cursor JobCursorParam) jobToFailur return r } -func (r jobToFailureRelationsFindMany) Exec(ctx context.Context) ( - []JobModel, +func (r stepToActionFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []JobModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298038,11 +322945,11 @@ func (r jobToFailureRelationsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobToFailureRelationsFindMany) ExecInner(ctx context.Context) ( - []InnerJob, +func (r stepToActionFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerJob + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298050,14 +322957,14 @@ func (r jobToFailureRelationsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobToFailureRelationsFindMany) Update(params ...JobSetParam) jobToFailureRelationsUpdateMany { +func (r stepToActionFindMany) Update(params ...StepSetParam) stepToActionUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Job" + r.query.Model = "Step" r.query.Outputs = countOutput - var v jobToFailureRelationsUpdateMany + var v stepToActionUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -298086,17 +322993,17 @@ func (r jobToFailureRelationsFindMany) Update(params ...JobSetParam) jobToFailur return v } -type jobToFailureRelationsUpdateMany struct { +type stepToActionUpdateMany struct { query builder.Query } -func (r jobToFailureRelationsUpdateMany) ExtractQuery() builder.Query { +func (r stepToActionUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobToFailureRelationsUpdateMany) jobModel() {} +func (r stepToActionUpdateMany) stepModel() {} -func (r jobToFailureRelationsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToActionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -298104,36 +323011,36 @@ func (r jobToFailureRelationsUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r jobToFailureRelationsUpdateMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepToActionUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobToFailureRelationsFindMany) Delete() jobToFailureRelationsDeleteMany { - var v jobToFailureRelationsDeleteMany +func (r stepToActionFindMany) Delete() stepToActionDeleteMany { + var v stepToActionDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Job" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type jobToFailureRelationsDeleteMany struct { +type stepToActionDeleteMany struct { query builder.Query } -func (r jobToFailureRelationsDeleteMany) ExtractQuery() builder.Query { +func (r stepToActionDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobToFailureRelationsDeleteMany) jobModel() {} +func (p stepToActionDeleteMany) stepModel() {} -func (r jobToFailureRelationsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToActionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -298141,52 +323048,30 @@ func (r jobToFailureRelationsDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r jobToFailureRelationsDeleteMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepToActionDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobFindUnique struct { +type stepToChildrenFindUnique struct { query builder.Query } -func (r jobFindUnique) getQuery() builder.Query { +func (r stepToChildrenFindUnique) getQuery() builder.Query { return r.query } -func (r jobFindUnique) ExtractQuery() builder.Query { +func (r stepToChildrenFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobFindUnique) with() {} -func (r jobFindUnique) jobModel() {} -func (r jobFindUnique) jobRelation() {} - -func (r jobActions) FindUnique( - params JobEqualsUniqueWhereParam, -) jobFindUnique { - var v jobFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "Job" - v.query.Outputs = jobOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r stepToChildrenFindUnique) with() {} +func (r stepToChildrenFindUnique) stepModel() {} +func (r stepToChildrenFindUnique) stepRelation() {} -func (r jobFindUnique) With(params ...JobRelationWith) jobFindUnique { +func (r stepToChildrenFindUnique) With(params ...StepRelationWith) stepToChildrenFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -298199,7 +323084,7 @@ func (r jobFindUnique) With(params ...JobRelationWith) jobFindUnique { return r } -func (r jobFindUnique) Select(params ...jobPrismaFields) jobFindUnique { +func (r stepToChildrenFindUnique) Select(params ...stepPrismaFields) stepToChildrenFindUnique { var outputs []builder.Output for _, param := range params { @@ -298213,7 +323098,7 @@ func (r jobFindUnique) Select(params ...jobPrismaFields) jobFindUnique { return r } -func (r jobFindUnique) Omit(params ...jobPrismaFields) jobFindUnique { +func (r stepToChildrenFindUnique) Omit(params ...stepPrismaFields) stepToChildrenFindUnique { var outputs []builder.Output var raw []string @@ -298221,7 +323106,7 @@ func (r jobFindUnique) Omit(params ...jobPrismaFields) jobFindUnique { raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -298232,11 +323117,11 @@ func (r jobFindUnique) Omit(params ...jobPrismaFields) jobFindUnique { return r } -func (r jobFindUnique) Exec(ctx context.Context) ( - *JobModel, +func (r stepToChildrenFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *JobModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298248,11 +323133,11 @@ func (r jobFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobFindUnique) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepToChildrenFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerJob + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298264,12 +323149,12 @@ func (r jobFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobFindUnique) Update(params ...JobSetParam) jobUpdateUnique { +func (r stepToChildrenFindUnique) Update(params ...StepSetParam) stepToChildrenUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Job" + r.query.Model = "Step" - var v jobUpdateUnique + var v stepToChildrenUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -298298,120 +323183,83 @@ func (r jobFindUnique) Update(params ...JobSetParam) jobUpdateUnique { return v } -type jobUpdateUnique struct { +type stepToChildrenUpdateUnique struct { query builder.Query } -func (r jobUpdateUnique) ExtractQuery() builder.Query { +func (r stepToChildrenUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobUpdateUnique) jobModel() {} +func (r stepToChildrenUpdateUnique) stepModel() {} -func (r jobUpdateUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepToChildrenUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobUpdateUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepToChildrenUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobFindUnique) Delete() jobDeleteUnique { - var v jobDeleteUnique +func (r stepToChildrenFindUnique) Delete() stepToChildrenDeleteUnique { + var v stepToChildrenDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Job" + v.query.Model = "Step" return v } -type jobDeleteUnique struct { +type stepToChildrenDeleteUnique struct { query builder.Query } -func (r jobDeleteUnique) ExtractQuery() builder.Query { +func (r stepToChildrenDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobDeleteUnique) jobModel() {} +func (p stepToChildrenDeleteUnique) stepModel() {} -func (r jobDeleteUnique) Exec(ctx context.Context) (*JobModel, error) { - var v JobModel +func (r stepToChildrenDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobDeleteUnique) Tx() JobUniqueTxResult { - v := newJobUniqueTxResult() +func (r stepToChildrenDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobFindFirst struct { +type stepToChildrenFindFirst struct { query builder.Query } -func (r jobFindFirst) getQuery() builder.Query { +func (r stepToChildrenFindFirst) getQuery() builder.Query { return r.query } -func (r jobFindFirst) ExtractQuery() builder.Query { +func (r stepToChildrenFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobFindFirst) with() {} -func (r jobFindFirst) jobModel() {} -func (r jobFindFirst) jobRelation() {} - -func (r jobActions) FindFirst( - params ...JobWhereParam, -) jobFindFirst { - var v jobFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "Job" - v.query.Outputs = jobOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r stepToChildrenFindFirst) with() {} +func (r stepToChildrenFindFirst) stepModel() {} +func (r stepToChildrenFindFirst) stepRelation() {} -func (r jobFindFirst) With(params ...JobRelationWith) jobFindFirst { +func (r stepToChildrenFindFirst) With(params ...StepRelationWith) stepToChildrenFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -298424,7 +323272,7 @@ func (r jobFindFirst) With(params ...JobRelationWith) jobFindFirst { return r } -func (r jobFindFirst) Select(params ...jobPrismaFields) jobFindFirst { +func (r stepToChildrenFindFirst) Select(params ...stepPrismaFields) stepToChildrenFindFirst { var outputs []builder.Output for _, param := range params { @@ -298438,7 +323286,7 @@ func (r jobFindFirst) Select(params ...jobPrismaFields) jobFindFirst { return r } -func (r jobFindFirst) Omit(params ...jobPrismaFields) jobFindFirst { +func (r stepToChildrenFindFirst) Omit(params ...stepPrismaFields) stepToChildrenFindFirst { var outputs []builder.Output var raw []string @@ -298446,7 +323294,7 @@ func (r jobFindFirst) Omit(params ...jobPrismaFields) jobFindFirst { raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -298457,7 +323305,7 @@ func (r jobFindFirst) Omit(params ...jobPrismaFields) jobFindFirst { return r } -func (r jobFindFirst) OrderBy(params ...JobOrderByParam) jobFindFirst { +func (r stepToChildrenFindFirst) OrderBy(params ...StepOrderByParam) stepToChildrenFindFirst { var fields []builder.Field for _, param := range params { @@ -298477,7 +323325,7 @@ func (r jobFindFirst) OrderBy(params ...JobOrderByParam) jobFindFirst { return r } -func (r jobFindFirst) Skip(count int) jobFindFirst { +func (r stepToChildrenFindFirst) Skip(count int) stepToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -298485,7 +323333,7 @@ func (r jobFindFirst) Skip(count int) jobFindFirst { return r } -func (r jobFindFirst) Take(count int) jobFindFirst { +func (r stepToChildrenFindFirst) Take(count int) stepToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -298493,7 +323341,7 @@ func (r jobFindFirst) Take(count int) jobFindFirst { return r } -func (r jobFindFirst) Cursor(cursor JobCursorParam) jobFindFirst { +func (r stepToChildrenFindFirst) Cursor(cursor StepCursorParam) stepToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -298501,11 +323349,11 @@ func (r jobFindFirst) Cursor(cursor JobCursorParam) jobFindFirst { return r } -func (r jobFindFirst) Exec(ctx context.Context) ( - *JobModel, +func (r stepToChildrenFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *JobModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298517,11 +323365,11 @@ func (r jobFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobFindFirst) ExecInner(ctx context.Context) ( - *InnerJob, +func (r stepToChildrenFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerJob + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298533,60 +323381,23 @@ func (r jobFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobFindMany struct { +type stepToChildrenFindMany struct { query builder.Query } -func (r jobFindMany) getQuery() builder.Query { +func (r stepToChildrenFindMany) getQuery() builder.Query { return r.query } -func (r jobFindMany) ExtractQuery() builder.Query { +func (r stepToChildrenFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobFindMany) with() {} -func (r jobFindMany) jobModel() {} -func (r jobFindMany) jobRelation() {} - -func (r jobActions) FindMany( - params ...JobWhereParam, -) jobFindMany { - var v jobFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "Job" - v.query.Outputs = jobOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r stepToChildrenFindMany) with() {} +func (r stepToChildrenFindMany) stepModel() {} +func (r stepToChildrenFindMany) stepRelation() {} -func (r jobFindMany) With(params ...JobRelationWith) jobFindMany { +func (r stepToChildrenFindMany) With(params ...StepRelationWith) stepToChildrenFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -298599,7 +323410,7 @@ func (r jobFindMany) With(params ...JobRelationWith) jobFindMany { return r } -func (r jobFindMany) Select(params ...jobPrismaFields) jobFindMany { +func (r stepToChildrenFindMany) Select(params ...stepPrismaFields) stepToChildrenFindMany { var outputs []builder.Output for _, param := range params { @@ -298613,7 +323424,7 @@ func (r jobFindMany) Select(params ...jobPrismaFields) jobFindMany { return r } -func (r jobFindMany) Omit(params ...jobPrismaFields) jobFindMany { +func (r stepToChildrenFindMany) Omit(params ...stepPrismaFields) stepToChildrenFindMany { var outputs []builder.Output var raw []string @@ -298621,7 +323432,7 @@ func (r jobFindMany) Omit(params ...jobPrismaFields) jobFindMany { raw = append(raw, string(param)) } - for _, output := range jobOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -298632,7 +323443,7 @@ func (r jobFindMany) Omit(params ...jobPrismaFields) jobFindMany { return r } -func (r jobFindMany) OrderBy(params ...JobOrderByParam) jobFindMany { +func (r stepToChildrenFindMany) OrderBy(params ...StepOrderByParam) stepToChildrenFindMany { var fields []builder.Field for _, param := range params { @@ -298652,7 +323463,7 @@ func (r jobFindMany) OrderBy(params ...JobOrderByParam) jobFindMany { return r } -func (r jobFindMany) Skip(count int) jobFindMany { +func (r stepToChildrenFindMany) Skip(count int) stepToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -298660,7 +323471,7 @@ func (r jobFindMany) Skip(count int) jobFindMany { return r } -func (r jobFindMany) Take(count int) jobFindMany { +func (r stepToChildrenFindMany) Take(count int) stepToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -298668,7 +323479,7 @@ func (r jobFindMany) Take(count int) jobFindMany { return r } -func (r jobFindMany) Cursor(cursor JobCursorParam) jobFindMany { +func (r stepToChildrenFindMany) Cursor(cursor StepCursorParam) stepToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -298676,11 +323487,11 @@ func (r jobFindMany) Cursor(cursor JobCursorParam) jobFindMany { return r } -func (r jobFindMany) Exec(ctx context.Context) ( - []JobModel, +func (r stepToChildrenFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []JobModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298688,11 +323499,11 @@ func (r jobFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobFindMany) ExecInner(ctx context.Context) ( - []InnerJob, +func (r stepToChildrenFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerJob + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298700,14 +323511,14 @@ func (r jobFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobFindMany) Update(params ...JobSetParam) jobUpdateMany { +func (r stepToChildrenFindMany) Update(params ...StepSetParam) stepToChildrenUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Job" + r.query.Model = "Step" r.query.Outputs = countOutput - var v jobUpdateMany + var v stepToChildrenUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -298736,17 +323547,17 @@ func (r jobFindMany) Update(params ...JobSetParam) jobUpdateMany { return v } -type jobUpdateMany struct { +type stepToChildrenUpdateMany struct { query builder.Query } -func (r jobUpdateMany) ExtractQuery() builder.Query { +func (r stepToChildrenUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobUpdateMany) jobModel() {} +func (r stepToChildrenUpdateMany) stepModel() {} -func (r jobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -298754,36 +323565,36 @@ func (r jobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobUpdateMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepToChildrenUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobFindMany) Delete() jobDeleteMany { - var v jobDeleteMany +func (r stepToChildrenFindMany) Delete() stepToChildrenDeleteMany { + var v stepToChildrenDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Job" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type jobDeleteMany struct { +type stepToChildrenDeleteMany struct { query builder.Query } -func (r jobDeleteMany) ExtractQuery() builder.Query { +func (r stepToChildrenDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobDeleteMany) jobModel() {} +func (p stepToChildrenDeleteMany) stepModel() {} -func (r jobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -298791,30 +323602,30 @@ func (r jobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobDeleteMany) Tx() JobManyTxResult { - v := newJobManyTxResult() +func (r stepToChildrenDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionToTenantFindUnique struct { +type stepToParentsFindUnique struct { query builder.Query } -func (r actionToTenantFindUnique) getQuery() builder.Query { +func (r stepToParentsFindUnique) getQuery() builder.Query { return r.query } -func (r actionToTenantFindUnique) ExtractQuery() builder.Query { +func (r stepToParentsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r actionToTenantFindUnique) with() {} -func (r actionToTenantFindUnique) actionModel() {} -func (r actionToTenantFindUnique) actionRelation() {} +func (r stepToParentsFindUnique) with() {} +func (r stepToParentsFindUnique) stepModel() {} +func (r stepToParentsFindUnique) stepRelation() {} -func (r actionToTenantFindUnique) With(params ...TenantRelationWith) actionToTenantFindUnique { +func (r stepToParentsFindUnique) With(params ...StepRelationWith) stepToParentsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -298827,7 +323638,7 @@ func (r actionToTenantFindUnique) With(params ...TenantRelationWith) actionToTen return r } -func (r actionToTenantFindUnique) Select(params ...actionPrismaFields) actionToTenantFindUnique { +func (r stepToParentsFindUnique) Select(params ...stepPrismaFields) stepToParentsFindUnique { var outputs []builder.Output for _, param := range params { @@ -298841,7 +323652,7 @@ func (r actionToTenantFindUnique) Select(params ...actionPrismaFields) actionToT return r } -func (r actionToTenantFindUnique) Omit(params ...actionPrismaFields) actionToTenantFindUnique { +func (r stepToParentsFindUnique) Omit(params ...stepPrismaFields) stepToParentsFindUnique { var outputs []builder.Output var raw []string @@ -298849,7 +323660,7 @@ func (r actionToTenantFindUnique) Omit(params ...actionPrismaFields) actionToTen raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -298860,11 +323671,11 @@ func (r actionToTenantFindUnique) Omit(params ...actionPrismaFields) actionToTen return r } -func (r actionToTenantFindUnique) Exec(ctx context.Context) ( - *ActionModel, +func (r stepToParentsFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298876,11 +323687,11 @@ func (r actionToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r actionToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepToParentsFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -298892,12 +323703,12 @@ func (r actionToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r actionToTenantFindUnique) Update(params ...ActionSetParam) actionToTenantUpdateUnique { +func (r stepToParentsFindUnique) Update(params ...StepSetParam) stepToParentsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Action" + r.query.Model = "Step" - var v actionToTenantUpdateUnique + var v stepToParentsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -298926,83 +323737,83 @@ func (r actionToTenantFindUnique) Update(params ...ActionSetParam) actionToTenan return v } -type actionToTenantUpdateUnique struct { +type stepToParentsUpdateUnique struct { query builder.Query } -func (r actionToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r stepToParentsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r actionToTenantUpdateUnique) actionModel() {} +func (r stepToParentsUpdateUnique) stepModel() {} -func (r actionToTenantUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepToParentsUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionToTenantUpdateUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepToParentsUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionToTenantFindUnique) Delete() actionToTenantDeleteUnique { - var v actionToTenantDeleteUnique +func (r stepToParentsFindUnique) Delete() stepToParentsDeleteUnique { + var v stepToParentsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Action" + v.query.Model = "Step" return v } -type actionToTenantDeleteUnique struct { +type stepToParentsDeleteUnique struct { query builder.Query } -func (r actionToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r stepToParentsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p actionToTenantDeleteUnique) actionModel() {} +func (p stepToParentsDeleteUnique) stepModel() {} -func (r actionToTenantDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepToParentsDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionToTenantDeleteUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepToParentsDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionToTenantFindFirst struct { +type stepToParentsFindFirst struct { query builder.Query } -func (r actionToTenantFindFirst) getQuery() builder.Query { +func (r stepToParentsFindFirst) getQuery() builder.Query { return r.query } -func (r actionToTenantFindFirst) ExtractQuery() builder.Query { +func (r stepToParentsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r actionToTenantFindFirst) with() {} -func (r actionToTenantFindFirst) actionModel() {} -func (r actionToTenantFindFirst) actionRelation() {} +func (r stepToParentsFindFirst) with() {} +func (r stepToParentsFindFirst) stepModel() {} +func (r stepToParentsFindFirst) stepRelation() {} -func (r actionToTenantFindFirst) With(params ...TenantRelationWith) actionToTenantFindFirst { +func (r stepToParentsFindFirst) With(params ...StepRelationWith) stepToParentsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -299015,7 +323826,7 @@ func (r actionToTenantFindFirst) With(params ...TenantRelationWith) actionToTena return r } -func (r actionToTenantFindFirst) Select(params ...actionPrismaFields) actionToTenantFindFirst { +func (r stepToParentsFindFirst) Select(params ...stepPrismaFields) stepToParentsFindFirst { var outputs []builder.Output for _, param := range params { @@ -299029,7 +323840,7 @@ func (r actionToTenantFindFirst) Select(params ...actionPrismaFields) actionToTe return r } -func (r actionToTenantFindFirst) Omit(params ...actionPrismaFields) actionToTenantFindFirst { +func (r stepToParentsFindFirst) Omit(params ...stepPrismaFields) stepToParentsFindFirst { var outputs []builder.Output var raw []string @@ -299037,7 +323848,7 @@ func (r actionToTenantFindFirst) Omit(params ...actionPrismaFields) actionToTena raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -299048,7 +323859,7 @@ func (r actionToTenantFindFirst) Omit(params ...actionPrismaFields) actionToTena return r } -func (r actionToTenantFindFirst) OrderBy(params ...TenantOrderByParam) actionToTenantFindFirst { +func (r stepToParentsFindFirst) OrderBy(params ...StepOrderByParam) stepToParentsFindFirst { var fields []builder.Field for _, param := range params { @@ -299068,7 +323879,7 @@ func (r actionToTenantFindFirst) OrderBy(params ...TenantOrderByParam) actionToT return r } -func (r actionToTenantFindFirst) Skip(count int) actionToTenantFindFirst { +func (r stepToParentsFindFirst) Skip(count int) stepToParentsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -299076,7 +323887,7 @@ func (r actionToTenantFindFirst) Skip(count int) actionToTenantFindFirst { return r } -func (r actionToTenantFindFirst) Take(count int) actionToTenantFindFirst { +func (r stepToParentsFindFirst) Take(count int) stepToParentsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -299084,7 +323895,7 @@ func (r actionToTenantFindFirst) Take(count int) actionToTenantFindFirst { return r } -func (r actionToTenantFindFirst) Cursor(cursor ActionCursorParam) actionToTenantFindFirst { +func (r stepToParentsFindFirst) Cursor(cursor StepCursorParam) stepToParentsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -299092,11 +323903,11 @@ func (r actionToTenantFindFirst) Cursor(cursor ActionCursorParam) actionToTenant return r } -func (r actionToTenantFindFirst) Exec(ctx context.Context) ( - *ActionModel, +func (r stepToParentsFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299108,11 +323919,11 @@ func (r actionToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r actionToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepToParentsFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299124,23 +323935,23 @@ func (r actionToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type actionToTenantFindMany struct { +type stepToParentsFindMany struct { query builder.Query } -func (r actionToTenantFindMany) getQuery() builder.Query { +func (r stepToParentsFindMany) getQuery() builder.Query { return r.query } -func (r actionToTenantFindMany) ExtractQuery() builder.Query { +func (r stepToParentsFindMany) ExtractQuery() builder.Query { return r.query } -func (r actionToTenantFindMany) with() {} -func (r actionToTenantFindMany) actionModel() {} -func (r actionToTenantFindMany) actionRelation() {} +func (r stepToParentsFindMany) with() {} +func (r stepToParentsFindMany) stepModel() {} +func (r stepToParentsFindMany) stepRelation() {} -func (r actionToTenantFindMany) With(params ...TenantRelationWith) actionToTenantFindMany { +func (r stepToParentsFindMany) With(params ...StepRelationWith) stepToParentsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -299153,7 +323964,7 @@ func (r actionToTenantFindMany) With(params ...TenantRelationWith) actionToTenan return r } -func (r actionToTenantFindMany) Select(params ...actionPrismaFields) actionToTenantFindMany { +func (r stepToParentsFindMany) Select(params ...stepPrismaFields) stepToParentsFindMany { var outputs []builder.Output for _, param := range params { @@ -299167,7 +323978,7 @@ func (r actionToTenantFindMany) Select(params ...actionPrismaFields) actionToTen return r } -func (r actionToTenantFindMany) Omit(params ...actionPrismaFields) actionToTenantFindMany { +func (r stepToParentsFindMany) Omit(params ...stepPrismaFields) stepToParentsFindMany { var outputs []builder.Output var raw []string @@ -299175,7 +323986,7 @@ func (r actionToTenantFindMany) Omit(params ...actionPrismaFields) actionToTenan raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -299186,7 +323997,7 @@ func (r actionToTenantFindMany) Omit(params ...actionPrismaFields) actionToTenan return r } -func (r actionToTenantFindMany) OrderBy(params ...TenantOrderByParam) actionToTenantFindMany { +func (r stepToParentsFindMany) OrderBy(params ...StepOrderByParam) stepToParentsFindMany { var fields []builder.Field for _, param := range params { @@ -299206,7 +324017,7 @@ func (r actionToTenantFindMany) OrderBy(params ...TenantOrderByParam) actionToTe return r } -func (r actionToTenantFindMany) Skip(count int) actionToTenantFindMany { +func (r stepToParentsFindMany) Skip(count int) stepToParentsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -299214,7 +324025,7 @@ func (r actionToTenantFindMany) Skip(count int) actionToTenantFindMany { return r } -func (r actionToTenantFindMany) Take(count int) actionToTenantFindMany { +func (r stepToParentsFindMany) Take(count int) stepToParentsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -299222,7 +324033,7 @@ func (r actionToTenantFindMany) Take(count int) actionToTenantFindMany { return r } -func (r actionToTenantFindMany) Cursor(cursor ActionCursorParam) actionToTenantFindMany { +func (r stepToParentsFindMany) Cursor(cursor StepCursorParam) stepToParentsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -299230,11 +324041,11 @@ func (r actionToTenantFindMany) Cursor(cursor ActionCursorParam) actionToTenantF return r } -func (r actionToTenantFindMany) Exec(ctx context.Context) ( - []ActionModel, +func (r stepToParentsFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []ActionModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299242,11 +324053,11 @@ func (r actionToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r actionToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerAction, +func (r stepToParentsFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerAction + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299254,14 +324065,14 @@ func (r actionToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r actionToTenantFindMany) Update(params ...ActionSetParam) actionToTenantUpdateMany { +func (r stepToParentsFindMany) Update(params ...StepSetParam) stepToParentsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Action" + r.query.Model = "Step" r.query.Outputs = countOutput - var v actionToTenantUpdateMany + var v stepToParentsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -299290,17 +324101,17 @@ func (r actionToTenantFindMany) Update(params ...ActionSetParam) actionToTenantU return v } -type actionToTenantUpdateMany struct { +type stepToParentsUpdateMany struct { query builder.Query } -func (r actionToTenantUpdateMany) ExtractQuery() builder.Query { +func (r stepToParentsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r actionToTenantUpdateMany) actionModel() {} +func (r stepToParentsUpdateMany) stepModel() {} -func (r actionToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToParentsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -299308,36 +324119,36 @@ func (r actionToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r actionToTenantUpdateMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepToParentsUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionToTenantFindMany) Delete() actionToTenantDeleteMany { - var v actionToTenantDeleteMany +func (r stepToParentsFindMany) Delete() stepToParentsDeleteMany { + var v stepToParentsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Action" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type actionToTenantDeleteMany struct { +type stepToParentsDeleteMany struct { query builder.Query } -func (r actionToTenantDeleteMany) ExtractQuery() builder.Query { +func (r stepToParentsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p actionToTenantDeleteMany) actionModel() {} +func (p stepToParentsDeleteMany) stepModel() {} -func (r actionToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToParentsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -299345,30 +324156,30 @@ func (r actionToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r actionToTenantDeleteMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepToParentsDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionToStepsFindUnique struct { +type stepToStepRunsFindUnique struct { query builder.Query } -func (r actionToStepsFindUnique) getQuery() builder.Query { +func (r stepToStepRunsFindUnique) getQuery() builder.Query { return r.query } -func (r actionToStepsFindUnique) ExtractQuery() builder.Query { +func (r stepToStepRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r actionToStepsFindUnique) with() {} -func (r actionToStepsFindUnique) actionModel() {} -func (r actionToStepsFindUnique) actionRelation() {} +func (r stepToStepRunsFindUnique) with() {} +func (r stepToStepRunsFindUnique) stepModel() {} +func (r stepToStepRunsFindUnique) stepRelation() {} -func (r actionToStepsFindUnique) With(params ...StepRelationWith) actionToStepsFindUnique { +func (r stepToStepRunsFindUnique) With(params ...StepRunRelationWith) stepToStepRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -299381,7 +324192,7 @@ func (r actionToStepsFindUnique) With(params ...StepRelationWith) actionToStepsF return r } -func (r actionToStepsFindUnique) Select(params ...actionPrismaFields) actionToStepsFindUnique { +func (r stepToStepRunsFindUnique) Select(params ...stepPrismaFields) stepToStepRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -299395,7 +324206,7 @@ func (r actionToStepsFindUnique) Select(params ...actionPrismaFields) actionToSt return r } -func (r actionToStepsFindUnique) Omit(params ...actionPrismaFields) actionToStepsFindUnique { +func (r stepToStepRunsFindUnique) Omit(params ...stepPrismaFields) stepToStepRunsFindUnique { var outputs []builder.Output var raw []string @@ -299403,7 +324214,7 @@ func (r actionToStepsFindUnique) Omit(params ...actionPrismaFields) actionToStep raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -299414,11 +324225,11 @@ func (r actionToStepsFindUnique) Omit(params ...actionPrismaFields) actionToStep return r } -func (r actionToStepsFindUnique) Exec(ctx context.Context) ( - *ActionModel, +func (r stepToStepRunsFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299430,11 +324241,11 @@ func (r actionToStepsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r actionToStepsFindUnique) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepToStepRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299446,12 +324257,12 @@ func (r actionToStepsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r actionToStepsFindUnique) Update(params ...ActionSetParam) actionToStepsUpdateUnique { +func (r stepToStepRunsFindUnique) Update(params ...StepSetParam) stepToStepRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Action" + r.query.Model = "Step" - var v actionToStepsUpdateUnique + var v stepToStepRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -299480,83 +324291,83 @@ func (r actionToStepsFindUnique) Update(params ...ActionSetParam) actionToStepsU return v } -type actionToStepsUpdateUnique struct { +type stepToStepRunsUpdateUnique struct { query builder.Query } -func (r actionToStepsUpdateUnique) ExtractQuery() builder.Query { +func (r stepToStepRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r actionToStepsUpdateUnique) actionModel() {} +func (r stepToStepRunsUpdateUnique) stepModel() {} -func (r actionToStepsUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepToStepRunsUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionToStepsUpdateUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepToStepRunsUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionToStepsFindUnique) Delete() actionToStepsDeleteUnique { - var v actionToStepsDeleteUnique +func (r stepToStepRunsFindUnique) Delete() stepToStepRunsDeleteUnique { + var v stepToStepRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Action" + v.query.Model = "Step" return v } -type actionToStepsDeleteUnique struct { +type stepToStepRunsDeleteUnique struct { query builder.Query } -func (r actionToStepsDeleteUnique) ExtractQuery() builder.Query { +func (r stepToStepRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p actionToStepsDeleteUnique) actionModel() {} +func (p stepToStepRunsDeleteUnique) stepModel() {} -func (r actionToStepsDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepToStepRunsDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionToStepsDeleteUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepToStepRunsDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionToStepsFindFirst struct { +type stepToStepRunsFindFirst struct { query builder.Query } -func (r actionToStepsFindFirst) getQuery() builder.Query { +func (r stepToStepRunsFindFirst) getQuery() builder.Query { return r.query } -func (r actionToStepsFindFirst) ExtractQuery() builder.Query { +func (r stepToStepRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r actionToStepsFindFirst) with() {} -func (r actionToStepsFindFirst) actionModel() {} -func (r actionToStepsFindFirst) actionRelation() {} +func (r stepToStepRunsFindFirst) with() {} +func (r stepToStepRunsFindFirst) stepModel() {} +func (r stepToStepRunsFindFirst) stepRelation() {} -func (r actionToStepsFindFirst) With(params ...StepRelationWith) actionToStepsFindFirst { +func (r stepToStepRunsFindFirst) With(params ...StepRunRelationWith) stepToStepRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -299569,7 +324380,7 @@ func (r actionToStepsFindFirst) With(params ...StepRelationWith) actionToStepsFi return r } -func (r actionToStepsFindFirst) Select(params ...actionPrismaFields) actionToStepsFindFirst { +func (r stepToStepRunsFindFirst) Select(params ...stepPrismaFields) stepToStepRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -299583,7 +324394,7 @@ func (r actionToStepsFindFirst) Select(params ...actionPrismaFields) actionToSte return r } -func (r actionToStepsFindFirst) Omit(params ...actionPrismaFields) actionToStepsFindFirst { +func (r stepToStepRunsFindFirst) Omit(params ...stepPrismaFields) stepToStepRunsFindFirst { var outputs []builder.Output var raw []string @@ -299591,7 +324402,7 @@ func (r actionToStepsFindFirst) Omit(params ...actionPrismaFields) actionToSteps raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -299602,7 +324413,7 @@ func (r actionToStepsFindFirst) Omit(params ...actionPrismaFields) actionToSteps return r } -func (r actionToStepsFindFirst) OrderBy(params ...StepOrderByParam) actionToStepsFindFirst { +func (r stepToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) stepToStepRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -299622,7 +324433,7 @@ func (r actionToStepsFindFirst) OrderBy(params ...StepOrderByParam) actionToStep return r } -func (r actionToStepsFindFirst) Skip(count int) actionToStepsFindFirst { +func (r stepToStepRunsFindFirst) Skip(count int) stepToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -299630,7 +324441,7 @@ func (r actionToStepsFindFirst) Skip(count int) actionToStepsFindFirst { return r } -func (r actionToStepsFindFirst) Take(count int) actionToStepsFindFirst { +func (r stepToStepRunsFindFirst) Take(count int) stepToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -299638,7 +324449,7 @@ func (r actionToStepsFindFirst) Take(count int) actionToStepsFindFirst { return r } -func (r actionToStepsFindFirst) Cursor(cursor ActionCursorParam) actionToStepsFindFirst { +func (r stepToStepRunsFindFirst) Cursor(cursor StepCursorParam) stepToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -299646,11 +324457,11 @@ func (r actionToStepsFindFirst) Cursor(cursor ActionCursorParam) actionToStepsFi return r } -func (r actionToStepsFindFirst) Exec(ctx context.Context) ( - *ActionModel, +func (r stepToStepRunsFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299662,11 +324473,11 @@ func (r actionToStepsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r actionToStepsFindFirst) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepToStepRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299678,23 +324489,23 @@ func (r actionToStepsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type actionToStepsFindMany struct { +type stepToStepRunsFindMany struct { query builder.Query } -func (r actionToStepsFindMany) getQuery() builder.Query { +func (r stepToStepRunsFindMany) getQuery() builder.Query { return r.query } -func (r actionToStepsFindMany) ExtractQuery() builder.Query { +func (r stepToStepRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r actionToStepsFindMany) with() {} -func (r actionToStepsFindMany) actionModel() {} -func (r actionToStepsFindMany) actionRelation() {} +func (r stepToStepRunsFindMany) with() {} +func (r stepToStepRunsFindMany) stepModel() {} +func (r stepToStepRunsFindMany) stepRelation() {} -func (r actionToStepsFindMany) With(params ...StepRelationWith) actionToStepsFindMany { +func (r stepToStepRunsFindMany) With(params ...StepRunRelationWith) stepToStepRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -299707,7 +324518,7 @@ func (r actionToStepsFindMany) With(params ...StepRelationWith) actionToStepsFin return r } -func (r actionToStepsFindMany) Select(params ...actionPrismaFields) actionToStepsFindMany { +func (r stepToStepRunsFindMany) Select(params ...stepPrismaFields) stepToStepRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -299721,7 +324532,7 @@ func (r actionToStepsFindMany) Select(params ...actionPrismaFields) actionToStep return r } -func (r actionToStepsFindMany) Omit(params ...actionPrismaFields) actionToStepsFindMany { +func (r stepToStepRunsFindMany) Omit(params ...stepPrismaFields) stepToStepRunsFindMany { var outputs []builder.Output var raw []string @@ -299729,7 +324540,7 @@ func (r actionToStepsFindMany) Omit(params ...actionPrismaFields) actionToStepsF raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -299740,7 +324551,7 @@ func (r actionToStepsFindMany) Omit(params ...actionPrismaFields) actionToStepsF return r } -func (r actionToStepsFindMany) OrderBy(params ...StepOrderByParam) actionToStepsFindMany { +func (r stepToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) stepToStepRunsFindMany { var fields []builder.Field for _, param := range params { @@ -299760,7 +324571,7 @@ func (r actionToStepsFindMany) OrderBy(params ...StepOrderByParam) actionToSteps return r } -func (r actionToStepsFindMany) Skip(count int) actionToStepsFindMany { +func (r stepToStepRunsFindMany) Skip(count int) stepToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -299768,7 +324579,7 @@ func (r actionToStepsFindMany) Skip(count int) actionToStepsFindMany { return r } -func (r actionToStepsFindMany) Take(count int) actionToStepsFindMany { +func (r stepToStepRunsFindMany) Take(count int) stepToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -299776,7 +324587,7 @@ func (r actionToStepsFindMany) Take(count int) actionToStepsFindMany { return r } -func (r actionToStepsFindMany) Cursor(cursor ActionCursorParam) actionToStepsFindMany { +func (r stepToStepRunsFindMany) Cursor(cursor StepCursorParam) stepToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -299784,11 +324595,11 @@ func (r actionToStepsFindMany) Cursor(cursor ActionCursorParam) actionToStepsFin return r } -func (r actionToStepsFindMany) Exec(ctx context.Context) ( - []ActionModel, +func (r stepToStepRunsFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []ActionModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299796,11 +324607,11 @@ func (r actionToStepsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r actionToStepsFindMany) ExecInner(ctx context.Context) ( - []InnerAction, +func (r stepToStepRunsFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerAction + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299808,14 +324619,14 @@ func (r actionToStepsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r actionToStepsFindMany) Update(params ...ActionSetParam) actionToStepsUpdateMany { +func (r stepToStepRunsFindMany) Update(params ...StepSetParam) stepToStepRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Action" + r.query.Model = "Step" r.query.Outputs = countOutput - var v actionToStepsUpdateMany + var v stepToStepRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -299844,17 +324655,17 @@ func (r actionToStepsFindMany) Update(params ...ActionSetParam) actionToStepsUpd return v } -type actionToStepsUpdateMany struct { +type stepToStepRunsUpdateMany struct { query builder.Query } -func (r actionToStepsUpdateMany) ExtractQuery() builder.Query { +func (r stepToStepRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r actionToStepsUpdateMany) actionModel() {} +func (r stepToStepRunsUpdateMany) stepModel() {} -func (r actionToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -299862,36 +324673,36 @@ func (r actionToStepsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r actionToStepsUpdateMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepToStepRunsUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionToStepsFindMany) Delete() actionToStepsDeleteMany { - var v actionToStepsDeleteMany +func (r stepToStepRunsFindMany) Delete() stepToStepRunsDeleteMany { + var v stepToStepRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Action" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type actionToStepsDeleteMany struct { +type stepToStepRunsDeleteMany struct { query builder.Query } -func (r actionToStepsDeleteMany) ExtractQuery() builder.Query { +func (r stepToStepRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p actionToStepsDeleteMany) actionModel() {} +func (p stepToStepRunsDeleteMany) stepModel() {} -func (r actionToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -299899,30 +324710,30 @@ func (r actionToStepsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r actionToStepsDeleteMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepToStepRunsDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionToWorkersFindUnique struct { +type stepToRateLimitsFindUnique struct { query builder.Query } -func (r actionToWorkersFindUnique) getQuery() builder.Query { +func (r stepToRateLimitsFindUnique) getQuery() builder.Query { return r.query } -func (r actionToWorkersFindUnique) ExtractQuery() builder.Query { +func (r stepToRateLimitsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r actionToWorkersFindUnique) with() {} -func (r actionToWorkersFindUnique) actionModel() {} -func (r actionToWorkersFindUnique) actionRelation() {} +func (r stepToRateLimitsFindUnique) with() {} +func (r stepToRateLimitsFindUnique) stepModel() {} +func (r stepToRateLimitsFindUnique) stepRelation() {} -func (r actionToWorkersFindUnique) With(params ...WorkerRelationWith) actionToWorkersFindUnique { +func (r stepToRateLimitsFindUnique) With(params ...StepRateLimitRelationWith) stepToRateLimitsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -299935,7 +324746,7 @@ func (r actionToWorkersFindUnique) With(params ...WorkerRelationWith) actionToWo return r } -func (r actionToWorkersFindUnique) Select(params ...actionPrismaFields) actionToWorkersFindUnique { +func (r stepToRateLimitsFindUnique) Select(params ...stepPrismaFields) stepToRateLimitsFindUnique { var outputs []builder.Output for _, param := range params { @@ -299949,7 +324760,7 @@ func (r actionToWorkersFindUnique) Select(params ...actionPrismaFields) actionTo return r } -func (r actionToWorkersFindUnique) Omit(params ...actionPrismaFields) actionToWorkersFindUnique { +func (r stepToRateLimitsFindUnique) Omit(params ...stepPrismaFields) stepToRateLimitsFindUnique { var outputs []builder.Output var raw []string @@ -299957,7 +324768,7 @@ func (r actionToWorkersFindUnique) Omit(params ...actionPrismaFields) actionToWo raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -299968,11 +324779,11 @@ func (r actionToWorkersFindUnique) Omit(params ...actionPrismaFields) actionToWo return r } -func (r actionToWorkersFindUnique) Exec(ctx context.Context) ( - *ActionModel, +func (r stepToRateLimitsFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -299984,11 +324795,11 @@ func (r actionToWorkersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r actionToWorkersFindUnique) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepToRateLimitsFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300000,12 +324811,12 @@ func (r actionToWorkersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r actionToWorkersFindUnique) Update(params ...ActionSetParam) actionToWorkersUpdateUnique { +func (r stepToRateLimitsFindUnique) Update(params ...StepSetParam) stepToRateLimitsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Action" + r.query.Model = "Step" - var v actionToWorkersUpdateUnique + var v stepToRateLimitsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -300034,83 +324845,83 @@ func (r actionToWorkersFindUnique) Update(params ...ActionSetParam) actionToWork return v } -type actionToWorkersUpdateUnique struct { +type stepToRateLimitsUpdateUnique struct { query builder.Query } -func (r actionToWorkersUpdateUnique) ExtractQuery() builder.Query { +func (r stepToRateLimitsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r actionToWorkersUpdateUnique) actionModel() {} +func (r stepToRateLimitsUpdateUnique) stepModel() {} -func (r actionToWorkersUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepToRateLimitsUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionToWorkersUpdateUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepToRateLimitsUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionToWorkersFindUnique) Delete() actionToWorkersDeleteUnique { - var v actionToWorkersDeleteUnique +func (r stepToRateLimitsFindUnique) Delete() stepToRateLimitsDeleteUnique { + var v stepToRateLimitsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Action" + v.query.Model = "Step" return v } -type actionToWorkersDeleteUnique struct { +type stepToRateLimitsDeleteUnique struct { query builder.Query } -func (r actionToWorkersDeleteUnique) ExtractQuery() builder.Query { +func (r stepToRateLimitsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p actionToWorkersDeleteUnique) actionModel() {} +func (p stepToRateLimitsDeleteUnique) stepModel() {} -func (r actionToWorkersDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepToRateLimitsDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionToWorkersDeleteUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepToRateLimitsDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionToWorkersFindFirst struct { +type stepToRateLimitsFindFirst struct { query builder.Query } -func (r actionToWorkersFindFirst) getQuery() builder.Query { +func (r stepToRateLimitsFindFirst) getQuery() builder.Query { return r.query } -func (r actionToWorkersFindFirst) ExtractQuery() builder.Query { +func (r stepToRateLimitsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r actionToWorkersFindFirst) with() {} -func (r actionToWorkersFindFirst) actionModel() {} -func (r actionToWorkersFindFirst) actionRelation() {} +func (r stepToRateLimitsFindFirst) with() {} +func (r stepToRateLimitsFindFirst) stepModel() {} +func (r stepToRateLimitsFindFirst) stepRelation() {} -func (r actionToWorkersFindFirst) With(params ...WorkerRelationWith) actionToWorkersFindFirst { +func (r stepToRateLimitsFindFirst) With(params ...StepRateLimitRelationWith) stepToRateLimitsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -300123,7 +324934,7 @@ func (r actionToWorkersFindFirst) With(params ...WorkerRelationWith) actionToWor return r } -func (r actionToWorkersFindFirst) Select(params ...actionPrismaFields) actionToWorkersFindFirst { +func (r stepToRateLimitsFindFirst) Select(params ...stepPrismaFields) stepToRateLimitsFindFirst { var outputs []builder.Output for _, param := range params { @@ -300137,7 +324948,7 @@ func (r actionToWorkersFindFirst) Select(params ...actionPrismaFields) actionToW return r } -func (r actionToWorkersFindFirst) Omit(params ...actionPrismaFields) actionToWorkersFindFirst { +func (r stepToRateLimitsFindFirst) Omit(params ...stepPrismaFields) stepToRateLimitsFindFirst { var outputs []builder.Output var raw []string @@ -300145,7 +324956,7 @@ func (r actionToWorkersFindFirst) Omit(params ...actionPrismaFields) actionToWor raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -300156,7 +324967,7 @@ func (r actionToWorkersFindFirst) Omit(params ...actionPrismaFields) actionToWor return r } -func (r actionToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) actionToWorkersFindFirst { +func (r stepToRateLimitsFindFirst) OrderBy(params ...StepRateLimitOrderByParam) stepToRateLimitsFindFirst { var fields []builder.Field for _, param := range params { @@ -300176,7 +324987,7 @@ func (r actionToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) actionTo return r } -func (r actionToWorkersFindFirst) Skip(count int) actionToWorkersFindFirst { +func (r stepToRateLimitsFindFirst) Skip(count int) stepToRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -300184,7 +324995,7 @@ func (r actionToWorkersFindFirst) Skip(count int) actionToWorkersFindFirst { return r } -func (r actionToWorkersFindFirst) Take(count int) actionToWorkersFindFirst { +func (r stepToRateLimitsFindFirst) Take(count int) stepToRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -300192,7 +325003,7 @@ func (r actionToWorkersFindFirst) Take(count int) actionToWorkersFindFirst { return r } -func (r actionToWorkersFindFirst) Cursor(cursor ActionCursorParam) actionToWorkersFindFirst { +func (r stepToRateLimitsFindFirst) Cursor(cursor StepCursorParam) stepToRateLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -300200,11 +325011,11 @@ func (r actionToWorkersFindFirst) Cursor(cursor ActionCursorParam) actionToWorke return r } -func (r actionToWorkersFindFirst) Exec(ctx context.Context) ( - *ActionModel, +func (r stepToRateLimitsFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300216,11 +325027,11 @@ func (r actionToWorkersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r actionToWorkersFindFirst) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepToRateLimitsFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300232,23 +325043,23 @@ func (r actionToWorkersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type actionToWorkersFindMany struct { +type stepToRateLimitsFindMany struct { query builder.Query } -func (r actionToWorkersFindMany) getQuery() builder.Query { +func (r stepToRateLimitsFindMany) getQuery() builder.Query { return r.query } -func (r actionToWorkersFindMany) ExtractQuery() builder.Query { +func (r stepToRateLimitsFindMany) ExtractQuery() builder.Query { return r.query } -func (r actionToWorkersFindMany) with() {} -func (r actionToWorkersFindMany) actionModel() {} -func (r actionToWorkersFindMany) actionRelation() {} +func (r stepToRateLimitsFindMany) with() {} +func (r stepToRateLimitsFindMany) stepModel() {} +func (r stepToRateLimitsFindMany) stepRelation() {} -func (r actionToWorkersFindMany) With(params ...WorkerRelationWith) actionToWorkersFindMany { +func (r stepToRateLimitsFindMany) With(params ...StepRateLimitRelationWith) stepToRateLimitsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -300261,7 +325072,7 @@ func (r actionToWorkersFindMany) With(params ...WorkerRelationWith) actionToWork return r } -func (r actionToWorkersFindMany) Select(params ...actionPrismaFields) actionToWorkersFindMany { +func (r stepToRateLimitsFindMany) Select(params ...stepPrismaFields) stepToRateLimitsFindMany { var outputs []builder.Output for _, param := range params { @@ -300275,7 +325086,7 @@ func (r actionToWorkersFindMany) Select(params ...actionPrismaFields) actionToWo return r } -func (r actionToWorkersFindMany) Omit(params ...actionPrismaFields) actionToWorkersFindMany { +func (r stepToRateLimitsFindMany) Omit(params ...stepPrismaFields) stepToRateLimitsFindMany { var outputs []builder.Output var raw []string @@ -300283,7 +325094,7 @@ func (r actionToWorkersFindMany) Omit(params ...actionPrismaFields) actionToWork raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -300294,7 +325105,7 @@ func (r actionToWorkersFindMany) Omit(params ...actionPrismaFields) actionToWork return r } -func (r actionToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) actionToWorkersFindMany { +func (r stepToRateLimitsFindMany) OrderBy(params ...StepRateLimitOrderByParam) stepToRateLimitsFindMany { var fields []builder.Field for _, param := range params { @@ -300314,7 +325125,7 @@ func (r actionToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) actionToW return r } -func (r actionToWorkersFindMany) Skip(count int) actionToWorkersFindMany { +func (r stepToRateLimitsFindMany) Skip(count int) stepToRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -300322,7 +325133,7 @@ func (r actionToWorkersFindMany) Skip(count int) actionToWorkersFindMany { return r } -func (r actionToWorkersFindMany) Take(count int) actionToWorkersFindMany { +func (r stepToRateLimitsFindMany) Take(count int) stepToRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -300330,7 +325141,7 @@ func (r actionToWorkersFindMany) Take(count int) actionToWorkersFindMany { return r } -func (r actionToWorkersFindMany) Cursor(cursor ActionCursorParam) actionToWorkersFindMany { +func (r stepToRateLimitsFindMany) Cursor(cursor StepCursorParam) stepToRateLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -300338,11 +325149,11 @@ func (r actionToWorkersFindMany) Cursor(cursor ActionCursorParam) actionToWorker return r } -func (r actionToWorkersFindMany) Exec(ctx context.Context) ( - []ActionModel, +func (r stepToRateLimitsFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []ActionModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300350,11 +325161,11 @@ func (r actionToWorkersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r actionToWorkersFindMany) ExecInner(ctx context.Context) ( - []InnerAction, +func (r stepToRateLimitsFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerAction + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300362,14 +325173,14 @@ func (r actionToWorkersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r actionToWorkersFindMany) Update(params ...ActionSetParam) actionToWorkersUpdateMany { +func (r stepToRateLimitsFindMany) Update(params ...StepSetParam) stepToRateLimitsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Action" + r.query.Model = "Step" r.query.Outputs = countOutput - var v actionToWorkersUpdateMany + var v stepToRateLimitsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -300398,17 +325209,17 @@ func (r actionToWorkersFindMany) Update(params ...ActionSetParam) actionToWorker return v } -type actionToWorkersUpdateMany struct { +type stepToRateLimitsUpdateMany struct { query builder.Query } -func (r actionToWorkersUpdateMany) ExtractQuery() builder.Query { +func (r stepToRateLimitsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r actionToWorkersUpdateMany) actionModel() {} +func (r stepToRateLimitsUpdateMany) stepModel() {} -func (r actionToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -300416,36 +325227,36 @@ func (r actionToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r actionToWorkersUpdateMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepToRateLimitsUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionToWorkersFindMany) Delete() actionToWorkersDeleteMany { - var v actionToWorkersDeleteMany +func (r stepToRateLimitsFindMany) Delete() stepToRateLimitsDeleteMany { + var v stepToRateLimitsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Action" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type actionToWorkersDeleteMany struct { +type stepToRateLimitsDeleteMany struct { query builder.Query } -func (r actionToWorkersDeleteMany) ExtractQuery() builder.Query { +func (r stepToRateLimitsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p actionToWorkersDeleteMany) actionModel() {} +func (p stepToRateLimitsDeleteMany) stepModel() {} -func (r actionToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -300453,30 +325264,30 @@ func (r actionToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r actionToWorkersDeleteMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepToRateLimitsDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionToConcurrencyFindUnique struct { +type stepToWorkerLabelsFindUnique struct { query builder.Query } -func (r actionToConcurrencyFindUnique) getQuery() builder.Query { +func (r stepToWorkerLabelsFindUnique) getQuery() builder.Query { return r.query } -func (r actionToConcurrencyFindUnique) ExtractQuery() builder.Query { +func (r stepToWorkerLabelsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r actionToConcurrencyFindUnique) with() {} -func (r actionToConcurrencyFindUnique) actionModel() {} -func (r actionToConcurrencyFindUnique) actionRelation() {} +func (r stepToWorkerLabelsFindUnique) with() {} +func (r stepToWorkerLabelsFindUnique) stepModel() {} +func (r stepToWorkerLabelsFindUnique) stepRelation() {} -func (r actionToConcurrencyFindUnique) With(params ...WorkflowConcurrencyRelationWith) actionToConcurrencyFindUnique { +func (r stepToWorkerLabelsFindUnique) With(params ...StepDesiredWorkerLabelRelationWith) stepToWorkerLabelsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -300489,7 +325300,7 @@ func (r actionToConcurrencyFindUnique) With(params ...WorkflowConcurrencyRelatio return r } -func (r actionToConcurrencyFindUnique) Select(params ...actionPrismaFields) actionToConcurrencyFindUnique { +func (r stepToWorkerLabelsFindUnique) Select(params ...stepPrismaFields) stepToWorkerLabelsFindUnique { var outputs []builder.Output for _, param := range params { @@ -300503,7 +325314,7 @@ func (r actionToConcurrencyFindUnique) Select(params ...actionPrismaFields) acti return r } -func (r actionToConcurrencyFindUnique) Omit(params ...actionPrismaFields) actionToConcurrencyFindUnique { +func (r stepToWorkerLabelsFindUnique) Omit(params ...stepPrismaFields) stepToWorkerLabelsFindUnique { var outputs []builder.Output var raw []string @@ -300511,7 +325322,7 @@ func (r actionToConcurrencyFindUnique) Omit(params ...actionPrismaFields) action raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -300522,11 +325333,11 @@ func (r actionToConcurrencyFindUnique) Omit(params ...actionPrismaFields) action return r } -func (r actionToConcurrencyFindUnique) Exec(ctx context.Context) ( - *ActionModel, +func (r stepToWorkerLabelsFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300538,11 +325349,11 @@ func (r actionToConcurrencyFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r actionToConcurrencyFindUnique) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepToWorkerLabelsFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300554,12 +325365,12 @@ func (r actionToConcurrencyFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r actionToConcurrencyFindUnique) Update(params ...ActionSetParam) actionToConcurrencyUpdateUnique { +func (r stepToWorkerLabelsFindUnique) Update(params ...StepSetParam) stepToWorkerLabelsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Action" + r.query.Model = "Step" - var v actionToConcurrencyUpdateUnique + var v stepToWorkerLabelsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -300588,83 +325399,83 @@ func (r actionToConcurrencyFindUnique) Update(params ...ActionSetParam) actionTo return v } -type actionToConcurrencyUpdateUnique struct { +type stepToWorkerLabelsUpdateUnique struct { query builder.Query } -func (r actionToConcurrencyUpdateUnique) ExtractQuery() builder.Query { +func (r stepToWorkerLabelsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r actionToConcurrencyUpdateUnique) actionModel() {} +func (r stepToWorkerLabelsUpdateUnique) stepModel() {} -func (r actionToConcurrencyUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepToWorkerLabelsUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionToConcurrencyUpdateUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepToWorkerLabelsUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionToConcurrencyFindUnique) Delete() actionToConcurrencyDeleteUnique { - var v actionToConcurrencyDeleteUnique +func (r stepToWorkerLabelsFindUnique) Delete() stepToWorkerLabelsDeleteUnique { + var v stepToWorkerLabelsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Action" + v.query.Model = "Step" return v } -type actionToConcurrencyDeleteUnique struct { +type stepToWorkerLabelsDeleteUnique struct { query builder.Query } -func (r actionToConcurrencyDeleteUnique) ExtractQuery() builder.Query { +func (r stepToWorkerLabelsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p actionToConcurrencyDeleteUnique) actionModel() {} +func (p stepToWorkerLabelsDeleteUnique) stepModel() {} -func (r actionToConcurrencyDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepToWorkerLabelsDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionToConcurrencyDeleteUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepToWorkerLabelsDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionToConcurrencyFindFirst struct { +type stepToWorkerLabelsFindFirst struct { query builder.Query } -func (r actionToConcurrencyFindFirst) getQuery() builder.Query { +func (r stepToWorkerLabelsFindFirst) getQuery() builder.Query { return r.query } -func (r actionToConcurrencyFindFirst) ExtractQuery() builder.Query { +func (r stepToWorkerLabelsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r actionToConcurrencyFindFirst) with() {} -func (r actionToConcurrencyFindFirst) actionModel() {} -func (r actionToConcurrencyFindFirst) actionRelation() {} +func (r stepToWorkerLabelsFindFirst) with() {} +func (r stepToWorkerLabelsFindFirst) stepModel() {} +func (r stepToWorkerLabelsFindFirst) stepRelation() {} -func (r actionToConcurrencyFindFirst) With(params ...WorkflowConcurrencyRelationWith) actionToConcurrencyFindFirst { +func (r stepToWorkerLabelsFindFirst) With(params ...StepDesiredWorkerLabelRelationWith) stepToWorkerLabelsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -300677,7 +325488,7 @@ func (r actionToConcurrencyFindFirst) With(params ...WorkflowConcurrencyRelation return r } -func (r actionToConcurrencyFindFirst) Select(params ...actionPrismaFields) actionToConcurrencyFindFirst { +func (r stepToWorkerLabelsFindFirst) Select(params ...stepPrismaFields) stepToWorkerLabelsFindFirst { var outputs []builder.Output for _, param := range params { @@ -300691,7 +325502,7 @@ func (r actionToConcurrencyFindFirst) Select(params ...actionPrismaFields) actio return r } -func (r actionToConcurrencyFindFirst) Omit(params ...actionPrismaFields) actionToConcurrencyFindFirst { +func (r stepToWorkerLabelsFindFirst) Omit(params ...stepPrismaFields) stepToWorkerLabelsFindFirst { var outputs []builder.Output var raw []string @@ -300699,7 +325510,7 @@ func (r actionToConcurrencyFindFirst) Omit(params ...actionPrismaFields) actionT raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -300710,7 +325521,7 @@ func (r actionToConcurrencyFindFirst) Omit(params ...actionPrismaFields) actionT return r } -func (r actionToConcurrencyFindFirst) OrderBy(params ...WorkflowConcurrencyOrderByParam) actionToConcurrencyFindFirst { +func (r stepToWorkerLabelsFindFirst) OrderBy(params ...StepDesiredWorkerLabelOrderByParam) stepToWorkerLabelsFindFirst { var fields []builder.Field for _, param := range params { @@ -300730,7 +325541,7 @@ func (r actionToConcurrencyFindFirst) OrderBy(params ...WorkflowConcurrencyOrder return r } -func (r actionToConcurrencyFindFirst) Skip(count int) actionToConcurrencyFindFirst { +func (r stepToWorkerLabelsFindFirst) Skip(count int) stepToWorkerLabelsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -300738,7 +325549,7 @@ func (r actionToConcurrencyFindFirst) Skip(count int) actionToConcurrencyFindFir return r } -func (r actionToConcurrencyFindFirst) Take(count int) actionToConcurrencyFindFirst { +func (r stepToWorkerLabelsFindFirst) Take(count int) stepToWorkerLabelsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -300746,7 +325557,7 @@ func (r actionToConcurrencyFindFirst) Take(count int) actionToConcurrencyFindFir return r } -func (r actionToConcurrencyFindFirst) Cursor(cursor ActionCursorParam) actionToConcurrencyFindFirst { +func (r stepToWorkerLabelsFindFirst) Cursor(cursor StepCursorParam) stepToWorkerLabelsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -300754,11 +325565,11 @@ func (r actionToConcurrencyFindFirst) Cursor(cursor ActionCursorParam) actionToC return r } -func (r actionToConcurrencyFindFirst) Exec(ctx context.Context) ( - *ActionModel, +func (r stepToWorkerLabelsFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300770,11 +325581,11 @@ func (r actionToConcurrencyFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r actionToConcurrencyFindFirst) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepToWorkerLabelsFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300786,23 +325597,23 @@ func (r actionToConcurrencyFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type actionToConcurrencyFindMany struct { +type stepToWorkerLabelsFindMany struct { query builder.Query } -func (r actionToConcurrencyFindMany) getQuery() builder.Query { +func (r stepToWorkerLabelsFindMany) getQuery() builder.Query { return r.query } -func (r actionToConcurrencyFindMany) ExtractQuery() builder.Query { +func (r stepToWorkerLabelsFindMany) ExtractQuery() builder.Query { return r.query } -func (r actionToConcurrencyFindMany) with() {} -func (r actionToConcurrencyFindMany) actionModel() {} -func (r actionToConcurrencyFindMany) actionRelation() {} +func (r stepToWorkerLabelsFindMany) with() {} +func (r stepToWorkerLabelsFindMany) stepModel() {} +func (r stepToWorkerLabelsFindMany) stepRelation() {} -func (r actionToConcurrencyFindMany) With(params ...WorkflowConcurrencyRelationWith) actionToConcurrencyFindMany { +func (r stepToWorkerLabelsFindMany) With(params ...StepDesiredWorkerLabelRelationWith) stepToWorkerLabelsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -300815,7 +325626,7 @@ func (r actionToConcurrencyFindMany) With(params ...WorkflowConcurrencyRelationW return r } -func (r actionToConcurrencyFindMany) Select(params ...actionPrismaFields) actionToConcurrencyFindMany { +func (r stepToWorkerLabelsFindMany) Select(params ...stepPrismaFields) stepToWorkerLabelsFindMany { var outputs []builder.Output for _, param := range params { @@ -300829,7 +325640,7 @@ func (r actionToConcurrencyFindMany) Select(params ...actionPrismaFields) action return r } -func (r actionToConcurrencyFindMany) Omit(params ...actionPrismaFields) actionToConcurrencyFindMany { +func (r stepToWorkerLabelsFindMany) Omit(params ...stepPrismaFields) stepToWorkerLabelsFindMany { var outputs []builder.Output var raw []string @@ -300837,7 +325648,7 @@ func (r actionToConcurrencyFindMany) Omit(params ...actionPrismaFields) actionTo raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -300848,7 +325659,7 @@ func (r actionToConcurrencyFindMany) Omit(params ...actionPrismaFields) actionTo return r } -func (r actionToConcurrencyFindMany) OrderBy(params ...WorkflowConcurrencyOrderByParam) actionToConcurrencyFindMany { +func (r stepToWorkerLabelsFindMany) OrderBy(params ...StepDesiredWorkerLabelOrderByParam) stepToWorkerLabelsFindMany { var fields []builder.Field for _, param := range params { @@ -300868,7 +325679,7 @@ func (r actionToConcurrencyFindMany) OrderBy(params ...WorkflowConcurrencyOrderB return r } -func (r actionToConcurrencyFindMany) Skip(count int) actionToConcurrencyFindMany { +func (r stepToWorkerLabelsFindMany) Skip(count int) stepToWorkerLabelsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -300876,7 +325687,7 @@ func (r actionToConcurrencyFindMany) Skip(count int) actionToConcurrencyFindMany return r } -func (r actionToConcurrencyFindMany) Take(count int) actionToConcurrencyFindMany { +func (r stepToWorkerLabelsFindMany) Take(count int) stepToWorkerLabelsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -300884,7 +325695,7 @@ func (r actionToConcurrencyFindMany) Take(count int) actionToConcurrencyFindMany return r } -func (r actionToConcurrencyFindMany) Cursor(cursor ActionCursorParam) actionToConcurrencyFindMany { +func (r stepToWorkerLabelsFindMany) Cursor(cursor StepCursorParam) stepToWorkerLabelsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -300892,11 +325703,11 @@ func (r actionToConcurrencyFindMany) Cursor(cursor ActionCursorParam) actionToCo return r } -func (r actionToConcurrencyFindMany) Exec(ctx context.Context) ( - []ActionModel, +func (r stepToWorkerLabelsFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []ActionModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300904,11 +325715,11 @@ func (r actionToConcurrencyFindMany) Exec(ctx context.Context) ( return v, nil } -func (r actionToConcurrencyFindMany) ExecInner(ctx context.Context) ( - []InnerAction, +func (r stepToWorkerLabelsFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerAction + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -300916,14 +325727,14 @@ func (r actionToConcurrencyFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r actionToConcurrencyFindMany) Update(params ...ActionSetParam) actionToConcurrencyUpdateMany { +func (r stepToWorkerLabelsFindMany) Update(params ...StepSetParam) stepToWorkerLabelsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Action" + r.query.Model = "Step" r.query.Outputs = countOutput - var v actionToConcurrencyUpdateMany + var v stepToWorkerLabelsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -300952,17 +325763,17 @@ func (r actionToConcurrencyFindMany) Update(params ...ActionSetParam) actionToCo return v } -type actionToConcurrencyUpdateMany struct { +type stepToWorkerLabelsUpdateMany struct { query builder.Query } -func (r actionToConcurrencyUpdateMany) ExtractQuery() builder.Query { +func (r stepToWorkerLabelsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r actionToConcurrencyUpdateMany) actionModel() {} +func (r stepToWorkerLabelsUpdateMany) stepModel() {} -func (r actionToConcurrencyUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToWorkerLabelsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -300970,36 +325781,36 @@ func (r actionToConcurrencyUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r actionToConcurrencyUpdateMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepToWorkerLabelsUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionToConcurrencyFindMany) Delete() actionToConcurrencyDeleteMany { - var v actionToConcurrencyDeleteMany +func (r stepToWorkerLabelsFindMany) Delete() stepToWorkerLabelsDeleteMany { + var v stepToWorkerLabelsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Action" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type actionToConcurrencyDeleteMany struct { +type stepToWorkerLabelsDeleteMany struct { query builder.Query } -func (r actionToConcurrencyDeleteMany) ExtractQuery() builder.Query { +func (r stepToWorkerLabelsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p actionToConcurrencyDeleteMany) actionModel() {} +func (p stepToWorkerLabelsDeleteMany) stepModel() {} -func (r actionToConcurrencyDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepToWorkerLabelsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -301007,33 +325818,33 @@ func (r actionToConcurrencyDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r actionToConcurrencyDeleteMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepToWorkerLabelsDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionFindUnique struct { +type stepFindUnique struct { query builder.Query } -func (r actionFindUnique) getQuery() builder.Query { +func (r stepFindUnique) getQuery() builder.Query { return r.query } -func (r actionFindUnique) ExtractQuery() builder.Query { +func (r stepFindUnique) ExtractQuery() builder.Query { return r.query } -func (r actionFindUnique) with() {} -func (r actionFindUnique) actionModel() {} -func (r actionFindUnique) actionRelation() {} +func (r stepFindUnique) with() {} +func (r stepFindUnique) stepModel() {} +func (r stepFindUnique) stepRelation() {} -func (r actionActions) FindUnique( - params ActionEqualsUniqueWhereParam, -) actionFindUnique { - var v actionFindUnique +func (r stepActions) FindUnique( + params StepEqualsUniqueWhereParam, +) stepFindUnique { + var v stepFindUnique v.query = builder.NewQuery() v.query.Engine = r.client @@ -301041,8 +325852,8 @@ func (r actionActions) FindUnique( v.query.Method = "findUnique" - v.query.Model = "Action" - v.query.Outputs = actionOutput + v.query.Model = "Step" + v.query.Outputs = stepOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "where", @@ -301052,7 +325863,7 @@ func (r actionActions) FindUnique( return v } -func (r actionFindUnique) With(params ...ActionRelationWith) actionFindUnique { +func (r stepFindUnique) With(params ...StepRelationWith) stepFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -301065,7 +325876,7 @@ func (r actionFindUnique) With(params ...ActionRelationWith) actionFindUnique { return r } -func (r actionFindUnique) Select(params ...actionPrismaFields) actionFindUnique { +func (r stepFindUnique) Select(params ...stepPrismaFields) stepFindUnique { var outputs []builder.Output for _, param := range params { @@ -301079,7 +325890,7 @@ func (r actionFindUnique) Select(params ...actionPrismaFields) actionFindUnique return r } -func (r actionFindUnique) Omit(params ...actionPrismaFields) actionFindUnique { +func (r stepFindUnique) Omit(params ...stepPrismaFields) stepFindUnique { var outputs []builder.Output var raw []string @@ -301087,7 +325898,7 @@ func (r actionFindUnique) Omit(params ...actionPrismaFields) actionFindUnique { raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -301098,11 +325909,11 @@ func (r actionFindUnique) Omit(params ...actionPrismaFields) actionFindUnique { return r } -func (r actionFindUnique) Exec(ctx context.Context) ( - *ActionModel, +func (r stepFindUnique) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301114,11 +325925,11 @@ func (r actionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r actionFindUnique) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepFindUnique) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301130,12 +325941,12 @@ func (r actionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r actionFindUnique) Update(params ...ActionSetParam) actionUpdateUnique { +func (r stepFindUnique) Update(params ...StepSetParam) stepUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Action" + r.query.Model = "Step" - var v actionUpdateUnique + var v stepUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -301164,86 +325975,86 @@ func (r actionFindUnique) Update(params ...ActionSetParam) actionUpdateUnique { return v } -type actionUpdateUnique struct { +type stepUpdateUnique struct { query builder.Query } -func (r actionUpdateUnique) ExtractQuery() builder.Query { +func (r stepUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r actionUpdateUnique) actionModel() {} +func (r stepUpdateUnique) stepModel() {} -func (r actionUpdateUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionUpdateUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepUpdateUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionFindUnique) Delete() actionDeleteUnique { - var v actionDeleteUnique +func (r stepFindUnique) Delete() stepDeleteUnique { + var v stepDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Action" + v.query.Model = "Step" return v } -type actionDeleteUnique struct { +type stepDeleteUnique struct { query builder.Query } -func (r actionDeleteUnique) ExtractQuery() builder.Query { +func (r stepDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p actionDeleteUnique) actionModel() {} +func (p stepDeleteUnique) stepModel() {} -func (r actionDeleteUnique) Exec(ctx context.Context) (*ActionModel, error) { - var v ActionModel +func (r stepDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { + var v StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r actionDeleteUnique) Tx() ActionUniqueTxResult { - v := newActionUniqueTxResult() +func (r stepDeleteUnique) Tx() StepUniqueTxResult { + v := newStepUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type actionFindFirst struct { +type stepFindFirst struct { query builder.Query } -func (r actionFindFirst) getQuery() builder.Query { +func (r stepFindFirst) getQuery() builder.Query { return r.query } -func (r actionFindFirst) ExtractQuery() builder.Query { +func (r stepFindFirst) ExtractQuery() builder.Query { return r.query } -func (r actionFindFirst) with() {} -func (r actionFindFirst) actionModel() {} -func (r actionFindFirst) actionRelation() {} +func (r stepFindFirst) with() {} +func (r stepFindFirst) stepModel() {} +func (r stepFindFirst) stepRelation() {} -func (r actionActions) FindFirst( - params ...ActionWhereParam, -) actionFindFirst { - var v actionFindFirst +func (r stepActions) FindFirst( + params ...StepWhereParam, +) stepFindFirst { + var v stepFindFirst v.query = builder.NewQuery() v.query.Engine = r.client @@ -301251,8 +326062,8 @@ func (r actionActions) FindFirst( v.query.Method = "findFirst" - v.query.Model = "Action" - v.query.Outputs = actionOutput + v.query.Model = "Step" + v.query.Outputs = stepOutput var where []builder.Field for _, q := range params { @@ -301277,7 +326088,7 @@ func (r actionActions) FindFirst( return v } -func (r actionFindFirst) With(params ...ActionRelationWith) actionFindFirst { +func (r stepFindFirst) With(params ...StepRelationWith) stepFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -301290,7 +326101,7 @@ func (r actionFindFirst) With(params ...ActionRelationWith) actionFindFirst { return r } -func (r actionFindFirst) Select(params ...actionPrismaFields) actionFindFirst { +func (r stepFindFirst) Select(params ...stepPrismaFields) stepFindFirst { var outputs []builder.Output for _, param := range params { @@ -301304,7 +326115,7 @@ func (r actionFindFirst) Select(params ...actionPrismaFields) actionFindFirst { return r } -func (r actionFindFirst) Omit(params ...actionPrismaFields) actionFindFirst { +func (r stepFindFirst) Omit(params ...stepPrismaFields) stepFindFirst { var outputs []builder.Output var raw []string @@ -301312,7 +326123,7 @@ func (r actionFindFirst) Omit(params ...actionPrismaFields) actionFindFirst { raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -301323,7 +326134,7 @@ func (r actionFindFirst) Omit(params ...actionPrismaFields) actionFindFirst { return r } -func (r actionFindFirst) OrderBy(params ...ActionOrderByParam) actionFindFirst { +func (r stepFindFirst) OrderBy(params ...StepOrderByParam) stepFindFirst { var fields []builder.Field for _, param := range params { @@ -301343,7 +326154,7 @@ func (r actionFindFirst) OrderBy(params ...ActionOrderByParam) actionFindFirst { return r } -func (r actionFindFirst) Skip(count int) actionFindFirst { +func (r stepFindFirst) Skip(count int) stepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -301351,7 +326162,7 @@ func (r actionFindFirst) Skip(count int) actionFindFirst { return r } -func (r actionFindFirst) Take(count int) actionFindFirst { +func (r stepFindFirst) Take(count int) stepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -301359,7 +326170,7 @@ func (r actionFindFirst) Take(count int) actionFindFirst { return r } -func (r actionFindFirst) Cursor(cursor ActionCursorParam) actionFindFirst { +func (r stepFindFirst) Cursor(cursor StepCursorParam) stepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -301367,11 +326178,11 @@ func (r actionFindFirst) Cursor(cursor ActionCursorParam) actionFindFirst { return r } -func (r actionFindFirst) Exec(ctx context.Context) ( - *ActionModel, +func (r stepFindFirst) Exec(ctx context.Context) ( + *StepModel, error, ) { - var v *ActionModel + var v *StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301383,11 +326194,11 @@ func (r actionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r actionFindFirst) ExecInner(ctx context.Context) ( - *InnerAction, +func (r stepFindFirst) ExecInner(ctx context.Context) ( + *InnerStep, error, ) { - var v *InnerAction + var v *InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301399,26 +326210,26 @@ func (r actionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type actionFindMany struct { +type stepFindMany struct { query builder.Query } -func (r actionFindMany) getQuery() builder.Query { +func (r stepFindMany) getQuery() builder.Query { return r.query } -func (r actionFindMany) ExtractQuery() builder.Query { +func (r stepFindMany) ExtractQuery() builder.Query { return r.query } -func (r actionFindMany) with() {} -func (r actionFindMany) actionModel() {} -func (r actionFindMany) actionRelation() {} +func (r stepFindMany) with() {} +func (r stepFindMany) stepModel() {} +func (r stepFindMany) stepRelation() {} -func (r actionActions) FindMany( - params ...ActionWhereParam, -) actionFindMany { - var v actionFindMany +func (r stepActions) FindMany( + params ...StepWhereParam, +) stepFindMany { + var v stepFindMany v.query = builder.NewQuery() v.query.Engine = r.client @@ -301426,8 +326237,8 @@ func (r actionActions) FindMany( v.query.Method = "findMany" - v.query.Model = "Action" - v.query.Outputs = actionOutput + v.query.Model = "Step" + v.query.Outputs = stepOutput var where []builder.Field for _, q := range params { @@ -301452,7 +326263,7 @@ func (r actionActions) FindMany( return v } -func (r actionFindMany) With(params ...ActionRelationWith) actionFindMany { +func (r stepFindMany) With(params ...StepRelationWith) stepFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -301465,7 +326276,7 @@ func (r actionFindMany) With(params ...ActionRelationWith) actionFindMany { return r } -func (r actionFindMany) Select(params ...actionPrismaFields) actionFindMany { +func (r stepFindMany) Select(params ...stepPrismaFields) stepFindMany { var outputs []builder.Output for _, param := range params { @@ -301479,7 +326290,7 @@ func (r actionFindMany) Select(params ...actionPrismaFields) actionFindMany { return r } -func (r actionFindMany) Omit(params ...actionPrismaFields) actionFindMany { +func (r stepFindMany) Omit(params ...stepPrismaFields) stepFindMany { var outputs []builder.Output var raw []string @@ -301487,7 +326298,7 @@ func (r actionFindMany) Omit(params ...actionPrismaFields) actionFindMany { raw = append(raw, string(param)) } - for _, output := range actionOutput { + for _, output := range stepOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -301498,7 +326309,7 @@ func (r actionFindMany) Omit(params ...actionPrismaFields) actionFindMany { return r } -func (r actionFindMany) OrderBy(params ...ActionOrderByParam) actionFindMany { +func (r stepFindMany) OrderBy(params ...StepOrderByParam) stepFindMany { var fields []builder.Field for _, param := range params { @@ -301518,7 +326329,7 @@ func (r actionFindMany) OrderBy(params ...ActionOrderByParam) actionFindMany { return r } -func (r actionFindMany) Skip(count int) actionFindMany { +func (r stepFindMany) Skip(count int) stepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -301526,7 +326337,7 @@ func (r actionFindMany) Skip(count int) actionFindMany { return r } -func (r actionFindMany) Take(count int) actionFindMany { +func (r stepFindMany) Take(count int) stepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -301534,7 +326345,7 @@ func (r actionFindMany) Take(count int) actionFindMany { return r } -func (r actionFindMany) Cursor(cursor ActionCursorParam) actionFindMany { +func (r stepFindMany) Cursor(cursor StepCursorParam) stepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -301542,11 +326353,11 @@ func (r actionFindMany) Cursor(cursor ActionCursorParam) actionFindMany { return r } -func (r actionFindMany) Exec(ctx context.Context) ( - []ActionModel, +func (r stepFindMany) Exec(ctx context.Context) ( + []StepModel, error, ) { - var v []ActionModel + var v []StepModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301554,11 +326365,11 @@ func (r actionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r actionFindMany) ExecInner(ctx context.Context) ( - []InnerAction, +func (r stepFindMany) ExecInner(ctx context.Context) ( + []InnerStep, error, ) { - var v []InnerAction + var v []InnerStep if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301566,14 +326377,14 @@ func (r actionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r actionFindMany) Update(params ...ActionSetParam) actionUpdateMany { +func (r stepFindMany) Update(params ...StepSetParam) stepUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Action" + r.query.Model = "Step" r.query.Outputs = countOutput - var v actionUpdateMany + var v stepUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -301602,17 +326413,17 @@ func (r actionFindMany) Update(params ...ActionSetParam) actionUpdateMany { return v } -type actionUpdateMany struct { +type stepUpdateMany struct { query builder.Query } -func (r actionUpdateMany) ExtractQuery() builder.Query { +func (r stepUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r actionUpdateMany) actionModel() {} +func (r stepUpdateMany) stepModel() {} -func (r actionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -301620,36 +326431,36 @@ func (r actionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r actionUpdateMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepUpdateMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r actionFindMany) Delete() actionDeleteMany { - var v actionDeleteMany +func (r stepFindMany) Delete() stepDeleteMany { + var v stepDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Action" + v.query.Model = "Step" v.query.Outputs = countOutput return v } -type actionDeleteMany struct { +type stepDeleteMany struct { query builder.Query } -func (r actionDeleteMany) ExtractQuery() builder.Query { +func (r stepDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p actionDeleteMany) actionModel() {} +func (p stepDeleteMany) stepModel() {} -func (r actionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -301657,30 +326468,30 @@ func (r actionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r actionDeleteMany) Tx() ActionManyTxResult { - v := newActionManyTxResult() +func (r stepDeleteMany) Tx() StepManyTxResult { + v := newStepManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToTenantFindUnique struct { +type stepRateLimitToStepFindUnique struct { query builder.Query } -func (r stepToTenantFindUnique) getQuery() builder.Query { +func (r stepRateLimitToStepFindUnique) getQuery() builder.Query { return r.query } -func (r stepToTenantFindUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToStepFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToTenantFindUnique) with() {} -func (r stepToTenantFindUnique) stepModel() {} -func (r stepToTenantFindUnique) stepRelation() {} +func (r stepRateLimitToStepFindUnique) with() {} +func (r stepRateLimitToStepFindUnique) stepRateLimitModel() {} +func (r stepRateLimitToStepFindUnique) stepRateLimitRelation() {} -func (r stepToTenantFindUnique) With(params ...TenantRelationWith) stepToTenantFindUnique { +func (r stepRateLimitToStepFindUnique) With(params ...StepRelationWith) stepRateLimitToStepFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -301693,7 +326504,7 @@ func (r stepToTenantFindUnique) With(params ...TenantRelationWith) stepToTenantF return r } -func (r stepToTenantFindUnique) Select(params ...stepPrismaFields) stepToTenantFindUnique { +func (r stepRateLimitToStepFindUnique) Select(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindUnique { var outputs []builder.Output for _, param := range params { @@ -301707,7 +326518,7 @@ func (r stepToTenantFindUnique) Select(params ...stepPrismaFields) stepToTenantF return r } -func (r stepToTenantFindUnique) Omit(params ...stepPrismaFields) stepToTenantFindUnique { +func (r stepRateLimitToStepFindUnique) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindUnique { var outputs []builder.Output var raw []string @@ -301715,7 +326526,7 @@ func (r stepToTenantFindUnique) Omit(params ...stepPrismaFields) stepToTenantFin raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -301726,11 +326537,11 @@ func (r stepToTenantFindUnique) Omit(params ...stepPrismaFields) stepToTenantFin return r } -func (r stepToTenantFindUnique) Exec(ctx context.Context) ( - *StepModel, +func (r stepRateLimitToStepFindUnique) Exec(ctx context.Context) ( + *StepRateLimitModel, error, ) { - var v *StepModel + var v *StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301742,11 +326553,11 @@ func (r stepToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerStep, +func (r stepRateLimitToStepFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRateLimit, error, ) { - var v *InnerStep + var v *InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301758,12 +326569,12 @@ func (r stepToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToTenantFindUnique) Update(params ...StepSetParam) stepToTenantUpdateUnique { +func (r stepRateLimitToStepFindUnique) Update(params ...StepRateLimitSetParam) stepRateLimitToStepUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Step" + r.query.Model = "StepRateLimit" - var v stepToTenantUpdateUnique + var v stepRateLimitToStepUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -301792,83 +326603,83 @@ func (r stepToTenantFindUnique) Update(params ...StepSetParam) stepToTenantUpdat return v } -type stepToTenantUpdateUnique struct { +type stepRateLimitToStepUpdateUnique struct { query builder.Query } -func (r stepToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToStepUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToTenantUpdateUnique) stepModel() {} +func (r stepRateLimitToStepUpdateUnique) stepRateLimitModel() {} -func (r stepToTenantUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r stepRateLimitToStepUpdateUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToTenantUpdateUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r stepRateLimitToStepUpdateUnique) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToTenantFindUnique) Delete() stepToTenantDeleteUnique { - var v stepToTenantDeleteUnique +func (r stepRateLimitToStepFindUnique) Delete() stepRateLimitToStepDeleteUnique { + var v stepRateLimitToStepDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Step" + v.query.Model = "StepRateLimit" return v } -type stepToTenantDeleteUnique struct { +type stepRateLimitToStepDeleteUnique struct { query builder.Query } -func (r stepToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToStepDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepToTenantDeleteUnique) stepModel() {} +func (p stepRateLimitToStepDeleteUnique) stepRateLimitModel() {} -func (r stepToTenantDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r stepRateLimitToStepDeleteUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToTenantDeleteUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r stepRateLimitToStepDeleteUnique) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToTenantFindFirst struct { +type stepRateLimitToStepFindFirst struct { query builder.Query } -func (r stepToTenantFindFirst) getQuery() builder.Query { +func (r stepRateLimitToStepFindFirst) getQuery() builder.Query { return r.query } -func (r stepToTenantFindFirst) ExtractQuery() builder.Query { +func (r stepRateLimitToStepFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepToTenantFindFirst) with() {} -func (r stepToTenantFindFirst) stepModel() {} -func (r stepToTenantFindFirst) stepRelation() {} +func (r stepRateLimitToStepFindFirst) with() {} +func (r stepRateLimitToStepFindFirst) stepRateLimitModel() {} +func (r stepRateLimitToStepFindFirst) stepRateLimitRelation() {} -func (r stepToTenantFindFirst) With(params ...TenantRelationWith) stepToTenantFindFirst { +func (r stepRateLimitToStepFindFirst) With(params ...StepRelationWith) stepRateLimitToStepFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -301881,7 +326692,7 @@ func (r stepToTenantFindFirst) With(params ...TenantRelationWith) stepToTenantFi return r } -func (r stepToTenantFindFirst) Select(params ...stepPrismaFields) stepToTenantFindFirst { +func (r stepRateLimitToStepFindFirst) Select(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindFirst { var outputs []builder.Output for _, param := range params { @@ -301895,7 +326706,7 @@ func (r stepToTenantFindFirst) Select(params ...stepPrismaFields) stepToTenantFi return r } -func (r stepToTenantFindFirst) Omit(params ...stepPrismaFields) stepToTenantFindFirst { +func (r stepRateLimitToStepFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindFirst { var outputs []builder.Output var raw []string @@ -301903,7 +326714,7 @@ func (r stepToTenantFindFirst) Omit(params ...stepPrismaFields) stepToTenantFind raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -301914,7 +326725,7 @@ func (r stepToTenantFindFirst) Omit(params ...stepPrismaFields) stepToTenantFind return r } -func (r stepToTenantFindFirst) OrderBy(params ...TenantOrderByParam) stepToTenantFindFirst { +func (r stepRateLimitToStepFindFirst) OrderBy(params ...StepOrderByParam) stepRateLimitToStepFindFirst { var fields []builder.Field for _, param := range params { @@ -301934,7 +326745,7 @@ func (r stepToTenantFindFirst) OrderBy(params ...TenantOrderByParam) stepToTenan return r } -func (r stepToTenantFindFirst) Skip(count int) stepToTenantFindFirst { +func (r stepRateLimitToStepFindFirst) Skip(count int) stepRateLimitToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -301942,7 +326753,7 @@ func (r stepToTenantFindFirst) Skip(count int) stepToTenantFindFirst { return r } -func (r stepToTenantFindFirst) Take(count int) stepToTenantFindFirst { +func (r stepRateLimitToStepFindFirst) Take(count int) stepRateLimitToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -301950,7 +326761,7 @@ func (r stepToTenantFindFirst) Take(count int) stepToTenantFindFirst { return r } -func (r stepToTenantFindFirst) Cursor(cursor StepCursorParam) stepToTenantFindFirst { +func (r stepRateLimitToStepFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -301958,11 +326769,11 @@ func (r stepToTenantFindFirst) Cursor(cursor StepCursorParam) stepToTenantFindFi return r } -func (r stepToTenantFindFirst) Exec(ctx context.Context) ( - *StepModel, +func (r stepRateLimitToStepFindFirst) Exec(ctx context.Context) ( + *StepRateLimitModel, error, ) { - var v *StepModel + var v *StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301974,11 +326785,11 @@ func (r stepToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerStep, +func (r stepRateLimitToStepFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRateLimit, error, ) { - var v *InnerStep + var v *InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -301990,23 +326801,23 @@ func (r stepToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepToTenantFindMany struct { +type stepRateLimitToStepFindMany struct { query builder.Query } -func (r stepToTenantFindMany) getQuery() builder.Query { +func (r stepRateLimitToStepFindMany) getQuery() builder.Query { return r.query } -func (r stepToTenantFindMany) ExtractQuery() builder.Query { +func (r stepRateLimitToStepFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepToTenantFindMany) with() {} -func (r stepToTenantFindMany) stepModel() {} -func (r stepToTenantFindMany) stepRelation() {} +func (r stepRateLimitToStepFindMany) with() {} +func (r stepRateLimitToStepFindMany) stepRateLimitModel() {} +func (r stepRateLimitToStepFindMany) stepRateLimitRelation() {} -func (r stepToTenantFindMany) With(params ...TenantRelationWith) stepToTenantFindMany { +func (r stepRateLimitToStepFindMany) With(params ...StepRelationWith) stepRateLimitToStepFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -302019,7 +326830,7 @@ func (r stepToTenantFindMany) With(params ...TenantRelationWith) stepToTenantFin return r } -func (r stepToTenantFindMany) Select(params ...stepPrismaFields) stepToTenantFindMany { +func (r stepRateLimitToStepFindMany) Select(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindMany { var outputs []builder.Output for _, param := range params { @@ -302033,7 +326844,7 @@ func (r stepToTenantFindMany) Select(params ...stepPrismaFields) stepToTenantFin return r } -func (r stepToTenantFindMany) Omit(params ...stepPrismaFields) stepToTenantFindMany { +func (r stepRateLimitToStepFindMany) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindMany { var outputs []builder.Output var raw []string @@ -302041,7 +326852,7 @@ func (r stepToTenantFindMany) Omit(params ...stepPrismaFields) stepToTenantFindM raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -302052,7 +326863,7 @@ func (r stepToTenantFindMany) Omit(params ...stepPrismaFields) stepToTenantFindM return r } -func (r stepToTenantFindMany) OrderBy(params ...TenantOrderByParam) stepToTenantFindMany { +func (r stepRateLimitToStepFindMany) OrderBy(params ...StepOrderByParam) stepRateLimitToStepFindMany { var fields []builder.Field for _, param := range params { @@ -302072,7 +326883,7 @@ func (r stepToTenantFindMany) OrderBy(params ...TenantOrderByParam) stepToTenant return r } -func (r stepToTenantFindMany) Skip(count int) stepToTenantFindMany { +func (r stepRateLimitToStepFindMany) Skip(count int) stepRateLimitToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -302080,7 +326891,7 @@ func (r stepToTenantFindMany) Skip(count int) stepToTenantFindMany { return r } -func (r stepToTenantFindMany) Take(count int) stepToTenantFindMany { +func (r stepRateLimitToStepFindMany) Take(count int) stepRateLimitToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -302088,7 +326899,7 @@ func (r stepToTenantFindMany) Take(count int) stepToTenantFindMany { return r } -func (r stepToTenantFindMany) Cursor(cursor StepCursorParam) stepToTenantFindMany { +func (r stepRateLimitToStepFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -302096,11 +326907,11 @@ func (r stepToTenantFindMany) Cursor(cursor StepCursorParam) stepToTenantFindMan return r } -func (r stepToTenantFindMany) Exec(ctx context.Context) ( - []StepModel, +func (r stepRateLimitToStepFindMany) Exec(ctx context.Context) ( + []StepRateLimitModel, error, ) { - var v []StepModel + var v []StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302108,11 +326919,11 @@ func (r stepToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerStep, +func (r stepRateLimitToStepFindMany) ExecInner(ctx context.Context) ( + []InnerStepRateLimit, error, ) { - var v []InnerStep + var v []InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302120,14 +326931,14 @@ func (r stepToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToTenantFindMany) Update(params ...StepSetParam) stepToTenantUpdateMany { +func (r stepRateLimitToStepFindMany) Update(params ...StepRateLimitSetParam) stepRateLimitToStepUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Step" + r.query.Model = "StepRateLimit" r.query.Outputs = countOutput - var v stepToTenantUpdateMany + var v stepRateLimitToStepUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -302156,17 +326967,17 @@ func (r stepToTenantFindMany) Update(params ...StepSetParam) stepToTenantUpdateM return v } -type stepToTenantUpdateMany struct { +type stepRateLimitToStepUpdateMany struct { query builder.Query } -func (r stepToTenantUpdateMany) ExtractQuery() builder.Query { +func (r stepRateLimitToStepUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepToTenantUpdateMany) stepModel() {} +func (r stepRateLimitToStepUpdateMany) stepRateLimitModel() {} -func (r stepToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRateLimitToStepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -302174,36 +326985,36 @@ func (r stepToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepToTenantUpdateMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r stepRateLimitToStepUpdateMany) Tx() StepRateLimitManyTxResult { + v := newStepRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToTenantFindMany) Delete() stepToTenantDeleteMany { - var v stepToTenantDeleteMany +func (r stepRateLimitToStepFindMany) Delete() stepRateLimitToStepDeleteMany { + var v stepRateLimitToStepDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Step" + v.query.Model = "StepRateLimit" v.query.Outputs = countOutput return v } -type stepToTenantDeleteMany struct { +type stepRateLimitToStepDeleteMany struct { query builder.Query } -func (r stepToTenantDeleteMany) ExtractQuery() builder.Query { +func (r stepRateLimitToStepDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepToTenantDeleteMany) stepModel() {} +func (p stepRateLimitToStepDeleteMany) stepRateLimitModel() {} -func (r stepToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRateLimitToStepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -302211,30 +327022,30 @@ func (r stepToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepToTenantDeleteMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r stepRateLimitToStepDeleteMany) Tx() StepRateLimitManyTxResult { + v := newStepRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToJobFindUnique struct { +type stepRateLimitToRateLimitFindUnique struct { query builder.Query } -func (r stepToJobFindUnique) getQuery() builder.Query { +func (r stepRateLimitToRateLimitFindUnique) getQuery() builder.Query { return r.query } -func (r stepToJobFindUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToRateLimitFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToJobFindUnique) with() {} -func (r stepToJobFindUnique) stepModel() {} -func (r stepToJobFindUnique) stepRelation() {} +func (r stepRateLimitToRateLimitFindUnique) with() {} +func (r stepRateLimitToRateLimitFindUnique) stepRateLimitModel() {} +func (r stepRateLimitToRateLimitFindUnique) stepRateLimitRelation() {} -func (r stepToJobFindUnique) With(params ...JobRelationWith) stepToJobFindUnique { +func (r stepRateLimitToRateLimitFindUnique) With(params ...RateLimitRelationWith) stepRateLimitToRateLimitFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -302247,7 +327058,7 @@ func (r stepToJobFindUnique) With(params ...JobRelationWith) stepToJobFindUnique return r } -func (r stepToJobFindUnique) Select(params ...stepPrismaFields) stepToJobFindUnique { +func (r stepRateLimitToRateLimitFindUnique) Select(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindUnique { var outputs []builder.Output for _, param := range params { @@ -302261,7 +327072,7 @@ func (r stepToJobFindUnique) Select(params ...stepPrismaFields) stepToJobFindUni return r } -func (r stepToJobFindUnique) Omit(params ...stepPrismaFields) stepToJobFindUnique { +func (r stepRateLimitToRateLimitFindUnique) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindUnique { var outputs []builder.Output var raw []string @@ -302269,7 +327080,7 @@ func (r stepToJobFindUnique) Omit(params ...stepPrismaFields) stepToJobFindUniqu raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -302280,11 +327091,11 @@ func (r stepToJobFindUnique) Omit(params ...stepPrismaFields) stepToJobFindUniqu return r } -func (r stepToJobFindUnique) Exec(ctx context.Context) ( - *StepModel, +func (r stepRateLimitToRateLimitFindUnique) Exec(ctx context.Context) ( + *StepRateLimitModel, error, ) { - var v *StepModel + var v *StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302296,11 +327107,11 @@ func (r stepToJobFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepToJobFindUnique) ExecInner(ctx context.Context) ( - *InnerStep, +func (r stepRateLimitToRateLimitFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRateLimit, error, ) { - var v *InnerStep + var v *InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302312,12 +327123,12 @@ func (r stepToJobFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToJobFindUnique) Update(params ...StepSetParam) stepToJobUpdateUnique { +func (r stepRateLimitToRateLimitFindUnique) Update(params ...StepRateLimitSetParam) stepRateLimitToRateLimitUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Step" + r.query.Model = "StepRateLimit" - var v stepToJobUpdateUnique + var v stepRateLimitToRateLimitUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -302346,83 +327157,83 @@ func (r stepToJobFindUnique) Update(params ...StepSetParam) stepToJobUpdateUniqu return v } -type stepToJobUpdateUnique struct { +type stepRateLimitToRateLimitUpdateUnique struct { query builder.Query } -func (r stepToJobUpdateUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToRateLimitUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToJobUpdateUnique) stepModel() {} +func (r stepRateLimitToRateLimitUpdateUnique) stepRateLimitModel() {} -func (r stepToJobUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r stepRateLimitToRateLimitUpdateUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToJobUpdateUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r stepRateLimitToRateLimitUpdateUnique) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToJobFindUnique) Delete() stepToJobDeleteUnique { - var v stepToJobDeleteUnique +func (r stepRateLimitToRateLimitFindUnique) Delete() stepRateLimitToRateLimitDeleteUnique { + var v stepRateLimitToRateLimitDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Step" + v.query.Model = "StepRateLimit" return v } -type stepToJobDeleteUnique struct { +type stepRateLimitToRateLimitDeleteUnique struct { query builder.Query } -func (r stepToJobDeleteUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToRateLimitDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepToJobDeleteUnique) stepModel() {} +func (p stepRateLimitToRateLimitDeleteUnique) stepRateLimitModel() {} -func (r stepToJobDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r stepRateLimitToRateLimitDeleteUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToJobDeleteUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r stepRateLimitToRateLimitDeleteUnique) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToJobFindFirst struct { +type stepRateLimitToRateLimitFindFirst struct { query builder.Query } -func (r stepToJobFindFirst) getQuery() builder.Query { +func (r stepRateLimitToRateLimitFindFirst) getQuery() builder.Query { return r.query } -func (r stepToJobFindFirst) ExtractQuery() builder.Query { +func (r stepRateLimitToRateLimitFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepToJobFindFirst) with() {} -func (r stepToJobFindFirst) stepModel() {} -func (r stepToJobFindFirst) stepRelation() {} +func (r stepRateLimitToRateLimitFindFirst) with() {} +func (r stepRateLimitToRateLimitFindFirst) stepRateLimitModel() {} +func (r stepRateLimitToRateLimitFindFirst) stepRateLimitRelation() {} -func (r stepToJobFindFirst) With(params ...JobRelationWith) stepToJobFindFirst { +func (r stepRateLimitToRateLimitFindFirst) With(params ...RateLimitRelationWith) stepRateLimitToRateLimitFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -302435,7 +327246,7 @@ func (r stepToJobFindFirst) With(params ...JobRelationWith) stepToJobFindFirst { return r } -func (r stepToJobFindFirst) Select(params ...stepPrismaFields) stepToJobFindFirst { +func (r stepRateLimitToRateLimitFindFirst) Select(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindFirst { var outputs []builder.Output for _, param := range params { @@ -302449,7 +327260,7 @@ func (r stepToJobFindFirst) Select(params ...stepPrismaFields) stepToJobFindFirs return r } -func (r stepToJobFindFirst) Omit(params ...stepPrismaFields) stepToJobFindFirst { +func (r stepRateLimitToRateLimitFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindFirst { var outputs []builder.Output var raw []string @@ -302457,7 +327268,7 @@ func (r stepToJobFindFirst) Omit(params ...stepPrismaFields) stepToJobFindFirst raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -302468,7 +327279,7 @@ func (r stepToJobFindFirst) Omit(params ...stepPrismaFields) stepToJobFindFirst return r } -func (r stepToJobFindFirst) OrderBy(params ...JobOrderByParam) stepToJobFindFirst { +func (r stepRateLimitToRateLimitFindFirst) OrderBy(params ...RateLimitOrderByParam) stepRateLimitToRateLimitFindFirst { var fields []builder.Field for _, param := range params { @@ -302488,7 +327299,7 @@ func (r stepToJobFindFirst) OrderBy(params ...JobOrderByParam) stepToJobFindFirs return r } -func (r stepToJobFindFirst) Skip(count int) stepToJobFindFirst { +func (r stepRateLimitToRateLimitFindFirst) Skip(count int) stepRateLimitToRateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -302496,7 +327307,7 @@ func (r stepToJobFindFirst) Skip(count int) stepToJobFindFirst { return r } -func (r stepToJobFindFirst) Take(count int) stepToJobFindFirst { +func (r stepRateLimitToRateLimitFindFirst) Take(count int) stepRateLimitToRateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -302504,7 +327315,7 @@ func (r stepToJobFindFirst) Take(count int) stepToJobFindFirst { return r } -func (r stepToJobFindFirst) Cursor(cursor StepCursorParam) stepToJobFindFirst { +func (r stepRateLimitToRateLimitFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToRateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -302512,11 +327323,11 @@ func (r stepToJobFindFirst) Cursor(cursor StepCursorParam) stepToJobFindFirst { return r } -func (r stepToJobFindFirst) Exec(ctx context.Context) ( - *StepModel, +func (r stepRateLimitToRateLimitFindFirst) Exec(ctx context.Context) ( + *StepRateLimitModel, error, ) { - var v *StepModel + var v *StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302528,11 +327339,11 @@ func (r stepToJobFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepToJobFindFirst) ExecInner(ctx context.Context) ( - *InnerStep, +func (r stepRateLimitToRateLimitFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRateLimit, error, ) { - var v *InnerStep + var v *InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302544,23 +327355,23 @@ func (r stepToJobFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepToJobFindMany struct { +type stepRateLimitToRateLimitFindMany struct { query builder.Query } -func (r stepToJobFindMany) getQuery() builder.Query { +func (r stepRateLimitToRateLimitFindMany) getQuery() builder.Query { return r.query } -func (r stepToJobFindMany) ExtractQuery() builder.Query { +func (r stepRateLimitToRateLimitFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepToJobFindMany) with() {} -func (r stepToJobFindMany) stepModel() {} -func (r stepToJobFindMany) stepRelation() {} +func (r stepRateLimitToRateLimitFindMany) with() {} +func (r stepRateLimitToRateLimitFindMany) stepRateLimitModel() {} +func (r stepRateLimitToRateLimitFindMany) stepRateLimitRelation() {} -func (r stepToJobFindMany) With(params ...JobRelationWith) stepToJobFindMany { +func (r stepRateLimitToRateLimitFindMany) With(params ...RateLimitRelationWith) stepRateLimitToRateLimitFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -302573,7 +327384,7 @@ func (r stepToJobFindMany) With(params ...JobRelationWith) stepToJobFindMany { return r } -func (r stepToJobFindMany) Select(params ...stepPrismaFields) stepToJobFindMany { +func (r stepRateLimitToRateLimitFindMany) Select(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindMany { var outputs []builder.Output for _, param := range params { @@ -302587,7 +327398,7 @@ func (r stepToJobFindMany) Select(params ...stepPrismaFields) stepToJobFindMany return r } -func (r stepToJobFindMany) Omit(params ...stepPrismaFields) stepToJobFindMany { +func (r stepRateLimitToRateLimitFindMany) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindMany { var outputs []builder.Output var raw []string @@ -302595,7 +327406,7 @@ func (r stepToJobFindMany) Omit(params ...stepPrismaFields) stepToJobFindMany { raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -302606,7 +327417,7 @@ func (r stepToJobFindMany) Omit(params ...stepPrismaFields) stepToJobFindMany { return r } -func (r stepToJobFindMany) OrderBy(params ...JobOrderByParam) stepToJobFindMany { +func (r stepRateLimitToRateLimitFindMany) OrderBy(params ...RateLimitOrderByParam) stepRateLimitToRateLimitFindMany { var fields []builder.Field for _, param := range params { @@ -302626,7 +327437,7 @@ func (r stepToJobFindMany) OrderBy(params ...JobOrderByParam) stepToJobFindMany return r } -func (r stepToJobFindMany) Skip(count int) stepToJobFindMany { +func (r stepRateLimitToRateLimitFindMany) Skip(count int) stepRateLimitToRateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -302634,7 +327445,7 @@ func (r stepToJobFindMany) Skip(count int) stepToJobFindMany { return r } -func (r stepToJobFindMany) Take(count int) stepToJobFindMany { +func (r stepRateLimitToRateLimitFindMany) Take(count int) stepRateLimitToRateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -302642,7 +327453,7 @@ func (r stepToJobFindMany) Take(count int) stepToJobFindMany { return r } -func (r stepToJobFindMany) Cursor(cursor StepCursorParam) stepToJobFindMany { +func (r stepRateLimitToRateLimitFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToRateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -302650,11 +327461,11 @@ func (r stepToJobFindMany) Cursor(cursor StepCursorParam) stepToJobFindMany { return r } -func (r stepToJobFindMany) Exec(ctx context.Context) ( - []StepModel, +func (r stepRateLimitToRateLimitFindMany) Exec(ctx context.Context) ( + []StepRateLimitModel, error, ) { - var v []StepModel + var v []StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302662,11 +327473,11 @@ func (r stepToJobFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepToJobFindMany) ExecInner(ctx context.Context) ( - []InnerStep, +func (r stepRateLimitToRateLimitFindMany) ExecInner(ctx context.Context) ( + []InnerStepRateLimit, error, ) { - var v []InnerStep + var v []InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302674,14 +327485,14 @@ func (r stepToJobFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToJobFindMany) Update(params ...StepSetParam) stepToJobUpdateMany { +func (r stepRateLimitToRateLimitFindMany) Update(params ...StepRateLimitSetParam) stepRateLimitToRateLimitUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Step" + r.query.Model = "StepRateLimit" r.query.Outputs = countOutput - var v stepToJobUpdateMany + var v stepRateLimitToRateLimitUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -302710,17 +327521,17 @@ func (r stepToJobFindMany) Update(params ...StepSetParam) stepToJobUpdateMany { return v } -type stepToJobUpdateMany struct { +type stepRateLimitToRateLimitUpdateMany struct { query builder.Query } -func (r stepToJobUpdateMany) ExtractQuery() builder.Query { +func (r stepRateLimitToRateLimitUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepToJobUpdateMany) stepModel() {} +func (r stepRateLimitToRateLimitUpdateMany) stepRateLimitModel() {} -func (r stepToJobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRateLimitToRateLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -302728,36 +327539,36 @@ func (r stepToJobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r stepToJobUpdateMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r stepRateLimitToRateLimitUpdateMany) Tx() StepRateLimitManyTxResult { + v := newStepRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToJobFindMany) Delete() stepToJobDeleteMany { - var v stepToJobDeleteMany +func (r stepRateLimitToRateLimitFindMany) Delete() stepRateLimitToRateLimitDeleteMany { + var v stepRateLimitToRateLimitDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Step" + v.query.Model = "StepRateLimit" v.query.Outputs = countOutput return v } -type stepToJobDeleteMany struct { +type stepRateLimitToRateLimitDeleteMany struct { query builder.Query } -func (r stepToJobDeleteMany) ExtractQuery() builder.Query { +func (r stepRateLimitToRateLimitDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepToJobDeleteMany) stepModel() {} +func (p stepRateLimitToRateLimitDeleteMany) stepRateLimitModel() {} -func (r stepToJobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRateLimitToRateLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -302765,30 +327576,30 @@ func (r stepToJobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r stepToJobDeleteMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r stepRateLimitToRateLimitDeleteMany) Tx() StepRateLimitManyTxResult { + v := newStepRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToActionFindUnique struct { +type stepRateLimitToTenantFindUnique struct { query builder.Query } -func (r stepToActionFindUnique) getQuery() builder.Query { +func (r stepRateLimitToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r stepToActionFindUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToActionFindUnique) with() {} -func (r stepToActionFindUnique) stepModel() {} -func (r stepToActionFindUnique) stepRelation() {} +func (r stepRateLimitToTenantFindUnique) with() {} +func (r stepRateLimitToTenantFindUnique) stepRateLimitModel() {} +func (r stepRateLimitToTenantFindUnique) stepRateLimitRelation() {} -func (r stepToActionFindUnique) With(params ...ActionRelationWith) stepToActionFindUnique { +func (r stepRateLimitToTenantFindUnique) With(params ...TenantRelationWith) stepRateLimitToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -302801,7 +327612,7 @@ func (r stepToActionFindUnique) With(params ...ActionRelationWith) stepToActionF return r } -func (r stepToActionFindUnique) Select(params ...stepPrismaFields) stepToActionFindUnique { +func (r stepRateLimitToTenantFindUnique) Select(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -302815,7 +327626,7 @@ func (r stepToActionFindUnique) Select(params ...stepPrismaFields) stepToActionF return r } -func (r stepToActionFindUnique) Omit(params ...stepPrismaFields) stepToActionFindUnique { +func (r stepRateLimitToTenantFindUnique) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindUnique { var outputs []builder.Output var raw []string @@ -302823,7 +327634,7 @@ func (r stepToActionFindUnique) Omit(params ...stepPrismaFields) stepToActionFin raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -302834,11 +327645,11 @@ func (r stepToActionFindUnique) Omit(params ...stepPrismaFields) stepToActionFin return r } -func (r stepToActionFindUnique) Exec(ctx context.Context) ( - *StepModel, +func (r stepRateLimitToTenantFindUnique) Exec(ctx context.Context) ( + *StepRateLimitModel, error, ) { - var v *StepModel + var v *StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302850,11 +327661,11 @@ func (r stepToActionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepToActionFindUnique) ExecInner(ctx context.Context) ( - *InnerStep, +func (r stepRateLimitToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRateLimit, error, ) { - var v *InnerStep + var v *InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -302866,12 +327677,12 @@ func (r stepToActionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToActionFindUnique) Update(params ...StepSetParam) stepToActionUpdateUnique { +func (r stepRateLimitToTenantFindUnique) Update(params ...StepRateLimitSetParam) stepRateLimitToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Step" + r.query.Model = "StepRateLimit" - var v stepToActionUpdateUnique + var v stepRateLimitToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -302900,83 +327711,83 @@ func (r stepToActionFindUnique) Update(params ...StepSetParam) stepToActionUpdat return v } -type stepToActionUpdateUnique struct { +type stepRateLimitToTenantUpdateUnique struct { query builder.Query } -func (r stepToActionUpdateUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToActionUpdateUnique) stepModel() {} +func (r stepRateLimitToTenantUpdateUnique) stepRateLimitModel() {} -func (r stepToActionUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r stepRateLimitToTenantUpdateUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToActionUpdateUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r stepRateLimitToTenantUpdateUnique) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToActionFindUnique) Delete() stepToActionDeleteUnique { - var v stepToActionDeleteUnique +func (r stepRateLimitToTenantFindUnique) Delete() stepRateLimitToTenantDeleteUnique { + var v stepRateLimitToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Step" + v.query.Model = "StepRateLimit" return v } -type stepToActionDeleteUnique struct { +type stepRateLimitToTenantDeleteUnique struct { query builder.Query } -func (r stepToActionDeleteUnique) ExtractQuery() builder.Query { +func (r stepRateLimitToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepToActionDeleteUnique) stepModel() {} +func (p stepRateLimitToTenantDeleteUnique) stepRateLimitModel() {} -func (r stepToActionDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r stepRateLimitToTenantDeleteUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToActionDeleteUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r stepRateLimitToTenantDeleteUnique) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToActionFindFirst struct { +type stepRateLimitToTenantFindFirst struct { query builder.Query } -func (r stepToActionFindFirst) getQuery() builder.Query { +func (r stepRateLimitToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r stepToActionFindFirst) ExtractQuery() builder.Query { +func (r stepRateLimitToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepToActionFindFirst) with() {} -func (r stepToActionFindFirst) stepModel() {} -func (r stepToActionFindFirst) stepRelation() {} +func (r stepRateLimitToTenantFindFirst) with() {} +func (r stepRateLimitToTenantFindFirst) stepRateLimitModel() {} +func (r stepRateLimitToTenantFindFirst) stepRateLimitRelation() {} -func (r stepToActionFindFirst) With(params ...ActionRelationWith) stepToActionFindFirst { +func (r stepRateLimitToTenantFindFirst) With(params ...TenantRelationWith) stepRateLimitToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -302989,7 +327800,7 @@ func (r stepToActionFindFirst) With(params ...ActionRelationWith) stepToActionFi return r } -func (r stepToActionFindFirst) Select(params ...stepPrismaFields) stepToActionFindFirst { +func (r stepRateLimitToTenantFindFirst) Select(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -303003,7 +327814,7 @@ func (r stepToActionFindFirst) Select(params ...stepPrismaFields) stepToActionFi return r } -func (r stepToActionFindFirst) Omit(params ...stepPrismaFields) stepToActionFindFirst { +func (r stepRateLimitToTenantFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindFirst { var outputs []builder.Output var raw []string @@ -303011,7 +327822,7 @@ func (r stepToActionFindFirst) Omit(params ...stepPrismaFields) stepToActionFind raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -303022,7 +327833,7 @@ func (r stepToActionFindFirst) Omit(params ...stepPrismaFields) stepToActionFind return r } -func (r stepToActionFindFirst) OrderBy(params ...ActionOrderByParam) stepToActionFindFirst { +func (r stepRateLimitToTenantFindFirst) OrderBy(params ...TenantOrderByParam) stepRateLimitToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -303042,7 +327853,7 @@ func (r stepToActionFindFirst) OrderBy(params ...ActionOrderByParam) stepToActio return r } -func (r stepToActionFindFirst) Skip(count int) stepToActionFindFirst { +func (r stepRateLimitToTenantFindFirst) Skip(count int) stepRateLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -303050,7 +327861,7 @@ func (r stepToActionFindFirst) Skip(count int) stepToActionFindFirst { return r } -func (r stepToActionFindFirst) Take(count int) stepToActionFindFirst { +func (r stepRateLimitToTenantFindFirst) Take(count int) stepRateLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -303058,7 +327869,7 @@ func (r stepToActionFindFirst) Take(count int) stepToActionFindFirst { return r } -func (r stepToActionFindFirst) Cursor(cursor StepCursorParam) stepToActionFindFirst { +func (r stepRateLimitToTenantFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -303066,11 +327877,11 @@ func (r stepToActionFindFirst) Cursor(cursor StepCursorParam) stepToActionFindFi return r } -func (r stepToActionFindFirst) Exec(ctx context.Context) ( - *StepModel, +func (r stepRateLimitToTenantFindFirst) Exec(ctx context.Context) ( + *StepRateLimitModel, error, ) { - var v *StepModel + var v *StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303082,11 +327893,11 @@ func (r stepToActionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepToActionFindFirst) ExecInner(ctx context.Context) ( - *InnerStep, +func (r stepRateLimitToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRateLimit, error, ) { - var v *InnerStep + var v *InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303098,23 +327909,23 @@ func (r stepToActionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepToActionFindMany struct { +type stepRateLimitToTenantFindMany struct { query builder.Query } -func (r stepToActionFindMany) getQuery() builder.Query { +func (r stepRateLimitToTenantFindMany) getQuery() builder.Query { return r.query } -func (r stepToActionFindMany) ExtractQuery() builder.Query { +func (r stepRateLimitToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepToActionFindMany) with() {} -func (r stepToActionFindMany) stepModel() {} -func (r stepToActionFindMany) stepRelation() {} +func (r stepRateLimitToTenantFindMany) with() {} +func (r stepRateLimitToTenantFindMany) stepRateLimitModel() {} +func (r stepRateLimitToTenantFindMany) stepRateLimitRelation() {} -func (r stepToActionFindMany) With(params ...ActionRelationWith) stepToActionFindMany { +func (r stepRateLimitToTenantFindMany) With(params ...TenantRelationWith) stepRateLimitToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -303127,7 +327938,7 @@ func (r stepToActionFindMany) With(params ...ActionRelationWith) stepToActionFin return r } -func (r stepToActionFindMany) Select(params ...stepPrismaFields) stepToActionFindMany { +func (r stepRateLimitToTenantFindMany) Select(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -303141,7 +327952,7 @@ func (r stepToActionFindMany) Select(params ...stepPrismaFields) stepToActionFin return r } -func (r stepToActionFindMany) Omit(params ...stepPrismaFields) stepToActionFindMany { +func (r stepRateLimitToTenantFindMany) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindMany { var outputs []builder.Output var raw []string @@ -303149,7 +327960,7 @@ func (r stepToActionFindMany) Omit(params ...stepPrismaFields) stepToActionFindM raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -303160,7 +327971,7 @@ func (r stepToActionFindMany) Omit(params ...stepPrismaFields) stepToActionFindM return r } -func (r stepToActionFindMany) OrderBy(params ...ActionOrderByParam) stepToActionFindMany { +func (r stepRateLimitToTenantFindMany) OrderBy(params ...TenantOrderByParam) stepRateLimitToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -303180,7 +327991,7 @@ func (r stepToActionFindMany) OrderBy(params ...ActionOrderByParam) stepToAction return r } -func (r stepToActionFindMany) Skip(count int) stepToActionFindMany { +func (r stepRateLimitToTenantFindMany) Skip(count int) stepRateLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -303188,7 +327999,7 @@ func (r stepToActionFindMany) Skip(count int) stepToActionFindMany { return r } -func (r stepToActionFindMany) Take(count int) stepToActionFindMany { +func (r stepRateLimitToTenantFindMany) Take(count int) stepRateLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -303196,7 +328007,7 @@ func (r stepToActionFindMany) Take(count int) stepToActionFindMany { return r } -func (r stepToActionFindMany) Cursor(cursor StepCursorParam) stepToActionFindMany { +func (r stepRateLimitToTenantFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -303204,11 +328015,11 @@ func (r stepToActionFindMany) Cursor(cursor StepCursorParam) stepToActionFindMan return r } -func (r stepToActionFindMany) Exec(ctx context.Context) ( - []StepModel, +func (r stepRateLimitToTenantFindMany) Exec(ctx context.Context) ( + []StepRateLimitModel, error, ) { - var v []StepModel + var v []StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303216,11 +328027,11 @@ func (r stepToActionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepToActionFindMany) ExecInner(ctx context.Context) ( - []InnerStep, +func (r stepRateLimitToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerStepRateLimit, error, ) { - var v []InnerStep + var v []InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303228,14 +328039,14 @@ func (r stepToActionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToActionFindMany) Update(params ...StepSetParam) stepToActionUpdateMany { +func (r stepRateLimitToTenantFindMany) Update(params ...StepRateLimitSetParam) stepRateLimitToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Step" + r.query.Model = "StepRateLimit" r.query.Outputs = countOutput - var v stepToActionUpdateMany + var v stepRateLimitToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -303264,17 +328075,17 @@ func (r stepToActionFindMany) Update(params ...StepSetParam) stepToActionUpdateM return v } -type stepToActionUpdateMany struct { +type stepRateLimitToTenantUpdateMany struct { query builder.Query } -func (r stepToActionUpdateMany) ExtractQuery() builder.Query { +func (r stepRateLimitToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepToActionUpdateMany) stepModel() {} +func (r stepRateLimitToTenantUpdateMany) stepRateLimitModel() {} -func (r stepToActionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRateLimitToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -303282,36 +328093,36 @@ func (r stepToActionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepToActionUpdateMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r stepRateLimitToTenantUpdateMany) Tx() StepRateLimitManyTxResult { + v := newStepRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToActionFindMany) Delete() stepToActionDeleteMany { - var v stepToActionDeleteMany +func (r stepRateLimitToTenantFindMany) Delete() stepRateLimitToTenantDeleteMany { + var v stepRateLimitToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Step" + v.query.Model = "StepRateLimit" v.query.Outputs = countOutput return v } -type stepToActionDeleteMany struct { +type stepRateLimitToTenantDeleteMany struct { query builder.Query } -func (r stepToActionDeleteMany) ExtractQuery() builder.Query { +func (r stepRateLimitToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepToActionDeleteMany) stepModel() {} +func (p stepRateLimitToTenantDeleteMany) stepRateLimitModel() {} -func (r stepToActionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRateLimitToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -303319,30 +328130,52 @@ func (r stepToActionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepToActionDeleteMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r stepRateLimitToTenantDeleteMany) Tx() StepRateLimitManyTxResult { + v := newStepRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToChildrenFindUnique struct { +type stepRateLimitFindUnique struct { query builder.Query } -func (r stepToChildrenFindUnique) getQuery() builder.Query { +func (r stepRateLimitFindUnique) getQuery() builder.Query { return r.query } -func (r stepToChildrenFindUnique) ExtractQuery() builder.Query { +func (r stepRateLimitFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToChildrenFindUnique) with() {} -func (r stepToChildrenFindUnique) stepModel() {} -func (r stepToChildrenFindUnique) stepRelation() {} +func (r stepRateLimitFindUnique) with() {} +func (r stepRateLimitFindUnique) stepRateLimitModel() {} +func (r stepRateLimitFindUnique) stepRateLimitRelation() {} -func (r stepToChildrenFindUnique) With(params ...StepRelationWith) stepToChildrenFindUnique { +func (r stepRateLimitActions) FindUnique( + params StepRateLimitEqualsUniqueWhereParam, +) stepRateLimitFindUnique { + var v stepRateLimitFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "StepRateLimit" + v.query.Outputs = stepRateLimitOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r stepRateLimitFindUnique) With(params ...StepRateLimitRelationWith) stepRateLimitFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -303355,7 +328188,7 @@ func (r stepToChildrenFindUnique) With(params ...StepRelationWith) stepToChildre return r } -func (r stepToChildrenFindUnique) Select(params ...stepPrismaFields) stepToChildrenFindUnique { +func (r stepRateLimitFindUnique) Select(params ...stepRateLimitPrismaFields) stepRateLimitFindUnique { var outputs []builder.Output for _, param := range params { @@ -303369,7 +328202,7 @@ func (r stepToChildrenFindUnique) Select(params ...stepPrismaFields) stepToChild return r } -func (r stepToChildrenFindUnique) Omit(params ...stepPrismaFields) stepToChildrenFindUnique { +func (r stepRateLimitFindUnique) Omit(params ...stepRateLimitPrismaFields) stepRateLimitFindUnique { var outputs []builder.Output var raw []string @@ -303377,7 +328210,7 @@ func (r stepToChildrenFindUnique) Omit(params ...stepPrismaFields) stepToChildre raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -303388,11 +328221,11 @@ func (r stepToChildrenFindUnique) Omit(params ...stepPrismaFields) stepToChildre return r } -func (r stepToChildrenFindUnique) Exec(ctx context.Context) ( - *StepModel, +func (r stepRateLimitFindUnique) Exec(ctx context.Context) ( + *StepRateLimitModel, error, ) { - var v *StepModel + var v *StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303404,11 +328237,11 @@ func (r stepToChildrenFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepToChildrenFindUnique) ExecInner(ctx context.Context) ( - *InnerStep, +func (r stepRateLimitFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRateLimit, error, ) { - var v *InnerStep + var v *InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303420,12 +328253,12 @@ func (r stepToChildrenFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToChildrenFindUnique) Update(params ...StepSetParam) stepToChildrenUpdateUnique { +func (r stepRateLimitFindUnique) Update(params ...StepRateLimitSetParam) stepRateLimitUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Step" + r.query.Model = "StepRateLimit" - var v stepToChildrenUpdateUnique + var v stepRateLimitUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -303454,83 +328287,120 @@ func (r stepToChildrenFindUnique) Update(params ...StepSetParam) stepToChildrenU return v } -type stepToChildrenUpdateUnique struct { +type stepRateLimitUpdateUnique struct { query builder.Query } -func (r stepToChildrenUpdateUnique) ExtractQuery() builder.Query { +func (r stepRateLimitUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToChildrenUpdateUnique) stepModel() {} +func (r stepRateLimitUpdateUnique) stepRateLimitModel() {} -func (r stepToChildrenUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r stepRateLimitUpdateUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToChildrenUpdateUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r stepRateLimitUpdateUnique) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToChildrenFindUnique) Delete() stepToChildrenDeleteUnique { - var v stepToChildrenDeleteUnique +func (r stepRateLimitFindUnique) Delete() stepRateLimitDeleteUnique { + var v stepRateLimitDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Step" + v.query.Model = "StepRateLimit" return v } -type stepToChildrenDeleteUnique struct { +type stepRateLimitDeleteUnique struct { query builder.Query } -func (r stepToChildrenDeleteUnique) ExtractQuery() builder.Query { +func (r stepRateLimitDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepToChildrenDeleteUnique) stepModel() {} +func (p stepRateLimitDeleteUnique) stepRateLimitModel() {} -func (r stepToChildrenDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r stepRateLimitDeleteUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { + var v StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToChildrenDeleteUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r stepRateLimitDeleteUnique) Tx() StepRateLimitUniqueTxResult { + v := newStepRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToChildrenFindFirst struct { +type stepRateLimitFindFirst struct { query builder.Query } -func (r stepToChildrenFindFirst) getQuery() builder.Query { +func (r stepRateLimitFindFirst) getQuery() builder.Query { return r.query } -func (r stepToChildrenFindFirst) ExtractQuery() builder.Query { +func (r stepRateLimitFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepToChildrenFindFirst) with() {} -func (r stepToChildrenFindFirst) stepModel() {} -func (r stepToChildrenFindFirst) stepRelation() {} +func (r stepRateLimitFindFirst) with() {} +func (r stepRateLimitFindFirst) stepRateLimitModel() {} +func (r stepRateLimitFindFirst) stepRateLimitRelation() {} -func (r stepToChildrenFindFirst) With(params ...StepRelationWith) stepToChildrenFindFirst { +func (r stepRateLimitActions) FindFirst( + params ...StepRateLimitWhereParam, +) stepRateLimitFindFirst { + var v stepRateLimitFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "StepRateLimit" + v.query.Outputs = stepRateLimitOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRateLimitFindFirst) With(params ...StepRateLimitRelationWith) stepRateLimitFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -303543,7 +328413,7 @@ func (r stepToChildrenFindFirst) With(params ...StepRelationWith) stepToChildren return r } -func (r stepToChildrenFindFirst) Select(params ...stepPrismaFields) stepToChildrenFindFirst { +func (r stepRateLimitFindFirst) Select(params ...stepRateLimitPrismaFields) stepRateLimitFindFirst { var outputs []builder.Output for _, param := range params { @@ -303557,7 +328427,7 @@ func (r stepToChildrenFindFirst) Select(params ...stepPrismaFields) stepToChildr return r } -func (r stepToChildrenFindFirst) Omit(params ...stepPrismaFields) stepToChildrenFindFirst { +func (r stepRateLimitFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRateLimitFindFirst { var outputs []builder.Output var raw []string @@ -303565,7 +328435,7 @@ func (r stepToChildrenFindFirst) Omit(params ...stepPrismaFields) stepToChildren raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -303576,7 +328446,7 @@ func (r stepToChildrenFindFirst) Omit(params ...stepPrismaFields) stepToChildren return r } -func (r stepToChildrenFindFirst) OrderBy(params ...StepOrderByParam) stepToChildrenFindFirst { +func (r stepRateLimitFindFirst) OrderBy(params ...StepRateLimitOrderByParam) stepRateLimitFindFirst { var fields []builder.Field for _, param := range params { @@ -303596,7 +328466,7 @@ func (r stepToChildrenFindFirst) OrderBy(params ...StepOrderByParam) stepToChild return r } -func (r stepToChildrenFindFirst) Skip(count int) stepToChildrenFindFirst { +func (r stepRateLimitFindFirst) Skip(count int) stepRateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -303604,7 +328474,7 @@ func (r stepToChildrenFindFirst) Skip(count int) stepToChildrenFindFirst { return r } -func (r stepToChildrenFindFirst) Take(count int) stepToChildrenFindFirst { +func (r stepRateLimitFindFirst) Take(count int) stepRateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -303612,7 +328482,7 @@ func (r stepToChildrenFindFirst) Take(count int) stepToChildrenFindFirst { return r } -func (r stepToChildrenFindFirst) Cursor(cursor StepCursorParam) stepToChildrenFindFirst { +func (r stepRateLimitFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -303620,11 +328490,11 @@ func (r stepToChildrenFindFirst) Cursor(cursor StepCursorParam) stepToChildrenFi return r } -func (r stepToChildrenFindFirst) Exec(ctx context.Context) ( - *StepModel, +func (r stepRateLimitFindFirst) Exec(ctx context.Context) ( + *StepRateLimitModel, error, ) { - var v *StepModel + var v *StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303636,11 +328506,11 @@ func (r stepToChildrenFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepToChildrenFindFirst) ExecInner(ctx context.Context) ( - *InnerStep, +func (r stepRateLimitFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRateLimit, error, ) { - var v *InnerStep + var v *InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303652,23 +328522,60 @@ func (r stepToChildrenFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepToChildrenFindMany struct { +type stepRateLimitFindMany struct { query builder.Query } -func (r stepToChildrenFindMany) getQuery() builder.Query { +func (r stepRateLimitFindMany) getQuery() builder.Query { return r.query } -func (r stepToChildrenFindMany) ExtractQuery() builder.Query { +func (r stepRateLimitFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepToChildrenFindMany) with() {} -func (r stepToChildrenFindMany) stepModel() {} -func (r stepToChildrenFindMany) stepRelation() {} +func (r stepRateLimitFindMany) with() {} +func (r stepRateLimitFindMany) stepRateLimitModel() {} +func (r stepRateLimitFindMany) stepRateLimitRelation() {} -func (r stepToChildrenFindMany) With(params ...StepRelationWith) stepToChildrenFindMany { +func (r stepRateLimitActions) FindMany( + params ...StepRateLimitWhereParam, +) stepRateLimitFindMany { + var v stepRateLimitFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "StepRateLimit" + v.query.Outputs = stepRateLimitOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRateLimitFindMany) With(params ...StepRateLimitRelationWith) stepRateLimitFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -303681,7 +328588,7 @@ func (r stepToChildrenFindMany) With(params ...StepRelationWith) stepToChildrenF return r } -func (r stepToChildrenFindMany) Select(params ...stepPrismaFields) stepToChildrenFindMany { +func (r stepRateLimitFindMany) Select(params ...stepRateLimitPrismaFields) stepRateLimitFindMany { var outputs []builder.Output for _, param := range params { @@ -303695,7 +328602,7 @@ func (r stepToChildrenFindMany) Select(params ...stepPrismaFields) stepToChildre return r } -func (r stepToChildrenFindMany) Omit(params ...stepPrismaFields) stepToChildrenFindMany { +func (r stepRateLimitFindMany) Omit(params ...stepRateLimitPrismaFields) stepRateLimitFindMany { var outputs []builder.Output var raw []string @@ -303703,7 +328610,7 @@ func (r stepToChildrenFindMany) Omit(params ...stepPrismaFields) stepToChildrenF raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range stepRateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -303714,7 +328621,7 @@ func (r stepToChildrenFindMany) Omit(params ...stepPrismaFields) stepToChildrenF return r } -func (r stepToChildrenFindMany) OrderBy(params ...StepOrderByParam) stepToChildrenFindMany { +func (r stepRateLimitFindMany) OrderBy(params ...StepRateLimitOrderByParam) stepRateLimitFindMany { var fields []builder.Field for _, param := range params { @@ -303734,7 +328641,7 @@ func (r stepToChildrenFindMany) OrderBy(params ...StepOrderByParam) stepToChildr return r } -func (r stepToChildrenFindMany) Skip(count int) stepToChildrenFindMany { +func (r stepRateLimitFindMany) Skip(count int) stepRateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -303742,7 +328649,7 @@ func (r stepToChildrenFindMany) Skip(count int) stepToChildrenFindMany { return r } -func (r stepToChildrenFindMany) Take(count int) stepToChildrenFindMany { +func (r stepRateLimitFindMany) Take(count int) stepRateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -303750,7 +328657,7 @@ func (r stepToChildrenFindMany) Take(count int) stepToChildrenFindMany { return r } -func (r stepToChildrenFindMany) Cursor(cursor StepCursorParam) stepToChildrenFindMany { +func (r stepRateLimitFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -303758,11 +328665,11 @@ func (r stepToChildrenFindMany) Cursor(cursor StepCursorParam) stepToChildrenFin return r } -func (r stepToChildrenFindMany) Exec(ctx context.Context) ( - []StepModel, +func (r stepRateLimitFindMany) Exec(ctx context.Context) ( + []StepRateLimitModel, error, ) { - var v []StepModel + var v []StepRateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303770,11 +328677,11 @@ func (r stepToChildrenFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepToChildrenFindMany) ExecInner(ctx context.Context) ( - []InnerStep, +func (r stepRateLimitFindMany) ExecInner(ctx context.Context) ( + []InnerStepRateLimit, error, ) { - var v []InnerStep + var v []InnerStepRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303782,14 +328689,14 @@ func (r stepToChildrenFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToChildrenFindMany) Update(params ...StepSetParam) stepToChildrenUpdateMany { +func (r stepRateLimitFindMany) Update(params ...StepRateLimitSetParam) stepRateLimitUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Step" + r.query.Model = "StepRateLimit" r.query.Outputs = countOutput - var v stepToChildrenUpdateMany + var v stepRateLimitUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -303818,17 +328725,17 @@ func (r stepToChildrenFindMany) Update(params ...StepSetParam) stepToChildrenUpd return v } -type stepToChildrenUpdateMany struct { +type stepRateLimitUpdateMany struct { query builder.Query } -func (r stepToChildrenUpdateMany) ExtractQuery() builder.Query { +func (r stepRateLimitUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepToChildrenUpdateMany) stepModel() {} +func (r stepRateLimitUpdateMany) stepRateLimitModel() {} -func (r stepToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRateLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -303836,36 +328743,36 @@ func (r stepToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r stepToChildrenUpdateMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r stepRateLimitUpdateMany) Tx() StepRateLimitManyTxResult { + v := newStepRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToChildrenFindMany) Delete() stepToChildrenDeleteMany { - var v stepToChildrenDeleteMany +func (r stepRateLimitFindMany) Delete() stepRateLimitDeleteMany { + var v stepRateLimitDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Step" + v.query.Model = "StepRateLimit" v.query.Outputs = countOutput return v } -type stepToChildrenDeleteMany struct { +type stepRateLimitDeleteMany struct { query builder.Query } -func (r stepToChildrenDeleteMany) ExtractQuery() builder.Query { +func (r stepRateLimitDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepToChildrenDeleteMany) stepModel() {} +func (p stepRateLimitDeleteMany) stepRateLimitModel() {} -func (r stepToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRateLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -303873,30 +328780,30 @@ func (r stepToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r stepToChildrenDeleteMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r stepRateLimitDeleteMany) Tx() StepRateLimitManyTxResult { + v := newStepRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToParentsFindUnique struct { +type rateLimitToTenantFindUnique struct { query builder.Query } -func (r stepToParentsFindUnique) getQuery() builder.Query { +func (r rateLimitToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r stepToParentsFindUnique) ExtractQuery() builder.Query { +func (r rateLimitToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToParentsFindUnique) with() {} -func (r stepToParentsFindUnique) stepModel() {} -func (r stepToParentsFindUnique) stepRelation() {} +func (r rateLimitToTenantFindUnique) with() {} +func (r rateLimitToTenantFindUnique) rateLimitModel() {} +func (r rateLimitToTenantFindUnique) rateLimitRelation() {} -func (r stepToParentsFindUnique) With(params ...StepRelationWith) stepToParentsFindUnique { +func (r rateLimitToTenantFindUnique) With(params ...TenantRelationWith) rateLimitToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -303909,7 +328816,7 @@ func (r stepToParentsFindUnique) With(params ...StepRelationWith) stepToParentsF return r } -func (r stepToParentsFindUnique) Select(params ...stepPrismaFields) stepToParentsFindUnique { +func (r rateLimitToTenantFindUnique) Select(params ...rateLimitPrismaFields) rateLimitToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -303923,7 +328830,7 @@ func (r stepToParentsFindUnique) Select(params ...stepPrismaFields) stepToParent return r } -func (r stepToParentsFindUnique) Omit(params ...stepPrismaFields) stepToParentsFindUnique { +func (r rateLimitToTenantFindUnique) Omit(params ...rateLimitPrismaFields) rateLimitToTenantFindUnique { var outputs []builder.Output var raw []string @@ -303931,7 +328838,7 @@ func (r stepToParentsFindUnique) Omit(params ...stepPrismaFields) stepToParentsF raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -303942,11 +328849,11 @@ func (r stepToParentsFindUnique) Omit(params ...stepPrismaFields) stepToParentsF return r } -func (r stepToParentsFindUnique) Exec(ctx context.Context) ( - *StepModel, +func (r rateLimitToTenantFindUnique) Exec(ctx context.Context) ( + *RateLimitModel, error, ) { - var v *StepModel + var v *RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303958,11 +328865,11 @@ func (r stepToParentsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepToParentsFindUnique) ExecInner(ctx context.Context) ( - *InnerStep, +func (r rateLimitToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerRateLimit, error, ) { - var v *InnerStep + var v *InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -303974,12 +328881,12 @@ func (r stepToParentsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToParentsFindUnique) Update(params ...StepSetParam) stepToParentsUpdateUnique { +func (r rateLimitToTenantFindUnique) Update(params ...RateLimitSetParam) rateLimitToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Step" + r.query.Model = "RateLimit" - var v stepToParentsUpdateUnique + var v rateLimitToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -304008,83 +328915,83 @@ func (r stepToParentsFindUnique) Update(params ...StepSetParam) stepToParentsUpd return v } -type stepToParentsUpdateUnique struct { +type rateLimitToTenantUpdateUnique struct { query builder.Query } -func (r stepToParentsUpdateUnique) ExtractQuery() builder.Query { +func (r rateLimitToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToParentsUpdateUnique) stepModel() {} +func (r rateLimitToTenantUpdateUnique) rateLimitModel() {} -func (r stepToParentsUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r rateLimitToTenantUpdateUnique) Exec(ctx context.Context) (*RateLimitModel, error) { + var v RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToParentsUpdateUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r rateLimitToTenantUpdateUnique) Tx() RateLimitUniqueTxResult { + v := newRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToParentsFindUnique) Delete() stepToParentsDeleteUnique { - var v stepToParentsDeleteUnique +func (r rateLimitToTenantFindUnique) Delete() rateLimitToTenantDeleteUnique { + var v rateLimitToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Step" + v.query.Model = "RateLimit" return v } -type stepToParentsDeleteUnique struct { +type rateLimitToTenantDeleteUnique struct { query builder.Query } -func (r stepToParentsDeleteUnique) ExtractQuery() builder.Query { +func (r rateLimitToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepToParentsDeleteUnique) stepModel() {} +func (p rateLimitToTenantDeleteUnique) rateLimitModel() {} -func (r stepToParentsDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r rateLimitToTenantDeleteUnique) Exec(ctx context.Context) (*RateLimitModel, error) { + var v RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToParentsDeleteUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r rateLimitToTenantDeleteUnique) Tx() RateLimitUniqueTxResult { + v := newRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToParentsFindFirst struct { +type rateLimitToTenantFindFirst struct { query builder.Query } -func (r stepToParentsFindFirst) getQuery() builder.Query { +func (r rateLimitToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r stepToParentsFindFirst) ExtractQuery() builder.Query { +func (r rateLimitToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepToParentsFindFirst) with() {} -func (r stepToParentsFindFirst) stepModel() {} -func (r stepToParentsFindFirst) stepRelation() {} +func (r rateLimitToTenantFindFirst) with() {} +func (r rateLimitToTenantFindFirst) rateLimitModel() {} +func (r rateLimitToTenantFindFirst) rateLimitRelation() {} -func (r stepToParentsFindFirst) With(params ...StepRelationWith) stepToParentsFindFirst { +func (r rateLimitToTenantFindFirst) With(params ...TenantRelationWith) rateLimitToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -304097,7 +329004,7 @@ func (r stepToParentsFindFirst) With(params ...StepRelationWith) stepToParentsFi return r } -func (r stepToParentsFindFirst) Select(params ...stepPrismaFields) stepToParentsFindFirst { +func (r rateLimitToTenantFindFirst) Select(params ...rateLimitPrismaFields) rateLimitToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -304111,7 +329018,7 @@ func (r stepToParentsFindFirst) Select(params ...stepPrismaFields) stepToParents return r } -func (r stepToParentsFindFirst) Omit(params ...stepPrismaFields) stepToParentsFindFirst { +func (r rateLimitToTenantFindFirst) Omit(params ...rateLimitPrismaFields) rateLimitToTenantFindFirst { var outputs []builder.Output var raw []string @@ -304119,7 +329026,7 @@ func (r stepToParentsFindFirst) Omit(params ...stepPrismaFields) stepToParentsFi raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -304130,7 +329037,7 @@ func (r stepToParentsFindFirst) Omit(params ...stepPrismaFields) stepToParentsFi return r } -func (r stepToParentsFindFirst) OrderBy(params ...StepOrderByParam) stepToParentsFindFirst { +func (r rateLimitToTenantFindFirst) OrderBy(params ...TenantOrderByParam) rateLimitToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -304150,7 +329057,7 @@ func (r stepToParentsFindFirst) OrderBy(params ...StepOrderByParam) stepToParent return r } -func (r stepToParentsFindFirst) Skip(count int) stepToParentsFindFirst { +func (r rateLimitToTenantFindFirst) Skip(count int) rateLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -304158,7 +329065,7 @@ func (r stepToParentsFindFirst) Skip(count int) stepToParentsFindFirst { return r } -func (r stepToParentsFindFirst) Take(count int) stepToParentsFindFirst { +func (r rateLimitToTenantFindFirst) Take(count int) rateLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -304166,7 +329073,7 @@ func (r stepToParentsFindFirst) Take(count int) stepToParentsFindFirst { return r } -func (r stepToParentsFindFirst) Cursor(cursor StepCursorParam) stepToParentsFindFirst { +func (r rateLimitToTenantFindFirst) Cursor(cursor RateLimitCursorParam) rateLimitToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -304174,11 +329081,11 @@ func (r stepToParentsFindFirst) Cursor(cursor StepCursorParam) stepToParentsFind return r } -func (r stepToParentsFindFirst) Exec(ctx context.Context) ( - *StepModel, +func (r rateLimitToTenantFindFirst) Exec(ctx context.Context) ( + *RateLimitModel, error, ) { - var v *StepModel + var v *RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304190,11 +329097,11 @@ func (r stepToParentsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepToParentsFindFirst) ExecInner(ctx context.Context) ( - *InnerStep, +func (r rateLimitToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerRateLimit, error, ) { - var v *InnerStep + var v *InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304206,23 +329113,23 @@ func (r stepToParentsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepToParentsFindMany struct { +type rateLimitToTenantFindMany struct { query builder.Query } -func (r stepToParentsFindMany) getQuery() builder.Query { +func (r rateLimitToTenantFindMany) getQuery() builder.Query { return r.query } -func (r stepToParentsFindMany) ExtractQuery() builder.Query { +func (r rateLimitToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepToParentsFindMany) with() {} -func (r stepToParentsFindMany) stepModel() {} -func (r stepToParentsFindMany) stepRelation() {} +func (r rateLimitToTenantFindMany) with() {} +func (r rateLimitToTenantFindMany) rateLimitModel() {} +func (r rateLimitToTenantFindMany) rateLimitRelation() {} -func (r stepToParentsFindMany) With(params ...StepRelationWith) stepToParentsFindMany { +func (r rateLimitToTenantFindMany) With(params ...TenantRelationWith) rateLimitToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -304235,7 +329142,7 @@ func (r stepToParentsFindMany) With(params ...StepRelationWith) stepToParentsFin return r } -func (r stepToParentsFindMany) Select(params ...stepPrismaFields) stepToParentsFindMany { +func (r rateLimitToTenantFindMany) Select(params ...rateLimitPrismaFields) rateLimitToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -304249,7 +329156,7 @@ func (r stepToParentsFindMany) Select(params ...stepPrismaFields) stepToParentsF return r } -func (r stepToParentsFindMany) Omit(params ...stepPrismaFields) stepToParentsFindMany { +func (r rateLimitToTenantFindMany) Omit(params ...rateLimitPrismaFields) rateLimitToTenantFindMany { var outputs []builder.Output var raw []string @@ -304257,7 +329164,7 @@ func (r stepToParentsFindMany) Omit(params ...stepPrismaFields) stepToParentsFin raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -304268,7 +329175,7 @@ func (r stepToParentsFindMany) Omit(params ...stepPrismaFields) stepToParentsFin return r } -func (r stepToParentsFindMany) OrderBy(params ...StepOrderByParam) stepToParentsFindMany { +func (r rateLimitToTenantFindMany) OrderBy(params ...TenantOrderByParam) rateLimitToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -304288,7 +329195,7 @@ func (r stepToParentsFindMany) OrderBy(params ...StepOrderByParam) stepToParents return r } -func (r stepToParentsFindMany) Skip(count int) stepToParentsFindMany { +func (r rateLimitToTenantFindMany) Skip(count int) rateLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -304296,7 +329203,7 @@ func (r stepToParentsFindMany) Skip(count int) stepToParentsFindMany { return r } -func (r stepToParentsFindMany) Take(count int) stepToParentsFindMany { +func (r rateLimitToTenantFindMany) Take(count int) rateLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -304304,7 +329211,7 @@ func (r stepToParentsFindMany) Take(count int) stepToParentsFindMany { return r } -func (r stepToParentsFindMany) Cursor(cursor StepCursorParam) stepToParentsFindMany { +func (r rateLimitToTenantFindMany) Cursor(cursor RateLimitCursorParam) rateLimitToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -304312,11 +329219,11 @@ func (r stepToParentsFindMany) Cursor(cursor StepCursorParam) stepToParentsFindM return r } -func (r stepToParentsFindMany) Exec(ctx context.Context) ( - []StepModel, +func (r rateLimitToTenantFindMany) Exec(ctx context.Context) ( + []RateLimitModel, error, ) { - var v []StepModel + var v []RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304324,11 +329231,11 @@ func (r stepToParentsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepToParentsFindMany) ExecInner(ctx context.Context) ( - []InnerStep, +func (r rateLimitToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerRateLimit, error, ) { - var v []InnerStep + var v []InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304336,14 +329243,14 @@ func (r stepToParentsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToParentsFindMany) Update(params ...StepSetParam) stepToParentsUpdateMany { +func (r rateLimitToTenantFindMany) Update(params ...RateLimitSetParam) rateLimitToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Step" + r.query.Model = "RateLimit" r.query.Outputs = countOutput - var v stepToParentsUpdateMany + var v rateLimitToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -304372,17 +329279,17 @@ func (r stepToParentsFindMany) Update(params ...StepSetParam) stepToParentsUpdat return v } -type stepToParentsUpdateMany struct { +type rateLimitToTenantUpdateMany struct { query builder.Query } -func (r stepToParentsUpdateMany) ExtractQuery() builder.Query { +func (r rateLimitToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepToParentsUpdateMany) stepModel() {} +func (r rateLimitToTenantUpdateMany) rateLimitModel() {} -func (r stepToParentsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r rateLimitToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -304390,36 +329297,36 @@ func (r stepToParentsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepToParentsUpdateMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r rateLimitToTenantUpdateMany) Tx() RateLimitManyTxResult { + v := newRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToParentsFindMany) Delete() stepToParentsDeleteMany { - var v stepToParentsDeleteMany +func (r rateLimitToTenantFindMany) Delete() rateLimitToTenantDeleteMany { + var v rateLimitToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Step" + v.query.Model = "RateLimit" v.query.Outputs = countOutput return v } -type stepToParentsDeleteMany struct { +type rateLimitToTenantDeleteMany struct { query builder.Query } -func (r stepToParentsDeleteMany) ExtractQuery() builder.Query { +func (r rateLimitToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepToParentsDeleteMany) stepModel() {} +func (p rateLimitToTenantDeleteMany) rateLimitModel() {} -func (r stepToParentsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r rateLimitToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -304427,30 +329334,30 @@ func (r stepToParentsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepToParentsDeleteMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r rateLimitToTenantDeleteMany) Tx() RateLimitManyTxResult { + v := newRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToStepRunsFindUnique struct { +type rateLimitToStepRunLimitsFindUnique struct { query builder.Query } -func (r stepToStepRunsFindUnique) getQuery() builder.Query { +func (r rateLimitToStepRunLimitsFindUnique) getQuery() builder.Query { return r.query } -func (r stepToStepRunsFindUnique) ExtractQuery() builder.Query { +func (r rateLimitToStepRunLimitsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToStepRunsFindUnique) with() {} -func (r stepToStepRunsFindUnique) stepModel() {} -func (r stepToStepRunsFindUnique) stepRelation() {} +func (r rateLimitToStepRunLimitsFindUnique) with() {} +func (r rateLimitToStepRunLimitsFindUnique) rateLimitModel() {} +func (r rateLimitToStepRunLimitsFindUnique) rateLimitRelation() {} -func (r stepToStepRunsFindUnique) With(params ...StepRunRelationWith) stepToStepRunsFindUnique { +func (r rateLimitToStepRunLimitsFindUnique) With(params ...StepRateLimitRelationWith) rateLimitToStepRunLimitsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -304463,7 +329370,7 @@ func (r stepToStepRunsFindUnique) With(params ...StepRunRelationWith) stepToStep return r } -func (r stepToStepRunsFindUnique) Select(params ...stepPrismaFields) stepToStepRunsFindUnique { +func (r rateLimitToStepRunLimitsFindUnique) Select(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindUnique { var outputs []builder.Output for _, param := range params { @@ -304477,7 +329384,7 @@ func (r stepToStepRunsFindUnique) Select(params ...stepPrismaFields) stepToStepR return r } -func (r stepToStepRunsFindUnique) Omit(params ...stepPrismaFields) stepToStepRunsFindUnique { +func (r rateLimitToStepRunLimitsFindUnique) Omit(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindUnique { var outputs []builder.Output var raw []string @@ -304485,7 +329392,7 @@ func (r stepToStepRunsFindUnique) Omit(params ...stepPrismaFields) stepToStepRun raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -304496,11 +329403,11 @@ func (r stepToStepRunsFindUnique) Omit(params ...stepPrismaFields) stepToStepRun return r } -func (r stepToStepRunsFindUnique) Exec(ctx context.Context) ( - *StepModel, +func (r rateLimitToStepRunLimitsFindUnique) Exec(ctx context.Context) ( + *RateLimitModel, error, ) { - var v *StepModel + var v *RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304512,11 +329419,11 @@ func (r stepToStepRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepToStepRunsFindUnique) ExecInner(ctx context.Context) ( - *InnerStep, +func (r rateLimitToStepRunLimitsFindUnique) ExecInner(ctx context.Context) ( + *InnerRateLimit, error, ) { - var v *InnerStep + var v *InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304528,12 +329435,12 @@ func (r stepToStepRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToStepRunsFindUnique) Update(params ...StepSetParam) stepToStepRunsUpdateUnique { +func (r rateLimitToStepRunLimitsFindUnique) Update(params ...RateLimitSetParam) rateLimitToStepRunLimitsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Step" + r.query.Model = "RateLimit" - var v stepToStepRunsUpdateUnique + var v rateLimitToStepRunLimitsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -304562,83 +329469,83 @@ func (r stepToStepRunsFindUnique) Update(params ...StepSetParam) stepToStepRunsU return v } -type stepToStepRunsUpdateUnique struct { +type rateLimitToStepRunLimitsUpdateUnique struct { query builder.Query } -func (r stepToStepRunsUpdateUnique) ExtractQuery() builder.Query { +func (r rateLimitToStepRunLimitsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToStepRunsUpdateUnique) stepModel() {} +func (r rateLimitToStepRunLimitsUpdateUnique) rateLimitModel() {} -func (r stepToStepRunsUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r rateLimitToStepRunLimitsUpdateUnique) Exec(ctx context.Context) (*RateLimitModel, error) { + var v RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToStepRunsUpdateUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r rateLimitToStepRunLimitsUpdateUnique) Tx() RateLimitUniqueTxResult { + v := newRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToStepRunsFindUnique) Delete() stepToStepRunsDeleteUnique { - var v stepToStepRunsDeleteUnique +func (r rateLimitToStepRunLimitsFindUnique) Delete() rateLimitToStepRunLimitsDeleteUnique { + var v rateLimitToStepRunLimitsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Step" + v.query.Model = "RateLimit" return v } -type stepToStepRunsDeleteUnique struct { +type rateLimitToStepRunLimitsDeleteUnique struct { query builder.Query } -func (r stepToStepRunsDeleteUnique) ExtractQuery() builder.Query { +func (r rateLimitToStepRunLimitsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepToStepRunsDeleteUnique) stepModel() {} +func (p rateLimitToStepRunLimitsDeleteUnique) rateLimitModel() {} -func (r stepToStepRunsDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r rateLimitToStepRunLimitsDeleteUnique) Exec(ctx context.Context) (*RateLimitModel, error) { + var v RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToStepRunsDeleteUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r rateLimitToStepRunLimitsDeleteUnique) Tx() RateLimitUniqueTxResult { + v := newRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToStepRunsFindFirst struct { +type rateLimitToStepRunLimitsFindFirst struct { query builder.Query } -func (r stepToStepRunsFindFirst) getQuery() builder.Query { +func (r rateLimitToStepRunLimitsFindFirst) getQuery() builder.Query { return r.query } -func (r stepToStepRunsFindFirst) ExtractQuery() builder.Query { +func (r rateLimitToStepRunLimitsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepToStepRunsFindFirst) with() {} -func (r stepToStepRunsFindFirst) stepModel() {} -func (r stepToStepRunsFindFirst) stepRelation() {} +func (r rateLimitToStepRunLimitsFindFirst) with() {} +func (r rateLimitToStepRunLimitsFindFirst) rateLimitModel() {} +func (r rateLimitToStepRunLimitsFindFirst) rateLimitRelation() {} -func (r stepToStepRunsFindFirst) With(params ...StepRunRelationWith) stepToStepRunsFindFirst { +func (r rateLimitToStepRunLimitsFindFirst) With(params ...StepRateLimitRelationWith) rateLimitToStepRunLimitsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -304651,7 +329558,7 @@ func (r stepToStepRunsFindFirst) With(params ...StepRunRelationWith) stepToStepR return r } -func (r stepToStepRunsFindFirst) Select(params ...stepPrismaFields) stepToStepRunsFindFirst { +func (r rateLimitToStepRunLimitsFindFirst) Select(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindFirst { var outputs []builder.Output for _, param := range params { @@ -304665,7 +329572,7 @@ func (r stepToStepRunsFindFirst) Select(params ...stepPrismaFields) stepToStepRu return r } -func (r stepToStepRunsFindFirst) Omit(params ...stepPrismaFields) stepToStepRunsFindFirst { +func (r rateLimitToStepRunLimitsFindFirst) Omit(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindFirst { var outputs []builder.Output var raw []string @@ -304673,7 +329580,7 @@ func (r stepToStepRunsFindFirst) Omit(params ...stepPrismaFields) stepToStepRuns raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -304684,7 +329591,7 @@ func (r stepToStepRunsFindFirst) Omit(params ...stepPrismaFields) stepToStepRuns return r } -func (r stepToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) stepToStepRunsFindFirst { +func (r rateLimitToStepRunLimitsFindFirst) OrderBy(params ...StepRateLimitOrderByParam) rateLimitToStepRunLimitsFindFirst { var fields []builder.Field for _, param := range params { @@ -304704,7 +329611,7 @@ func (r stepToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) stepToSt return r } -func (r stepToStepRunsFindFirst) Skip(count int) stepToStepRunsFindFirst { +func (r rateLimitToStepRunLimitsFindFirst) Skip(count int) rateLimitToStepRunLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -304712,7 +329619,7 @@ func (r stepToStepRunsFindFirst) Skip(count int) stepToStepRunsFindFirst { return r } -func (r stepToStepRunsFindFirst) Take(count int) stepToStepRunsFindFirst { +func (r rateLimitToStepRunLimitsFindFirst) Take(count int) rateLimitToStepRunLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -304720,7 +329627,7 @@ func (r stepToStepRunsFindFirst) Take(count int) stepToStepRunsFindFirst { return r } -func (r stepToStepRunsFindFirst) Cursor(cursor StepCursorParam) stepToStepRunsFindFirst { +func (r rateLimitToStepRunLimitsFindFirst) Cursor(cursor RateLimitCursorParam) rateLimitToStepRunLimitsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -304728,11 +329635,11 @@ func (r stepToStepRunsFindFirst) Cursor(cursor StepCursorParam) stepToStepRunsFi return r } -func (r stepToStepRunsFindFirst) Exec(ctx context.Context) ( - *StepModel, +func (r rateLimitToStepRunLimitsFindFirst) Exec(ctx context.Context) ( + *RateLimitModel, error, ) { - var v *StepModel + var v *RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304744,11 +329651,11 @@ func (r stepToStepRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepToStepRunsFindFirst) ExecInner(ctx context.Context) ( - *InnerStep, +func (r rateLimitToStepRunLimitsFindFirst) ExecInner(ctx context.Context) ( + *InnerRateLimit, error, ) { - var v *InnerStep + var v *InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304760,23 +329667,23 @@ func (r stepToStepRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepToStepRunsFindMany struct { +type rateLimitToStepRunLimitsFindMany struct { query builder.Query } -func (r stepToStepRunsFindMany) getQuery() builder.Query { +func (r rateLimitToStepRunLimitsFindMany) getQuery() builder.Query { return r.query } -func (r stepToStepRunsFindMany) ExtractQuery() builder.Query { +func (r rateLimitToStepRunLimitsFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepToStepRunsFindMany) with() {} -func (r stepToStepRunsFindMany) stepModel() {} -func (r stepToStepRunsFindMany) stepRelation() {} +func (r rateLimitToStepRunLimitsFindMany) with() {} +func (r rateLimitToStepRunLimitsFindMany) rateLimitModel() {} +func (r rateLimitToStepRunLimitsFindMany) rateLimitRelation() {} -func (r stepToStepRunsFindMany) With(params ...StepRunRelationWith) stepToStepRunsFindMany { +func (r rateLimitToStepRunLimitsFindMany) With(params ...StepRateLimitRelationWith) rateLimitToStepRunLimitsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -304789,7 +329696,7 @@ func (r stepToStepRunsFindMany) With(params ...StepRunRelationWith) stepToStepRu return r } -func (r stepToStepRunsFindMany) Select(params ...stepPrismaFields) stepToStepRunsFindMany { +func (r rateLimitToStepRunLimitsFindMany) Select(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindMany { var outputs []builder.Output for _, param := range params { @@ -304803,7 +329710,7 @@ func (r stepToStepRunsFindMany) Select(params ...stepPrismaFields) stepToStepRun return r } -func (r stepToStepRunsFindMany) Omit(params ...stepPrismaFields) stepToStepRunsFindMany { +func (r rateLimitToStepRunLimitsFindMany) Omit(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindMany { var outputs []builder.Output var raw []string @@ -304811,7 +329718,7 @@ func (r stepToStepRunsFindMany) Omit(params ...stepPrismaFields) stepToStepRunsF raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -304822,7 +329729,7 @@ func (r stepToStepRunsFindMany) Omit(params ...stepPrismaFields) stepToStepRunsF return r } -func (r stepToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) stepToStepRunsFindMany { +func (r rateLimitToStepRunLimitsFindMany) OrderBy(params ...StepRateLimitOrderByParam) rateLimitToStepRunLimitsFindMany { var fields []builder.Field for _, param := range params { @@ -304842,7 +329749,7 @@ func (r stepToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) stepToSte return r } -func (r stepToStepRunsFindMany) Skip(count int) stepToStepRunsFindMany { +func (r rateLimitToStepRunLimitsFindMany) Skip(count int) rateLimitToStepRunLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -304850,7 +329757,7 @@ func (r stepToStepRunsFindMany) Skip(count int) stepToStepRunsFindMany { return r } -func (r stepToStepRunsFindMany) Take(count int) stepToStepRunsFindMany { +func (r rateLimitToStepRunLimitsFindMany) Take(count int) rateLimitToStepRunLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -304858,7 +329765,7 @@ func (r stepToStepRunsFindMany) Take(count int) stepToStepRunsFindMany { return r } -func (r stepToStepRunsFindMany) Cursor(cursor StepCursorParam) stepToStepRunsFindMany { +func (r rateLimitToStepRunLimitsFindMany) Cursor(cursor RateLimitCursorParam) rateLimitToStepRunLimitsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -304866,11 +329773,11 @@ func (r stepToStepRunsFindMany) Cursor(cursor StepCursorParam) stepToStepRunsFin return r } -func (r stepToStepRunsFindMany) Exec(ctx context.Context) ( - []StepModel, +func (r rateLimitToStepRunLimitsFindMany) Exec(ctx context.Context) ( + []RateLimitModel, error, ) { - var v []StepModel + var v []RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304878,11 +329785,11 @@ func (r stepToStepRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepToStepRunsFindMany) ExecInner(ctx context.Context) ( - []InnerStep, +func (r rateLimitToStepRunLimitsFindMany) ExecInner(ctx context.Context) ( + []InnerRateLimit, error, ) { - var v []InnerStep + var v []InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -304890,14 +329797,14 @@ func (r stepToStepRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToStepRunsFindMany) Update(params ...StepSetParam) stepToStepRunsUpdateMany { +func (r rateLimitToStepRunLimitsFindMany) Update(params ...RateLimitSetParam) rateLimitToStepRunLimitsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Step" + r.query.Model = "RateLimit" r.query.Outputs = countOutput - var v stepToStepRunsUpdateMany + var v rateLimitToStepRunLimitsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -304926,17 +329833,17 @@ func (r stepToStepRunsFindMany) Update(params ...StepSetParam) stepToStepRunsUpd return v } -type stepToStepRunsUpdateMany struct { +type rateLimitToStepRunLimitsUpdateMany struct { query builder.Query } -func (r stepToStepRunsUpdateMany) ExtractQuery() builder.Query { +func (r rateLimitToStepRunLimitsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepToStepRunsUpdateMany) stepModel() {} +func (r rateLimitToStepRunLimitsUpdateMany) rateLimitModel() {} -func (r stepToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r rateLimitToStepRunLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -304944,36 +329851,36 @@ func (r stepToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r stepToStepRunsUpdateMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r rateLimitToStepRunLimitsUpdateMany) Tx() RateLimitManyTxResult { + v := newRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToStepRunsFindMany) Delete() stepToStepRunsDeleteMany { - var v stepToStepRunsDeleteMany +func (r rateLimitToStepRunLimitsFindMany) Delete() rateLimitToStepRunLimitsDeleteMany { + var v rateLimitToStepRunLimitsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Step" + v.query.Model = "RateLimit" v.query.Outputs = countOutput return v } -type stepToStepRunsDeleteMany struct { +type rateLimitToStepRunLimitsDeleteMany struct { query builder.Query } -func (r stepToStepRunsDeleteMany) ExtractQuery() builder.Query { +func (r rateLimitToStepRunLimitsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepToStepRunsDeleteMany) stepModel() {} +func (p rateLimitToStepRunLimitsDeleteMany) rateLimitModel() {} -func (r stepToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r rateLimitToStepRunLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -304981,30 +329888,52 @@ func (r stepToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r stepToStepRunsDeleteMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r rateLimitToStepRunLimitsDeleteMany) Tx() RateLimitManyTxResult { + v := newRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToRateLimitsFindUnique struct { +type rateLimitFindUnique struct { query builder.Query } -func (r stepToRateLimitsFindUnique) getQuery() builder.Query { +func (r rateLimitFindUnique) getQuery() builder.Query { return r.query } -func (r stepToRateLimitsFindUnique) ExtractQuery() builder.Query { +func (r rateLimitFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToRateLimitsFindUnique) with() {} -func (r stepToRateLimitsFindUnique) stepModel() {} -func (r stepToRateLimitsFindUnique) stepRelation() {} +func (r rateLimitFindUnique) with() {} +func (r rateLimitFindUnique) rateLimitModel() {} +func (r rateLimitFindUnique) rateLimitRelation() {} -func (r stepToRateLimitsFindUnique) With(params ...StepRateLimitRelationWith) stepToRateLimitsFindUnique { +func (r rateLimitActions) FindUnique( + params RateLimitEqualsUniqueWhereParam, +) rateLimitFindUnique { + var v rateLimitFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "RateLimit" + v.query.Outputs = rateLimitOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r rateLimitFindUnique) With(params ...RateLimitRelationWith) rateLimitFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -305017,7 +329946,7 @@ func (r stepToRateLimitsFindUnique) With(params ...StepRateLimitRelationWith) st return r } -func (r stepToRateLimitsFindUnique) Select(params ...stepPrismaFields) stepToRateLimitsFindUnique { +func (r rateLimitFindUnique) Select(params ...rateLimitPrismaFields) rateLimitFindUnique { var outputs []builder.Output for _, param := range params { @@ -305031,7 +329960,7 @@ func (r stepToRateLimitsFindUnique) Select(params ...stepPrismaFields) stepToRat return r } -func (r stepToRateLimitsFindUnique) Omit(params ...stepPrismaFields) stepToRateLimitsFindUnique { +func (r rateLimitFindUnique) Omit(params ...rateLimitPrismaFields) rateLimitFindUnique { var outputs []builder.Output var raw []string @@ -305039,7 +329968,7 @@ func (r stepToRateLimitsFindUnique) Omit(params ...stepPrismaFields) stepToRateL raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -305050,11 +329979,11 @@ func (r stepToRateLimitsFindUnique) Omit(params ...stepPrismaFields) stepToRateL return r } -func (r stepToRateLimitsFindUnique) Exec(ctx context.Context) ( - *StepModel, +func (r rateLimitFindUnique) Exec(ctx context.Context) ( + *RateLimitModel, error, ) { - var v *StepModel + var v *RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305066,11 +329995,11 @@ func (r stepToRateLimitsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepToRateLimitsFindUnique) ExecInner(ctx context.Context) ( - *InnerStep, +func (r rateLimitFindUnique) ExecInner(ctx context.Context) ( + *InnerRateLimit, error, ) { - var v *InnerStep + var v *InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305082,12 +330011,12 @@ func (r stepToRateLimitsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToRateLimitsFindUnique) Update(params ...StepSetParam) stepToRateLimitsUpdateUnique { +func (r rateLimitFindUnique) Update(params ...RateLimitSetParam) rateLimitUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Step" + r.query.Model = "RateLimit" - var v stepToRateLimitsUpdateUnique + var v rateLimitUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -305116,83 +330045,120 @@ func (r stepToRateLimitsFindUnique) Update(params ...StepSetParam) stepToRateLim return v } -type stepToRateLimitsUpdateUnique struct { +type rateLimitUpdateUnique struct { query builder.Query } -func (r stepToRateLimitsUpdateUnique) ExtractQuery() builder.Query { +func (r rateLimitUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepToRateLimitsUpdateUnique) stepModel() {} +func (r rateLimitUpdateUnique) rateLimitModel() {} -func (r stepToRateLimitsUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r rateLimitUpdateUnique) Exec(ctx context.Context) (*RateLimitModel, error) { + var v RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToRateLimitsUpdateUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r rateLimitUpdateUnique) Tx() RateLimitUniqueTxResult { + v := newRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToRateLimitsFindUnique) Delete() stepToRateLimitsDeleteUnique { - var v stepToRateLimitsDeleteUnique +func (r rateLimitFindUnique) Delete() rateLimitDeleteUnique { + var v rateLimitDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Step" + v.query.Model = "RateLimit" return v } -type stepToRateLimitsDeleteUnique struct { +type rateLimitDeleteUnique struct { query builder.Query } -func (r stepToRateLimitsDeleteUnique) ExtractQuery() builder.Query { +func (r rateLimitDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepToRateLimitsDeleteUnique) stepModel() {} +func (p rateLimitDeleteUnique) rateLimitModel() {} -func (r stepToRateLimitsDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r rateLimitDeleteUnique) Exec(ctx context.Context) (*RateLimitModel, error) { + var v RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepToRateLimitsDeleteUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r rateLimitDeleteUnique) Tx() RateLimitUniqueTxResult { + v := newRateLimitUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepToRateLimitsFindFirst struct { +type rateLimitFindFirst struct { query builder.Query } -func (r stepToRateLimitsFindFirst) getQuery() builder.Query { +func (r rateLimitFindFirst) getQuery() builder.Query { return r.query } -func (r stepToRateLimitsFindFirst) ExtractQuery() builder.Query { +func (r rateLimitFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepToRateLimitsFindFirst) with() {} -func (r stepToRateLimitsFindFirst) stepModel() {} -func (r stepToRateLimitsFindFirst) stepRelation() {} +func (r rateLimitFindFirst) with() {} +func (r rateLimitFindFirst) rateLimitModel() {} +func (r rateLimitFindFirst) rateLimitRelation() {} -func (r stepToRateLimitsFindFirst) With(params ...StepRateLimitRelationWith) stepToRateLimitsFindFirst { +func (r rateLimitActions) FindFirst( + params ...RateLimitWhereParam, +) rateLimitFindFirst { + var v rateLimitFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "RateLimit" + v.query.Outputs = rateLimitOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r rateLimitFindFirst) With(params ...RateLimitRelationWith) rateLimitFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -305205,7 +330171,7 @@ func (r stepToRateLimitsFindFirst) With(params ...StepRateLimitRelationWith) ste return r } -func (r stepToRateLimitsFindFirst) Select(params ...stepPrismaFields) stepToRateLimitsFindFirst { +func (r rateLimitFindFirst) Select(params ...rateLimitPrismaFields) rateLimitFindFirst { var outputs []builder.Output for _, param := range params { @@ -305219,7 +330185,7 @@ func (r stepToRateLimitsFindFirst) Select(params ...stepPrismaFields) stepToRate return r } -func (r stepToRateLimitsFindFirst) Omit(params ...stepPrismaFields) stepToRateLimitsFindFirst { +func (r rateLimitFindFirst) Omit(params ...rateLimitPrismaFields) rateLimitFindFirst { var outputs []builder.Output var raw []string @@ -305227,7 +330193,7 @@ func (r stepToRateLimitsFindFirst) Omit(params ...stepPrismaFields) stepToRateLi raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -305238,7 +330204,7 @@ func (r stepToRateLimitsFindFirst) Omit(params ...stepPrismaFields) stepToRateLi return r } -func (r stepToRateLimitsFindFirst) OrderBy(params ...StepRateLimitOrderByParam) stepToRateLimitsFindFirst { +func (r rateLimitFindFirst) OrderBy(params ...RateLimitOrderByParam) rateLimitFindFirst { var fields []builder.Field for _, param := range params { @@ -305258,7 +330224,7 @@ func (r stepToRateLimitsFindFirst) OrderBy(params ...StepRateLimitOrderByParam) return r } -func (r stepToRateLimitsFindFirst) Skip(count int) stepToRateLimitsFindFirst { +func (r rateLimitFindFirst) Skip(count int) rateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -305266,7 +330232,7 @@ func (r stepToRateLimitsFindFirst) Skip(count int) stepToRateLimitsFindFirst { return r } -func (r stepToRateLimitsFindFirst) Take(count int) stepToRateLimitsFindFirst { +func (r rateLimitFindFirst) Take(count int) rateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -305274,7 +330240,7 @@ func (r stepToRateLimitsFindFirst) Take(count int) stepToRateLimitsFindFirst { return r } -func (r stepToRateLimitsFindFirst) Cursor(cursor StepCursorParam) stepToRateLimitsFindFirst { +func (r rateLimitFindFirst) Cursor(cursor RateLimitCursorParam) rateLimitFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -305282,11 +330248,11 @@ func (r stepToRateLimitsFindFirst) Cursor(cursor StepCursorParam) stepToRateLimi return r } -func (r stepToRateLimitsFindFirst) Exec(ctx context.Context) ( - *StepModel, +func (r rateLimitFindFirst) Exec(ctx context.Context) ( + *RateLimitModel, error, ) { - var v *StepModel + var v *RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305298,11 +330264,11 @@ func (r stepToRateLimitsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepToRateLimitsFindFirst) ExecInner(ctx context.Context) ( - *InnerStep, +func (r rateLimitFindFirst) ExecInner(ctx context.Context) ( + *InnerRateLimit, error, ) { - var v *InnerStep + var v *InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305314,23 +330280,60 @@ func (r stepToRateLimitsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepToRateLimitsFindMany struct { +type rateLimitFindMany struct { query builder.Query } -func (r stepToRateLimitsFindMany) getQuery() builder.Query { +func (r rateLimitFindMany) getQuery() builder.Query { return r.query } -func (r stepToRateLimitsFindMany) ExtractQuery() builder.Query { +func (r rateLimitFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepToRateLimitsFindMany) with() {} -func (r stepToRateLimitsFindMany) stepModel() {} -func (r stepToRateLimitsFindMany) stepRelation() {} +func (r rateLimitFindMany) with() {} +func (r rateLimitFindMany) rateLimitModel() {} +func (r rateLimitFindMany) rateLimitRelation() {} -func (r stepToRateLimitsFindMany) With(params ...StepRateLimitRelationWith) stepToRateLimitsFindMany { +func (r rateLimitActions) FindMany( + params ...RateLimitWhereParam, +) rateLimitFindMany { + var v rateLimitFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "RateLimit" + v.query.Outputs = rateLimitOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r rateLimitFindMany) With(params ...RateLimitRelationWith) rateLimitFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -305343,7 +330346,7 @@ func (r stepToRateLimitsFindMany) With(params ...StepRateLimitRelationWith) step return r } -func (r stepToRateLimitsFindMany) Select(params ...stepPrismaFields) stepToRateLimitsFindMany { +func (r rateLimitFindMany) Select(params ...rateLimitPrismaFields) rateLimitFindMany { var outputs []builder.Output for _, param := range params { @@ -305357,7 +330360,7 @@ func (r stepToRateLimitsFindMany) Select(params ...stepPrismaFields) stepToRateL return r } -func (r stepToRateLimitsFindMany) Omit(params ...stepPrismaFields) stepToRateLimitsFindMany { +func (r rateLimitFindMany) Omit(params ...rateLimitPrismaFields) rateLimitFindMany { var outputs []builder.Output var raw []string @@ -305365,7 +330368,7 @@ func (r stepToRateLimitsFindMany) Omit(params ...stepPrismaFields) stepToRateLim raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range rateLimitOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -305376,7 +330379,7 @@ func (r stepToRateLimitsFindMany) Omit(params ...stepPrismaFields) stepToRateLim return r } -func (r stepToRateLimitsFindMany) OrderBy(params ...StepRateLimitOrderByParam) stepToRateLimitsFindMany { +func (r rateLimitFindMany) OrderBy(params ...RateLimitOrderByParam) rateLimitFindMany { var fields []builder.Field for _, param := range params { @@ -305396,7 +330399,7 @@ func (r stepToRateLimitsFindMany) OrderBy(params ...StepRateLimitOrderByParam) s return r } -func (r stepToRateLimitsFindMany) Skip(count int) stepToRateLimitsFindMany { +func (r rateLimitFindMany) Skip(count int) rateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -305404,7 +330407,7 @@ func (r stepToRateLimitsFindMany) Skip(count int) stepToRateLimitsFindMany { return r } -func (r stepToRateLimitsFindMany) Take(count int) stepToRateLimitsFindMany { +func (r rateLimitFindMany) Take(count int) rateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -305412,7 +330415,7 @@ func (r stepToRateLimitsFindMany) Take(count int) stepToRateLimitsFindMany { return r } -func (r stepToRateLimitsFindMany) Cursor(cursor StepCursorParam) stepToRateLimitsFindMany { +func (r rateLimitFindMany) Cursor(cursor RateLimitCursorParam) rateLimitFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -305420,11 +330423,11 @@ func (r stepToRateLimitsFindMany) Cursor(cursor StepCursorParam) stepToRateLimit return r } -func (r stepToRateLimitsFindMany) Exec(ctx context.Context) ( - []StepModel, +func (r rateLimitFindMany) Exec(ctx context.Context) ( + []RateLimitModel, error, ) { - var v []StepModel + var v []RateLimitModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305432,11 +330435,11 @@ func (r stepToRateLimitsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepToRateLimitsFindMany) ExecInner(ctx context.Context) ( - []InnerStep, +func (r rateLimitFindMany) ExecInner(ctx context.Context) ( + []InnerRateLimit, error, ) { - var v []InnerStep + var v []InnerRateLimit if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305444,14 +330447,14 @@ func (r stepToRateLimitsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepToRateLimitsFindMany) Update(params ...StepSetParam) stepToRateLimitsUpdateMany { +func (r rateLimitFindMany) Update(params ...RateLimitSetParam) rateLimitUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Step" + r.query.Model = "RateLimit" r.query.Outputs = countOutput - var v stepToRateLimitsUpdateMany + var v rateLimitUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -305480,17 +330483,17 @@ func (r stepToRateLimitsFindMany) Update(params ...StepSetParam) stepToRateLimit return v } -type stepToRateLimitsUpdateMany struct { +type rateLimitUpdateMany struct { query builder.Query } -func (r stepToRateLimitsUpdateMany) ExtractQuery() builder.Query { +func (r rateLimitUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepToRateLimitsUpdateMany) stepModel() {} +func (r rateLimitUpdateMany) rateLimitModel() {} -func (r stepToRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r rateLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -305498,36 +330501,36 @@ func (r stepToRateLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r stepToRateLimitsUpdateMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r rateLimitUpdateMany) Tx() RateLimitManyTxResult { + v := newRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepToRateLimitsFindMany) Delete() stepToRateLimitsDeleteMany { - var v stepToRateLimitsDeleteMany +func (r rateLimitFindMany) Delete() rateLimitDeleteMany { + var v rateLimitDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Step" + v.query.Model = "RateLimit" v.query.Outputs = countOutput return v } -type stepToRateLimitsDeleteMany struct { +type rateLimitDeleteMany struct { query builder.Query } -func (r stepToRateLimitsDeleteMany) ExtractQuery() builder.Query { +func (r rateLimitDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepToRateLimitsDeleteMany) stepModel() {} +func (p rateLimitDeleteMany) rateLimitModel() {} -func (r stepToRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r rateLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -305535,52 +330538,30 @@ func (r stepToRateLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r stepToRateLimitsDeleteMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r rateLimitDeleteMany) Tx() RateLimitManyTxResult { + v := newRateLimitManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepFindUnique struct { +type workflowRunStickyStateToWorkflowRunFindUnique struct { query builder.Query } -func (r stepFindUnique) getQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunFindUnique) getQuery() builder.Query { return r.query } -func (r stepFindUnique) ExtractQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepFindUnique) with() {} -func (r stepFindUnique) stepModel() {} -func (r stepFindUnique) stepRelation() {} - -func (r stepActions) FindUnique( - params StepEqualsUniqueWhereParam, -) stepFindUnique { - var v stepFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "Step" - v.query.Outputs = stepOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowRunStickyStateToWorkflowRunFindUnique) with() {} +func (r workflowRunStickyStateToWorkflowRunFindUnique) workflowRunStickyStateModel() {} +func (r workflowRunStickyStateToWorkflowRunFindUnique) workflowRunStickyStateRelation() {} -func (r stepFindUnique) With(params ...StepRelationWith) stepFindUnique { +func (r workflowRunStickyStateToWorkflowRunFindUnique) With(params ...WorkflowRunRelationWith) workflowRunStickyStateToWorkflowRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -305593,7 +330574,7 @@ func (r stepFindUnique) With(params ...StepRelationWith) stepFindUnique { return r } -func (r stepFindUnique) Select(params ...stepPrismaFields) stepFindUnique { +func (r workflowRunStickyStateToWorkflowRunFindUnique) Select(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateToWorkflowRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -305607,7 +330588,7 @@ func (r stepFindUnique) Select(params ...stepPrismaFields) stepFindUnique { return r } -func (r stepFindUnique) Omit(params ...stepPrismaFields) stepFindUnique { +func (r workflowRunStickyStateToWorkflowRunFindUnique) Omit(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateToWorkflowRunFindUnique { var outputs []builder.Output var raw []string @@ -305615,7 +330596,7 @@ func (r stepFindUnique) Omit(params ...stepPrismaFields) stepFindUnique { raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range workflowRunStickyStateOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -305626,11 +330607,11 @@ func (r stepFindUnique) Omit(params ...stepPrismaFields) stepFindUnique { return r } -func (r stepFindUnique) Exec(ctx context.Context) ( - *StepModel, +func (r workflowRunStickyStateToWorkflowRunFindUnique) Exec(ctx context.Context) ( + *WorkflowRunStickyStateModel, error, ) { - var v *StepModel + var v *WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305642,11 +330623,11 @@ func (r stepFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepFindUnique) ExecInner(ctx context.Context) ( - *InnerStep, +func (r workflowRunStickyStateToWorkflowRunFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRunStickyState, error, ) { - var v *InnerStep + var v *InnerWorkflowRunStickyState if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305658,12 +330639,12 @@ func (r stepFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepFindUnique) Update(params ...StepSetParam) stepUpdateUnique { +func (r workflowRunStickyStateToWorkflowRunFindUnique) Update(params ...WorkflowRunStickyStateSetParam) workflowRunStickyStateToWorkflowRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Step" + r.query.Model = "WorkflowRunStickyState" - var v stepUpdateUnique + var v workflowRunStickyStateToWorkflowRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -305692,120 +330673,83 @@ func (r stepFindUnique) Update(params ...StepSetParam) stepUpdateUnique { return v } -type stepUpdateUnique struct { +type workflowRunStickyStateToWorkflowRunUpdateUnique struct { query builder.Query } -func (r stepUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepUpdateUnique) stepModel() {} +func (r workflowRunStickyStateToWorkflowRunUpdateUnique) workflowRunStickyStateModel() {} -func (r stepUpdateUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r workflowRunStickyStateToWorkflowRunUpdateUnique) Exec(ctx context.Context) (*WorkflowRunStickyStateModel, error) { + var v WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepUpdateUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r workflowRunStickyStateToWorkflowRunUpdateUnique) Tx() WorkflowRunStickyStateUniqueTxResult { + v := newWorkflowRunStickyStateUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepFindUnique) Delete() stepDeleteUnique { - var v stepDeleteUnique +func (r workflowRunStickyStateToWorkflowRunFindUnique) Delete() workflowRunStickyStateToWorkflowRunDeleteUnique { + var v workflowRunStickyStateToWorkflowRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Step" + v.query.Model = "WorkflowRunStickyState" return v } -type stepDeleteUnique struct { +type workflowRunStickyStateToWorkflowRunDeleteUnique struct { query builder.Query } -func (r stepDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepDeleteUnique) stepModel() {} +func (p workflowRunStickyStateToWorkflowRunDeleteUnique) workflowRunStickyStateModel() {} -func (r stepDeleteUnique) Exec(ctx context.Context) (*StepModel, error) { - var v StepModel +func (r workflowRunStickyStateToWorkflowRunDeleteUnique) Exec(ctx context.Context) (*WorkflowRunStickyStateModel, error) { + var v WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepDeleteUnique) Tx() StepUniqueTxResult { - v := newStepUniqueTxResult() +func (r workflowRunStickyStateToWorkflowRunDeleteUnique) Tx() WorkflowRunStickyStateUniqueTxResult { + v := newWorkflowRunStickyStateUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepFindFirst struct { +type workflowRunStickyStateToWorkflowRunFindFirst struct { query builder.Query } -func (r stepFindFirst) getQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunFindFirst) getQuery() builder.Query { return r.query } -func (r stepFindFirst) ExtractQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepFindFirst) with() {} -func (r stepFindFirst) stepModel() {} -func (r stepFindFirst) stepRelation() {} - -func (r stepActions) FindFirst( - params ...StepWhereParam, -) stepFindFirst { - var v stepFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "Step" - v.query.Outputs = stepOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowRunStickyStateToWorkflowRunFindFirst) with() {} +func (r workflowRunStickyStateToWorkflowRunFindFirst) workflowRunStickyStateModel() {} +func (r workflowRunStickyStateToWorkflowRunFindFirst) workflowRunStickyStateRelation() {} -func (r stepFindFirst) With(params ...StepRelationWith) stepFindFirst { +func (r workflowRunStickyStateToWorkflowRunFindFirst) With(params ...WorkflowRunRelationWith) workflowRunStickyStateToWorkflowRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -305818,7 +330762,7 @@ func (r stepFindFirst) With(params ...StepRelationWith) stepFindFirst { return r } -func (r stepFindFirst) Select(params ...stepPrismaFields) stepFindFirst { +func (r workflowRunStickyStateToWorkflowRunFindFirst) Select(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateToWorkflowRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -305832,7 +330776,7 @@ func (r stepFindFirst) Select(params ...stepPrismaFields) stepFindFirst { return r } -func (r stepFindFirst) Omit(params ...stepPrismaFields) stepFindFirst { +func (r workflowRunStickyStateToWorkflowRunFindFirst) Omit(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateToWorkflowRunFindFirst { var outputs []builder.Output var raw []string @@ -305840,7 +330784,7 @@ func (r stepFindFirst) Omit(params ...stepPrismaFields) stepFindFirst { raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range workflowRunStickyStateOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -305851,7 +330795,7 @@ func (r stepFindFirst) Omit(params ...stepPrismaFields) stepFindFirst { return r } -func (r stepFindFirst) OrderBy(params ...StepOrderByParam) stepFindFirst { +func (r workflowRunStickyStateToWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunStickyStateToWorkflowRunFindFirst { var fields []builder.Field for _, param := range params { @@ -305871,7 +330815,7 @@ func (r stepFindFirst) OrderBy(params ...StepOrderByParam) stepFindFirst { return r } -func (r stepFindFirst) Skip(count int) stepFindFirst { +func (r workflowRunStickyStateToWorkflowRunFindFirst) Skip(count int) workflowRunStickyStateToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -305879,7 +330823,7 @@ func (r stepFindFirst) Skip(count int) stepFindFirst { return r } -func (r stepFindFirst) Take(count int) stepFindFirst { +func (r workflowRunStickyStateToWorkflowRunFindFirst) Take(count int) workflowRunStickyStateToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -305887,7 +330831,7 @@ func (r stepFindFirst) Take(count int) stepFindFirst { return r } -func (r stepFindFirst) Cursor(cursor StepCursorParam) stepFindFirst { +func (r workflowRunStickyStateToWorkflowRunFindFirst) Cursor(cursor WorkflowRunStickyStateCursorParam) workflowRunStickyStateToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -305895,11 +330839,11 @@ func (r stepFindFirst) Cursor(cursor StepCursorParam) stepFindFirst { return r } -func (r stepFindFirst) Exec(ctx context.Context) ( - *StepModel, +func (r workflowRunStickyStateToWorkflowRunFindFirst) Exec(ctx context.Context) ( + *WorkflowRunStickyStateModel, error, ) { - var v *StepModel + var v *WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305911,11 +330855,11 @@ func (r stepFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepFindFirst) ExecInner(ctx context.Context) ( - *InnerStep, +func (r workflowRunStickyStateToWorkflowRunFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRunStickyState, error, ) { - var v *InnerStep + var v *InnerWorkflowRunStickyState if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -305927,60 +330871,23 @@ func (r stepFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepFindMany struct { +type workflowRunStickyStateToWorkflowRunFindMany struct { query builder.Query } -func (r stepFindMany) getQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunFindMany) getQuery() builder.Query { return r.query } -func (r stepFindMany) ExtractQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepFindMany) with() {} -func (r stepFindMany) stepModel() {} -func (r stepFindMany) stepRelation() {} - -func (r stepActions) FindMany( - params ...StepWhereParam, -) stepFindMany { - var v stepFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "Step" - v.query.Outputs = stepOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowRunStickyStateToWorkflowRunFindMany) with() {} +func (r workflowRunStickyStateToWorkflowRunFindMany) workflowRunStickyStateModel() {} +func (r workflowRunStickyStateToWorkflowRunFindMany) workflowRunStickyStateRelation() {} -func (r stepFindMany) With(params ...StepRelationWith) stepFindMany { +func (r workflowRunStickyStateToWorkflowRunFindMany) With(params ...WorkflowRunRelationWith) workflowRunStickyStateToWorkflowRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -305993,7 +330900,7 @@ func (r stepFindMany) With(params ...StepRelationWith) stepFindMany { return r } -func (r stepFindMany) Select(params ...stepPrismaFields) stepFindMany { +func (r workflowRunStickyStateToWorkflowRunFindMany) Select(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateToWorkflowRunFindMany { var outputs []builder.Output for _, param := range params { @@ -306007,7 +330914,7 @@ func (r stepFindMany) Select(params ...stepPrismaFields) stepFindMany { return r } -func (r stepFindMany) Omit(params ...stepPrismaFields) stepFindMany { +func (r workflowRunStickyStateToWorkflowRunFindMany) Omit(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateToWorkflowRunFindMany { var outputs []builder.Output var raw []string @@ -306015,7 +330922,7 @@ func (r stepFindMany) Omit(params ...stepPrismaFields) stepFindMany { raw = append(raw, string(param)) } - for _, output := range stepOutput { + for _, output := range workflowRunStickyStateOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -306026,7 +330933,7 @@ func (r stepFindMany) Omit(params ...stepPrismaFields) stepFindMany { return r } -func (r stepFindMany) OrderBy(params ...StepOrderByParam) stepFindMany { +func (r workflowRunStickyStateToWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunStickyStateToWorkflowRunFindMany { var fields []builder.Field for _, param := range params { @@ -306046,7 +330953,7 @@ func (r stepFindMany) OrderBy(params ...StepOrderByParam) stepFindMany { return r } -func (r stepFindMany) Skip(count int) stepFindMany { +func (r workflowRunStickyStateToWorkflowRunFindMany) Skip(count int) workflowRunStickyStateToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -306054,7 +330961,7 @@ func (r stepFindMany) Skip(count int) stepFindMany { return r } -func (r stepFindMany) Take(count int) stepFindMany { +func (r workflowRunStickyStateToWorkflowRunFindMany) Take(count int) workflowRunStickyStateToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -306062,7 +330969,7 @@ func (r stepFindMany) Take(count int) stepFindMany { return r } -func (r stepFindMany) Cursor(cursor StepCursorParam) stepFindMany { +func (r workflowRunStickyStateToWorkflowRunFindMany) Cursor(cursor WorkflowRunStickyStateCursorParam) workflowRunStickyStateToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -306070,11 +330977,11 @@ func (r stepFindMany) Cursor(cursor StepCursorParam) stepFindMany { return r } -func (r stepFindMany) Exec(ctx context.Context) ( - []StepModel, +func (r workflowRunStickyStateToWorkflowRunFindMany) Exec(ctx context.Context) ( + []WorkflowRunStickyStateModel, error, ) { - var v []StepModel + var v []WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306082,11 +330989,11 @@ func (r stepFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepFindMany) ExecInner(ctx context.Context) ( - []InnerStep, +func (r workflowRunStickyStateToWorkflowRunFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRunStickyState, error, ) { - var v []InnerStep + var v []InnerWorkflowRunStickyState if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306094,14 +331001,14 @@ func (r stepFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepFindMany) Update(params ...StepSetParam) stepUpdateMany { +func (r workflowRunStickyStateToWorkflowRunFindMany) Update(params ...WorkflowRunStickyStateSetParam) workflowRunStickyStateToWorkflowRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Step" + r.query.Model = "WorkflowRunStickyState" r.query.Outputs = countOutput - var v stepUpdateMany + var v workflowRunStickyStateToWorkflowRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -306130,17 +331037,17 @@ func (r stepFindMany) Update(params ...StepSetParam) stepUpdateMany { return v } -type stepUpdateMany struct { +type workflowRunStickyStateToWorkflowRunUpdateMany struct { query builder.Query } -func (r stepUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepUpdateMany) stepModel() {} +func (r workflowRunStickyStateToWorkflowRunUpdateMany) workflowRunStickyStateModel() {} -func (r stepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunStickyStateToWorkflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -306148,36 +331055,36 @@ func (r stepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r stepUpdateMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r workflowRunStickyStateToWorkflowRunUpdateMany) Tx() WorkflowRunStickyStateManyTxResult { + v := newWorkflowRunStickyStateManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepFindMany) Delete() stepDeleteMany { - var v stepDeleteMany +func (r workflowRunStickyStateToWorkflowRunFindMany) Delete() workflowRunStickyStateToWorkflowRunDeleteMany { + var v workflowRunStickyStateToWorkflowRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Step" + v.query.Model = "WorkflowRunStickyState" v.query.Outputs = countOutput return v } -type stepDeleteMany struct { +type workflowRunStickyStateToWorkflowRunDeleteMany struct { query builder.Query } -func (r stepDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunStickyStateToWorkflowRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepDeleteMany) stepModel() {} +func (p workflowRunStickyStateToWorkflowRunDeleteMany) workflowRunStickyStateModel() {} -func (r stepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunStickyStateToWorkflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -306185,30 +331092,52 @@ func (r stepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r stepDeleteMany) Tx() StepManyTxResult { - v := newStepManyTxResult() +func (r workflowRunStickyStateToWorkflowRunDeleteMany) Tx() WorkflowRunStickyStateManyTxResult { + v := newWorkflowRunStickyStateManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRateLimitToStepFindUnique struct { +type workflowRunStickyStateFindUnique struct { query builder.Query } -func (r stepRateLimitToStepFindUnique) getQuery() builder.Query { +func (r workflowRunStickyStateFindUnique) getQuery() builder.Query { return r.query } -func (r stepRateLimitToStepFindUnique) ExtractQuery() builder.Query { +func (r workflowRunStickyStateFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToStepFindUnique) with() {} -func (r stepRateLimitToStepFindUnique) stepRateLimitModel() {} -func (r stepRateLimitToStepFindUnique) stepRateLimitRelation() {} +func (r workflowRunStickyStateFindUnique) with() {} +func (r workflowRunStickyStateFindUnique) workflowRunStickyStateModel() {} +func (r workflowRunStickyStateFindUnique) workflowRunStickyStateRelation() {} -func (r stepRateLimitToStepFindUnique) With(params ...StepRelationWith) stepRateLimitToStepFindUnique { +func (r workflowRunStickyStateActions) FindUnique( + params WorkflowRunStickyStateEqualsUniqueWhereParam, +) workflowRunStickyStateFindUnique { + var v workflowRunStickyStateFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkflowRunStickyState" + v.query.Outputs = workflowRunStickyStateOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowRunStickyStateFindUnique) With(params ...WorkflowRunStickyStateRelationWith) workflowRunStickyStateFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -306221,7 +331150,7 @@ func (r stepRateLimitToStepFindUnique) With(params ...StepRelationWith) stepRate return r } -func (r stepRateLimitToStepFindUnique) Select(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindUnique { +func (r workflowRunStickyStateFindUnique) Select(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateFindUnique { var outputs []builder.Output for _, param := range params { @@ -306235,7 +331164,7 @@ func (r stepRateLimitToStepFindUnique) Select(params ...stepRateLimitPrismaField return r } -func (r stepRateLimitToStepFindUnique) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindUnique { +func (r workflowRunStickyStateFindUnique) Omit(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateFindUnique { var outputs []builder.Output var raw []string @@ -306243,7 +331172,7 @@ func (r stepRateLimitToStepFindUnique) Omit(params ...stepRateLimitPrismaFields) raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunStickyStateOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -306254,11 +331183,11 @@ func (r stepRateLimitToStepFindUnique) Omit(params ...stepRateLimitPrismaFields) return r } -func (r stepRateLimitToStepFindUnique) Exec(ctx context.Context) ( - *StepRateLimitModel, +func (r workflowRunStickyStateFindUnique) Exec(ctx context.Context) ( + *WorkflowRunStickyStateModel, error, ) { - var v *StepRateLimitModel + var v *WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306270,11 +331199,11 @@ func (r stepRateLimitToStepFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToStepFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRateLimit, +func (r workflowRunStickyStateFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRunStickyState, error, ) { - var v *InnerStepRateLimit + var v *InnerWorkflowRunStickyState if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306286,12 +331215,12 @@ func (r stepRateLimitToStepFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRateLimitToStepFindUnique) Update(params ...StepRateLimitSetParam) stepRateLimitToStepUpdateUnique { +func (r workflowRunStickyStateFindUnique) Update(params ...WorkflowRunStickyStateSetParam) workflowRunStickyStateUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRateLimit" + r.query.Model = "WorkflowRunStickyState" - var v stepRateLimitToStepUpdateUnique + var v workflowRunStickyStateUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -306320,83 +331249,120 @@ func (r stepRateLimitToStepFindUnique) Update(params ...StepRateLimitSetParam) s return v } -type stepRateLimitToStepUpdateUnique struct { +type workflowRunStickyStateUpdateUnique struct { query builder.Query } -func (r stepRateLimitToStepUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunStickyStateUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToStepUpdateUnique) stepRateLimitModel() {} +func (r workflowRunStickyStateUpdateUnique) workflowRunStickyStateModel() {} -func (r stepRateLimitToStepUpdateUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r workflowRunStickyStateUpdateUnique) Exec(ctx context.Context) (*WorkflowRunStickyStateModel, error) { + var v WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRateLimitToStepUpdateUnique) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() +func (r workflowRunStickyStateUpdateUnique) Tx() WorkflowRunStickyStateUniqueTxResult { + v := newWorkflowRunStickyStateUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRateLimitToStepFindUnique) Delete() stepRateLimitToStepDeleteUnique { - var v stepRateLimitToStepDeleteUnique +func (r workflowRunStickyStateFindUnique) Delete() workflowRunStickyStateDeleteUnique { + var v workflowRunStickyStateDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRateLimit" + v.query.Model = "WorkflowRunStickyState" return v } -type stepRateLimitToStepDeleteUnique struct { +type workflowRunStickyStateDeleteUnique struct { query builder.Query } -func (r stepRateLimitToStepDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunStickyStateDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRateLimitToStepDeleteUnique) stepRateLimitModel() {} +func (p workflowRunStickyStateDeleteUnique) workflowRunStickyStateModel() {} -func (r stepRateLimitToStepDeleteUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r workflowRunStickyStateDeleteUnique) Exec(ctx context.Context) (*WorkflowRunStickyStateModel, error) { + var v WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRateLimitToStepDeleteUnique) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() +func (r workflowRunStickyStateDeleteUnique) Tx() WorkflowRunStickyStateUniqueTxResult { + v := newWorkflowRunStickyStateUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRateLimitToStepFindFirst struct { +type workflowRunStickyStateFindFirst struct { query builder.Query } -func (r stepRateLimitToStepFindFirst) getQuery() builder.Query { +func (r workflowRunStickyStateFindFirst) getQuery() builder.Query { return r.query } -func (r stepRateLimitToStepFindFirst) ExtractQuery() builder.Query { +func (r workflowRunStickyStateFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToStepFindFirst) with() {} -func (r stepRateLimitToStepFindFirst) stepRateLimitModel() {} -func (r stepRateLimitToStepFindFirst) stepRateLimitRelation() {} +func (r workflowRunStickyStateFindFirst) with() {} +func (r workflowRunStickyStateFindFirst) workflowRunStickyStateModel() {} +func (r workflowRunStickyStateFindFirst) workflowRunStickyStateRelation() {} -func (r stepRateLimitToStepFindFirst) With(params ...StepRelationWith) stepRateLimitToStepFindFirst { +func (r workflowRunStickyStateActions) FindFirst( + params ...WorkflowRunStickyStateWhereParam, +) workflowRunStickyStateFindFirst { + var v workflowRunStickyStateFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkflowRunStickyState" + v.query.Outputs = workflowRunStickyStateOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowRunStickyStateFindFirst) With(params ...WorkflowRunStickyStateRelationWith) workflowRunStickyStateFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -306409,7 +331375,7 @@ func (r stepRateLimitToStepFindFirst) With(params ...StepRelationWith) stepRateL return r } -func (r stepRateLimitToStepFindFirst) Select(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindFirst { +func (r workflowRunStickyStateFindFirst) Select(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateFindFirst { var outputs []builder.Output for _, param := range params { @@ -306423,7 +331389,7 @@ func (r stepRateLimitToStepFindFirst) Select(params ...stepRateLimitPrismaFields return r } -func (r stepRateLimitToStepFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindFirst { +func (r workflowRunStickyStateFindFirst) Omit(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateFindFirst { var outputs []builder.Output var raw []string @@ -306431,7 +331397,7 @@ func (r stepRateLimitToStepFindFirst) Omit(params ...stepRateLimitPrismaFields) raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunStickyStateOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -306442,7 +331408,7 @@ func (r stepRateLimitToStepFindFirst) Omit(params ...stepRateLimitPrismaFields) return r } -func (r stepRateLimitToStepFindFirst) OrderBy(params ...StepOrderByParam) stepRateLimitToStepFindFirst { +func (r workflowRunStickyStateFindFirst) OrderBy(params ...WorkflowRunStickyStateOrderByParam) workflowRunStickyStateFindFirst { var fields []builder.Field for _, param := range params { @@ -306462,7 +331428,7 @@ func (r stepRateLimitToStepFindFirst) OrderBy(params ...StepOrderByParam) stepRa return r } -func (r stepRateLimitToStepFindFirst) Skip(count int) stepRateLimitToStepFindFirst { +func (r workflowRunStickyStateFindFirst) Skip(count int) workflowRunStickyStateFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -306470,7 +331436,7 @@ func (r stepRateLimitToStepFindFirst) Skip(count int) stepRateLimitToStepFindFir return r } -func (r stepRateLimitToStepFindFirst) Take(count int) stepRateLimitToStepFindFirst { +func (r workflowRunStickyStateFindFirst) Take(count int) workflowRunStickyStateFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -306478,7 +331444,7 @@ func (r stepRateLimitToStepFindFirst) Take(count int) stepRateLimitToStepFindFir return r } -func (r stepRateLimitToStepFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToStepFindFirst { +func (r workflowRunStickyStateFindFirst) Cursor(cursor WorkflowRunStickyStateCursorParam) workflowRunStickyStateFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -306486,11 +331452,11 @@ func (r stepRateLimitToStepFindFirst) Cursor(cursor StepRateLimitCursorParam) st return r } -func (r stepRateLimitToStepFindFirst) Exec(ctx context.Context) ( - *StepRateLimitModel, +func (r workflowRunStickyStateFindFirst) Exec(ctx context.Context) ( + *WorkflowRunStickyStateModel, error, ) { - var v *StepRateLimitModel + var v *WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306502,11 +331468,11 @@ func (r stepRateLimitToStepFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToStepFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRateLimit, +func (r workflowRunStickyStateFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRunStickyState, error, ) { - var v *InnerStepRateLimit + var v *InnerWorkflowRunStickyState if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306518,23 +331484,60 @@ func (r stepRateLimitToStepFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRateLimitToStepFindMany struct { +type workflowRunStickyStateFindMany struct { query builder.Query } -func (r stepRateLimitToStepFindMany) getQuery() builder.Query { +func (r workflowRunStickyStateFindMany) getQuery() builder.Query { return r.query } -func (r stepRateLimitToStepFindMany) ExtractQuery() builder.Query { +func (r workflowRunStickyStateFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToStepFindMany) with() {} -func (r stepRateLimitToStepFindMany) stepRateLimitModel() {} -func (r stepRateLimitToStepFindMany) stepRateLimitRelation() {} +func (r workflowRunStickyStateFindMany) with() {} +func (r workflowRunStickyStateFindMany) workflowRunStickyStateModel() {} +func (r workflowRunStickyStateFindMany) workflowRunStickyStateRelation() {} -func (r stepRateLimitToStepFindMany) With(params ...StepRelationWith) stepRateLimitToStepFindMany { +func (r workflowRunStickyStateActions) FindMany( + params ...WorkflowRunStickyStateWhereParam, +) workflowRunStickyStateFindMany { + var v workflowRunStickyStateFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkflowRunStickyState" + v.query.Outputs = workflowRunStickyStateOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowRunStickyStateFindMany) With(params ...WorkflowRunStickyStateRelationWith) workflowRunStickyStateFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -306547,7 +331550,7 @@ func (r stepRateLimitToStepFindMany) With(params ...StepRelationWith) stepRateLi return r } -func (r stepRateLimitToStepFindMany) Select(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindMany { +func (r workflowRunStickyStateFindMany) Select(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateFindMany { var outputs []builder.Output for _, param := range params { @@ -306561,7 +331564,7 @@ func (r stepRateLimitToStepFindMany) Select(params ...stepRateLimitPrismaFields) return r } -func (r stepRateLimitToStepFindMany) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToStepFindMany { +func (r workflowRunStickyStateFindMany) Omit(params ...workflowRunStickyStatePrismaFields) workflowRunStickyStateFindMany { var outputs []builder.Output var raw []string @@ -306569,7 +331572,7 @@ func (r stepRateLimitToStepFindMany) Omit(params ...stepRateLimitPrismaFields) s raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunStickyStateOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -306580,7 +331583,7 @@ func (r stepRateLimitToStepFindMany) Omit(params ...stepRateLimitPrismaFields) s return r } -func (r stepRateLimitToStepFindMany) OrderBy(params ...StepOrderByParam) stepRateLimitToStepFindMany { +func (r workflowRunStickyStateFindMany) OrderBy(params ...WorkflowRunStickyStateOrderByParam) workflowRunStickyStateFindMany { var fields []builder.Field for _, param := range params { @@ -306600,7 +331603,7 @@ func (r stepRateLimitToStepFindMany) OrderBy(params ...StepOrderByParam) stepRat return r } -func (r stepRateLimitToStepFindMany) Skip(count int) stepRateLimitToStepFindMany { +func (r workflowRunStickyStateFindMany) Skip(count int) workflowRunStickyStateFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -306608,7 +331611,7 @@ func (r stepRateLimitToStepFindMany) Skip(count int) stepRateLimitToStepFindMany return r } -func (r stepRateLimitToStepFindMany) Take(count int) stepRateLimitToStepFindMany { +func (r workflowRunStickyStateFindMany) Take(count int) workflowRunStickyStateFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -306616,7 +331619,7 @@ func (r stepRateLimitToStepFindMany) Take(count int) stepRateLimitToStepFindMany return r } -func (r stepRateLimitToStepFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToStepFindMany { +func (r workflowRunStickyStateFindMany) Cursor(cursor WorkflowRunStickyStateCursorParam) workflowRunStickyStateFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -306624,11 +331627,11 @@ func (r stepRateLimitToStepFindMany) Cursor(cursor StepRateLimitCursorParam) ste return r } -func (r stepRateLimitToStepFindMany) Exec(ctx context.Context) ( - []StepRateLimitModel, +func (r workflowRunStickyStateFindMany) Exec(ctx context.Context) ( + []WorkflowRunStickyStateModel, error, ) { - var v []StepRateLimitModel + var v []WorkflowRunStickyStateModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306636,11 +331639,11 @@ func (r stepRateLimitToStepFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToStepFindMany) ExecInner(ctx context.Context) ( - []InnerStepRateLimit, +func (r workflowRunStickyStateFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRunStickyState, error, ) { - var v []InnerStepRateLimit + var v []InnerWorkflowRunStickyState if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306648,14 +331651,14 @@ func (r stepRateLimitToStepFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRateLimitToStepFindMany) Update(params ...StepRateLimitSetParam) stepRateLimitToStepUpdateMany { +func (r workflowRunStickyStateFindMany) Update(params ...WorkflowRunStickyStateSetParam) workflowRunStickyStateUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRateLimit" + r.query.Model = "WorkflowRunStickyState" r.query.Outputs = countOutput - var v stepRateLimitToStepUpdateMany + var v workflowRunStickyStateUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -306684,17 +331687,17 @@ func (r stepRateLimitToStepFindMany) Update(params ...StepRateLimitSetParam) ste return v } -type stepRateLimitToStepUpdateMany struct { +type workflowRunStickyStateUpdateMany struct { query builder.Query } -func (r stepRateLimitToStepUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunStickyStateUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToStepUpdateMany) stepRateLimitModel() {} +func (r workflowRunStickyStateUpdateMany) workflowRunStickyStateModel() {} -func (r stepRateLimitToStepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunStickyStateUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -306702,36 +331705,36 @@ func (r stepRateLimitToStepUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r stepRateLimitToStepUpdateMany) Tx() StepRateLimitManyTxResult { - v := newStepRateLimitManyTxResult() +func (r workflowRunStickyStateUpdateMany) Tx() WorkflowRunStickyStateManyTxResult { + v := newWorkflowRunStickyStateManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRateLimitToStepFindMany) Delete() stepRateLimitToStepDeleteMany { - var v stepRateLimitToStepDeleteMany +func (r workflowRunStickyStateFindMany) Delete() workflowRunStickyStateDeleteMany { + var v workflowRunStickyStateDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRateLimit" + v.query.Model = "WorkflowRunStickyState" v.query.Outputs = countOutput return v } -type stepRateLimitToStepDeleteMany struct { +type workflowRunStickyStateDeleteMany struct { query builder.Query } -func (r stepRateLimitToStepDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunStickyStateDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRateLimitToStepDeleteMany) stepRateLimitModel() {} +func (p workflowRunStickyStateDeleteMany) workflowRunStickyStateModel() {} -func (r stepRateLimitToStepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunStickyStateDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -306739,30 +331742,30 @@ func (r stepRateLimitToStepDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r stepRateLimitToStepDeleteMany) Tx() StepRateLimitManyTxResult { - v := newStepRateLimitManyTxResult() +func (r workflowRunStickyStateDeleteMany) Tx() WorkflowRunStickyStateManyTxResult { + v := newWorkflowRunStickyStateManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRateLimitToRateLimitFindUnique struct { +type workflowRunToTenantFindUnique struct { query builder.Query } -func (r stepRateLimitToRateLimitFindUnique) getQuery() builder.Query { +func (r workflowRunToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r stepRateLimitToRateLimitFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToRateLimitFindUnique) with() {} -func (r stepRateLimitToRateLimitFindUnique) stepRateLimitModel() {} -func (r stepRateLimitToRateLimitFindUnique) stepRateLimitRelation() {} +func (r workflowRunToTenantFindUnique) with() {} +func (r workflowRunToTenantFindUnique) workflowRunModel() {} +func (r workflowRunToTenantFindUnique) workflowRunRelation() {} -func (r stepRateLimitToRateLimitFindUnique) With(params ...RateLimitRelationWith) stepRateLimitToRateLimitFindUnique { +func (r workflowRunToTenantFindUnique) With(params ...TenantRelationWith) workflowRunToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -306775,7 +331778,7 @@ func (r stepRateLimitToRateLimitFindUnique) With(params ...RateLimitRelationWith return r } -func (r stepRateLimitToRateLimitFindUnique) Select(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindUnique { +func (r workflowRunToTenantFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -306789,7 +331792,7 @@ func (r stepRateLimitToRateLimitFindUnique) Select(params ...stepRateLimitPrisma return r } -func (r stepRateLimitToRateLimitFindUnique) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindUnique { +func (r workflowRunToTenantFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToTenantFindUnique { var outputs []builder.Output var raw []string @@ -306797,7 +331800,7 @@ func (r stepRateLimitToRateLimitFindUnique) Omit(params ...stepRateLimitPrismaFi raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -306808,11 +331811,11 @@ func (r stepRateLimitToRateLimitFindUnique) Omit(params ...stepRateLimitPrismaFi return r } -func (r stepRateLimitToRateLimitFindUnique) Exec(ctx context.Context) ( - *StepRateLimitModel, +func (r workflowRunToTenantFindUnique) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *StepRateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306824,11 +331827,11 @@ func (r stepRateLimitToRateLimitFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToRateLimitFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRateLimit, +func (r workflowRunToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerStepRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -306840,12 +331843,12 @@ func (r stepRateLimitToRateLimitFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRateLimitToRateLimitFindUnique) Update(params ...StepRateLimitSetParam) stepRateLimitToRateLimitUpdateUnique { +func (r workflowRunToTenantFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRateLimit" + r.query.Model = "WorkflowRun" - var v stepRateLimitToRateLimitUpdateUnique + var v workflowRunToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -306874,83 +331877,83 @@ func (r stepRateLimitToRateLimitFindUnique) Update(params ...StepRateLimitSetPar return v } -type stepRateLimitToRateLimitUpdateUnique struct { +type workflowRunToTenantUpdateUnique struct { query builder.Query } -func (r stepRateLimitToRateLimitUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToRateLimitUpdateUnique) stepRateLimitModel() {} +func (r workflowRunToTenantUpdateUnique) workflowRunModel() {} -func (r stepRateLimitToRateLimitUpdateUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r workflowRunToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRateLimitToRateLimitUpdateUnique) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() +func (r workflowRunToTenantUpdateUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRateLimitToRateLimitFindUnique) Delete() stepRateLimitToRateLimitDeleteUnique { - var v stepRateLimitToRateLimitDeleteUnique +func (r workflowRunToTenantFindUnique) Delete() workflowRunToTenantDeleteUnique { + var v workflowRunToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRateLimit" + v.query.Model = "WorkflowRun" return v } -type stepRateLimitToRateLimitDeleteUnique struct { +type workflowRunToTenantDeleteUnique struct { query builder.Query } -func (r stepRateLimitToRateLimitDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRateLimitToRateLimitDeleteUnique) stepRateLimitModel() {} +func (p workflowRunToTenantDeleteUnique) workflowRunModel() {} -func (r stepRateLimitToRateLimitDeleteUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r workflowRunToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRateLimitToRateLimitDeleteUnique) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() +func (r workflowRunToTenantDeleteUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRateLimitToRateLimitFindFirst struct { +type workflowRunToTenantFindFirst struct { query builder.Query } -func (r stepRateLimitToRateLimitFindFirst) getQuery() builder.Query { +func (r workflowRunToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r stepRateLimitToRateLimitFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToRateLimitFindFirst) with() {} -func (r stepRateLimitToRateLimitFindFirst) stepRateLimitModel() {} -func (r stepRateLimitToRateLimitFindFirst) stepRateLimitRelation() {} +func (r workflowRunToTenantFindFirst) with() {} +func (r workflowRunToTenantFindFirst) workflowRunModel() {} +func (r workflowRunToTenantFindFirst) workflowRunRelation() {} -func (r stepRateLimitToRateLimitFindFirst) With(params ...RateLimitRelationWith) stepRateLimitToRateLimitFindFirst { +func (r workflowRunToTenantFindFirst) With(params ...TenantRelationWith) workflowRunToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -306963,7 +331966,7 @@ func (r stepRateLimitToRateLimitFindFirst) With(params ...RateLimitRelationWith) return r } -func (r stepRateLimitToRateLimitFindFirst) Select(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindFirst { +func (r workflowRunToTenantFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -306977,7 +331980,7 @@ func (r stepRateLimitToRateLimitFindFirst) Select(params ...stepRateLimitPrismaF return r } -func (r stepRateLimitToRateLimitFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindFirst { +func (r workflowRunToTenantFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToTenantFindFirst { var outputs []builder.Output var raw []string @@ -306985,7 +331988,7 @@ func (r stepRateLimitToRateLimitFindFirst) Omit(params ...stepRateLimitPrismaFie raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -306996,7 +331999,7 @@ func (r stepRateLimitToRateLimitFindFirst) Omit(params ...stepRateLimitPrismaFie return r } -func (r stepRateLimitToRateLimitFindFirst) OrderBy(params ...RateLimitOrderByParam) stepRateLimitToRateLimitFindFirst { +func (r workflowRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowRunToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -307016,7 +332019,7 @@ func (r stepRateLimitToRateLimitFindFirst) OrderBy(params ...RateLimitOrderByPar return r } -func (r stepRateLimitToRateLimitFindFirst) Skip(count int) stepRateLimitToRateLimitFindFirst { +func (r workflowRunToTenantFindFirst) Skip(count int) workflowRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -307024,7 +332027,7 @@ func (r stepRateLimitToRateLimitFindFirst) Skip(count int) stepRateLimitToRateLi return r } -func (r stepRateLimitToRateLimitFindFirst) Take(count int) stepRateLimitToRateLimitFindFirst { +func (r workflowRunToTenantFindFirst) Take(count int) workflowRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -307032,7 +332035,7 @@ func (r stepRateLimitToRateLimitFindFirst) Take(count int) stepRateLimitToRateLi return r } -func (r stepRateLimitToRateLimitFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToRateLimitFindFirst { +func (r workflowRunToTenantFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -307040,11 +332043,11 @@ func (r stepRateLimitToRateLimitFindFirst) Cursor(cursor StepRateLimitCursorPara return r } -func (r stepRateLimitToRateLimitFindFirst) Exec(ctx context.Context) ( - *StepRateLimitModel, +func (r workflowRunToTenantFindFirst) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *StepRateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307056,11 +332059,11 @@ func (r stepRateLimitToRateLimitFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToRateLimitFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRateLimit, +func (r workflowRunToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerStepRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307072,23 +332075,23 @@ func (r stepRateLimitToRateLimitFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRateLimitToRateLimitFindMany struct { +type workflowRunToTenantFindMany struct { query builder.Query } -func (r stepRateLimitToRateLimitFindMany) getQuery() builder.Query { +func (r workflowRunToTenantFindMany) getQuery() builder.Query { return r.query } -func (r stepRateLimitToRateLimitFindMany) ExtractQuery() builder.Query { +func (r workflowRunToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToRateLimitFindMany) with() {} -func (r stepRateLimitToRateLimitFindMany) stepRateLimitModel() {} -func (r stepRateLimitToRateLimitFindMany) stepRateLimitRelation() {} +func (r workflowRunToTenantFindMany) with() {} +func (r workflowRunToTenantFindMany) workflowRunModel() {} +func (r workflowRunToTenantFindMany) workflowRunRelation() {} -func (r stepRateLimitToRateLimitFindMany) With(params ...RateLimitRelationWith) stepRateLimitToRateLimitFindMany { +func (r workflowRunToTenantFindMany) With(params ...TenantRelationWith) workflowRunToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -307101,7 +332104,7 @@ func (r stepRateLimitToRateLimitFindMany) With(params ...RateLimitRelationWith) return r } -func (r stepRateLimitToRateLimitFindMany) Select(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindMany { +func (r workflowRunToTenantFindMany) Select(params ...workflowRunPrismaFields) workflowRunToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -307115,7 +332118,7 @@ func (r stepRateLimitToRateLimitFindMany) Select(params ...stepRateLimitPrismaFi return r } -func (r stepRateLimitToRateLimitFindMany) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToRateLimitFindMany { +func (r workflowRunToTenantFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToTenantFindMany { var outputs []builder.Output var raw []string @@ -307123,7 +332126,7 @@ func (r stepRateLimitToRateLimitFindMany) Omit(params ...stepRateLimitPrismaFiel raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -307134,7 +332137,7 @@ func (r stepRateLimitToRateLimitFindMany) Omit(params ...stepRateLimitPrismaFiel return r } -func (r stepRateLimitToRateLimitFindMany) OrderBy(params ...RateLimitOrderByParam) stepRateLimitToRateLimitFindMany { +func (r workflowRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowRunToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -307154,7 +332157,7 @@ func (r stepRateLimitToRateLimitFindMany) OrderBy(params ...RateLimitOrderByPara return r } -func (r stepRateLimitToRateLimitFindMany) Skip(count int) stepRateLimitToRateLimitFindMany { +func (r workflowRunToTenantFindMany) Skip(count int) workflowRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -307162,7 +332165,7 @@ func (r stepRateLimitToRateLimitFindMany) Skip(count int) stepRateLimitToRateLim return r } -func (r stepRateLimitToRateLimitFindMany) Take(count int) stepRateLimitToRateLimitFindMany { +func (r workflowRunToTenantFindMany) Take(count int) workflowRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -307170,7 +332173,7 @@ func (r stepRateLimitToRateLimitFindMany) Take(count int) stepRateLimitToRateLim return r } -func (r stepRateLimitToRateLimitFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToRateLimitFindMany { +func (r workflowRunToTenantFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -307178,11 +332181,11 @@ func (r stepRateLimitToRateLimitFindMany) Cursor(cursor StepRateLimitCursorParam return r } -func (r stepRateLimitToRateLimitFindMany) Exec(ctx context.Context) ( - []StepRateLimitModel, +func (r workflowRunToTenantFindMany) Exec(ctx context.Context) ( + []WorkflowRunModel, error, ) { - var v []StepRateLimitModel + var v []WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307190,11 +332193,11 @@ func (r stepRateLimitToRateLimitFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToRateLimitFindMany) ExecInner(ctx context.Context) ( - []InnerStepRateLimit, +func (r workflowRunToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRun, error, ) { - var v []InnerStepRateLimit + var v []InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307202,14 +332205,14 @@ func (r stepRateLimitToRateLimitFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRateLimitToRateLimitFindMany) Update(params ...StepRateLimitSetParam) stepRateLimitToRateLimitUpdateMany { +func (r workflowRunToTenantFindMany) Update(params ...WorkflowRunSetParam) workflowRunToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRateLimit" + r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v stepRateLimitToRateLimitUpdateMany + var v workflowRunToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -307238,17 +332241,17 @@ func (r stepRateLimitToRateLimitFindMany) Update(params ...StepRateLimitSetParam return v } -type stepRateLimitToRateLimitUpdateMany struct { +type workflowRunToTenantUpdateMany struct { query builder.Query } -func (r stepRateLimitToRateLimitUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToRateLimitUpdateMany) stepRateLimitModel() {} +func (r workflowRunToTenantUpdateMany) workflowRunModel() {} -func (r stepRateLimitToRateLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -307256,36 +332259,36 @@ func (r stepRateLimitToRateLimitUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r stepRateLimitToRateLimitUpdateMany) Tx() StepRateLimitManyTxResult { - v := newStepRateLimitManyTxResult() +func (r workflowRunToTenantUpdateMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRateLimitToRateLimitFindMany) Delete() stepRateLimitToRateLimitDeleteMany { - var v stepRateLimitToRateLimitDeleteMany +func (r workflowRunToTenantFindMany) Delete() workflowRunToTenantDeleteMany { + var v workflowRunToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRateLimit" + v.query.Model = "WorkflowRun" v.query.Outputs = countOutput return v } -type stepRateLimitToRateLimitDeleteMany struct { +type workflowRunToTenantDeleteMany struct { query builder.Query } -func (r stepRateLimitToRateLimitDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRateLimitToRateLimitDeleteMany) stepRateLimitModel() {} +func (p workflowRunToTenantDeleteMany) workflowRunModel() {} -func (r stepRateLimitToRateLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -307293,30 +332296,30 @@ func (r stepRateLimitToRateLimitDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r stepRateLimitToRateLimitDeleteMany) Tx() StepRateLimitManyTxResult { - v := newStepRateLimitManyTxResult() +func (r workflowRunToTenantDeleteMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRateLimitToTenantFindUnique struct { +type workflowRunToWorkflowVersionFindUnique struct { query builder.Query } -func (r stepRateLimitToTenantFindUnique) getQuery() builder.Query { +func (r workflowRunToWorkflowVersionFindUnique) getQuery() builder.Query { return r.query } -func (r stepRateLimitToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToWorkflowVersionFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToTenantFindUnique) with() {} -func (r stepRateLimitToTenantFindUnique) stepRateLimitModel() {} -func (r stepRateLimitToTenantFindUnique) stepRateLimitRelation() {} +func (r workflowRunToWorkflowVersionFindUnique) with() {} +func (r workflowRunToWorkflowVersionFindUnique) workflowRunModel() {} +func (r workflowRunToWorkflowVersionFindUnique) workflowRunRelation() {} -func (r stepRateLimitToTenantFindUnique) With(params ...TenantRelationWith) stepRateLimitToTenantFindUnique { +func (r workflowRunToWorkflowVersionFindUnique) With(params ...WorkflowVersionRelationWith) workflowRunToWorkflowVersionFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -307329,7 +332332,7 @@ func (r stepRateLimitToTenantFindUnique) With(params ...TenantRelationWith) step return r } -func (r stepRateLimitToTenantFindUnique) Select(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindUnique { +func (r workflowRunToWorkflowVersionFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindUnique { var outputs []builder.Output for _, param := range params { @@ -307343,7 +332346,7 @@ func (r stepRateLimitToTenantFindUnique) Select(params ...stepRateLimitPrismaFie return r } -func (r stepRateLimitToTenantFindUnique) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindUnique { +func (r workflowRunToWorkflowVersionFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindUnique { var outputs []builder.Output var raw []string @@ -307351,7 +332354,7 @@ func (r stepRateLimitToTenantFindUnique) Omit(params ...stepRateLimitPrismaField raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -307362,11 +332365,11 @@ func (r stepRateLimitToTenantFindUnique) Omit(params ...stepRateLimitPrismaField return r } -func (r stepRateLimitToTenantFindUnique) Exec(ctx context.Context) ( - *StepRateLimitModel, +func (r workflowRunToWorkflowVersionFindUnique) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *StepRateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307378,11 +332381,11 @@ func (r stepRateLimitToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRateLimit, +func (r workflowRunToWorkflowVersionFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerStepRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307394,12 +332397,12 @@ func (r stepRateLimitToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRateLimitToTenantFindUnique) Update(params ...StepRateLimitSetParam) stepRateLimitToTenantUpdateUnique { +func (r workflowRunToWorkflowVersionFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToWorkflowVersionUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRateLimit" + r.query.Model = "WorkflowRun" - var v stepRateLimitToTenantUpdateUnique + var v workflowRunToWorkflowVersionUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -307428,83 +332431,83 @@ func (r stepRateLimitToTenantFindUnique) Update(params ...StepRateLimitSetParam) return v } -type stepRateLimitToTenantUpdateUnique struct { +type workflowRunToWorkflowVersionUpdateUnique struct { query builder.Query } -func (r stepRateLimitToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToWorkflowVersionUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToTenantUpdateUnique) stepRateLimitModel() {} +func (r workflowRunToWorkflowVersionUpdateUnique) workflowRunModel() {} -func (r stepRateLimitToTenantUpdateUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r workflowRunToWorkflowVersionUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRateLimitToTenantUpdateUnique) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() +func (r workflowRunToWorkflowVersionUpdateUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRateLimitToTenantFindUnique) Delete() stepRateLimitToTenantDeleteUnique { - var v stepRateLimitToTenantDeleteUnique +func (r workflowRunToWorkflowVersionFindUnique) Delete() workflowRunToWorkflowVersionDeleteUnique { + var v workflowRunToWorkflowVersionDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRateLimit" + v.query.Model = "WorkflowRun" return v } -type stepRateLimitToTenantDeleteUnique struct { +type workflowRunToWorkflowVersionDeleteUnique struct { query builder.Query } -func (r stepRateLimitToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToWorkflowVersionDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRateLimitToTenantDeleteUnique) stepRateLimitModel() {} +func (p workflowRunToWorkflowVersionDeleteUnique) workflowRunModel() {} -func (r stepRateLimitToTenantDeleteUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r workflowRunToWorkflowVersionDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRateLimitToTenantDeleteUnique) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() +func (r workflowRunToWorkflowVersionDeleteUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRateLimitToTenantFindFirst struct { +type workflowRunToWorkflowVersionFindFirst struct { query builder.Query } -func (r stepRateLimitToTenantFindFirst) getQuery() builder.Query { +func (r workflowRunToWorkflowVersionFindFirst) getQuery() builder.Query { return r.query } -func (r stepRateLimitToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToWorkflowVersionFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToTenantFindFirst) with() {} -func (r stepRateLimitToTenantFindFirst) stepRateLimitModel() {} -func (r stepRateLimitToTenantFindFirst) stepRateLimitRelation() {} +func (r workflowRunToWorkflowVersionFindFirst) with() {} +func (r workflowRunToWorkflowVersionFindFirst) workflowRunModel() {} +func (r workflowRunToWorkflowVersionFindFirst) workflowRunRelation() {} -func (r stepRateLimitToTenantFindFirst) With(params ...TenantRelationWith) stepRateLimitToTenantFindFirst { +func (r workflowRunToWorkflowVersionFindFirst) With(params ...WorkflowVersionRelationWith) workflowRunToWorkflowVersionFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -307517,7 +332520,7 @@ func (r stepRateLimitToTenantFindFirst) With(params ...TenantRelationWith) stepR return r } -func (r stepRateLimitToTenantFindFirst) Select(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindFirst { +func (r workflowRunToWorkflowVersionFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindFirst { var outputs []builder.Output for _, param := range params { @@ -307531,7 +332534,7 @@ func (r stepRateLimitToTenantFindFirst) Select(params ...stepRateLimitPrismaFiel return r } -func (r stepRateLimitToTenantFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindFirst { +func (r workflowRunToWorkflowVersionFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindFirst { var outputs []builder.Output var raw []string @@ -307539,7 +332542,7 @@ func (r stepRateLimitToTenantFindFirst) Omit(params ...stepRateLimitPrismaFields raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -307550,7 +332553,7 @@ func (r stepRateLimitToTenantFindFirst) Omit(params ...stepRateLimitPrismaFields return r } -func (r stepRateLimitToTenantFindFirst) OrderBy(params ...TenantOrderByParam) stepRateLimitToTenantFindFirst { +func (r workflowRunToWorkflowVersionFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowRunToWorkflowVersionFindFirst { var fields []builder.Field for _, param := range params { @@ -307570,7 +332573,7 @@ func (r stepRateLimitToTenantFindFirst) OrderBy(params ...TenantOrderByParam) st return r } -func (r stepRateLimitToTenantFindFirst) Skip(count int) stepRateLimitToTenantFindFirst { +func (r workflowRunToWorkflowVersionFindFirst) Skip(count int) workflowRunToWorkflowVersionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -307578,7 +332581,7 @@ func (r stepRateLimitToTenantFindFirst) Skip(count int) stepRateLimitToTenantFin return r } -func (r stepRateLimitToTenantFindFirst) Take(count int) stepRateLimitToTenantFindFirst { +func (r workflowRunToWorkflowVersionFindFirst) Take(count int) workflowRunToWorkflowVersionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -307586,7 +332589,7 @@ func (r stepRateLimitToTenantFindFirst) Take(count int) stepRateLimitToTenantFin return r } -func (r stepRateLimitToTenantFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToTenantFindFirst { +func (r workflowRunToWorkflowVersionFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToWorkflowVersionFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -307594,11 +332597,11 @@ func (r stepRateLimitToTenantFindFirst) Cursor(cursor StepRateLimitCursorParam) return r } -func (r stepRateLimitToTenantFindFirst) Exec(ctx context.Context) ( - *StepRateLimitModel, +func (r workflowRunToWorkflowVersionFindFirst) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *StepRateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307610,11 +332613,11 @@ func (r stepRateLimitToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRateLimit, +func (r workflowRunToWorkflowVersionFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerStepRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307626,23 +332629,23 @@ func (r stepRateLimitToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRateLimitToTenantFindMany struct { +type workflowRunToWorkflowVersionFindMany struct { query builder.Query } -func (r stepRateLimitToTenantFindMany) getQuery() builder.Query { +func (r workflowRunToWorkflowVersionFindMany) getQuery() builder.Query { return r.query } -func (r stepRateLimitToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowRunToWorkflowVersionFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToTenantFindMany) with() {} -func (r stepRateLimitToTenantFindMany) stepRateLimitModel() {} -func (r stepRateLimitToTenantFindMany) stepRateLimitRelation() {} +func (r workflowRunToWorkflowVersionFindMany) with() {} +func (r workflowRunToWorkflowVersionFindMany) workflowRunModel() {} +func (r workflowRunToWorkflowVersionFindMany) workflowRunRelation() {} -func (r stepRateLimitToTenantFindMany) With(params ...TenantRelationWith) stepRateLimitToTenantFindMany { +func (r workflowRunToWorkflowVersionFindMany) With(params ...WorkflowVersionRelationWith) workflowRunToWorkflowVersionFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -307655,7 +332658,7 @@ func (r stepRateLimitToTenantFindMany) With(params ...TenantRelationWith) stepRa return r } -func (r stepRateLimitToTenantFindMany) Select(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindMany { +func (r workflowRunToWorkflowVersionFindMany) Select(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindMany { var outputs []builder.Output for _, param := range params { @@ -307669,7 +332672,7 @@ func (r stepRateLimitToTenantFindMany) Select(params ...stepRateLimitPrismaField return r } -func (r stepRateLimitToTenantFindMany) Omit(params ...stepRateLimitPrismaFields) stepRateLimitToTenantFindMany { +func (r workflowRunToWorkflowVersionFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindMany { var outputs []builder.Output var raw []string @@ -307677,7 +332680,7 @@ func (r stepRateLimitToTenantFindMany) Omit(params ...stepRateLimitPrismaFields) raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -307688,7 +332691,7 @@ func (r stepRateLimitToTenantFindMany) Omit(params ...stepRateLimitPrismaFields) return r } -func (r stepRateLimitToTenantFindMany) OrderBy(params ...TenantOrderByParam) stepRateLimitToTenantFindMany { +func (r workflowRunToWorkflowVersionFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowRunToWorkflowVersionFindMany { var fields []builder.Field for _, param := range params { @@ -307708,7 +332711,7 @@ func (r stepRateLimitToTenantFindMany) OrderBy(params ...TenantOrderByParam) ste return r } -func (r stepRateLimitToTenantFindMany) Skip(count int) stepRateLimitToTenantFindMany { +func (r workflowRunToWorkflowVersionFindMany) Skip(count int) workflowRunToWorkflowVersionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -307716,7 +332719,7 @@ func (r stepRateLimitToTenantFindMany) Skip(count int) stepRateLimitToTenantFind return r } -func (r stepRateLimitToTenantFindMany) Take(count int) stepRateLimitToTenantFindMany { +func (r workflowRunToWorkflowVersionFindMany) Take(count int) workflowRunToWorkflowVersionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -307724,7 +332727,7 @@ func (r stepRateLimitToTenantFindMany) Take(count int) stepRateLimitToTenantFind return r } -func (r stepRateLimitToTenantFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateLimitToTenantFindMany { +func (r workflowRunToWorkflowVersionFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToWorkflowVersionFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -307732,11 +332735,11 @@ func (r stepRateLimitToTenantFindMany) Cursor(cursor StepRateLimitCursorParam) s return r } -func (r stepRateLimitToTenantFindMany) Exec(ctx context.Context) ( - []StepRateLimitModel, +func (r workflowRunToWorkflowVersionFindMany) Exec(ctx context.Context) ( + []WorkflowRunModel, error, ) { - var v []StepRateLimitModel + var v []WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307744,11 +332747,11 @@ func (r stepRateLimitToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerStepRateLimit, +func (r workflowRunToWorkflowVersionFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRun, error, ) { - var v []InnerStepRateLimit + var v []InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307756,14 +332759,14 @@ func (r stepRateLimitToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRateLimitToTenantFindMany) Update(params ...StepRateLimitSetParam) stepRateLimitToTenantUpdateMany { +func (r workflowRunToWorkflowVersionFindMany) Update(params ...WorkflowRunSetParam) workflowRunToWorkflowVersionUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRateLimit" + r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v stepRateLimitToTenantUpdateMany + var v workflowRunToWorkflowVersionUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -307792,17 +332795,17 @@ func (r stepRateLimitToTenantFindMany) Update(params ...StepRateLimitSetParam) s return v } -type stepRateLimitToTenantUpdateMany struct { +type workflowRunToWorkflowVersionUpdateMany struct { query builder.Query } -func (r stepRateLimitToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToWorkflowVersionUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitToTenantUpdateMany) stepRateLimitModel() {} +func (r workflowRunToWorkflowVersionUpdateMany) workflowRunModel() {} -func (r stepRateLimitToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToWorkflowVersionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -307810,36 +332813,36 @@ func (r stepRateLimitToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r stepRateLimitToTenantUpdateMany) Tx() StepRateLimitManyTxResult { - v := newStepRateLimitManyTxResult() +func (r workflowRunToWorkflowVersionUpdateMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRateLimitToTenantFindMany) Delete() stepRateLimitToTenantDeleteMany { - var v stepRateLimitToTenantDeleteMany +func (r workflowRunToWorkflowVersionFindMany) Delete() workflowRunToWorkflowVersionDeleteMany { + var v workflowRunToWorkflowVersionDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRateLimit" + v.query.Model = "WorkflowRun" v.query.Outputs = countOutput return v } -type stepRateLimitToTenantDeleteMany struct { +type workflowRunToWorkflowVersionDeleteMany struct { query builder.Query } -func (r stepRateLimitToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToWorkflowVersionDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRateLimitToTenantDeleteMany) stepRateLimitModel() {} +func (p workflowRunToWorkflowVersionDeleteMany) workflowRunModel() {} -func (r stepRateLimitToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToWorkflowVersionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -307847,52 +332850,30 @@ func (r stepRateLimitToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r stepRateLimitToTenantDeleteMany) Tx() StepRateLimitManyTxResult { - v := newStepRateLimitManyTxResult() +func (r workflowRunToWorkflowVersionDeleteMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRateLimitFindUnique struct { +type workflowRunToGetGroupKeyRunFindUnique struct { query builder.Query } -func (r stepRateLimitFindUnique) getQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunFindUnique) getQuery() builder.Query { return r.query } -func (r stepRateLimitFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitFindUnique) with() {} -func (r stepRateLimitFindUnique) stepRateLimitModel() {} -func (r stepRateLimitFindUnique) stepRateLimitRelation() {} - -func (r stepRateLimitActions) FindUnique( - params StepRateLimitEqualsUniqueWhereParam, -) stepRateLimitFindUnique { - var v stepRateLimitFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "StepRateLimit" - v.query.Outputs = stepRateLimitOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowRunToGetGroupKeyRunFindUnique) with() {} +func (r workflowRunToGetGroupKeyRunFindUnique) workflowRunModel() {} +func (r workflowRunToGetGroupKeyRunFindUnique) workflowRunRelation() {} -func (r stepRateLimitFindUnique) With(params ...StepRateLimitRelationWith) stepRateLimitFindUnique { +func (r workflowRunToGetGroupKeyRunFindUnique) With(params ...GetGroupKeyRunRelationWith) workflowRunToGetGroupKeyRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -307905,7 +332886,7 @@ func (r stepRateLimitFindUnique) With(params ...StepRateLimitRelationWith) stepR return r } -func (r stepRateLimitFindUnique) Select(params ...stepRateLimitPrismaFields) stepRateLimitFindUnique { +func (r workflowRunToGetGroupKeyRunFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -307919,7 +332900,7 @@ func (r stepRateLimitFindUnique) Select(params ...stepRateLimitPrismaFields) ste return r } -func (r stepRateLimitFindUnique) Omit(params ...stepRateLimitPrismaFields) stepRateLimitFindUnique { +func (r workflowRunToGetGroupKeyRunFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindUnique { var outputs []builder.Output var raw []string @@ -307927,7 +332908,7 @@ func (r stepRateLimitFindUnique) Omit(params ...stepRateLimitPrismaFields) stepR raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -307938,11 +332919,11 @@ func (r stepRateLimitFindUnique) Omit(params ...stepRateLimitPrismaFields) stepR return r } -func (r stepRateLimitFindUnique) Exec(ctx context.Context) ( - *StepRateLimitModel, +func (r workflowRunToGetGroupKeyRunFindUnique) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *StepRateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307954,11 +332935,11 @@ func (r stepRateLimitFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRateLimit, +func (r workflowRunToGetGroupKeyRunFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerStepRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -307970,12 +332951,12 @@ func (r stepRateLimitFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRateLimitFindUnique) Update(params ...StepRateLimitSetParam) stepRateLimitUpdateUnique { +func (r workflowRunToGetGroupKeyRunFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToGetGroupKeyRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRateLimit" + r.query.Model = "WorkflowRun" - var v stepRateLimitUpdateUnique + var v workflowRunToGetGroupKeyRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -308004,120 +332985,83 @@ func (r stepRateLimitFindUnique) Update(params ...StepRateLimitSetParam) stepRat return v } -type stepRateLimitUpdateUnique struct { +type workflowRunToGetGroupKeyRunUpdateUnique struct { query builder.Query } -func (r stepRateLimitUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitUpdateUnique) stepRateLimitModel() {} +func (r workflowRunToGetGroupKeyRunUpdateUnique) workflowRunModel() {} -func (r stepRateLimitUpdateUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r workflowRunToGetGroupKeyRunUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRateLimitUpdateUnique) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() +func (r workflowRunToGetGroupKeyRunUpdateUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRateLimitFindUnique) Delete() stepRateLimitDeleteUnique { - var v stepRateLimitDeleteUnique +func (r workflowRunToGetGroupKeyRunFindUnique) Delete() workflowRunToGetGroupKeyRunDeleteUnique { + var v workflowRunToGetGroupKeyRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRateLimit" + v.query.Model = "WorkflowRun" return v } -type stepRateLimitDeleteUnique struct { +type workflowRunToGetGroupKeyRunDeleteUnique struct { query builder.Query } -func (r stepRateLimitDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRateLimitDeleteUnique) stepRateLimitModel() {} +func (p workflowRunToGetGroupKeyRunDeleteUnique) workflowRunModel() {} -func (r stepRateLimitDeleteUnique) Exec(ctx context.Context) (*StepRateLimitModel, error) { - var v StepRateLimitModel +func (r workflowRunToGetGroupKeyRunDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRateLimitDeleteUnique) Tx() StepRateLimitUniqueTxResult { - v := newStepRateLimitUniqueTxResult() +func (r workflowRunToGetGroupKeyRunDeleteUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRateLimitFindFirst struct { +type workflowRunToGetGroupKeyRunFindFirst struct { query builder.Query } -func (r stepRateLimitFindFirst) getQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunFindFirst) getQuery() builder.Query { return r.query } -func (r stepRateLimitFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitFindFirst) with() {} -func (r stepRateLimitFindFirst) stepRateLimitModel() {} -func (r stepRateLimitFindFirst) stepRateLimitRelation() {} - -func (r stepRateLimitActions) FindFirst( - params ...StepRateLimitWhereParam, -) stepRateLimitFindFirst { - var v stepRateLimitFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "StepRateLimit" - v.query.Outputs = stepRateLimitOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowRunToGetGroupKeyRunFindFirst) with() {} +func (r workflowRunToGetGroupKeyRunFindFirst) workflowRunModel() {} +func (r workflowRunToGetGroupKeyRunFindFirst) workflowRunRelation() {} -func (r stepRateLimitFindFirst) With(params ...StepRateLimitRelationWith) stepRateLimitFindFirst { +func (r workflowRunToGetGroupKeyRunFindFirst) With(params ...GetGroupKeyRunRelationWith) workflowRunToGetGroupKeyRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -308130,7 +333074,7 @@ func (r stepRateLimitFindFirst) With(params ...StepRateLimitRelationWith) stepRa return r } -func (r stepRateLimitFindFirst) Select(params ...stepRateLimitPrismaFields) stepRateLimitFindFirst { +func (r workflowRunToGetGroupKeyRunFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -308144,7 +333088,7 @@ func (r stepRateLimitFindFirst) Select(params ...stepRateLimitPrismaFields) step return r } -func (r stepRateLimitFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRateLimitFindFirst { +func (r workflowRunToGetGroupKeyRunFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindFirst { var outputs []builder.Output var raw []string @@ -308152,7 +333096,7 @@ func (r stepRateLimitFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRa raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -308163,7 +333107,7 @@ func (r stepRateLimitFindFirst) Omit(params ...stepRateLimitPrismaFields) stepRa return r } -func (r stepRateLimitFindFirst) OrderBy(params ...StepRateLimitOrderByParam) stepRateLimitFindFirst { +func (r workflowRunToGetGroupKeyRunFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) workflowRunToGetGroupKeyRunFindFirst { var fields []builder.Field for _, param := range params { @@ -308183,7 +333127,7 @@ func (r stepRateLimitFindFirst) OrderBy(params ...StepRateLimitOrderByParam) ste return r } -func (r stepRateLimitFindFirst) Skip(count int) stepRateLimitFindFirst { +func (r workflowRunToGetGroupKeyRunFindFirst) Skip(count int) workflowRunToGetGroupKeyRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -308191,7 +333135,7 @@ func (r stepRateLimitFindFirst) Skip(count int) stepRateLimitFindFirst { return r } -func (r stepRateLimitFindFirst) Take(count int) stepRateLimitFindFirst { +func (r workflowRunToGetGroupKeyRunFindFirst) Take(count int) workflowRunToGetGroupKeyRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -308199,7 +333143,7 @@ func (r stepRateLimitFindFirst) Take(count int) stepRateLimitFindFirst { return r } -func (r stepRateLimitFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRateLimitFindFirst { +func (r workflowRunToGetGroupKeyRunFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToGetGroupKeyRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -308207,11 +333151,11 @@ func (r stepRateLimitFindFirst) Cursor(cursor StepRateLimitCursorParam) stepRate return r } -func (r stepRateLimitFindFirst) Exec(ctx context.Context) ( - *StepRateLimitModel, +func (r workflowRunToGetGroupKeyRunFindFirst) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *StepRateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308223,11 +333167,11 @@ func (r stepRateLimitFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRateLimit, +func (r workflowRunToGetGroupKeyRunFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerStepRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308239,60 +333183,23 @@ func (r stepRateLimitFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRateLimitFindMany struct { +type workflowRunToGetGroupKeyRunFindMany struct { query builder.Query } -func (r stepRateLimitFindMany) getQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunFindMany) getQuery() builder.Query { return r.query } -func (r stepRateLimitFindMany) ExtractQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitFindMany) with() {} -func (r stepRateLimitFindMany) stepRateLimitModel() {} -func (r stepRateLimitFindMany) stepRateLimitRelation() {} - -func (r stepRateLimitActions) FindMany( - params ...StepRateLimitWhereParam, -) stepRateLimitFindMany { - var v stepRateLimitFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "StepRateLimit" - v.query.Outputs = stepRateLimitOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowRunToGetGroupKeyRunFindMany) with() {} +func (r workflowRunToGetGroupKeyRunFindMany) workflowRunModel() {} +func (r workflowRunToGetGroupKeyRunFindMany) workflowRunRelation() {} -func (r stepRateLimitFindMany) With(params ...StepRateLimitRelationWith) stepRateLimitFindMany { +func (r workflowRunToGetGroupKeyRunFindMany) With(params ...GetGroupKeyRunRelationWith) workflowRunToGetGroupKeyRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -308305,7 +333212,7 @@ func (r stepRateLimitFindMany) With(params ...StepRateLimitRelationWith) stepRat return r } -func (r stepRateLimitFindMany) Select(params ...stepRateLimitPrismaFields) stepRateLimitFindMany { +func (r workflowRunToGetGroupKeyRunFindMany) Select(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindMany { var outputs []builder.Output for _, param := range params { @@ -308319,7 +333226,7 @@ func (r stepRateLimitFindMany) Select(params ...stepRateLimitPrismaFields) stepR return r } -func (r stepRateLimitFindMany) Omit(params ...stepRateLimitPrismaFields) stepRateLimitFindMany { +func (r workflowRunToGetGroupKeyRunFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindMany { var outputs []builder.Output var raw []string @@ -308327,7 +333234,7 @@ func (r stepRateLimitFindMany) Omit(params ...stepRateLimitPrismaFields) stepRat raw = append(raw, string(param)) } - for _, output := range stepRateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -308338,7 +333245,7 @@ func (r stepRateLimitFindMany) Omit(params ...stepRateLimitPrismaFields) stepRat return r } -func (r stepRateLimitFindMany) OrderBy(params ...StepRateLimitOrderByParam) stepRateLimitFindMany { +func (r workflowRunToGetGroupKeyRunFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) workflowRunToGetGroupKeyRunFindMany { var fields []builder.Field for _, param := range params { @@ -308358,7 +333265,7 @@ func (r stepRateLimitFindMany) OrderBy(params ...StepRateLimitOrderByParam) step return r } -func (r stepRateLimitFindMany) Skip(count int) stepRateLimitFindMany { +func (r workflowRunToGetGroupKeyRunFindMany) Skip(count int) workflowRunToGetGroupKeyRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -308366,7 +333273,7 @@ func (r stepRateLimitFindMany) Skip(count int) stepRateLimitFindMany { return r } -func (r stepRateLimitFindMany) Take(count int) stepRateLimitFindMany { +func (r workflowRunToGetGroupKeyRunFindMany) Take(count int) workflowRunToGetGroupKeyRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -308374,7 +333281,7 @@ func (r stepRateLimitFindMany) Take(count int) stepRateLimitFindMany { return r } -func (r stepRateLimitFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateLimitFindMany { +func (r workflowRunToGetGroupKeyRunFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToGetGroupKeyRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -308382,11 +333289,11 @@ func (r stepRateLimitFindMany) Cursor(cursor StepRateLimitCursorParam) stepRateL return r } -func (r stepRateLimitFindMany) Exec(ctx context.Context) ( - []StepRateLimitModel, +func (r workflowRunToGetGroupKeyRunFindMany) Exec(ctx context.Context) ( + []WorkflowRunModel, error, ) { - var v []StepRateLimitModel + var v []WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308394,11 +333301,11 @@ func (r stepRateLimitFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRateLimitFindMany) ExecInner(ctx context.Context) ( - []InnerStepRateLimit, +func (r workflowRunToGetGroupKeyRunFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRun, error, ) { - var v []InnerStepRateLimit + var v []InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308406,14 +333313,14 @@ func (r stepRateLimitFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRateLimitFindMany) Update(params ...StepRateLimitSetParam) stepRateLimitUpdateMany { +func (r workflowRunToGetGroupKeyRunFindMany) Update(params ...WorkflowRunSetParam) workflowRunToGetGroupKeyRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRateLimit" + r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v stepRateLimitUpdateMany + var v workflowRunToGetGroupKeyRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -308442,17 +333349,17 @@ func (r stepRateLimitFindMany) Update(params ...StepRateLimitSetParam) stepRateL return v } -type stepRateLimitUpdateMany struct { +type workflowRunToGetGroupKeyRunUpdateMany struct { query builder.Query } -func (r stepRateLimitUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRateLimitUpdateMany) stepRateLimitModel() {} +func (r workflowRunToGetGroupKeyRunUpdateMany) workflowRunModel() {} -func (r stepRateLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToGetGroupKeyRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -308460,36 +333367,36 @@ func (r stepRateLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepRateLimitUpdateMany) Tx() StepRateLimitManyTxResult { - v := newStepRateLimitManyTxResult() +func (r workflowRunToGetGroupKeyRunUpdateMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRateLimitFindMany) Delete() stepRateLimitDeleteMany { - var v stepRateLimitDeleteMany +func (r workflowRunToGetGroupKeyRunFindMany) Delete() workflowRunToGetGroupKeyRunDeleteMany { + var v workflowRunToGetGroupKeyRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRateLimit" + v.query.Model = "WorkflowRun" v.query.Outputs = countOutput return v } -type stepRateLimitDeleteMany struct { +type workflowRunToGetGroupKeyRunDeleteMany struct { query builder.Query } -func (r stepRateLimitDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToGetGroupKeyRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRateLimitDeleteMany) stepRateLimitModel() {} +func (p workflowRunToGetGroupKeyRunDeleteMany) workflowRunModel() {} -func (r stepRateLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToGetGroupKeyRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -308497,30 +333404,30 @@ func (r stepRateLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepRateLimitDeleteMany) Tx() StepRateLimitManyTxResult { - v := newStepRateLimitManyTxResult() +func (r workflowRunToGetGroupKeyRunDeleteMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type rateLimitToTenantFindUnique struct { +type workflowRunToJobRunsFindUnique struct { query builder.Query } -func (r rateLimitToTenantFindUnique) getQuery() builder.Query { +func (r workflowRunToJobRunsFindUnique) getQuery() builder.Query { return r.query } -func (r rateLimitToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToJobRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToTenantFindUnique) with() {} -func (r rateLimitToTenantFindUnique) rateLimitModel() {} -func (r rateLimitToTenantFindUnique) rateLimitRelation() {} +func (r workflowRunToJobRunsFindUnique) with() {} +func (r workflowRunToJobRunsFindUnique) workflowRunModel() {} +func (r workflowRunToJobRunsFindUnique) workflowRunRelation() {} -func (r rateLimitToTenantFindUnique) With(params ...TenantRelationWith) rateLimitToTenantFindUnique { +func (r workflowRunToJobRunsFindUnique) With(params ...JobRunRelationWith) workflowRunToJobRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -308533,7 +333440,7 @@ func (r rateLimitToTenantFindUnique) With(params ...TenantRelationWith) rateLimi return r } -func (r rateLimitToTenantFindUnique) Select(params ...rateLimitPrismaFields) rateLimitToTenantFindUnique { +func (r workflowRunToJobRunsFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToJobRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -308547,7 +333454,7 @@ func (r rateLimitToTenantFindUnique) Select(params ...rateLimitPrismaFields) rat return r } -func (r rateLimitToTenantFindUnique) Omit(params ...rateLimitPrismaFields) rateLimitToTenantFindUnique { +func (r workflowRunToJobRunsFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToJobRunsFindUnique { var outputs []builder.Output var raw []string @@ -308555,7 +333462,7 @@ func (r rateLimitToTenantFindUnique) Omit(params ...rateLimitPrismaFields) rateL raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -308566,11 +333473,11 @@ func (r rateLimitToTenantFindUnique) Omit(params ...rateLimitPrismaFields) rateL return r } -func (r rateLimitToTenantFindUnique) Exec(ctx context.Context) ( - *RateLimitModel, +func (r workflowRunToJobRunsFindUnique) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *RateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308582,11 +333489,11 @@ func (r rateLimitToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerRateLimit, +func (r workflowRunToJobRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308598,12 +333505,12 @@ func (r rateLimitToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r rateLimitToTenantFindUnique) Update(params ...RateLimitSetParam) rateLimitToTenantUpdateUnique { +func (r workflowRunToJobRunsFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToJobRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "RateLimit" + r.query.Model = "WorkflowRun" - var v rateLimitToTenantUpdateUnique + var v workflowRunToJobRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -308632,83 +333539,83 @@ func (r rateLimitToTenantFindUnique) Update(params ...RateLimitSetParam) rateLim return v } -type rateLimitToTenantUpdateUnique struct { +type workflowRunToJobRunsUpdateUnique struct { query builder.Query } -func (r rateLimitToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToJobRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToTenantUpdateUnique) rateLimitModel() {} +func (r workflowRunToJobRunsUpdateUnique) workflowRunModel() {} -func (r rateLimitToTenantUpdateUnique) Exec(ctx context.Context) (*RateLimitModel, error) { - var v RateLimitModel +func (r workflowRunToJobRunsUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r rateLimitToTenantUpdateUnique) Tx() RateLimitUniqueTxResult { - v := newRateLimitUniqueTxResult() +func (r workflowRunToJobRunsUpdateUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r rateLimitToTenantFindUnique) Delete() rateLimitToTenantDeleteUnique { - var v rateLimitToTenantDeleteUnique +func (r workflowRunToJobRunsFindUnique) Delete() workflowRunToJobRunsDeleteUnique { + var v workflowRunToJobRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "RateLimit" + v.query.Model = "WorkflowRun" return v } -type rateLimitToTenantDeleteUnique struct { +type workflowRunToJobRunsDeleteUnique struct { query builder.Query } -func (r rateLimitToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToJobRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p rateLimitToTenantDeleteUnique) rateLimitModel() {} +func (p workflowRunToJobRunsDeleteUnique) workflowRunModel() {} -func (r rateLimitToTenantDeleteUnique) Exec(ctx context.Context) (*RateLimitModel, error) { - var v RateLimitModel +func (r workflowRunToJobRunsDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r rateLimitToTenantDeleteUnique) Tx() RateLimitUniqueTxResult { - v := newRateLimitUniqueTxResult() +func (r workflowRunToJobRunsDeleteUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type rateLimitToTenantFindFirst struct { +type workflowRunToJobRunsFindFirst struct { query builder.Query } -func (r rateLimitToTenantFindFirst) getQuery() builder.Query { +func (r workflowRunToJobRunsFindFirst) getQuery() builder.Query { return r.query } -func (r rateLimitToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToJobRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToTenantFindFirst) with() {} -func (r rateLimitToTenantFindFirst) rateLimitModel() {} -func (r rateLimitToTenantFindFirst) rateLimitRelation() {} +func (r workflowRunToJobRunsFindFirst) with() {} +func (r workflowRunToJobRunsFindFirst) workflowRunModel() {} +func (r workflowRunToJobRunsFindFirst) workflowRunRelation() {} -func (r rateLimitToTenantFindFirst) With(params ...TenantRelationWith) rateLimitToTenantFindFirst { +func (r workflowRunToJobRunsFindFirst) With(params ...JobRunRelationWith) workflowRunToJobRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -308721,7 +333628,7 @@ func (r rateLimitToTenantFindFirst) With(params ...TenantRelationWith) rateLimit return r } -func (r rateLimitToTenantFindFirst) Select(params ...rateLimitPrismaFields) rateLimitToTenantFindFirst { +func (r workflowRunToJobRunsFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToJobRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -308735,7 +333642,7 @@ func (r rateLimitToTenantFindFirst) Select(params ...rateLimitPrismaFields) rate return r } -func (r rateLimitToTenantFindFirst) Omit(params ...rateLimitPrismaFields) rateLimitToTenantFindFirst { +func (r workflowRunToJobRunsFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToJobRunsFindFirst { var outputs []builder.Output var raw []string @@ -308743,7 +333650,7 @@ func (r rateLimitToTenantFindFirst) Omit(params ...rateLimitPrismaFields) rateLi raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -308754,7 +333661,7 @@ func (r rateLimitToTenantFindFirst) Omit(params ...rateLimitPrismaFields) rateLi return r } -func (r rateLimitToTenantFindFirst) OrderBy(params ...TenantOrderByParam) rateLimitToTenantFindFirst { +func (r workflowRunToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) workflowRunToJobRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -308774,7 +333681,7 @@ func (r rateLimitToTenantFindFirst) OrderBy(params ...TenantOrderByParam) rateLi return r } -func (r rateLimitToTenantFindFirst) Skip(count int) rateLimitToTenantFindFirst { +func (r workflowRunToJobRunsFindFirst) Skip(count int) workflowRunToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -308782,7 +333689,7 @@ func (r rateLimitToTenantFindFirst) Skip(count int) rateLimitToTenantFindFirst { return r } -func (r rateLimitToTenantFindFirst) Take(count int) rateLimitToTenantFindFirst { +func (r workflowRunToJobRunsFindFirst) Take(count int) workflowRunToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -308790,7 +333697,7 @@ func (r rateLimitToTenantFindFirst) Take(count int) rateLimitToTenantFindFirst { return r } -func (r rateLimitToTenantFindFirst) Cursor(cursor RateLimitCursorParam) rateLimitToTenantFindFirst { +func (r workflowRunToJobRunsFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -308798,11 +333705,11 @@ func (r rateLimitToTenantFindFirst) Cursor(cursor RateLimitCursorParam) rateLimi return r } -func (r rateLimitToTenantFindFirst) Exec(ctx context.Context) ( - *RateLimitModel, +func (r workflowRunToJobRunsFindFirst) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *RateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308814,11 +333721,11 @@ func (r rateLimitToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerRateLimit, +func (r workflowRunToJobRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308830,23 +333737,23 @@ func (r rateLimitToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type rateLimitToTenantFindMany struct { +type workflowRunToJobRunsFindMany struct { query builder.Query } -func (r rateLimitToTenantFindMany) getQuery() builder.Query { +func (r workflowRunToJobRunsFindMany) getQuery() builder.Query { return r.query } -func (r rateLimitToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowRunToJobRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToTenantFindMany) with() {} -func (r rateLimitToTenantFindMany) rateLimitModel() {} -func (r rateLimitToTenantFindMany) rateLimitRelation() {} +func (r workflowRunToJobRunsFindMany) with() {} +func (r workflowRunToJobRunsFindMany) workflowRunModel() {} +func (r workflowRunToJobRunsFindMany) workflowRunRelation() {} -func (r rateLimitToTenantFindMany) With(params ...TenantRelationWith) rateLimitToTenantFindMany { +func (r workflowRunToJobRunsFindMany) With(params ...JobRunRelationWith) workflowRunToJobRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -308859,7 +333766,7 @@ func (r rateLimitToTenantFindMany) With(params ...TenantRelationWith) rateLimitT return r } -func (r rateLimitToTenantFindMany) Select(params ...rateLimitPrismaFields) rateLimitToTenantFindMany { +func (r workflowRunToJobRunsFindMany) Select(params ...workflowRunPrismaFields) workflowRunToJobRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -308873,7 +333780,7 @@ func (r rateLimitToTenantFindMany) Select(params ...rateLimitPrismaFields) rateL return r } -func (r rateLimitToTenantFindMany) Omit(params ...rateLimitPrismaFields) rateLimitToTenantFindMany { +func (r workflowRunToJobRunsFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToJobRunsFindMany { var outputs []builder.Output var raw []string @@ -308881,7 +333788,7 @@ func (r rateLimitToTenantFindMany) Omit(params ...rateLimitPrismaFields) rateLim raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -308892,7 +333799,7 @@ func (r rateLimitToTenantFindMany) Omit(params ...rateLimitPrismaFields) rateLim return r } -func (r rateLimitToTenantFindMany) OrderBy(params ...TenantOrderByParam) rateLimitToTenantFindMany { +func (r workflowRunToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) workflowRunToJobRunsFindMany { var fields []builder.Field for _, param := range params { @@ -308912,7 +333819,7 @@ func (r rateLimitToTenantFindMany) OrderBy(params ...TenantOrderByParam) rateLim return r } -func (r rateLimitToTenantFindMany) Skip(count int) rateLimitToTenantFindMany { +func (r workflowRunToJobRunsFindMany) Skip(count int) workflowRunToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -308920,7 +333827,7 @@ func (r rateLimitToTenantFindMany) Skip(count int) rateLimitToTenantFindMany { return r } -func (r rateLimitToTenantFindMany) Take(count int) rateLimitToTenantFindMany { +func (r workflowRunToJobRunsFindMany) Take(count int) workflowRunToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -308928,7 +333835,7 @@ func (r rateLimitToTenantFindMany) Take(count int) rateLimitToTenantFindMany { return r } -func (r rateLimitToTenantFindMany) Cursor(cursor RateLimitCursorParam) rateLimitToTenantFindMany { +func (r workflowRunToJobRunsFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -308936,11 +333843,11 @@ func (r rateLimitToTenantFindMany) Cursor(cursor RateLimitCursorParam) rateLimit return r } -func (r rateLimitToTenantFindMany) Exec(ctx context.Context) ( - []RateLimitModel, +func (r workflowRunToJobRunsFindMany) Exec(ctx context.Context) ( + []WorkflowRunModel, error, ) { - var v []RateLimitModel + var v []WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308948,11 +333855,11 @@ func (r rateLimitToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerRateLimit, +func (r workflowRunToJobRunsFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRun, error, ) { - var v []InnerRateLimit + var v []InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -308960,14 +333867,14 @@ func (r rateLimitToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r rateLimitToTenantFindMany) Update(params ...RateLimitSetParam) rateLimitToTenantUpdateMany { +func (r workflowRunToJobRunsFindMany) Update(params ...WorkflowRunSetParam) workflowRunToJobRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "RateLimit" + r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v rateLimitToTenantUpdateMany + var v workflowRunToJobRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -308996,17 +333903,17 @@ func (r rateLimitToTenantFindMany) Update(params ...RateLimitSetParam) rateLimit return v } -type rateLimitToTenantUpdateMany struct { +type workflowRunToJobRunsUpdateMany struct { query builder.Query } -func (r rateLimitToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToJobRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToTenantUpdateMany) rateLimitModel() {} +func (r workflowRunToJobRunsUpdateMany) workflowRunModel() {} -func (r rateLimitToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -309014,36 +333921,36 @@ func (r rateLimitToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r rateLimitToTenantUpdateMany) Tx() RateLimitManyTxResult { - v := newRateLimitManyTxResult() +func (r workflowRunToJobRunsUpdateMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r rateLimitToTenantFindMany) Delete() rateLimitToTenantDeleteMany { - var v rateLimitToTenantDeleteMany +func (r workflowRunToJobRunsFindMany) Delete() workflowRunToJobRunsDeleteMany { + var v workflowRunToJobRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "RateLimit" + v.query.Model = "WorkflowRun" v.query.Outputs = countOutput return v } -type rateLimitToTenantDeleteMany struct { +type workflowRunToJobRunsDeleteMany struct { query builder.Query } -func (r rateLimitToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToJobRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p rateLimitToTenantDeleteMany) rateLimitModel() {} +func (p workflowRunToJobRunsDeleteMany) workflowRunModel() {} -func (r rateLimitToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -309051,30 +333958,30 @@ func (r rateLimitToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r rateLimitToTenantDeleteMany) Tx() RateLimitManyTxResult { - v := newRateLimitManyTxResult() +func (r workflowRunToJobRunsDeleteMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type rateLimitToStepRunLimitsFindUnique struct { +type workflowRunToTriggeredByFindUnique struct { query builder.Query } -func (r rateLimitToStepRunLimitsFindUnique) getQuery() builder.Query { +func (r workflowRunToTriggeredByFindUnique) getQuery() builder.Query { return r.query } -func (r rateLimitToStepRunLimitsFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToTriggeredByFindUnique) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToStepRunLimitsFindUnique) with() {} -func (r rateLimitToStepRunLimitsFindUnique) rateLimitModel() {} -func (r rateLimitToStepRunLimitsFindUnique) rateLimitRelation() {} +func (r workflowRunToTriggeredByFindUnique) with() {} +func (r workflowRunToTriggeredByFindUnique) workflowRunModel() {} +func (r workflowRunToTriggeredByFindUnique) workflowRunRelation() {} -func (r rateLimitToStepRunLimitsFindUnique) With(params ...StepRateLimitRelationWith) rateLimitToStepRunLimitsFindUnique { +func (r workflowRunToTriggeredByFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunToTriggeredByFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -309087,7 +333994,7 @@ func (r rateLimitToStepRunLimitsFindUnique) With(params ...StepRateLimitRelation return r } -func (r rateLimitToStepRunLimitsFindUnique) Select(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindUnique { +func (r workflowRunToTriggeredByFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindUnique { var outputs []builder.Output for _, param := range params { @@ -309101,7 +334008,7 @@ func (r rateLimitToStepRunLimitsFindUnique) Select(params ...rateLimitPrismaFiel return r } -func (r rateLimitToStepRunLimitsFindUnique) Omit(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindUnique { +func (r workflowRunToTriggeredByFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindUnique { var outputs []builder.Output var raw []string @@ -309109,7 +334016,7 @@ func (r rateLimitToStepRunLimitsFindUnique) Omit(params ...rateLimitPrismaFields raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -309120,11 +334027,11 @@ func (r rateLimitToStepRunLimitsFindUnique) Omit(params ...rateLimitPrismaFields return r } -func (r rateLimitToStepRunLimitsFindUnique) Exec(ctx context.Context) ( - *RateLimitModel, +func (r workflowRunToTriggeredByFindUnique) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *RateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309136,11 +334043,11 @@ func (r rateLimitToStepRunLimitsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitToStepRunLimitsFindUnique) ExecInner(ctx context.Context) ( - *InnerRateLimit, +func (r workflowRunToTriggeredByFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309152,12 +334059,12 @@ func (r rateLimitToStepRunLimitsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r rateLimitToStepRunLimitsFindUnique) Update(params ...RateLimitSetParam) rateLimitToStepRunLimitsUpdateUnique { +func (r workflowRunToTriggeredByFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToTriggeredByUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "RateLimit" + r.query.Model = "WorkflowRun" - var v rateLimitToStepRunLimitsUpdateUnique + var v workflowRunToTriggeredByUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -309186,83 +334093,83 @@ func (r rateLimitToStepRunLimitsFindUnique) Update(params ...RateLimitSetParam) return v } -type rateLimitToStepRunLimitsUpdateUnique struct { +type workflowRunToTriggeredByUpdateUnique struct { query builder.Query } -func (r rateLimitToStepRunLimitsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToTriggeredByUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToStepRunLimitsUpdateUnique) rateLimitModel() {} +func (r workflowRunToTriggeredByUpdateUnique) workflowRunModel() {} -func (r rateLimitToStepRunLimitsUpdateUnique) Exec(ctx context.Context) (*RateLimitModel, error) { - var v RateLimitModel +func (r workflowRunToTriggeredByUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r rateLimitToStepRunLimitsUpdateUnique) Tx() RateLimitUniqueTxResult { - v := newRateLimitUniqueTxResult() +func (r workflowRunToTriggeredByUpdateUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r rateLimitToStepRunLimitsFindUnique) Delete() rateLimitToStepRunLimitsDeleteUnique { - var v rateLimitToStepRunLimitsDeleteUnique +func (r workflowRunToTriggeredByFindUnique) Delete() workflowRunToTriggeredByDeleteUnique { + var v workflowRunToTriggeredByDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "RateLimit" + v.query.Model = "WorkflowRun" return v } -type rateLimitToStepRunLimitsDeleteUnique struct { +type workflowRunToTriggeredByDeleteUnique struct { query builder.Query } -func (r rateLimitToStepRunLimitsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToTriggeredByDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p rateLimitToStepRunLimitsDeleteUnique) rateLimitModel() {} +func (p workflowRunToTriggeredByDeleteUnique) workflowRunModel() {} -func (r rateLimitToStepRunLimitsDeleteUnique) Exec(ctx context.Context) (*RateLimitModel, error) { - var v RateLimitModel +func (r workflowRunToTriggeredByDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r rateLimitToStepRunLimitsDeleteUnique) Tx() RateLimitUniqueTxResult { - v := newRateLimitUniqueTxResult() +func (r workflowRunToTriggeredByDeleteUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type rateLimitToStepRunLimitsFindFirst struct { +type workflowRunToTriggeredByFindFirst struct { query builder.Query } -func (r rateLimitToStepRunLimitsFindFirst) getQuery() builder.Query { +func (r workflowRunToTriggeredByFindFirst) getQuery() builder.Query { return r.query } -func (r rateLimitToStepRunLimitsFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToTriggeredByFindFirst) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToStepRunLimitsFindFirst) with() {} -func (r rateLimitToStepRunLimitsFindFirst) rateLimitModel() {} -func (r rateLimitToStepRunLimitsFindFirst) rateLimitRelation() {} +func (r workflowRunToTriggeredByFindFirst) with() {} +func (r workflowRunToTriggeredByFindFirst) workflowRunModel() {} +func (r workflowRunToTriggeredByFindFirst) workflowRunRelation() {} -func (r rateLimitToStepRunLimitsFindFirst) With(params ...StepRateLimitRelationWith) rateLimitToStepRunLimitsFindFirst { +func (r workflowRunToTriggeredByFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunToTriggeredByFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -309275,7 +334182,7 @@ func (r rateLimitToStepRunLimitsFindFirst) With(params ...StepRateLimitRelationW return r } -func (r rateLimitToStepRunLimitsFindFirst) Select(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindFirst { +func (r workflowRunToTriggeredByFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindFirst { var outputs []builder.Output for _, param := range params { @@ -309289,7 +334196,7 @@ func (r rateLimitToStepRunLimitsFindFirst) Select(params ...rateLimitPrismaField return r } -func (r rateLimitToStepRunLimitsFindFirst) Omit(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindFirst { +func (r workflowRunToTriggeredByFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindFirst { var outputs []builder.Output var raw []string @@ -309297,7 +334204,7 @@ func (r rateLimitToStepRunLimitsFindFirst) Omit(params ...rateLimitPrismaFields) raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -309308,7 +334215,7 @@ func (r rateLimitToStepRunLimitsFindFirst) Omit(params ...rateLimitPrismaFields) return r } -func (r rateLimitToStepRunLimitsFindFirst) OrderBy(params ...StepRateLimitOrderByParam) rateLimitToStepRunLimitsFindFirst { +func (r workflowRunToTriggeredByFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowRunToTriggeredByFindFirst { var fields []builder.Field for _, param := range params { @@ -309328,7 +334235,7 @@ func (r rateLimitToStepRunLimitsFindFirst) OrderBy(params ...StepRateLimitOrderB return r } -func (r rateLimitToStepRunLimitsFindFirst) Skip(count int) rateLimitToStepRunLimitsFindFirst { +func (r workflowRunToTriggeredByFindFirst) Skip(count int) workflowRunToTriggeredByFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -309336,7 +334243,7 @@ func (r rateLimitToStepRunLimitsFindFirst) Skip(count int) rateLimitToStepRunLim return r } -func (r rateLimitToStepRunLimitsFindFirst) Take(count int) rateLimitToStepRunLimitsFindFirst { +func (r workflowRunToTriggeredByFindFirst) Take(count int) workflowRunToTriggeredByFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -309344,7 +334251,7 @@ func (r rateLimitToStepRunLimitsFindFirst) Take(count int) rateLimitToStepRunLim return r } -func (r rateLimitToStepRunLimitsFindFirst) Cursor(cursor RateLimitCursorParam) rateLimitToStepRunLimitsFindFirst { +func (r workflowRunToTriggeredByFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToTriggeredByFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -309352,11 +334259,11 @@ func (r rateLimitToStepRunLimitsFindFirst) Cursor(cursor RateLimitCursorParam) r return r } -func (r rateLimitToStepRunLimitsFindFirst) Exec(ctx context.Context) ( - *RateLimitModel, +func (r workflowRunToTriggeredByFindFirst) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *RateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309368,11 +334275,11 @@ func (r rateLimitToStepRunLimitsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitToStepRunLimitsFindFirst) ExecInner(ctx context.Context) ( - *InnerRateLimit, +func (r workflowRunToTriggeredByFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309384,23 +334291,23 @@ func (r rateLimitToStepRunLimitsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type rateLimitToStepRunLimitsFindMany struct { +type workflowRunToTriggeredByFindMany struct { query builder.Query } -func (r rateLimitToStepRunLimitsFindMany) getQuery() builder.Query { +func (r workflowRunToTriggeredByFindMany) getQuery() builder.Query { return r.query } -func (r rateLimitToStepRunLimitsFindMany) ExtractQuery() builder.Query { +func (r workflowRunToTriggeredByFindMany) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToStepRunLimitsFindMany) with() {} -func (r rateLimitToStepRunLimitsFindMany) rateLimitModel() {} -func (r rateLimitToStepRunLimitsFindMany) rateLimitRelation() {} +func (r workflowRunToTriggeredByFindMany) with() {} +func (r workflowRunToTriggeredByFindMany) workflowRunModel() {} +func (r workflowRunToTriggeredByFindMany) workflowRunRelation() {} -func (r rateLimitToStepRunLimitsFindMany) With(params ...StepRateLimitRelationWith) rateLimitToStepRunLimitsFindMany { +func (r workflowRunToTriggeredByFindMany) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunToTriggeredByFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -309413,7 +334320,7 @@ func (r rateLimitToStepRunLimitsFindMany) With(params ...StepRateLimitRelationWi return r } -func (r rateLimitToStepRunLimitsFindMany) Select(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindMany { +func (r workflowRunToTriggeredByFindMany) Select(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindMany { var outputs []builder.Output for _, param := range params { @@ -309427,7 +334334,7 @@ func (r rateLimitToStepRunLimitsFindMany) Select(params ...rateLimitPrismaFields return r } -func (r rateLimitToStepRunLimitsFindMany) Omit(params ...rateLimitPrismaFields) rateLimitToStepRunLimitsFindMany { +func (r workflowRunToTriggeredByFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindMany { var outputs []builder.Output var raw []string @@ -309435,7 +334342,7 @@ func (r rateLimitToStepRunLimitsFindMany) Omit(params ...rateLimitPrismaFields) raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -309446,7 +334353,7 @@ func (r rateLimitToStepRunLimitsFindMany) Omit(params ...rateLimitPrismaFields) return r } -func (r rateLimitToStepRunLimitsFindMany) OrderBy(params ...StepRateLimitOrderByParam) rateLimitToStepRunLimitsFindMany { +func (r workflowRunToTriggeredByFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowRunToTriggeredByFindMany { var fields []builder.Field for _, param := range params { @@ -309466,7 +334373,7 @@ func (r rateLimitToStepRunLimitsFindMany) OrderBy(params ...StepRateLimitOrderBy return r } -func (r rateLimitToStepRunLimitsFindMany) Skip(count int) rateLimitToStepRunLimitsFindMany { +func (r workflowRunToTriggeredByFindMany) Skip(count int) workflowRunToTriggeredByFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -309474,7 +334381,7 @@ func (r rateLimitToStepRunLimitsFindMany) Skip(count int) rateLimitToStepRunLimi return r } -func (r rateLimitToStepRunLimitsFindMany) Take(count int) rateLimitToStepRunLimitsFindMany { +func (r workflowRunToTriggeredByFindMany) Take(count int) workflowRunToTriggeredByFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -309482,7 +334389,7 @@ func (r rateLimitToStepRunLimitsFindMany) Take(count int) rateLimitToStepRunLimi return r } -func (r rateLimitToStepRunLimitsFindMany) Cursor(cursor RateLimitCursorParam) rateLimitToStepRunLimitsFindMany { +func (r workflowRunToTriggeredByFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToTriggeredByFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -309490,11 +334397,11 @@ func (r rateLimitToStepRunLimitsFindMany) Cursor(cursor RateLimitCursorParam) ra return r } -func (r rateLimitToStepRunLimitsFindMany) Exec(ctx context.Context) ( - []RateLimitModel, +func (r workflowRunToTriggeredByFindMany) Exec(ctx context.Context) ( + []WorkflowRunModel, error, ) { - var v []RateLimitModel + var v []WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309502,11 +334409,11 @@ func (r rateLimitToStepRunLimitsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitToStepRunLimitsFindMany) ExecInner(ctx context.Context) ( - []InnerRateLimit, +func (r workflowRunToTriggeredByFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRun, error, ) { - var v []InnerRateLimit + var v []InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309514,14 +334421,14 @@ func (r rateLimitToStepRunLimitsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r rateLimitToStepRunLimitsFindMany) Update(params ...RateLimitSetParam) rateLimitToStepRunLimitsUpdateMany { +func (r workflowRunToTriggeredByFindMany) Update(params ...WorkflowRunSetParam) workflowRunToTriggeredByUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "RateLimit" + r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v rateLimitToStepRunLimitsUpdateMany + var v workflowRunToTriggeredByUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -309550,17 +334457,17 @@ func (r rateLimitToStepRunLimitsFindMany) Update(params ...RateLimitSetParam) ra return v } -type rateLimitToStepRunLimitsUpdateMany struct { +type workflowRunToTriggeredByUpdateMany struct { query builder.Query } -func (r rateLimitToStepRunLimitsUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToTriggeredByUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r rateLimitToStepRunLimitsUpdateMany) rateLimitModel() {} +func (r workflowRunToTriggeredByUpdateMany) workflowRunModel() {} -func (r rateLimitToStepRunLimitsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToTriggeredByUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -309568,36 +334475,36 @@ func (r rateLimitToStepRunLimitsUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r rateLimitToStepRunLimitsUpdateMany) Tx() RateLimitManyTxResult { - v := newRateLimitManyTxResult() +func (r workflowRunToTriggeredByUpdateMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r rateLimitToStepRunLimitsFindMany) Delete() rateLimitToStepRunLimitsDeleteMany { - var v rateLimitToStepRunLimitsDeleteMany +func (r workflowRunToTriggeredByFindMany) Delete() workflowRunToTriggeredByDeleteMany { + var v workflowRunToTriggeredByDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "RateLimit" + v.query.Model = "WorkflowRun" v.query.Outputs = countOutput return v } -type rateLimitToStepRunLimitsDeleteMany struct { +type workflowRunToTriggeredByDeleteMany struct { query builder.Query } -func (r rateLimitToStepRunLimitsDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToTriggeredByDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p rateLimitToStepRunLimitsDeleteMany) rateLimitModel() {} +func (p workflowRunToTriggeredByDeleteMany) workflowRunModel() {} -func (r rateLimitToStepRunLimitsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToTriggeredByDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -309605,52 +334512,30 @@ func (r rateLimitToStepRunLimitsDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r rateLimitToStepRunLimitsDeleteMany) Tx() RateLimitManyTxResult { - v := newRateLimitManyTxResult() +func (r workflowRunToTriggeredByDeleteMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type rateLimitFindUnique struct { +type workflowRunToStickyFindUnique struct { query builder.Query } -func (r rateLimitFindUnique) getQuery() builder.Query { +func (r workflowRunToStickyFindUnique) getQuery() builder.Query { return r.query } -func (r rateLimitFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToStickyFindUnique) ExtractQuery() builder.Query { return r.query } -func (r rateLimitFindUnique) with() {} -func (r rateLimitFindUnique) rateLimitModel() {} -func (r rateLimitFindUnique) rateLimitRelation() {} - -func (r rateLimitActions) FindUnique( - params RateLimitEqualsUniqueWhereParam, -) rateLimitFindUnique { - var v rateLimitFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "RateLimit" - v.query.Outputs = rateLimitOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) +func (r workflowRunToStickyFindUnique) with() {} +func (r workflowRunToStickyFindUnique) workflowRunModel() {} +func (r workflowRunToStickyFindUnique) workflowRunRelation() {} - return v -} - -func (r rateLimitFindUnique) With(params ...RateLimitRelationWith) rateLimitFindUnique { +func (r workflowRunToStickyFindUnique) With(params ...WorkflowRunStickyStateRelationWith) workflowRunToStickyFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -309663,7 +334548,7 @@ func (r rateLimitFindUnique) With(params ...RateLimitRelationWith) rateLimitFind return r } -func (r rateLimitFindUnique) Select(params ...rateLimitPrismaFields) rateLimitFindUnique { +func (r workflowRunToStickyFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToStickyFindUnique { var outputs []builder.Output for _, param := range params { @@ -309677,7 +334562,7 @@ func (r rateLimitFindUnique) Select(params ...rateLimitPrismaFields) rateLimitFi return r } -func (r rateLimitFindUnique) Omit(params ...rateLimitPrismaFields) rateLimitFindUnique { +func (r workflowRunToStickyFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToStickyFindUnique { var outputs []builder.Output var raw []string @@ -309685,7 +334570,7 @@ func (r rateLimitFindUnique) Omit(params ...rateLimitPrismaFields) rateLimitFind raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -309696,11 +334581,11 @@ func (r rateLimitFindUnique) Omit(params ...rateLimitPrismaFields) rateLimitFind return r } -func (r rateLimitFindUnique) Exec(ctx context.Context) ( - *RateLimitModel, +func (r workflowRunToStickyFindUnique) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *RateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309712,11 +334597,11 @@ func (r rateLimitFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitFindUnique) ExecInner(ctx context.Context) ( - *InnerRateLimit, +func (r workflowRunToStickyFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309728,12 +334613,12 @@ func (r rateLimitFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r rateLimitFindUnique) Update(params ...RateLimitSetParam) rateLimitUpdateUnique { +func (r workflowRunToStickyFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToStickyUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "RateLimit" + r.query.Model = "WorkflowRun" - var v rateLimitUpdateUnique + var v workflowRunToStickyUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -309762,120 +334647,83 @@ func (r rateLimitFindUnique) Update(params ...RateLimitSetParam) rateLimitUpdate return v } -type rateLimitUpdateUnique struct { +type workflowRunToStickyUpdateUnique struct { query builder.Query } -func (r rateLimitUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToStickyUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r rateLimitUpdateUnique) rateLimitModel() {} +func (r workflowRunToStickyUpdateUnique) workflowRunModel() {} -func (r rateLimitUpdateUnique) Exec(ctx context.Context) (*RateLimitModel, error) { - var v RateLimitModel +func (r workflowRunToStickyUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r rateLimitUpdateUnique) Tx() RateLimitUniqueTxResult { - v := newRateLimitUniqueTxResult() +func (r workflowRunToStickyUpdateUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r rateLimitFindUnique) Delete() rateLimitDeleteUnique { - var v rateLimitDeleteUnique +func (r workflowRunToStickyFindUnique) Delete() workflowRunToStickyDeleteUnique { + var v workflowRunToStickyDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "RateLimit" + v.query.Model = "WorkflowRun" return v } -type rateLimitDeleteUnique struct { +type workflowRunToStickyDeleteUnique struct { query builder.Query } -func (r rateLimitDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToStickyDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p rateLimitDeleteUnique) rateLimitModel() {} +func (p workflowRunToStickyDeleteUnique) workflowRunModel() {} -func (r rateLimitDeleteUnique) Exec(ctx context.Context) (*RateLimitModel, error) { - var v RateLimitModel +func (r workflowRunToStickyDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { + var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r rateLimitDeleteUnique) Tx() RateLimitUniqueTxResult { - v := newRateLimitUniqueTxResult() +func (r workflowRunToStickyDeleteUnique) Tx() WorkflowRunUniqueTxResult { + v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type rateLimitFindFirst struct { +type workflowRunToStickyFindFirst struct { query builder.Query } -func (r rateLimitFindFirst) getQuery() builder.Query { +func (r workflowRunToStickyFindFirst) getQuery() builder.Query { return r.query } -func (r rateLimitFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToStickyFindFirst) ExtractQuery() builder.Query { return r.query } -func (r rateLimitFindFirst) with() {} -func (r rateLimitFindFirst) rateLimitModel() {} -func (r rateLimitFindFirst) rateLimitRelation() {} - -func (r rateLimitActions) FindFirst( - params ...RateLimitWhereParam, -) rateLimitFindFirst { - var v rateLimitFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "RateLimit" - v.query.Outputs = rateLimitOutput +func (r workflowRunToStickyFindFirst) with() {} +func (r workflowRunToStickyFindFirst) workflowRunModel() {} +func (r workflowRunToStickyFindFirst) workflowRunRelation() {} - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} - -func (r rateLimitFindFirst) With(params ...RateLimitRelationWith) rateLimitFindFirst { +func (r workflowRunToStickyFindFirst) With(params ...WorkflowRunStickyStateRelationWith) workflowRunToStickyFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -309888,7 +334736,7 @@ func (r rateLimitFindFirst) With(params ...RateLimitRelationWith) rateLimitFindF return r } -func (r rateLimitFindFirst) Select(params ...rateLimitPrismaFields) rateLimitFindFirst { +func (r workflowRunToStickyFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToStickyFindFirst { var outputs []builder.Output for _, param := range params { @@ -309902,7 +334750,7 @@ func (r rateLimitFindFirst) Select(params ...rateLimitPrismaFields) rateLimitFin return r } -func (r rateLimitFindFirst) Omit(params ...rateLimitPrismaFields) rateLimitFindFirst { +func (r workflowRunToStickyFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToStickyFindFirst { var outputs []builder.Output var raw []string @@ -309910,7 +334758,7 @@ func (r rateLimitFindFirst) Omit(params ...rateLimitPrismaFields) rateLimitFindF raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -309921,7 +334769,7 @@ func (r rateLimitFindFirst) Omit(params ...rateLimitPrismaFields) rateLimitFindF return r } -func (r rateLimitFindFirst) OrderBy(params ...RateLimitOrderByParam) rateLimitFindFirst { +func (r workflowRunToStickyFindFirst) OrderBy(params ...WorkflowRunStickyStateOrderByParam) workflowRunToStickyFindFirst { var fields []builder.Field for _, param := range params { @@ -309941,7 +334789,7 @@ func (r rateLimitFindFirst) OrderBy(params ...RateLimitOrderByParam) rateLimitFi return r } -func (r rateLimitFindFirst) Skip(count int) rateLimitFindFirst { +func (r workflowRunToStickyFindFirst) Skip(count int) workflowRunToStickyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -309949,7 +334797,7 @@ func (r rateLimitFindFirst) Skip(count int) rateLimitFindFirst { return r } -func (r rateLimitFindFirst) Take(count int) rateLimitFindFirst { +func (r workflowRunToStickyFindFirst) Take(count int) workflowRunToStickyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -309957,7 +334805,7 @@ func (r rateLimitFindFirst) Take(count int) rateLimitFindFirst { return r } -func (r rateLimitFindFirst) Cursor(cursor RateLimitCursorParam) rateLimitFindFirst { +func (r workflowRunToStickyFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToStickyFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -309965,11 +334813,11 @@ func (r rateLimitFindFirst) Cursor(cursor RateLimitCursorParam) rateLimitFindFir return r } -func (r rateLimitFindFirst) Exec(ctx context.Context) ( - *RateLimitModel, +func (r workflowRunToStickyFindFirst) Exec(ctx context.Context) ( + *WorkflowRunModel, error, ) { - var v *RateLimitModel + var v *WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309981,11 +334829,11 @@ func (r rateLimitFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitFindFirst) ExecInner(ctx context.Context) ( - *InnerRateLimit, +func (r workflowRunToStickyFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRun, error, ) { - var v *InnerRateLimit + var v *InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -309997,60 +334845,23 @@ func (r rateLimitFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type rateLimitFindMany struct { +type workflowRunToStickyFindMany struct { query builder.Query } -func (r rateLimitFindMany) getQuery() builder.Query { +func (r workflowRunToStickyFindMany) getQuery() builder.Query { return r.query } -func (r rateLimitFindMany) ExtractQuery() builder.Query { +func (r workflowRunToStickyFindMany) ExtractQuery() builder.Query { return r.query } -func (r rateLimitFindMany) with() {} -func (r rateLimitFindMany) rateLimitModel() {} -func (r rateLimitFindMany) rateLimitRelation() {} - -func (r rateLimitActions) FindMany( - params ...RateLimitWhereParam, -) rateLimitFindMany { - var v rateLimitFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" +func (r workflowRunToStickyFindMany) with() {} +func (r workflowRunToStickyFindMany) workflowRunModel() {} +func (r workflowRunToStickyFindMany) workflowRunRelation() {} - v.query.Model = "RateLimit" - v.query.Outputs = rateLimitOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} - -func (r rateLimitFindMany) With(params ...RateLimitRelationWith) rateLimitFindMany { +func (r workflowRunToStickyFindMany) With(params ...WorkflowRunStickyStateRelationWith) workflowRunToStickyFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -310063,7 +334874,7 @@ func (r rateLimitFindMany) With(params ...RateLimitRelationWith) rateLimitFindMa return r } -func (r rateLimitFindMany) Select(params ...rateLimitPrismaFields) rateLimitFindMany { +func (r workflowRunToStickyFindMany) Select(params ...workflowRunPrismaFields) workflowRunToStickyFindMany { var outputs []builder.Output for _, param := range params { @@ -310077,7 +334888,7 @@ func (r rateLimitFindMany) Select(params ...rateLimitPrismaFields) rateLimitFind return r } -func (r rateLimitFindMany) Omit(params ...rateLimitPrismaFields) rateLimitFindMany { +func (r workflowRunToStickyFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToStickyFindMany { var outputs []builder.Output var raw []string @@ -310085,7 +334896,7 @@ func (r rateLimitFindMany) Omit(params ...rateLimitPrismaFields) rateLimitFindMa raw = append(raw, string(param)) } - for _, output := range rateLimitOutput { + for _, output := range workflowRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -310096,7 +334907,7 @@ func (r rateLimitFindMany) Omit(params ...rateLimitPrismaFields) rateLimitFindMa return r } -func (r rateLimitFindMany) OrderBy(params ...RateLimitOrderByParam) rateLimitFindMany { +func (r workflowRunToStickyFindMany) OrderBy(params ...WorkflowRunStickyStateOrderByParam) workflowRunToStickyFindMany { var fields []builder.Field for _, param := range params { @@ -310116,7 +334927,7 @@ func (r rateLimitFindMany) OrderBy(params ...RateLimitOrderByParam) rateLimitFin return r } -func (r rateLimitFindMany) Skip(count int) rateLimitFindMany { +func (r workflowRunToStickyFindMany) Skip(count int) workflowRunToStickyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -310124,7 +334935,7 @@ func (r rateLimitFindMany) Skip(count int) rateLimitFindMany { return r } -func (r rateLimitFindMany) Take(count int) rateLimitFindMany { +func (r workflowRunToStickyFindMany) Take(count int) workflowRunToStickyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -310132,7 +334943,7 @@ func (r rateLimitFindMany) Take(count int) rateLimitFindMany { return r } -func (r rateLimitFindMany) Cursor(cursor RateLimitCursorParam) rateLimitFindMany { +func (r workflowRunToStickyFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToStickyFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -310140,11 +334951,11 @@ func (r rateLimitFindMany) Cursor(cursor RateLimitCursorParam) rateLimitFindMany return r } -func (r rateLimitFindMany) Exec(ctx context.Context) ( - []RateLimitModel, +func (r workflowRunToStickyFindMany) Exec(ctx context.Context) ( + []WorkflowRunModel, error, ) { - var v []RateLimitModel + var v []WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -310152,11 +334963,11 @@ func (r rateLimitFindMany) Exec(ctx context.Context) ( return v, nil } -func (r rateLimitFindMany) ExecInner(ctx context.Context) ( - []InnerRateLimit, +func (r workflowRunToStickyFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRun, error, ) { - var v []InnerRateLimit + var v []InnerWorkflowRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -310164,14 +334975,14 @@ func (r rateLimitFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r rateLimitFindMany) Update(params ...RateLimitSetParam) rateLimitUpdateMany { +func (r workflowRunToStickyFindMany) Update(params ...WorkflowRunSetParam) workflowRunToStickyUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "RateLimit" + r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v rateLimitUpdateMany + var v workflowRunToStickyUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -310200,17 +335011,17 @@ func (r rateLimitFindMany) Update(params ...RateLimitSetParam) rateLimitUpdateMa return v } -type rateLimitUpdateMany struct { +type workflowRunToStickyUpdateMany struct { query builder.Query } -func (r rateLimitUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToStickyUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r rateLimitUpdateMany) rateLimitModel() {} +func (r workflowRunToStickyUpdateMany) workflowRunModel() {} -func (r rateLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToStickyUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -310218,36 +335029,36 @@ func (r rateLimitUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r rateLimitUpdateMany) Tx() RateLimitManyTxResult { - v := newRateLimitManyTxResult() +func (r workflowRunToStickyUpdateMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r rateLimitFindMany) Delete() rateLimitDeleteMany { - var v rateLimitDeleteMany +func (r workflowRunToStickyFindMany) Delete() workflowRunToStickyDeleteMany { + var v workflowRunToStickyDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "RateLimit" + v.query.Model = "WorkflowRun" v.query.Outputs = countOutput return v } -type rateLimitDeleteMany struct { +type workflowRunToStickyDeleteMany struct { query builder.Query } -func (r rateLimitDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToStickyDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p rateLimitDeleteMany) rateLimitModel() {} +func (p workflowRunToStickyDeleteMany) workflowRunModel() {} -func (r rateLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToStickyDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -310255,30 +335066,30 @@ func (r rateLimitDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r rateLimitDeleteMany) Tx() RateLimitManyTxResult { - v := newRateLimitManyTxResult() +func (r workflowRunToStickyDeleteMany) Tx() WorkflowRunManyTxResult { + v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToTenantFindUnique struct { +type workflowRunToChildrenFindUnique struct { query builder.Query } -func (r workflowRunToTenantFindUnique) getQuery() builder.Query { +func (r workflowRunToChildrenFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToChildrenFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTenantFindUnique) with() {} -func (r workflowRunToTenantFindUnique) workflowRunModel() {} -func (r workflowRunToTenantFindUnique) workflowRunRelation() {} +func (r workflowRunToChildrenFindUnique) with() {} +func (r workflowRunToChildrenFindUnique) workflowRunModel() {} +func (r workflowRunToChildrenFindUnique) workflowRunRelation() {} -func (r workflowRunToTenantFindUnique) With(params ...TenantRelationWith) workflowRunToTenantFindUnique { +func (r workflowRunToChildrenFindUnique) With(params ...WorkflowRunRelationWith) workflowRunToChildrenFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -310291,7 +335102,7 @@ func (r workflowRunToTenantFindUnique) With(params ...TenantRelationWith) workfl return r } -func (r workflowRunToTenantFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToTenantFindUnique { +func (r workflowRunToChildrenFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToChildrenFindUnique { var outputs []builder.Output for _, param := range params { @@ -310305,7 +335116,7 @@ func (r workflowRunToTenantFindUnique) Select(params ...workflowRunPrismaFields) return r } -func (r workflowRunToTenantFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToTenantFindUnique { +func (r workflowRunToChildrenFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToChildrenFindUnique { var outputs []builder.Output var raw []string @@ -310324,7 +335135,7 @@ func (r workflowRunToTenantFindUnique) Omit(params ...workflowRunPrismaFields) w return r } -func (r workflowRunToTenantFindUnique) Exec(ctx context.Context) ( +func (r workflowRunToChildrenFindUnique) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -310340,7 +335151,7 @@ func (r workflowRunToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToTenantFindUnique) ExecInner(ctx context.Context) ( +func (r workflowRunToChildrenFindUnique) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -310356,12 +335167,12 @@ func (r workflowRunToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToTenantFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToTenantUpdateUnique { +func (r workflowRunToChildrenFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToChildrenUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "WorkflowRun" - var v workflowRunToTenantUpdateUnique + var v workflowRunToChildrenUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -310390,17 +335201,17 @@ func (r workflowRunToTenantFindUnique) Update(params ...WorkflowRunSetParam) wor return v } -type workflowRunToTenantUpdateUnique struct { +type workflowRunToChildrenUpdateUnique struct { query builder.Query } -func (r workflowRunToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToChildrenUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTenantUpdateUnique) workflowRunModel() {} +func (r workflowRunToChildrenUpdateUnique) workflowRunModel() {} -func (r workflowRunToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunToChildrenUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -310408,15 +335219,15 @@ func (r workflowRunToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowRun return &v, nil } -func (r workflowRunToTenantUpdateUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunToChildrenUpdateUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToTenantFindUnique) Delete() workflowRunToTenantDeleteUnique { - var v workflowRunToTenantDeleteUnique +func (r workflowRunToChildrenFindUnique) Delete() workflowRunToChildrenDeleteUnique { + var v workflowRunToChildrenDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -310425,17 +335236,17 @@ func (r workflowRunToTenantFindUnique) Delete() workflowRunToTenantDeleteUnique return v } -type workflowRunToTenantDeleteUnique struct { +type workflowRunToChildrenDeleteUnique struct { query builder.Query } -func (r workflowRunToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToChildrenDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToTenantDeleteUnique) workflowRunModel() {} +func (p workflowRunToChildrenDeleteUnique) workflowRunModel() {} -func (r workflowRunToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunToChildrenDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -310443,30 +335254,30 @@ func (r workflowRunToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowRun return &v, nil } -func (r workflowRunToTenantDeleteUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunToChildrenDeleteUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToTenantFindFirst struct { +type workflowRunToChildrenFindFirst struct { query builder.Query } -func (r workflowRunToTenantFindFirst) getQuery() builder.Query { +func (r workflowRunToChildrenFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToChildrenFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTenantFindFirst) with() {} -func (r workflowRunToTenantFindFirst) workflowRunModel() {} -func (r workflowRunToTenantFindFirst) workflowRunRelation() {} +func (r workflowRunToChildrenFindFirst) with() {} +func (r workflowRunToChildrenFindFirst) workflowRunModel() {} +func (r workflowRunToChildrenFindFirst) workflowRunRelation() {} -func (r workflowRunToTenantFindFirst) With(params ...TenantRelationWith) workflowRunToTenantFindFirst { +func (r workflowRunToChildrenFindFirst) With(params ...WorkflowRunRelationWith) workflowRunToChildrenFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -310479,7 +335290,7 @@ func (r workflowRunToTenantFindFirst) With(params ...TenantRelationWith) workflo return r } -func (r workflowRunToTenantFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToTenantFindFirst { +func (r workflowRunToChildrenFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToChildrenFindFirst { var outputs []builder.Output for _, param := range params { @@ -310493,7 +335304,7 @@ func (r workflowRunToTenantFindFirst) Select(params ...workflowRunPrismaFields) return r } -func (r workflowRunToTenantFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToTenantFindFirst { +func (r workflowRunToChildrenFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToChildrenFindFirst { var outputs []builder.Output var raw []string @@ -310512,7 +335323,7 @@ func (r workflowRunToTenantFindFirst) Omit(params ...workflowRunPrismaFields) wo return r } -func (r workflowRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowRunToTenantFindFirst { +func (r workflowRunToChildrenFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunToChildrenFindFirst { var fields []builder.Field for _, param := range params { @@ -310532,7 +335343,7 @@ func (r workflowRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) work return r } -func (r workflowRunToTenantFindFirst) Skip(count int) workflowRunToTenantFindFirst { +func (r workflowRunToChildrenFindFirst) Skip(count int) workflowRunToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -310540,7 +335351,7 @@ func (r workflowRunToTenantFindFirst) Skip(count int) workflowRunToTenantFindFir return r } -func (r workflowRunToTenantFindFirst) Take(count int) workflowRunToTenantFindFirst { +func (r workflowRunToChildrenFindFirst) Take(count int) workflowRunToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -310548,7 +335359,7 @@ func (r workflowRunToTenantFindFirst) Take(count int) workflowRunToTenantFindFir return r } -func (r workflowRunToTenantFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToTenantFindFirst { +func (r workflowRunToChildrenFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -310556,7 +335367,7 @@ func (r workflowRunToTenantFindFirst) Cursor(cursor WorkflowRunCursorParam) work return r } -func (r workflowRunToTenantFindFirst) Exec(ctx context.Context) ( +func (r workflowRunToChildrenFindFirst) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -310572,7 +335383,7 @@ func (r workflowRunToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToTenantFindFirst) ExecInner(ctx context.Context) ( +func (r workflowRunToChildrenFindFirst) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -310588,23 +335399,23 @@ func (r workflowRunToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunToTenantFindMany struct { +type workflowRunToChildrenFindMany struct { query builder.Query } -func (r workflowRunToTenantFindMany) getQuery() builder.Query { +func (r workflowRunToChildrenFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowRunToChildrenFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTenantFindMany) with() {} -func (r workflowRunToTenantFindMany) workflowRunModel() {} -func (r workflowRunToTenantFindMany) workflowRunRelation() {} +func (r workflowRunToChildrenFindMany) with() {} +func (r workflowRunToChildrenFindMany) workflowRunModel() {} +func (r workflowRunToChildrenFindMany) workflowRunRelation() {} -func (r workflowRunToTenantFindMany) With(params ...TenantRelationWith) workflowRunToTenantFindMany { +func (r workflowRunToChildrenFindMany) With(params ...WorkflowRunRelationWith) workflowRunToChildrenFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -310617,7 +335428,7 @@ func (r workflowRunToTenantFindMany) With(params ...TenantRelationWith) workflow return r } -func (r workflowRunToTenantFindMany) Select(params ...workflowRunPrismaFields) workflowRunToTenantFindMany { +func (r workflowRunToChildrenFindMany) Select(params ...workflowRunPrismaFields) workflowRunToChildrenFindMany { var outputs []builder.Output for _, param := range params { @@ -310631,7 +335442,7 @@ func (r workflowRunToTenantFindMany) Select(params ...workflowRunPrismaFields) w return r } -func (r workflowRunToTenantFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToTenantFindMany { +func (r workflowRunToChildrenFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToChildrenFindMany { var outputs []builder.Output var raw []string @@ -310650,7 +335461,7 @@ func (r workflowRunToTenantFindMany) Omit(params ...workflowRunPrismaFields) wor return r } -func (r workflowRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowRunToTenantFindMany { +func (r workflowRunToChildrenFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunToChildrenFindMany { var fields []builder.Field for _, param := range params { @@ -310670,7 +335481,7 @@ func (r workflowRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) workf return r } -func (r workflowRunToTenantFindMany) Skip(count int) workflowRunToTenantFindMany { +func (r workflowRunToChildrenFindMany) Skip(count int) workflowRunToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -310678,7 +335489,7 @@ func (r workflowRunToTenantFindMany) Skip(count int) workflowRunToTenantFindMany return r } -func (r workflowRunToTenantFindMany) Take(count int) workflowRunToTenantFindMany { +func (r workflowRunToChildrenFindMany) Take(count int) workflowRunToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -310686,7 +335497,7 @@ func (r workflowRunToTenantFindMany) Take(count int) workflowRunToTenantFindMany return r } -func (r workflowRunToTenantFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToTenantFindMany { +func (r workflowRunToChildrenFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -310694,7 +335505,7 @@ func (r workflowRunToTenantFindMany) Cursor(cursor WorkflowRunCursorParam) workf return r } -func (r workflowRunToTenantFindMany) Exec(ctx context.Context) ( +func (r workflowRunToChildrenFindMany) Exec(ctx context.Context) ( []WorkflowRunModel, error, ) { @@ -310706,7 +335517,7 @@ func (r workflowRunToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToTenantFindMany) ExecInner(ctx context.Context) ( +func (r workflowRunToChildrenFindMany) ExecInner(ctx context.Context) ( []InnerWorkflowRun, error, ) { @@ -310718,14 +335529,14 @@ func (r workflowRunToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToTenantFindMany) Update(params ...WorkflowRunSetParam) workflowRunToTenantUpdateMany { +func (r workflowRunToChildrenFindMany) Update(params ...WorkflowRunSetParam) workflowRunToChildrenUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v workflowRunToTenantUpdateMany + var v workflowRunToChildrenUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -310754,17 +335565,17 @@ func (r workflowRunToTenantFindMany) Update(params ...WorkflowRunSetParam) workf return v } -type workflowRunToTenantUpdateMany struct { +type workflowRunToChildrenUpdateMany struct { query builder.Query } -func (r workflowRunToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToChildrenUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTenantUpdateMany) workflowRunModel() {} +func (r workflowRunToChildrenUpdateMany) workflowRunModel() {} -func (r workflowRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -310772,15 +335583,15 @@ func (r workflowRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowRunToTenantUpdateMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunToChildrenUpdateMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToTenantFindMany) Delete() workflowRunToTenantDeleteMany { - var v workflowRunToTenantDeleteMany +func (r workflowRunToChildrenFindMany) Delete() workflowRunToChildrenDeleteMany { + var v workflowRunToChildrenDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -310791,17 +335602,17 @@ func (r workflowRunToTenantFindMany) Delete() workflowRunToTenantDeleteMany { return v } -type workflowRunToTenantDeleteMany struct { +type workflowRunToChildrenDeleteMany struct { query builder.Query } -func (r workflowRunToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToChildrenDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToTenantDeleteMany) workflowRunModel() {} +func (p workflowRunToChildrenDeleteMany) workflowRunModel() {} -func (r workflowRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -310809,30 +335620,30 @@ func (r workflowRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowRunToTenantDeleteMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunToChildrenDeleteMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToWorkflowVersionFindUnique struct { +type workflowRunToScheduledChildrenFindUnique struct { query builder.Query } -func (r workflowRunToWorkflowVersionFindUnique) getQuery() builder.Query { +func (r workflowRunToScheduledChildrenFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToWorkflowVersionFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToScheduledChildrenFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToWorkflowVersionFindUnique) with() {} -func (r workflowRunToWorkflowVersionFindUnique) workflowRunModel() {} -func (r workflowRunToWorkflowVersionFindUnique) workflowRunRelation() {} +func (r workflowRunToScheduledChildrenFindUnique) with() {} +func (r workflowRunToScheduledChildrenFindUnique) workflowRunModel() {} +func (r workflowRunToScheduledChildrenFindUnique) workflowRunRelation() {} -func (r workflowRunToWorkflowVersionFindUnique) With(params ...WorkflowVersionRelationWith) workflowRunToWorkflowVersionFindUnique { +func (r workflowRunToScheduledChildrenFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunToScheduledChildrenFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -310845,7 +335656,7 @@ func (r workflowRunToWorkflowVersionFindUnique) With(params ...WorkflowVersionRe return r } -func (r workflowRunToWorkflowVersionFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindUnique { +func (r workflowRunToScheduledChildrenFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindUnique { var outputs []builder.Output for _, param := range params { @@ -310859,7 +335670,7 @@ func (r workflowRunToWorkflowVersionFindUnique) Select(params ...workflowRunPris return r } -func (r workflowRunToWorkflowVersionFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindUnique { +func (r workflowRunToScheduledChildrenFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindUnique { var outputs []builder.Output var raw []string @@ -310878,7 +335689,7 @@ func (r workflowRunToWorkflowVersionFindUnique) Omit(params ...workflowRunPrisma return r } -func (r workflowRunToWorkflowVersionFindUnique) Exec(ctx context.Context) ( +func (r workflowRunToScheduledChildrenFindUnique) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -310894,7 +335705,7 @@ func (r workflowRunToWorkflowVersionFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToWorkflowVersionFindUnique) ExecInner(ctx context.Context) ( +func (r workflowRunToScheduledChildrenFindUnique) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -310910,12 +335721,12 @@ func (r workflowRunToWorkflowVersionFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToWorkflowVersionFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToWorkflowVersionUpdateUnique { +func (r workflowRunToScheduledChildrenFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToScheduledChildrenUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "WorkflowRun" - var v workflowRunToWorkflowVersionUpdateUnique + var v workflowRunToScheduledChildrenUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -310944,17 +335755,17 @@ func (r workflowRunToWorkflowVersionFindUnique) Update(params ...WorkflowRunSetP return v } -type workflowRunToWorkflowVersionUpdateUnique struct { +type workflowRunToScheduledChildrenUpdateUnique struct { query builder.Query } -func (r workflowRunToWorkflowVersionUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToScheduledChildrenUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToWorkflowVersionUpdateUnique) workflowRunModel() {} +func (r workflowRunToScheduledChildrenUpdateUnique) workflowRunModel() {} -func (r workflowRunToWorkflowVersionUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunToScheduledChildrenUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -310962,15 +335773,15 @@ func (r workflowRunToWorkflowVersionUpdateUnique) Exec(ctx context.Context) (*Wo return &v, nil } -func (r workflowRunToWorkflowVersionUpdateUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunToScheduledChildrenUpdateUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToWorkflowVersionFindUnique) Delete() workflowRunToWorkflowVersionDeleteUnique { - var v workflowRunToWorkflowVersionDeleteUnique +func (r workflowRunToScheduledChildrenFindUnique) Delete() workflowRunToScheduledChildrenDeleteUnique { + var v workflowRunToScheduledChildrenDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -310979,17 +335790,17 @@ func (r workflowRunToWorkflowVersionFindUnique) Delete() workflowRunToWorkflowVe return v } -type workflowRunToWorkflowVersionDeleteUnique struct { +type workflowRunToScheduledChildrenDeleteUnique struct { query builder.Query } -func (r workflowRunToWorkflowVersionDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToScheduledChildrenDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToWorkflowVersionDeleteUnique) workflowRunModel() {} +func (p workflowRunToScheduledChildrenDeleteUnique) workflowRunModel() {} -func (r workflowRunToWorkflowVersionDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunToScheduledChildrenDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -310997,30 +335808,30 @@ func (r workflowRunToWorkflowVersionDeleteUnique) Exec(ctx context.Context) (*Wo return &v, nil } -func (r workflowRunToWorkflowVersionDeleteUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunToScheduledChildrenDeleteUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToWorkflowVersionFindFirst struct { +type workflowRunToScheduledChildrenFindFirst struct { query builder.Query } -func (r workflowRunToWorkflowVersionFindFirst) getQuery() builder.Query { +func (r workflowRunToScheduledChildrenFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToWorkflowVersionFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToScheduledChildrenFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToWorkflowVersionFindFirst) with() {} -func (r workflowRunToWorkflowVersionFindFirst) workflowRunModel() {} -func (r workflowRunToWorkflowVersionFindFirst) workflowRunRelation() {} +func (r workflowRunToScheduledChildrenFindFirst) with() {} +func (r workflowRunToScheduledChildrenFindFirst) workflowRunModel() {} +func (r workflowRunToScheduledChildrenFindFirst) workflowRunRelation() {} -func (r workflowRunToWorkflowVersionFindFirst) With(params ...WorkflowVersionRelationWith) workflowRunToWorkflowVersionFindFirst { +func (r workflowRunToScheduledChildrenFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunToScheduledChildrenFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -311033,7 +335844,7 @@ func (r workflowRunToWorkflowVersionFindFirst) With(params ...WorkflowVersionRel return r } -func (r workflowRunToWorkflowVersionFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindFirst { +func (r workflowRunToScheduledChildrenFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindFirst { var outputs []builder.Output for _, param := range params { @@ -311047,7 +335858,7 @@ func (r workflowRunToWorkflowVersionFindFirst) Select(params ...workflowRunPrism return r } -func (r workflowRunToWorkflowVersionFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindFirst { +func (r workflowRunToScheduledChildrenFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindFirst { var outputs []builder.Output var raw []string @@ -311066,7 +335877,7 @@ func (r workflowRunToWorkflowVersionFindFirst) Omit(params ...workflowRunPrismaF return r } -func (r workflowRunToWorkflowVersionFindFirst) OrderBy(params ...WorkflowVersionOrderByParam) workflowRunToWorkflowVersionFindFirst { +func (r workflowRunToScheduledChildrenFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowRunToScheduledChildrenFindFirst { var fields []builder.Field for _, param := range params { @@ -311086,7 +335897,7 @@ func (r workflowRunToWorkflowVersionFindFirst) OrderBy(params ...WorkflowVersion return r } -func (r workflowRunToWorkflowVersionFindFirst) Skip(count int) workflowRunToWorkflowVersionFindFirst { +func (r workflowRunToScheduledChildrenFindFirst) Skip(count int) workflowRunToScheduledChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -311094,7 +335905,7 @@ func (r workflowRunToWorkflowVersionFindFirst) Skip(count int) workflowRunToWork return r } -func (r workflowRunToWorkflowVersionFindFirst) Take(count int) workflowRunToWorkflowVersionFindFirst { +func (r workflowRunToScheduledChildrenFindFirst) Take(count int) workflowRunToScheduledChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -311102,7 +335913,7 @@ func (r workflowRunToWorkflowVersionFindFirst) Take(count int) workflowRunToWork return r } -func (r workflowRunToWorkflowVersionFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToWorkflowVersionFindFirst { +func (r workflowRunToScheduledChildrenFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToScheduledChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -311110,7 +335921,7 @@ func (r workflowRunToWorkflowVersionFindFirst) Cursor(cursor WorkflowRunCursorPa return r } -func (r workflowRunToWorkflowVersionFindFirst) Exec(ctx context.Context) ( +func (r workflowRunToScheduledChildrenFindFirst) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -311126,7 +335937,7 @@ func (r workflowRunToWorkflowVersionFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToWorkflowVersionFindFirst) ExecInner(ctx context.Context) ( +func (r workflowRunToScheduledChildrenFindFirst) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -311142,23 +335953,23 @@ func (r workflowRunToWorkflowVersionFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunToWorkflowVersionFindMany struct { +type workflowRunToScheduledChildrenFindMany struct { query builder.Query } -func (r workflowRunToWorkflowVersionFindMany) getQuery() builder.Query { +func (r workflowRunToScheduledChildrenFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToWorkflowVersionFindMany) ExtractQuery() builder.Query { +func (r workflowRunToScheduledChildrenFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToWorkflowVersionFindMany) with() {} -func (r workflowRunToWorkflowVersionFindMany) workflowRunModel() {} -func (r workflowRunToWorkflowVersionFindMany) workflowRunRelation() {} +func (r workflowRunToScheduledChildrenFindMany) with() {} +func (r workflowRunToScheduledChildrenFindMany) workflowRunModel() {} +func (r workflowRunToScheduledChildrenFindMany) workflowRunRelation() {} -func (r workflowRunToWorkflowVersionFindMany) With(params ...WorkflowVersionRelationWith) workflowRunToWorkflowVersionFindMany { +func (r workflowRunToScheduledChildrenFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunToScheduledChildrenFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -311171,7 +335982,7 @@ func (r workflowRunToWorkflowVersionFindMany) With(params ...WorkflowVersionRela return r } -func (r workflowRunToWorkflowVersionFindMany) Select(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindMany { +func (r workflowRunToScheduledChildrenFindMany) Select(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindMany { var outputs []builder.Output for _, param := range params { @@ -311185,7 +335996,7 @@ func (r workflowRunToWorkflowVersionFindMany) Select(params ...workflowRunPrisma return r } -func (r workflowRunToWorkflowVersionFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToWorkflowVersionFindMany { +func (r workflowRunToScheduledChildrenFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindMany { var outputs []builder.Output var raw []string @@ -311204,7 +336015,7 @@ func (r workflowRunToWorkflowVersionFindMany) Omit(params ...workflowRunPrismaFi return r } -func (r workflowRunToWorkflowVersionFindMany) OrderBy(params ...WorkflowVersionOrderByParam) workflowRunToWorkflowVersionFindMany { +func (r workflowRunToScheduledChildrenFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowRunToScheduledChildrenFindMany { var fields []builder.Field for _, param := range params { @@ -311224,7 +336035,7 @@ func (r workflowRunToWorkflowVersionFindMany) OrderBy(params ...WorkflowVersionO return r } -func (r workflowRunToWorkflowVersionFindMany) Skip(count int) workflowRunToWorkflowVersionFindMany { +func (r workflowRunToScheduledChildrenFindMany) Skip(count int) workflowRunToScheduledChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -311232,7 +336043,7 @@ func (r workflowRunToWorkflowVersionFindMany) Skip(count int) workflowRunToWorkf return r } -func (r workflowRunToWorkflowVersionFindMany) Take(count int) workflowRunToWorkflowVersionFindMany { +func (r workflowRunToScheduledChildrenFindMany) Take(count int) workflowRunToScheduledChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -311240,7 +336051,7 @@ func (r workflowRunToWorkflowVersionFindMany) Take(count int) workflowRunToWorkf return r } -func (r workflowRunToWorkflowVersionFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToWorkflowVersionFindMany { +func (r workflowRunToScheduledChildrenFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToScheduledChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -311248,7 +336059,7 @@ func (r workflowRunToWorkflowVersionFindMany) Cursor(cursor WorkflowRunCursorPar return r } -func (r workflowRunToWorkflowVersionFindMany) Exec(ctx context.Context) ( +func (r workflowRunToScheduledChildrenFindMany) Exec(ctx context.Context) ( []WorkflowRunModel, error, ) { @@ -311260,7 +336071,7 @@ func (r workflowRunToWorkflowVersionFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToWorkflowVersionFindMany) ExecInner(ctx context.Context) ( +func (r workflowRunToScheduledChildrenFindMany) ExecInner(ctx context.Context) ( []InnerWorkflowRun, error, ) { @@ -311272,14 +336083,14 @@ func (r workflowRunToWorkflowVersionFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToWorkflowVersionFindMany) Update(params ...WorkflowRunSetParam) workflowRunToWorkflowVersionUpdateMany { +func (r workflowRunToScheduledChildrenFindMany) Update(params ...WorkflowRunSetParam) workflowRunToScheduledChildrenUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v workflowRunToWorkflowVersionUpdateMany + var v workflowRunToScheduledChildrenUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -311308,17 +336119,17 @@ func (r workflowRunToWorkflowVersionFindMany) Update(params ...WorkflowRunSetPar return v } -type workflowRunToWorkflowVersionUpdateMany struct { +type workflowRunToScheduledChildrenUpdateMany struct { query builder.Query } -func (r workflowRunToWorkflowVersionUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToScheduledChildrenUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToWorkflowVersionUpdateMany) workflowRunModel() {} +func (r workflowRunToScheduledChildrenUpdateMany) workflowRunModel() {} -func (r workflowRunToWorkflowVersionUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToScheduledChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -311326,15 +336137,15 @@ func (r workflowRunToWorkflowVersionUpdateMany) Exec(ctx context.Context) (*Batc return &v, nil } -func (r workflowRunToWorkflowVersionUpdateMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunToScheduledChildrenUpdateMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToWorkflowVersionFindMany) Delete() workflowRunToWorkflowVersionDeleteMany { - var v workflowRunToWorkflowVersionDeleteMany +func (r workflowRunToScheduledChildrenFindMany) Delete() workflowRunToScheduledChildrenDeleteMany { + var v workflowRunToScheduledChildrenDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -311345,17 +336156,17 @@ func (r workflowRunToWorkflowVersionFindMany) Delete() workflowRunToWorkflowVers return v } -type workflowRunToWorkflowVersionDeleteMany struct { +type workflowRunToScheduledChildrenDeleteMany struct { query builder.Query } -func (r workflowRunToWorkflowVersionDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToScheduledChildrenDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToWorkflowVersionDeleteMany) workflowRunModel() {} +func (p workflowRunToScheduledChildrenDeleteMany) workflowRunModel() {} -func (r workflowRunToWorkflowVersionDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToScheduledChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -311363,30 +336174,30 @@ func (r workflowRunToWorkflowVersionDeleteMany) Exec(ctx context.Context) (*Batc return &v, nil } -func (r workflowRunToWorkflowVersionDeleteMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunToScheduledChildrenDeleteMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToGetGroupKeyRunFindUnique struct { +type workflowRunToParentFindUnique struct { query builder.Query } -func (r workflowRunToGetGroupKeyRunFindUnique) getQuery() builder.Query { +func (r workflowRunToParentFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToGetGroupKeyRunFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToParentFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToGetGroupKeyRunFindUnique) with() {} -func (r workflowRunToGetGroupKeyRunFindUnique) workflowRunModel() {} -func (r workflowRunToGetGroupKeyRunFindUnique) workflowRunRelation() {} +func (r workflowRunToParentFindUnique) with() {} +func (r workflowRunToParentFindUnique) workflowRunModel() {} +func (r workflowRunToParentFindUnique) workflowRunRelation() {} -func (r workflowRunToGetGroupKeyRunFindUnique) With(params ...GetGroupKeyRunRelationWith) workflowRunToGetGroupKeyRunFindUnique { +func (r workflowRunToParentFindUnique) With(params ...WorkflowRunRelationWith) workflowRunToParentFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -311399,7 +336210,7 @@ func (r workflowRunToGetGroupKeyRunFindUnique) With(params ...GetGroupKeyRunRela return r } -func (r workflowRunToGetGroupKeyRunFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindUnique { +func (r workflowRunToParentFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToParentFindUnique { var outputs []builder.Output for _, param := range params { @@ -311413,7 +336224,7 @@ func (r workflowRunToGetGroupKeyRunFindUnique) Select(params ...workflowRunPrism return r } -func (r workflowRunToGetGroupKeyRunFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindUnique { +func (r workflowRunToParentFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToParentFindUnique { var outputs []builder.Output var raw []string @@ -311432,7 +336243,7 @@ func (r workflowRunToGetGroupKeyRunFindUnique) Omit(params ...workflowRunPrismaF return r } -func (r workflowRunToGetGroupKeyRunFindUnique) Exec(ctx context.Context) ( +func (r workflowRunToParentFindUnique) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -311448,7 +336259,7 @@ func (r workflowRunToGetGroupKeyRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToGetGroupKeyRunFindUnique) ExecInner(ctx context.Context) ( +func (r workflowRunToParentFindUnique) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -311464,12 +336275,12 @@ func (r workflowRunToGetGroupKeyRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToGetGroupKeyRunFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToGetGroupKeyRunUpdateUnique { +func (r workflowRunToParentFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToParentUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "WorkflowRun" - var v workflowRunToGetGroupKeyRunUpdateUnique + var v workflowRunToParentUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -311498,17 +336309,17 @@ func (r workflowRunToGetGroupKeyRunFindUnique) Update(params ...WorkflowRunSetPa return v } -type workflowRunToGetGroupKeyRunUpdateUnique struct { +type workflowRunToParentUpdateUnique struct { query builder.Query } -func (r workflowRunToGetGroupKeyRunUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToParentUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToGetGroupKeyRunUpdateUnique) workflowRunModel() {} +func (r workflowRunToParentUpdateUnique) workflowRunModel() {} -func (r workflowRunToGetGroupKeyRunUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -311516,15 +336327,15 @@ func (r workflowRunToGetGroupKeyRunUpdateUnique) Exec(ctx context.Context) (*Wor return &v, nil } -func (r workflowRunToGetGroupKeyRunUpdateUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunToParentUpdateUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToGetGroupKeyRunFindUnique) Delete() workflowRunToGetGroupKeyRunDeleteUnique { - var v workflowRunToGetGroupKeyRunDeleteUnique +func (r workflowRunToParentFindUnique) Delete() workflowRunToParentDeleteUnique { + var v workflowRunToParentDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -311533,17 +336344,17 @@ func (r workflowRunToGetGroupKeyRunFindUnique) Delete() workflowRunToGetGroupKey return v } -type workflowRunToGetGroupKeyRunDeleteUnique struct { +type workflowRunToParentDeleteUnique struct { query builder.Query } -func (r workflowRunToGetGroupKeyRunDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToParentDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToGetGroupKeyRunDeleteUnique) workflowRunModel() {} +func (p workflowRunToParentDeleteUnique) workflowRunModel() {} -func (r workflowRunToGetGroupKeyRunDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -311551,30 +336362,30 @@ func (r workflowRunToGetGroupKeyRunDeleteUnique) Exec(ctx context.Context) (*Wor return &v, nil } -func (r workflowRunToGetGroupKeyRunDeleteUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunToParentDeleteUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToGetGroupKeyRunFindFirst struct { +type workflowRunToParentFindFirst struct { query builder.Query } -func (r workflowRunToGetGroupKeyRunFindFirst) getQuery() builder.Query { +func (r workflowRunToParentFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToGetGroupKeyRunFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToParentFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToGetGroupKeyRunFindFirst) with() {} -func (r workflowRunToGetGroupKeyRunFindFirst) workflowRunModel() {} -func (r workflowRunToGetGroupKeyRunFindFirst) workflowRunRelation() {} +func (r workflowRunToParentFindFirst) with() {} +func (r workflowRunToParentFindFirst) workflowRunModel() {} +func (r workflowRunToParentFindFirst) workflowRunRelation() {} -func (r workflowRunToGetGroupKeyRunFindFirst) With(params ...GetGroupKeyRunRelationWith) workflowRunToGetGroupKeyRunFindFirst { +func (r workflowRunToParentFindFirst) With(params ...WorkflowRunRelationWith) workflowRunToParentFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -311587,7 +336398,7 @@ func (r workflowRunToGetGroupKeyRunFindFirst) With(params ...GetGroupKeyRunRelat return r } -func (r workflowRunToGetGroupKeyRunFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindFirst { +func (r workflowRunToParentFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToParentFindFirst { var outputs []builder.Output for _, param := range params { @@ -311601,7 +336412,7 @@ func (r workflowRunToGetGroupKeyRunFindFirst) Select(params ...workflowRunPrisma return r } -func (r workflowRunToGetGroupKeyRunFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindFirst { +func (r workflowRunToParentFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToParentFindFirst { var outputs []builder.Output var raw []string @@ -311620,7 +336431,7 @@ func (r workflowRunToGetGroupKeyRunFindFirst) Omit(params ...workflowRunPrismaFi return r } -func (r workflowRunToGetGroupKeyRunFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) workflowRunToGetGroupKeyRunFindFirst { +func (r workflowRunToParentFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunToParentFindFirst { var fields []builder.Field for _, param := range params { @@ -311640,7 +336451,7 @@ func (r workflowRunToGetGroupKeyRunFindFirst) OrderBy(params ...GetGroupKeyRunOr return r } -func (r workflowRunToGetGroupKeyRunFindFirst) Skip(count int) workflowRunToGetGroupKeyRunFindFirst { +func (r workflowRunToParentFindFirst) Skip(count int) workflowRunToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -311648,7 +336459,7 @@ func (r workflowRunToGetGroupKeyRunFindFirst) Skip(count int) workflowRunToGetGr return r } -func (r workflowRunToGetGroupKeyRunFindFirst) Take(count int) workflowRunToGetGroupKeyRunFindFirst { +func (r workflowRunToParentFindFirst) Take(count int) workflowRunToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -311656,7 +336467,7 @@ func (r workflowRunToGetGroupKeyRunFindFirst) Take(count int) workflowRunToGetGr return r } -func (r workflowRunToGetGroupKeyRunFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToGetGroupKeyRunFindFirst { +func (r workflowRunToParentFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -311664,7 +336475,7 @@ func (r workflowRunToGetGroupKeyRunFindFirst) Cursor(cursor WorkflowRunCursorPar return r } -func (r workflowRunToGetGroupKeyRunFindFirst) Exec(ctx context.Context) ( +func (r workflowRunToParentFindFirst) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -311680,7 +336491,7 @@ func (r workflowRunToGetGroupKeyRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToGetGroupKeyRunFindFirst) ExecInner(ctx context.Context) ( +func (r workflowRunToParentFindFirst) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -311696,23 +336507,23 @@ func (r workflowRunToGetGroupKeyRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunToGetGroupKeyRunFindMany struct { +type workflowRunToParentFindMany struct { query builder.Query } -func (r workflowRunToGetGroupKeyRunFindMany) getQuery() builder.Query { +func (r workflowRunToParentFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToGetGroupKeyRunFindMany) ExtractQuery() builder.Query { +func (r workflowRunToParentFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToGetGroupKeyRunFindMany) with() {} -func (r workflowRunToGetGroupKeyRunFindMany) workflowRunModel() {} -func (r workflowRunToGetGroupKeyRunFindMany) workflowRunRelation() {} +func (r workflowRunToParentFindMany) with() {} +func (r workflowRunToParentFindMany) workflowRunModel() {} +func (r workflowRunToParentFindMany) workflowRunRelation() {} -func (r workflowRunToGetGroupKeyRunFindMany) With(params ...GetGroupKeyRunRelationWith) workflowRunToGetGroupKeyRunFindMany { +func (r workflowRunToParentFindMany) With(params ...WorkflowRunRelationWith) workflowRunToParentFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -311725,7 +336536,7 @@ func (r workflowRunToGetGroupKeyRunFindMany) With(params ...GetGroupKeyRunRelati return r } -func (r workflowRunToGetGroupKeyRunFindMany) Select(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindMany { +func (r workflowRunToParentFindMany) Select(params ...workflowRunPrismaFields) workflowRunToParentFindMany { var outputs []builder.Output for _, param := range params { @@ -311739,7 +336550,7 @@ func (r workflowRunToGetGroupKeyRunFindMany) Select(params ...workflowRunPrismaF return r } -func (r workflowRunToGetGroupKeyRunFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToGetGroupKeyRunFindMany { +func (r workflowRunToParentFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToParentFindMany { var outputs []builder.Output var raw []string @@ -311758,7 +336569,7 @@ func (r workflowRunToGetGroupKeyRunFindMany) Omit(params ...workflowRunPrismaFie return r } -func (r workflowRunToGetGroupKeyRunFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) workflowRunToGetGroupKeyRunFindMany { +func (r workflowRunToParentFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunToParentFindMany { var fields []builder.Field for _, param := range params { @@ -311778,7 +336589,7 @@ func (r workflowRunToGetGroupKeyRunFindMany) OrderBy(params ...GetGroupKeyRunOrd return r } -func (r workflowRunToGetGroupKeyRunFindMany) Skip(count int) workflowRunToGetGroupKeyRunFindMany { +func (r workflowRunToParentFindMany) Skip(count int) workflowRunToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -311786,7 +336597,7 @@ func (r workflowRunToGetGroupKeyRunFindMany) Skip(count int) workflowRunToGetGro return r } -func (r workflowRunToGetGroupKeyRunFindMany) Take(count int) workflowRunToGetGroupKeyRunFindMany { +func (r workflowRunToParentFindMany) Take(count int) workflowRunToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -311794,7 +336605,7 @@ func (r workflowRunToGetGroupKeyRunFindMany) Take(count int) workflowRunToGetGro return r } -func (r workflowRunToGetGroupKeyRunFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToGetGroupKeyRunFindMany { +func (r workflowRunToParentFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -311802,7 +336613,7 @@ func (r workflowRunToGetGroupKeyRunFindMany) Cursor(cursor WorkflowRunCursorPara return r } -func (r workflowRunToGetGroupKeyRunFindMany) Exec(ctx context.Context) ( +func (r workflowRunToParentFindMany) Exec(ctx context.Context) ( []WorkflowRunModel, error, ) { @@ -311814,7 +336625,7 @@ func (r workflowRunToGetGroupKeyRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToGetGroupKeyRunFindMany) ExecInner(ctx context.Context) ( +func (r workflowRunToParentFindMany) ExecInner(ctx context.Context) ( []InnerWorkflowRun, error, ) { @@ -311826,14 +336637,14 @@ func (r workflowRunToGetGroupKeyRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToGetGroupKeyRunFindMany) Update(params ...WorkflowRunSetParam) workflowRunToGetGroupKeyRunUpdateMany { +func (r workflowRunToParentFindMany) Update(params ...WorkflowRunSetParam) workflowRunToParentUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v workflowRunToGetGroupKeyRunUpdateMany + var v workflowRunToParentUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -311862,17 +336673,17 @@ func (r workflowRunToGetGroupKeyRunFindMany) Update(params ...WorkflowRunSetPara return v } -type workflowRunToGetGroupKeyRunUpdateMany struct { +type workflowRunToParentUpdateMany struct { query builder.Query } -func (r workflowRunToGetGroupKeyRunUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToParentUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToGetGroupKeyRunUpdateMany) workflowRunModel() {} +func (r workflowRunToParentUpdateMany) workflowRunModel() {} -func (r workflowRunToGetGroupKeyRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -311880,15 +336691,15 @@ func (r workflowRunToGetGroupKeyRunUpdateMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r workflowRunToGetGroupKeyRunUpdateMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunToParentUpdateMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToGetGroupKeyRunFindMany) Delete() workflowRunToGetGroupKeyRunDeleteMany { - var v workflowRunToGetGroupKeyRunDeleteMany +func (r workflowRunToParentFindMany) Delete() workflowRunToParentDeleteMany { + var v workflowRunToParentDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -311899,17 +336710,17 @@ func (r workflowRunToGetGroupKeyRunFindMany) Delete() workflowRunToGetGroupKeyRu return v } -type workflowRunToGetGroupKeyRunDeleteMany struct { +type workflowRunToParentDeleteMany struct { query builder.Query } -func (r workflowRunToGetGroupKeyRunDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToParentDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToGetGroupKeyRunDeleteMany) workflowRunModel() {} +func (p workflowRunToParentDeleteMany) workflowRunModel() {} -func (r workflowRunToGetGroupKeyRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -311917,30 +336728,30 @@ func (r workflowRunToGetGroupKeyRunDeleteMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r workflowRunToGetGroupKeyRunDeleteMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunToParentDeleteMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToJobRunsFindUnique struct { +type workflowRunToParentStepRunFindUnique struct { query builder.Query } -func (r workflowRunToJobRunsFindUnique) getQuery() builder.Query { +func (r workflowRunToParentStepRunFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToJobRunsFindUnique) ExtractQuery() builder.Query { +func (r workflowRunToParentStepRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToJobRunsFindUnique) with() {} -func (r workflowRunToJobRunsFindUnique) workflowRunModel() {} -func (r workflowRunToJobRunsFindUnique) workflowRunRelation() {} +func (r workflowRunToParentStepRunFindUnique) with() {} +func (r workflowRunToParentStepRunFindUnique) workflowRunModel() {} +func (r workflowRunToParentStepRunFindUnique) workflowRunRelation() {} -func (r workflowRunToJobRunsFindUnique) With(params ...JobRunRelationWith) workflowRunToJobRunsFindUnique { +func (r workflowRunToParentStepRunFindUnique) With(params ...StepRunRelationWith) workflowRunToParentStepRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -311953,7 +336764,7 @@ func (r workflowRunToJobRunsFindUnique) With(params ...JobRunRelationWith) workf return r } -func (r workflowRunToJobRunsFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToJobRunsFindUnique { +func (r workflowRunToParentStepRunFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -311967,7 +336778,7 @@ func (r workflowRunToJobRunsFindUnique) Select(params ...workflowRunPrismaFields return r } -func (r workflowRunToJobRunsFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToJobRunsFindUnique { +func (r workflowRunToParentStepRunFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindUnique { var outputs []builder.Output var raw []string @@ -311986,7 +336797,7 @@ func (r workflowRunToJobRunsFindUnique) Omit(params ...workflowRunPrismaFields) return r } -func (r workflowRunToJobRunsFindUnique) Exec(ctx context.Context) ( +func (r workflowRunToParentStepRunFindUnique) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -312002,7 +336813,7 @@ func (r workflowRunToJobRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToJobRunsFindUnique) ExecInner(ctx context.Context) ( +func (r workflowRunToParentStepRunFindUnique) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -312018,12 +336829,12 @@ func (r workflowRunToJobRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToJobRunsFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToJobRunsUpdateUnique { +func (r workflowRunToParentStepRunFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToParentStepRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "WorkflowRun" - var v workflowRunToJobRunsUpdateUnique + var v workflowRunToParentStepRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -312052,17 +336863,17 @@ func (r workflowRunToJobRunsFindUnique) Update(params ...WorkflowRunSetParam) wo return v } -type workflowRunToJobRunsUpdateUnique struct { +type workflowRunToParentStepRunUpdateUnique struct { query builder.Query } -func (r workflowRunToJobRunsUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunToParentStepRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToJobRunsUpdateUnique) workflowRunModel() {} +func (r workflowRunToParentStepRunUpdateUnique) workflowRunModel() {} -func (r workflowRunToJobRunsUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunToParentStepRunUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -312070,15 +336881,15 @@ func (r workflowRunToJobRunsUpdateUnique) Exec(ctx context.Context) (*WorkflowRu return &v, nil } -func (r workflowRunToJobRunsUpdateUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunToParentStepRunUpdateUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToJobRunsFindUnique) Delete() workflowRunToJobRunsDeleteUnique { - var v workflowRunToJobRunsDeleteUnique +func (r workflowRunToParentStepRunFindUnique) Delete() workflowRunToParentStepRunDeleteUnique { + var v workflowRunToParentStepRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -312087,17 +336898,17 @@ func (r workflowRunToJobRunsFindUnique) Delete() workflowRunToJobRunsDeleteUniqu return v } -type workflowRunToJobRunsDeleteUnique struct { +type workflowRunToParentStepRunDeleteUnique struct { query builder.Query } -func (r workflowRunToJobRunsDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunToParentStepRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToJobRunsDeleteUnique) workflowRunModel() {} +func (p workflowRunToParentStepRunDeleteUnique) workflowRunModel() {} -func (r workflowRunToJobRunsDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunToParentStepRunDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -312105,30 +336916,30 @@ func (r workflowRunToJobRunsDeleteUnique) Exec(ctx context.Context) (*WorkflowRu return &v, nil } -func (r workflowRunToJobRunsDeleteUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunToParentStepRunDeleteUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToJobRunsFindFirst struct { +type workflowRunToParentStepRunFindFirst struct { query builder.Query } -func (r workflowRunToJobRunsFindFirst) getQuery() builder.Query { +func (r workflowRunToParentStepRunFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToJobRunsFindFirst) ExtractQuery() builder.Query { +func (r workflowRunToParentStepRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToJobRunsFindFirst) with() {} -func (r workflowRunToJobRunsFindFirst) workflowRunModel() {} -func (r workflowRunToJobRunsFindFirst) workflowRunRelation() {} +func (r workflowRunToParentStepRunFindFirst) with() {} +func (r workflowRunToParentStepRunFindFirst) workflowRunModel() {} +func (r workflowRunToParentStepRunFindFirst) workflowRunRelation() {} -func (r workflowRunToJobRunsFindFirst) With(params ...JobRunRelationWith) workflowRunToJobRunsFindFirst { +func (r workflowRunToParentStepRunFindFirst) With(params ...StepRunRelationWith) workflowRunToParentStepRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -312141,7 +336952,7 @@ func (r workflowRunToJobRunsFindFirst) With(params ...JobRunRelationWith) workfl return r } -func (r workflowRunToJobRunsFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToJobRunsFindFirst { +func (r workflowRunToParentStepRunFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -312155,7 +336966,7 @@ func (r workflowRunToJobRunsFindFirst) Select(params ...workflowRunPrismaFields) return r } -func (r workflowRunToJobRunsFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToJobRunsFindFirst { +func (r workflowRunToParentStepRunFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindFirst { var outputs []builder.Output var raw []string @@ -312174,7 +336985,7 @@ func (r workflowRunToJobRunsFindFirst) Omit(params ...workflowRunPrismaFields) w return r } -func (r workflowRunToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) workflowRunToJobRunsFindFirst { +func (r workflowRunToParentStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) workflowRunToParentStepRunFindFirst { var fields []builder.Field for _, param := range params { @@ -312194,7 +337005,7 @@ func (r workflowRunToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) wor return r } -func (r workflowRunToJobRunsFindFirst) Skip(count int) workflowRunToJobRunsFindFirst { +func (r workflowRunToParentStepRunFindFirst) Skip(count int) workflowRunToParentStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -312202,7 +337013,7 @@ func (r workflowRunToJobRunsFindFirst) Skip(count int) workflowRunToJobRunsFindF return r } -func (r workflowRunToJobRunsFindFirst) Take(count int) workflowRunToJobRunsFindFirst { +func (r workflowRunToParentStepRunFindFirst) Take(count int) workflowRunToParentStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -312210,7 +337021,7 @@ func (r workflowRunToJobRunsFindFirst) Take(count int) workflowRunToJobRunsFindF return r } -func (r workflowRunToJobRunsFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToJobRunsFindFirst { +func (r workflowRunToParentStepRunFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToParentStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -312218,7 +337029,7 @@ func (r workflowRunToJobRunsFindFirst) Cursor(cursor WorkflowRunCursorParam) wor return r } -func (r workflowRunToJobRunsFindFirst) Exec(ctx context.Context) ( +func (r workflowRunToParentStepRunFindFirst) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -312234,7 +337045,7 @@ func (r workflowRunToJobRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToJobRunsFindFirst) ExecInner(ctx context.Context) ( +func (r workflowRunToParentStepRunFindFirst) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -312250,23 +337061,23 @@ func (r workflowRunToJobRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunToJobRunsFindMany struct { +type workflowRunToParentStepRunFindMany struct { query builder.Query } -func (r workflowRunToJobRunsFindMany) getQuery() builder.Query { +func (r workflowRunToParentStepRunFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToJobRunsFindMany) ExtractQuery() builder.Query { +func (r workflowRunToParentStepRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToJobRunsFindMany) with() {} -func (r workflowRunToJobRunsFindMany) workflowRunModel() {} -func (r workflowRunToJobRunsFindMany) workflowRunRelation() {} +func (r workflowRunToParentStepRunFindMany) with() {} +func (r workflowRunToParentStepRunFindMany) workflowRunModel() {} +func (r workflowRunToParentStepRunFindMany) workflowRunRelation() {} -func (r workflowRunToJobRunsFindMany) With(params ...JobRunRelationWith) workflowRunToJobRunsFindMany { +func (r workflowRunToParentStepRunFindMany) With(params ...StepRunRelationWith) workflowRunToParentStepRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -312279,7 +337090,7 @@ func (r workflowRunToJobRunsFindMany) With(params ...JobRunRelationWith) workflo return r } -func (r workflowRunToJobRunsFindMany) Select(params ...workflowRunPrismaFields) workflowRunToJobRunsFindMany { +func (r workflowRunToParentStepRunFindMany) Select(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindMany { var outputs []builder.Output for _, param := range params { @@ -312293,7 +337104,7 @@ func (r workflowRunToJobRunsFindMany) Select(params ...workflowRunPrismaFields) return r } -func (r workflowRunToJobRunsFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToJobRunsFindMany { +func (r workflowRunToParentStepRunFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindMany { var outputs []builder.Output var raw []string @@ -312312,7 +337123,7 @@ func (r workflowRunToJobRunsFindMany) Omit(params ...workflowRunPrismaFields) wo return r } -func (r workflowRunToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) workflowRunToJobRunsFindMany { +func (r workflowRunToParentStepRunFindMany) OrderBy(params ...StepRunOrderByParam) workflowRunToParentStepRunFindMany { var fields []builder.Field for _, param := range params { @@ -312332,7 +337143,7 @@ func (r workflowRunToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) work return r } -func (r workflowRunToJobRunsFindMany) Skip(count int) workflowRunToJobRunsFindMany { +func (r workflowRunToParentStepRunFindMany) Skip(count int) workflowRunToParentStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -312340,7 +337151,7 @@ func (r workflowRunToJobRunsFindMany) Skip(count int) workflowRunToJobRunsFindMa return r } -func (r workflowRunToJobRunsFindMany) Take(count int) workflowRunToJobRunsFindMany { +func (r workflowRunToParentStepRunFindMany) Take(count int) workflowRunToParentStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -312348,7 +337159,7 @@ func (r workflowRunToJobRunsFindMany) Take(count int) workflowRunToJobRunsFindMa return r } -func (r workflowRunToJobRunsFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToJobRunsFindMany { +func (r workflowRunToParentStepRunFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToParentStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -312356,7 +337167,7 @@ func (r workflowRunToJobRunsFindMany) Cursor(cursor WorkflowRunCursorParam) work return r } -func (r workflowRunToJobRunsFindMany) Exec(ctx context.Context) ( +func (r workflowRunToParentStepRunFindMany) Exec(ctx context.Context) ( []WorkflowRunModel, error, ) { @@ -312368,7 +337179,7 @@ func (r workflowRunToJobRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToJobRunsFindMany) ExecInner(ctx context.Context) ( +func (r workflowRunToParentStepRunFindMany) ExecInner(ctx context.Context) ( []InnerWorkflowRun, error, ) { @@ -312380,14 +337191,14 @@ func (r workflowRunToJobRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToJobRunsFindMany) Update(params ...WorkflowRunSetParam) workflowRunToJobRunsUpdateMany { +func (r workflowRunToParentStepRunFindMany) Update(params ...WorkflowRunSetParam) workflowRunToParentStepRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v workflowRunToJobRunsUpdateMany + var v workflowRunToParentStepRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -312416,17 +337227,17 @@ func (r workflowRunToJobRunsFindMany) Update(params ...WorkflowRunSetParam) work return v } -type workflowRunToJobRunsUpdateMany struct { +type workflowRunToParentStepRunUpdateMany struct { query builder.Query } -func (r workflowRunToJobRunsUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunToParentStepRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToJobRunsUpdateMany) workflowRunModel() {} +func (r workflowRunToParentStepRunUpdateMany) workflowRunModel() {} -func (r workflowRunToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToParentStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -312434,15 +337245,15 @@ func (r workflowRunToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowRunToJobRunsUpdateMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunToParentStepRunUpdateMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToJobRunsFindMany) Delete() workflowRunToJobRunsDeleteMany { - var v workflowRunToJobRunsDeleteMany +func (r workflowRunToParentStepRunFindMany) Delete() workflowRunToParentStepRunDeleteMany { + var v workflowRunToParentStepRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -312453,17 +337264,17 @@ func (r workflowRunToJobRunsFindMany) Delete() workflowRunToJobRunsDeleteMany { return v } -type workflowRunToJobRunsDeleteMany struct { +type workflowRunToParentStepRunDeleteMany struct { query builder.Query } -func (r workflowRunToJobRunsDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunToParentStepRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToJobRunsDeleteMany) workflowRunModel() {} +func (p workflowRunToParentStepRunDeleteMany) workflowRunModel() {} -func (r workflowRunToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunToParentStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -312471,30 +337282,52 @@ func (r workflowRunToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowRunToJobRunsDeleteMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunToParentStepRunDeleteMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToTriggeredByFindUnique struct { +type workflowRunFindUnique struct { query builder.Query } -func (r workflowRunToTriggeredByFindUnique) getQuery() builder.Query { +func (r workflowRunFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToTriggeredByFindUnique) ExtractQuery() builder.Query { +func (r workflowRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTriggeredByFindUnique) with() {} -func (r workflowRunToTriggeredByFindUnique) workflowRunModel() {} -func (r workflowRunToTriggeredByFindUnique) workflowRunRelation() {} +func (r workflowRunFindUnique) with() {} +func (r workflowRunFindUnique) workflowRunModel() {} +func (r workflowRunFindUnique) workflowRunRelation() {} -func (r workflowRunToTriggeredByFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunToTriggeredByFindUnique { +func (r workflowRunActions) FindUnique( + params WorkflowRunEqualsUniqueWhereParam, +) workflowRunFindUnique { + var v workflowRunFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkflowRun" + v.query.Outputs = workflowRunOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowRunFindUnique) With(params ...WorkflowRunRelationWith) workflowRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -312507,7 +337340,7 @@ func (r workflowRunToTriggeredByFindUnique) With(params ...WorkflowRunTriggeredB return r } -func (r workflowRunToTriggeredByFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindUnique { +func (r workflowRunFindUnique) Select(params ...workflowRunPrismaFields) workflowRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -312521,7 +337354,7 @@ func (r workflowRunToTriggeredByFindUnique) Select(params ...workflowRunPrismaFi return r } -func (r workflowRunToTriggeredByFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindUnique { +func (r workflowRunFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunFindUnique { var outputs []builder.Output var raw []string @@ -312540,7 +337373,7 @@ func (r workflowRunToTriggeredByFindUnique) Omit(params ...workflowRunPrismaFiel return r } -func (r workflowRunToTriggeredByFindUnique) Exec(ctx context.Context) ( +func (r workflowRunFindUnique) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -312556,7 +337389,7 @@ func (r workflowRunToTriggeredByFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToTriggeredByFindUnique) ExecInner(ctx context.Context) ( +func (r workflowRunFindUnique) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -312572,12 +337405,12 @@ func (r workflowRunToTriggeredByFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToTriggeredByFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToTriggeredByUpdateUnique { +func (r workflowRunFindUnique) Update(params ...WorkflowRunSetParam) workflowRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "WorkflowRun" - var v workflowRunToTriggeredByUpdateUnique + var v workflowRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -312606,17 +337439,17 @@ func (r workflowRunToTriggeredByFindUnique) Update(params ...WorkflowRunSetParam return v } -type workflowRunToTriggeredByUpdateUnique struct { +type workflowRunUpdateUnique struct { query builder.Query } -func (r workflowRunToTriggeredByUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTriggeredByUpdateUnique) workflowRunModel() {} +func (r workflowRunUpdateUnique) workflowRunModel() {} -func (r workflowRunToTriggeredByUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -312624,15 +337457,15 @@ func (r workflowRunToTriggeredByUpdateUnique) Exec(ctx context.Context) (*Workfl return &v, nil } -func (r workflowRunToTriggeredByUpdateUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunUpdateUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToTriggeredByFindUnique) Delete() workflowRunToTriggeredByDeleteUnique { - var v workflowRunToTriggeredByDeleteUnique +func (r workflowRunFindUnique) Delete() workflowRunDeleteUnique { + var v workflowRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -312641,17 +337474,17 @@ func (r workflowRunToTriggeredByFindUnique) Delete() workflowRunToTriggeredByDel return v } -type workflowRunToTriggeredByDeleteUnique struct { +type workflowRunDeleteUnique struct { query builder.Query } -func (r workflowRunToTriggeredByDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToTriggeredByDeleteUnique) workflowRunModel() {} +func (p workflowRunDeleteUnique) workflowRunModel() {} -func (r workflowRunToTriggeredByDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { +func (r workflowRunDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { var v WorkflowRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -312659,30 +337492,67 @@ func (r workflowRunToTriggeredByDeleteUnique) Exec(ctx context.Context) (*Workfl return &v, nil } -func (r workflowRunToTriggeredByDeleteUnique) Tx() WorkflowRunUniqueTxResult { +func (r workflowRunDeleteUnique) Tx() WorkflowRunUniqueTxResult { v := newWorkflowRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToTriggeredByFindFirst struct { +type workflowRunFindFirst struct { query builder.Query } -func (r workflowRunToTriggeredByFindFirst) getQuery() builder.Query { +func (r workflowRunFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToTriggeredByFindFirst) ExtractQuery() builder.Query { +func (r workflowRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTriggeredByFindFirst) with() {} -func (r workflowRunToTriggeredByFindFirst) workflowRunModel() {} -func (r workflowRunToTriggeredByFindFirst) workflowRunRelation() {} +func (r workflowRunFindFirst) with() {} +func (r workflowRunFindFirst) workflowRunModel() {} +func (r workflowRunFindFirst) workflowRunRelation() {} -func (r workflowRunToTriggeredByFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunToTriggeredByFindFirst { +func (r workflowRunActions) FindFirst( + params ...WorkflowRunWhereParam, +) workflowRunFindFirst { + var v workflowRunFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkflowRun" + v.query.Outputs = workflowRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowRunFindFirst) With(params ...WorkflowRunRelationWith) workflowRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -312695,7 +337565,7 @@ func (r workflowRunToTriggeredByFindFirst) With(params ...WorkflowRunTriggeredBy return r } -func (r workflowRunToTriggeredByFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindFirst { +func (r workflowRunFindFirst) Select(params ...workflowRunPrismaFields) workflowRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -312709,7 +337579,7 @@ func (r workflowRunToTriggeredByFindFirst) Select(params ...workflowRunPrismaFie return r } -func (r workflowRunToTriggeredByFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindFirst { +func (r workflowRunFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunFindFirst { var outputs []builder.Output var raw []string @@ -312728,7 +337598,7 @@ func (r workflowRunToTriggeredByFindFirst) Omit(params ...workflowRunPrismaField return r } -func (r workflowRunToTriggeredByFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowRunToTriggeredByFindFirst { +func (r workflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunFindFirst { var fields []builder.Field for _, param := range params { @@ -312748,7 +337618,7 @@ func (r workflowRunToTriggeredByFindFirst) OrderBy(params ...WorkflowRunTriggere return r } -func (r workflowRunToTriggeredByFindFirst) Skip(count int) workflowRunToTriggeredByFindFirst { +func (r workflowRunFindFirst) Skip(count int) workflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -312756,7 +337626,7 @@ func (r workflowRunToTriggeredByFindFirst) Skip(count int) workflowRunToTriggere return r } -func (r workflowRunToTriggeredByFindFirst) Take(count int) workflowRunToTriggeredByFindFirst { +func (r workflowRunFindFirst) Take(count int) workflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -312764,7 +337634,7 @@ func (r workflowRunToTriggeredByFindFirst) Take(count int) workflowRunToTriggere return r } -func (r workflowRunToTriggeredByFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToTriggeredByFindFirst { +func (r workflowRunFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -312772,7 +337642,7 @@ func (r workflowRunToTriggeredByFindFirst) Cursor(cursor WorkflowRunCursorParam) return r } -func (r workflowRunToTriggeredByFindFirst) Exec(ctx context.Context) ( +func (r workflowRunFindFirst) Exec(ctx context.Context) ( *WorkflowRunModel, error, ) { @@ -312788,7 +337658,7 @@ func (r workflowRunToTriggeredByFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToTriggeredByFindFirst) ExecInner(ctx context.Context) ( +func (r workflowRunFindFirst) ExecInner(ctx context.Context) ( *InnerWorkflowRun, error, ) { @@ -312804,23 +337674,60 @@ func (r workflowRunToTriggeredByFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunToTriggeredByFindMany struct { +type workflowRunFindMany struct { query builder.Query } -func (r workflowRunToTriggeredByFindMany) getQuery() builder.Query { +func (r workflowRunFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToTriggeredByFindMany) ExtractQuery() builder.Query { +func (r workflowRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTriggeredByFindMany) with() {} -func (r workflowRunToTriggeredByFindMany) workflowRunModel() {} -func (r workflowRunToTriggeredByFindMany) workflowRunRelation() {} +func (r workflowRunFindMany) with() {} +func (r workflowRunFindMany) workflowRunModel() {} +func (r workflowRunFindMany) workflowRunRelation() {} -func (r workflowRunToTriggeredByFindMany) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunToTriggeredByFindMany { +func (r workflowRunActions) FindMany( + params ...WorkflowRunWhereParam, +) workflowRunFindMany { + var v workflowRunFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkflowRun" + v.query.Outputs = workflowRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowRunFindMany) With(params ...WorkflowRunRelationWith) workflowRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -312833,7 +337740,7 @@ func (r workflowRunToTriggeredByFindMany) With(params ...WorkflowRunTriggeredByR return r } -func (r workflowRunToTriggeredByFindMany) Select(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindMany { +func (r workflowRunFindMany) Select(params ...workflowRunPrismaFields) workflowRunFindMany { var outputs []builder.Output for _, param := range params { @@ -312847,7 +337754,7 @@ func (r workflowRunToTriggeredByFindMany) Select(params ...workflowRunPrismaFiel return r } -func (r workflowRunToTriggeredByFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToTriggeredByFindMany { +func (r workflowRunFindMany) Omit(params ...workflowRunPrismaFields) workflowRunFindMany { var outputs []builder.Output var raw []string @@ -312866,7 +337773,7 @@ func (r workflowRunToTriggeredByFindMany) Omit(params ...workflowRunPrismaFields return r } -func (r workflowRunToTriggeredByFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowRunToTriggeredByFindMany { +func (r workflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunFindMany { var fields []builder.Field for _, param := range params { @@ -312886,7 +337793,7 @@ func (r workflowRunToTriggeredByFindMany) OrderBy(params ...WorkflowRunTriggered return r } -func (r workflowRunToTriggeredByFindMany) Skip(count int) workflowRunToTriggeredByFindMany { +func (r workflowRunFindMany) Skip(count int) workflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -312894,7 +337801,7 @@ func (r workflowRunToTriggeredByFindMany) Skip(count int) workflowRunToTriggered return r } -func (r workflowRunToTriggeredByFindMany) Take(count int) workflowRunToTriggeredByFindMany { +func (r workflowRunFindMany) Take(count int) workflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -312902,7 +337809,7 @@ func (r workflowRunToTriggeredByFindMany) Take(count int) workflowRunToTriggered return r } -func (r workflowRunToTriggeredByFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToTriggeredByFindMany { +func (r workflowRunFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -312910,7 +337817,7 @@ func (r workflowRunToTriggeredByFindMany) Cursor(cursor WorkflowRunCursorParam) return r } -func (r workflowRunToTriggeredByFindMany) Exec(ctx context.Context) ( +func (r workflowRunFindMany) Exec(ctx context.Context) ( []WorkflowRunModel, error, ) { @@ -312922,7 +337829,7 @@ func (r workflowRunToTriggeredByFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToTriggeredByFindMany) ExecInner(ctx context.Context) ( +func (r workflowRunFindMany) ExecInner(ctx context.Context) ( []InnerWorkflowRun, error, ) { @@ -312934,14 +337841,14 @@ func (r workflowRunToTriggeredByFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToTriggeredByFindMany) Update(params ...WorkflowRunSetParam) workflowRunToTriggeredByUpdateMany { +func (r workflowRunFindMany) Update(params ...WorkflowRunSetParam) workflowRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "WorkflowRun" r.query.Outputs = countOutput - var v workflowRunToTriggeredByUpdateMany + var v workflowRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -312970,17 +337877,17 @@ func (r workflowRunToTriggeredByFindMany) Update(params ...WorkflowRunSetParam) return v } -type workflowRunToTriggeredByUpdateMany struct { +type workflowRunUpdateMany struct { query builder.Query } -func (r workflowRunToTriggeredByUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToTriggeredByUpdateMany) workflowRunModel() {} +func (r workflowRunUpdateMany) workflowRunModel() {} -func (r workflowRunToTriggeredByUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -312988,15 +337895,15 @@ func (r workflowRunToTriggeredByUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r workflowRunToTriggeredByUpdateMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunUpdateMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToTriggeredByFindMany) Delete() workflowRunToTriggeredByDeleteMany { - var v workflowRunToTriggeredByDeleteMany +func (r workflowRunFindMany) Delete() workflowRunDeleteMany { + var v workflowRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -313007,17 +337914,17 @@ func (r workflowRunToTriggeredByFindMany) Delete() workflowRunToTriggeredByDelet return v } -type workflowRunToTriggeredByDeleteMany struct { +type workflowRunDeleteMany struct { query builder.Query } -func (r workflowRunToTriggeredByDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToTriggeredByDeleteMany) workflowRunModel() {} +func (p workflowRunDeleteMany) workflowRunModel() {} -func (r workflowRunToTriggeredByDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -313025,30 +337932,30 @@ func (r workflowRunToTriggeredByDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r workflowRunToTriggeredByDeleteMany) Tx() WorkflowRunManyTxResult { +func (r workflowRunDeleteMany) Tx() WorkflowRunManyTxResult { v := newWorkflowRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToChildrenFindUnique struct { +type workflowRunDedupeToTenantFindUnique struct { query builder.Query } -func (r workflowRunToChildrenFindUnique) getQuery() builder.Query { +func (r workflowRunDedupeToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToChildrenFindUnique) ExtractQuery() builder.Query { +func (r workflowRunDedupeToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToChildrenFindUnique) with() {} -func (r workflowRunToChildrenFindUnique) workflowRunModel() {} -func (r workflowRunToChildrenFindUnique) workflowRunRelation() {} +func (r workflowRunDedupeToTenantFindUnique) with() {} +func (r workflowRunDedupeToTenantFindUnique) workflowRunDedupeModel() {} +func (r workflowRunDedupeToTenantFindUnique) workflowRunDedupeRelation() {} -func (r workflowRunToChildrenFindUnique) With(params ...WorkflowRunRelationWith) workflowRunToChildrenFindUnique { +func (r workflowRunDedupeToTenantFindUnique) With(params ...TenantRelationWith) workflowRunDedupeToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -313061,7 +337968,7 @@ func (r workflowRunToChildrenFindUnique) With(params ...WorkflowRunRelationWith) return r } -func (r workflowRunToChildrenFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToChildrenFindUnique { +func (r workflowRunDedupeToTenantFindUnique) Select(params ...workflowRunDedupePrismaFields) workflowRunDedupeToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -313075,7 +337982,7 @@ func (r workflowRunToChildrenFindUnique) Select(params ...workflowRunPrismaField return r } -func (r workflowRunToChildrenFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToChildrenFindUnique { +func (r workflowRunDedupeToTenantFindUnique) Omit(params ...workflowRunDedupePrismaFields) workflowRunDedupeToTenantFindUnique { var outputs []builder.Output var raw []string @@ -313083,7 +337990,7 @@ func (r workflowRunToChildrenFindUnique) Omit(params ...workflowRunPrismaFields) raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range workflowRunDedupeOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -313094,11 +338001,11 @@ func (r workflowRunToChildrenFindUnique) Omit(params ...workflowRunPrismaFields) return r } -func (r workflowRunToChildrenFindUnique) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r workflowRunDedupeToTenantFindUnique) Exec(ctx context.Context) ( + *WorkflowRunDedupeModel, error, ) { - var v *WorkflowRunModel + var v *WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313110,11 +338017,11 @@ func (r workflowRunToChildrenFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToChildrenFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r workflowRunDedupeToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRunDedupe, error, ) { - var v *InnerWorkflowRun + var v *InnerWorkflowRunDedupe if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313126,12 +338033,12 @@ func (r workflowRunToChildrenFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToChildrenFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToChildrenUpdateUnique { +func (r workflowRunDedupeToTenantFindUnique) Update(params ...WorkflowRunDedupeSetParam) workflowRunDedupeToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowRun" + r.query.Model = "WorkflowRunDedupe" - var v workflowRunToChildrenUpdateUnique + var v workflowRunDedupeToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -313160,83 +338067,83 @@ func (r workflowRunToChildrenFindUnique) Update(params ...WorkflowRunSetParam) w return v } -type workflowRunToChildrenUpdateUnique struct { +type workflowRunDedupeToTenantUpdateUnique struct { query builder.Query } -func (r workflowRunToChildrenUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunDedupeToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToChildrenUpdateUnique) workflowRunModel() {} +func (r workflowRunDedupeToTenantUpdateUnique) workflowRunDedupeModel() {} -func (r workflowRunToChildrenUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r workflowRunDedupeToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowRunDedupeModel, error) { + var v WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunToChildrenUpdateUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r workflowRunDedupeToTenantUpdateUnique) Tx() WorkflowRunDedupeUniqueTxResult { + v := newWorkflowRunDedupeUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToChildrenFindUnique) Delete() workflowRunToChildrenDeleteUnique { - var v workflowRunToChildrenDeleteUnique +func (r workflowRunDedupeToTenantFindUnique) Delete() workflowRunDedupeToTenantDeleteUnique { + var v workflowRunDedupeToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowRun" + v.query.Model = "WorkflowRunDedupe" return v } -type workflowRunToChildrenDeleteUnique struct { +type workflowRunDedupeToTenantDeleteUnique struct { query builder.Query } -func (r workflowRunToChildrenDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunDedupeToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToChildrenDeleteUnique) workflowRunModel() {} +func (p workflowRunDedupeToTenantDeleteUnique) workflowRunDedupeModel() {} -func (r workflowRunToChildrenDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r workflowRunDedupeToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowRunDedupeModel, error) { + var v WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunToChildrenDeleteUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r workflowRunDedupeToTenantDeleteUnique) Tx() WorkflowRunDedupeUniqueTxResult { + v := newWorkflowRunDedupeUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToChildrenFindFirst struct { +type workflowRunDedupeToTenantFindFirst struct { query builder.Query } -func (r workflowRunToChildrenFindFirst) getQuery() builder.Query { +func (r workflowRunDedupeToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToChildrenFindFirst) ExtractQuery() builder.Query { +func (r workflowRunDedupeToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToChildrenFindFirst) with() {} -func (r workflowRunToChildrenFindFirst) workflowRunModel() {} -func (r workflowRunToChildrenFindFirst) workflowRunRelation() {} +func (r workflowRunDedupeToTenantFindFirst) with() {} +func (r workflowRunDedupeToTenantFindFirst) workflowRunDedupeModel() {} +func (r workflowRunDedupeToTenantFindFirst) workflowRunDedupeRelation() {} -func (r workflowRunToChildrenFindFirst) With(params ...WorkflowRunRelationWith) workflowRunToChildrenFindFirst { +func (r workflowRunDedupeToTenantFindFirst) With(params ...TenantRelationWith) workflowRunDedupeToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -313249,7 +338156,7 @@ func (r workflowRunToChildrenFindFirst) With(params ...WorkflowRunRelationWith) return r } -func (r workflowRunToChildrenFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToChildrenFindFirst { +func (r workflowRunDedupeToTenantFindFirst) Select(params ...workflowRunDedupePrismaFields) workflowRunDedupeToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -313263,7 +338170,7 @@ func (r workflowRunToChildrenFindFirst) Select(params ...workflowRunPrismaFields return r } -func (r workflowRunToChildrenFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToChildrenFindFirst { +func (r workflowRunDedupeToTenantFindFirst) Omit(params ...workflowRunDedupePrismaFields) workflowRunDedupeToTenantFindFirst { var outputs []builder.Output var raw []string @@ -313271,7 +338178,7 @@ func (r workflowRunToChildrenFindFirst) Omit(params ...workflowRunPrismaFields) raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range workflowRunDedupeOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -313282,7 +338189,7 @@ func (r workflowRunToChildrenFindFirst) Omit(params ...workflowRunPrismaFields) return r } -func (r workflowRunToChildrenFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunToChildrenFindFirst { +func (r workflowRunDedupeToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowRunDedupeToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -313302,7 +338209,7 @@ func (r workflowRunToChildrenFindFirst) OrderBy(params ...WorkflowRunOrderByPara return r } -func (r workflowRunToChildrenFindFirst) Skip(count int) workflowRunToChildrenFindFirst { +func (r workflowRunDedupeToTenantFindFirst) Skip(count int) workflowRunDedupeToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -313310,7 +338217,7 @@ func (r workflowRunToChildrenFindFirst) Skip(count int) workflowRunToChildrenFin return r } -func (r workflowRunToChildrenFindFirst) Take(count int) workflowRunToChildrenFindFirst { +func (r workflowRunDedupeToTenantFindFirst) Take(count int) workflowRunDedupeToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -313318,7 +338225,7 @@ func (r workflowRunToChildrenFindFirst) Take(count int) workflowRunToChildrenFin return r } -func (r workflowRunToChildrenFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToChildrenFindFirst { +func (r workflowRunDedupeToTenantFindFirst) Cursor(cursor WorkflowRunDedupeCursorParam) workflowRunDedupeToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -313326,11 +338233,11 @@ func (r workflowRunToChildrenFindFirst) Cursor(cursor WorkflowRunCursorParam) wo return r } -func (r workflowRunToChildrenFindFirst) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r workflowRunDedupeToTenantFindFirst) Exec(ctx context.Context) ( + *WorkflowRunDedupeModel, error, ) { - var v *WorkflowRunModel + var v *WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313342,11 +338249,11 @@ func (r workflowRunToChildrenFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToChildrenFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r workflowRunDedupeToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRunDedupe, error, ) { - var v *InnerWorkflowRun + var v *InnerWorkflowRunDedupe if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313358,23 +338265,23 @@ func (r workflowRunToChildrenFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunToChildrenFindMany struct { +type workflowRunDedupeToTenantFindMany struct { query builder.Query } -func (r workflowRunToChildrenFindMany) getQuery() builder.Query { +func (r workflowRunDedupeToTenantFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToChildrenFindMany) ExtractQuery() builder.Query { +func (r workflowRunDedupeToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToChildrenFindMany) with() {} -func (r workflowRunToChildrenFindMany) workflowRunModel() {} -func (r workflowRunToChildrenFindMany) workflowRunRelation() {} +func (r workflowRunDedupeToTenantFindMany) with() {} +func (r workflowRunDedupeToTenantFindMany) workflowRunDedupeModel() {} +func (r workflowRunDedupeToTenantFindMany) workflowRunDedupeRelation() {} -func (r workflowRunToChildrenFindMany) With(params ...WorkflowRunRelationWith) workflowRunToChildrenFindMany { +func (r workflowRunDedupeToTenantFindMany) With(params ...TenantRelationWith) workflowRunDedupeToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -313387,7 +338294,7 @@ func (r workflowRunToChildrenFindMany) With(params ...WorkflowRunRelationWith) w return r } -func (r workflowRunToChildrenFindMany) Select(params ...workflowRunPrismaFields) workflowRunToChildrenFindMany { +func (r workflowRunDedupeToTenantFindMany) Select(params ...workflowRunDedupePrismaFields) workflowRunDedupeToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -313401,7 +338308,7 @@ func (r workflowRunToChildrenFindMany) Select(params ...workflowRunPrismaFields) return r } -func (r workflowRunToChildrenFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToChildrenFindMany { +func (r workflowRunDedupeToTenantFindMany) Omit(params ...workflowRunDedupePrismaFields) workflowRunDedupeToTenantFindMany { var outputs []builder.Output var raw []string @@ -313409,7 +338316,7 @@ func (r workflowRunToChildrenFindMany) Omit(params ...workflowRunPrismaFields) w raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range workflowRunDedupeOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -313420,7 +338327,7 @@ func (r workflowRunToChildrenFindMany) Omit(params ...workflowRunPrismaFields) w return r } -func (r workflowRunToChildrenFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunToChildrenFindMany { +func (r workflowRunDedupeToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowRunDedupeToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -313440,7 +338347,7 @@ func (r workflowRunToChildrenFindMany) OrderBy(params ...WorkflowRunOrderByParam return r } -func (r workflowRunToChildrenFindMany) Skip(count int) workflowRunToChildrenFindMany { +func (r workflowRunDedupeToTenantFindMany) Skip(count int) workflowRunDedupeToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -313448,7 +338355,7 @@ func (r workflowRunToChildrenFindMany) Skip(count int) workflowRunToChildrenFind return r } -func (r workflowRunToChildrenFindMany) Take(count int) workflowRunToChildrenFindMany { +func (r workflowRunDedupeToTenantFindMany) Take(count int) workflowRunDedupeToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -313456,7 +338363,7 @@ func (r workflowRunToChildrenFindMany) Take(count int) workflowRunToChildrenFind return r } -func (r workflowRunToChildrenFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToChildrenFindMany { +func (r workflowRunDedupeToTenantFindMany) Cursor(cursor WorkflowRunDedupeCursorParam) workflowRunDedupeToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -313464,11 +338371,11 @@ func (r workflowRunToChildrenFindMany) Cursor(cursor WorkflowRunCursorParam) wor return r } -func (r workflowRunToChildrenFindMany) Exec(ctx context.Context) ( - []WorkflowRunModel, +func (r workflowRunDedupeToTenantFindMany) Exec(ctx context.Context) ( + []WorkflowRunDedupeModel, error, ) { - var v []WorkflowRunModel + var v []WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313476,11 +338383,11 @@ func (r workflowRunToChildrenFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToChildrenFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowRun, +func (r workflowRunDedupeToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRunDedupe, error, ) { - var v []InnerWorkflowRun + var v []InnerWorkflowRunDedupe if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313488,14 +338395,14 @@ func (r workflowRunToChildrenFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToChildrenFindMany) Update(params ...WorkflowRunSetParam) workflowRunToChildrenUpdateMany { +func (r workflowRunDedupeToTenantFindMany) Update(params ...WorkflowRunDedupeSetParam) workflowRunDedupeToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowRun" + r.query.Model = "WorkflowRunDedupe" r.query.Outputs = countOutput - var v workflowRunToChildrenUpdateMany + var v workflowRunDedupeToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -313524,17 +338431,17 @@ func (r workflowRunToChildrenFindMany) Update(params ...WorkflowRunSetParam) wor return v } -type workflowRunToChildrenUpdateMany struct { +type workflowRunDedupeToTenantUpdateMany struct { query builder.Query } -func (r workflowRunToChildrenUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunDedupeToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToChildrenUpdateMany) workflowRunModel() {} +func (r workflowRunDedupeToTenantUpdateMany) workflowRunDedupeModel() {} -func (r workflowRunToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunDedupeToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -313542,36 +338449,36 @@ func (r workflowRunToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r workflowRunToChildrenUpdateMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r workflowRunDedupeToTenantUpdateMany) Tx() WorkflowRunDedupeManyTxResult { + v := newWorkflowRunDedupeManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToChildrenFindMany) Delete() workflowRunToChildrenDeleteMany { - var v workflowRunToChildrenDeleteMany +func (r workflowRunDedupeToTenantFindMany) Delete() workflowRunDedupeToTenantDeleteMany { + var v workflowRunDedupeToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowRun" + v.query.Model = "WorkflowRunDedupe" v.query.Outputs = countOutput return v } -type workflowRunToChildrenDeleteMany struct { +type workflowRunDedupeToTenantDeleteMany struct { query builder.Query } -func (r workflowRunToChildrenDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunDedupeToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToChildrenDeleteMany) workflowRunModel() {} +func (p workflowRunDedupeToTenantDeleteMany) workflowRunDedupeModel() {} -func (r workflowRunToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunDedupeToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -313579,30 +338486,52 @@ func (r workflowRunToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r workflowRunToChildrenDeleteMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r workflowRunDedupeToTenantDeleteMany) Tx() WorkflowRunDedupeManyTxResult { + v := newWorkflowRunDedupeManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToScheduledChildrenFindUnique struct { +type workflowRunDedupeFindUnique struct { query builder.Query } -func (r workflowRunToScheduledChildrenFindUnique) getQuery() builder.Query { +func (r workflowRunDedupeFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToScheduledChildrenFindUnique) ExtractQuery() builder.Query { +func (r workflowRunDedupeFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToScheduledChildrenFindUnique) with() {} -func (r workflowRunToScheduledChildrenFindUnique) workflowRunModel() {} -func (r workflowRunToScheduledChildrenFindUnique) workflowRunRelation() {} +func (r workflowRunDedupeFindUnique) with() {} +func (r workflowRunDedupeFindUnique) workflowRunDedupeModel() {} +func (r workflowRunDedupeFindUnique) workflowRunDedupeRelation() {} -func (r workflowRunToScheduledChildrenFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunToScheduledChildrenFindUnique { +func (r workflowRunDedupeActions) FindUnique( + params WorkflowRunDedupeEqualsUniqueWhereParam, +) workflowRunDedupeFindUnique { + var v workflowRunDedupeFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkflowRunDedupe" + v.query.Outputs = workflowRunDedupeOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowRunDedupeFindUnique) With(params ...WorkflowRunDedupeRelationWith) workflowRunDedupeFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -313615,7 +338544,7 @@ func (r workflowRunToScheduledChildrenFindUnique) With(params ...WorkflowTrigger return r } -func (r workflowRunToScheduledChildrenFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindUnique { +func (r workflowRunDedupeFindUnique) Select(params ...workflowRunDedupePrismaFields) workflowRunDedupeFindUnique { var outputs []builder.Output for _, param := range params { @@ -313629,7 +338558,7 @@ func (r workflowRunToScheduledChildrenFindUnique) Select(params ...workflowRunPr return r } -func (r workflowRunToScheduledChildrenFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindUnique { +func (r workflowRunDedupeFindUnique) Omit(params ...workflowRunDedupePrismaFields) workflowRunDedupeFindUnique { var outputs []builder.Output var raw []string @@ -313637,7 +338566,7 @@ func (r workflowRunToScheduledChildrenFindUnique) Omit(params ...workflowRunPris raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range workflowRunDedupeOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -313648,11 +338577,11 @@ func (r workflowRunToScheduledChildrenFindUnique) Omit(params ...workflowRunPris return r } -func (r workflowRunToScheduledChildrenFindUnique) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r workflowRunDedupeFindUnique) Exec(ctx context.Context) ( + *WorkflowRunDedupeModel, error, ) { - var v *WorkflowRunModel + var v *WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313664,11 +338593,11 @@ func (r workflowRunToScheduledChildrenFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToScheduledChildrenFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r workflowRunDedupeFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRunDedupe, error, ) { - var v *InnerWorkflowRun + var v *InnerWorkflowRunDedupe if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313680,12 +338609,12 @@ func (r workflowRunToScheduledChildrenFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r workflowRunToScheduledChildrenFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToScheduledChildrenUpdateUnique { +func (r workflowRunDedupeFindUnique) Update(params ...WorkflowRunDedupeSetParam) workflowRunDedupeUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowRun" + r.query.Model = "WorkflowRunDedupe" - var v workflowRunToScheduledChildrenUpdateUnique + var v workflowRunDedupeUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -313714,83 +338643,120 @@ func (r workflowRunToScheduledChildrenFindUnique) Update(params ...WorkflowRunSe return v } -type workflowRunToScheduledChildrenUpdateUnique struct { +type workflowRunDedupeUpdateUnique struct { query builder.Query } -func (r workflowRunToScheduledChildrenUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunDedupeUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToScheduledChildrenUpdateUnique) workflowRunModel() {} +func (r workflowRunDedupeUpdateUnique) workflowRunDedupeModel() {} -func (r workflowRunToScheduledChildrenUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r workflowRunDedupeUpdateUnique) Exec(ctx context.Context) (*WorkflowRunDedupeModel, error) { + var v WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunToScheduledChildrenUpdateUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r workflowRunDedupeUpdateUnique) Tx() WorkflowRunDedupeUniqueTxResult { + v := newWorkflowRunDedupeUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToScheduledChildrenFindUnique) Delete() workflowRunToScheduledChildrenDeleteUnique { - var v workflowRunToScheduledChildrenDeleteUnique +func (r workflowRunDedupeFindUnique) Delete() workflowRunDedupeDeleteUnique { + var v workflowRunDedupeDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowRun" + v.query.Model = "WorkflowRunDedupe" return v } -type workflowRunToScheduledChildrenDeleteUnique struct { +type workflowRunDedupeDeleteUnique struct { query builder.Query } -func (r workflowRunToScheduledChildrenDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunDedupeDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToScheduledChildrenDeleteUnique) workflowRunModel() {} +func (p workflowRunDedupeDeleteUnique) workflowRunDedupeModel() {} -func (r workflowRunToScheduledChildrenDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r workflowRunDedupeDeleteUnique) Exec(ctx context.Context) (*WorkflowRunDedupeModel, error) { + var v WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunToScheduledChildrenDeleteUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r workflowRunDedupeDeleteUnique) Tx() WorkflowRunDedupeUniqueTxResult { + v := newWorkflowRunDedupeUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToScheduledChildrenFindFirst struct { +type workflowRunDedupeFindFirst struct { query builder.Query } -func (r workflowRunToScheduledChildrenFindFirst) getQuery() builder.Query { +func (r workflowRunDedupeFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToScheduledChildrenFindFirst) ExtractQuery() builder.Query { +func (r workflowRunDedupeFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToScheduledChildrenFindFirst) with() {} -func (r workflowRunToScheduledChildrenFindFirst) workflowRunModel() {} -func (r workflowRunToScheduledChildrenFindFirst) workflowRunRelation() {} +func (r workflowRunDedupeFindFirst) with() {} +func (r workflowRunDedupeFindFirst) workflowRunDedupeModel() {} +func (r workflowRunDedupeFindFirst) workflowRunDedupeRelation() {} -func (r workflowRunToScheduledChildrenFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunToScheduledChildrenFindFirst { +func (r workflowRunDedupeActions) FindFirst( + params ...WorkflowRunDedupeWhereParam, +) workflowRunDedupeFindFirst { + var v workflowRunDedupeFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkflowRunDedupe" + v.query.Outputs = workflowRunDedupeOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowRunDedupeFindFirst) With(params ...WorkflowRunDedupeRelationWith) workflowRunDedupeFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -313803,7 +338769,7 @@ func (r workflowRunToScheduledChildrenFindFirst) With(params ...WorkflowTriggerS return r } -func (r workflowRunToScheduledChildrenFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindFirst { +func (r workflowRunDedupeFindFirst) Select(params ...workflowRunDedupePrismaFields) workflowRunDedupeFindFirst { var outputs []builder.Output for _, param := range params { @@ -313817,7 +338783,7 @@ func (r workflowRunToScheduledChildrenFindFirst) Select(params ...workflowRunPri return r } -func (r workflowRunToScheduledChildrenFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindFirst { +func (r workflowRunDedupeFindFirst) Omit(params ...workflowRunDedupePrismaFields) workflowRunDedupeFindFirst { var outputs []builder.Output var raw []string @@ -313825,7 +338791,7 @@ func (r workflowRunToScheduledChildrenFindFirst) Omit(params ...workflowRunPrism raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range workflowRunDedupeOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -313836,7 +338802,7 @@ func (r workflowRunToScheduledChildrenFindFirst) Omit(params ...workflowRunPrism return r } -func (r workflowRunToScheduledChildrenFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowRunToScheduledChildrenFindFirst { +func (r workflowRunDedupeFindFirst) OrderBy(params ...WorkflowRunDedupeOrderByParam) workflowRunDedupeFindFirst { var fields []builder.Field for _, param := range params { @@ -313856,7 +338822,7 @@ func (r workflowRunToScheduledChildrenFindFirst) OrderBy(params ...WorkflowTrigg return r } -func (r workflowRunToScheduledChildrenFindFirst) Skip(count int) workflowRunToScheduledChildrenFindFirst { +func (r workflowRunDedupeFindFirst) Skip(count int) workflowRunDedupeFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -313864,7 +338830,7 @@ func (r workflowRunToScheduledChildrenFindFirst) Skip(count int) workflowRunToSc return r } -func (r workflowRunToScheduledChildrenFindFirst) Take(count int) workflowRunToScheduledChildrenFindFirst { +func (r workflowRunDedupeFindFirst) Take(count int) workflowRunDedupeFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -313872,7 +338838,7 @@ func (r workflowRunToScheduledChildrenFindFirst) Take(count int) workflowRunToSc return r } -func (r workflowRunToScheduledChildrenFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToScheduledChildrenFindFirst { +func (r workflowRunDedupeFindFirst) Cursor(cursor WorkflowRunDedupeCursorParam) workflowRunDedupeFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -313880,11 +338846,11 @@ func (r workflowRunToScheduledChildrenFindFirst) Cursor(cursor WorkflowRunCursor return r } -func (r workflowRunToScheduledChildrenFindFirst) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r workflowRunDedupeFindFirst) Exec(ctx context.Context) ( + *WorkflowRunDedupeModel, error, ) { - var v *WorkflowRunModel + var v *WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313896,11 +338862,11 @@ func (r workflowRunToScheduledChildrenFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToScheduledChildrenFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r workflowRunDedupeFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRunDedupe, error, ) { - var v *InnerWorkflowRun + var v *InnerWorkflowRunDedupe if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -313912,23 +338878,60 @@ func (r workflowRunToScheduledChildrenFindFirst) ExecInner(ctx context.Context) return v, nil } -type workflowRunToScheduledChildrenFindMany struct { +type workflowRunDedupeFindMany struct { query builder.Query } -func (r workflowRunToScheduledChildrenFindMany) getQuery() builder.Query { +func (r workflowRunDedupeFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToScheduledChildrenFindMany) ExtractQuery() builder.Query { +func (r workflowRunDedupeFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToScheduledChildrenFindMany) with() {} -func (r workflowRunToScheduledChildrenFindMany) workflowRunModel() {} -func (r workflowRunToScheduledChildrenFindMany) workflowRunRelation() {} +func (r workflowRunDedupeFindMany) with() {} +func (r workflowRunDedupeFindMany) workflowRunDedupeModel() {} +func (r workflowRunDedupeFindMany) workflowRunDedupeRelation() {} -func (r workflowRunToScheduledChildrenFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunToScheduledChildrenFindMany { +func (r workflowRunDedupeActions) FindMany( + params ...WorkflowRunDedupeWhereParam, +) workflowRunDedupeFindMany { + var v workflowRunDedupeFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkflowRunDedupe" + v.query.Outputs = workflowRunDedupeOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowRunDedupeFindMany) With(params ...WorkflowRunDedupeRelationWith) workflowRunDedupeFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -313941,7 +338944,7 @@ func (r workflowRunToScheduledChildrenFindMany) With(params ...WorkflowTriggerSc return r } -func (r workflowRunToScheduledChildrenFindMany) Select(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindMany { +func (r workflowRunDedupeFindMany) Select(params ...workflowRunDedupePrismaFields) workflowRunDedupeFindMany { var outputs []builder.Output for _, param := range params { @@ -313955,7 +338958,7 @@ func (r workflowRunToScheduledChildrenFindMany) Select(params ...workflowRunPris return r } -func (r workflowRunToScheduledChildrenFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToScheduledChildrenFindMany { +func (r workflowRunDedupeFindMany) Omit(params ...workflowRunDedupePrismaFields) workflowRunDedupeFindMany { var outputs []builder.Output var raw []string @@ -313963,7 +338966,7 @@ func (r workflowRunToScheduledChildrenFindMany) Omit(params ...workflowRunPrisma raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range workflowRunDedupeOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -313974,7 +338977,7 @@ func (r workflowRunToScheduledChildrenFindMany) Omit(params ...workflowRunPrisma return r } -func (r workflowRunToScheduledChildrenFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowRunToScheduledChildrenFindMany { +func (r workflowRunDedupeFindMany) OrderBy(params ...WorkflowRunDedupeOrderByParam) workflowRunDedupeFindMany { var fields []builder.Field for _, param := range params { @@ -313994,7 +338997,7 @@ func (r workflowRunToScheduledChildrenFindMany) OrderBy(params ...WorkflowTrigge return r } -func (r workflowRunToScheduledChildrenFindMany) Skip(count int) workflowRunToScheduledChildrenFindMany { +func (r workflowRunDedupeFindMany) Skip(count int) workflowRunDedupeFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -314002,7 +339005,7 @@ func (r workflowRunToScheduledChildrenFindMany) Skip(count int) workflowRunToSch return r } -func (r workflowRunToScheduledChildrenFindMany) Take(count int) workflowRunToScheduledChildrenFindMany { +func (r workflowRunDedupeFindMany) Take(count int) workflowRunDedupeFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -314010,7 +339013,7 @@ func (r workflowRunToScheduledChildrenFindMany) Take(count int) workflowRunToSch return r } -func (r workflowRunToScheduledChildrenFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToScheduledChildrenFindMany { +func (r workflowRunDedupeFindMany) Cursor(cursor WorkflowRunDedupeCursorParam) workflowRunDedupeFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -314018,11 +339021,11 @@ func (r workflowRunToScheduledChildrenFindMany) Cursor(cursor WorkflowRunCursorP return r } -func (r workflowRunToScheduledChildrenFindMany) Exec(ctx context.Context) ( - []WorkflowRunModel, +func (r workflowRunDedupeFindMany) Exec(ctx context.Context) ( + []WorkflowRunDedupeModel, error, ) { - var v []WorkflowRunModel + var v []WorkflowRunDedupeModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314030,11 +339033,11 @@ func (r workflowRunToScheduledChildrenFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToScheduledChildrenFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowRun, +func (r workflowRunDedupeFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRunDedupe, error, ) { - var v []InnerWorkflowRun + var v []InnerWorkflowRunDedupe if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314042,14 +339045,14 @@ func (r workflowRunToScheduledChildrenFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToScheduledChildrenFindMany) Update(params ...WorkflowRunSetParam) workflowRunToScheduledChildrenUpdateMany { +func (r workflowRunDedupeFindMany) Update(params ...WorkflowRunDedupeSetParam) workflowRunDedupeUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowRun" + r.query.Model = "WorkflowRunDedupe" r.query.Outputs = countOutput - var v workflowRunToScheduledChildrenUpdateMany + var v workflowRunDedupeUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -314078,17 +339081,17 @@ func (r workflowRunToScheduledChildrenFindMany) Update(params ...WorkflowRunSetP return v } -type workflowRunToScheduledChildrenUpdateMany struct { +type workflowRunDedupeUpdateMany struct { query builder.Query } -func (r workflowRunToScheduledChildrenUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunDedupeUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToScheduledChildrenUpdateMany) workflowRunModel() {} +func (r workflowRunDedupeUpdateMany) workflowRunDedupeModel() {} -func (r workflowRunToScheduledChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunDedupeUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -314096,36 +339099,36 @@ func (r workflowRunToScheduledChildrenUpdateMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowRunToScheduledChildrenUpdateMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r workflowRunDedupeUpdateMany) Tx() WorkflowRunDedupeManyTxResult { + v := newWorkflowRunDedupeManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToScheduledChildrenFindMany) Delete() workflowRunToScheduledChildrenDeleteMany { - var v workflowRunToScheduledChildrenDeleteMany +func (r workflowRunDedupeFindMany) Delete() workflowRunDedupeDeleteMany { + var v workflowRunDedupeDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowRun" + v.query.Model = "WorkflowRunDedupe" v.query.Outputs = countOutput return v } -type workflowRunToScheduledChildrenDeleteMany struct { +type workflowRunDedupeDeleteMany struct { query builder.Query } -func (r workflowRunToScheduledChildrenDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunDedupeDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToScheduledChildrenDeleteMany) workflowRunModel() {} +func (p workflowRunDedupeDeleteMany) workflowRunDedupeModel() {} -func (r workflowRunToScheduledChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunDedupeDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -314133,30 +339136,30 @@ func (r workflowRunToScheduledChildrenDeleteMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowRunToScheduledChildrenDeleteMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r workflowRunDedupeDeleteMany) Tx() WorkflowRunDedupeManyTxResult { + v := newWorkflowRunDedupeManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToParentFindUnique struct { +type getGroupKeyRunToTenantFindUnique struct { query builder.Query } -func (r workflowRunToParentFindUnique) getQuery() builder.Query { +func (r getGroupKeyRunToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToParentFindUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentFindUnique) with() {} -func (r workflowRunToParentFindUnique) workflowRunModel() {} -func (r workflowRunToParentFindUnique) workflowRunRelation() {} +func (r getGroupKeyRunToTenantFindUnique) with() {} +func (r getGroupKeyRunToTenantFindUnique) getGroupKeyRunModel() {} +func (r getGroupKeyRunToTenantFindUnique) getGroupKeyRunRelation() {} -func (r workflowRunToParentFindUnique) With(params ...WorkflowRunRelationWith) workflowRunToParentFindUnique { +func (r getGroupKeyRunToTenantFindUnique) With(params ...TenantRelationWith) getGroupKeyRunToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -314169,7 +339172,7 @@ func (r workflowRunToParentFindUnique) With(params ...WorkflowRunRelationWith) w return r } -func (r workflowRunToParentFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToParentFindUnique { +func (r getGroupKeyRunToTenantFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -314183,7 +339186,7 @@ func (r workflowRunToParentFindUnique) Select(params ...workflowRunPrismaFields) return r } -func (r workflowRunToParentFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToParentFindUnique { +func (r getGroupKeyRunToTenantFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindUnique { var outputs []builder.Output var raw []string @@ -314191,7 +339194,7 @@ func (r workflowRunToParentFindUnique) Omit(params ...workflowRunPrismaFields) w raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -314202,11 +339205,11 @@ func (r workflowRunToParentFindUnique) Omit(params ...workflowRunPrismaFields) w return r } -func (r workflowRunToParentFindUnique) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r getGroupKeyRunToTenantFindUnique) Exec(ctx context.Context) ( + *GetGroupKeyRunModel, error, ) { - var v *WorkflowRunModel + var v *GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314218,11 +339221,11 @@ func (r workflowRunToParentFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToParentFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r getGroupKeyRunToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerGetGroupKeyRun, error, ) { - var v *InnerWorkflowRun + var v *InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314234,12 +339237,12 @@ func (r workflowRunToParentFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToParentFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToParentUpdateUnique { +func (r getGroupKeyRunToTenantFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowRun" + r.query.Model = "GetGroupKeyRun" - var v workflowRunToParentUpdateUnique + var v getGroupKeyRunToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -314268,83 +339271,83 @@ func (r workflowRunToParentFindUnique) Update(params ...WorkflowRunSetParam) wor return v } -type workflowRunToParentUpdateUnique struct { +type getGroupKeyRunToTenantUpdateUnique struct { query builder.Query } -func (r workflowRunToParentUpdateUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentUpdateUnique) workflowRunModel() {} +func (r getGroupKeyRunToTenantUpdateUnique) getGroupKeyRunModel() {} -func (r workflowRunToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r getGroupKeyRunToTenantUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { + var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunToParentUpdateUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r getGroupKeyRunToTenantUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { + v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToParentFindUnique) Delete() workflowRunToParentDeleteUnique { - var v workflowRunToParentDeleteUnique +func (r getGroupKeyRunToTenantFindUnique) Delete() getGroupKeyRunToTenantDeleteUnique { + var v getGroupKeyRunToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowRun" + v.query.Model = "GetGroupKeyRun" return v } -type workflowRunToParentDeleteUnique struct { +type getGroupKeyRunToTenantDeleteUnique struct { query builder.Query } -func (r workflowRunToParentDeleteUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToParentDeleteUnique) workflowRunModel() {} +func (p getGroupKeyRunToTenantDeleteUnique) getGroupKeyRunModel() {} -func (r workflowRunToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r getGroupKeyRunToTenantDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { + var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunToParentDeleteUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r getGroupKeyRunToTenantDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { + v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToParentFindFirst struct { +type getGroupKeyRunToTenantFindFirst struct { query builder.Query } -func (r workflowRunToParentFindFirst) getQuery() builder.Query { +func (r getGroupKeyRunToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToParentFindFirst) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentFindFirst) with() {} -func (r workflowRunToParentFindFirst) workflowRunModel() {} -func (r workflowRunToParentFindFirst) workflowRunRelation() {} +func (r getGroupKeyRunToTenantFindFirst) with() {} +func (r getGroupKeyRunToTenantFindFirst) getGroupKeyRunModel() {} +func (r getGroupKeyRunToTenantFindFirst) getGroupKeyRunRelation() {} -func (r workflowRunToParentFindFirst) With(params ...WorkflowRunRelationWith) workflowRunToParentFindFirst { +func (r getGroupKeyRunToTenantFindFirst) With(params ...TenantRelationWith) getGroupKeyRunToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -314357,7 +339360,7 @@ func (r workflowRunToParentFindFirst) With(params ...WorkflowRunRelationWith) wo return r } -func (r workflowRunToParentFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToParentFindFirst { +func (r getGroupKeyRunToTenantFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -314371,7 +339374,7 @@ func (r workflowRunToParentFindFirst) Select(params ...workflowRunPrismaFields) return r } -func (r workflowRunToParentFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToParentFindFirst { +func (r getGroupKeyRunToTenantFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindFirst { var outputs []builder.Output var raw []string @@ -314379,7 +339382,7 @@ func (r workflowRunToParentFindFirst) Omit(params ...workflowRunPrismaFields) wo raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -314390,7 +339393,7 @@ func (r workflowRunToParentFindFirst) Omit(params ...workflowRunPrismaFields) wo return r } -func (r workflowRunToParentFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunToParentFindFirst { +func (r getGroupKeyRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) getGroupKeyRunToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -314410,7 +339413,7 @@ func (r workflowRunToParentFindFirst) OrderBy(params ...WorkflowRunOrderByParam) return r } -func (r workflowRunToParentFindFirst) Skip(count int) workflowRunToParentFindFirst { +func (r getGroupKeyRunToTenantFindFirst) Skip(count int) getGroupKeyRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -314418,7 +339421,7 @@ func (r workflowRunToParentFindFirst) Skip(count int) workflowRunToParentFindFir return r } -func (r workflowRunToParentFindFirst) Take(count int) workflowRunToParentFindFirst { +func (r getGroupKeyRunToTenantFindFirst) Take(count int) getGroupKeyRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -314426,7 +339429,7 @@ func (r workflowRunToParentFindFirst) Take(count int) workflowRunToParentFindFir return r } -func (r workflowRunToParentFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToParentFindFirst { +func (r getGroupKeyRunToTenantFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -314434,11 +339437,11 @@ func (r workflowRunToParentFindFirst) Cursor(cursor WorkflowRunCursorParam) work return r } -func (r workflowRunToParentFindFirst) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r getGroupKeyRunToTenantFindFirst) Exec(ctx context.Context) ( + *GetGroupKeyRunModel, error, ) { - var v *WorkflowRunModel + var v *GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314450,11 +339453,11 @@ func (r workflowRunToParentFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToParentFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r getGroupKeyRunToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerGetGroupKeyRun, error, ) { - var v *InnerWorkflowRun + var v *InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314466,23 +339469,23 @@ func (r workflowRunToParentFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunToParentFindMany struct { +type getGroupKeyRunToTenantFindMany struct { query builder.Query } -func (r workflowRunToParentFindMany) getQuery() builder.Query { +func (r getGroupKeyRunToTenantFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToParentFindMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentFindMany) with() {} -func (r workflowRunToParentFindMany) workflowRunModel() {} -func (r workflowRunToParentFindMany) workflowRunRelation() {} +func (r getGroupKeyRunToTenantFindMany) with() {} +func (r getGroupKeyRunToTenantFindMany) getGroupKeyRunModel() {} +func (r getGroupKeyRunToTenantFindMany) getGroupKeyRunRelation() {} -func (r workflowRunToParentFindMany) With(params ...WorkflowRunRelationWith) workflowRunToParentFindMany { +func (r getGroupKeyRunToTenantFindMany) With(params ...TenantRelationWith) getGroupKeyRunToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -314495,7 +339498,7 @@ func (r workflowRunToParentFindMany) With(params ...WorkflowRunRelationWith) wor return r } -func (r workflowRunToParentFindMany) Select(params ...workflowRunPrismaFields) workflowRunToParentFindMany { +func (r getGroupKeyRunToTenantFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -314509,7 +339512,7 @@ func (r workflowRunToParentFindMany) Select(params ...workflowRunPrismaFields) w return r } -func (r workflowRunToParentFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToParentFindMany { +func (r getGroupKeyRunToTenantFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindMany { var outputs []builder.Output var raw []string @@ -314517,7 +339520,7 @@ func (r workflowRunToParentFindMany) Omit(params ...workflowRunPrismaFields) wor raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -314528,7 +339531,7 @@ func (r workflowRunToParentFindMany) Omit(params ...workflowRunPrismaFields) wor return r } -func (r workflowRunToParentFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunToParentFindMany { +func (r getGroupKeyRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) getGroupKeyRunToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -314548,7 +339551,7 @@ func (r workflowRunToParentFindMany) OrderBy(params ...WorkflowRunOrderByParam) return r } -func (r workflowRunToParentFindMany) Skip(count int) workflowRunToParentFindMany { +func (r getGroupKeyRunToTenantFindMany) Skip(count int) getGroupKeyRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -314556,7 +339559,7 @@ func (r workflowRunToParentFindMany) Skip(count int) workflowRunToParentFindMany return r } -func (r workflowRunToParentFindMany) Take(count int) workflowRunToParentFindMany { +func (r getGroupKeyRunToTenantFindMany) Take(count int) getGroupKeyRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -314564,7 +339567,7 @@ func (r workflowRunToParentFindMany) Take(count int) workflowRunToParentFindMany return r } -func (r workflowRunToParentFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToParentFindMany { +func (r getGroupKeyRunToTenantFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -314572,11 +339575,11 @@ func (r workflowRunToParentFindMany) Cursor(cursor WorkflowRunCursorParam) workf return r } -func (r workflowRunToParentFindMany) Exec(ctx context.Context) ( - []WorkflowRunModel, +func (r getGroupKeyRunToTenantFindMany) Exec(ctx context.Context) ( + []GetGroupKeyRunModel, error, ) { - var v []WorkflowRunModel + var v []GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314584,11 +339587,11 @@ func (r workflowRunToParentFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToParentFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowRun, +func (r getGroupKeyRunToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerGetGroupKeyRun, error, ) { - var v []InnerWorkflowRun + var v []InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314596,14 +339599,14 @@ func (r workflowRunToParentFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToParentFindMany) Update(params ...WorkflowRunSetParam) workflowRunToParentUpdateMany { +func (r getGroupKeyRunToTenantFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowRun" + r.query.Model = "GetGroupKeyRun" r.query.Outputs = countOutput - var v workflowRunToParentUpdateMany + var v getGroupKeyRunToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -314632,17 +339635,17 @@ func (r workflowRunToParentFindMany) Update(params ...WorkflowRunSetParam) workf return v } -type workflowRunToParentUpdateMany struct { +type getGroupKeyRunToTenantUpdateMany struct { query builder.Query } -func (r workflowRunToParentUpdateMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentUpdateMany) workflowRunModel() {} +func (r getGroupKeyRunToTenantUpdateMany) getGroupKeyRunModel() {} -func (r workflowRunToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -314650,36 +339653,36 @@ func (r workflowRunToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowRunToParentUpdateMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r getGroupKeyRunToTenantUpdateMany) Tx() GetGroupKeyRunManyTxResult { + v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToParentFindMany) Delete() workflowRunToParentDeleteMany { - var v workflowRunToParentDeleteMany +func (r getGroupKeyRunToTenantFindMany) Delete() getGroupKeyRunToTenantDeleteMany { + var v getGroupKeyRunToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowRun" + v.query.Model = "GetGroupKeyRun" v.query.Outputs = countOutput return v } -type workflowRunToParentDeleteMany struct { +type getGroupKeyRunToTenantDeleteMany struct { query builder.Query } -func (r workflowRunToParentDeleteMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToParentDeleteMany) workflowRunModel() {} +func (p getGroupKeyRunToTenantDeleteMany) getGroupKeyRunModel() {} -func (r workflowRunToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -314687,30 +339690,30 @@ func (r workflowRunToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r workflowRunToParentDeleteMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r getGroupKeyRunToTenantDeleteMany) Tx() GetGroupKeyRunManyTxResult { + v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToParentStepRunFindUnique struct { +type getGroupKeyRunToWorkflowRunFindUnique struct { query builder.Query } -func (r workflowRunToParentStepRunFindUnique) getQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunToParentStepRunFindUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentStepRunFindUnique) with() {} -func (r workflowRunToParentStepRunFindUnique) workflowRunModel() {} -func (r workflowRunToParentStepRunFindUnique) workflowRunRelation() {} +func (r getGroupKeyRunToWorkflowRunFindUnique) with() {} +func (r getGroupKeyRunToWorkflowRunFindUnique) getGroupKeyRunModel() {} +func (r getGroupKeyRunToWorkflowRunFindUnique) getGroupKeyRunRelation() {} -func (r workflowRunToParentStepRunFindUnique) With(params ...StepRunRelationWith) workflowRunToParentStepRunFindUnique { +func (r getGroupKeyRunToWorkflowRunFindUnique) With(params ...WorkflowRunRelationWith) getGroupKeyRunToWorkflowRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -314723,7 +339726,7 @@ func (r workflowRunToParentStepRunFindUnique) With(params ...StepRunRelationWith return r } -func (r workflowRunToParentStepRunFindUnique) Select(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindUnique { +func (r getGroupKeyRunToWorkflowRunFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -314737,7 +339740,7 @@ func (r workflowRunToParentStepRunFindUnique) Select(params ...workflowRunPrisma return r } -func (r workflowRunToParentStepRunFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindUnique { +func (r getGroupKeyRunToWorkflowRunFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindUnique { var outputs []builder.Output var raw []string @@ -314745,7 +339748,7 @@ func (r workflowRunToParentStepRunFindUnique) Omit(params ...workflowRunPrismaFi raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -314756,11 +339759,11 @@ func (r workflowRunToParentStepRunFindUnique) Omit(params ...workflowRunPrismaFi return r } -func (r workflowRunToParentStepRunFindUnique) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r getGroupKeyRunToWorkflowRunFindUnique) Exec(ctx context.Context) ( + *GetGroupKeyRunModel, error, ) { - var v *WorkflowRunModel + var v *GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314772,11 +339775,11 @@ func (r workflowRunToParentStepRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToParentStepRunFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r getGroupKeyRunToWorkflowRunFindUnique) ExecInner(ctx context.Context) ( + *InnerGetGroupKeyRun, error, ) { - var v *InnerWorkflowRun + var v *InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -314788,12 +339791,12 @@ func (r workflowRunToParentStepRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToParentStepRunFindUnique) Update(params ...WorkflowRunSetParam) workflowRunToParentStepRunUpdateUnique { +func (r getGroupKeyRunToWorkflowRunFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToWorkflowRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowRun" + r.query.Model = "GetGroupKeyRun" - var v workflowRunToParentStepRunUpdateUnique + var v getGroupKeyRunToWorkflowRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -314822,83 +339825,83 @@ func (r workflowRunToParentStepRunFindUnique) Update(params ...WorkflowRunSetPar return v } -type workflowRunToParentStepRunUpdateUnique struct { +type getGroupKeyRunToWorkflowRunUpdateUnique struct { query builder.Query } -func (r workflowRunToParentStepRunUpdateUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentStepRunUpdateUnique) workflowRunModel() {} +func (r getGroupKeyRunToWorkflowRunUpdateUnique) getGroupKeyRunModel() {} -func (r workflowRunToParentStepRunUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r getGroupKeyRunToWorkflowRunUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { + var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunToParentStepRunUpdateUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r getGroupKeyRunToWorkflowRunUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { + v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToParentStepRunFindUnique) Delete() workflowRunToParentStepRunDeleteUnique { - var v workflowRunToParentStepRunDeleteUnique +func (r getGroupKeyRunToWorkflowRunFindUnique) Delete() getGroupKeyRunToWorkflowRunDeleteUnique { + var v getGroupKeyRunToWorkflowRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowRun" + v.query.Model = "GetGroupKeyRun" return v } -type workflowRunToParentStepRunDeleteUnique struct { +type getGroupKeyRunToWorkflowRunDeleteUnique struct { query builder.Query } -func (r workflowRunToParentStepRunDeleteUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToParentStepRunDeleteUnique) workflowRunModel() {} +func (p getGroupKeyRunToWorkflowRunDeleteUnique) getGroupKeyRunModel() {} -func (r workflowRunToParentStepRunDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r getGroupKeyRunToWorkflowRunDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { + var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunToParentStepRunDeleteUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r getGroupKeyRunToWorkflowRunDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { + v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunToParentStepRunFindFirst struct { +type getGroupKeyRunToWorkflowRunFindFirst struct { query builder.Query } -func (r workflowRunToParentStepRunFindFirst) getQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunToParentStepRunFindFirst) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentStepRunFindFirst) with() {} -func (r workflowRunToParentStepRunFindFirst) workflowRunModel() {} -func (r workflowRunToParentStepRunFindFirst) workflowRunRelation() {} +func (r getGroupKeyRunToWorkflowRunFindFirst) with() {} +func (r getGroupKeyRunToWorkflowRunFindFirst) getGroupKeyRunModel() {} +func (r getGroupKeyRunToWorkflowRunFindFirst) getGroupKeyRunRelation() {} -func (r workflowRunToParentStepRunFindFirst) With(params ...StepRunRelationWith) workflowRunToParentStepRunFindFirst { +func (r getGroupKeyRunToWorkflowRunFindFirst) With(params ...WorkflowRunRelationWith) getGroupKeyRunToWorkflowRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -314911,7 +339914,7 @@ func (r workflowRunToParentStepRunFindFirst) With(params ...StepRunRelationWith) return r } -func (r workflowRunToParentStepRunFindFirst) Select(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindFirst { +func (r getGroupKeyRunToWorkflowRunFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -314925,7 +339928,7 @@ func (r workflowRunToParentStepRunFindFirst) Select(params ...workflowRunPrismaF return r } -func (r workflowRunToParentStepRunFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindFirst { +func (r getGroupKeyRunToWorkflowRunFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindFirst { var outputs []builder.Output var raw []string @@ -314933,7 +339936,7 @@ func (r workflowRunToParentStepRunFindFirst) Omit(params ...workflowRunPrismaFie raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -314944,7 +339947,7 @@ func (r workflowRunToParentStepRunFindFirst) Omit(params ...workflowRunPrismaFie return r } -func (r workflowRunToParentStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) workflowRunToParentStepRunFindFirst { +func (r getGroupKeyRunToWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) getGroupKeyRunToWorkflowRunFindFirst { var fields []builder.Field for _, param := range params { @@ -314964,7 +339967,7 @@ func (r workflowRunToParentStepRunFindFirst) OrderBy(params ...StepRunOrderByPar return r } -func (r workflowRunToParentStepRunFindFirst) Skip(count int) workflowRunToParentStepRunFindFirst { +func (r getGroupKeyRunToWorkflowRunFindFirst) Skip(count int) getGroupKeyRunToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -314972,7 +339975,7 @@ func (r workflowRunToParentStepRunFindFirst) Skip(count int) workflowRunToParent return r } -func (r workflowRunToParentStepRunFindFirst) Take(count int) workflowRunToParentStepRunFindFirst { +func (r getGroupKeyRunToWorkflowRunFindFirst) Take(count int) getGroupKeyRunToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -314980,7 +339983,7 @@ func (r workflowRunToParentStepRunFindFirst) Take(count int) workflowRunToParent return r } -func (r workflowRunToParentStepRunFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunToParentStepRunFindFirst { +func (r getGroupKeyRunToWorkflowRunFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -314988,11 +339991,11 @@ func (r workflowRunToParentStepRunFindFirst) Cursor(cursor WorkflowRunCursorPara return r } -func (r workflowRunToParentStepRunFindFirst) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r getGroupKeyRunToWorkflowRunFindFirst) Exec(ctx context.Context) ( + *GetGroupKeyRunModel, error, ) { - var v *WorkflowRunModel + var v *GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315004,11 +340007,11 @@ func (r workflowRunToParentStepRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToParentStepRunFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r getGroupKeyRunToWorkflowRunFindFirst) ExecInner(ctx context.Context) ( + *InnerGetGroupKeyRun, error, ) { - var v *InnerWorkflowRun + var v *InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315020,23 +340023,23 @@ func (r workflowRunToParentStepRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunToParentStepRunFindMany struct { +type getGroupKeyRunToWorkflowRunFindMany struct { query builder.Query } -func (r workflowRunToParentStepRunFindMany) getQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunToParentStepRunFindMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentStepRunFindMany) with() {} -func (r workflowRunToParentStepRunFindMany) workflowRunModel() {} -func (r workflowRunToParentStepRunFindMany) workflowRunRelation() {} +func (r getGroupKeyRunToWorkflowRunFindMany) with() {} +func (r getGroupKeyRunToWorkflowRunFindMany) getGroupKeyRunModel() {} +func (r getGroupKeyRunToWorkflowRunFindMany) getGroupKeyRunRelation() {} -func (r workflowRunToParentStepRunFindMany) With(params ...StepRunRelationWith) workflowRunToParentStepRunFindMany { +func (r getGroupKeyRunToWorkflowRunFindMany) With(params ...WorkflowRunRelationWith) getGroupKeyRunToWorkflowRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -315049,7 +340052,7 @@ func (r workflowRunToParentStepRunFindMany) With(params ...StepRunRelationWith) return r } -func (r workflowRunToParentStepRunFindMany) Select(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindMany { +func (r getGroupKeyRunToWorkflowRunFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindMany { var outputs []builder.Output for _, param := range params { @@ -315063,7 +340066,7 @@ func (r workflowRunToParentStepRunFindMany) Select(params ...workflowRunPrismaFi return r } -func (r workflowRunToParentStepRunFindMany) Omit(params ...workflowRunPrismaFields) workflowRunToParentStepRunFindMany { +func (r getGroupKeyRunToWorkflowRunFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindMany { var outputs []builder.Output var raw []string @@ -315071,7 +340074,7 @@ func (r workflowRunToParentStepRunFindMany) Omit(params ...workflowRunPrismaFiel raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -315082,7 +340085,7 @@ func (r workflowRunToParentStepRunFindMany) Omit(params ...workflowRunPrismaFiel return r } -func (r workflowRunToParentStepRunFindMany) OrderBy(params ...StepRunOrderByParam) workflowRunToParentStepRunFindMany { +func (r getGroupKeyRunToWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) getGroupKeyRunToWorkflowRunFindMany { var fields []builder.Field for _, param := range params { @@ -315102,7 +340105,7 @@ func (r workflowRunToParentStepRunFindMany) OrderBy(params ...StepRunOrderByPara return r } -func (r workflowRunToParentStepRunFindMany) Skip(count int) workflowRunToParentStepRunFindMany { +func (r getGroupKeyRunToWorkflowRunFindMany) Skip(count int) getGroupKeyRunToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -315110,7 +340113,7 @@ func (r workflowRunToParentStepRunFindMany) Skip(count int) workflowRunToParentS return r } -func (r workflowRunToParentStepRunFindMany) Take(count int) workflowRunToParentStepRunFindMany { +func (r getGroupKeyRunToWorkflowRunFindMany) Take(count int) getGroupKeyRunToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -315118,7 +340121,7 @@ func (r workflowRunToParentStepRunFindMany) Take(count int) workflowRunToParentS return r } -func (r workflowRunToParentStepRunFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunToParentStepRunFindMany { +func (r getGroupKeyRunToWorkflowRunFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -315126,11 +340129,11 @@ func (r workflowRunToParentStepRunFindMany) Cursor(cursor WorkflowRunCursorParam return r } -func (r workflowRunToParentStepRunFindMany) Exec(ctx context.Context) ( - []WorkflowRunModel, +func (r getGroupKeyRunToWorkflowRunFindMany) Exec(ctx context.Context) ( + []GetGroupKeyRunModel, error, ) { - var v []WorkflowRunModel + var v []GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315138,11 +340141,11 @@ func (r workflowRunToParentStepRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunToParentStepRunFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowRun, +func (r getGroupKeyRunToWorkflowRunFindMany) ExecInner(ctx context.Context) ( + []InnerGetGroupKeyRun, error, ) { - var v []InnerWorkflowRun + var v []InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315150,14 +340153,14 @@ func (r workflowRunToParentStepRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunToParentStepRunFindMany) Update(params ...WorkflowRunSetParam) workflowRunToParentStepRunUpdateMany { +func (r getGroupKeyRunToWorkflowRunFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToWorkflowRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowRun" + r.query.Model = "GetGroupKeyRun" r.query.Outputs = countOutput - var v workflowRunToParentStepRunUpdateMany + var v getGroupKeyRunToWorkflowRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -315186,17 +340189,17 @@ func (r workflowRunToParentStepRunFindMany) Update(params ...WorkflowRunSetParam return v } -type workflowRunToParentStepRunUpdateMany struct { +type getGroupKeyRunToWorkflowRunUpdateMany struct { query builder.Query } -func (r workflowRunToParentStepRunUpdateMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunToParentStepRunUpdateMany) workflowRunModel() {} +func (r getGroupKeyRunToWorkflowRunUpdateMany) getGroupKeyRunModel() {} -func (r workflowRunToParentStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunToWorkflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -315204,36 +340207,36 @@ func (r workflowRunToParentStepRunUpdateMany) Exec(ctx context.Context) (*BatchR return &v, nil } -func (r workflowRunToParentStepRunUpdateMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r getGroupKeyRunToWorkflowRunUpdateMany) Tx() GetGroupKeyRunManyTxResult { + v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunToParentStepRunFindMany) Delete() workflowRunToParentStepRunDeleteMany { - var v workflowRunToParentStepRunDeleteMany +func (r getGroupKeyRunToWorkflowRunFindMany) Delete() getGroupKeyRunToWorkflowRunDeleteMany { + var v getGroupKeyRunToWorkflowRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowRun" + v.query.Model = "GetGroupKeyRun" v.query.Outputs = countOutput return v } -type workflowRunToParentStepRunDeleteMany struct { +type getGroupKeyRunToWorkflowRunDeleteMany struct { query builder.Query } -func (r workflowRunToParentStepRunDeleteMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkflowRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunToParentStepRunDeleteMany) workflowRunModel() {} +func (p getGroupKeyRunToWorkflowRunDeleteMany) getGroupKeyRunModel() {} -func (r workflowRunToParentStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunToWorkflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -315241,52 +340244,30 @@ func (r workflowRunToParentStepRunDeleteMany) Exec(ctx context.Context) (*BatchR return &v, nil } -func (r workflowRunToParentStepRunDeleteMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r getGroupKeyRunToWorkflowRunDeleteMany) Tx() GetGroupKeyRunManyTxResult { + v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunFindUnique struct { +type getGroupKeyRunToWorkerFindUnique struct { query builder.Query } -func (r workflowRunFindUnique) getQuery() builder.Query { +func (r getGroupKeyRunToWorkerFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunFindUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunFindUnique) with() {} -func (r workflowRunFindUnique) workflowRunModel() {} -func (r workflowRunFindUnique) workflowRunRelation() {} - -func (r workflowRunActions) FindUnique( - params WorkflowRunEqualsUniqueWhereParam, -) workflowRunFindUnique { - var v workflowRunFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WorkflowRun" - v.query.Outputs = workflowRunOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r getGroupKeyRunToWorkerFindUnique) with() {} +func (r getGroupKeyRunToWorkerFindUnique) getGroupKeyRunModel() {} +func (r getGroupKeyRunToWorkerFindUnique) getGroupKeyRunRelation() {} -func (r workflowRunFindUnique) With(params ...WorkflowRunRelationWith) workflowRunFindUnique { +func (r getGroupKeyRunToWorkerFindUnique) With(params ...WorkerRelationWith) getGroupKeyRunToWorkerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -315299,7 +340280,7 @@ func (r workflowRunFindUnique) With(params ...WorkflowRunRelationWith) workflowR return r } -func (r workflowRunFindUnique) Select(params ...workflowRunPrismaFields) workflowRunFindUnique { +func (r getGroupKeyRunToWorkerFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindUnique { var outputs []builder.Output for _, param := range params { @@ -315313,7 +340294,7 @@ func (r workflowRunFindUnique) Select(params ...workflowRunPrismaFields) workflo return r } -func (r workflowRunFindUnique) Omit(params ...workflowRunPrismaFields) workflowRunFindUnique { +func (r getGroupKeyRunToWorkerFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindUnique { var outputs []builder.Output var raw []string @@ -315321,7 +340302,7 @@ func (r workflowRunFindUnique) Omit(params ...workflowRunPrismaFields) workflowR raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -315332,11 +340313,11 @@ func (r workflowRunFindUnique) Omit(params ...workflowRunPrismaFields) workflowR return r } -func (r workflowRunFindUnique) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r getGroupKeyRunToWorkerFindUnique) Exec(ctx context.Context) ( + *GetGroupKeyRunModel, error, ) { - var v *WorkflowRunModel + var v *GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315348,11 +340329,11 @@ func (r workflowRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r getGroupKeyRunToWorkerFindUnique) ExecInner(ctx context.Context) ( + *InnerGetGroupKeyRun, error, ) { - var v *InnerWorkflowRun + var v *InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315364,12 +340345,12 @@ func (r workflowRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunFindUnique) Update(params ...WorkflowRunSetParam) workflowRunUpdateUnique { +func (r getGroupKeyRunToWorkerFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToWorkerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowRun" + r.query.Model = "GetGroupKeyRun" - var v workflowRunUpdateUnique + var v getGroupKeyRunToWorkerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -315398,120 +340379,83 @@ func (r workflowRunFindUnique) Update(params ...WorkflowRunSetParam) workflowRun return v } -type workflowRunUpdateUnique struct { +type getGroupKeyRunToWorkerUpdateUnique struct { query builder.Query } -func (r workflowRunUpdateUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunUpdateUnique) workflowRunModel() {} +func (r getGroupKeyRunToWorkerUpdateUnique) getGroupKeyRunModel() {} -func (r workflowRunUpdateUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r getGroupKeyRunToWorkerUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { + var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunUpdateUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r getGroupKeyRunToWorkerUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { + v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunFindUnique) Delete() workflowRunDeleteUnique { - var v workflowRunDeleteUnique +func (r getGroupKeyRunToWorkerFindUnique) Delete() getGroupKeyRunToWorkerDeleteUnique { + var v getGroupKeyRunToWorkerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowRun" + v.query.Model = "GetGroupKeyRun" return v } -type workflowRunDeleteUnique struct { +type getGroupKeyRunToWorkerDeleteUnique struct { query builder.Query } -func (r workflowRunDeleteUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunDeleteUnique) workflowRunModel() {} +func (p getGroupKeyRunToWorkerDeleteUnique) getGroupKeyRunModel() {} -func (r workflowRunDeleteUnique) Exec(ctx context.Context) (*WorkflowRunModel, error) { - var v WorkflowRunModel +func (r getGroupKeyRunToWorkerDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { + var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunDeleteUnique) Tx() WorkflowRunUniqueTxResult { - v := newWorkflowRunUniqueTxResult() +func (r getGroupKeyRunToWorkerDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { + v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunFindFirst struct { +type getGroupKeyRunToWorkerFindFirst struct { query builder.Query } -func (r workflowRunFindFirst) getQuery() builder.Query { +func (r getGroupKeyRunToWorkerFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunFindFirst) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunFindFirst) with() {} -func (r workflowRunFindFirst) workflowRunModel() {} -func (r workflowRunFindFirst) workflowRunRelation() {} - -func (r workflowRunActions) FindFirst( - params ...WorkflowRunWhereParam, -) workflowRunFindFirst { - var v workflowRunFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WorkflowRun" - v.query.Outputs = workflowRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r getGroupKeyRunToWorkerFindFirst) with() {} +func (r getGroupKeyRunToWorkerFindFirst) getGroupKeyRunModel() {} +func (r getGroupKeyRunToWorkerFindFirst) getGroupKeyRunRelation() {} -func (r workflowRunFindFirst) With(params ...WorkflowRunRelationWith) workflowRunFindFirst { +func (r getGroupKeyRunToWorkerFindFirst) With(params ...WorkerRelationWith) getGroupKeyRunToWorkerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -315524,7 +340468,7 @@ func (r workflowRunFindFirst) With(params ...WorkflowRunRelationWith) workflowRu return r } -func (r workflowRunFindFirst) Select(params ...workflowRunPrismaFields) workflowRunFindFirst { +func (r getGroupKeyRunToWorkerFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindFirst { var outputs []builder.Output for _, param := range params { @@ -315538,7 +340482,7 @@ func (r workflowRunFindFirst) Select(params ...workflowRunPrismaFields) workflow return r } -func (r workflowRunFindFirst) Omit(params ...workflowRunPrismaFields) workflowRunFindFirst { +func (r getGroupKeyRunToWorkerFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindFirst { var outputs []builder.Output var raw []string @@ -315546,7 +340490,7 @@ func (r workflowRunFindFirst) Omit(params ...workflowRunPrismaFields) workflowRu raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -315557,7 +340501,7 @@ func (r workflowRunFindFirst) Omit(params ...workflowRunPrismaFields) workflowRu return r } -func (r workflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunFindFirst { +func (r getGroupKeyRunToWorkerFindFirst) OrderBy(params ...WorkerOrderByParam) getGroupKeyRunToWorkerFindFirst { var fields []builder.Field for _, param := range params { @@ -315577,7 +340521,7 @@ func (r workflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflo return r } -func (r workflowRunFindFirst) Skip(count int) workflowRunFindFirst { +func (r getGroupKeyRunToWorkerFindFirst) Skip(count int) getGroupKeyRunToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -315585,7 +340529,7 @@ func (r workflowRunFindFirst) Skip(count int) workflowRunFindFirst { return r } -func (r workflowRunFindFirst) Take(count int) workflowRunFindFirst { +func (r getGroupKeyRunToWorkerFindFirst) Take(count int) getGroupKeyRunToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -315593,7 +340537,7 @@ func (r workflowRunFindFirst) Take(count int) workflowRunFindFirst { return r } -func (r workflowRunFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunFindFirst { +func (r getGroupKeyRunToWorkerFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -315601,11 +340545,11 @@ func (r workflowRunFindFirst) Cursor(cursor WorkflowRunCursorParam) workflowRunF return r } -func (r workflowRunFindFirst) Exec(ctx context.Context) ( - *WorkflowRunModel, +func (r getGroupKeyRunToWorkerFindFirst) Exec(ctx context.Context) ( + *GetGroupKeyRunModel, error, ) { - var v *WorkflowRunModel + var v *GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315617,11 +340561,11 @@ func (r workflowRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowRun, +func (r getGroupKeyRunToWorkerFindFirst) ExecInner(ctx context.Context) ( + *InnerGetGroupKeyRun, error, ) { - var v *InnerWorkflowRun + var v *InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315633,60 +340577,23 @@ func (r workflowRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunFindMany struct { +type getGroupKeyRunToWorkerFindMany struct { query builder.Query } -func (r workflowRunFindMany) getQuery() builder.Query { +func (r getGroupKeyRunToWorkerFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunFindMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkerFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunFindMany) with() {} -func (r workflowRunFindMany) workflowRunModel() {} -func (r workflowRunFindMany) workflowRunRelation() {} - -func (r workflowRunActions) FindMany( - params ...WorkflowRunWhereParam, -) workflowRunFindMany { - var v workflowRunFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WorkflowRun" - v.query.Outputs = workflowRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r getGroupKeyRunToWorkerFindMany) with() {} +func (r getGroupKeyRunToWorkerFindMany) getGroupKeyRunModel() {} +func (r getGroupKeyRunToWorkerFindMany) getGroupKeyRunRelation() {} -func (r workflowRunFindMany) With(params ...WorkflowRunRelationWith) workflowRunFindMany { +func (r getGroupKeyRunToWorkerFindMany) With(params ...WorkerRelationWith) getGroupKeyRunToWorkerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -315699,7 +340606,7 @@ func (r workflowRunFindMany) With(params ...WorkflowRunRelationWith) workflowRun return r } -func (r workflowRunFindMany) Select(params ...workflowRunPrismaFields) workflowRunFindMany { +func (r getGroupKeyRunToWorkerFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindMany { var outputs []builder.Output for _, param := range params { @@ -315713,7 +340620,7 @@ func (r workflowRunFindMany) Select(params ...workflowRunPrismaFields) workflowR return r } -func (r workflowRunFindMany) Omit(params ...workflowRunPrismaFields) workflowRunFindMany { +func (r getGroupKeyRunToWorkerFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindMany { var outputs []builder.Output var raw []string @@ -315721,7 +340628,7 @@ func (r workflowRunFindMany) Omit(params ...workflowRunPrismaFields) workflowRun raw = append(raw, string(param)) } - for _, output := range workflowRunOutput { + for _, output := range getGroupKeyRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -315732,7 +340639,7 @@ func (r workflowRunFindMany) Omit(params ...workflowRunPrismaFields) workflowRun return r } -func (r workflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunFindMany { +func (r getGroupKeyRunToWorkerFindMany) OrderBy(params ...WorkerOrderByParam) getGroupKeyRunToWorkerFindMany { var fields []builder.Field for _, param := range params { @@ -315752,7 +340659,7 @@ func (r workflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflow return r } -func (r workflowRunFindMany) Skip(count int) workflowRunFindMany { +func (r getGroupKeyRunToWorkerFindMany) Skip(count int) getGroupKeyRunToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -315760,7 +340667,7 @@ func (r workflowRunFindMany) Skip(count int) workflowRunFindMany { return r } -func (r workflowRunFindMany) Take(count int) workflowRunFindMany { +func (r getGroupKeyRunToWorkerFindMany) Take(count int) getGroupKeyRunToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -315768,7 +340675,7 @@ func (r workflowRunFindMany) Take(count int) workflowRunFindMany { return r } -func (r workflowRunFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunFindMany { +func (r getGroupKeyRunToWorkerFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -315776,11 +340683,11 @@ func (r workflowRunFindMany) Cursor(cursor WorkflowRunCursorParam) workflowRunFi return r } -func (r workflowRunFindMany) Exec(ctx context.Context) ( - []WorkflowRunModel, +func (r getGroupKeyRunToWorkerFindMany) Exec(ctx context.Context) ( + []GetGroupKeyRunModel, error, ) { - var v []WorkflowRunModel + var v []GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315788,11 +340695,11 @@ func (r workflowRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowRun, +func (r getGroupKeyRunToWorkerFindMany) ExecInner(ctx context.Context) ( + []InnerGetGroupKeyRun, error, ) { - var v []InnerWorkflowRun + var v []InnerGetGroupKeyRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -315800,14 +340707,14 @@ func (r workflowRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunFindMany) Update(params ...WorkflowRunSetParam) workflowRunUpdateMany { +func (r getGroupKeyRunToWorkerFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToWorkerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowRun" + r.query.Model = "GetGroupKeyRun" r.query.Outputs = countOutput - var v workflowRunUpdateMany + var v getGroupKeyRunToWorkerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -315836,17 +340743,17 @@ func (r workflowRunFindMany) Update(params ...WorkflowRunSetParam) workflowRunUp return v } -type workflowRunUpdateMany struct { +type getGroupKeyRunToWorkerUpdateMany struct { query builder.Query } -func (r workflowRunUpdateMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunUpdateMany) workflowRunModel() {} +func (r getGroupKeyRunToWorkerUpdateMany) getGroupKeyRunModel() {} -func (r workflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunToWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -315854,36 +340761,36 @@ func (r workflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r workflowRunUpdateMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r getGroupKeyRunToWorkerUpdateMany) Tx() GetGroupKeyRunManyTxResult { + v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunFindMany) Delete() workflowRunDeleteMany { - var v workflowRunDeleteMany +func (r getGroupKeyRunToWorkerFindMany) Delete() getGroupKeyRunToWorkerDeleteMany { + var v getGroupKeyRunToWorkerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowRun" + v.query.Model = "GetGroupKeyRun" v.query.Outputs = countOutput return v } -type workflowRunDeleteMany struct { +type getGroupKeyRunToWorkerDeleteMany struct { query builder.Query } -func (r workflowRunDeleteMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToWorkerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunDeleteMany) workflowRunModel() {} +func (p getGroupKeyRunToWorkerDeleteMany) getGroupKeyRunModel() {} -func (r workflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunToWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -315891,30 +340798,30 @@ func (r workflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r workflowRunDeleteMany) Tx() WorkflowRunManyTxResult { - v := newWorkflowRunManyTxResult() +func (r getGroupKeyRunToWorkerDeleteMany) Tx() GetGroupKeyRunManyTxResult { + v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunToTenantFindUnique struct { +type getGroupKeyRunToTickerFindUnique struct { query builder.Query } -func (r getGroupKeyRunToTenantFindUnique) getQuery() builder.Query { +func (r getGroupKeyRunToTickerFindUnique) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTenantFindUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTickerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTenantFindUnique) with() {} -func (r getGroupKeyRunToTenantFindUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTenantFindUnique) getGroupKeyRunRelation() {} +func (r getGroupKeyRunToTickerFindUnique) with() {} +func (r getGroupKeyRunToTickerFindUnique) getGroupKeyRunModel() {} +func (r getGroupKeyRunToTickerFindUnique) getGroupKeyRunRelation() {} -func (r getGroupKeyRunToTenantFindUnique) With(params ...TenantRelationWith) getGroupKeyRunToTenantFindUnique { +func (r getGroupKeyRunToTickerFindUnique) With(params ...TickerRelationWith) getGroupKeyRunToTickerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -315927,7 +340834,7 @@ func (r getGroupKeyRunToTenantFindUnique) With(params ...TenantRelationWith) get return r } -func (r getGroupKeyRunToTenantFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindUnique { +func (r getGroupKeyRunToTickerFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindUnique { var outputs []builder.Output for _, param := range params { @@ -315941,7 +340848,7 @@ func (r getGroupKeyRunToTenantFindUnique) Select(params ...getGroupKeyRunPrismaF return r } -func (r getGroupKeyRunToTenantFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindUnique { +func (r getGroupKeyRunToTickerFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindUnique { var outputs []builder.Output var raw []string @@ -315960,7 +340867,7 @@ func (r getGroupKeyRunToTenantFindUnique) Omit(params ...getGroupKeyRunPrismaFie return r } -func (r getGroupKeyRunToTenantFindUnique) Exec(ctx context.Context) ( +func (r getGroupKeyRunToTickerFindUnique) Exec(ctx context.Context) ( *GetGroupKeyRunModel, error, ) { @@ -315976,7 +340883,7 @@ func (r getGroupKeyRunToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTenantFindUnique) ExecInner(ctx context.Context) ( +func (r getGroupKeyRunToTickerFindUnique) ExecInner(ctx context.Context) ( *InnerGetGroupKeyRun, error, ) { @@ -315992,12 +340899,12 @@ func (r getGroupKeyRunToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTenantFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToTenantUpdateUnique { +func (r getGroupKeyRunToTickerFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToTickerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "GetGroupKeyRun" - var v getGroupKeyRunToTenantUpdateUnique + var v getGroupKeyRunToTickerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -316026,17 +340933,17 @@ func (r getGroupKeyRunToTenantFindUnique) Update(params ...GetGroupKeyRunSetPara return v } -type getGroupKeyRunToTenantUpdateUnique struct { +type getGroupKeyRunToTickerUpdateUnique struct { query builder.Query } -func (r getGroupKeyRunToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTickerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTenantUpdateUnique) getGroupKeyRunModel() {} +func (r getGroupKeyRunToTickerUpdateUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTenantUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { +func (r getGroupKeyRunToTickerUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -316044,15 +340951,15 @@ func (r getGroupKeyRunToTenantUpdateUnique) Exec(ctx context.Context) (*GetGroup return &v, nil } -func (r getGroupKeyRunToTenantUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { +func (r getGroupKeyRunToTickerUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunToTenantFindUnique) Delete() getGroupKeyRunToTenantDeleteUnique { - var v getGroupKeyRunToTenantDeleteUnique +func (r getGroupKeyRunToTickerFindUnique) Delete() getGroupKeyRunToTickerDeleteUnique { + var v getGroupKeyRunToTickerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -316061,17 +340968,17 @@ func (r getGroupKeyRunToTenantFindUnique) Delete() getGroupKeyRunToTenantDeleteU return v } -type getGroupKeyRunToTenantDeleteUnique struct { +type getGroupKeyRunToTickerDeleteUnique struct { query builder.Query } -func (r getGroupKeyRunToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTickerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunToTenantDeleteUnique) getGroupKeyRunModel() {} +func (p getGroupKeyRunToTickerDeleteUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTenantDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { +func (r getGroupKeyRunToTickerDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -316079,30 +340986,30 @@ func (r getGroupKeyRunToTenantDeleteUnique) Exec(ctx context.Context) (*GetGroup return &v, nil } -func (r getGroupKeyRunToTenantDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { +func (r getGroupKeyRunToTickerDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunToTenantFindFirst struct { +type getGroupKeyRunToTickerFindFirst struct { query builder.Query } -func (r getGroupKeyRunToTenantFindFirst) getQuery() builder.Query { +func (r getGroupKeyRunToTickerFindFirst) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTenantFindFirst) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTickerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTenantFindFirst) with() {} -func (r getGroupKeyRunToTenantFindFirst) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTenantFindFirst) getGroupKeyRunRelation() {} +func (r getGroupKeyRunToTickerFindFirst) with() {} +func (r getGroupKeyRunToTickerFindFirst) getGroupKeyRunModel() {} +func (r getGroupKeyRunToTickerFindFirst) getGroupKeyRunRelation() {} -func (r getGroupKeyRunToTenantFindFirst) With(params ...TenantRelationWith) getGroupKeyRunToTenantFindFirst { +func (r getGroupKeyRunToTickerFindFirst) With(params ...TickerRelationWith) getGroupKeyRunToTickerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -316115,7 +341022,7 @@ func (r getGroupKeyRunToTenantFindFirst) With(params ...TenantRelationWith) getG return r } -func (r getGroupKeyRunToTenantFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindFirst { +func (r getGroupKeyRunToTickerFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindFirst { var outputs []builder.Output for _, param := range params { @@ -316129,7 +341036,7 @@ func (r getGroupKeyRunToTenantFindFirst) Select(params ...getGroupKeyRunPrismaFi return r } -func (r getGroupKeyRunToTenantFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindFirst { +func (r getGroupKeyRunToTickerFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindFirst { var outputs []builder.Output var raw []string @@ -316148,7 +341055,7 @@ func (r getGroupKeyRunToTenantFindFirst) Omit(params ...getGroupKeyRunPrismaFiel return r } -func (r getGroupKeyRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) getGroupKeyRunToTenantFindFirst { +func (r getGroupKeyRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) getGroupKeyRunToTickerFindFirst { var fields []builder.Field for _, param := range params { @@ -316168,7 +341075,7 @@ func (r getGroupKeyRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) g return r } -func (r getGroupKeyRunToTenantFindFirst) Skip(count int) getGroupKeyRunToTenantFindFirst { +func (r getGroupKeyRunToTickerFindFirst) Skip(count int) getGroupKeyRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -316176,7 +341083,7 @@ func (r getGroupKeyRunToTenantFindFirst) Skip(count int) getGroupKeyRunToTenantF return r } -func (r getGroupKeyRunToTenantFindFirst) Take(count int) getGroupKeyRunToTenantFindFirst { +func (r getGroupKeyRunToTickerFindFirst) Take(count int) getGroupKeyRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -316184,7 +341091,7 @@ func (r getGroupKeyRunToTenantFindFirst) Take(count int) getGroupKeyRunToTenantF return r } -func (r getGroupKeyRunToTenantFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToTenantFindFirst { +func (r getGroupKeyRunToTickerFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -316192,7 +341099,7 @@ func (r getGroupKeyRunToTenantFindFirst) Cursor(cursor GetGroupKeyRunCursorParam return r } -func (r getGroupKeyRunToTenantFindFirst) Exec(ctx context.Context) ( +func (r getGroupKeyRunToTickerFindFirst) Exec(ctx context.Context) ( *GetGroupKeyRunModel, error, ) { @@ -316208,7 +341115,7 @@ func (r getGroupKeyRunToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTenantFindFirst) ExecInner(ctx context.Context) ( +func (r getGroupKeyRunToTickerFindFirst) ExecInner(ctx context.Context) ( *InnerGetGroupKeyRun, error, ) { @@ -316224,23 +341131,23 @@ func (r getGroupKeyRunToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type getGroupKeyRunToTenantFindMany struct { +type getGroupKeyRunToTickerFindMany struct { query builder.Query } -func (r getGroupKeyRunToTenantFindMany) getQuery() builder.Query { +func (r getGroupKeyRunToTickerFindMany) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTenantFindMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTickerFindMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTenantFindMany) with() {} -func (r getGroupKeyRunToTenantFindMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTenantFindMany) getGroupKeyRunRelation() {} +func (r getGroupKeyRunToTickerFindMany) with() {} +func (r getGroupKeyRunToTickerFindMany) getGroupKeyRunModel() {} +func (r getGroupKeyRunToTickerFindMany) getGroupKeyRunRelation() {} -func (r getGroupKeyRunToTenantFindMany) With(params ...TenantRelationWith) getGroupKeyRunToTenantFindMany { +func (r getGroupKeyRunToTickerFindMany) With(params ...TickerRelationWith) getGroupKeyRunToTickerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -316253,7 +341160,7 @@ func (r getGroupKeyRunToTenantFindMany) With(params ...TenantRelationWith) getGr return r } -func (r getGroupKeyRunToTenantFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindMany { +func (r getGroupKeyRunToTickerFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindMany { var outputs []builder.Output for _, param := range params { @@ -316267,7 +341174,7 @@ func (r getGroupKeyRunToTenantFindMany) Select(params ...getGroupKeyRunPrismaFie return r } -func (r getGroupKeyRunToTenantFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTenantFindMany { +func (r getGroupKeyRunToTickerFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindMany { var outputs []builder.Output var raw []string @@ -316286,7 +341193,7 @@ func (r getGroupKeyRunToTenantFindMany) Omit(params ...getGroupKeyRunPrismaField return r } -func (r getGroupKeyRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) getGroupKeyRunToTenantFindMany { +func (r getGroupKeyRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) getGroupKeyRunToTickerFindMany { var fields []builder.Field for _, param := range params { @@ -316306,7 +341213,7 @@ func (r getGroupKeyRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) ge return r } -func (r getGroupKeyRunToTenantFindMany) Skip(count int) getGroupKeyRunToTenantFindMany { +func (r getGroupKeyRunToTickerFindMany) Skip(count int) getGroupKeyRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -316314,7 +341221,7 @@ func (r getGroupKeyRunToTenantFindMany) Skip(count int) getGroupKeyRunToTenantFi return r } -func (r getGroupKeyRunToTenantFindMany) Take(count int) getGroupKeyRunToTenantFindMany { +func (r getGroupKeyRunToTickerFindMany) Take(count int) getGroupKeyRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -316322,7 +341229,7 @@ func (r getGroupKeyRunToTenantFindMany) Take(count int) getGroupKeyRunToTenantFi return r } -func (r getGroupKeyRunToTenantFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToTenantFindMany { +func (r getGroupKeyRunToTickerFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -316330,7 +341237,7 @@ func (r getGroupKeyRunToTenantFindMany) Cursor(cursor GetGroupKeyRunCursorParam) return r } -func (r getGroupKeyRunToTenantFindMany) Exec(ctx context.Context) ( +func (r getGroupKeyRunToTickerFindMany) Exec(ctx context.Context) ( []GetGroupKeyRunModel, error, ) { @@ -316342,7 +341249,7 @@ func (r getGroupKeyRunToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTenantFindMany) ExecInner(ctx context.Context) ( +func (r getGroupKeyRunToTickerFindMany) ExecInner(ctx context.Context) ( []InnerGetGroupKeyRun, error, ) { @@ -316354,14 +341261,14 @@ func (r getGroupKeyRunToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTenantFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToTenantUpdateMany { +func (r getGroupKeyRunToTickerFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToTickerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "GetGroupKeyRun" r.query.Outputs = countOutput - var v getGroupKeyRunToTenantUpdateMany + var v getGroupKeyRunToTickerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -316390,17 +341297,17 @@ func (r getGroupKeyRunToTenantFindMany) Update(params ...GetGroupKeyRunSetParam) return v } -type getGroupKeyRunToTenantUpdateMany struct { +type getGroupKeyRunToTickerUpdateMany struct { query builder.Query } -func (r getGroupKeyRunToTenantUpdateMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTickerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTenantUpdateMany) getGroupKeyRunModel() {} +func (r getGroupKeyRunToTickerUpdateMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -316408,15 +341315,15 @@ func (r getGroupKeyRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r getGroupKeyRunToTenantUpdateMany) Tx() GetGroupKeyRunManyTxResult { +func (r getGroupKeyRunToTickerUpdateMany) Tx() GetGroupKeyRunManyTxResult { v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunToTenantFindMany) Delete() getGroupKeyRunToTenantDeleteMany { - var v getGroupKeyRunToTenantDeleteMany +func (r getGroupKeyRunToTickerFindMany) Delete() getGroupKeyRunToTickerDeleteMany { + var v getGroupKeyRunToTickerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -316427,17 +341334,17 @@ func (r getGroupKeyRunToTenantFindMany) Delete() getGroupKeyRunToTenantDeleteMan return v } -type getGroupKeyRunToTenantDeleteMany struct { +type getGroupKeyRunToTickerDeleteMany struct { query builder.Query } -func (r getGroupKeyRunToTenantDeleteMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunToTickerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunToTenantDeleteMany) getGroupKeyRunModel() {} +func (p getGroupKeyRunToTickerDeleteMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -316445,30 +341352,52 @@ func (r getGroupKeyRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r getGroupKeyRunToTenantDeleteMany) Tx() GetGroupKeyRunManyTxResult { +func (r getGroupKeyRunToTickerDeleteMany) Tx() GetGroupKeyRunManyTxResult { v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunToWorkflowRunFindUnique struct { +type getGroupKeyRunFindUnique struct { query builder.Query } -func (r getGroupKeyRunToWorkflowRunFindUnique) getQuery() builder.Query { +func (r getGroupKeyRunFindUnique) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkflowRunFindUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkflowRunFindUnique) with() {} -func (r getGroupKeyRunToWorkflowRunFindUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkflowRunFindUnique) getGroupKeyRunRelation() {} +func (r getGroupKeyRunFindUnique) with() {} +func (r getGroupKeyRunFindUnique) getGroupKeyRunModel() {} +func (r getGroupKeyRunFindUnique) getGroupKeyRunRelation() {} -func (r getGroupKeyRunToWorkflowRunFindUnique) With(params ...WorkflowRunRelationWith) getGroupKeyRunToWorkflowRunFindUnique { +func (r getGroupKeyRunActions) FindUnique( + params GetGroupKeyRunEqualsUniqueWhereParam, +) getGroupKeyRunFindUnique { + var v getGroupKeyRunFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "GetGroupKeyRun" + v.query.Outputs = getGroupKeyRunOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r getGroupKeyRunFindUnique) With(params ...GetGroupKeyRunRelationWith) getGroupKeyRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -316481,7 +341410,7 @@ func (r getGroupKeyRunToWorkflowRunFindUnique) With(params ...WorkflowRunRelatio return r } -func (r getGroupKeyRunToWorkflowRunFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindUnique { +func (r getGroupKeyRunFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -316495,7 +341424,7 @@ func (r getGroupKeyRunToWorkflowRunFindUnique) Select(params ...getGroupKeyRunPr return r } -func (r getGroupKeyRunToWorkflowRunFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindUnique { +func (r getGroupKeyRunFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindUnique { var outputs []builder.Output var raw []string @@ -316514,7 +341443,7 @@ func (r getGroupKeyRunToWorkflowRunFindUnique) Omit(params ...getGroupKeyRunPris return r } -func (r getGroupKeyRunToWorkflowRunFindUnique) Exec(ctx context.Context) ( +func (r getGroupKeyRunFindUnique) Exec(ctx context.Context) ( *GetGroupKeyRunModel, error, ) { @@ -316530,7 +341459,7 @@ func (r getGroupKeyRunToWorkflowRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkflowRunFindUnique) ExecInner(ctx context.Context) ( +func (r getGroupKeyRunFindUnique) ExecInner(ctx context.Context) ( *InnerGetGroupKeyRun, error, ) { @@ -316546,12 +341475,12 @@ func (r getGroupKeyRunToWorkflowRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkflowRunFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToWorkflowRunUpdateUnique { +func (r getGroupKeyRunFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "GetGroupKeyRun" - var v getGroupKeyRunToWorkflowRunUpdateUnique + var v getGroupKeyRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -316580,17 +341509,17 @@ func (r getGroupKeyRunToWorkflowRunFindUnique) Update(params ...GetGroupKeyRunSe return v } -type getGroupKeyRunToWorkflowRunUpdateUnique struct { +type getGroupKeyRunUpdateUnique struct { query builder.Query } -func (r getGroupKeyRunToWorkflowRunUpdateUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkflowRunUpdateUnique) getGroupKeyRunModel() {} +func (r getGroupKeyRunUpdateUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkflowRunUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { +func (r getGroupKeyRunUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -316598,15 +341527,15 @@ func (r getGroupKeyRunToWorkflowRunUpdateUnique) Exec(ctx context.Context) (*Get return &v, nil } -func (r getGroupKeyRunToWorkflowRunUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { +func (r getGroupKeyRunUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunToWorkflowRunFindUnique) Delete() getGroupKeyRunToWorkflowRunDeleteUnique { - var v getGroupKeyRunToWorkflowRunDeleteUnique +func (r getGroupKeyRunFindUnique) Delete() getGroupKeyRunDeleteUnique { + var v getGroupKeyRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -316615,17 +341544,17 @@ func (r getGroupKeyRunToWorkflowRunFindUnique) Delete() getGroupKeyRunToWorkflow return v } -type getGroupKeyRunToWorkflowRunDeleteUnique struct { +type getGroupKeyRunDeleteUnique struct { query builder.Query } -func (r getGroupKeyRunToWorkflowRunDeleteUnique) ExtractQuery() builder.Query { +func (r getGroupKeyRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunToWorkflowRunDeleteUnique) getGroupKeyRunModel() {} +func (p getGroupKeyRunDeleteUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkflowRunDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { +func (r getGroupKeyRunDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { var v GetGroupKeyRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -316633,30 +341562,67 @@ func (r getGroupKeyRunToWorkflowRunDeleteUnique) Exec(ctx context.Context) (*Get return &v, nil } -func (r getGroupKeyRunToWorkflowRunDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { +func (r getGroupKeyRunDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { v := newGetGroupKeyRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunToWorkflowRunFindFirst struct { +type getGroupKeyRunFindFirst struct { query builder.Query } -func (r getGroupKeyRunToWorkflowRunFindFirst) getQuery() builder.Query { +func (r getGroupKeyRunFindFirst) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkflowRunFindFirst) ExtractQuery() builder.Query { +func (r getGroupKeyRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkflowRunFindFirst) with() {} -func (r getGroupKeyRunToWorkflowRunFindFirst) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkflowRunFindFirst) getGroupKeyRunRelation() {} +func (r getGroupKeyRunFindFirst) with() {} +func (r getGroupKeyRunFindFirst) getGroupKeyRunModel() {} +func (r getGroupKeyRunFindFirst) getGroupKeyRunRelation() {} -func (r getGroupKeyRunToWorkflowRunFindFirst) With(params ...WorkflowRunRelationWith) getGroupKeyRunToWorkflowRunFindFirst { +func (r getGroupKeyRunActions) FindFirst( + params ...GetGroupKeyRunWhereParam, +) getGroupKeyRunFindFirst { + var v getGroupKeyRunFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "GetGroupKeyRun" + v.query.Outputs = getGroupKeyRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r getGroupKeyRunFindFirst) With(params ...GetGroupKeyRunRelationWith) getGroupKeyRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -316669,7 +341635,7 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) With(params ...WorkflowRunRelation return r } -func (r getGroupKeyRunToWorkflowRunFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindFirst { +func (r getGroupKeyRunFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -316683,7 +341649,7 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) Select(params ...getGroupKeyRunPri return r } -func (r getGroupKeyRunToWorkflowRunFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindFirst { +func (r getGroupKeyRunFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindFirst { var outputs []builder.Output var raw []string @@ -316702,7 +341668,7 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) Omit(params ...getGroupKeyRunPrism return r } -func (r getGroupKeyRunToWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) getGroupKeyRunToWorkflowRunFindFirst { +func (r getGroupKeyRunFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) getGroupKeyRunFindFirst { var fields []builder.Field for _, param := range params { @@ -316722,7 +341688,7 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrder return r } -func (r getGroupKeyRunToWorkflowRunFindFirst) Skip(count int) getGroupKeyRunToWorkflowRunFindFirst { +func (r getGroupKeyRunFindFirst) Skip(count int) getGroupKeyRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -316730,7 +341696,7 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) Skip(count int) getGroupKeyRunToWo return r } -func (r getGroupKeyRunToWorkflowRunFindFirst) Take(count int) getGroupKeyRunToWorkflowRunFindFirst { +func (r getGroupKeyRunFindFirst) Take(count int) getGroupKeyRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -316738,7 +341704,7 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) Take(count int) getGroupKeyRunToWo return r } -func (r getGroupKeyRunToWorkflowRunFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToWorkflowRunFindFirst { +func (r getGroupKeyRunFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -316746,7 +341712,7 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) Cursor(cursor GetGroupKeyRunCursor return r } -func (r getGroupKeyRunToWorkflowRunFindFirst) Exec(ctx context.Context) ( +func (r getGroupKeyRunFindFirst) Exec(ctx context.Context) ( *GetGroupKeyRunModel, error, ) { @@ -316762,7 +341728,7 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkflowRunFindFirst) ExecInner(ctx context.Context) ( +func (r getGroupKeyRunFindFirst) ExecInner(ctx context.Context) ( *InnerGetGroupKeyRun, error, ) { @@ -316778,23 +341744,60 @@ func (r getGroupKeyRunToWorkflowRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type getGroupKeyRunToWorkflowRunFindMany struct { +type getGroupKeyRunFindMany struct { query builder.Query } -func (r getGroupKeyRunToWorkflowRunFindMany) getQuery() builder.Query { +func (r getGroupKeyRunFindMany) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkflowRunFindMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkflowRunFindMany) with() {} -func (r getGroupKeyRunToWorkflowRunFindMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkflowRunFindMany) getGroupKeyRunRelation() {} +func (r getGroupKeyRunFindMany) with() {} +func (r getGroupKeyRunFindMany) getGroupKeyRunModel() {} +func (r getGroupKeyRunFindMany) getGroupKeyRunRelation() {} -func (r getGroupKeyRunToWorkflowRunFindMany) With(params ...WorkflowRunRelationWith) getGroupKeyRunToWorkflowRunFindMany { +func (r getGroupKeyRunActions) FindMany( + params ...GetGroupKeyRunWhereParam, +) getGroupKeyRunFindMany { + var v getGroupKeyRunFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "GetGroupKeyRun" + v.query.Outputs = getGroupKeyRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r getGroupKeyRunFindMany) With(params ...GetGroupKeyRunRelationWith) getGroupKeyRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -316807,7 +341810,7 @@ func (r getGroupKeyRunToWorkflowRunFindMany) With(params ...WorkflowRunRelationW return r } -func (r getGroupKeyRunToWorkflowRunFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindMany { +func (r getGroupKeyRunFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindMany { var outputs []builder.Output for _, param := range params { @@ -316821,7 +341824,7 @@ func (r getGroupKeyRunToWorkflowRunFindMany) Select(params ...getGroupKeyRunPris return r } -func (r getGroupKeyRunToWorkflowRunFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkflowRunFindMany { +func (r getGroupKeyRunFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindMany { var outputs []builder.Output var raw []string @@ -316840,7 +341843,7 @@ func (r getGroupKeyRunToWorkflowRunFindMany) Omit(params ...getGroupKeyRunPrisma return r } -func (r getGroupKeyRunToWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) getGroupKeyRunToWorkflowRunFindMany { +func (r getGroupKeyRunFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) getGroupKeyRunFindMany { var fields []builder.Field for _, param := range params { @@ -316860,7 +341863,7 @@ func (r getGroupKeyRunToWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderB return r } -func (r getGroupKeyRunToWorkflowRunFindMany) Skip(count int) getGroupKeyRunToWorkflowRunFindMany { +func (r getGroupKeyRunFindMany) Skip(count int) getGroupKeyRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -316868,7 +341871,7 @@ func (r getGroupKeyRunToWorkflowRunFindMany) Skip(count int) getGroupKeyRunToWor return r } -func (r getGroupKeyRunToWorkflowRunFindMany) Take(count int) getGroupKeyRunToWorkflowRunFindMany { +func (r getGroupKeyRunFindMany) Take(count int) getGroupKeyRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -316876,7 +341879,7 @@ func (r getGroupKeyRunToWorkflowRunFindMany) Take(count int) getGroupKeyRunToWor return r } -func (r getGroupKeyRunToWorkflowRunFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToWorkflowRunFindMany { +func (r getGroupKeyRunFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -316884,7 +341887,7 @@ func (r getGroupKeyRunToWorkflowRunFindMany) Cursor(cursor GetGroupKeyRunCursorP return r } -func (r getGroupKeyRunToWorkflowRunFindMany) Exec(ctx context.Context) ( +func (r getGroupKeyRunFindMany) Exec(ctx context.Context) ( []GetGroupKeyRunModel, error, ) { @@ -316896,7 +341899,7 @@ func (r getGroupKeyRunToWorkflowRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkflowRunFindMany) ExecInner(ctx context.Context) ( +func (r getGroupKeyRunFindMany) ExecInner(ctx context.Context) ( []InnerGetGroupKeyRun, error, ) { @@ -316908,14 +341911,14 @@ func (r getGroupKeyRunToWorkflowRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkflowRunFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToWorkflowRunUpdateMany { +func (r getGroupKeyRunFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "GetGroupKeyRun" r.query.Outputs = countOutput - var v getGroupKeyRunToWorkflowRunUpdateMany + var v getGroupKeyRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -316944,17 +341947,17 @@ func (r getGroupKeyRunToWorkflowRunFindMany) Update(params ...GetGroupKeyRunSetP return v } -type getGroupKeyRunToWorkflowRunUpdateMany struct { +type getGroupKeyRunUpdateMany struct { query builder.Query } -func (r getGroupKeyRunToWorkflowRunUpdateMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkflowRunUpdateMany) getGroupKeyRunModel() {} +func (r getGroupKeyRunUpdateMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -316962,15 +341965,15 @@ func (r getGroupKeyRunToWorkflowRunUpdateMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r getGroupKeyRunToWorkflowRunUpdateMany) Tx() GetGroupKeyRunManyTxResult { +func (r getGroupKeyRunUpdateMany) Tx() GetGroupKeyRunManyTxResult { v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunToWorkflowRunFindMany) Delete() getGroupKeyRunToWorkflowRunDeleteMany { - var v getGroupKeyRunToWorkflowRunDeleteMany +func (r getGroupKeyRunFindMany) Delete() getGroupKeyRunDeleteMany { + var v getGroupKeyRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -316981,17 +341984,17 @@ func (r getGroupKeyRunToWorkflowRunFindMany) Delete() getGroupKeyRunToWorkflowRu return v } -type getGroupKeyRunToWorkflowRunDeleteMany struct { +type getGroupKeyRunDeleteMany struct { query builder.Query } -func (r getGroupKeyRunToWorkflowRunDeleteMany) ExtractQuery() builder.Query { +func (r getGroupKeyRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunToWorkflowRunDeleteMany) getGroupKeyRunModel() {} +func (p getGroupKeyRunDeleteMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r getGroupKeyRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -316999,30 +342002,30 @@ func (r getGroupKeyRunToWorkflowRunDeleteMany) Exec(ctx context.Context) (*Batch return &v, nil } -func (r getGroupKeyRunToWorkflowRunDeleteMany) Tx() GetGroupKeyRunManyTxResult { +func (r getGroupKeyRunDeleteMany) Tx() GetGroupKeyRunManyTxResult { v := newGetGroupKeyRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunToWorkerFindUnique struct { +type workflowRunTriggeredByToTenantFindUnique struct { query builder.Query } -func (r getGroupKeyRunToWorkerFindUnique) getQuery() builder.Query { +func (r workflowRunTriggeredByToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkerFindUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkerFindUnique) with() {} -func (r getGroupKeyRunToWorkerFindUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkerFindUnique) getGroupKeyRunRelation() {} +func (r workflowRunTriggeredByToTenantFindUnique) with() {} +func (r workflowRunTriggeredByToTenantFindUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToTenantFindUnique) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunToWorkerFindUnique) With(params ...WorkerRelationWith) getGroupKeyRunToWorkerFindUnique { +func (r workflowRunTriggeredByToTenantFindUnique) With(params ...TenantRelationWith) workflowRunTriggeredByToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -317035,7 +342038,7 @@ func (r getGroupKeyRunToWorkerFindUnique) With(params ...WorkerRelationWith) get return r } -func (r getGroupKeyRunToWorkerFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindUnique { +func (r workflowRunTriggeredByToTenantFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -317049,7 +342052,7 @@ func (r getGroupKeyRunToWorkerFindUnique) Select(params ...getGroupKeyRunPrismaF return r } -func (r getGroupKeyRunToWorkerFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindUnique { +func (r workflowRunTriggeredByToTenantFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindUnique { var outputs []builder.Output var raw []string @@ -317057,7 +342060,7 @@ func (r getGroupKeyRunToWorkerFindUnique) Omit(params ...getGroupKeyRunPrismaFie raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -317068,11 +342071,11 @@ func (r getGroupKeyRunToWorkerFindUnique) Omit(params ...getGroupKeyRunPrismaFie return r } -func (r getGroupKeyRunToWorkerFindUnique) Exec(ctx context.Context) ( - *GetGroupKeyRunModel, +func (r workflowRunTriggeredByToTenantFindUnique) Exec(ctx context.Context) ( + *WorkflowRunTriggeredByModel, error, ) { - var v *GetGroupKeyRunModel + var v *WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317084,11 +342087,11 @@ func (r getGroupKeyRunToWorkerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkerFindUnique) ExecInner(ctx context.Context) ( - *InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRunTriggeredBy, error, ) { - var v *InnerGetGroupKeyRun + var v *InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317100,12 +342103,12 @@ func (r getGroupKeyRunToWorkerFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkerFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToWorkerUpdateUnique { +func (r workflowRunTriggeredByToTenantFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "GetGroupKeyRun" + r.query.Model = "WorkflowRunTriggeredBy" - var v getGroupKeyRunToWorkerUpdateUnique + var v workflowRunTriggeredByToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -317134,83 +342137,83 @@ func (r getGroupKeyRunToWorkerFindUnique) Update(params ...GetGroupKeyRunSetPara return v } -type getGroupKeyRunToWorkerUpdateUnique struct { +type workflowRunTriggeredByToTenantUpdateUnique struct { query builder.Query } -func (r getGroupKeyRunToWorkerUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkerUpdateUnique) getGroupKeyRunModel() {} +func (r workflowRunTriggeredByToTenantUpdateUnique) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunToWorkerUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { - var v GetGroupKeyRunModel +func (r workflowRunTriggeredByToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { + var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r getGroupKeyRunToWorkerUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { - v := newGetGroupKeyRunUniqueTxResult() +func (r workflowRunTriggeredByToTenantUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { + v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunToWorkerFindUnique) Delete() getGroupKeyRunToWorkerDeleteUnique { - var v getGroupKeyRunToWorkerDeleteUnique +func (r workflowRunTriggeredByToTenantFindUnique) Delete() workflowRunTriggeredByToTenantDeleteUnique { + var v workflowRunTriggeredByToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "GetGroupKeyRun" + v.query.Model = "WorkflowRunTriggeredBy" return v } -type getGroupKeyRunToWorkerDeleteUnique struct { +type workflowRunTriggeredByToTenantDeleteUnique struct { query builder.Query } -func (r getGroupKeyRunToWorkerDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunToWorkerDeleteUnique) getGroupKeyRunModel() {} +func (p workflowRunTriggeredByToTenantDeleteUnique) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunToWorkerDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { - var v GetGroupKeyRunModel +func (r workflowRunTriggeredByToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { + var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r getGroupKeyRunToWorkerDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { - v := newGetGroupKeyRunUniqueTxResult() +func (r workflowRunTriggeredByToTenantDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { + v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunToWorkerFindFirst struct { +type workflowRunTriggeredByToTenantFindFirst struct { query builder.Query } -func (r getGroupKeyRunToWorkerFindFirst) getQuery() builder.Query { +func (r workflowRunTriggeredByToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkerFindFirst) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkerFindFirst) with() {} -func (r getGroupKeyRunToWorkerFindFirst) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkerFindFirst) getGroupKeyRunRelation() {} +func (r workflowRunTriggeredByToTenantFindFirst) with() {} +func (r workflowRunTriggeredByToTenantFindFirst) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToTenantFindFirst) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunToWorkerFindFirst) With(params ...WorkerRelationWith) getGroupKeyRunToWorkerFindFirst { +func (r workflowRunTriggeredByToTenantFindFirst) With(params ...TenantRelationWith) workflowRunTriggeredByToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -317223,7 +342226,7 @@ func (r getGroupKeyRunToWorkerFindFirst) With(params ...WorkerRelationWith) getG return r } -func (r getGroupKeyRunToWorkerFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindFirst { +func (r workflowRunTriggeredByToTenantFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -317237,7 +342240,7 @@ func (r getGroupKeyRunToWorkerFindFirst) Select(params ...getGroupKeyRunPrismaFi return r } -func (r getGroupKeyRunToWorkerFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindFirst { +func (r workflowRunTriggeredByToTenantFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindFirst { var outputs []builder.Output var raw []string @@ -317245,7 +342248,7 @@ func (r getGroupKeyRunToWorkerFindFirst) Omit(params ...getGroupKeyRunPrismaFiel raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -317256,7 +342259,7 @@ func (r getGroupKeyRunToWorkerFindFirst) Omit(params ...getGroupKeyRunPrismaFiel return r } -func (r getGroupKeyRunToWorkerFindFirst) OrderBy(params ...WorkerOrderByParam) getGroupKeyRunToWorkerFindFirst { +func (r workflowRunTriggeredByToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowRunTriggeredByToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -317276,7 +342279,7 @@ func (r getGroupKeyRunToWorkerFindFirst) OrderBy(params ...WorkerOrderByParam) g return r } -func (r getGroupKeyRunToWorkerFindFirst) Skip(count int) getGroupKeyRunToWorkerFindFirst { +func (r workflowRunTriggeredByToTenantFindFirst) Skip(count int) workflowRunTriggeredByToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -317284,7 +342287,7 @@ func (r getGroupKeyRunToWorkerFindFirst) Skip(count int) getGroupKeyRunToWorkerF return r } -func (r getGroupKeyRunToWorkerFindFirst) Take(count int) getGroupKeyRunToWorkerFindFirst { +func (r workflowRunTriggeredByToTenantFindFirst) Take(count int) workflowRunTriggeredByToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -317292,7 +342295,7 @@ func (r getGroupKeyRunToWorkerFindFirst) Take(count int) getGroupKeyRunToWorkerF return r } -func (r getGroupKeyRunToWorkerFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToWorkerFindFirst { +func (r workflowRunTriggeredByToTenantFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -317300,11 +342303,11 @@ func (r getGroupKeyRunToWorkerFindFirst) Cursor(cursor GetGroupKeyRunCursorParam return r } -func (r getGroupKeyRunToWorkerFindFirst) Exec(ctx context.Context) ( - *GetGroupKeyRunModel, +func (r workflowRunTriggeredByToTenantFindFirst) Exec(ctx context.Context) ( + *WorkflowRunTriggeredByModel, error, ) { - var v *GetGroupKeyRunModel + var v *WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317316,11 +342319,11 @@ func (r getGroupKeyRunToWorkerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkerFindFirst) ExecInner(ctx context.Context) ( - *InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRunTriggeredBy, error, ) { - var v *InnerGetGroupKeyRun + var v *InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317332,23 +342335,23 @@ func (r getGroupKeyRunToWorkerFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type getGroupKeyRunToWorkerFindMany struct { +type workflowRunTriggeredByToTenantFindMany struct { query builder.Query } -func (r getGroupKeyRunToWorkerFindMany) getQuery() builder.Query { +func (r workflowRunTriggeredByToTenantFindMany) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkerFindMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkerFindMany) with() {} -func (r getGroupKeyRunToWorkerFindMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunToWorkerFindMany) getGroupKeyRunRelation() {} +func (r workflowRunTriggeredByToTenantFindMany) with() {} +func (r workflowRunTriggeredByToTenantFindMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToTenantFindMany) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunToWorkerFindMany) With(params ...WorkerRelationWith) getGroupKeyRunToWorkerFindMany { +func (r workflowRunTriggeredByToTenantFindMany) With(params ...TenantRelationWith) workflowRunTriggeredByToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -317361,7 +342364,7 @@ func (r getGroupKeyRunToWorkerFindMany) With(params ...WorkerRelationWith) getGr return r } -func (r getGroupKeyRunToWorkerFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindMany { +func (r workflowRunTriggeredByToTenantFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -317375,7 +342378,7 @@ func (r getGroupKeyRunToWorkerFindMany) Select(params ...getGroupKeyRunPrismaFie return r } -func (r getGroupKeyRunToWorkerFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToWorkerFindMany { +func (r workflowRunTriggeredByToTenantFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindMany { var outputs []builder.Output var raw []string @@ -317383,7 +342386,7 @@ func (r getGroupKeyRunToWorkerFindMany) Omit(params ...getGroupKeyRunPrismaField raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -317394,7 +342397,7 @@ func (r getGroupKeyRunToWorkerFindMany) Omit(params ...getGroupKeyRunPrismaField return r } -func (r getGroupKeyRunToWorkerFindMany) OrderBy(params ...WorkerOrderByParam) getGroupKeyRunToWorkerFindMany { +func (r workflowRunTriggeredByToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowRunTriggeredByToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -317414,7 +342417,7 @@ func (r getGroupKeyRunToWorkerFindMany) OrderBy(params ...WorkerOrderByParam) ge return r } -func (r getGroupKeyRunToWorkerFindMany) Skip(count int) getGroupKeyRunToWorkerFindMany { +func (r workflowRunTriggeredByToTenantFindMany) Skip(count int) workflowRunTriggeredByToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -317422,7 +342425,7 @@ func (r getGroupKeyRunToWorkerFindMany) Skip(count int) getGroupKeyRunToWorkerFi return r } -func (r getGroupKeyRunToWorkerFindMany) Take(count int) getGroupKeyRunToWorkerFindMany { +func (r workflowRunTriggeredByToTenantFindMany) Take(count int) workflowRunTriggeredByToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -317430,7 +342433,7 @@ func (r getGroupKeyRunToWorkerFindMany) Take(count int) getGroupKeyRunToWorkerFi return r } -func (r getGroupKeyRunToWorkerFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToWorkerFindMany { +func (r workflowRunTriggeredByToTenantFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -317438,11 +342441,11 @@ func (r getGroupKeyRunToWorkerFindMany) Cursor(cursor GetGroupKeyRunCursorParam) return r } -func (r getGroupKeyRunToWorkerFindMany) Exec(ctx context.Context) ( - []GetGroupKeyRunModel, +func (r workflowRunTriggeredByToTenantFindMany) Exec(ctx context.Context) ( + []WorkflowRunTriggeredByModel, error, ) { - var v []GetGroupKeyRunModel + var v []WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317450,11 +342453,11 @@ func (r getGroupKeyRunToWorkerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkerFindMany) ExecInner(ctx context.Context) ( - []InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRunTriggeredBy, error, ) { - var v []InnerGetGroupKeyRun + var v []InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317462,14 +342465,14 @@ func (r getGroupKeyRunToWorkerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToWorkerFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToWorkerUpdateMany { +func (r workflowRunTriggeredByToTenantFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "GetGroupKeyRun" + r.query.Model = "WorkflowRunTriggeredBy" r.query.Outputs = countOutput - var v getGroupKeyRunToWorkerUpdateMany + var v workflowRunTriggeredByToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -317498,17 +342501,17 @@ func (r getGroupKeyRunToWorkerFindMany) Update(params ...GetGroupKeyRunSetParam) return v } -type getGroupKeyRunToWorkerUpdateMany struct { +type workflowRunTriggeredByToTenantUpdateMany struct { query builder.Query } -func (r getGroupKeyRunToWorkerUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToWorkerUpdateMany) getGroupKeyRunModel() {} +func (r workflowRunTriggeredByToTenantUpdateMany) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunToWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -317516,36 +342519,36 @@ func (r getGroupKeyRunToWorkerUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r getGroupKeyRunToWorkerUpdateMany) Tx() GetGroupKeyRunManyTxResult { - v := newGetGroupKeyRunManyTxResult() +func (r workflowRunTriggeredByToTenantUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { + v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunToWorkerFindMany) Delete() getGroupKeyRunToWorkerDeleteMany { - var v getGroupKeyRunToWorkerDeleteMany +func (r workflowRunTriggeredByToTenantFindMany) Delete() workflowRunTriggeredByToTenantDeleteMany { + var v workflowRunTriggeredByToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "GetGroupKeyRun" + v.query.Model = "WorkflowRunTriggeredBy" v.query.Outputs = countOutput return v } -type getGroupKeyRunToWorkerDeleteMany struct { +type workflowRunTriggeredByToTenantDeleteMany struct { query builder.Query } -func (r getGroupKeyRunToWorkerDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunToWorkerDeleteMany) getGroupKeyRunModel() {} +func (p workflowRunTriggeredByToTenantDeleteMany) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunToWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -317553,30 +342556,30 @@ func (r getGroupKeyRunToWorkerDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r getGroupKeyRunToWorkerDeleteMany) Tx() GetGroupKeyRunManyTxResult { - v := newGetGroupKeyRunManyTxResult() +func (r workflowRunTriggeredByToTenantDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { + v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunToTickerFindUnique struct { +type workflowRunTriggeredByToParentFindUnique struct { query builder.Query } -func (r getGroupKeyRunToTickerFindUnique) getQuery() builder.Query { +func (r workflowRunTriggeredByToParentFindUnique) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTickerFindUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToParentFindUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTickerFindUnique) with() {} -func (r getGroupKeyRunToTickerFindUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTickerFindUnique) getGroupKeyRunRelation() {} +func (r workflowRunTriggeredByToParentFindUnique) with() {} +func (r workflowRunTriggeredByToParentFindUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToParentFindUnique) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunToTickerFindUnique) With(params ...TickerRelationWith) getGroupKeyRunToTickerFindUnique { +func (r workflowRunTriggeredByToParentFindUnique) With(params ...WorkflowRunRelationWith) workflowRunTriggeredByToParentFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -317589,7 +342592,7 @@ func (r getGroupKeyRunToTickerFindUnique) With(params ...TickerRelationWith) get return r } -func (r getGroupKeyRunToTickerFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindUnique { +func (r workflowRunTriggeredByToParentFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindUnique { var outputs []builder.Output for _, param := range params { @@ -317603,7 +342606,7 @@ func (r getGroupKeyRunToTickerFindUnique) Select(params ...getGroupKeyRunPrismaF return r } -func (r getGroupKeyRunToTickerFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindUnique { +func (r workflowRunTriggeredByToParentFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindUnique { var outputs []builder.Output var raw []string @@ -317611,7 +342614,7 @@ func (r getGroupKeyRunToTickerFindUnique) Omit(params ...getGroupKeyRunPrismaFie raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -317622,11 +342625,11 @@ func (r getGroupKeyRunToTickerFindUnique) Omit(params ...getGroupKeyRunPrismaFie return r } -func (r getGroupKeyRunToTickerFindUnique) Exec(ctx context.Context) ( - *GetGroupKeyRunModel, +func (r workflowRunTriggeredByToParentFindUnique) Exec(ctx context.Context) ( + *WorkflowRunTriggeredByModel, error, ) { - var v *GetGroupKeyRunModel + var v *WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317638,11 +342641,11 @@ func (r getGroupKeyRunToTickerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTickerFindUnique) ExecInner(ctx context.Context) ( - *InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToParentFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRunTriggeredBy, error, ) { - var v *InnerGetGroupKeyRun + var v *InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317654,12 +342657,12 @@ func (r getGroupKeyRunToTickerFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTickerFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToTickerUpdateUnique { +func (r workflowRunTriggeredByToParentFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToParentUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "GetGroupKeyRun" + r.query.Model = "WorkflowRunTriggeredBy" - var v getGroupKeyRunToTickerUpdateUnique + var v workflowRunTriggeredByToParentUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -317688,83 +342691,83 @@ func (r getGroupKeyRunToTickerFindUnique) Update(params ...GetGroupKeyRunSetPara return v } -type getGroupKeyRunToTickerUpdateUnique struct { +type workflowRunTriggeredByToParentUpdateUnique struct { query builder.Query } -func (r getGroupKeyRunToTickerUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToParentUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTickerUpdateUnique) getGroupKeyRunModel() {} +func (r workflowRunTriggeredByToParentUpdateUnique) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunToTickerUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { - var v GetGroupKeyRunModel +func (r workflowRunTriggeredByToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { + var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r getGroupKeyRunToTickerUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { - v := newGetGroupKeyRunUniqueTxResult() +func (r workflowRunTriggeredByToParentUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { + v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunToTickerFindUnique) Delete() getGroupKeyRunToTickerDeleteUnique { - var v getGroupKeyRunToTickerDeleteUnique +func (r workflowRunTriggeredByToParentFindUnique) Delete() workflowRunTriggeredByToParentDeleteUnique { + var v workflowRunTriggeredByToParentDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "GetGroupKeyRun" + v.query.Model = "WorkflowRunTriggeredBy" return v } -type getGroupKeyRunToTickerDeleteUnique struct { +type workflowRunTriggeredByToParentDeleteUnique struct { query builder.Query } -func (r getGroupKeyRunToTickerDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToParentDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunToTickerDeleteUnique) getGroupKeyRunModel() {} +func (p workflowRunTriggeredByToParentDeleteUnique) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunToTickerDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { - var v GetGroupKeyRunModel +func (r workflowRunTriggeredByToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { + var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r getGroupKeyRunToTickerDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { - v := newGetGroupKeyRunUniqueTxResult() +func (r workflowRunTriggeredByToParentDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { + v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunToTickerFindFirst struct { +type workflowRunTriggeredByToParentFindFirst struct { query builder.Query } -func (r getGroupKeyRunToTickerFindFirst) getQuery() builder.Query { +func (r workflowRunTriggeredByToParentFindFirst) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTickerFindFirst) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToParentFindFirst) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTickerFindFirst) with() {} -func (r getGroupKeyRunToTickerFindFirst) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTickerFindFirst) getGroupKeyRunRelation() {} +func (r workflowRunTriggeredByToParentFindFirst) with() {} +func (r workflowRunTriggeredByToParentFindFirst) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToParentFindFirst) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunToTickerFindFirst) With(params ...TickerRelationWith) getGroupKeyRunToTickerFindFirst { +func (r workflowRunTriggeredByToParentFindFirst) With(params ...WorkflowRunRelationWith) workflowRunTriggeredByToParentFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -317777,7 +342780,7 @@ func (r getGroupKeyRunToTickerFindFirst) With(params ...TickerRelationWith) getG return r } -func (r getGroupKeyRunToTickerFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindFirst { +func (r workflowRunTriggeredByToParentFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindFirst { var outputs []builder.Output for _, param := range params { @@ -317791,7 +342794,7 @@ func (r getGroupKeyRunToTickerFindFirst) Select(params ...getGroupKeyRunPrismaFi return r } -func (r getGroupKeyRunToTickerFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindFirst { +func (r workflowRunTriggeredByToParentFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindFirst { var outputs []builder.Output var raw []string @@ -317799,7 +342802,7 @@ func (r getGroupKeyRunToTickerFindFirst) Omit(params ...getGroupKeyRunPrismaFiel raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -317810,7 +342813,7 @@ func (r getGroupKeyRunToTickerFindFirst) Omit(params ...getGroupKeyRunPrismaFiel return r } -func (r getGroupKeyRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) getGroupKeyRunToTickerFindFirst { +func (r workflowRunTriggeredByToParentFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunTriggeredByToParentFindFirst { var fields []builder.Field for _, param := range params { @@ -317830,7 +342833,7 @@ func (r getGroupKeyRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) g return r } -func (r getGroupKeyRunToTickerFindFirst) Skip(count int) getGroupKeyRunToTickerFindFirst { +func (r workflowRunTriggeredByToParentFindFirst) Skip(count int) workflowRunTriggeredByToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -317838,7 +342841,7 @@ func (r getGroupKeyRunToTickerFindFirst) Skip(count int) getGroupKeyRunToTickerF return r } -func (r getGroupKeyRunToTickerFindFirst) Take(count int) getGroupKeyRunToTickerFindFirst { +func (r workflowRunTriggeredByToParentFindFirst) Take(count int) workflowRunTriggeredByToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -317846,7 +342849,7 @@ func (r getGroupKeyRunToTickerFindFirst) Take(count int) getGroupKeyRunToTickerF return r } -func (r getGroupKeyRunToTickerFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToTickerFindFirst { +func (r workflowRunTriggeredByToParentFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToParentFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -317854,11 +342857,11 @@ func (r getGroupKeyRunToTickerFindFirst) Cursor(cursor GetGroupKeyRunCursorParam return r } -func (r getGroupKeyRunToTickerFindFirst) Exec(ctx context.Context) ( - *GetGroupKeyRunModel, +func (r workflowRunTriggeredByToParentFindFirst) Exec(ctx context.Context) ( + *WorkflowRunTriggeredByModel, error, ) { - var v *GetGroupKeyRunModel + var v *WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317870,11 +342873,11 @@ func (r getGroupKeyRunToTickerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTickerFindFirst) ExecInner(ctx context.Context) ( - *InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToParentFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRunTriggeredBy, error, ) { - var v *InnerGetGroupKeyRun + var v *InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -317886,23 +342889,23 @@ func (r getGroupKeyRunToTickerFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type getGroupKeyRunToTickerFindMany struct { +type workflowRunTriggeredByToParentFindMany struct { query builder.Query } -func (r getGroupKeyRunToTickerFindMany) getQuery() builder.Query { +func (r workflowRunTriggeredByToParentFindMany) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTickerFindMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToParentFindMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTickerFindMany) with() {} -func (r getGroupKeyRunToTickerFindMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunToTickerFindMany) getGroupKeyRunRelation() {} +func (r workflowRunTriggeredByToParentFindMany) with() {} +func (r workflowRunTriggeredByToParentFindMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToParentFindMany) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunToTickerFindMany) With(params ...TickerRelationWith) getGroupKeyRunToTickerFindMany { +func (r workflowRunTriggeredByToParentFindMany) With(params ...WorkflowRunRelationWith) workflowRunTriggeredByToParentFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -317915,7 +342918,7 @@ func (r getGroupKeyRunToTickerFindMany) With(params ...TickerRelationWith) getGr return r } -func (r getGroupKeyRunToTickerFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindMany { +func (r workflowRunTriggeredByToParentFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindMany { var outputs []builder.Output for _, param := range params { @@ -317929,7 +342932,7 @@ func (r getGroupKeyRunToTickerFindMany) Select(params ...getGroupKeyRunPrismaFie return r } -func (r getGroupKeyRunToTickerFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunToTickerFindMany { +func (r workflowRunTriggeredByToParentFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindMany { var outputs []builder.Output var raw []string @@ -317937,7 +342940,7 @@ func (r getGroupKeyRunToTickerFindMany) Omit(params ...getGroupKeyRunPrismaField raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -317948,7 +342951,7 @@ func (r getGroupKeyRunToTickerFindMany) Omit(params ...getGroupKeyRunPrismaField return r } -func (r getGroupKeyRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) getGroupKeyRunToTickerFindMany { +func (r workflowRunTriggeredByToParentFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunTriggeredByToParentFindMany { var fields []builder.Field for _, param := range params { @@ -317968,7 +342971,7 @@ func (r getGroupKeyRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) ge return r } -func (r getGroupKeyRunToTickerFindMany) Skip(count int) getGroupKeyRunToTickerFindMany { +func (r workflowRunTriggeredByToParentFindMany) Skip(count int) workflowRunTriggeredByToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -317976,7 +342979,7 @@ func (r getGroupKeyRunToTickerFindMany) Skip(count int) getGroupKeyRunToTickerFi return r } -func (r getGroupKeyRunToTickerFindMany) Take(count int) getGroupKeyRunToTickerFindMany { +func (r workflowRunTriggeredByToParentFindMany) Take(count int) workflowRunTriggeredByToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -317984,7 +342987,7 @@ func (r getGroupKeyRunToTickerFindMany) Take(count int) getGroupKeyRunToTickerFi return r } -func (r getGroupKeyRunToTickerFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunToTickerFindMany { +func (r workflowRunTriggeredByToParentFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToParentFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -317992,11 +342995,11 @@ func (r getGroupKeyRunToTickerFindMany) Cursor(cursor GetGroupKeyRunCursorParam) return r } -func (r getGroupKeyRunToTickerFindMany) Exec(ctx context.Context) ( - []GetGroupKeyRunModel, +func (r workflowRunTriggeredByToParentFindMany) Exec(ctx context.Context) ( + []WorkflowRunTriggeredByModel, error, ) { - var v []GetGroupKeyRunModel + var v []WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -318004,11 +343007,11 @@ func (r getGroupKeyRunToTickerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTickerFindMany) ExecInner(ctx context.Context) ( - []InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToParentFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRunTriggeredBy, error, ) { - var v []InnerGetGroupKeyRun + var v []InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -318016,14 +343019,14 @@ func (r getGroupKeyRunToTickerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunToTickerFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunToTickerUpdateMany { +func (r workflowRunTriggeredByToParentFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToParentUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "GetGroupKeyRun" + r.query.Model = "WorkflowRunTriggeredBy" r.query.Outputs = countOutput - var v getGroupKeyRunToTickerUpdateMany + var v workflowRunTriggeredByToParentUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -318052,17 +343055,17 @@ func (r getGroupKeyRunToTickerFindMany) Update(params ...GetGroupKeyRunSetParam) return v } -type getGroupKeyRunToTickerUpdateMany struct { +type workflowRunTriggeredByToParentUpdateMany struct { query builder.Query } -func (r getGroupKeyRunToTickerUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToParentUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunToTickerUpdateMany) getGroupKeyRunModel() {} +func (r workflowRunTriggeredByToParentUpdateMany) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -318070,36 +343073,36 @@ func (r getGroupKeyRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r getGroupKeyRunToTickerUpdateMany) Tx() GetGroupKeyRunManyTxResult { - v := newGetGroupKeyRunManyTxResult() +func (r workflowRunTriggeredByToParentUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { + v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunToTickerFindMany) Delete() getGroupKeyRunToTickerDeleteMany { - var v getGroupKeyRunToTickerDeleteMany +func (r workflowRunTriggeredByToParentFindMany) Delete() workflowRunTriggeredByToParentDeleteMany { + var v workflowRunTriggeredByToParentDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "GetGroupKeyRun" + v.query.Model = "WorkflowRunTriggeredBy" v.query.Outputs = countOutput return v } -type getGroupKeyRunToTickerDeleteMany struct { +type workflowRunTriggeredByToParentDeleteMany struct { query builder.Query } -func (r getGroupKeyRunToTickerDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToParentDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunToTickerDeleteMany) getGroupKeyRunModel() {} +func (p workflowRunTriggeredByToParentDeleteMany) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -318107,52 +343110,30 @@ func (r getGroupKeyRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r getGroupKeyRunToTickerDeleteMany) Tx() GetGroupKeyRunManyTxResult { - v := newGetGroupKeyRunManyTxResult() +func (r workflowRunTriggeredByToParentDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { + v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunFindUnique struct { +type workflowRunTriggeredByToEventFindUnique struct { query builder.Query } -func (r getGroupKeyRunFindUnique) getQuery() builder.Query { +func (r workflowRunTriggeredByToEventFindUnique) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunFindUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToEventFindUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunFindUnique) with() {} -func (r getGroupKeyRunFindUnique) getGroupKeyRunModel() {} -func (r getGroupKeyRunFindUnique) getGroupKeyRunRelation() {} - -func (r getGroupKeyRunActions) FindUnique( - params GetGroupKeyRunEqualsUniqueWhereParam, -) getGroupKeyRunFindUnique { - var v getGroupKeyRunFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "GetGroupKeyRun" - v.query.Outputs = getGroupKeyRunOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r workflowRunTriggeredByToEventFindUnique) with() {} +func (r workflowRunTriggeredByToEventFindUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToEventFindUnique) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunFindUnique) With(params ...GetGroupKeyRunRelationWith) getGroupKeyRunFindUnique { +func (r workflowRunTriggeredByToEventFindUnique) With(params ...EventRelationWith) workflowRunTriggeredByToEventFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -318165,7 +343146,7 @@ func (r getGroupKeyRunFindUnique) With(params ...GetGroupKeyRunRelationWith) get return r } -func (r getGroupKeyRunFindUnique) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindUnique { +func (r workflowRunTriggeredByToEventFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindUnique { var outputs []builder.Output for _, param := range params { @@ -318179,7 +343160,7 @@ func (r getGroupKeyRunFindUnique) Select(params ...getGroupKeyRunPrismaFields) g return r } -func (r getGroupKeyRunFindUnique) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindUnique { +func (r workflowRunTriggeredByToEventFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindUnique { var outputs []builder.Output var raw []string @@ -318187,7 +343168,7 @@ func (r getGroupKeyRunFindUnique) Omit(params ...getGroupKeyRunPrismaFields) get raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -318198,11 +343179,11 @@ func (r getGroupKeyRunFindUnique) Omit(params ...getGroupKeyRunPrismaFields) get return r } -func (r getGroupKeyRunFindUnique) Exec(ctx context.Context) ( - *GetGroupKeyRunModel, +func (r workflowRunTriggeredByToEventFindUnique) Exec(ctx context.Context) ( + *WorkflowRunTriggeredByModel, error, ) { - var v *GetGroupKeyRunModel + var v *WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -318214,11 +343195,11 @@ func (r getGroupKeyRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunFindUnique) ExecInner(ctx context.Context) ( - *InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToEventFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkflowRunTriggeredBy, error, ) { - var v *InnerGetGroupKeyRun + var v *InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -318230,12 +343211,12 @@ func (r getGroupKeyRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunFindUnique) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunUpdateUnique { +func (r workflowRunTriggeredByToEventFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToEventUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "GetGroupKeyRun" + r.query.Model = "WorkflowRunTriggeredBy" - var v getGroupKeyRunUpdateUnique + var v workflowRunTriggeredByToEventUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -318264,120 +343245,83 @@ func (r getGroupKeyRunFindUnique) Update(params ...GetGroupKeyRunSetParam) getGr return v } -type getGroupKeyRunUpdateUnique struct { +type workflowRunTriggeredByToEventUpdateUnique struct { query builder.Query } -func (r getGroupKeyRunUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToEventUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunUpdateUnique) getGroupKeyRunModel() {} +func (r workflowRunTriggeredByToEventUpdateUnique) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunUpdateUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { - var v GetGroupKeyRunModel +func (r workflowRunTriggeredByToEventUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { + var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r getGroupKeyRunUpdateUnique) Tx() GetGroupKeyRunUniqueTxResult { - v := newGetGroupKeyRunUniqueTxResult() +func (r workflowRunTriggeredByToEventUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { + v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunFindUnique) Delete() getGroupKeyRunDeleteUnique { - var v getGroupKeyRunDeleteUnique +func (r workflowRunTriggeredByToEventFindUnique) Delete() workflowRunTriggeredByToEventDeleteUnique { + var v workflowRunTriggeredByToEventDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "GetGroupKeyRun" + v.query.Model = "WorkflowRunTriggeredBy" return v } -type getGroupKeyRunDeleteUnique struct { +type workflowRunTriggeredByToEventDeleteUnique struct { query builder.Query } -func (r getGroupKeyRunDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToEventDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunDeleteUnique) getGroupKeyRunModel() {} +func (p workflowRunTriggeredByToEventDeleteUnique) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunDeleteUnique) Exec(ctx context.Context) (*GetGroupKeyRunModel, error) { - var v GetGroupKeyRunModel +func (r workflowRunTriggeredByToEventDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { + var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r getGroupKeyRunDeleteUnique) Tx() GetGroupKeyRunUniqueTxResult { - v := newGetGroupKeyRunUniqueTxResult() +func (r workflowRunTriggeredByToEventDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { + v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type getGroupKeyRunFindFirst struct { +type workflowRunTriggeredByToEventFindFirst struct { query builder.Query } -func (r getGroupKeyRunFindFirst) getQuery() builder.Query { +func (r workflowRunTriggeredByToEventFindFirst) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunFindFirst) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToEventFindFirst) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunFindFirst) with() {} -func (r getGroupKeyRunFindFirst) getGroupKeyRunModel() {} -func (r getGroupKeyRunFindFirst) getGroupKeyRunRelation() {} - -func (r getGroupKeyRunActions) FindFirst( - params ...GetGroupKeyRunWhereParam, -) getGroupKeyRunFindFirst { - var v getGroupKeyRunFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "GetGroupKeyRun" - v.query.Outputs = getGroupKeyRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowRunTriggeredByToEventFindFirst) with() {} +func (r workflowRunTriggeredByToEventFindFirst) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToEventFindFirst) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunFindFirst) With(params ...GetGroupKeyRunRelationWith) getGroupKeyRunFindFirst { +func (r workflowRunTriggeredByToEventFindFirst) With(params ...EventRelationWith) workflowRunTriggeredByToEventFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -318390,7 +343334,7 @@ func (r getGroupKeyRunFindFirst) With(params ...GetGroupKeyRunRelationWith) getG return r } -func (r getGroupKeyRunFindFirst) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindFirst { +func (r workflowRunTriggeredByToEventFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindFirst { var outputs []builder.Output for _, param := range params { @@ -318404,7 +343348,7 @@ func (r getGroupKeyRunFindFirst) Select(params ...getGroupKeyRunPrismaFields) ge return r } -func (r getGroupKeyRunFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindFirst { +func (r workflowRunTriggeredByToEventFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindFirst { var outputs []builder.Output var raw []string @@ -318412,7 +343356,7 @@ func (r getGroupKeyRunFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getG raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -318423,7 +343367,7 @@ func (r getGroupKeyRunFindFirst) Omit(params ...getGroupKeyRunPrismaFields) getG return r } -func (r getGroupKeyRunFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) getGroupKeyRunFindFirst { +func (r workflowRunTriggeredByToEventFindFirst) OrderBy(params ...EventOrderByParam) workflowRunTriggeredByToEventFindFirst { var fields []builder.Field for _, param := range params { @@ -318443,7 +343387,7 @@ func (r getGroupKeyRunFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) g return r } -func (r getGroupKeyRunFindFirst) Skip(count int) getGroupKeyRunFindFirst { +func (r workflowRunTriggeredByToEventFindFirst) Skip(count int) workflowRunTriggeredByToEventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -318451,7 +343395,7 @@ func (r getGroupKeyRunFindFirst) Skip(count int) getGroupKeyRunFindFirst { return r } -func (r getGroupKeyRunFindFirst) Take(count int) getGroupKeyRunFindFirst { +func (r workflowRunTriggeredByToEventFindFirst) Take(count int) workflowRunTriggeredByToEventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -318459,7 +343403,7 @@ func (r getGroupKeyRunFindFirst) Take(count int) getGroupKeyRunFindFirst { return r } -func (r getGroupKeyRunFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunFindFirst { +func (r workflowRunTriggeredByToEventFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToEventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -318467,11 +343411,11 @@ func (r getGroupKeyRunFindFirst) Cursor(cursor GetGroupKeyRunCursorParam) getGro return r } -func (r getGroupKeyRunFindFirst) Exec(ctx context.Context) ( - *GetGroupKeyRunModel, +func (r workflowRunTriggeredByToEventFindFirst) Exec(ctx context.Context) ( + *WorkflowRunTriggeredByModel, error, ) { - var v *GetGroupKeyRunModel + var v *WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -318483,11 +343427,11 @@ func (r getGroupKeyRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunFindFirst) ExecInner(ctx context.Context) ( - *InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToEventFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkflowRunTriggeredBy, error, ) { - var v *InnerGetGroupKeyRun + var v *InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -318499,60 +343443,23 @@ func (r getGroupKeyRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type getGroupKeyRunFindMany struct { +type workflowRunTriggeredByToEventFindMany struct { query builder.Query } -func (r getGroupKeyRunFindMany) getQuery() builder.Query { +func (r workflowRunTriggeredByToEventFindMany) getQuery() builder.Query { return r.query } -func (r getGroupKeyRunFindMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToEventFindMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunFindMany) with() {} -func (r getGroupKeyRunFindMany) getGroupKeyRunModel() {} -func (r getGroupKeyRunFindMany) getGroupKeyRunRelation() {} - -func (r getGroupKeyRunActions) FindMany( - params ...GetGroupKeyRunWhereParam, -) getGroupKeyRunFindMany { - var v getGroupKeyRunFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "GetGroupKeyRun" - v.query.Outputs = getGroupKeyRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r workflowRunTriggeredByToEventFindMany) with() {} +func (r workflowRunTriggeredByToEventFindMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToEventFindMany) workflowRunTriggeredByRelation() {} -func (r getGroupKeyRunFindMany) With(params ...GetGroupKeyRunRelationWith) getGroupKeyRunFindMany { +func (r workflowRunTriggeredByToEventFindMany) With(params ...EventRelationWith) workflowRunTriggeredByToEventFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -318565,7 +343472,7 @@ func (r getGroupKeyRunFindMany) With(params ...GetGroupKeyRunRelationWith) getGr return r } -func (r getGroupKeyRunFindMany) Select(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindMany { +func (r workflowRunTriggeredByToEventFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindMany { var outputs []builder.Output for _, param := range params { @@ -318579,7 +343486,7 @@ func (r getGroupKeyRunFindMany) Select(params ...getGroupKeyRunPrismaFields) get return r } -func (r getGroupKeyRunFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGroupKeyRunFindMany { +func (r workflowRunTriggeredByToEventFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindMany { var outputs []builder.Output var raw []string @@ -318587,7 +343494,7 @@ func (r getGroupKeyRunFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGr raw = append(raw, string(param)) } - for _, output := range getGroupKeyRunOutput { + for _, output := range workflowRunTriggeredByOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -318598,7 +343505,7 @@ func (r getGroupKeyRunFindMany) Omit(params ...getGroupKeyRunPrismaFields) getGr return r } -func (r getGroupKeyRunFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) getGroupKeyRunFindMany { +func (r workflowRunTriggeredByToEventFindMany) OrderBy(params ...EventOrderByParam) workflowRunTriggeredByToEventFindMany { var fields []builder.Field for _, param := range params { @@ -318618,7 +343525,7 @@ func (r getGroupKeyRunFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) ge return r } -func (r getGroupKeyRunFindMany) Skip(count int) getGroupKeyRunFindMany { +func (r workflowRunTriggeredByToEventFindMany) Skip(count int) workflowRunTriggeredByToEventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -318626,7 +343533,7 @@ func (r getGroupKeyRunFindMany) Skip(count int) getGroupKeyRunFindMany { return r } -func (r getGroupKeyRunFindMany) Take(count int) getGroupKeyRunFindMany { +func (r workflowRunTriggeredByToEventFindMany) Take(count int) workflowRunTriggeredByToEventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -318634,7 +343541,7 @@ func (r getGroupKeyRunFindMany) Take(count int) getGroupKeyRunFindMany { return r } -func (r getGroupKeyRunFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGroupKeyRunFindMany { +func (r workflowRunTriggeredByToEventFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToEventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -318642,11 +343549,11 @@ func (r getGroupKeyRunFindMany) Cursor(cursor GetGroupKeyRunCursorParam) getGrou return r } -func (r getGroupKeyRunFindMany) Exec(ctx context.Context) ( - []GetGroupKeyRunModel, +func (r workflowRunTriggeredByToEventFindMany) Exec(ctx context.Context) ( + []WorkflowRunTriggeredByModel, error, ) { - var v []GetGroupKeyRunModel + var v []WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -318654,11 +343561,11 @@ func (r getGroupKeyRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunFindMany) ExecInner(ctx context.Context) ( - []InnerGetGroupKeyRun, +func (r workflowRunTriggeredByToEventFindMany) ExecInner(ctx context.Context) ( + []InnerWorkflowRunTriggeredBy, error, ) { - var v []InnerGetGroupKeyRun + var v []InnerWorkflowRunTriggeredBy if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -318666,14 +343573,14 @@ func (r getGroupKeyRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r getGroupKeyRunFindMany) Update(params ...GetGroupKeyRunSetParam) getGroupKeyRunUpdateMany { +func (r workflowRunTriggeredByToEventFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToEventUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "GetGroupKeyRun" + r.query.Model = "WorkflowRunTriggeredBy" r.query.Outputs = countOutput - var v getGroupKeyRunUpdateMany + var v workflowRunTriggeredByToEventUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -318702,17 +343609,17 @@ func (r getGroupKeyRunFindMany) Update(params ...GetGroupKeyRunSetParam) getGrou return v } -type getGroupKeyRunUpdateMany struct { +type workflowRunTriggeredByToEventUpdateMany struct { query builder.Query } -func (r getGroupKeyRunUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToEventUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r getGroupKeyRunUpdateMany) getGroupKeyRunModel() {} +func (r workflowRunTriggeredByToEventUpdateMany) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToEventUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -318720,36 +343627,36 @@ func (r getGroupKeyRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r getGroupKeyRunUpdateMany) Tx() GetGroupKeyRunManyTxResult { - v := newGetGroupKeyRunManyTxResult() +func (r workflowRunTriggeredByToEventUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { + v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r getGroupKeyRunFindMany) Delete() getGroupKeyRunDeleteMany { - var v getGroupKeyRunDeleteMany +func (r workflowRunTriggeredByToEventFindMany) Delete() workflowRunTriggeredByToEventDeleteMany { + var v workflowRunTriggeredByToEventDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "GetGroupKeyRun" + v.query.Model = "WorkflowRunTriggeredBy" v.query.Outputs = countOutput return v } -type getGroupKeyRunDeleteMany struct { +type workflowRunTriggeredByToEventDeleteMany struct { query builder.Query } -func (r getGroupKeyRunDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToEventDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p getGroupKeyRunDeleteMany) getGroupKeyRunModel() {} +func (p workflowRunTriggeredByToEventDeleteMany) workflowRunTriggeredByModel() {} -func (r getGroupKeyRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToEventDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -318757,30 +343664,30 @@ func (r getGroupKeyRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r getGroupKeyRunDeleteMany) Tx() GetGroupKeyRunManyTxResult { - v := newGetGroupKeyRunManyTxResult() +func (r workflowRunTriggeredByToEventDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { + v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToTenantFindUnique struct { +type workflowRunTriggeredByToCronFindUnique struct { query builder.Query } -func (r workflowRunTriggeredByToTenantFindUnique) getQuery() builder.Query { +func (r workflowRunTriggeredByToCronFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToTenantFindUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToCronFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToTenantFindUnique) with() {} -func (r workflowRunTriggeredByToTenantFindUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToTenantFindUnique) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByToCronFindUnique) with() {} +func (r workflowRunTriggeredByToCronFindUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToCronFindUnique) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToTenantFindUnique) With(params ...TenantRelationWith) workflowRunTriggeredByToTenantFindUnique { +func (r workflowRunTriggeredByToCronFindUnique) With(params ...WorkflowTriggerCronRefRelationWith) workflowRunTriggeredByToCronFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -318793,7 +343700,7 @@ func (r workflowRunTriggeredByToTenantFindUnique) With(params ...TenantRelationW return r } -func (r workflowRunTriggeredByToTenantFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindUnique { +func (r workflowRunTriggeredByToCronFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindUnique { var outputs []builder.Output for _, param := range params { @@ -318807,7 +343714,7 @@ func (r workflowRunTriggeredByToTenantFindUnique) Select(params ...workflowRunTr return r } -func (r workflowRunTriggeredByToTenantFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindUnique { +func (r workflowRunTriggeredByToCronFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindUnique { var outputs []builder.Output var raw []string @@ -318826,7 +343733,7 @@ func (r workflowRunTriggeredByToTenantFindUnique) Omit(params ...workflowRunTrig return r } -func (r workflowRunTriggeredByToTenantFindUnique) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByToCronFindUnique) Exec(ctx context.Context) ( *WorkflowRunTriggeredByModel, error, ) { @@ -318842,7 +343749,7 @@ func (r workflowRunTriggeredByToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToTenantFindUnique) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByToCronFindUnique) ExecInner(ctx context.Context) ( *InnerWorkflowRunTriggeredBy, error, ) { @@ -318858,12 +343765,12 @@ func (r workflowRunTriggeredByToTenantFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r workflowRunTriggeredByToTenantFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToTenantUpdateUnique { +func (r workflowRunTriggeredByToCronFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToCronUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "WorkflowRunTriggeredBy" - var v workflowRunTriggeredByToTenantUpdateUnique + var v workflowRunTriggeredByToCronUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -318892,17 +343799,17 @@ func (r workflowRunTriggeredByToTenantFindUnique) Update(params ...WorkflowRunTr return v } -type workflowRunTriggeredByToTenantUpdateUnique struct { +type workflowRunTriggeredByToCronUpdateUnique struct { query builder.Query } -func (r workflowRunTriggeredByToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToCronUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToTenantUpdateUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToCronUpdateUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToTenantUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { +func (r workflowRunTriggeredByToCronUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -318910,15 +343817,15 @@ func (r workflowRunTriggeredByToTenantUpdateUnique) Exec(ctx context.Context) (* return &v, nil } -func (r workflowRunTriggeredByToTenantUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { +func (r workflowRunTriggeredByToCronUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToTenantFindUnique) Delete() workflowRunTriggeredByToTenantDeleteUnique { - var v workflowRunTriggeredByToTenantDeleteUnique +func (r workflowRunTriggeredByToCronFindUnique) Delete() workflowRunTriggeredByToCronDeleteUnique { + var v workflowRunTriggeredByToCronDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -318927,17 +343834,17 @@ func (r workflowRunTriggeredByToTenantFindUnique) Delete() workflowRunTriggeredB return v } -type workflowRunTriggeredByToTenantDeleteUnique struct { +type workflowRunTriggeredByToCronDeleteUnique struct { query builder.Query } -func (r workflowRunTriggeredByToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToCronDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToTenantDeleteUnique) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByToCronDeleteUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToTenantDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { +func (r workflowRunTriggeredByToCronDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -318945,30 +343852,30 @@ func (r workflowRunTriggeredByToTenantDeleteUnique) Exec(ctx context.Context) (* return &v, nil } -func (r workflowRunTriggeredByToTenantDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { +func (r workflowRunTriggeredByToCronDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToTenantFindFirst struct { +type workflowRunTriggeredByToCronFindFirst struct { query builder.Query } -func (r workflowRunTriggeredByToTenantFindFirst) getQuery() builder.Query { +func (r workflowRunTriggeredByToCronFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToTenantFindFirst) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToCronFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToTenantFindFirst) with() {} -func (r workflowRunTriggeredByToTenantFindFirst) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToTenantFindFirst) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByToCronFindFirst) with() {} +func (r workflowRunTriggeredByToCronFindFirst) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToCronFindFirst) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToTenantFindFirst) With(params ...TenantRelationWith) workflowRunTriggeredByToTenantFindFirst { +func (r workflowRunTriggeredByToCronFindFirst) With(params ...WorkflowTriggerCronRefRelationWith) workflowRunTriggeredByToCronFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -318981,7 +343888,7 @@ func (r workflowRunTriggeredByToTenantFindFirst) With(params ...TenantRelationWi return r } -func (r workflowRunTriggeredByToTenantFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindFirst { +func (r workflowRunTriggeredByToCronFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindFirst { var outputs []builder.Output for _, param := range params { @@ -318995,7 +343902,7 @@ func (r workflowRunTriggeredByToTenantFindFirst) Select(params ...workflowRunTri return r } -func (r workflowRunTriggeredByToTenantFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindFirst { +func (r workflowRunTriggeredByToCronFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindFirst { var outputs []builder.Output var raw []string @@ -319014,7 +343921,7 @@ func (r workflowRunTriggeredByToTenantFindFirst) Omit(params ...workflowRunTrigg return r } -func (r workflowRunTriggeredByToTenantFindFirst) OrderBy(params ...TenantOrderByParam) workflowRunTriggeredByToTenantFindFirst { +func (r workflowRunTriggeredByToCronFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowRunTriggeredByToCronFindFirst { var fields []builder.Field for _, param := range params { @@ -319034,7 +343941,7 @@ func (r workflowRunTriggeredByToTenantFindFirst) OrderBy(params ...TenantOrderBy return r } -func (r workflowRunTriggeredByToTenantFindFirst) Skip(count int) workflowRunTriggeredByToTenantFindFirst { +func (r workflowRunTriggeredByToCronFindFirst) Skip(count int) workflowRunTriggeredByToCronFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -319042,7 +343949,7 @@ func (r workflowRunTriggeredByToTenantFindFirst) Skip(count int) workflowRunTrig return r } -func (r workflowRunTriggeredByToTenantFindFirst) Take(count int) workflowRunTriggeredByToTenantFindFirst { +func (r workflowRunTriggeredByToCronFindFirst) Take(count int) workflowRunTriggeredByToCronFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -319050,7 +343957,7 @@ func (r workflowRunTriggeredByToTenantFindFirst) Take(count int) workflowRunTrig return r } -func (r workflowRunTriggeredByToTenantFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToTenantFindFirst { +func (r workflowRunTriggeredByToCronFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToCronFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -319058,7 +343965,7 @@ func (r workflowRunTriggeredByToTenantFindFirst) Cursor(cursor WorkflowRunTrigge return r } -func (r workflowRunTriggeredByToTenantFindFirst) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByToCronFindFirst) Exec(ctx context.Context) ( *WorkflowRunTriggeredByModel, error, ) { @@ -319074,7 +343981,7 @@ func (r workflowRunTriggeredByToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToTenantFindFirst) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByToCronFindFirst) ExecInner(ctx context.Context) ( *InnerWorkflowRunTriggeredBy, error, ) { @@ -319090,23 +343997,23 @@ func (r workflowRunTriggeredByToTenantFindFirst) ExecInner(ctx context.Context) return v, nil } -type workflowRunTriggeredByToTenantFindMany struct { +type workflowRunTriggeredByToCronFindMany struct { query builder.Query } -func (r workflowRunTriggeredByToTenantFindMany) getQuery() builder.Query { +func (r workflowRunTriggeredByToCronFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToTenantFindMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToCronFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToTenantFindMany) with() {} -func (r workflowRunTriggeredByToTenantFindMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToTenantFindMany) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByToCronFindMany) with() {} +func (r workflowRunTriggeredByToCronFindMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToCronFindMany) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToTenantFindMany) With(params ...TenantRelationWith) workflowRunTriggeredByToTenantFindMany { +func (r workflowRunTriggeredByToCronFindMany) With(params ...WorkflowTriggerCronRefRelationWith) workflowRunTriggeredByToCronFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -319119,7 +344026,7 @@ func (r workflowRunTriggeredByToTenantFindMany) With(params ...TenantRelationWit return r } -func (r workflowRunTriggeredByToTenantFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindMany { +func (r workflowRunTriggeredByToCronFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindMany { var outputs []builder.Output for _, param := range params { @@ -319133,7 +344040,7 @@ func (r workflowRunTriggeredByToTenantFindMany) Select(params ...workflowRunTrig return r } -func (r workflowRunTriggeredByToTenantFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToTenantFindMany { +func (r workflowRunTriggeredByToCronFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindMany { var outputs []builder.Output var raw []string @@ -319152,7 +344059,7 @@ func (r workflowRunTriggeredByToTenantFindMany) Omit(params ...workflowRunTrigge return r } -func (r workflowRunTriggeredByToTenantFindMany) OrderBy(params ...TenantOrderByParam) workflowRunTriggeredByToTenantFindMany { +func (r workflowRunTriggeredByToCronFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowRunTriggeredByToCronFindMany { var fields []builder.Field for _, param := range params { @@ -319172,7 +344079,7 @@ func (r workflowRunTriggeredByToTenantFindMany) OrderBy(params ...TenantOrderByP return r } -func (r workflowRunTriggeredByToTenantFindMany) Skip(count int) workflowRunTriggeredByToTenantFindMany { +func (r workflowRunTriggeredByToCronFindMany) Skip(count int) workflowRunTriggeredByToCronFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -319180,7 +344087,7 @@ func (r workflowRunTriggeredByToTenantFindMany) Skip(count int) workflowRunTrigg return r } -func (r workflowRunTriggeredByToTenantFindMany) Take(count int) workflowRunTriggeredByToTenantFindMany { +func (r workflowRunTriggeredByToCronFindMany) Take(count int) workflowRunTriggeredByToCronFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -319188,7 +344095,7 @@ func (r workflowRunTriggeredByToTenantFindMany) Take(count int) workflowRunTrigg return r } -func (r workflowRunTriggeredByToTenantFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToTenantFindMany { +func (r workflowRunTriggeredByToCronFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToCronFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -319196,7 +344103,7 @@ func (r workflowRunTriggeredByToTenantFindMany) Cursor(cursor WorkflowRunTrigger return r } -func (r workflowRunTriggeredByToTenantFindMany) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByToCronFindMany) Exec(ctx context.Context) ( []WorkflowRunTriggeredByModel, error, ) { @@ -319208,7 +344115,7 @@ func (r workflowRunTriggeredByToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToTenantFindMany) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByToCronFindMany) ExecInner(ctx context.Context) ( []InnerWorkflowRunTriggeredBy, error, ) { @@ -319220,14 +344127,14 @@ func (r workflowRunTriggeredByToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToTenantFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToTenantUpdateMany { +func (r workflowRunTriggeredByToCronFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToCronUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "WorkflowRunTriggeredBy" r.query.Outputs = countOutput - var v workflowRunTriggeredByToTenantUpdateMany + var v workflowRunTriggeredByToCronUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -319256,17 +344163,17 @@ func (r workflowRunTriggeredByToTenantFindMany) Update(params ...WorkflowRunTrig return v } -type workflowRunTriggeredByToTenantUpdateMany struct { +type workflowRunTriggeredByToCronUpdateMany struct { query builder.Query } -func (r workflowRunTriggeredByToTenantUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToCronUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToTenantUpdateMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToCronUpdateMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToCronUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -319274,15 +344181,15 @@ func (r workflowRunTriggeredByToTenantUpdateMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowRunTriggeredByToTenantUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { +func (r workflowRunTriggeredByToCronUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToTenantFindMany) Delete() workflowRunTriggeredByToTenantDeleteMany { - var v workflowRunTriggeredByToTenantDeleteMany +func (r workflowRunTriggeredByToCronFindMany) Delete() workflowRunTriggeredByToCronDeleteMany { + var v workflowRunTriggeredByToCronDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -319293,17 +344200,17 @@ func (r workflowRunTriggeredByToTenantFindMany) Delete() workflowRunTriggeredByT return v } -type workflowRunTriggeredByToTenantDeleteMany struct { +type workflowRunTriggeredByToCronDeleteMany struct { query builder.Query } -func (r workflowRunTriggeredByToTenantDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToCronDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToTenantDeleteMany) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByToCronDeleteMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToCronDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -319311,30 +344218,30 @@ func (r workflowRunTriggeredByToTenantDeleteMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowRunTriggeredByToTenantDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { +func (r workflowRunTriggeredByToCronDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToParentFindUnique struct { +type workflowRunTriggeredByToScheduledFindUnique struct { query builder.Query } -func (r workflowRunTriggeredByToParentFindUnique) getQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToParentFindUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToParentFindUnique) with() {} -func (r workflowRunTriggeredByToParentFindUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToParentFindUnique) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByToScheduledFindUnique) with() {} +func (r workflowRunTriggeredByToScheduledFindUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToScheduledFindUnique) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToParentFindUnique) With(params ...WorkflowRunRelationWith) workflowRunTriggeredByToParentFindUnique { +func (r workflowRunTriggeredByToScheduledFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunTriggeredByToScheduledFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -319347,7 +344254,7 @@ func (r workflowRunTriggeredByToParentFindUnique) With(params ...WorkflowRunRela return r } -func (r workflowRunTriggeredByToParentFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindUnique { +func (r workflowRunTriggeredByToScheduledFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindUnique { var outputs []builder.Output for _, param := range params { @@ -319361,7 +344268,7 @@ func (r workflowRunTriggeredByToParentFindUnique) Select(params ...workflowRunTr return r } -func (r workflowRunTriggeredByToParentFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindUnique { +func (r workflowRunTriggeredByToScheduledFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindUnique { var outputs []builder.Output var raw []string @@ -319380,7 +344287,7 @@ func (r workflowRunTriggeredByToParentFindUnique) Omit(params ...workflowRunTrig return r } -func (r workflowRunTriggeredByToParentFindUnique) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByToScheduledFindUnique) Exec(ctx context.Context) ( *WorkflowRunTriggeredByModel, error, ) { @@ -319396,7 +344303,7 @@ func (r workflowRunTriggeredByToParentFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToParentFindUnique) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByToScheduledFindUnique) ExecInner(ctx context.Context) ( *InnerWorkflowRunTriggeredBy, error, ) { @@ -319412,12 +344319,12 @@ func (r workflowRunTriggeredByToParentFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r workflowRunTriggeredByToParentFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToParentUpdateUnique { +func (r workflowRunTriggeredByToScheduledFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToScheduledUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "WorkflowRunTriggeredBy" - var v workflowRunTriggeredByToParentUpdateUnique + var v workflowRunTriggeredByToScheduledUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -319446,17 +344353,17 @@ func (r workflowRunTriggeredByToParentFindUnique) Update(params ...WorkflowRunTr return v } -type workflowRunTriggeredByToParentUpdateUnique struct { +type workflowRunTriggeredByToScheduledUpdateUnique struct { query builder.Query } -func (r workflowRunTriggeredByToParentUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToParentUpdateUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToScheduledUpdateUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToParentUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { +func (r workflowRunTriggeredByToScheduledUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -319464,15 +344371,15 @@ func (r workflowRunTriggeredByToParentUpdateUnique) Exec(ctx context.Context) (* return &v, nil } -func (r workflowRunTriggeredByToParentUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { +func (r workflowRunTriggeredByToScheduledUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToParentFindUnique) Delete() workflowRunTriggeredByToParentDeleteUnique { - var v workflowRunTriggeredByToParentDeleteUnique +func (r workflowRunTriggeredByToScheduledFindUnique) Delete() workflowRunTriggeredByToScheduledDeleteUnique { + var v workflowRunTriggeredByToScheduledDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -319481,17 +344388,17 @@ func (r workflowRunTriggeredByToParentFindUnique) Delete() workflowRunTriggeredB return v } -type workflowRunTriggeredByToParentDeleteUnique struct { +type workflowRunTriggeredByToScheduledDeleteUnique struct { query builder.Query } -func (r workflowRunTriggeredByToParentDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToParentDeleteUnique) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByToScheduledDeleteUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToParentDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { +func (r workflowRunTriggeredByToScheduledDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -319499,30 +344406,30 @@ func (r workflowRunTriggeredByToParentDeleteUnique) Exec(ctx context.Context) (* return &v, nil } -func (r workflowRunTriggeredByToParentDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { +func (r workflowRunTriggeredByToScheduledDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToParentFindFirst struct { +type workflowRunTriggeredByToScheduledFindFirst struct { query builder.Query } -func (r workflowRunTriggeredByToParentFindFirst) getQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToParentFindFirst) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToParentFindFirst) with() {} -func (r workflowRunTriggeredByToParentFindFirst) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToParentFindFirst) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByToScheduledFindFirst) with() {} +func (r workflowRunTriggeredByToScheduledFindFirst) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToScheduledFindFirst) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToParentFindFirst) With(params ...WorkflowRunRelationWith) workflowRunTriggeredByToParentFindFirst { +func (r workflowRunTriggeredByToScheduledFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunTriggeredByToScheduledFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -319535,7 +344442,7 @@ func (r workflowRunTriggeredByToParentFindFirst) With(params ...WorkflowRunRelat return r } -func (r workflowRunTriggeredByToParentFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindFirst { +func (r workflowRunTriggeredByToScheduledFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindFirst { var outputs []builder.Output for _, param := range params { @@ -319549,7 +344456,7 @@ func (r workflowRunTriggeredByToParentFindFirst) Select(params ...workflowRunTri return r } -func (r workflowRunTriggeredByToParentFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindFirst { +func (r workflowRunTriggeredByToScheduledFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindFirst { var outputs []builder.Output var raw []string @@ -319568,7 +344475,7 @@ func (r workflowRunTriggeredByToParentFindFirst) Omit(params ...workflowRunTrigg return r } -func (r workflowRunTriggeredByToParentFindFirst) OrderBy(params ...WorkflowRunOrderByParam) workflowRunTriggeredByToParentFindFirst { +func (r workflowRunTriggeredByToScheduledFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowRunTriggeredByToScheduledFindFirst { var fields []builder.Field for _, param := range params { @@ -319588,7 +344495,7 @@ func (r workflowRunTriggeredByToParentFindFirst) OrderBy(params ...WorkflowRunOr return r } -func (r workflowRunTriggeredByToParentFindFirst) Skip(count int) workflowRunTriggeredByToParentFindFirst { +func (r workflowRunTriggeredByToScheduledFindFirst) Skip(count int) workflowRunTriggeredByToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -319596,7 +344503,7 @@ func (r workflowRunTriggeredByToParentFindFirst) Skip(count int) workflowRunTrig return r } -func (r workflowRunTriggeredByToParentFindFirst) Take(count int) workflowRunTriggeredByToParentFindFirst { +func (r workflowRunTriggeredByToScheduledFindFirst) Take(count int) workflowRunTriggeredByToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -319604,7 +344511,7 @@ func (r workflowRunTriggeredByToParentFindFirst) Take(count int) workflowRunTrig return r } -func (r workflowRunTriggeredByToParentFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToParentFindFirst { +func (r workflowRunTriggeredByToScheduledFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -319612,7 +344519,7 @@ func (r workflowRunTriggeredByToParentFindFirst) Cursor(cursor WorkflowRunTrigge return r } -func (r workflowRunTriggeredByToParentFindFirst) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByToScheduledFindFirst) Exec(ctx context.Context) ( *WorkflowRunTriggeredByModel, error, ) { @@ -319628,7 +344535,7 @@ func (r workflowRunTriggeredByToParentFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToParentFindFirst) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByToScheduledFindFirst) ExecInner(ctx context.Context) ( *InnerWorkflowRunTriggeredBy, error, ) { @@ -319644,23 +344551,23 @@ func (r workflowRunTriggeredByToParentFindFirst) ExecInner(ctx context.Context) return v, nil } -type workflowRunTriggeredByToParentFindMany struct { +type workflowRunTriggeredByToScheduledFindMany struct { query builder.Query } -func (r workflowRunTriggeredByToParentFindMany) getQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToParentFindMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToParentFindMany) with() {} -func (r workflowRunTriggeredByToParentFindMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToParentFindMany) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByToScheduledFindMany) with() {} +func (r workflowRunTriggeredByToScheduledFindMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToScheduledFindMany) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToParentFindMany) With(params ...WorkflowRunRelationWith) workflowRunTriggeredByToParentFindMany { +func (r workflowRunTriggeredByToScheduledFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunTriggeredByToScheduledFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -319673,7 +344580,7 @@ func (r workflowRunTriggeredByToParentFindMany) With(params ...WorkflowRunRelati return r } -func (r workflowRunTriggeredByToParentFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindMany { +func (r workflowRunTriggeredByToScheduledFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindMany { var outputs []builder.Output for _, param := range params { @@ -319687,7 +344594,7 @@ func (r workflowRunTriggeredByToParentFindMany) Select(params ...workflowRunTrig return r } -func (r workflowRunTriggeredByToParentFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToParentFindMany { +func (r workflowRunTriggeredByToScheduledFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindMany { var outputs []builder.Output var raw []string @@ -319706,7 +344613,7 @@ func (r workflowRunTriggeredByToParentFindMany) Omit(params ...workflowRunTrigge return r } -func (r workflowRunTriggeredByToParentFindMany) OrderBy(params ...WorkflowRunOrderByParam) workflowRunTriggeredByToParentFindMany { +func (r workflowRunTriggeredByToScheduledFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowRunTriggeredByToScheduledFindMany { var fields []builder.Field for _, param := range params { @@ -319726,7 +344633,7 @@ func (r workflowRunTriggeredByToParentFindMany) OrderBy(params ...WorkflowRunOrd return r } -func (r workflowRunTriggeredByToParentFindMany) Skip(count int) workflowRunTriggeredByToParentFindMany { +func (r workflowRunTriggeredByToScheduledFindMany) Skip(count int) workflowRunTriggeredByToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -319734,7 +344641,7 @@ func (r workflowRunTriggeredByToParentFindMany) Skip(count int) workflowRunTrigg return r } -func (r workflowRunTriggeredByToParentFindMany) Take(count int) workflowRunTriggeredByToParentFindMany { +func (r workflowRunTriggeredByToScheduledFindMany) Take(count int) workflowRunTriggeredByToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -319742,7 +344649,7 @@ func (r workflowRunTriggeredByToParentFindMany) Take(count int) workflowRunTrigg return r } -func (r workflowRunTriggeredByToParentFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToParentFindMany { +func (r workflowRunTriggeredByToScheduledFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -319750,7 +344657,7 @@ func (r workflowRunTriggeredByToParentFindMany) Cursor(cursor WorkflowRunTrigger return r } -func (r workflowRunTriggeredByToParentFindMany) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByToScheduledFindMany) Exec(ctx context.Context) ( []WorkflowRunTriggeredByModel, error, ) { @@ -319762,7 +344669,7 @@ func (r workflowRunTriggeredByToParentFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToParentFindMany) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByToScheduledFindMany) ExecInner(ctx context.Context) ( []InnerWorkflowRunTriggeredBy, error, ) { @@ -319774,14 +344681,14 @@ func (r workflowRunTriggeredByToParentFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToParentFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToParentUpdateMany { +func (r workflowRunTriggeredByToScheduledFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToScheduledUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "WorkflowRunTriggeredBy" r.query.Outputs = countOutput - var v workflowRunTriggeredByToParentUpdateMany + var v workflowRunTriggeredByToScheduledUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -319810,17 +344717,17 @@ func (r workflowRunTriggeredByToParentFindMany) Update(params ...WorkflowRunTrig return v } -type workflowRunTriggeredByToParentUpdateMany struct { +type workflowRunTriggeredByToScheduledUpdateMany struct { query builder.Query } -func (r workflowRunTriggeredByToParentUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToParentUpdateMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByToScheduledUpdateMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToParentUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToScheduledUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -319828,15 +344735,15 @@ func (r workflowRunTriggeredByToParentUpdateMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowRunTriggeredByToParentUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { +func (r workflowRunTriggeredByToScheduledUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToParentFindMany) Delete() workflowRunTriggeredByToParentDeleteMany { - var v workflowRunTriggeredByToParentDeleteMany +func (r workflowRunTriggeredByToScheduledFindMany) Delete() workflowRunTriggeredByToScheduledDeleteMany { + var v workflowRunTriggeredByToScheduledDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -319847,17 +344754,17 @@ func (r workflowRunTriggeredByToParentFindMany) Delete() workflowRunTriggeredByT return v } -type workflowRunTriggeredByToParentDeleteMany struct { +type workflowRunTriggeredByToScheduledDeleteMany struct { query builder.Query } -func (r workflowRunTriggeredByToParentDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByToScheduledDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToParentDeleteMany) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByToScheduledDeleteMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToParentDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByToScheduledDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -319865,30 +344772,52 @@ func (r workflowRunTriggeredByToParentDeleteMany) Exec(ctx context.Context) (*Ba return &v, nil } -func (r workflowRunTriggeredByToParentDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { +func (r workflowRunTriggeredByToScheduledDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToEventFindUnique struct { +type workflowRunTriggeredByFindUnique struct { query builder.Query } -func (r workflowRunTriggeredByToEventFindUnique) getQuery() builder.Query { +func (r workflowRunTriggeredByFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToEventFindUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToEventFindUnique) with() {} -func (r workflowRunTriggeredByToEventFindUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToEventFindUnique) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByFindUnique) with() {} +func (r workflowRunTriggeredByFindUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByFindUnique) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToEventFindUnique) With(params ...EventRelationWith) workflowRunTriggeredByToEventFindUnique { +func (r workflowRunTriggeredByActions) FindUnique( + params WorkflowRunTriggeredByEqualsUniqueWhereParam, +) workflowRunTriggeredByFindUnique { + var v workflowRunTriggeredByFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkflowRunTriggeredBy" + v.query.Outputs = workflowRunTriggeredByOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowRunTriggeredByFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunTriggeredByFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -319901,7 +344830,7 @@ func (r workflowRunTriggeredByToEventFindUnique) With(params ...EventRelationWit return r } -func (r workflowRunTriggeredByToEventFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindUnique { +func (r workflowRunTriggeredByFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindUnique { var outputs []builder.Output for _, param := range params { @@ -319915,7 +344844,7 @@ func (r workflowRunTriggeredByToEventFindUnique) Select(params ...workflowRunTri return r } -func (r workflowRunTriggeredByToEventFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindUnique { +func (r workflowRunTriggeredByFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindUnique { var outputs []builder.Output var raw []string @@ -319934,7 +344863,7 @@ func (r workflowRunTriggeredByToEventFindUnique) Omit(params ...workflowRunTrigg return r } -func (r workflowRunTriggeredByToEventFindUnique) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByFindUnique) Exec(ctx context.Context) ( *WorkflowRunTriggeredByModel, error, ) { @@ -319950,7 +344879,7 @@ func (r workflowRunTriggeredByToEventFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToEventFindUnique) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByFindUnique) ExecInner(ctx context.Context) ( *InnerWorkflowRunTriggeredBy, error, ) { @@ -319966,12 +344895,12 @@ func (r workflowRunTriggeredByToEventFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r workflowRunTriggeredByToEventFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToEventUpdateUnique { +func (r workflowRunTriggeredByFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "WorkflowRunTriggeredBy" - var v workflowRunTriggeredByToEventUpdateUnique + var v workflowRunTriggeredByUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -320000,17 +344929,17 @@ func (r workflowRunTriggeredByToEventFindUnique) Update(params ...WorkflowRunTri return v } -type workflowRunTriggeredByToEventUpdateUnique struct { +type workflowRunTriggeredByUpdateUnique struct { query builder.Query } -func (r workflowRunTriggeredByToEventUpdateUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToEventUpdateUnique) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByUpdateUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToEventUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { +func (r workflowRunTriggeredByUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -320018,15 +344947,15 @@ func (r workflowRunTriggeredByToEventUpdateUnique) Exec(ctx context.Context) (*W return &v, nil } -func (r workflowRunTriggeredByToEventUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { +func (r workflowRunTriggeredByUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToEventFindUnique) Delete() workflowRunTriggeredByToEventDeleteUnique { - var v workflowRunTriggeredByToEventDeleteUnique +func (r workflowRunTriggeredByFindUnique) Delete() workflowRunTriggeredByDeleteUnique { + var v workflowRunTriggeredByDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -320035,17 +344964,17 @@ func (r workflowRunTriggeredByToEventFindUnique) Delete() workflowRunTriggeredBy return v } -type workflowRunTriggeredByToEventDeleteUnique struct { +type workflowRunTriggeredByDeleteUnique struct { query builder.Query } -func (r workflowRunTriggeredByToEventDeleteUnique) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToEventDeleteUnique) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByDeleteUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToEventDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { +func (r workflowRunTriggeredByDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { var v WorkflowRunTriggeredByModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -320053,30 +344982,67 @@ func (r workflowRunTriggeredByToEventDeleteUnique) Exec(ctx context.Context) (*W return &v, nil } -func (r workflowRunTriggeredByToEventDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { +func (r workflowRunTriggeredByDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { v := newWorkflowRunTriggeredByUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToEventFindFirst struct { +type workflowRunTriggeredByFindFirst struct { query builder.Query } -func (r workflowRunTriggeredByToEventFindFirst) getQuery() builder.Query { +func (r workflowRunTriggeredByFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToEventFindFirst) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToEventFindFirst) with() {} -func (r workflowRunTriggeredByToEventFindFirst) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToEventFindFirst) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByFindFirst) with() {} +func (r workflowRunTriggeredByFindFirst) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByFindFirst) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToEventFindFirst) With(params ...EventRelationWith) workflowRunTriggeredByToEventFindFirst { +func (r workflowRunTriggeredByActions) FindFirst( + params ...WorkflowRunTriggeredByWhereParam, +) workflowRunTriggeredByFindFirst { + var v workflowRunTriggeredByFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkflowRunTriggeredBy" + v.query.Outputs = workflowRunTriggeredByOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowRunTriggeredByFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunTriggeredByFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -320089,7 +345055,7 @@ func (r workflowRunTriggeredByToEventFindFirst) With(params ...EventRelationWith return r } -func (r workflowRunTriggeredByToEventFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindFirst { +func (r workflowRunTriggeredByFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindFirst { var outputs []builder.Output for _, param := range params { @@ -320103,7 +345069,7 @@ func (r workflowRunTriggeredByToEventFindFirst) Select(params ...workflowRunTrig return r } -func (r workflowRunTriggeredByToEventFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindFirst { +func (r workflowRunTriggeredByFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindFirst { var outputs []builder.Output var raw []string @@ -320122,7 +345088,7 @@ func (r workflowRunTriggeredByToEventFindFirst) Omit(params ...workflowRunTrigge return r } -func (r workflowRunTriggeredByToEventFindFirst) OrderBy(params ...EventOrderByParam) workflowRunTriggeredByToEventFindFirst { +func (r workflowRunTriggeredByFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowRunTriggeredByFindFirst { var fields []builder.Field for _, param := range params { @@ -320142,7 +345108,7 @@ func (r workflowRunTriggeredByToEventFindFirst) OrderBy(params ...EventOrderByPa return r } -func (r workflowRunTriggeredByToEventFindFirst) Skip(count int) workflowRunTriggeredByToEventFindFirst { +func (r workflowRunTriggeredByFindFirst) Skip(count int) workflowRunTriggeredByFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -320150,7 +345116,7 @@ func (r workflowRunTriggeredByToEventFindFirst) Skip(count int) workflowRunTrigg return r } -func (r workflowRunTriggeredByToEventFindFirst) Take(count int) workflowRunTriggeredByToEventFindFirst { +func (r workflowRunTriggeredByFindFirst) Take(count int) workflowRunTriggeredByFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -320158,7 +345124,7 @@ func (r workflowRunTriggeredByToEventFindFirst) Take(count int) workflowRunTrigg return r } -func (r workflowRunTriggeredByToEventFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToEventFindFirst { +func (r workflowRunTriggeredByFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -320166,7 +345132,7 @@ func (r workflowRunTriggeredByToEventFindFirst) Cursor(cursor WorkflowRunTrigger return r } -func (r workflowRunTriggeredByToEventFindFirst) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByFindFirst) Exec(ctx context.Context) ( *WorkflowRunTriggeredByModel, error, ) { @@ -320182,7 +345148,7 @@ func (r workflowRunTriggeredByToEventFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToEventFindFirst) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByFindFirst) ExecInner(ctx context.Context) ( *InnerWorkflowRunTriggeredBy, error, ) { @@ -320198,23 +345164,60 @@ func (r workflowRunTriggeredByToEventFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunTriggeredByToEventFindMany struct { +type workflowRunTriggeredByFindMany struct { query builder.Query } -func (r workflowRunTriggeredByToEventFindMany) getQuery() builder.Query { +func (r workflowRunTriggeredByFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToEventFindMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToEventFindMany) with() {} -func (r workflowRunTriggeredByToEventFindMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToEventFindMany) workflowRunTriggeredByRelation() {} +func (r workflowRunTriggeredByFindMany) with() {} +func (r workflowRunTriggeredByFindMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByFindMany) workflowRunTriggeredByRelation() {} -func (r workflowRunTriggeredByToEventFindMany) With(params ...EventRelationWith) workflowRunTriggeredByToEventFindMany { +func (r workflowRunTriggeredByActions) FindMany( + params ...WorkflowRunTriggeredByWhereParam, +) workflowRunTriggeredByFindMany { + var v workflowRunTriggeredByFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkflowRunTriggeredBy" + v.query.Outputs = workflowRunTriggeredByOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workflowRunTriggeredByFindMany) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunTriggeredByFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -320227,7 +345230,7 @@ func (r workflowRunTriggeredByToEventFindMany) With(params ...EventRelationWith) return r } -func (r workflowRunTriggeredByToEventFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindMany { +func (r workflowRunTriggeredByFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindMany { var outputs []builder.Output for _, param := range params { @@ -320241,7 +345244,7 @@ func (r workflowRunTriggeredByToEventFindMany) Select(params ...workflowRunTrigg return r } -func (r workflowRunTriggeredByToEventFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToEventFindMany { +func (r workflowRunTriggeredByFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindMany { var outputs []builder.Output var raw []string @@ -320260,7 +345263,7 @@ func (r workflowRunTriggeredByToEventFindMany) Omit(params ...workflowRunTrigger return r } -func (r workflowRunTriggeredByToEventFindMany) OrderBy(params ...EventOrderByParam) workflowRunTriggeredByToEventFindMany { +func (r workflowRunTriggeredByFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowRunTriggeredByFindMany { var fields []builder.Field for _, param := range params { @@ -320280,7 +345283,7 @@ func (r workflowRunTriggeredByToEventFindMany) OrderBy(params ...EventOrderByPar return r } -func (r workflowRunTriggeredByToEventFindMany) Skip(count int) workflowRunTriggeredByToEventFindMany { +func (r workflowRunTriggeredByFindMany) Skip(count int) workflowRunTriggeredByFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -320288,7 +345291,7 @@ func (r workflowRunTriggeredByToEventFindMany) Skip(count int) workflowRunTrigge return r } -func (r workflowRunTriggeredByToEventFindMany) Take(count int) workflowRunTriggeredByToEventFindMany { +func (r workflowRunTriggeredByFindMany) Take(count int) workflowRunTriggeredByFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -320296,7 +345299,7 @@ func (r workflowRunTriggeredByToEventFindMany) Take(count int) workflowRunTrigge return r } -func (r workflowRunTriggeredByToEventFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToEventFindMany { +func (r workflowRunTriggeredByFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -320304,7 +345307,7 @@ func (r workflowRunTriggeredByToEventFindMany) Cursor(cursor WorkflowRunTriggere return r } -func (r workflowRunTriggeredByToEventFindMany) Exec(ctx context.Context) ( +func (r workflowRunTriggeredByFindMany) Exec(ctx context.Context) ( []WorkflowRunTriggeredByModel, error, ) { @@ -320316,7 +345319,7 @@ func (r workflowRunTriggeredByToEventFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToEventFindMany) ExecInner(ctx context.Context) ( +func (r workflowRunTriggeredByFindMany) ExecInner(ctx context.Context) ( []InnerWorkflowRunTriggeredBy, error, ) { @@ -320328,14 +345331,14 @@ func (r workflowRunTriggeredByToEventFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToEventFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToEventUpdateMany { +func (r workflowRunTriggeredByFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "WorkflowRunTriggeredBy" r.query.Outputs = countOutput - var v workflowRunTriggeredByToEventUpdateMany + var v workflowRunTriggeredByUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -320364,17 +345367,17 @@ func (r workflowRunTriggeredByToEventFindMany) Update(params ...WorkflowRunTrigg return v } -type workflowRunTriggeredByToEventUpdateMany struct { +type workflowRunTriggeredByUpdateMany struct { query builder.Query } -func (r workflowRunTriggeredByToEventUpdateMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToEventUpdateMany) workflowRunTriggeredByModel() {} +func (r workflowRunTriggeredByUpdateMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToEventUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -320382,15 +345385,15 @@ func (r workflowRunTriggeredByToEventUpdateMany) Exec(ctx context.Context) (*Bat return &v, nil } -func (r workflowRunTriggeredByToEventUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { +func (r workflowRunTriggeredByUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToEventFindMany) Delete() workflowRunTriggeredByToEventDeleteMany { - var v workflowRunTriggeredByToEventDeleteMany +func (r workflowRunTriggeredByFindMany) Delete() workflowRunTriggeredByDeleteMany { + var v workflowRunTriggeredByDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -320401,17 +345404,17 @@ func (r workflowRunTriggeredByToEventFindMany) Delete() workflowRunTriggeredByTo return v } -type workflowRunTriggeredByToEventDeleteMany struct { +type workflowRunTriggeredByDeleteMany struct { query builder.Query } -func (r workflowRunTriggeredByToEventDeleteMany) ExtractQuery() builder.Query { +func (r workflowRunTriggeredByDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToEventDeleteMany) workflowRunTriggeredByModel() {} +func (p workflowRunTriggeredByDeleteMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToEventDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workflowRunTriggeredByDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -320419,30 +345422,30 @@ func (r workflowRunTriggeredByToEventDeleteMany) Exec(ctx context.Context) (*Bat return &v, nil } -func (r workflowRunTriggeredByToEventDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { +func (r workflowRunTriggeredByDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { v := newWorkflowRunTriggeredByManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToCronFindUnique struct { +type jobRunToTenantFindUnique struct { query builder.Query } -func (r workflowRunTriggeredByToCronFindUnique) getQuery() builder.Query { +func (r jobRunToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToCronFindUnique) ExtractQuery() builder.Query { +func (r jobRunToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToCronFindUnique) with() {} -func (r workflowRunTriggeredByToCronFindUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToCronFindUnique) workflowRunTriggeredByRelation() {} +func (r jobRunToTenantFindUnique) with() {} +func (r jobRunToTenantFindUnique) jobRunModel() {} +func (r jobRunToTenantFindUnique) jobRunRelation() {} -func (r workflowRunTriggeredByToCronFindUnique) With(params ...WorkflowTriggerCronRefRelationWith) workflowRunTriggeredByToCronFindUnique { +func (r jobRunToTenantFindUnique) With(params ...TenantRelationWith) jobRunToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -320455,7 +345458,7 @@ func (r workflowRunTriggeredByToCronFindUnique) With(params ...WorkflowTriggerCr return r } -func (r workflowRunTriggeredByToCronFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindUnique { +func (r jobRunToTenantFindUnique) Select(params ...jobRunPrismaFields) jobRunToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -320469,7 +345472,7 @@ func (r workflowRunTriggeredByToCronFindUnique) Select(params ...workflowRunTrig return r } -func (r workflowRunTriggeredByToCronFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindUnique { +func (r jobRunToTenantFindUnique) Omit(params ...jobRunPrismaFields) jobRunToTenantFindUnique { var outputs []builder.Output var raw []string @@ -320477,7 +345480,7 @@ func (r workflowRunTriggeredByToCronFindUnique) Omit(params ...workflowRunTrigge raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -320488,11 +345491,11 @@ func (r workflowRunTriggeredByToCronFindUnique) Omit(params ...workflowRunTrigge return r } -func (r workflowRunTriggeredByToCronFindUnique) Exec(ctx context.Context) ( - *WorkflowRunTriggeredByModel, +func (r jobRunToTenantFindUnique) Exec(ctx context.Context) ( + *JobRunModel, error, ) { - var v *WorkflowRunTriggeredByModel + var v *JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -320504,11 +345507,11 @@ func (r workflowRunTriggeredByToCronFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToCronFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowRunTriggeredBy, +func (r jobRunToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerJobRun, error, ) { - var v *InnerWorkflowRunTriggeredBy + var v *InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -320520,12 +345523,12 @@ func (r workflowRunTriggeredByToCronFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToCronFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToCronUpdateUnique { +func (r jobRunToTenantFindUnique) Update(params ...JobRunSetParam) jobRunToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowRunTriggeredBy" + r.query.Model = "JobRun" - var v workflowRunTriggeredByToCronUpdateUnique + var v jobRunToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -320554,83 +345557,83 @@ func (r workflowRunTriggeredByToCronFindUnique) Update(params ...WorkflowRunTrig return v } -type workflowRunTriggeredByToCronUpdateUnique struct { +type jobRunToTenantUpdateUnique struct { query builder.Query } -func (r workflowRunTriggeredByToCronUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToCronUpdateUnique) workflowRunTriggeredByModel() {} +func (r jobRunToTenantUpdateUnique) jobRunModel() {} -func (r workflowRunTriggeredByToCronUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { - var v WorkflowRunTriggeredByModel +func (r jobRunToTenantUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { + var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunTriggeredByToCronUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { - v := newWorkflowRunTriggeredByUniqueTxResult() +func (r jobRunToTenantUpdateUnique) Tx() JobRunUniqueTxResult { + v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToCronFindUnique) Delete() workflowRunTriggeredByToCronDeleteUnique { - var v workflowRunTriggeredByToCronDeleteUnique +func (r jobRunToTenantFindUnique) Delete() jobRunToTenantDeleteUnique { + var v jobRunToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowRunTriggeredBy" + v.query.Model = "JobRun" return v } -type workflowRunTriggeredByToCronDeleteUnique struct { +type jobRunToTenantDeleteUnique struct { query builder.Query } -func (r workflowRunTriggeredByToCronDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToCronDeleteUnique) workflowRunTriggeredByModel() {} +func (p jobRunToTenantDeleteUnique) jobRunModel() {} -func (r workflowRunTriggeredByToCronDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { - var v WorkflowRunTriggeredByModel +func (r jobRunToTenantDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { + var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunTriggeredByToCronDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { - v := newWorkflowRunTriggeredByUniqueTxResult() +func (r jobRunToTenantDeleteUnique) Tx() JobRunUniqueTxResult { + v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToCronFindFirst struct { +type jobRunToTenantFindFirst struct { query builder.Query } -func (r workflowRunTriggeredByToCronFindFirst) getQuery() builder.Query { +func (r jobRunToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToCronFindFirst) ExtractQuery() builder.Query { +func (r jobRunToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToCronFindFirst) with() {} -func (r workflowRunTriggeredByToCronFindFirst) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToCronFindFirst) workflowRunTriggeredByRelation() {} +func (r jobRunToTenantFindFirst) with() {} +func (r jobRunToTenantFindFirst) jobRunModel() {} +func (r jobRunToTenantFindFirst) jobRunRelation() {} -func (r workflowRunTriggeredByToCronFindFirst) With(params ...WorkflowTriggerCronRefRelationWith) workflowRunTriggeredByToCronFindFirst { +func (r jobRunToTenantFindFirst) With(params ...TenantRelationWith) jobRunToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -320643,7 +345646,7 @@ func (r workflowRunTriggeredByToCronFindFirst) With(params ...WorkflowTriggerCro return r } -func (r workflowRunTriggeredByToCronFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindFirst { +func (r jobRunToTenantFindFirst) Select(params ...jobRunPrismaFields) jobRunToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -320657,7 +345660,7 @@ func (r workflowRunTriggeredByToCronFindFirst) Select(params ...workflowRunTrigg return r } -func (r workflowRunTriggeredByToCronFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindFirst { +func (r jobRunToTenantFindFirst) Omit(params ...jobRunPrismaFields) jobRunToTenantFindFirst { var outputs []builder.Output var raw []string @@ -320665,7 +345668,7 @@ func (r workflowRunTriggeredByToCronFindFirst) Omit(params ...workflowRunTrigger raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -320676,7 +345679,7 @@ func (r workflowRunTriggeredByToCronFindFirst) Omit(params ...workflowRunTrigger return r } -func (r workflowRunTriggeredByToCronFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowRunTriggeredByToCronFindFirst { +func (r jobRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) jobRunToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -320696,7 +345699,7 @@ func (r workflowRunTriggeredByToCronFindFirst) OrderBy(params ...WorkflowTrigger return r } -func (r workflowRunTriggeredByToCronFindFirst) Skip(count int) workflowRunTriggeredByToCronFindFirst { +func (r jobRunToTenantFindFirst) Skip(count int) jobRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -320704,7 +345707,7 @@ func (r workflowRunTriggeredByToCronFindFirst) Skip(count int) workflowRunTrigge return r } -func (r workflowRunTriggeredByToCronFindFirst) Take(count int) workflowRunTriggeredByToCronFindFirst { +func (r jobRunToTenantFindFirst) Take(count int) jobRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -320712,7 +345715,7 @@ func (r workflowRunTriggeredByToCronFindFirst) Take(count int) workflowRunTrigge return r } -func (r workflowRunTriggeredByToCronFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToCronFindFirst { +func (r jobRunToTenantFindFirst) Cursor(cursor JobRunCursorParam) jobRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -320720,11 +345723,11 @@ func (r workflowRunTriggeredByToCronFindFirst) Cursor(cursor WorkflowRunTriggere return r } -func (r workflowRunTriggeredByToCronFindFirst) Exec(ctx context.Context) ( - *WorkflowRunTriggeredByModel, +func (r jobRunToTenantFindFirst) Exec(ctx context.Context) ( + *JobRunModel, error, ) { - var v *WorkflowRunTriggeredByModel + var v *JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -320736,11 +345739,11 @@ func (r workflowRunTriggeredByToCronFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToCronFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowRunTriggeredBy, +func (r jobRunToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerJobRun, error, ) { - var v *InnerWorkflowRunTriggeredBy + var v *InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -320752,23 +345755,23 @@ func (r workflowRunTriggeredByToCronFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunTriggeredByToCronFindMany struct { +type jobRunToTenantFindMany struct { query builder.Query } -func (r workflowRunTriggeredByToCronFindMany) getQuery() builder.Query { +func (r jobRunToTenantFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToCronFindMany) ExtractQuery() builder.Query { +func (r jobRunToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToCronFindMany) with() {} -func (r workflowRunTriggeredByToCronFindMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToCronFindMany) workflowRunTriggeredByRelation() {} +func (r jobRunToTenantFindMany) with() {} +func (r jobRunToTenantFindMany) jobRunModel() {} +func (r jobRunToTenantFindMany) jobRunRelation() {} -func (r workflowRunTriggeredByToCronFindMany) With(params ...WorkflowTriggerCronRefRelationWith) workflowRunTriggeredByToCronFindMany { +func (r jobRunToTenantFindMany) With(params ...TenantRelationWith) jobRunToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -320781,7 +345784,7 @@ func (r workflowRunTriggeredByToCronFindMany) With(params ...WorkflowTriggerCron return r } -func (r workflowRunTriggeredByToCronFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindMany { +func (r jobRunToTenantFindMany) Select(params ...jobRunPrismaFields) jobRunToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -320795,7 +345798,7 @@ func (r workflowRunTriggeredByToCronFindMany) Select(params ...workflowRunTrigge return r } -func (r workflowRunTriggeredByToCronFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToCronFindMany { +func (r jobRunToTenantFindMany) Omit(params ...jobRunPrismaFields) jobRunToTenantFindMany { var outputs []builder.Output var raw []string @@ -320803,7 +345806,7 @@ func (r workflowRunTriggeredByToCronFindMany) Omit(params ...workflowRunTriggere raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -320814,7 +345817,7 @@ func (r workflowRunTriggeredByToCronFindMany) Omit(params ...workflowRunTriggere return r } -func (r workflowRunTriggeredByToCronFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) workflowRunTriggeredByToCronFindMany { +func (r jobRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) jobRunToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -320834,7 +345837,7 @@ func (r workflowRunTriggeredByToCronFindMany) OrderBy(params ...WorkflowTriggerC return r } -func (r workflowRunTriggeredByToCronFindMany) Skip(count int) workflowRunTriggeredByToCronFindMany { +func (r jobRunToTenantFindMany) Skip(count int) jobRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -320842,7 +345845,7 @@ func (r workflowRunTriggeredByToCronFindMany) Skip(count int) workflowRunTrigger return r } -func (r workflowRunTriggeredByToCronFindMany) Take(count int) workflowRunTriggeredByToCronFindMany { +func (r jobRunToTenantFindMany) Take(count int) jobRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -320850,7 +345853,7 @@ func (r workflowRunTriggeredByToCronFindMany) Take(count int) workflowRunTrigger return r } -func (r workflowRunTriggeredByToCronFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToCronFindMany { +func (r jobRunToTenantFindMany) Cursor(cursor JobRunCursorParam) jobRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -320858,11 +345861,11 @@ func (r workflowRunTriggeredByToCronFindMany) Cursor(cursor WorkflowRunTriggered return r } -func (r workflowRunTriggeredByToCronFindMany) Exec(ctx context.Context) ( - []WorkflowRunTriggeredByModel, +func (r jobRunToTenantFindMany) Exec(ctx context.Context) ( + []JobRunModel, error, ) { - var v []WorkflowRunTriggeredByModel + var v []JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -320870,11 +345873,11 @@ func (r workflowRunTriggeredByToCronFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToCronFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowRunTriggeredBy, +func (r jobRunToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerJobRun, error, ) { - var v []InnerWorkflowRunTriggeredBy + var v []InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -320882,14 +345885,14 @@ func (r workflowRunTriggeredByToCronFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToCronFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToCronUpdateMany { +func (r jobRunToTenantFindMany) Update(params ...JobRunSetParam) jobRunToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowRunTriggeredBy" + r.query.Model = "JobRun" r.query.Outputs = countOutput - var v workflowRunTriggeredByToCronUpdateMany + var v jobRunToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -320918,17 +345921,17 @@ func (r workflowRunTriggeredByToCronFindMany) Update(params ...WorkflowRunTrigge return v } -type workflowRunTriggeredByToCronUpdateMany struct { +type jobRunToTenantUpdateMany struct { query builder.Query } -func (r workflowRunTriggeredByToCronUpdateMany) ExtractQuery() builder.Query { +func (r jobRunToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToCronUpdateMany) workflowRunTriggeredByModel() {} +func (r jobRunToTenantUpdateMany) jobRunModel() {} -func (r workflowRunTriggeredByToCronUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -320936,36 +345939,36 @@ func (r workflowRunTriggeredByToCronUpdateMany) Exec(ctx context.Context) (*Batc return &v, nil } -func (r workflowRunTriggeredByToCronUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { - v := newWorkflowRunTriggeredByManyTxResult() +func (r jobRunToTenantUpdateMany) Tx() JobRunManyTxResult { + v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToCronFindMany) Delete() workflowRunTriggeredByToCronDeleteMany { - var v workflowRunTriggeredByToCronDeleteMany +func (r jobRunToTenantFindMany) Delete() jobRunToTenantDeleteMany { + var v jobRunToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowRunTriggeredBy" + v.query.Model = "JobRun" v.query.Outputs = countOutput return v } -type workflowRunTriggeredByToCronDeleteMany struct { +type jobRunToTenantDeleteMany struct { query builder.Query } -func (r workflowRunTriggeredByToCronDeleteMany) ExtractQuery() builder.Query { +func (r jobRunToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToCronDeleteMany) workflowRunTriggeredByModel() {} +func (p jobRunToTenantDeleteMany) jobRunModel() {} -func (r workflowRunTriggeredByToCronDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -320973,30 +345976,30 @@ func (r workflowRunTriggeredByToCronDeleteMany) Exec(ctx context.Context) (*Batc return &v, nil } -func (r workflowRunTriggeredByToCronDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { - v := newWorkflowRunTriggeredByManyTxResult() +func (r jobRunToTenantDeleteMany) Tx() JobRunManyTxResult { + v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToScheduledFindUnique struct { +type jobRunToWorkflowRunFindUnique struct { query builder.Query } -func (r workflowRunTriggeredByToScheduledFindUnique) getQuery() builder.Query { +func (r jobRunToWorkflowRunFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToScheduledFindUnique) ExtractQuery() builder.Query { +func (r jobRunToWorkflowRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToScheduledFindUnique) with() {} -func (r workflowRunTriggeredByToScheduledFindUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToScheduledFindUnique) workflowRunTriggeredByRelation() {} +func (r jobRunToWorkflowRunFindUnique) with() {} +func (r jobRunToWorkflowRunFindUnique) jobRunModel() {} +func (r jobRunToWorkflowRunFindUnique) jobRunRelation() {} -func (r workflowRunTriggeredByToScheduledFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunTriggeredByToScheduledFindUnique { +func (r jobRunToWorkflowRunFindUnique) With(params ...WorkflowRunRelationWith) jobRunToWorkflowRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -321009,7 +346012,7 @@ func (r workflowRunTriggeredByToScheduledFindUnique) With(params ...WorkflowTrig return r } -func (r workflowRunTriggeredByToScheduledFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindUnique { +func (r jobRunToWorkflowRunFindUnique) Select(params ...jobRunPrismaFields) jobRunToWorkflowRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -321023,7 +346026,7 @@ func (r workflowRunTriggeredByToScheduledFindUnique) Select(params ...workflowRu return r } -func (r workflowRunTriggeredByToScheduledFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindUnique { +func (r jobRunToWorkflowRunFindUnique) Omit(params ...jobRunPrismaFields) jobRunToWorkflowRunFindUnique { var outputs []builder.Output var raw []string @@ -321031,7 +346034,7 @@ func (r workflowRunTriggeredByToScheduledFindUnique) Omit(params ...workflowRunT raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -321042,11 +346045,11 @@ func (r workflowRunTriggeredByToScheduledFindUnique) Omit(params ...workflowRunT return r } -func (r workflowRunTriggeredByToScheduledFindUnique) Exec(ctx context.Context) ( - *WorkflowRunTriggeredByModel, +func (r jobRunToWorkflowRunFindUnique) Exec(ctx context.Context) ( + *JobRunModel, error, ) { - var v *WorkflowRunTriggeredByModel + var v *JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321058,11 +346061,11 @@ func (r workflowRunTriggeredByToScheduledFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToScheduledFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowRunTriggeredBy, +func (r jobRunToWorkflowRunFindUnique) ExecInner(ctx context.Context) ( + *InnerJobRun, error, ) { - var v *InnerWorkflowRunTriggeredBy + var v *InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321074,12 +346077,12 @@ func (r workflowRunTriggeredByToScheduledFindUnique) ExecInner(ctx context.Conte return v, nil } -func (r workflowRunTriggeredByToScheduledFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToScheduledUpdateUnique { +func (r jobRunToWorkflowRunFindUnique) Update(params ...JobRunSetParam) jobRunToWorkflowRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowRunTriggeredBy" + r.query.Model = "JobRun" - var v workflowRunTriggeredByToScheduledUpdateUnique + var v jobRunToWorkflowRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -321108,83 +346111,83 @@ func (r workflowRunTriggeredByToScheduledFindUnique) Update(params ...WorkflowRu return v } -type workflowRunTriggeredByToScheduledUpdateUnique struct { +type jobRunToWorkflowRunUpdateUnique struct { query builder.Query } -func (r workflowRunTriggeredByToScheduledUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunToWorkflowRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToScheduledUpdateUnique) workflowRunTriggeredByModel() {} +func (r jobRunToWorkflowRunUpdateUnique) jobRunModel() {} -func (r workflowRunTriggeredByToScheduledUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { - var v WorkflowRunTriggeredByModel +func (r jobRunToWorkflowRunUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { + var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunTriggeredByToScheduledUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { - v := newWorkflowRunTriggeredByUniqueTxResult() +func (r jobRunToWorkflowRunUpdateUnique) Tx() JobRunUniqueTxResult { + v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToScheduledFindUnique) Delete() workflowRunTriggeredByToScheduledDeleteUnique { - var v workflowRunTriggeredByToScheduledDeleteUnique +func (r jobRunToWorkflowRunFindUnique) Delete() jobRunToWorkflowRunDeleteUnique { + var v jobRunToWorkflowRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowRunTriggeredBy" + v.query.Model = "JobRun" return v } -type workflowRunTriggeredByToScheduledDeleteUnique struct { +type jobRunToWorkflowRunDeleteUnique struct { query builder.Query } -func (r workflowRunTriggeredByToScheduledDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunToWorkflowRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToScheduledDeleteUnique) workflowRunTriggeredByModel() {} +func (p jobRunToWorkflowRunDeleteUnique) jobRunModel() {} -func (r workflowRunTriggeredByToScheduledDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { - var v WorkflowRunTriggeredByModel +func (r jobRunToWorkflowRunDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { + var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunTriggeredByToScheduledDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { - v := newWorkflowRunTriggeredByUniqueTxResult() +func (r jobRunToWorkflowRunDeleteUnique) Tx() JobRunUniqueTxResult { + v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByToScheduledFindFirst struct { +type jobRunToWorkflowRunFindFirst struct { query builder.Query } -func (r workflowRunTriggeredByToScheduledFindFirst) getQuery() builder.Query { +func (r jobRunToWorkflowRunFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToScheduledFindFirst) ExtractQuery() builder.Query { +func (r jobRunToWorkflowRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToScheduledFindFirst) with() {} -func (r workflowRunTriggeredByToScheduledFindFirst) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToScheduledFindFirst) workflowRunTriggeredByRelation() {} +func (r jobRunToWorkflowRunFindFirst) with() {} +func (r jobRunToWorkflowRunFindFirst) jobRunModel() {} +func (r jobRunToWorkflowRunFindFirst) jobRunRelation() {} -func (r workflowRunTriggeredByToScheduledFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunTriggeredByToScheduledFindFirst { +func (r jobRunToWorkflowRunFindFirst) With(params ...WorkflowRunRelationWith) jobRunToWorkflowRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -321197,7 +346200,7 @@ func (r workflowRunTriggeredByToScheduledFindFirst) With(params ...WorkflowTrigg return r } -func (r workflowRunTriggeredByToScheduledFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindFirst { +func (r jobRunToWorkflowRunFindFirst) Select(params ...jobRunPrismaFields) jobRunToWorkflowRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -321211,7 +346214,7 @@ func (r workflowRunTriggeredByToScheduledFindFirst) Select(params ...workflowRun return r } -func (r workflowRunTriggeredByToScheduledFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindFirst { +func (r jobRunToWorkflowRunFindFirst) Omit(params ...jobRunPrismaFields) jobRunToWorkflowRunFindFirst { var outputs []builder.Output var raw []string @@ -321219,7 +346222,7 @@ func (r workflowRunTriggeredByToScheduledFindFirst) Omit(params ...workflowRunTr raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -321230,7 +346233,7 @@ func (r workflowRunTriggeredByToScheduledFindFirst) Omit(params ...workflowRunTr return r } -func (r workflowRunTriggeredByToScheduledFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowRunTriggeredByToScheduledFindFirst { +func (r jobRunToWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) jobRunToWorkflowRunFindFirst { var fields []builder.Field for _, param := range params { @@ -321250,7 +346253,7 @@ func (r workflowRunTriggeredByToScheduledFindFirst) OrderBy(params ...WorkflowTr return r } -func (r workflowRunTriggeredByToScheduledFindFirst) Skip(count int) workflowRunTriggeredByToScheduledFindFirst { +func (r jobRunToWorkflowRunFindFirst) Skip(count int) jobRunToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -321258,7 +346261,7 @@ func (r workflowRunTriggeredByToScheduledFindFirst) Skip(count int) workflowRunT return r } -func (r workflowRunTriggeredByToScheduledFindFirst) Take(count int) workflowRunTriggeredByToScheduledFindFirst { +func (r jobRunToWorkflowRunFindFirst) Take(count int) jobRunToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -321266,7 +346269,7 @@ func (r workflowRunTriggeredByToScheduledFindFirst) Take(count int) workflowRunT return r } -func (r workflowRunTriggeredByToScheduledFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToScheduledFindFirst { +func (r jobRunToWorkflowRunFindFirst) Cursor(cursor JobRunCursorParam) jobRunToWorkflowRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -321274,11 +346277,11 @@ func (r workflowRunTriggeredByToScheduledFindFirst) Cursor(cursor WorkflowRunTri return r } -func (r workflowRunTriggeredByToScheduledFindFirst) Exec(ctx context.Context) ( - *WorkflowRunTriggeredByModel, +func (r jobRunToWorkflowRunFindFirst) Exec(ctx context.Context) ( + *JobRunModel, error, ) { - var v *WorkflowRunTriggeredByModel + var v *JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321290,11 +346293,11 @@ func (r workflowRunTriggeredByToScheduledFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToScheduledFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowRunTriggeredBy, +func (r jobRunToWorkflowRunFindFirst) ExecInner(ctx context.Context) ( + *InnerJobRun, error, ) { - var v *InnerWorkflowRunTriggeredBy + var v *InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321306,23 +346309,23 @@ func (r workflowRunTriggeredByToScheduledFindFirst) ExecInner(ctx context.Contex return v, nil } -type workflowRunTriggeredByToScheduledFindMany struct { +type jobRunToWorkflowRunFindMany struct { query builder.Query } -func (r workflowRunTriggeredByToScheduledFindMany) getQuery() builder.Query { +func (r jobRunToWorkflowRunFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToScheduledFindMany) ExtractQuery() builder.Query { +func (r jobRunToWorkflowRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToScheduledFindMany) with() {} -func (r workflowRunTriggeredByToScheduledFindMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByToScheduledFindMany) workflowRunTriggeredByRelation() {} +func (r jobRunToWorkflowRunFindMany) with() {} +func (r jobRunToWorkflowRunFindMany) jobRunModel() {} +func (r jobRunToWorkflowRunFindMany) jobRunRelation() {} -func (r workflowRunTriggeredByToScheduledFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) workflowRunTriggeredByToScheduledFindMany { +func (r jobRunToWorkflowRunFindMany) With(params ...WorkflowRunRelationWith) jobRunToWorkflowRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -321335,7 +346338,7 @@ func (r workflowRunTriggeredByToScheduledFindMany) With(params ...WorkflowTrigge return r } -func (r workflowRunTriggeredByToScheduledFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindMany { +func (r jobRunToWorkflowRunFindMany) Select(params ...jobRunPrismaFields) jobRunToWorkflowRunFindMany { var outputs []builder.Output for _, param := range params { @@ -321349,7 +346352,7 @@ func (r workflowRunTriggeredByToScheduledFindMany) Select(params ...workflowRunT return r } -func (r workflowRunTriggeredByToScheduledFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByToScheduledFindMany { +func (r jobRunToWorkflowRunFindMany) Omit(params ...jobRunPrismaFields) jobRunToWorkflowRunFindMany { var outputs []builder.Output var raw []string @@ -321357,7 +346360,7 @@ func (r workflowRunTriggeredByToScheduledFindMany) Omit(params ...workflowRunTri raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -321368,7 +346371,7 @@ func (r workflowRunTriggeredByToScheduledFindMany) Omit(params ...workflowRunTri return r } -func (r workflowRunTriggeredByToScheduledFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) workflowRunTriggeredByToScheduledFindMany { +func (r jobRunToWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) jobRunToWorkflowRunFindMany { var fields []builder.Field for _, param := range params { @@ -321388,7 +346391,7 @@ func (r workflowRunTriggeredByToScheduledFindMany) OrderBy(params ...WorkflowTri return r } -func (r workflowRunTriggeredByToScheduledFindMany) Skip(count int) workflowRunTriggeredByToScheduledFindMany { +func (r jobRunToWorkflowRunFindMany) Skip(count int) jobRunToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -321396,7 +346399,7 @@ func (r workflowRunTriggeredByToScheduledFindMany) Skip(count int) workflowRunTr return r } -func (r workflowRunTriggeredByToScheduledFindMany) Take(count int) workflowRunTriggeredByToScheduledFindMany { +func (r jobRunToWorkflowRunFindMany) Take(count int) jobRunToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -321404,7 +346407,7 @@ func (r workflowRunTriggeredByToScheduledFindMany) Take(count int) workflowRunTr return r } -func (r workflowRunTriggeredByToScheduledFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByToScheduledFindMany { +func (r jobRunToWorkflowRunFindMany) Cursor(cursor JobRunCursorParam) jobRunToWorkflowRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -321412,11 +346415,11 @@ func (r workflowRunTriggeredByToScheduledFindMany) Cursor(cursor WorkflowRunTrig return r } -func (r workflowRunTriggeredByToScheduledFindMany) Exec(ctx context.Context) ( - []WorkflowRunTriggeredByModel, +func (r jobRunToWorkflowRunFindMany) Exec(ctx context.Context) ( + []JobRunModel, error, ) { - var v []WorkflowRunTriggeredByModel + var v []JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321424,11 +346427,11 @@ func (r workflowRunTriggeredByToScheduledFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByToScheduledFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowRunTriggeredBy, +func (r jobRunToWorkflowRunFindMany) ExecInner(ctx context.Context) ( + []InnerJobRun, error, ) { - var v []InnerWorkflowRunTriggeredBy + var v []InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321436,14 +346439,14 @@ func (r workflowRunTriggeredByToScheduledFindMany) ExecInner(ctx context.Context return v, nil } -func (r workflowRunTriggeredByToScheduledFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByToScheduledUpdateMany { +func (r jobRunToWorkflowRunFindMany) Update(params ...JobRunSetParam) jobRunToWorkflowRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowRunTriggeredBy" + r.query.Model = "JobRun" r.query.Outputs = countOutput - var v workflowRunTriggeredByToScheduledUpdateMany + var v jobRunToWorkflowRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -321472,17 +346475,17 @@ func (r workflowRunTriggeredByToScheduledFindMany) Update(params ...WorkflowRunT return v } -type workflowRunTriggeredByToScheduledUpdateMany struct { +type jobRunToWorkflowRunUpdateMany struct { query builder.Query } -func (r workflowRunTriggeredByToScheduledUpdateMany) ExtractQuery() builder.Query { +func (r jobRunToWorkflowRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByToScheduledUpdateMany) workflowRunTriggeredByModel() {} +func (r jobRunToWorkflowRunUpdateMany) jobRunModel() {} -func (r workflowRunTriggeredByToScheduledUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToWorkflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -321490,36 +346493,36 @@ func (r workflowRunTriggeredByToScheduledUpdateMany) Exec(ctx context.Context) ( return &v, nil } -func (r workflowRunTriggeredByToScheduledUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { - v := newWorkflowRunTriggeredByManyTxResult() +func (r jobRunToWorkflowRunUpdateMany) Tx() JobRunManyTxResult { + v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByToScheduledFindMany) Delete() workflowRunTriggeredByToScheduledDeleteMany { - var v workflowRunTriggeredByToScheduledDeleteMany +func (r jobRunToWorkflowRunFindMany) Delete() jobRunToWorkflowRunDeleteMany { + var v jobRunToWorkflowRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowRunTriggeredBy" + v.query.Model = "JobRun" v.query.Outputs = countOutput return v } -type workflowRunTriggeredByToScheduledDeleteMany struct { +type jobRunToWorkflowRunDeleteMany struct { query builder.Query } -func (r workflowRunTriggeredByToScheduledDeleteMany) ExtractQuery() builder.Query { +func (r jobRunToWorkflowRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByToScheduledDeleteMany) workflowRunTriggeredByModel() {} +func (p jobRunToWorkflowRunDeleteMany) jobRunModel() {} -func (r workflowRunTriggeredByToScheduledDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToWorkflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -321527,52 +346530,30 @@ func (r workflowRunTriggeredByToScheduledDeleteMany) Exec(ctx context.Context) ( return &v, nil } -func (r workflowRunTriggeredByToScheduledDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { - v := newWorkflowRunTriggeredByManyTxResult() +func (r jobRunToWorkflowRunDeleteMany) Tx() JobRunManyTxResult { + v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByFindUnique struct { +type jobRunToJobFindUnique struct { query builder.Query } -func (r workflowRunTriggeredByFindUnique) getQuery() builder.Query { +func (r jobRunToJobFindUnique) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByFindUnique) ExtractQuery() builder.Query { +func (r jobRunToJobFindUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByFindUnique) with() {} -func (r workflowRunTriggeredByFindUnique) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByFindUnique) workflowRunTriggeredByRelation() {} - -func (r workflowRunTriggeredByActions) FindUnique( - params WorkflowRunTriggeredByEqualsUniqueWhereParam, -) workflowRunTriggeredByFindUnique { - var v workflowRunTriggeredByFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "WorkflowRunTriggeredBy" - v.query.Outputs = workflowRunTriggeredByOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r jobRunToJobFindUnique) with() {} +func (r jobRunToJobFindUnique) jobRunModel() {} +func (r jobRunToJobFindUnique) jobRunRelation() {} -func (r workflowRunTriggeredByFindUnique) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunTriggeredByFindUnique { +func (r jobRunToJobFindUnique) With(params ...JobRelationWith) jobRunToJobFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -321585,7 +346566,7 @@ func (r workflowRunTriggeredByFindUnique) With(params ...WorkflowRunTriggeredByR return r } -func (r workflowRunTriggeredByFindUnique) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindUnique { +func (r jobRunToJobFindUnique) Select(params ...jobRunPrismaFields) jobRunToJobFindUnique { var outputs []builder.Output for _, param := range params { @@ -321599,7 +346580,7 @@ func (r workflowRunTriggeredByFindUnique) Select(params ...workflowRunTriggeredB return r } -func (r workflowRunTriggeredByFindUnique) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindUnique { +func (r jobRunToJobFindUnique) Omit(params ...jobRunPrismaFields) jobRunToJobFindUnique { var outputs []builder.Output var raw []string @@ -321607,7 +346588,7 @@ func (r workflowRunTriggeredByFindUnique) Omit(params ...workflowRunTriggeredByP raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -321618,11 +346599,11 @@ func (r workflowRunTriggeredByFindUnique) Omit(params ...workflowRunTriggeredByP return r } -func (r workflowRunTriggeredByFindUnique) Exec(ctx context.Context) ( - *WorkflowRunTriggeredByModel, +func (r jobRunToJobFindUnique) Exec(ctx context.Context) ( + *JobRunModel, error, ) { - var v *WorkflowRunTriggeredByModel + var v *JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321634,11 +346615,11 @@ func (r workflowRunTriggeredByFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByFindUnique) ExecInner(ctx context.Context) ( - *InnerWorkflowRunTriggeredBy, +func (r jobRunToJobFindUnique) ExecInner(ctx context.Context) ( + *InnerJobRun, error, ) { - var v *InnerWorkflowRunTriggeredBy + var v *InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321650,12 +346631,12 @@ func (r workflowRunTriggeredByFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByFindUnique) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByUpdateUnique { +func (r jobRunToJobFindUnique) Update(params ...JobRunSetParam) jobRunToJobUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "WorkflowRunTriggeredBy" + r.query.Model = "JobRun" - var v workflowRunTriggeredByUpdateUnique + var v jobRunToJobUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -321684,120 +346665,83 @@ func (r workflowRunTriggeredByFindUnique) Update(params ...WorkflowRunTriggeredB return v } -type workflowRunTriggeredByUpdateUnique struct { +type jobRunToJobUpdateUnique struct { query builder.Query } -func (r workflowRunTriggeredByUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunToJobUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByUpdateUnique) workflowRunTriggeredByModel() {} +func (r jobRunToJobUpdateUnique) jobRunModel() {} -func (r workflowRunTriggeredByUpdateUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { - var v WorkflowRunTriggeredByModel +func (r jobRunToJobUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { + var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunTriggeredByUpdateUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { - v := newWorkflowRunTriggeredByUniqueTxResult() +func (r jobRunToJobUpdateUnique) Tx() JobRunUniqueTxResult { + v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByFindUnique) Delete() workflowRunTriggeredByDeleteUnique { - var v workflowRunTriggeredByDeleteUnique +func (r jobRunToJobFindUnique) Delete() jobRunToJobDeleteUnique { + var v jobRunToJobDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "WorkflowRunTriggeredBy" + v.query.Model = "JobRun" return v } -type workflowRunTriggeredByDeleteUnique struct { +type jobRunToJobDeleteUnique struct { query builder.Query } -func (r workflowRunTriggeredByDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunToJobDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByDeleteUnique) workflowRunTriggeredByModel() {} +func (p jobRunToJobDeleteUnique) jobRunModel() {} -func (r workflowRunTriggeredByDeleteUnique) Exec(ctx context.Context) (*WorkflowRunTriggeredByModel, error) { - var v WorkflowRunTriggeredByModel +func (r jobRunToJobDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { + var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r workflowRunTriggeredByDeleteUnique) Tx() WorkflowRunTriggeredByUniqueTxResult { - v := newWorkflowRunTriggeredByUniqueTxResult() +func (r jobRunToJobDeleteUnique) Tx() JobRunUniqueTxResult { + v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type workflowRunTriggeredByFindFirst struct { +type jobRunToJobFindFirst struct { query builder.Query } -func (r workflowRunTriggeredByFindFirst) getQuery() builder.Query { +func (r jobRunToJobFindFirst) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByFindFirst) ExtractQuery() builder.Query { +func (r jobRunToJobFindFirst) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByFindFirst) with() {} -func (r workflowRunTriggeredByFindFirst) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByFindFirst) workflowRunTriggeredByRelation() {} - -func (r workflowRunTriggeredByActions) FindFirst( - params ...WorkflowRunTriggeredByWhereParam, -) workflowRunTriggeredByFindFirst { - var v workflowRunTriggeredByFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "WorkflowRunTriggeredBy" - v.query.Outputs = workflowRunTriggeredByOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r jobRunToJobFindFirst) with() {} +func (r jobRunToJobFindFirst) jobRunModel() {} +func (r jobRunToJobFindFirst) jobRunRelation() {} -func (r workflowRunTriggeredByFindFirst) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunTriggeredByFindFirst { +func (r jobRunToJobFindFirst) With(params ...JobRelationWith) jobRunToJobFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -321810,7 +346754,7 @@ func (r workflowRunTriggeredByFindFirst) With(params ...WorkflowRunTriggeredByRe return r } -func (r workflowRunTriggeredByFindFirst) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindFirst { +func (r jobRunToJobFindFirst) Select(params ...jobRunPrismaFields) jobRunToJobFindFirst { var outputs []builder.Output for _, param := range params { @@ -321824,7 +346768,7 @@ func (r workflowRunTriggeredByFindFirst) Select(params ...workflowRunTriggeredBy return r } -func (r workflowRunTriggeredByFindFirst) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindFirst { +func (r jobRunToJobFindFirst) Omit(params ...jobRunPrismaFields) jobRunToJobFindFirst { var outputs []builder.Output var raw []string @@ -321832,7 +346776,7 @@ func (r workflowRunTriggeredByFindFirst) Omit(params ...workflowRunTriggeredByPr raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -321843,7 +346787,7 @@ func (r workflowRunTriggeredByFindFirst) Omit(params ...workflowRunTriggeredByPr return r } -func (r workflowRunTriggeredByFindFirst) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowRunTriggeredByFindFirst { +func (r jobRunToJobFindFirst) OrderBy(params ...JobOrderByParam) jobRunToJobFindFirst { var fields []builder.Field for _, param := range params { @@ -321863,7 +346807,7 @@ func (r workflowRunTriggeredByFindFirst) OrderBy(params ...WorkflowRunTriggeredB return r } -func (r workflowRunTriggeredByFindFirst) Skip(count int) workflowRunTriggeredByFindFirst { +func (r jobRunToJobFindFirst) Skip(count int) jobRunToJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -321871,7 +346815,7 @@ func (r workflowRunTriggeredByFindFirst) Skip(count int) workflowRunTriggeredByF return r } -func (r workflowRunTriggeredByFindFirst) Take(count int) workflowRunTriggeredByFindFirst { +func (r jobRunToJobFindFirst) Take(count int) jobRunToJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -321879,7 +346823,7 @@ func (r workflowRunTriggeredByFindFirst) Take(count int) workflowRunTriggeredByF return r } -func (r workflowRunTriggeredByFindFirst) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByFindFirst { +func (r jobRunToJobFindFirst) Cursor(cursor JobRunCursorParam) jobRunToJobFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -321887,11 +346831,11 @@ func (r workflowRunTriggeredByFindFirst) Cursor(cursor WorkflowRunTriggeredByCur return r } -func (r workflowRunTriggeredByFindFirst) Exec(ctx context.Context) ( - *WorkflowRunTriggeredByModel, +func (r jobRunToJobFindFirst) Exec(ctx context.Context) ( + *JobRunModel, error, ) { - var v *WorkflowRunTriggeredByModel + var v *JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321903,11 +346847,11 @@ func (r workflowRunTriggeredByFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByFindFirst) ExecInner(ctx context.Context) ( - *InnerWorkflowRunTriggeredBy, +func (r jobRunToJobFindFirst) ExecInner(ctx context.Context) ( + *InnerJobRun, error, ) { - var v *InnerWorkflowRunTriggeredBy + var v *InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -321919,60 +346863,23 @@ func (r workflowRunTriggeredByFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type workflowRunTriggeredByFindMany struct { +type jobRunToJobFindMany struct { query builder.Query } -func (r workflowRunTriggeredByFindMany) getQuery() builder.Query { +func (r jobRunToJobFindMany) getQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByFindMany) ExtractQuery() builder.Query { +func (r jobRunToJobFindMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByFindMany) with() {} -func (r workflowRunTriggeredByFindMany) workflowRunTriggeredByModel() {} -func (r workflowRunTriggeredByFindMany) workflowRunTriggeredByRelation() {} - -func (r workflowRunTriggeredByActions) FindMany( - params ...WorkflowRunTriggeredByWhereParam, -) workflowRunTriggeredByFindMany { - var v workflowRunTriggeredByFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "WorkflowRunTriggeredBy" - v.query.Outputs = workflowRunTriggeredByOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r jobRunToJobFindMany) with() {} +func (r jobRunToJobFindMany) jobRunModel() {} +func (r jobRunToJobFindMany) jobRunRelation() {} -func (r workflowRunTriggeredByFindMany) With(params ...WorkflowRunTriggeredByRelationWith) workflowRunTriggeredByFindMany { +func (r jobRunToJobFindMany) With(params ...JobRelationWith) jobRunToJobFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -321985,7 +346892,7 @@ func (r workflowRunTriggeredByFindMany) With(params ...WorkflowRunTriggeredByRel return r } -func (r workflowRunTriggeredByFindMany) Select(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindMany { +func (r jobRunToJobFindMany) Select(params ...jobRunPrismaFields) jobRunToJobFindMany { var outputs []builder.Output for _, param := range params { @@ -321999,7 +346906,7 @@ func (r workflowRunTriggeredByFindMany) Select(params ...workflowRunTriggeredByP return r } -func (r workflowRunTriggeredByFindMany) Omit(params ...workflowRunTriggeredByPrismaFields) workflowRunTriggeredByFindMany { +func (r jobRunToJobFindMany) Omit(params ...jobRunPrismaFields) jobRunToJobFindMany { var outputs []builder.Output var raw []string @@ -322007,7 +346914,7 @@ func (r workflowRunTriggeredByFindMany) Omit(params ...workflowRunTriggeredByPri raw = append(raw, string(param)) } - for _, output := range workflowRunTriggeredByOutput { + for _, output := range jobRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -322018,7 +346925,7 @@ func (r workflowRunTriggeredByFindMany) Omit(params ...workflowRunTriggeredByPri return r } -func (r workflowRunTriggeredByFindMany) OrderBy(params ...WorkflowRunTriggeredByOrderByParam) workflowRunTriggeredByFindMany { +func (r jobRunToJobFindMany) OrderBy(params ...JobOrderByParam) jobRunToJobFindMany { var fields []builder.Field for _, param := range params { @@ -322038,7 +346945,7 @@ func (r workflowRunTriggeredByFindMany) OrderBy(params ...WorkflowRunTriggeredBy return r } -func (r workflowRunTriggeredByFindMany) Skip(count int) workflowRunTriggeredByFindMany { +func (r jobRunToJobFindMany) Skip(count int) jobRunToJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -322046,7 +346953,7 @@ func (r workflowRunTriggeredByFindMany) Skip(count int) workflowRunTriggeredByFi return r } -func (r workflowRunTriggeredByFindMany) Take(count int) workflowRunTriggeredByFindMany { +func (r jobRunToJobFindMany) Take(count int) jobRunToJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -322054,7 +346961,7 @@ func (r workflowRunTriggeredByFindMany) Take(count int) workflowRunTriggeredByFi return r } -func (r workflowRunTriggeredByFindMany) Cursor(cursor WorkflowRunTriggeredByCursorParam) workflowRunTriggeredByFindMany { +func (r jobRunToJobFindMany) Cursor(cursor JobRunCursorParam) jobRunToJobFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -322062,11 +346969,11 @@ func (r workflowRunTriggeredByFindMany) Cursor(cursor WorkflowRunTriggeredByCurs return r } -func (r workflowRunTriggeredByFindMany) Exec(ctx context.Context) ( - []WorkflowRunTriggeredByModel, +func (r jobRunToJobFindMany) Exec(ctx context.Context) ( + []JobRunModel, error, ) { - var v []WorkflowRunTriggeredByModel + var v []JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -322074,11 +346981,11 @@ func (r workflowRunTriggeredByFindMany) Exec(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByFindMany) ExecInner(ctx context.Context) ( - []InnerWorkflowRunTriggeredBy, +func (r jobRunToJobFindMany) ExecInner(ctx context.Context) ( + []InnerJobRun, error, ) { - var v []InnerWorkflowRunTriggeredBy + var v []InnerJobRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -322086,14 +346993,14 @@ func (r workflowRunTriggeredByFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r workflowRunTriggeredByFindMany) Update(params ...WorkflowRunTriggeredBySetParam) workflowRunTriggeredByUpdateMany { +func (r jobRunToJobFindMany) Update(params ...JobRunSetParam) jobRunToJobUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "WorkflowRunTriggeredBy" + r.query.Model = "JobRun" r.query.Outputs = countOutput - var v workflowRunTriggeredByUpdateMany + var v jobRunToJobUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -322122,17 +347029,17 @@ func (r workflowRunTriggeredByFindMany) Update(params ...WorkflowRunTriggeredByS return v } -type workflowRunTriggeredByUpdateMany struct { +type jobRunToJobUpdateMany struct { query builder.Query } -func (r workflowRunTriggeredByUpdateMany) ExtractQuery() builder.Query { +func (r jobRunToJobUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r workflowRunTriggeredByUpdateMany) workflowRunTriggeredByModel() {} +func (r jobRunToJobUpdateMany) jobRunModel() {} -func (r workflowRunTriggeredByUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToJobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -322140,36 +347047,36 @@ func (r workflowRunTriggeredByUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r workflowRunTriggeredByUpdateMany) Tx() WorkflowRunTriggeredByManyTxResult { - v := newWorkflowRunTriggeredByManyTxResult() +func (r jobRunToJobUpdateMany) Tx() JobRunManyTxResult { + v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r workflowRunTriggeredByFindMany) Delete() workflowRunTriggeredByDeleteMany { - var v workflowRunTriggeredByDeleteMany +func (r jobRunToJobFindMany) Delete() jobRunToJobDeleteMany { + var v jobRunToJobDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "WorkflowRunTriggeredBy" + v.query.Model = "JobRun" v.query.Outputs = countOutput return v } -type workflowRunTriggeredByDeleteMany struct { +type jobRunToJobDeleteMany struct { query builder.Query } -func (r workflowRunTriggeredByDeleteMany) ExtractQuery() builder.Query { +func (r jobRunToJobDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p workflowRunTriggeredByDeleteMany) workflowRunTriggeredByModel() {} +func (p jobRunToJobDeleteMany) jobRunModel() {} -func (r workflowRunTriggeredByDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToJobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -322177,30 +347084,30 @@ func (r workflowRunTriggeredByDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r workflowRunTriggeredByDeleteMany) Tx() WorkflowRunTriggeredByManyTxResult { - v := newWorkflowRunTriggeredByManyTxResult() +func (r jobRunToJobDeleteMany) Tx() JobRunManyTxResult { + v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToTenantFindUnique struct { +type jobRunToTickerFindUnique struct { query builder.Query } -func (r jobRunToTenantFindUnique) getQuery() builder.Query { +func (r jobRunToTickerFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunToTenantFindUnique) ExtractQuery() builder.Query { +func (r jobRunToTickerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTenantFindUnique) with() {} -func (r jobRunToTenantFindUnique) jobRunModel() {} -func (r jobRunToTenantFindUnique) jobRunRelation() {} +func (r jobRunToTickerFindUnique) with() {} +func (r jobRunToTickerFindUnique) jobRunModel() {} +func (r jobRunToTickerFindUnique) jobRunRelation() {} -func (r jobRunToTenantFindUnique) With(params ...TenantRelationWith) jobRunToTenantFindUnique { +func (r jobRunToTickerFindUnique) With(params ...TickerRelationWith) jobRunToTickerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -322213,7 +347120,7 @@ func (r jobRunToTenantFindUnique) With(params ...TenantRelationWith) jobRunToTen return r } -func (r jobRunToTenantFindUnique) Select(params ...jobRunPrismaFields) jobRunToTenantFindUnique { +func (r jobRunToTickerFindUnique) Select(params ...jobRunPrismaFields) jobRunToTickerFindUnique { var outputs []builder.Output for _, param := range params { @@ -322227,7 +347134,7 @@ func (r jobRunToTenantFindUnique) Select(params ...jobRunPrismaFields) jobRunToT return r } -func (r jobRunToTenantFindUnique) Omit(params ...jobRunPrismaFields) jobRunToTenantFindUnique { +func (r jobRunToTickerFindUnique) Omit(params ...jobRunPrismaFields) jobRunToTickerFindUnique { var outputs []builder.Output var raw []string @@ -322246,7 +347153,7 @@ func (r jobRunToTenantFindUnique) Omit(params ...jobRunPrismaFields) jobRunToTen return r } -func (r jobRunToTenantFindUnique) Exec(ctx context.Context) ( +func (r jobRunToTickerFindUnique) Exec(ctx context.Context) ( *JobRunModel, error, ) { @@ -322262,7 +347169,7 @@ func (r jobRunToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToTenantFindUnique) ExecInner(ctx context.Context) ( +func (r jobRunToTickerFindUnique) ExecInner(ctx context.Context) ( *InnerJobRun, error, ) { @@ -322278,12 +347185,12 @@ func (r jobRunToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToTenantFindUnique) Update(params ...JobRunSetParam) jobRunToTenantUpdateUnique { +func (r jobRunToTickerFindUnique) Update(params ...JobRunSetParam) jobRunToTickerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "JobRun" - var v jobRunToTenantUpdateUnique + var v jobRunToTickerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -322312,17 +347219,17 @@ func (r jobRunToTenantFindUnique) Update(params ...JobRunSetParam) jobRunToTenan return v } -type jobRunToTenantUpdateUnique struct { +type jobRunToTickerUpdateUnique struct { query builder.Query } -func (r jobRunToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunToTickerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTenantUpdateUnique) jobRunModel() {} +func (r jobRunToTickerUpdateUnique) jobRunModel() {} -func (r jobRunToTenantUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { +func (r jobRunToTickerUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -322330,15 +347237,15 @@ func (r jobRunToTenantUpdateUnique) Exec(ctx context.Context) (*JobRunModel, err return &v, nil } -func (r jobRunToTenantUpdateUnique) Tx() JobRunUniqueTxResult { +func (r jobRunToTickerUpdateUnique) Tx() JobRunUniqueTxResult { v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToTenantFindUnique) Delete() jobRunToTenantDeleteUnique { - var v jobRunToTenantDeleteUnique +func (r jobRunToTickerFindUnique) Delete() jobRunToTickerDeleteUnique { + var v jobRunToTickerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -322347,17 +347254,17 @@ func (r jobRunToTenantFindUnique) Delete() jobRunToTenantDeleteUnique { return v } -type jobRunToTenantDeleteUnique struct { +type jobRunToTickerDeleteUnique struct { query builder.Query } -func (r jobRunToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunToTickerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunToTenantDeleteUnique) jobRunModel() {} +func (p jobRunToTickerDeleteUnique) jobRunModel() {} -func (r jobRunToTenantDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { +func (r jobRunToTickerDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -322365,30 +347272,30 @@ func (r jobRunToTenantDeleteUnique) Exec(ctx context.Context) (*JobRunModel, err return &v, nil } -func (r jobRunToTenantDeleteUnique) Tx() JobRunUniqueTxResult { +func (r jobRunToTickerDeleteUnique) Tx() JobRunUniqueTxResult { v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToTenantFindFirst struct { +type jobRunToTickerFindFirst struct { query builder.Query } -func (r jobRunToTenantFindFirst) getQuery() builder.Query { +func (r jobRunToTickerFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunToTenantFindFirst) ExtractQuery() builder.Query { +func (r jobRunToTickerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTenantFindFirst) with() {} -func (r jobRunToTenantFindFirst) jobRunModel() {} -func (r jobRunToTenantFindFirst) jobRunRelation() {} +func (r jobRunToTickerFindFirst) with() {} +func (r jobRunToTickerFindFirst) jobRunModel() {} +func (r jobRunToTickerFindFirst) jobRunRelation() {} -func (r jobRunToTenantFindFirst) With(params ...TenantRelationWith) jobRunToTenantFindFirst { +func (r jobRunToTickerFindFirst) With(params ...TickerRelationWith) jobRunToTickerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -322401,7 +347308,7 @@ func (r jobRunToTenantFindFirst) With(params ...TenantRelationWith) jobRunToTena return r } -func (r jobRunToTenantFindFirst) Select(params ...jobRunPrismaFields) jobRunToTenantFindFirst { +func (r jobRunToTickerFindFirst) Select(params ...jobRunPrismaFields) jobRunToTickerFindFirst { var outputs []builder.Output for _, param := range params { @@ -322415,7 +347322,7 @@ func (r jobRunToTenantFindFirst) Select(params ...jobRunPrismaFields) jobRunToTe return r } -func (r jobRunToTenantFindFirst) Omit(params ...jobRunPrismaFields) jobRunToTenantFindFirst { +func (r jobRunToTickerFindFirst) Omit(params ...jobRunPrismaFields) jobRunToTickerFindFirst { var outputs []builder.Output var raw []string @@ -322434,7 +347341,7 @@ func (r jobRunToTenantFindFirst) Omit(params ...jobRunPrismaFields) jobRunToTena return r } -func (r jobRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) jobRunToTenantFindFirst { +func (r jobRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) jobRunToTickerFindFirst { var fields []builder.Field for _, param := range params { @@ -322454,7 +347361,7 @@ func (r jobRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) jobRunToT return r } -func (r jobRunToTenantFindFirst) Skip(count int) jobRunToTenantFindFirst { +func (r jobRunToTickerFindFirst) Skip(count int) jobRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -322462,7 +347369,7 @@ func (r jobRunToTenantFindFirst) Skip(count int) jobRunToTenantFindFirst { return r } -func (r jobRunToTenantFindFirst) Take(count int) jobRunToTenantFindFirst { +func (r jobRunToTickerFindFirst) Take(count int) jobRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -322470,7 +347377,7 @@ func (r jobRunToTenantFindFirst) Take(count int) jobRunToTenantFindFirst { return r } -func (r jobRunToTenantFindFirst) Cursor(cursor JobRunCursorParam) jobRunToTenantFindFirst { +func (r jobRunToTickerFindFirst) Cursor(cursor JobRunCursorParam) jobRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -322478,7 +347385,7 @@ func (r jobRunToTenantFindFirst) Cursor(cursor JobRunCursorParam) jobRunToTenant return r } -func (r jobRunToTenantFindFirst) Exec(ctx context.Context) ( +func (r jobRunToTickerFindFirst) Exec(ctx context.Context) ( *JobRunModel, error, ) { @@ -322494,7 +347401,7 @@ func (r jobRunToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToTenantFindFirst) ExecInner(ctx context.Context) ( +func (r jobRunToTickerFindFirst) ExecInner(ctx context.Context) ( *InnerJobRun, error, ) { @@ -322510,23 +347417,23 @@ func (r jobRunToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunToTenantFindMany struct { +type jobRunToTickerFindMany struct { query builder.Query } -func (r jobRunToTenantFindMany) getQuery() builder.Query { +func (r jobRunToTickerFindMany) getQuery() builder.Query { return r.query } -func (r jobRunToTenantFindMany) ExtractQuery() builder.Query { +func (r jobRunToTickerFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTenantFindMany) with() {} -func (r jobRunToTenantFindMany) jobRunModel() {} -func (r jobRunToTenantFindMany) jobRunRelation() {} +func (r jobRunToTickerFindMany) with() {} +func (r jobRunToTickerFindMany) jobRunModel() {} +func (r jobRunToTickerFindMany) jobRunRelation() {} -func (r jobRunToTenantFindMany) With(params ...TenantRelationWith) jobRunToTenantFindMany { +func (r jobRunToTickerFindMany) With(params ...TickerRelationWith) jobRunToTickerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -322539,7 +347446,7 @@ func (r jobRunToTenantFindMany) With(params ...TenantRelationWith) jobRunToTenan return r } -func (r jobRunToTenantFindMany) Select(params ...jobRunPrismaFields) jobRunToTenantFindMany { +func (r jobRunToTickerFindMany) Select(params ...jobRunPrismaFields) jobRunToTickerFindMany { var outputs []builder.Output for _, param := range params { @@ -322553,7 +347460,7 @@ func (r jobRunToTenantFindMany) Select(params ...jobRunPrismaFields) jobRunToTen return r } -func (r jobRunToTenantFindMany) Omit(params ...jobRunPrismaFields) jobRunToTenantFindMany { +func (r jobRunToTickerFindMany) Omit(params ...jobRunPrismaFields) jobRunToTickerFindMany { var outputs []builder.Output var raw []string @@ -322572,7 +347479,7 @@ func (r jobRunToTenantFindMany) Omit(params ...jobRunPrismaFields) jobRunToTenan return r } -func (r jobRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) jobRunToTenantFindMany { +func (r jobRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) jobRunToTickerFindMany { var fields []builder.Field for _, param := range params { @@ -322592,7 +347499,7 @@ func (r jobRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) jobRunToTe return r } -func (r jobRunToTenantFindMany) Skip(count int) jobRunToTenantFindMany { +func (r jobRunToTickerFindMany) Skip(count int) jobRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -322600,7 +347507,7 @@ func (r jobRunToTenantFindMany) Skip(count int) jobRunToTenantFindMany { return r } -func (r jobRunToTenantFindMany) Take(count int) jobRunToTenantFindMany { +func (r jobRunToTickerFindMany) Take(count int) jobRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -322608,7 +347515,7 @@ func (r jobRunToTenantFindMany) Take(count int) jobRunToTenantFindMany { return r } -func (r jobRunToTenantFindMany) Cursor(cursor JobRunCursorParam) jobRunToTenantFindMany { +func (r jobRunToTickerFindMany) Cursor(cursor JobRunCursorParam) jobRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -322616,7 +347523,7 @@ func (r jobRunToTenantFindMany) Cursor(cursor JobRunCursorParam) jobRunToTenantF return r } -func (r jobRunToTenantFindMany) Exec(ctx context.Context) ( +func (r jobRunToTickerFindMany) Exec(ctx context.Context) ( []JobRunModel, error, ) { @@ -322628,7 +347535,7 @@ func (r jobRunToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToTenantFindMany) ExecInner(ctx context.Context) ( +func (r jobRunToTickerFindMany) ExecInner(ctx context.Context) ( []InnerJobRun, error, ) { @@ -322640,14 +347547,14 @@ func (r jobRunToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToTenantFindMany) Update(params ...JobRunSetParam) jobRunToTenantUpdateMany { +func (r jobRunToTickerFindMany) Update(params ...JobRunSetParam) jobRunToTickerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "JobRun" r.query.Outputs = countOutput - var v jobRunToTenantUpdateMany + var v jobRunToTickerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -322676,17 +347583,17 @@ func (r jobRunToTenantFindMany) Update(params ...JobRunSetParam) jobRunToTenantU return v } -type jobRunToTenantUpdateMany struct { +type jobRunToTickerUpdateMany struct { query builder.Query } -func (r jobRunToTenantUpdateMany) ExtractQuery() builder.Query { +func (r jobRunToTickerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTenantUpdateMany) jobRunModel() {} +func (r jobRunToTickerUpdateMany) jobRunModel() {} -func (r jobRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -322694,15 +347601,15 @@ func (r jobRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r jobRunToTenantUpdateMany) Tx() JobRunManyTxResult { +func (r jobRunToTickerUpdateMany) Tx() JobRunManyTxResult { v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToTenantFindMany) Delete() jobRunToTenantDeleteMany { - var v jobRunToTenantDeleteMany +func (r jobRunToTickerFindMany) Delete() jobRunToTickerDeleteMany { + var v jobRunToTickerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -322713,17 +347620,17 @@ func (r jobRunToTenantFindMany) Delete() jobRunToTenantDeleteMany { return v } -type jobRunToTenantDeleteMany struct { +type jobRunToTickerDeleteMany struct { query builder.Query } -func (r jobRunToTenantDeleteMany) ExtractQuery() builder.Query { +func (r jobRunToTickerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunToTenantDeleteMany) jobRunModel() {} +func (p jobRunToTickerDeleteMany) jobRunModel() {} -func (r jobRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -322731,30 +347638,30 @@ func (r jobRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r jobRunToTenantDeleteMany) Tx() JobRunManyTxResult { +func (r jobRunToTickerDeleteMany) Tx() JobRunManyTxResult { v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToWorkflowRunFindUnique struct { +type jobRunToStepRunsFindUnique struct { query builder.Query } -func (r jobRunToWorkflowRunFindUnique) getQuery() builder.Query { +func (r jobRunToStepRunsFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunToWorkflowRunFindUnique) ExtractQuery() builder.Query { +func (r jobRunToStepRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToWorkflowRunFindUnique) with() {} -func (r jobRunToWorkflowRunFindUnique) jobRunModel() {} -func (r jobRunToWorkflowRunFindUnique) jobRunRelation() {} +func (r jobRunToStepRunsFindUnique) with() {} +func (r jobRunToStepRunsFindUnique) jobRunModel() {} +func (r jobRunToStepRunsFindUnique) jobRunRelation() {} -func (r jobRunToWorkflowRunFindUnique) With(params ...WorkflowRunRelationWith) jobRunToWorkflowRunFindUnique { +func (r jobRunToStepRunsFindUnique) With(params ...StepRunRelationWith) jobRunToStepRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -322767,7 +347674,7 @@ func (r jobRunToWorkflowRunFindUnique) With(params ...WorkflowRunRelationWith) j return r } -func (r jobRunToWorkflowRunFindUnique) Select(params ...jobRunPrismaFields) jobRunToWorkflowRunFindUnique { +func (r jobRunToStepRunsFindUnique) Select(params ...jobRunPrismaFields) jobRunToStepRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -322781,7 +347688,7 @@ func (r jobRunToWorkflowRunFindUnique) Select(params ...jobRunPrismaFields) jobR return r } -func (r jobRunToWorkflowRunFindUnique) Omit(params ...jobRunPrismaFields) jobRunToWorkflowRunFindUnique { +func (r jobRunToStepRunsFindUnique) Omit(params ...jobRunPrismaFields) jobRunToStepRunsFindUnique { var outputs []builder.Output var raw []string @@ -322800,7 +347707,7 @@ func (r jobRunToWorkflowRunFindUnique) Omit(params ...jobRunPrismaFields) jobRun return r } -func (r jobRunToWorkflowRunFindUnique) Exec(ctx context.Context) ( +func (r jobRunToStepRunsFindUnique) Exec(ctx context.Context) ( *JobRunModel, error, ) { @@ -322816,7 +347723,7 @@ func (r jobRunToWorkflowRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToWorkflowRunFindUnique) ExecInner(ctx context.Context) ( +func (r jobRunToStepRunsFindUnique) ExecInner(ctx context.Context) ( *InnerJobRun, error, ) { @@ -322832,12 +347739,12 @@ func (r jobRunToWorkflowRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToWorkflowRunFindUnique) Update(params ...JobRunSetParam) jobRunToWorkflowRunUpdateUnique { +func (r jobRunToStepRunsFindUnique) Update(params ...JobRunSetParam) jobRunToStepRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "JobRun" - var v jobRunToWorkflowRunUpdateUnique + var v jobRunToStepRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -322866,17 +347773,17 @@ func (r jobRunToWorkflowRunFindUnique) Update(params ...JobRunSetParam) jobRunTo return v } -type jobRunToWorkflowRunUpdateUnique struct { +type jobRunToStepRunsUpdateUnique struct { query builder.Query } -func (r jobRunToWorkflowRunUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunToStepRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToWorkflowRunUpdateUnique) jobRunModel() {} +func (r jobRunToStepRunsUpdateUnique) jobRunModel() {} -func (r jobRunToWorkflowRunUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { +func (r jobRunToStepRunsUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -322884,15 +347791,15 @@ func (r jobRunToWorkflowRunUpdateUnique) Exec(ctx context.Context) (*JobRunModel return &v, nil } -func (r jobRunToWorkflowRunUpdateUnique) Tx() JobRunUniqueTxResult { +func (r jobRunToStepRunsUpdateUnique) Tx() JobRunUniqueTxResult { v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToWorkflowRunFindUnique) Delete() jobRunToWorkflowRunDeleteUnique { - var v jobRunToWorkflowRunDeleteUnique +func (r jobRunToStepRunsFindUnique) Delete() jobRunToStepRunsDeleteUnique { + var v jobRunToStepRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -322901,17 +347808,17 @@ func (r jobRunToWorkflowRunFindUnique) Delete() jobRunToWorkflowRunDeleteUnique return v } -type jobRunToWorkflowRunDeleteUnique struct { +type jobRunToStepRunsDeleteUnique struct { query builder.Query } -func (r jobRunToWorkflowRunDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunToStepRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunToWorkflowRunDeleteUnique) jobRunModel() {} +func (p jobRunToStepRunsDeleteUnique) jobRunModel() {} -func (r jobRunToWorkflowRunDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { +func (r jobRunToStepRunsDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -322919,30 +347826,30 @@ func (r jobRunToWorkflowRunDeleteUnique) Exec(ctx context.Context) (*JobRunModel return &v, nil } -func (r jobRunToWorkflowRunDeleteUnique) Tx() JobRunUniqueTxResult { +func (r jobRunToStepRunsDeleteUnique) Tx() JobRunUniqueTxResult { v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToWorkflowRunFindFirst struct { +type jobRunToStepRunsFindFirst struct { query builder.Query } -func (r jobRunToWorkflowRunFindFirst) getQuery() builder.Query { +func (r jobRunToStepRunsFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunToWorkflowRunFindFirst) ExtractQuery() builder.Query { +func (r jobRunToStepRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunToWorkflowRunFindFirst) with() {} -func (r jobRunToWorkflowRunFindFirst) jobRunModel() {} -func (r jobRunToWorkflowRunFindFirst) jobRunRelation() {} +func (r jobRunToStepRunsFindFirst) with() {} +func (r jobRunToStepRunsFindFirst) jobRunModel() {} +func (r jobRunToStepRunsFindFirst) jobRunRelation() {} -func (r jobRunToWorkflowRunFindFirst) With(params ...WorkflowRunRelationWith) jobRunToWorkflowRunFindFirst { +func (r jobRunToStepRunsFindFirst) With(params ...StepRunRelationWith) jobRunToStepRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -322955,7 +347862,7 @@ func (r jobRunToWorkflowRunFindFirst) With(params ...WorkflowRunRelationWith) jo return r } -func (r jobRunToWorkflowRunFindFirst) Select(params ...jobRunPrismaFields) jobRunToWorkflowRunFindFirst { +func (r jobRunToStepRunsFindFirst) Select(params ...jobRunPrismaFields) jobRunToStepRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -322969,7 +347876,7 @@ func (r jobRunToWorkflowRunFindFirst) Select(params ...jobRunPrismaFields) jobRu return r } -func (r jobRunToWorkflowRunFindFirst) Omit(params ...jobRunPrismaFields) jobRunToWorkflowRunFindFirst { +func (r jobRunToStepRunsFindFirst) Omit(params ...jobRunPrismaFields) jobRunToStepRunsFindFirst { var outputs []builder.Output var raw []string @@ -322988,7 +347895,7 @@ func (r jobRunToWorkflowRunFindFirst) Omit(params ...jobRunPrismaFields) jobRunT return r } -func (r jobRunToWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) jobRunToWorkflowRunFindFirst { +func (r jobRunToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) jobRunToStepRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -323008,7 +347915,7 @@ func (r jobRunToWorkflowRunFindFirst) OrderBy(params ...WorkflowRunOrderByParam) return r } -func (r jobRunToWorkflowRunFindFirst) Skip(count int) jobRunToWorkflowRunFindFirst { +func (r jobRunToStepRunsFindFirst) Skip(count int) jobRunToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -323016,7 +347923,7 @@ func (r jobRunToWorkflowRunFindFirst) Skip(count int) jobRunToWorkflowRunFindFir return r } -func (r jobRunToWorkflowRunFindFirst) Take(count int) jobRunToWorkflowRunFindFirst { +func (r jobRunToStepRunsFindFirst) Take(count int) jobRunToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -323024,7 +347931,7 @@ func (r jobRunToWorkflowRunFindFirst) Take(count int) jobRunToWorkflowRunFindFir return r } -func (r jobRunToWorkflowRunFindFirst) Cursor(cursor JobRunCursorParam) jobRunToWorkflowRunFindFirst { +func (r jobRunToStepRunsFindFirst) Cursor(cursor JobRunCursorParam) jobRunToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -323032,7 +347939,7 @@ func (r jobRunToWorkflowRunFindFirst) Cursor(cursor JobRunCursorParam) jobRunToW return r } -func (r jobRunToWorkflowRunFindFirst) Exec(ctx context.Context) ( +func (r jobRunToStepRunsFindFirst) Exec(ctx context.Context) ( *JobRunModel, error, ) { @@ -323048,7 +347955,7 @@ func (r jobRunToWorkflowRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToWorkflowRunFindFirst) ExecInner(ctx context.Context) ( +func (r jobRunToStepRunsFindFirst) ExecInner(ctx context.Context) ( *InnerJobRun, error, ) { @@ -323064,23 +347971,23 @@ func (r jobRunToWorkflowRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunToWorkflowRunFindMany struct { +type jobRunToStepRunsFindMany struct { query builder.Query } -func (r jobRunToWorkflowRunFindMany) getQuery() builder.Query { +func (r jobRunToStepRunsFindMany) getQuery() builder.Query { return r.query } -func (r jobRunToWorkflowRunFindMany) ExtractQuery() builder.Query { +func (r jobRunToStepRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToWorkflowRunFindMany) with() {} -func (r jobRunToWorkflowRunFindMany) jobRunModel() {} -func (r jobRunToWorkflowRunFindMany) jobRunRelation() {} +func (r jobRunToStepRunsFindMany) with() {} +func (r jobRunToStepRunsFindMany) jobRunModel() {} +func (r jobRunToStepRunsFindMany) jobRunRelation() {} -func (r jobRunToWorkflowRunFindMany) With(params ...WorkflowRunRelationWith) jobRunToWorkflowRunFindMany { +func (r jobRunToStepRunsFindMany) With(params ...StepRunRelationWith) jobRunToStepRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -323093,7 +348000,7 @@ func (r jobRunToWorkflowRunFindMany) With(params ...WorkflowRunRelationWith) job return r } -func (r jobRunToWorkflowRunFindMany) Select(params ...jobRunPrismaFields) jobRunToWorkflowRunFindMany { +func (r jobRunToStepRunsFindMany) Select(params ...jobRunPrismaFields) jobRunToStepRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -323107,7 +348014,7 @@ func (r jobRunToWorkflowRunFindMany) Select(params ...jobRunPrismaFields) jobRun return r } -func (r jobRunToWorkflowRunFindMany) Omit(params ...jobRunPrismaFields) jobRunToWorkflowRunFindMany { +func (r jobRunToStepRunsFindMany) Omit(params ...jobRunPrismaFields) jobRunToStepRunsFindMany { var outputs []builder.Output var raw []string @@ -323126,7 +348033,7 @@ func (r jobRunToWorkflowRunFindMany) Omit(params ...jobRunPrismaFields) jobRunTo return r } -func (r jobRunToWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) jobRunToWorkflowRunFindMany { +func (r jobRunToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) jobRunToStepRunsFindMany { var fields []builder.Field for _, param := range params { @@ -323146,7 +348053,7 @@ func (r jobRunToWorkflowRunFindMany) OrderBy(params ...WorkflowRunOrderByParam) return r } -func (r jobRunToWorkflowRunFindMany) Skip(count int) jobRunToWorkflowRunFindMany { +func (r jobRunToStepRunsFindMany) Skip(count int) jobRunToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -323154,7 +348061,7 @@ func (r jobRunToWorkflowRunFindMany) Skip(count int) jobRunToWorkflowRunFindMany return r } -func (r jobRunToWorkflowRunFindMany) Take(count int) jobRunToWorkflowRunFindMany { +func (r jobRunToStepRunsFindMany) Take(count int) jobRunToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -323162,7 +348069,7 @@ func (r jobRunToWorkflowRunFindMany) Take(count int) jobRunToWorkflowRunFindMany return r } -func (r jobRunToWorkflowRunFindMany) Cursor(cursor JobRunCursorParam) jobRunToWorkflowRunFindMany { +func (r jobRunToStepRunsFindMany) Cursor(cursor JobRunCursorParam) jobRunToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -323170,7 +348077,7 @@ func (r jobRunToWorkflowRunFindMany) Cursor(cursor JobRunCursorParam) jobRunToWo return r } -func (r jobRunToWorkflowRunFindMany) Exec(ctx context.Context) ( +func (r jobRunToStepRunsFindMany) Exec(ctx context.Context) ( []JobRunModel, error, ) { @@ -323182,7 +348089,7 @@ func (r jobRunToWorkflowRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToWorkflowRunFindMany) ExecInner(ctx context.Context) ( +func (r jobRunToStepRunsFindMany) ExecInner(ctx context.Context) ( []InnerJobRun, error, ) { @@ -323194,14 +348101,14 @@ func (r jobRunToWorkflowRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToWorkflowRunFindMany) Update(params ...JobRunSetParam) jobRunToWorkflowRunUpdateMany { +func (r jobRunToStepRunsFindMany) Update(params ...JobRunSetParam) jobRunToStepRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "JobRun" r.query.Outputs = countOutput - var v jobRunToWorkflowRunUpdateMany + var v jobRunToStepRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -323230,17 +348137,17 @@ func (r jobRunToWorkflowRunFindMany) Update(params ...JobRunSetParam) jobRunToWo return v } -type jobRunToWorkflowRunUpdateMany struct { +type jobRunToStepRunsUpdateMany struct { query builder.Query } -func (r jobRunToWorkflowRunUpdateMany) ExtractQuery() builder.Query { +func (r jobRunToStepRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToWorkflowRunUpdateMany) jobRunModel() {} +func (r jobRunToStepRunsUpdateMany) jobRunModel() {} -func (r jobRunToWorkflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -323248,15 +348155,15 @@ func (r jobRunToWorkflowRunUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r jobRunToWorkflowRunUpdateMany) Tx() JobRunManyTxResult { +func (r jobRunToStepRunsUpdateMany) Tx() JobRunManyTxResult { v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToWorkflowRunFindMany) Delete() jobRunToWorkflowRunDeleteMany { - var v jobRunToWorkflowRunDeleteMany +func (r jobRunToStepRunsFindMany) Delete() jobRunToStepRunsDeleteMany { + var v jobRunToStepRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -323267,17 +348174,17 @@ func (r jobRunToWorkflowRunFindMany) Delete() jobRunToWorkflowRunDeleteMany { return v } -type jobRunToWorkflowRunDeleteMany struct { +type jobRunToStepRunsDeleteMany struct { query builder.Query } -func (r jobRunToWorkflowRunDeleteMany) ExtractQuery() builder.Query { +func (r jobRunToStepRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunToWorkflowRunDeleteMany) jobRunModel() {} +func (p jobRunToStepRunsDeleteMany) jobRunModel() {} -func (r jobRunToWorkflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -323285,30 +348192,30 @@ func (r jobRunToWorkflowRunDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r jobRunToWorkflowRunDeleteMany) Tx() JobRunManyTxResult { +func (r jobRunToStepRunsDeleteMany) Tx() JobRunManyTxResult { v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToJobFindUnique struct { +type jobRunToLookupDataFindUnique struct { query builder.Query } -func (r jobRunToJobFindUnique) getQuery() builder.Query { +func (r jobRunToLookupDataFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunToJobFindUnique) ExtractQuery() builder.Query { +func (r jobRunToLookupDataFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToJobFindUnique) with() {} -func (r jobRunToJobFindUnique) jobRunModel() {} -func (r jobRunToJobFindUnique) jobRunRelation() {} +func (r jobRunToLookupDataFindUnique) with() {} +func (r jobRunToLookupDataFindUnique) jobRunModel() {} +func (r jobRunToLookupDataFindUnique) jobRunRelation() {} -func (r jobRunToJobFindUnique) With(params ...JobRelationWith) jobRunToJobFindUnique { +func (r jobRunToLookupDataFindUnique) With(params ...JobRunLookupDataRelationWith) jobRunToLookupDataFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -323321,7 +348228,7 @@ func (r jobRunToJobFindUnique) With(params ...JobRelationWith) jobRunToJobFindUn return r } -func (r jobRunToJobFindUnique) Select(params ...jobRunPrismaFields) jobRunToJobFindUnique { +func (r jobRunToLookupDataFindUnique) Select(params ...jobRunPrismaFields) jobRunToLookupDataFindUnique { var outputs []builder.Output for _, param := range params { @@ -323335,7 +348242,7 @@ func (r jobRunToJobFindUnique) Select(params ...jobRunPrismaFields) jobRunToJobF return r } -func (r jobRunToJobFindUnique) Omit(params ...jobRunPrismaFields) jobRunToJobFindUnique { +func (r jobRunToLookupDataFindUnique) Omit(params ...jobRunPrismaFields) jobRunToLookupDataFindUnique { var outputs []builder.Output var raw []string @@ -323354,7 +348261,7 @@ func (r jobRunToJobFindUnique) Omit(params ...jobRunPrismaFields) jobRunToJobFin return r } -func (r jobRunToJobFindUnique) Exec(ctx context.Context) ( +func (r jobRunToLookupDataFindUnique) Exec(ctx context.Context) ( *JobRunModel, error, ) { @@ -323370,7 +348277,7 @@ func (r jobRunToJobFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToJobFindUnique) ExecInner(ctx context.Context) ( +func (r jobRunToLookupDataFindUnique) ExecInner(ctx context.Context) ( *InnerJobRun, error, ) { @@ -323386,12 +348293,12 @@ func (r jobRunToJobFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToJobFindUnique) Update(params ...JobRunSetParam) jobRunToJobUpdateUnique { +func (r jobRunToLookupDataFindUnique) Update(params ...JobRunSetParam) jobRunToLookupDataUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "JobRun" - var v jobRunToJobUpdateUnique + var v jobRunToLookupDataUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -323420,17 +348327,17 @@ func (r jobRunToJobFindUnique) Update(params ...JobRunSetParam) jobRunToJobUpdat return v } -type jobRunToJobUpdateUnique struct { +type jobRunToLookupDataUpdateUnique struct { query builder.Query } -func (r jobRunToJobUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunToLookupDataUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToJobUpdateUnique) jobRunModel() {} +func (r jobRunToLookupDataUpdateUnique) jobRunModel() {} -func (r jobRunToJobUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { +func (r jobRunToLookupDataUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -323438,15 +348345,15 @@ func (r jobRunToJobUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) return &v, nil } -func (r jobRunToJobUpdateUnique) Tx() JobRunUniqueTxResult { +func (r jobRunToLookupDataUpdateUnique) Tx() JobRunUniqueTxResult { v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToJobFindUnique) Delete() jobRunToJobDeleteUnique { - var v jobRunToJobDeleteUnique +func (r jobRunToLookupDataFindUnique) Delete() jobRunToLookupDataDeleteUnique { + var v jobRunToLookupDataDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -323455,17 +348362,17 @@ func (r jobRunToJobFindUnique) Delete() jobRunToJobDeleteUnique { return v } -type jobRunToJobDeleteUnique struct { +type jobRunToLookupDataDeleteUnique struct { query builder.Query } -func (r jobRunToJobDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunToLookupDataDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunToJobDeleteUnique) jobRunModel() {} +func (p jobRunToLookupDataDeleteUnique) jobRunModel() {} -func (r jobRunToJobDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { +func (r jobRunToLookupDataDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -323473,30 +348380,30 @@ func (r jobRunToJobDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) return &v, nil } -func (r jobRunToJobDeleteUnique) Tx() JobRunUniqueTxResult { +func (r jobRunToLookupDataDeleteUnique) Tx() JobRunUniqueTxResult { v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToJobFindFirst struct { +type jobRunToLookupDataFindFirst struct { query builder.Query } -func (r jobRunToJobFindFirst) getQuery() builder.Query { +func (r jobRunToLookupDataFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunToJobFindFirst) ExtractQuery() builder.Query { +func (r jobRunToLookupDataFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunToJobFindFirst) with() {} -func (r jobRunToJobFindFirst) jobRunModel() {} -func (r jobRunToJobFindFirst) jobRunRelation() {} +func (r jobRunToLookupDataFindFirst) with() {} +func (r jobRunToLookupDataFindFirst) jobRunModel() {} +func (r jobRunToLookupDataFindFirst) jobRunRelation() {} -func (r jobRunToJobFindFirst) With(params ...JobRelationWith) jobRunToJobFindFirst { +func (r jobRunToLookupDataFindFirst) With(params ...JobRunLookupDataRelationWith) jobRunToLookupDataFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -323509,7 +348416,7 @@ func (r jobRunToJobFindFirst) With(params ...JobRelationWith) jobRunToJobFindFir return r } -func (r jobRunToJobFindFirst) Select(params ...jobRunPrismaFields) jobRunToJobFindFirst { +func (r jobRunToLookupDataFindFirst) Select(params ...jobRunPrismaFields) jobRunToLookupDataFindFirst { var outputs []builder.Output for _, param := range params { @@ -323523,7 +348430,7 @@ func (r jobRunToJobFindFirst) Select(params ...jobRunPrismaFields) jobRunToJobFi return r } -func (r jobRunToJobFindFirst) Omit(params ...jobRunPrismaFields) jobRunToJobFindFirst { +func (r jobRunToLookupDataFindFirst) Omit(params ...jobRunPrismaFields) jobRunToLookupDataFindFirst { var outputs []builder.Output var raw []string @@ -323542,7 +348449,7 @@ func (r jobRunToJobFindFirst) Omit(params ...jobRunPrismaFields) jobRunToJobFind return r } -func (r jobRunToJobFindFirst) OrderBy(params ...JobOrderByParam) jobRunToJobFindFirst { +func (r jobRunToLookupDataFindFirst) OrderBy(params ...JobRunLookupDataOrderByParam) jobRunToLookupDataFindFirst { var fields []builder.Field for _, param := range params { @@ -323562,7 +348469,7 @@ func (r jobRunToJobFindFirst) OrderBy(params ...JobOrderByParam) jobRunToJobFind return r } -func (r jobRunToJobFindFirst) Skip(count int) jobRunToJobFindFirst { +func (r jobRunToLookupDataFindFirst) Skip(count int) jobRunToLookupDataFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -323570,7 +348477,7 @@ func (r jobRunToJobFindFirst) Skip(count int) jobRunToJobFindFirst { return r } -func (r jobRunToJobFindFirst) Take(count int) jobRunToJobFindFirst { +func (r jobRunToLookupDataFindFirst) Take(count int) jobRunToLookupDataFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -323578,7 +348485,7 @@ func (r jobRunToJobFindFirst) Take(count int) jobRunToJobFindFirst { return r } -func (r jobRunToJobFindFirst) Cursor(cursor JobRunCursorParam) jobRunToJobFindFirst { +func (r jobRunToLookupDataFindFirst) Cursor(cursor JobRunCursorParam) jobRunToLookupDataFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -323586,7 +348493,7 @@ func (r jobRunToJobFindFirst) Cursor(cursor JobRunCursorParam) jobRunToJobFindFi return r } -func (r jobRunToJobFindFirst) Exec(ctx context.Context) ( +func (r jobRunToLookupDataFindFirst) Exec(ctx context.Context) ( *JobRunModel, error, ) { @@ -323602,7 +348509,7 @@ func (r jobRunToJobFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToJobFindFirst) ExecInner(ctx context.Context) ( +func (r jobRunToLookupDataFindFirst) ExecInner(ctx context.Context) ( *InnerJobRun, error, ) { @@ -323618,23 +348525,23 @@ func (r jobRunToJobFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunToJobFindMany struct { +type jobRunToLookupDataFindMany struct { query builder.Query } -func (r jobRunToJobFindMany) getQuery() builder.Query { +func (r jobRunToLookupDataFindMany) getQuery() builder.Query { return r.query } -func (r jobRunToJobFindMany) ExtractQuery() builder.Query { +func (r jobRunToLookupDataFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToJobFindMany) with() {} -func (r jobRunToJobFindMany) jobRunModel() {} -func (r jobRunToJobFindMany) jobRunRelation() {} +func (r jobRunToLookupDataFindMany) with() {} +func (r jobRunToLookupDataFindMany) jobRunModel() {} +func (r jobRunToLookupDataFindMany) jobRunRelation() {} -func (r jobRunToJobFindMany) With(params ...JobRelationWith) jobRunToJobFindMany { +func (r jobRunToLookupDataFindMany) With(params ...JobRunLookupDataRelationWith) jobRunToLookupDataFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -323647,7 +348554,7 @@ func (r jobRunToJobFindMany) With(params ...JobRelationWith) jobRunToJobFindMany return r } -func (r jobRunToJobFindMany) Select(params ...jobRunPrismaFields) jobRunToJobFindMany { +func (r jobRunToLookupDataFindMany) Select(params ...jobRunPrismaFields) jobRunToLookupDataFindMany { var outputs []builder.Output for _, param := range params { @@ -323661,7 +348568,7 @@ func (r jobRunToJobFindMany) Select(params ...jobRunPrismaFields) jobRunToJobFin return r } -func (r jobRunToJobFindMany) Omit(params ...jobRunPrismaFields) jobRunToJobFindMany { +func (r jobRunToLookupDataFindMany) Omit(params ...jobRunPrismaFields) jobRunToLookupDataFindMany { var outputs []builder.Output var raw []string @@ -323680,7 +348587,7 @@ func (r jobRunToJobFindMany) Omit(params ...jobRunPrismaFields) jobRunToJobFindM return r } -func (r jobRunToJobFindMany) OrderBy(params ...JobOrderByParam) jobRunToJobFindMany { +func (r jobRunToLookupDataFindMany) OrderBy(params ...JobRunLookupDataOrderByParam) jobRunToLookupDataFindMany { var fields []builder.Field for _, param := range params { @@ -323700,7 +348607,7 @@ func (r jobRunToJobFindMany) OrderBy(params ...JobOrderByParam) jobRunToJobFindM return r } -func (r jobRunToJobFindMany) Skip(count int) jobRunToJobFindMany { +func (r jobRunToLookupDataFindMany) Skip(count int) jobRunToLookupDataFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -323708,7 +348615,7 @@ func (r jobRunToJobFindMany) Skip(count int) jobRunToJobFindMany { return r } -func (r jobRunToJobFindMany) Take(count int) jobRunToJobFindMany { +func (r jobRunToLookupDataFindMany) Take(count int) jobRunToLookupDataFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -323716,7 +348623,7 @@ func (r jobRunToJobFindMany) Take(count int) jobRunToJobFindMany { return r } -func (r jobRunToJobFindMany) Cursor(cursor JobRunCursorParam) jobRunToJobFindMany { +func (r jobRunToLookupDataFindMany) Cursor(cursor JobRunCursorParam) jobRunToLookupDataFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -323724,7 +348631,7 @@ func (r jobRunToJobFindMany) Cursor(cursor JobRunCursorParam) jobRunToJobFindMan return r } -func (r jobRunToJobFindMany) Exec(ctx context.Context) ( +func (r jobRunToLookupDataFindMany) Exec(ctx context.Context) ( []JobRunModel, error, ) { @@ -323736,7 +348643,7 @@ func (r jobRunToJobFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToJobFindMany) ExecInner(ctx context.Context) ( +func (r jobRunToLookupDataFindMany) ExecInner(ctx context.Context) ( []InnerJobRun, error, ) { @@ -323748,14 +348655,14 @@ func (r jobRunToJobFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToJobFindMany) Update(params ...JobRunSetParam) jobRunToJobUpdateMany { +func (r jobRunToLookupDataFindMany) Update(params ...JobRunSetParam) jobRunToLookupDataUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "JobRun" r.query.Outputs = countOutput - var v jobRunToJobUpdateMany + var v jobRunToLookupDataUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -323784,17 +348691,17 @@ func (r jobRunToJobFindMany) Update(params ...JobRunSetParam) jobRunToJobUpdateM return v } -type jobRunToJobUpdateMany struct { +type jobRunToLookupDataUpdateMany struct { query builder.Query } -func (r jobRunToJobUpdateMany) ExtractQuery() builder.Query { +func (r jobRunToLookupDataUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToJobUpdateMany) jobRunModel() {} +func (r jobRunToLookupDataUpdateMany) jobRunModel() {} -func (r jobRunToJobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToLookupDataUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -323802,15 +348709,15 @@ func (r jobRunToJobUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobRunToJobUpdateMany) Tx() JobRunManyTxResult { +func (r jobRunToLookupDataUpdateMany) Tx() JobRunManyTxResult { v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToJobFindMany) Delete() jobRunToJobDeleteMany { - var v jobRunToJobDeleteMany +func (r jobRunToLookupDataFindMany) Delete() jobRunToLookupDataDeleteMany { + var v jobRunToLookupDataDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -323821,17 +348728,17 @@ func (r jobRunToJobFindMany) Delete() jobRunToJobDeleteMany { return v } -type jobRunToJobDeleteMany struct { +type jobRunToLookupDataDeleteMany struct { query builder.Query } -func (r jobRunToJobDeleteMany) ExtractQuery() builder.Query { +func (r jobRunToLookupDataDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunToJobDeleteMany) jobRunModel() {} +func (p jobRunToLookupDataDeleteMany) jobRunModel() {} -func (r jobRunToJobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunToLookupDataDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -323839,30 +348746,52 @@ func (r jobRunToJobDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobRunToJobDeleteMany) Tx() JobRunManyTxResult { +func (r jobRunToLookupDataDeleteMany) Tx() JobRunManyTxResult { v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToTickerFindUnique struct { +type jobRunFindUnique struct { query builder.Query } -func (r jobRunToTickerFindUnique) getQuery() builder.Query { +func (r jobRunFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunToTickerFindUnique) ExtractQuery() builder.Query { +func (r jobRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTickerFindUnique) with() {} -func (r jobRunToTickerFindUnique) jobRunModel() {} -func (r jobRunToTickerFindUnique) jobRunRelation() {} +func (r jobRunFindUnique) with() {} +func (r jobRunFindUnique) jobRunModel() {} +func (r jobRunFindUnique) jobRunRelation() {} -func (r jobRunToTickerFindUnique) With(params ...TickerRelationWith) jobRunToTickerFindUnique { +func (r jobRunActions) FindUnique( + params JobRunEqualsUniqueWhereParam, +) jobRunFindUnique { + var v jobRunFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "JobRun" + v.query.Outputs = jobRunOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r jobRunFindUnique) With(params ...JobRunRelationWith) jobRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -323875,7 +348804,7 @@ func (r jobRunToTickerFindUnique) With(params ...TickerRelationWith) jobRunToTic return r } -func (r jobRunToTickerFindUnique) Select(params ...jobRunPrismaFields) jobRunToTickerFindUnique { +func (r jobRunFindUnique) Select(params ...jobRunPrismaFields) jobRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -323889,7 +348818,7 @@ func (r jobRunToTickerFindUnique) Select(params ...jobRunPrismaFields) jobRunToT return r } -func (r jobRunToTickerFindUnique) Omit(params ...jobRunPrismaFields) jobRunToTickerFindUnique { +func (r jobRunFindUnique) Omit(params ...jobRunPrismaFields) jobRunFindUnique { var outputs []builder.Output var raw []string @@ -323908,7 +348837,7 @@ func (r jobRunToTickerFindUnique) Omit(params ...jobRunPrismaFields) jobRunToTic return r } -func (r jobRunToTickerFindUnique) Exec(ctx context.Context) ( +func (r jobRunFindUnique) Exec(ctx context.Context) ( *JobRunModel, error, ) { @@ -323924,7 +348853,7 @@ func (r jobRunToTickerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToTickerFindUnique) ExecInner(ctx context.Context) ( +func (r jobRunFindUnique) ExecInner(ctx context.Context) ( *InnerJobRun, error, ) { @@ -323940,12 +348869,12 @@ func (r jobRunToTickerFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToTickerFindUnique) Update(params ...JobRunSetParam) jobRunToTickerUpdateUnique { +func (r jobRunFindUnique) Update(params ...JobRunSetParam) jobRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "JobRun" - var v jobRunToTickerUpdateUnique + var v jobRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -323974,17 +348903,17 @@ func (r jobRunToTickerFindUnique) Update(params ...JobRunSetParam) jobRunToTicke return v } -type jobRunToTickerUpdateUnique struct { +type jobRunUpdateUnique struct { query builder.Query } -func (r jobRunToTickerUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTickerUpdateUnique) jobRunModel() {} +func (r jobRunUpdateUnique) jobRunModel() {} -func (r jobRunToTickerUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { +func (r jobRunUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -323992,15 +348921,15 @@ func (r jobRunToTickerUpdateUnique) Exec(ctx context.Context) (*JobRunModel, err return &v, nil } -func (r jobRunToTickerUpdateUnique) Tx() JobRunUniqueTxResult { +func (r jobRunUpdateUnique) Tx() JobRunUniqueTxResult { v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToTickerFindUnique) Delete() jobRunToTickerDeleteUnique { - var v jobRunToTickerDeleteUnique +func (r jobRunFindUnique) Delete() jobRunDeleteUnique { + var v jobRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -324009,17 +348938,17 @@ func (r jobRunToTickerFindUnique) Delete() jobRunToTickerDeleteUnique { return v } -type jobRunToTickerDeleteUnique struct { +type jobRunDeleteUnique struct { query builder.Query } -func (r jobRunToTickerDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunToTickerDeleteUnique) jobRunModel() {} +func (p jobRunDeleteUnique) jobRunModel() {} -func (r jobRunToTickerDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { +func (r jobRunDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { var v JobRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -324027,30 +348956,67 @@ func (r jobRunToTickerDeleteUnique) Exec(ctx context.Context) (*JobRunModel, err return &v, nil } -func (r jobRunToTickerDeleteUnique) Tx() JobRunUniqueTxResult { +func (r jobRunDeleteUnique) Tx() JobRunUniqueTxResult { v := newJobRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToTickerFindFirst struct { +type jobRunFindFirst struct { query builder.Query } -func (r jobRunToTickerFindFirst) getQuery() builder.Query { +func (r jobRunFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunToTickerFindFirst) ExtractQuery() builder.Query { +func (r jobRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTickerFindFirst) with() {} -func (r jobRunToTickerFindFirst) jobRunModel() {} -func (r jobRunToTickerFindFirst) jobRunRelation() {} +func (r jobRunFindFirst) with() {} +func (r jobRunFindFirst) jobRunModel() {} +func (r jobRunFindFirst) jobRunRelation() {} -func (r jobRunToTickerFindFirst) With(params ...TickerRelationWith) jobRunToTickerFindFirst { +func (r jobRunActions) FindFirst( + params ...JobRunWhereParam, +) jobRunFindFirst { + var v jobRunFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "JobRun" + v.query.Outputs = jobRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r jobRunFindFirst) With(params ...JobRunRelationWith) jobRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -324063,7 +349029,7 @@ func (r jobRunToTickerFindFirst) With(params ...TickerRelationWith) jobRunToTick return r } -func (r jobRunToTickerFindFirst) Select(params ...jobRunPrismaFields) jobRunToTickerFindFirst { +func (r jobRunFindFirst) Select(params ...jobRunPrismaFields) jobRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -324077,7 +349043,7 @@ func (r jobRunToTickerFindFirst) Select(params ...jobRunPrismaFields) jobRunToTi return r } -func (r jobRunToTickerFindFirst) Omit(params ...jobRunPrismaFields) jobRunToTickerFindFirst { +func (r jobRunFindFirst) Omit(params ...jobRunPrismaFields) jobRunFindFirst { var outputs []builder.Output var raw []string @@ -324096,7 +349062,7 @@ func (r jobRunToTickerFindFirst) Omit(params ...jobRunPrismaFields) jobRunToTick return r } -func (r jobRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) jobRunToTickerFindFirst { +func (r jobRunFindFirst) OrderBy(params ...JobRunOrderByParam) jobRunFindFirst { var fields []builder.Field for _, param := range params { @@ -324116,7 +349082,7 @@ func (r jobRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) jobRunToT return r } -func (r jobRunToTickerFindFirst) Skip(count int) jobRunToTickerFindFirst { +func (r jobRunFindFirst) Skip(count int) jobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -324124,7 +349090,7 @@ func (r jobRunToTickerFindFirst) Skip(count int) jobRunToTickerFindFirst { return r } -func (r jobRunToTickerFindFirst) Take(count int) jobRunToTickerFindFirst { +func (r jobRunFindFirst) Take(count int) jobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -324132,7 +349098,7 @@ func (r jobRunToTickerFindFirst) Take(count int) jobRunToTickerFindFirst { return r } -func (r jobRunToTickerFindFirst) Cursor(cursor JobRunCursorParam) jobRunToTickerFindFirst { +func (r jobRunFindFirst) Cursor(cursor JobRunCursorParam) jobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -324140,7 +349106,7 @@ func (r jobRunToTickerFindFirst) Cursor(cursor JobRunCursorParam) jobRunToTicker return r } -func (r jobRunToTickerFindFirst) Exec(ctx context.Context) ( +func (r jobRunFindFirst) Exec(ctx context.Context) ( *JobRunModel, error, ) { @@ -324156,7 +349122,7 @@ func (r jobRunToTickerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToTickerFindFirst) ExecInner(ctx context.Context) ( +func (r jobRunFindFirst) ExecInner(ctx context.Context) ( *InnerJobRun, error, ) { @@ -324172,23 +349138,60 @@ func (r jobRunToTickerFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunToTickerFindMany struct { +type jobRunFindMany struct { query builder.Query } -func (r jobRunToTickerFindMany) getQuery() builder.Query { +func (r jobRunFindMany) getQuery() builder.Query { return r.query } -func (r jobRunToTickerFindMany) ExtractQuery() builder.Query { +func (r jobRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTickerFindMany) with() {} -func (r jobRunToTickerFindMany) jobRunModel() {} -func (r jobRunToTickerFindMany) jobRunRelation() {} +func (r jobRunFindMany) with() {} +func (r jobRunFindMany) jobRunModel() {} +func (r jobRunFindMany) jobRunRelation() {} -func (r jobRunToTickerFindMany) With(params ...TickerRelationWith) jobRunToTickerFindMany { +func (r jobRunActions) FindMany( + params ...JobRunWhereParam, +) jobRunFindMany { + var v jobRunFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "JobRun" + v.query.Outputs = jobRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r jobRunFindMany) With(params ...JobRunRelationWith) jobRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -324201,7 +349204,7 @@ func (r jobRunToTickerFindMany) With(params ...TickerRelationWith) jobRunToTicke return r } -func (r jobRunToTickerFindMany) Select(params ...jobRunPrismaFields) jobRunToTickerFindMany { +func (r jobRunFindMany) Select(params ...jobRunPrismaFields) jobRunFindMany { var outputs []builder.Output for _, param := range params { @@ -324215,7 +349218,7 @@ func (r jobRunToTickerFindMany) Select(params ...jobRunPrismaFields) jobRunToTic return r } -func (r jobRunToTickerFindMany) Omit(params ...jobRunPrismaFields) jobRunToTickerFindMany { +func (r jobRunFindMany) Omit(params ...jobRunPrismaFields) jobRunFindMany { var outputs []builder.Output var raw []string @@ -324234,7 +349237,7 @@ func (r jobRunToTickerFindMany) Omit(params ...jobRunPrismaFields) jobRunToTicke return r } -func (r jobRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) jobRunToTickerFindMany { +func (r jobRunFindMany) OrderBy(params ...JobRunOrderByParam) jobRunFindMany { var fields []builder.Field for _, param := range params { @@ -324254,7 +349257,7 @@ func (r jobRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) jobRunToTi return r } -func (r jobRunToTickerFindMany) Skip(count int) jobRunToTickerFindMany { +func (r jobRunFindMany) Skip(count int) jobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -324262,7 +349265,7 @@ func (r jobRunToTickerFindMany) Skip(count int) jobRunToTickerFindMany { return r } -func (r jobRunToTickerFindMany) Take(count int) jobRunToTickerFindMany { +func (r jobRunFindMany) Take(count int) jobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -324270,7 +349273,7 @@ func (r jobRunToTickerFindMany) Take(count int) jobRunToTickerFindMany { return r } -func (r jobRunToTickerFindMany) Cursor(cursor JobRunCursorParam) jobRunToTickerFindMany { +func (r jobRunFindMany) Cursor(cursor JobRunCursorParam) jobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -324278,7 +349281,7 @@ func (r jobRunToTickerFindMany) Cursor(cursor JobRunCursorParam) jobRunToTickerF return r } -func (r jobRunToTickerFindMany) Exec(ctx context.Context) ( +func (r jobRunFindMany) Exec(ctx context.Context) ( []JobRunModel, error, ) { @@ -324290,7 +349293,7 @@ func (r jobRunToTickerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToTickerFindMany) ExecInner(ctx context.Context) ( +func (r jobRunFindMany) ExecInner(ctx context.Context) ( []InnerJobRun, error, ) { @@ -324302,14 +349305,14 @@ func (r jobRunToTickerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToTickerFindMany) Update(params ...JobRunSetParam) jobRunToTickerUpdateMany { +func (r jobRunFindMany) Update(params ...JobRunSetParam) jobRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "JobRun" r.query.Outputs = countOutput - var v jobRunToTickerUpdateMany + var v jobRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -324338,17 +349341,17 @@ func (r jobRunToTickerFindMany) Update(params ...JobRunSetParam) jobRunToTickerU return v } -type jobRunToTickerUpdateMany struct { +type jobRunUpdateMany struct { query builder.Query } -func (r jobRunToTickerUpdateMany) ExtractQuery() builder.Query { +func (r jobRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToTickerUpdateMany) jobRunModel() {} +func (r jobRunUpdateMany) jobRunModel() {} -func (r jobRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -324356,15 +349359,15 @@ func (r jobRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r jobRunToTickerUpdateMany) Tx() JobRunManyTxResult { +func (r jobRunUpdateMany) Tx() JobRunManyTxResult { v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToTickerFindMany) Delete() jobRunToTickerDeleteMany { - var v jobRunToTickerDeleteMany +func (r jobRunFindMany) Delete() jobRunDeleteMany { + var v jobRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -324375,17 +349378,17 @@ func (r jobRunToTickerFindMany) Delete() jobRunToTickerDeleteMany { return v } -type jobRunToTickerDeleteMany struct { +type jobRunDeleteMany struct { query builder.Query } -func (r jobRunToTickerDeleteMany) ExtractQuery() builder.Query { +func (r jobRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunToTickerDeleteMany) jobRunModel() {} +func (p jobRunDeleteMany) jobRunModel() {} -func (r jobRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -324393,30 +349396,30 @@ func (r jobRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error return &v, nil } -func (r jobRunToTickerDeleteMany) Tx() JobRunManyTxResult { +func (r jobRunDeleteMany) Tx() JobRunManyTxResult { v := newJobRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToStepRunsFindUnique struct { +type jobRunLookupDataToJobRunFindUnique struct { query builder.Query } -func (r jobRunToStepRunsFindUnique) getQuery() builder.Query { +func (r jobRunLookupDataToJobRunFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunToStepRunsFindUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataToJobRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToStepRunsFindUnique) with() {} -func (r jobRunToStepRunsFindUnique) jobRunModel() {} -func (r jobRunToStepRunsFindUnique) jobRunRelation() {} +func (r jobRunLookupDataToJobRunFindUnique) with() {} +func (r jobRunLookupDataToJobRunFindUnique) jobRunLookupDataModel() {} +func (r jobRunLookupDataToJobRunFindUnique) jobRunLookupDataRelation() {} -func (r jobRunToStepRunsFindUnique) With(params ...StepRunRelationWith) jobRunToStepRunsFindUnique { +func (r jobRunLookupDataToJobRunFindUnique) With(params ...JobRunRelationWith) jobRunLookupDataToJobRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -324429,7 +349432,7 @@ func (r jobRunToStepRunsFindUnique) With(params ...StepRunRelationWith) jobRunTo return r } -func (r jobRunToStepRunsFindUnique) Select(params ...jobRunPrismaFields) jobRunToStepRunsFindUnique { +func (r jobRunLookupDataToJobRunFindUnique) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -324443,7 +349446,7 @@ func (r jobRunToStepRunsFindUnique) Select(params ...jobRunPrismaFields) jobRunT return r } -func (r jobRunToStepRunsFindUnique) Omit(params ...jobRunPrismaFields) jobRunToStepRunsFindUnique { +func (r jobRunLookupDataToJobRunFindUnique) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindUnique { var outputs []builder.Output var raw []string @@ -324451,7 +349454,7 @@ func (r jobRunToStepRunsFindUnique) Omit(params ...jobRunPrismaFields) jobRunToS raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -324462,11 +349465,11 @@ func (r jobRunToStepRunsFindUnique) Omit(params ...jobRunPrismaFields) jobRunToS return r } -func (r jobRunToStepRunsFindUnique) Exec(ctx context.Context) ( - *JobRunModel, +func (r jobRunLookupDataToJobRunFindUnique) Exec(ctx context.Context) ( + *JobRunLookupDataModel, error, ) { - var v *JobRunModel + var v *JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -324478,11 +349481,11 @@ func (r jobRunToStepRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToStepRunsFindUnique) ExecInner(ctx context.Context) ( - *InnerJobRun, +func (r jobRunLookupDataToJobRunFindUnique) ExecInner(ctx context.Context) ( + *InnerJobRunLookupData, error, ) { - var v *InnerJobRun + var v *InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -324494,12 +349497,12 @@ func (r jobRunToStepRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToStepRunsFindUnique) Update(params ...JobRunSetParam) jobRunToStepRunsUpdateUnique { +func (r jobRunLookupDataToJobRunFindUnique) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataToJobRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "JobRun" + r.query.Model = "JobRunLookupData" - var v jobRunToStepRunsUpdateUnique + var v jobRunLookupDataToJobRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -324528,83 +349531,83 @@ func (r jobRunToStepRunsFindUnique) Update(params ...JobRunSetParam) jobRunToSte return v } -type jobRunToStepRunsUpdateUnique struct { +type jobRunLookupDataToJobRunUpdateUnique struct { query builder.Query } -func (r jobRunToStepRunsUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataToJobRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToStepRunsUpdateUnique) jobRunModel() {} +func (r jobRunLookupDataToJobRunUpdateUnique) jobRunLookupDataModel() {} -func (r jobRunToStepRunsUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { - var v JobRunModel +func (r jobRunLookupDataToJobRunUpdateUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { + var v JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunToStepRunsUpdateUnique) Tx() JobRunUniqueTxResult { - v := newJobRunUniqueTxResult() +func (r jobRunLookupDataToJobRunUpdateUnique) Tx() JobRunLookupDataUniqueTxResult { + v := newJobRunLookupDataUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToStepRunsFindUnique) Delete() jobRunToStepRunsDeleteUnique { - var v jobRunToStepRunsDeleteUnique +func (r jobRunLookupDataToJobRunFindUnique) Delete() jobRunLookupDataToJobRunDeleteUnique { + var v jobRunLookupDataToJobRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "JobRun" + v.query.Model = "JobRunLookupData" return v } -type jobRunToStepRunsDeleteUnique struct { +type jobRunLookupDataToJobRunDeleteUnique struct { query builder.Query } -func (r jobRunToStepRunsDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataToJobRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunToStepRunsDeleteUnique) jobRunModel() {} +func (p jobRunLookupDataToJobRunDeleteUnique) jobRunLookupDataModel() {} -func (r jobRunToStepRunsDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { - var v JobRunModel +func (r jobRunLookupDataToJobRunDeleteUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { + var v JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunToStepRunsDeleteUnique) Tx() JobRunUniqueTxResult { - v := newJobRunUniqueTxResult() +func (r jobRunLookupDataToJobRunDeleteUnique) Tx() JobRunLookupDataUniqueTxResult { + v := newJobRunLookupDataUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToStepRunsFindFirst struct { +type jobRunLookupDataToJobRunFindFirst struct { query builder.Query } -func (r jobRunToStepRunsFindFirst) getQuery() builder.Query { +func (r jobRunLookupDataToJobRunFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunToStepRunsFindFirst) ExtractQuery() builder.Query { +func (r jobRunLookupDataToJobRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunToStepRunsFindFirst) with() {} -func (r jobRunToStepRunsFindFirst) jobRunModel() {} -func (r jobRunToStepRunsFindFirst) jobRunRelation() {} +func (r jobRunLookupDataToJobRunFindFirst) with() {} +func (r jobRunLookupDataToJobRunFindFirst) jobRunLookupDataModel() {} +func (r jobRunLookupDataToJobRunFindFirst) jobRunLookupDataRelation() {} -func (r jobRunToStepRunsFindFirst) With(params ...StepRunRelationWith) jobRunToStepRunsFindFirst { +func (r jobRunLookupDataToJobRunFindFirst) With(params ...JobRunRelationWith) jobRunLookupDataToJobRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -324617,7 +349620,7 @@ func (r jobRunToStepRunsFindFirst) With(params ...StepRunRelationWith) jobRunToS return r } -func (r jobRunToStepRunsFindFirst) Select(params ...jobRunPrismaFields) jobRunToStepRunsFindFirst { +func (r jobRunLookupDataToJobRunFindFirst) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -324631,7 +349634,7 @@ func (r jobRunToStepRunsFindFirst) Select(params ...jobRunPrismaFields) jobRunTo return r } -func (r jobRunToStepRunsFindFirst) Omit(params ...jobRunPrismaFields) jobRunToStepRunsFindFirst { +func (r jobRunLookupDataToJobRunFindFirst) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindFirst { var outputs []builder.Output var raw []string @@ -324639,7 +349642,7 @@ func (r jobRunToStepRunsFindFirst) Omit(params ...jobRunPrismaFields) jobRunToSt raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -324650,7 +349653,7 @@ func (r jobRunToStepRunsFindFirst) Omit(params ...jobRunPrismaFields) jobRunToSt return r } -func (r jobRunToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) jobRunToStepRunsFindFirst { +func (r jobRunLookupDataToJobRunFindFirst) OrderBy(params ...JobRunOrderByParam) jobRunLookupDataToJobRunFindFirst { var fields []builder.Field for _, param := range params { @@ -324670,7 +349673,7 @@ func (r jobRunToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) jobRun return r } -func (r jobRunToStepRunsFindFirst) Skip(count int) jobRunToStepRunsFindFirst { +func (r jobRunLookupDataToJobRunFindFirst) Skip(count int) jobRunLookupDataToJobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -324678,7 +349681,7 @@ func (r jobRunToStepRunsFindFirst) Skip(count int) jobRunToStepRunsFindFirst { return r } -func (r jobRunToStepRunsFindFirst) Take(count int) jobRunToStepRunsFindFirst { +func (r jobRunLookupDataToJobRunFindFirst) Take(count int) jobRunLookupDataToJobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -324686,7 +349689,7 @@ func (r jobRunToStepRunsFindFirst) Take(count int) jobRunToStepRunsFindFirst { return r } -func (r jobRunToStepRunsFindFirst) Cursor(cursor JobRunCursorParam) jobRunToStepRunsFindFirst { +func (r jobRunLookupDataToJobRunFindFirst) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataToJobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -324694,11 +349697,11 @@ func (r jobRunToStepRunsFindFirst) Cursor(cursor JobRunCursorParam) jobRunToStep return r } -func (r jobRunToStepRunsFindFirst) Exec(ctx context.Context) ( - *JobRunModel, +func (r jobRunLookupDataToJobRunFindFirst) Exec(ctx context.Context) ( + *JobRunLookupDataModel, error, ) { - var v *JobRunModel + var v *JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -324710,11 +349713,11 @@ func (r jobRunToStepRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToStepRunsFindFirst) ExecInner(ctx context.Context) ( - *InnerJobRun, +func (r jobRunLookupDataToJobRunFindFirst) ExecInner(ctx context.Context) ( + *InnerJobRunLookupData, error, ) { - var v *InnerJobRun + var v *InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -324726,23 +349729,23 @@ func (r jobRunToStepRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunToStepRunsFindMany struct { +type jobRunLookupDataToJobRunFindMany struct { query builder.Query } -func (r jobRunToStepRunsFindMany) getQuery() builder.Query { +func (r jobRunLookupDataToJobRunFindMany) getQuery() builder.Query { return r.query } -func (r jobRunToStepRunsFindMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataToJobRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToStepRunsFindMany) with() {} -func (r jobRunToStepRunsFindMany) jobRunModel() {} -func (r jobRunToStepRunsFindMany) jobRunRelation() {} +func (r jobRunLookupDataToJobRunFindMany) with() {} +func (r jobRunLookupDataToJobRunFindMany) jobRunLookupDataModel() {} +func (r jobRunLookupDataToJobRunFindMany) jobRunLookupDataRelation() {} -func (r jobRunToStepRunsFindMany) With(params ...StepRunRelationWith) jobRunToStepRunsFindMany { +func (r jobRunLookupDataToJobRunFindMany) With(params ...JobRunRelationWith) jobRunLookupDataToJobRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -324755,7 +349758,7 @@ func (r jobRunToStepRunsFindMany) With(params ...StepRunRelationWith) jobRunToSt return r } -func (r jobRunToStepRunsFindMany) Select(params ...jobRunPrismaFields) jobRunToStepRunsFindMany { +func (r jobRunLookupDataToJobRunFindMany) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindMany { var outputs []builder.Output for _, param := range params { @@ -324769,7 +349772,7 @@ func (r jobRunToStepRunsFindMany) Select(params ...jobRunPrismaFields) jobRunToS return r } -func (r jobRunToStepRunsFindMany) Omit(params ...jobRunPrismaFields) jobRunToStepRunsFindMany { +func (r jobRunLookupDataToJobRunFindMany) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindMany { var outputs []builder.Output var raw []string @@ -324777,7 +349780,7 @@ func (r jobRunToStepRunsFindMany) Omit(params ...jobRunPrismaFields) jobRunToSte raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -324788,7 +349791,7 @@ func (r jobRunToStepRunsFindMany) Omit(params ...jobRunPrismaFields) jobRunToSte return r } -func (r jobRunToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) jobRunToStepRunsFindMany { +func (r jobRunLookupDataToJobRunFindMany) OrderBy(params ...JobRunOrderByParam) jobRunLookupDataToJobRunFindMany { var fields []builder.Field for _, param := range params { @@ -324808,7 +349811,7 @@ func (r jobRunToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) jobRunT return r } -func (r jobRunToStepRunsFindMany) Skip(count int) jobRunToStepRunsFindMany { +func (r jobRunLookupDataToJobRunFindMany) Skip(count int) jobRunLookupDataToJobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -324816,7 +349819,7 @@ func (r jobRunToStepRunsFindMany) Skip(count int) jobRunToStepRunsFindMany { return r } -func (r jobRunToStepRunsFindMany) Take(count int) jobRunToStepRunsFindMany { +func (r jobRunLookupDataToJobRunFindMany) Take(count int) jobRunLookupDataToJobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -324824,7 +349827,7 @@ func (r jobRunToStepRunsFindMany) Take(count int) jobRunToStepRunsFindMany { return r } -func (r jobRunToStepRunsFindMany) Cursor(cursor JobRunCursorParam) jobRunToStepRunsFindMany { +func (r jobRunLookupDataToJobRunFindMany) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataToJobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -324832,11 +349835,11 @@ func (r jobRunToStepRunsFindMany) Cursor(cursor JobRunCursorParam) jobRunToStepR return r } -func (r jobRunToStepRunsFindMany) Exec(ctx context.Context) ( - []JobRunModel, +func (r jobRunLookupDataToJobRunFindMany) Exec(ctx context.Context) ( + []JobRunLookupDataModel, error, ) { - var v []JobRunModel + var v []JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -324844,11 +349847,11 @@ func (r jobRunToStepRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToStepRunsFindMany) ExecInner(ctx context.Context) ( - []InnerJobRun, +func (r jobRunLookupDataToJobRunFindMany) ExecInner(ctx context.Context) ( + []InnerJobRunLookupData, error, ) { - var v []InnerJobRun + var v []InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -324856,14 +349859,14 @@ func (r jobRunToStepRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToStepRunsFindMany) Update(params ...JobRunSetParam) jobRunToStepRunsUpdateMany { +func (r jobRunLookupDataToJobRunFindMany) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataToJobRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "JobRun" + r.query.Model = "JobRunLookupData" r.query.Outputs = countOutput - var v jobRunToStepRunsUpdateMany + var v jobRunLookupDataToJobRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -324892,17 +349895,17 @@ func (r jobRunToStepRunsFindMany) Update(params ...JobRunSetParam) jobRunToStepR return v } -type jobRunToStepRunsUpdateMany struct { +type jobRunLookupDataToJobRunUpdateMany struct { query builder.Query } -func (r jobRunToStepRunsUpdateMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataToJobRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToStepRunsUpdateMany) jobRunModel() {} +func (r jobRunLookupDataToJobRunUpdateMany) jobRunLookupDataModel() {} -func (r jobRunToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunLookupDataToJobRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -324910,36 +349913,36 @@ func (r jobRunToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r jobRunToStepRunsUpdateMany) Tx() JobRunManyTxResult { - v := newJobRunManyTxResult() +func (r jobRunLookupDataToJobRunUpdateMany) Tx() JobRunLookupDataManyTxResult { + v := newJobRunLookupDataManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToStepRunsFindMany) Delete() jobRunToStepRunsDeleteMany { - var v jobRunToStepRunsDeleteMany +func (r jobRunLookupDataToJobRunFindMany) Delete() jobRunLookupDataToJobRunDeleteMany { + var v jobRunLookupDataToJobRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "JobRun" + v.query.Model = "JobRunLookupData" v.query.Outputs = countOutput return v } -type jobRunToStepRunsDeleteMany struct { +type jobRunLookupDataToJobRunDeleteMany struct { query builder.Query } -func (r jobRunToStepRunsDeleteMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataToJobRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunToStepRunsDeleteMany) jobRunModel() {} +func (p jobRunLookupDataToJobRunDeleteMany) jobRunLookupDataModel() {} -func (r jobRunToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunLookupDataToJobRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -324947,30 +349950,30 @@ func (r jobRunToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r jobRunToStepRunsDeleteMany) Tx() JobRunManyTxResult { - v := newJobRunManyTxResult() +func (r jobRunLookupDataToJobRunDeleteMany) Tx() JobRunLookupDataManyTxResult { + v := newJobRunLookupDataManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToLookupDataFindUnique struct { +type jobRunLookupDataToTenantFindUnique struct { query builder.Query } -func (r jobRunToLookupDataFindUnique) getQuery() builder.Query { +func (r jobRunLookupDataToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunToLookupDataFindUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToLookupDataFindUnique) with() {} -func (r jobRunToLookupDataFindUnique) jobRunModel() {} -func (r jobRunToLookupDataFindUnique) jobRunRelation() {} +func (r jobRunLookupDataToTenantFindUnique) with() {} +func (r jobRunLookupDataToTenantFindUnique) jobRunLookupDataModel() {} +func (r jobRunLookupDataToTenantFindUnique) jobRunLookupDataRelation() {} -func (r jobRunToLookupDataFindUnique) With(params ...JobRunLookupDataRelationWith) jobRunToLookupDataFindUnique { +func (r jobRunLookupDataToTenantFindUnique) With(params ...TenantRelationWith) jobRunLookupDataToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -324983,7 +349986,7 @@ func (r jobRunToLookupDataFindUnique) With(params ...JobRunLookupDataRelationWit return r } -func (r jobRunToLookupDataFindUnique) Select(params ...jobRunPrismaFields) jobRunToLookupDataFindUnique { +func (r jobRunLookupDataToTenantFindUnique) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -324997,7 +350000,7 @@ func (r jobRunToLookupDataFindUnique) Select(params ...jobRunPrismaFields) jobRu return r } -func (r jobRunToLookupDataFindUnique) Omit(params ...jobRunPrismaFields) jobRunToLookupDataFindUnique { +func (r jobRunLookupDataToTenantFindUnique) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindUnique { var outputs []builder.Output var raw []string @@ -325005,7 +350008,7 @@ func (r jobRunToLookupDataFindUnique) Omit(params ...jobRunPrismaFields) jobRunT raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -325016,11 +350019,11 @@ func (r jobRunToLookupDataFindUnique) Omit(params ...jobRunPrismaFields) jobRunT return r } -func (r jobRunToLookupDataFindUnique) Exec(ctx context.Context) ( - *JobRunModel, +func (r jobRunLookupDataToTenantFindUnique) Exec(ctx context.Context) ( + *JobRunLookupDataModel, error, ) { - var v *JobRunModel + var v *JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325032,11 +350035,11 @@ func (r jobRunToLookupDataFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToLookupDataFindUnique) ExecInner(ctx context.Context) ( - *InnerJobRun, +func (r jobRunLookupDataToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerJobRunLookupData, error, ) { - var v *InnerJobRun + var v *InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325048,12 +350051,12 @@ func (r jobRunToLookupDataFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToLookupDataFindUnique) Update(params ...JobRunSetParam) jobRunToLookupDataUpdateUnique { +func (r jobRunLookupDataToTenantFindUnique) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "JobRun" + r.query.Model = "JobRunLookupData" - var v jobRunToLookupDataUpdateUnique + var v jobRunLookupDataToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -325082,83 +350085,83 @@ func (r jobRunToLookupDataFindUnique) Update(params ...JobRunSetParam) jobRunToL return v } -type jobRunToLookupDataUpdateUnique struct { +type jobRunLookupDataToTenantUpdateUnique struct { query builder.Query } -func (r jobRunToLookupDataUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunToLookupDataUpdateUnique) jobRunModel() {} +func (r jobRunLookupDataToTenantUpdateUnique) jobRunLookupDataModel() {} -func (r jobRunToLookupDataUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { - var v JobRunModel +func (r jobRunLookupDataToTenantUpdateUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { + var v JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunToLookupDataUpdateUnique) Tx() JobRunUniqueTxResult { - v := newJobRunUniqueTxResult() +func (r jobRunLookupDataToTenantUpdateUnique) Tx() JobRunLookupDataUniqueTxResult { + v := newJobRunLookupDataUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToLookupDataFindUnique) Delete() jobRunToLookupDataDeleteUnique { - var v jobRunToLookupDataDeleteUnique +func (r jobRunLookupDataToTenantFindUnique) Delete() jobRunLookupDataToTenantDeleteUnique { + var v jobRunLookupDataToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "JobRun" + v.query.Model = "JobRunLookupData" return v } -type jobRunToLookupDataDeleteUnique struct { +type jobRunLookupDataToTenantDeleteUnique struct { query builder.Query } -func (r jobRunToLookupDataDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunToLookupDataDeleteUnique) jobRunModel() {} +func (p jobRunLookupDataToTenantDeleteUnique) jobRunLookupDataModel() {} -func (r jobRunToLookupDataDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { - var v JobRunModel +func (r jobRunLookupDataToTenantDeleteUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { + var v JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunToLookupDataDeleteUnique) Tx() JobRunUniqueTxResult { - v := newJobRunUniqueTxResult() +func (r jobRunLookupDataToTenantDeleteUnique) Tx() JobRunLookupDataUniqueTxResult { + v := newJobRunLookupDataUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunToLookupDataFindFirst struct { +type jobRunLookupDataToTenantFindFirst struct { query builder.Query } -func (r jobRunToLookupDataFindFirst) getQuery() builder.Query { +func (r jobRunLookupDataToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunToLookupDataFindFirst) ExtractQuery() builder.Query { +func (r jobRunLookupDataToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunToLookupDataFindFirst) with() {} -func (r jobRunToLookupDataFindFirst) jobRunModel() {} -func (r jobRunToLookupDataFindFirst) jobRunRelation() {} +func (r jobRunLookupDataToTenantFindFirst) with() {} +func (r jobRunLookupDataToTenantFindFirst) jobRunLookupDataModel() {} +func (r jobRunLookupDataToTenantFindFirst) jobRunLookupDataRelation() {} -func (r jobRunToLookupDataFindFirst) With(params ...JobRunLookupDataRelationWith) jobRunToLookupDataFindFirst { +func (r jobRunLookupDataToTenantFindFirst) With(params ...TenantRelationWith) jobRunLookupDataToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -325171,7 +350174,7 @@ func (r jobRunToLookupDataFindFirst) With(params ...JobRunLookupDataRelationWith return r } -func (r jobRunToLookupDataFindFirst) Select(params ...jobRunPrismaFields) jobRunToLookupDataFindFirst { +func (r jobRunLookupDataToTenantFindFirst) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -325185,7 +350188,7 @@ func (r jobRunToLookupDataFindFirst) Select(params ...jobRunPrismaFields) jobRun return r } -func (r jobRunToLookupDataFindFirst) Omit(params ...jobRunPrismaFields) jobRunToLookupDataFindFirst { +func (r jobRunLookupDataToTenantFindFirst) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindFirst { var outputs []builder.Output var raw []string @@ -325193,7 +350196,7 @@ func (r jobRunToLookupDataFindFirst) Omit(params ...jobRunPrismaFields) jobRunTo raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -325204,7 +350207,7 @@ func (r jobRunToLookupDataFindFirst) Omit(params ...jobRunPrismaFields) jobRunTo return r } -func (r jobRunToLookupDataFindFirst) OrderBy(params ...JobRunLookupDataOrderByParam) jobRunToLookupDataFindFirst { +func (r jobRunLookupDataToTenantFindFirst) OrderBy(params ...TenantOrderByParam) jobRunLookupDataToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -325224,7 +350227,7 @@ func (r jobRunToLookupDataFindFirst) OrderBy(params ...JobRunLookupDataOrderByPa return r } -func (r jobRunToLookupDataFindFirst) Skip(count int) jobRunToLookupDataFindFirst { +func (r jobRunLookupDataToTenantFindFirst) Skip(count int) jobRunLookupDataToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -325232,7 +350235,7 @@ func (r jobRunToLookupDataFindFirst) Skip(count int) jobRunToLookupDataFindFirst return r } -func (r jobRunToLookupDataFindFirst) Take(count int) jobRunToLookupDataFindFirst { +func (r jobRunLookupDataToTenantFindFirst) Take(count int) jobRunLookupDataToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -325240,7 +350243,7 @@ func (r jobRunToLookupDataFindFirst) Take(count int) jobRunToLookupDataFindFirst return r } -func (r jobRunToLookupDataFindFirst) Cursor(cursor JobRunCursorParam) jobRunToLookupDataFindFirst { +func (r jobRunLookupDataToTenantFindFirst) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -325248,11 +350251,11 @@ func (r jobRunToLookupDataFindFirst) Cursor(cursor JobRunCursorParam) jobRunToLo return r } -func (r jobRunToLookupDataFindFirst) Exec(ctx context.Context) ( - *JobRunModel, +func (r jobRunLookupDataToTenantFindFirst) Exec(ctx context.Context) ( + *JobRunLookupDataModel, error, ) { - var v *JobRunModel + var v *JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325264,11 +350267,11 @@ func (r jobRunToLookupDataFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToLookupDataFindFirst) ExecInner(ctx context.Context) ( - *InnerJobRun, +func (r jobRunLookupDataToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerJobRunLookupData, error, ) { - var v *InnerJobRun + var v *InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325280,23 +350283,23 @@ func (r jobRunToLookupDataFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunToLookupDataFindMany struct { +type jobRunLookupDataToTenantFindMany struct { query builder.Query } -func (r jobRunToLookupDataFindMany) getQuery() builder.Query { +func (r jobRunLookupDataToTenantFindMany) getQuery() builder.Query { return r.query } -func (r jobRunToLookupDataFindMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToLookupDataFindMany) with() {} -func (r jobRunToLookupDataFindMany) jobRunModel() {} -func (r jobRunToLookupDataFindMany) jobRunRelation() {} +func (r jobRunLookupDataToTenantFindMany) with() {} +func (r jobRunLookupDataToTenantFindMany) jobRunLookupDataModel() {} +func (r jobRunLookupDataToTenantFindMany) jobRunLookupDataRelation() {} -func (r jobRunToLookupDataFindMany) With(params ...JobRunLookupDataRelationWith) jobRunToLookupDataFindMany { +func (r jobRunLookupDataToTenantFindMany) With(params ...TenantRelationWith) jobRunLookupDataToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -325309,7 +350312,7 @@ func (r jobRunToLookupDataFindMany) With(params ...JobRunLookupDataRelationWith) return r } -func (r jobRunToLookupDataFindMany) Select(params ...jobRunPrismaFields) jobRunToLookupDataFindMany { +func (r jobRunLookupDataToTenantFindMany) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -325323,7 +350326,7 @@ func (r jobRunToLookupDataFindMany) Select(params ...jobRunPrismaFields) jobRunT return r } -func (r jobRunToLookupDataFindMany) Omit(params ...jobRunPrismaFields) jobRunToLookupDataFindMany { +func (r jobRunLookupDataToTenantFindMany) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindMany { var outputs []builder.Output var raw []string @@ -325331,7 +350334,7 @@ func (r jobRunToLookupDataFindMany) Omit(params ...jobRunPrismaFields) jobRunToL raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -325342,7 +350345,7 @@ func (r jobRunToLookupDataFindMany) Omit(params ...jobRunPrismaFields) jobRunToL return r } -func (r jobRunToLookupDataFindMany) OrderBy(params ...JobRunLookupDataOrderByParam) jobRunToLookupDataFindMany { +func (r jobRunLookupDataToTenantFindMany) OrderBy(params ...TenantOrderByParam) jobRunLookupDataToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -325362,7 +350365,7 @@ func (r jobRunToLookupDataFindMany) OrderBy(params ...JobRunLookupDataOrderByPar return r } -func (r jobRunToLookupDataFindMany) Skip(count int) jobRunToLookupDataFindMany { +func (r jobRunLookupDataToTenantFindMany) Skip(count int) jobRunLookupDataToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -325370,7 +350373,7 @@ func (r jobRunToLookupDataFindMany) Skip(count int) jobRunToLookupDataFindMany { return r } -func (r jobRunToLookupDataFindMany) Take(count int) jobRunToLookupDataFindMany { +func (r jobRunLookupDataToTenantFindMany) Take(count int) jobRunLookupDataToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -325378,7 +350381,7 @@ func (r jobRunToLookupDataFindMany) Take(count int) jobRunToLookupDataFindMany { return r } -func (r jobRunToLookupDataFindMany) Cursor(cursor JobRunCursorParam) jobRunToLookupDataFindMany { +func (r jobRunLookupDataToTenantFindMany) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -325386,11 +350389,11 @@ func (r jobRunToLookupDataFindMany) Cursor(cursor JobRunCursorParam) jobRunToLoo return r } -func (r jobRunToLookupDataFindMany) Exec(ctx context.Context) ( - []JobRunModel, +func (r jobRunLookupDataToTenantFindMany) Exec(ctx context.Context) ( + []JobRunLookupDataModel, error, ) { - var v []JobRunModel + var v []JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325398,11 +350401,11 @@ func (r jobRunToLookupDataFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunToLookupDataFindMany) ExecInner(ctx context.Context) ( - []InnerJobRun, +func (r jobRunLookupDataToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerJobRunLookupData, error, ) { - var v []InnerJobRun + var v []InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325410,14 +350413,14 @@ func (r jobRunToLookupDataFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunToLookupDataFindMany) Update(params ...JobRunSetParam) jobRunToLookupDataUpdateMany { +func (r jobRunLookupDataToTenantFindMany) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "JobRun" + r.query.Model = "JobRunLookupData" r.query.Outputs = countOutput - var v jobRunToLookupDataUpdateMany + var v jobRunLookupDataToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -325446,17 +350449,17 @@ func (r jobRunToLookupDataFindMany) Update(params ...JobRunSetParam) jobRunToLoo return v } -type jobRunToLookupDataUpdateMany struct { +type jobRunLookupDataToTenantUpdateMany struct { query builder.Query } -func (r jobRunToLookupDataUpdateMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunToLookupDataUpdateMany) jobRunModel() {} +func (r jobRunLookupDataToTenantUpdateMany) jobRunLookupDataModel() {} -func (r jobRunToLookupDataUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunLookupDataToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -325464,36 +350467,36 @@ func (r jobRunToLookupDataUpdateMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r jobRunToLookupDataUpdateMany) Tx() JobRunManyTxResult { - v := newJobRunManyTxResult() +func (r jobRunLookupDataToTenantUpdateMany) Tx() JobRunLookupDataManyTxResult { + v := newJobRunLookupDataManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunToLookupDataFindMany) Delete() jobRunToLookupDataDeleteMany { - var v jobRunToLookupDataDeleteMany +func (r jobRunLookupDataToTenantFindMany) Delete() jobRunLookupDataToTenantDeleteMany { + var v jobRunLookupDataToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "JobRun" + v.query.Model = "JobRunLookupData" v.query.Outputs = countOutput return v } -type jobRunToLookupDataDeleteMany struct { +type jobRunLookupDataToTenantDeleteMany struct { query builder.Query } -func (r jobRunToLookupDataDeleteMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunToLookupDataDeleteMany) jobRunModel() {} +func (p jobRunLookupDataToTenantDeleteMany) jobRunLookupDataModel() {} -func (r jobRunToLookupDataDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunLookupDataToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -325501,33 +350504,33 @@ func (r jobRunToLookupDataDeleteMany) Exec(ctx context.Context) (*BatchResult, e return &v, nil } -func (r jobRunToLookupDataDeleteMany) Tx() JobRunManyTxResult { - v := newJobRunManyTxResult() +func (r jobRunLookupDataToTenantDeleteMany) Tx() JobRunLookupDataManyTxResult { + v := newJobRunLookupDataManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunFindUnique struct { +type jobRunLookupDataFindUnique struct { query builder.Query } -func (r jobRunFindUnique) getQuery() builder.Query { +func (r jobRunLookupDataFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunFindUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunFindUnique) with() {} -func (r jobRunFindUnique) jobRunModel() {} -func (r jobRunFindUnique) jobRunRelation() {} +func (r jobRunLookupDataFindUnique) with() {} +func (r jobRunLookupDataFindUnique) jobRunLookupDataModel() {} +func (r jobRunLookupDataFindUnique) jobRunLookupDataRelation() {} -func (r jobRunActions) FindUnique( - params JobRunEqualsUniqueWhereParam, -) jobRunFindUnique { - var v jobRunFindUnique +func (r jobRunLookupDataActions) FindUnique( + params JobRunLookupDataEqualsUniqueWhereParam, +) jobRunLookupDataFindUnique { + var v jobRunLookupDataFindUnique v.query = builder.NewQuery() v.query.Engine = r.client @@ -325535,8 +350538,8 @@ func (r jobRunActions) FindUnique( v.query.Method = "findUnique" - v.query.Model = "JobRun" - v.query.Outputs = jobRunOutput + v.query.Model = "JobRunLookupData" + v.query.Outputs = jobRunLookupDataOutput v.query.Inputs = append(v.query.Inputs, builder.Input{ Name: "where", @@ -325546,7 +350549,7 @@ func (r jobRunActions) FindUnique( return v } -func (r jobRunFindUnique) With(params ...JobRunRelationWith) jobRunFindUnique { +func (r jobRunLookupDataFindUnique) With(params ...JobRunLookupDataRelationWith) jobRunLookupDataFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -325559,7 +350562,7 @@ func (r jobRunFindUnique) With(params ...JobRunRelationWith) jobRunFindUnique { return r } -func (r jobRunFindUnique) Select(params ...jobRunPrismaFields) jobRunFindUnique { +func (r jobRunLookupDataFindUnique) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindUnique { var outputs []builder.Output for _, param := range params { @@ -325573,7 +350576,7 @@ func (r jobRunFindUnique) Select(params ...jobRunPrismaFields) jobRunFindUnique return r } -func (r jobRunFindUnique) Omit(params ...jobRunPrismaFields) jobRunFindUnique { +func (r jobRunLookupDataFindUnique) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindUnique { var outputs []builder.Output var raw []string @@ -325581,7 +350584,7 @@ func (r jobRunFindUnique) Omit(params ...jobRunPrismaFields) jobRunFindUnique { raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -325592,11 +350595,11 @@ func (r jobRunFindUnique) Omit(params ...jobRunPrismaFields) jobRunFindUnique { return r } -func (r jobRunFindUnique) Exec(ctx context.Context) ( - *JobRunModel, +func (r jobRunLookupDataFindUnique) Exec(ctx context.Context) ( + *JobRunLookupDataModel, error, ) { - var v *JobRunModel + var v *JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325608,11 +350611,11 @@ func (r jobRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunFindUnique) ExecInner(ctx context.Context) ( - *InnerJobRun, +func (r jobRunLookupDataFindUnique) ExecInner(ctx context.Context) ( + *InnerJobRunLookupData, error, ) { - var v *InnerJobRun + var v *InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325624,12 +350627,12 @@ func (r jobRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunFindUnique) Update(params ...JobRunSetParam) jobRunUpdateUnique { +func (r jobRunLookupDataFindUnique) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "JobRun" + r.query.Model = "JobRunLookupData" - var v jobRunUpdateUnique + var v jobRunLookupDataUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -325658,86 +350661,86 @@ func (r jobRunFindUnique) Update(params ...JobRunSetParam) jobRunUpdateUnique { return v } -type jobRunUpdateUnique struct { +type jobRunLookupDataUpdateUnique struct { query builder.Query } -func (r jobRunUpdateUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunUpdateUnique) jobRunModel() {} +func (r jobRunLookupDataUpdateUnique) jobRunLookupDataModel() {} -func (r jobRunUpdateUnique) Exec(ctx context.Context) (*JobRunModel, error) { - var v JobRunModel +func (r jobRunLookupDataUpdateUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { + var v JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunUpdateUnique) Tx() JobRunUniqueTxResult { - v := newJobRunUniqueTxResult() +func (r jobRunLookupDataUpdateUnique) Tx() JobRunLookupDataUniqueTxResult { + v := newJobRunLookupDataUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunFindUnique) Delete() jobRunDeleteUnique { - var v jobRunDeleteUnique +func (r jobRunLookupDataFindUnique) Delete() jobRunLookupDataDeleteUnique { + var v jobRunLookupDataDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "JobRun" + v.query.Model = "JobRunLookupData" return v } -type jobRunDeleteUnique struct { +type jobRunLookupDataDeleteUnique struct { query builder.Query } -func (r jobRunDeleteUnique) ExtractQuery() builder.Query { +func (r jobRunLookupDataDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunDeleteUnique) jobRunModel() {} +func (p jobRunLookupDataDeleteUnique) jobRunLookupDataModel() {} -func (r jobRunDeleteUnique) Exec(ctx context.Context) (*JobRunModel, error) { - var v JobRunModel +func (r jobRunLookupDataDeleteUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { + var v JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunDeleteUnique) Tx() JobRunUniqueTxResult { - v := newJobRunUniqueTxResult() +func (r jobRunLookupDataDeleteUnique) Tx() JobRunLookupDataUniqueTxResult { + v := newJobRunLookupDataUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunFindFirst struct { +type jobRunLookupDataFindFirst struct { query builder.Query } -func (r jobRunFindFirst) getQuery() builder.Query { +func (r jobRunLookupDataFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunFindFirst) ExtractQuery() builder.Query { +func (r jobRunLookupDataFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunFindFirst) with() {} -func (r jobRunFindFirst) jobRunModel() {} -func (r jobRunFindFirst) jobRunRelation() {} +func (r jobRunLookupDataFindFirst) with() {} +func (r jobRunLookupDataFindFirst) jobRunLookupDataModel() {} +func (r jobRunLookupDataFindFirst) jobRunLookupDataRelation() {} -func (r jobRunActions) FindFirst( - params ...JobRunWhereParam, -) jobRunFindFirst { - var v jobRunFindFirst +func (r jobRunLookupDataActions) FindFirst( + params ...JobRunLookupDataWhereParam, +) jobRunLookupDataFindFirst { + var v jobRunLookupDataFindFirst v.query = builder.NewQuery() v.query.Engine = r.client @@ -325745,8 +350748,8 @@ func (r jobRunActions) FindFirst( v.query.Method = "findFirst" - v.query.Model = "JobRun" - v.query.Outputs = jobRunOutput + v.query.Model = "JobRunLookupData" + v.query.Outputs = jobRunLookupDataOutput var where []builder.Field for _, q := range params { @@ -325771,7 +350774,7 @@ func (r jobRunActions) FindFirst( return v } -func (r jobRunFindFirst) With(params ...JobRunRelationWith) jobRunFindFirst { +func (r jobRunLookupDataFindFirst) With(params ...JobRunLookupDataRelationWith) jobRunLookupDataFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -325784,7 +350787,7 @@ func (r jobRunFindFirst) With(params ...JobRunRelationWith) jobRunFindFirst { return r } -func (r jobRunFindFirst) Select(params ...jobRunPrismaFields) jobRunFindFirst { +func (r jobRunLookupDataFindFirst) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindFirst { var outputs []builder.Output for _, param := range params { @@ -325798,7 +350801,7 @@ func (r jobRunFindFirst) Select(params ...jobRunPrismaFields) jobRunFindFirst { return r } -func (r jobRunFindFirst) Omit(params ...jobRunPrismaFields) jobRunFindFirst { +func (r jobRunLookupDataFindFirst) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindFirst { var outputs []builder.Output var raw []string @@ -325806,7 +350809,7 @@ func (r jobRunFindFirst) Omit(params ...jobRunPrismaFields) jobRunFindFirst { raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -325817,7 +350820,7 @@ func (r jobRunFindFirst) Omit(params ...jobRunPrismaFields) jobRunFindFirst { return r } -func (r jobRunFindFirst) OrderBy(params ...JobRunOrderByParam) jobRunFindFirst { +func (r jobRunLookupDataFindFirst) OrderBy(params ...JobRunLookupDataOrderByParam) jobRunLookupDataFindFirst { var fields []builder.Field for _, param := range params { @@ -325837,7 +350840,7 @@ func (r jobRunFindFirst) OrderBy(params ...JobRunOrderByParam) jobRunFindFirst { return r } -func (r jobRunFindFirst) Skip(count int) jobRunFindFirst { +func (r jobRunLookupDataFindFirst) Skip(count int) jobRunLookupDataFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -325845,7 +350848,7 @@ func (r jobRunFindFirst) Skip(count int) jobRunFindFirst { return r } -func (r jobRunFindFirst) Take(count int) jobRunFindFirst { +func (r jobRunLookupDataFindFirst) Take(count int) jobRunLookupDataFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -325853,7 +350856,7 @@ func (r jobRunFindFirst) Take(count int) jobRunFindFirst { return r } -func (r jobRunFindFirst) Cursor(cursor JobRunCursorParam) jobRunFindFirst { +func (r jobRunLookupDataFindFirst) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -325861,11 +350864,11 @@ func (r jobRunFindFirst) Cursor(cursor JobRunCursorParam) jobRunFindFirst { return r } -func (r jobRunFindFirst) Exec(ctx context.Context) ( - *JobRunModel, +func (r jobRunLookupDataFindFirst) Exec(ctx context.Context) ( + *JobRunLookupDataModel, error, ) { - var v *JobRunModel + var v *JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325877,11 +350880,11 @@ func (r jobRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunFindFirst) ExecInner(ctx context.Context) ( - *InnerJobRun, +func (r jobRunLookupDataFindFirst) ExecInner(ctx context.Context) ( + *InnerJobRunLookupData, error, ) { - var v *InnerJobRun + var v *InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -325893,26 +350896,26 @@ func (r jobRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunFindMany struct { +type jobRunLookupDataFindMany struct { query builder.Query } -func (r jobRunFindMany) getQuery() builder.Query { +func (r jobRunLookupDataFindMany) getQuery() builder.Query { return r.query } -func (r jobRunFindMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunFindMany) with() {} -func (r jobRunFindMany) jobRunModel() {} -func (r jobRunFindMany) jobRunRelation() {} +func (r jobRunLookupDataFindMany) with() {} +func (r jobRunLookupDataFindMany) jobRunLookupDataModel() {} +func (r jobRunLookupDataFindMany) jobRunLookupDataRelation() {} -func (r jobRunActions) FindMany( - params ...JobRunWhereParam, -) jobRunFindMany { - var v jobRunFindMany +func (r jobRunLookupDataActions) FindMany( + params ...JobRunLookupDataWhereParam, +) jobRunLookupDataFindMany { + var v jobRunLookupDataFindMany v.query = builder.NewQuery() v.query.Engine = r.client @@ -325920,8 +350923,8 @@ func (r jobRunActions) FindMany( v.query.Method = "findMany" - v.query.Model = "JobRun" - v.query.Outputs = jobRunOutput + v.query.Model = "JobRunLookupData" + v.query.Outputs = jobRunLookupDataOutput var where []builder.Field for _, q := range params { @@ -325946,7 +350949,7 @@ func (r jobRunActions) FindMany( return v } -func (r jobRunFindMany) With(params ...JobRunRelationWith) jobRunFindMany { +func (r jobRunLookupDataFindMany) With(params ...JobRunLookupDataRelationWith) jobRunLookupDataFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -325959,7 +350962,7 @@ func (r jobRunFindMany) With(params ...JobRunRelationWith) jobRunFindMany { return r } -func (r jobRunFindMany) Select(params ...jobRunPrismaFields) jobRunFindMany { +func (r jobRunLookupDataFindMany) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindMany { var outputs []builder.Output for _, param := range params { @@ -325973,7 +350976,7 @@ func (r jobRunFindMany) Select(params ...jobRunPrismaFields) jobRunFindMany { return r } -func (r jobRunFindMany) Omit(params ...jobRunPrismaFields) jobRunFindMany { +func (r jobRunLookupDataFindMany) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindMany { var outputs []builder.Output var raw []string @@ -325981,7 +350984,7 @@ func (r jobRunFindMany) Omit(params ...jobRunPrismaFields) jobRunFindMany { raw = append(raw, string(param)) } - for _, output := range jobRunOutput { + for _, output := range jobRunLookupDataOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -325992,7 +350995,7 @@ func (r jobRunFindMany) Omit(params ...jobRunPrismaFields) jobRunFindMany { return r } -func (r jobRunFindMany) OrderBy(params ...JobRunOrderByParam) jobRunFindMany { +func (r jobRunLookupDataFindMany) OrderBy(params ...JobRunLookupDataOrderByParam) jobRunLookupDataFindMany { var fields []builder.Field for _, param := range params { @@ -326012,7 +351015,7 @@ func (r jobRunFindMany) OrderBy(params ...JobRunOrderByParam) jobRunFindMany { return r } -func (r jobRunFindMany) Skip(count int) jobRunFindMany { +func (r jobRunLookupDataFindMany) Skip(count int) jobRunLookupDataFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -326020,7 +351023,7 @@ func (r jobRunFindMany) Skip(count int) jobRunFindMany { return r } -func (r jobRunFindMany) Take(count int) jobRunFindMany { +func (r jobRunLookupDataFindMany) Take(count int) jobRunLookupDataFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -326028,7 +351031,7 @@ func (r jobRunFindMany) Take(count int) jobRunFindMany { return r } -func (r jobRunFindMany) Cursor(cursor JobRunCursorParam) jobRunFindMany { +func (r jobRunLookupDataFindMany) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -326036,11 +351039,11 @@ func (r jobRunFindMany) Cursor(cursor JobRunCursorParam) jobRunFindMany { return r } -func (r jobRunFindMany) Exec(ctx context.Context) ( - []JobRunModel, +func (r jobRunLookupDataFindMany) Exec(ctx context.Context) ( + []JobRunLookupDataModel, error, ) { - var v []JobRunModel + var v []JobRunLookupDataModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326048,11 +351051,11 @@ func (r jobRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunFindMany) ExecInner(ctx context.Context) ( - []InnerJobRun, +func (r jobRunLookupDataFindMany) ExecInner(ctx context.Context) ( + []InnerJobRunLookupData, error, ) { - var v []InnerJobRun + var v []InnerJobRunLookupData if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326060,14 +351063,14 @@ func (r jobRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunFindMany) Update(params ...JobRunSetParam) jobRunUpdateMany { +func (r jobRunLookupDataFindMany) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "JobRun" + r.query.Model = "JobRunLookupData" r.query.Outputs = countOutput - var v jobRunUpdateMany + var v jobRunLookupDataUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -326096,17 +351099,17 @@ func (r jobRunFindMany) Update(params ...JobRunSetParam) jobRunUpdateMany { return v } -type jobRunUpdateMany struct { +type jobRunLookupDataUpdateMany struct { query builder.Query } -func (r jobRunUpdateMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunUpdateMany) jobRunModel() {} +func (r jobRunLookupDataUpdateMany) jobRunLookupDataModel() {} -func (r jobRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunLookupDataUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -326114,36 +351117,36 @@ func (r jobRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobRunUpdateMany) Tx() JobRunManyTxResult { - v := newJobRunManyTxResult() +func (r jobRunLookupDataUpdateMany) Tx() JobRunLookupDataManyTxResult { + v := newJobRunLookupDataManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunFindMany) Delete() jobRunDeleteMany { - var v jobRunDeleteMany +func (r jobRunLookupDataFindMany) Delete() jobRunLookupDataDeleteMany { + var v jobRunLookupDataDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "JobRun" + v.query.Model = "JobRunLookupData" v.query.Outputs = countOutput return v } -type jobRunDeleteMany struct { +type jobRunLookupDataDeleteMany struct { query builder.Query } -func (r jobRunDeleteMany) ExtractQuery() builder.Query { +func (r jobRunLookupDataDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunDeleteMany) jobRunModel() {} +func (p jobRunLookupDataDeleteMany) jobRunLookupDataModel() {} -func (r jobRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r jobRunLookupDataDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -326151,30 +351154,30 @@ func (r jobRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r jobRunDeleteMany) Tx() JobRunManyTxResult { - v := newJobRunManyTxResult() +func (r jobRunLookupDataDeleteMany) Tx() JobRunLookupDataManyTxResult { + v := newJobRunLookupDataManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunLookupDataToJobRunFindUnique struct { +type stepRunToTenantFindUnique struct { query builder.Query } -func (r jobRunLookupDataToJobRunFindUnique) getQuery() builder.Query { +func (r stepRunToTenantFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataToJobRunFindUnique) ExtractQuery() builder.Query { +func (r stepRunToTenantFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToJobRunFindUnique) with() {} -func (r jobRunLookupDataToJobRunFindUnique) jobRunLookupDataModel() {} -func (r jobRunLookupDataToJobRunFindUnique) jobRunLookupDataRelation() {} +func (r stepRunToTenantFindUnique) with() {} +func (r stepRunToTenantFindUnique) stepRunModel() {} +func (r stepRunToTenantFindUnique) stepRunRelation() {} -func (r jobRunLookupDataToJobRunFindUnique) With(params ...JobRunRelationWith) jobRunLookupDataToJobRunFindUnique { +func (r stepRunToTenantFindUnique) With(params ...TenantRelationWith) stepRunToTenantFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -326187,7 +351190,7 @@ func (r jobRunLookupDataToJobRunFindUnique) With(params ...JobRunRelationWith) j return r } -func (r jobRunLookupDataToJobRunFindUnique) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindUnique { +func (r stepRunToTenantFindUnique) Select(params ...stepRunPrismaFields) stepRunToTenantFindUnique { var outputs []builder.Output for _, param := range params { @@ -326201,7 +351204,7 @@ func (r jobRunLookupDataToJobRunFindUnique) Select(params ...jobRunLookupDataPri return r } -func (r jobRunLookupDataToJobRunFindUnique) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindUnique { +func (r stepRunToTenantFindUnique) Omit(params ...stepRunPrismaFields) stepRunToTenantFindUnique { var outputs []builder.Output var raw []string @@ -326209,7 +351212,7 @@ func (r jobRunLookupDataToJobRunFindUnique) Omit(params ...jobRunLookupDataPrism raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -326220,11 +351223,11 @@ func (r jobRunLookupDataToJobRunFindUnique) Omit(params ...jobRunLookupDataPrism return r } -func (r jobRunLookupDataToJobRunFindUnique) Exec(ctx context.Context) ( - *JobRunLookupDataModel, +func (r stepRunToTenantFindUnique) Exec(ctx context.Context) ( + *StepRunModel, error, ) { - var v *JobRunLookupDataModel + var v *StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326236,11 +351239,11 @@ func (r jobRunLookupDataToJobRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToJobRunFindUnique) ExecInner(ctx context.Context) ( - *InnerJobRunLookupData, +func (r stepRunToTenantFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRun, error, ) { - var v *InnerJobRunLookupData + var v *InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326252,12 +351255,12 @@ func (r jobRunLookupDataToJobRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToJobRunFindUnique) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataToJobRunUpdateUnique { +func (r stepRunToTenantFindUnique) Update(params ...StepRunSetParam) stepRunToTenantUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "JobRunLookupData" + r.query.Model = "StepRun" - var v jobRunLookupDataToJobRunUpdateUnique + var v stepRunToTenantUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -326286,83 +351289,83 @@ func (r jobRunLookupDataToJobRunFindUnique) Update(params ...JobRunLookupDataSet return v } -type jobRunLookupDataToJobRunUpdateUnique struct { +type stepRunToTenantUpdateUnique struct { query builder.Query } -func (r jobRunLookupDataToJobRunUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToTenantUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToJobRunUpdateUnique) jobRunLookupDataModel() {} +func (r stepRunToTenantUpdateUnique) stepRunModel() {} -func (r jobRunLookupDataToJobRunUpdateUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { - var v JobRunLookupDataModel +func (r stepRunToTenantUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { + var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunLookupDataToJobRunUpdateUnique) Tx() JobRunLookupDataUniqueTxResult { - v := newJobRunLookupDataUniqueTxResult() +func (r stepRunToTenantUpdateUnique) Tx() StepRunUniqueTxResult { + v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunLookupDataToJobRunFindUnique) Delete() jobRunLookupDataToJobRunDeleteUnique { - var v jobRunLookupDataToJobRunDeleteUnique +func (r stepRunToTenantFindUnique) Delete() stepRunToTenantDeleteUnique { + var v stepRunToTenantDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "JobRunLookupData" + v.query.Model = "StepRun" return v } -type jobRunLookupDataToJobRunDeleteUnique struct { +type stepRunToTenantDeleteUnique struct { query builder.Query } -func (r jobRunLookupDataToJobRunDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToTenantDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunLookupDataToJobRunDeleteUnique) jobRunLookupDataModel() {} +func (p stepRunToTenantDeleteUnique) stepRunModel() {} -func (r jobRunLookupDataToJobRunDeleteUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { - var v JobRunLookupDataModel +func (r stepRunToTenantDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { + var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunLookupDataToJobRunDeleteUnique) Tx() JobRunLookupDataUniqueTxResult { - v := newJobRunLookupDataUniqueTxResult() +func (r stepRunToTenantDeleteUnique) Tx() StepRunUniqueTxResult { + v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunLookupDataToJobRunFindFirst struct { +type stepRunToTenantFindFirst struct { query builder.Query } -func (r jobRunLookupDataToJobRunFindFirst) getQuery() builder.Query { +func (r stepRunToTenantFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataToJobRunFindFirst) ExtractQuery() builder.Query { +func (r stepRunToTenantFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToJobRunFindFirst) with() {} -func (r jobRunLookupDataToJobRunFindFirst) jobRunLookupDataModel() {} -func (r jobRunLookupDataToJobRunFindFirst) jobRunLookupDataRelation() {} +func (r stepRunToTenantFindFirst) with() {} +func (r stepRunToTenantFindFirst) stepRunModel() {} +func (r stepRunToTenantFindFirst) stepRunRelation() {} -func (r jobRunLookupDataToJobRunFindFirst) With(params ...JobRunRelationWith) jobRunLookupDataToJobRunFindFirst { +func (r stepRunToTenantFindFirst) With(params ...TenantRelationWith) stepRunToTenantFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -326375,7 +351378,7 @@ func (r jobRunLookupDataToJobRunFindFirst) With(params ...JobRunRelationWith) jo return r } -func (r jobRunLookupDataToJobRunFindFirst) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindFirst { +func (r stepRunToTenantFindFirst) Select(params ...stepRunPrismaFields) stepRunToTenantFindFirst { var outputs []builder.Output for _, param := range params { @@ -326389,7 +351392,7 @@ func (r jobRunLookupDataToJobRunFindFirst) Select(params ...jobRunLookupDataPris return r } -func (r jobRunLookupDataToJobRunFindFirst) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindFirst { +func (r stepRunToTenantFindFirst) Omit(params ...stepRunPrismaFields) stepRunToTenantFindFirst { var outputs []builder.Output var raw []string @@ -326397,7 +351400,7 @@ func (r jobRunLookupDataToJobRunFindFirst) Omit(params ...jobRunLookupDataPrisma raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -326408,7 +351411,7 @@ func (r jobRunLookupDataToJobRunFindFirst) Omit(params ...jobRunLookupDataPrisma return r } -func (r jobRunLookupDataToJobRunFindFirst) OrderBy(params ...JobRunOrderByParam) jobRunLookupDataToJobRunFindFirst { +func (r stepRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) stepRunToTenantFindFirst { var fields []builder.Field for _, param := range params { @@ -326428,7 +351431,7 @@ func (r jobRunLookupDataToJobRunFindFirst) OrderBy(params ...JobRunOrderByParam) return r } -func (r jobRunLookupDataToJobRunFindFirst) Skip(count int) jobRunLookupDataToJobRunFindFirst { +func (r stepRunToTenantFindFirst) Skip(count int) stepRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -326436,7 +351439,7 @@ func (r jobRunLookupDataToJobRunFindFirst) Skip(count int) jobRunLookupDataToJob return r } -func (r jobRunLookupDataToJobRunFindFirst) Take(count int) jobRunLookupDataToJobRunFindFirst { +func (r stepRunToTenantFindFirst) Take(count int) stepRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -326444,7 +351447,7 @@ func (r jobRunLookupDataToJobRunFindFirst) Take(count int) jobRunLookupDataToJob return r } -func (r jobRunLookupDataToJobRunFindFirst) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataToJobRunFindFirst { +func (r stepRunToTenantFindFirst) Cursor(cursor StepRunCursorParam) stepRunToTenantFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -326452,11 +351455,11 @@ func (r jobRunLookupDataToJobRunFindFirst) Cursor(cursor JobRunLookupDataCursorP return r } -func (r jobRunLookupDataToJobRunFindFirst) Exec(ctx context.Context) ( - *JobRunLookupDataModel, +func (r stepRunToTenantFindFirst) Exec(ctx context.Context) ( + *StepRunModel, error, ) { - var v *JobRunLookupDataModel + var v *StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326468,11 +351471,11 @@ func (r jobRunLookupDataToJobRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToJobRunFindFirst) ExecInner(ctx context.Context) ( - *InnerJobRunLookupData, +func (r stepRunToTenantFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRun, error, ) { - var v *InnerJobRunLookupData + var v *InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326484,23 +351487,23 @@ func (r jobRunLookupDataToJobRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunLookupDataToJobRunFindMany struct { +type stepRunToTenantFindMany struct { query builder.Query } -func (r jobRunLookupDataToJobRunFindMany) getQuery() builder.Query { +func (r stepRunToTenantFindMany) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataToJobRunFindMany) ExtractQuery() builder.Query { +func (r stepRunToTenantFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToJobRunFindMany) with() {} -func (r jobRunLookupDataToJobRunFindMany) jobRunLookupDataModel() {} -func (r jobRunLookupDataToJobRunFindMany) jobRunLookupDataRelation() {} +func (r stepRunToTenantFindMany) with() {} +func (r stepRunToTenantFindMany) stepRunModel() {} +func (r stepRunToTenantFindMany) stepRunRelation() {} -func (r jobRunLookupDataToJobRunFindMany) With(params ...JobRunRelationWith) jobRunLookupDataToJobRunFindMany { +func (r stepRunToTenantFindMany) With(params ...TenantRelationWith) stepRunToTenantFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -326513,7 +351516,7 @@ func (r jobRunLookupDataToJobRunFindMany) With(params ...JobRunRelationWith) job return r } -func (r jobRunLookupDataToJobRunFindMany) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindMany { +func (r stepRunToTenantFindMany) Select(params ...stepRunPrismaFields) stepRunToTenantFindMany { var outputs []builder.Output for _, param := range params { @@ -326527,7 +351530,7 @@ func (r jobRunLookupDataToJobRunFindMany) Select(params ...jobRunLookupDataPrism return r } -func (r jobRunLookupDataToJobRunFindMany) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToJobRunFindMany { +func (r stepRunToTenantFindMany) Omit(params ...stepRunPrismaFields) stepRunToTenantFindMany { var outputs []builder.Output var raw []string @@ -326535,7 +351538,7 @@ func (r jobRunLookupDataToJobRunFindMany) Omit(params ...jobRunLookupDataPrismaF raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -326546,7 +351549,7 @@ func (r jobRunLookupDataToJobRunFindMany) Omit(params ...jobRunLookupDataPrismaF return r } -func (r jobRunLookupDataToJobRunFindMany) OrderBy(params ...JobRunOrderByParam) jobRunLookupDataToJobRunFindMany { +func (r stepRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) stepRunToTenantFindMany { var fields []builder.Field for _, param := range params { @@ -326566,7 +351569,7 @@ func (r jobRunLookupDataToJobRunFindMany) OrderBy(params ...JobRunOrderByParam) return r } -func (r jobRunLookupDataToJobRunFindMany) Skip(count int) jobRunLookupDataToJobRunFindMany { +func (r stepRunToTenantFindMany) Skip(count int) stepRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -326574,7 +351577,7 @@ func (r jobRunLookupDataToJobRunFindMany) Skip(count int) jobRunLookupDataToJobR return r } -func (r jobRunLookupDataToJobRunFindMany) Take(count int) jobRunLookupDataToJobRunFindMany { +func (r stepRunToTenantFindMany) Take(count int) stepRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -326582,7 +351585,7 @@ func (r jobRunLookupDataToJobRunFindMany) Take(count int) jobRunLookupDataToJobR return r } -func (r jobRunLookupDataToJobRunFindMany) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataToJobRunFindMany { +func (r stepRunToTenantFindMany) Cursor(cursor StepRunCursorParam) stepRunToTenantFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -326590,11 +351593,11 @@ func (r jobRunLookupDataToJobRunFindMany) Cursor(cursor JobRunLookupDataCursorPa return r } -func (r jobRunLookupDataToJobRunFindMany) Exec(ctx context.Context) ( - []JobRunLookupDataModel, +func (r stepRunToTenantFindMany) Exec(ctx context.Context) ( + []StepRunModel, error, ) { - var v []JobRunLookupDataModel + var v []StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326602,11 +351605,11 @@ func (r jobRunLookupDataToJobRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToJobRunFindMany) ExecInner(ctx context.Context) ( - []InnerJobRunLookupData, +func (r stepRunToTenantFindMany) ExecInner(ctx context.Context) ( + []InnerStepRun, error, ) { - var v []InnerJobRunLookupData + var v []InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326614,14 +351617,14 @@ func (r jobRunLookupDataToJobRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToJobRunFindMany) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataToJobRunUpdateMany { +func (r stepRunToTenantFindMany) Update(params ...StepRunSetParam) stepRunToTenantUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "JobRunLookupData" + r.query.Model = "StepRun" r.query.Outputs = countOutput - var v jobRunLookupDataToJobRunUpdateMany + var v stepRunToTenantUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -326650,17 +351653,17 @@ func (r jobRunLookupDataToJobRunFindMany) Update(params ...JobRunLookupDataSetPa return v } -type jobRunLookupDataToJobRunUpdateMany struct { +type stepRunToTenantUpdateMany struct { query builder.Query } -func (r jobRunLookupDataToJobRunUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToTenantUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToJobRunUpdateMany) jobRunLookupDataModel() {} +func (r stepRunToTenantUpdateMany) stepRunModel() {} -func (r jobRunLookupDataToJobRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -326668,36 +351671,36 @@ func (r jobRunLookupDataToJobRunUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r jobRunLookupDataToJobRunUpdateMany) Tx() JobRunLookupDataManyTxResult { - v := newJobRunLookupDataManyTxResult() +func (r stepRunToTenantUpdateMany) Tx() StepRunManyTxResult { + v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunLookupDataToJobRunFindMany) Delete() jobRunLookupDataToJobRunDeleteMany { - var v jobRunLookupDataToJobRunDeleteMany +func (r stepRunToTenantFindMany) Delete() stepRunToTenantDeleteMany { + var v stepRunToTenantDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "JobRunLookupData" + v.query.Model = "StepRun" v.query.Outputs = countOutput return v } -type jobRunLookupDataToJobRunDeleteMany struct { +type stepRunToTenantDeleteMany struct { query builder.Query } -func (r jobRunLookupDataToJobRunDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToTenantDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunLookupDataToJobRunDeleteMany) jobRunLookupDataModel() {} +func (p stepRunToTenantDeleteMany) stepRunModel() {} -func (r jobRunLookupDataToJobRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -326705,30 +351708,30 @@ func (r jobRunLookupDataToJobRunDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r jobRunLookupDataToJobRunDeleteMany) Tx() JobRunLookupDataManyTxResult { - v := newJobRunLookupDataManyTxResult() +func (r stepRunToTenantDeleteMany) Tx() StepRunManyTxResult { + v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunLookupDataToTenantFindUnique struct { +type stepRunToJobRunFindUnique struct { query builder.Query } -func (r jobRunLookupDataToTenantFindUnique) getQuery() builder.Query { +func (r stepRunToJobRunFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataToTenantFindUnique) ExtractQuery() builder.Query { +func (r stepRunToJobRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToTenantFindUnique) with() {} -func (r jobRunLookupDataToTenantFindUnique) jobRunLookupDataModel() {} -func (r jobRunLookupDataToTenantFindUnique) jobRunLookupDataRelation() {} +func (r stepRunToJobRunFindUnique) with() {} +func (r stepRunToJobRunFindUnique) stepRunModel() {} +func (r stepRunToJobRunFindUnique) stepRunRelation() {} -func (r jobRunLookupDataToTenantFindUnique) With(params ...TenantRelationWith) jobRunLookupDataToTenantFindUnique { +func (r stepRunToJobRunFindUnique) With(params ...JobRunRelationWith) stepRunToJobRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -326741,7 +351744,7 @@ func (r jobRunLookupDataToTenantFindUnique) With(params ...TenantRelationWith) j return r } -func (r jobRunLookupDataToTenantFindUnique) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindUnique { +func (r stepRunToJobRunFindUnique) Select(params ...stepRunPrismaFields) stepRunToJobRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -326755,7 +351758,7 @@ func (r jobRunLookupDataToTenantFindUnique) Select(params ...jobRunLookupDataPri return r } -func (r jobRunLookupDataToTenantFindUnique) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindUnique { +func (r stepRunToJobRunFindUnique) Omit(params ...stepRunPrismaFields) stepRunToJobRunFindUnique { var outputs []builder.Output var raw []string @@ -326763,7 +351766,7 @@ func (r jobRunLookupDataToTenantFindUnique) Omit(params ...jobRunLookupDataPrism raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -326774,11 +351777,11 @@ func (r jobRunLookupDataToTenantFindUnique) Omit(params ...jobRunLookupDataPrism return r } -func (r jobRunLookupDataToTenantFindUnique) Exec(ctx context.Context) ( - *JobRunLookupDataModel, +func (r stepRunToJobRunFindUnique) Exec(ctx context.Context) ( + *StepRunModel, error, ) { - var v *JobRunLookupDataModel + var v *StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326790,11 +351793,11 @@ func (r jobRunLookupDataToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToTenantFindUnique) ExecInner(ctx context.Context) ( - *InnerJobRunLookupData, +func (r stepRunToJobRunFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRun, error, ) { - var v *InnerJobRunLookupData + var v *InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -326806,12 +351809,12 @@ func (r jobRunLookupDataToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToTenantFindUnique) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataToTenantUpdateUnique { +func (r stepRunToJobRunFindUnique) Update(params ...StepRunSetParam) stepRunToJobRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "JobRunLookupData" + r.query.Model = "StepRun" - var v jobRunLookupDataToTenantUpdateUnique + var v stepRunToJobRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -326840,83 +351843,83 @@ func (r jobRunLookupDataToTenantFindUnique) Update(params ...JobRunLookupDataSet return v } -type jobRunLookupDataToTenantUpdateUnique struct { +type stepRunToJobRunUpdateUnique struct { query builder.Query } -func (r jobRunLookupDataToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToJobRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToTenantUpdateUnique) jobRunLookupDataModel() {} +func (r stepRunToJobRunUpdateUnique) stepRunModel() {} -func (r jobRunLookupDataToTenantUpdateUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { - var v JobRunLookupDataModel +func (r stepRunToJobRunUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { + var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunLookupDataToTenantUpdateUnique) Tx() JobRunLookupDataUniqueTxResult { - v := newJobRunLookupDataUniqueTxResult() +func (r stepRunToJobRunUpdateUnique) Tx() StepRunUniqueTxResult { + v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunLookupDataToTenantFindUnique) Delete() jobRunLookupDataToTenantDeleteUnique { - var v jobRunLookupDataToTenantDeleteUnique +func (r stepRunToJobRunFindUnique) Delete() stepRunToJobRunDeleteUnique { + var v stepRunToJobRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "JobRunLookupData" + v.query.Model = "StepRun" return v } -type jobRunLookupDataToTenantDeleteUnique struct { +type stepRunToJobRunDeleteUnique struct { query builder.Query } -func (r jobRunLookupDataToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToJobRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunLookupDataToTenantDeleteUnique) jobRunLookupDataModel() {} +func (p stepRunToJobRunDeleteUnique) stepRunModel() {} -func (r jobRunLookupDataToTenantDeleteUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { - var v JobRunLookupDataModel +func (r stepRunToJobRunDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { + var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunLookupDataToTenantDeleteUnique) Tx() JobRunLookupDataUniqueTxResult { - v := newJobRunLookupDataUniqueTxResult() +func (r stepRunToJobRunDeleteUnique) Tx() StepRunUniqueTxResult { + v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunLookupDataToTenantFindFirst struct { +type stepRunToJobRunFindFirst struct { query builder.Query } -func (r jobRunLookupDataToTenantFindFirst) getQuery() builder.Query { +func (r stepRunToJobRunFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataToTenantFindFirst) ExtractQuery() builder.Query { +func (r stepRunToJobRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToTenantFindFirst) with() {} -func (r jobRunLookupDataToTenantFindFirst) jobRunLookupDataModel() {} -func (r jobRunLookupDataToTenantFindFirst) jobRunLookupDataRelation() {} +func (r stepRunToJobRunFindFirst) with() {} +func (r stepRunToJobRunFindFirst) stepRunModel() {} +func (r stepRunToJobRunFindFirst) stepRunRelation() {} -func (r jobRunLookupDataToTenantFindFirst) With(params ...TenantRelationWith) jobRunLookupDataToTenantFindFirst { +func (r stepRunToJobRunFindFirst) With(params ...JobRunRelationWith) stepRunToJobRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -326929,7 +351932,7 @@ func (r jobRunLookupDataToTenantFindFirst) With(params ...TenantRelationWith) jo return r } -func (r jobRunLookupDataToTenantFindFirst) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindFirst { +func (r stepRunToJobRunFindFirst) Select(params ...stepRunPrismaFields) stepRunToJobRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -326943,7 +351946,7 @@ func (r jobRunLookupDataToTenantFindFirst) Select(params ...jobRunLookupDataPris return r } -func (r jobRunLookupDataToTenantFindFirst) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindFirst { +func (r stepRunToJobRunFindFirst) Omit(params ...stepRunPrismaFields) stepRunToJobRunFindFirst { var outputs []builder.Output var raw []string @@ -326951,7 +351954,7 @@ func (r jobRunLookupDataToTenantFindFirst) Omit(params ...jobRunLookupDataPrisma raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -326962,7 +351965,7 @@ func (r jobRunLookupDataToTenantFindFirst) Omit(params ...jobRunLookupDataPrisma return r } -func (r jobRunLookupDataToTenantFindFirst) OrderBy(params ...TenantOrderByParam) jobRunLookupDataToTenantFindFirst { +func (r stepRunToJobRunFindFirst) OrderBy(params ...JobRunOrderByParam) stepRunToJobRunFindFirst { var fields []builder.Field for _, param := range params { @@ -326982,7 +351985,7 @@ func (r jobRunLookupDataToTenantFindFirst) OrderBy(params ...TenantOrderByParam) return r } -func (r jobRunLookupDataToTenantFindFirst) Skip(count int) jobRunLookupDataToTenantFindFirst { +func (r stepRunToJobRunFindFirst) Skip(count int) stepRunToJobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -326990,7 +351993,7 @@ func (r jobRunLookupDataToTenantFindFirst) Skip(count int) jobRunLookupDataToTen return r } -func (r jobRunLookupDataToTenantFindFirst) Take(count int) jobRunLookupDataToTenantFindFirst { +func (r stepRunToJobRunFindFirst) Take(count int) stepRunToJobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -326998,7 +352001,7 @@ func (r jobRunLookupDataToTenantFindFirst) Take(count int) jobRunLookupDataToTen return r } -func (r jobRunLookupDataToTenantFindFirst) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataToTenantFindFirst { +func (r stepRunToJobRunFindFirst) Cursor(cursor StepRunCursorParam) stepRunToJobRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -327006,11 +352009,11 @@ func (r jobRunLookupDataToTenantFindFirst) Cursor(cursor JobRunLookupDataCursorP return r } -func (r jobRunLookupDataToTenantFindFirst) Exec(ctx context.Context) ( - *JobRunLookupDataModel, +func (r stepRunToJobRunFindFirst) Exec(ctx context.Context) ( + *StepRunModel, error, ) { - var v *JobRunLookupDataModel + var v *StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327022,11 +352025,11 @@ func (r jobRunLookupDataToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToTenantFindFirst) ExecInner(ctx context.Context) ( - *InnerJobRunLookupData, +func (r stepRunToJobRunFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRun, error, ) { - var v *InnerJobRunLookupData + var v *InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327038,23 +352041,23 @@ func (r jobRunLookupDataToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunLookupDataToTenantFindMany struct { +type stepRunToJobRunFindMany struct { query builder.Query } -func (r jobRunLookupDataToTenantFindMany) getQuery() builder.Query { +func (r stepRunToJobRunFindMany) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataToTenantFindMany) ExtractQuery() builder.Query { +func (r stepRunToJobRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToTenantFindMany) with() {} -func (r jobRunLookupDataToTenantFindMany) jobRunLookupDataModel() {} -func (r jobRunLookupDataToTenantFindMany) jobRunLookupDataRelation() {} +func (r stepRunToJobRunFindMany) with() {} +func (r stepRunToJobRunFindMany) stepRunModel() {} +func (r stepRunToJobRunFindMany) stepRunRelation() {} -func (r jobRunLookupDataToTenantFindMany) With(params ...TenantRelationWith) jobRunLookupDataToTenantFindMany { +func (r stepRunToJobRunFindMany) With(params ...JobRunRelationWith) stepRunToJobRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -327067,7 +352070,7 @@ func (r jobRunLookupDataToTenantFindMany) With(params ...TenantRelationWith) job return r } -func (r jobRunLookupDataToTenantFindMany) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindMany { +func (r stepRunToJobRunFindMany) Select(params ...stepRunPrismaFields) stepRunToJobRunFindMany { var outputs []builder.Output for _, param := range params { @@ -327081,7 +352084,7 @@ func (r jobRunLookupDataToTenantFindMany) Select(params ...jobRunLookupDataPrism return r } -func (r jobRunLookupDataToTenantFindMany) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataToTenantFindMany { +func (r stepRunToJobRunFindMany) Omit(params ...stepRunPrismaFields) stepRunToJobRunFindMany { var outputs []builder.Output var raw []string @@ -327089,7 +352092,7 @@ func (r jobRunLookupDataToTenantFindMany) Omit(params ...jobRunLookupDataPrismaF raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -327100,7 +352103,7 @@ func (r jobRunLookupDataToTenantFindMany) Omit(params ...jobRunLookupDataPrismaF return r } -func (r jobRunLookupDataToTenantFindMany) OrderBy(params ...TenantOrderByParam) jobRunLookupDataToTenantFindMany { +func (r stepRunToJobRunFindMany) OrderBy(params ...JobRunOrderByParam) stepRunToJobRunFindMany { var fields []builder.Field for _, param := range params { @@ -327120,7 +352123,7 @@ func (r jobRunLookupDataToTenantFindMany) OrderBy(params ...TenantOrderByParam) return r } -func (r jobRunLookupDataToTenantFindMany) Skip(count int) jobRunLookupDataToTenantFindMany { +func (r stepRunToJobRunFindMany) Skip(count int) stepRunToJobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -327128,7 +352131,7 @@ func (r jobRunLookupDataToTenantFindMany) Skip(count int) jobRunLookupDataToTena return r } -func (r jobRunLookupDataToTenantFindMany) Take(count int) jobRunLookupDataToTenantFindMany { +func (r stepRunToJobRunFindMany) Take(count int) stepRunToJobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -327136,7 +352139,7 @@ func (r jobRunLookupDataToTenantFindMany) Take(count int) jobRunLookupDataToTena return r } -func (r jobRunLookupDataToTenantFindMany) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataToTenantFindMany { +func (r stepRunToJobRunFindMany) Cursor(cursor StepRunCursorParam) stepRunToJobRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -327144,11 +352147,11 @@ func (r jobRunLookupDataToTenantFindMany) Cursor(cursor JobRunLookupDataCursorPa return r } -func (r jobRunLookupDataToTenantFindMany) Exec(ctx context.Context) ( - []JobRunLookupDataModel, +func (r stepRunToJobRunFindMany) Exec(ctx context.Context) ( + []StepRunModel, error, ) { - var v []JobRunLookupDataModel + var v []StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327156,11 +352159,11 @@ func (r jobRunLookupDataToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToTenantFindMany) ExecInner(ctx context.Context) ( - []InnerJobRunLookupData, +func (r stepRunToJobRunFindMany) ExecInner(ctx context.Context) ( + []InnerStepRun, error, ) { - var v []InnerJobRunLookupData + var v []InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327168,14 +352171,14 @@ func (r jobRunLookupDataToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataToTenantFindMany) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataToTenantUpdateMany { +func (r stepRunToJobRunFindMany) Update(params ...StepRunSetParam) stepRunToJobRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "JobRunLookupData" + r.query.Model = "StepRun" r.query.Outputs = countOutput - var v jobRunLookupDataToTenantUpdateMany + var v stepRunToJobRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -327204,17 +352207,17 @@ func (r jobRunLookupDataToTenantFindMany) Update(params ...JobRunLookupDataSetPa return v } -type jobRunLookupDataToTenantUpdateMany struct { +type stepRunToJobRunUpdateMany struct { query builder.Query } -func (r jobRunLookupDataToTenantUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToJobRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataToTenantUpdateMany) jobRunLookupDataModel() {} +func (r stepRunToJobRunUpdateMany) stepRunModel() {} -func (r jobRunLookupDataToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToJobRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -327222,36 +352225,36 @@ func (r jobRunLookupDataToTenantUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r jobRunLookupDataToTenantUpdateMany) Tx() JobRunLookupDataManyTxResult { - v := newJobRunLookupDataManyTxResult() +func (r stepRunToJobRunUpdateMany) Tx() StepRunManyTxResult { + v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunLookupDataToTenantFindMany) Delete() jobRunLookupDataToTenantDeleteMany { - var v jobRunLookupDataToTenantDeleteMany +func (r stepRunToJobRunFindMany) Delete() stepRunToJobRunDeleteMany { + var v stepRunToJobRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "JobRunLookupData" + v.query.Model = "StepRun" v.query.Outputs = countOutput return v } -type jobRunLookupDataToTenantDeleteMany struct { +type stepRunToJobRunDeleteMany struct { query builder.Query } -func (r jobRunLookupDataToTenantDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToJobRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunLookupDataToTenantDeleteMany) jobRunLookupDataModel() {} +func (p stepRunToJobRunDeleteMany) stepRunModel() {} -func (r jobRunLookupDataToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToJobRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -327259,52 +352262,30 @@ func (r jobRunLookupDataToTenantDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r jobRunLookupDataToTenantDeleteMany) Tx() JobRunLookupDataManyTxResult { - v := newJobRunLookupDataManyTxResult() +func (r stepRunToJobRunDeleteMany) Tx() StepRunManyTxResult { + v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunLookupDataFindUnique struct { +type stepRunToStepFindUnique struct { query builder.Query } -func (r jobRunLookupDataFindUnique) getQuery() builder.Query { +func (r stepRunToStepFindUnique) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataFindUnique) ExtractQuery() builder.Query { +func (r stepRunToStepFindUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataFindUnique) with() {} -func (r jobRunLookupDataFindUnique) jobRunLookupDataModel() {} -func (r jobRunLookupDataFindUnique) jobRunLookupDataRelation() {} - -func (r jobRunLookupDataActions) FindUnique( - params JobRunLookupDataEqualsUniqueWhereParam, -) jobRunLookupDataFindUnique { - var v jobRunLookupDataFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "JobRunLookupData" - v.query.Outputs = jobRunLookupDataOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r stepRunToStepFindUnique) with() {} +func (r stepRunToStepFindUnique) stepRunModel() {} +func (r stepRunToStepFindUnique) stepRunRelation() {} -func (r jobRunLookupDataFindUnique) With(params ...JobRunLookupDataRelationWith) jobRunLookupDataFindUnique { +func (r stepRunToStepFindUnique) With(params ...StepRelationWith) stepRunToStepFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -327317,7 +352298,7 @@ func (r jobRunLookupDataFindUnique) With(params ...JobRunLookupDataRelationWith) return r } -func (r jobRunLookupDataFindUnique) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindUnique { +func (r stepRunToStepFindUnique) Select(params ...stepRunPrismaFields) stepRunToStepFindUnique { var outputs []builder.Output for _, param := range params { @@ -327331,7 +352312,7 @@ func (r jobRunLookupDataFindUnique) Select(params ...jobRunLookupDataPrismaField return r } -func (r jobRunLookupDataFindUnique) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindUnique { +func (r stepRunToStepFindUnique) Omit(params ...stepRunPrismaFields) stepRunToStepFindUnique { var outputs []builder.Output var raw []string @@ -327339,7 +352320,7 @@ func (r jobRunLookupDataFindUnique) Omit(params ...jobRunLookupDataPrismaFields) raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -327350,11 +352331,11 @@ func (r jobRunLookupDataFindUnique) Omit(params ...jobRunLookupDataPrismaFields) return r } -func (r jobRunLookupDataFindUnique) Exec(ctx context.Context) ( - *JobRunLookupDataModel, +func (r stepRunToStepFindUnique) Exec(ctx context.Context) ( + *StepRunModel, error, ) { - var v *JobRunLookupDataModel + var v *StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327366,11 +352347,11 @@ func (r jobRunLookupDataFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataFindUnique) ExecInner(ctx context.Context) ( - *InnerJobRunLookupData, +func (r stepRunToStepFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRun, error, ) { - var v *InnerJobRunLookupData + var v *InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327382,12 +352363,12 @@ func (r jobRunLookupDataFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataFindUnique) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataUpdateUnique { +func (r stepRunToStepFindUnique) Update(params ...StepRunSetParam) stepRunToStepUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "JobRunLookupData" + r.query.Model = "StepRun" - var v jobRunLookupDataUpdateUnique + var v stepRunToStepUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -327416,120 +352397,83 @@ func (r jobRunLookupDataFindUnique) Update(params ...JobRunLookupDataSetParam) j return v } -type jobRunLookupDataUpdateUnique struct { +type stepRunToStepUpdateUnique struct { query builder.Query } -func (r jobRunLookupDataUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToStepUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataUpdateUnique) jobRunLookupDataModel() {} +func (r stepRunToStepUpdateUnique) stepRunModel() {} -func (r jobRunLookupDataUpdateUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { - var v JobRunLookupDataModel +func (r stepRunToStepUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { + var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunLookupDataUpdateUnique) Tx() JobRunLookupDataUniqueTxResult { - v := newJobRunLookupDataUniqueTxResult() +func (r stepRunToStepUpdateUnique) Tx() StepRunUniqueTxResult { + v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunLookupDataFindUnique) Delete() jobRunLookupDataDeleteUnique { - var v jobRunLookupDataDeleteUnique +func (r stepRunToStepFindUnique) Delete() stepRunToStepDeleteUnique { + var v stepRunToStepDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "JobRunLookupData" + v.query.Model = "StepRun" return v } -type jobRunLookupDataDeleteUnique struct { +type stepRunToStepDeleteUnique struct { query builder.Query } -func (r jobRunLookupDataDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToStepDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p jobRunLookupDataDeleteUnique) jobRunLookupDataModel() {} +func (p stepRunToStepDeleteUnique) stepRunModel() {} -func (r jobRunLookupDataDeleteUnique) Exec(ctx context.Context) (*JobRunLookupDataModel, error) { - var v JobRunLookupDataModel +func (r stepRunToStepDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { + var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r jobRunLookupDataDeleteUnique) Tx() JobRunLookupDataUniqueTxResult { - v := newJobRunLookupDataUniqueTxResult() +func (r stepRunToStepDeleteUnique) Tx() StepRunUniqueTxResult { + v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type jobRunLookupDataFindFirst struct { +type stepRunToStepFindFirst struct { query builder.Query } -func (r jobRunLookupDataFindFirst) getQuery() builder.Query { +func (r stepRunToStepFindFirst) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataFindFirst) ExtractQuery() builder.Query { +func (r stepRunToStepFindFirst) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataFindFirst) with() {} -func (r jobRunLookupDataFindFirst) jobRunLookupDataModel() {} -func (r jobRunLookupDataFindFirst) jobRunLookupDataRelation() {} - -func (r jobRunLookupDataActions) FindFirst( - params ...JobRunLookupDataWhereParam, -) jobRunLookupDataFindFirst { - var v jobRunLookupDataFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "JobRunLookupData" - v.query.Outputs = jobRunLookupDataOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r stepRunToStepFindFirst) with() {} +func (r stepRunToStepFindFirst) stepRunModel() {} +func (r stepRunToStepFindFirst) stepRunRelation() {} -func (r jobRunLookupDataFindFirst) With(params ...JobRunLookupDataRelationWith) jobRunLookupDataFindFirst { +func (r stepRunToStepFindFirst) With(params ...StepRelationWith) stepRunToStepFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -327542,7 +352486,7 @@ func (r jobRunLookupDataFindFirst) With(params ...JobRunLookupDataRelationWith) return r } -func (r jobRunLookupDataFindFirst) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindFirst { +func (r stepRunToStepFindFirst) Select(params ...stepRunPrismaFields) stepRunToStepFindFirst { var outputs []builder.Output for _, param := range params { @@ -327556,7 +352500,7 @@ func (r jobRunLookupDataFindFirst) Select(params ...jobRunLookupDataPrismaFields return r } -func (r jobRunLookupDataFindFirst) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindFirst { +func (r stepRunToStepFindFirst) Omit(params ...stepRunPrismaFields) stepRunToStepFindFirst { var outputs []builder.Output var raw []string @@ -327564,7 +352508,7 @@ func (r jobRunLookupDataFindFirst) Omit(params ...jobRunLookupDataPrismaFields) raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -327575,7 +352519,7 @@ func (r jobRunLookupDataFindFirst) Omit(params ...jobRunLookupDataPrismaFields) return r } -func (r jobRunLookupDataFindFirst) OrderBy(params ...JobRunLookupDataOrderByParam) jobRunLookupDataFindFirst { +func (r stepRunToStepFindFirst) OrderBy(params ...StepOrderByParam) stepRunToStepFindFirst { var fields []builder.Field for _, param := range params { @@ -327595,7 +352539,7 @@ func (r jobRunLookupDataFindFirst) OrderBy(params ...JobRunLookupDataOrderByPara return r } -func (r jobRunLookupDataFindFirst) Skip(count int) jobRunLookupDataFindFirst { +func (r stepRunToStepFindFirst) Skip(count int) stepRunToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -327603,7 +352547,7 @@ func (r jobRunLookupDataFindFirst) Skip(count int) jobRunLookupDataFindFirst { return r } -func (r jobRunLookupDataFindFirst) Take(count int) jobRunLookupDataFindFirst { +func (r stepRunToStepFindFirst) Take(count int) stepRunToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -327611,7 +352555,7 @@ func (r jobRunLookupDataFindFirst) Take(count int) jobRunLookupDataFindFirst { return r } -func (r jobRunLookupDataFindFirst) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataFindFirst { +func (r stepRunToStepFindFirst) Cursor(cursor StepRunCursorParam) stepRunToStepFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -327619,11 +352563,11 @@ func (r jobRunLookupDataFindFirst) Cursor(cursor JobRunLookupDataCursorParam) jo return r } -func (r jobRunLookupDataFindFirst) Exec(ctx context.Context) ( - *JobRunLookupDataModel, +func (r stepRunToStepFindFirst) Exec(ctx context.Context) ( + *StepRunModel, error, ) { - var v *JobRunLookupDataModel + var v *StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327635,11 +352579,11 @@ func (r jobRunLookupDataFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataFindFirst) ExecInner(ctx context.Context) ( - *InnerJobRunLookupData, +func (r stepRunToStepFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRun, error, ) { - var v *InnerJobRunLookupData + var v *InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327651,60 +352595,23 @@ func (r jobRunLookupDataFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type jobRunLookupDataFindMany struct { +type stepRunToStepFindMany struct { query builder.Query } -func (r jobRunLookupDataFindMany) getQuery() builder.Query { +func (r stepRunToStepFindMany) getQuery() builder.Query { return r.query } -func (r jobRunLookupDataFindMany) ExtractQuery() builder.Query { +func (r stepRunToStepFindMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataFindMany) with() {} -func (r jobRunLookupDataFindMany) jobRunLookupDataModel() {} -func (r jobRunLookupDataFindMany) jobRunLookupDataRelation() {} - -func (r jobRunLookupDataActions) FindMany( - params ...JobRunLookupDataWhereParam, -) jobRunLookupDataFindMany { - var v jobRunLookupDataFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "JobRunLookupData" - v.query.Outputs = jobRunLookupDataOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r stepRunToStepFindMany) with() {} +func (r stepRunToStepFindMany) stepRunModel() {} +func (r stepRunToStepFindMany) stepRunRelation() {} -func (r jobRunLookupDataFindMany) With(params ...JobRunLookupDataRelationWith) jobRunLookupDataFindMany { +func (r stepRunToStepFindMany) With(params ...StepRelationWith) stepRunToStepFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -327717,7 +352624,7 @@ func (r jobRunLookupDataFindMany) With(params ...JobRunLookupDataRelationWith) j return r } -func (r jobRunLookupDataFindMany) Select(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindMany { +func (r stepRunToStepFindMany) Select(params ...stepRunPrismaFields) stepRunToStepFindMany { var outputs []builder.Output for _, param := range params { @@ -327731,7 +352638,7 @@ func (r jobRunLookupDataFindMany) Select(params ...jobRunLookupDataPrismaFields) return r } -func (r jobRunLookupDataFindMany) Omit(params ...jobRunLookupDataPrismaFields) jobRunLookupDataFindMany { +func (r stepRunToStepFindMany) Omit(params ...stepRunPrismaFields) stepRunToStepFindMany { var outputs []builder.Output var raw []string @@ -327739,7 +352646,7 @@ func (r jobRunLookupDataFindMany) Omit(params ...jobRunLookupDataPrismaFields) j raw = append(raw, string(param)) } - for _, output := range jobRunLookupDataOutput { + for _, output := range stepRunOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -327750,7 +352657,7 @@ func (r jobRunLookupDataFindMany) Omit(params ...jobRunLookupDataPrismaFields) j return r } -func (r jobRunLookupDataFindMany) OrderBy(params ...JobRunLookupDataOrderByParam) jobRunLookupDataFindMany { +func (r stepRunToStepFindMany) OrderBy(params ...StepOrderByParam) stepRunToStepFindMany { var fields []builder.Field for _, param := range params { @@ -327770,7 +352677,7 @@ func (r jobRunLookupDataFindMany) OrderBy(params ...JobRunLookupDataOrderByParam return r } -func (r jobRunLookupDataFindMany) Skip(count int) jobRunLookupDataFindMany { +func (r stepRunToStepFindMany) Skip(count int) stepRunToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -327778,7 +352685,7 @@ func (r jobRunLookupDataFindMany) Skip(count int) jobRunLookupDataFindMany { return r } -func (r jobRunLookupDataFindMany) Take(count int) jobRunLookupDataFindMany { +func (r stepRunToStepFindMany) Take(count int) stepRunToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -327786,7 +352693,7 @@ func (r jobRunLookupDataFindMany) Take(count int) jobRunLookupDataFindMany { return r } -func (r jobRunLookupDataFindMany) Cursor(cursor JobRunLookupDataCursorParam) jobRunLookupDataFindMany { +func (r stepRunToStepFindMany) Cursor(cursor StepRunCursorParam) stepRunToStepFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -327794,11 +352701,11 @@ func (r jobRunLookupDataFindMany) Cursor(cursor JobRunLookupDataCursorParam) job return r } -func (r jobRunLookupDataFindMany) Exec(ctx context.Context) ( - []JobRunLookupDataModel, +func (r stepRunToStepFindMany) Exec(ctx context.Context) ( + []StepRunModel, error, ) { - var v []JobRunLookupDataModel + var v []StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327806,11 +352713,11 @@ func (r jobRunLookupDataFindMany) Exec(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataFindMany) ExecInner(ctx context.Context) ( - []InnerJobRunLookupData, +func (r stepRunToStepFindMany) ExecInner(ctx context.Context) ( + []InnerStepRun, error, ) { - var v []InnerJobRunLookupData + var v []InnerStepRun if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -327818,14 +352725,14 @@ func (r jobRunLookupDataFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r jobRunLookupDataFindMany) Update(params ...JobRunLookupDataSetParam) jobRunLookupDataUpdateMany { +func (r stepRunToStepFindMany) Update(params ...StepRunSetParam) stepRunToStepUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "JobRunLookupData" + r.query.Model = "StepRun" r.query.Outputs = countOutput - var v jobRunLookupDataUpdateMany + var v stepRunToStepUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -327854,17 +352761,17 @@ func (r jobRunLookupDataFindMany) Update(params ...JobRunLookupDataSetParam) job return v } -type jobRunLookupDataUpdateMany struct { +type stepRunToStepUpdateMany struct { query builder.Query } -func (r jobRunLookupDataUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToStepUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r jobRunLookupDataUpdateMany) jobRunLookupDataModel() {} +func (r stepRunToStepUpdateMany) stepRunModel() {} -func (r jobRunLookupDataUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToStepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -327872,36 +352779,36 @@ func (r jobRunLookupDataUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r jobRunLookupDataUpdateMany) Tx() JobRunLookupDataManyTxResult { - v := newJobRunLookupDataManyTxResult() +func (r stepRunToStepUpdateMany) Tx() StepRunManyTxResult { + v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r jobRunLookupDataFindMany) Delete() jobRunLookupDataDeleteMany { - var v jobRunLookupDataDeleteMany +func (r stepRunToStepFindMany) Delete() stepRunToStepDeleteMany { + var v stepRunToStepDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "JobRunLookupData" + v.query.Model = "StepRun" v.query.Outputs = countOutput return v } -type jobRunLookupDataDeleteMany struct { +type stepRunToStepDeleteMany struct { query builder.Query } -func (r jobRunLookupDataDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToStepDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p jobRunLookupDataDeleteMany) jobRunLookupDataModel() {} +func (p stepRunToStepDeleteMany) stepRunModel() {} -func (r jobRunLookupDataDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToStepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -327909,30 +352816,30 @@ func (r jobRunLookupDataDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r jobRunLookupDataDeleteMany) Tx() JobRunLookupDataManyTxResult { - v := newJobRunLookupDataManyTxResult() +func (r stepRunToStepDeleteMany) Tx() StepRunManyTxResult { + v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToTenantFindUnique struct { +type stepRunToChildrenFindUnique struct { query builder.Query } -func (r stepRunToTenantFindUnique) getQuery() builder.Query { +func (r stepRunToChildrenFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToTenantFindUnique) ExtractQuery() builder.Query { +func (r stepRunToChildrenFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTenantFindUnique) with() {} -func (r stepRunToTenantFindUnique) stepRunModel() {} -func (r stepRunToTenantFindUnique) stepRunRelation() {} +func (r stepRunToChildrenFindUnique) with() {} +func (r stepRunToChildrenFindUnique) stepRunModel() {} +func (r stepRunToChildrenFindUnique) stepRunRelation() {} -func (r stepRunToTenantFindUnique) With(params ...TenantRelationWith) stepRunToTenantFindUnique { +func (r stepRunToChildrenFindUnique) With(params ...StepRunRelationWith) stepRunToChildrenFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -327945,7 +352852,7 @@ func (r stepRunToTenantFindUnique) With(params ...TenantRelationWith) stepRunToT return r } -func (r stepRunToTenantFindUnique) Select(params ...stepRunPrismaFields) stepRunToTenantFindUnique { +func (r stepRunToChildrenFindUnique) Select(params ...stepRunPrismaFields) stepRunToChildrenFindUnique { var outputs []builder.Output for _, param := range params { @@ -327959,7 +352866,7 @@ func (r stepRunToTenantFindUnique) Select(params ...stepRunPrismaFields) stepRun return r } -func (r stepRunToTenantFindUnique) Omit(params ...stepRunPrismaFields) stepRunToTenantFindUnique { +func (r stepRunToChildrenFindUnique) Omit(params ...stepRunPrismaFields) stepRunToChildrenFindUnique { var outputs []builder.Output var raw []string @@ -327978,7 +352885,7 @@ func (r stepRunToTenantFindUnique) Omit(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToTenantFindUnique) Exec(ctx context.Context) ( +func (r stepRunToChildrenFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -327994,7 +352901,7 @@ func (r stepRunToTenantFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToTenantFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToChildrenFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -328010,12 +352917,12 @@ func (r stepRunToTenantFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToTenantFindUnique) Update(params ...StepRunSetParam) stepRunToTenantUpdateUnique { +func (r stepRunToChildrenFindUnique) Update(params ...StepRunSetParam) stepRunToChildrenUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToTenantUpdateUnique + var v stepRunToChildrenUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -328044,17 +352951,17 @@ func (r stepRunToTenantFindUnique) Update(params ...StepRunSetParam) stepRunToTe return v } -type stepRunToTenantUpdateUnique struct { +type stepRunToChildrenUpdateUnique struct { query builder.Query } -func (r stepRunToTenantUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToChildrenUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTenantUpdateUnique) stepRunModel() {} +func (r stepRunToChildrenUpdateUnique) stepRunModel() {} -func (r stepRunToTenantUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToChildrenUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -328062,15 +352969,15 @@ func (r stepRunToTenantUpdateUnique) Exec(ctx context.Context) (*StepRunModel, e return &v, nil } -func (r stepRunToTenantUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToChildrenUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToTenantFindUnique) Delete() stepRunToTenantDeleteUnique { - var v stepRunToTenantDeleteUnique +func (r stepRunToChildrenFindUnique) Delete() stepRunToChildrenDeleteUnique { + var v stepRunToChildrenDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -328079,17 +352986,17 @@ func (r stepRunToTenantFindUnique) Delete() stepRunToTenantDeleteUnique { return v } -type stepRunToTenantDeleteUnique struct { +type stepRunToChildrenDeleteUnique struct { query builder.Query } -func (r stepRunToTenantDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToChildrenDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToTenantDeleteUnique) stepRunModel() {} +func (p stepRunToChildrenDeleteUnique) stepRunModel() {} -func (r stepRunToTenantDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToChildrenDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -328097,30 +353004,30 @@ func (r stepRunToTenantDeleteUnique) Exec(ctx context.Context) (*StepRunModel, e return &v, nil } -func (r stepRunToTenantDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToChildrenDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToTenantFindFirst struct { +type stepRunToChildrenFindFirst struct { query builder.Query } -func (r stepRunToTenantFindFirst) getQuery() builder.Query { +func (r stepRunToChildrenFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToTenantFindFirst) ExtractQuery() builder.Query { +func (r stepRunToChildrenFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTenantFindFirst) with() {} -func (r stepRunToTenantFindFirst) stepRunModel() {} -func (r stepRunToTenantFindFirst) stepRunRelation() {} +func (r stepRunToChildrenFindFirst) with() {} +func (r stepRunToChildrenFindFirst) stepRunModel() {} +func (r stepRunToChildrenFindFirst) stepRunRelation() {} -func (r stepRunToTenantFindFirst) With(params ...TenantRelationWith) stepRunToTenantFindFirst { +func (r stepRunToChildrenFindFirst) With(params ...StepRunRelationWith) stepRunToChildrenFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -328133,7 +353040,7 @@ func (r stepRunToTenantFindFirst) With(params ...TenantRelationWith) stepRunToTe return r } -func (r stepRunToTenantFindFirst) Select(params ...stepRunPrismaFields) stepRunToTenantFindFirst { +func (r stepRunToChildrenFindFirst) Select(params ...stepRunPrismaFields) stepRunToChildrenFindFirst { var outputs []builder.Output for _, param := range params { @@ -328147,7 +353054,7 @@ func (r stepRunToTenantFindFirst) Select(params ...stepRunPrismaFields) stepRunT return r } -func (r stepRunToTenantFindFirst) Omit(params ...stepRunPrismaFields) stepRunToTenantFindFirst { +func (r stepRunToChildrenFindFirst) Omit(params ...stepRunPrismaFields) stepRunToChildrenFindFirst { var outputs []builder.Output var raw []string @@ -328166,7 +353073,7 @@ func (r stepRunToTenantFindFirst) Omit(params ...stepRunPrismaFields) stepRunToT return r } -func (r stepRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) stepRunToTenantFindFirst { +func (r stepRunToChildrenFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunToChildrenFindFirst { var fields []builder.Field for _, param := range params { @@ -328186,7 +353093,7 @@ func (r stepRunToTenantFindFirst) OrderBy(params ...TenantOrderByParam) stepRunT return r } -func (r stepRunToTenantFindFirst) Skip(count int) stepRunToTenantFindFirst { +func (r stepRunToChildrenFindFirst) Skip(count int) stepRunToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -328194,7 +353101,7 @@ func (r stepRunToTenantFindFirst) Skip(count int) stepRunToTenantFindFirst { return r } -func (r stepRunToTenantFindFirst) Take(count int) stepRunToTenantFindFirst { +func (r stepRunToChildrenFindFirst) Take(count int) stepRunToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -328202,7 +353109,7 @@ func (r stepRunToTenantFindFirst) Take(count int) stepRunToTenantFindFirst { return r } -func (r stepRunToTenantFindFirst) Cursor(cursor StepRunCursorParam) stepRunToTenantFindFirst { +func (r stepRunToChildrenFindFirst) Cursor(cursor StepRunCursorParam) stepRunToChildrenFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -328210,7 +353117,7 @@ func (r stepRunToTenantFindFirst) Cursor(cursor StepRunCursorParam) stepRunToTen return r } -func (r stepRunToTenantFindFirst) Exec(ctx context.Context) ( +func (r stepRunToChildrenFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -328226,7 +353133,7 @@ func (r stepRunToTenantFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToTenantFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToChildrenFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -328242,23 +353149,23 @@ func (r stepRunToTenantFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToTenantFindMany struct { +type stepRunToChildrenFindMany struct { query builder.Query } -func (r stepRunToTenantFindMany) getQuery() builder.Query { +func (r stepRunToChildrenFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToTenantFindMany) ExtractQuery() builder.Query { +func (r stepRunToChildrenFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTenantFindMany) with() {} -func (r stepRunToTenantFindMany) stepRunModel() {} -func (r stepRunToTenantFindMany) stepRunRelation() {} +func (r stepRunToChildrenFindMany) with() {} +func (r stepRunToChildrenFindMany) stepRunModel() {} +func (r stepRunToChildrenFindMany) stepRunRelation() {} -func (r stepRunToTenantFindMany) With(params ...TenantRelationWith) stepRunToTenantFindMany { +func (r stepRunToChildrenFindMany) With(params ...StepRunRelationWith) stepRunToChildrenFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -328271,7 +353178,7 @@ func (r stepRunToTenantFindMany) With(params ...TenantRelationWith) stepRunToTen return r } -func (r stepRunToTenantFindMany) Select(params ...stepRunPrismaFields) stepRunToTenantFindMany { +func (r stepRunToChildrenFindMany) Select(params ...stepRunPrismaFields) stepRunToChildrenFindMany { var outputs []builder.Output for _, param := range params { @@ -328285,7 +353192,7 @@ func (r stepRunToTenantFindMany) Select(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToTenantFindMany) Omit(params ...stepRunPrismaFields) stepRunToTenantFindMany { +func (r stepRunToChildrenFindMany) Omit(params ...stepRunPrismaFields) stepRunToChildrenFindMany { var outputs []builder.Output var raw []string @@ -328304,7 +353211,7 @@ func (r stepRunToTenantFindMany) Omit(params ...stepRunPrismaFields) stepRunToTe return r } -func (r stepRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) stepRunToTenantFindMany { +func (r stepRunToChildrenFindMany) OrderBy(params ...StepRunOrderByParam) stepRunToChildrenFindMany { var fields []builder.Field for _, param := range params { @@ -328324,7 +353231,7 @@ func (r stepRunToTenantFindMany) OrderBy(params ...TenantOrderByParam) stepRunTo return r } -func (r stepRunToTenantFindMany) Skip(count int) stepRunToTenantFindMany { +func (r stepRunToChildrenFindMany) Skip(count int) stepRunToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -328332,7 +353239,7 @@ func (r stepRunToTenantFindMany) Skip(count int) stepRunToTenantFindMany { return r } -func (r stepRunToTenantFindMany) Take(count int) stepRunToTenantFindMany { +func (r stepRunToChildrenFindMany) Take(count int) stepRunToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -328340,7 +353247,7 @@ func (r stepRunToTenantFindMany) Take(count int) stepRunToTenantFindMany { return r } -func (r stepRunToTenantFindMany) Cursor(cursor StepRunCursorParam) stepRunToTenantFindMany { +func (r stepRunToChildrenFindMany) Cursor(cursor StepRunCursorParam) stepRunToChildrenFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -328348,7 +353255,7 @@ func (r stepRunToTenantFindMany) Cursor(cursor StepRunCursorParam) stepRunToTena return r } -func (r stepRunToTenantFindMany) Exec(ctx context.Context) ( +func (r stepRunToChildrenFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -328360,7 +353267,7 @@ func (r stepRunToTenantFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToTenantFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToChildrenFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -328372,14 +353279,14 @@ func (r stepRunToTenantFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToTenantFindMany) Update(params ...StepRunSetParam) stepRunToTenantUpdateMany { +func (r stepRunToChildrenFindMany) Update(params ...StepRunSetParam) stepRunToChildrenUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToTenantUpdateMany + var v stepRunToChildrenUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -328408,17 +353315,17 @@ func (r stepRunToTenantFindMany) Update(params ...StepRunSetParam) stepRunToTena return v } -type stepRunToTenantUpdateMany struct { +type stepRunToChildrenUpdateMany struct { query builder.Query } -func (r stepRunToTenantUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToChildrenUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTenantUpdateMany) stepRunModel() {} +func (r stepRunToChildrenUpdateMany) stepRunModel() {} -func (r stepRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -328426,15 +353333,15 @@ func (r stepRunToTenantUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToTenantUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToChildrenUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToTenantFindMany) Delete() stepRunToTenantDeleteMany { - var v stepRunToTenantDeleteMany +func (r stepRunToChildrenFindMany) Delete() stepRunToChildrenDeleteMany { + var v stepRunToChildrenDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -328445,17 +353352,17 @@ func (r stepRunToTenantFindMany) Delete() stepRunToTenantDeleteMany { return v } -type stepRunToTenantDeleteMany struct { +type stepRunToChildrenDeleteMany struct { query builder.Query } -func (r stepRunToTenantDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToChildrenDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToTenantDeleteMany) stepRunModel() {} +func (p stepRunToChildrenDeleteMany) stepRunModel() {} -func (r stepRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -328463,30 +353370,30 @@ func (r stepRunToTenantDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToTenantDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToChildrenDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToJobRunFindUnique struct { +type stepRunToParentsFindUnique struct { query builder.Query } -func (r stepRunToJobRunFindUnique) getQuery() builder.Query { +func (r stepRunToParentsFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToJobRunFindUnique) ExtractQuery() builder.Query { +func (r stepRunToParentsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToJobRunFindUnique) with() {} -func (r stepRunToJobRunFindUnique) stepRunModel() {} -func (r stepRunToJobRunFindUnique) stepRunRelation() {} +func (r stepRunToParentsFindUnique) with() {} +func (r stepRunToParentsFindUnique) stepRunModel() {} +func (r stepRunToParentsFindUnique) stepRunRelation() {} -func (r stepRunToJobRunFindUnique) With(params ...JobRunRelationWith) stepRunToJobRunFindUnique { +func (r stepRunToParentsFindUnique) With(params ...StepRunRelationWith) stepRunToParentsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -328499,7 +353406,7 @@ func (r stepRunToJobRunFindUnique) With(params ...JobRunRelationWith) stepRunToJ return r } -func (r stepRunToJobRunFindUnique) Select(params ...stepRunPrismaFields) stepRunToJobRunFindUnique { +func (r stepRunToParentsFindUnique) Select(params ...stepRunPrismaFields) stepRunToParentsFindUnique { var outputs []builder.Output for _, param := range params { @@ -328513,7 +353420,7 @@ func (r stepRunToJobRunFindUnique) Select(params ...stepRunPrismaFields) stepRun return r } -func (r stepRunToJobRunFindUnique) Omit(params ...stepRunPrismaFields) stepRunToJobRunFindUnique { +func (r stepRunToParentsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToParentsFindUnique { var outputs []builder.Output var raw []string @@ -328532,7 +353439,7 @@ func (r stepRunToJobRunFindUnique) Omit(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToJobRunFindUnique) Exec(ctx context.Context) ( +func (r stepRunToParentsFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -328548,7 +353455,7 @@ func (r stepRunToJobRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToJobRunFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToParentsFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -328564,12 +353471,12 @@ func (r stepRunToJobRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToJobRunFindUnique) Update(params ...StepRunSetParam) stepRunToJobRunUpdateUnique { +func (r stepRunToParentsFindUnique) Update(params ...StepRunSetParam) stepRunToParentsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToJobRunUpdateUnique + var v stepRunToParentsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -328598,17 +353505,17 @@ func (r stepRunToJobRunFindUnique) Update(params ...StepRunSetParam) stepRunToJo return v } -type stepRunToJobRunUpdateUnique struct { +type stepRunToParentsUpdateUnique struct { query builder.Query } -func (r stepRunToJobRunUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToParentsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToJobRunUpdateUnique) stepRunModel() {} +func (r stepRunToParentsUpdateUnique) stepRunModel() {} -func (r stepRunToJobRunUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToParentsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -328616,15 +353523,15 @@ func (r stepRunToJobRunUpdateUnique) Exec(ctx context.Context) (*StepRunModel, e return &v, nil } -func (r stepRunToJobRunUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToParentsUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToJobRunFindUnique) Delete() stepRunToJobRunDeleteUnique { - var v stepRunToJobRunDeleteUnique +func (r stepRunToParentsFindUnique) Delete() stepRunToParentsDeleteUnique { + var v stepRunToParentsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -328633,17 +353540,17 @@ func (r stepRunToJobRunFindUnique) Delete() stepRunToJobRunDeleteUnique { return v } -type stepRunToJobRunDeleteUnique struct { +type stepRunToParentsDeleteUnique struct { query builder.Query } -func (r stepRunToJobRunDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToParentsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToJobRunDeleteUnique) stepRunModel() {} +func (p stepRunToParentsDeleteUnique) stepRunModel() {} -func (r stepRunToJobRunDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToParentsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -328651,30 +353558,30 @@ func (r stepRunToJobRunDeleteUnique) Exec(ctx context.Context) (*StepRunModel, e return &v, nil } -func (r stepRunToJobRunDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToParentsDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToJobRunFindFirst struct { +type stepRunToParentsFindFirst struct { query builder.Query } -func (r stepRunToJobRunFindFirst) getQuery() builder.Query { +func (r stepRunToParentsFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToJobRunFindFirst) ExtractQuery() builder.Query { +func (r stepRunToParentsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToJobRunFindFirst) with() {} -func (r stepRunToJobRunFindFirst) stepRunModel() {} -func (r stepRunToJobRunFindFirst) stepRunRelation() {} +func (r stepRunToParentsFindFirst) with() {} +func (r stepRunToParentsFindFirst) stepRunModel() {} +func (r stepRunToParentsFindFirst) stepRunRelation() {} -func (r stepRunToJobRunFindFirst) With(params ...JobRunRelationWith) stepRunToJobRunFindFirst { +func (r stepRunToParentsFindFirst) With(params ...StepRunRelationWith) stepRunToParentsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -328687,7 +353594,7 @@ func (r stepRunToJobRunFindFirst) With(params ...JobRunRelationWith) stepRunToJo return r } -func (r stepRunToJobRunFindFirst) Select(params ...stepRunPrismaFields) stepRunToJobRunFindFirst { +func (r stepRunToParentsFindFirst) Select(params ...stepRunPrismaFields) stepRunToParentsFindFirst { var outputs []builder.Output for _, param := range params { @@ -328701,7 +353608,7 @@ func (r stepRunToJobRunFindFirst) Select(params ...stepRunPrismaFields) stepRunT return r } -func (r stepRunToJobRunFindFirst) Omit(params ...stepRunPrismaFields) stepRunToJobRunFindFirst { +func (r stepRunToParentsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToParentsFindFirst { var outputs []builder.Output var raw []string @@ -328720,7 +353627,7 @@ func (r stepRunToJobRunFindFirst) Omit(params ...stepRunPrismaFields) stepRunToJ return r } -func (r stepRunToJobRunFindFirst) OrderBy(params ...JobRunOrderByParam) stepRunToJobRunFindFirst { +func (r stepRunToParentsFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunToParentsFindFirst { var fields []builder.Field for _, param := range params { @@ -328740,7 +353647,7 @@ func (r stepRunToJobRunFindFirst) OrderBy(params ...JobRunOrderByParam) stepRunT return r } -func (r stepRunToJobRunFindFirst) Skip(count int) stepRunToJobRunFindFirst { +func (r stepRunToParentsFindFirst) Skip(count int) stepRunToParentsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -328748,7 +353655,7 @@ func (r stepRunToJobRunFindFirst) Skip(count int) stepRunToJobRunFindFirst { return r } -func (r stepRunToJobRunFindFirst) Take(count int) stepRunToJobRunFindFirst { +func (r stepRunToParentsFindFirst) Take(count int) stepRunToParentsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -328756,7 +353663,7 @@ func (r stepRunToJobRunFindFirst) Take(count int) stepRunToJobRunFindFirst { return r } -func (r stepRunToJobRunFindFirst) Cursor(cursor StepRunCursorParam) stepRunToJobRunFindFirst { +func (r stepRunToParentsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToParentsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -328764,7 +353671,7 @@ func (r stepRunToJobRunFindFirst) Cursor(cursor StepRunCursorParam) stepRunToJob return r } -func (r stepRunToJobRunFindFirst) Exec(ctx context.Context) ( +func (r stepRunToParentsFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -328780,7 +353687,7 @@ func (r stepRunToJobRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToJobRunFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToParentsFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -328796,23 +353703,23 @@ func (r stepRunToJobRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToJobRunFindMany struct { +type stepRunToParentsFindMany struct { query builder.Query } -func (r stepRunToJobRunFindMany) getQuery() builder.Query { +func (r stepRunToParentsFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToJobRunFindMany) ExtractQuery() builder.Query { +func (r stepRunToParentsFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToJobRunFindMany) with() {} -func (r stepRunToJobRunFindMany) stepRunModel() {} -func (r stepRunToJobRunFindMany) stepRunRelation() {} +func (r stepRunToParentsFindMany) with() {} +func (r stepRunToParentsFindMany) stepRunModel() {} +func (r stepRunToParentsFindMany) stepRunRelation() {} -func (r stepRunToJobRunFindMany) With(params ...JobRunRelationWith) stepRunToJobRunFindMany { +func (r stepRunToParentsFindMany) With(params ...StepRunRelationWith) stepRunToParentsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -328825,7 +353732,7 @@ func (r stepRunToJobRunFindMany) With(params ...JobRunRelationWith) stepRunToJob return r } -func (r stepRunToJobRunFindMany) Select(params ...stepRunPrismaFields) stepRunToJobRunFindMany { +func (r stepRunToParentsFindMany) Select(params ...stepRunPrismaFields) stepRunToParentsFindMany { var outputs []builder.Output for _, param := range params { @@ -328839,7 +353746,7 @@ func (r stepRunToJobRunFindMany) Select(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToJobRunFindMany) Omit(params ...stepRunPrismaFields) stepRunToJobRunFindMany { +func (r stepRunToParentsFindMany) Omit(params ...stepRunPrismaFields) stepRunToParentsFindMany { var outputs []builder.Output var raw []string @@ -328858,7 +353765,7 @@ func (r stepRunToJobRunFindMany) Omit(params ...stepRunPrismaFields) stepRunToJo return r } -func (r stepRunToJobRunFindMany) OrderBy(params ...JobRunOrderByParam) stepRunToJobRunFindMany { +func (r stepRunToParentsFindMany) OrderBy(params ...StepRunOrderByParam) stepRunToParentsFindMany { var fields []builder.Field for _, param := range params { @@ -328878,7 +353785,7 @@ func (r stepRunToJobRunFindMany) OrderBy(params ...JobRunOrderByParam) stepRunTo return r } -func (r stepRunToJobRunFindMany) Skip(count int) stepRunToJobRunFindMany { +func (r stepRunToParentsFindMany) Skip(count int) stepRunToParentsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -328886,7 +353793,7 @@ func (r stepRunToJobRunFindMany) Skip(count int) stepRunToJobRunFindMany { return r } -func (r stepRunToJobRunFindMany) Take(count int) stepRunToJobRunFindMany { +func (r stepRunToParentsFindMany) Take(count int) stepRunToParentsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -328894,7 +353801,7 @@ func (r stepRunToJobRunFindMany) Take(count int) stepRunToJobRunFindMany { return r } -func (r stepRunToJobRunFindMany) Cursor(cursor StepRunCursorParam) stepRunToJobRunFindMany { +func (r stepRunToParentsFindMany) Cursor(cursor StepRunCursorParam) stepRunToParentsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -328902,7 +353809,7 @@ func (r stepRunToJobRunFindMany) Cursor(cursor StepRunCursorParam) stepRunToJobR return r } -func (r stepRunToJobRunFindMany) Exec(ctx context.Context) ( +func (r stepRunToParentsFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -328914,7 +353821,7 @@ func (r stepRunToJobRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToJobRunFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToParentsFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -328926,14 +353833,14 @@ func (r stepRunToJobRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToJobRunFindMany) Update(params ...StepRunSetParam) stepRunToJobRunUpdateMany { +func (r stepRunToParentsFindMany) Update(params ...StepRunSetParam) stepRunToParentsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToJobRunUpdateMany + var v stepRunToParentsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -328962,17 +353869,17 @@ func (r stepRunToJobRunFindMany) Update(params ...StepRunSetParam) stepRunToJobR return v } -type stepRunToJobRunUpdateMany struct { +type stepRunToParentsUpdateMany struct { query builder.Query } -func (r stepRunToJobRunUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToParentsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToJobRunUpdateMany) stepRunModel() {} +func (r stepRunToParentsUpdateMany) stepRunModel() {} -func (r stepRunToJobRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToParentsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -328980,15 +353887,15 @@ func (r stepRunToJobRunUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToJobRunUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToParentsUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToJobRunFindMany) Delete() stepRunToJobRunDeleteMany { - var v stepRunToJobRunDeleteMany +func (r stepRunToParentsFindMany) Delete() stepRunToParentsDeleteMany { + var v stepRunToParentsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -328999,17 +353906,17 @@ func (r stepRunToJobRunFindMany) Delete() stepRunToJobRunDeleteMany { return v } -type stepRunToJobRunDeleteMany struct { +type stepRunToParentsDeleteMany struct { query builder.Query } -func (r stepRunToJobRunDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToParentsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToJobRunDeleteMany) stepRunModel() {} +func (p stepRunToParentsDeleteMany) stepRunModel() {} -func (r stepRunToJobRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToParentsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -329017,30 +353924,30 @@ func (r stepRunToJobRunDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToJobRunDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToParentsDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToStepFindUnique struct { +type stepRunToWorkerFindUnique struct { query builder.Query } -func (r stepRunToStepFindUnique) getQuery() builder.Query { +func (r stepRunToWorkerFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToStepFindUnique) ExtractQuery() builder.Query { +func (r stepRunToWorkerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStepFindUnique) with() {} -func (r stepRunToStepFindUnique) stepRunModel() {} -func (r stepRunToStepFindUnique) stepRunRelation() {} +func (r stepRunToWorkerFindUnique) with() {} +func (r stepRunToWorkerFindUnique) stepRunModel() {} +func (r stepRunToWorkerFindUnique) stepRunRelation() {} -func (r stepRunToStepFindUnique) With(params ...StepRelationWith) stepRunToStepFindUnique { +func (r stepRunToWorkerFindUnique) With(params ...WorkerRelationWith) stepRunToWorkerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -329053,7 +353960,7 @@ func (r stepRunToStepFindUnique) With(params ...StepRelationWith) stepRunToStepF return r } -func (r stepRunToStepFindUnique) Select(params ...stepRunPrismaFields) stepRunToStepFindUnique { +func (r stepRunToWorkerFindUnique) Select(params ...stepRunPrismaFields) stepRunToWorkerFindUnique { var outputs []builder.Output for _, param := range params { @@ -329067,7 +353974,7 @@ func (r stepRunToStepFindUnique) Select(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToStepFindUnique) Omit(params ...stepRunPrismaFields) stepRunToStepFindUnique { +func (r stepRunToWorkerFindUnique) Omit(params ...stepRunPrismaFields) stepRunToWorkerFindUnique { var outputs []builder.Output var raw []string @@ -329086,7 +353993,7 @@ func (r stepRunToStepFindUnique) Omit(params ...stepRunPrismaFields) stepRunToSt return r } -func (r stepRunToStepFindUnique) Exec(ctx context.Context) ( +func (r stepRunToWorkerFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -329102,7 +354009,7 @@ func (r stepRunToStepFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToStepFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToWorkerFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -329118,12 +354025,12 @@ func (r stepRunToStepFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToStepFindUnique) Update(params ...StepRunSetParam) stepRunToStepUpdateUnique { +func (r stepRunToWorkerFindUnique) Update(params ...StepRunSetParam) stepRunToWorkerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToStepUpdateUnique + var v stepRunToWorkerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -329152,17 +354059,17 @@ func (r stepRunToStepFindUnique) Update(params ...StepRunSetParam) stepRunToStep return v } -type stepRunToStepUpdateUnique struct { +type stepRunToWorkerUpdateUnique struct { query builder.Query } -func (r stepRunToStepUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToWorkerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStepUpdateUnique) stepRunModel() {} +func (r stepRunToWorkerUpdateUnique) stepRunModel() {} -func (r stepRunToStepUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToWorkerUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -329170,15 +354077,15 @@ func (r stepRunToStepUpdateUnique) Exec(ctx context.Context) (*StepRunModel, err return &v, nil } -func (r stepRunToStepUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToWorkerUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToStepFindUnique) Delete() stepRunToStepDeleteUnique { - var v stepRunToStepDeleteUnique +func (r stepRunToWorkerFindUnique) Delete() stepRunToWorkerDeleteUnique { + var v stepRunToWorkerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -329187,17 +354094,17 @@ func (r stepRunToStepFindUnique) Delete() stepRunToStepDeleteUnique { return v } -type stepRunToStepDeleteUnique struct { +type stepRunToWorkerDeleteUnique struct { query builder.Query } -func (r stepRunToStepDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToWorkerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToStepDeleteUnique) stepRunModel() {} +func (p stepRunToWorkerDeleteUnique) stepRunModel() {} -func (r stepRunToStepDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToWorkerDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -329205,30 +354112,30 @@ func (r stepRunToStepDeleteUnique) Exec(ctx context.Context) (*StepRunModel, err return &v, nil } -func (r stepRunToStepDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToWorkerDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToStepFindFirst struct { +type stepRunToWorkerFindFirst struct { query builder.Query } -func (r stepRunToStepFindFirst) getQuery() builder.Query { +func (r stepRunToWorkerFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToStepFindFirst) ExtractQuery() builder.Query { +func (r stepRunToWorkerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStepFindFirst) with() {} -func (r stepRunToStepFindFirst) stepRunModel() {} -func (r stepRunToStepFindFirst) stepRunRelation() {} +func (r stepRunToWorkerFindFirst) with() {} +func (r stepRunToWorkerFindFirst) stepRunModel() {} +func (r stepRunToWorkerFindFirst) stepRunRelation() {} -func (r stepRunToStepFindFirst) With(params ...StepRelationWith) stepRunToStepFindFirst { +func (r stepRunToWorkerFindFirst) With(params ...WorkerRelationWith) stepRunToWorkerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -329241,7 +354148,7 @@ func (r stepRunToStepFindFirst) With(params ...StepRelationWith) stepRunToStepFi return r } -func (r stepRunToStepFindFirst) Select(params ...stepRunPrismaFields) stepRunToStepFindFirst { +func (r stepRunToWorkerFindFirst) Select(params ...stepRunPrismaFields) stepRunToWorkerFindFirst { var outputs []builder.Output for _, param := range params { @@ -329255,7 +354162,7 @@ func (r stepRunToStepFindFirst) Select(params ...stepRunPrismaFields) stepRunToS return r } -func (r stepRunToStepFindFirst) Omit(params ...stepRunPrismaFields) stepRunToStepFindFirst { +func (r stepRunToWorkerFindFirst) Omit(params ...stepRunPrismaFields) stepRunToWorkerFindFirst { var outputs []builder.Output var raw []string @@ -329274,7 +354181,7 @@ func (r stepRunToStepFindFirst) Omit(params ...stepRunPrismaFields) stepRunToSte return r } -func (r stepRunToStepFindFirst) OrderBy(params ...StepOrderByParam) stepRunToStepFindFirst { +func (r stepRunToWorkerFindFirst) OrderBy(params ...WorkerOrderByParam) stepRunToWorkerFindFirst { var fields []builder.Field for _, param := range params { @@ -329294,7 +354201,7 @@ func (r stepRunToStepFindFirst) OrderBy(params ...StepOrderByParam) stepRunToSte return r } -func (r stepRunToStepFindFirst) Skip(count int) stepRunToStepFindFirst { +func (r stepRunToWorkerFindFirst) Skip(count int) stepRunToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -329302,7 +354209,7 @@ func (r stepRunToStepFindFirst) Skip(count int) stepRunToStepFindFirst { return r } -func (r stepRunToStepFindFirst) Take(count int) stepRunToStepFindFirst { +func (r stepRunToWorkerFindFirst) Take(count int) stepRunToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -329310,7 +354217,7 @@ func (r stepRunToStepFindFirst) Take(count int) stepRunToStepFindFirst { return r } -func (r stepRunToStepFindFirst) Cursor(cursor StepRunCursorParam) stepRunToStepFindFirst { +func (r stepRunToWorkerFindFirst) Cursor(cursor StepRunCursorParam) stepRunToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -329318,7 +354225,7 @@ func (r stepRunToStepFindFirst) Cursor(cursor StepRunCursorParam) stepRunToStepF return r } -func (r stepRunToStepFindFirst) Exec(ctx context.Context) ( +func (r stepRunToWorkerFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -329334,7 +354241,7 @@ func (r stepRunToStepFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToStepFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToWorkerFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -329350,23 +354257,23 @@ func (r stepRunToStepFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToStepFindMany struct { +type stepRunToWorkerFindMany struct { query builder.Query } -func (r stepRunToStepFindMany) getQuery() builder.Query { +func (r stepRunToWorkerFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToStepFindMany) ExtractQuery() builder.Query { +func (r stepRunToWorkerFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStepFindMany) with() {} -func (r stepRunToStepFindMany) stepRunModel() {} -func (r stepRunToStepFindMany) stepRunRelation() {} +func (r stepRunToWorkerFindMany) with() {} +func (r stepRunToWorkerFindMany) stepRunModel() {} +func (r stepRunToWorkerFindMany) stepRunRelation() {} -func (r stepRunToStepFindMany) With(params ...StepRelationWith) stepRunToStepFindMany { +func (r stepRunToWorkerFindMany) With(params ...WorkerRelationWith) stepRunToWorkerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -329379,7 +354286,7 @@ func (r stepRunToStepFindMany) With(params ...StepRelationWith) stepRunToStepFin return r } -func (r stepRunToStepFindMany) Select(params ...stepRunPrismaFields) stepRunToStepFindMany { +func (r stepRunToWorkerFindMany) Select(params ...stepRunPrismaFields) stepRunToWorkerFindMany { var outputs []builder.Output for _, param := range params { @@ -329393,7 +354300,7 @@ func (r stepRunToStepFindMany) Select(params ...stepRunPrismaFields) stepRunToSt return r } -func (r stepRunToStepFindMany) Omit(params ...stepRunPrismaFields) stepRunToStepFindMany { +func (r stepRunToWorkerFindMany) Omit(params ...stepRunPrismaFields) stepRunToWorkerFindMany { var outputs []builder.Output var raw []string @@ -329412,7 +354319,7 @@ func (r stepRunToStepFindMany) Omit(params ...stepRunPrismaFields) stepRunToStep return r } -func (r stepRunToStepFindMany) OrderBy(params ...StepOrderByParam) stepRunToStepFindMany { +func (r stepRunToWorkerFindMany) OrderBy(params ...WorkerOrderByParam) stepRunToWorkerFindMany { var fields []builder.Field for _, param := range params { @@ -329432,7 +354339,7 @@ func (r stepRunToStepFindMany) OrderBy(params ...StepOrderByParam) stepRunToStep return r } -func (r stepRunToStepFindMany) Skip(count int) stepRunToStepFindMany { +func (r stepRunToWorkerFindMany) Skip(count int) stepRunToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -329440,7 +354347,7 @@ func (r stepRunToStepFindMany) Skip(count int) stepRunToStepFindMany { return r } -func (r stepRunToStepFindMany) Take(count int) stepRunToStepFindMany { +func (r stepRunToWorkerFindMany) Take(count int) stepRunToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -329448,7 +354355,7 @@ func (r stepRunToStepFindMany) Take(count int) stepRunToStepFindMany { return r } -func (r stepRunToStepFindMany) Cursor(cursor StepRunCursorParam) stepRunToStepFindMany { +func (r stepRunToWorkerFindMany) Cursor(cursor StepRunCursorParam) stepRunToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -329456,7 +354363,7 @@ func (r stepRunToStepFindMany) Cursor(cursor StepRunCursorParam) stepRunToStepFi return r } -func (r stepRunToStepFindMany) Exec(ctx context.Context) ( +func (r stepRunToWorkerFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -329468,7 +354375,7 @@ func (r stepRunToStepFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToStepFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToWorkerFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -329480,14 +354387,14 @@ func (r stepRunToStepFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToStepFindMany) Update(params ...StepRunSetParam) stepRunToStepUpdateMany { +func (r stepRunToWorkerFindMany) Update(params ...StepRunSetParam) stepRunToWorkerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToStepUpdateMany + var v stepRunToWorkerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -329516,17 +354423,17 @@ func (r stepRunToStepFindMany) Update(params ...StepRunSetParam) stepRunToStepUp return v } -type stepRunToStepUpdateMany struct { +type stepRunToWorkerUpdateMany struct { query builder.Query } -func (r stepRunToStepUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToWorkerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStepUpdateMany) stepRunModel() {} +func (r stepRunToWorkerUpdateMany) stepRunModel() {} -func (r stepRunToStepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -329534,15 +354441,15 @@ func (r stepRunToStepUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepRunToStepUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToWorkerUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToStepFindMany) Delete() stepRunToStepDeleteMany { - var v stepRunToStepDeleteMany +func (r stepRunToWorkerFindMany) Delete() stepRunToWorkerDeleteMany { + var v stepRunToWorkerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -329553,17 +354460,17 @@ func (r stepRunToStepFindMany) Delete() stepRunToStepDeleteMany { return v } -type stepRunToStepDeleteMany struct { +type stepRunToWorkerDeleteMany struct { query builder.Query } -func (r stepRunToStepDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToWorkerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToStepDeleteMany) stepRunModel() {} +func (p stepRunToWorkerDeleteMany) stepRunModel() {} -func (r stepRunToStepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -329571,30 +354478,30 @@ func (r stepRunToStepDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepRunToStepDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToWorkerDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToChildrenFindUnique struct { +type stepRunToTickerFindUnique struct { query builder.Query } -func (r stepRunToChildrenFindUnique) getQuery() builder.Query { +func (r stepRunToTickerFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToChildrenFindUnique) ExtractQuery() builder.Query { +func (r stepRunToTickerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildrenFindUnique) with() {} -func (r stepRunToChildrenFindUnique) stepRunModel() {} -func (r stepRunToChildrenFindUnique) stepRunRelation() {} +func (r stepRunToTickerFindUnique) with() {} +func (r stepRunToTickerFindUnique) stepRunModel() {} +func (r stepRunToTickerFindUnique) stepRunRelation() {} -func (r stepRunToChildrenFindUnique) With(params ...StepRunRelationWith) stepRunToChildrenFindUnique { +func (r stepRunToTickerFindUnique) With(params ...TickerRelationWith) stepRunToTickerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -329607,7 +354514,7 @@ func (r stepRunToChildrenFindUnique) With(params ...StepRunRelationWith) stepRun return r } -func (r stepRunToChildrenFindUnique) Select(params ...stepRunPrismaFields) stepRunToChildrenFindUnique { +func (r stepRunToTickerFindUnique) Select(params ...stepRunPrismaFields) stepRunToTickerFindUnique { var outputs []builder.Output for _, param := range params { @@ -329621,7 +354528,7 @@ func (r stepRunToChildrenFindUnique) Select(params ...stepRunPrismaFields) stepR return r } -func (r stepRunToChildrenFindUnique) Omit(params ...stepRunPrismaFields) stepRunToChildrenFindUnique { +func (r stepRunToTickerFindUnique) Omit(params ...stepRunPrismaFields) stepRunToTickerFindUnique { var outputs []builder.Output var raw []string @@ -329640,7 +354547,7 @@ func (r stepRunToChildrenFindUnique) Omit(params ...stepRunPrismaFields) stepRun return r } -func (r stepRunToChildrenFindUnique) Exec(ctx context.Context) ( +func (r stepRunToTickerFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -329656,7 +354563,7 @@ func (r stepRunToChildrenFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildrenFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToTickerFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -329672,12 +354579,12 @@ func (r stepRunToChildrenFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToChildrenFindUnique) Update(params ...StepRunSetParam) stepRunToChildrenUpdateUnique { +func (r stepRunToTickerFindUnique) Update(params ...StepRunSetParam) stepRunToTickerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToChildrenUpdateUnique + var v stepRunToTickerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -329706,17 +354613,17 @@ func (r stepRunToChildrenFindUnique) Update(params ...StepRunSetParam) stepRunTo return v } -type stepRunToChildrenUpdateUnique struct { +type stepRunToTickerUpdateUnique struct { query builder.Query } -func (r stepRunToChildrenUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToTickerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildrenUpdateUnique) stepRunModel() {} +func (r stepRunToTickerUpdateUnique) stepRunModel() {} -func (r stepRunToChildrenUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToTickerUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -329724,15 +354631,15 @@ func (r stepRunToChildrenUpdateUnique) Exec(ctx context.Context) (*StepRunModel, return &v, nil } -func (r stepRunToChildrenUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToTickerUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToChildrenFindUnique) Delete() stepRunToChildrenDeleteUnique { - var v stepRunToChildrenDeleteUnique +func (r stepRunToTickerFindUnique) Delete() stepRunToTickerDeleteUnique { + var v stepRunToTickerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -329741,17 +354648,17 @@ func (r stepRunToChildrenFindUnique) Delete() stepRunToChildrenDeleteUnique { return v } -type stepRunToChildrenDeleteUnique struct { +type stepRunToTickerDeleteUnique struct { query builder.Query } -func (r stepRunToChildrenDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToTickerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToChildrenDeleteUnique) stepRunModel() {} +func (p stepRunToTickerDeleteUnique) stepRunModel() {} -func (r stepRunToChildrenDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToTickerDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -329759,30 +354666,30 @@ func (r stepRunToChildrenDeleteUnique) Exec(ctx context.Context) (*StepRunModel, return &v, nil } -func (r stepRunToChildrenDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToTickerDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToChildrenFindFirst struct { +type stepRunToTickerFindFirst struct { query builder.Query } -func (r stepRunToChildrenFindFirst) getQuery() builder.Query { +func (r stepRunToTickerFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToChildrenFindFirst) ExtractQuery() builder.Query { +func (r stepRunToTickerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildrenFindFirst) with() {} -func (r stepRunToChildrenFindFirst) stepRunModel() {} -func (r stepRunToChildrenFindFirst) stepRunRelation() {} +func (r stepRunToTickerFindFirst) with() {} +func (r stepRunToTickerFindFirst) stepRunModel() {} +func (r stepRunToTickerFindFirst) stepRunRelation() {} -func (r stepRunToChildrenFindFirst) With(params ...StepRunRelationWith) stepRunToChildrenFindFirst { +func (r stepRunToTickerFindFirst) With(params ...TickerRelationWith) stepRunToTickerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -329795,7 +354702,7 @@ func (r stepRunToChildrenFindFirst) With(params ...StepRunRelationWith) stepRunT return r } -func (r stepRunToChildrenFindFirst) Select(params ...stepRunPrismaFields) stepRunToChildrenFindFirst { +func (r stepRunToTickerFindFirst) Select(params ...stepRunPrismaFields) stepRunToTickerFindFirst { var outputs []builder.Output for _, param := range params { @@ -329809,7 +354716,7 @@ func (r stepRunToChildrenFindFirst) Select(params ...stepRunPrismaFields) stepRu return r } -func (r stepRunToChildrenFindFirst) Omit(params ...stepRunPrismaFields) stepRunToChildrenFindFirst { +func (r stepRunToTickerFindFirst) Omit(params ...stepRunPrismaFields) stepRunToTickerFindFirst { var outputs []builder.Output var raw []string @@ -329828,7 +354735,7 @@ func (r stepRunToChildrenFindFirst) Omit(params ...stepRunPrismaFields) stepRunT return r } -func (r stepRunToChildrenFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunToChildrenFindFirst { +func (r stepRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) stepRunToTickerFindFirst { var fields []builder.Field for _, param := range params { @@ -329848,7 +354755,7 @@ func (r stepRunToChildrenFindFirst) OrderBy(params ...StepRunOrderByParam) stepR return r } -func (r stepRunToChildrenFindFirst) Skip(count int) stepRunToChildrenFindFirst { +func (r stepRunToTickerFindFirst) Skip(count int) stepRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -329856,7 +354763,7 @@ func (r stepRunToChildrenFindFirst) Skip(count int) stepRunToChildrenFindFirst { return r } -func (r stepRunToChildrenFindFirst) Take(count int) stepRunToChildrenFindFirst { +func (r stepRunToTickerFindFirst) Take(count int) stepRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -329864,7 +354771,7 @@ func (r stepRunToChildrenFindFirst) Take(count int) stepRunToChildrenFindFirst { return r } -func (r stepRunToChildrenFindFirst) Cursor(cursor StepRunCursorParam) stepRunToChildrenFindFirst { +func (r stepRunToTickerFindFirst) Cursor(cursor StepRunCursorParam) stepRunToTickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -329872,7 +354779,7 @@ func (r stepRunToChildrenFindFirst) Cursor(cursor StepRunCursorParam) stepRunToC return r } -func (r stepRunToChildrenFindFirst) Exec(ctx context.Context) ( +func (r stepRunToTickerFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -329888,7 +354795,7 @@ func (r stepRunToChildrenFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildrenFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToTickerFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -329904,23 +354811,23 @@ func (r stepRunToChildrenFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToChildrenFindMany struct { +type stepRunToTickerFindMany struct { query builder.Query } -func (r stepRunToChildrenFindMany) getQuery() builder.Query { +func (r stepRunToTickerFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToChildrenFindMany) ExtractQuery() builder.Query { +func (r stepRunToTickerFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildrenFindMany) with() {} -func (r stepRunToChildrenFindMany) stepRunModel() {} -func (r stepRunToChildrenFindMany) stepRunRelation() {} +func (r stepRunToTickerFindMany) with() {} +func (r stepRunToTickerFindMany) stepRunModel() {} +func (r stepRunToTickerFindMany) stepRunRelation() {} -func (r stepRunToChildrenFindMany) With(params ...StepRunRelationWith) stepRunToChildrenFindMany { +func (r stepRunToTickerFindMany) With(params ...TickerRelationWith) stepRunToTickerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -329933,7 +354840,7 @@ func (r stepRunToChildrenFindMany) With(params ...StepRunRelationWith) stepRunTo return r } -func (r stepRunToChildrenFindMany) Select(params ...stepRunPrismaFields) stepRunToChildrenFindMany { +func (r stepRunToTickerFindMany) Select(params ...stepRunPrismaFields) stepRunToTickerFindMany { var outputs []builder.Output for _, param := range params { @@ -329947,7 +354854,7 @@ func (r stepRunToChildrenFindMany) Select(params ...stepRunPrismaFields) stepRun return r } -func (r stepRunToChildrenFindMany) Omit(params ...stepRunPrismaFields) stepRunToChildrenFindMany { +func (r stepRunToTickerFindMany) Omit(params ...stepRunPrismaFields) stepRunToTickerFindMany { var outputs []builder.Output var raw []string @@ -329966,7 +354873,7 @@ func (r stepRunToChildrenFindMany) Omit(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToChildrenFindMany) OrderBy(params ...StepRunOrderByParam) stepRunToChildrenFindMany { +func (r stepRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) stepRunToTickerFindMany { var fields []builder.Field for _, param := range params { @@ -329986,7 +354893,7 @@ func (r stepRunToChildrenFindMany) OrderBy(params ...StepRunOrderByParam) stepRu return r } -func (r stepRunToChildrenFindMany) Skip(count int) stepRunToChildrenFindMany { +func (r stepRunToTickerFindMany) Skip(count int) stepRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -329994,7 +354901,7 @@ func (r stepRunToChildrenFindMany) Skip(count int) stepRunToChildrenFindMany { return r } -func (r stepRunToChildrenFindMany) Take(count int) stepRunToChildrenFindMany { +func (r stepRunToTickerFindMany) Take(count int) stepRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -330002,7 +354909,7 @@ func (r stepRunToChildrenFindMany) Take(count int) stepRunToChildrenFindMany { return r } -func (r stepRunToChildrenFindMany) Cursor(cursor StepRunCursorParam) stepRunToChildrenFindMany { +func (r stepRunToTickerFindMany) Cursor(cursor StepRunCursorParam) stepRunToTickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -330010,7 +354917,7 @@ func (r stepRunToChildrenFindMany) Cursor(cursor StepRunCursorParam) stepRunToCh return r } -func (r stepRunToChildrenFindMany) Exec(ctx context.Context) ( +func (r stepRunToTickerFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -330022,7 +354929,7 @@ func (r stepRunToChildrenFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildrenFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToTickerFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -330034,14 +354941,14 @@ func (r stepRunToChildrenFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToChildrenFindMany) Update(params ...StepRunSetParam) stepRunToChildrenUpdateMany { +func (r stepRunToTickerFindMany) Update(params ...StepRunSetParam) stepRunToTickerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToChildrenUpdateMany + var v stepRunToTickerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -330070,17 +354977,17 @@ func (r stepRunToChildrenFindMany) Update(params ...StepRunSetParam) stepRunToCh return v } -type stepRunToChildrenUpdateMany struct { +type stepRunToTickerUpdateMany struct { query builder.Query } -func (r stepRunToChildrenUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToTickerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildrenUpdateMany) stepRunModel() {} +func (r stepRunToTickerUpdateMany) stepRunModel() {} -func (r stepRunToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -330088,15 +354995,15 @@ func (r stepRunToChildrenUpdateMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r stepRunToChildrenUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToTickerUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToChildrenFindMany) Delete() stepRunToChildrenDeleteMany { - var v stepRunToChildrenDeleteMany +func (r stepRunToTickerFindMany) Delete() stepRunToTickerDeleteMany { + var v stepRunToTickerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -330107,17 +355014,17 @@ func (r stepRunToChildrenFindMany) Delete() stepRunToChildrenDeleteMany { return v } -type stepRunToChildrenDeleteMany struct { +type stepRunToTickerDeleteMany struct { query builder.Query } -func (r stepRunToChildrenDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToTickerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToChildrenDeleteMany) stepRunModel() {} +func (p stepRunToTickerDeleteMany) stepRunModel() {} -func (r stepRunToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -330125,30 +355032,30 @@ func (r stepRunToChildrenDeleteMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r stepRunToChildrenDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToTickerDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToParentsFindUnique struct { +type stepRunToSemaphoreSlotFindUnique struct { query builder.Query } -func (r stepRunToParentsFindUnique) getQuery() builder.Query { +func (r stepRunToSemaphoreSlotFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToParentsFindUnique) ExtractQuery() builder.Query { +func (r stepRunToSemaphoreSlotFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToParentsFindUnique) with() {} -func (r stepRunToParentsFindUnique) stepRunModel() {} -func (r stepRunToParentsFindUnique) stepRunRelation() {} +func (r stepRunToSemaphoreSlotFindUnique) with() {} +func (r stepRunToSemaphoreSlotFindUnique) stepRunModel() {} +func (r stepRunToSemaphoreSlotFindUnique) stepRunRelation() {} -func (r stepRunToParentsFindUnique) With(params ...StepRunRelationWith) stepRunToParentsFindUnique { +func (r stepRunToSemaphoreSlotFindUnique) With(params ...WorkerSemaphoreSlotRelationWith) stepRunToSemaphoreSlotFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -330161,7 +355068,7 @@ func (r stepRunToParentsFindUnique) With(params ...StepRunRelationWith) stepRunT return r } -func (r stepRunToParentsFindUnique) Select(params ...stepRunPrismaFields) stepRunToParentsFindUnique { +func (r stepRunToSemaphoreSlotFindUnique) Select(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindUnique { var outputs []builder.Output for _, param := range params { @@ -330175,7 +355082,7 @@ func (r stepRunToParentsFindUnique) Select(params ...stepRunPrismaFields) stepRu return r } -func (r stepRunToParentsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToParentsFindUnique { +func (r stepRunToSemaphoreSlotFindUnique) Omit(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindUnique { var outputs []builder.Output var raw []string @@ -330194,7 +355101,7 @@ func (r stepRunToParentsFindUnique) Omit(params ...stepRunPrismaFields) stepRunT return r } -func (r stepRunToParentsFindUnique) Exec(ctx context.Context) ( +func (r stepRunToSemaphoreSlotFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -330210,7 +355117,7 @@ func (r stepRunToParentsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToParentsFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToSemaphoreSlotFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -330226,12 +355133,12 @@ func (r stepRunToParentsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToParentsFindUnique) Update(params ...StepRunSetParam) stepRunToParentsUpdateUnique { +func (r stepRunToSemaphoreSlotFindUnique) Update(params ...StepRunSetParam) stepRunToSemaphoreSlotUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToParentsUpdateUnique + var v stepRunToSemaphoreSlotUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -330260,17 +355167,17 @@ func (r stepRunToParentsFindUnique) Update(params ...StepRunSetParam) stepRunToP return v } -type stepRunToParentsUpdateUnique struct { +type stepRunToSemaphoreSlotUpdateUnique struct { query builder.Query } -func (r stepRunToParentsUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToSemaphoreSlotUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToParentsUpdateUnique) stepRunModel() {} +func (r stepRunToSemaphoreSlotUpdateUnique) stepRunModel() {} -func (r stepRunToParentsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToSemaphoreSlotUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -330278,15 +355185,15 @@ func (r stepRunToParentsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, return &v, nil } -func (r stepRunToParentsUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToSemaphoreSlotUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToParentsFindUnique) Delete() stepRunToParentsDeleteUnique { - var v stepRunToParentsDeleteUnique +func (r stepRunToSemaphoreSlotFindUnique) Delete() stepRunToSemaphoreSlotDeleteUnique { + var v stepRunToSemaphoreSlotDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -330295,17 +355202,17 @@ func (r stepRunToParentsFindUnique) Delete() stepRunToParentsDeleteUnique { return v } -type stepRunToParentsDeleteUnique struct { +type stepRunToSemaphoreSlotDeleteUnique struct { query builder.Query } -func (r stepRunToParentsDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToSemaphoreSlotDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToParentsDeleteUnique) stepRunModel() {} +func (p stepRunToSemaphoreSlotDeleteUnique) stepRunModel() {} -func (r stepRunToParentsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToSemaphoreSlotDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -330313,30 +355220,30 @@ func (r stepRunToParentsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, return &v, nil } -func (r stepRunToParentsDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToSemaphoreSlotDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToParentsFindFirst struct { +type stepRunToSemaphoreSlotFindFirst struct { query builder.Query } -func (r stepRunToParentsFindFirst) getQuery() builder.Query { +func (r stepRunToSemaphoreSlotFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToParentsFindFirst) ExtractQuery() builder.Query { +func (r stepRunToSemaphoreSlotFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToParentsFindFirst) with() {} -func (r stepRunToParentsFindFirst) stepRunModel() {} -func (r stepRunToParentsFindFirst) stepRunRelation() {} +func (r stepRunToSemaphoreSlotFindFirst) with() {} +func (r stepRunToSemaphoreSlotFindFirst) stepRunModel() {} +func (r stepRunToSemaphoreSlotFindFirst) stepRunRelation() {} -func (r stepRunToParentsFindFirst) With(params ...StepRunRelationWith) stepRunToParentsFindFirst { +func (r stepRunToSemaphoreSlotFindFirst) With(params ...WorkerSemaphoreSlotRelationWith) stepRunToSemaphoreSlotFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -330349,7 +355256,7 @@ func (r stepRunToParentsFindFirst) With(params ...StepRunRelationWith) stepRunTo return r } -func (r stepRunToParentsFindFirst) Select(params ...stepRunPrismaFields) stepRunToParentsFindFirst { +func (r stepRunToSemaphoreSlotFindFirst) Select(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindFirst { var outputs []builder.Output for _, param := range params { @@ -330363,7 +355270,7 @@ func (r stepRunToParentsFindFirst) Select(params ...stepRunPrismaFields) stepRun return r } -func (r stepRunToParentsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToParentsFindFirst { +func (r stepRunToSemaphoreSlotFindFirst) Omit(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindFirst { var outputs []builder.Output var raw []string @@ -330382,7 +355289,7 @@ func (r stepRunToParentsFindFirst) Omit(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToParentsFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunToParentsFindFirst { +func (r stepRunToSemaphoreSlotFindFirst) OrderBy(params ...WorkerSemaphoreSlotOrderByParam) stepRunToSemaphoreSlotFindFirst { var fields []builder.Field for _, param := range params { @@ -330402,7 +355309,7 @@ func (r stepRunToParentsFindFirst) OrderBy(params ...StepRunOrderByParam) stepRu return r } -func (r stepRunToParentsFindFirst) Skip(count int) stepRunToParentsFindFirst { +func (r stepRunToSemaphoreSlotFindFirst) Skip(count int) stepRunToSemaphoreSlotFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -330410,7 +355317,7 @@ func (r stepRunToParentsFindFirst) Skip(count int) stepRunToParentsFindFirst { return r } -func (r stepRunToParentsFindFirst) Take(count int) stepRunToParentsFindFirst { +func (r stepRunToSemaphoreSlotFindFirst) Take(count int) stepRunToSemaphoreSlotFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -330418,7 +355325,7 @@ func (r stepRunToParentsFindFirst) Take(count int) stepRunToParentsFindFirst { return r } -func (r stepRunToParentsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToParentsFindFirst { +func (r stepRunToSemaphoreSlotFindFirst) Cursor(cursor StepRunCursorParam) stepRunToSemaphoreSlotFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -330426,7 +355333,7 @@ func (r stepRunToParentsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToPa return r } -func (r stepRunToParentsFindFirst) Exec(ctx context.Context) ( +func (r stepRunToSemaphoreSlotFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -330442,7 +355349,7 @@ func (r stepRunToParentsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToParentsFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToSemaphoreSlotFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -330458,23 +355365,23 @@ func (r stepRunToParentsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToParentsFindMany struct { +type stepRunToSemaphoreSlotFindMany struct { query builder.Query } -func (r stepRunToParentsFindMany) getQuery() builder.Query { +func (r stepRunToSemaphoreSlotFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToParentsFindMany) ExtractQuery() builder.Query { +func (r stepRunToSemaphoreSlotFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToParentsFindMany) with() {} -func (r stepRunToParentsFindMany) stepRunModel() {} -func (r stepRunToParentsFindMany) stepRunRelation() {} +func (r stepRunToSemaphoreSlotFindMany) with() {} +func (r stepRunToSemaphoreSlotFindMany) stepRunModel() {} +func (r stepRunToSemaphoreSlotFindMany) stepRunRelation() {} -func (r stepRunToParentsFindMany) With(params ...StepRunRelationWith) stepRunToParentsFindMany { +func (r stepRunToSemaphoreSlotFindMany) With(params ...WorkerSemaphoreSlotRelationWith) stepRunToSemaphoreSlotFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -330487,7 +355394,7 @@ func (r stepRunToParentsFindMany) With(params ...StepRunRelationWith) stepRunToP return r } -func (r stepRunToParentsFindMany) Select(params ...stepRunPrismaFields) stepRunToParentsFindMany { +func (r stepRunToSemaphoreSlotFindMany) Select(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindMany { var outputs []builder.Output for _, param := range params { @@ -330501,7 +355408,7 @@ func (r stepRunToParentsFindMany) Select(params ...stepRunPrismaFields) stepRunT return r } -func (r stepRunToParentsFindMany) Omit(params ...stepRunPrismaFields) stepRunToParentsFindMany { +func (r stepRunToSemaphoreSlotFindMany) Omit(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindMany { var outputs []builder.Output var raw []string @@ -330520,7 +355427,7 @@ func (r stepRunToParentsFindMany) Omit(params ...stepRunPrismaFields) stepRunToP return r } -func (r stepRunToParentsFindMany) OrderBy(params ...StepRunOrderByParam) stepRunToParentsFindMany { +func (r stepRunToSemaphoreSlotFindMany) OrderBy(params ...WorkerSemaphoreSlotOrderByParam) stepRunToSemaphoreSlotFindMany { var fields []builder.Field for _, param := range params { @@ -330540,7 +355447,7 @@ func (r stepRunToParentsFindMany) OrderBy(params ...StepRunOrderByParam) stepRun return r } -func (r stepRunToParentsFindMany) Skip(count int) stepRunToParentsFindMany { +func (r stepRunToSemaphoreSlotFindMany) Skip(count int) stepRunToSemaphoreSlotFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -330548,7 +355455,7 @@ func (r stepRunToParentsFindMany) Skip(count int) stepRunToParentsFindMany { return r } -func (r stepRunToParentsFindMany) Take(count int) stepRunToParentsFindMany { +func (r stepRunToSemaphoreSlotFindMany) Take(count int) stepRunToSemaphoreSlotFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -330556,7 +355463,7 @@ func (r stepRunToParentsFindMany) Take(count int) stepRunToParentsFindMany { return r } -func (r stepRunToParentsFindMany) Cursor(cursor StepRunCursorParam) stepRunToParentsFindMany { +func (r stepRunToSemaphoreSlotFindMany) Cursor(cursor StepRunCursorParam) stepRunToSemaphoreSlotFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -330564,7 +355471,7 @@ func (r stepRunToParentsFindMany) Cursor(cursor StepRunCursorParam) stepRunToPar return r } -func (r stepRunToParentsFindMany) Exec(ctx context.Context) ( +func (r stepRunToSemaphoreSlotFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -330576,7 +355483,7 @@ func (r stepRunToParentsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToParentsFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToSemaphoreSlotFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -330588,14 +355495,14 @@ func (r stepRunToParentsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToParentsFindMany) Update(params ...StepRunSetParam) stepRunToParentsUpdateMany { +func (r stepRunToSemaphoreSlotFindMany) Update(params ...StepRunSetParam) stepRunToSemaphoreSlotUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToParentsUpdateMany + var v stepRunToSemaphoreSlotUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -330624,17 +355531,17 @@ func (r stepRunToParentsFindMany) Update(params ...StepRunSetParam) stepRunToPar return v } -type stepRunToParentsUpdateMany struct { +type stepRunToSemaphoreSlotUpdateMany struct { query builder.Query } -func (r stepRunToParentsUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToSemaphoreSlotUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToParentsUpdateMany) stepRunModel() {} +func (r stepRunToSemaphoreSlotUpdateMany) stepRunModel() {} -func (r stepRunToParentsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToSemaphoreSlotUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -330642,15 +355549,15 @@ func (r stepRunToParentsUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r stepRunToParentsUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToSemaphoreSlotUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToParentsFindMany) Delete() stepRunToParentsDeleteMany { - var v stepRunToParentsDeleteMany +func (r stepRunToSemaphoreSlotFindMany) Delete() stepRunToSemaphoreSlotDeleteMany { + var v stepRunToSemaphoreSlotDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -330661,17 +355568,17 @@ func (r stepRunToParentsFindMany) Delete() stepRunToParentsDeleteMany { return v } -type stepRunToParentsDeleteMany struct { +type stepRunToSemaphoreSlotDeleteMany struct { query builder.Query } -func (r stepRunToParentsDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToSemaphoreSlotDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToParentsDeleteMany) stepRunModel() {} +func (p stepRunToSemaphoreSlotDeleteMany) stepRunModel() {} -func (r stepRunToParentsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToSemaphoreSlotDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -330679,30 +355586,30 @@ func (r stepRunToParentsDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r stepRunToParentsDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToSemaphoreSlotDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToWorkerFindUnique struct { +type stepRunToArchivedResultsFindUnique struct { query builder.Query } -func (r stepRunToWorkerFindUnique) getQuery() builder.Query { +func (r stepRunToArchivedResultsFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToWorkerFindUnique) ExtractQuery() builder.Query { +func (r stepRunToArchivedResultsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToWorkerFindUnique) with() {} -func (r stepRunToWorkerFindUnique) stepRunModel() {} -func (r stepRunToWorkerFindUnique) stepRunRelation() {} +func (r stepRunToArchivedResultsFindUnique) with() {} +func (r stepRunToArchivedResultsFindUnique) stepRunModel() {} +func (r stepRunToArchivedResultsFindUnique) stepRunRelation() {} -func (r stepRunToWorkerFindUnique) With(params ...WorkerRelationWith) stepRunToWorkerFindUnique { +func (r stepRunToArchivedResultsFindUnique) With(params ...StepRunResultArchiveRelationWith) stepRunToArchivedResultsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -330715,7 +355622,7 @@ func (r stepRunToWorkerFindUnique) With(params ...WorkerRelationWith) stepRunToW return r } -func (r stepRunToWorkerFindUnique) Select(params ...stepRunPrismaFields) stepRunToWorkerFindUnique { +func (r stepRunToArchivedResultsFindUnique) Select(params ...stepRunPrismaFields) stepRunToArchivedResultsFindUnique { var outputs []builder.Output for _, param := range params { @@ -330729,7 +355636,7 @@ func (r stepRunToWorkerFindUnique) Select(params ...stepRunPrismaFields) stepRun return r } -func (r stepRunToWorkerFindUnique) Omit(params ...stepRunPrismaFields) stepRunToWorkerFindUnique { +func (r stepRunToArchivedResultsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToArchivedResultsFindUnique { var outputs []builder.Output var raw []string @@ -330748,7 +355655,7 @@ func (r stepRunToWorkerFindUnique) Omit(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToWorkerFindUnique) Exec(ctx context.Context) ( +func (r stepRunToArchivedResultsFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -330764,7 +355671,7 @@ func (r stepRunToWorkerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToWorkerFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToArchivedResultsFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -330780,12 +355687,12 @@ func (r stepRunToWorkerFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToWorkerFindUnique) Update(params ...StepRunSetParam) stepRunToWorkerUpdateUnique { +func (r stepRunToArchivedResultsFindUnique) Update(params ...StepRunSetParam) stepRunToArchivedResultsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToWorkerUpdateUnique + var v stepRunToArchivedResultsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -330814,17 +355721,17 @@ func (r stepRunToWorkerFindUnique) Update(params ...StepRunSetParam) stepRunToWo return v } -type stepRunToWorkerUpdateUnique struct { +type stepRunToArchivedResultsUpdateUnique struct { query builder.Query } -func (r stepRunToWorkerUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToArchivedResultsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToWorkerUpdateUnique) stepRunModel() {} +func (r stepRunToArchivedResultsUpdateUnique) stepRunModel() {} -func (r stepRunToWorkerUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToArchivedResultsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -330832,15 +355739,15 @@ func (r stepRunToWorkerUpdateUnique) Exec(ctx context.Context) (*StepRunModel, e return &v, nil } -func (r stepRunToWorkerUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToArchivedResultsUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToWorkerFindUnique) Delete() stepRunToWorkerDeleteUnique { - var v stepRunToWorkerDeleteUnique +func (r stepRunToArchivedResultsFindUnique) Delete() stepRunToArchivedResultsDeleteUnique { + var v stepRunToArchivedResultsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -330849,17 +355756,17 @@ func (r stepRunToWorkerFindUnique) Delete() stepRunToWorkerDeleteUnique { return v } -type stepRunToWorkerDeleteUnique struct { +type stepRunToArchivedResultsDeleteUnique struct { query builder.Query } -func (r stepRunToWorkerDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToArchivedResultsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToWorkerDeleteUnique) stepRunModel() {} +func (p stepRunToArchivedResultsDeleteUnique) stepRunModel() {} -func (r stepRunToWorkerDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToArchivedResultsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -330867,30 +355774,30 @@ func (r stepRunToWorkerDeleteUnique) Exec(ctx context.Context) (*StepRunModel, e return &v, nil } -func (r stepRunToWorkerDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToArchivedResultsDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToWorkerFindFirst struct { +type stepRunToArchivedResultsFindFirst struct { query builder.Query } -func (r stepRunToWorkerFindFirst) getQuery() builder.Query { +func (r stepRunToArchivedResultsFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToWorkerFindFirst) ExtractQuery() builder.Query { +func (r stepRunToArchivedResultsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToWorkerFindFirst) with() {} -func (r stepRunToWorkerFindFirst) stepRunModel() {} -func (r stepRunToWorkerFindFirst) stepRunRelation() {} +func (r stepRunToArchivedResultsFindFirst) with() {} +func (r stepRunToArchivedResultsFindFirst) stepRunModel() {} +func (r stepRunToArchivedResultsFindFirst) stepRunRelation() {} -func (r stepRunToWorkerFindFirst) With(params ...WorkerRelationWith) stepRunToWorkerFindFirst { +func (r stepRunToArchivedResultsFindFirst) With(params ...StepRunResultArchiveRelationWith) stepRunToArchivedResultsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -330903,7 +355810,7 @@ func (r stepRunToWorkerFindFirst) With(params ...WorkerRelationWith) stepRunToWo return r } -func (r stepRunToWorkerFindFirst) Select(params ...stepRunPrismaFields) stepRunToWorkerFindFirst { +func (r stepRunToArchivedResultsFindFirst) Select(params ...stepRunPrismaFields) stepRunToArchivedResultsFindFirst { var outputs []builder.Output for _, param := range params { @@ -330917,7 +355824,7 @@ func (r stepRunToWorkerFindFirst) Select(params ...stepRunPrismaFields) stepRunT return r } -func (r stepRunToWorkerFindFirst) Omit(params ...stepRunPrismaFields) stepRunToWorkerFindFirst { +func (r stepRunToArchivedResultsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToArchivedResultsFindFirst { var outputs []builder.Output var raw []string @@ -330936,7 +355843,7 @@ func (r stepRunToWorkerFindFirst) Omit(params ...stepRunPrismaFields) stepRunToW return r } -func (r stepRunToWorkerFindFirst) OrderBy(params ...WorkerOrderByParam) stepRunToWorkerFindFirst { +func (r stepRunToArchivedResultsFindFirst) OrderBy(params ...StepRunResultArchiveOrderByParam) stepRunToArchivedResultsFindFirst { var fields []builder.Field for _, param := range params { @@ -330956,7 +355863,7 @@ func (r stepRunToWorkerFindFirst) OrderBy(params ...WorkerOrderByParam) stepRunT return r } -func (r stepRunToWorkerFindFirst) Skip(count int) stepRunToWorkerFindFirst { +func (r stepRunToArchivedResultsFindFirst) Skip(count int) stepRunToArchivedResultsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -330964,7 +355871,7 @@ func (r stepRunToWorkerFindFirst) Skip(count int) stepRunToWorkerFindFirst { return r } -func (r stepRunToWorkerFindFirst) Take(count int) stepRunToWorkerFindFirst { +func (r stepRunToArchivedResultsFindFirst) Take(count int) stepRunToArchivedResultsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -330972,7 +355879,7 @@ func (r stepRunToWorkerFindFirst) Take(count int) stepRunToWorkerFindFirst { return r } -func (r stepRunToWorkerFindFirst) Cursor(cursor StepRunCursorParam) stepRunToWorkerFindFirst { +func (r stepRunToArchivedResultsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToArchivedResultsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -330980,7 +355887,7 @@ func (r stepRunToWorkerFindFirst) Cursor(cursor StepRunCursorParam) stepRunToWor return r } -func (r stepRunToWorkerFindFirst) Exec(ctx context.Context) ( +func (r stepRunToArchivedResultsFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -330996,7 +355903,7 @@ func (r stepRunToWorkerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToWorkerFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToArchivedResultsFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -331012,23 +355919,23 @@ func (r stepRunToWorkerFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToWorkerFindMany struct { +type stepRunToArchivedResultsFindMany struct { query builder.Query } -func (r stepRunToWorkerFindMany) getQuery() builder.Query { +func (r stepRunToArchivedResultsFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToWorkerFindMany) ExtractQuery() builder.Query { +func (r stepRunToArchivedResultsFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToWorkerFindMany) with() {} -func (r stepRunToWorkerFindMany) stepRunModel() {} -func (r stepRunToWorkerFindMany) stepRunRelation() {} +func (r stepRunToArchivedResultsFindMany) with() {} +func (r stepRunToArchivedResultsFindMany) stepRunModel() {} +func (r stepRunToArchivedResultsFindMany) stepRunRelation() {} -func (r stepRunToWorkerFindMany) With(params ...WorkerRelationWith) stepRunToWorkerFindMany { +func (r stepRunToArchivedResultsFindMany) With(params ...StepRunResultArchiveRelationWith) stepRunToArchivedResultsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -331041,7 +355948,7 @@ func (r stepRunToWorkerFindMany) With(params ...WorkerRelationWith) stepRunToWor return r } -func (r stepRunToWorkerFindMany) Select(params ...stepRunPrismaFields) stepRunToWorkerFindMany { +func (r stepRunToArchivedResultsFindMany) Select(params ...stepRunPrismaFields) stepRunToArchivedResultsFindMany { var outputs []builder.Output for _, param := range params { @@ -331055,7 +355962,7 @@ func (r stepRunToWorkerFindMany) Select(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToWorkerFindMany) Omit(params ...stepRunPrismaFields) stepRunToWorkerFindMany { +func (r stepRunToArchivedResultsFindMany) Omit(params ...stepRunPrismaFields) stepRunToArchivedResultsFindMany { var outputs []builder.Output var raw []string @@ -331074,7 +355981,7 @@ func (r stepRunToWorkerFindMany) Omit(params ...stepRunPrismaFields) stepRunToWo return r } -func (r stepRunToWorkerFindMany) OrderBy(params ...WorkerOrderByParam) stepRunToWorkerFindMany { +func (r stepRunToArchivedResultsFindMany) OrderBy(params ...StepRunResultArchiveOrderByParam) stepRunToArchivedResultsFindMany { var fields []builder.Field for _, param := range params { @@ -331094,7 +356001,7 @@ func (r stepRunToWorkerFindMany) OrderBy(params ...WorkerOrderByParam) stepRunTo return r } -func (r stepRunToWorkerFindMany) Skip(count int) stepRunToWorkerFindMany { +func (r stepRunToArchivedResultsFindMany) Skip(count int) stepRunToArchivedResultsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -331102,7 +356009,7 @@ func (r stepRunToWorkerFindMany) Skip(count int) stepRunToWorkerFindMany { return r } -func (r stepRunToWorkerFindMany) Take(count int) stepRunToWorkerFindMany { +func (r stepRunToArchivedResultsFindMany) Take(count int) stepRunToArchivedResultsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -331110,7 +356017,7 @@ func (r stepRunToWorkerFindMany) Take(count int) stepRunToWorkerFindMany { return r } -func (r stepRunToWorkerFindMany) Cursor(cursor StepRunCursorParam) stepRunToWorkerFindMany { +func (r stepRunToArchivedResultsFindMany) Cursor(cursor StepRunCursorParam) stepRunToArchivedResultsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -331118,7 +356025,7 @@ func (r stepRunToWorkerFindMany) Cursor(cursor StepRunCursorParam) stepRunToWork return r } -func (r stepRunToWorkerFindMany) Exec(ctx context.Context) ( +func (r stepRunToArchivedResultsFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -331130,7 +356037,7 @@ func (r stepRunToWorkerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToWorkerFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToArchivedResultsFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -331142,14 +356049,14 @@ func (r stepRunToWorkerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToWorkerFindMany) Update(params ...StepRunSetParam) stepRunToWorkerUpdateMany { +func (r stepRunToArchivedResultsFindMany) Update(params ...StepRunSetParam) stepRunToArchivedResultsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToWorkerUpdateMany + var v stepRunToArchivedResultsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -331178,17 +356085,17 @@ func (r stepRunToWorkerFindMany) Update(params ...StepRunSetParam) stepRunToWork return v } -type stepRunToWorkerUpdateMany struct { +type stepRunToArchivedResultsUpdateMany struct { query builder.Query } -func (r stepRunToWorkerUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToArchivedResultsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToWorkerUpdateMany) stepRunModel() {} +func (r stepRunToArchivedResultsUpdateMany) stepRunModel() {} -func (r stepRunToWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToArchivedResultsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -331196,15 +356103,15 @@ func (r stepRunToWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToWorkerUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToArchivedResultsUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToWorkerFindMany) Delete() stepRunToWorkerDeleteMany { - var v stepRunToWorkerDeleteMany +func (r stepRunToArchivedResultsFindMany) Delete() stepRunToArchivedResultsDeleteMany { + var v stepRunToArchivedResultsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -331215,17 +356122,17 @@ func (r stepRunToWorkerFindMany) Delete() stepRunToWorkerDeleteMany { return v } -type stepRunToWorkerDeleteMany struct { +type stepRunToArchivedResultsDeleteMany struct { query builder.Query } -func (r stepRunToWorkerDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToArchivedResultsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToWorkerDeleteMany) stepRunModel() {} +func (p stepRunToArchivedResultsDeleteMany) stepRunModel() {} -func (r stepRunToWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToArchivedResultsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -331233,30 +356140,30 @@ func (r stepRunToWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToWorkerDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToArchivedResultsDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToTickerFindUnique struct { +type stepRunToStreamEventsFindUnique struct { query builder.Query } -func (r stepRunToTickerFindUnique) getQuery() builder.Query { +func (r stepRunToStreamEventsFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToTickerFindUnique) ExtractQuery() builder.Query { +func (r stepRunToStreamEventsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTickerFindUnique) with() {} -func (r stepRunToTickerFindUnique) stepRunModel() {} -func (r stepRunToTickerFindUnique) stepRunRelation() {} +func (r stepRunToStreamEventsFindUnique) with() {} +func (r stepRunToStreamEventsFindUnique) stepRunModel() {} +func (r stepRunToStreamEventsFindUnique) stepRunRelation() {} -func (r stepRunToTickerFindUnique) With(params ...TickerRelationWith) stepRunToTickerFindUnique { +func (r stepRunToStreamEventsFindUnique) With(params ...StreamEventRelationWith) stepRunToStreamEventsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -331269,7 +356176,7 @@ func (r stepRunToTickerFindUnique) With(params ...TickerRelationWith) stepRunToT return r } -func (r stepRunToTickerFindUnique) Select(params ...stepRunPrismaFields) stepRunToTickerFindUnique { +func (r stepRunToStreamEventsFindUnique) Select(params ...stepRunPrismaFields) stepRunToStreamEventsFindUnique { var outputs []builder.Output for _, param := range params { @@ -331283,7 +356190,7 @@ func (r stepRunToTickerFindUnique) Select(params ...stepRunPrismaFields) stepRun return r } -func (r stepRunToTickerFindUnique) Omit(params ...stepRunPrismaFields) stepRunToTickerFindUnique { +func (r stepRunToStreamEventsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToStreamEventsFindUnique { var outputs []builder.Output var raw []string @@ -331302,7 +356209,7 @@ func (r stepRunToTickerFindUnique) Omit(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToTickerFindUnique) Exec(ctx context.Context) ( +func (r stepRunToStreamEventsFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -331318,7 +356225,7 @@ func (r stepRunToTickerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToTickerFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToStreamEventsFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -331334,12 +356241,12 @@ func (r stepRunToTickerFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToTickerFindUnique) Update(params ...StepRunSetParam) stepRunToTickerUpdateUnique { +func (r stepRunToStreamEventsFindUnique) Update(params ...StepRunSetParam) stepRunToStreamEventsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToTickerUpdateUnique + var v stepRunToStreamEventsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -331368,17 +356275,17 @@ func (r stepRunToTickerFindUnique) Update(params ...StepRunSetParam) stepRunToTi return v } -type stepRunToTickerUpdateUnique struct { +type stepRunToStreamEventsUpdateUnique struct { query builder.Query } -func (r stepRunToTickerUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToStreamEventsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTickerUpdateUnique) stepRunModel() {} +func (r stepRunToStreamEventsUpdateUnique) stepRunModel() {} -func (r stepRunToTickerUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToStreamEventsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -331386,15 +356293,15 @@ func (r stepRunToTickerUpdateUnique) Exec(ctx context.Context) (*StepRunModel, e return &v, nil } -func (r stepRunToTickerUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToStreamEventsUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToTickerFindUnique) Delete() stepRunToTickerDeleteUnique { - var v stepRunToTickerDeleteUnique +func (r stepRunToStreamEventsFindUnique) Delete() stepRunToStreamEventsDeleteUnique { + var v stepRunToStreamEventsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -331403,17 +356310,17 @@ func (r stepRunToTickerFindUnique) Delete() stepRunToTickerDeleteUnique { return v } -type stepRunToTickerDeleteUnique struct { +type stepRunToStreamEventsDeleteUnique struct { query builder.Query } -func (r stepRunToTickerDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToStreamEventsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToTickerDeleteUnique) stepRunModel() {} +func (p stepRunToStreamEventsDeleteUnique) stepRunModel() {} -func (r stepRunToTickerDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToStreamEventsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -331421,30 +356328,30 @@ func (r stepRunToTickerDeleteUnique) Exec(ctx context.Context) (*StepRunModel, e return &v, nil } -func (r stepRunToTickerDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToStreamEventsDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToTickerFindFirst struct { +type stepRunToStreamEventsFindFirst struct { query builder.Query } -func (r stepRunToTickerFindFirst) getQuery() builder.Query { +func (r stepRunToStreamEventsFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToTickerFindFirst) ExtractQuery() builder.Query { +func (r stepRunToStreamEventsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTickerFindFirst) with() {} -func (r stepRunToTickerFindFirst) stepRunModel() {} -func (r stepRunToTickerFindFirst) stepRunRelation() {} +func (r stepRunToStreamEventsFindFirst) with() {} +func (r stepRunToStreamEventsFindFirst) stepRunModel() {} +func (r stepRunToStreamEventsFindFirst) stepRunRelation() {} -func (r stepRunToTickerFindFirst) With(params ...TickerRelationWith) stepRunToTickerFindFirst { +func (r stepRunToStreamEventsFindFirst) With(params ...StreamEventRelationWith) stepRunToStreamEventsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -331457,7 +356364,7 @@ func (r stepRunToTickerFindFirst) With(params ...TickerRelationWith) stepRunToTi return r } -func (r stepRunToTickerFindFirst) Select(params ...stepRunPrismaFields) stepRunToTickerFindFirst { +func (r stepRunToStreamEventsFindFirst) Select(params ...stepRunPrismaFields) stepRunToStreamEventsFindFirst { var outputs []builder.Output for _, param := range params { @@ -331471,7 +356378,7 @@ func (r stepRunToTickerFindFirst) Select(params ...stepRunPrismaFields) stepRunT return r } -func (r stepRunToTickerFindFirst) Omit(params ...stepRunPrismaFields) stepRunToTickerFindFirst { +func (r stepRunToStreamEventsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToStreamEventsFindFirst { var outputs []builder.Output var raw []string @@ -331490,7 +356397,7 @@ func (r stepRunToTickerFindFirst) Omit(params ...stepRunPrismaFields) stepRunToT return r } -func (r stepRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) stepRunToTickerFindFirst { +func (r stepRunToStreamEventsFindFirst) OrderBy(params ...StreamEventOrderByParam) stepRunToStreamEventsFindFirst { var fields []builder.Field for _, param := range params { @@ -331510,7 +356417,7 @@ func (r stepRunToTickerFindFirst) OrderBy(params ...TickerOrderByParam) stepRunT return r } -func (r stepRunToTickerFindFirst) Skip(count int) stepRunToTickerFindFirst { +func (r stepRunToStreamEventsFindFirst) Skip(count int) stepRunToStreamEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -331518,7 +356425,7 @@ func (r stepRunToTickerFindFirst) Skip(count int) stepRunToTickerFindFirst { return r } -func (r stepRunToTickerFindFirst) Take(count int) stepRunToTickerFindFirst { +func (r stepRunToStreamEventsFindFirst) Take(count int) stepRunToStreamEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -331526,7 +356433,7 @@ func (r stepRunToTickerFindFirst) Take(count int) stepRunToTickerFindFirst { return r } -func (r stepRunToTickerFindFirst) Cursor(cursor StepRunCursorParam) stepRunToTickerFindFirst { +func (r stepRunToStreamEventsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToStreamEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -331534,7 +356441,7 @@ func (r stepRunToTickerFindFirst) Cursor(cursor StepRunCursorParam) stepRunToTic return r } -func (r stepRunToTickerFindFirst) Exec(ctx context.Context) ( +func (r stepRunToStreamEventsFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -331550,7 +356457,7 @@ func (r stepRunToTickerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToTickerFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToStreamEventsFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -331566,23 +356473,23 @@ func (r stepRunToTickerFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToTickerFindMany struct { +type stepRunToStreamEventsFindMany struct { query builder.Query } -func (r stepRunToTickerFindMany) getQuery() builder.Query { +func (r stepRunToStreamEventsFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToTickerFindMany) ExtractQuery() builder.Query { +func (r stepRunToStreamEventsFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTickerFindMany) with() {} -func (r stepRunToTickerFindMany) stepRunModel() {} -func (r stepRunToTickerFindMany) stepRunRelation() {} +func (r stepRunToStreamEventsFindMany) with() {} +func (r stepRunToStreamEventsFindMany) stepRunModel() {} +func (r stepRunToStreamEventsFindMany) stepRunRelation() {} -func (r stepRunToTickerFindMany) With(params ...TickerRelationWith) stepRunToTickerFindMany { +func (r stepRunToStreamEventsFindMany) With(params ...StreamEventRelationWith) stepRunToStreamEventsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -331595,7 +356502,7 @@ func (r stepRunToTickerFindMany) With(params ...TickerRelationWith) stepRunToTic return r } -func (r stepRunToTickerFindMany) Select(params ...stepRunPrismaFields) stepRunToTickerFindMany { +func (r stepRunToStreamEventsFindMany) Select(params ...stepRunPrismaFields) stepRunToStreamEventsFindMany { var outputs []builder.Output for _, param := range params { @@ -331609,7 +356516,7 @@ func (r stepRunToTickerFindMany) Select(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToTickerFindMany) Omit(params ...stepRunPrismaFields) stepRunToTickerFindMany { +func (r stepRunToStreamEventsFindMany) Omit(params ...stepRunPrismaFields) stepRunToStreamEventsFindMany { var outputs []builder.Output var raw []string @@ -331628,7 +356535,7 @@ func (r stepRunToTickerFindMany) Omit(params ...stepRunPrismaFields) stepRunToTi return r } -func (r stepRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) stepRunToTickerFindMany { +func (r stepRunToStreamEventsFindMany) OrderBy(params ...StreamEventOrderByParam) stepRunToStreamEventsFindMany { var fields []builder.Field for _, param := range params { @@ -331648,7 +356555,7 @@ func (r stepRunToTickerFindMany) OrderBy(params ...TickerOrderByParam) stepRunTo return r } -func (r stepRunToTickerFindMany) Skip(count int) stepRunToTickerFindMany { +func (r stepRunToStreamEventsFindMany) Skip(count int) stepRunToStreamEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -331656,7 +356563,7 @@ func (r stepRunToTickerFindMany) Skip(count int) stepRunToTickerFindMany { return r } -func (r stepRunToTickerFindMany) Take(count int) stepRunToTickerFindMany { +func (r stepRunToStreamEventsFindMany) Take(count int) stepRunToStreamEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -331664,7 +356571,7 @@ func (r stepRunToTickerFindMany) Take(count int) stepRunToTickerFindMany { return r } -func (r stepRunToTickerFindMany) Cursor(cursor StepRunCursorParam) stepRunToTickerFindMany { +func (r stepRunToStreamEventsFindMany) Cursor(cursor StepRunCursorParam) stepRunToStreamEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -331672,7 +356579,7 @@ func (r stepRunToTickerFindMany) Cursor(cursor StepRunCursorParam) stepRunToTick return r } -func (r stepRunToTickerFindMany) Exec(ctx context.Context) ( +func (r stepRunToStreamEventsFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -331684,7 +356591,7 @@ func (r stepRunToTickerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToTickerFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToStreamEventsFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -331696,14 +356603,14 @@ func (r stepRunToTickerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToTickerFindMany) Update(params ...StepRunSetParam) stepRunToTickerUpdateMany { +func (r stepRunToStreamEventsFindMany) Update(params ...StepRunSetParam) stepRunToStreamEventsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToTickerUpdateMany + var v stepRunToStreamEventsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -331732,17 +356639,17 @@ func (r stepRunToTickerFindMany) Update(params ...StepRunSetParam) stepRunToTick return v } -type stepRunToTickerUpdateMany struct { +type stepRunToStreamEventsUpdateMany struct { query builder.Query } -func (r stepRunToTickerUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToStreamEventsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToTickerUpdateMany) stepRunModel() {} +func (r stepRunToStreamEventsUpdateMany) stepRunModel() {} -func (r stepRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToStreamEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -331750,15 +356657,15 @@ func (r stepRunToTickerUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToTickerUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToStreamEventsUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToTickerFindMany) Delete() stepRunToTickerDeleteMany { - var v stepRunToTickerDeleteMany +func (r stepRunToStreamEventsFindMany) Delete() stepRunToStreamEventsDeleteMany { + var v stepRunToStreamEventsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -331769,17 +356676,17 @@ func (r stepRunToTickerFindMany) Delete() stepRunToTickerDeleteMany { return v } -type stepRunToTickerDeleteMany struct { +type stepRunToStreamEventsDeleteMany struct { query builder.Query } -func (r stepRunToTickerDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToStreamEventsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToTickerDeleteMany) stepRunModel() {} +func (p stepRunToStreamEventsDeleteMany) stepRunModel() {} -func (r stepRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToStreamEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -331787,30 +356694,30 @@ func (r stepRunToTickerDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToTickerDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToStreamEventsDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToSemaphoreSlotFindUnique struct { +type stepRunToLogsFindUnique struct { query builder.Query } -func (r stepRunToSemaphoreSlotFindUnique) getQuery() builder.Query { +func (r stepRunToLogsFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToSemaphoreSlotFindUnique) ExtractQuery() builder.Query { +func (r stepRunToLogsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToSemaphoreSlotFindUnique) with() {} -func (r stepRunToSemaphoreSlotFindUnique) stepRunModel() {} -func (r stepRunToSemaphoreSlotFindUnique) stepRunRelation() {} +func (r stepRunToLogsFindUnique) with() {} +func (r stepRunToLogsFindUnique) stepRunModel() {} +func (r stepRunToLogsFindUnique) stepRunRelation() {} -func (r stepRunToSemaphoreSlotFindUnique) With(params ...WorkerSemaphoreSlotRelationWith) stepRunToSemaphoreSlotFindUnique { +func (r stepRunToLogsFindUnique) With(params ...LogLineRelationWith) stepRunToLogsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -331823,7 +356730,7 @@ func (r stepRunToSemaphoreSlotFindUnique) With(params ...WorkerSemaphoreSlotRela return r } -func (r stepRunToSemaphoreSlotFindUnique) Select(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindUnique { +func (r stepRunToLogsFindUnique) Select(params ...stepRunPrismaFields) stepRunToLogsFindUnique { var outputs []builder.Output for _, param := range params { @@ -331837,7 +356744,7 @@ func (r stepRunToSemaphoreSlotFindUnique) Select(params ...stepRunPrismaFields) return r } -func (r stepRunToSemaphoreSlotFindUnique) Omit(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindUnique { +func (r stepRunToLogsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToLogsFindUnique { var outputs []builder.Output var raw []string @@ -331856,7 +356763,7 @@ func (r stepRunToSemaphoreSlotFindUnique) Omit(params ...stepRunPrismaFields) st return r } -func (r stepRunToSemaphoreSlotFindUnique) Exec(ctx context.Context) ( +func (r stepRunToLogsFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -331872,7 +356779,7 @@ func (r stepRunToSemaphoreSlotFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToSemaphoreSlotFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToLogsFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -331888,12 +356795,12 @@ func (r stepRunToSemaphoreSlotFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToSemaphoreSlotFindUnique) Update(params ...StepRunSetParam) stepRunToSemaphoreSlotUpdateUnique { +func (r stepRunToLogsFindUnique) Update(params ...StepRunSetParam) stepRunToLogsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToSemaphoreSlotUpdateUnique + var v stepRunToLogsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -331922,17 +356829,17 @@ func (r stepRunToSemaphoreSlotFindUnique) Update(params ...StepRunSetParam) step return v } -type stepRunToSemaphoreSlotUpdateUnique struct { +type stepRunToLogsUpdateUnique struct { query builder.Query } -func (r stepRunToSemaphoreSlotUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToLogsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToSemaphoreSlotUpdateUnique) stepRunModel() {} +func (r stepRunToLogsUpdateUnique) stepRunModel() {} -func (r stepRunToSemaphoreSlotUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToLogsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -331940,15 +356847,15 @@ func (r stepRunToSemaphoreSlotUpdateUnique) Exec(ctx context.Context) (*StepRunM return &v, nil } -func (r stepRunToSemaphoreSlotUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToLogsUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToSemaphoreSlotFindUnique) Delete() stepRunToSemaphoreSlotDeleteUnique { - var v stepRunToSemaphoreSlotDeleteUnique +func (r stepRunToLogsFindUnique) Delete() stepRunToLogsDeleteUnique { + var v stepRunToLogsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -331957,17 +356864,17 @@ func (r stepRunToSemaphoreSlotFindUnique) Delete() stepRunToSemaphoreSlotDeleteU return v } -type stepRunToSemaphoreSlotDeleteUnique struct { +type stepRunToLogsDeleteUnique struct { query builder.Query } -func (r stepRunToSemaphoreSlotDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToLogsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToSemaphoreSlotDeleteUnique) stepRunModel() {} +func (p stepRunToLogsDeleteUnique) stepRunModel() {} -func (r stepRunToSemaphoreSlotDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToLogsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -331975,30 +356882,30 @@ func (r stepRunToSemaphoreSlotDeleteUnique) Exec(ctx context.Context) (*StepRunM return &v, nil } -func (r stepRunToSemaphoreSlotDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToLogsDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToSemaphoreSlotFindFirst struct { +type stepRunToLogsFindFirst struct { query builder.Query } -func (r stepRunToSemaphoreSlotFindFirst) getQuery() builder.Query { +func (r stepRunToLogsFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToSemaphoreSlotFindFirst) ExtractQuery() builder.Query { +func (r stepRunToLogsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToSemaphoreSlotFindFirst) with() {} -func (r stepRunToSemaphoreSlotFindFirst) stepRunModel() {} -func (r stepRunToSemaphoreSlotFindFirst) stepRunRelation() {} +func (r stepRunToLogsFindFirst) with() {} +func (r stepRunToLogsFindFirst) stepRunModel() {} +func (r stepRunToLogsFindFirst) stepRunRelation() {} -func (r stepRunToSemaphoreSlotFindFirst) With(params ...WorkerSemaphoreSlotRelationWith) stepRunToSemaphoreSlotFindFirst { +func (r stepRunToLogsFindFirst) With(params ...LogLineRelationWith) stepRunToLogsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -332011,7 +356918,7 @@ func (r stepRunToSemaphoreSlotFindFirst) With(params ...WorkerSemaphoreSlotRelat return r } -func (r stepRunToSemaphoreSlotFindFirst) Select(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindFirst { +func (r stepRunToLogsFindFirst) Select(params ...stepRunPrismaFields) stepRunToLogsFindFirst { var outputs []builder.Output for _, param := range params { @@ -332025,7 +356932,7 @@ func (r stepRunToSemaphoreSlotFindFirst) Select(params ...stepRunPrismaFields) s return r } -func (r stepRunToSemaphoreSlotFindFirst) Omit(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindFirst { +func (r stepRunToLogsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToLogsFindFirst { var outputs []builder.Output var raw []string @@ -332044,7 +356951,7 @@ func (r stepRunToSemaphoreSlotFindFirst) Omit(params ...stepRunPrismaFields) ste return r } -func (r stepRunToSemaphoreSlotFindFirst) OrderBy(params ...WorkerSemaphoreSlotOrderByParam) stepRunToSemaphoreSlotFindFirst { +func (r stepRunToLogsFindFirst) OrderBy(params ...LogLineOrderByParam) stepRunToLogsFindFirst { var fields []builder.Field for _, param := range params { @@ -332064,7 +356971,7 @@ func (r stepRunToSemaphoreSlotFindFirst) OrderBy(params ...WorkerSemaphoreSlotOr return r } -func (r stepRunToSemaphoreSlotFindFirst) Skip(count int) stepRunToSemaphoreSlotFindFirst { +func (r stepRunToLogsFindFirst) Skip(count int) stepRunToLogsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -332072,7 +356979,7 @@ func (r stepRunToSemaphoreSlotFindFirst) Skip(count int) stepRunToSemaphoreSlotF return r } -func (r stepRunToSemaphoreSlotFindFirst) Take(count int) stepRunToSemaphoreSlotFindFirst { +func (r stepRunToLogsFindFirst) Take(count int) stepRunToLogsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -332080,7 +356987,7 @@ func (r stepRunToSemaphoreSlotFindFirst) Take(count int) stepRunToSemaphoreSlotF return r } -func (r stepRunToSemaphoreSlotFindFirst) Cursor(cursor StepRunCursorParam) stepRunToSemaphoreSlotFindFirst { +func (r stepRunToLogsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToLogsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -332088,7 +356995,7 @@ func (r stepRunToSemaphoreSlotFindFirst) Cursor(cursor StepRunCursorParam) stepR return r } -func (r stepRunToSemaphoreSlotFindFirst) Exec(ctx context.Context) ( +func (r stepRunToLogsFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -332104,7 +357011,7 @@ func (r stepRunToSemaphoreSlotFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToSemaphoreSlotFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToLogsFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -332120,23 +357027,23 @@ func (r stepRunToSemaphoreSlotFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToSemaphoreSlotFindMany struct { +type stepRunToLogsFindMany struct { query builder.Query } -func (r stepRunToSemaphoreSlotFindMany) getQuery() builder.Query { +func (r stepRunToLogsFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToSemaphoreSlotFindMany) ExtractQuery() builder.Query { +func (r stepRunToLogsFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToSemaphoreSlotFindMany) with() {} -func (r stepRunToSemaphoreSlotFindMany) stepRunModel() {} -func (r stepRunToSemaphoreSlotFindMany) stepRunRelation() {} +func (r stepRunToLogsFindMany) with() {} +func (r stepRunToLogsFindMany) stepRunModel() {} +func (r stepRunToLogsFindMany) stepRunRelation() {} -func (r stepRunToSemaphoreSlotFindMany) With(params ...WorkerSemaphoreSlotRelationWith) stepRunToSemaphoreSlotFindMany { +func (r stepRunToLogsFindMany) With(params ...LogLineRelationWith) stepRunToLogsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -332149,7 +357056,7 @@ func (r stepRunToSemaphoreSlotFindMany) With(params ...WorkerSemaphoreSlotRelati return r } -func (r stepRunToSemaphoreSlotFindMany) Select(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindMany { +func (r stepRunToLogsFindMany) Select(params ...stepRunPrismaFields) stepRunToLogsFindMany { var outputs []builder.Output for _, param := range params { @@ -332163,7 +357070,7 @@ func (r stepRunToSemaphoreSlotFindMany) Select(params ...stepRunPrismaFields) st return r } -func (r stepRunToSemaphoreSlotFindMany) Omit(params ...stepRunPrismaFields) stepRunToSemaphoreSlotFindMany { +func (r stepRunToLogsFindMany) Omit(params ...stepRunPrismaFields) stepRunToLogsFindMany { var outputs []builder.Output var raw []string @@ -332182,7 +357089,7 @@ func (r stepRunToSemaphoreSlotFindMany) Omit(params ...stepRunPrismaFields) step return r } -func (r stepRunToSemaphoreSlotFindMany) OrderBy(params ...WorkerSemaphoreSlotOrderByParam) stepRunToSemaphoreSlotFindMany { +func (r stepRunToLogsFindMany) OrderBy(params ...LogLineOrderByParam) stepRunToLogsFindMany { var fields []builder.Field for _, param := range params { @@ -332202,7 +357109,7 @@ func (r stepRunToSemaphoreSlotFindMany) OrderBy(params ...WorkerSemaphoreSlotOrd return r } -func (r stepRunToSemaphoreSlotFindMany) Skip(count int) stepRunToSemaphoreSlotFindMany { +func (r stepRunToLogsFindMany) Skip(count int) stepRunToLogsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -332210,7 +357117,7 @@ func (r stepRunToSemaphoreSlotFindMany) Skip(count int) stepRunToSemaphoreSlotFi return r } -func (r stepRunToSemaphoreSlotFindMany) Take(count int) stepRunToSemaphoreSlotFindMany { +func (r stepRunToLogsFindMany) Take(count int) stepRunToLogsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -332218,7 +357125,7 @@ func (r stepRunToSemaphoreSlotFindMany) Take(count int) stepRunToSemaphoreSlotFi return r } -func (r stepRunToSemaphoreSlotFindMany) Cursor(cursor StepRunCursorParam) stepRunToSemaphoreSlotFindMany { +func (r stepRunToLogsFindMany) Cursor(cursor StepRunCursorParam) stepRunToLogsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -332226,7 +357133,7 @@ func (r stepRunToSemaphoreSlotFindMany) Cursor(cursor StepRunCursorParam) stepRu return r } -func (r stepRunToSemaphoreSlotFindMany) Exec(ctx context.Context) ( +func (r stepRunToLogsFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -332238,7 +357145,7 @@ func (r stepRunToSemaphoreSlotFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToSemaphoreSlotFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToLogsFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -332250,14 +357157,14 @@ func (r stepRunToSemaphoreSlotFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToSemaphoreSlotFindMany) Update(params ...StepRunSetParam) stepRunToSemaphoreSlotUpdateMany { +func (r stepRunToLogsFindMany) Update(params ...StepRunSetParam) stepRunToLogsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToSemaphoreSlotUpdateMany + var v stepRunToLogsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -332286,17 +357193,17 @@ func (r stepRunToSemaphoreSlotFindMany) Update(params ...StepRunSetParam) stepRu return v } -type stepRunToSemaphoreSlotUpdateMany struct { +type stepRunToLogsUpdateMany struct { query builder.Query } -func (r stepRunToSemaphoreSlotUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToLogsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToSemaphoreSlotUpdateMany) stepRunModel() {} +func (r stepRunToLogsUpdateMany) stepRunModel() {} -func (r stepRunToSemaphoreSlotUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToLogsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -332304,15 +357211,15 @@ func (r stepRunToSemaphoreSlotUpdateMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r stepRunToSemaphoreSlotUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToLogsUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToSemaphoreSlotFindMany) Delete() stepRunToSemaphoreSlotDeleteMany { - var v stepRunToSemaphoreSlotDeleteMany +func (r stepRunToLogsFindMany) Delete() stepRunToLogsDeleteMany { + var v stepRunToLogsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -332323,17 +357230,17 @@ func (r stepRunToSemaphoreSlotFindMany) Delete() stepRunToSemaphoreSlotDeleteMan return v } -type stepRunToSemaphoreSlotDeleteMany struct { +type stepRunToLogsDeleteMany struct { query builder.Query } -func (r stepRunToSemaphoreSlotDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToLogsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToSemaphoreSlotDeleteMany) stepRunModel() {} +func (p stepRunToLogsDeleteMany) stepRunModel() {} -func (r stepRunToSemaphoreSlotDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToLogsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -332341,30 +357248,30 @@ func (r stepRunToSemaphoreSlotDeleteMany) Exec(ctx context.Context) (*BatchResul return &v, nil } -func (r stepRunToSemaphoreSlotDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToLogsDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToArchivedResultsFindUnique struct { +type stepRunToChildWorkflowRunsFindUnique struct { query builder.Query } -func (r stepRunToArchivedResultsFindUnique) getQuery() builder.Query { +func (r stepRunToChildWorkflowRunsFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToArchivedResultsFindUnique) ExtractQuery() builder.Query { +func (r stepRunToChildWorkflowRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToArchivedResultsFindUnique) with() {} -func (r stepRunToArchivedResultsFindUnique) stepRunModel() {} -func (r stepRunToArchivedResultsFindUnique) stepRunRelation() {} +func (r stepRunToChildWorkflowRunsFindUnique) with() {} +func (r stepRunToChildWorkflowRunsFindUnique) stepRunModel() {} +func (r stepRunToChildWorkflowRunsFindUnique) stepRunRelation() {} -func (r stepRunToArchivedResultsFindUnique) With(params ...StepRunResultArchiveRelationWith) stepRunToArchivedResultsFindUnique { +func (r stepRunToChildWorkflowRunsFindUnique) With(params ...WorkflowRunRelationWith) stepRunToChildWorkflowRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -332377,7 +357284,7 @@ func (r stepRunToArchivedResultsFindUnique) With(params ...StepRunResultArchiveR return r } -func (r stepRunToArchivedResultsFindUnique) Select(params ...stepRunPrismaFields) stepRunToArchivedResultsFindUnique { +func (r stepRunToChildWorkflowRunsFindUnique) Select(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -332391,7 +357298,7 @@ func (r stepRunToArchivedResultsFindUnique) Select(params ...stepRunPrismaFields return r } -func (r stepRunToArchivedResultsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToArchivedResultsFindUnique { +func (r stepRunToChildWorkflowRunsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindUnique { var outputs []builder.Output var raw []string @@ -332410,7 +357317,7 @@ func (r stepRunToArchivedResultsFindUnique) Omit(params ...stepRunPrismaFields) return r } -func (r stepRunToArchivedResultsFindUnique) Exec(ctx context.Context) ( +func (r stepRunToChildWorkflowRunsFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -332426,7 +357333,7 @@ func (r stepRunToArchivedResultsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToArchivedResultsFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToChildWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -332442,12 +357349,12 @@ func (r stepRunToArchivedResultsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToArchivedResultsFindUnique) Update(params ...StepRunSetParam) stepRunToArchivedResultsUpdateUnique { +func (r stepRunToChildWorkflowRunsFindUnique) Update(params ...StepRunSetParam) stepRunToChildWorkflowRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToArchivedResultsUpdateUnique + var v stepRunToChildWorkflowRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -332476,17 +357383,17 @@ func (r stepRunToArchivedResultsFindUnique) Update(params ...StepRunSetParam) st return v } -type stepRunToArchivedResultsUpdateUnique struct { +type stepRunToChildWorkflowRunsUpdateUnique struct { query builder.Query } -func (r stepRunToArchivedResultsUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToChildWorkflowRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToArchivedResultsUpdateUnique) stepRunModel() {} +func (r stepRunToChildWorkflowRunsUpdateUnique) stepRunModel() {} -func (r stepRunToArchivedResultsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToChildWorkflowRunsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -332494,15 +357401,15 @@ func (r stepRunToArchivedResultsUpdateUnique) Exec(ctx context.Context) (*StepRu return &v, nil } -func (r stepRunToArchivedResultsUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToChildWorkflowRunsUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToArchivedResultsFindUnique) Delete() stepRunToArchivedResultsDeleteUnique { - var v stepRunToArchivedResultsDeleteUnique +func (r stepRunToChildWorkflowRunsFindUnique) Delete() stepRunToChildWorkflowRunsDeleteUnique { + var v stepRunToChildWorkflowRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -332511,17 +357418,17 @@ func (r stepRunToArchivedResultsFindUnique) Delete() stepRunToArchivedResultsDel return v } -type stepRunToArchivedResultsDeleteUnique struct { +type stepRunToChildWorkflowRunsDeleteUnique struct { query builder.Query } -func (r stepRunToArchivedResultsDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToChildWorkflowRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToArchivedResultsDeleteUnique) stepRunModel() {} +func (p stepRunToChildWorkflowRunsDeleteUnique) stepRunModel() {} -func (r stepRunToArchivedResultsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToChildWorkflowRunsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -332529,30 +357436,30 @@ func (r stepRunToArchivedResultsDeleteUnique) Exec(ctx context.Context) (*StepRu return &v, nil } -func (r stepRunToArchivedResultsDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToChildWorkflowRunsDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToArchivedResultsFindFirst struct { +type stepRunToChildWorkflowRunsFindFirst struct { query builder.Query } -func (r stepRunToArchivedResultsFindFirst) getQuery() builder.Query { +func (r stepRunToChildWorkflowRunsFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToArchivedResultsFindFirst) ExtractQuery() builder.Query { +func (r stepRunToChildWorkflowRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToArchivedResultsFindFirst) with() {} -func (r stepRunToArchivedResultsFindFirst) stepRunModel() {} -func (r stepRunToArchivedResultsFindFirst) stepRunRelation() {} +func (r stepRunToChildWorkflowRunsFindFirst) with() {} +func (r stepRunToChildWorkflowRunsFindFirst) stepRunModel() {} +func (r stepRunToChildWorkflowRunsFindFirst) stepRunRelation() {} -func (r stepRunToArchivedResultsFindFirst) With(params ...StepRunResultArchiveRelationWith) stepRunToArchivedResultsFindFirst { +func (r stepRunToChildWorkflowRunsFindFirst) With(params ...WorkflowRunRelationWith) stepRunToChildWorkflowRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -332565,7 +357472,7 @@ func (r stepRunToArchivedResultsFindFirst) With(params ...StepRunResultArchiveRe return r } -func (r stepRunToArchivedResultsFindFirst) Select(params ...stepRunPrismaFields) stepRunToArchivedResultsFindFirst { +func (r stepRunToChildWorkflowRunsFindFirst) Select(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -332579,7 +357486,7 @@ func (r stepRunToArchivedResultsFindFirst) Select(params ...stepRunPrismaFields) return r } -func (r stepRunToArchivedResultsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToArchivedResultsFindFirst { +func (r stepRunToChildWorkflowRunsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindFirst { var outputs []builder.Output var raw []string @@ -332598,7 +357505,7 @@ func (r stepRunToArchivedResultsFindFirst) Omit(params ...stepRunPrismaFields) s return r } -func (r stepRunToArchivedResultsFindFirst) OrderBy(params ...StepRunResultArchiveOrderByParam) stepRunToArchivedResultsFindFirst { +func (r stepRunToChildWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunOrderByParam) stepRunToChildWorkflowRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -332618,7 +357525,7 @@ func (r stepRunToArchivedResultsFindFirst) OrderBy(params ...StepRunResultArchiv return r } -func (r stepRunToArchivedResultsFindFirst) Skip(count int) stepRunToArchivedResultsFindFirst { +func (r stepRunToChildWorkflowRunsFindFirst) Skip(count int) stepRunToChildWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -332626,7 +357533,7 @@ func (r stepRunToArchivedResultsFindFirst) Skip(count int) stepRunToArchivedResu return r } -func (r stepRunToArchivedResultsFindFirst) Take(count int) stepRunToArchivedResultsFindFirst { +func (r stepRunToChildWorkflowRunsFindFirst) Take(count int) stepRunToChildWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -332634,7 +357541,7 @@ func (r stepRunToArchivedResultsFindFirst) Take(count int) stepRunToArchivedResu return r } -func (r stepRunToArchivedResultsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToArchivedResultsFindFirst { +func (r stepRunToChildWorkflowRunsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToChildWorkflowRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -332642,7 +357549,7 @@ func (r stepRunToArchivedResultsFindFirst) Cursor(cursor StepRunCursorParam) ste return r } -func (r stepRunToArchivedResultsFindFirst) Exec(ctx context.Context) ( +func (r stepRunToChildWorkflowRunsFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -332658,7 +357565,7 @@ func (r stepRunToArchivedResultsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToArchivedResultsFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToChildWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -332674,23 +357581,23 @@ func (r stepRunToArchivedResultsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToArchivedResultsFindMany struct { +type stepRunToChildWorkflowRunsFindMany struct { query builder.Query } -func (r stepRunToArchivedResultsFindMany) getQuery() builder.Query { +func (r stepRunToChildWorkflowRunsFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToArchivedResultsFindMany) ExtractQuery() builder.Query { +func (r stepRunToChildWorkflowRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToArchivedResultsFindMany) with() {} -func (r stepRunToArchivedResultsFindMany) stepRunModel() {} -func (r stepRunToArchivedResultsFindMany) stepRunRelation() {} +func (r stepRunToChildWorkflowRunsFindMany) with() {} +func (r stepRunToChildWorkflowRunsFindMany) stepRunModel() {} +func (r stepRunToChildWorkflowRunsFindMany) stepRunRelation() {} -func (r stepRunToArchivedResultsFindMany) With(params ...StepRunResultArchiveRelationWith) stepRunToArchivedResultsFindMany { +func (r stepRunToChildWorkflowRunsFindMany) With(params ...WorkflowRunRelationWith) stepRunToChildWorkflowRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -332703,7 +357610,7 @@ func (r stepRunToArchivedResultsFindMany) With(params ...StepRunResultArchiveRel return r } -func (r stepRunToArchivedResultsFindMany) Select(params ...stepRunPrismaFields) stepRunToArchivedResultsFindMany { +func (r stepRunToChildWorkflowRunsFindMany) Select(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -332717,7 +357624,7 @@ func (r stepRunToArchivedResultsFindMany) Select(params ...stepRunPrismaFields) return r } -func (r stepRunToArchivedResultsFindMany) Omit(params ...stepRunPrismaFields) stepRunToArchivedResultsFindMany { +func (r stepRunToChildWorkflowRunsFindMany) Omit(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindMany { var outputs []builder.Output var raw []string @@ -332736,7 +357643,7 @@ func (r stepRunToArchivedResultsFindMany) Omit(params ...stepRunPrismaFields) st return r } -func (r stepRunToArchivedResultsFindMany) OrderBy(params ...StepRunResultArchiveOrderByParam) stepRunToArchivedResultsFindMany { +func (r stepRunToChildWorkflowRunsFindMany) OrderBy(params ...WorkflowRunOrderByParam) stepRunToChildWorkflowRunsFindMany { var fields []builder.Field for _, param := range params { @@ -332756,7 +357663,7 @@ func (r stepRunToArchivedResultsFindMany) OrderBy(params ...StepRunResultArchive return r } -func (r stepRunToArchivedResultsFindMany) Skip(count int) stepRunToArchivedResultsFindMany { +func (r stepRunToChildWorkflowRunsFindMany) Skip(count int) stepRunToChildWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -332764,7 +357671,7 @@ func (r stepRunToArchivedResultsFindMany) Skip(count int) stepRunToArchivedResul return r } -func (r stepRunToArchivedResultsFindMany) Take(count int) stepRunToArchivedResultsFindMany { +func (r stepRunToChildWorkflowRunsFindMany) Take(count int) stepRunToChildWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -332772,7 +357679,7 @@ func (r stepRunToArchivedResultsFindMany) Take(count int) stepRunToArchivedResul return r } -func (r stepRunToArchivedResultsFindMany) Cursor(cursor StepRunCursorParam) stepRunToArchivedResultsFindMany { +func (r stepRunToChildWorkflowRunsFindMany) Cursor(cursor StepRunCursorParam) stepRunToChildWorkflowRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -332780,7 +357687,7 @@ func (r stepRunToArchivedResultsFindMany) Cursor(cursor StepRunCursorParam) step return r } -func (r stepRunToArchivedResultsFindMany) Exec(ctx context.Context) ( +func (r stepRunToChildWorkflowRunsFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -332792,7 +357699,7 @@ func (r stepRunToArchivedResultsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToArchivedResultsFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToChildWorkflowRunsFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -332804,14 +357711,14 @@ func (r stepRunToArchivedResultsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToArchivedResultsFindMany) Update(params ...StepRunSetParam) stepRunToArchivedResultsUpdateMany { +func (r stepRunToChildWorkflowRunsFindMany) Update(params ...StepRunSetParam) stepRunToChildWorkflowRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToArchivedResultsUpdateMany + var v stepRunToChildWorkflowRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -332840,17 +357747,17 @@ func (r stepRunToArchivedResultsFindMany) Update(params ...StepRunSetParam) step return v } -type stepRunToArchivedResultsUpdateMany struct { +type stepRunToChildWorkflowRunsUpdateMany struct { query builder.Query } -func (r stepRunToArchivedResultsUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToChildWorkflowRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToArchivedResultsUpdateMany) stepRunModel() {} +func (r stepRunToChildWorkflowRunsUpdateMany) stepRunModel() {} -func (r stepRunToArchivedResultsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToChildWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -332858,15 +357765,15 @@ func (r stepRunToArchivedResultsUpdateMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r stepRunToArchivedResultsUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToChildWorkflowRunsUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToArchivedResultsFindMany) Delete() stepRunToArchivedResultsDeleteMany { - var v stepRunToArchivedResultsDeleteMany +func (r stepRunToChildWorkflowRunsFindMany) Delete() stepRunToChildWorkflowRunsDeleteMany { + var v stepRunToChildWorkflowRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -332877,17 +357784,17 @@ func (r stepRunToArchivedResultsFindMany) Delete() stepRunToArchivedResultsDelet return v } -type stepRunToArchivedResultsDeleteMany struct { +type stepRunToChildWorkflowRunsDeleteMany struct { query builder.Query } -func (r stepRunToArchivedResultsDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToChildWorkflowRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToArchivedResultsDeleteMany) stepRunModel() {} +func (p stepRunToChildWorkflowRunsDeleteMany) stepRunModel() {} -func (r stepRunToArchivedResultsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToChildWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -332895,30 +357802,30 @@ func (r stepRunToArchivedResultsDeleteMany) Exec(ctx context.Context) (*BatchRes return &v, nil } -func (r stepRunToArchivedResultsDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToChildWorkflowRunsDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToStreamEventsFindUnique struct { +type stepRunToChildSchedulesFindUnique struct { query builder.Query } -func (r stepRunToStreamEventsFindUnique) getQuery() builder.Query { +func (r stepRunToChildSchedulesFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToStreamEventsFindUnique) ExtractQuery() builder.Query { +func (r stepRunToChildSchedulesFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStreamEventsFindUnique) with() {} -func (r stepRunToStreamEventsFindUnique) stepRunModel() {} -func (r stepRunToStreamEventsFindUnique) stepRunRelation() {} +func (r stepRunToChildSchedulesFindUnique) with() {} +func (r stepRunToChildSchedulesFindUnique) stepRunModel() {} +func (r stepRunToChildSchedulesFindUnique) stepRunRelation() {} -func (r stepRunToStreamEventsFindUnique) With(params ...StreamEventRelationWith) stepRunToStreamEventsFindUnique { +func (r stepRunToChildSchedulesFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) stepRunToChildSchedulesFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -332931,7 +357838,7 @@ func (r stepRunToStreamEventsFindUnique) With(params ...StreamEventRelationWith) return r } -func (r stepRunToStreamEventsFindUnique) Select(params ...stepRunPrismaFields) stepRunToStreamEventsFindUnique { +func (r stepRunToChildSchedulesFindUnique) Select(params ...stepRunPrismaFields) stepRunToChildSchedulesFindUnique { var outputs []builder.Output for _, param := range params { @@ -332945,7 +357852,7 @@ func (r stepRunToStreamEventsFindUnique) Select(params ...stepRunPrismaFields) s return r } -func (r stepRunToStreamEventsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToStreamEventsFindUnique { +func (r stepRunToChildSchedulesFindUnique) Omit(params ...stepRunPrismaFields) stepRunToChildSchedulesFindUnique { var outputs []builder.Output var raw []string @@ -332964,7 +357871,7 @@ func (r stepRunToStreamEventsFindUnique) Omit(params ...stepRunPrismaFields) ste return r } -func (r stepRunToStreamEventsFindUnique) Exec(ctx context.Context) ( +func (r stepRunToChildSchedulesFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -332980,7 +357887,7 @@ func (r stepRunToStreamEventsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToStreamEventsFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToChildSchedulesFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -332996,12 +357903,12 @@ func (r stepRunToStreamEventsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToStreamEventsFindUnique) Update(params ...StepRunSetParam) stepRunToStreamEventsUpdateUnique { +func (r stepRunToChildSchedulesFindUnique) Update(params ...StepRunSetParam) stepRunToChildSchedulesUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToStreamEventsUpdateUnique + var v stepRunToChildSchedulesUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -333030,17 +357937,17 @@ func (r stepRunToStreamEventsFindUnique) Update(params ...StepRunSetParam) stepR return v } -type stepRunToStreamEventsUpdateUnique struct { +type stepRunToChildSchedulesUpdateUnique struct { query builder.Query } -func (r stepRunToStreamEventsUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToChildSchedulesUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStreamEventsUpdateUnique) stepRunModel() {} +func (r stepRunToChildSchedulesUpdateUnique) stepRunModel() {} -func (r stepRunToStreamEventsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToChildSchedulesUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -333048,15 +357955,15 @@ func (r stepRunToStreamEventsUpdateUnique) Exec(ctx context.Context) (*StepRunMo return &v, nil } -func (r stepRunToStreamEventsUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToChildSchedulesUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToStreamEventsFindUnique) Delete() stepRunToStreamEventsDeleteUnique { - var v stepRunToStreamEventsDeleteUnique +func (r stepRunToChildSchedulesFindUnique) Delete() stepRunToChildSchedulesDeleteUnique { + var v stepRunToChildSchedulesDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -333065,17 +357972,17 @@ func (r stepRunToStreamEventsFindUnique) Delete() stepRunToStreamEventsDeleteUni return v } -type stepRunToStreamEventsDeleteUnique struct { +type stepRunToChildSchedulesDeleteUnique struct { query builder.Query } -func (r stepRunToStreamEventsDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToChildSchedulesDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToStreamEventsDeleteUnique) stepRunModel() {} +func (p stepRunToChildSchedulesDeleteUnique) stepRunModel() {} -func (r stepRunToStreamEventsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToChildSchedulesDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -333083,30 +357990,30 @@ func (r stepRunToStreamEventsDeleteUnique) Exec(ctx context.Context) (*StepRunMo return &v, nil } -func (r stepRunToStreamEventsDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToChildSchedulesDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToStreamEventsFindFirst struct { +type stepRunToChildSchedulesFindFirst struct { query builder.Query } -func (r stepRunToStreamEventsFindFirst) getQuery() builder.Query { +func (r stepRunToChildSchedulesFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToStreamEventsFindFirst) ExtractQuery() builder.Query { +func (r stepRunToChildSchedulesFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStreamEventsFindFirst) with() {} -func (r stepRunToStreamEventsFindFirst) stepRunModel() {} -func (r stepRunToStreamEventsFindFirst) stepRunRelation() {} +func (r stepRunToChildSchedulesFindFirst) with() {} +func (r stepRunToChildSchedulesFindFirst) stepRunModel() {} +func (r stepRunToChildSchedulesFindFirst) stepRunRelation() {} -func (r stepRunToStreamEventsFindFirst) With(params ...StreamEventRelationWith) stepRunToStreamEventsFindFirst { +func (r stepRunToChildSchedulesFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) stepRunToChildSchedulesFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -333119,7 +358026,7 @@ func (r stepRunToStreamEventsFindFirst) With(params ...StreamEventRelationWith) return r } -func (r stepRunToStreamEventsFindFirst) Select(params ...stepRunPrismaFields) stepRunToStreamEventsFindFirst { +func (r stepRunToChildSchedulesFindFirst) Select(params ...stepRunPrismaFields) stepRunToChildSchedulesFindFirst { var outputs []builder.Output for _, param := range params { @@ -333133,7 +358040,7 @@ func (r stepRunToStreamEventsFindFirst) Select(params ...stepRunPrismaFields) st return r } -func (r stepRunToStreamEventsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToStreamEventsFindFirst { +func (r stepRunToChildSchedulesFindFirst) Omit(params ...stepRunPrismaFields) stepRunToChildSchedulesFindFirst { var outputs []builder.Output var raw []string @@ -333152,7 +358059,7 @@ func (r stepRunToStreamEventsFindFirst) Omit(params ...stepRunPrismaFields) step return r } -func (r stepRunToStreamEventsFindFirst) OrderBy(params ...StreamEventOrderByParam) stepRunToStreamEventsFindFirst { +func (r stepRunToChildSchedulesFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) stepRunToChildSchedulesFindFirst { var fields []builder.Field for _, param := range params { @@ -333172,7 +358079,7 @@ func (r stepRunToStreamEventsFindFirst) OrderBy(params ...StreamEventOrderByPara return r } -func (r stepRunToStreamEventsFindFirst) Skip(count int) stepRunToStreamEventsFindFirst { +func (r stepRunToChildSchedulesFindFirst) Skip(count int) stepRunToChildSchedulesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -333180,7 +358087,7 @@ func (r stepRunToStreamEventsFindFirst) Skip(count int) stepRunToStreamEventsFin return r } -func (r stepRunToStreamEventsFindFirst) Take(count int) stepRunToStreamEventsFindFirst { +func (r stepRunToChildSchedulesFindFirst) Take(count int) stepRunToChildSchedulesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -333188,7 +358095,7 @@ func (r stepRunToStreamEventsFindFirst) Take(count int) stepRunToStreamEventsFin return r } -func (r stepRunToStreamEventsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToStreamEventsFindFirst { +func (r stepRunToChildSchedulesFindFirst) Cursor(cursor StepRunCursorParam) stepRunToChildSchedulesFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -333196,7 +358103,7 @@ func (r stepRunToStreamEventsFindFirst) Cursor(cursor StepRunCursorParam) stepRu return r } -func (r stepRunToStreamEventsFindFirst) Exec(ctx context.Context) ( +func (r stepRunToChildSchedulesFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -333212,7 +358119,7 @@ func (r stepRunToStreamEventsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToStreamEventsFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToChildSchedulesFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -333228,23 +358135,23 @@ func (r stepRunToStreamEventsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToStreamEventsFindMany struct { +type stepRunToChildSchedulesFindMany struct { query builder.Query } -func (r stepRunToStreamEventsFindMany) getQuery() builder.Query { +func (r stepRunToChildSchedulesFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToStreamEventsFindMany) ExtractQuery() builder.Query { +func (r stepRunToChildSchedulesFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStreamEventsFindMany) with() {} -func (r stepRunToStreamEventsFindMany) stepRunModel() {} -func (r stepRunToStreamEventsFindMany) stepRunRelation() {} +func (r stepRunToChildSchedulesFindMany) with() {} +func (r stepRunToChildSchedulesFindMany) stepRunModel() {} +func (r stepRunToChildSchedulesFindMany) stepRunRelation() {} -func (r stepRunToStreamEventsFindMany) With(params ...StreamEventRelationWith) stepRunToStreamEventsFindMany { +func (r stepRunToChildSchedulesFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) stepRunToChildSchedulesFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -333257,7 +358164,7 @@ func (r stepRunToStreamEventsFindMany) With(params ...StreamEventRelationWith) s return r } -func (r stepRunToStreamEventsFindMany) Select(params ...stepRunPrismaFields) stepRunToStreamEventsFindMany { +func (r stepRunToChildSchedulesFindMany) Select(params ...stepRunPrismaFields) stepRunToChildSchedulesFindMany { var outputs []builder.Output for _, param := range params { @@ -333271,7 +358178,7 @@ func (r stepRunToStreamEventsFindMany) Select(params ...stepRunPrismaFields) ste return r } -func (r stepRunToStreamEventsFindMany) Omit(params ...stepRunPrismaFields) stepRunToStreamEventsFindMany { +func (r stepRunToChildSchedulesFindMany) Omit(params ...stepRunPrismaFields) stepRunToChildSchedulesFindMany { var outputs []builder.Output var raw []string @@ -333290,7 +358197,7 @@ func (r stepRunToStreamEventsFindMany) Omit(params ...stepRunPrismaFields) stepR return r } -func (r stepRunToStreamEventsFindMany) OrderBy(params ...StreamEventOrderByParam) stepRunToStreamEventsFindMany { +func (r stepRunToChildSchedulesFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) stepRunToChildSchedulesFindMany { var fields []builder.Field for _, param := range params { @@ -333310,7 +358217,7 @@ func (r stepRunToStreamEventsFindMany) OrderBy(params ...StreamEventOrderByParam return r } -func (r stepRunToStreamEventsFindMany) Skip(count int) stepRunToStreamEventsFindMany { +func (r stepRunToChildSchedulesFindMany) Skip(count int) stepRunToChildSchedulesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -333318,7 +358225,7 @@ func (r stepRunToStreamEventsFindMany) Skip(count int) stepRunToStreamEventsFind return r } -func (r stepRunToStreamEventsFindMany) Take(count int) stepRunToStreamEventsFindMany { +func (r stepRunToChildSchedulesFindMany) Take(count int) stepRunToChildSchedulesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -333326,7 +358233,7 @@ func (r stepRunToStreamEventsFindMany) Take(count int) stepRunToStreamEventsFind return r } -func (r stepRunToStreamEventsFindMany) Cursor(cursor StepRunCursorParam) stepRunToStreamEventsFindMany { +func (r stepRunToChildSchedulesFindMany) Cursor(cursor StepRunCursorParam) stepRunToChildSchedulesFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -333334,7 +358241,7 @@ func (r stepRunToStreamEventsFindMany) Cursor(cursor StepRunCursorParam) stepRun return r } -func (r stepRunToStreamEventsFindMany) Exec(ctx context.Context) ( +func (r stepRunToChildSchedulesFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -333346,7 +358253,7 @@ func (r stepRunToStreamEventsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToStreamEventsFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToChildSchedulesFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -333358,14 +358265,14 @@ func (r stepRunToStreamEventsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToStreamEventsFindMany) Update(params ...StepRunSetParam) stepRunToStreamEventsUpdateMany { +func (r stepRunToChildSchedulesFindMany) Update(params ...StepRunSetParam) stepRunToChildSchedulesUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToStreamEventsUpdateMany + var v stepRunToChildSchedulesUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -333394,17 +358301,17 @@ func (r stepRunToStreamEventsFindMany) Update(params ...StepRunSetParam) stepRun return v } -type stepRunToStreamEventsUpdateMany struct { +type stepRunToChildSchedulesUpdateMany struct { query builder.Query } -func (r stepRunToStreamEventsUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToChildSchedulesUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToStreamEventsUpdateMany) stepRunModel() {} +func (r stepRunToChildSchedulesUpdateMany) stepRunModel() {} -func (r stepRunToStreamEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToChildSchedulesUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -333412,15 +358319,15 @@ func (r stepRunToStreamEventsUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r stepRunToStreamEventsUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToChildSchedulesUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToStreamEventsFindMany) Delete() stepRunToStreamEventsDeleteMany { - var v stepRunToStreamEventsDeleteMany +func (r stepRunToChildSchedulesFindMany) Delete() stepRunToChildSchedulesDeleteMany { + var v stepRunToChildSchedulesDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -333431,17 +358338,17 @@ func (r stepRunToStreamEventsFindMany) Delete() stepRunToStreamEventsDeleteMany return v } -type stepRunToStreamEventsDeleteMany struct { +type stepRunToChildSchedulesDeleteMany struct { query builder.Query } -func (r stepRunToStreamEventsDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToChildSchedulesDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToStreamEventsDeleteMany) stepRunModel() {} +func (p stepRunToChildSchedulesDeleteMany) stepRunModel() {} -func (r stepRunToStreamEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToChildSchedulesDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -333449,30 +358356,30 @@ func (r stepRunToStreamEventsDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r stepRunToStreamEventsDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToChildSchedulesDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToLogsFindUnique struct { +type stepRunToEventsFindUnique struct { query builder.Query } -func (r stepRunToLogsFindUnique) getQuery() builder.Query { +func (r stepRunToEventsFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToLogsFindUnique) ExtractQuery() builder.Query { +func (r stepRunToEventsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToLogsFindUnique) with() {} -func (r stepRunToLogsFindUnique) stepRunModel() {} -func (r stepRunToLogsFindUnique) stepRunRelation() {} +func (r stepRunToEventsFindUnique) with() {} +func (r stepRunToEventsFindUnique) stepRunModel() {} +func (r stepRunToEventsFindUnique) stepRunRelation() {} -func (r stepRunToLogsFindUnique) With(params ...LogLineRelationWith) stepRunToLogsFindUnique { +func (r stepRunToEventsFindUnique) With(params ...StepRunEventRelationWith) stepRunToEventsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -333485,7 +358392,7 @@ func (r stepRunToLogsFindUnique) With(params ...LogLineRelationWith) stepRunToLo return r } -func (r stepRunToLogsFindUnique) Select(params ...stepRunPrismaFields) stepRunToLogsFindUnique { +func (r stepRunToEventsFindUnique) Select(params ...stepRunPrismaFields) stepRunToEventsFindUnique { var outputs []builder.Output for _, param := range params { @@ -333499,7 +358406,7 @@ func (r stepRunToLogsFindUnique) Select(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToLogsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToLogsFindUnique { +func (r stepRunToEventsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToEventsFindUnique { var outputs []builder.Output var raw []string @@ -333518,7 +358425,7 @@ func (r stepRunToLogsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToLo return r } -func (r stepRunToLogsFindUnique) Exec(ctx context.Context) ( +func (r stepRunToEventsFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -333534,7 +358441,7 @@ func (r stepRunToLogsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToLogsFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunToEventsFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -333550,12 +358457,12 @@ func (r stepRunToLogsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToLogsFindUnique) Update(params ...StepRunSetParam) stepRunToLogsUpdateUnique { +func (r stepRunToEventsFindUnique) Update(params ...StepRunSetParam) stepRunToEventsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToLogsUpdateUnique + var v stepRunToEventsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -333584,17 +358491,17 @@ func (r stepRunToLogsFindUnique) Update(params ...StepRunSetParam) stepRunToLogs return v } -type stepRunToLogsUpdateUnique struct { +type stepRunToEventsUpdateUnique struct { query builder.Query } -func (r stepRunToLogsUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunToEventsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToLogsUpdateUnique) stepRunModel() {} +func (r stepRunToEventsUpdateUnique) stepRunModel() {} -func (r stepRunToLogsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToEventsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -333602,15 +358509,15 @@ func (r stepRunToLogsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, err return &v, nil } -func (r stepRunToLogsUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToEventsUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToLogsFindUnique) Delete() stepRunToLogsDeleteUnique { - var v stepRunToLogsDeleteUnique +func (r stepRunToEventsFindUnique) Delete() stepRunToEventsDeleteUnique { + var v stepRunToEventsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -333619,17 +358526,17 @@ func (r stepRunToLogsFindUnique) Delete() stepRunToLogsDeleteUnique { return v } -type stepRunToLogsDeleteUnique struct { +type stepRunToEventsDeleteUnique struct { query builder.Query } -func (r stepRunToLogsDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunToEventsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToLogsDeleteUnique) stepRunModel() {} +func (p stepRunToEventsDeleteUnique) stepRunModel() {} -func (r stepRunToLogsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunToEventsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -333637,30 +358544,30 @@ func (r stepRunToLogsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, err return &v, nil } -func (r stepRunToLogsDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunToEventsDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToLogsFindFirst struct { +type stepRunToEventsFindFirst struct { query builder.Query } -func (r stepRunToLogsFindFirst) getQuery() builder.Query { +func (r stepRunToEventsFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToLogsFindFirst) ExtractQuery() builder.Query { +func (r stepRunToEventsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToLogsFindFirst) with() {} -func (r stepRunToLogsFindFirst) stepRunModel() {} -func (r stepRunToLogsFindFirst) stepRunRelation() {} +func (r stepRunToEventsFindFirst) with() {} +func (r stepRunToEventsFindFirst) stepRunModel() {} +func (r stepRunToEventsFindFirst) stepRunRelation() {} -func (r stepRunToLogsFindFirst) With(params ...LogLineRelationWith) stepRunToLogsFindFirst { +func (r stepRunToEventsFindFirst) With(params ...StepRunEventRelationWith) stepRunToEventsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -333673,7 +358580,7 @@ func (r stepRunToLogsFindFirst) With(params ...LogLineRelationWith) stepRunToLog return r } -func (r stepRunToLogsFindFirst) Select(params ...stepRunPrismaFields) stepRunToLogsFindFirst { +func (r stepRunToEventsFindFirst) Select(params ...stepRunPrismaFields) stepRunToEventsFindFirst { var outputs []builder.Output for _, param := range params { @@ -333687,7 +358594,7 @@ func (r stepRunToLogsFindFirst) Select(params ...stepRunPrismaFields) stepRunToL return r } -func (r stepRunToLogsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToLogsFindFirst { +func (r stepRunToEventsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToEventsFindFirst { var outputs []builder.Output var raw []string @@ -333706,7 +358613,7 @@ func (r stepRunToLogsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToLog return r } -func (r stepRunToLogsFindFirst) OrderBy(params ...LogLineOrderByParam) stepRunToLogsFindFirst { +func (r stepRunToEventsFindFirst) OrderBy(params ...StepRunEventOrderByParam) stepRunToEventsFindFirst { var fields []builder.Field for _, param := range params { @@ -333726,7 +358633,7 @@ func (r stepRunToLogsFindFirst) OrderBy(params ...LogLineOrderByParam) stepRunTo return r } -func (r stepRunToLogsFindFirst) Skip(count int) stepRunToLogsFindFirst { +func (r stepRunToEventsFindFirst) Skip(count int) stepRunToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -333734,7 +358641,7 @@ func (r stepRunToLogsFindFirst) Skip(count int) stepRunToLogsFindFirst { return r } -func (r stepRunToLogsFindFirst) Take(count int) stepRunToLogsFindFirst { +func (r stepRunToEventsFindFirst) Take(count int) stepRunToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -333742,7 +358649,7 @@ func (r stepRunToLogsFindFirst) Take(count int) stepRunToLogsFindFirst { return r } -func (r stepRunToLogsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToLogsFindFirst { +func (r stepRunToEventsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToEventsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -333750,7 +358657,7 @@ func (r stepRunToLogsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToLogsF return r } -func (r stepRunToLogsFindFirst) Exec(ctx context.Context) ( +func (r stepRunToEventsFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -333766,7 +358673,7 @@ func (r stepRunToLogsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToLogsFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunToEventsFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -333782,23 +358689,23 @@ func (r stepRunToLogsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToLogsFindMany struct { +type stepRunToEventsFindMany struct { query builder.Query } -func (r stepRunToLogsFindMany) getQuery() builder.Query { +func (r stepRunToEventsFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToLogsFindMany) ExtractQuery() builder.Query { +func (r stepRunToEventsFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToLogsFindMany) with() {} -func (r stepRunToLogsFindMany) stepRunModel() {} -func (r stepRunToLogsFindMany) stepRunRelation() {} +func (r stepRunToEventsFindMany) with() {} +func (r stepRunToEventsFindMany) stepRunModel() {} +func (r stepRunToEventsFindMany) stepRunRelation() {} -func (r stepRunToLogsFindMany) With(params ...LogLineRelationWith) stepRunToLogsFindMany { +func (r stepRunToEventsFindMany) With(params ...StepRunEventRelationWith) stepRunToEventsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -333811,7 +358718,7 @@ func (r stepRunToLogsFindMany) With(params ...LogLineRelationWith) stepRunToLogs return r } -func (r stepRunToLogsFindMany) Select(params ...stepRunPrismaFields) stepRunToLogsFindMany { +func (r stepRunToEventsFindMany) Select(params ...stepRunPrismaFields) stepRunToEventsFindMany { var outputs []builder.Output for _, param := range params { @@ -333825,7 +358732,7 @@ func (r stepRunToLogsFindMany) Select(params ...stepRunPrismaFields) stepRunToLo return r } -func (r stepRunToLogsFindMany) Omit(params ...stepRunPrismaFields) stepRunToLogsFindMany { +func (r stepRunToEventsFindMany) Omit(params ...stepRunPrismaFields) stepRunToEventsFindMany { var outputs []builder.Output var raw []string @@ -333844,7 +358751,7 @@ func (r stepRunToLogsFindMany) Omit(params ...stepRunPrismaFields) stepRunToLogs return r } -func (r stepRunToLogsFindMany) OrderBy(params ...LogLineOrderByParam) stepRunToLogsFindMany { +func (r stepRunToEventsFindMany) OrderBy(params ...StepRunEventOrderByParam) stepRunToEventsFindMany { var fields []builder.Field for _, param := range params { @@ -333864,7 +358771,7 @@ func (r stepRunToLogsFindMany) OrderBy(params ...LogLineOrderByParam) stepRunToL return r } -func (r stepRunToLogsFindMany) Skip(count int) stepRunToLogsFindMany { +func (r stepRunToEventsFindMany) Skip(count int) stepRunToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -333872,7 +358779,7 @@ func (r stepRunToLogsFindMany) Skip(count int) stepRunToLogsFindMany { return r } -func (r stepRunToLogsFindMany) Take(count int) stepRunToLogsFindMany { +func (r stepRunToEventsFindMany) Take(count int) stepRunToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -333880,7 +358787,7 @@ func (r stepRunToLogsFindMany) Take(count int) stepRunToLogsFindMany { return r } -func (r stepRunToLogsFindMany) Cursor(cursor StepRunCursorParam) stepRunToLogsFindMany { +func (r stepRunToEventsFindMany) Cursor(cursor StepRunCursorParam) stepRunToEventsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -333888,7 +358795,7 @@ func (r stepRunToLogsFindMany) Cursor(cursor StepRunCursorParam) stepRunToLogsFi return r } -func (r stepRunToLogsFindMany) Exec(ctx context.Context) ( +func (r stepRunToEventsFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -333900,7 +358807,7 @@ func (r stepRunToLogsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToLogsFindMany) ExecInner(ctx context.Context) ( +func (r stepRunToEventsFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -333912,14 +358819,14 @@ func (r stepRunToLogsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToLogsFindMany) Update(params ...StepRunSetParam) stepRunToLogsUpdateMany { +func (r stepRunToEventsFindMany) Update(params ...StepRunSetParam) stepRunToEventsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToLogsUpdateMany + var v stepRunToEventsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -333948,17 +358855,17 @@ func (r stepRunToLogsFindMany) Update(params ...StepRunSetParam) stepRunToLogsUp return v } -type stepRunToLogsUpdateMany struct { +type stepRunToEventsUpdateMany struct { query builder.Query } -func (r stepRunToLogsUpdateMany) ExtractQuery() builder.Query { +func (r stepRunToEventsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToLogsUpdateMany) stepRunModel() {} +func (r stepRunToEventsUpdateMany) stepRunModel() {} -func (r stepRunToLogsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -333966,15 +358873,15 @@ func (r stepRunToLogsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepRunToLogsUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunToEventsUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToLogsFindMany) Delete() stepRunToLogsDeleteMany { - var v stepRunToLogsDeleteMany +func (r stepRunToEventsFindMany) Delete() stepRunToEventsDeleteMany { + var v stepRunToEventsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -333985,17 +358892,17 @@ func (r stepRunToLogsFindMany) Delete() stepRunToLogsDeleteMany { return v } -type stepRunToLogsDeleteMany struct { +type stepRunToEventsDeleteMany struct { query builder.Query } -func (r stepRunToLogsDeleteMany) ExtractQuery() builder.Query { +func (r stepRunToEventsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToLogsDeleteMany) stepRunModel() {} +func (p stepRunToEventsDeleteMany) stepRunModel() {} -func (r stepRunToLogsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunToEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -334003,30 +358910,52 @@ func (r stepRunToLogsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepRunToLogsDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunToEventsDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToChildWorkflowRunsFindUnique struct { +type stepRunFindUnique struct { query builder.Query } -func (r stepRunToChildWorkflowRunsFindUnique) getQuery() builder.Query { +func (r stepRunFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToChildWorkflowRunsFindUnique) ExtractQuery() builder.Query { +func (r stepRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildWorkflowRunsFindUnique) with() {} -func (r stepRunToChildWorkflowRunsFindUnique) stepRunModel() {} -func (r stepRunToChildWorkflowRunsFindUnique) stepRunRelation() {} +func (r stepRunFindUnique) with() {} +func (r stepRunFindUnique) stepRunModel() {} +func (r stepRunFindUnique) stepRunRelation() {} -func (r stepRunToChildWorkflowRunsFindUnique) With(params ...WorkflowRunRelationWith) stepRunToChildWorkflowRunsFindUnique { +func (r stepRunActions) FindUnique( + params StepRunEqualsUniqueWhereParam, +) stepRunFindUnique { + var v stepRunFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "StepRun" + v.query.Outputs = stepRunOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r stepRunFindUnique) With(params ...StepRunRelationWith) stepRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -334039,7 +358968,7 @@ func (r stepRunToChildWorkflowRunsFindUnique) With(params ...WorkflowRunRelation return r } -func (r stepRunToChildWorkflowRunsFindUnique) Select(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindUnique { +func (r stepRunFindUnique) Select(params ...stepRunPrismaFields) stepRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -334053,7 +358982,7 @@ func (r stepRunToChildWorkflowRunsFindUnique) Select(params ...stepRunPrismaFiel return r } -func (r stepRunToChildWorkflowRunsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindUnique { +func (r stepRunFindUnique) Omit(params ...stepRunPrismaFields) stepRunFindUnique { var outputs []builder.Output var raw []string @@ -334072,7 +359001,7 @@ func (r stepRunToChildWorkflowRunsFindUnique) Omit(params ...stepRunPrismaFields return r } -func (r stepRunToChildWorkflowRunsFindUnique) Exec(ctx context.Context) ( +func (r stepRunFindUnique) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -334088,7 +359017,7 @@ func (r stepRunToChildWorkflowRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( +func (r stepRunFindUnique) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -334104,12 +359033,12 @@ func (r stepRunToChildWorkflowRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToChildWorkflowRunsFindUnique) Update(params ...StepRunSetParam) stepRunToChildWorkflowRunsUpdateUnique { +func (r stepRunFindUnique) Update(params ...StepRunSetParam) stepRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "StepRun" - var v stepRunToChildWorkflowRunsUpdateUnique + var v stepRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -334138,17 +359067,17 @@ func (r stepRunToChildWorkflowRunsFindUnique) Update(params ...StepRunSetParam) return v } -type stepRunToChildWorkflowRunsUpdateUnique struct { +type stepRunUpdateUnique struct { query builder.Query } -func (r stepRunToChildWorkflowRunsUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildWorkflowRunsUpdateUnique) stepRunModel() {} +func (r stepRunUpdateUnique) stepRunModel() {} -func (r stepRunToChildWorkflowRunsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -334156,15 +359085,15 @@ func (r stepRunToChildWorkflowRunsUpdateUnique) Exec(ctx context.Context) (*Step return &v, nil } -func (r stepRunToChildWorkflowRunsUpdateUnique) Tx() StepRunUniqueTxResult { +func (r stepRunUpdateUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToChildWorkflowRunsFindUnique) Delete() stepRunToChildWorkflowRunsDeleteUnique { - var v stepRunToChildWorkflowRunsDeleteUnique +func (r stepRunFindUnique) Delete() stepRunDeleteUnique { + var v stepRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -334173,17 +359102,17 @@ func (r stepRunToChildWorkflowRunsFindUnique) Delete() stepRunToChildWorkflowRun return v } -type stepRunToChildWorkflowRunsDeleteUnique struct { +type stepRunDeleteUnique struct { query builder.Query } -func (r stepRunToChildWorkflowRunsDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToChildWorkflowRunsDeleteUnique) stepRunModel() {} +func (p stepRunDeleteUnique) stepRunModel() {} -func (r stepRunToChildWorkflowRunsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { +func (r stepRunDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { var v StepRunModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -334191,30 +359120,67 @@ func (r stepRunToChildWorkflowRunsDeleteUnique) Exec(ctx context.Context) (*Step return &v, nil } -func (r stepRunToChildWorkflowRunsDeleteUnique) Tx() StepRunUniqueTxResult { +func (r stepRunDeleteUnique) Tx() StepRunUniqueTxResult { v := newStepRunUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToChildWorkflowRunsFindFirst struct { +type stepRunFindFirst struct { query builder.Query } -func (r stepRunToChildWorkflowRunsFindFirst) getQuery() builder.Query { +func (r stepRunFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToChildWorkflowRunsFindFirst) ExtractQuery() builder.Query { +func (r stepRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildWorkflowRunsFindFirst) with() {} -func (r stepRunToChildWorkflowRunsFindFirst) stepRunModel() {} -func (r stepRunToChildWorkflowRunsFindFirst) stepRunRelation() {} +func (r stepRunFindFirst) with() {} +func (r stepRunFindFirst) stepRunModel() {} +func (r stepRunFindFirst) stepRunRelation() {} -func (r stepRunToChildWorkflowRunsFindFirst) With(params ...WorkflowRunRelationWith) stepRunToChildWorkflowRunsFindFirst { +func (r stepRunActions) FindFirst( + params ...StepRunWhereParam, +) stepRunFindFirst { + var v stepRunFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "StepRun" + v.query.Outputs = stepRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRunFindFirst) With(params ...StepRunRelationWith) stepRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -334227,7 +359193,7 @@ func (r stepRunToChildWorkflowRunsFindFirst) With(params ...WorkflowRunRelationW return r } -func (r stepRunToChildWorkflowRunsFindFirst) Select(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindFirst { +func (r stepRunFindFirst) Select(params ...stepRunPrismaFields) stepRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -334241,7 +359207,7 @@ func (r stepRunToChildWorkflowRunsFindFirst) Select(params ...stepRunPrismaField return r } -func (r stepRunToChildWorkflowRunsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindFirst { +func (r stepRunFindFirst) Omit(params ...stepRunPrismaFields) stepRunFindFirst { var outputs []builder.Output var raw []string @@ -334260,7 +359226,7 @@ func (r stepRunToChildWorkflowRunsFindFirst) Omit(params ...stepRunPrismaFields) return r } -func (r stepRunToChildWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunOrderByParam) stepRunToChildWorkflowRunsFindFirst { +func (r stepRunFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunFindFirst { var fields []builder.Field for _, param := range params { @@ -334280,7 +359246,7 @@ func (r stepRunToChildWorkflowRunsFindFirst) OrderBy(params ...WorkflowRunOrderB return r } -func (r stepRunToChildWorkflowRunsFindFirst) Skip(count int) stepRunToChildWorkflowRunsFindFirst { +func (r stepRunFindFirst) Skip(count int) stepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -334288,7 +359254,7 @@ func (r stepRunToChildWorkflowRunsFindFirst) Skip(count int) stepRunToChildWorkf return r } -func (r stepRunToChildWorkflowRunsFindFirst) Take(count int) stepRunToChildWorkflowRunsFindFirst { +func (r stepRunFindFirst) Take(count int) stepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -334296,7 +359262,7 @@ func (r stepRunToChildWorkflowRunsFindFirst) Take(count int) stepRunToChildWorkf return r } -func (r stepRunToChildWorkflowRunsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToChildWorkflowRunsFindFirst { +func (r stepRunFindFirst) Cursor(cursor StepRunCursorParam) stepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -334304,7 +359270,7 @@ func (r stepRunToChildWorkflowRunsFindFirst) Cursor(cursor StepRunCursorParam) s return r } -func (r stepRunToChildWorkflowRunsFindFirst) Exec(ctx context.Context) ( +func (r stepRunFindFirst) Exec(ctx context.Context) ( *StepRunModel, error, ) { @@ -334320,7 +359286,7 @@ func (r stepRunToChildWorkflowRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( +func (r stepRunFindFirst) ExecInner(ctx context.Context) ( *InnerStepRun, error, ) { @@ -334336,23 +359302,60 @@ func (r stepRunToChildWorkflowRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToChildWorkflowRunsFindMany struct { +type stepRunFindMany struct { query builder.Query } -func (r stepRunToChildWorkflowRunsFindMany) getQuery() builder.Query { +func (r stepRunFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToChildWorkflowRunsFindMany) ExtractQuery() builder.Query { +func (r stepRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildWorkflowRunsFindMany) with() {} -func (r stepRunToChildWorkflowRunsFindMany) stepRunModel() {} -func (r stepRunToChildWorkflowRunsFindMany) stepRunRelation() {} +func (r stepRunFindMany) with() {} +func (r stepRunFindMany) stepRunModel() {} +func (r stepRunFindMany) stepRunRelation() {} -func (r stepRunToChildWorkflowRunsFindMany) With(params ...WorkflowRunRelationWith) stepRunToChildWorkflowRunsFindMany { +func (r stepRunActions) FindMany( + params ...StepRunWhereParam, +) stepRunFindMany { + var v stepRunFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "StepRun" + v.query.Outputs = stepRunOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRunFindMany) With(params ...StepRunRelationWith) stepRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -334365,7 +359368,7 @@ func (r stepRunToChildWorkflowRunsFindMany) With(params ...WorkflowRunRelationWi return r } -func (r stepRunToChildWorkflowRunsFindMany) Select(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindMany { +func (r stepRunFindMany) Select(params ...stepRunPrismaFields) stepRunFindMany { var outputs []builder.Output for _, param := range params { @@ -334379,7 +359382,7 @@ func (r stepRunToChildWorkflowRunsFindMany) Select(params ...stepRunPrismaFields return r } -func (r stepRunToChildWorkflowRunsFindMany) Omit(params ...stepRunPrismaFields) stepRunToChildWorkflowRunsFindMany { +func (r stepRunFindMany) Omit(params ...stepRunPrismaFields) stepRunFindMany { var outputs []builder.Output var raw []string @@ -334398,7 +359401,7 @@ func (r stepRunToChildWorkflowRunsFindMany) Omit(params ...stepRunPrismaFields) return r } -func (r stepRunToChildWorkflowRunsFindMany) OrderBy(params ...WorkflowRunOrderByParam) stepRunToChildWorkflowRunsFindMany { +func (r stepRunFindMany) OrderBy(params ...StepRunOrderByParam) stepRunFindMany { var fields []builder.Field for _, param := range params { @@ -334418,7 +359421,7 @@ func (r stepRunToChildWorkflowRunsFindMany) OrderBy(params ...WorkflowRunOrderBy return r } -func (r stepRunToChildWorkflowRunsFindMany) Skip(count int) stepRunToChildWorkflowRunsFindMany { +func (r stepRunFindMany) Skip(count int) stepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -334426,7 +359429,7 @@ func (r stepRunToChildWorkflowRunsFindMany) Skip(count int) stepRunToChildWorkfl return r } -func (r stepRunToChildWorkflowRunsFindMany) Take(count int) stepRunToChildWorkflowRunsFindMany { +func (r stepRunFindMany) Take(count int) stepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -334434,7 +359437,7 @@ func (r stepRunToChildWorkflowRunsFindMany) Take(count int) stepRunToChildWorkfl return r } -func (r stepRunToChildWorkflowRunsFindMany) Cursor(cursor StepRunCursorParam) stepRunToChildWorkflowRunsFindMany { +func (r stepRunFindMany) Cursor(cursor StepRunCursorParam) stepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -334442,7 +359445,7 @@ func (r stepRunToChildWorkflowRunsFindMany) Cursor(cursor StepRunCursorParam) st return r } -func (r stepRunToChildWorkflowRunsFindMany) Exec(ctx context.Context) ( +func (r stepRunFindMany) Exec(ctx context.Context) ( []StepRunModel, error, ) { @@ -334454,7 +359457,7 @@ func (r stepRunToChildWorkflowRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildWorkflowRunsFindMany) ExecInner(ctx context.Context) ( +func (r stepRunFindMany) ExecInner(ctx context.Context) ( []InnerStepRun, error, ) { @@ -334466,14 +359469,14 @@ func (r stepRunToChildWorkflowRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToChildWorkflowRunsFindMany) Update(params ...StepRunSetParam) stepRunToChildWorkflowRunsUpdateMany { +func (r stepRunFindMany) Update(params ...StepRunSetParam) stepRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "StepRun" r.query.Outputs = countOutput - var v stepRunToChildWorkflowRunsUpdateMany + var v stepRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -334502,17 +359505,17 @@ func (r stepRunToChildWorkflowRunsFindMany) Update(params ...StepRunSetParam) st return v } -type stepRunToChildWorkflowRunsUpdateMany struct { +type stepRunUpdateMany struct { query builder.Query } -func (r stepRunToChildWorkflowRunsUpdateMany) ExtractQuery() builder.Query { +func (r stepRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildWorkflowRunsUpdateMany) stepRunModel() {} +func (r stepRunUpdateMany) stepRunModel() {} -func (r stepRunToChildWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -334520,15 +359523,15 @@ func (r stepRunToChildWorkflowRunsUpdateMany) Exec(ctx context.Context) (*BatchR return &v, nil } -func (r stepRunToChildWorkflowRunsUpdateMany) Tx() StepRunManyTxResult { +func (r stepRunUpdateMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToChildWorkflowRunsFindMany) Delete() stepRunToChildWorkflowRunsDeleteMany { - var v stepRunToChildWorkflowRunsDeleteMany +func (r stepRunFindMany) Delete() stepRunDeleteMany { + var v stepRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -334539,17 +359542,17 @@ func (r stepRunToChildWorkflowRunsFindMany) Delete() stepRunToChildWorkflowRunsD return v } -type stepRunToChildWorkflowRunsDeleteMany struct { +type stepRunDeleteMany struct { query builder.Query } -func (r stepRunToChildWorkflowRunsDeleteMany) ExtractQuery() builder.Query { +func (r stepRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToChildWorkflowRunsDeleteMany) stepRunModel() {} +func (p stepRunDeleteMany) stepRunModel() {} -func (r stepRunToChildWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -334557,30 +359560,30 @@ func (r stepRunToChildWorkflowRunsDeleteMany) Exec(ctx context.Context) (*BatchR return &v, nil } -func (r stepRunToChildWorkflowRunsDeleteMany) Tx() StepRunManyTxResult { +func (r stepRunDeleteMany) Tx() StepRunManyTxResult { v := newStepRunManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToChildSchedulesFindUnique struct { +type stepRunEventToStepRunFindUnique struct { query builder.Query } -func (r stepRunToChildSchedulesFindUnique) getQuery() builder.Query { +func (r stepRunEventToStepRunFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToChildSchedulesFindUnique) ExtractQuery() builder.Query { +func (r stepRunEventToStepRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildSchedulesFindUnique) with() {} -func (r stepRunToChildSchedulesFindUnique) stepRunModel() {} -func (r stepRunToChildSchedulesFindUnique) stepRunRelation() {} +func (r stepRunEventToStepRunFindUnique) with() {} +func (r stepRunEventToStepRunFindUnique) stepRunEventModel() {} +func (r stepRunEventToStepRunFindUnique) stepRunEventRelation() {} -func (r stepRunToChildSchedulesFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) stepRunToChildSchedulesFindUnique { +func (r stepRunEventToStepRunFindUnique) With(params ...StepRunRelationWith) stepRunEventToStepRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -334593,7 +359596,7 @@ func (r stepRunToChildSchedulesFindUnique) With(params ...WorkflowTriggerSchedul return r } -func (r stepRunToChildSchedulesFindUnique) Select(params ...stepRunPrismaFields) stepRunToChildSchedulesFindUnique { +func (r stepRunEventToStepRunFindUnique) Select(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -334607,7 +359610,7 @@ func (r stepRunToChildSchedulesFindUnique) Select(params ...stepRunPrismaFields) return r } -func (r stepRunToChildSchedulesFindUnique) Omit(params ...stepRunPrismaFields) stepRunToChildSchedulesFindUnique { +func (r stepRunEventToStepRunFindUnique) Omit(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindUnique { var outputs []builder.Output var raw []string @@ -334615,7 +359618,7 @@ func (r stepRunToChildSchedulesFindUnique) Omit(params ...stepRunPrismaFields) s raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunEventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -334626,11 +359629,11 @@ func (r stepRunToChildSchedulesFindUnique) Omit(params ...stepRunPrismaFields) s return r } -func (r stepRunToChildSchedulesFindUnique) Exec(ctx context.Context) ( - *StepRunModel, +func (r stepRunEventToStepRunFindUnique) Exec(ctx context.Context) ( + *StepRunEventModel, error, ) { - var v *StepRunModel + var v *StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -334642,11 +359645,11 @@ func (r stepRunToChildSchedulesFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildSchedulesFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRun, +func (r stepRunEventToStepRunFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRunEvent, error, ) { - var v *InnerStepRun + var v *InnerStepRunEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -334658,12 +359661,12 @@ func (r stepRunToChildSchedulesFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToChildSchedulesFindUnique) Update(params ...StepRunSetParam) stepRunToChildSchedulesUpdateUnique { +func (r stepRunEventToStepRunFindUnique) Update(params ...StepRunEventSetParam) stepRunEventToStepRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRun" + r.query.Model = "StepRunEvent" - var v stepRunToChildSchedulesUpdateUnique + var v stepRunEventToStepRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -334692,83 +359695,83 @@ func (r stepRunToChildSchedulesFindUnique) Update(params ...StepRunSetParam) ste return v } -type stepRunToChildSchedulesUpdateUnique struct { +type stepRunEventToStepRunUpdateUnique struct { query builder.Query } -func (r stepRunToChildSchedulesUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunEventToStepRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildSchedulesUpdateUnique) stepRunModel() {} +func (r stepRunEventToStepRunUpdateUnique) stepRunEventModel() {} -func (r stepRunToChildSchedulesUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { - var v StepRunModel +func (r stepRunEventToStepRunUpdateUnique) Exec(ctx context.Context) (*StepRunEventModel, error) { + var v StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunToChildSchedulesUpdateUnique) Tx() StepRunUniqueTxResult { - v := newStepRunUniqueTxResult() +func (r stepRunEventToStepRunUpdateUnique) Tx() StepRunEventUniqueTxResult { + v := newStepRunEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToChildSchedulesFindUnique) Delete() stepRunToChildSchedulesDeleteUnique { - var v stepRunToChildSchedulesDeleteUnique +func (r stepRunEventToStepRunFindUnique) Delete() stepRunEventToStepRunDeleteUnique { + var v stepRunEventToStepRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRun" + v.query.Model = "StepRunEvent" return v } -type stepRunToChildSchedulesDeleteUnique struct { +type stepRunEventToStepRunDeleteUnique struct { query builder.Query } -func (r stepRunToChildSchedulesDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunEventToStepRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToChildSchedulesDeleteUnique) stepRunModel() {} +func (p stepRunEventToStepRunDeleteUnique) stepRunEventModel() {} -func (r stepRunToChildSchedulesDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { - var v StepRunModel +func (r stepRunEventToStepRunDeleteUnique) Exec(ctx context.Context) (*StepRunEventModel, error) { + var v StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunToChildSchedulesDeleteUnique) Tx() StepRunUniqueTxResult { - v := newStepRunUniqueTxResult() +func (r stepRunEventToStepRunDeleteUnique) Tx() StepRunEventUniqueTxResult { + v := newStepRunEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToChildSchedulesFindFirst struct { +type stepRunEventToStepRunFindFirst struct { query builder.Query } -func (r stepRunToChildSchedulesFindFirst) getQuery() builder.Query { +func (r stepRunEventToStepRunFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToChildSchedulesFindFirst) ExtractQuery() builder.Query { +func (r stepRunEventToStepRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildSchedulesFindFirst) with() {} -func (r stepRunToChildSchedulesFindFirst) stepRunModel() {} -func (r stepRunToChildSchedulesFindFirst) stepRunRelation() {} +func (r stepRunEventToStepRunFindFirst) with() {} +func (r stepRunEventToStepRunFindFirst) stepRunEventModel() {} +func (r stepRunEventToStepRunFindFirst) stepRunEventRelation() {} -func (r stepRunToChildSchedulesFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) stepRunToChildSchedulesFindFirst { +func (r stepRunEventToStepRunFindFirst) With(params ...StepRunRelationWith) stepRunEventToStepRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -334781,7 +359784,7 @@ func (r stepRunToChildSchedulesFindFirst) With(params ...WorkflowTriggerSchedule return r } -func (r stepRunToChildSchedulesFindFirst) Select(params ...stepRunPrismaFields) stepRunToChildSchedulesFindFirst { +func (r stepRunEventToStepRunFindFirst) Select(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -334795,7 +359798,7 @@ func (r stepRunToChildSchedulesFindFirst) Select(params ...stepRunPrismaFields) return r } -func (r stepRunToChildSchedulesFindFirst) Omit(params ...stepRunPrismaFields) stepRunToChildSchedulesFindFirst { +func (r stepRunEventToStepRunFindFirst) Omit(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindFirst { var outputs []builder.Output var raw []string @@ -334803,7 +359806,7 @@ func (r stepRunToChildSchedulesFindFirst) Omit(params ...stepRunPrismaFields) st raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunEventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -334814,7 +359817,7 @@ func (r stepRunToChildSchedulesFindFirst) Omit(params ...stepRunPrismaFields) st return r } -func (r stepRunToChildSchedulesFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) stepRunToChildSchedulesFindFirst { +func (r stepRunEventToStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunEventToStepRunFindFirst { var fields []builder.Field for _, param := range params { @@ -334834,7 +359837,7 @@ func (r stepRunToChildSchedulesFindFirst) OrderBy(params ...WorkflowTriggerSched return r } -func (r stepRunToChildSchedulesFindFirst) Skip(count int) stepRunToChildSchedulesFindFirst { +func (r stepRunEventToStepRunFindFirst) Skip(count int) stepRunEventToStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -334842,7 +359845,7 @@ func (r stepRunToChildSchedulesFindFirst) Skip(count int) stepRunToChildSchedule return r } -func (r stepRunToChildSchedulesFindFirst) Take(count int) stepRunToChildSchedulesFindFirst { +func (r stepRunEventToStepRunFindFirst) Take(count int) stepRunEventToStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -334850,7 +359853,7 @@ func (r stepRunToChildSchedulesFindFirst) Take(count int) stepRunToChildSchedule return r } -func (r stepRunToChildSchedulesFindFirst) Cursor(cursor StepRunCursorParam) stepRunToChildSchedulesFindFirst { +func (r stepRunEventToStepRunFindFirst) Cursor(cursor StepRunEventCursorParam) stepRunEventToStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -334858,11 +359861,11 @@ func (r stepRunToChildSchedulesFindFirst) Cursor(cursor StepRunCursorParam) step return r } -func (r stepRunToChildSchedulesFindFirst) Exec(ctx context.Context) ( - *StepRunModel, +func (r stepRunEventToStepRunFindFirst) Exec(ctx context.Context) ( + *StepRunEventModel, error, ) { - var v *StepRunModel + var v *StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -334874,11 +359877,11 @@ func (r stepRunToChildSchedulesFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildSchedulesFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRun, +func (r stepRunEventToStepRunFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRunEvent, error, ) { - var v *InnerStepRun + var v *InnerStepRunEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -334890,23 +359893,23 @@ func (r stepRunToChildSchedulesFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToChildSchedulesFindMany struct { +type stepRunEventToStepRunFindMany struct { query builder.Query } -func (r stepRunToChildSchedulesFindMany) getQuery() builder.Query { +func (r stepRunEventToStepRunFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToChildSchedulesFindMany) ExtractQuery() builder.Query { +func (r stepRunEventToStepRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildSchedulesFindMany) with() {} -func (r stepRunToChildSchedulesFindMany) stepRunModel() {} -func (r stepRunToChildSchedulesFindMany) stepRunRelation() {} +func (r stepRunEventToStepRunFindMany) with() {} +func (r stepRunEventToStepRunFindMany) stepRunEventModel() {} +func (r stepRunEventToStepRunFindMany) stepRunEventRelation() {} -func (r stepRunToChildSchedulesFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) stepRunToChildSchedulesFindMany { +func (r stepRunEventToStepRunFindMany) With(params ...StepRunRelationWith) stepRunEventToStepRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -334919,7 +359922,7 @@ func (r stepRunToChildSchedulesFindMany) With(params ...WorkflowTriggerScheduled return r } -func (r stepRunToChildSchedulesFindMany) Select(params ...stepRunPrismaFields) stepRunToChildSchedulesFindMany { +func (r stepRunEventToStepRunFindMany) Select(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindMany { var outputs []builder.Output for _, param := range params { @@ -334933,7 +359936,7 @@ func (r stepRunToChildSchedulesFindMany) Select(params ...stepRunPrismaFields) s return r } -func (r stepRunToChildSchedulesFindMany) Omit(params ...stepRunPrismaFields) stepRunToChildSchedulesFindMany { +func (r stepRunEventToStepRunFindMany) Omit(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindMany { var outputs []builder.Output var raw []string @@ -334941,7 +359944,7 @@ func (r stepRunToChildSchedulesFindMany) Omit(params ...stepRunPrismaFields) ste raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunEventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -334952,7 +359955,7 @@ func (r stepRunToChildSchedulesFindMany) Omit(params ...stepRunPrismaFields) ste return r } -func (r stepRunToChildSchedulesFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) stepRunToChildSchedulesFindMany { +func (r stepRunEventToStepRunFindMany) OrderBy(params ...StepRunOrderByParam) stepRunEventToStepRunFindMany { var fields []builder.Field for _, param := range params { @@ -334972,7 +359975,7 @@ func (r stepRunToChildSchedulesFindMany) OrderBy(params ...WorkflowTriggerSchedu return r } -func (r stepRunToChildSchedulesFindMany) Skip(count int) stepRunToChildSchedulesFindMany { +func (r stepRunEventToStepRunFindMany) Skip(count int) stepRunEventToStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -334980,7 +359983,7 @@ func (r stepRunToChildSchedulesFindMany) Skip(count int) stepRunToChildSchedules return r } -func (r stepRunToChildSchedulesFindMany) Take(count int) stepRunToChildSchedulesFindMany { +func (r stepRunEventToStepRunFindMany) Take(count int) stepRunEventToStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -334988,7 +359991,7 @@ func (r stepRunToChildSchedulesFindMany) Take(count int) stepRunToChildSchedules return r } -func (r stepRunToChildSchedulesFindMany) Cursor(cursor StepRunCursorParam) stepRunToChildSchedulesFindMany { +func (r stepRunEventToStepRunFindMany) Cursor(cursor StepRunEventCursorParam) stepRunEventToStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -334996,11 +359999,11 @@ func (r stepRunToChildSchedulesFindMany) Cursor(cursor StepRunCursorParam) stepR return r } -func (r stepRunToChildSchedulesFindMany) Exec(ctx context.Context) ( - []StepRunModel, +func (r stepRunEventToStepRunFindMany) Exec(ctx context.Context) ( + []StepRunEventModel, error, ) { - var v []StepRunModel + var v []StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335008,11 +360011,11 @@ func (r stepRunToChildSchedulesFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToChildSchedulesFindMany) ExecInner(ctx context.Context) ( - []InnerStepRun, +func (r stepRunEventToStepRunFindMany) ExecInner(ctx context.Context) ( + []InnerStepRunEvent, error, ) { - var v []InnerStepRun + var v []InnerStepRunEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335020,14 +360023,14 @@ func (r stepRunToChildSchedulesFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToChildSchedulesFindMany) Update(params ...StepRunSetParam) stepRunToChildSchedulesUpdateMany { +func (r stepRunEventToStepRunFindMany) Update(params ...StepRunEventSetParam) stepRunEventToStepRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRun" + r.query.Model = "StepRunEvent" r.query.Outputs = countOutput - var v stepRunToChildSchedulesUpdateMany + var v stepRunEventToStepRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -335056,17 +360059,17 @@ func (r stepRunToChildSchedulesFindMany) Update(params ...StepRunSetParam) stepR return v } -type stepRunToChildSchedulesUpdateMany struct { +type stepRunEventToStepRunUpdateMany struct { query builder.Query } -func (r stepRunToChildSchedulesUpdateMany) ExtractQuery() builder.Query { +func (r stepRunEventToStepRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToChildSchedulesUpdateMany) stepRunModel() {} +func (r stepRunEventToStepRunUpdateMany) stepRunEventModel() {} -func (r stepRunToChildSchedulesUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunEventToStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -335074,36 +360077,36 @@ func (r stepRunToChildSchedulesUpdateMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r stepRunToChildSchedulesUpdateMany) Tx() StepRunManyTxResult { - v := newStepRunManyTxResult() +func (r stepRunEventToStepRunUpdateMany) Tx() StepRunEventManyTxResult { + v := newStepRunEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToChildSchedulesFindMany) Delete() stepRunToChildSchedulesDeleteMany { - var v stepRunToChildSchedulesDeleteMany +func (r stepRunEventToStepRunFindMany) Delete() stepRunEventToStepRunDeleteMany { + var v stepRunEventToStepRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRun" + v.query.Model = "StepRunEvent" v.query.Outputs = countOutput return v } -type stepRunToChildSchedulesDeleteMany struct { +type stepRunEventToStepRunDeleteMany struct { query builder.Query } -func (r stepRunToChildSchedulesDeleteMany) ExtractQuery() builder.Query { +func (r stepRunEventToStepRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToChildSchedulesDeleteMany) stepRunModel() {} +func (p stepRunEventToStepRunDeleteMany) stepRunEventModel() {} -func (r stepRunToChildSchedulesDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunEventToStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -335111,30 +360114,52 @@ func (r stepRunToChildSchedulesDeleteMany) Exec(ctx context.Context) (*BatchResu return &v, nil } -func (r stepRunToChildSchedulesDeleteMany) Tx() StepRunManyTxResult { - v := newStepRunManyTxResult() +func (r stepRunEventToStepRunDeleteMany) Tx() StepRunEventManyTxResult { + v := newStepRunEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToEventsFindUnique struct { +type stepRunEventFindUnique struct { query builder.Query } -func (r stepRunToEventsFindUnique) getQuery() builder.Query { +func (r stepRunEventFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunToEventsFindUnique) ExtractQuery() builder.Query { +func (r stepRunEventFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToEventsFindUnique) with() {} -func (r stepRunToEventsFindUnique) stepRunModel() {} -func (r stepRunToEventsFindUnique) stepRunRelation() {} +func (r stepRunEventFindUnique) with() {} +func (r stepRunEventFindUnique) stepRunEventModel() {} +func (r stepRunEventFindUnique) stepRunEventRelation() {} -func (r stepRunToEventsFindUnique) With(params ...StepRunEventRelationWith) stepRunToEventsFindUnique { +func (r stepRunEventActions) FindUnique( + params StepRunEventEqualsUniqueWhereParam, +) stepRunEventFindUnique { + var v stepRunEventFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "StepRunEvent" + v.query.Outputs = stepRunEventOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r stepRunEventFindUnique) With(params ...StepRunEventRelationWith) stepRunEventFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -335147,7 +360172,7 @@ func (r stepRunToEventsFindUnique) With(params ...StepRunEventRelationWith) step return r } -func (r stepRunToEventsFindUnique) Select(params ...stepRunPrismaFields) stepRunToEventsFindUnique { +func (r stepRunEventFindUnique) Select(params ...stepRunEventPrismaFields) stepRunEventFindUnique { var outputs []builder.Output for _, param := range params { @@ -335161,7 +360186,7 @@ func (r stepRunToEventsFindUnique) Select(params ...stepRunPrismaFields) stepRun return r } -func (r stepRunToEventsFindUnique) Omit(params ...stepRunPrismaFields) stepRunToEventsFindUnique { +func (r stepRunEventFindUnique) Omit(params ...stepRunEventPrismaFields) stepRunEventFindUnique { var outputs []builder.Output var raw []string @@ -335169,7 +360194,7 @@ func (r stepRunToEventsFindUnique) Omit(params ...stepRunPrismaFields) stepRunTo raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunEventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -335180,11 +360205,11 @@ func (r stepRunToEventsFindUnique) Omit(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToEventsFindUnique) Exec(ctx context.Context) ( - *StepRunModel, +func (r stepRunEventFindUnique) Exec(ctx context.Context) ( + *StepRunEventModel, error, ) { - var v *StepRunModel + var v *StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335196,11 +360221,11 @@ func (r stepRunToEventsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToEventsFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRun, +func (r stepRunEventFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRunEvent, error, ) { - var v *InnerStepRun + var v *InnerStepRunEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335212,12 +360237,12 @@ func (r stepRunToEventsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToEventsFindUnique) Update(params ...StepRunSetParam) stepRunToEventsUpdateUnique { +func (r stepRunEventFindUnique) Update(params ...StepRunEventSetParam) stepRunEventUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRun" + r.query.Model = "StepRunEvent" - var v stepRunToEventsUpdateUnique + var v stepRunEventUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -335246,83 +360271,120 @@ func (r stepRunToEventsFindUnique) Update(params ...StepRunSetParam) stepRunToEv return v } -type stepRunToEventsUpdateUnique struct { +type stepRunEventUpdateUnique struct { query builder.Query } -func (r stepRunToEventsUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunEventUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunToEventsUpdateUnique) stepRunModel() {} +func (r stepRunEventUpdateUnique) stepRunEventModel() {} -func (r stepRunToEventsUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { - var v StepRunModel +func (r stepRunEventUpdateUnique) Exec(ctx context.Context) (*StepRunEventModel, error) { + var v StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunToEventsUpdateUnique) Tx() StepRunUniqueTxResult { - v := newStepRunUniqueTxResult() +func (r stepRunEventUpdateUnique) Tx() StepRunEventUniqueTxResult { + v := newStepRunEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToEventsFindUnique) Delete() stepRunToEventsDeleteUnique { - var v stepRunToEventsDeleteUnique +func (r stepRunEventFindUnique) Delete() stepRunEventDeleteUnique { + var v stepRunEventDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRun" + v.query.Model = "StepRunEvent" return v } -type stepRunToEventsDeleteUnique struct { +type stepRunEventDeleteUnique struct { query builder.Query } -func (r stepRunToEventsDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunEventDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunToEventsDeleteUnique) stepRunModel() {} +func (p stepRunEventDeleteUnique) stepRunEventModel() {} -func (r stepRunToEventsDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { - var v StepRunModel +func (r stepRunEventDeleteUnique) Exec(ctx context.Context) (*StepRunEventModel, error) { + var v StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunToEventsDeleteUnique) Tx() StepRunUniqueTxResult { - v := newStepRunUniqueTxResult() +func (r stepRunEventDeleteUnique) Tx() StepRunEventUniqueTxResult { + v := newStepRunEventUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunToEventsFindFirst struct { +type stepRunEventFindFirst struct { query builder.Query } -func (r stepRunToEventsFindFirst) getQuery() builder.Query { +func (r stepRunEventFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunToEventsFindFirst) ExtractQuery() builder.Query { +func (r stepRunEventFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunToEventsFindFirst) with() {} -func (r stepRunToEventsFindFirst) stepRunModel() {} -func (r stepRunToEventsFindFirst) stepRunRelation() {} +func (r stepRunEventFindFirst) with() {} +func (r stepRunEventFindFirst) stepRunEventModel() {} +func (r stepRunEventFindFirst) stepRunEventRelation() {} -func (r stepRunToEventsFindFirst) With(params ...StepRunEventRelationWith) stepRunToEventsFindFirst { +func (r stepRunEventActions) FindFirst( + params ...StepRunEventWhereParam, +) stepRunEventFindFirst { + var v stepRunEventFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "StepRunEvent" + v.query.Outputs = stepRunEventOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRunEventFindFirst) With(params ...StepRunEventRelationWith) stepRunEventFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -335335,7 +360397,7 @@ func (r stepRunToEventsFindFirst) With(params ...StepRunEventRelationWith) stepR return r } -func (r stepRunToEventsFindFirst) Select(params ...stepRunPrismaFields) stepRunToEventsFindFirst { +func (r stepRunEventFindFirst) Select(params ...stepRunEventPrismaFields) stepRunEventFindFirst { var outputs []builder.Output for _, param := range params { @@ -335349,7 +360411,7 @@ func (r stepRunToEventsFindFirst) Select(params ...stepRunPrismaFields) stepRunT return r } -func (r stepRunToEventsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToEventsFindFirst { +func (r stepRunEventFindFirst) Omit(params ...stepRunEventPrismaFields) stepRunEventFindFirst { var outputs []builder.Output var raw []string @@ -335357,7 +360419,7 @@ func (r stepRunToEventsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToE raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunEventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -335368,7 +360430,7 @@ func (r stepRunToEventsFindFirst) Omit(params ...stepRunPrismaFields) stepRunToE return r } -func (r stepRunToEventsFindFirst) OrderBy(params ...StepRunEventOrderByParam) stepRunToEventsFindFirst { +func (r stepRunEventFindFirst) OrderBy(params ...StepRunEventOrderByParam) stepRunEventFindFirst { var fields []builder.Field for _, param := range params { @@ -335388,7 +360450,7 @@ func (r stepRunToEventsFindFirst) OrderBy(params ...StepRunEventOrderByParam) st return r } -func (r stepRunToEventsFindFirst) Skip(count int) stepRunToEventsFindFirst { +func (r stepRunEventFindFirst) Skip(count int) stepRunEventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -335396,7 +360458,7 @@ func (r stepRunToEventsFindFirst) Skip(count int) stepRunToEventsFindFirst { return r } -func (r stepRunToEventsFindFirst) Take(count int) stepRunToEventsFindFirst { +func (r stepRunEventFindFirst) Take(count int) stepRunEventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -335404,7 +360466,7 @@ func (r stepRunToEventsFindFirst) Take(count int) stepRunToEventsFindFirst { return r } -func (r stepRunToEventsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToEventsFindFirst { +func (r stepRunEventFindFirst) Cursor(cursor StepRunEventCursorParam) stepRunEventFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -335412,11 +360474,11 @@ func (r stepRunToEventsFindFirst) Cursor(cursor StepRunCursorParam) stepRunToEve return r } -func (r stepRunToEventsFindFirst) Exec(ctx context.Context) ( - *StepRunModel, +func (r stepRunEventFindFirst) Exec(ctx context.Context) ( + *StepRunEventModel, error, ) { - var v *StepRunModel + var v *StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335428,11 +360490,11 @@ func (r stepRunToEventsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToEventsFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRun, +func (r stepRunEventFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRunEvent, error, ) { - var v *InnerStepRun + var v *InnerStepRunEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335444,23 +360506,60 @@ func (r stepRunToEventsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunToEventsFindMany struct { +type stepRunEventFindMany struct { query builder.Query } -func (r stepRunToEventsFindMany) getQuery() builder.Query { +func (r stepRunEventFindMany) getQuery() builder.Query { return r.query } -func (r stepRunToEventsFindMany) ExtractQuery() builder.Query { +func (r stepRunEventFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToEventsFindMany) with() {} -func (r stepRunToEventsFindMany) stepRunModel() {} -func (r stepRunToEventsFindMany) stepRunRelation() {} +func (r stepRunEventFindMany) with() {} +func (r stepRunEventFindMany) stepRunEventModel() {} +func (r stepRunEventFindMany) stepRunEventRelation() {} -func (r stepRunToEventsFindMany) With(params ...StepRunEventRelationWith) stepRunToEventsFindMany { +func (r stepRunEventActions) FindMany( + params ...StepRunEventWhereParam, +) stepRunEventFindMany { + var v stepRunEventFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "StepRunEvent" + v.query.Outputs = stepRunEventOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRunEventFindMany) With(params ...StepRunEventRelationWith) stepRunEventFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -335473,7 +360572,7 @@ func (r stepRunToEventsFindMany) With(params ...StepRunEventRelationWith) stepRu return r } -func (r stepRunToEventsFindMany) Select(params ...stepRunPrismaFields) stepRunToEventsFindMany { +func (r stepRunEventFindMany) Select(params ...stepRunEventPrismaFields) stepRunEventFindMany { var outputs []builder.Output for _, param := range params { @@ -335487,7 +360586,7 @@ func (r stepRunToEventsFindMany) Select(params ...stepRunPrismaFields) stepRunTo return r } -func (r stepRunToEventsFindMany) Omit(params ...stepRunPrismaFields) stepRunToEventsFindMany { +func (r stepRunEventFindMany) Omit(params ...stepRunEventPrismaFields) stepRunEventFindMany { var outputs []builder.Output var raw []string @@ -335495,7 +360594,7 @@ func (r stepRunToEventsFindMany) Omit(params ...stepRunPrismaFields) stepRunToEv raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunEventOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -335506,7 +360605,7 @@ func (r stepRunToEventsFindMany) Omit(params ...stepRunPrismaFields) stepRunToEv return r } -func (r stepRunToEventsFindMany) OrderBy(params ...StepRunEventOrderByParam) stepRunToEventsFindMany { +func (r stepRunEventFindMany) OrderBy(params ...StepRunEventOrderByParam) stepRunEventFindMany { var fields []builder.Field for _, param := range params { @@ -335526,7 +360625,7 @@ func (r stepRunToEventsFindMany) OrderBy(params ...StepRunEventOrderByParam) ste return r } -func (r stepRunToEventsFindMany) Skip(count int) stepRunToEventsFindMany { +func (r stepRunEventFindMany) Skip(count int) stepRunEventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -335534,7 +360633,7 @@ func (r stepRunToEventsFindMany) Skip(count int) stepRunToEventsFindMany { return r } -func (r stepRunToEventsFindMany) Take(count int) stepRunToEventsFindMany { +func (r stepRunEventFindMany) Take(count int) stepRunEventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -335542,7 +360641,7 @@ func (r stepRunToEventsFindMany) Take(count int) stepRunToEventsFindMany { return r } -func (r stepRunToEventsFindMany) Cursor(cursor StepRunCursorParam) stepRunToEventsFindMany { +func (r stepRunEventFindMany) Cursor(cursor StepRunEventCursorParam) stepRunEventFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -335550,11 +360649,11 @@ func (r stepRunToEventsFindMany) Cursor(cursor StepRunCursorParam) stepRunToEven return r } -func (r stepRunToEventsFindMany) Exec(ctx context.Context) ( - []StepRunModel, +func (r stepRunEventFindMany) Exec(ctx context.Context) ( + []StepRunEventModel, error, ) { - var v []StepRunModel + var v []StepRunEventModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335562,11 +360661,11 @@ func (r stepRunToEventsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunToEventsFindMany) ExecInner(ctx context.Context) ( - []InnerStepRun, +func (r stepRunEventFindMany) ExecInner(ctx context.Context) ( + []InnerStepRunEvent, error, ) { - var v []InnerStepRun + var v []InnerStepRunEvent if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335574,14 +360673,14 @@ func (r stepRunToEventsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunToEventsFindMany) Update(params ...StepRunSetParam) stepRunToEventsUpdateMany { +func (r stepRunEventFindMany) Update(params ...StepRunEventSetParam) stepRunEventUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRun" + r.query.Model = "StepRunEvent" r.query.Outputs = countOutput - var v stepRunToEventsUpdateMany + var v stepRunEventUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -335610,17 +360709,17 @@ func (r stepRunToEventsFindMany) Update(params ...StepRunSetParam) stepRunToEven return v } -type stepRunToEventsUpdateMany struct { +type stepRunEventUpdateMany struct { query builder.Query } -func (r stepRunToEventsUpdateMany) ExtractQuery() builder.Query { +func (r stepRunEventUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunToEventsUpdateMany) stepRunModel() {} +func (r stepRunEventUpdateMany) stepRunEventModel() {} -func (r stepRunToEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunEventUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -335628,36 +360727,36 @@ func (r stepRunToEventsUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToEventsUpdateMany) Tx() StepRunManyTxResult { - v := newStepRunManyTxResult() +func (r stepRunEventUpdateMany) Tx() StepRunEventManyTxResult { + v := newStepRunEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunToEventsFindMany) Delete() stepRunToEventsDeleteMany { - var v stepRunToEventsDeleteMany +func (r stepRunEventFindMany) Delete() stepRunEventDeleteMany { + var v stepRunEventDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRun" + v.query.Model = "StepRunEvent" v.query.Outputs = countOutput return v } -type stepRunToEventsDeleteMany struct { +type stepRunEventDeleteMany struct { query builder.Query } -func (r stepRunToEventsDeleteMany) ExtractQuery() builder.Query { +func (r stepRunEventDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunToEventsDeleteMany) stepRunModel() {} +func (p stepRunEventDeleteMany) stepRunEventModel() {} -func (r stepRunToEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunEventDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -335665,52 +360764,30 @@ func (r stepRunToEventsDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r stepRunToEventsDeleteMany) Tx() StepRunManyTxResult { - v := newStepRunManyTxResult() +func (r stepRunEventDeleteMany) Tx() StepRunEventManyTxResult { + v := newStepRunEventManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunFindUnique struct { +type stepRunResultArchiveToStepRunFindUnique struct { query builder.Query } -func (r stepRunFindUnique) getQuery() builder.Query { +func (r stepRunResultArchiveToStepRunFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunFindUnique) ExtractQuery() builder.Query { +func (r stepRunResultArchiveToStepRunFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunFindUnique) with() {} -func (r stepRunFindUnique) stepRunModel() {} -func (r stepRunFindUnique) stepRunRelation() {} - -func (r stepRunActions) FindUnique( - params StepRunEqualsUniqueWhereParam, -) stepRunFindUnique { - var v stepRunFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "StepRun" - v.query.Outputs = stepRunOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r stepRunResultArchiveToStepRunFindUnique) with() {} +func (r stepRunResultArchiveToStepRunFindUnique) stepRunResultArchiveModel() {} +func (r stepRunResultArchiveToStepRunFindUnique) stepRunResultArchiveRelation() {} -func (r stepRunFindUnique) With(params ...StepRunRelationWith) stepRunFindUnique { +func (r stepRunResultArchiveToStepRunFindUnique) With(params ...StepRunRelationWith) stepRunResultArchiveToStepRunFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -335723,7 +360800,7 @@ func (r stepRunFindUnique) With(params ...StepRunRelationWith) stepRunFindUnique return r } -func (r stepRunFindUnique) Select(params ...stepRunPrismaFields) stepRunFindUnique { +func (r stepRunResultArchiveToStepRunFindUnique) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindUnique { var outputs []builder.Output for _, param := range params { @@ -335737,7 +360814,7 @@ func (r stepRunFindUnique) Select(params ...stepRunPrismaFields) stepRunFindUniq return r } -func (r stepRunFindUnique) Omit(params ...stepRunPrismaFields) stepRunFindUnique { +func (r stepRunResultArchiveToStepRunFindUnique) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindUnique { var outputs []builder.Output var raw []string @@ -335745,7 +360822,7 @@ func (r stepRunFindUnique) Omit(params ...stepRunPrismaFields) stepRunFindUnique raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunResultArchiveOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -335756,11 +360833,11 @@ func (r stepRunFindUnique) Omit(params ...stepRunPrismaFields) stepRunFindUnique return r } -func (r stepRunFindUnique) Exec(ctx context.Context) ( - *StepRunModel, +func (r stepRunResultArchiveToStepRunFindUnique) Exec(ctx context.Context) ( + *StepRunResultArchiveModel, error, ) { - var v *StepRunModel + var v *StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335772,11 +360849,11 @@ func (r stepRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRun, +func (r stepRunResultArchiveToStepRunFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRunResultArchive, error, ) { - var v *InnerStepRun + var v *InnerStepRunResultArchive if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -335788,12 +360865,12 @@ func (r stepRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunFindUnique) Update(params ...StepRunSetParam) stepRunUpdateUnique { +func (r stepRunResultArchiveToStepRunFindUnique) Update(params ...StepRunResultArchiveSetParam) stepRunResultArchiveToStepRunUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRun" + r.query.Model = "StepRunResultArchive" - var v stepRunUpdateUnique + var v stepRunResultArchiveToStepRunUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -335822,120 +360899,83 @@ func (r stepRunFindUnique) Update(params ...StepRunSetParam) stepRunUpdateUnique return v } -type stepRunUpdateUnique struct { +type stepRunResultArchiveToStepRunUpdateUnique struct { query builder.Query } -func (r stepRunUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunResultArchiveToStepRunUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunUpdateUnique) stepRunModel() {} +func (r stepRunResultArchiveToStepRunUpdateUnique) stepRunResultArchiveModel() {} -func (r stepRunUpdateUnique) Exec(ctx context.Context) (*StepRunModel, error) { - var v StepRunModel +func (r stepRunResultArchiveToStepRunUpdateUnique) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { + var v StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunUpdateUnique) Tx() StepRunUniqueTxResult { - v := newStepRunUniqueTxResult() +func (r stepRunResultArchiveToStepRunUpdateUnique) Tx() StepRunResultArchiveUniqueTxResult { + v := newStepRunResultArchiveUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunFindUnique) Delete() stepRunDeleteUnique { - var v stepRunDeleteUnique +func (r stepRunResultArchiveToStepRunFindUnique) Delete() stepRunResultArchiveToStepRunDeleteUnique { + var v stepRunResultArchiveToStepRunDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRun" + v.query.Model = "StepRunResultArchive" return v } -type stepRunDeleteUnique struct { +type stepRunResultArchiveToStepRunDeleteUnique struct { query builder.Query } -func (r stepRunDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunResultArchiveToStepRunDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunDeleteUnique) stepRunModel() {} +func (p stepRunResultArchiveToStepRunDeleteUnique) stepRunResultArchiveModel() {} -func (r stepRunDeleteUnique) Exec(ctx context.Context) (*StepRunModel, error) { - var v StepRunModel +func (r stepRunResultArchiveToStepRunDeleteUnique) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { + var v StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunDeleteUnique) Tx() StepRunUniqueTxResult { - v := newStepRunUniqueTxResult() +func (r stepRunResultArchiveToStepRunDeleteUnique) Tx() StepRunResultArchiveUniqueTxResult { + v := newStepRunResultArchiveUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunFindFirst struct { +type stepRunResultArchiveToStepRunFindFirst struct { query builder.Query } -func (r stepRunFindFirst) getQuery() builder.Query { +func (r stepRunResultArchiveToStepRunFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunFindFirst) ExtractQuery() builder.Query { +func (r stepRunResultArchiveToStepRunFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunFindFirst) with() {} -func (r stepRunFindFirst) stepRunModel() {} -func (r stepRunFindFirst) stepRunRelation() {} - -func (r stepRunActions) FindFirst( - params ...StepRunWhereParam, -) stepRunFindFirst { - var v stepRunFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "StepRun" - v.query.Outputs = stepRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r stepRunResultArchiveToStepRunFindFirst) with() {} +func (r stepRunResultArchiveToStepRunFindFirst) stepRunResultArchiveModel() {} +func (r stepRunResultArchiveToStepRunFindFirst) stepRunResultArchiveRelation() {} -func (r stepRunFindFirst) With(params ...StepRunRelationWith) stepRunFindFirst { +func (r stepRunResultArchiveToStepRunFindFirst) With(params ...StepRunRelationWith) stepRunResultArchiveToStepRunFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -335948,7 +360988,7 @@ func (r stepRunFindFirst) With(params ...StepRunRelationWith) stepRunFindFirst { return r } -func (r stepRunFindFirst) Select(params ...stepRunPrismaFields) stepRunFindFirst { +func (r stepRunResultArchiveToStepRunFindFirst) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindFirst { var outputs []builder.Output for _, param := range params { @@ -335962,7 +361002,7 @@ func (r stepRunFindFirst) Select(params ...stepRunPrismaFields) stepRunFindFirst return r } -func (r stepRunFindFirst) Omit(params ...stepRunPrismaFields) stepRunFindFirst { +func (r stepRunResultArchiveToStepRunFindFirst) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindFirst { var outputs []builder.Output var raw []string @@ -335970,7 +361010,7 @@ func (r stepRunFindFirst) Omit(params ...stepRunPrismaFields) stepRunFindFirst { raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunResultArchiveOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -335981,7 +361021,7 @@ func (r stepRunFindFirst) Omit(params ...stepRunPrismaFields) stepRunFindFirst { return r } -func (r stepRunFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunFindFirst { +func (r stepRunResultArchiveToStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunResultArchiveToStepRunFindFirst { var fields []builder.Field for _, param := range params { @@ -336001,7 +361041,7 @@ func (r stepRunFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunFindFirs return r } -func (r stepRunFindFirst) Skip(count int) stepRunFindFirst { +func (r stepRunResultArchiveToStepRunFindFirst) Skip(count int) stepRunResultArchiveToStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -336009,7 +361049,7 @@ func (r stepRunFindFirst) Skip(count int) stepRunFindFirst { return r } -func (r stepRunFindFirst) Take(count int) stepRunFindFirst { +func (r stepRunResultArchiveToStepRunFindFirst) Take(count int) stepRunResultArchiveToStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -336017,7 +361057,7 @@ func (r stepRunFindFirst) Take(count int) stepRunFindFirst { return r } -func (r stepRunFindFirst) Cursor(cursor StepRunCursorParam) stepRunFindFirst { +func (r stepRunResultArchiveToStepRunFindFirst) Cursor(cursor StepRunResultArchiveCursorParam) stepRunResultArchiveToStepRunFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -336025,11 +361065,11 @@ func (r stepRunFindFirst) Cursor(cursor StepRunCursorParam) stepRunFindFirst { return r } -func (r stepRunFindFirst) Exec(ctx context.Context) ( - *StepRunModel, +func (r stepRunResultArchiveToStepRunFindFirst) Exec(ctx context.Context) ( + *StepRunResultArchiveModel, error, ) { - var v *StepRunModel + var v *StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336041,11 +361081,11 @@ func (r stepRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRun, +func (r stepRunResultArchiveToStepRunFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRunResultArchive, error, ) { - var v *InnerStepRun + var v *InnerStepRunResultArchive if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336057,60 +361097,23 @@ func (r stepRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunFindMany struct { +type stepRunResultArchiveToStepRunFindMany struct { query builder.Query } -func (r stepRunFindMany) getQuery() builder.Query { +func (r stepRunResultArchiveToStepRunFindMany) getQuery() builder.Query { return r.query } -func (r stepRunFindMany) ExtractQuery() builder.Query { +func (r stepRunResultArchiveToStepRunFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunFindMany) with() {} -func (r stepRunFindMany) stepRunModel() {} -func (r stepRunFindMany) stepRunRelation() {} - -func (r stepRunActions) FindMany( - params ...StepRunWhereParam, -) stepRunFindMany { - var v stepRunFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "StepRun" - v.query.Outputs = stepRunOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r stepRunResultArchiveToStepRunFindMany) with() {} +func (r stepRunResultArchiveToStepRunFindMany) stepRunResultArchiveModel() {} +func (r stepRunResultArchiveToStepRunFindMany) stepRunResultArchiveRelation() {} -func (r stepRunFindMany) With(params ...StepRunRelationWith) stepRunFindMany { +func (r stepRunResultArchiveToStepRunFindMany) With(params ...StepRunRelationWith) stepRunResultArchiveToStepRunFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -336123,7 +361126,7 @@ func (r stepRunFindMany) With(params ...StepRunRelationWith) stepRunFindMany { return r } -func (r stepRunFindMany) Select(params ...stepRunPrismaFields) stepRunFindMany { +func (r stepRunResultArchiveToStepRunFindMany) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindMany { var outputs []builder.Output for _, param := range params { @@ -336137,7 +361140,7 @@ func (r stepRunFindMany) Select(params ...stepRunPrismaFields) stepRunFindMany { return r } -func (r stepRunFindMany) Omit(params ...stepRunPrismaFields) stepRunFindMany { +func (r stepRunResultArchiveToStepRunFindMany) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindMany { var outputs []builder.Output var raw []string @@ -336145,7 +361148,7 @@ func (r stepRunFindMany) Omit(params ...stepRunPrismaFields) stepRunFindMany { raw = append(raw, string(param)) } - for _, output := range stepRunOutput { + for _, output := range stepRunResultArchiveOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -336156,7 +361159,7 @@ func (r stepRunFindMany) Omit(params ...stepRunPrismaFields) stepRunFindMany { return r } -func (r stepRunFindMany) OrderBy(params ...StepRunOrderByParam) stepRunFindMany { +func (r stepRunResultArchiveToStepRunFindMany) OrderBy(params ...StepRunOrderByParam) stepRunResultArchiveToStepRunFindMany { var fields []builder.Field for _, param := range params { @@ -336176,7 +361179,7 @@ func (r stepRunFindMany) OrderBy(params ...StepRunOrderByParam) stepRunFindMany return r } -func (r stepRunFindMany) Skip(count int) stepRunFindMany { +func (r stepRunResultArchiveToStepRunFindMany) Skip(count int) stepRunResultArchiveToStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -336184,7 +361187,7 @@ func (r stepRunFindMany) Skip(count int) stepRunFindMany { return r } -func (r stepRunFindMany) Take(count int) stepRunFindMany { +func (r stepRunResultArchiveToStepRunFindMany) Take(count int) stepRunResultArchiveToStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -336192,7 +361195,7 @@ func (r stepRunFindMany) Take(count int) stepRunFindMany { return r } -func (r stepRunFindMany) Cursor(cursor StepRunCursorParam) stepRunFindMany { +func (r stepRunResultArchiveToStepRunFindMany) Cursor(cursor StepRunResultArchiveCursorParam) stepRunResultArchiveToStepRunFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -336200,11 +361203,11 @@ func (r stepRunFindMany) Cursor(cursor StepRunCursorParam) stepRunFindMany { return r } -func (r stepRunFindMany) Exec(ctx context.Context) ( - []StepRunModel, +func (r stepRunResultArchiveToStepRunFindMany) Exec(ctx context.Context) ( + []StepRunResultArchiveModel, error, ) { - var v []StepRunModel + var v []StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336212,11 +361215,11 @@ func (r stepRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunFindMany) ExecInner(ctx context.Context) ( - []InnerStepRun, +func (r stepRunResultArchiveToStepRunFindMany) ExecInner(ctx context.Context) ( + []InnerStepRunResultArchive, error, ) { - var v []InnerStepRun + var v []InnerStepRunResultArchive if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336224,14 +361227,14 @@ func (r stepRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunFindMany) Update(params ...StepRunSetParam) stepRunUpdateMany { +func (r stepRunResultArchiveToStepRunFindMany) Update(params ...StepRunResultArchiveSetParam) stepRunResultArchiveToStepRunUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRun" + r.query.Model = "StepRunResultArchive" r.query.Outputs = countOutput - var v stepRunUpdateMany + var v stepRunResultArchiveToStepRunUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -336260,17 +361263,17 @@ func (r stepRunFindMany) Update(params ...StepRunSetParam) stepRunUpdateMany { return v } -type stepRunUpdateMany struct { +type stepRunResultArchiveToStepRunUpdateMany struct { query builder.Query } -func (r stepRunUpdateMany) ExtractQuery() builder.Query { +func (r stepRunResultArchiveToStepRunUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunUpdateMany) stepRunModel() {} +func (r stepRunResultArchiveToStepRunUpdateMany) stepRunResultArchiveModel() {} -func (r stepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunResultArchiveToStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -336278,36 +361281,36 @@ func (r stepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r stepRunUpdateMany) Tx() StepRunManyTxResult { - v := newStepRunManyTxResult() +func (r stepRunResultArchiveToStepRunUpdateMany) Tx() StepRunResultArchiveManyTxResult { + v := newStepRunResultArchiveManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunFindMany) Delete() stepRunDeleteMany { - var v stepRunDeleteMany +func (r stepRunResultArchiveToStepRunFindMany) Delete() stepRunResultArchiveToStepRunDeleteMany { + var v stepRunResultArchiveToStepRunDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRun" + v.query.Model = "StepRunResultArchive" v.query.Outputs = countOutput return v } -type stepRunDeleteMany struct { +type stepRunResultArchiveToStepRunDeleteMany struct { query builder.Query } -func (r stepRunDeleteMany) ExtractQuery() builder.Query { +func (r stepRunResultArchiveToStepRunDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunDeleteMany) stepRunModel() {} +func (p stepRunResultArchiveToStepRunDeleteMany) stepRunResultArchiveModel() {} -func (r stepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunResultArchiveToStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -336315,30 +361318,52 @@ func (r stepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r stepRunDeleteMany) Tx() StepRunManyTxResult { - v := newStepRunManyTxResult() +func (r stepRunResultArchiveToStepRunDeleteMany) Tx() StepRunResultArchiveManyTxResult { + v := newStepRunResultArchiveManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunEventToStepRunFindUnique struct { +type stepRunResultArchiveFindUnique struct { query builder.Query } -func (r stepRunEventToStepRunFindUnique) getQuery() builder.Query { +func (r stepRunResultArchiveFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunEventToStepRunFindUnique) ExtractQuery() builder.Query { +func (r stepRunResultArchiveFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventToStepRunFindUnique) with() {} -func (r stepRunEventToStepRunFindUnique) stepRunEventModel() {} -func (r stepRunEventToStepRunFindUnique) stepRunEventRelation() {} +func (r stepRunResultArchiveFindUnique) with() {} +func (r stepRunResultArchiveFindUnique) stepRunResultArchiveModel() {} +func (r stepRunResultArchiveFindUnique) stepRunResultArchiveRelation() {} -func (r stepRunEventToStepRunFindUnique) With(params ...StepRunRelationWith) stepRunEventToStepRunFindUnique { +func (r stepRunResultArchiveActions) FindUnique( + params StepRunResultArchiveEqualsUniqueWhereParam, +) stepRunResultArchiveFindUnique { + var v stepRunResultArchiveFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "StepRunResultArchive" + v.query.Outputs = stepRunResultArchiveOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r stepRunResultArchiveFindUnique) With(params ...StepRunResultArchiveRelationWith) stepRunResultArchiveFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -336351,7 +361376,7 @@ func (r stepRunEventToStepRunFindUnique) With(params ...StepRunRelationWith) ste return r } -func (r stepRunEventToStepRunFindUnique) Select(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindUnique { +func (r stepRunResultArchiveFindUnique) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindUnique { var outputs []builder.Output for _, param := range params { @@ -336365,7 +361390,7 @@ func (r stepRunEventToStepRunFindUnique) Select(params ...stepRunEventPrismaFiel return r } -func (r stepRunEventToStepRunFindUnique) Omit(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindUnique { +func (r stepRunResultArchiveFindUnique) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindUnique { var outputs []builder.Output var raw []string @@ -336373,7 +361398,7 @@ func (r stepRunEventToStepRunFindUnique) Omit(params ...stepRunEventPrismaFields raw = append(raw, string(param)) } - for _, output := range stepRunEventOutput { + for _, output := range stepRunResultArchiveOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -336384,11 +361409,11 @@ func (r stepRunEventToStepRunFindUnique) Omit(params ...stepRunEventPrismaFields return r } -func (r stepRunEventToStepRunFindUnique) Exec(ctx context.Context) ( - *StepRunEventModel, +func (r stepRunResultArchiveFindUnique) Exec(ctx context.Context) ( + *StepRunResultArchiveModel, error, ) { - var v *StepRunEventModel + var v *StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336400,11 +361425,11 @@ func (r stepRunEventToStepRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunEventToStepRunFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRunEvent, +func (r stepRunResultArchiveFindUnique) ExecInner(ctx context.Context) ( + *InnerStepRunResultArchive, error, ) { - var v *InnerStepRunEvent + var v *InnerStepRunResultArchive if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336416,12 +361441,12 @@ func (r stepRunEventToStepRunFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunEventToStepRunFindUnique) Update(params ...StepRunEventSetParam) stepRunEventToStepRunUpdateUnique { +func (r stepRunResultArchiveFindUnique) Update(params ...StepRunResultArchiveSetParam) stepRunResultArchiveUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRunEvent" + r.query.Model = "StepRunResultArchive" - var v stepRunEventToStepRunUpdateUnique + var v stepRunResultArchiveUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -336450,83 +361475,120 @@ func (r stepRunEventToStepRunFindUnique) Update(params ...StepRunEventSetParam) return v } -type stepRunEventToStepRunUpdateUnique struct { +type stepRunResultArchiveUpdateUnique struct { query builder.Query } -func (r stepRunEventToStepRunUpdateUnique) ExtractQuery() builder.Query { +func (r stepRunResultArchiveUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventToStepRunUpdateUnique) stepRunEventModel() {} +func (r stepRunResultArchiveUpdateUnique) stepRunResultArchiveModel() {} -func (r stepRunEventToStepRunUpdateUnique) Exec(ctx context.Context) (*StepRunEventModel, error) { - var v StepRunEventModel +func (r stepRunResultArchiveUpdateUnique) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { + var v StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunEventToStepRunUpdateUnique) Tx() StepRunEventUniqueTxResult { - v := newStepRunEventUniqueTxResult() +func (r stepRunResultArchiveUpdateUnique) Tx() StepRunResultArchiveUniqueTxResult { + v := newStepRunResultArchiveUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunEventToStepRunFindUnique) Delete() stepRunEventToStepRunDeleteUnique { - var v stepRunEventToStepRunDeleteUnique +func (r stepRunResultArchiveFindUnique) Delete() stepRunResultArchiveDeleteUnique { + var v stepRunResultArchiveDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRunEvent" + v.query.Model = "StepRunResultArchive" return v } -type stepRunEventToStepRunDeleteUnique struct { +type stepRunResultArchiveDeleteUnique struct { query builder.Query } -func (r stepRunEventToStepRunDeleteUnique) ExtractQuery() builder.Query { +func (r stepRunResultArchiveDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunEventToStepRunDeleteUnique) stepRunEventModel() {} +func (p stepRunResultArchiveDeleteUnique) stepRunResultArchiveModel() {} -func (r stepRunEventToStepRunDeleteUnique) Exec(ctx context.Context) (*StepRunEventModel, error) { - var v StepRunEventModel +func (r stepRunResultArchiveDeleteUnique) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { + var v StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunEventToStepRunDeleteUnique) Tx() StepRunEventUniqueTxResult { - v := newStepRunEventUniqueTxResult() +func (r stepRunResultArchiveDeleteUnique) Tx() StepRunResultArchiveUniqueTxResult { + v := newStepRunResultArchiveUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunEventToStepRunFindFirst struct { +type stepRunResultArchiveFindFirst struct { query builder.Query } -func (r stepRunEventToStepRunFindFirst) getQuery() builder.Query { +func (r stepRunResultArchiveFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunEventToStepRunFindFirst) ExtractQuery() builder.Query { +func (r stepRunResultArchiveFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventToStepRunFindFirst) with() {} -func (r stepRunEventToStepRunFindFirst) stepRunEventModel() {} -func (r stepRunEventToStepRunFindFirst) stepRunEventRelation() {} +func (r stepRunResultArchiveFindFirst) with() {} +func (r stepRunResultArchiveFindFirst) stepRunResultArchiveModel() {} +func (r stepRunResultArchiveFindFirst) stepRunResultArchiveRelation() {} -func (r stepRunEventToStepRunFindFirst) With(params ...StepRunRelationWith) stepRunEventToStepRunFindFirst { +func (r stepRunResultArchiveActions) FindFirst( + params ...StepRunResultArchiveWhereParam, +) stepRunResultArchiveFindFirst { + var v stepRunResultArchiveFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "StepRunResultArchive" + v.query.Outputs = stepRunResultArchiveOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRunResultArchiveFindFirst) With(params ...StepRunResultArchiveRelationWith) stepRunResultArchiveFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -336539,7 +361601,7 @@ func (r stepRunEventToStepRunFindFirst) With(params ...StepRunRelationWith) step return r } -func (r stepRunEventToStepRunFindFirst) Select(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindFirst { +func (r stepRunResultArchiveFindFirst) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindFirst { var outputs []builder.Output for _, param := range params { @@ -336553,7 +361615,7 @@ func (r stepRunEventToStepRunFindFirst) Select(params ...stepRunEventPrismaField return r } -func (r stepRunEventToStepRunFindFirst) Omit(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindFirst { +func (r stepRunResultArchiveFindFirst) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindFirst { var outputs []builder.Output var raw []string @@ -336561,7 +361623,7 @@ func (r stepRunEventToStepRunFindFirst) Omit(params ...stepRunEventPrismaFields) raw = append(raw, string(param)) } - for _, output := range stepRunEventOutput { + for _, output := range stepRunResultArchiveOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -336572,7 +361634,7 @@ func (r stepRunEventToStepRunFindFirst) Omit(params ...stepRunEventPrismaFields) return r } -func (r stepRunEventToStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunEventToStepRunFindFirst { +func (r stepRunResultArchiveFindFirst) OrderBy(params ...StepRunResultArchiveOrderByParam) stepRunResultArchiveFindFirst { var fields []builder.Field for _, param := range params { @@ -336592,7 +361654,7 @@ func (r stepRunEventToStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) s return r } -func (r stepRunEventToStepRunFindFirst) Skip(count int) stepRunEventToStepRunFindFirst { +func (r stepRunResultArchiveFindFirst) Skip(count int) stepRunResultArchiveFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -336600,7 +361662,7 @@ func (r stepRunEventToStepRunFindFirst) Skip(count int) stepRunEventToStepRunFin return r } -func (r stepRunEventToStepRunFindFirst) Take(count int) stepRunEventToStepRunFindFirst { +func (r stepRunResultArchiveFindFirst) Take(count int) stepRunResultArchiveFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -336608,7 +361670,7 @@ func (r stepRunEventToStepRunFindFirst) Take(count int) stepRunEventToStepRunFin return r } -func (r stepRunEventToStepRunFindFirst) Cursor(cursor StepRunEventCursorParam) stepRunEventToStepRunFindFirst { +func (r stepRunResultArchiveFindFirst) Cursor(cursor StepRunResultArchiveCursorParam) stepRunResultArchiveFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -336616,11 +361678,11 @@ func (r stepRunEventToStepRunFindFirst) Cursor(cursor StepRunEventCursorParam) s return r } -func (r stepRunEventToStepRunFindFirst) Exec(ctx context.Context) ( - *StepRunEventModel, +func (r stepRunResultArchiveFindFirst) Exec(ctx context.Context) ( + *StepRunResultArchiveModel, error, ) { - var v *StepRunEventModel + var v *StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336632,11 +361694,11 @@ func (r stepRunEventToStepRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunEventToStepRunFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRunEvent, +func (r stepRunResultArchiveFindFirst) ExecInner(ctx context.Context) ( + *InnerStepRunResultArchive, error, ) { - var v *InnerStepRunEvent + var v *InnerStepRunResultArchive if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336648,23 +361710,60 @@ func (r stepRunEventToStepRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunEventToStepRunFindMany struct { +type stepRunResultArchiveFindMany struct { query builder.Query } -func (r stepRunEventToStepRunFindMany) getQuery() builder.Query { +func (r stepRunResultArchiveFindMany) getQuery() builder.Query { return r.query } -func (r stepRunEventToStepRunFindMany) ExtractQuery() builder.Query { +func (r stepRunResultArchiveFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventToStepRunFindMany) with() {} -func (r stepRunEventToStepRunFindMany) stepRunEventModel() {} -func (r stepRunEventToStepRunFindMany) stepRunEventRelation() {} +func (r stepRunResultArchiveFindMany) with() {} +func (r stepRunResultArchiveFindMany) stepRunResultArchiveModel() {} +func (r stepRunResultArchiveFindMany) stepRunResultArchiveRelation() {} -func (r stepRunEventToStepRunFindMany) With(params ...StepRunRelationWith) stepRunEventToStepRunFindMany { +func (r stepRunResultArchiveActions) FindMany( + params ...StepRunResultArchiveWhereParam, +) stepRunResultArchiveFindMany { + var v stepRunResultArchiveFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "StepRunResultArchive" + v.query.Outputs = stepRunResultArchiveOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r stepRunResultArchiveFindMany) With(params ...StepRunResultArchiveRelationWith) stepRunResultArchiveFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -336677,7 +361776,7 @@ func (r stepRunEventToStepRunFindMany) With(params ...StepRunRelationWith) stepR return r } -func (r stepRunEventToStepRunFindMany) Select(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindMany { +func (r stepRunResultArchiveFindMany) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindMany { var outputs []builder.Output for _, param := range params { @@ -336691,7 +361790,7 @@ func (r stepRunEventToStepRunFindMany) Select(params ...stepRunEventPrismaFields return r } -func (r stepRunEventToStepRunFindMany) Omit(params ...stepRunEventPrismaFields) stepRunEventToStepRunFindMany { +func (r stepRunResultArchiveFindMany) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindMany { var outputs []builder.Output var raw []string @@ -336699,7 +361798,7 @@ func (r stepRunEventToStepRunFindMany) Omit(params ...stepRunEventPrismaFields) raw = append(raw, string(param)) } - for _, output := range stepRunEventOutput { + for _, output := range stepRunResultArchiveOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -336710,7 +361809,7 @@ func (r stepRunEventToStepRunFindMany) Omit(params ...stepRunEventPrismaFields) return r } -func (r stepRunEventToStepRunFindMany) OrderBy(params ...StepRunOrderByParam) stepRunEventToStepRunFindMany { +func (r stepRunResultArchiveFindMany) OrderBy(params ...StepRunResultArchiveOrderByParam) stepRunResultArchiveFindMany { var fields []builder.Field for _, param := range params { @@ -336730,7 +361829,7 @@ func (r stepRunEventToStepRunFindMany) OrderBy(params ...StepRunOrderByParam) st return r } -func (r stepRunEventToStepRunFindMany) Skip(count int) stepRunEventToStepRunFindMany { +func (r stepRunResultArchiveFindMany) Skip(count int) stepRunResultArchiveFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -336738,7 +361837,7 @@ func (r stepRunEventToStepRunFindMany) Skip(count int) stepRunEventToStepRunFind return r } -func (r stepRunEventToStepRunFindMany) Take(count int) stepRunEventToStepRunFindMany { +func (r stepRunResultArchiveFindMany) Take(count int) stepRunResultArchiveFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -336746,7 +361845,7 @@ func (r stepRunEventToStepRunFindMany) Take(count int) stepRunEventToStepRunFind return r } -func (r stepRunEventToStepRunFindMany) Cursor(cursor StepRunEventCursorParam) stepRunEventToStepRunFindMany { +func (r stepRunResultArchiveFindMany) Cursor(cursor StepRunResultArchiveCursorParam) stepRunResultArchiveFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -336754,11 +361853,11 @@ func (r stepRunEventToStepRunFindMany) Cursor(cursor StepRunEventCursorParam) st return r } -func (r stepRunEventToStepRunFindMany) Exec(ctx context.Context) ( - []StepRunEventModel, +func (r stepRunResultArchiveFindMany) Exec(ctx context.Context) ( + []StepRunResultArchiveModel, error, ) { - var v []StepRunEventModel + var v []StepRunResultArchiveModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336766,11 +361865,11 @@ func (r stepRunEventToStepRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunEventToStepRunFindMany) ExecInner(ctx context.Context) ( - []InnerStepRunEvent, +func (r stepRunResultArchiveFindMany) ExecInner(ctx context.Context) ( + []InnerStepRunResultArchive, error, ) { - var v []InnerStepRunEvent + var v []InnerStepRunResultArchive if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336778,14 +361877,14 @@ func (r stepRunEventToStepRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunEventToStepRunFindMany) Update(params ...StepRunEventSetParam) stepRunEventToStepRunUpdateMany { +func (r stepRunResultArchiveFindMany) Update(params ...StepRunResultArchiveSetParam) stepRunResultArchiveUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRunEvent" + r.query.Model = "StepRunResultArchive" r.query.Outputs = countOutput - var v stepRunEventToStepRunUpdateMany + var v stepRunResultArchiveUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -336814,17 +361913,17 @@ func (r stepRunEventToStepRunFindMany) Update(params ...StepRunEventSetParam) st return v } -type stepRunEventToStepRunUpdateMany struct { +type stepRunResultArchiveUpdateMany struct { query builder.Query } -func (r stepRunEventToStepRunUpdateMany) ExtractQuery() builder.Query { +func (r stepRunResultArchiveUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventToStepRunUpdateMany) stepRunEventModel() {} +func (r stepRunResultArchiveUpdateMany) stepRunResultArchiveModel() {} -func (r stepRunEventToStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunResultArchiveUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -336832,36 +361931,36 @@ func (r stepRunEventToStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r stepRunEventToStepRunUpdateMany) Tx() StepRunEventManyTxResult { - v := newStepRunEventManyTxResult() +func (r stepRunResultArchiveUpdateMany) Tx() StepRunResultArchiveManyTxResult { + v := newStepRunResultArchiveManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunEventToStepRunFindMany) Delete() stepRunEventToStepRunDeleteMany { - var v stepRunEventToStepRunDeleteMany +func (r stepRunResultArchiveFindMany) Delete() stepRunResultArchiveDeleteMany { + var v stepRunResultArchiveDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRunEvent" + v.query.Model = "StepRunResultArchive" v.query.Outputs = countOutput return v } -type stepRunEventToStepRunDeleteMany struct { +type stepRunResultArchiveDeleteMany struct { query builder.Query } -func (r stepRunEventToStepRunDeleteMany) ExtractQuery() builder.Query { +func (r stepRunResultArchiveDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunEventToStepRunDeleteMany) stepRunEventModel() {} +func (p stepRunResultArchiveDeleteMany) stepRunResultArchiveModel() {} -func (r stepRunEventToStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r stepRunResultArchiveDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -336869,52 +361968,30 @@ func (r stepRunEventToStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult return &v, nil } -func (r stepRunEventToStepRunDeleteMany) Tx() StepRunEventManyTxResult { - v := newStepRunEventManyTxResult() +func (r stepRunResultArchiveDeleteMany) Tx() StepRunResultArchiveManyTxResult { + v := newStepRunResultArchiveManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunEventFindUnique struct { +type dispatcherToWorkersFindUnique struct { query builder.Query } -func (r stepRunEventFindUnique) getQuery() builder.Query { +func (r dispatcherToWorkersFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunEventFindUnique) ExtractQuery() builder.Query { +func (r dispatcherToWorkersFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventFindUnique) with() {} -func (r stepRunEventFindUnique) stepRunEventModel() {} -func (r stepRunEventFindUnique) stepRunEventRelation() {} - -func (r stepRunEventActions) FindUnique( - params StepRunEventEqualsUniqueWhereParam, -) stepRunEventFindUnique { - var v stepRunEventFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "StepRunEvent" - v.query.Outputs = stepRunEventOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r dispatcherToWorkersFindUnique) with() {} +func (r dispatcherToWorkersFindUnique) dispatcherModel() {} +func (r dispatcherToWorkersFindUnique) dispatcherRelation() {} -func (r stepRunEventFindUnique) With(params ...StepRunEventRelationWith) stepRunEventFindUnique { +func (r dispatcherToWorkersFindUnique) With(params ...WorkerRelationWith) dispatcherToWorkersFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -336927,7 +362004,7 @@ func (r stepRunEventFindUnique) With(params ...StepRunEventRelationWith) stepRun return r } -func (r stepRunEventFindUnique) Select(params ...stepRunEventPrismaFields) stepRunEventFindUnique { +func (r dispatcherToWorkersFindUnique) Select(params ...dispatcherPrismaFields) dispatcherToWorkersFindUnique { var outputs []builder.Output for _, param := range params { @@ -336941,7 +362018,7 @@ func (r stepRunEventFindUnique) Select(params ...stepRunEventPrismaFields) stepR return r } -func (r stepRunEventFindUnique) Omit(params ...stepRunEventPrismaFields) stepRunEventFindUnique { +func (r dispatcherToWorkersFindUnique) Omit(params ...dispatcherPrismaFields) dispatcherToWorkersFindUnique { var outputs []builder.Output var raw []string @@ -336949,7 +362026,7 @@ func (r stepRunEventFindUnique) Omit(params ...stepRunEventPrismaFields) stepRun raw = append(raw, string(param)) } - for _, output := range stepRunEventOutput { + for _, output := range dispatcherOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -336960,11 +362037,11 @@ func (r stepRunEventFindUnique) Omit(params ...stepRunEventPrismaFields) stepRun return r } -func (r stepRunEventFindUnique) Exec(ctx context.Context) ( - *StepRunEventModel, +func (r dispatcherToWorkersFindUnique) Exec(ctx context.Context) ( + *DispatcherModel, error, ) { - var v *StepRunEventModel + var v *DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336976,11 +362053,11 @@ func (r stepRunEventFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunEventFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRunEvent, +func (r dispatcherToWorkersFindUnique) ExecInner(ctx context.Context) ( + *InnerDispatcher, error, ) { - var v *InnerStepRunEvent + var v *InnerDispatcher if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -336992,12 +362069,12 @@ func (r stepRunEventFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunEventFindUnique) Update(params ...StepRunEventSetParam) stepRunEventUpdateUnique { +func (r dispatcherToWorkersFindUnique) Update(params ...DispatcherSetParam) dispatcherToWorkersUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRunEvent" + r.query.Model = "Dispatcher" - var v stepRunEventUpdateUnique + var v dispatcherToWorkersUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -337026,120 +362103,83 @@ func (r stepRunEventFindUnique) Update(params ...StepRunEventSetParam) stepRunEv return v } -type stepRunEventUpdateUnique struct { +type dispatcherToWorkersUpdateUnique struct { query builder.Query } -func (r stepRunEventUpdateUnique) ExtractQuery() builder.Query { +func (r dispatcherToWorkersUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventUpdateUnique) stepRunEventModel() {} +func (r dispatcherToWorkersUpdateUnique) dispatcherModel() {} -func (r stepRunEventUpdateUnique) Exec(ctx context.Context) (*StepRunEventModel, error) { - var v StepRunEventModel +func (r dispatcherToWorkersUpdateUnique) Exec(ctx context.Context) (*DispatcherModel, error) { + var v DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunEventUpdateUnique) Tx() StepRunEventUniqueTxResult { - v := newStepRunEventUniqueTxResult() +func (r dispatcherToWorkersUpdateUnique) Tx() DispatcherUniqueTxResult { + v := newDispatcherUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunEventFindUnique) Delete() stepRunEventDeleteUnique { - var v stepRunEventDeleteUnique +func (r dispatcherToWorkersFindUnique) Delete() dispatcherToWorkersDeleteUnique { + var v dispatcherToWorkersDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRunEvent" + v.query.Model = "Dispatcher" return v } -type stepRunEventDeleteUnique struct { +type dispatcherToWorkersDeleteUnique struct { query builder.Query } -func (r stepRunEventDeleteUnique) ExtractQuery() builder.Query { +func (r dispatcherToWorkersDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunEventDeleteUnique) stepRunEventModel() {} +func (p dispatcherToWorkersDeleteUnique) dispatcherModel() {} -func (r stepRunEventDeleteUnique) Exec(ctx context.Context) (*StepRunEventModel, error) { - var v StepRunEventModel +func (r dispatcherToWorkersDeleteUnique) Exec(ctx context.Context) (*DispatcherModel, error) { + var v DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunEventDeleteUnique) Tx() StepRunEventUniqueTxResult { - v := newStepRunEventUniqueTxResult() +func (r dispatcherToWorkersDeleteUnique) Tx() DispatcherUniqueTxResult { + v := newDispatcherUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunEventFindFirst struct { +type dispatcherToWorkersFindFirst struct { query builder.Query } -func (r stepRunEventFindFirst) getQuery() builder.Query { +func (r dispatcherToWorkersFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunEventFindFirst) ExtractQuery() builder.Query { +func (r dispatcherToWorkersFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventFindFirst) with() {} -func (r stepRunEventFindFirst) stepRunEventModel() {} -func (r stepRunEventFindFirst) stepRunEventRelation() {} - -func (r stepRunEventActions) FindFirst( - params ...StepRunEventWhereParam, -) stepRunEventFindFirst { - var v stepRunEventFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "StepRunEvent" - v.query.Outputs = stepRunEventOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r dispatcherToWorkersFindFirst) with() {} +func (r dispatcherToWorkersFindFirst) dispatcherModel() {} +func (r dispatcherToWorkersFindFirst) dispatcherRelation() {} -func (r stepRunEventFindFirst) With(params ...StepRunEventRelationWith) stepRunEventFindFirst { +func (r dispatcherToWorkersFindFirst) With(params ...WorkerRelationWith) dispatcherToWorkersFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -337152,7 +362192,7 @@ func (r stepRunEventFindFirst) With(params ...StepRunEventRelationWith) stepRunE return r } -func (r stepRunEventFindFirst) Select(params ...stepRunEventPrismaFields) stepRunEventFindFirst { +func (r dispatcherToWorkersFindFirst) Select(params ...dispatcherPrismaFields) dispatcherToWorkersFindFirst { var outputs []builder.Output for _, param := range params { @@ -337166,7 +362206,7 @@ func (r stepRunEventFindFirst) Select(params ...stepRunEventPrismaFields) stepRu return r } -func (r stepRunEventFindFirst) Omit(params ...stepRunEventPrismaFields) stepRunEventFindFirst { +func (r dispatcherToWorkersFindFirst) Omit(params ...dispatcherPrismaFields) dispatcherToWorkersFindFirst { var outputs []builder.Output var raw []string @@ -337174,7 +362214,7 @@ func (r stepRunEventFindFirst) Omit(params ...stepRunEventPrismaFields) stepRunE raw = append(raw, string(param)) } - for _, output := range stepRunEventOutput { + for _, output := range dispatcherOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -337185,7 +362225,7 @@ func (r stepRunEventFindFirst) Omit(params ...stepRunEventPrismaFields) stepRunE return r } -func (r stepRunEventFindFirst) OrderBy(params ...StepRunEventOrderByParam) stepRunEventFindFirst { +func (r dispatcherToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) dispatcherToWorkersFindFirst { var fields []builder.Field for _, param := range params { @@ -337205,7 +362245,7 @@ func (r stepRunEventFindFirst) OrderBy(params ...StepRunEventOrderByParam) stepR return r } -func (r stepRunEventFindFirst) Skip(count int) stepRunEventFindFirst { +func (r dispatcherToWorkersFindFirst) Skip(count int) dispatcherToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -337213,7 +362253,7 @@ func (r stepRunEventFindFirst) Skip(count int) stepRunEventFindFirst { return r } -func (r stepRunEventFindFirst) Take(count int) stepRunEventFindFirst { +func (r dispatcherToWorkersFindFirst) Take(count int) dispatcherToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -337221,7 +362261,7 @@ func (r stepRunEventFindFirst) Take(count int) stepRunEventFindFirst { return r } -func (r stepRunEventFindFirst) Cursor(cursor StepRunEventCursorParam) stepRunEventFindFirst { +func (r dispatcherToWorkersFindFirst) Cursor(cursor DispatcherCursorParam) dispatcherToWorkersFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -337229,11 +362269,11 @@ func (r stepRunEventFindFirst) Cursor(cursor StepRunEventCursorParam) stepRunEve return r } -func (r stepRunEventFindFirst) Exec(ctx context.Context) ( - *StepRunEventModel, +func (r dispatcherToWorkersFindFirst) Exec(ctx context.Context) ( + *DispatcherModel, error, ) { - var v *StepRunEventModel + var v *DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337245,11 +362285,11 @@ func (r stepRunEventFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunEventFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRunEvent, +func (r dispatcherToWorkersFindFirst) ExecInner(ctx context.Context) ( + *InnerDispatcher, error, ) { - var v *InnerStepRunEvent + var v *InnerDispatcher if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337261,60 +362301,23 @@ func (r stepRunEventFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunEventFindMany struct { +type dispatcherToWorkersFindMany struct { query builder.Query } -func (r stepRunEventFindMany) getQuery() builder.Query { +func (r dispatcherToWorkersFindMany) getQuery() builder.Query { return r.query } -func (r stepRunEventFindMany) ExtractQuery() builder.Query { +func (r dispatcherToWorkersFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventFindMany) with() {} -func (r stepRunEventFindMany) stepRunEventModel() {} -func (r stepRunEventFindMany) stepRunEventRelation() {} - -func (r stepRunEventActions) FindMany( - params ...StepRunEventWhereParam, -) stepRunEventFindMany { - var v stepRunEventFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "StepRunEvent" - v.query.Outputs = stepRunEventOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r dispatcherToWorkersFindMany) with() {} +func (r dispatcherToWorkersFindMany) dispatcherModel() {} +func (r dispatcherToWorkersFindMany) dispatcherRelation() {} -func (r stepRunEventFindMany) With(params ...StepRunEventRelationWith) stepRunEventFindMany { +func (r dispatcherToWorkersFindMany) With(params ...WorkerRelationWith) dispatcherToWorkersFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -337327,7 +362330,7 @@ func (r stepRunEventFindMany) With(params ...StepRunEventRelationWith) stepRunEv return r } -func (r stepRunEventFindMany) Select(params ...stepRunEventPrismaFields) stepRunEventFindMany { +func (r dispatcherToWorkersFindMany) Select(params ...dispatcherPrismaFields) dispatcherToWorkersFindMany { var outputs []builder.Output for _, param := range params { @@ -337341,7 +362344,7 @@ func (r stepRunEventFindMany) Select(params ...stepRunEventPrismaFields) stepRun return r } -func (r stepRunEventFindMany) Omit(params ...stepRunEventPrismaFields) stepRunEventFindMany { +func (r dispatcherToWorkersFindMany) Omit(params ...dispatcherPrismaFields) dispatcherToWorkersFindMany { var outputs []builder.Output var raw []string @@ -337349,7 +362352,7 @@ func (r stepRunEventFindMany) Omit(params ...stepRunEventPrismaFields) stepRunEv raw = append(raw, string(param)) } - for _, output := range stepRunEventOutput { + for _, output := range dispatcherOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -337360,7 +362363,7 @@ func (r stepRunEventFindMany) Omit(params ...stepRunEventPrismaFields) stepRunEv return r } -func (r stepRunEventFindMany) OrderBy(params ...StepRunEventOrderByParam) stepRunEventFindMany { +func (r dispatcherToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) dispatcherToWorkersFindMany { var fields []builder.Field for _, param := range params { @@ -337380,7 +362383,7 @@ func (r stepRunEventFindMany) OrderBy(params ...StepRunEventOrderByParam) stepRu return r } -func (r stepRunEventFindMany) Skip(count int) stepRunEventFindMany { +func (r dispatcherToWorkersFindMany) Skip(count int) dispatcherToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -337388,7 +362391,7 @@ func (r stepRunEventFindMany) Skip(count int) stepRunEventFindMany { return r } -func (r stepRunEventFindMany) Take(count int) stepRunEventFindMany { +func (r dispatcherToWorkersFindMany) Take(count int) dispatcherToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -337396,7 +362399,7 @@ func (r stepRunEventFindMany) Take(count int) stepRunEventFindMany { return r } -func (r stepRunEventFindMany) Cursor(cursor StepRunEventCursorParam) stepRunEventFindMany { +func (r dispatcherToWorkersFindMany) Cursor(cursor DispatcherCursorParam) dispatcherToWorkersFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -337404,11 +362407,11 @@ func (r stepRunEventFindMany) Cursor(cursor StepRunEventCursorParam) stepRunEven return r } -func (r stepRunEventFindMany) Exec(ctx context.Context) ( - []StepRunEventModel, +func (r dispatcherToWorkersFindMany) Exec(ctx context.Context) ( + []DispatcherModel, error, ) { - var v []StepRunEventModel + var v []DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337416,11 +362419,11 @@ func (r stepRunEventFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunEventFindMany) ExecInner(ctx context.Context) ( - []InnerStepRunEvent, +func (r dispatcherToWorkersFindMany) ExecInner(ctx context.Context) ( + []InnerDispatcher, error, ) { - var v []InnerStepRunEvent + var v []InnerDispatcher if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337428,14 +362431,14 @@ func (r stepRunEventFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunEventFindMany) Update(params ...StepRunEventSetParam) stepRunEventUpdateMany { +func (r dispatcherToWorkersFindMany) Update(params ...DispatcherSetParam) dispatcherToWorkersUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRunEvent" + r.query.Model = "Dispatcher" r.query.Outputs = countOutput - var v stepRunEventUpdateMany + var v dispatcherToWorkersUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -337464,17 +362467,17 @@ func (r stepRunEventFindMany) Update(params ...StepRunEventSetParam) stepRunEven return v } -type stepRunEventUpdateMany struct { +type dispatcherToWorkersUpdateMany struct { query builder.Query } -func (r stepRunEventUpdateMany) ExtractQuery() builder.Query { +func (r dispatcherToWorkersUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunEventUpdateMany) stepRunEventModel() {} +func (r dispatcherToWorkersUpdateMany) dispatcherModel() {} -func (r stepRunEventUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r dispatcherToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -337482,36 +362485,36 @@ func (r stepRunEventUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepRunEventUpdateMany) Tx() StepRunEventManyTxResult { - v := newStepRunEventManyTxResult() +func (r dispatcherToWorkersUpdateMany) Tx() DispatcherManyTxResult { + v := newDispatcherManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunEventFindMany) Delete() stepRunEventDeleteMany { - var v stepRunEventDeleteMany +func (r dispatcherToWorkersFindMany) Delete() dispatcherToWorkersDeleteMany { + var v dispatcherToWorkersDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRunEvent" + v.query.Model = "Dispatcher" v.query.Outputs = countOutput return v } -type stepRunEventDeleteMany struct { +type dispatcherToWorkersDeleteMany struct { query builder.Query } -func (r stepRunEventDeleteMany) ExtractQuery() builder.Query { +func (r dispatcherToWorkersDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunEventDeleteMany) stepRunEventModel() {} +func (p dispatcherToWorkersDeleteMany) dispatcherModel() {} -func (r stepRunEventDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r dispatcherToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -337519,30 +362522,52 @@ func (r stepRunEventDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r stepRunEventDeleteMany) Tx() StepRunEventManyTxResult { - v := newStepRunEventManyTxResult() +func (r dispatcherToWorkersDeleteMany) Tx() DispatcherManyTxResult { + v := newDispatcherManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunResultArchiveToStepRunFindUnique struct { +type dispatcherFindUnique struct { query builder.Query } -func (r stepRunResultArchiveToStepRunFindUnique) getQuery() builder.Query { +func (r dispatcherFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunResultArchiveToStepRunFindUnique) ExtractQuery() builder.Query { +func (r dispatcherFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveToStepRunFindUnique) with() {} -func (r stepRunResultArchiveToStepRunFindUnique) stepRunResultArchiveModel() {} -func (r stepRunResultArchiveToStepRunFindUnique) stepRunResultArchiveRelation() {} +func (r dispatcherFindUnique) with() {} +func (r dispatcherFindUnique) dispatcherModel() {} +func (r dispatcherFindUnique) dispatcherRelation() {} -func (r stepRunResultArchiveToStepRunFindUnique) With(params ...StepRunRelationWith) stepRunResultArchiveToStepRunFindUnique { +func (r dispatcherActions) FindUnique( + params DispatcherEqualsUniqueWhereParam, +) dispatcherFindUnique { + var v dispatcherFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "Dispatcher" + v.query.Outputs = dispatcherOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r dispatcherFindUnique) With(params ...DispatcherRelationWith) dispatcherFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -337555,7 +362580,7 @@ func (r stepRunResultArchiveToStepRunFindUnique) With(params ...StepRunRelationW return r } -func (r stepRunResultArchiveToStepRunFindUnique) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindUnique { +func (r dispatcherFindUnique) Select(params ...dispatcherPrismaFields) dispatcherFindUnique { var outputs []builder.Output for _, param := range params { @@ -337569,7 +362594,7 @@ func (r stepRunResultArchiveToStepRunFindUnique) Select(params ...stepRunResultA return r } -func (r stepRunResultArchiveToStepRunFindUnique) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindUnique { +func (r dispatcherFindUnique) Omit(params ...dispatcherPrismaFields) dispatcherFindUnique { var outputs []builder.Output var raw []string @@ -337577,7 +362602,7 @@ func (r stepRunResultArchiveToStepRunFindUnique) Omit(params ...stepRunResultArc raw = append(raw, string(param)) } - for _, output := range stepRunResultArchiveOutput { + for _, output := range dispatcherOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -337588,11 +362613,11 @@ func (r stepRunResultArchiveToStepRunFindUnique) Omit(params ...stepRunResultArc return r } -func (r stepRunResultArchiveToStepRunFindUnique) Exec(ctx context.Context) ( - *StepRunResultArchiveModel, +func (r dispatcherFindUnique) Exec(ctx context.Context) ( + *DispatcherModel, error, ) { - var v *StepRunResultArchiveModel + var v *DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337604,11 +362629,11 @@ func (r stepRunResultArchiveToStepRunFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveToStepRunFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRunResultArchive, +func (r dispatcherFindUnique) ExecInner(ctx context.Context) ( + *InnerDispatcher, error, ) { - var v *InnerStepRunResultArchive + var v *InnerDispatcher if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337620,12 +362645,12 @@ func (r stepRunResultArchiveToStepRunFindUnique) ExecInner(ctx context.Context) return v, nil } -func (r stepRunResultArchiveToStepRunFindUnique) Update(params ...StepRunResultArchiveSetParam) stepRunResultArchiveToStepRunUpdateUnique { +func (r dispatcherFindUnique) Update(params ...DispatcherSetParam) dispatcherUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRunResultArchive" + r.query.Model = "Dispatcher" - var v stepRunResultArchiveToStepRunUpdateUnique + var v dispatcherUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -337654,83 +362679,120 @@ func (r stepRunResultArchiveToStepRunFindUnique) Update(params ...StepRunResultA return v } -type stepRunResultArchiveToStepRunUpdateUnique struct { +type dispatcherUpdateUnique struct { query builder.Query } -func (r stepRunResultArchiveToStepRunUpdateUnique) ExtractQuery() builder.Query { +func (r dispatcherUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveToStepRunUpdateUnique) stepRunResultArchiveModel() {} +func (r dispatcherUpdateUnique) dispatcherModel() {} -func (r stepRunResultArchiveToStepRunUpdateUnique) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { - var v StepRunResultArchiveModel +func (r dispatcherUpdateUnique) Exec(ctx context.Context) (*DispatcherModel, error) { + var v DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunResultArchiveToStepRunUpdateUnique) Tx() StepRunResultArchiveUniqueTxResult { - v := newStepRunResultArchiveUniqueTxResult() +func (r dispatcherUpdateUnique) Tx() DispatcherUniqueTxResult { + v := newDispatcherUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunResultArchiveToStepRunFindUnique) Delete() stepRunResultArchiveToStepRunDeleteUnique { - var v stepRunResultArchiveToStepRunDeleteUnique +func (r dispatcherFindUnique) Delete() dispatcherDeleteUnique { + var v dispatcherDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRunResultArchive" + v.query.Model = "Dispatcher" return v } -type stepRunResultArchiveToStepRunDeleteUnique struct { +type dispatcherDeleteUnique struct { query builder.Query } -func (r stepRunResultArchiveToStepRunDeleteUnique) ExtractQuery() builder.Query { +func (r dispatcherDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunResultArchiveToStepRunDeleteUnique) stepRunResultArchiveModel() {} +func (p dispatcherDeleteUnique) dispatcherModel() {} -func (r stepRunResultArchiveToStepRunDeleteUnique) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { - var v StepRunResultArchiveModel +func (r dispatcherDeleteUnique) Exec(ctx context.Context) (*DispatcherModel, error) { + var v DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunResultArchiveToStepRunDeleteUnique) Tx() StepRunResultArchiveUniqueTxResult { - v := newStepRunResultArchiveUniqueTxResult() +func (r dispatcherDeleteUnique) Tx() DispatcherUniqueTxResult { + v := newDispatcherUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunResultArchiveToStepRunFindFirst struct { +type dispatcherFindFirst struct { query builder.Query } -func (r stepRunResultArchiveToStepRunFindFirst) getQuery() builder.Query { +func (r dispatcherFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunResultArchiveToStepRunFindFirst) ExtractQuery() builder.Query { +func (r dispatcherFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveToStepRunFindFirst) with() {} -func (r stepRunResultArchiveToStepRunFindFirst) stepRunResultArchiveModel() {} -func (r stepRunResultArchiveToStepRunFindFirst) stepRunResultArchiveRelation() {} +func (r dispatcherFindFirst) with() {} +func (r dispatcherFindFirst) dispatcherModel() {} +func (r dispatcherFindFirst) dispatcherRelation() {} -func (r stepRunResultArchiveToStepRunFindFirst) With(params ...StepRunRelationWith) stepRunResultArchiveToStepRunFindFirst { +func (r dispatcherActions) FindFirst( + params ...DispatcherWhereParam, +) dispatcherFindFirst { + var v dispatcherFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "Dispatcher" + v.query.Outputs = dispatcherOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r dispatcherFindFirst) With(params ...DispatcherRelationWith) dispatcherFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -337743,7 +362805,7 @@ func (r stepRunResultArchiveToStepRunFindFirst) With(params ...StepRunRelationWi return r } -func (r stepRunResultArchiveToStepRunFindFirst) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindFirst { +func (r dispatcherFindFirst) Select(params ...dispatcherPrismaFields) dispatcherFindFirst { var outputs []builder.Output for _, param := range params { @@ -337757,7 +362819,7 @@ func (r stepRunResultArchiveToStepRunFindFirst) Select(params ...stepRunResultAr return r } -func (r stepRunResultArchiveToStepRunFindFirst) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindFirst { +func (r dispatcherFindFirst) Omit(params ...dispatcherPrismaFields) dispatcherFindFirst { var outputs []builder.Output var raw []string @@ -337765,7 +362827,7 @@ func (r stepRunResultArchiveToStepRunFindFirst) Omit(params ...stepRunResultArch raw = append(raw, string(param)) } - for _, output := range stepRunResultArchiveOutput { + for _, output := range dispatcherOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -337776,7 +362838,7 @@ func (r stepRunResultArchiveToStepRunFindFirst) Omit(params ...stepRunResultArch return r } -func (r stepRunResultArchiveToStepRunFindFirst) OrderBy(params ...StepRunOrderByParam) stepRunResultArchiveToStepRunFindFirst { +func (r dispatcherFindFirst) OrderBy(params ...DispatcherOrderByParam) dispatcherFindFirst { var fields []builder.Field for _, param := range params { @@ -337796,7 +362858,7 @@ func (r stepRunResultArchiveToStepRunFindFirst) OrderBy(params ...StepRunOrderBy return r } -func (r stepRunResultArchiveToStepRunFindFirst) Skip(count int) stepRunResultArchiveToStepRunFindFirst { +func (r dispatcherFindFirst) Skip(count int) dispatcherFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -337804,7 +362866,7 @@ func (r stepRunResultArchiveToStepRunFindFirst) Skip(count int) stepRunResultArc return r } -func (r stepRunResultArchiveToStepRunFindFirst) Take(count int) stepRunResultArchiveToStepRunFindFirst { +func (r dispatcherFindFirst) Take(count int) dispatcherFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -337812,7 +362874,7 @@ func (r stepRunResultArchiveToStepRunFindFirst) Take(count int) stepRunResultArc return r } -func (r stepRunResultArchiveToStepRunFindFirst) Cursor(cursor StepRunResultArchiveCursorParam) stepRunResultArchiveToStepRunFindFirst { +func (r dispatcherFindFirst) Cursor(cursor DispatcherCursorParam) dispatcherFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -337820,11 +362882,11 @@ func (r stepRunResultArchiveToStepRunFindFirst) Cursor(cursor StepRunResultArchi return r } -func (r stepRunResultArchiveToStepRunFindFirst) Exec(ctx context.Context) ( - *StepRunResultArchiveModel, +func (r dispatcherFindFirst) Exec(ctx context.Context) ( + *DispatcherModel, error, ) { - var v *StepRunResultArchiveModel + var v *DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337836,11 +362898,11 @@ func (r stepRunResultArchiveToStepRunFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveToStepRunFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRunResultArchive, +func (r dispatcherFindFirst) ExecInner(ctx context.Context) ( + *InnerDispatcher, error, ) { - var v *InnerStepRunResultArchive + var v *InnerDispatcher if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337852,23 +362914,60 @@ func (r stepRunResultArchiveToStepRunFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunResultArchiveToStepRunFindMany struct { +type dispatcherFindMany struct { query builder.Query } -func (r stepRunResultArchiveToStepRunFindMany) getQuery() builder.Query { +func (r dispatcherFindMany) getQuery() builder.Query { return r.query } -func (r stepRunResultArchiveToStepRunFindMany) ExtractQuery() builder.Query { +func (r dispatcherFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveToStepRunFindMany) with() {} -func (r stepRunResultArchiveToStepRunFindMany) stepRunResultArchiveModel() {} -func (r stepRunResultArchiveToStepRunFindMany) stepRunResultArchiveRelation() {} +func (r dispatcherFindMany) with() {} +func (r dispatcherFindMany) dispatcherModel() {} +func (r dispatcherFindMany) dispatcherRelation() {} -func (r stepRunResultArchiveToStepRunFindMany) With(params ...StepRunRelationWith) stepRunResultArchiveToStepRunFindMany { +func (r dispatcherActions) FindMany( + params ...DispatcherWhereParam, +) dispatcherFindMany { + var v dispatcherFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "Dispatcher" + v.query.Outputs = dispatcherOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r dispatcherFindMany) With(params ...DispatcherRelationWith) dispatcherFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -337881,7 +362980,7 @@ func (r stepRunResultArchiveToStepRunFindMany) With(params ...StepRunRelationWit return r } -func (r stepRunResultArchiveToStepRunFindMany) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindMany { +func (r dispatcherFindMany) Select(params ...dispatcherPrismaFields) dispatcherFindMany { var outputs []builder.Output for _, param := range params { @@ -337895,7 +362994,7 @@ func (r stepRunResultArchiveToStepRunFindMany) Select(params ...stepRunResultArc return r } -func (r stepRunResultArchiveToStepRunFindMany) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveToStepRunFindMany { +func (r dispatcherFindMany) Omit(params ...dispatcherPrismaFields) dispatcherFindMany { var outputs []builder.Output var raw []string @@ -337903,7 +363002,7 @@ func (r stepRunResultArchiveToStepRunFindMany) Omit(params ...stepRunResultArchi raw = append(raw, string(param)) } - for _, output := range stepRunResultArchiveOutput { + for _, output := range dispatcherOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -337914,7 +363013,7 @@ func (r stepRunResultArchiveToStepRunFindMany) Omit(params ...stepRunResultArchi return r } -func (r stepRunResultArchiveToStepRunFindMany) OrderBy(params ...StepRunOrderByParam) stepRunResultArchiveToStepRunFindMany { +func (r dispatcherFindMany) OrderBy(params ...DispatcherOrderByParam) dispatcherFindMany { var fields []builder.Field for _, param := range params { @@ -337934,7 +363033,7 @@ func (r stepRunResultArchiveToStepRunFindMany) OrderBy(params ...StepRunOrderByP return r } -func (r stepRunResultArchiveToStepRunFindMany) Skip(count int) stepRunResultArchiveToStepRunFindMany { +func (r dispatcherFindMany) Skip(count int) dispatcherFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -337942,7 +363041,7 @@ func (r stepRunResultArchiveToStepRunFindMany) Skip(count int) stepRunResultArch return r } -func (r stepRunResultArchiveToStepRunFindMany) Take(count int) stepRunResultArchiveToStepRunFindMany { +func (r dispatcherFindMany) Take(count int) dispatcherFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -337950,7 +363049,7 @@ func (r stepRunResultArchiveToStepRunFindMany) Take(count int) stepRunResultArch return r } -func (r stepRunResultArchiveToStepRunFindMany) Cursor(cursor StepRunResultArchiveCursorParam) stepRunResultArchiveToStepRunFindMany { +func (r dispatcherFindMany) Cursor(cursor DispatcherCursorParam) dispatcherFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -337958,11 +363057,11 @@ func (r stepRunResultArchiveToStepRunFindMany) Cursor(cursor StepRunResultArchiv return r } -func (r stepRunResultArchiveToStepRunFindMany) Exec(ctx context.Context) ( - []StepRunResultArchiveModel, +func (r dispatcherFindMany) Exec(ctx context.Context) ( + []DispatcherModel, error, ) { - var v []StepRunResultArchiveModel + var v []DispatcherModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337970,11 +363069,11 @@ func (r stepRunResultArchiveToStepRunFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveToStepRunFindMany) ExecInner(ctx context.Context) ( - []InnerStepRunResultArchive, +func (r dispatcherFindMany) ExecInner(ctx context.Context) ( + []InnerDispatcher, error, ) { - var v []InnerStepRunResultArchive + var v []InnerDispatcher if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -337982,14 +363081,14 @@ func (r stepRunResultArchiveToStepRunFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveToStepRunFindMany) Update(params ...StepRunResultArchiveSetParam) stepRunResultArchiveToStepRunUpdateMany { +func (r dispatcherFindMany) Update(params ...DispatcherSetParam) dispatcherUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRunResultArchive" + r.query.Model = "Dispatcher" r.query.Outputs = countOutput - var v stepRunResultArchiveToStepRunUpdateMany + var v dispatcherUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -338018,17 +363117,17 @@ func (r stepRunResultArchiveToStepRunFindMany) Update(params ...StepRunResultArc return v } -type stepRunResultArchiveToStepRunUpdateMany struct { +type dispatcherUpdateMany struct { query builder.Query } -func (r stepRunResultArchiveToStepRunUpdateMany) ExtractQuery() builder.Query { +func (r dispatcherUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveToStepRunUpdateMany) stepRunResultArchiveModel() {} +func (r dispatcherUpdateMany) dispatcherModel() {} -func (r stepRunResultArchiveToStepRunUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r dispatcherUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -338036,36 +363135,36 @@ func (r stepRunResultArchiveToStepRunUpdateMany) Exec(ctx context.Context) (*Bat return &v, nil } -func (r stepRunResultArchiveToStepRunUpdateMany) Tx() StepRunResultArchiveManyTxResult { - v := newStepRunResultArchiveManyTxResult() +func (r dispatcherUpdateMany) Tx() DispatcherManyTxResult { + v := newDispatcherManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunResultArchiveToStepRunFindMany) Delete() stepRunResultArchiveToStepRunDeleteMany { - var v stepRunResultArchiveToStepRunDeleteMany +func (r dispatcherFindMany) Delete() dispatcherDeleteMany { + var v dispatcherDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRunResultArchive" + v.query.Model = "Dispatcher" v.query.Outputs = countOutput return v } -type stepRunResultArchiveToStepRunDeleteMany struct { +type dispatcherDeleteMany struct { query builder.Query } -func (r stepRunResultArchiveToStepRunDeleteMany) ExtractQuery() builder.Query { +func (r dispatcherDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunResultArchiveToStepRunDeleteMany) stepRunResultArchiveModel() {} +func (p dispatcherDeleteMany) dispatcherModel() {} -func (r stepRunResultArchiveToStepRunDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r dispatcherDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -338073,52 +363172,30 @@ func (r stepRunResultArchiveToStepRunDeleteMany) Exec(ctx context.Context) (*Bat return &v, nil } -func (r stepRunResultArchiveToStepRunDeleteMany) Tx() StepRunResultArchiveManyTxResult { - v := newStepRunResultArchiveManyTxResult() +func (r dispatcherDeleteMany) Tx() DispatcherManyTxResult { + v := newDispatcherManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunResultArchiveFindUnique struct { +type tickerToJobRunsFindUnique struct { query builder.Query } -func (r stepRunResultArchiveFindUnique) getQuery() builder.Query { +func (r tickerToJobRunsFindUnique) getQuery() builder.Query { return r.query } -func (r stepRunResultArchiveFindUnique) ExtractQuery() builder.Query { +func (r tickerToJobRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveFindUnique) with() {} -func (r stepRunResultArchiveFindUnique) stepRunResultArchiveModel() {} -func (r stepRunResultArchiveFindUnique) stepRunResultArchiveRelation() {} - -func (r stepRunResultArchiveActions) FindUnique( - params StepRunResultArchiveEqualsUniqueWhereParam, -) stepRunResultArchiveFindUnique { - var v stepRunResultArchiveFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "StepRunResultArchive" - v.query.Outputs = stepRunResultArchiveOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tickerToJobRunsFindUnique) with() {} +func (r tickerToJobRunsFindUnique) tickerModel() {} +func (r tickerToJobRunsFindUnique) tickerRelation() {} -func (r stepRunResultArchiveFindUnique) With(params ...StepRunResultArchiveRelationWith) stepRunResultArchiveFindUnique { +func (r tickerToJobRunsFindUnique) With(params ...JobRunRelationWith) tickerToJobRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -338131,7 +363208,7 @@ func (r stepRunResultArchiveFindUnique) With(params ...StepRunResultArchiveRelat return r } -func (r stepRunResultArchiveFindUnique) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindUnique { +func (r tickerToJobRunsFindUnique) Select(params ...tickerPrismaFields) tickerToJobRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -338145,7 +363222,7 @@ func (r stepRunResultArchiveFindUnique) Select(params ...stepRunResultArchivePri return r } -func (r stepRunResultArchiveFindUnique) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindUnique { +func (r tickerToJobRunsFindUnique) Omit(params ...tickerPrismaFields) tickerToJobRunsFindUnique { var outputs []builder.Output var raw []string @@ -338153,7 +363230,7 @@ func (r stepRunResultArchiveFindUnique) Omit(params ...stepRunResultArchivePrism raw = append(raw, string(param)) } - for _, output := range stepRunResultArchiveOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -338164,11 +363241,11 @@ func (r stepRunResultArchiveFindUnique) Omit(params ...stepRunResultArchivePrism return r } -func (r stepRunResultArchiveFindUnique) Exec(ctx context.Context) ( - *StepRunResultArchiveModel, +func (r tickerToJobRunsFindUnique) Exec(ctx context.Context) ( + *TickerModel, error, ) { - var v *StepRunResultArchiveModel + var v *TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -338180,11 +363257,11 @@ func (r stepRunResultArchiveFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveFindUnique) ExecInner(ctx context.Context) ( - *InnerStepRunResultArchive, +func (r tickerToJobRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerTicker, error, ) { - var v *InnerStepRunResultArchive + var v *InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -338196,12 +363273,12 @@ func (r stepRunResultArchiveFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveFindUnique) Update(params ...StepRunResultArchiveSetParam) stepRunResultArchiveUpdateUnique { +func (r tickerToJobRunsFindUnique) Update(params ...TickerSetParam) tickerToJobRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "StepRunResultArchive" + r.query.Model = "Ticker" - var v stepRunResultArchiveUpdateUnique + var v tickerToJobRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -338230,120 +363307,83 @@ func (r stepRunResultArchiveFindUnique) Update(params ...StepRunResultArchiveSet return v } -type stepRunResultArchiveUpdateUnique struct { +type tickerToJobRunsUpdateUnique struct { query builder.Query } -func (r stepRunResultArchiveUpdateUnique) ExtractQuery() builder.Query { +func (r tickerToJobRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveUpdateUnique) stepRunResultArchiveModel() {} +func (r tickerToJobRunsUpdateUnique) tickerModel() {} -func (r stepRunResultArchiveUpdateUnique) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { - var v StepRunResultArchiveModel +func (r tickerToJobRunsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { + var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunResultArchiveUpdateUnique) Tx() StepRunResultArchiveUniqueTxResult { - v := newStepRunResultArchiveUniqueTxResult() +func (r tickerToJobRunsUpdateUnique) Tx() TickerUniqueTxResult { + v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunResultArchiveFindUnique) Delete() stepRunResultArchiveDeleteUnique { - var v stepRunResultArchiveDeleteUnique +func (r tickerToJobRunsFindUnique) Delete() tickerToJobRunsDeleteUnique { + var v tickerToJobRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "StepRunResultArchive" + v.query.Model = "Ticker" return v } -type stepRunResultArchiveDeleteUnique struct { +type tickerToJobRunsDeleteUnique struct { query builder.Query } -func (r stepRunResultArchiveDeleteUnique) ExtractQuery() builder.Query { +func (r tickerToJobRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p stepRunResultArchiveDeleteUnique) stepRunResultArchiveModel() {} +func (p tickerToJobRunsDeleteUnique) tickerModel() {} -func (r stepRunResultArchiveDeleteUnique) Exec(ctx context.Context) (*StepRunResultArchiveModel, error) { - var v StepRunResultArchiveModel +func (r tickerToJobRunsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { + var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r stepRunResultArchiveDeleteUnique) Tx() StepRunResultArchiveUniqueTxResult { - v := newStepRunResultArchiveUniqueTxResult() +func (r tickerToJobRunsDeleteUnique) Tx() TickerUniqueTxResult { + v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type stepRunResultArchiveFindFirst struct { +type tickerToJobRunsFindFirst struct { query builder.Query } -func (r stepRunResultArchiveFindFirst) getQuery() builder.Query { +func (r tickerToJobRunsFindFirst) getQuery() builder.Query { return r.query } -func (r stepRunResultArchiveFindFirst) ExtractQuery() builder.Query { +func (r tickerToJobRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveFindFirst) with() {} -func (r stepRunResultArchiveFindFirst) stepRunResultArchiveModel() {} -func (r stepRunResultArchiveFindFirst) stepRunResultArchiveRelation() {} - -func (r stepRunResultArchiveActions) FindFirst( - params ...StepRunResultArchiveWhereParam, -) stepRunResultArchiveFindFirst { - var v stepRunResultArchiveFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "StepRunResultArchive" - v.query.Outputs = stepRunResultArchiveOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tickerToJobRunsFindFirst) with() {} +func (r tickerToJobRunsFindFirst) tickerModel() {} +func (r tickerToJobRunsFindFirst) tickerRelation() {} -func (r stepRunResultArchiveFindFirst) With(params ...StepRunResultArchiveRelationWith) stepRunResultArchiveFindFirst { +func (r tickerToJobRunsFindFirst) With(params ...JobRunRelationWith) tickerToJobRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -338356,7 +363396,7 @@ func (r stepRunResultArchiveFindFirst) With(params ...StepRunResultArchiveRelati return r } -func (r stepRunResultArchiveFindFirst) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindFirst { +func (r tickerToJobRunsFindFirst) Select(params ...tickerPrismaFields) tickerToJobRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -338370,7 +363410,7 @@ func (r stepRunResultArchiveFindFirst) Select(params ...stepRunResultArchivePris return r } -func (r stepRunResultArchiveFindFirst) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindFirst { +func (r tickerToJobRunsFindFirst) Omit(params ...tickerPrismaFields) tickerToJobRunsFindFirst { var outputs []builder.Output var raw []string @@ -338378,7 +363418,7 @@ func (r stepRunResultArchiveFindFirst) Omit(params ...stepRunResultArchivePrisma raw = append(raw, string(param)) } - for _, output := range stepRunResultArchiveOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -338389,7 +363429,7 @@ func (r stepRunResultArchiveFindFirst) Omit(params ...stepRunResultArchivePrisma return r } -func (r stepRunResultArchiveFindFirst) OrderBy(params ...StepRunResultArchiveOrderByParam) stepRunResultArchiveFindFirst { +func (r tickerToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) tickerToJobRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -338409,7 +363449,7 @@ func (r stepRunResultArchiveFindFirst) OrderBy(params ...StepRunResultArchiveOrd return r } -func (r stepRunResultArchiveFindFirst) Skip(count int) stepRunResultArchiveFindFirst { +func (r tickerToJobRunsFindFirst) Skip(count int) tickerToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -338417,7 +363457,7 @@ func (r stepRunResultArchiveFindFirst) Skip(count int) stepRunResultArchiveFindF return r } -func (r stepRunResultArchiveFindFirst) Take(count int) stepRunResultArchiveFindFirst { +func (r tickerToJobRunsFindFirst) Take(count int) tickerToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -338425,7 +363465,7 @@ func (r stepRunResultArchiveFindFirst) Take(count int) stepRunResultArchiveFindF return r } -func (r stepRunResultArchiveFindFirst) Cursor(cursor StepRunResultArchiveCursorParam) stepRunResultArchiveFindFirst { +func (r tickerToJobRunsFindFirst) Cursor(cursor TickerCursorParam) tickerToJobRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -338433,11 +363473,11 @@ func (r stepRunResultArchiveFindFirst) Cursor(cursor StepRunResultArchiveCursorP return r } -func (r stepRunResultArchiveFindFirst) Exec(ctx context.Context) ( - *StepRunResultArchiveModel, +func (r tickerToJobRunsFindFirst) Exec(ctx context.Context) ( + *TickerModel, error, ) { - var v *StepRunResultArchiveModel + var v *TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -338449,11 +363489,11 @@ func (r stepRunResultArchiveFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveFindFirst) ExecInner(ctx context.Context) ( - *InnerStepRunResultArchive, +func (r tickerToJobRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerTicker, error, ) { - var v *InnerStepRunResultArchive + var v *InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -338465,60 +363505,23 @@ func (r stepRunResultArchiveFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type stepRunResultArchiveFindMany struct { +type tickerToJobRunsFindMany struct { query builder.Query } -func (r stepRunResultArchiveFindMany) getQuery() builder.Query { +func (r tickerToJobRunsFindMany) getQuery() builder.Query { return r.query } -func (r stepRunResultArchiveFindMany) ExtractQuery() builder.Query { +func (r tickerToJobRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveFindMany) with() {} -func (r stepRunResultArchiveFindMany) stepRunResultArchiveModel() {} -func (r stepRunResultArchiveFindMany) stepRunResultArchiveRelation() {} - -func (r stepRunResultArchiveActions) FindMany( - params ...StepRunResultArchiveWhereParam, -) stepRunResultArchiveFindMany { - var v stepRunResultArchiveFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "StepRunResultArchive" - v.query.Outputs = stepRunResultArchiveOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tickerToJobRunsFindMany) with() {} +func (r tickerToJobRunsFindMany) tickerModel() {} +func (r tickerToJobRunsFindMany) tickerRelation() {} -func (r stepRunResultArchiveFindMany) With(params ...StepRunResultArchiveRelationWith) stepRunResultArchiveFindMany { +func (r tickerToJobRunsFindMany) With(params ...JobRunRelationWith) tickerToJobRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -338531,7 +363534,7 @@ func (r stepRunResultArchiveFindMany) With(params ...StepRunResultArchiveRelatio return r } -func (r stepRunResultArchiveFindMany) Select(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindMany { +func (r tickerToJobRunsFindMany) Select(params ...tickerPrismaFields) tickerToJobRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -338545,7 +363548,7 @@ func (r stepRunResultArchiveFindMany) Select(params ...stepRunResultArchivePrism return r } -func (r stepRunResultArchiveFindMany) Omit(params ...stepRunResultArchivePrismaFields) stepRunResultArchiveFindMany { +func (r tickerToJobRunsFindMany) Omit(params ...tickerPrismaFields) tickerToJobRunsFindMany { var outputs []builder.Output var raw []string @@ -338553,7 +363556,7 @@ func (r stepRunResultArchiveFindMany) Omit(params ...stepRunResultArchivePrismaF raw = append(raw, string(param)) } - for _, output := range stepRunResultArchiveOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -338564,7 +363567,7 @@ func (r stepRunResultArchiveFindMany) Omit(params ...stepRunResultArchivePrismaF return r } -func (r stepRunResultArchiveFindMany) OrderBy(params ...StepRunResultArchiveOrderByParam) stepRunResultArchiveFindMany { +func (r tickerToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) tickerToJobRunsFindMany { var fields []builder.Field for _, param := range params { @@ -338584,7 +363587,7 @@ func (r stepRunResultArchiveFindMany) OrderBy(params ...StepRunResultArchiveOrde return r } -func (r stepRunResultArchiveFindMany) Skip(count int) stepRunResultArchiveFindMany { +func (r tickerToJobRunsFindMany) Skip(count int) tickerToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -338592,7 +363595,7 @@ func (r stepRunResultArchiveFindMany) Skip(count int) stepRunResultArchiveFindMa return r } -func (r stepRunResultArchiveFindMany) Take(count int) stepRunResultArchiveFindMany { +func (r tickerToJobRunsFindMany) Take(count int) tickerToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -338600,7 +363603,7 @@ func (r stepRunResultArchiveFindMany) Take(count int) stepRunResultArchiveFindMa return r } -func (r stepRunResultArchiveFindMany) Cursor(cursor StepRunResultArchiveCursorParam) stepRunResultArchiveFindMany { +func (r tickerToJobRunsFindMany) Cursor(cursor TickerCursorParam) tickerToJobRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -338608,11 +363611,11 @@ func (r stepRunResultArchiveFindMany) Cursor(cursor StepRunResultArchiveCursorPa return r } -func (r stepRunResultArchiveFindMany) Exec(ctx context.Context) ( - []StepRunResultArchiveModel, +func (r tickerToJobRunsFindMany) Exec(ctx context.Context) ( + []TickerModel, error, ) { - var v []StepRunResultArchiveModel + var v []TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -338620,11 +363623,11 @@ func (r stepRunResultArchiveFindMany) Exec(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveFindMany) ExecInner(ctx context.Context) ( - []InnerStepRunResultArchive, +func (r tickerToJobRunsFindMany) ExecInner(ctx context.Context) ( + []InnerTicker, error, ) { - var v []InnerStepRunResultArchive + var v []InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -338632,14 +363635,14 @@ func (r stepRunResultArchiveFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r stepRunResultArchiveFindMany) Update(params ...StepRunResultArchiveSetParam) stepRunResultArchiveUpdateMany { +func (r tickerToJobRunsFindMany) Update(params ...TickerSetParam) tickerToJobRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "StepRunResultArchive" + r.query.Model = "Ticker" r.query.Outputs = countOutput - var v stepRunResultArchiveUpdateMany + var v tickerToJobRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -338668,17 +363671,17 @@ func (r stepRunResultArchiveFindMany) Update(params ...StepRunResultArchiveSetPa return v } -type stepRunResultArchiveUpdateMany struct { +type tickerToJobRunsUpdateMany struct { query builder.Query } -func (r stepRunResultArchiveUpdateMany) ExtractQuery() builder.Query { +func (r tickerToJobRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r stepRunResultArchiveUpdateMany) stepRunResultArchiveModel() {} +func (r tickerToJobRunsUpdateMany) tickerModel() {} -func (r stepRunResultArchiveUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -338686,36 +363689,36 @@ func (r stepRunResultArchiveUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r stepRunResultArchiveUpdateMany) Tx() StepRunResultArchiveManyTxResult { - v := newStepRunResultArchiveManyTxResult() +func (r tickerToJobRunsUpdateMany) Tx() TickerManyTxResult { + v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r stepRunResultArchiveFindMany) Delete() stepRunResultArchiveDeleteMany { - var v stepRunResultArchiveDeleteMany +func (r tickerToJobRunsFindMany) Delete() tickerToJobRunsDeleteMany { + var v tickerToJobRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "StepRunResultArchive" + v.query.Model = "Ticker" v.query.Outputs = countOutput return v } -type stepRunResultArchiveDeleteMany struct { +type tickerToJobRunsDeleteMany struct { query builder.Query } -func (r stepRunResultArchiveDeleteMany) ExtractQuery() builder.Query { +func (r tickerToJobRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p stepRunResultArchiveDeleteMany) stepRunResultArchiveModel() {} +func (p tickerToJobRunsDeleteMany) tickerModel() {} -func (r stepRunResultArchiveDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -338723,30 +363726,30 @@ func (r stepRunResultArchiveDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r stepRunResultArchiveDeleteMany) Tx() StepRunResultArchiveManyTxResult { - v := newStepRunResultArchiveManyTxResult() +func (r tickerToJobRunsDeleteMany) Tx() TickerManyTxResult { + v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type dispatcherToWorkersFindUnique struct { +type tickerToStepRunsFindUnique struct { query builder.Query } -func (r dispatcherToWorkersFindUnique) getQuery() builder.Query { +func (r tickerToStepRunsFindUnique) getQuery() builder.Query { return r.query } -func (r dispatcherToWorkersFindUnique) ExtractQuery() builder.Query { +func (r tickerToStepRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r dispatcherToWorkersFindUnique) with() {} -func (r dispatcherToWorkersFindUnique) dispatcherModel() {} -func (r dispatcherToWorkersFindUnique) dispatcherRelation() {} +func (r tickerToStepRunsFindUnique) with() {} +func (r tickerToStepRunsFindUnique) tickerModel() {} +func (r tickerToStepRunsFindUnique) tickerRelation() {} -func (r dispatcherToWorkersFindUnique) With(params ...WorkerRelationWith) dispatcherToWorkersFindUnique { +func (r tickerToStepRunsFindUnique) With(params ...StepRunRelationWith) tickerToStepRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -338759,7 +363762,7 @@ func (r dispatcherToWorkersFindUnique) With(params ...WorkerRelationWith) dispat return r } -func (r dispatcherToWorkersFindUnique) Select(params ...dispatcherPrismaFields) dispatcherToWorkersFindUnique { +func (r tickerToStepRunsFindUnique) Select(params ...tickerPrismaFields) tickerToStepRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -338773,7 +363776,7 @@ func (r dispatcherToWorkersFindUnique) Select(params ...dispatcherPrismaFields) return r } -func (r dispatcherToWorkersFindUnique) Omit(params ...dispatcherPrismaFields) dispatcherToWorkersFindUnique { +func (r tickerToStepRunsFindUnique) Omit(params ...tickerPrismaFields) tickerToStepRunsFindUnique { var outputs []builder.Output var raw []string @@ -338781,7 +363784,7 @@ func (r dispatcherToWorkersFindUnique) Omit(params ...dispatcherPrismaFields) di raw = append(raw, string(param)) } - for _, output := range dispatcherOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -338792,11 +363795,11 @@ func (r dispatcherToWorkersFindUnique) Omit(params ...dispatcherPrismaFields) di return r } -func (r dispatcherToWorkersFindUnique) Exec(ctx context.Context) ( - *DispatcherModel, +func (r tickerToStepRunsFindUnique) Exec(ctx context.Context) ( + *TickerModel, error, ) { - var v *DispatcherModel + var v *TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -338808,11 +363811,11 @@ func (r dispatcherToWorkersFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r dispatcherToWorkersFindUnique) ExecInner(ctx context.Context) ( - *InnerDispatcher, +func (r tickerToStepRunsFindUnique) ExecInner(ctx context.Context) ( + *InnerTicker, error, ) { - var v *InnerDispatcher + var v *InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -338824,12 +363827,12 @@ func (r dispatcherToWorkersFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r dispatcherToWorkersFindUnique) Update(params ...DispatcherSetParam) dispatcherToWorkersUpdateUnique { +func (r tickerToStepRunsFindUnique) Update(params ...TickerSetParam) tickerToStepRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Dispatcher" + r.query.Model = "Ticker" - var v dispatcherToWorkersUpdateUnique + var v tickerToStepRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -338858,83 +363861,83 @@ func (r dispatcherToWorkersFindUnique) Update(params ...DispatcherSetParam) disp return v } -type dispatcherToWorkersUpdateUnique struct { +type tickerToStepRunsUpdateUnique struct { query builder.Query } -func (r dispatcherToWorkersUpdateUnique) ExtractQuery() builder.Query { +func (r tickerToStepRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r dispatcherToWorkersUpdateUnique) dispatcherModel() {} +func (r tickerToStepRunsUpdateUnique) tickerModel() {} -func (r dispatcherToWorkersUpdateUnique) Exec(ctx context.Context) (*DispatcherModel, error) { - var v DispatcherModel +func (r tickerToStepRunsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { + var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r dispatcherToWorkersUpdateUnique) Tx() DispatcherUniqueTxResult { - v := newDispatcherUniqueTxResult() +func (r tickerToStepRunsUpdateUnique) Tx() TickerUniqueTxResult { + v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r dispatcherToWorkersFindUnique) Delete() dispatcherToWorkersDeleteUnique { - var v dispatcherToWorkersDeleteUnique +func (r tickerToStepRunsFindUnique) Delete() tickerToStepRunsDeleteUnique { + var v tickerToStepRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Dispatcher" + v.query.Model = "Ticker" return v } -type dispatcherToWorkersDeleteUnique struct { +type tickerToStepRunsDeleteUnique struct { query builder.Query } -func (r dispatcherToWorkersDeleteUnique) ExtractQuery() builder.Query { +func (r tickerToStepRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p dispatcherToWorkersDeleteUnique) dispatcherModel() {} +func (p tickerToStepRunsDeleteUnique) tickerModel() {} -func (r dispatcherToWorkersDeleteUnique) Exec(ctx context.Context) (*DispatcherModel, error) { - var v DispatcherModel +func (r tickerToStepRunsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { + var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r dispatcherToWorkersDeleteUnique) Tx() DispatcherUniqueTxResult { - v := newDispatcherUniqueTxResult() +func (r tickerToStepRunsDeleteUnique) Tx() TickerUniqueTxResult { + v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type dispatcherToWorkersFindFirst struct { +type tickerToStepRunsFindFirst struct { query builder.Query } -func (r dispatcherToWorkersFindFirst) getQuery() builder.Query { +func (r tickerToStepRunsFindFirst) getQuery() builder.Query { return r.query } -func (r dispatcherToWorkersFindFirst) ExtractQuery() builder.Query { +func (r tickerToStepRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r dispatcherToWorkersFindFirst) with() {} -func (r dispatcherToWorkersFindFirst) dispatcherModel() {} -func (r dispatcherToWorkersFindFirst) dispatcherRelation() {} +func (r tickerToStepRunsFindFirst) with() {} +func (r tickerToStepRunsFindFirst) tickerModel() {} +func (r tickerToStepRunsFindFirst) tickerRelation() {} -func (r dispatcherToWorkersFindFirst) With(params ...WorkerRelationWith) dispatcherToWorkersFindFirst { +func (r tickerToStepRunsFindFirst) With(params ...StepRunRelationWith) tickerToStepRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -338947,7 +363950,7 @@ func (r dispatcherToWorkersFindFirst) With(params ...WorkerRelationWith) dispatc return r } -func (r dispatcherToWorkersFindFirst) Select(params ...dispatcherPrismaFields) dispatcherToWorkersFindFirst { +func (r tickerToStepRunsFindFirst) Select(params ...tickerPrismaFields) tickerToStepRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -338961,7 +363964,7 @@ func (r dispatcherToWorkersFindFirst) Select(params ...dispatcherPrismaFields) d return r } -func (r dispatcherToWorkersFindFirst) Omit(params ...dispatcherPrismaFields) dispatcherToWorkersFindFirst { +func (r tickerToStepRunsFindFirst) Omit(params ...tickerPrismaFields) tickerToStepRunsFindFirst { var outputs []builder.Output var raw []string @@ -338969,7 +363972,7 @@ func (r dispatcherToWorkersFindFirst) Omit(params ...dispatcherPrismaFields) dis raw = append(raw, string(param)) } - for _, output := range dispatcherOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -338980,7 +363983,7 @@ func (r dispatcherToWorkersFindFirst) Omit(params ...dispatcherPrismaFields) dis return r } -func (r dispatcherToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) dispatcherToWorkersFindFirst { +func (r tickerToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) tickerToStepRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -339000,7 +364003,7 @@ func (r dispatcherToWorkersFindFirst) OrderBy(params ...WorkerOrderByParam) disp return r } -func (r dispatcherToWorkersFindFirst) Skip(count int) dispatcherToWorkersFindFirst { +func (r tickerToStepRunsFindFirst) Skip(count int) tickerToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -339008,7 +364011,7 @@ func (r dispatcherToWorkersFindFirst) Skip(count int) dispatcherToWorkersFindFir return r } -func (r dispatcherToWorkersFindFirst) Take(count int) dispatcherToWorkersFindFirst { +func (r tickerToStepRunsFindFirst) Take(count int) tickerToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -339016,7 +364019,7 @@ func (r dispatcherToWorkersFindFirst) Take(count int) dispatcherToWorkersFindFir return r } -func (r dispatcherToWorkersFindFirst) Cursor(cursor DispatcherCursorParam) dispatcherToWorkersFindFirst { +func (r tickerToStepRunsFindFirst) Cursor(cursor TickerCursorParam) tickerToStepRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -339024,11 +364027,11 @@ func (r dispatcherToWorkersFindFirst) Cursor(cursor DispatcherCursorParam) dispa return r } -func (r dispatcherToWorkersFindFirst) Exec(ctx context.Context) ( - *DispatcherModel, +func (r tickerToStepRunsFindFirst) Exec(ctx context.Context) ( + *TickerModel, error, ) { - var v *DispatcherModel + var v *TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339040,11 +364043,11 @@ func (r dispatcherToWorkersFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r dispatcherToWorkersFindFirst) ExecInner(ctx context.Context) ( - *InnerDispatcher, +func (r tickerToStepRunsFindFirst) ExecInner(ctx context.Context) ( + *InnerTicker, error, ) { - var v *InnerDispatcher + var v *InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339056,23 +364059,23 @@ func (r dispatcherToWorkersFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type dispatcherToWorkersFindMany struct { +type tickerToStepRunsFindMany struct { query builder.Query } -func (r dispatcherToWorkersFindMany) getQuery() builder.Query { +func (r tickerToStepRunsFindMany) getQuery() builder.Query { return r.query } -func (r dispatcherToWorkersFindMany) ExtractQuery() builder.Query { +func (r tickerToStepRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r dispatcherToWorkersFindMany) with() {} -func (r dispatcherToWorkersFindMany) dispatcherModel() {} -func (r dispatcherToWorkersFindMany) dispatcherRelation() {} +func (r tickerToStepRunsFindMany) with() {} +func (r tickerToStepRunsFindMany) tickerModel() {} +func (r tickerToStepRunsFindMany) tickerRelation() {} -func (r dispatcherToWorkersFindMany) With(params ...WorkerRelationWith) dispatcherToWorkersFindMany { +func (r tickerToStepRunsFindMany) With(params ...StepRunRelationWith) tickerToStepRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -339085,7 +364088,7 @@ func (r dispatcherToWorkersFindMany) With(params ...WorkerRelationWith) dispatch return r } -func (r dispatcherToWorkersFindMany) Select(params ...dispatcherPrismaFields) dispatcherToWorkersFindMany { +func (r tickerToStepRunsFindMany) Select(params ...tickerPrismaFields) tickerToStepRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -339099,7 +364102,7 @@ func (r dispatcherToWorkersFindMany) Select(params ...dispatcherPrismaFields) di return r } -func (r dispatcherToWorkersFindMany) Omit(params ...dispatcherPrismaFields) dispatcherToWorkersFindMany { +func (r tickerToStepRunsFindMany) Omit(params ...tickerPrismaFields) tickerToStepRunsFindMany { var outputs []builder.Output var raw []string @@ -339107,7 +364110,7 @@ func (r dispatcherToWorkersFindMany) Omit(params ...dispatcherPrismaFields) disp raw = append(raw, string(param)) } - for _, output := range dispatcherOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -339118,7 +364121,7 @@ func (r dispatcherToWorkersFindMany) Omit(params ...dispatcherPrismaFields) disp return r } -func (r dispatcherToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) dispatcherToWorkersFindMany { +func (r tickerToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) tickerToStepRunsFindMany { var fields []builder.Field for _, param := range params { @@ -339138,7 +364141,7 @@ func (r dispatcherToWorkersFindMany) OrderBy(params ...WorkerOrderByParam) dispa return r } -func (r dispatcherToWorkersFindMany) Skip(count int) dispatcherToWorkersFindMany { +func (r tickerToStepRunsFindMany) Skip(count int) tickerToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -339146,7 +364149,7 @@ func (r dispatcherToWorkersFindMany) Skip(count int) dispatcherToWorkersFindMany return r } -func (r dispatcherToWorkersFindMany) Take(count int) dispatcherToWorkersFindMany { +func (r tickerToStepRunsFindMany) Take(count int) tickerToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -339154,7 +364157,7 @@ func (r dispatcherToWorkersFindMany) Take(count int) dispatcherToWorkersFindMany return r } -func (r dispatcherToWorkersFindMany) Cursor(cursor DispatcherCursorParam) dispatcherToWorkersFindMany { +func (r tickerToStepRunsFindMany) Cursor(cursor TickerCursorParam) tickerToStepRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -339162,11 +364165,11 @@ func (r dispatcherToWorkersFindMany) Cursor(cursor DispatcherCursorParam) dispat return r } -func (r dispatcherToWorkersFindMany) Exec(ctx context.Context) ( - []DispatcherModel, +func (r tickerToStepRunsFindMany) Exec(ctx context.Context) ( + []TickerModel, error, ) { - var v []DispatcherModel + var v []TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339174,11 +364177,11 @@ func (r dispatcherToWorkersFindMany) Exec(ctx context.Context) ( return v, nil } -func (r dispatcherToWorkersFindMany) ExecInner(ctx context.Context) ( - []InnerDispatcher, +func (r tickerToStepRunsFindMany) ExecInner(ctx context.Context) ( + []InnerTicker, error, ) { - var v []InnerDispatcher + var v []InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339186,14 +364189,14 @@ func (r dispatcherToWorkersFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r dispatcherToWorkersFindMany) Update(params ...DispatcherSetParam) dispatcherToWorkersUpdateMany { +func (r tickerToStepRunsFindMany) Update(params ...TickerSetParam) tickerToStepRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Dispatcher" + r.query.Model = "Ticker" r.query.Outputs = countOutput - var v dispatcherToWorkersUpdateMany + var v tickerToStepRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -339222,17 +364225,17 @@ func (r dispatcherToWorkersFindMany) Update(params ...DispatcherSetParam) dispat return v } -type dispatcherToWorkersUpdateMany struct { +type tickerToStepRunsUpdateMany struct { query builder.Query } -func (r dispatcherToWorkersUpdateMany) ExtractQuery() builder.Query { +func (r tickerToStepRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r dispatcherToWorkersUpdateMany) dispatcherModel() {} +func (r tickerToStepRunsUpdateMany) tickerModel() {} -func (r dispatcherToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -339240,36 +364243,36 @@ func (r dispatcherToWorkersUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r dispatcherToWorkersUpdateMany) Tx() DispatcherManyTxResult { - v := newDispatcherManyTxResult() +func (r tickerToStepRunsUpdateMany) Tx() TickerManyTxResult { + v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r dispatcherToWorkersFindMany) Delete() dispatcherToWorkersDeleteMany { - var v dispatcherToWorkersDeleteMany +func (r tickerToStepRunsFindMany) Delete() tickerToStepRunsDeleteMany { + var v tickerToStepRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Dispatcher" + v.query.Model = "Ticker" v.query.Outputs = countOutput return v } -type dispatcherToWorkersDeleteMany struct { +type tickerToStepRunsDeleteMany struct { query builder.Query } -func (r dispatcherToWorkersDeleteMany) ExtractQuery() builder.Query { +func (r tickerToStepRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p dispatcherToWorkersDeleteMany) dispatcherModel() {} +func (p tickerToStepRunsDeleteMany) tickerModel() {} -func (r dispatcherToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -339277,52 +364280,30 @@ func (r dispatcherToWorkersDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r dispatcherToWorkersDeleteMany) Tx() DispatcherManyTxResult { - v := newDispatcherManyTxResult() +func (r tickerToStepRunsDeleteMany) Tx() TickerManyTxResult { + v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type dispatcherFindUnique struct { +type tickerToCronsFindUnique struct { query builder.Query } -func (r dispatcherFindUnique) getQuery() builder.Query { +func (r tickerToCronsFindUnique) getQuery() builder.Query { return r.query } -func (r dispatcherFindUnique) ExtractQuery() builder.Query { +func (r tickerToCronsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r dispatcherFindUnique) with() {} -func (r dispatcherFindUnique) dispatcherModel() {} -func (r dispatcherFindUnique) dispatcherRelation() {} - -func (r dispatcherActions) FindUnique( - params DispatcherEqualsUniqueWhereParam, -) dispatcherFindUnique { - var v dispatcherFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "Dispatcher" - v.query.Outputs = dispatcherOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} +func (r tickerToCronsFindUnique) with() {} +func (r tickerToCronsFindUnique) tickerModel() {} +func (r tickerToCronsFindUnique) tickerRelation() {} -func (r dispatcherFindUnique) With(params ...DispatcherRelationWith) dispatcherFindUnique { +func (r tickerToCronsFindUnique) With(params ...WorkflowTriggerCronRefRelationWith) tickerToCronsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -339335,7 +364316,7 @@ func (r dispatcherFindUnique) With(params ...DispatcherRelationWith) dispatcherF return r } -func (r dispatcherFindUnique) Select(params ...dispatcherPrismaFields) dispatcherFindUnique { +func (r tickerToCronsFindUnique) Select(params ...tickerPrismaFields) tickerToCronsFindUnique { var outputs []builder.Output for _, param := range params { @@ -339349,7 +364330,7 @@ func (r dispatcherFindUnique) Select(params ...dispatcherPrismaFields) dispatche return r } -func (r dispatcherFindUnique) Omit(params ...dispatcherPrismaFields) dispatcherFindUnique { +func (r tickerToCronsFindUnique) Omit(params ...tickerPrismaFields) tickerToCronsFindUnique { var outputs []builder.Output var raw []string @@ -339357,7 +364338,7 @@ func (r dispatcherFindUnique) Omit(params ...dispatcherPrismaFields) dispatcherF raw = append(raw, string(param)) } - for _, output := range dispatcherOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -339368,11 +364349,11 @@ func (r dispatcherFindUnique) Omit(params ...dispatcherPrismaFields) dispatcherF return r } -func (r dispatcherFindUnique) Exec(ctx context.Context) ( - *DispatcherModel, +func (r tickerToCronsFindUnique) Exec(ctx context.Context) ( + *TickerModel, error, ) { - var v *DispatcherModel + var v *TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339384,11 +364365,11 @@ func (r dispatcherFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r dispatcherFindUnique) ExecInner(ctx context.Context) ( - *InnerDispatcher, +func (r tickerToCronsFindUnique) ExecInner(ctx context.Context) ( + *InnerTicker, error, ) { - var v *InnerDispatcher + var v *InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339400,12 +364381,12 @@ func (r dispatcherFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r dispatcherFindUnique) Update(params ...DispatcherSetParam) dispatcherUpdateUnique { +func (r tickerToCronsFindUnique) Update(params ...TickerSetParam) tickerToCronsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Dispatcher" + r.query.Model = "Ticker" - var v dispatcherUpdateUnique + var v tickerToCronsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -339434,120 +364415,83 @@ func (r dispatcherFindUnique) Update(params ...DispatcherSetParam) dispatcherUpd return v } -type dispatcherUpdateUnique struct { +type tickerToCronsUpdateUnique struct { query builder.Query } -func (r dispatcherUpdateUnique) ExtractQuery() builder.Query { +func (r tickerToCronsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r dispatcherUpdateUnique) dispatcherModel() {} +func (r tickerToCronsUpdateUnique) tickerModel() {} -func (r dispatcherUpdateUnique) Exec(ctx context.Context) (*DispatcherModel, error) { - var v DispatcherModel +func (r tickerToCronsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { + var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r dispatcherUpdateUnique) Tx() DispatcherUniqueTxResult { - v := newDispatcherUniqueTxResult() +func (r tickerToCronsUpdateUnique) Tx() TickerUniqueTxResult { + v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r dispatcherFindUnique) Delete() dispatcherDeleteUnique { - var v dispatcherDeleteUnique +func (r tickerToCronsFindUnique) Delete() tickerToCronsDeleteUnique { + var v tickerToCronsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Dispatcher" + v.query.Model = "Ticker" return v } -type dispatcherDeleteUnique struct { +type tickerToCronsDeleteUnique struct { query builder.Query } -func (r dispatcherDeleteUnique) ExtractQuery() builder.Query { +func (r tickerToCronsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p dispatcherDeleteUnique) dispatcherModel() {} +func (p tickerToCronsDeleteUnique) tickerModel() {} -func (r dispatcherDeleteUnique) Exec(ctx context.Context) (*DispatcherModel, error) { - var v DispatcherModel +func (r tickerToCronsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { + var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r dispatcherDeleteUnique) Tx() DispatcherUniqueTxResult { - v := newDispatcherUniqueTxResult() +func (r tickerToCronsDeleteUnique) Tx() TickerUniqueTxResult { + v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type dispatcherFindFirst struct { +type tickerToCronsFindFirst struct { query builder.Query } -func (r dispatcherFindFirst) getQuery() builder.Query { +func (r tickerToCronsFindFirst) getQuery() builder.Query { return r.query } -func (r dispatcherFindFirst) ExtractQuery() builder.Query { +func (r tickerToCronsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r dispatcherFindFirst) with() {} -func (r dispatcherFindFirst) dispatcherModel() {} -func (r dispatcherFindFirst) dispatcherRelation() {} - -func (r dispatcherActions) FindFirst( - params ...DispatcherWhereParam, -) dispatcherFindFirst { - var v dispatcherFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "Dispatcher" - v.query.Outputs = dispatcherOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tickerToCronsFindFirst) with() {} +func (r tickerToCronsFindFirst) tickerModel() {} +func (r tickerToCronsFindFirst) tickerRelation() {} -func (r dispatcherFindFirst) With(params ...DispatcherRelationWith) dispatcherFindFirst { +func (r tickerToCronsFindFirst) With(params ...WorkflowTriggerCronRefRelationWith) tickerToCronsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -339560,7 +364504,7 @@ func (r dispatcherFindFirst) With(params ...DispatcherRelationWith) dispatcherFi return r } -func (r dispatcherFindFirst) Select(params ...dispatcherPrismaFields) dispatcherFindFirst { +func (r tickerToCronsFindFirst) Select(params ...tickerPrismaFields) tickerToCronsFindFirst { var outputs []builder.Output for _, param := range params { @@ -339574,7 +364518,7 @@ func (r dispatcherFindFirst) Select(params ...dispatcherPrismaFields) dispatcher return r } -func (r dispatcherFindFirst) Omit(params ...dispatcherPrismaFields) dispatcherFindFirst { +func (r tickerToCronsFindFirst) Omit(params ...tickerPrismaFields) tickerToCronsFindFirst { var outputs []builder.Output var raw []string @@ -339582,7 +364526,7 @@ func (r dispatcherFindFirst) Omit(params ...dispatcherPrismaFields) dispatcherFi raw = append(raw, string(param)) } - for _, output := range dispatcherOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -339593,7 +364537,7 @@ func (r dispatcherFindFirst) Omit(params ...dispatcherPrismaFields) dispatcherFi return r } -func (r dispatcherFindFirst) OrderBy(params ...DispatcherOrderByParam) dispatcherFindFirst { +func (r tickerToCronsFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) tickerToCronsFindFirst { var fields []builder.Field for _, param := range params { @@ -339613,7 +364557,7 @@ func (r dispatcherFindFirst) OrderBy(params ...DispatcherOrderByParam) dispatche return r } -func (r dispatcherFindFirst) Skip(count int) dispatcherFindFirst { +func (r tickerToCronsFindFirst) Skip(count int) tickerToCronsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -339621,7 +364565,7 @@ func (r dispatcherFindFirst) Skip(count int) dispatcherFindFirst { return r } -func (r dispatcherFindFirst) Take(count int) dispatcherFindFirst { +func (r tickerToCronsFindFirst) Take(count int) tickerToCronsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -339629,7 +364573,7 @@ func (r dispatcherFindFirst) Take(count int) dispatcherFindFirst { return r } -func (r dispatcherFindFirst) Cursor(cursor DispatcherCursorParam) dispatcherFindFirst { +func (r tickerToCronsFindFirst) Cursor(cursor TickerCursorParam) tickerToCronsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -339637,11 +364581,11 @@ func (r dispatcherFindFirst) Cursor(cursor DispatcherCursorParam) dispatcherFind return r } -func (r dispatcherFindFirst) Exec(ctx context.Context) ( - *DispatcherModel, +func (r tickerToCronsFindFirst) Exec(ctx context.Context) ( + *TickerModel, error, ) { - var v *DispatcherModel + var v *TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339653,11 +364597,11 @@ func (r dispatcherFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r dispatcherFindFirst) ExecInner(ctx context.Context) ( - *InnerDispatcher, +func (r tickerToCronsFindFirst) ExecInner(ctx context.Context) ( + *InnerTicker, error, ) { - var v *InnerDispatcher + var v *InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339669,60 +364613,23 @@ func (r dispatcherFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type dispatcherFindMany struct { +type tickerToCronsFindMany struct { query builder.Query } -func (r dispatcherFindMany) getQuery() builder.Query { +func (r tickerToCronsFindMany) getQuery() builder.Query { return r.query } -func (r dispatcherFindMany) ExtractQuery() builder.Query { +func (r tickerToCronsFindMany) ExtractQuery() builder.Query { return r.query } -func (r dispatcherFindMany) with() {} -func (r dispatcherFindMany) dispatcherModel() {} -func (r dispatcherFindMany) dispatcherRelation() {} - -func (r dispatcherActions) FindMany( - params ...DispatcherWhereParam, -) dispatcherFindMany { - var v dispatcherFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "Dispatcher" - v.query.Outputs = dispatcherOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} +func (r tickerToCronsFindMany) with() {} +func (r tickerToCronsFindMany) tickerModel() {} +func (r tickerToCronsFindMany) tickerRelation() {} -func (r dispatcherFindMany) With(params ...DispatcherRelationWith) dispatcherFindMany { +func (r tickerToCronsFindMany) With(params ...WorkflowTriggerCronRefRelationWith) tickerToCronsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -339735,7 +364642,7 @@ func (r dispatcherFindMany) With(params ...DispatcherRelationWith) dispatcherFin return r } -func (r dispatcherFindMany) Select(params ...dispatcherPrismaFields) dispatcherFindMany { +func (r tickerToCronsFindMany) Select(params ...tickerPrismaFields) tickerToCronsFindMany { var outputs []builder.Output for _, param := range params { @@ -339749,7 +364656,7 @@ func (r dispatcherFindMany) Select(params ...dispatcherPrismaFields) dispatcherF return r } -func (r dispatcherFindMany) Omit(params ...dispatcherPrismaFields) dispatcherFindMany { +func (r tickerToCronsFindMany) Omit(params ...tickerPrismaFields) tickerToCronsFindMany { var outputs []builder.Output var raw []string @@ -339757,7 +364664,7 @@ func (r dispatcherFindMany) Omit(params ...dispatcherPrismaFields) dispatcherFin raw = append(raw, string(param)) } - for _, output := range dispatcherOutput { + for _, output := range tickerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -339768,7 +364675,7 @@ func (r dispatcherFindMany) Omit(params ...dispatcherPrismaFields) dispatcherFin return r } -func (r dispatcherFindMany) OrderBy(params ...DispatcherOrderByParam) dispatcherFindMany { +func (r tickerToCronsFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) tickerToCronsFindMany { var fields []builder.Field for _, param := range params { @@ -339788,7 +364695,7 @@ func (r dispatcherFindMany) OrderBy(params ...DispatcherOrderByParam) dispatcher return r } -func (r dispatcherFindMany) Skip(count int) dispatcherFindMany { +func (r tickerToCronsFindMany) Skip(count int) tickerToCronsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -339796,7 +364703,7 @@ func (r dispatcherFindMany) Skip(count int) dispatcherFindMany { return r } -func (r dispatcherFindMany) Take(count int) dispatcherFindMany { +func (r tickerToCronsFindMany) Take(count int) tickerToCronsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -339804,7 +364711,7 @@ func (r dispatcherFindMany) Take(count int) dispatcherFindMany { return r } -func (r dispatcherFindMany) Cursor(cursor DispatcherCursorParam) dispatcherFindMany { +func (r tickerToCronsFindMany) Cursor(cursor TickerCursorParam) tickerToCronsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -339812,11 +364719,11 @@ func (r dispatcherFindMany) Cursor(cursor DispatcherCursorParam) dispatcherFindM return r } -func (r dispatcherFindMany) Exec(ctx context.Context) ( - []DispatcherModel, +func (r tickerToCronsFindMany) Exec(ctx context.Context) ( + []TickerModel, error, ) { - var v []DispatcherModel + var v []TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339824,11 +364731,11 @@ func (r dispatcherFindMany) Exec(ctx context.Context) ( return v, nil } -func (r dispatcherFindMany) ExecInner(ctx context.Context) ( - []InnerDispatcher, +func (r tickerToCronsFindMany) ExecInner(ctx context.Context) ( + []InnerTicker, error, ) { - var v []InnerDispatcher + var v []InnerTicker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -339836,14 +364743,14 @@ func (r dispatcherFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r dispatcherFindMany) Update(params ...DispatcherSetParam) dispatcherUpdateMany { +func (r tickerToCronsFindMany) Update(params ...TickerSetParam) tickerToCronsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Dispatcher" + r.query.Model = "Ticker" r.query.Outputs = countOutput - var v dispatcherUpdateMany + var v tickerToCronsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -339872,17 +364779,17 @@ func (r dispatcherFindMany) Update(params ...DispatcherSetParam) dispatcherUpdat return v } -type dispatcherUpdateMany struct { +type tickerToCronsUpdateMany struct { query builder.Query } -func (r dispatcherUpdateMany) ExtractQuery() builder.Query { +func (r tickerToCronsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r dispatcherUpdateMany) dispatcherModel() {} +func (r tickerToCronsUpdateMany) tickerModel() {} -func (r dispatcherUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToCronsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -339890,36 +364797,36 @@ func (r dispatcherUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r dispatcherUpdateMany) Tx() DispatcherManyTxResult { - v := newDispatcherManyTxResult() +func (r tickerToCronsUpdateMany) Tx() TickerManyTxResult { + v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r dispatcherFindMany) Delete() dispatcherDeleteMany { - var v dispatcherDeleteMany +func (r tickerToCronsFindMany) Delete() tickerToCronsDeleteMany { + var v tickerToCronsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Dispatcher" + v.query.Model = "Ticker" v.query.Outputs = countOutput return v } -type dispatcherDeleteMany struct { +type tickerToCronsDeleteMany struct { query builder.Query } -func (r dispatcherDeleteMany) ExtractQuery() builder.Query { +func (r tickerToCronsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p dispatcherDeleteMany) dispatcherModel() {} +func (p tickerToCronsDeleteMany) tickerModel() {} -func (r dispatcherDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToCronsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -339927,30 +364834,30 @@ func (r dispatcherDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r dispatcherDeleteMany) Tx() DispatcherManyTxResult { - v := newDispatcherManyTxResult() +func (r tickerToCronsDeleteMany) Tx() TickerManyTxResult { + v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToJobRunsFindUnique struct { +type tickerToScheduledFindUnique struct { query builder.Query } -func (r tickerToJobRunsFindUnique) getQuery() builder.Query { +func (r tickerToScheduledFindUnique) getQuery() builder.Query { return r.query } -func (r tickerToJobRunsFindUnique) ExtractQuery() builder.Query { +func (r tickerToScheduledFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToJobRunsFindUnique) with() {} -func (r tickerToJobRunsFindUnique) tickerModel() {} -func (r tickerToJobRunsFindUnique) tickerRelation() {} +func (r tickerToScheduledFindUnique) with() {} +func (r tickerToScheduledFindUnique) tickerModel() {} +func (r tickerToScheduledFindUnique) tickerRelation() {} -func (r tickerToJobRunsFindUnique) With(params ...JobRunRelationWith) tickerToJobRunsFindUnique { +func (r tickerToScheduledFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) tickerToScheduledFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -339963,7 +364870,7 @@ func (r tickerToJobRunsFindUnique) With(params ...JobRunRelationWith) tickerToJo return r } -func (r tickerToJobRunsFindUnique) Select(params ...tickerPrismaFields) tickerToJobRunsFindUnique { +func (r tickerToScheduledFindUnique) Select(params ...tickerPrismaFields) tickerToScheduledFindUnique { var outputs []builder.Output for _, param := range params { @@ -339977,7 +364884,7 @@ func (r tickerToJobRunsFindUnique) Select(params ...tickerPrismaFields) tickerTo return r } -func (r tickerToJobRunsFindUnique) Omit(params ...tickerPrismaFields) tickerToJobRunsFindUnique { +func (r tickerToScheduledFindUnique) Omit(params ...tickerPrismaFields) tickerToScheduledFindUnique { var outputs []builder.Output var raw []string @@ -339996,7 +364903,7 @@ func (r tickerToJobRunsFindUnique) Omit(params ...tickerPrismaFields) tickerToJo return r } -func (r tickerToJobRunsFindUnique) Exec(ctx context.Context) ( +func (r tickerToScheduledFindUnique) Exec(ctx context.Context) ( *TickerModel, error, ) { @@ -340012,7 +364919,7 @@ func (r tickerToJobRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tickerToJobRunsFindUnique) ExecInner(ctx context.Context) ( +func (r tickerToScheduledFindUnique) ExecInner(ctx context.Context) ( *InnerTicker, error, ) { @@ -340028,12 +364935,12 @@ func (r tickerToJobRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToJobRunsFindUnique) Update(params ...TickerSetParam) tickerToJobRunsUpdateUnique { +func (r tickerToScheduledFindUnique) Update(params ...TickerSetParam) tickerToScheduledUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Ticker" - var v tickerToJobRunsUpdateUnique + var v tickerToScheduledUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -340062,17 +364969,17 @@ func (r tickerToJobRunsFindUnique) Update(params ...TickerSetParam) tickerToJobR return v } -type tickerToJobRunsUpdateUnique struct { +type tickerToScheduledUpdateUnique struct { query builder.Query } -func (r tickerToJobRunsUpdateUnique) ExtractQuery() builder.Query { +func (r tickerToScheduledUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToJobRunsUpdateUnique) tickerModel() {} +func (r tickerToScheduledUpdateUnique) tickerModel() {} -func (r tickerToJobRunsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { +func (r tickerToScheduledUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -340080,15 +364987,15 @@ func (r tickerToJobRunsUpdateUnique) Exec(ctx context.Context) (*TickerModel, er return &v, nil } -func (r tickerToJobRunsUpdateUnique) Tx() TickerUniqueTxResult { +func (r tickerToScheduledUpdateUnique) Tx() TickerUniqueTxResult { v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToJobRunsFindUnique) Delete() tickerToJobRunsDeleteUnique { - var v tickerToJobRunsDeleteUnique +func (r tickerToScheduledFindUnique) Delete() tickerToScheduledDeleteUnique { + var v tickerToScheduledDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -340097,17 +365004,17 @@ func (r tickerToJobRunsFindUnique) Delete() tickerToJobRunsDeleteUnique { return v } -type tickerToJobRunsDeleteUnique struct { +type tickerToScheduledDeleteUnique struct { query builder.Query } -func (r tickerToJobRunsDeleteUnique) ExtractQuery() builder.Query { +func (r tickerToScheduledDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tickerToJobRunsDeleteUnique) tickerModel() {} +func (p tickerToScheduledDeleteUnique) tickerModel() {} -func (r tickerToJobRunsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { +func (r tickerToScheduledDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -340115,30 +365022,30 @@ func (r tickerToJobRunsDeleteUnique) Exec(ctx context.Context) (*TickerModel, er return &v, nil } -func (r tickerToJobRunsDeleteUnique) Tx() TickerUniqueTxResult { +func (r tickerToScheduledDeleteUnique) Tx() TickerUniqueTxResult { v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToJobRunsFindFirst struct { +type tickerToScheduledFindFirst struct { query builder.Query } -func (r tickerToJobRunsFindFirst) getQuery() builder.Query { +func (r tickerToScheduledFindFirst) getQuery() builder.Query { return r.query } -func (r tickerToJobRunsFindFirst) ExtractQuery() builder.Query { +func (r tickerToScheduledFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tickerToJobRunsFindFirst) with() {} -func (r tickerToJobRunsFindFirst) tickerModel() {} -func (r tickerToJobRunsFindFirst) tickerRelation() {} +func (r tickerToScheduledFindFirst) with() {} +func (r tickerToScheduledFindFirst) tickerModel() {} +func (r tickerToScheduledFindFirst) tickerRelation() {} -func (r tickerToJobRunsFindFirst) With(params ...JobRunRelationWith) tickerToJobRunsFindFirst { +func (r tickerToScheduledFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) tickerToScheduledFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -340151,7 +365058,7 @@ func (r tickerToJobRunsFindFirst) With(params ...JobRunRelationWith) tickerToJob return r } -func (r tickerToJobRunsFindFirst) Select(params ...tickerPrismaFields) tickerToJobRunsFindFirst { +func (r tickerToScheduledFindFirst) Select(params ...tickerPrismaFields) tickerToScheduledFindFirst { var outputs []builder.Output for _, param := range params { @@ -340165,7 +365072,7 @@ func (r tickerToJobRunsFindFirst) Select(params ...tickerPrismaFields) tickerToJ return r } -func (r tickerToJobRunsFindFirst) Omit(params ...tickerPrismaFields) tickerToJobRunsFindFirst { +func (r tickerToScheduledFindFirst) Omit(params ...tickerPrismaFields) tickerToScheduledFindFirst { var outputs []builder.Output var raw []string @@ -340184,7 +365091,7 @@ func (r tickerToJobRunsFindFirst) Omit(params ...tickerPrismaFields) tickerToJob return r } -func (r tickerToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) tickerToJobRunsFindFirst { +func (r tickerToScheduledFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) tickerToScheduledFindFirst { var fields []builder.Field for _, param := range params { @@ -340204,7 +365111,7 @@ func (r tickerToJobRunsFindFirst) OrderBy(params ...JobRunOrderByParam) tickerTo return r } -func (r tickerToJobRunsFindFirst) Skip(count int) tickerToJobRunsFindFirst { +func (r tickerToScheduledFindFirst) Skip(count int) tickerToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -340212,7 +365119,7 @@ func (r tickerToJobRunsFindFirst) Skip(count int) tickerToJobRunsFindFirst { return r } -func (r tickerToJobRunsFindFirst) Take(count int) tickerToJobRunsFindFirst { +func (r tickerToScheduledFindFirst) Take(count int) tickerToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -340220,7 +365127,7 @@ func (r tickerToJobRunsFindFirst) Take(count int) tickerToJobRunsFindFirst { return r } -func (r tickerToJobRunsFindFirst) Cursor(cursor TickerCursorParam) tickerToJobRunsFindFirst { +func (r tickerToScheduledFindFirst) Cursor(cursor TickerCursorParam) tickerToScheduledFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -340228,7 +365135,7 @@ func (r tickerToJobRunsFindFirst) Cursor(cursor TickerCursorParam) tickerToJobRu return r } -func (r tickerToJobRunsFindFirst) Exec(ctx context.Context) ( +func (r tickerToScheduledFindFirst) Exec(ctx context.Context) ( *TickerModel, error, ) { @@ -340244,7 +365151,7 @@ func (r tickerToJobRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tickerToJobRunsFindFirst) ExecInner(ctx context.Context) ( +func (r tickerToScheduledFindFirst) ExecInner(ctx context.Context) ( *InnerTicker, error, ) { @@ -340260,23 +365167,23 @@ func (r tickerToJobRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tickerToJobRunsFindMany struct { +type tickerToScheduledFindMany struct { query builder.Query } -func (r tickerToJobRunsFindMany) getQuery() builder.Query { +func (r tickerToScheduledFindMany) getQuery() builder.Query { return r.query } -func (r tickerToJobRunsFindMany) ExtractQuery() builder.Query { +func (r tickerToScheduledFindMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToJobRunsFindMany) with() {} -func (r tickerToJobRunsFindMany) tickerModel() {} -func (r tickerToJobRunsFindMany) tickerRelation() {} +func (r tickerToScheduledFindMany) with() {} +func (r tickerToScheduledFindMany) tickerModel() {} +func (r tickerToScheduledFindMany) tickerRelation() {} -func (r tickerToJobRunsFindMany) With(params ...JobRunRelationWith) tickerToJobRunsFindMany { +func (r tickerToScheduledFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) tickerToScheduledFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -340289,7 +365196,7 @@ func (r tickerToJobRunsFindMany) With(params ...JobRunRelationWith) tickerToJobR return r } -func (r tickerToJobRunsFindMany) Select(params ...tickerPrismaFields) tickerToJobRunsFindMany { +func (r tickerToScheduledFindMany) Select(params ...tickerPrismaFields) tickerToScheduledFindMany { var outputs []builder.Output for _, param := range params { @@ -340303,7 +365210,7 @@ func (r tickerToJobRunsFindMany) Select(params ...tickerPrismaFields) tickerToJo return r } -func (r tickerToJobRunsFindMany) Omit(params ...tickerPrismaFields) tickerToJobRunsFindMany { +func (r tickerToScheduledFindMany) Omit(params ...tickerPrismaFields) tickerToScheduledFindMany { var outputs []builder.Output var raw []string @@ -340322,7 +365229,7 @@ func (r tickerToJobRunsFindMany) Omit(params ...tickerPrismaFields) tickerToJobR return r } -func (r tickerToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) tickerToJobRunsFindMany { +func (r tickerToScheduledFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) tickerToScheduledFindMany { var fields []builder.Field for _, param := range params { @@ -340342,7 +365249,7 @@ func (r tickerToJobRunsFindMany) OrderBy(params ...JobRunOrderByParam) tickerToJ return r } -func (r tickerToJobRunsFindMany) Skip(count int) tickerToJobRunsFindMany { +func (r tickerToScheduledFindMany) Skip(count int) tickerToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -340350,7 +365257,7 @@ func (r tickerToJobRunsFindMany) Skip(count int) tickerToJobRunsFindMany { return r } -func (r tickerToJobRunsFindMany) Take(count int) tickerToJobRunsFindMany { +func (r tickerToScheduledFindMany) Take(count int) tickerToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -340358,7 +365265,7 @@ func (r tickerToJobRunsFindMany) Take(count int) tickerToJobRunsFindMany { return r } -func (r tickerToJobRunsFindMany) Cursor(cursor TickerCursorParam) tickerToJobRunsFindMany { +func (r tickerToScheduledFindMany) Cursor(cursor TickerCursorParam) tickerToScheduledFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -340366,7 +365273,7 @@ func (r tickerToJobRunsFindMany) Cursor(cursor TickerCursorParam) tickerToJobRun return r } -func (r tickerToJobRunsFindMany) Exec(ctx context.Context) ( +func (r tickerToScheduledFindMany) Exec(ctx context.Context) ( []TickerModel, error, ) { @@ -340378,7 +365285,7 @@ func (r tickerToJobRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tickerToJobRunsFindMany) ExecInner(ctx context.Context) ( +func (r tickerToScheduledFindMany) ExecInner(ctx context.Context) ( []InnerTicker, error, ) { @@ -340390,14 +365297,14 @@ func (r tickerToJobRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToJobRunsFindMany) Update(params ...TickerSetParam) tickerToJobRunsUpdateMany { +func (r tickerToScheduledFindMany) Update(params ...TickerSetParam) tickerToScheduledUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Ticker" r.query.Outputs = countOutput - var v tickerToJobRunsUpdateMany + var v tickerToScheduledUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -340426,17 +365333,17 @@ func (r tickerToJobRunsFindMany) Update(params ...TickerSetParam) tickerToJobRun return v } -type tickerToJobRunsUpdateMany struct { +type tickerToScheduledUpdateMany struct { query builder.Query } -func (r tickerToJobRunsUpdateMany) ExtractQuery() builder.Query { +func (r tickerToScheduledUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToJobRunsUpdateMany) tickerModel() {} +func (r tickerToScheduledUpdateMany) tickerModel() {} -func (r tickerToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToScheduledUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -340444,15 +365351,15 @@ func (r tickerToJobRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tickerToJobRunsUpdateMany) Tx() TickerManyTxResult { +func (r tickerToScheduledUpdateMany) Tx() TickerManyTxResult { v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToJobRunsFindMany) Delete() tickerToJobRunsDeleteMany { - var v tickerToJobRunsDeleteMany +func (r tickerToScheduledFindMany) Delete() tickerToScheduledDeleteMany { + var v tickerToScheduledDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -340463,17 +365370,17 @@ func (r tickerToJobRunsFindMany) Delete() tickerToJobRunsDeleteMany { return v } -type tickerToJobRunsDeleteMany struct { +type tickerToScheduledDeleteMany struct { query builder.Query } -func (r tickerToJobRunsDeleteMany) ExtractQuery() builder.Query { +func (r tickerToScheduledDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tickerToJobRunsDeleteMany) tickerModel() {} +func (p tickerToScheduledDeleteMany) tickerModel() {} -func (r tickerToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToScheduledDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -340481,30 +365388,30 @@ func (r tickerToJobRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, erro return &v, nil } -func (r tickerToJobRunsDeleteMany) Tx() TickerManyTxResult { +func (r tickerToScheduledDeleteMany) Tx() TickerManyTxResult { v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToStepRunsFindUnique struct { +type tickerToGroupKeyRunsFindUnique struct { query builder.Query } -func (r tickerToStepRunsFindUnique) getQuery() builder.Query { +func (r tickerToGroupKeyRunsFindUnique) getQuery() builder.Query { return r.query } -func (r tickerToStepRunsFindUnique) ExtractQuery() builder.Query { +func (r tickerToGroupKeyRunsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToStepRunsFindUnique) with() {} -func (r tickerToStepRunsFindUnique) tickerModel() {} -func (r tickerToStepRunsFindUnique) tickerRelation() {} +func (r tickerToGroupKeyRunsFindUnique) with() {} +func (r tickerToGroupKeyRunsFindUnique) tickerModel() {} +func (r tickerToGroupKeyRunsFindUnique) tickerRelation() {} -func (r tickerToStepRunsFindUnique) With(params ...StepRunRelationWith) tickerToStepRunsFindUnique { +func (r tickerToGroupKeyRunsFindUnique) With(params ...GetGroupKeyRunRelationWith) tickerToGroupKeyRunsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -340517,7 +365424,7 @@ func (r tickerToStepRunsFindUnique) With(params ...StepRunRelationWith) tickerTo return r } -func (r tickerToStepRunsFindUnique) Select(params ...tickerPrismaFields) tickerToStepRunsFindUnique { +func (r tickerToGroupKeyRunsFindUnique) Select(params ...tickerPrismaFields) tickerToGroupKeyRunsFindUnique { var outputs []builder.Output for _, param := range params { @@ -340531,7 +365438,7 @@ func (r tickerToStepRunsFindUnique) Select(params ...tickerPrismaFields) tickerT return r } -func (r tickerToStepRunsFindUnique) Omit(params ...tickerPrismaFields) tickerToStepRunsFindUnique { +func (r tickerToGroupKeyRunsFindUnique) Omit(params ...tickerPrismaFields) tickerToGroupKeyRunsFindUnique { var outputs []builder.Output var raw []string @@ -340550,7 +365457,7 @@ func (r tickerToStepRunsFindUnique) Omit(params ...tickerPrismaFields) tickerToS return r } -func (r tickerToStepRunsFindUnique) Exec(ctx context.Context) ( +func (r tickerToGroupKeyRunsFindUnique) Exec(ctx context.Context) ( *TickerModel, error, ) { @@ -340566,7 +365473,7 @@ func (r tickerToStepRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tickerToStepRunsFindUnique) ExecInner(ctx context.Context) ( +func (r tickerToGroupKeyRunsFindUnique) ExecInner(ctx context.Context) ( *InnerTicker, error, ) { @@ -340582,12 +365489,12 @@ func (r tickerToStepRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToStepRunsFindUnique) Update(params ...TickerSetParam) tickerToStepRunsUpdateUnique { +func (r tickerToGroupKeyRunsFindUnique) Update(params ...TickerSetParam) tickerToGroupKeyRunsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Ticker" - var v tickerToStepRunsUpdateUnique + var v tickerToGroupKeyRunsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -340616,17 +365523,17 @@ func (r tickerToStepRunsFindUnique) Update(params ...TickerSetParam) tickerToSte return v } -type tickerToStepRunsUpdateUnique struct { +type tickerToGroupKeyRunsUpdateUnique struct { query builder.Query } -func (r tickerToStepRunsUpdateUnique) ExtractQuery() builder.Query { +func (r tickerToGroupKeyRunsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToStepRunsUpdateUnique) tickerModel() {} +func (r tickerToGroupKeyRunsUpdateUnique) tickerModel() {} -func (r tickerToStepRunsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { +func (r tickerToGroupKeyRunsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -340634,15 +365541,15 @@ func (r tickerToStepRunsUpdateUnique) Exec(ctx context.Context) (*TickerModel, e return &v, nil } -func (r tickerToStepRunsUpdateUnique) Tx() TickerUniqueTxResult { +func (r tickerToGroupKeyRunsUpdateUnique) Tx() TickerUniqueTxResult { v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToStepRunsFindUnique) Delete() tickerToStepRunsDeleteUnique { - var v tickerToStepRunsDeleteUnique +func (r tickerToGroupKeyRunsFindUnique) Delete() tickerToGroupKeyRunsDeleteUnique { + var v tickerToGroupKeyRunsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -340651,17 +365558,17 @@ func (r tickerToStepRunsFindUnique) Delete() tickerToStepRunsDeleteUnique { return v } -type tickerToStepRunsDeleteUnique struct { +type tickerToGroupKeyRunsDeleteUnique struct { query builder.Query } -func (r tickerToStepRunsDeleteUnique) ExtractQuery() builder.Query { +func (r tickerToGroupKeyRunsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tickerToStepRunsDeleteUnique) tickerModel() {} +func (p tickerToGroupKeyRunsDeleteUnique) tickerModel() {} -func (r tickerToStepRunsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { +func (r tickerToGroupKeyRunsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -340669,30 +365576,30 @@ func (r tickerToStepRunsDeleteUnique) Exec(ctx context.Context) (*TickerModel, e return &v, nil } -func (r tickerToStepRunsDeleteUnique) Tx() TickerUniqueTxResult { +func (r tickerToGroupKeyRunsDeleteUnique) Tx() TickerUniqueTxResult { v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToStepRunsFindFirst struct { +type tickerToGroupKeyRunsFindFirst struct { query builder.Query } -func (r tickerToStepRunsFindFirst) getQuery() builder.Query { +func (r tickerToGroupKeyRunsFindFirst) getQuery() builder.Query { return r.query } -func (r tickerToStepRunsFindFirst) ExtractQuery() builder.Query { +func (r tickerToGroupKeyRunsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tickerToStepRunsFindFirst) with() {} -func (r tickerToStepRunsFindFirst) tickerModel() {} -func (r tickerToStepRunsFindFirst) tickerRelation() {} +func (r tickerToGroupKeyRunsFindFirst) with() {} +func (r tickerToGroupKeyRunsFindFirst) tickerModel() {} +func (r tickerToGroupKeyRunsFindFirst) tickerRelation() {} -func (r tickerToStepRunsFindFirst) With(params ...StepRunRelationWith) tickerToStepRunsFindFirst { +func (r tickerToGroupKeyRunsFindFirst) With(params ...GetGroupKeyRunRelationWith) tickerToGroupKeyRunsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -340705,7 +365612,7 @@ func (r tickerToStepRunsFindFirst) With(params ...StepRunRelationWith) tickerToS return r } -func (r tickerToStepRunsFindFirst) Select(params ...tickerPrismaFields) tickerToStepRunsFindFirst { +func (r tickerToGroupKeyRunsFindFirst) Select(params ...tickerPrismaFields) tickerToGroupKeyRunsFindFirst { var outputs []builder.Output for _, param := range params { @@ -340719,7 +365626,7 @@ func (r tickerToStepRunsFindFirst) Select(params ...tickerPrismaFields) tickerTo return r } -func (r tickerToStepRunsFindFirst) Omit(params ...tickerPrismaFields) tickerToStepRunsFindFirst { +func (r tickerToGroupKeyRunsFindFirst) Omit(params ...tickerPrismaFields) tickerToGroupKeyRunsFindFirst { var outputs []builder.Output var raw []string @@ -340738,7 +365645,7 @@ func (r tickerToStepRunsFindFirst) Omit(params ...tickerPrismaFields) tickerToSt return r } -func (r tickerToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) tickerToStepRunsFindFirst { +func (r tickerToGroupKeyRunsFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) tickerToGroupKeyRunsFindFirst { var fields []builder.Field for _, param := range params { @@ -340758,7 +365665,7 @@ func (r tickerToStepRunsFindFirst) OrderBy(params ...StepRunOrderByParam) ticker return r } -func (r tickerToStepRunsFindFirst) Skip(count int) tickerToStepRunsFindFirst { +func (r tickerToGroupKeyRunsFindFirst) Skip(count int) tickerToGroupKeyRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -340766,7 +365673,7 @@ func (r tickerToStepRunsFindFirst) Skip(count int) tickerToStepRunsFindFirst { return r } -func (r tickerToStepRunsFindFirst) Take(count int) tickerToStepRunsFindFirst { +func (r tickerToGroupKeyRunsFindFirst) Take(count int) tickerToGroupKeyRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -340774,7 +365681,7 @@ func (r tickerToStepRunsFindFirst) Take(count int) tickerToStepRunsFindFirst { return r } -func (r tickerToStepRunsFindFirst) Cursor(cursor TickerCursorParam) tickerToStepRunsFindFirst { +func (r tickerToGroupKeyRunsFindFirst) Cursor(cursor TickerCursorParam) tickerToGroupKeyRunsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -340782,7 +365689,7 @@ func (r tickerToStepRunsFindFirst) Cursor(cursor TickerCursorParam) tickerToStep return r } -func (r tickerToStepRunsFindFirst) Exec(ctx context.Context) ( +func (r tickerToGroupKeyRunsFindFirst) Exec(ctx context.Context) ( *TickerModel, error, ) { @@ -340798,7 +365705,7 @@ func (r tickerToStepRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tickerToStepRunsFindFirst) ExecInner(ctx context.Context) ( +func (r tickerToGroupKeyRunsFindFirst) ExecInner(ctx context.Context) ( *InnerTicker, error, ) { @@ -340814,23 +365721,23 @@ func (r tickerToStepRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tickerToStepRunsFindMany struct { +type tickerToGroupKeyRunsFindMany struct { query builder.Query } -func (r tickerToStepRunsFindMany) getQuery() builder.Query { +func (r tickerToGroupKeyRunsFindMany) getQuery() builder.Query { return r.query } -func (r tickerToStepRunsFindMany) ExtractQuery() builder.Query { +func (r tickerToGroupKeyRunsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToStepRunsFindMany) with() {} -func (r tickerToStepRunsFindMany) tickerModel() {} -func (r tickerToStepRunsFindMany) tickerRelation() {} +func (r tickerToGroupKeyRunsFindMany) with() {} +func (r tickerToGroupKeyRunsFindMany) tickerModel() {} +func (r tickerToGroupKeyRunsFindMany) tickerRelation() {} -func (r tickerToStepRunsFindMany) With(params ...StepRunRelationWith) tickerToStepRunsFindMany { +func (r tickerToGroupKeyRunsFindMany) With(params ...GetGroupKeyRunRelationWith) tickerToGroupKeyRunsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -340843,7 +365750,7 @@ func (r tickerToStepRunsFindMany) With(params ...StepRunRelationWith) tickerToSt return r } -func (r tickerToStepRunsFindMany) Select(params ...tickerPrismaFields) tickerToStepRunsFindMany { +func (r tickerToGroupKeyRunsFindMany) Select(params ...tickerPrismaFields) tickerToGroupKeyRunsFindMany { var outputs []builder.Output for _, param := range params { @@ -340857,7 +365764,7 @@ func (r tickerToStepRunsFindMany) Select(params ...tickerPrismaFields) tickerToS return r } -func (r tickerToStepRunsFindMany) Omit(params ...tickerPrismaFields) tickerToStepRunsFindMany { +func (r tickerToGroupKeyRunsFindMany) Omit(params ...tickerPrismaFields) tickerToGroupKeyRunsFindMany { var outputs []builder.Output var raw []string @@ -340876,7 +365783,7 @@ func (r tickerToStepRunsFindMany) Omit(params ...tickerPrismaFields) tickerToSte return r } -func (r tickerToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) tickerToStepRunsFindMany { +func (r tickerToGroupKeyRunsFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) tickerToGroupKeyRunsFindMany { var fields []builder.Field for _, param := range params { @@ -340896,7 +365803,7 @@ func (r tickerToStepRunsFindMany) OrderBy(params ...StepRunOrderByParam) tickerT return r } -func (r tickerToStepRunsFindMany) Skip(count int) tickerToStepRunsFindMany { +func (r tickerToGroupKeyRunsFindMany) Skip(count int) tickerToGroupKeyRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -340904,7 +365811,7 @@ func (r tickerToStepRunsFindMany) Skip(count int) tickerToStepRunsFindMany { return r } -func (r tickerToStepRunsFindMany) Take(count int) tickerToStepRunsFindMany { +func (r tickerToGroupKeyRunsFindMany) Take(count int) tickerToGroupKeyRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -340912,7 +365819,7 @@ func (r tickerToStepRunsFindMany) Take(count int) tickerToStepRunsFindMany { return r } -func (r tickerToStepRunsFindMany) Cursor(cursor TickerCursorParam) tickerToStepRunsFindMany { +func (r tickerToGroupKeyRunsFindMany) Cursor(cursor TickerCursorParam) tickerToGroupKeyRunsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -340920,7 +365827,7 @@ func (r tickerToStepRunsFindMany) Cursor(cursor TickerCursorParam) tickerToStepR return r } -func (r tickerToStepRunsFindMany) Exec(ctx context.Context) ( +func (r tickerToGroupKeyRunsFindMany) Exec(ctx context.Context) ( []TickerModel, error, ) { @@ -340932,7 +365839,7 @@ func (r tickerToStepRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tickerToStepRunsFindMany) ExecInner(ctx context.Context) ( +func (r tickerToGroupKeyRunsFindMany) ExecInner(ctx context.Context) ( []InnerTicker, error, ) { @@ -340944,14 +365851,14 @@ func (r tickerToStepRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToStepRunsFindMany) Update(params ...TickerSetParam) tickerToStepRunsUpdateMany { +func (r tickerToGroupKeyRunsFindMany) Update(params ...TickerSetParam) tickerToGroupKeyRunsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Ticker" r.query.Outputs = countOutput - var v tickerToStepRunsUpdateMany + var v tickerToGroupKeyRunsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -340980,17 +365887,17 @@ func (r tickerToStepRunsFindMany) Update(params ...TickerSetParam) tickerToStepR return v } -type tickerToStepRunsUpdateMany struct { +type tickerToGroupKeyRunsUpdateMany struct { query builder.Query } -func (r tickerToStepRunsUpdateMany) ExtractQuery() builder.Query { +func (r tickerToGroupKeyRunsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToStepRunsUpdateMany) tickerModel() {} +func (r tickerToGroupKeyRunsUpdateMany) tickerModel() {} -func (r tickerToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToGroupKeyRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -340998,15 +365905,15 @@ func (r tickerToStepRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tickerToStepRunsUpdateMany) Tx() TickerManyTxResult { +func (r tickerToGroupKeyRunsUpdateMany) Tx() TickerManyTxResult { v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToStepRunsFindMany) Delete() tickerToStepRunsDeleteMany { - var v tickerToStepRunsDeleteMany +func (r tickerToGroupKeyRunsFindMany) Delete() tickerToGroupKeyRunsDeleteMany { + var v tickerToGroupKeyRunsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -341017,17 +365924,17 @@ func (r tickerToStepRunsFindMany) Delete() tickerToStepRunsDeleteMany { return v } -type tickerToStepRunsDeleteMany struct { +type tickerToGroupKeyRunsDeleteMany struct { query builder.Query } -func (r tickerToStepRunsDeleteMany) ExtractQuery() builder.Query { +func (r tickerToGroupKeyRunsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tickerToStepRunsDeleteMany) tickerModel() {} +func (p tickerToGroupKeyRunsDeleteMany) tickerModel() {} -func (r tickerToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToGroupKeyRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -341035,30 +365942,30 @@ func (r tickerToStepRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, err return &v, nil } -func (r tickerToStepRunsDeleteMany) Tx() TickerManyTxResult { +func (r tickerToGroupKeyRunsDeleteMany) Tx() TickerManyTxResult { v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToCronsFindUnique struct { +type tickerToTenantAlertsFindUnique struct { query builder.Query } -func (r tickerToCronsFindUnique) getQuery() builder.Query { +func (r tickerToTenantAlertsFindUnique) getQuery() builder.Query { return r.query } -func (r tickerToCronsFindUnique) ExtractQuery() builder.Query { +func (r tickerToTenantAlertsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToCronsFindUnique) with() {} -func (r tickerToCronsFindUnique) tickerModel() {} -func (r tickerToCronsFindUnique) tickerRelation() {} +func (r tickerToTenantAlertsFindUnique) with() {} +func (r tickerToTenantAlertsFindUnique) tickerModel() {} +func (r tickerToTenantAlertsFindUnique) tickerRelation() {} -func (r tickerToCronsFindUnique) With(params ...WorkflowTriggerCronRefRelationWith) tickerToCronsFindUnique { +func (r tickerToTenantAlertsFindUnique) With(params ...TenantAlertingSettingsRelationWith) tickerToTenantAlertsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -341071,7 +365978,7 @@ func (r tickerToCronsFindUnique) With(params ...WorkflowTriggerCronRefRelationWi return r } -func (r tickerToCronsFindUnique) Select(params ...tickerPrismaFields) tickerToCronsFindUnique { +func (r tickerToTenantAlertsFindUnique) Select(params ...tickerPrismaFields) tickerToTenantAlertsFindUnique { var outputs []builder.Output for _, param := range params { @@ -341085,7 +365992,7 @@ func (r tickerToCronsFindUnique) Select(params ...tickerPrismaFields) tickerToCr return r } -func (r tickerToCronsFindUnique) Omit(params ...tickerPrismaFields) tickerToCronsFindUnique { +func (r tickerToTenantAlertsFindUnique) Omit(params ...tickerPrismaFields) tickerToTenantAlertsFindUnique { var outputs []builder.Output var raw []string @@ -341104,7 +366011,7 @@ func (r tickerToCronsFindUnique) Omit(params ...tickerPrismaFields) tickerToCron return r } -func (r tickerToCronsFindUnique) Exec(ctx context.Context) ( +func (r tickerToTenantAlertsFindUnique) Exec(ctx context.Context) ( *TickerModel, error, ) { @@ -341120,7 +366027,7 @@ func (r tickerToCronsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tickerToCronsFindUnique) ExecInner(ctx context.Context) ( +func (r tickerToTenantAlertsFindUnique) ExecInner(ctx context.Context) ( *InnerTicker, error, ) { @@ -341136,12 +366043,12 @@ func (r tickerToCronsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToCronsFindUnique) Update(params ...TickerSetParam) tickerToCronsUpdateUnique { +func (r tickerToTenantAlertsFindUnique) Update(params ...TickerSetParam) tickerToTenantAlertsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Ticker" - var v tickerToCronsUpdateUnique + var v tickerToTenantAlertsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -341170,17 +366077,17 @@ func (r tickerToCronsFindUnique) Update(params ...TickerSetParam) tickerToCronsU return v } -type tickerToCronsUpdateUnique struct { +type tickerToTenantAlertsUpdateUnique struct { query builder.Query } -func (r tickerToCronsUpdateUnique) ExtractQuery() builder.Query { +func (r tickerToTenantAlertsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToCronsUpdateUnique) tickerModel() {} +func (r tickerToTenantAlertsUpdateUnique) tickerModel() {} -func (r tickerToCronsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { +func (r tickerToTenantAlertsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -341188,15 +366095,15 @@ func (r tickerToCronsUpdateUnique) Exec(ctx context.Context) (*TickerModel, erro return &v, nil } -func (r tickerToCronsUpdateUnique) Tx() TickerUniqueTxResult { +func (r tickerToTenantAlertsUpdateUnique) Tx() TickerUniqueTxResult { v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToCronsFindUnique) Delete() tickerToCronsDeleteUnique { - var v tickerToCronsDeleteUnique +func (r tickerToTenantAlertsFindUnique) Delete() tickerToTenantAlertsDeleteUnique { + var v tickerToTenantAlertsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -341205,17 +366112,17 @@ func (r tickerToCronsFindUnique) Delete() tickerToCronsDeleteUnique { return v } -type tickerToCronsDeleteUnique struct { +type tickerToTenantAlertsDeleteUnique struct { query builder.Query } -func (r tickerToCronsDeleteUnique) ExtractQuery() builder.Query { +func (r tickerToTenantAlertsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tickerToCronsDeleteUnique) tickerModel() {} +func (p tickerToTenantAlertsDeleteUnique) tickerModel() {} -func (r tickerToCronsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { +func (r tickerToTenantAlertsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -341223,30 +366130,30 @@ func (r tickerToCronsDeleteUnique) Exec(ctx context.Context) (*TickerModel, erro return &v, nil } -func (r tickerToCronsDeleteUnique) Tx() TickerUniqueTxResult { +func (r tickerToTenantAlertsDeleteUnique) Tx() TickerUniqueTxResult { v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToCronsFindFirst struct { +type tickerToTenantAlertsFindFirst struct { query builder.Query } -func (r tickerToCronsFindFirst) getQuery() builder.Query { +func (r tickerToTenantAlertsFindFirst) getQuery() builder.Query { return r.query } -func (r tickerToCronsFindFirst) ExtractQuery() builder.Query { +func (r tickerToTenantAlertsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tickerToCronsFindFirst) with() {} -func (r tickerToCronsFindFirst) tickerModel() {} -func (r tickerToCronsFindFirst) tickerRelation() {} +func (r tickerToTenantAlertsFindFirst) with() {} +func (r tickerToTenantAlertsFindFirst) tickerModel() {} +func (r tickerToTenantAlertsFindFirst) tickerRelation() {} -func (r tickerToCronsFindFirst) With(params ...WorkflowTriggerCronRefRelationWith) tickerToCronsFindFirst { +func (r tickerToTenantAlertsFindFirst) With(params ...TenantAlertingSettingsRelationWith) tickerToTenantAlertsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -341259,7 +366166,7 @@ func (r tickerToCronsFindFirst) With(params ...WorkflowTriggerCronRefRelationWit return r } -func (r tickerToCronsFindFirst) Select(params ...tickerPrismaFields) tickerToCronsFindFirst { +func (r tickerToTenantAlertsFindFirst) Select(params ...tickerPrismaFields) tickerToTenantAlertsFindFirst { var outputs []builder.Output for _, param := range params { @@ -341273,7 +366180,7 @@ func (r tickerToCronsFindFirst) Select(params ...tickerPrismaFields) tickerToCro return r } -func (r tickerToCronsFindFirst) Omit(params ...tickerPrismaFields) tickerToCronsFindFirst { +func (r tickerToTenantAlertsFindFirst) Omit(params ...tickerPrismaFields) tickerToTenantAlertsFindFirst { var outputs []builder.Output var raw []string @@ -341292,7 +366199,7 @@ func (r tickerToCronsFindFirst) Omit(params ...tickerPrismaFields) tickerToCrons return r } -func (r tickerToCronsFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) tickerToCronsFindFirst { +func (r tickerToTenantAlertsFindFirst) OrderBy(params ...TenantAlertingSettingsOrderByParam) tickerToTenantAlertsFindFirst { var fields []builder.Field for _, param := range params { @@ -341312,7 +366219,7 @@ func (r tickerToCronsFindFirst) OrderBy(params ...WorkflowTriggerCronRefOrderByP return r } -func (r tickerToCronsFindFirst) Skip(count int) tickerToCronsFindFirst { +func (r tickerToTenantAlertsFindFirst) Skip(count int) tickerToTenantAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -341320,7 +366227,7 @@ func (r tickerToCronsFindFirst) Skip(count int) tickerToCronsFindFirst { return r } -func (r tickerToCronsFindFirst) Take(count int) tickerToCronsFindFirst { +func (r tickerToTenantAlertsFindFirst) Take(count int) tickerToTenantAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -341328,7 +366235,7 @@ func (r tickerToCronsFindFirst) Take(count int) tickerToCronsFindFirst { return r } -func (r tickerToCronsFindFirst) Cursor(cursor TickerCursorParam) tickerToCronsFindFirst { +func (r tickerToTenantAlertsFindFirst) Cursor(cursor TickerCursorParam) tickerToTenantAlertsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -341336,7 +366243,7 @@ func (r tickerToCronsFindFirst) Cursor(cursor TickerCursorParam) tickerToCronsFi return r } -func (r tickerToCronsFindFirst) Exec(ctx context.Context) ( +func (r tickerToTenantAlertsFindFirst) Exec(ctx context.Context) ( *TickerModel, error, ) { @@ -341352,7 +366259,7 @@ func (r tickerToCronsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tickerToCronsFindFirst) ExecInner(ctx context.Context) ( +func (r tickerToTenantAlertsFindFirst) ExecInner(ctx context.Context) ( *InnerTicker, error, ) { @@ -341368,23 +366275,23 @@ func (r tickerToCronsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tickerToCronsFindMany struct { +type tickerToTenantAlertsFindMany struct { query builder.Query } -func (r tickerToCronsFindMany) getQuery() builder.Query { +func (r tickerToTenantAlertsFindMany) getQuery() builder.Query { return r.query } -func (r tickerToCronsFindMany) ExtractQuery() builder.Query { +func (r tickerToTenantAlertsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToCronsFindMany) with() {} -func (r tickerToCronsFindMany) tickerModel() {} -func (r tickerToCronsFindMany) tickerRelation() {} +func (r tickerToTenantAlertsFindMany) with() {} +func (r tickerToTenantAlertsFindMany) tickerModel() {} +func (r tickerToTenantAlertsFindMany) tickerRelation() {} -func (r tickerToCronsFindMany) With(params ...WorkflowTriggerCronRefRelationWith) tickerToCronsFindMany { +func (r tickerToTenantAlertsFindMany) With(params ...TenantAlertingSettingsRelationWith) tickerToTenantAlertsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -341397,7 +366304,7 @@ func (r tickerToCronsFindMany) With(params ...WorkflowTriggerCronRefRelationWith return r } -func (r tickerToCronsFindMany) Select(params ...tickerPrismaFields) tickerToCronsFindMany { +func (r tickerToTenantAlertsFindMany) Select(params ...tickerPrismaFields) tickerToTenantAlertsFindMany { var outputs []builder.Output for _, param := range params { @@ -341411,7 +366318,7 @@ func (r tickerToCronsFindMany) Select(params ...tickerPrismaFields) tickerToCron return r } -func (r tickerToCronsFindMany) Omit(params ...tickerPrismaFields) tickerToCronsFindMany { +func (r tickerToTenantAlertsFindMany) Omit(params ...tickerPrismaFields) tickerToTenantAlertsFindMany { var outputs []builder.Output var raw []string @@ -341430,7 +366337,7 @@ func (r tickerToCronsFindMany) Omit(params ...tickerPrismaFields) tickerToCronsF return r } -func (r tickerToCronsFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByParam) tickerToCronsFindMany { +func (r tickerToTenantAlertsFindMany) OrderBy(params ...TenantAlertingSettingsOrderByParam) tickerToTenantAlertsFindMany { var fields []builder.Field for _, param := range params { @@ -341450,7 +366357,7 @@ func (r tickerToCronsFindMany) OrderBy(params ...WorkflowTriggerCronRefOrderByPa return r } -func (r tickerToCronsFindMany) Skip(count int) tickerToCronsFindMany { +func (r tickerToTenantAlertsFindMany) Skip(count int) tickerToTenantAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -341458,7 +366365,7 @@ func (r tickerToCronsFindMany) Skip(count int) tickerToCronsFindMany { return r } -func (r tickerToCronsFindMany) Take(count int) tickerToCronsFindMany { +func (r tickerToTenantAlertsFindMany) Take(count int) tickerToTenantAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -341466,7 +366373,7 @@ func (r tickerToCronsFindMany) Take(count int) tickerToCronsFindMany { return r } -func (r tickerToCronsFindMany) Cursor(cursor TickerCursorParam) tickerToCronsFindMany { +func (r tickerToTenantAlertsFindMany) Cursor(cursor TickerCursorParam) tickerToTenantAlertsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -341474,7 +366381,7 @@ func (r tickerToCronsFindMany) Cursor(cursor TickerCursorParam) tickerToCronsFin return r } -func (r tickerToCronsFindMany) Exec(ctx context.Context) ( +func (r tickerToTenantAlertsFindMany) Exec(ctx context.Context) ( []TickerModel, error, ) { @@ -341486,7 +366393,7 @@ func (r tickerToCronsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tickerToCronsFindMany) ExecInner(ctx context.Context) ( +func (r tickerToTenantAlertsFindMany) ExecInner(ctx context.Context) ( []InnerTicker, error, ) { @@ -341498,14 +366405,14 @@ func (r tickerToCronsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToCronsFindMany) Update(params ...TickerSetParam) tickerToCronsUpdateMany { +func (r tickerToTenantAlertsFindMany) Update(params ...TickerSetParam) tickerToTenantAlertsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Ticker" r.query.Outputs = countOutput - var v tickerToCronsUpdateMany + var v tickerToTenantAlertsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -341534,17 +366441,17 @@ func (r tickerToCronsFindMany) Update(params ...TickerSetParam) tickerToCronsUpd return v } -type tickerToCronsUpdateMany struct { +type tickerToTenantAlertsUpdateMany struct { query builder.Query } -func (r tickerToCronsUpdateMany) ExtractQuery() builder.Query { +func (r tickerToTenantAlertsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToCronsUpdateMany) tickerModel() {} +func (r tickerToTenantAlertsUpdateMany) tickerModel() {} -func (r tickerToCronsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToTenantAlertsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -341552,15 +366459,15 @@ func (r tickerToCronsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tickerToCronsUpdateMany) Tx() TickerManyTxResult { +func (r tickerToTenantAlertsUpdateMany) Tx() TickerManyTxResult { v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToCronsFindMany) Delete() tickerToCronsDeleteMany { - var v tickerToCronsDeleteMany +func (r tickerToTenantAlertsFindMany) Delete() tickerToTenantAlertsDeleteMany { + var v tickerToTenantAlertsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -341571,17 +366478,17 @@ func (r tickerToCronsFindMany) Delete() tickerToCronsDeleteMany { return v } -type tickerToCronsDeleteMany struct { +type tickerToTenantAlertsDeleteMany struct { query builder.Query } -func (r tickerToCronsDeleteMany) ExtractQuery() builder.Query { +func (r tickerToTenantAlertsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tickerToCronsDeleteMany) tickerModel() {} +func (p tickerToTenantAlertsDeleteMany) tickerModel() {} -func (r tickerToCronsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerToTenantAlertsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -341589,30 +366496,52 @@ func (r tickerToCronsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) return &v, nil } -func (r tickerToCronsDeleteMany) Tx() TickerManyTxResult { +func (r tickerToTenantAlertsDeleteMany) Tx() TickerManyTxResult { v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToScheduledFindUnique struct { +type tickerFindUnique struct { query builder.Query } -func (r tickerToScheduledFindUnique) getQuery() builder.Query { +func (r tickerFindUnique) getQuery() builder.Query { return r.query } -func (r tickerToScheduledFindUnique) ExtractQuery() builder.Query { +func (r tickerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToScheduledFindUnique) with() {} -func (r tickerToScheduledFindUnique) tickerModel() {} -func (r tickerToScheduledFindUnique) tickerRelation() {} +func (r tickerFindUnique) with() {} +func (r tickerFindUnique) tickerModel() {} +func (r tickerFindUnique) tickerRelation() {} -func (r tickerToScheduledFindUnique) With(params ...WorkflowTriggerScheduledRefRelationWith) tickerToScheduledFindUnique { +func (r tickerActions) FindUnique( + params TickerEqualsUniqueWhereParam, +) tickerFindUnique { + var v tickerFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "Ticker" + v.query.Outputs = tickerOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r tickerFindUnique) With(params ...TickerRelationWith) tickerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -341625,7 +366554,7 @@ func (r tickerToScheduledFindUnique) With(params ...WorkflowTriggerScheduledRefR return r } -func (r tickerToScheduledFindUnique) Select(params ...tickerPrismaFields) tickerToScheduledFindUnique { +func (r tickerFindUnique) Select(params ...tickerPrismaFields) tickerFindUnique { var outputs []builder.Output for _, param := range params { @@ -341639,7 +366568,7 @@ func (r tickerToScheduledFindUnique) Select(params ...tickerPrismaFields) ticker return r } -func (r tickerToScheduledFindUnique) Omit(params ...tickerPrismaFields) tickerToScheduledFindUnique { +func (r tickerFindUnique) Omit(params ...tickerPrismaFields) tickerFindUnique { var outputs []builder.Output var raw []string @@ -341658,7 +366587,7 @@ func (r tickerToScheduledFindUnique) Omit(params ...tickerPrismaFields) tickerTo return r } -func (r tickerToScheduledFindUnique) Exec(ctx context.Context) ( +func (r tickerFindUnique) Exec(ctx context.Context) ( *TickerModel, error, ) { @@ -341674,7 +366603,7 @@ func (r tickerToScheduledFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tickerToScheduledFindUnique) ExecInner(ctx context.Context) ( +func (r tickerFindUnique) ExecInner(ctx context.Context) ( *InnerTicker, error, ) { @@ -341690,12 +366619,12 @@ func (r tickerToScheduledFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToScheduledFindUnique) Update(params ...TickerSetParam) tickerToScheduledUpdateUnique { +func (r tickerFindUnique) Update(params ...TickerSetParam) tickerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" r.query.Model = "Ticker" - var v tickerToScheduledUpdateUnique + var v tickerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -341724,17 +366653,17 @@ func (r tickerToScheduledFindUnique) Update(params ...TickerSetParam) tickerToSc return v } -type tickerToScheduledUpdateUnique struct { +type tickerUpdateUnique struct { query builder.Query } -func (r tickerToScheduledUpdateUnique) ExtractQuery() builder.Query { +func (r tickerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToScheduledUpdateUnique) tickerModel() {} +func (r tickerUpdateUnique) tickerModel() {} -func (r tickerToScheduledUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { +func (r tickerUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -341742,15 +366671,15 @@ func (r tickerToScheduledUpdateUnique) Exec(ctx context.Context) (*TickerModel, return &v, nil } -func (r tickerToScheduledUpdateUnique) Tx() TickerUniqueTxResult { +func (r tickerUpdateUnique) Tx() TickerUniqueTxResult { v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToScheduledFindUnique) Delete() tickerToScheduledDeleteUnique { - var v tickerToScheduledDeleteUnique +func (r tickerFindUnique) Delete() tickerDeleteUnique { + var v tickerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" @@ -341759,17 +366688,17 @@ func (r tickerToScheduledFindUnique) Delete() tickerToScheduledDeleteUnique { return v } -type tickerToScheduledDeleteUnique struct { +type tickerDeleteUnique struct { query builder.Query } -func (r tickerToScheduledDeleteUnique) ExtractQuery() builder.Query { +func (r tickerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tickerToScheduledDeleteUnique) tickerModel() {} +func (p tickerDeleteUnique) tickerModel() {} -func (r tickerToScheduledDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { +func (r tickerDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { var v TickerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -341777,30 +366706,67 @@ func (r tickerToScheduledDeleteUnique) Exec(ctx context.Context) (*TickerModel, return &v, nil } -func (r tickerToScheduledDeleteUnique) Tx() TickerUniqueTxResult { +func (r tickerDeleteUnique) Tx() TickerUniqueTxResult { v := newTickerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToScheduledFindFirst struct { +type tickerFindFirst struct { query builder.Query } -func (r tickerToScheduledFindFirst) getQuery() builder.Query { +func (r tickerFindFirst) getQuery() builder.Query { return r.query } -func (r tickerToScheduledFindFirst) ExtractQuery() builder.Query { +func (r tickerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tickerToScheduledFindFirst) with() {} -func (r tickerToScheduledFindFirst) tickerModel() {} -func (r tickerToScheduledFindFirst) tickerRelation() {} +func (r tickerFindFirst) with() {} +func (r tickerFindFirst) tickerModel() {} +func (r tickerFindFirst) tickerRelation() {} -func (r tickerToScheduledFindFirst) With(params ...WorkflowTriggerScheduledRefRelationWith) tickerToScheduledFindFirst { +func (r tickerActions) FindFirst( + params ...TickerWhereParam, +) tickerFindFirst { + var v tickerFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "Ticker" + v.query.Outputs = tickerOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tickerFindFirst) With(params ...TickerRelationWith) tickerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -341813,7 +366779,7 @@ func (r tickerToScheduledFindFirst) With(params ...WorkflowTriggerScheduledRefRe return r } -func (r tickerToScheduledFindFirst) Select(params ...tickerPrismaFields) tickerToScheduledFindFirst { +func (r tickerFindFirst) Select(params ...tickerPrismaFields) tickerFindFirst { var outputs []builder.Output for _, param := range params { @@ -341827,7 +366793,7 @@ func (r tickerToScheduledFindFirst) Select(params ...tickerPrismaFields) tickerT return r } -func (r tickerToScheduledFindFirst) Omit(params ...tickerPrismaFields) tickerToScheduledFindFirst { +func (r tickerFindFirst) Omit(params ...tickerPrismaFields) tickerFindFirst { var outputs []builder.Output var raw []string @@ -341846,7 +366812,7 @@ func (r tickerToScheduledFindFirst) Omit(params ...tickerPrismaFields) tickerToS return r } -func (r tickerToScheduledFindFirst) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) tickerToScheduledFindFirst { +func (r tickerFindFirst) OrderBy(params ...TickerOrderByParam) tickerFindFirst { var fields []builder.Field for _, param := range params { @@ -341866,7 +366832,7 @@ func (r tickerToScheduledFindFirst) OrderBy(params ...WorkflowTriggerScheduledRe return r } -func (r tickerToScheduledFindFirst) Skip(count int) tickerToScheduledFindFirst { +func (r tickerFindFirst) Skip(count int) tickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -341874,7 +366840,7 @@ func (r tickerToScheduledFindFirst) Skip(count int) tickerToScheduledFindFirst { return r } -func (r tickerToScheduledFindFirst) Take(count int) tickerToScheduledFindFirst { +func (r tickerFindFirst) Take(count int) tickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -341882,7 +366848,7 @@ func (r tickerToScheduledFindFirst) Take(count int) tickerToScheduledFindFirst { return r } -func (r tickerToScheduledFindFirst) Cursor(cursor TickerCursorParam) tickerToScheduledFindFirst { +func (r tickerFindFirst) Cursor(cursor TickerCursorParam) tickerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -341890,7 +366856,7 @@ func (r tickerToScheduledFindFirst) Cursor(cursor TickerCursorParam) tickerToSch return r } -func (r tickerToScheduledFindFirst) Exec(ctx context.Context) ( +func (r tickerFindFirst) Exec(ctx context.Context) ( *TickerModel, error, ) { @@ -341906,7 +366872,7 @@ func (r tickerToScheduledFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tickerToScheduledFindFirst) ExecInner(ctx context.Context) ( +func (r tickerFindFirst) ExecInner(ctx context.Context) ( *InnerTicker, error, ) { @@ -341922,23 +366888,60 @@ func (r tickerToScheduledFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tickerToScheduledFindMany struct { +type tickerFindMany struct { query builder.Query } -func (r tickerToScheduledFindMany) getQuery() builder.Query { +func (r tickerFindMany) getQuery() builder.Query { return r.query } -func (r tickerToScheduledFindMany) ExtractQuery() builder.Query { +func (r tickerFindMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToScheduledFindMany) with() {} -func (r tickerToScheduledFindMany) tickerModel() {} -func (r tickerToScheduledFindMany) tickerRelation() {} +func (r tickerFindMany) with() {} +func (r tickerFindMany) tickerModel() {} +func (r tickerFindMany) tickerRelation() {} -func (r tickerToScheduledFindMany) With(params ...WorkflowTriggerScheduledRefRelationWith) tickerToScheduledFindMany { +func (r tickerActions) FindMany( + params ...TickerWhereParam, +) tickerFindMany { + var v tickerFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "Ticker" + v.query.Outputs = tickerOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r tickerFindMany) With(params ...TickerRelationWith) tickerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -341951,7 +366954,7 @@ func (r tickerToScheduledFindMany) With(params ...WorkflowTriggerScheduledRefRel return r } -func (r tickerToScheduledFindMany) Select(params ...tickerPrismaFields) tickerToScheduledFindMany { +func (r tickerFindMany) Select(params ...tickerPrismaFields) tickerFindMany { var outputs []builder.Output for _, param := range params { @@ -341965,7 +366968,7 @@ func (r tickerToScheduledFindMany) Select(params ...tickerPrismaFields) tickerTo return r } -func (r tickerToScheduledFindMany) Omit(params ...tickerPrismaFields) tickerToScheduledFindMany { +func (r tickerFindMany) Omit(params ...tickerPrismaFields) tickerFindMany { var outputs []builder.Output var raw []string @@ -341984,7 +366987,7 @@ func (r tickerToScheduledFindMany) Omit(params ...tickerPrismaFields) tickerToSc return r } -func (r tickerToScheduledFindMany) OrderBy(params ...WorkflowTriggerScheduledRefOrderByParam) tickerToScheduledFindMany { +func (r tickerFindMany) OrderBy(params ...TickerOrderByParam) tickerFindMany { var fields []builder.Field for _, param := range params { @@ -342004,7 +367007,7 @@ func (r tickerToScheduledFindMany) OrderBy(params ...WorkflowTriggerScheduledRef return r } -func (r tickerToScheduledFindMany) Skip(count int) tickerToScheduledFindMany { +func (r tickerFindMany) Skip(count int) tickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -342012,7 +367015,7 @@ func (r tickerToScheduledFindMany) Skip(count int) tickerToScheduledFindMany { return r } -func (r tickerToScheduledFindMany) Take(count int) tickerToScheduledFindMany { +func (r tickerFindMany) Take(count int) tickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -342020,7 +367023,7 @@ func (r tickerToScheduledFindMany) Take(count int) tickerToScheduledFindMany { return r } -func (r tickerToScheduledFindMany) Cursor(cursor TickerCursorParam) tickerToScheduledFindMany { +func (r tickerFindMany) Cursor(cursor TickerCursorParam) tickerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -342028,7 +367031,7 @@ func (r tickerToScheduledFindMany) Cursor(cursor TickerCursorParam) tickerToSche return r } -func (r tickerToScheduledFindMany) Exec(ctx context.Context) ( +func (r tickerFindMany) Exec(ctx context.Context) ( []TickerModel, error, ) { @@ -342040,7 +367043,7 @@ func (r tickerToScheduledFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tickerToScheduledFindMany) ExecInner(ctx context.Context) ( +func (r tickerFindMany) ExecInner(ctx context.Context) ( []InnerTicker, error, ) { @@ -342052,14 +367055,14 @@ func (r tickerToScheduledFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToScheduledFindMany) Update(params ...TickerSetParam) tickerToScheduledUpdateMany { +func (r tickerFindMany) Update(params ...TickerSetParam) tickerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" r.query.Model = "Ticker" r.query.Outputs = countOutput - var v tickerToScheduledUpdateMany + var v tickerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -342088,17 +367091,17 @@ func (r tickerToScheduledFindMany) Update(params ...TickerSetParam) tickerToSche return v } -type tickerToScheduledUpdateMany struct { +type tickerUpdateMany struct { query builder.Query } -func (r tickerToScheduledUpdateMany) ExtractQuery() builder.Query { +func (r tickerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToScheduledUpdateMany) tickerModel() {} +func (r tickerUpdateMany) tickerModel() {} -func (r tickerToScheduledUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -342106,15 +367109,15 @@ func (r tickerToScheduledUpdateMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r tickerToScheduledUpdateMany) Tx() TickerManyTxResult { +func (r tickerUpdateMany) Tx() TickerManyTxResult { v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToScheduledFindMany) Delete() tickerToScheduledDeleteMany { - var v tickerToScheduledDeleteMany +func (r tickerFindMany) Delete() tickerDeleteMany { + var v tickerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" @@ -342125,17 +367128,17 @@ func (r tickerToScheduledFindMany) Delete() tickerToScheduledDeleteMany { return v } -type tickerToScheduledDeleteMany struct { +type tickerDeleteMany struct { query builder.Query } -func (r tickerToScheduledDeleteMany) ExtractQuery() builder.Query { +func (r tickerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tickerToScheduledDeleteMany) tickerModel() {} +func (p tickerDeleteMany) tickerModel() {} -func (r tickerToScheduledDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r tickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -342143,30 +367146,30 @@ func (r tickerToScheduledDeleteMany) Exec(ctx context.Context) (*BatchResult, er return &v, nil } -func (r tickerToScheduledDeleteMany) Tx() TickerManyTxResult { +func (r tickerDeleteMany) Tx() TickerManyTxResult { v := newTickerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToGroupKeyRunsFindUnique struct { +type workerLabelToWorkerFindUnique struct { query builder.Query } -func (r tickerToGroupKeyRunsFindUnique) getQuery() builder.Query { +func (r workerLabelToWorkerFindUnique) getQuery() builder.Query { return r.query } -func (r tickerToGroupKeyRunsFindUnique) ExtractQuery() builder.Query { +func (r workerLabelToWorkerFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToGroupKeyRunsFindUnique) with() {} -func (r tickerToGroupKeyRunsFindUnique) tickerModel() {} -func (r tickerToGroupKeyRunsFindUnique) tickerRelation() {} +func (r workerLabelToWorkerFindUnique) with() {} +func (r workerLabelToWorkerFindUnique) workerLabelModel() {} +func (r workerLabelToWorkerFindUnique) workerLabelRelation() {} -func (r tickerToGroupKeyRunsFindUnique) With(params ...GetGroupKeyRunRelationWith) tickerToGroupKeyRunsFindUnique { +func (r workerLabelToWorkerFindUnique) With(params ...WorkerRelationWith) workerLabelToWorkerFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -342179,7 +367182,7 @@ func (r tickerToGroupKeyRunsFindUnique) With(params ...GetGroupKeyRunRelationWit return r } -func (r tickerToGroupKeyRunsFindUnique) Select(params ...tickerPrismaFields) tickerToGroupKeyRunsFindUnique { +func (r workerLabelToWorkerFindUnique) Select(params ...workerLabelPrismaFields) workerLabelToWorkerFindUnique { var outputs []builder.Output for _, param := range params { @@ -342193,7 +367196,7 @@ func (r tickerToGroupKeyRunsFindUnique) Select(params ...tickerPrismaFields) tic return r } -func (r tickerToGroupKeyRunsFindUnique) Omit(params ...tickerPrismaFields) tickerToGroupKeyRunsFindUnique { +func (r workerLabelToWorkerFindUnique) Omit(params ...workerLabelPrismaFields) workerLabelToWorkerFindUnique { var outputs []builder.Output var raw []string @@ -342201,7 +367204,7 @@ func (r tickerToGroupKeyRunsFindUnique) Omit(params ...tickerPrismaFields) ticke raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -342212,11 +367215,11 @@ func (r tickerToGroupKeyRunsFindUnique) Omit(params ...tickerPrismaFields) ticke return r } -func (r tickerToGroupKeyRunsFindUnique) Exec(ctx context.Context) ( - *TickerModel, +func (r workerLabelToWorkerFindUnique) Exec(ctx context.Context) ( + *WorkerLabelModel, error, ) { - var v *TickerModel + var v *WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -342228,11 +367231,11 @@ func (r tickerToGroupKeyRunsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tickerToGroupKeyRunsFindUnique) ExecInner(ctx context.Context) ( - *InnerTicker, +func (r workerLabelToWorkerFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkerLabel, error, ) { - var v *InnerTicker + var v *InnerWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -342244,12 +367247,12 @@ func (r tickerToGroupKeyRunsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToGroupKeyRunsFindUnique) Update(params ...TickerSetParam) tickerToGroupKeyRunsUpdateUnique { +func (r workerLabelToWorkerFindUnique) Update(params ...WorkerLabelSetParam) workerLabelToWorkerUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Ticker" + r.query.Model = "WorkerLabel" - var v tickerToGroupKeyRunsUpdateUnique + var v workerLabelToWorkerUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -342278,83 +367281,83 @@ func (r tickerToGroupKeyRunsFindUnique) Update(params ...TickerSetParam) tickerT return v } -type tickerToGroupKeyRunsUpdateUnique struct { +type workerLabelToWorkerUpdateUnique struct { query builder.Query } -func (r tickerToGroupKeyRunsUpdateUnique) ExtractQuery() builder.Query { +func (r workerLabelToWorkerUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToGroupKeyRunsUpdateUnique) tickerModel() {} +func (r workerLabelToWorkerUpdateUnique) workerLabelModel() {} -func (r tickerToGroupKeyRunsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { - var v TickerModel +func (r workerLabelToWorkerUpdateUnique) Exec(ctx context.Context) (*WorkerLabelModel, error) { + var v WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tickerToGroupKeyRunsUpdateUnique) Tx() TickerUniqueTxResult { - v := newTickerUniqueTxResult() +func (r workerLabelToWorkerUpdateUnique) Tx() WorkerLabelUniqueTxResult { + v := newWorkerLabelUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToGroupKeyRunsFindUnique) Delete() tickerToGroupKeyRunsDeleteUnique { - var v tickerToGroupKeyRunsDeleteUnique +func (r workerLabelToWorkerFindUnique) Delete() workerLabelToWorkerDeleteUnique { + var v workerLabelToWorkerDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Ticker" + v.query.Model = "WorkerLabel" return v } -type tickerToGroupKeyRunsDeleteUnique struct { +type workerLabelToWorkerDeleteUnique struct { query builder.Query } -func (r tickerToGroupKeyRunsDeleteUnique) ExtractQuery() builder.Query { +func (r workerLabelToWorkerDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tickerToGroupKeyRunsDeleteUnique) tickerModel() {} +func (p workerLabelToWorkerDeleteUnique) workerLabelModel() {} -func (r tickerToGroupKeyRunsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { - var v TickerModel +func (r workerLabelToWorkerDeleteUnique) Exec(ctx context.Context) (*WorkerLabelModel, error) { + var v WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tickerToGroupKeyRunsDeleteUnique) Tx() TickerUniqueTxResult { - v := newTickerUniqueTxResult() +func (r workerLabelToWorkerDeleteUnique) Tx() WorkerLabelUniqueTxResult { + v := newWorkerLabelUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToGroupKeyRunsFindFirst struct { +type workerLabelToWorkerFindFirst struct { query builder.Query } -func (r tickerToGroupKeyRunsFindFirst) getQuery() builder.Query { +func (r workerLabelToWorkerFindFirst) getQuery() builder.Query { return r.query } -func (r tickerToGroupKeyRunsFindFirst) ExtractQuery() builder.Query { +func (r workerLabelToWorkerFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tickerToGroupKeyRunsFindFirst) with() {} -func (r tickerToGroupKeyRunsFindFirst) tickerModel() {} -func (r tickerToGroupKeyRunsFindFirst) tickerRelation() {} +func (r workerLabelToWorkerFindFirst) with() {} +func (r workerLabelToWorkerFindFirst) workerLabelModel() {} +func (r workerLabelToWorkerFindFirst) workerLabelRelation() {} -func (r tickerToGroupKeyRunsFindFirst) With(params ...GetGroupKeyRunRelationWith) tickerToGroupKeyRunsFindFirst { +func (r workerLabelToWorkerFindFirst) With(params ...WorkerRelationWith) workerLabelToWorkerFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -342367,7 +367370,7 @@ func (r tickerToGroupKeyRunsFindFirst) With(params ...GetGroupKeyRunRelationWith return r } -func (r tickerToGroupKeyRunsFindFirst) Select(params ...tickerPrismaFields) tickerToGroupKeyRunsFindFirst { +func (r workerLabelToWorkerFindFirst) Select(params ...workerLabelPrismaFields) workerLabelToWorkerFindFirst { var outputs []builder.Output for _, param := range params { @@ -342381,7 +367384,7 @@ func (r tickerToGroupKeyRunsFindFirst) Select(params ...tickerPrismaFields) tick return r } -func (r tickerToGroupKeyRunsFindFirst) Omit(params ...tickerPrismaFields) tickerToGroupKeyRunsFindFirst { +func (r workerLabelToWorkerFindFirst) Omit(params ...workerLabelPrismaFields) workerLabelToWorkerFindFirst { var outputs []builder.Output var raw []string @@ -342389,7 +367392,7 @@ func (r tickerToGroupKeyRunsFindFirst) Omit(params ...tickerPrismaFields) ticker raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -342400,7 +367403,7 @@ func (r tickerToGroupKeyRunsFindFirst) Omit(params ...tickerPrismaFields) ticker return r } -func (r tickerToGroupKeyRunsFindFirst) OrderBy(params ...GetGroupKeyRunOrderByParam) tickerToGroupKeyRunsFindFirst { +func (r workerLabelToWorkerFindFirst) OrderBy(params ...WorkerOrderByParam) workerLabelToWorkerFindFirst { var fields []builder.Field for _, param := range params { @@ -342420,7 +367423,7 @@ func (r tickerToGroupKeyRunsFindFirst) OrderBy(params ...GetGroupKeyRunOrderByPa return r } -func (r tickerToGroupKeyRunsFindFirst) Skip(count int) tickerToGroupKeyRunsFindFirst { +func (r workerLabelToWorkerFindFirst) Skip(count int) workerLabelToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -342428,7 +367431,7 @@ func (r tickerToGroupKeyRunsFindFirst) Skip(count int) tickerToGroupKeyRunsFindF return r } -func (r tickerToGroupKeyRunsFindFirst) Take(count int) tickerToGroupKeyRunsFindFirst { +func (r workerLabelToWorkerFindFirst) Take(count int) workerLabelToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -342436,7 +367439,7 @@ func (r tickerToGroupKeyRunsFindFirst) Take(count int) tickerToGroupKeyRunsFindF return r } -func (r tickerToGroupKeyRunsFindFirst) Cursor(cursor TickerCursorParam) tickerToGroupKeyRunsFindFirst { +func (r workerLabelToWorkerFindFirst) Cursor(cursor WorkerLabelCursorParam) workerLabelToWorkerFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -342444,11 +367447,11 @@ func (r tickerToGroupKeyRunsFindFirst) Cursor(cursor TickerCursorParam) tickerTo return r } -func (r tickerToGroupKeyRunsFindFirst) Exec(ctx context.Context) ( - *TickerModel, +func (r workerLabelToWorkerFindFirst) Exec(ctx context.Context) ( + *WorkerLabelModel, error, ) { - var v *TickerModel + var v *WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -342460,11 +367463,11 @@ func (r tickerToGroupKeyRunsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tickerToGroupKeyRunsFindFirst) ExecInner(ctx context.Context) ( - *InnerTicker, +func (r workerLabelToWorkerFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkerLabel, error, ) { - var v *InnerTicker + var v *InnerWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -342476,23 +367479,23 @@ func (r tickerToGroupKeyRunsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tickerToGroupKeyRunsFindMany struct { +type workerLabelToWorkerFindMany struct { query builder.Query } -func (r tickerToGroupKeyRunsFindMany) getQuery() builder.Query { +func (r workerLabelToWorkerFindMany) getQuery() builder.Query { return r.query } -func (r tickerToGroupKeyRunsFindMany) ExtractQuery() builder.Query { +func (r workerLabelToWorkerFindMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToGroupKeyRunsFindMany) with() {} -func (r tickerToGroupKeyRunsFindMany) tickerModel() {} -func (r tickerToGroupKeyRunsFindMany) tickerRelation() {} +func (r workerLabelToWorkerFindMany) with() {} +func (r workerLabelToWorkerFindMany) workerLabelModel() {} +func (r workerLabelToWorkerFindMany) workerLabelRelation() {} -func (r tickerToGroupKeyRunsFindMany) With(params ...GetGroupKeyRunRelationWith) tickerToGroupKeyRunsFindMany { +func (r workerLabelToWorkerFindMany) With(params ...WorkerRelationWith) workerLabelToWorkerFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -342505,7 +367508,7 @@ func (r tickerToGroupKeyRunsFindMany) With(params ...GetGroupKeyRunRelationWith) return r } -func (r tickerToGroupKeyRunsFindMany) Select(params ...tickerPrismaFields) tickerToGroupKeyRunsFindMany { +func (r workerLabelToWorkerFindMany) Select(params ...workerLabelPrismaFields) workerLabelToWorkerFindMany { var outputs []builder.Output for _, param := range params { @@ -342519,7 +367522,7 @@ func (r tickerToGroupKeyRunsFindMany) Select(params ...tickerPrismaFields) ticke return r } -func (r tickerToGroupKeyRunsFindMany) Omit(params ...tickerPrismaFields) tickerToGroupKeyRunsFindMany { +func (r workerLabelToWorkerFindMany) Omit(params ...workerLabelPrismaFields) workerLabelToWorkerFindMany { var outputs []builder.Output var raw []string @@ -342527,7 +367530,7 @@ func (r tickerToGroupKeyRunsFindMany) Omit(params ...tickerPrismaFields) tickerT raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -342538,7 +367541,7 @@ func (r tickerToGroupKeyRunsFindMany) Omit(params ...tickerPrismaFields) tickerT return r } -func (r tickerToGroupKeyRunsFindMany) OrderBy(params ...GetGroupKeyRunOrderByParam) tickerToGroupKeyRunsFindMany { +func (r workerLabelToWorkerFindMany) OrderBy(params ...WorkerOrderByParam) workerLabelToWorkerFindMany { var fields []builder.Field for _, param := range params { @@ -342558,7 +367561,7 @@ func (r tickerToGroupKeyRunsFindMany) OrderBy(params ...GetGroupKeyRunOrderByPar return r } -func (r tickerToGroupKeyRunsFindMany) Skip(count int) tickerToGroupKeyRunsFindMany { +func (r workerLabelToWorkerFindMany) Skip(count int) workerLabelToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -342566,7 +367569,7 @@ func (r tickerToGroupKeyRunsFindMany) Skip(count int) tickerToGroupKeyRunsFindMa return r } -func (r tickerToGroupKeyRunsFindMany) Take(count int) tickerToGroupKeyRunsFindMany { +func (r workerLabelToWorkerFindMany) Take(count int) workerLabelToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -342574,7 +367577,7 @@ func (r tickerToGroupKeyRunsFindMany) Take(count int) tickerToGroupKeyRunsFindMa return r } -func (r tickerToGroupKeyRunsFindMany) Cursor(cursor TickerCursorParam) tickerToGroupKeyRunsFindMany { +func (r workerLabelToWorkerFindMany) Cursor(cursor WorkerLabelCursorParam) workerLabelToWorkerFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -342582,11 +367585,11 @@ func (r tickerToGroupKeyRunsFindMany) Cursor(cursor TickerCursorParam) tickerToG return r } -func (r tickerToGroupKeyRunsFindMany) Exec(ctx context.Context) ( - []TickerModel, +func (r workerLabelToWorkerFindMany) Exec(ctx context.Context) ( + []WorkerLabelModel, error, ) { - var v []TickerModel + var v []WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -342594,11 +367597,11 @@ func (r tickerToGroupKeyRunsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tickerToGroupKeyRunsFindMany) ExecInner(ctx context.Context) ( - []InnerTicker, +func (r workerLabelToWorkerFindMany) ExecInner(ctx context.Context) ( + []InnerWorkerLabel, error, ) { - var v []InnerTicker + var v []InnerWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -342606,14 +367609,14 @@ func (r tickerToGroupKeyRunsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToGroupKeyRunsFindMany) Update(params ...TickerSetParam) tickerToGroupKeyRunsUpdateMany { +func (r workerLabelToWorkerFindMany) Update(params ...WorkerLabelSetParam) workerLabelToWorkerUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Ticker" + r.query.Model = "WorkerLabel" r.query.Outputs = countOutput - var v tickerToGroupKeyRunsUpdateMany + var v workerLabelToWorkerUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -342642,17 +367645,17 @@ func (r tickerToGroupKeyRunsFindMany) Update(params ...TickerSetParam) tickerToG return v } -type tickerToGroupKeyRunsUpdateMany struct { +type workerLabelToWorkerUpdateMany struct { query builder.Query } -func (r tickerToGroupKeyRunsUpdateMany) ExtractQuery() builder.Query { +func (r workerLabelToWorkerUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToGroupKeyRunsUpdateMany) tickerModel() {} +func (r workerLabelToWorkerUpdateMany) workerLabelModel() {} -func (r tickerToGroupKeyRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workerLabelToWorkerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -342660,36 +367663,36 @@ func (r tickerToGroupKeyRunsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tickerToGroupKeyRunsUpdateMany) Tx() TickerManyTxResult { - v := newTickerManyTxResult() +func (r workerLabelToWorkerUpdateMany) Tx() WorkerLabelManyTxResult { + v := newWorkerLabelManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToGroupKeyRunsFindMany) Delete() tickerToGroupKeyRunsDeleteMany { - var v tickerToGroupKeyRunsDeleteMany +func (r workerLabelToWorkerFindMany) Delete() workerLabelToWorkerDeleteMany { + var v workerLabelToWorkerDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Ticker" + v.query.Model = "WorkerLabel" v.query.Outputs = countOutput return v } -type tickerToGroupKeyRunsDeleteMany struct { +type workerLabelToWorkerDeleteMany struct { query builder.Query } -func (r tickerToGroupKeyRunsDeleteMany) ExtractQuery() builder.Query { +func (r workerLabelToWorkerDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tickerToGroupKeyRunsDeleteMany) tickerModel() {} +func (p workerLabelToWorkerDeleteMany) workerLabelModel() {} -func (r tickerToGroupKeyRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workerLabelToWorkerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -342697,30 +367700,52 @@ func (r tickerToGroupKeyRunsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tickerToGroupKeyRunsDeleteMany) Tx() TickerManyTxResult { - v := newTickerManyTxResult() +func (r workerLabelToWorkerDeleteMany) Tx() WorkerLabelManyTxResult { + v := newWorkerLabelManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToTenantAlertsFindUnique struct { +type workerLabelFindUnique struct { query builder.Query } -func (r tickerToTenantAlertsFindUnique) getQuery() builder.Query { +func (r workerLabelFindUnique) getQuery() builder.Query { return r.query } -func (r tickerToTenantAlertsFindUnique) ExtractQuery() builder.Query { +func (r workerLabelFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToTenantAlertsFindUnique) with() {} -func (r tickerToTenantAlertsFindUnique) tickerModel() {} -func (r tickerToTenantAlertsFindUnique) tickerRelation() {} +func (r workerLabelFindUnique) with() {} +func (r workerLabelFindUnique) workerLabelModel() {} +func (r workerLabelFindUnique) workerLabelRelation() {} -func (r tickerToTenantAlertsFindUnique) With(params ...TenantAlertingSettingsRelationWith) tickerToTenantAlertsFindUnique { +func (r workerLabelActions) FindUnique( + params WorkerLabelEqualsUniqueWhereParam, +) workerLabelFindUnique { + var v workerLabelFindUnique + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findUnique" + + v.query.Model = "WorkerLabel" + v.query.Outputs = workerLabelOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workerLabelFindUnique) With(params ...WorkerLabelRelationWith) workerLabelFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -342733,7 +367758,7 @@ func (r tickerToTenantAlertsFindUnique) With(params ...TenantAlertingSettingsRel return r } -func (r tickerToTenantAlertsFindUnique) Select(params ...tickerPrismaFields) tickerToTenantAlertsFindUnique { +func (r workerLabelFindUnique) Select(params ...workerLabelPrismaFields) workerLabelFindUnique { var outputs []builder.Output for _, param := range params { @@ -342747,7 +367772,7 @@ func (r tickerToTenantAlertsFindUnique) Select(params ...tickerPrismaFields) tic return r } -func (r tickerToTenantAlertsFindUnique) Omit(params ...tickerPrismaFields) tickerToTenantAlertsFindUnique { +func (r workerLabelFindUnique) Omit(params ...workerLabelPrismaFields) workerLabelFindUnique { var outputs []builder.Output var raw []string @@ -342755,7 +367780,7 @@ func (r tickerToTenantAlertsFindUnique) Omit(params ...tickerPrismaFields) ticke raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -342766,11 +367791,11 @@ func (r tickerToTenantAlertsFindUnique) Omit(params ...tickerPrismaFields) ticke return r } -func (r tickerToTenantAlertsFindUnique) Exec(ctx context.Context) ( - *TickerModel, +func (r workerLabelFindUnique) Exec(ctx context.Context) ( + *WorkerLabelModel, error, ) { - var v *TickerModel + var v *WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -342782,11 +367807,11 @@ func (r tickerToTenantAlertsFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tickerToTenantAlertsFindUnique) ExecInner(ctx context.Context) ( - *InnerTicker, +func (r workerLabelFindUnique) ExecInner(ctx context.Context) ( + *InnerWorkerLabel, error, ) { - var v *InnerTicker + var v *InnerWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -342798,12 +367823,12 @@ func (r tickerToTenantAlertsFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToTenantAlertsFindUnique) Update(params ...TickerSetParam) tickerToTenantAlertsUpdateUnique { +func (r workerLabelFindUnique) Update(params ...WorkerLabelSetParam) workerLabelUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Ticker" + r.query.Model = "WorkerLabel" - var v tickerToTenantAlertsUpdateUnique + var v workerLabelUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -342832,83 +367857,120 @@ func (r tickerToTenantAlertsFindUnique) Update(params ...TickerSetParam) tickerT return v } -type tickerToTenantAlertsUpdateUnique struct { +type workerLabelUpdateUnique struct { query builder.Query } -func (r tickerToTenantAlertsUpdateUnique) ExtractQuery() builder.Query { +func (r workerLabelUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerToTenantAlertsUpdateUnique) tickerModel() {} +func (r workerLabelUpdateUnique) workerLabelModel() {} -func (r tickerToTenantAlertsUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { - var v TickerModel +func (r workerLabelUpdateUnique) Exec(ctx context.Context) (*WorkerLabelModel, error) { + var v WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tickerToTenantAlertsUpdateUnique) Tx() TickerUniqueTxResult { - v := newTickerUniqueTxResult() +func (r workerLabelUpdateUnique) Tx() WorkerLabelUniqueTxResult { + v := newWorkerLabelUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToTenantAlertsFindUnique) Delete() tickerToTenantAlertsDeleteUnique { - var v tickerToTenantAlertsDeleteUnique +func (r workerLabelFindUnique) Delete() workerLabelDeleteUnique { + var v workerLabelDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Ticker" + v.query.Model = "WorkerLabel" return v } -type tickerToTenantAlertsDeleteUnique struct { +type workerLabelDeleteUnique struct { query builder.Query } -func (r tickerToTenantAlertsDeleteUnique) ExtractQuery() builder.Query { +func (r workerLabelDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tickerToTenantAlertsDeleteUnique) tickerModel() {} +func (p workerLabelDeleteUnique) workerLabelModel() {} -func (r tickerToTenantAlertsDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { - var v TickerModel +func (r workerLabelDeleteUnique) Exec(ctx context.Context) (*WorkerLabelModel, error) { + var v WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tickerToTenantAlertsDeleteUnique) Tx() TickerUniqueTxResult { - v := newTickerUniqueTxResult() +func (r workerLabelDeleteUnique) Tx() WorkerLabelUniqueTxResult { + v := newWorkerLabelUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerToTenantAlertsFindFirst struct { +type workerLabelFindFirst struct { query builder.Query } -func (r tickerToTenantAlertsFindFirst) getQuery() builder.Query { +func (r workerLabelFindFirst) getQuery() builder.Query { return r.query } -func (r tickerToTenantAlertsFindFirst) ExtractQuery() builder.Query { +func (r workerLabelFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tickerToTenantAlertsFindFirst) with() {} -func (r tickerToTenantAlertsFindFirst) tickerModel() {} -func (r tickerToTenantAlertsFindFirst) tickerRelation() {} +func (r workerLabelFindFirst) with() {} +func (r workerLabelFindFirst) workerLabelModel() {} +func (r workerLabelFindFirst) workerLabelRelation() {} -func (r tickerToTenantAlertsFindFirst) With(params ...TenantAlertingSettingsRelationWith) tickerToTenantAlertsFindFirst { +func (r workerLabelActions) FindFirst( + params ...WorkerLabelWhereParam, +) workerLabelFindFirst { + var v workerLabelFindFirst + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findFirst" + + v.query.Model = "WorkerLabel" + v.query.Outputs = workerLabelOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workerLabelFindFirst) With(params ...WorkerLabelRelationWith) workerLabelFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -342921,7 +367983,7 @@ func (r tickerToTenantAlertsFindFirst) With(params ...TenantAlertingSettingsRela return r } -func (r tickerToTenantAlertsFindFirst) Select(params ...tickerPrismaFields) tickerToTenantAlertsFindFirst { +func (r workerLabelFindFirst) Select(params ...workerLabelPrismaFields) workerLabelFindFirst { var outputs []builder.Output for _, param := range params { @@ -342935,7 +367997,7 @@ func (r tickerToTenantAlertsFindFirst) Select(params ...tickerPrismaFields) tick return r } -func (r tickerToTenantAlertsFindFirst) Omit(params ...tickerPrismaFields) tickerToTenantAlertsFindFirst { +func (r workerLabelFindFirst) Omit(params ...workerLabelPrismaFields) workerLabelFindFirst { var outputs []builder.Output var raw []string @@ -342943,7 +368005,7 @@ func (r tickerToTenantAlertsFindFirst) Omit(params ...tickerPrismaFields) ticker raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -342954,7 +368016,7 @@ func (r tickerToTenantAlertsFindFirst) Omit(params ...tickerPrismaFields) ticker return r } -func (r tickerToTenantAlertsFindFirst) OrderBy(params ...TenantAlertingSettingsOrderByParam) tickerToTenantAlertsFindFirst { +func (r workerLabelFindFirst) OrderBy(params ...WorkerLabelOrderByParam) workerLabelFindFirst { var fields []builder.Field for _, param := range params { @@ -342974,7 +368036,7 @@ func (r tickerToTenantAlertsFindFirst) OrderBy(params ...TenantAlertingSettingsO return r } -func (r tickerToTenantAlertsFindFirst) Skip(count int) tickerToTenantAlertsFindFirst { +func (r workerLabelFindFirst) Skip(count int) workerLabelFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -342982,7 +368044,7 @@ func (r tickerToTenantAlertsFindFirst) Skip(count int) tickerToTenantAlertsFindF return r } -func (r tickerToTenantAlertsFindFirst) Take(count int) tickerToTenantAlertsFindFirst { +func (r workerLabelFindFirst) Take(count int) workerLabelFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -342990,7 +368052,7 @@ func (r tickerToTenantAlertsFindFirst) Take(count int) tickerToTenantAlertsFindF return r } -func (r tickerToTenantAlertsFindFirst) Cursor(cursor TickerCursorParam) tickerToTenantAlertsFindFirst { +func (r workerLabelFindFirst) Cursor(cursor WorkerLabelCursorParam) workerLabelFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -342998,11 +368060,11 @@ func (r tickerToTenantAlertsFindFirst) Cursor(cursor TickerCursorParam) tickerTo return r } -func (r tickerToTenantAlertsFindFirst) Exec(ctx context.Context) ( - *TickerModel, +func (r workerLabelFindFirst) Exec(ctx context.Context) ( + *WorkerLabelModel, error, ) { - var v *TickerModel + var v *WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343014,11 +368076,11 @@ func (r tickerToTenantAlertsFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tickerToTenantAlertsFindFirst) ExecInner(ctx context.Context) ( - *InnerTicker, +func (r workerLabelFindFirst) ExecInner(ctx context.Context) ( + *InnerWorkerLabel, error, ) { - var v *InnerTicker + var v *InnerWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343030,23 +368092,60 @@ func (r tickerToTenantAlertsFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tickerToTenantAlertsFindMany struct { +type workerLabelFindMany struct { query builder.Query } -func (r tickerToTenantAlertsFindMany) getQuery() builder.Query { +func (r workerLabelFindMany) getQuery() builder.Query { return r.query } -func (r tickerToTenantAlertsFindMany) ExtractQuery() builder.Query { +func (r workerLabelFindMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToTenantAlertsFindMany) with() {} -func (r tickerToTenantAlertsFindMany) tickerModel() {} -func (r tickerToTenantAlertsFindMany) tickerRelation() {} +func (r workerLabelFindMany) with() {} +func (r workerLabelFindMany) workerLabelModel() {} +func (r workerLabelFindMany) workerLabelRelation() {} -func (r tickerToTenantAlertsFindMany) With(params ...TenantAlertingSettingsRelationWith) tickerToTenantAlertsFindMany { +func (r workerLabelActions) FindMany( + params ...WorkerLabelWhereParam, +) workerLabelFindMany { + var v workerLabelFindMany + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "query" + + v.query.Method = "findMany" + + v.query.Model = "WorkerLabel" + v.query.Outputs = workerLabelOutput + + var where []builder.Field + for _, q := range params { + if query := q.getQuery(); query.Operation != "" { + v.query.Outputs = append(v.query.Outputs, builder.Output{ + Name: query.Method, + Inputs: query.Inputs, + Outputs: query.Outputs, + }) + } else { + where = append(where, q.field()) + } + } + + if len(where) > 0 { + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: where, + }) + } + + return v +} + +func (r workerLabelFindMany) With(params ...WorkerLabelRelationWith) workerLabelFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -343059,7 +368158,7 @@ func (r tickerToTenantAlertsFindMany) With(params ...TenantAlertingSettingsRelat return r } -func (r tickerToTenantAlertsFindMany) Select(params ...tickerPrismaFields) tickerToTenantAlertsFindMany { +func (r workerLabelFindMany) Select(params ...workerLabelPrismaFields) workerLabelFindMany { var outputs []builder.Output for _, param := range params { @@ -343073,7 +368172,7 @@ func (r tickerToTenantAlertsFindMany) Select(params ...tickerPrismaFields) ticke return r } -func (r tickerToTenantAlertsFindMany) Omit(params ...tickerPrismaFields) tickerToTenantAlertsFindMany { +func (r workerLabelFindMany) Omit(params ...workerLabelPrismaFields) workerLabelFindMany { var outputs []builder.Output var raw []string @@ -343081,7 +368180,7 @@ func (r tickerToTenantAlertsFindMany) Omit(params ...tickerPrismaFields) tickerT raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerLabelOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -343092,7 +368191,7 @@ func (r tickerToTenantAlertsFindMany) Omit(params ...tickerPrismaFields) tickerT return r } -func (r tickerToTenantAlertsFindMany) OrderBy(params ...TenantAlertingSettingsOrderByParam) tickerToTenantAlertsFindMany { +func (r workerLabelFindMany) OrderBy(params ...WorkerLabelOrderByParam) workerLabelFindMany { var fields []builder.Field for _, param := range params { @@ -343112,7 +368211,7 @@ func (r tickerToTenantAlertsFindMany) OrderBy(params ...TenantAlertingSettingsOr return r } -func (r tickerToTenantAlertsFindMany) Skip(count int) tickerToTenantAlertsFindMany { +func (r workerLabelFindMany) Skip(count int) workerLabelFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -343120,7 +368219,7 @@ func (r tickerToTenantAlertsFindMany) Skip(count int) tickerToTenantAlertsFindMa return r } -func (r tickerToTenantAlertsFindMany) Take(count int) tickerToTenantAlertsFindMany { +func (r workerLabelFindMany) Take(count int) workerLabelFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -343128,7 +368227,7 @@ func (r tickerToTenantAlertsFindMany) Take(count int) tickerToTenantAlertsFindMa return r } -func (r tickerToTenantAlertsFindMany) Cursor(cursor TickerCursorParam) tickerToTenantAlertsFindMany { +func (r workerLabelFindMany) Cursor(cursor WorkerLabelCursorParam) workerLabelFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -343136,11 +368235,11 @@ func (r tickerToTenantAlertsFindMany) Cursor(cursor TickerCursorParam) tickerToT return r } -func (r tickerToTenantAlertsFindMany) Exec(ctx context.Context) ( - []TickerModel, +func (r workerLabelFindMany) Exec(ctx context.Context) ( + []WorkerLabelModel, error, ) { - var v []TickerModel + var v []WorkerLabelModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343148,11 +368247,11 @@ func (r tickerToTenantAlertsFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tickerToTenantAlertsFindMany) ExecInner(ctx context.Context) ( - []InnerTicker, +func (r workerLabelFindMany) ExecInner(ctx context.Context) ( + []InnerWorkerLabel, error, ) { - var v []InnerTicker + var v []InnerWorkerLabel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343160,14 +368259,14 @@ func (r tickerToTenantAlertsFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerToTenantAlertsFindMany) Update(params ...TickerSetParam) tickerToTenantAlertsUpdateMany { +func (r workerLabelFindMany) Update(params ...WorkerLabelSetParam) workerLabelUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Ticker" + r.query.Model = "WorkerLabel" r.query.Outputs = countOutput - var v tickerToTenantAlertsUpdateMany + var v workerLabelUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -343196,17 +368295,17 @@ func (r tickerToTenantAlertsFindMany) Update(params ...TickerSetParam) tickerToT return v } -type tickerToTenantAlertsUpdateMany struct { +type workerLabelUpdateMany struct { query builder.Query } -func (r tickerToTenantAlertsUpdateMany) ExtractQuery() builder.Query { +func (r workerLabelUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tickerToTenantAlertsUpdateMany) tickerModel() {} +func (r workerLabelUpdateMany) workerLabelModel() {} -func (r tickerToTenantAlertsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workerLabelUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -343214,36 +368313,36 @@ func (r tickerToTenantAlertsUpdateMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tickerToTenantAlertsUpdateMany) Tx() TickerManyTxResult { - v := newTickerManyTxResult() +func (r workerLabelUpdateMany) Tx() WorkerLabelManyTxResult { + v := newWorkerLabelManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerToTenantAlertsFindMany) Delete() tickerToTenantAlertsDeleteMany { - var v tickerToTenantAlertsDeleteMany +func (r workerLabelFindMany) Delete() workerLabelDeleteMany { + var v workerLabelDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Ticker" + v.query.Model = "WorkerLabel" v.query.Outputs = countOutput return v } -type tickerToTenantAlertsDeleteMany struct { +type workerLabelDeleteMany struct { query builder.Query } -func (r tickerToTenantAlertsDeleteMany) ExtractQuery() builder.Query { +func (r workerLabelDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tickerToTenantAlertsDeleteMany) tickerModel() {} +func (p workerLabelDeleteMany) workerLabelModel() {} -func (r tickerToTenantAlertsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workerLabelDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -343251,52 +368350,30 @@ func (r tickerToTenantAlertsDeleteMany) Exec(ctx context.Context) (*BatchResult, return &v, nil } -func (r tickerToTenantAlertsDeleteMany) Tx() TickerManyTxResult { - v := newTickerManyTxResult() +func (r workerLabelDeleteMany) Tx() WorkerLabelManyTxResult { + v := newWorkerLabelManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerFindUnique struct { +type workerToLabelsFindUnique struct { query builder.Query } -func (r tickerFindUnique) getQuery() builder.Query { +func (r workerToLabelsFindUnique) getQuery() builder.Query { return r.query } -func (r tickerFindUnique) ExtractQuery() builder.Query { +func (r workerToLabelsFindUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerFindUnique) with() {} -func (r tickerFindUnique) tickerModel() {} -func (r tickerFindUnique) tickerRelation() {} +func (r workerToLabelsFindUnique) with() {} +func (r workerToLabelsFindUnique) workerModel() {} +func (r workerToLabelsFindUnique) workerRelation() {} -func (r tickerActions) FindUnique( - params TickerEqualsUniqueWhereParam, -) tickerFindUnique { - var v tickerFindUnique - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findUnique" - - v.query.Model = "Ticker" - v.query.Outputs = tickerOutput - - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: builder.TransformEquals([]builder.Field{params.field()}), - }) - - return v -} - -func (r tickerFindUnique) With(params ...TickerRelationWith) tickerFindUnique { +func (r workerToLabelsFindUnique) With(params ...WorkerLabelRelationWith) workerToLabelsFindUnique { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -343309,7 +368386,7 @@ func (r tickerFindUnique) With(params ...TickerRelationWith) tickerFindUnique { return r } -func (r tickerFindUnique) Select(params ...tickerPrismaFields) tickerFindUnique { +func (r workerToLabelsFindUnique) Select(params ...workerPrismaFields) workerToLabelsFindUnique { var outputs []builder.Output for _, param := range params { @@ -343323,7 +368400,7 @@ func (r tickerFindUnique) Select(params ...tickerPrismaFields) tickerFindUnique return r } -func (r tickerFindUnique) Omit(params ...tickerPrismaFields) tickerFindUnique { +func (r workerToLabelsFindUnique) Omit(params ...workerPrismaFields) workerToLabelsFindUnique { var outputs []builder.Output var raw []string @@ -343331,7 +368408,7 @@ func (r tickerFindUnique) Omit(params ...tickerPrismaFields) tickerFindUnique { raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -343342,11 +368419,11 @@ func (r tickerFindUnique) Omit(params ...tickerPrismaFields) tickerFindUnique { return r } -func (r tickerFindUnique) Exec(ctx context.Context) ( - *TickerModel, +func (r workerToLabelsFindUnique) Exec(ctx context.Context) ( + *WorkerModel, error, ) { - var v *TickerModel + var v *WorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343358,11 +368435,11 @@ func (r tickerFindUnique) Exec(ctx context.Context) ( return v, nil } -func (r tickerFindUnique) ExecInner(ctx context.Context) ( - *InnerTicker, +func (r workerToLabelsFindUnique) ExecInner(ctx context.Context) ( + *InnerWorker, error, ) { - var v *InnerTicker + var v *InnerWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343374,12 +368451,12 @@ func (r tickerFindUnique) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerFindUnique) Update(params ...TickerSetParam) tickerUpdateUnique { +func (r workerToLabelsFindUnique) Update(params ...WorkerSetParam) workerToLabelsUpdateUnique { r.query.Operation = "mutation" r.query.Method = "updateOne" - r.query.Model = "Ticker" + r.query.Model = "Worker" - var v tickerUpdateUnique + var v workerToLabelsUpdateUnique v.query = r.query var fields []builder.Field for _, q := range params { @@ -343408,120 +368485,83 @@ func (r tickerFindUnique) Update(params ...TickerSetParam) tickerUpdateUnique { return v } -type tickerUpdateUnique struct { +type workerToLabelsUpdateUnique struct { query builder.Query } -func (r tickerUpdateUnique) ExtractQuery() builder.Query { +func (r workerToLabelsUpdateUnique) ExtractQuery() builder.Query { return r.query } -func (r tickerUpdateUnique) tickerModel() {} +func (r workerToLabelsUpdateUnique) workerModel() {} -func (r tickerUpdateUnique) Exec(ctx context.Context) (*TickerModel, error) { - var v TickerModel +func (r workerToLabelsUpdateUnique) Exec(ctx context.Context) (*WorkerModel, error) { + var v WorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tickerUpdateUnique) Tx() TickerUniqueTxResult { - v := newTickerUniqueTxResult() +func (r workerToLabelsUpdateUnique) Tx() WorkerUniqueTxResult { + v := newWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerFindUnique) Delete() tickerDeleteUnique { - var v tickerDeleteUnique +func (r workerToLabelsFindUnique) Delete() workerToLabelsDeleteUnique { + var v workerToLabelsDeleteUnique v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteOne" - v.query.Model = "Ticker" + v.query.Model = "Worker" return v } -type tickerDeleteUnique struct { +type workerToLabelsDeleteUnique struct { query builder.Query } -func (r tickerDeleteUnique) ExtractQuery() builder.Query { +func (r workerToLabelsDeleteUnique) ExtractQuery() builder.Query { return r.query } -func (p tickerDeleteUnique) tickerModel() {} +func (p workerToLabelsDeleteUnique) workerModel() {} -func (r tickerDeleteUnique) Exec(ctx context.Context) (*TickerModel, error) { - var v TickerModel +func (r workerToLabelsDeleteUnique) Exec(ctx context.Context) (*WorkerModel, error) { + var v WorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } return &v, nil } -func (r tickerDeleteUnique) Tx() TickerUniqueTxResult { - v := newTickerUniqueTxResult() +func (r workerToLabelsDeleteUnique) Tx() WorkerUniqueTxResult { + v := newWorkerUniqueTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -type tickerFindFirst struct { +type workerToLabelsFindFirst struct { query builder.Query } -func (r tickerFindFirst) getQuery() builder.Query { +func (r workerToLabelsFindFirst) getQuery() builder.Query { return r.query } -func (r tickerFindFirst) ExtractQuery() builder.Query { +func (r workerToLabelsFindFirst) ExtractQuery() builder.Query { return r.query } -func (r tickerFindFirst) with() {} -func (r tickerFindFirst) tickerModel() {} -func (r tickerFindFirst) tickerRelation() {} - -func (r tickerActions) FindFirst( - params ...TickerWhereParam, -) tickerFindFirst { - var v tickerFindFirst - v.query = builder.NewQuery() - v.query.Engine = r.client - - v.query.Operation = "query" - - v.query.Method = "findFirst" - - v.query.Model = "Ticker" - v.query.Outputs = tickerOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } +func (r workerToLabelsFindFirst) with() {} +func (r workerToLabelsFindFirst) workerModel() {} +func (r workerToLabelsFindFirst) workerRelation() {} - return v -} - -func (r tickerFindFirst) With(params ...TickerRelationWith) tickerFindFirst { +func (r workerToLabelsFindFirst) With(params ...WorkerLabelRelationWith) workerToLabelsFindFirst { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -343534,7 +368574,7 @@ func (r tickerFindFirst) With(params ...TickerRelationWith) tickerFindFirst { return r } -func (r tickerFindFirst) Select(params ...tickerPrismaFields) tickerFindFirst { +func (r workerToLabelsFindFirst) Select(params ...workerPrismaFields) workerToLabelsFindFirst { var outputs []builder.Output for _, param := range params { @@ -343548,7 +368588,7 @@ func (r tickerFindFirst) Select(params ...tickerPrismaFields) tickerFindFirst { return r } -func (r tickerFindFirst) Omit(params ...tickerPrismaFields) tickerFindFirst { +func (r workerToLabelsFindFirst) Omit(params ...workerPrismaFields) workerToLabelsFindFirst { var outputs []builder.Output var raw []string @@ -343556,7 +368596,7 @@ func (r tickerFindFirst) Omit(params ...tickerPrismaFields) tickerFindFirst { raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -343567,7 +368607,7 @@ func (r tickerFindFirst) Omit(params ...tickerPrismaFields) tickerFindFirst { return r } -func (r tickerFindFirst) OrderBy(params ...TickerOrderByParam) tickerFindFirst { +func (r workerToLabelsFindFirst) OrderBy(params ...WorkerLabelOrderByParam) workerToLabelsFindFirst { var fields []builder.Field for _, param := range params { @@ -343587,7 +368627,7 @@ func (r tickerFindFirst) OrderBy(params ...TickerOrderByParam) tickerFindFirst { return r } -func (r tickerFindFirst) Skip(count int) tickerFindFirst { +func (r workerToLabelsFindFirst) Skip(count int) workerToLabelsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -343595,7 +368635,7 @@ func (r tickerFindFirst) Skip(count int) tickerFindFirst { return r } -func (r tickerFindFirst) Take(count int) tickerFindFirst { +func (r workerToLabelsFindFirst) Take(count int) workerToLabelsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -343603,7 +368643,7 @@ func (r tickerFindFirst) Take(count int) tickerFindFirst { return r } -func (r tickerFindFirst) Cursor(cursor TickerCursorParam) tickerFindFirst { +func (r workerToLabelsFindFirst) Cursor(cursor WorkerCursorParam) workerToLabelsFindFirst { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -343611,11 +368651,11 @@ func (r tickerFindFirst) Cursor(cursor TickerCursorParam) tickerFindFirst { return r } -func (r tickerFindFirst) Exec(ctx context.Context) ( - *TickerModel, +func (r workerToLabelsFindFirst) Exec(ctx context.Context) ( + *WorkerModel, error, ) { - var v *TickerModel + var v *WorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343627,11 +368667,11 @@ func (r tickerFindFirst) Exec(ctx context.Context) ( return v, nil } -func (r tickerFindFirst) ExecInner(ctx context.Context) ( - *InnerTicker, +func (r workerToLabelsFindFirst) ExecInner(ctx context.Context) ( + *InnerWorker, error, ) { - var v *InnerTicker + var v *InnerWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343643,60 +368683,23 @@ func (r tickerFindFirst) ExecInner(ctx context.Context) ( return v, nil } -type tickerFindMany struct { +type workerToLabelsFindMany struct { query builder.Query } -func (r tickerFindMany) getQuery() builder.Query { +func (r workerToLabelsFindMany) getQuery() builder.Query { return r.query } -func (r tickerFindMany) ExtractQuery() builder.Query { +func (r workerToLabelsFindMany) ExtractQuery() builder.Query { return r.query } -func (r tickerFindMany) with() {} -func (r tickerFindMany) tickerModel() {} -func (r tickerFindMany) tickerRelation() {} - -func (r tickerActions) FindMany( - params ...TickerWhereParam, -) tickerFindMany { - var v tickerFindMany - v.query = builder.NewQuery() - v.query.Engine = r.client +func (r workerToLabelsFindMany) with() {} +func (r workerToLabelsFindMany) workerModel() {} +func (r workerToLabelsFindMany) workerRelation() {} - v.query.Operation = "query" - - v.query.Method = "findMany" - - v.query.Model = "Ticker" - v.query.Outputs = tickerOutput - - var where []builder.Field - for _, q := range params { - if query := q.getQuery(); query.Operation != "" { - v.query.Outputs = append(v.query.Outputs, builder.Output{ - Name: query.Method, - Inputs: query.Inputs, - Outputs: query.Outputs, - }) - } else { - where = append(where, q.field()) - } - } - - if len(where) > 0 { - v.query.Inputs = append(v.query.Inputs, builder.Input{ - Name: "where", - Fields: where, - }) - } - - return v -} - -func (r tickerFindMany) With(params ...TickerRelationWith) tickerFindMany { +func (r workerToLabelsFindMany) With(params ...WorkerLabelRelationWith) workerToLabelsFindMany { for _, q := range params { query := q.getQuery() r.query.Outputs = append(r.query.Outputs, builder.Output{ @@ -343709,7 +368712,7 @@ func (r tickerFindMany) With(params ...TickerRelationWith) tickerFindMany { return r } -func (r tickerFindMany) Select(params ...tickerPrismaFields) tickerFindMany { +func (r workerToLabelsFindMany) Select(params ...workerPrismaFields) workerToLabelsFindMany { var outputs []builder.Output for _, param := range params { @@ -343723,7 +368726,7 @@ func (r tickerFindMany) Select(params ...tickerPrismaFields) tickerFindMany { return r } -func (r tickerFindMany) Omit(params ...tickerPrismaFields) tickerFindMany { +func (r workerToLabelsFindMany) Omit(params ...workerPrismaFields) workerToLabelsFindMany { var outputs []builder.Output var raw []string @@ -343731,7 +368734,7 @@ func (r tickerFindMany) Omit(params ...tickerPrismaFields) tickerFindMany { raw = append(raw, string(param)) } - for _, output := range tickerOutput { + for _, output := range workerOutput { if !slices.Contains(raw, output.Name) { outputs = append(outputs, output) } @@ -343742,7 +368745,7 @@ func (r tickerFindMany) Omit(params ...tickerPrismaFields) tickerFindMany { return r } -func (r tickerFindMany) OrderBy(params ...TickerOrderByParam) tickerFindMany { +func (r workerToLabelsFindMany) OrderBy(params ...WorkerLabelOrderByParam) workerToLabelsFindMany { var fields []builder.Field for _, param := range params { @@ -343762,7 +368765,7 @@ func (r tickerFindMany) OrderBy(params ...TickerOrderByParam) tickerFindMany { return r } -func (r tickerFindMany) Skip(count int) tickerFindMany { +func (r workerToLabelsFindMany) Skip(count int) workerToLabelsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "skip", Value: count, @@ -343770,7 +368773,7 @@ func (r tickerFindMany) Skip(count int) tickerFindMany { return r } -func (r tickerFindMany) Take(count int) tickerFindMany { +func (r workerToLabelsFindMany) Take(count int) workerToLabelsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "take", Value: count, @@ -343778,7 +368781,7 @@ func (r tickerFindMany) Take(count int) tickerFindMany { return r } -func (r tickerFindMany) Cursor(cursor TickerCursorParam) tickerFindMany { +func (r workerToLabelsFindMany) Cursor(cursor WorkerCursorParam) workerToLabelsFindMany { r.query.Inputs = append(r.query.Inputs, builder.Input{ Name: "cursor", Fields: []builder.Field{cursor.field()}, @@ -343786,11 +368789,11 @@ func (r tickerFindMany) Cursor(cursor TickerCursorParam) tickerFindMany { return r } -func (r tickerFindMany) Exec(ctx context.Context) ( - []TickerModel, +func (r workerToLabelsFindMany) Exec(ctx context.Context) ( + []WorkerModel, error, ) { - var v []TickerModel + var v []WorkerModel if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343798,11 +368801,11 @@ func (r tickerFindMany) Exec(ctx context.Context) ( return v, nil } -func (r tickerFindMany) ExecInner(ctx context.Context) ( - []InnerTicker, +func (r workerToLabelsFindMany) ExecInner(ctx context.Context) ( + []InnerWorker, error, ) { - var v []InnerTicker + var v []InnerWorker if err := r.query.Exec(ctx, &v); err != nil { return nil, err } @@ -343810,14 +368813,14 @@ func (r tickerFindMany) ExecInner(ctx context.Context) ( return v, nil } -func (r tickerFindMany) Update(params ...TickerSetParam) tickerUpdateMany { +func (r workerToLabelsFindMany) Update(params ...WorkerSetParam) workerToLabelsUpdateMany { r.query.Operation = "mutation" r.query.Method = "updateMany" - r.query.Model = "Ticker" + r.query.Model = "Worker" r.query.Outputs = countOutput - var v tickerUpdateMany + var v workerToLabelsUpdateMany v.query = r.query var fields []builder.Field for _, q := range params { @@ -343846,17 +368849,17 @@ func (r tickerFindMany) Update(params ...TickerSetParam) tickerUpdateMany { return v } -type tickerUpdateMany struct { +type workerToLabelsUpdateMany struct { query builder.Query } -func (r tickerUpdateMany) ExtractQuery() builder.Query { +func (r workerToLabelsUpdateMany) ExtractQuery() builder.Query { return r.query } -func (r tickerUpdateMany) tickerModel() {} +func (r workerToLabelsUpdateMany) workerModel() {} -func (r tickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workerToLabelsUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -343864,36 +368867,36 @@ func (r tickerUpdateMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r tickerUpdateMany) Tx() TickerManyTxResult { - v := newTickerManyTxResult() +func (r workerToLabelsUpdateMany) Tx() WorkerManyTxResult { + v := newWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v } -func (r tickerFindMany) Delete() tickerDeleteMany { - var v tickerDeleteMany +func (r workerToLabelsFindMany) Delete() workerToLabelsDeleteMany { + var v workerToLabelsDeleteMany v.query = r.query v.query.Operation = "mutation" v.query.Method = "deleteMany" - v.query.Model = "Ticker" + v.query.Model = "Worker" v.query.Outputs = countOutput return v } -type tickerDeleteMany struct { +type workerToLabelsDeleteMany struct { query builder.Query } -func (r tickerDeleteMany) ExtractQuery() builder.Query { +func (r workerToLabelsDeleteMany) ExtractQuery() builder.Query { return r.query } -func (p tickerDeleteMany) tickerModel() {} +func (p workerToLabelsDeleteMany) workerModel() {} -func (r tickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { +func (r workerToLabelsDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { var v BatchResult if err := r.query.Exec(ctx, &v); err != nil { return nil, err @@ -343901,8 +368904,8 @@ func (r tickerDeleteMany) Exec(ctx context.Context) (*BatchResult, error) { return &v, nil } -func (r tickerDeleteMany) Tx() TickerManyTxResult { - v := newTickerManyTxResult() +func (r workerToLabelsDeleteMany) Tx() WorkerManyTxResult { + v := newWorkerManyTxResult() v.query = r.query v.query.TxResult = make(chan []byte, 1) return v @@ -363942,6 +388945,54 @@ func (r ActionManyTxResult) Result() (v *BatchResult) { return v } +func newStepDesiredWorkerLabelUniqueTxResult() StepDesiredWorkerLabelUniqueTxResult { + return StepDesiredWorkerLabelUniqueTxResult{ + result: &transaction.Result{}, + } +} + +type StepDesiredWorkerLabelUniqueTxResult struct { + query builder.Query + result *transaction.Result +} + +func (p StepDesiredWorkerLabelUniqueTxResult) ExtractQuery() builder.Query { + return p.query +} + +func (p StepDesiredWorkerLabelUniqueTxResult) IsTx() {} + +func (r StepDesiredWorkerLabelUniqueTxResult) Result() (v *StepDesiredWorkerLabelModel) { + if err := r.result.Get(r.query.TxResult, &v); err != nil { + panic(err) + } + return v +} + +func newStepDesiredWorkerLabelManyTxResult() StepDesiredWorkerLabelManyTxResult { + return StepDesiredWorkerLabelManyTxResult{ + result: &transaction.Result{}, + } +} + +type StepDesiredWorkerLabelManyTxResult struct { + query builder.Query + result *transaction.Result +} + +func (p StepDesiredWorkerLabelManyTxResult) ExtractQuery() builder.Query { + return p.query +} + +func (p StepDesiredWorkerLabelManyTxResult) IsTx() {} + +func (r StepDesiredWorkerLabelManyTxResult) Result() (v *BatchResult) { + if err := r.result.Get(r.query.TxResult, &v); err != nil { + panic(err) + } + return v +} + func newStepUniqueTxResult() StepUniqueTxResult { return StepUniqueTxResult{ result: &transaction.Result{}, @@ -364086,6 +389137,54 @@ func (r RateLimitManyTxResult) Result() (v *BatchResult) { return v } +func newWorkflowRunStickyStateUniqueTxResult() WorkflowRunStickyStateUniqueTxResult { + return WorkflowRunStickyStateUniqueTxResult{ + result: &transaction.Result{}, + } +} + +type WorkflowRunStickyStateUniqueTxResult struct { + query builder.Query + result *transaction.Result +} + +func (p WorkflowRunStickyStateUniqueTxResult) ExtractQuery() builder.Query { + return p.query +} + +func (p WorkflowRunStickyStateUniqueTxResult) IsTx() {} + +func (r WorkflowRunStickyStateUniqueTxResult) Result() (v *WorkflowRunStickyStateModel) { + if err := r.result.Get(r.query.TxResult, &v); err != nil { + panic(err) + } + return v +} + +func newWorkflowRunStickyStateManyTxResult() WorkflowRunStickyStateManyTxResult { + return WorkflowRunStickyStateManyTxResult{ + result: &transaction.Result{}, + } +} + +type WorkflowRunStickyStateManyTxResult struct { + query builder.Query + result *transaction.Result +} + +func (p WorkflowRunStickyStateManyTxResult) ExtractQuery() builder.Query { + return p.query +} + +func (p WorkflowRunStickyStateManyTxResult) IsTx() {} + +func (r WorkflowRunStickyStateManyTxResult) Result() (v *BatchResult) { + if err := r.result.Get(r.query.TxResult, &v); err != nil { + panic(err) + } + return v +} + func newWorkflowRunUniqueTxResult() WorkflowRunUniqueTxResult { return WorkflowRunUniqueTxResult{ result: &transaction.Result{}, @@ -364134,6 +389233,54 @@ func (r WorkflowRunManyTxResult) Result() (v *BatchResult) { return v } +func newWorkflowRunDedupeUniqueTxResult() WorkflowRunDedupeUniqueTxResult { + return WorkflowRunDedupeUniqueTxResult{ + result: &transaction.Result{}, + } +} + +type WorkflowRunDedupeUniqueTxResult struct { + query builder.Query + result *transaction.Result +} + +func (p WorkflowRunDedupeUniqueTxResult) ExtractQuery() builder.Query { + return p.query +} + +func (p WorkflowRunDedupeUniqueTxResult) IsTx() {} + +func (r WorkflowRunDedupeUniqueTxResult) Result() (v *WorkflowRunDedupeModel) { + if err := r.result.Get(r.query.TxResult, &v); err != nil { + panic(err) + } + return v +} + +func newWorkflowRunDedupeManyTxResult() WorkflowRunDedupeManyTxResult { + return WorkflowRunDedupeManyTxResult{ + result: &transaction.Result{}, + } +} + +type WorkflowRunDedupeManyTxResult struct { + query builder.Query + result *transaction.Result +} + +func (p WorkflowRunDedupeManyTxResult) ExtractQuery() builder.Query { + return p.query +} + +func (p WorkflowRunDedupeManyTxResult) IsTx() {} + +func (r WorkflowRunDedupeManyTxResult) Result() (v *BatchResult) { + if err := r.result.Get(r.query.TxResult, &v); err != nil { + panic(err) + } + return v +} + func newGetGroupKeyRunUniqueTxResult() GetGroupKeyRunUniqueTxResult { return GetGroupKeyRunUniqueTxResult{ result: &transaction.Result{}, @@ -364566,6 +389713,54 @@ func (r TickerManyTxResult) Result() (v *BatchResult) { return v } +func newWorkerLabelUniqueTxResult() WorkerLabelUniqueTxResult { + return WorkerLabelUniqueTxResult{ + result: &transaction.Result{}, + } +} + +type WorkerLabelUniqueTxResult struct { + query builder.Query + result *transaction.Result +} + +func (p WorkerLabelUniqueTxResult) ExtractQuery() builder.Query { + return p.query +} + +func (p WorkerLabelUniqueTxResult) IsTx() {} + +func (r WorkerLabelUniqueTxResult) Result() (v *WorkerLabelModel) { + if err := r.result.Get(r.query.TxResult, &v); err != nil { + panic(err) + } + return v +} + +func newWorkerLabelManyTxResult() WorkerLabelManyTxResult { + return WorkerLabelManyTxResult{ + result: &transaction.Result{}, + } +} + +type WorkerLabelManyTxResult struct { + query builder.Query + result *transaction.Result +} + +func (p WorkerLabelManyTxResult) ExtractQuery() builder.Query { + return p.query +} + +func (p WorkerLabelManyTxResult) IsTx() {} + +func (r WorkerLabelManyTxResult) Result() (v *BatchResult) { + if err := r.result.Get(r.query.TxResult, &v); err != nil { + panic(err) + } + return v +} + func newWorkerUniqueTxResult() WorkerUniqueTxResult { return WorkerUniqueTxResult{ result: &transaction.Result{}, @@ -368017,6 +393212,124 @@ func (r actionUpsertOne) Tx() ActionUniqueTxResult { return v } +type stepDesiredWorkerLabelUpsertOne struct { + query builder.Query +} + +func (r stepDesiredWorkerLabelUpsertOne) getQuery() builder.Query { + return r.query +} + +func (r stepDesiredWorkerLabelUpsertOne) ExtractQuery() builder.Query { + return r.query +} + +func (r stepDesiredWorkerLabelUpsertOne) with() {} +func (r stepDesiredWorkerLabelUpsertOne) stepDesiredWorkerLabelModel() {} +func (r stepDesiredWorkerLabelUpsertOne) stepDesiredWorkerLabelRelation() {} + +func (r stepDesiredWorkerLabelActions) UpsertOne( + params StepDesiredWorkerLabelEqualsUniqueWhereParam, +) stepDesiredWorkerLabelUpsertOne { + var v stepDesiredWorkerLabelUpsertOne + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "mutation" + v.query.Method = "upsertOne" + v.query.Model = "StepDesiredWorkerLabel" + v.query.Outputs = stepDesiredWorkerLabelOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r stepDesiredWorkerLabelUpsertOne) Create( + + _step StepDesiredWorkerLabelWithPrismaStepSetParam, + _key StepDesiredWorkerLabelWithPrismaKeySetParam, + _required StepDesiredWorkerLabelWithPrismaRequiredSetParam, + _comparator StepDesiredWorkerLabelWithPrismaComparatorSetParam, + _weight StepDesiredWorkerLabelWithPrismaWeightSetParam, + + optional ...StepDesiredWorkerLabelSetParam, +) stepDesiredWorkerLabelUpsertOne { + var v stepDesiredWorkerLabelUpsertOne + v.query = r.query + + var fields []builder.Field + fields = append(fields, _step.field()) + fields = append(fields, _key.field()) + fields = append(fields, _required.field()) + fields = append(fields, _comparator.field()) + fields = append(fields, _weight.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "create", + Fields: fields, + }) + + return v +} + +func (r stepDesiredWorkerLabelUpsertOne) Update( + params ...StepDesiredWorkerLabelSetParam, +) stepDesiredWorkerLabelUpsertOne { + var v stepDesiredWorkerLabelUpsertOne + v.query = r.query + + var fields []builder.Field + for _, q := range params { + + field := q.field() + + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "update", + Fields: fields, + }) + + return v +} + +func (r stepDesiredWorkerLabelUpsertOne) Exec(ctx context.Context) (*StepDesiredWorkerLabelModel, error) { + var v StepDesiredWorkerLabelModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} + +func (r stepDesiredWorkerLabelUpsertOne) Tx() StepDesiredWorkerLabelUniqueTxResult { + v := newStepDesiredWorkerLabelUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} + type stepUpsertOne struct { query builder.Query } @@ -368365,6 +393678,120 @@ func (r rateLimitUpsertOne) Tx() RateLimitUniqueTxResult { return v } +type workflowRunStickyStateUpsertOne struct { + query builder.Query +} + +func (r workflowRunStickyStateUpsertOne) getQuery() builder.Query { + return r.query +} + +func (r workflowRunStickyStateUpsertOne) ExtractQuery() builder.Query { + return r.query +} + +func (r workflowRunStickyStateUpsertOne) with() {} +func (r workflowRunStickyStateUpsertOne) workflowRunStickyStateModel() {} +func (r workflowRunStickyStateUpsertOne) workflowRunStickyStateRelation() {} + +func (r workflowRunStickyStateActions) UpsertOne( + params WorkflowRunStickyStateEqualsUniqueWhereParam, +) workflowRunStickyStateUpsertOne { + var v workflowRunStickyStateUpsertOne + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "mutation" + v.query.Method = "upsertOne" + v.query.Model = "WorkflowRunStickyState" + v.query.Outputs = workflowRunStickyStateOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowRunStickyStateUpsertOne) Create( + + _tenantID WorkflowRunStickyStateWithPrismaTenantIDSetParam, + _workflowRun WorkflowRunStickyStateWithPrismaWorkflowRunSetParam, + _strategy WorkflowRunStickyStateWithPrismaStrategySetParam, + + optional ...WorkflowRunStickyStateSetParam, +) workflowRunStickyStateUpsertOne { + var v workflowRunStickyStateUpsertOne + v.query = r.query + + var fields []builder.Field + fields = append(fields, _tenantID.field()) + fields = append(fields, _workflowRun.field()) + fields = append(fields, _strategy.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "create", + Fields: fields, + }) + + return v +} + +func (r workflowRunStickyStateUpsertOne) Update( + params ...WorkflowRunStickyStateSetParam, +) workflowRunStickyStateUpsertOne { + var v workflowRunStickyStateUpsertOne + v.query = r.query + + var fields []builder.Field + for _, q := range params { + + field := q.field() + + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "update", + Fields: fields, + }) + + return v +} + +func (r workflowRunStickyStateUpsertOne) Exec(ctx context.Context) (*WorkflowRunStickyStateModel, error) { + var v WorkflowRunStickyStateModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} + +func (r workflowRunStickyStateUpsertOne) Tx() WorkflowRunStickyStateUniqueTxResult { + v := newWorkflowRunStickyStateUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} + type workflowRunUpsertOne struct { query builder.Query } @@ -368477,6 +393904,122 @@ func (r workflowRunUpsertOne) Tx() WorkflowRunUniqueTxResult { return v } +type workflowRunDedupeUpsertOne struct { + query builder.Query +} + +func (r workflowRunDedupeUpsertOne) getQuery() builder.Query { + return r.query +} + +func (r workflowRunDedupeUpsertOne) ExtractQuery() builder.Query { + return r.query +} + +func (r workflowRunDedupeUpsertOne) with() {} +func (r workflowRunDedupeUpsertOne) workflowRunDedupeModel() {} +func (r workflowRunDedupeUpsertOne) workflowRunDedupeRelation() {} + +func (r workflowRunDedupeActions) UpsertOne( + params WorkflowRunDedupeEqualsUniqueWhereParam, +) workflowRunDedupeUpsertOne { + var v workflowRunDedupeUpsertOne + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "mutation" + v.query.Method = "upsertOne" + v.query.Model = "WorkflowRunDedupe" + v.query.Outputs = workflowRunDedupeOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workflowRunDedupeUpsertOne) Create( + + _tenant WorkflowRunDedupeWithPrismaTenantSetParam, + _workflowID WorkflowRunDedupeWithPrismaWorkflowIDSetParam, + _workflowRunID WorkflowRunDedupeWithPrismaWorkflowRunIDSetParam, + _value WorkflowRunDedupeWithPrismaValueSetParam, + + optional ...WorkflowRunDedupeSetParam, +) workflowRunDedupeUpsertOne { + var v workflowRunDedupeUpsertOne + v.query = r.query + + var fields []builder.Field + fields = append(fields, _tenant.field()) + fields = append(fields, _workflowID.field()) + fields = append(fields, _workflowRunID.field()) + fields = append(fields, _value.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "create", + Fields: fields, + }) + + return v +} + +func (r workflowRunDedupeUpsertOne) Update( + params ...WorkflowRunDedupeSetParam, +) workflowRunDedupeUpsertOne { + var v workflowRunDedupeUpsertOne + v.query = r.query + + var fields []builder.Field + for _, q := range params { + + field := q.field() + + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "update", + Fields: fields, + }) + + return v +} + +func (r workflowRunDedupeUpsertOne) Exec(ctx context.Context) (*WorkflowRunDedupeModel, error) { + var v WorkflowRunDedupeModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} + +func (r workflowRunDedupeUpsertOne) Tx() WorkflowRunDedupeUniqueTxResult { + v := newWorkflowRunDedupeUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} + type getGroupKeyRunUpsertOne struct { query builder.Query } @@ -369483,6 +395026,118 @@ func (r tickerUpsertOne) Tx() TickerUniqueTxResult { return v } +type workerLabelUpsertOne struct { + query builder.Query +} + +func (r workerLabelUpsertOne) getQuery() builder.Query { + return r.query +} + +func (r workerLabelUpsertOne) ExtractQuery() builder.Query { + return r.query +} + +func (r workerLabelUpsertOne) with() {} +func (r workerLabelUpsertOne) workerLabelModel() {} +func (r workerLabelUpsertOne) workerLabelRelation() {} + +func (r workerLabelActions) UpsertOne( + params WorkerLabelEqualsUniqueWhereParam, +) workerLabelUpsertOne { + var v workerLabelUpsertOne + v.query = builder.NewQuery() + v.query.Engine = r.client + + v.query.Operation = "mutation" + v.query.Method = "upsertOne" + v.query.Model = "WorkerLabel" + v.query.Outputs = workerLabelOutput + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "where", + Fields: builder.TransformEquals([]builder.Field{params.field()}), + }) + + return v +} + +func (r workerLabelUpsertOne) Create( + + _worker WorkerLabelWithPrismaWorkerSetParam, + _key WorkerLabelWithPrismaKeySetParam, + + optional ...WorkerLabelSetParam, +) workerLabelUpsertOne { + var v workerLabelUpsertOne + v.query = r.query + + var fields []builder.Field + fields = append(fields, _worker.field()) + fields = append(fields, _key.field()) + + for _, q := range optional { + fields = append(fields, q.field()) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "create", + Fields: fields, + }) + + return v +} + +func (r workerLabelUpsertOne) Update( + params ...WorkerLabelSetParam, +) workerLabelUpsertOne { + var v workerLabelUpsertOne + v.query = r.query + + var fields []builder.Field + for _, q := range params { + + field := q.field() + + _, isJson := field.Value.(types.JSON) + if field.Value != nil && !isJson { + v := field.Value + field.Fields = []builder.Field{ + { + Name: "set", + Value: v, + }, + } + + field.Value = nil + } + + fields = append(fields, field) + } + + v.query.Inputs = append(v.query.Inputs, builder.Input{ + Name: "update", + Fields: fields, + }) + + return v +} + +func (r workerLabelUpsertOne) Exec(ctx context.Context) (*WorkerLabelModel, error) { + var v WorkerLabelModel + if err := r.query.Exec(ctx, &v); err != nil { + return nil, err + } + return &v, nil +} + +func (r workerLabelUpsertOne) Tx() WorkerLabelUniqueTxResult { + v := newWorkerLabelUniqueTxResult() + v.query = r.query + v.query.TxResult = make(chan []byte, 1) + return v +} + type workerUpsertOne struct { query builder.Query } diff --git a/pkg/repository/prisma/dbsqlc/api_tokens.sql b/pkg/repository/prisma/dbsqlc/api_tokens.sql index 21b1f66f0..3b875b116 100644 --- a/pkg/repository/prisma/dbsqlc/api_tokens.sql +++ b/pkg/repository/prisma/dbsqlc/api_tokens.sql @@ -13,12 +13,14 @@ INSERT INTO "APIToken" ( "updatedAt", "tenantId", "name", - "expiresAt" + "expiresAt", + "internal" ) VALUES ( coalesce(@id::uuid, gen_random_uuid()), CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, sqlc.narg('tenantId')::uuid, sqlc.narg('name')::text, - @expiresAt::timestamp + @expiresAt::timestamp, + COALESCE(sqlc.narg('internal')::boolean, FALSE) ) RETURNING *; diff --git a/pkg/repository/prisma/dbsqlc/api_tokens.sql.go b/pkg/repository/prisma/dbsqlc/api_tokens.sql.go index efacedfc9..e8612a7cb 100644 --- a/pkg/repository/prisma/dbsqlc/api_tokens.sql.go +++ b/pkg/repository/prisma/dbsqlc/api_tokens.sql.go @@ -18,15 +18,17 @@ INSERT INTO "APIToken" ( "updatedAt", "tenantId", "name", - "expiresAt" + "expiresAt", + "internal" ) VALUES ( coalesce($1::uuid, gen_random_uuid()), CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, $2::uuid, $3::text, - $4::timestamp -) RETURNING id, "createdAt", "updatedAt", "expiresAt", revoked, name, "tenantId", "nextAlertAt" + $4::timestamp, + COALESCE($5::boolean, FALSE) +) RETURNING id, "createdAt", "updatedAt", "expiresAt", revoked, name, "tenantId", "nextAlertAt", internal ` type CreateAPITokenParams struct { @@ -34,6 +36,7 @@ type CreateAPITokenParams struct { TenantId pgtype.UUID `json:"tenantId"` Name pgtype.Text `json:"name"` Expiresat pgtype.Timestamp `json:"expiresat"` + Internal pgtype.Bool `json:"internal"` } func (q *Queries) CreateAPIToken(ctx context.Context, db DBTX, arg CreateAPITokenParams) (*APIToken, error) { @@ -42,6 +45,7 @@ func (q *Queries) CreateAPIToken(ctx context.Context, db DBTX, arg CreateAPIToke arg.TenantId, arg.Name, arg.Expiresat, + arg.Internal, ) var i APIToken err := row.Scan( @@ -53,13 +57,14 @@ func (q *Queries) CreateAPIToken(ctx context.Context, db DBTX, arg CreateAPIToke &i.Name, &i.TenantId, &i.NextAlertAt, + &i.Internal, ) return &i, err } const getAPITokenById = `-- name: GetAPITokenById :one SELECT - id, "createdAt", "updatedAt", "expiresAt", revoked, name, "tenantId", "nextAlertAt" + id, "createdAt", "updatedAt", "expiresAt", revoked, name, "tenantId", "nextAlertAt", internal FROM "APIToken" WHERE @@ -78,6 +83,7 @@ func (q *Queries) GetAPITokenById(ctx context.Context, db DBTX, id pgtype.UUID) &i.Name, &i.TenantId, &i.NextAlertAt, + &i.Internal, ) return &i, err } diff --git a/pkg/repository/prisma/dbsqlc/events.sql b/pkg/repository/prisma/dbsqlc/events.sql index ae643e9ee..0c5f313f3 100644 --- a/pkg/repository/prisma/dbsqlc/events.sql +++ b/pkg/repository/prisma/dbsqlc/events.sql @@ -4,39 +4,57 @@ SELECT FROM "Event" WHERE + "deletedAt" IS NOT NULL AND "id" = @id::uuid; -- name: CountEvents :one +WITH events AS ( + SELECT + events."id", events."createdAt" + FROM + "Event" as events + LEFT JOIN + "WorkflowRunTriggeredBy" as runTriggers ON events."id" = runTriggers."eventId" + LEFT JOIN + "WorkflowRun" as runs ON runTriggers."parentId" = runs."id" + LEFT JOIN + "WorkflowVersion" as workflowVersion ON workflowVersion."id" = runs."workflowVersionId" + LEFT JOIN + "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" + WHERE + events."tenantId" = $1 AND + events."deletedAt" IS NOT NULL AND + ( + sqlc.narg('keys')::text[] IS NULL OR + events."key" = ANY(sqlc.narg('keys')::text[]) + ) AND + ( + sqlc.narg('additionalMetadata')::jsonb IS NULL OR + events."additionalMetadata" @> sqlc.narg('additionalMetadata')::jsonb + ) AND + ( + (sqlc.narg('workflows')::text[])::uuid[] IS NULL OR + (workflow."id" = ANY(sqlc.narg('workflows')::text[]::uuid[])) + ) AND + ( + sqlc.narg('search')::text IS NULL OR + jsonb_path_exists(events."data", cast(concat('$.** ? (@.type() == "string" && @ like_regex "', sqlc.narg('search')::text, '")') as jsonpath)) + ) AND + ( + sqlc.narg('statuses')::text[] IS NULL OR + "status" = ANY(cast(sqlc.narg('statuses')::text[] as "WorkflowRunStatus"[])) + ) + GROUP BY + events."id" + ORDER BY + case when @orderBy = 'createdAt ASC' THEN events."createdAt" END ASC , + case when @orderBy = 'createdAt DESC' then events."createdAt" END DESC + LIMIT 10000 +) SELECT - count(*) OVER() AS total + count(events) AS total FROM - "Event" as events -LEFT JOIN - "WorkflowRunTriggeredBy" as runTriggers ON events."id" = runTriggers."eventId" -LEFT JOIN - "WorkflowRun" as runs ON runTriggers."parentId" = runs."id" -LEFT JOIN - "WorkflowVersion" as workflowVersion ON workflowVersion."id" = runs."workflowVersionId" -LEFT JOIN - "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" -WHERE - events."tenantId" = $1 AND - ( - sqlc.narg('keys')::text[] IS NULL OR - events."key" = ANY(sqlc.narg('keys')::text[]) - ) AND - ( - (sqlc.narg('workflows')::text[])::uuid[] IS NULL OR - (workflow."id" = ANY(sqlc.narg('workflows')::text[]::uuid[])) - ) AND - ( - sqlc.narg('search')::text IS NULL OR - jsonb_path_exists(events."data", cast(concat('$.** ? (@.type() == "string" && @ like_regex "', sqlc.narg('search')::text, '")') as jsonpath)) - ) AND - ( - sqlc.narg('statuses')::text[] IS NULL OR - "status" = ANY(cast(sqlc.narg('statuses')::text[] as "WorkflowRunStatus"[])) - ); + events; -- name: CreateEvent :one INSERT INTO "Event" ( @@ -119,6 +137,7 @@ SELECT FROM "Event" WHERE + events."deletedAt" IS NOT NULL AND "createdAt" >= NOW() - INTERVAL '1 week' GROUP BY event_hour @@ -131,5 +150,75 @@ SELECT FROM "Event" as events WHERE + events."deletedAt" IS NOT NULL AND "tenantId" = @tenantId::uuid AND "id" = ANY (sqlc.arg('ids')::uuid[]); + +-- name: SoftDeleteExpiredEvents :one +WITH for_delete AS ( + SELECT + "id" + FROM "Event" e + WHERE + e."tenantId" = @tenantId::uuid AND + e."createdAt" < @createdBefore::timestamp AND + e."deletedAt" IS NULL + ORDER BY e."createdAt" ASC + LIMIT sqlc.arg('limit') +1 + FOR UPDATE SKIP LOCKED +),expired_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT sqlc.arg('limit') +), has_more AS ( + SELECT + CASE + WHEN COUNT(*) > sqlc.arg('limit') THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +) +UPDATE + "Event" +SET + "deletedAt" = CURRENT_TIMESTAMP +WHERE + "id" IN (SELECT "id" FROM expired_with_limit) +RETURNING + (SELECT has_more FROM has_more) as has_more; + + +-- name: ClearEventPayloadData :one +WITH for_delete AS ( + SELECT + e1."id" as "id" + FROM "Event" e1 + WHERE + e1."tenantId" = @tenantId::uuid AND + e1."deletedAt" IS NOT NULL -- TODO change this for all clear queries + AND e1."data" IS NOT NULL + LIMIT sqlc.arg('limit') + 1 + FOR UPDATE SKIP LOCKED +), expired_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT sqlc.arg('limit') +), +has_more AS ( + SELECT + CASE + WHEN COUNT(*) > sqlc.arg('limit') THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +) +UPDATE + "Event" +SET + "data" = NULL +WHERE + "id" IN (SELECT "id" FROM expired_with_limit) +RETURNING + (SELECT has_more FROM has_more) as has_more; diff --git a/pkg/repository/prisma/dbsqlc/events.sql.go b/pkg/repository/prisma/dbsqlc/events.sql.go index 52ce0d20a..b8266af57 100644 --- a/pkg/repository/prisma/dbsqlc/events.sql.go +++ b/pkg/repository/prisma/dbsqlc/events.sql.go @@ -11,54 +11,122 @@ import ( "github.com/jackc/pgx/v5/pgtype" ) +const clearEventPayloadData = `-- name: ClearEventPayloadData :one +WITH for_delete AS ( + SELECT + e1."id" as "id" + FROM "Event" e1 + WHERE + e1."tenantId" = $1::uuid AND + e1."deletedAt" IS NOT NULL -- TODO change this for all clear queries + AND e1."data" IS NOT NULL + LIMIT $2 + 1 + FOR UPDATE SKIP LOCKED +), expired_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT $2 +), +has_more AS ( + SELECT + CASE + WHEN COUNT(*) > $2 THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +) +UPDATE + "Event" +SET + "data" = NULL +WHERE + "id" IN (SELECT "id" FROM expired_with_limit) +RETURNING + (SELECT has_more FROM has_more) as has_more +` + +type ClearEventPayloadDataParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Limit interface{} `json:"limit"` +} + +func (q *Queries) ClearEventPayloadData(ctx context.Context, db DBTX, arg ClearEventPayloadDataParams) (bool, error) { + row := db.QueryRow(ctx, clearEventPayloadData, arg.Tenantid, arg.Limit) + var has_more bool + err := row.Scan(&has_more) + return has_more, err +} + const countEvents = `-- name: CountEvents :one +WITH events AS ( + SELECT + events."id", events."createdAt" + FROM + "Event" as events + LEFT JOIN + "WorkflowRunTriggeredBy" as runTriggers ON events."id" = runTriggers."eventId" + LEFT JOIN + "WorkflowRun" as runs ON runTriggers."parentId" = runs."id" + LEFT JOIN + "WorkflowVersion" as workflowVersion ON workflowVersion."id" = runs."workflowVersionId" + LEFT JOIN + "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" + WHERE + events."tenantId" = $1 AND + events."deletedAt" IS NOT NULL AND + ( + $2::text[] IS NULL OR + events."key" = ANY($2::text[]) + ) AND + ( + $3::jsonb IS NULL OR + events."additionalMetadata" @> $3::jsonb + ) AND + ( + ($4::text[])::uuid[] IS NULL OR + (workflow."id" = ANY($4::text[]::uuid[])) + ) AND + ( + $5::text IS NULL OR + jsonb_path_exists(events."data", cast(concat('$.** ? (@.type() == "string" && @ like_regex "', $5::text, '")') as jsonpath)) + ) AND + ( + $6::text[] IS NULL OR + "status" = ANY(cast($6::text[] as "WorkflowRunStatus"[])) + ) + GROUP BY + events."id" + ORDER BY + case when $7 = 'createdAt ASC' THEN events."createdAt" END ASC , + case when $7 = 'createdAt DESC' then events."createdAt" END DESC + LIMIT 10000 +) SELECT - count(*) OVER() AS total + count(events) AS total FROM - "Event" as events -LEFT JOIN - "WorkflowRunTriggeredBy" as runTriggers ON events."id" = runTriggers."eventId" -LEFT JOIN - "WorkflowRun" as runs ON runTriggers."parentId" = runs."id" -LEFT JOIN - "WorkflowVersion" as workflowVersion ON workflowVersion."id" = runs."workflowVersionId" -LEFT JOIN - "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" -WHERE - events."tenantId" = $1 AND - ( - $2::text[] IS NULL OR - events."key" = ANY($2::text[]) - ) AND - ( - ($3::text[])::uuid[] IS NULL OR - (workflow."id" = ANY($3::text[]::uuid[])) - ) AND - ( - $4::text IS NULL OR - jsonb_path_exists(events."data", cast(concat('$.** ? (@.type() == "string" && @ like_regex "', $4::text, '")') as jsonpath)) - ) AND - ( - $5::text[] IS NULL OR - "status" = ANY(cast($5::text[] as "WorkflowRunStatus"[])) - ) + events ` type CountEventsParams struct { - TenantId pgtype.UUID `json:"tenantId"` - Keys []string `json:"keys"` - Workflows []string `json:"workflows"` - Search pgtype.Text `json:"search"` - Statuses []string `json:"statuses"` + TenantId pgtype.UUID `json:"tenantId"` + Keys []string `json:"keys"` + AdditionalMetadata []byte `json:"additionalMetadata"` + Workflows []string `json:"workflows"` + Search pgtype.Text `json:"search"` + Statuses []string `json:"statuses"` + Orderby interface{} `json:"orderby"` } func (q *Queries) CountEvents(ctx context.Context, db DBTX, arg CountEventsParams) (int64, error) { row := db.QueryRow(ctx, countEvents, arg.TenantId, arg.Keys, + arg.AdditionalMetadata, arg.Workflows, arg.Search, arg.Statuses, + arg.Orderby, ) var total int64 err := row.Scan(&total) @@ -134,6 +202,7 @@ SELECT FROM "Event" WHERE + "deletedAt" IS NOT NULL AND "id" = $1::uuid ` @@ -161,6 +230,7 @@ SELECT FROM "Event" WHERE + events."deletedAt" IS NOT NULL AND "createdAt" >= NOW() - INTERVAL '1 week' GROUP BY event_hour @@ -317,6 +387,7 @@ SELECT FROM "Event" as events WHERE + events."deletedAt" IS NOT NULL AND "tenantId" = $1::uuid AND "id" = ANY ($2::uuid[]) ` @@ -355,3 +426,51 @@ func (q *Queries) ListEventsByIDs(ctx context.Context, db DBTX, arg ListEventsBy } return items, nil } + +const softDeleteExpiredEvents = `-- name: SoftDeleteExpiredEvents :one +WITH for_delete AS ( + SELECT + "id" + FROM "Event" e + WHERE + e."tenantId" = $1::uuid AND + e."createdAt" < $2::timestamp AND + e."deletedAt" IS NULL + ORDER BY e."createdAt" ASC + LIMIT $3 +1 + FOR UPDATE SKIP LOCKED +),expired_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT $3 +), has_more AS ( + SELECT + CASE + WHEN COUNT(*) > $3 THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +) +UPDATE + "Event" +SET + "deletedAt" = CURRENT_TIMESTAMP +WHERE + "id" IN (SELECT "id" FROM expired_with_limit) +RETURNING + (SELECT has_more FROM has_more) as has_more +` + +type SoftDeleteExpiredEventsParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Createdbefore pgtype.Timestamp `json:"createdbefore"` + Limit interface{} `json:"limit"` +} + +func (q *Queries) SoftDeleteExpiredEvents(ctx context.Context, db DBTX, arg SoftDeleteExpiredEventsParams) (bool, error) { + row := db.QueryRow(ctx, softDeleteExpiredEvents, arg.Tenantid, arg.Createdbefore, arg.Limit) + var has_more bool + err := row.Scan(&has_more) + return has_more, err +} diff --git a/pkg/repository/prisma/dbsqlc/get_group_key_runs.sql b/pkg/repository/prisma/dbsqlc/get_group_key_runs.sql index 2437f3efb..da8e2fb51 100644 --- a/pkg/repository/prisma/dbsqlc/get_group_key_runs.sql +++ b/pkg/repository/prisma/dbsqlc/get_group_key_runs.sql @@ -41,6 +41,9 @@ JOIN "Action" a ON wc."getConcurrencyGroupId" = a."id" AND a."tenantId" = ggr."tenantId" WHERE ggr."id" = ANY(@ids::uuid[]) AND + ggr."deletedAt" IS NULL AND + wr."deletedAt" IS NULL AND + wv."deletedAt" IS NULL AND ggr."tenantId" = @tenantId::uuid; -- name: ListGetGroupKeyRunsToReassign :many @@ -55,6 +58,7 @@ WITH valid_workers AS ( w."tenantId" = @tenantId::uuid AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' AND w."isActive" = true + AND w."isPaused" = false GROUP BY w."id" ), @@ -79,6 +83,7 @@ group_key_runs AS ( "Worker" w ON ggr."workerId" = w."id" WHERE ggr."tenantId" = @tenantId::uuid + AND ggr."deletedAt" IS NULL AND (( ggr."status" = 'RUNNING' AND w."lastHeartbeatAt" < NOW() - INTERVAL '30 seconds' @@ -140,6 +145,7 @@ group_key_runs AS ( "Worker" w ON ggr."workerId" = w."id" WHERE ggr."tenantId" = @tenantId::uuid + AND ggr."deletedAt" IS NULL AND ggr."requeueAfter" < NOW() AND (ggr."status" = 'PENDING' OR ggr."status" = 'PENDING_ASSIGNMENT') ORDER BY @@ -183,6 +189,9 @@ WITH get_group_key_run AS ( JOIN "Action" a ON wc."getConcurrencyGroupId" = a."id" WHERE + wr."deletedAt" IS NULL AND + ggr."deletedAt" IS NULL AND + wv."deletedAt" IS NULL AND ggr."id" = @getGroupKeyRunId::uuid AND ggr."tenantId" = @tenantId::uuid ), valid_workers AS ( @@ -243,5 +252,6 @@ SET WHERE "id" = @getGroupKeyRunId::uuid AND "tenantId" = @tenantId::uuid AND + "deletedAt" IS NULL AND EXISTS (SELECT 1 FROM selected_ticker) RETURNING "GetGroupKeyRun"."id", "GetGroupKeyRun"."tickerId"; diff --git a/pkg/repository/prisma/dbsqlc/get_group_key_runs.sql.go b/pkg/repository/prisma/dbsqlc/get_group_key_runs.sql.go index a34d336f1..80819b510 100644 --- a/pkg/repository/prisma/dbsqlc/get_group_key_runs.sql.go +++ b/pkg/repository/prisma/dbsqlc/get_group_key_runs.sql.go @@ -32,6 +32,7 @@ SET WHERE "id" = $1::uuid AND "tenantId" = $2::uuid AND + "deletedAt" IS NULL AND EXISTS (SELECT 1 FROM selected_ticker) RETURNING "GetGroupKeyRun"."id", "GetGroupKeyRun"."tickerId" ` @@ -70,6 +71,9 @@ WITH get_group_key_run AS ( JOIN "Action" a ON wc."getConcurrencyGroupId" = a."id" WHERE + wr."deletedAt" IS NULL AND + ggr."deletedAt" IS NULL AND + wv."deletedAt" IS NULL AND ggr."id" = $1::uuid AND ggr."tenantId" = $2::uuid ), valid_workers AS ( @@ -148,6 +152,9 @@ JOIN "Action" a ON wc."getConcurrencyGroupId" = a."id" AND a."tenantId" = ggr."tenantId" WHERE ggr."id" = ANY($1::uuid[]) AND + ggr."deletedAt" IS NULL AND + wr."deletedAt" IS NULL AND + wv."deletedAt" IS NULL AND ggr."tenantId" = $2::uuid ` @@ -221,6 +228,7 @@ WITH valid_workers AS ( w."tenantId" = $1::uuid AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' AND w."isActive" = true + AND w."isPaused" = false GROUP BY w."id" ), @@ -245,6 +253,7 @@ group_key_runs AS ( "Worker" w ON ggr."workerId" = w."id" WHERE ggr."tenantId" = $1::uuid + AND ggr."deletedAt" IS NULL AND (( ggr."status" = 'RUNNING' AND w."lastHeartbeatAt" < NOW() - INTERVAL '30 seconds' @@ -347,6 +356,7 @@ group_key_runs AS ( "Worker" w ON ggr."workerId" = w."id" WHERE ggr."tenantId" = $1::uuid + AND ggr."deletedAt" IS NULL AND ggr."requeueAfter" < NOW() AND (ggr."status" = 'PENDING' OR ggr."status" = 'PENDING_ASSIGNMENT') ORDER BY diff --git a/pkg/repository/prisma/dbsqlc/job_runs.sql b/pkg/repository/prisma/dbsqlc/job_runs.sql index 7041b43f6..10586f602 100644 --- a/pkg/repository/prisma/dbsqlc/job_runs.sql +++ b/pkg/repository/prisma/dbsqlc/job_runs.sql @@ -137,3 +137,40 @@ WHERE jr."tenantId" = @tenantId::uuid AND jr."workflowRunId" = @workflowRunId::uuid AND jr."jobId" = @jobId::uuid; + +-- name: ClearJobRunLookupData :one +WITH for_delete AS ( + SELECT + jrld2."id" as "id" + FROM "JobRun" jr2 + LEFT JOIN "JobRunLookupData" jrld2 ON jr2."id" = jrld2."jobRunId" + WHERE + jr2."tenantId" = @tenantId::uuid AND + jr2."deletedAt" IS NOT NULL AND + jrld2."data" IS NOT NULL + ORDER BY jr2."deletedAt" ASC + LIMIT sqlc.arg('limit') + 1 + FOR UPDATE SKIP LOCKED +), +deleted_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT sqlc.arg('limit') +), +has_more AS ( + SELECT + CASE + WHEN COUNT(*) > sqlc.arg('limit') THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +) +UPDATE + "JobRunLookupData" +SET + "data" = NULL +WHERE + "id" IN (SELECT "id" FROM deleted_with_limit) +RETURNING + (SELECT has_more FROM has_more) as has_more; diff --git a/pkg/repository/prisma/dbsqlc/job_runs.sql.go b/pkg/repository/prisma/dbsqlc/job_runs.sql.go index dd080737a..9f3d74a47 100644 --- a/pkg/repository/prisma/dbsqlc/job_runs.sql.go +++ b/pkg/repository/prisma/dbsqlc/job_runs.sql.go @@ -11,6 +11,56 @@ import ( "github.com/jackc/pgx/v5/pgtype" ) +const clearJobRunLookupData = `-- name: ClearJobRunLookupData :one +WITH for_delete AS ( + SELECT + jrld2."id" as "id" + FROM "JobRun" jr2 + LEFT JOIN "JobRunLookupData" jrld2 ON jr2."id" = jrld2."jobRunId" + WHERE + jr2."tenantId" = $1::uuid AND + jr2."deletedAt" IS NOT NULL AND + jrld2."data" IS NOT NULL + ORDER BY jr2."deletedAt" ASC + LIMIT $2 + 1 + FOR UPDATE SKIP LOCKED +), +deleted_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT $2 +), +has_more AS ( + SELECT + CASE + WHEN COUNT(*) > $2 THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +) +UPDATE + "JobRunLookupData" +SET + "data" = NULL +WHERE + "id" IN (SELECT "id" FROM deleted_with_limit) +RETURNING + (SELECT has_more FROM has_more) as has_more +` + +type ClearJobRunLookupDataParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Limit interface{} `json:"limit"` +} + +func (q *Queries) ClearJobRunLookupData(ctx context.Context, db DBTX, arg ClearJobRunLookupDataParams) (bool, error) { + row := db.QueryRow(ctx, clearJobRunLookupData, arg.Tenantid, arg.Limit) + var has_more bool + err := row.Scan(&has_more) + return has_more, err +} + const getJobRunByWorkflowRunIdAndJobId = `-- name: GetJobRunByWorkflowRunIdAndJobId :one SELECT "id", diff --git a/pkg/repository/prisma/dbsqlc/models.go b/pkg/repository/prisma/dbsqlc/models.go index 67ffc496c..a48ccfef7 100644 --- a/pkg/repository/prisma/dbsqlc/models.go +++ b/pkg/repository/prisma/dbsqlc/models.go @@ -418,6 +418,48 @@ func (ns NullStepRunStatus) Value() (driver.Value, error) { return string(ns.StepRunStatus), nil } +type StickyStrategy string + +const ( + StickyStrategySOFT StickyStrategy = "SOFT" + StickyStrategyHARD StickyStrategy = "HARD" +) + +func (e *StickyStrategy) Scan(src interface{}) error { + switch s := src.(type) { + case []byte: + *e = StickyStrategy(s) + case string: + *e = StickyStrategy(s) + default: + return fmt.Errorf("unsupported scan type for StickyStrategy: %T", src) + } + return nil +} + +type NullStickyStrategy struct { + StickyStrategy StickyStrategy `json:"StickyStrategy"` + Valid bool `json:"valid"` // Valid is true if StickyStrategy is not NULL +} + +// Scan implements the Scanner interface. +func (ns *NullStickyStrategy) Scan(value interface{}) error { + if value == nil { + ns.StickyStrategy, ns.Valid = "", false + return nil + } + ns.Valid = true + return ns.StickyStrategy.Scan(value) +} + +// Value implements the driver Valuer interface. +func (ns NullStickyStrategy) Value() (driver.Value, error) { + if !ns.Valid { + return nil, nil + } + return string(ns.StickyStrategy), nil +} + type TenantMemberRole string const ( @@ -544,6 +586,95 @@ func (ns NullVcsProvider) Value() (driver.Value, error) { return string(ns.VcsProvider), nil } +type WorkerLabelComparator string + +const ( + WorkerLabelComparatorEQUAL WorkerLabelComparator = "EQUAL" + WorkerLabelComparatorNOTEQUAL WorkerLabelComparator = "NOT_EQUAL" + WorkerLabelComparatorGREATERTHAN WorkerLabelComparator = "GREATER_THAN" + WorkerLabelComparatorGREATERTHANOREQUAL WorkerLabelComparator = "GREATER_THAN_OR_EQUAL" + WorkerLabelComparatorLESSTHAN WorkerLabelComparator = "LESS_THAN" + WorkerLabelComparatorLESSTHANOREQUAL WorkerLabelComparator = "LESS_THAN_OR_EQUAL" +) + +func (e *WorkerLabelComparator) Scan(src interface{}) error { + switch s := src.(type) { + case []byte: + *e = WorkerLabelComparator(s) + case string: + *e = WorkerLabelComparator(s) + default: + return fmt.Errorf("unsupported scan type for WorkerLabelComparator: %T", src) + } + return nil +} + +type NullWorkerLabelComparator struct { + WorkerLabelComparator WorkerLabelComparator `json:"WorkerLabelComparator"` + Valid bool `json:"valid"` // Valid is true if WorkerLabelComparator is not NULL +} + +// Scan implements the Scanner interface. +func (ns *NullWorkerLabelComparator) Scan(value interface{}) error { + if value == nil { + ns.WorkerLabelComparator, ns.Valid = "", false + return nil + } + ns.Valid = true + return ns.WorkerLabelComparator.Scan(value) +} + +// Value implements the driver Valuer interface. +func (ns NullWorkerLabelComparator) Value() (driver.Value, error) { + if !ns.Valid { + return nil, nil + } + return string(ns.WorkerLabelComparator), nil +} + +type WorkflowKind string + +const ( + WorkflowKindFUNCTION WorkflowKind = "FUNCTION" + WorkflowKindDURABLE WorkflowKind = "DURABLE" + WorkflowKindDAG WorkflowKind = "DAG" +) + +func (e *WorkflowKind) Scan(src interface{}) error { + switch s := src.(type) { + case []byte: + *e = WorkflowKind(s) + case string: + *e = WorkflowKind(s) + default: + return fmt.Errorf("unsupported scan type for WorkflowKind: %T", src) + } + return nil +} + +type NullWorkflowKind struct { + WorkflowKind WorkflowKind `json:"WorkflowKind"` + Valid bool `json:"valid"` // Valid is true if WorkflowKind is not NULL +} + +// Scan implements the Scanner interface. +func (ns *NullWorkflowKind) Scan(value interface{}) error { + if value == nil { + ns.WorkflowKind, ns.Valid = "", false + return nil + } + ns.Valid = true + return ns.WorkflowKind.Scan(value) +} + +// Value implements the driver Valuer interface. +func (ns NullWorkflowKind) Value() (driver.Value, error) { + if !ns.Valid { + return nil, nil + } + return string(ns.WorkflowKind), nil +} + type WorkflowRunStatus string const ( @@ -598,6 +729,7 @@ type APIToken struct { Name pgtype.Text `json:"name"` TenantId pgtype.UUID `json:"tenantId"` NextAlertAt pgtype.Timestamp `json:"nextAlertAt"` + Internal bool `json:"internal"` } type Action struct { @@ -779,6 +911,19 @@ type Step struct { ScheduleTimeout string `json:"scheduleTimeout"` } +type StepDesiredWorkerLabel struct { + ID int64 `json:"id"` + CreatedAt pgtype.Timestamp `json:"createdAt"` + UpdatedAt pgtype.Timestamp `json:"updatedAt"` + StepId pgtype.UUID `json:"stepId"` + Key string `json:"key"` + StrValue pgtype.Text `json:"strValue"` + IntValue pgtype.Int4 `json:"intValue"` + Required bool `json:"required"` + Comparator WorkerLabelComparator `json:"comparator"` + Weight int32 `json:"weight"` +} + type StepOrder struct { A pgtype.UUID `json:"A"` B pgtype.UUID `json:"B"` @@ -876,6 +1021,7 @@ type Tenant struct { AlertMemberEmails bool `json:"alertMemberEmails"` ControllerPartitionId pgtype.Text `json:"controllerPartitionId"` WorkerPartitionId pgtype.Text `json:"workerPartitionId"` + DataRetentionPeriod string `json:"dataRetentionPeriod"` } type TenantAlertEmailGroup struct { @@ -1040,6 +1186,17 @@ type Worker struct { MaxRuns int32 `json:"maxRuns"` IsActive bool `json:"isActive"` LastListenerEstablished pgtype.Timestamp `json:"lastListenerEstablished"` + IsPaused bool `json:"isPaused"` +} + +type WorkerLabel struct { + ID int64 `json:"id"` + CreatedAt pgtype.Timestamp `json:"createdAt"` + UpdatedAt pgtype.Timestamp `json:"updatedAt"` + WorkerId pgtype.UUID `json:"workerId"` + Key string `json:"key"` + StrValue pgtype.Text `json:"strValue"` + IntValue pgtype.Int4 `json:"intValue"` } type WorkerSemaphore struct { @@ -1091,6 +1248,27 @@ type WorkflowRun struct { ParentId pgtype.UUID `json:"parentId"` ParentStepRunId pgtype.UUID `json:"parentStepRunId"` AdditionalMetadata []byte `json:"additionalMetadata"` + Duration pgtype.Int4 `json:"duration"` +} + +type WorkflowRunDedupe struct { + ID int64 `json:"id"` + CreatedAt pgtype.Timestamp `json:"createdAt"` + UpdatedAt pgtype.Timestamp `json:"updatedAt"` + TenantId pgtype.UUID `json:"tenantId"` + WorkflowId pgtype.UUID `json:"workflowId"` + WorkflowRunId pgtype.UUID `json:"workflowRunId"` + Value string `json:"value"` +} + +type WorkflowRunStickyState struct { + ID int64 `json:"id"` + CreatedAt pgtype.Timestamp `json:"createdAt"` + UpdatedAt pgtype.Timestamp `json:"updatedAt"` + TenantId pgtype.UUID `json:"tenantId"` + WorkflowRunId pgtype.UUID `json:"workflowRunId"` + DesiredWorkerId pgtype.UUID `json:"desiredWorkerId"` + Strategy StickyStrategy `json:"strategy"` } type WorkflowRunTriggeredBy struct { @@ -1156,14 +1334,16 @@ type WorkflowTriggers struct { } type WorkflowVersion struct { - ID pgtype.UUID `json:"id"` - CreatedAt pgtype.Timestamp `json:"createdAt"` - UpdatedAt pgtype.Timestamp `json:"updatedAt"` - DeletedAt pgtype.Timestamp `json:"deletedAt"` - Version pgtype.Text `json:"version"` - Order int64 `json:"order"` - WorkflowId pgtype.UUID `json:"workflowId"` - Checksum string `json:"checksum"` - ScheduleTimeout string `json:"scheduleTimeout"` - OnFailureJobId pgtype.UUID `json:"onFailureJobId"` + ID pgtype.UUID `json:"id"` + CreatedAt pgtype.Timestamp `json:"createdAt"` + UpdatedAt pgtype.Timestamp `json:"updatedAt"` + DeletedAt pgtype.Timestamp `json:"deletedAt"` + Version pgtype.Text `json:"version"` + Order int64 `json:"order"` + WorkflowId pgtype.UUID `json:"workflowId"` + Checksum string `json:"checksum"` + ScheduleTimeout string `json:"scheduleTimeout"` + OnFailureJobId pgtype.UUID `json:"onFailureJobId"` + Sticky NullStickyStrategy `json:"sticky"` + Kind WorkflowKind `json:"kind"` } diff --git a/pkg/repository/prisma/dbsqlc/schema.sql b/pkg/repository/prisma/dbsqlc/schema.sql index c163068a1..e8768fe9a 100644 --- a/pkg/repository/prisma/dbsqlc/schema.sql +++ b/pkg/repository/prisma/dbsqlc/schema.sql @@ -25,6 +25,9 @@ CREATE TYPE "StepRunEventSeverity" AS ENUM ('INFO', 'WARNING', 'CRITICAL'); -- CreateEnum CREATE TYPE "StepRunStatus" AS ENUM ('PENDING', 'PENDING_ASSIGNMENT', 'ASSIGNED', 'RUNNING', 'SUCCEEDED', 'FAILED', 'CANCELLED'); +-- CreateEnum +CREATE TYPE "StickyStrategy" AS ENUM ('SOFT', 'HARD'); + -- CreateEnum CREATE TYPE "TenantMemberRole" AS ENUM ('OWNER', 'ADMIN', 'MEMBER'); @@ -34,6 +37,12 @@ CREATE TYPE "TenantResourceLimitAlertType" AS ENUM ('Alarm', 'Exhausted'); -- CreateEnum CREATE TYPE "VcsProvider" AS ENUM ('GITHUB'); +-- CreateEnum +CREATE TYPE "WorkerLabelComparator" AS ENUM ('EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL'); + +-- CreateEnum +CREATE TYPE "WorkflowKind" AS ENUM ('FUNCTION', 'DURABLE', 'DAG'); + -- CreateEnum CREATE TYPE "WorkflowRunStatus" AS ENUM ('PENDING', 'RUNNING', 'SUCCEEDED', 'FAILED', 'QUEUED'); @@ -47,6 +56,7 @@ CREATE TABLE "APIToken" ( "name" TEXT, "tenantId" UUID, "nextAlertAt" TIMESTAMP(3), + "internal" BOOLEAN NOT NULL DEFAULT false, CONSTRAINT "APIToken_pkey" PRIMARY KEY ("id") ); @@ -263,6 +273,22 @@ CREATE TABLE "Step" ( CONSTRAINT "Step_pkey" PRIMARY KEY ("id") ); +-- CreateTable +CREATE TABLE "StepDesiredWorkerLabel" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "stepId" UUID NOT NULL, + "key" TEXT NOT NULL, + "strValue" TEXT, + "intValue" INTEGER, + "required" BOOLEAN NOT NULL, + "comparator" "WorkerLabelComparator" NOT NULL, + "weight" INTEGER NOT NULL, + + CONSTRAINT "StepDesiredWorkerLabel_pkey" PRIMARY KEY ("id") +); + -- CreateTable CREATE TABLE "StepRateLimit" ( "units" INTEGER NOT NULL, @@ -362,6 +388,7 @@ CREATE TABLE "Tenant" ( "alertMemberEmails" BOOLEAN NOT NULL DEFAULT true, "controllerPartitionId" TEXT, "workerPartitionId" TEXT, + "dataRetentionPeriod" TEXT NOT NULL DEFAULT '720h', CONSTRAINT "Tenant_pkey" PRIMARY KEY ("id") ); @@ -572,10 +599,24 @@ CREATE TABLE "Worker" ( "maxRuns" INTEGER NOT NULL DEFAULT 100, "isActive" BOOLEAN NOT NULL DEFAULT false, "lastListenerEstablished" TIMESTAMP(3), + "isPaused" BOOLEAN NOT NULL DEFAULT false, CONSTRAINT "Worker_pkey" PRIMARY KEY ("id") ); +-- CreateTable +CREATE TABLE "WorkerLabel" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "workerId" UUID NOT NULL, + "key" TEXT NOT NULL, + "strValue" TEXT, + "intValue" INTEGER, + + CONSTRAINT "WorkerLabel_pkey" PRIMARY KEY ("id") +); + -- CreateTable CREATE TABLE "WorkerSemaphore" ( "workerId" UUID NOT NULL, @@ -636,10 +677,35 @@ CREATE TABLE "WorkflowRun" ( "parentId" UUID, "parentStepRunId" UUID, "additionalMetadata" JSONB, + "duration" INTEGER, CONSTRAINT "WorkflowRun_pkey" PRIMARY KEY ("id") ); +-- CreateTable +CREATE TABLE "WorkflowRunDedupe" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "tenantId" UUID NOT NULL, + "workflowId" UUID NOT NULL, + "workflowRunId" UUID NOT NULL, + "value" TEXT NOT NULL +); + +-- CreateTable +CREATE TABLE "WorkflowRunStickyState" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "tenantId" UUID NOT NULL, + "workflowRunId" UUID NOT NULL, + "desiredWorkerId" UUID, + "strategy" "StickyStrategy" NOT NULL, + + CONSTRAINT "WorkflowRunStickyState_pkey" PRIMARY KEY ("id") +); + -- CreateTable CREATE TABLE "WorkflowRunTriggeredBy" ( "id" UUID NOT NULL, @@ -723,6 +789,8 @@ CREATE TABLE "WorkflowVersion" ( "checksum" TEXT NOT NULL, "scheduleTimeout" TEXT NOT NULL DEFAULT '5m', "onFailureJobId" UUID, + "sticky" "StickyStrategy", + "kind" "WorkflowKind" NOT NULL DEFAULT 'DAG', CONSTRAINT "WorkflowVersion_pkey" PRIMARY KEY ("id") ); @@ -772,9 +840,21 @@ CREATE UNIQUE INDEX "ControllerPartition_id_key" ON "ControllerPartition"("id" A -- CreateIndex CREATE UNIQUE INDEX "Dispatcher_id_key" ON "Dispatcher"("id" ASC); +-- CreateIndex +CREATE INDEX "Event_createdAt_idx" ON "Event"("createdAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "Event_id_key" ON "Event"("id" ASC); +-- CreateIndex +CREATE INDEX "Event_tenantId_createdAt_idx" ON "Event"("tenantId" ASC, "createdAt" ASC); + +-- CreateIndex +CREATE INDEX "Event_tenantId_idx" ON "Event"("tenantId" ASC); + +-- CreateIndex +CREATE INDEX "GetGroupKeyRun_deletedAt_idx" ON "GetGroupKeyRun"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "GetGroupKeyRun_id_key" ON "GetGroupKeyRun"("id" ASC); @@ -787,6 +867,9 @@ CREATE UNIQUE INDEX "Job_id_key" ON "Job"("id" ASC); -- CreateIndex CREATE UNIQUE INDEX "Job_workflowVersionId_name_key" ON "Job"("workflowVersionId" ASC, "name" ASC); +-- CreateIndex +CREATE INDEX "JobRun_deletedAt_idx" ON "JobRun"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "JobRun_id_key" ON "JobRun"("id" ASC); @@ -832,9 +915,21 @@ CREATE UNIQUE INDEX "Step_id_key" ON "Step"("id" ASC); -- CreateIndex CREATE UNIQUE INDEX "Step_jobId_readableId_key" ON "Step"("jobId" ASC, "readableId" ASC); +-- CreateIndex +CREATE INDEX "StepDesiredWorkerLabel_stepId_idx" ON "StepDesiredWorkerLabel"("stepId" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "StepDesiredWorkerLabel_stepId_key_key" ON "StepDesiredWorkerLabel"("stepId" ASC, "key" ASC); + -- CreateIndex CREATE UNIQUE INDEX "StepRateLimit_stepId_rateLimitKey_key" ON "StepRateLimit"("stepId" ASC, "rateLimitKey" ASC); +-- CreateIndex +CREATE INDEX "StepRun_createdAt_idx" ON "StepRun"("createdAt" ASC); + +-- CreateIndex +CREATE INDEX "StepRun_deletedAt_idx" ON "StepRun"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "StepRun_id_key" ON "StepRun"("id" ASC); @@ -844,6 +939,9 @@ CREATE INDEX "StepRun_id_tenantId_idx" ON "StepRun"("id" ASC, "tenantId" ASC); -- CreateIndex CREATE INDEX "StepRun_jobRunId_status_idx" ON "StepRun"("jobRunId" ASC, "status" ASC); +-- CreateIndex +CREATE INDEX "StepRun_jobRunId_status_tenantId_idx" ON "StepRun"("jobRunId" ASC, "status" ASC, "tenantId" ASC); + -- CreateIndex CREATE INDEX "StepRun_jobRunId_tenantId_order_idx" ON "StepRun"("jobRunId" ASC, "tenantId" ASC, "order" ASC); @@ -851,7 +949,13 @@ CREATE INDEX "StepRun_jobRunId_tenantId_order_idx" ON "StepRun"("jobRunId" ASC, CREATE INDEX "StepRun_stepId_idx" ON "StepRun"("stepId" ASC); -- CreateIndex -CREATE INDEX "StepRun_tenantId_status_requeueAfter_createdAt_idx" ON "StepRun"("tenantId" ASC, "status" ASC, "requeueAfter" ASC, "createdAt" ASC); +CREATE INDEX "StepRun_tenantId_idx" ON "StepRun"("tenantId" ASC); + +-- CreateIndex +CREATE INDEX "StepRun_tenantId_status_timeoutAt_idx" ON "StepRun"("tenantId" ASC, "status" ASC, "timeoutAt" ASC); + +-- CreateIndex +CREATE INDEX "StepRun_workerId_idx" ON "StepRun"("workerId" ASC); -- CreateIndex CREATE UNIQUE INDEX "StepRunEvent_id_key" ON "StepRunEvent"("id" ASC); @@ -949,6 +1053,12 @@ CREATE UNIQUE INDEX "WebhookWorkerWorkflow_webhookWorkerId_workflowId_key" ON "W -- CreateIndex CREATE UNIQUE INDEX "Worker_id_key" ON "Worker"("id" ASC); +-- CreateIndex +CREATE INDEX "WorkerLabel_workerId_idx" ON "WorkerLabel"("workerId" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkerLabel_workerId_key_key" ON "WorkerLabel"("workerId" ASC, "key" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkerSemaphore_workerId_key" ON "WorkerSemaphore"("workerId" ASC); @@ -961,6 +1071,9 @@ CREATE UNIQUE INDEX "WorkerSemaphoreSlot_stepRunId_key" ON "WorkerSemaphoreSlot" -- CreateIndex CREATE INDEX "WorkerSemaphoreSlot_workerId_idx" ON "WorkerSemaphoreSlot"("workerId" ASC); +-- CreateIndex +CREATE INDEX "Workflow_deletedAt_idx" ON "Workflow"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "Workflow_id_key" ON "Workflow"("id" ASC); @@ -973,21 +1086,63 @@ CREATE UNIQUE INDEX "WorkflowConcurrency_id_key" ON "WorkflowConcurrency"("id" A -- CreateIndex CREATE UNIQUE INDEX "WorkflowConcurrency_workflowVersionId_key" ON "WorkflowConcurrency"("workflowVersionId" ASC); +-- CreateIndex +CREATE INDEX "WorkflowRun_createdAt_idx" ON "WorkflowRun"("createdAt" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_deletedAt_idx" ON "WorkflowRun"("deletedAt" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_finishedAt_idx" ON "WorkflowRun"("finishedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowRun_id_key" ON "WorkflowRun"("id" ASC); -- CreateIndex CREATE UNIQUE INDEX "WorkflowRun_parentId_parentStepRunId_childKey_key" ON "WorkflowRun"("parentId" ASC, "parentStepRunId" ASC, "childKey" ASC); +-- CreateIndex +CREATE INDEX "WorkflowRun_status_idx" ON "WorkflowRun"("status" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_tenantId_createdAt_idx" ON "WorkflowRun"("tenantId" ASC, "createdAt" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_tenantId_idx" ON "WorkflowRun"("tenantId" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_workflowVersionId_idx" ON "WorkflowRun"("workflowVersionId" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunDedupe_id_key" ON "WorkflowRunDedupe"("id" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRunDedupe_tenantId_value_idx" ON "WorkflowRunDedupe"("tenantId" ASC, "value" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunDedupe_tenantId_workflowId_value_key" ON "WorkflowRunDedupe"("tenantId" ASC, "workflowId" ASC, "value" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunStickyState_workflowRunId_key" ON "WorkflowRunStickyState"("workflowRunId" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_eventId_idx" ON "WorkflowRunTriggeredBy"("eventId" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowRunTriggeredBy_id_key" ON "WorkflowRunTriggeredBy"("id" ASC); +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_parentId_idx" ON "WorkflowRunTriggeredBy"("parentId" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowRunTriggeredBy_parentId_key" ON "WorkflowRunTriggeredBy"("parentId" ASC); -- CreateIndex CREATE UNIQUE INDEX "WorkflowRunTriggeredBy_scheduledId_key" ON "WorkflowRunTriggeredBy"("scheduledId" ASC); +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_tenantId_idx" ON "WorkflowRunTriggeredBy"("tenantId" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowTag_id_key" ON "WorkflowTag"("id" ASC); @@ -1012,6 +1167,9 @@ CREATE UNIQUE INDEX "WorkflowTriggers_id_key" ON "WorkflowTriggers"("id" ASC); -- CreateIndex CREATE UNIQUE INDEX "WorkflowTriggers_workflowVersionId_key" ON "WorkflowTriggers"("workflowVersionId" ASC); +-- CreateIndex +CREATE INDEX "WorkflowVersion_deletedAt_idx" ON "WorkflowVersion"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowVersion_id_key" ON "WorkflowVersion"("id" ASC); @@ -1123,6 +1281,9 @@ ALTER TABLE "Step" ADD CONSTRAINT "Step_jobId_fkey" FOREIGN KEY ("jobId") REFERE -- AddForeignKey ALTER TABLE "Step" ADD CONSTRAINT "Step_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE; +-- AddForeignKey +ALTER TABLE "StepDesiredWorkerLabel" ADD CONSTRAINT "StepDesiredWorkerLabel_stepId_fkey" FOREIGN KEY ("stepId") REFERENCES "Step"("id") ON DELETE CASCADE ON UPDATE CASCADE; + -- AddForeignKey ALTER TABLE "StepRateLimit" ADD CONSTRAINT "StepRateLimit_stepId_fkey" FOREIGN KEY ("stepId") REFERENCES "Step"("id") ON DELETE CASCADE ON UPDATE CASCADE; @@ -1222,6 +1383,9 @@ ALTER TABLE "Worker" ADD CONSTRAINT "Worker_dispatcherId_fkey" FOREIGN KEY ("dis -- AddForeignKey ALTER TABLE "Worker" ADD CONSTRAINT "Worker_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE; +-- AddForeignKey +ALTER TABLE "WorkerLabel" ADD CONSTRAINT "WorkerLabel_workerId_fkey" FOREIGN KEY ("workerId") REFERENCES "Worker"("id") ON DELETE CASCADE ON UPDATE CASCADE; + -- AddForeignKey ALTER TABLE "WorkerSemaphore" ADD CONSTRAINT "WorkerSemaphore_workerId_fkey" FOREIGN KEY ("workerId") REFERENCES "Worker"("id") ON DELETE CASCADE ON UPDATE CASCADE; @@ -1252,6 +1416,12 @@ ALTER TABLE "WorkflowRun" ADD CONSTRAINT "WorkflowRun_tenantId_fkey" FOREIGN KEY -- AddForeignKey ALTER TABLE "WorkflowRun" ADD CONSTRAINT "WorkflowRun_workflowVersionId_fkey" FOREIGN KEY ("workflowVersionId") REFERENCES "WorkflowVersion"("id") ON DELETE CASCADE ON UPDATE CASCADE; +-- AddForeignKey +ALTER TABLE "WorkflowRunDedupe" ADD CONSTRAINT "WorkflowRunDedupe_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "WorkflowRunStickyState" ADD CONSTRAINT "WorkflowRunStickyState_workflowRunId_fkey" FOREIGN KEY ("workflowRunId") REFERENCES "WorkflowRun"("id") ON DELETE CASCADE ON UPDATE CASCADE; + -- AddForeignKey ALTER TABLE "WorkflowRunTriggeredBy" ADD CONSTRAINT "WorkflowRunTriggeredBy_cronParentId_cronSchedule_fkey" FOREIGN KEY ("cronParentId", "cronSchedule") REFERENCES "WorkflowTriggerCronRef"("parentId", "cron") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/pkg/repository/prisma/dbsqlc/step_runs.sql b/pkg/repository/prisma/dbsqlc/step_runs.sql index 84b0ea2a8..3143de18f 100644 --- a/pkg/repository/prisma/dbsqlc/step_runs.sql +++ b/pkg/repository/prisma/dbsqlc/step_runs.sql @@ -5,16 +5,69 @@ FROM "StepRun" WHERE "id" = @id::uuid AND + "deletedAt" IS NULL AND "tenantId" = @tenantId::uuid; +-- name: GetStepRunDataForEngine :one +SELECT + sr."input", + sr."output", + sr."error", + jrld."data" AS "jobRunLookupData", + wr."additionalMetadata", + wr."childIndex", + wr."childKey", + wr."parentId" +FROM + "StepRun" sr +JOIN + "JobRun" jr ON sr."jobRunId" = jr."id" +JOIN + "JobRunLookupData" jrld ON jr."id" = jrld."jobRunId" +JOIN + -- Take advantage of composite index on "JobRun"("workflowRunId", "tenantId") + "WorkflowRun" wr ON jr."workflowRunId" = wr."id" AND wr."tenantId" = @tenantId::uuid +WHERE + sr."id" = @id::uuid AND + sr."tenantId" = @tenantId::uuid; + +-- name: GetStepRunMeta :one +SELECT + jr."workflowRunId" AS "workflowRunId", + sr."retryCount" AS "retryCount", + s."retries" as "retries" +FROM "StepRun" sr +JOIN "Step" s ON sr."stepId" = s."id" +JOIN "JobRun" jr ON sr."jobRunId" = jr."id" +WHERE sr."id" = @stepRunId::uuid +AND sr."tenantId" = @tenantId::uuid; + -- name: GetStepRunForEngine :many SELECT DISTINCT ON (sr."id") - sqlc.embed(sr), - jrld."data" AS "jobRunLookupData", + sr."id" AS "SR_id", + sr."createdAt" AS "SR_createdAt", + sr."updatedAt" AS "SR_updatedAt", + sr."deletedAt" AS "SR_deletedAt", + sr."tenantId" AS "SR_tenantId", + sr."order" AS "SR_order", + sr."workerId" AS "SR_workerId", + sr."tickerId" AS "SR_tickerId", + sr."status" AS "SR_status", + sr."requeueAfter" AS "SR_requeueAfter", + sr."scheduleTimeoutAt" AS "SR_scheduleTimeoutAt", + sr."startedAt" AS "SR_startedAt", + sr."finishedAt" AS "SR_finishedAt", + sr."timeoutAt" AS "SR_timeoutAt", + sr."cancelledAt" AS "SR_cancelledAt", + sr."cancelledReason" AS "SR_cancelledReason", + sr."cancelledError" AS "SR_cancelledError", + sr."callerFiles" AS "SR_callerFiles", + sr."gitRepoBranch" AS "SR_gitRepoBranch", + sr."retryCount" AS "SR_retryCount", + sr."semaphoreReleased" AS "SR_semaphoreReleased", -- TODO: everything below this line is cacheable and should be moved to a separate query jr."id" AS "jobRunId", - wr."id" AS "workflowRunId", s."id" AS "stepId", s."retries" AS "stepRetries", s."timeout" AS "stepTimeout", @@ -24,10 +77,10 @@ SELECT j."name" AS "jobName", j."id" AS "jobId", j."kind" AS "jobKind", - wv."id" AS "workflowVersionId", - w."name" AS "workflowName", - w."id" AS "workflowId", - a."actionId" AS "actionId" + j."workflowVersionId" AS "workflowVersionId", + jr."workflowRunId" AS "workflowRunId", + a."actionId" AS "actionId", + sticky."strategy" AS "stickyStrategy" FROM "StepRun" sr JOIN @@ -36,18 +89,14 @@ JOIN "Action" a ON s."actionId" = a."actionId" AND s."tenantId" = a."tenantId" JOIN "JobRun" jr ON sr."jobRunId" = jr."id" -JOIN - "JobRunLookupData" jrld ON jr."id" = jrld."jobRunId" JOIN "Job" j ON jr."jobId" = j."id" -JOIN - "WorkflowRun" wr ON jr."workflowRunId" = wr."id" -JOIN - "WorkflowVersion" wv ON wr."workflowVersionId" = wv."id" -JOIN - "Workflow" w ON wv."workflowId" = w."id" +LEFT JOIN + "WorkflowRunStickyState" sticky ON jr."workflowRunId" = sticky."workflowRunId" WHERE sr."id" = ANY(@ids::uuid[]) AND + sr."deletedAt" IS NULL AND + jr."deletedAt" IS NULL AND ( sqlc.narg('tenantId')::uuid IS NULL OR sr."tenantId" = sqlc.narg('tenantId')::uuid @@ -55,7 +104,7 @@ WHERE -- name: ListStartableStepRuns :many WITH job_run AS ( - SELECT "status" + SELECT "status", "deletedAt" FROM "JobRun" WHERE "id" = @jobRunId::uuid ) @@ -70,6 +119,8 @@ JOIN job_run ON true WHERE child_run."jobRunId" = @jobRunId::uuid + AND child_run."deletedAt" IS NULL + AND job_run."deletedAt" IS NULL AND child_run."status" = 'PENDING' AND job_run."status" = 'RUNNING' -- case on whether parentStepRunId is null @@ -97,6 +148,8 @@ FROM JOIN "JobRun" ON "StepRun"."jobRunId" = "JobRun"."id" WHERE + "StepRun"."deletedAt" IS NULL AND + "JobRun"."deletedAt" IS NULL AND ( sqlc.narg('tenantId')::uuid IS NULL OR "StepRun"."tenantId" = sqlc.narg('tenantId')::uuid @@ -265,7 +318,10 @@ WITH step_run_data AS ( "cancelledReason", "cancelledError" FROM "StepRun" - WHERE "id" = @stepRunId::uuid AND "tenantId" = @tenantId::uuid + WHERE + "id" = @stepRunId::uuid + AND "tenantId" = @tenantId::uuid + AND "deletedAt" IS NULL ) INSERT INTO "StepRunResultArchive" ( "id", @@ -301,134 +357,101 @@ SELECT FROM step_run_data RETURNING *; --- name: ListStepRunsToReassign :many +-- name: GetMaxRunsLimit :one WITH valid_workers AS ( SELECT - DISTINCT ON (w."id") w."id", COALESCE(w."maxRuns", 100) - COUNT(wss."id") AS "remainingSlots" FROM "Worker" w LEFT JOIN - "WorkerSemaphoreSlot" wss ON w."id" = wss."workerId" AND wss."stepRunId" IS NULL + "WorkerSemaphoreSlot" wss ON w."id" = wss."workerId" AND wss."stepRunId" IS NOT NULL WHERE w."tenantId" = @tenantId::uuid AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' -- necessary because isActive is set to false immediately when the stream closes AND w."isActive" = true + AND w."isPaused" = false GROUP BY w."id", w."maxRuns" HAVING - COALESCE(w."maxRuns", 100) - COUNT(wss."id") > 0 + COALESCE(w."maxRuns", 100) - COUNT(wss."stepRunId") > 0 ), --- Count the total number of slots across all workers +-- Count the total number of maxRuns - runningStepRuns across all workers total_max_runs AS ( SELECT SUM("remainingSlots") AS "totalMaxRuns" FROM valid_workers -), -limit_max_runs AS ( - SELECT - GREATEST("totalMaxRuns", 100) AS "limitMaxRuns" - FROM - total_max_runs -), -step_runs AS ( +) +SELECT + GREATEST("totalMaxRuns", 100)::int AS "limitMaxRuns" +FROM + total_max_runs; + +-- name: ListStepRunsToReassign :many +WITH inactive_workers AS ( SELECT - sr.* + w."id" FROM - "StepRun" sr - LEFT JOIN - "Worker" w ON sr."workerId" = w."id" - JOIN - "JobRun" jr ON sr."jobRunId" = jr."id" - JOIN - "Step" s ON sr."stepId" = s."id" + "Worker" w WHERE - sr."tenantId" = @tenantId::uuid - AND (( - sr."status" = 'RUNNING' - AND w."lastHeartbeatAt" < NOW() - INTERVAL '30 seconds' - ) OR ( - sr."status" = 'ASSIGNED' - AND w."lastHeartbeatAt" < NOW() - INTERVAL '30 seconds' - )) - AND jr."status" = 'RUNNING' - AND sr."input" IS NOT NULL - AND NOT EXISTS ( - SELECT 1 - FROM "_StepRunOrder" AS order_table - JOIN "StepRun" AS prev_sr ON order_table."A" = prev_sr."id" - WHERE - order_table."B" = sr."id" - AND prev_sr."status" != 'SUCCEEDED' - ) - ORDER BY - sr."createdAt" ASC - LIMIT - (SELECT "limitMaxRuns" FROM limit_max_runs) + w."tenantId" = @tenantId::uuid + AND w."lastHeartbeatAt" < NOW() - INTERVAL '30 seconds' ), -locked_step_runs AS ( - SELECT - sr."id", sr."status", sr."workerId" - FROM - step_runs sr +step_runs_to_reassign AS ( + SELECT "stepRunId" + FROM "WorkerSemaphoreSlot" + WHERE + "workerId" = ANY(SELECT "id" FROM inactive_workers) + AND "stepRunId" IS NOT NULL FOR UPDATE SKIP LOCKED +), +update_semaphore_steps AS ( + UPDATE "WorkerSemaphoreSlot" wss + SET "stepRunId" = NULL + FROM step_runs_to_reassign + WHERE wss."stepRunId" = step_runs_to_reassign."stepRunId" ) UPDATE "StepRun" SET "status" = 'PENDING_ASSIGNMENT', - -- requeue after now plus 4 seconds - "requeueAfter" = CURRENT_TIMESTAMP + INTERVAL '4 seconds', - "updatedAt" = CURRENT_TIMESTAMP + -- place directly in the queue + "requeueAfter" = CURRENT_TIMESTAMP, + "updatedAt" = CURRENT_TIMESTAMP, + -- unset the schedule timeout + "scheduleTimeoutAt" = NULL FROM - locked_step_runs + step_runs_to_reassign WHERE - "StepRun"."id" = locked_step_runs."id" + "StepRun"."id" = step_runs_to_reassign."stepRunId" + AND "StepRun"."deletedAt" IS NULL RETURNING "StepRun"."id"; +-- name: ListStepRunsToTimeout :many +SELECT "id" +FROM "StepRun" +WHERE + "status" = ANY(ARRAY['RUNNING', 'ASSIGNED']::"StepRunStatus"[]) + AND "timeoutAt" < NOW() + AND "tenantId" = @tenantId::uuid +LIMIT 100; + -- name: ListStepRunsToRequeue :many -WITH valid_workers AS ( +WITH step_runs AS ( SELECT - w."id", - COALESCE(w."maxRuns", 100) - COUNT(wss."stepRunId") AS "remainingSlots" - FROM - "Worker" w - LEFT JOIN - "WorkerSemaphoreSlot" wss ON w."id" = wss."workerId" AND wss."stepRunId" IS NULL - WHERE - w."tenantId" = @tenantId::uuid - AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' - -- necessary because isActive is set to false immediately when the stream closes - AND w."isActive" = true - GROUP BY - w."id", w."maxRuns" - HAVING - COALESCE(w."maxRuns", 100) - COUNT(wss."stepRunId") > 0 -), --- Count the total number of maxRuns - runningStepRuns across all workers -total_max_runs AS ( - SELECT - SUM("remainingSlots") AS "totalMaxRuns" - FROM - valid_workers -), -step_runs AS ( - SELECT - sr.* + sr."id", sr."status", sr."workerId" FROM "StepRun" sr - LEFT JOIN - "Worker" w ON sr."workerId" = w."id" JOIN - "JobRun" jr ON sr."jobRunId" = jr."id" + "JobRun" jr ON sr."jobRunId" = jr."id" AND jr."status" = 'RUNNING' WHERE sr."tenantId" = @tenantId::uuid + AND sr."deletedAt" IS NULL + AND jr."deletedAt" IS NULL + AND sr."status" = ANY(ARRAY['PENDING', 'PENDING_ASSIGNMENT']::"StepRunStatus"[]) AND sr."requeueAfter" < NOW() - AND (sr."status" = 'PENDING' OR sr."status" = 'PENDING_ASSIGNMENT') - AND jr."status" = 'RUNNING' AND sr."input" IS NOT NULL AND NOT EXISTS ( SELECT 1 @@ -438,17 +461,9 @@ step_runs AS ( order_table."B" = sr."id" AND prev_sr."status" != 'SUCCEEDED' ) - ORDER BY - sr."createdAt" ASC - LIMIT - COALESCE((SELECT "totalMaxRuns" FROM total_max_runs), 100) -), -locked_step_runs AS ( - SELECT - sr."id", sr."status", sr."workerId" - FROM - step_runs sr FOR UPDATE SKIP LOCKED + LIMIT + sqlc.arg('limit')::int ) UPDATE "StepRun" @@ -458,32 +473,11 @@ SET "requeueAfter" = CURRENT_TIMESTAMP + INTERVAL '4 seconds', "updatedAt" = CURRENT_TIMESTAMP FROM - locked_step_runs + step_runs WHERE - "StepRun"."id" = locked_step_runs."id" + "StepRun"."id" = step_runs."id" RETURNING "StepRun"."id"; --- name: AssignStepRunToWorker :one -UPDATE - "StepRun" -SET - "status" = 'ASSIGNED', - "workerId" = @workerId::uuid, - "tickerId" = NULL, - "updatedAt" = CURRENT_TIMESTAMP, - "timeoutAt" = CASE - WHEN sqlc.narg('stepTimeout')::text IS NOT NULL THEN - CURRENT_TIMESTAMP + convert_duration_to_interval(sqlc.narg('stepTimeout')::text) - ELSE CURRENT_TIMESTAMP + INTERVAL '5 minutes' - END -WHERE - "id" = @stepRunId::uuid AND - "tenantId" = @tenantId::uuid AND - "status" = 'PENDING_ASSIGNMENT' -RETURNING - "StepRun"."id", "StepRun"."workerId", - (SELECT "dispatcherId" FROM "Worker" WHERE "id" = @workerId::uuid) AS "dispatcherId"; - -- name: RefreshTimeoutBy :one UPDATE "StepRun" sr @@ -512,38 +506,314 @@ WHERE "stepRunId" = @stepRunId::uuid AND "workerId" = (SELECT "workerId" FROM step_run) RETURNING *; --- name: AcquireWorkerSemaphoreSlot :one +-- name: CheckWorker :one +SELECT + "id" +FROM + "Worker" +WHERE + "tenantId" = @tenantId::uuid + AND "dispatcherId" IS NOT NULL + AND "isActive" = true + AND "isPaused" = false + AND "lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' + AND "id" = @workerId::uuid; + +-- name: AcquireWorkerSemaphoreSlotAndAssign :one WITH valid_workers AS ( - SELECT w."id", COUNT(wss."id") AS "slots" - FROM "Worker" w - JOIN "WorkerSemaphoreSlot" wss ON w."id" = wss."workerId" AND wss."stepRunId" IS NULL + SELECT + w."id" + FROM + "Worker" w WHERE w."tenantId" = @tenantId::uuid AND w."dispatcherId" IS NOT NULL AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' AND w."isActive" = true + AND w."isPaused" = false + AND ( + -- sticky worker selection + sqlc.narg('workerId')::uuid IS NULL + OR w."id" = sqlc.narg('workerId')::uuid + ) AND w."id" IN ( SELECT "_ActionToWorker"."B" FROM "_ActionToWorker" INNER JOIN "Action" ON "Action"."id" = "_ActionToWorker"."A" WHERE "Action"."tenantId" = @tenantId AND "Action"."actionId" = @actionId::text ) + GROUP BY w."id" ), +locked_step_runs AS ( + SELECT + sr."id", sr."status", sr."workerId", sr."stepId" + FROM + "StepRun" sr + WHERE + sr."id" = @stepRunId::uuid AND + sr."deletedAt" IS NULL + FOR UPDATE SKIP LOCKED +), +desired_workflow_labels AS ( + SELECT + "key", + "strValue", + "intValue", + "required", + "weight", + "comparator" + FROM + "StepDesiredWorkerLabel" + WHERE + "stepId" = (SELECT "stepId" FROM locked_step_runs) +), +evaluated_affinities AS ( + SELECT DISTINCT + wa."key" AS worker_key, + dwl."key" AS desired_key, + dwl."weight", + vw."id" as "workerId", + dwl."required", + COALESCE(dwl."intValue"::text, dwl."strValue") AS input_value, + CASE + WHEN wa."intValue" IS NOT NULL THEN wa."intValue"::text + WHEN wa."strValue" IS NOT NULL THEN wa."strValue" + END AS value, + dwl."comparator", + CASE + WHEN dwl.comparator = 'EQUAL' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" = wa."intValue") THEN 1 + WHEN dwl.comparator = 'EQUAL' AND + (wa."strValue" IS NOT NULL AND dwl."strValue" = wa."strValue") THEN 1 + WHEN dwl.comparator = 'NOT_EQUAL' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" <> wa."intValue") THEN 1 + WHEN dwl.comparator = 'NOT_EQUAL' AND + (wa."strValue" IS NOT NULL AND dwl."strValue" <> wa."strValue") THEN 1 + WHEN dwl.comparator = 'GREATER_THAN' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" > wa."intValue") THEN 1 + WHEN dwl.comparator = 'LESS_THAN' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" < wa."intValue") THEN 1 + WHEN dwl.comparator = 'GREATER_THAN_OR_EQUAL' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" >= wa."intValue") THEN 1 + WHEN dwl.comparator = 'LESS_THAN_OR_EQUAL' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" <= wa."intValue") THEN 1 + ELSE 0 + END AS is_true + FROM + valid_workers vw + LEFT JOIN "WorkerLabel" wa ON wa."workerId" = vw."id" + LEFT JOIN desired_workflow_labels dwl ON wa."key" = dwl."key" +), +weighted_workers AS ( + SELECT + ea."workerId", + CASE + WHEN COUNT(*) FILTER (WHERE ea."required" = TRUE AND (ea."desired_key" IS NULL OR ea."is_true" = 0)) > 0 THEN -99999 + ELSE COALESCE(SUM(CASE WHEN is_true = 1 THEN ea."weight" ELSE 0 END), 0) + END AS total_weight, + COUNT(wss."id") AS available_slots + FROM + evaluated_affinities ea + LEFT JOIN "WorkerSemaphoreSlot" wss ON ea."workerId" = wss."workerId" AND wss."stepRunId" IS NULL + GROUP BY + ea."workerId" +), +selected_worker AS ( + SELECT + vw."id", + COALESCE(ww.total_weight, 0) AS total_weight + FROM + valid_workers vw + LEFT JOIN weighted_workers ww ON vw."id" = ww."workerId" + WHERE + COALESCE(ww.total_weight, 0) >= 0 + ORDER BY + COALESCE(ww.total_weight, 0) DESC, + COALESCE(ww.available_slots, 0) DESC, + RANDOM() + LIMIT 1 +), selected_slot AS ( - SELECT wss."id" AS "slotId", wss."workerId" AS "workerId" - FROM "WorkerSemaphoreSlot" wss - JOIN valid_workers w ON wss."workerId" = w."id" - WHERE wss."stepRunId" IS NULL - ORDER BY w."slots" DESC, RANDOM() + SELECT + wss."id" AS "slotId", + wss."workerId" AS "workerId" + FROM + "WorkerSemaphoreSlot" wss + JOIN + selected_worker sw ON wss."workerId" = sw."id" + WHERE + wss."stepRunId" IS NULL FOR UPDATE SKIP LOCKED LIMIT 1 +), +updated_slot AS ( + UPDATE "WorkerSemaphoreSlot" + SET "stepRunId" = @stepRunId::uuid + WHERE "id" = (SELECT "slotId" FROM selected_slot) + AND "stepRunId" IS NULL + RETURNING * +), +assign_step_run_to_worker AS ( + UPDATE + "StepRun" + SET + "status" = 'ASSIGNED', + "workerId" = (SELECT "workerId" FROM updated_slot), + "tickerId" = NULL, + "updatedAt" = CURRENT_TIMESTAMP, + "timeoutAt" = CASE + WHEN sqlc.narg('stepTimeout')::text IS NOT NULL THEN + CURRENT_TIMESTAMP + convert_duration_to_interval(sqlc.narg('stepTimeout')::text) + ELSE CURRENT_TIMESTAMP + INTERVAL '5 minutes' + END + WHERE + "id" = (SELECT "stepRunId" FROM updated_slot) AND + "status" = 'PENDING_ASSIGNMENT' + RETURNING + "StepRun"."id", "StepRun"."workerId" +), +selected_dispatcher AS ( + SELECT "dispatcherId" FROM "Worker" + WHERE "id" = (SELECT "workerId" FROM updated_slot) +), +step_rate_limits AS ( + SELECT + rl."units" AS "units", + rl."rateLimitKey" AS "rateLimitKey" + FROM + "StepRateLimit" rl + JOIN locked_step_runs lsr ON rl."stepId" = lsr."stepId" -- only increment if we have a lsr + JOIN updated_slot us ON us."stepRunId" = lsr."id" -- only increment if we have a slot + WHERE + rl."tenantId" = @tenantId::uuid +), +locked_rate_limits AS ( + SELECT + srl.*, + step_rate_limits."units" + FROM + step_rate_limits + JOIN + "RateLimit" srl ON srl."key" = step_rate_limits."rateLimitKey" AND srl."tenantId" = @tenantId::uuid + FOR UPDATE +), +update_rate_limits AS ( + UPDATE + "RateLimit" srl + SET + "value" = get_refill_value(srl) - lrl."units", + "lastRefill" = CASE + WHEN NOW() - srl."lastRefill" >= srl."window"::INTERVAL THEN + CURRENT_TIMESTAMP + ELSE + srl."lastRefill" + END + FROM + locked_rate_limits lrl + WHERE + srl."tenantId" = lrl."tenantId" AND + srl."key" = lrl."key" + RETURNING srl.* +), +exhausted_rate_limits AS ( + SELECT + srl."key" + FROM + update_rate_limits srl + WHERE + srl."value" < 0 ) -UPDATE "WorkerSemaphoreSlot" -SET "stepRunId" = @stepRunId::uuid -WHERE "id" = (SELECT "slotId" FROM selected_slot) +SELECT + updated_slot."workerId" as "workerId", + updated_slot."stepRunId" as "stepRunId", + selected_dispatcher."dispatcherId" as "dispatcherId", + jsonb_agg( + jsonb_build_object( + 'key', dwl."key", + 'strValue', dwl."strValue", + 'intValue', dwl."intValue", + 'required', dwl."required", + 'weight', dwl."weight", + 'comparator', dwl."comparator", + 'is_true', ea."is_true" + ) + ) AS desired_labels, + jsonb_agg( + jsonb_build_object( + 'key', wa."key", + 'strValue', wa."strValue", + 'intValue', wa."intValue" + ) + ) AS worker_labels, + COALESCE(COUNT(exhausted_rate_limits."key"), 0)::int as "exhaustedRateLimitCount", + COALESCE(SUM(weighted_workers."available_slots"),0)::int as "remainingSlots" +FROM + (SELECT 1 as filler) as filler_row_subquery -- always return a row + LEFT JOIN updated_slot ON true + LEFT JOIN selected_dispatcher ON true + LEFT JOIN exhausted_rate_limits ON true + LEFT JOIN weighted_workers ON total_weight >= 0 + LEFT JOIN + evaluated_affinities ea ON updated_slot."workerId" = ea."workerId" + LEFT JOIN + desired_workflow_labels dwl ON ea."desired_key" = dwl."key" + LEFT JOIN + "WorkerLabel" wa ON ea."workerId" = wa."workerId" AND ea."worker_key" = wa."key" +GROUP BY + updated_slot."workerId", + updated_slot."stepRunId", + selected_dispatcher."dispatcherId"; + +-- name: UpsertDesiredWorkerLabel :one +INSERT INTO "StepDesiredWorkerLabel" ( + "createdAt", + "updatedAt", + "stepId", + "key", + "intValue", + "strValue", + "required", + "weight", + "comparator" +) VALUES ( + CURRENT_TIMESTAMP, + CURRENT_TIMESTAMP, + @stepId::uuid, + @key::text, + COALESCE(sqlc.narg('intValue')::int, NULL), + COALESCE(sqlc.narg('strValue')::text, NULL), + COALESCE(sqlc.narg('required')::boolean, false), + COALESCE(sqlc.narg('weight')::int, 100), + COALESCE(sqlc.narg('comparator')::"WorkerLabelComparator", 'EQUAL') +) ON CONFLICT ("stepId", "key") DO UPDATE +SET + "updatedAt" = CURRENT_TIMESTAMP, + "intValue" = COALESCE(sqlc.narg('intValue')::int, null), + "strValue" = COALESCE(sqlc.narg('strValue')::text, null), + "required" = COALESCE(sqlc.narg('required')::boolean, false), + "weight" = COALESCE(sqlc.narg('weight')::int, 100), + "comparator" = COALESCE(sqlc.narg('comparator')::"WorkerLabelComparator", 'EQUAL') RETURNING *; +-- name: GetStepDesiredWorkerLabels :one +SELECT + jsonb_agg( + jsonb_build_object( + 'key', dwl."key", + 'strValue', dwl."strValue", + 'intValue', dwl."intValue", + 'required', dwl."required", + 'weight', dwl."weight", + 'comparator', dwl."comparator", + 'is_true', false + ) + ) AS desired_labels +FROM + "StepDesiredWorkerLabel" dwl +WHERE + dwl."stepId" = @stepId::uuid; + -- name: CreateStepRunEvent :exec WITH input_values AS ( SELECT @@ -623,61 +893,17 @@ OFFSET LIMIT COALESCE(sqlc.narg('limit'), 50); --- name: UpdateStepRateLimits :many -WITH step_rate_limits AS ( - SELECT - rl."units" AS "units", - rl."rateLimitKey" AS "rateLimitKey" - FROM - "StepRateLimit" rl - WHERE - rl."stepId" = @stepId::uuid AND - rl."tenantId" = @tenantId::uuid -), locked_rate_limits AS ( - SELECT - srl.*, - step_rate_limits."units" - FROM - step_rate_limits - JOIN - "RateLimit" srl ON srl."key" = step_rate_limits."rateLimitKey" AND srl."tenantId" = @tenantId::uuid - FOR UPDATE -) -UPDATE - "RateLimit" srl -SET - "value" = get_refill_value(srl) - lrl."units", - "lastRefill" = CASE - WHEN NOW() - srl."lastRefill" >= srl."window"::INTERVAL THEN - CURRENT_TIMESTAMP - ELSE - srl."lastRefill" - END -FROM - locked_rate_limits lrl -WHERE - srl."tenantId" = lrl."tenantId" AND - srl."key" = lrl."key" -RETURNING srl.*; - -- name: ReplayStepRunResetWorkflowRun :one -WITH workflow_run_id AS ( - SELECT - "workflowRunId" - FROM - "JobRun" - WHERE - "id" = @jobRunId::uuid -) UPDATE "WorkflowRun" SET - "status" = 'RUNNING', + "status" = 'PENDING', "updatedAt" = CURRENT_TIMESTAMP, "startedAt" = NULL, - "finishedAt" = NULL + "finishedAt" = NULL, + "duration" = NULL WHERE - "id" = (SELECT "workflowRunId" FROM workflow_run_id) + "id" = @workflowRunId::uuid RETURNING *; -- name: ReplayStepRunResetJobRun :one @@ -764,6 +990,24 @@ WHERE sr."tenantId" = @tenantId::uuid RETURNING sr.*; +-- name: ResetStepRunsByIds :many +UPDATE + "StepRun" as sr +SET + "status" = 'PENDING', + "scheduleTimeoutAt" = NULL, + "finishedAt" = NULL, + "startedAt" = NULL, + "output" = NULL, + "error" = NULL, + "cancelledAt" = NULL, + "cancelledReason" = NULL, + "input" = NULL +WHERE + sr."id" = ANY(@ids::uuid[]) AND + sr."tenantId" = @tenantId::uuid +RETURNING sr.*; + -- name: ListNonFinalChildStepRuns :many WITH RECURSIVE currStepRun AS ( SELECT * @@ -776,6 +1020,7 @@ WITH RECURSIVE currStepRun AS ( FROM "StepRun" sr JOIN "_StepRunOrder" sro ON sr."id" = sro."B" WHERE sro."A" = (SELECT "id" FROM currStepRun) + AND sr."deletedAt" IS NULL UNION ALL @@ -793,6 +1038,7 @@ JOIN childStepRuns csr ON sr."id" = csr."id" WHERE sr."tenantId" = @tenantId::uuid AND + sr."deletedAt" IS NULL AND sr."status" NOT IN ('SUCCEEDED', 'FAILED', 'CANCELLED'); -- name: ListStepRunArchives :many @@ -804,7 +1050,8 @@ JOIN "StepRun" ON "StepRunResultArchive"."stepRunId" = "StepRun"."id" WHERE "StepRunResultArchive"."stepRunId" = @stepRunId::uuid AND - "StepRun"."tenantId" = @tenantId::uuid + "StepRun"."tenantId" = @tenantId::uuid AND + "StepRun"."deletedAt" IS NULL ORDER BY "StepRunResultArchive"."createdAt" OFFSET @@ -819,3 +1066,58 @@ FROM "StepRunResultArchive" WHERE "stepRunId" = @stepRunId::uuid; + + +-- name: ClearStepRunPayloadData :one +WITH for_delete AS ( + SELECT + sr2."id" + FROM "StepRun" sr2 + WHERE + sr2."tenantId" = @tenantId::uuid AND + sr2."deletedAt" IS NOT NULL AND + (sr2."input" IS NOT NULL OR sr2."output" IS NOT NULL OR sr2."error" IS NOT NULL) + ORDER BY "deletedAt" ASC + LIMIT sqlc.arg('limit') + 1 + FOR UPDATE SKIP LOCKED +), +deleted_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT sqlc.arg('limit') +), +deleted_archives AS ( + SELECT sra1."id" as "id" + FROM "StepRunResultArchive" sra1 + WHERE + sra1."stepRunId" IN (SELECT "id" FROM deleted_with_limit) + AND (sra1."input" IS NOT NULL OR sra1."output" IS NOT NULL OR sra1."error" IS NOT NULL) +), +has_more AS ( + SELECT + CASE + WHEN COUNT(*) > sqlc.arg('limit') THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +), +cleared_archives AS ( + UPDATE "StepRunResultArchive" + SET + "input" = NULL, + "output" = NULL, + "error" = NULL + WHERE + "id" IN (SELECT "id" FROM deleted_archives) +) +UPDATE + "StepRun" +SET + "input" = NULL, + "output" = NULL, + "error" = NULL +WHERE + "id" IN (SELECT "id" FROM deleted_with_limit) +RETURNING + (SELECT has_more FROM has_more) as has_more; diff --git a/pkg/repository/prisma/dbsqlc/step_runs.sql.go b/pkg/repository/prisma/dbsqlc/step_runs.sql.go index 5210486c9..c2e113e97 100644 --- a/pkg/repository/prisma/dbsqlc/step_runs.sql.go +++ b/pkg/repository/prisma/dbsqlc/step_runs.sql.go @@ -11,49 +11,289 @@ import ( "github.com/jackc/pgx/v5/pgtype" ) -const acquireWorkerSemaphoreSlot = `-- name: AcquireWorkerSemaphoreSlot :one +const acquireWorkerSemaphoreSlotAndAssign = `-- name: AcquireWorkerSemaphoreSlotAndAssign :one WITH valid_workers AS ( - SELECT w."id", COUNT(wss."id") AS "slots" - FROM "Worker" w - JOIN "WorkerSemaphoreSlot" wss ON w."id" = wss."workerId" AND wss."stepRunId" IS NULL + SELECT + w."id" + FROM + "Worker" w WHERE - w."tenantId" = $2::uuid + w."tenantId" = $1::uuid AND w."dispatcherId" IS NOT NULL AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' AND w."isActive" = true + AND w."isPaused" = false + AND ( + -- sticky worker selection + $2::uuid IS NULL + OR w."id" = $2::uuid + ) AND w."id" IN ( SELECT "_ActionToWorker"."B" FROM "_ActionToWorker" INNER JOIN "Action" ON "Action"."id" = "_ActionToWorker"."A" - WHERE "Action"."tenantId" = $2 AND "Action"."actionId" = $3::text + WHERE "Action"."tenantId" = $1 AND "Action"."actionId" = $3::text ) + GROUP BY w."id" ), +locked_step_runs AS ( + SELECT + sr."id", sr."status", sr."workerId", sr."stepId" + FROM + "StepRun" sr + WHERE + sr."id" = $4::uuid AND + sr."deletedAt" IS NULL + FOR UPDATE SKIP LOCKED +), +desired_workflow_labels AS ( + SELECT + "key", + "strValue", + "intValue", + "required", + "weight", + "comparator" + FROM + "StepDesiredWorkerLabel" + WHERE + "stepId" = (SELECT "stepId" FROM locked_step_runs) +), +evaluated_affinities AS ( + SELECT DISTINCT + wa."key" AS worker_key, + dwl."key" AS desired_key, + dwl."weight", + vw."id" as "workerId", + dwl."required", + COALESCE(dwl."intValue"::text, dwl."strValue") AS input_value, + CASE + WHEN wa."intValue" IS NOT NULL THEN wa."intValue"::text + WHEN wa."strValue" IS NOT NULL THEN wa."strValue" + END AS value, + dwl."comparator", + CASE + WHEN dwl.comparator = 'EQUAL' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" = wa."intValue") THEN 1 + WHEN dwl.comparator = 'EQUAL' AND + (wa."strValue" IS NOT NULL AND dwl."strValue" = wa."strValue") THEN 1 + WHEN dwl.comparator = 'NOT_EQUAL' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" <> wa."intValue") THEN 1 + WHEN dwl.comparator = 'NOT_EQUAL' AND + (wa."strValue" IS NOT NULL AND dwl."strValue" <> wa."strValue") THEN 1 + WHEN dwl.comparator = 'GREATER_THAN' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" > wa."intValue") THEN 1 + WHEN dwl.comparator = 'LESS_THAN' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" < wa."intValue") THEN 1 + WHEN dwl.comparator = 'GREATER_THAN_OR_EQUAL' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" >= wa."intValue") THEN 1 + WHEN dwl.comparator = 'LESS_THAN_OR_EQUAL' AND + (wa."intValue" IS NOT NULL AND dwl."intValue" IS NOT NULL AND dwl."intValue" <= wa."intValue") THEN 1 + ELSE 0 + END AS is_true + FROM + valid_workers vw + LEFT JOIN "WorkerLabel" wa ON wa."workerId" = vw."id" + LEFT JOIN desired_workflow_labels dwl ON wa."key" = dwl."key" +), +weighted_workers AS ( + SELECT + ea."workerId", + CASE + WHEN COUNT(*) FILTER (WHERE ea."required" = TRUE AND (ea."desired_key" IS NULL OR ea."is_true" = 0)) > 0 THEN -99999 + ELSE COALESCE(SUM(CASE WHEN is_true = 1 THEN ea."weight" ELSE 0 END), 0) + END AS total_weight, + COUNT(wss."id") AS available_slots + FROM + evaluated_affinities ea + LEFT JOIN "WorkerSemaphoreSlot" wss ON ea."workerId" = wss."workerId" AND wss."stepRunId" IS NULL + GROUP BY + ea."workerId" +), +selected_worker AS ( + SELECT + vw."id", + COALESCE(ww.total_weight, 0) AS total_weight + FROM + valid_workers vw + LEFT JOIN weighted_workers ww ON vw."id" = ww."workerId" + WHERE + COALESCE(ww.total_weight, 0) >= 0 + ORDER BY + COALESCE(ww.total_weight, 0) DESC, + COALESCE(ww.available_slots, 0) DESC, + RANDOM() + LIMIT 1 +), selected_slot AS ( - SELECT wss."id" AS "slotId", wss."workerId" AS "workerId" - FROM "WorkerSemaphoreSlot" wss - JOIN valid_workers w ON wss."workerId" = w."id" - WHERE wss."stepRunId" IS NULL - ORDER BY w."slots" DESC, RANDOM() + SELECT + wss."id" AS "slotId", + wss."workerId" AS "workerId" + FROM + "WorkerSemaphoreSlot" wss + JOIN + selected_worker sw ON wss."workerId" = sw."id" + WHERE + wss."stepRunId" IS NULL FOR UPDATE SKIP LOCKED LIMIT 1 +), +updated_slot AS ( + UPDATE "WorkerSemaphoreSlot" + SET "stepRunId" = $4::uuid + WHERE "id" = (SELECT "slotId" FROM selected_slot) + AND "stepRunId" IS NULL + RETURNING id, "workerId", "stepRunId" +), +assign_step_run_to_worker AS ( + UPDATE + "StepRun" + SET + "status" = 'ASSIGNED', + "workerId" = (SELECT "workerId" FROM updated_slot), + "tickerId" = NULL, + "updatedAt" = CURRENT_TIMESTAMP, + "timeoutAt" = CASE + WHEN $5::text IS NOT NULL THEN + CURRENT_TIMESTAMP + convert_duration_to_interval($5::text) + ELSE CURRENT_TIMESTAMP + INTERVAL '5 minutes' + END + WHERE + "id" = (SELECT "stepRunId" FROM updated_slot) AND + "status" = 'PENDING_ASSIGNMENT' + RETURNING + "StepRun"."id", "StepRun"."workerId" +), +selected_dispatcher AS ( + SELECT "dispatcherId" FROM "Worker" + WHERE "id" = (SELECT "workerId" FROM updated_slot) +), +step_rate_limits AS ( + SELECT + rl."units" AS "units", + rl."rateLimitKey" AS "rateLimitKey" + FROM + "StepRateLimit" rl + JOIN locked_step_runs lsr ON rl."stepId" = lsr."stepId" -- only increment if we have a lsr + JOIN updated_slot us ON us."stepRunId" = lsr."id" -- only increment if we have a slot + WHERE + rl."tenantId" = $1::uuid +), +locked_rate_limits AS ( + SELECT + srl."tenantId", srl.key, srl."limitValue", srl.value, srl."window", srl."lastRefill", + step_rate_limits."units" + FROM + step_rate_limits + JOIN + "RateLimit" srl ON srl."key" = step_rate_limits."rateLimitKey" AND srl."tenantId" = $1::uuid + FOR UPDATE +), +update_rate_limits AS ( + UPDATE + "RateLimit" srl + SET + "value" = get_refill_value(srl) - lrl."units", + "lastRefill" = CASE + WHEN NOW() - srl."lastRefill" >= srl."window"::INTERVAL THEN + CURRENT_TIMESTAMP + ELSE + srl."lastRefill" + END + FROM + locked_rate_limits lrl + WHERE + srl."tenantId" = lrl."tenantId" AND + srl."key" = lrl."key" + RETURNING srl."tenantId", srl.key, srl."limitValue", srl.value, srl."window", srl."lastRefill" +), +exhausted_rate_limits AS ( + SELECT + srl."key" + FROM + update_rate_limits srl + WHERE + srl."value" < 0 ) -UPDATE "WorkerSemaphoreSlot" -SET "stepRunId" = $1::uuid -WHERE "id" = (SELECT "slotId" FROM selected_slot) -RETURNING id, "workerId", "stepRunId" +SELECT + updated_slot."workerId" as "workerId", + updated_slot."stepRunId" as "stepRunId", + selected_dispatcher."dispatcherId" as "dispatcherId", + jsonb_agg( + jsonb_build_object( + 'key', dwl."key", + 'strValue', dwl."strValue", + 'intValue', dwl."intValue", + 'required', dwl."required", + 'weight', dwl."weight", + 'comparator', dwl."comparator", + 'is_true', ea."is_true" + ) + ) AS desired_labels, + jsonb_agg( + jsonb_build_object( + 'key', wa."key", + 'strValue', wa."strValue", + 'intValue', wa."intValue" + ) + ) AS worker_labels, + COALESCE(COUNT(exhausted_rate_limits."key"), 0)::int as "exhaustedRateLimitCount", + COALESCE(SUM(weighted_workers."available_slots"),0)::int as "remainingSlots" +FROM + (SELECT 1 as filler) as filler_row_subquery -- always return a row + LEFT JOIN updated_slot ON true + LEFT JOIN selected_dispatcher ON true + LEFT JOIN exhausted_rate_limits ON true + LEFT JOIN weighted_workers ON total_weight >= 0 + LEFT JOIN + evaluated_affinities ea ON updated_slot."workerId" = ea."workerId" + LEFT JOIN + desired_workflow_labels dwl ON ea."desired_key" = dwl."key" + LEFT JOIN + "WorkerLabel" wa ON ea."workerId" = wa."workerId" AND ea."worker_key" = wa."key" +GROUP BY + updated_slot."workerId", + updated_slot."stepRunId", + selected_dispatcher."dispatcherId" ` -type AcquireWorkerSemaphoreSlotParams struct { - Steprunid pgtype.UUID `json:"steprunid"` - Tenantid pgtype.UUID `json:"tenantid"` - Actionid string `json:"actionid"` +type AcquireWorkerSemaphoreSlotAndAssignParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + WorkerId pgtype.UUID `json:"workerId"` + Actionid string `json:"actionid"` + Steprunid pgtype.UUID `json:"steprunid"` + StepTimeout pgtype.Text `json:"stepTimeout"` } -func (q *Queries) AcquireWorkerSemaphoreSlot(ctx context.Context, db DBTX, arg AcquireWorkerSemaphoreSlotParams) (*WorkerSemaphoreSlot, error) { - row := db.QueryRow(ctx, acquireWorkerSemaphoreSlot, arg.Steprunid, arg.Tenantid, arg.Actionid) - var i WorkerSemaphoreSlot - err := row.Scan(&i.ID, &i.WorkerId, &i.StepRunId) +type AcquireWorkerSemaphoreSlotAndAssignRow struct { + WorkerId pgtype.UUID `json:"workerId"` + StepRunId pgtype.UUID `json:"stepRunId"` + DispatcherId pgtype.UUID `json:"dispatcherId"` + DesiredLabels []byte `json:"desired_labels"` + WorkerLabels []byte `json:"worker_labels"` + ExhaustedRateLimitCount int32 `json:"exhaustedRateLimitCount"` + RemainingSlots int32 `json:"remainingSlots"` +} + +func (q *Queries) AcquireWorkerSemaphoreSlotAndAssign(ctx context.Context, db DBTX, arg AcquireWorkerSemaphoreSlotAndAssignParams) (*AcquireWorkerSemaphoreSlotAndAssignRow, error) { + row := db.QueryRow(ctx, acquireWorkerSemaphoreSlotAndAssign, + arg.Tenantid, + arg.WorkerId, + arg.Actionid, + arg.Steprunid, + arg.StepTimeout, + ) + var i AcquireWorkerSemaphoreSlotAndAssignRow + err := row.Scan( + &i.WorkerId, + &i.StepRunId, + &i.DispatcherId, + &i.DesiredLabels, + &i.WorkerLabels, + &i.ExhaustedRateLimitCount, + &i.RemainingSlots, + ) return &i, err } @@ -75,7 +315,10 @@ WITH step_run_data AS ( "cancelledReason", "cancelledError" FROM "StepRun" - WHERE "id" = $2::uuid AND "tenantId" = $3::uuid + WHERE + "id" = $2::uuid + AND "tenantId" = $3::uuid + AND "deletedAt" IS NULL ) INSERT INTO "StepRunResultArchive" ( "id", @@ -141,51 +384,97 @@ func (q *Queries) ArchiveStepRunResultFromStepRun(ctx context.Context, db DBTX, return &i, err } -const assignStepRunToWorker = `-- name: AssignStepRunToWorker :one +const checkWorker = `-- name: CheckWorker :one +SELECT + "id" +FROM + "Worker" +WHERE + "tenantId" = $1::uuid + AND "dispatcherId" IS NOT NULL + AND "isActive" = true + AND "isPaused" = false + AND "lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' + AND "id" = $2::uuid +` + +type CheckWorkerParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Workerid pgtype.UUID `json:"workerid"` +} + +func (q *Queries) CheckWorker(ctx context.Context, db DBTX, arg CheckWorkerParams) (pgtype.UUID, error) { + row := db.QueryRow(ctx, checkWorker, arg.Tenantid, arg.Workerid) + var id pgtype.UUID + err := row.Scan(&id) + return id, err +} + +const clearStepRunPayloadData = `-- name: ClearStepRunPayloadData :one +WITH for_delete AS ( + SELECT + sr2."id" + FROM "StepRun" sr2 + WHERE + sr2."tenantId" = $1::uuid AND + sr2."deletedAt" IS NOT NULL AND + (sr2."input" IS NOT NULL OR sr2."output" IS NOT NULL OR sr2."error" IS NOT NULL) + ORDER BY "deletedAt" ASC + LIMIT $2 + 1 + FOR UPDATE SKIP LOCKED +), +deleted_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT $2 +), +deleted_archives AS ( + SELECT sra1."id" as "id" + FROM "StepRunResultArchive" sra1 + WHERE + sra1."stepRunId" IN (SELECT "id" FROM deleted_with_limit) + AND (sra1."input" IS NOT NULL OR sra1."output" IS NOT NULL OR sra1."error" IS NOT NULL) +), +has_more AS ( + SELECT + CASE + WHEN COUNT(*) > $2 THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +), +cleared_archives AS ( + UPDATE "StepRunResultArchive" + SET + "input" = NULL, + "output" = NULL, + "error" = NULL + WHERE + "id" IN (SELECT "id" FROM deleted_archives) +) UPDATE "StepRun" SET - "status" = 'ASSIGNED', - "workerId" = $1::uuid, - "tickerId" = NULL, - "updatedAt" = CURRENT_TIMESTAMP, - "timeoutAt" = CASE - WHEN $2::text IS NOT NULL THEN - CURRENT_TIMESTAMP + convert_duration_to_interval($2::text) - ELSE CURRENT_TIMESTAMP + INTERVAL '5 minutes' - END + "input" = NULL, + "output" = NULL, + "error" = NULL WHERE - "id" = $3::uuid AND - "tenantId" = $4::uuid AND - "status" = 'PENDING_ASSIGNMENT' + "id" IN (SELECT "id" FROM deleted_with_limit) RETURNING - "StepRun"."id", "StepRun"."workerId", - (SELECT "dispatcherId" FROM "Worker" WHERE "id" = $1::uuid) AS "dispatcherId" + (SELECT has_more FROM has_more) as has_more ` -type AssignStepRunToWorkerParams struct { - Workerid pgtype.UUID `json:"workerid"` - StepTimeout pgtype.Text `json:"stepTimeout"` - Steprunid pgtype.UUID `json:"steprunid"` - Tenantid pgtype.UUID `json:"tenantid"` +type ClearStepRunPayloadDataParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Limit interface{} `json:"limit"` } -type AssignStepRunToWorkerRow struct { - ID pgtype.UUID `json:"id"` - WorkerId pgtype.UUID `json:"workerId"` - DispatcherId pgtype.UUID `json:"dispatcherId"` -} - -func (q *Queries) AssignStepRunToWorker(ctx context.Context, db DBTX, arg AssignStepRunToWorkerParams) (*AssignStepRunToWorkerRow, error) { - row := db.QueryRow(ctx, assignStepRunToWorker, - arg.Workerid, - arg.StepTimeout, - arg.Steprunid, - arg.Tenantid, - ) - var i AssignStepRunToWorkerRow - err := row.Scan(&i.ID, &i.WorkerId, &i.DispatcherId) - return &i, err +func (q *Queries) ClearStepRunPayloadData(ctx context.Context, db DBTX, arg ClearStepRunPayloadDataParams) (bool, error) { + row := db.QueryRow(ctx, clearStepRunPayloadData, arg.Tenantid, arg.Limit) + var has_more bool + err := row.Scan(&has_more) + return has_more, err } const countStepRunArchives = `-- name: CountStepRunArchives :one @@ -380,6 +669,72 @@ func (q *Queries) GetLaterStepRunsForReplay(ctx context.Context, db DBTX, arg Ge return items, nil } +const getMaxRunsLimit = `-- name: GetMaxRunsLimit :one +WITH valid_workers AS ( + SELECT + w."id", + COALESCE(w."maxRuns", 100) - COUNT(wss."id") AS "remainingSlots" + FROM + "Worker" w + LEFT JOIN + "WorkerSemaphoreSlot" wss ON w."id" = wss."workerId" AND wss."stepRunId" IS NOT NULL + WHERE + w."tenantId" = $1::uuid + AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' + -- necessary because isActive is set to false immediately when the stream closes + AND w."isActive" = true + AND w."isPaused" = false + GROUP BY + w."id", w."maxRuns" + HAVING + COALESCE(w."maxRuns", 100) - COUNT(wss."stepRunId") > 0 +), +total_max_runs AS ( + SELECT + SUM("remainingSlots") AS "totalMaxRuns" + FROM + valid_workers +) +SELECT + GREATEST("totalMaxRuns", 100)::int AS "limitMaxRuns" +FROM + total_max_runs +` + +// Count the total number of maxRuns - runningStepRuns across all workers +func (q *Queries) GetMaxRunsLimit(ctx context.Context, db DBTX, tenantid pgtype.UUID) (int32, error) { + row := db.QueryRow(ctx, getMaxRunsLimit, tenantid) + var limitMaxRuns int32 + err := row.Scan(&limitMaxRuns) + return limitMaxRuns, err +} + +const getStepDesiredWorkerLabels = `-- name: GetStepDesiredWorkerLabels :one +SELECT + jsonb_agg( + jsonb_build_object( + 'key', dwl."key", + 'strValue', dwl."strValue", + 'intValue', dwl."intValue", + 'required', dwl."required", + 'weight', dwl."weight", + 'comparator', dwl."comparator", + 'is_true', false + ) + ) AS desired_labels +FROM + "StepDesiredWorkerLabel" dwl +WHERE + dwl."stepId" = $1::uuid +` + +func (q *Queries) GetStepDesiredWorkerLabels(ctx context.Context, db DBTX, stepid pgtype.UUID) ([]byte, error) { + row := db.QueryRow(ctx, getStepDesiredWorkerLabels, stepid) + var desired_labels []byte + err := row.Scan(&desired_labels) + return desired_labels, err +} + const getStepRun = `-- name: GetStepRun :one SELECT "StepRun".id, "StepRun"."createdAt", "StepRun"."updatedAt", "StepRun"."deletedAt", "StepRun"."tenantId", "StepRun"."jobRunId", "StepRun"."stepId", "StepRun"."order", "StepRun"."workerId", "StepRun"."tickerId", "StepRun".status, "StepRun".input, "StepRun".output, "StepRun"."requeueAfter", "StepRun"."scheduleTimeoutAt", "StepRun".error, "StepRun"."startedAt", "StepRun"."finishedAt", "StepRun"."timeoutAt", "StepRun"."cancelledAt", "StepRun"."cancelledReason", "StepRun"."cancelledError", "StepRun"."inputSchema", "StepRun"."callerFiles", "StepRun"."gitRepoBranch", "StepRun"."retryCount", "StepRun"."semaphoreReleased" @@ -387,6 +742,7 @@ FROM "StepRun" WHERE "id" = $1::uuid AND + "deletedAt" IS NULL AND "tenantId" = $2::uuid ` @@ -430,14 +786,88 @@ func (q *Queries) GetStepRun(ctx context.Context, db DBTX, arg GetStepRunParams) return &i, err } +const getStepRunDataForEngine = `-- name: GetStepRunDataForEngine :one +SELECT + sr."input", + sr."output", + sr."error", + jrld."data" AS "jobRunLookupData", + wr."additionalMetadata", + wr."childIndex", + wr."childKey", + wr."parentId" +FROM + "StepRun" sr +JOIN + "JobRun" jr ON sr."jobRunId" = jr."id" +JOIN + "JobRunLookupData" jrld ON jr."id" = jrld."jobRunId" +JOIN + -- Take advantage of composite index on "JobRun"("workflowRunId", "tenantId") + "WorkflowRun" wr ON jr."workflowRunId" = wr."id" AND wr."tenantId" = $1::uuid +WHERE + sr."id" = $2::uuid AND + sr."tenantId" = $1::uuid +` + +type GetStepRunDataForEngineParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + ID pgtype.UUID `json:"id"` +} + +type GetStepRunDataForEngineRow struct { + Input []byte `json:"input"` + Output []byte `json:"output"` + Error pgtype.Text `json:"error"` + JobRunLookupData []byte `json:"jobRunLookupData"` + AdditionalMetadata []byte `json:"additionalMetadata"` + ChildIndex pgtype.Int4 `json:"childIndex"` + ChildKey pgtype.Text `json:"childKey"` + ParentId pgtype.UUID `json:"parentId"` +} + +func (q *Queries) GetStepRunDataForEngine(ctx context.Context, db DBTX, arg GetStepRunDataForEngineParams) (*GetStepRunDataForEngineRow, error) { + row := db.QueryRow(ctx, getStepRunDataForEngine, arg.Tenantid, arg.ID) + var i GetStepRunDataForEngineRow + err := row.Scan( + &i.Input, + &i.Output, + &i.Error, + &i.JobRunLookupData, + &i.AdditionalMetadata, + &i.ChildIndex, + &i.ChildKey, + &i.ParentId, + ) + return &i, err +} + const getStepRunForEngine = `-- name: GetStepRunForEngine :many SELECT DISTINCT ON (sr."id") - sr.id, sr."createdAt", sr."updatedAt", sr."deletedAt", sr."tenantId", sr."jobRunId", sr."stepId", sr."order", sr."workerId", sr."tickerId", sr.status, sr.input, sr.output, sr."requeueAfter", sr."scheduleTimeoutAt", sr.error, sr."startedAt", sr."finishedAt", sr."timeoutAt", sr."cancelledAt", sr."cancelledReason", sr."cancelledError", sr."inputSchema", sr."callerFiles", sr."gitRepoBranch", sr."retryCount", sr."semaphoreReleased", - jrld."data" AS "jobRunLookupData", + sr."id" AS "SR_id", + sr."createdAt" AS "SR_createdAt", + sr."updatedAt" AS "SR_updatedAt", + sr."deletedAt" AS "SR_deletedAt", + sr."tenantId" AS "SR_tenantId", + sr."order" AS "SR_order", + sr."workerId" AS "SR_workerId", + sr."tickerId" AS "SR_tickerId", + sr."status" AS "SR_status", + sr."requeueAfter" AS "SR_requeueAfter", + sr."scheduleTimeoutAt" AS "SR_scheduleTimeoutAt", + sr."startedAt" AS "SR_startedAt", + sr."finishedAt" AS "SR_finishedAt", + sr."timeoutAt" AS "SR_timeoutAt", + sr."cancelledAt" AS "SR_cancelledAt", + sr."cancelledReason" AS "SR_cancelledReason", + sr."cancelledError" AS "SR_cancelledError", + sr."callerFiles" AS "SR_callerFiles", + sr."gitRepoBranch" AS "SR_gitRepoBranch", + sr."retryCount" AS "SR_retryCount", + sr."semaphoreReleased" AS "SR_semaphoreReleased", -- TODO: everything below this line is cacheable and should be moved to a separate query jr."id" AS "jobRunId", - wr."id" AS "workflowRunId", s."id" AS "stepId", s."retries" AS "stepRetries", s."timeout" AS "stepTimeout", @@ -447,10 +877,10 @@ SELECT j."name" AS "jobName", j."id" AS "jobId", j."kind" AS "jobKind", - wv."id" AS "workflowVersionId", - w."name" AS "workflowName", - w."id" AS "workflowId", - a."actionId" AS "actionId" + j."workflowVersionId" AS "workflowVersionId", + jr."workflowRunId" AS "workflowRunId", + a."actionId" AS "actionId", + sticky."strategy" AS "stickyStrategy" FROM "StepRun" sr JOIN @@ -459,18 +889,14 @@ JOIN "Action" a ON s."actionId" = a."actionId" AND s."tenantId" = a."tenantId" JOIN "JobRun" jr ON sr."jobRunId" = jr."id" -JOIN - "JobRunLookupData" jrld ON jr."id" = jrld."jobRunId" JOIN "Job" j ON jr."jobId" = j."id" -JOIN - "WorkflowRun" wr ON jr."workflowRunId" = wr."id" -JOIN - "WorkflowVersion" wv ON wr."workflowVersionId" = wv."id" -JOIN - "Workflow" w ON wv."workflowId" = w."id" +LEFT JOIN + "WorkflowRunStickyState" sticky ON jr."workflowRunId" = sticky."workflowRunId" WHERE sr."id" = ANY($1::uuid[]) AND + sr."deletedAt" IS NULL AND + jr."deletedAt" IS NULL AND ( $2::uuid IS NULL OR sr."tenantId" = $2::uuid @@ -483,23 +909,41 @@ type GetStepRunForEngineParams struct { } type GetStepRunForEngineRow struct { - StepRun StepRun `json:"step_run"` - JobRunLookupData []byte `json:"jobRunLookupData"` - JobRunId pgtype.UUID `json:"jobRunId"` - WorkflowRunId pgtype.UUID `json:"workflowRunId"` - StepId pgtype.UUID `json:"stepId"` - StepRetries int32 `json:"stepRetries"` - StepTimeout pgtype.Text `json:"stepTimeout"` - StepScheduleTimeout string `json:"stepScheduleTimeout"` - StepReadableId pgtype.Text `json:"stepReadableId"` - StepCustomUserData []byte `json:"stepCustomUserData"` - JobName string `json:"jobName"` - JobId pgtype.UUID `json:"jobId"` - JobKind JobKind `json:"jobKind"` - WorkflowVersionId pgtype.UUID `json:"workflowVersionId"` - WorkflowName string `json:"workflowName"` - WorkflowId pgtype.UUID `json:"workflowId"` - ActionId string `json:"actionId"` + SRID pgtype.UUID `json:"SR_id"` + SRCreatedAt pgtype.Timestamp `json:"SR_createdAt"` + SRUpdatedAt pgtype.Timestamp `json:"SR_updatedAt"` + SRDeletedAt pgtype.Timestamp `json:"SR_deletedAt"` + SRTenantId pgtype.UUID `json:"SR_tenantId"` + SROrder int64 `json:"SR_order"` + SRWorkerId pgtype.UUID `json:"SR_workerId"` + SRTickerId pgtype.UUID `json:"SR_tickerId"` + SRStatus StepRunStatus `json:"SR_status"` + SRRequeueAfter pgtype.Timestamp `json:"SR_requeueAfter"` + SRScheduleTimeoutAt pgtype.Timestamp `json:"SR_scheduleTimeoutAt"` + SRStartedAt pgtype.Timestamp `json:"SR_startedAt"` + SRFinishedAt pgtype.Timestamp `json:"SR_finishedAt"` + SRTimeoutAt pgtype.Timestamp `json:"SR_timeoutAt"` + SRCancelledAt pgtype.Timestamp `json:"SR_cancelledAt"` + SRCancelledReason pgtype.Text `json:"SR_cancelledReason"` + SRCancelledError pgtype.Text `json:"SR_cancelledError"` + SRCallerFiles []byte `json:"SR_callerFiles"` + SRGitRepoBranch pgtype.Text `json:"SR_gitRepoBranch"` + SRRetryCount int32 `json:"SR_retryCount"` + SRSemaphoreReleased bool `json:"SR_semaphoreReleased"` + JobRunId pgtype.UUID `json:"jobRunId"` + StepId pgtype.UUID `json:"stepId"` + StepRetries int32 `json:"stepRetries"` + StepTimeout pgtype.Text `json:"stepTimeout"` + StepScheduleTimeout string `json:"stepScheduleTimeout"` + StepReadableId pgtype.Text `json:"stepReadableId"` + StepCustomUserData []byte `json:"stepCustomUserData"` + JobName string `json:"jobName"` + JobId pgtype.UUID `json:"jobId"` + JobKind JobKind `json:"jobKind"` + WorkflowVersionId pgtype.UUID `json:"workflowVersionId"` + WorkflowRunId pgtype.UUID `json:"workflowRunId"` + ActionId string `json:"actionId"` + StickyStrategy NullStickyStrategy `json:"stickyStrategy"` } func (q *Queries) GetStepRunForEngine(ctx context.Context, db DBTX, arg GetStepRunForEngineParams) ([]*GetStepRunForEngineRow, error) { @@ -512,36 +956,28 @@ func (q *Queries) GetStepRunForEngine(ctx context.Context, db DBTX, arg GetStepR for rows.Next() { var i GetStepRunForEngineRow if err := rows.Scan( - &i.StepRun.ID, - &i.StepRun.CreatedAt, - &i.StepRun.UpdatedAt, - &i.StepRun.DeletedAt, - &i.StepRun.TenantId, - &i.StepRun.JobRunId, - &i.StepRun.StepId, - &i.StepRun.Order, - &i.StepRun.WorkerId, - &i.StepRun.TickerId, - &i.StepRun.Status, - &i.StepRun.Input, - &i.StepRun.Output, - &i.StepRun.RequeueAfter, - &i.StepRun.ScheduleTimeoutAt, - &i.StepRun.Error, - &i.StepRun.StartedAt, - &i.StepRun.FinishedAt, - &i.StepRun.TimeoutAt, - &i.StepRun.CancelledAt, - &i.StepRun.CancelledReason, - &i.StepRun.CancelledError, - &i.StepRun.InputSchema, - &i.StepRun.CallerFiles, - &i.StepRun.GitRepoBranch, - &i.StepRun.RetryCount, - &i.StepRun.SemaphoreReleased, - &i.JobRunLookupData, + &i.SRID, + &i.SRCreatedAt, + &i.SRUpdatedAt, + &i.SRDeletedAt, + &i.SRTenantId, + &i.SROrder, + &i.SRWorkerId, + &i.SRTickerId, + &i.SRStatus, + &i.SRRequeueAfter, + &i.SRScheduleTimeoutAt, + &i.SRStartedAt, + &i.SRFinishedAt, + &i.SRTimeoutAt, + &i.SRCancelledAt, + &i.SRCancelledReason, + &i.SRCancelledError, + &i.SRCallerFiles, + &i.SRGitRepoBranch, + &i.SRRetryCount, + &i.SRSemaphoreReleased, &i.JobRunId, - &i.WorkflowRunId, &i.StepId, &i.StepRetries, &i.StepTimeout, @@ -552,9 +988,9 @@ func (q *Queries) GetStepRunForEngine(ctx context.Context, db DBTX, arg GetStepR &i.JobId, &i.JobKind, &i.WorkflowVersionId, - &i.WorkflowName, - &i.WorkflowId, + &i.WorkflowRunId, &i.ActionId, + &i.StickyStrategy, ); err != nil { return nil, err } @@ -566,6 +1002,36 @@ func (q *Queries) GetStepRunForEngine(ctx context.Context, db DBTX, arg GetStepR return items, nil } +const getStepRunMeta = `-- name: GetStepRunMeta :one +SELECT + jr."workflowRunId" AS "workflowRunId", + sr."retryCount" AS "retryCount", + s."retries" as "retries" +FROM "StepRun" sr +JOIN "Step" s ON sr."stepId" = s."id" +JOIN "JobRun" jr ON sr."jobRunId" = jr."id" +WHERE sr."id" = $1::uuid +AND sr."tenantId" = $2::uuid +` + +type GetStepRunMetaParams struct { + Steprunid pgtype.UUID `json:"steprunid"` + Tenantid pgtype.UUID `json:"tenantid"` +} + +type GetStepRunMetaRow struct { + WorkflowRunId pgtype.UUID `json:"workflowRunId"` + RetryCount int32 `json:"retryCount"` + Retries int32 `json:"retries"` +} + +func (q *Queries) GetStepRunMeta(ctx context.Context, db DBTX, arg GetStepRunMetaParams) (*GetStepRunMetaRow, error) { + row := db.QueryRow(ctx, getStepRunMeta, arg.Steprunid, arg.Tenantid) + var i GetStepRunMetaRow + err := row.Scan(&i.WorkflowRunId, &i.RetryCount, &i.Retries) + return &i, err +} + const listNonFinalChildStepRuns = `-- name: ListNonFinalChildStepRuns :many WITH RECURSIVE currStepRun AS ( SELECT id, "createdAt", "updatedAt", "deletedAt", "tenantId", "jobRunId", "stepId", "order", "workerId", "tickerId", status, input, output, "requeueAfter", "scheduleTimeoutAt", error, "startedAt", "finishedAt", "timeoutAt", "cancelledAt", "cancelledReason", "cancelledError", "inputSchema", "callerFiles", "gitRepoBranch", "retryCount", "semaphoreReleased" @@ -578,6 +1044,7 @@ WITH RECURSIVE currStepRun AS ( FROM "StepRun" sr JOIN "_StepRunOrder" sro ON sr."id" = sro."B" WHERE sro."A" = (SELECT "id" FROM currStepRun) + AND sr."deletedAt" IS NULL UNION ALL @@ -594,6 +1061,7 @@ JOIN childStepRuns csr ON sr."id" = csr."id" WHERE sr."tenantId" = $1::uuid AND + sr."deletedAt" IS NULL AND sr."status" NOT IN ('SUCCEEDED', 'FAILED', 'CANCELLED') ` @@ -653,7 +1121,7 @@ func (q *Queries) ListNonFinalChildStepRuns(ctx context.Context, db DBTX, arg Li const listStartableStepRuns = `-- name: ListStartableStepRuns :many WITH job_run AS ( - SELECT "status" + SELECT "status", "deletedAt" FROM "JobRun" WHERE "id" = $1::uuid ) @@ -668,6 +1136,8 @@ JOIN job_run ON true WHERE child_run."jobRunId" = $1::uuid + AND child_run."deletedAt" IS NULL + AND job_run."deletedAt" IS NULL AND child_run."status" = 'PENDING' AND job_run."status" = 'RUNNING' -- case on whether parentStepRunId is null @@ -721,7 +1191,8 @@ JOIN "StepRun" ON "StepRunResultArchive"."stepRunId" = "StepRun"."id" WHERE "StepRunResultArchive"."stepRunId" = $1::uuid AND - "StepRun"."tenantId" = $2::uuid + "StepRun"."tenantId" = $2::uuid AND + "StepRun"."deletedAt" IS NULL ORDER BY "StepRunResultArchive"."createdAt" OFFSET @@ -838,6 +1309,8 @@ FROM JOIN "JobRun" ON "StepRun"."jobRunId" = "JobRun"."id" WHERE + "StepRun"."deletedAt" IS NULL AND + "JobRun"."deletedAt" IS NULL AND ( $1::uuid IS NULL OR "StepRun"."tenantId" = $1::uuid @@ -895,94 +1368,46 @@ func (q *Queries) ListStepRuns(ctx context.Context, db DBTX, arg ListStepRunsPar } const listStepRunsToReassign = `-- name: ListStepRunsToReassign :many -WITH valid_workers AS ( +WITH inactive_workers AS ( SELECT - DISTINCT ON (w."id") - w."id", - COALESCE(w."maxRuns", 100) - COUNT(wss."id") AS "remainingSlots" + w."id" FROM "Worker" w - LEFT JOIN - "WorkerSemaphoreSlot" wss ON w."id" = wss."workerId" AND wss."stepRunId" IS NULL WHERE w."tenantId" = $1::uuid - AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' - -- necessary because isActive is set to false immediately when the stream closes - AND w."isActive" = true - GROUP BY - w."id", w."maxRuns" - HAVING - COALESCE(w."maxRuns", 100) - COUNT(wss."id") > 0 + AND w."lastHeartbeatAt" < NOW() - INTERVAL '30 seconds' ), -total_max_runs AS ( - SELECT - SUM("remainingSlots") AS "totalMaxRuns" - FROM - valid_workers -), -limit_max_runs AS ( - SELECT - GREATEST("totalMaxRuns", 100) AS "limitMaxRuns" - FROM - total_max_runs -), -step_runs AS ( - SELECT - sr.id, sr."createdAt", sr."updatedAt", sr."deletedAt", sr."tenantId", sr."jobRunId", sr."stepId", sr."order", sr."workerId", sr."tickerId", sr.status, sr.input, sr.output, sr."requeueAfter", sr."scheduleTimeoutAt", sr.error, sr."startedAt", sr."finishedAt", sr."timeoutAt", sr."cancelledAt", sr."cancelledReason", sr."cancelledError", sr."inputSchema", sr."callerFiles", sr."gitRepoBranch", sr."retryCount", sr."semaphoreReleased" - FROM - "StepRun" sr - LEFT JOIN - "Worker" w ON sr."workerId" = w."id" - JOIN - "JobRun" jr ON sr."jobRunId" = jr."id" - JOIN - "Step" s ON sr."stepId" = s."id" +step_runs_to_reassign AS ( + SELECT "stepRunId" + FROM "WorkerSemaphoreSlot" WHERE - sr."tenantId" = $1::uuid - AND (( - sr."status" = 'RUNNING' - AND w."lastHeartbeatAt" < NOW() - INTERVAL '30 seconds' - ) OR ( - sr."status" = 'ASSIGNED' - AND w."lastHeartbeatAt" < NOW() - INTERVAL '30 seconds' - )) - AND jr."status" = 'RUNNING' - AND sr."input" IS NOT NULL - AND NOT EXISTS ( - SELECT 1 - FROM "_StepRunOrder" AS order_table - JOIN "StepRun" AS prev_sr ON order_table."A" = prev_sr."id" - WHERE - order_table."B" = sr."id" - AND prev_sr."status" != 'SUCCEEDED' - ) - ORDER BY - sr."createdAt" ASC - LIMIT - (SELECT "limitMaxRuns" FROM limit_max_runs) -), -locked_step_runs AS ( - SELECT - sr."id", sr."status", sr."workerId" - FROM - step_runs sr + "workerId" = ANY(SELECT "id" FROM inactive_workers) + AND "stepRunId" IS NOT NULL FOR UPDATE SKIP LOCKED +), +update_semaphore_steps AS ( + UPDATE "WorkerSemaphoreSlot" wss + SET "stepRunId" = NULL + FROM step_runs_to_reassign + WHERE wss."stepRunId" = step_runs_to_reassign."stepRunId" ) UPDATE "StepRun" SET "status" = 'PENDING_ASSIGNMENT', - -- requeue after now plus 4 seconds - "requeueAfter" = CURRENT_TIMESTAMP + INTERVAL '4 seconds', - "updatedAt" = CURRENT_TIMESTAMP + -- place directly in the queue + "requeueAfter" = CURRENT_TIMESTAMP, + "updatedAt" = CURRENT_TIMESTAMP, + -- unset the schedule timeout + "scheduleTimeoutAt" = NULL FROM - locked_step_runs + step_runs_to_reassign WHERE - "StepRun"."id" = locked_step_runs."id" + "StepRun"."id" = step_runs_to_reassign."stepRunId" + AND "StepRun"."deletedAt" IS NULL RETURNING "StepRun"."id" ` -// Count the total number of slots across all workers func (q *Queries) ListStepRunsToReassign(ctx context.Context, db DBTX, tenantid pgtype.UUID) ([]pgtype.UUID, error) { rows, err := db.Query(ctx, listStepRunsToReassign, tenantid) if err != nil { @@ -1004,44 +1429,19 @@ func (q *Queries) ListStepRunsToReassign(ctx context.Context, db DBTX, tenantid } const listStepRunsToRequeue = `-- name: ListStepRunsToRequeue :many -WITH valid_workers AS ( - SELECT - w."id", - COALESCE(w."maxRuns", 100) - COUNT(wss."stepRunId") AS "remainingSlots" - FROM - "Worker" w - LEFT JOIN - "WorkerSemaphoreSlot" wss ON w."id" = wss."workerId" AND wss."stepRunId" IS NULL - WHERE - w."tenantId" = $1::uuid - AND w."lastHeartbeatAt" > NOW() - INTERVAL '5 seconds' - -- necessary because isActive is set to false immediately when the stream closes - AND w."isActive" = true - GROUP BY - w."id", w."maxRuns" - HAVING - COALESCE(w."maxRuns", 100) - COUNT(wss."stepRunId") > 0 -), -total_max_runs AS ( - SELECT - SUM("remainingSlots") AS "totalMaxRuns" - FROM - valid_workers -), -step_runs AS ( +WITH step_runs AS ( SELECT - sr.id, sr."createdAt", sr."updatedAt", sr."deletedAt", sr."tenantId", sr."jobRunId", sr."stepId", sr."order", sr."workerId", sr."tickerId", sr.status, sr.input, sr.output, sr."requeueAfter", sr."scheduleTimeoutAt", sr.error, sr."startedAt", sr."finishedAt", sr."timeoutAt", sr."cancelledAt", sr."cancelledReason", sr."cancelledError", sr."inputSchema", sr."callerFiles", sr."gitRepoBranch", sr."retryCount", sr."semaphoreReleased" + sr."id", sr."status", sr."workerId" FROM "StepRun" sr - LEFT JOIN - "Worker" w ON sr."workerId" = w."id" JOIN - "JobRun" jr ON sr."jobRunId" = jr."id" + "JobRun" jr ON sr."jobRunId" = jr."id" AND jr."status" = 'RUNNING' WHERE sr."tenantId" = $1::uuid + AND sr."deletedAt" IS NULL + AND jr."deletedAt" IS NULL + AND sr."status" = ANY(ARRAY['PENDING', 'PENDING_ASSIGNMENT']::"StepRunStatus"[]) AND sr."requeueAfter" < NOW() - AND (sr."status" = 'PENDING' OR sr."status" = 'PENDING_ASSIGNMENT') - AND jr."status" = 'RUNNING' AND sr."input" IS NOT NULL AND NOT EXISTS ( SELECT 1 @@ -1051,17 +1451,9 @@ step_runs AS ( order_table."B" = sr."id" AND prev_sr."status" != 'SUCCEEDED' ) - ORDER BY - sr."createdAt" ASC - LIMIT - COALESCE((SELECT "totalMaxRuns" FROM total_max_runs), 100) -), -locked_step_runs AS ( - SELECT - sr."id", sr."status", sr."workerId" - FROM - step_runs sr FOR UPDATE SKIP LOCKED + LIMIT + $2::int ) UPDATE "StepRun" @@ -1071,15 +1463,49 @@ SET "requeueAfter" = CURRENT_TIMESTAMP + INTERVAL '4 seconds', "updatedAt" = CURRENT_TIMESTAMP FROM - locked_step_runs + step_runs WHERE - "StepRun"."id" = locked_step_runs."id" + "StepRun"."id" = step_runs."id" RETURNING "StepRun"."id" ` -// Count the total number of maxRuns - runningStepRuns across all workers -func (q *Queries) ListStepRunsToRequeue(ctx context.Context, db DBTX, tenantid pgtype.UUID) ([]pgtype.UUID, error) { - rows, err := db.Query(ctx, listStepRunsToRequeue, tenantid) +type ListStepRunsToRequeueParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Limit int32 `json:"limit"` +} + +func (q *Queries) ListStepRunsToRequeue(ctx context.Context, db DBTX, arg ListStepRunsToRequeueParams) ([]pgtype.UUID, error) { + rows, err := db.Query(ctx, listStepRunsToRequeue, arg.Tenantid, arg.Limit) + if err != nil { + return nil, err + } + defer rows.Close() + var items []pgtype.UUID + for rows.Next() { + var id pgtype.UUID + if err := rows.Scan(&id); err != nil { + return nil, err + } + items = append(items, id) + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} + +const listStepRunsToTimeout = `-- name: ListStepRunsToTimeout :many +SELECT "id" +FROM "StepRun" +WHERE + "status" = ANY(ARRAY['RUNNING', 'ASSIGNED']::"StepRunStatus"[]) + AND "timeoutAt" < NOW() + AND "tenantId" = $1::uuid +LIMIT 100 +` + +func (q *Queries) ListStepRunsToTimeout(ctx context.Context, db DBTX, tenantid pgtype.UUID) ([]pgtype.UUID, error) { + rows, err := db.Query(ctx, listStepRunsToTimeout, tenantid) if err != nil { return nil, err } @@ -1316,28 +1742,21 @@ func (q *Queries) ReplayStepRunResetLaterStepRuns(ctx context.Context, db DBTX, } const replayStepRunResetWorkflowRun = `-- name: ReplayStepRunResetWorkflowRun :one -WITH workflow_run_id AS ( - SELECT - "workflowRunId" - FROM - "JobRun" - WHERE - "id" = $1::uuid -) UPDATE "WorkflowRun" SET - "status" = 'RUNNING', + "status" = 'PENDING', "updatedAt" = CURRENT_TIMESTAMP, "startedAt" = NULL, - "finishedAt" = NULL + "finishedAt" = NULL, + "duration" = NULL WHERE - "id" = (SELECT "workflowRunId" FROM workflow_run_id) -RETURNING "createdAt", "updatedAt", "deletedAt", "tenantId", "workflowVersionId", status, error, "startedAt", "finishedAt", "concurrencyGroupId", "displayName", id, "childIndex", "childKey", "parentId", "parentStepRunId", "additionalMetadata" + "id" = $1::uuid +RETURNING "createdAt", "updatedAt", "deletedAt", "tenantId", "workflowVersionId", status, error, "startedAt", "finishedAt", "concurrencyGroupId", "displayName", id, "childIndex", "childKey", "parentId", "parentStepRunId", "additionalMetadata", duration ` -func (q *Queries) ReplayStepRunResetWorkflowRun(ctx context.Context, db DBTX, jobrunid pgtype.UUID) (*WorkflowRun, error) { - row := db.QueryRow(ctx, replayStepRunResetWorkflowRun, jobrunid) +func (q *Queries) ReplayStepRunResetWorkflowRun(ctx context.Context, db DBTX, workflowrunid pgtype.UUID) (*WorkflowRun, error) { + row := db.QueryRow(ctx, replayStepRunResetWorkflowRun, workflowrunid) var i WorkflowRun err := row.Scan( &i.CreatedAt, @@ -1357,10 +1776,83 @@ func (q *Queries) ReplayStepRunResetWorkflowRun(ctx context.Context, db DBTX, jo &i.ParentId, &i.ParentStepRunId, &i.AdditionalMetadata, + &i.Duration, ) return &i, err } +const resetStepRunsByIds = `-- name: ResetStepRunsByIds :many +UPDATE + "StepRun" as sr +SET + "status" = 'PENDING', + "scheduleTimeoutAt" = NULL, + "finishedAt" = NULL, + "startedAt" = NULL, + "output" = NULL, + "error" = NULL, + "cancelledAt" = NULL, + "cancelledReason" = NULL, + "input" = NULL +WHERE + sr."id" = ANY($1::uuid[]) AND + sr."tenantId" = $2::uuid +RETURNING sr.id, sr."createdAt", sr."updatedAt", sr."deletedAt", sr."tenantId", sr."jobRunId", sr."stepId", sr."order", sr."workerId", sr."tickerId", sr.status, sr.input, sr.output, sr."requeueAfter", sr."scheduleTimeoutAt", sr.error, sr."startedAt", sr."finishedAt", sr."timeoutAt", sr."cancelledAt", sr."cancelledReason", sr."cancelledError", sr."inputSchema", sr."callerFiles", sr."gitRepoBranch", sr."retryCount", sr."semaphoreReleased" +` + +type ResetStepRunsByIdsParams struct { + Ids []pgtype.UUID `json:"ids"` + Tenantid pgtype.UUID `json:"tenantid"` +} + +func (q *Queries) ResetStepRunsByIds(ctx context.Context, db DBTX, arg ResetStepRunsByIdsParams) ([]*StepRun, error) { + rows, err := db.Query(ctx, resetStepRunsByIds, arg.Ids, arg.Tenantid) + if err != nil { + return nil, err + } + defer rows.Close() + var items []*StepRun + for rows.Next() { + var i StepRun + if err := rows.Scan( + &i.ID, + &i.CreatedAt, + &i.UpdatedAt, + &i.DeletedAt, + &i.TenantId, + &i.JobRunId, + &i.StepId, + &i.Order, + &i.WorkerId, + &i.TickerId, + &i.Status, + &i.Input, + &i.Output, + &i.RequeueAfter, + &i.ScheduleTimeoutAt, + &i.Error, + &i.StartedAt, + &i.FinishedAt, + &i.TimeoutAt, + &i.CancelledAt, + &i.CancelledReason, + &i.CancelledError, + &i.InputSchema, + &i.CallerFiles, + &i.GitRepoBranch, + &i.RetryCount, + &i.SemaphoreReleased, + ); err != nil { + return nil, err + } + items = append(items, &i) + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} + const resolveLaterStepRuns = `-- name: ResolveLaterStepRuns :many WITH RECURSIVE currStepRun AS ( SELECT id, "createdAt", "updatedAt", "deletedAt", "tenantId", "jobRunId", "stepId", "order", "workerId", "tickerId", status, input, output, "requeueAfter", "scheduleTimeoutAt", error, "startedAt", "finishedAt", "timeoutAt", "cancelledAt", "cancelledReason", "cancelledError", "inputSchema", "callerFiles", "gitRepoBranch", "retryCount", "semaphoreReleased" @@ -1511,76 +2003,6 @@ func (q *Queries) UnlinkStepRunFromWorker(ctx context.Context, db DBTX, arg Unli return &i, err } -const updateStepRateLimits = `-- name: UpdateStepRateLimits :many -WITH step_rate_limits AS ( - SELECT - rl."units" AS "units", - rl."rateLimitKey" AS "rateLimitKey" - FROM - "StepRateLimit" rl - WHERE - rl."stepId" = $1::uuid AND - rl."tenantId" = $2::uuid -), locked_rate_limits AS ( - SELECT - srl."tenantId", srl.key, srl."limitValue", srl.value, srl."window", srl."lastRefill", - step_rate_limits."units" - FROM - step_rate_limits - JOIN - "RateLimit" srl ON srl."key" = step_rate_limits."rateLimitKey" AND srl."tenantId" = $2::uuid - FOR UPDATE -) -UPDATE - "RateLimit" srl -SET - "value" = get_refill_value(srl) - lrl."units", - "lastRefill" = CASE - WHEN NOW() - srl."lastRefill" >= srl."window"::INTERVAL THEN - CURRENT_TIMESTAMP - ELSE - srl."lastRefill" - END -FROM - locked_rate_limits lrl -WHERE - srl."tenantId" = lrl."tenantId" AND - srl."key" = lrl."key" -RETURNING srl."tenantId", srl.key, srl."limitValue", srl.value, srl."window", srl."lastRefill" -` - -type UpdateStepRateLimitsParams struct { - Stepid pgtype.UUID `json:"stepid"` - Tenantid pgtype.UUID `json:"tenantid"` -} - -func (q *Queries) UpdateStepRateLimits(ctx context.Context, db DBTX, arg UpdateStepRateLimitsParams) ([]*RateLimit, error) { - rows, err := db.Query(ctx, updateStepRateLimits, arg.Stepid, arg.Tenantid) - if err != nil { - return nil, err - } - defer rows.Close() - var items []*RateLimit - for rows.Next() { - var i RateLimit - if err := rows.Scan( - &i.TenantId, - &i.Key, - &i.LimitValue, - &i.Value, - &i.Window, - &i.LastRefill, - ); err != nil { - return nil, err - } - items = append(items, &i) - } - if err := rows.Err(); err != nil { - return nil, err - } - return items, nil -} - const updateStepRun = `-- name: UpdateStepRun :one UPDATE "StepRun" @@ -1762,3 +2184,71 @@ func (q *Queries) UpdateStepRunOverridesData(ctx context.Context, db DBTX, arg U err := row.Scan(&input) return input, err } + +const upsertDesiredWorkerLabel = `-- name: UpsertDesiredWorkerLabel :one +INSERT INTO "StepDesiredWorkerLabel" ( + "createdAt", + "updatedAt", + "stepId", + "key", + "intValue", + "strValue", + "required", + "weight", + "comparator" +) VALUES ( + CURRENT_TIMESTAMP, + CURRENT_TIMESTAMP, + $1::uuid, + $2::text, + COALESCE($3::int, NULL), + COALESCE($4::text, NULL), + COALESCE($5::boolean, false), + COALESCE($6::int, 100), + COALESCE($7::"WorkerLabelComparator", 'EQUAL') +) ON CONFLICT ("stepId", "key") DO UPDATE +SET + "updatedAt" = CURRENT_TIMESTAMP, + "intValue" = COALESCE($3::int, null), + "strValue" = COALESCE($4::text, null), + "required" = COALESCE($5::boolean, false), + "weight" = COALESCE($6::int, 100), + "comparator" = COALESCE($7::"WorkerLabelComparator", 'EQUAL') +RETURNING id, "createdAt", "updatedAt", "stepId", key, "strValue", "intValue", required, comparator, weight +` + +type UpsertDesiredWorkerLabelParams struct { + Stepid pgtype.UUID `json:"stepid"` + Key string `json:"key"` + IntValue pgtype.Int4 `json:"intValue"` + StrValue pgtype.Text `json:"strValue"` + Required pgtype.Bool `json:"required"` + Weight pgtype.Int4 `json:"weight"` + Comparator NullWorkerLabelComparator `json:"comparator"` +} + +func (q *Queries) UpsertDesiredWorkerLabel(ctx context.Context, db DBTX, arg UpsertDesiredWorkerLabelParams) (*StepDesiredWorkerLabel, error) { + row := db.QueryRow(ctx, upsertDesiredWorkerLabel, + arg.Stepid, + arg.Key, + arg.IntValue, + arg.StrValue, + arg.Required, + arg.Weight, + arg.Comparator, + ) + var i StepDesiredWorkerLabel + err := row.Scan( + &i.ID, + &i.CreatedAt, + &i.UpdatedAt, + &i.StepId, + &i.Key, + &i.StrValue, + &i.IntValue, + &i.Required, + &i.Comparator, + &i.Weight, + ) + return &i, err +} diff --git a/pkg/repository/prisma/dbsqlc/stream_event.sql b/pkg/repository/prisma/dbsqlc/stream_event.sql index b61f83ff6..0295922c5 100644 --- a/pkg/repository/prisma/dbsqlc/stream_event.sql +++ b/pkg/repository/prisma/dbsqlc/stream_event.sql @@ -1,3 +1,14 @@ +-- name: GetStreamEventMeta :one +SELECT + jr."workflowRunId" AS "workflowRunId", + sr."retryCount" AS "retryCount", + s."retries" as "retries" +FROM "StepRun" sr +JOIN "Step" s ON sr."stepId" = s."id" +JOIN "JobRun" jr ON sr."jobRunId" = jr."id" +WHERE sr."id" = @stepRunId::uuid +AND sr."tenantId" = @tenantId::uuid; + -- name: CreateStreamEvent :one INSERT INTO "StreamEvent" ( "createdAt", diff --git a/pkg/repository/prisma/dbsqlc/stream_event.sql.go b/pkg/repository/prisma/dbsqlc/stream_event.sql.go index 9b1a2597c..ec73bcf46 100644 --- a/pkg/repository/prisma/dbsqlc/stream_event.sql.go +++ b/pkg/repository/prisma/dbsqlc/stream_event.sql.go @@ -96,3 +96,33 @@ func (q *Queries) GetStreamEvent(ctx context.Context, db DBTX, arg GetStreamEven ) return &i, err } + +const getStreamEventMeta = `-- name: GetStreamEventMeta :one +SELECT + jr."workflowRunId" AS "workflowRunId", + sr."retryCount" AS "retryCount", + s."retries" as "retries" +FROM "StepRun" sr +JOIN "Step" s ON sr."stepId" = s."id" +JOIN "JobRun" jr ON sr."jobRunId" = jr."id" +WHERE sr."id" = $1::uuid +AND sr."tenantId" = $2::uuid +` + +type GetStreamEventMetaParams struct { + Steprunid pgtype.UUID `json:"steprunid"` + Tenantid pgtype.UUID `json:"tenantid"` +} + +type GetStreamEventMetaRow struct { + WorkflowRunId pgtype.UUID `json:"workflowRunId"` + RetryCount int32 `json:"retryCount"` + Retries int32 `json:"retries"` +} + +func (q *Queries) GetStreamEventMeta(ctx context.Context, db DBTX, arg GetStreamEventMetaParams) (*GetStreamEventMetaRow, error) { + row := db.QueryRow(ctx, getStreamEventMeta, arg.Steprunid, arg.Tenantid) + var i GetStreamEventMetaRow + err := row.Scan(&i.WorkflowRunId, &i.RetryCount, &i.Retries) + return &i, err +} diff --git a/pkg/repository/prisma/dbsqlc/tenants.sql b/pkg/repository/prisma/dbsqlc/tenants.sql index 084308b24..98e25ae55 100644 --- a/pkg/repository/prisma/dbsqlc/tenants.sql +++ b/pkg/repository/prisma/dbsqlc/tenants.sql @@ -7,7 +7,7 @@ WITH active_controller_partitions AS ( WHERE "lastHeartbeat" > NOW() - INTERVAL '1 minute' ) -INSERT INTO "Tenant" ("id", "name", "slug", "controllerPartitionId") +INSERT INTO "Tenant" ("id", "name", "slug", "controllerPartitionId", "dataRetentionPeriod") VALUES ( sqlc.arg('id')::uuid, sqlc.arg('name')::text, @@ -20,7 +20,8 @@ VALUES ( ORDER BY random() LIMIT 1 - ) + ), + COALESCE(sqlc.narg('dataRetentionPeriod')::text, '720h') ) RETURNING *; @@ -206,36 +207,38 @@ RETURNING *; -- name: RebalanceAllControllerPartitions :exec WITH active_partitions AS ( SELECT - "id" + "id", + ROW_NUMBER() OVER () AS row_number FROM "ControllerPartition" WHERE "lastHeartbeat" > NOW() - INTERVAL '1 minute' +), +tenants_to_update AS ( + SELECT + tenants."id" AS "id", + ROW_NUMBER() OVER () AS row_number + FROM + "Tenant" AS tenants + WHERE + tenants."slug" != 'internal' ) UPDATE - "Tenant" as tenants + "Tenant" AS tenants SET - "controllerPartitionId" = ( - SELECT - "id" - FROM - active_partitions - ORDER BY - random() - LIMIT 1 - ) + "controllerPartitionId" = partitions."id" +FROM + tenants_to_update, + active_partitions AS partitions WHERE - "slug" != 'internal' AND - ( - "controllerPartitionId" IS NULL OR - "controllerPartitionId" NOT IN (SELECT "id" FROM active_partitions) - ) -RETURNING *; + tenants."id" = tenants_to_update."id" AND + partitions.row_number = (tenants_to_update.row_number - 1) % (SELECT COUNT(*) FROM active_partitions) + 1; -- name: RebalanceInactiveControllerPartitions :exec WITH active_partitions AS ( SELECT - "id" + "id", + ROW_NUMBER() OVER () AS row_number FROM "ControllerPartition" WHERE @@ -247,25 +250,27 @@ WITH active_partitions AS ( "ControllerPartition" WHERE "lastHeartbeat" <= NOW() - INTERVAL '1 minute' -), update_tenants AS ( - UPDATE - "Tenant" as tenants - SET - "controllerPartitionId" = ( - SELECT - "id" - FROM - active_partitions - ORDER BY - random() - LIMIT 1 - ) +), tenants_to_update AS ( + SELECT + tenants."id" AS "id", + ROW_NUMBER() OVER () AS row_number + FROM + "Tenant" AS tenants WHERE - "slug" != 'internal' AND + tenants."slug" != 'internal' AND ( "controllerPartitionId" IS NULL OR "controllerPartitionId" IN (SELECT "id" FROM inactive_partitions) ) +), update_tenants AS ( + UPDATE "Tenant" AS tenants + SET "controllerPartitionId" = partitions."id" + FROM + tenants_to_update, + active_partitions AS partitions + WHERE + tenants."id" = tenants_to_update."id" AND + partitions.row_number = (tenants_to_update.row_number - 1) % (SELECT COUNT(*) FROM active_partitions) + 1 ) DELETE FROM "ControllerPartition" WHERE "id" IN (SELECT "id" FROM inactive_partitions); @@ -284,36 +289,38 @@ RETURNING *; -- name: RebalanceAllTenantWorkerPartitions :exec WITH active_partitions AS ( SELECT - "id" + "id", + ROW_NUMBER() OVER () AS row_number FROM "TenantWorkerPartition" WHERE "lastHeartbeat" > NOW() - INTERVAL '1 minute' +), +tenants_to_update AS ( + SELECT + tenants."id" AS "id", + ROW_NUMBER() OVER () AS row_number + FROM + "Tenant" AS tenants + WHERE + tenants."slug" != 'internal' ) UPDATE - "Tenant" as tenants + "Tenant" AS tenants SET - "workerPartitionId" = ( - SELECT - "id" - FROM - active_partitions - ORDER BY - random() - LIMIT 1 - ) + "workerPartitionId" = partitions."id" +FROM + tenants_to_update, + active_partitions AS partitions WHERE - "slug" != 'internal' AND - ( - "workerPartitionId" IS NULL OR - "workerPartitionId" NOT IN (SELECT "id" FROM active_partitions) - ) -RETURNING *; + tenants."id" = tenants_to_update."id" AND + partitions.row_number = (tenants_to_update.row_number - 1) % (SELECT COUNT(*) FROM active_partitions) + 1; -- name: RebalanceInactiveTenantWorkerPartitions :exec WITH active_partitions AS ( SELECT - "id" + "id", + ROW_NUMBER() OVER () AS row_number FROM "TenantWorkerPartition" WHERE @@ -325,25 +332,27 @@ WITH active_partitions AS ( "TenantWorkerPartition" WHERE "lastHeartbeat" <= NOW() - INTERVAL '1 minute' -), update_tenants AS ( - UPDATE - "Tenant" as tenants - SET - "workerPartitionId" = ( - SELECT - "id" - FROM - active_partitions - ORDER BY - random() - LIMIT 1 - ) +), tenants_to_update AS ( + SELECT + tenants."id" AS "id", + ROW_NUMBER() OVER () AS row_number + FROM + "Tenant" AS tenants WHERE - "slug" != 'internal' AND + tenants."slug" != 'internal' AND ( "workerPartitionId" IS NULL OR "workerPartitionId" IN (SELECT "id" FROM inactive_partitions) ) +), update_tenants AS ( + UPDATE "Tenant" AS tenants + SET "workerPartitionId" = partitions."id" + FROM + tenants_to_update, + active_partitions AS partitions + WHERE + tenants."id" = tenants_to_update."id" AND + partitions.row_number = (tenants_to_update.row_number - 1) % (SELECT COUNT(*) FROM active_partitions) + 1 ) DELETE FROM "TenantWorkerPartition" WHERE "id" IN (SELECT "id" FROM inactive_partitions); diff --git a/pkg/repository/prisma/dbsqlc/tenants.sql.go b/pkg/repository/prisma/dbsqlc/tenants.sql.go index c1c28731f..8491894a9 100644 --- a/pkg/repository/prisma/dbsqlc/tenants.sql.go +++ b/pkg/repository/prisma/dbsqlc/tenants.sql.go @@ -39,7 +39,7 @@ WITH active_controller_partitions AS ( WHERE "lastHeartbeat" > NOW() - INTERVAL '1 minute' ) -INSERT INTO "Tenant" ("id", "name", "slug", "controllerPartitionId") +INSERT INTO "Tenant" ("id", "name", "slug", "controllerPartitionId", "dataRetentionPeriod") VALUES ( $1::uuid, $2::text, @@ -52,19 +52,26 @@ VALUES ( ORDER BY random() LIMIT 1 - ) + ), + COALESCE($4::text, '720h') ) -RETURNING id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId" +RETURNING id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId", "dataRetentionPeriod" ` type CreateTenantParams struct { - ID pgtype.UUID `json:"id"` - Name string `json:"name"` - Slug string `json:"slug"` + ID pgtype.UUID `json:"id"` + Name string `json:"name"` + Slug string `json:"slug"` + DataRetentionPeriod pgtype.Text `json:"dataRetentionPeriod"` } func (q *Queries) CreateTenant(ctx context.Context, db DBTX, arg CreateTenantParams) (*Tenant, error) { - row := db.QueryRow(ctx, createTenant, arg.ID, arg.Name, arg.Slug) + row := db.QueryRow(ctx, createTenant, + arg.ID, + arg.Name, + arg.Slug, + arg.DataRetentionPeriod, + ) var i Tenant err := row.Scan( &i.ID, @@ -77,6 +84,7 @@ func (q *Queries) CreateTenant(ctx context.Context, db DBTX, arg CreateTenantPar &i.AlertMemberEmails, &i.ControllerPartitionId, &i.WorkerPartitionId, + &i.DataRetentionPeriod, ) return &i, err } @@ -295,7 +303,7 @@ func (q *Queries) GetTenantAlertingSettings(ctx context.Context, db DBTX, tenant const getTenantByID = `-- name: GetTenantByID :one SELECT - id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId" + id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId", "dataRetentionPeriod" FROM "Tenant" as tenants WHERE @@ -316,6 +324,7 @@ func (q *Queries) GetTenantByID(ctx context.Context, db DBTX, id pgtype.UUID) (* &i.AlertMemberEmails, &i.ControllerPartitionId, &i.WorkerPartitionId, + &i.DataRetentionPeriod, ) return &i, err } @@ -458,7 +467,7 @@ func (q *Queries) GetTenantWorkflowQueueMetrics(ctx context.Context, db DBTX, ar const listTenants = `-- name: ListTenants :many SELECT - id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId" + id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId", "dataRetentionPeriod" FROM "Tenant" as tenants ` @@ -483,6 +492,7 @@ func (q *Queries) ListTenants(ctx context.Context, db DBTX) ([]*Tenant, error) { &i.AlertMemberEmails, &i.ControllerPartitionId, &i.WorkerPartitionId, + &i.DataRetentionPeriod, ); err != nil { return nil, err } @@ -504,7 +514,7 @@ WITH update_partition AS ( "id" = $1::text ) SELECT - id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId" + id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId", "dataRetentionPeriod" FROM "Tenant" as tenants WHERE @@ -531,6 +541,7 @@ func (q *Queries) ListTenantsByControllerPartitionId(ctx context.Context, db DBT &i.AlertMemberEmails, &i.ControllerPartitionId, &i.WorkerPartitionId, + &i.DataRetentionPeriod, ); err != nil { return nil, err } @@ -552,7 +563,7 @@ WITH update_partition AS ( "id" = $1::text ) SELECT - id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId" + id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId", "dataRetentionPeriod" FROM "Tenant" as tenants WHERE @@ -579,6 +590,7 @@ func (q *Queries) ListTenantsByTenantWorkerPartitionId(ctx context.Context, db D &i.AlertMemberEmails, &i.ControllerPartitionId, &i.WorkerPartitionId, + &i.DataRetentionPeriod, ); err != nil { return nil, err } @@ -593,31 +605,32 @@ func (q *Queries) ListTenantsByTenantWorkerPartitionId(ctx context.Context, db D const rebalanceAllControllerPartitions = `-- name: RebalanceAllControllerPartitions :exec WITH active_partitions AS ( SELECT - "id" + "id", + ROW_NUMBER() OVER () AS row_number FROM "ControllerPartition" WHERE "lastHeartbeat" > NOW() - INTERVAL '1 minute' +), +tenants_to_update AS ( + SELECT + tenants."id" AS "id", + ROW_NUMBER() OVER () AS row_number + FROM + "Tenant" AS tenants + WHERE + tenants."slug" != 'internal' ) UPDATE - "Tenant" as tenants + "Tenant" AS tenants SET - "controllerPartitionId" = ( - SELECT - "id" - FROM - active_partitions - ORDER BY - random() - LIMIT 1 - ) + "controllerPartitionId" = partitions."id" +FROM + tenants_to_update, + active_partitions AS partitions WHERE - "slug" != 'internal' AND - ( - "controllerPartitionId" IS NULL OR - "controllerPartitionId" NOT IN (SELECT "id" FROM active_partitions) - ) -RETURNING id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId" + tenants."id" = tenants_to_update."id" AND + partitions.row_number = (tenants_to_update.row_number - 1) % (SELECT COUNT(*) FROM active_partitions) + 1 ` func (q *Queries) RebalanceAllControllerPartitions(ctx context.Context, db DBTX) error { @@ -628,31 +641,32 @@ func (q *Queries) RebalanceAllControllerPartitions(ctx context.Context, db DBTX) const rebalanceAllTenantWorkerPartitions = `-- name: RebalanceAllTenantWorkerPartitions :exec WITH active_partitions AS ( SELECT - "id" + "id", + ROW_NUMBER() OVER () AS row_number FROM "TenantWorkerPartition" WHERE "lastHeartbeat" > NOW() - INTERVAL '1 minute' +), +tenants_to_update AS ( + SELECT + tenants."id" AS "id", + ROW_NUMBER() OVER () AS row_number + FROM + "Tenant" AS tenants + WHERE + tenants."slug" != 'internal' ) UPDATE - "Tenant" as tenants + "Tenant" AS tenants SET - "workerPartitionId" = ( - SELECT - "id" - FROM - active_partitions - ORDER BY - random() - LIMIT 1 - ) + "workerPartitionId" = partitions."id" +FROM + tenants_to_update, + active_partitions AS partitions WHERE - "slug" != 'internal' AND - ( - "workerPartitionId" IS NULL OR - "workerPartitionId" NOT IN (SELECT "id" FROM active_partitions) - ) -RETURNING id, "createdAt", "updatedAt", "deletedAt", name, slug, "analyticsOptOut", "alertMemberEmails", "controllerPartitionId", "workerPartitionId" + tenants."id" = tenants_to_update."id" AND + partitions.row_number = (tenants_to_update.row_number - 1) % (SELECT COUNT(*) FROM active_partitions) + 1 ` func (q *Queries) RebalanceAllTenantWorkerPartitions(ctx context.Context, db DBTX) error { @@ -663,7 +677,8 @@ func (q *Queries) RebalanceAllTenantWorkerPartitions(ctx context.Context, db DBT const rebalanceInactiveControllerPartitions = `-- name: RebalanceInactiveControllerPartitions :exec WITH active_partitions AS ( SELECT - "id" + "id", + ROW_NUMBER() OVER () AS row_number FROM "ControllerPartition" WHERE @@ -675,25 +690,27 @@ WITH active_partitions AS ( "ControllerPartition" WHERE "lastHeartbeat" <= NOW() - INTERVAL '1 minute' -), update_tenants AS ( - UPDATE - "Tenant" as tenants - SET - "controllerPartitionId" = ( - SELECT - "id" - FROM - active_partitions - ORDER BY - random() - LIMIT 1 - ) +), tenants_to_update AS ( + SELECT + tenants."id" AS "id", + ROW_NUMBER() OVER () AS row_number + FROM + "Tenant" AS tenants WHERE - "slug" != 'internal' AND + tenants."slug" != 'internal' AND ( "controllerPartitionId" IS NULL OR "controllerPartitionId" IN (SELECT "id" FROM inactive_partitions) ) +), update_tenants AS ( + UPDATE "Tenant" AS tenants + SET "controllerPartitionId" = partitions."id" + FROM + tenants_to_update, + active_partitions AS partitions + WHERE + tenants."id" = tenants_to_update."id" AND + partitions.row_number = (tenants_to_update.row_number - 1) % (SELECT COUNT(*) FROM active_partitions) + 1 ) DELETE FROM "ControllerPartition" WHERE "id" IN (SELECT "id" FROM inactive_partitions) @@ -707,7 +724,8 @@ func (q *Queries) RebalanceInactiveControllerPartitions(ctx context.Context, db const rebalanceInactiveTenantWorkerPartitions = `-- name: RebalanceInactiveTenantWorkerPartitions :exec WITH active_partitions AS ( SELECT - "id" + "id", + ROW_NUMBER() OVER () AS row_number FROM "TenantWorkerPartition" WHERE @@ -719,25 +737,27 @@ WITH active_partitions AS ( "TenantWorkerPartition" WHERE "lastHeartbeat" <= NOW() - INTERVAL '1 minute' -), update_tenants AS ( - UPDATE - "Tenant" as tenants - SET - "workerPartitionId" = ( - SELECT - "id" - FROM - active_partitions - ORDER BY - random() - LIMIT 1 - ) +), tenants_to_update AS ( + SELECT + tenants."id" AS "id", + ROW_NUMBER() OVER () AS row_number + FROM + "Tenant" AS tenants WHERE - "slug" != 'internal' AND + tenants."slug" != 'internal' AND ( "workerPartitionId" IS NULL OR "workerPartitionId" IN (SELECT "id" FROM inactive_partitions) ) +), update_tenants AS ( + UPDATE "Tenant" AS tenants + SET "workerPartitionId" = partitions."id" + FROM + tenants_to_update, + active_partitions AS partitions + WHERE + tenants."id" = tenants_to_update."id" AND + partitions.row_number = (tenants_to_update.row_number - 1) % (SELECT COUNT(*) FROM active_partitions) + 1 ) DELETE FROM "TenantWorkerPartition" WHERE "id" IN (SELECT "id" FROM inactive_partitions) diff --git a/pkg/repository/prisma/dbsqlc/tickers.sql b/pkg/repository/prisma/dbsqlc/tickers.sql index 86a9c5c59..220da17a2 100644 --- a/pkg/repository/prisma/dbsqlc/tickers.sql +++ b/pkg/repository/prisma/dbsqlc/tickers.sql @@ -67,33 +67,6 @@ WHERE "id" = sqlc.arg('id')::uuid RETURNING *; --- name: PollStepRuns :many -WITH stepRunsToTimeout AS ( - SELECT - stepRun."id" - FROM - "StepRun" as stepRun - WHERE - ("status" = 'RUNNING' OR "status" = 'ASSIGNED') - AND "timeoutAt" < NOW() - AND ( - NOT EXISTS ( - SELECT 1 FROM "Ticker" WHERE "id" = stepRun."tickerId" AND "isActive" = true AND "lastHeartbeatAt" >= NOW() - INTERVAL '10 seconds' - ) - OR "tickerId" IS NULL - ) - FOR UPDATE SKIP LOCKED -) -UPDATE - "StepRun" as stepRuns -SET - "tickerId" = @tickerId::uuid -FROM - stepRunsToTimeout -WHERE - stepRuns."id" = stepRunsToTimeout."id" -RETURNING stepRuns.*; - -- name: PollGetGroupKeyRuns :many WITH getGroupKeyRunsToTimeout AS ( SELECT @@ -103,6 +76,7 @@ WITH getGroupKeyRunsToTimeout AS ( WHERE ("status" = 'RUNNING' OR "status" = 'ASSIGNED') AND "timeoutAt" < NOW() + AND "deletedAt" IS NULL AND ( NOT EXISTS ( SELECT 1 FROM "Ticker" WHERE "id" = getGroupKeyRun."tickerId" AND "isActive" = true AND "lastHeartbeatAt" >= NOW() - INTERVAL '10 seconds' @@ -144,12 +118,15 @@ active_cron_schedules AS ( JOIN latest_workflow_versions l ON versions."workflowId" = l."workflowId" AND versions."order" = l.max_order WHERE - "enabled" = TRUE AND - ("tickerId" IS NULL - OR NOT EXISTS ( - SELECT 1 FROM "Ticker" WHERE "id" = cronSchedule."tickerId" AND "isActive" = true AND "lastHeartbeatAt" >= NOW() - INTERVAL '10 seconds' + "enabled" = TRUE + AND versions."deletedAt" IS NULL + AND ( + "tickerId" IS NULL + OR NOT EXISTS ( + SELECT 1 FROM "Ticker" WHERE "id" = cronSchedule."tickerId" AND "isActive" = true AND "lastHeartbeatAt" >= NOW() - INTERVAL '10 seconds' + ) + OR "tickerId" = @tickerId::uuid ) - OR "tickerId" = @tickerId::uuid) FOR UPDATE SKIP LOCKED ) UPDATE @@ -191,6 +168,8 @@ not_run_scheduled_workflows AS ( WHERE "triggerAt" <= NOW() + INTERVAL '5 seconds' AND runTriggeredBy IS NULL + AND versions."deletedAt" IS NULL + AND workflow."deletedAt" IS NULL AND ( "tickerId" IS NULL OR NOT EXISTS ( @@ -238,6 +217,7 @@ failed_run_count_by_tenant AS ( active_tenant_alerts ON active_tenant_alerts."tenantId" = workflowRun."tenantId" WHERE "status" = 'FAILED' + AND workflowRun."deletedAt" IS NULL AND ( ( "lastAlertedAt" IS NULL AND @@ -364,3 +344,18 @@ FROM WHERE na."existingAlert" = false RETURNING *; + +-- name: PollUnresolvedFailedStepRuns :many +SELECT + sr."id", + sr."tenantId" +FROM "StepRun" sr +JOIN "JobRun" jr on jr."id" = sr."jobRunId" +WHERE + ( + (sr."status" = 'FAILED' AND jr."status" != 'FAILED') + OR + (sr."status" = 'CANCELLED' AND jr."status" != 'CANCELLED') + ) + AND sr."updatedAt" < CURRENT_TIMESTAMP - INTERVAL '5 seconds' +; diff --git a/pkg/repository/prisma/dbsqlc/tickers.sql.go b/pkg/repository/prisma/dbsqlc/tickers.sql.go index 150d5360d..d91b4b9d6 100644 --- a/pkg/repository/prisma/dbsqlc/tickers.sql.go +++ b/pkg/repository/prisma/dbsqlc/tickers.sql.go @@ -206,12 +206,15 @@ active_cron_schedules AS ( JOIN latest_workflow_versions l ON versions."workflowId" = l."workflowId" AND versions."order" = l.max_order WHERE - "enabled" = TRUE AND - ("tickerId" IS NULL - OR NOT EXISTS ( - SELECT 1 FROM "Ticker" WHERE "id" = cronSchedule."tickerId" AND "isActive" = true AND "lastHeartbeatAt" >= NOW() - INTERVAL '10 seconds' + "enabled" = TRUE + AND versions."deletedAt" IS NULL + AND ( + "tickerId" IS NULL + OR NOT EXISTS ( + SELECT 1 FROM "Ticker" WHERE "id" = cronSchedule."tickerId" AND "isActive" = true AND "lastHeartbeatAt" >= NOW() - INTERVAL '10 seconds' + ) + OR "tickerId" = $1::uuid ) - OR "tickerId" = $1::uuid) FOR UPDATE SKIP LOCKED ) UPDATE @@ -336,6 +339,7 @@ WITH getGroupKeyRunsToTimeout AS ( WHERE ("status" = 'RUNNING' OR "status" = 'ASSIGNED') AND "timeoutAt" < NOW() + AND "deletedAt" IS NULL AND ( NOT EXISTS ( SELECT 1 FROM "Ticker" WHERE "id" = getGroupKeyRun."tickerId" AND "isActive" = true AND "lastHeartbeatAt" >= NOW() - INTERVAL '10 seconds' @@ -423,6 +427,8 @@ not_run_scheduled_workflows AS ( WHERE "triggerAt" <= NOW() + INTERVAL '5 seconds' AND runTriggeredBy IS NULL + AND versions."deletedAt" IS NULL + AND workflow."deletedAt" IS NULL AND ( "tickerId" IS NULL OR NOT EXISTS ( @@ -497,82 +503,6 @@ func (q *Queries) PollScheduledWorkflows(ctx context.Context, db DBTX, tickerid return items, nil } -const pollStepRuns = `-- name: PollStepRuns :many -WITH stepRunsToTimeout AS ( - SELECT - stepRun."id" - FROM - "StepRun" as stepRun - WHERE - ("status" = 'RUNNING' OR "status" = 'ASSIGNED') - AND "timeoutAt" < NOW() - AND ( - NOT EXISTS ( - SELECT 1 FROM "Ticker" WHERE "id" = stepRun."tickerId" AND "isActive" = true AND "lastHeartbeatAt" >= NOW() - INTERVAL '10 seconds' - ) - OR "tickerId" IS NULL - ) - FOR UPDATE SKIP LOCKED -) -UPDATE - "StepRun" as stepRuns -SET - "tickerId" = $1::uuid -FROM - stepRunsToTimeout -WHERE - stepRuns."id" = stepRunsToTimeout."id" -RETURNING stepruns.id, stepruns."createdAt", stepruns."updatedAt", stepruns."deletedAt", stepruns."tenantId", stepruns."jobRunId", stepruns."stepId", stepruns."order", stepruns."workerId", stepruns."tickerId", stepruns.status, stepruns.input, stepruns.output, stepruns."requeueAfter", stepruns."scheduleTimeoutAt", stepruns.error, stepruns."startedAt", stepruns."finishedAt", stepruns."timeoutAt", stepruns."cancelledAt", stepruns."cancelledReason", stepruns."cancelledError", stepruns."inputSchema", stepruns."callerFiles", stepruns."gitRepoBranch", stepruns."retryCount", stepruns."semaphoreReleased" -` - -func (q *Queries) PollStepRuns(ctx context.Context, db DBTX, tickerid pgtype.UUID) ([]*StepRun, error) { - rows, err := db.Query(ctx, pollStepRuns, tickerid) - if err != nil { - return nil, err - } - defer rows.Close() - var items []*StepRun - for rows.Next() { - var i StepRun - if err := rows.Scan( - &i.ID, - &i.CreatedAt, - &i.UpdatedAt, - &i.DeletedAt, - &i.TenantId, - &i.JobRunId, - &i.StepId, - &i.Order, - &i.WorkerId, - &i.TickerId, - &i.Status, - &i.Input, - &i.Output, - &i.RequeueAfter, - &i.ScheduleTimeoutAt, - &i.Error, - &i.StartedAt, - &i.FinishedAt, - &i.TimeoutAt, - &i.CancelledAt, - &i.CancelledReason, - &i.CancelledError, - &i.InputSchema, - &i.CallerFiles, - &i.GitRepoBranch, - &i.RetryCount, - &i.SemaphoreReleased, - ); err != nil { - return nil, err - } - items = append(items, &i) - } - if err := rows.Err(); err != nil { - return nil, err - } - return items, nil -} - const pollTenantAlerts = `-- name: PollTenantAlerts :many WITH active_tenant_alerts AS ( SELECT @@ -594,6 +524,7 @@ failed_run_count_by_tenant AS ( active_tenant_alerts ON active_tenant_alerts."tenantId" = workflowRun."tenantId" WHERE "status" = 'FAILED' + AND workflowRun."deletedAt" IS NULL AND ( ( "lastAlertedAt" IS NULL AND @@ -770,6 +701,46 @@ func (q *Queries) PollTenantResourceLimitAlerts(ctx context.Context, db DBTX) ([ return items, nil } +const pollUnresolvedFailedStepRuns = `-- name: PollUnresolvedFailedStepRuns :many +SELECT + sr."id", + sr."tenantId" +FROM "StepRun" sr +JOIN "JobRun" jr on jr."id" = sr."jobRunId" +WHERE + ( + (sr."status" = 'FAILED' AND jr."status" != 'FAILED') + OR + (sr."status" = 'CANCELLED' AND jr."status" != 'CANCELLED') + ) + AND sr."updatedAt" < CURRENT_TIMESTAMP - INTERVAL '5 seconds' +` + +type PollUnresolvedFailedStepRunsRow struct { + ID pgtype.UUID `json:"id"` + TenantId pgtype.UUID `json:"tenantId"` +} + +func (q *Queries) PollUnresolvedFailedStepRuns(ctx context.Context, db DBTX) ([]*PollUnresolvedFailedStepRunsRow, error) { + rows, err := db.Query(ctx, pollUnresolvedFailedStepRuns) + if err != nil { + return nil, err + } + defer rows.Close() + var items []*PollUnresolvedFailedStepRunsRow + for rows.Next() { + var i PollUnresolvedFailedStepRunsRow + if err := rows.Scan(&i.ID, &i.TenantId); err != nil { + return nil, err + } + items = append(items, &i) + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} + const setTickersInactive = `-- name: SetTickersInactive :many UPDATE "Ticker" as tickers diff --git a/pkg/repository/prisma/dbsqlc/workers.sql b/pkg/repository/prisma/dbsqlc/workers.sql index e00696af4..5bcf0b71a 100644 --- a/pkg/repository/prisma/dbsqlc/workers.sql +++ b/pkg/repository/prisma/dbsqlc/workers.sql @@ -1,12 +1,9 @@ -- name: ListWorkersWithStepCount :many SELECT sqlc.embed(workers), - COUNT(runs."id") FILTER (WHERE runs."status" = 'RUNNING') AS "runningStepRuns", (SELECT COUNT(*) FROM "WorkerSemaphoreSlot" wss WHERE wss."workerId" = workers."id" AND wss."stepRunId" IS NOT NULL) AS "slots" FROM "Worker" workers -LEFT JOIN - "StepRun" AS runs ON runs."workerId" = workers."id" AND runs."status" = 'RUNNING' WHERE workers."tenantId" = @tenantId AND ( @@ -32,7 +29,6 @@ WHERE )) ) GROUP BY - -- ws."slots", workers."id"; -- name: StubWorkerSemaphoreSlots :exec @@ -83,17 +79,42 @@ SET "dispatcherId" = coalesce(sqlc.narg('dispatcherId')::uuid, "dispatcherId"), "maxRuns" = coalesce(sqlc.narg('maxRuns')::int, "maxRuns"), "lastHeartbeatAt" = coalesce(sqlc.narg('lastHeartbeatAt')::timestamp, "lastHeartbeatAt"), - "isActive" = coalesce(sqlc.narg('isActive')::boolean, "isActive") + "isActive" = coalesce(sqlc.narg('isActive')::boolean, "isActive"), + "isPaused" = coalesce(sqlc.narg('isPaused')::boolean, "isPaused") WHERE "id" = @id::uuid RETURNING *; --- name: ResolveWorkerSemaphoreSlots :execrows -UPDATE "WorkerSemaphoreSlot" wss -SET "stepRunId" = null -FROM "StepRun" sr -WHERE wss."stepRunId" = sr."id" - AND sr."status" NOT IN ('RUNNING', 'ASSIGNED'); +-- name: ResolveWorkerSemaphoreSlots :one +WITH to_count AS ( + SELECT wss."id" + FROM "WorkerSemaphoreSlot" wss + JOIN "StepRun" sr ON wss."stepRunId" = sr."id" + AND sr."status" NOT IN ('RUNNING', 'ASSIGNED') + AND sr."tenantId" = @tenantId::uuid + ORDER BY RANDOM() + LIMIT 11 + FOR UPDATE SKIP LOCKED +), +to_resolve AS ( + SELECT * FROM to_count LIMIT 10 +), +update_result AS ( + UPDATE "WorkerSemaphoreSlot" wss + SET "stepRunId" = null + WHERE wss."id" IN (SELECT "id" FROM to_resolve) + RETURNING wss."id" +) +SELECT + CASE + WHEN COUNT(*) > 0 THEN TRUE + ELSE FALSE + END AS "hasResolved", + CASE + WHEN COUNT(*) > 10 THEN TRUE + ELSE FALSE + END AS "hasMore" +FROM to_count; -- name: LinkActionsToWorker :exec INSERT INTO "_ActionToWorker" ( @@ -164,3 +185,36 @@ WHERE OR "lastListenerEstablished" <= sqlc.narg('lastListenerEstablished')::timestamp ) RETURNING *; + +-- name: ListWorkerLabels :many +SELECT + "id", + "key", + "intValue", + "strValue", + "createdAt", + "updatedAt" +FROM "WorkerLabel" wl +WHERE wl."workerId" = @workerId::uuid; + +-- name: UpsertWorkerLabel :one +INSERT INTO "WorkerLabel" ( + "createdAt", + "updatedAt", + "workerId", + "key", + "intValue", + "strValue" +) VALUES ( + CURRENT_TIMESTAMP, + CURRENT_TIMESTAMP, + @workerId::uuid, + @key::text, + sqlc.narg('intValue')::int, + sqlc.narg('strValue')::text +) ON CONFLICT ("workerId", "key") DO UPDATE +SET + "updatedAt" = CURRENT_TIMESTAMP, + "intValue" = sqlc.narg('intValue')::int, + "strValue" = sqlc.narg('strValue')::text +RETURNING *; diff --git a/pkg/repository/prisma/dbsqlc/workers.sql.go b/pkg/repository/prisma/dbsqlc/workers.sql.go index 04e1eb617..eec3b3496 100644 --- a/pkg/repository/prisma/dbsqlc/workers.sql.go +++ b/pkg/repository/prisma/dbsqlc/workers.sql.go @@ -28,7 +28,7 @@ INSERT INTO "Worker" ( $2::text, $3::uuid, $4::int -) RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished" +) RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished", "isPaused" ` type CreateWorkerParams struct { @@ -58,6 +58,7 @@ func (q *Queries) CreateWorker(ctx context.Context, db DBTX, arg CreateWorkerPar &i.MaxRuns, &i.IsActive, &i.LastListenerEstablished, + &i.IsPaused, ) return &i, err } @@ -67,7 +68,7 @@ DELETE FROM "Worker" WHERE "id" = $1::uuid -RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished" +RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished", "isPaused" ` func (q *Queries) DeleteWorker(ctx context.Context, db DBTX, id pgtype.UUID) (*Worker, error) { @@ -85,6 +86,7 @@ func (q *Queries) DeleteWorker(ctx context.Context, db DBTX, id pgtype.UUID) (*W &i.MaxRuns, &i.IsActive, &i.LastListenerEstablished, + &i.IsPaused, ) return &i, err } @@ -176,15 +178,60 @@ func (q *Queries) LinkServicesToWorker(ctx context.Context, db DBTX, arg LinkSer return err } +const listWorkerLabels = `-- name: ListWorkerLabels :many +SELECT + "id", + "key", + "intValue", + "strValue", + "createdAt", + "updatedAt" +FROM "WorkerLabel" wl +WHERE wl."workerId" = $1::uuid +` + +type ListWorkerLabelsRow struct { + ID int64 `json:"id"` + Key string `json:"key"` + IntValue pgtype.Int4 `json:"intValue"` + StrValue pgtype.Text `json:"strValue"` + CreatedAt pgtype.Timestamp `json:"createdAt"` + UpdatedAt pgtype.Timestamp `json:"updatedAt"` +} + +func (q *Queries) ListWorkerLabels(ctx context.Context, db DBTX, workerid pgtype.UUID) ([]*ListWorkerLabelsRow, error) { + rows, err := db.Query(ctx, listWorkerLabels, workerid) + if err != nil { + return nil, err + } + defer rows.Close() + var items []*ListWorkerLabelsRow + for rows.Next() { + var i ListWorkerLabelsRow + if err := rows.Scan( + &i.ID, + &i.Key, + &i.IntValue, + &i.StrValue, + &i.CreatedAt, + &i.UpdatedAt, + ); err != nil { + return nil, err + } + items = append(items, &i) + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} + const listWorkersWithStepCount = `-- name: ListWorkersWithStepCount :many SELECT - workers.id, workers."createdAt", workers."updatedAt", workers."deletedAt", workers."tenantId", workers."lastHeartbeatAt", workers.name, workers."dispatcherId", workers."maxRuns", workers."isActive", workers."lastListenerEstablished", - COUNT(runs."id") FILTER (WHERE runs."status" = 'RUNNING') AS "runningStepRuns", + workers.id, workers."createdAt", workers."updatedAt", workers."deletedAt", workers."tenantId", workers."lastHeartbeatAt", workers.name, workers."dispatcherId", workers."maxRuns", workers."isActive", workers."lastListenerEstablished", workers."isPaused", (SELECT COUNT(*) FROM "WorkerSemaphoreSlot" wss WHERE wss."workerId" = workers."id" AND wss."stepRunId" IS NOT NULL) AS "slots" FROM "Worker" workers -LEFT JOIN - "StepRun" AS runs ON runs."workerId" = workers."id" AND runs."status" = 'RUNNING' WHERE workers."tenantId" = $1 AND ( @@ -210,7 +257,6 @@ WHERE )) ) GROUP BY - -- ws."slots", workers."id" ` @@ -222,9 +268,8 @@ type ListWorkersWithStepCountParams struct { } type ListWorkersWithStepCountRow struct { - Worker Worker `json:"worker"` - RunningStepRuns int64 `json:"runningStepRuns"` - Slots int64 `json:"slots"` + Worker Worker `json:"worker"` + Slots int64 `json:"slots"` } func (q *Queries) ListWorkersWithStepCount(ctx context.Context, db DBTX, arg ListWorkersWithStepCountParams) ([]*ListWorkersWithStepCountRow, error) { @@ -253,7 +298,7 @@ func (q *Queries) ListWorkersWithStepCount(ctx context.Context, db DBTX, arg Lis &i.Worker.MaxRuns, &i.Worker.IsActive, &i.Worker.LastListenerEstablished, - &i.RunningStepRuns, + &i.Worker.IsPaused, &i.Slots, ); err != nil { return nil, err @@ -266,20 +311,48 @@ func (q *Queries) ListWorkersWithStepCount(ctx context.Context, db DBTX, arg Lis return items, nil } -const resolveWorkerSemaphoreSlots = `-- name: ResolveWorkerSemaphoreSlots :execrows -UPDATE "WorkerSemaphoreSlot" wss -SET "stepRunId" = null -FROM "StepRun" sr -WHERE wss."stepRunId" = sr."id" - AND sr."status" NOT IN ('RUNNING', 'ASSIGNED') +const resolveWorkerSemaphoreSlots = `-- name: ResolveWorkerSemaphoreSlots :one +WITH to_count AS ( + SELECT wss."id" + FROM "WorkerSemaphoreSlot" wss + JOIN "StepRun" sr ON wss."stepRunId" = sr."id" + AND sr."status" NOT IN ('RUNNING', 'ASSIGNED') + AND sr."tenantId" = $1::uuid + ORDER BY RANDOM() + LIMIT 11 + FOR UPDATE SKIP LOCKED +), +to_resolve AS ( + SELECT id FROM to_count LIMIT 10 +), +update_result AS ( + UPDATE "WorkerSemaphoreSlot" wss + SET "stepRunId" = null + WHERE wss."id" IN (SELECT "id" FROM to_resolve) + RETURNING wss."id" +) +SELECT + CASE + WHEN COUNT(*) > 0 THEN TRUE + ELSE FALSE + END AS "hasResolved", + CASE + WHEN COUNT(*) > 10 THEN TRUE + ELSE FALSE + END AS "hasMore" +FROM to_count ` -func (q *Queries) ResolveWorkerSemaphoreSlots(ctx context.Context, db DBTX) (int64, error) { - result, err := db.Exec(ctx, resolveWorkerSemaphoreSlots) - if err != nil { - return 0, err - } - return result.RowsAffected(), nil +type ResolveWorkerSemaphoreSlotsRow struct { + HasResolved bool `json:"hasResolved"` + HasMore bool `json:"hasMore"` +} + +func (q *Queries) ResolveWorkerSemaphoreSlots(ctx context.Context, db DBTX, tenantid pgtype.UUID) (*ResolveWorkerSemaphoreSlotsRow, error) { + row := db.QueryRow(ctx, resolveWorkerSemaphoreSlots, tenantid) + var i ResolveWorkerSemaphoreSlotsRow + err := row.Scan(&i.HasResolved, &i.HasMore) + return &i, err } const stubWorkerSemaphoreSlots = `-- name: StubWorkerSemaphoreSlots :exec @@ -306,10 +379,11 @@ SET "dispatcherId" = coalesce($1::uuid, "dispatcherId"), "maxRuns" = coalesce($2::int, "maxRuns"), "lastHeartbeatAt" = coalesce($3::timestamp, "lastHeartbeatAt"), - "isActive" = coalesce($4::boolean, "isActive") + "isActive" = coalesce($4::boolean, "isActive"), + "isPaused" = coalesce($5::boolean, "isPaused") WHERE - "id" = $5::uuid -RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished" + "id" = $6::uuid +RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished", "isPaused" ` type UpdateWorkerParams struct { @@ -317,6 +391,7 @@ type UpdateWorkerParams struct { MaxRuns pgtype.Int4 `json:"maxRuns"` LastHeartbeatAt pgtype.Timestamp `json:"lastHeartbeatAt"` IsActive pgtype.Bool `json:"isActive"` + IsPaused pgtype.Bool `json:"isPaused"` ID pgtype.UUID `json:"id"` } @@ -326,6 +401,7 @@ func (q *Queries) UpdateWorker(ctx context.Context, db DBTX, arg UpdateWorkerPar arg.MaxRuns, arg.LastHeartbeatAt, arg.IsActive, + arg.IsPaused, arg.ID, ) var i Worker @@ -341,6 +417,7 @@ func (q *Queries) UpdateWorker(ctx context.Context, db DBTX, arg UpdateWorkerPar &i.MaxRuns, &i.IsActive, &i.LastListenerEstablished, + &i.IsPaused, ) return &i, err } @@ -356,7 +433,7 @@ WHERE "lastListenerEstablished" IS NULL OR "lastListenerEstablished" <= $2::timestamp ) -RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished" +RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished", "isPaused" ` type UpdateWorkerActiveStatusParams struct { @@ -380,6 +457,7 @@ func (q *Queries) UpdateWorkerActiveStatus(ctx context.Context, db DBTX, arg Upd &i.MaxRuns, &i.IsActive, &i.LastListenerEstablished, + &i.IsPaused, ) return &i, err } @@ -390,7 +468,7 @@ SET "isActive" = $1::boolean WHERE "tenantId" = $2::uuid AND "name" = $3::text -RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished" +RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "lastHeartbeatAt", name, "dispatcherId", "maxRuns", "isActive", "lastListenerEstablished", "isPaused" ` type UpdateWorkersByNameParams struct { @@ -420,6 +498,7 @@ func (q *Queries) UpdateWorkersByName(ctx context.Context, db DBTX, arg UpdateWo &i.MaxRuns, &i.IsActive, &i.LastListenerEstablished, + &i.IsPaused, ); err != nil { return nil, err } @@ -473,3 +552,53 @@ func (q *Queries) UpsertService(ctx context.Context, db DBTX, arg UpsertServiceP ) return &i, err } + +const upsertWorkerLabel = `-- name: UpsertWorkerLabel :one +INSERT INTO "WorkerLabel" ( + "createdAt", + "updatedAt", + "workerId", + "key", + "intValue", + "strValue" +) VALUES ( + CURRENT_TIMESTAMP, + CURRENT_TIMESTAMP, + $1::uuid, + $2::text, + $3::int, + $4::text +) ON CONFLICT ("workerId", "key") DO UPDATE +SET + "updatedAt" = CURRENT_TIMESTAMP, + "intValue" = $3::int, + "strValue" = $4::text +RETURNING id, "createdAt", "updatedAt", "workerId", key, "strValue", "intValue" +` + +type UpsertWorkerLabelParams struct { + Workerid pgtype.UUID `json:"workerid"` + Key string `json:"key"` + IntValue pgtype.Int4 `json:"intValue"` + StrValue pgtype.Text `json:"strValue"` +} + +func (q *Queries) UpsertWorkerLabel(ctx context.Context, db DBTX, arg UpsertWorkerLabelParams) (*WorkerLabel, error) { + row := db.QueryRow(ctx, upsertWorkerLabel, + arg.Workerid, + arg.Key, + arg.IntValue, + arg.StrValue, + ) + var i WorkerLabel + err := row.Scan( + &i.ID, + &i.CreatedAt, + &i.UpdatedAt, + &i.WorkerId, + &i.Key, + &i.StrValue, + &i.IntValue, + ) + return &i, err +} diff --git a/pkg/repository/prisma/dbsqlc/workflow_runs.sql b/pkg/repository/prisma/dbsqlc/workflow_runs.sql index 4744914a0..0b43e7dfe 100644 --- a/pkg/repository/prisma/dbsqlc/workflow_runs.sql +++ b/pkg/repository/prisma/dbsqlc/workflow_runs.sql @@ -1,7 +1,7 @@ -- name: CountWorkflowRuns :one -SELECT - count(runs) OVER() AS total -FROM +WITH runs AS ( + SELECT runs."id", runs."createdAt" + FROM "WorkflowRun" as runs LEFT JOIN "WorkflowRunTriggeredBy" as runTriggers ON runTriggers."parentId" = runs."id" @@ -13,6 +13,9 @@ LEFT JOIN "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" WHERE runs."tenantId" = $1 AND + runs."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND ( sqlc.narg('workflowVersionId')::uuid IS NULL OR workflowVersion."id" = sqlc.narg('workflowVersionId')::uuid @@ -49,6 +52,10 @@ WHERE sqlc.narg('statuses')::text[] IS NULL OR "status" = ANY(cast(sqlc.narg('statuses')::text[] as "WorkflowRunStatus"[])) ) AND + ( + sqlc.narg('kinds')::text[] IS NULL OR + workflowVersion."kind" = ANY(cast(sqlc.narg('kinds')::text[] as "WorkflowKind"[])) + ) AND ( sqlc.narg('createdAfter')::timestamp IS NULL OR runs."createdAt" > sqlc.narg('createdAfter')::timestamp @@ -56,7 +63,17 @@ WHERE ( sqlc.narg('finishedAfter')::timestamp IS NULL OR runs."finishedAt" > sqlc.narg('finishedAfter')::timestamp - ); + ) + ORDER BY + case when @orderBy = 'createdAt ASC' THEN runs."createdAt" END ASC , + case when @orderBy = 'createdAt DESC' then runs."createdAt" END DESC, + runs."id" ASC + LIMIT 10000 +) +SELECT + count(runs) AS total +FROM + runs; -- name: WorkflowRunsMetricsCount :one SELECT @@ -77,6 +94,9 @@ LEFT JOIN "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" WHERE runs."tenantId" = @tenantId::uuid AND + runs."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND ( sqlc.narg('workflowId')::uuid IS NULL OR workflow."id" = sqlc.narg('workflowId')::uuid @@ -118,6 +138,9 @@ LEFT JOIN "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" WHERE runs."tenantId" = $1 AND + runs."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND ( sqlc.narg('workflowVersionId')::uuid IS NULL OR workflowVersion."id" = sqlc.narg('workflowVersionId')::uuid @@ -154,6 +177,10 @@ WHERE sqlc.narg('statuses')::text[] IS NULL OR "status" = ANY(cast(sqlc.narg('statuses')::text[] as "WorkflowRunStatus"[])) ) AND + ( + sqlc.narg('kinds')::text[] IS NULL OR + workflowVersion."kind" = ANY(cast(sqlc.narg('kinds')::text[] as "WorkflowKind"[])) + ) AND ( sqlc.narg('createdAfter')::timestamp IS NULL OR runs."createdAt" > sqlc.narg('createdAfter')::timestamp @@ -164,7 +191,13 @@ WHERE ) ORDER BY case when @orderBy = 'createdAt ASC' THEN runs."createdAt" END ASC , - case when @orderBy = 'createdAt DESC' then runs."createdAt" END DESC, + case when @orderBy = 'createdAt DESC' THEN runs."createdAt" END DESC, + case when @orderBy = 'finishedAt ASC' THEN runs."finishedAt" END ASC , + case when @orderBy = 'finishedAt DESC' THEN runs."finishedAt" END DESC, + case when @orderBy = 'startedAt ASC' THEN runs."startedAt" END ASC , + case when @orderBy = 'startedAt DESC' THEN runs."startedAt" END DESC, + case when @orderBy = 'duration ASC' THEN runs."duration" END ASC NULLS FIRST, + case when @orderBy = 'duration DESC' THEN runs."duration" END DESC NULLS LAST, runs."id" ASC OFFSET COALESCE(sqlc.narg('offset'), 0) @@ -184,6 +217,8 @@ WITH workflow_runs AS ( "WorkflowVersion" workflowVersion ON r2."workflowVersionId" = workflowVersion."id" WHERE r2."tenantId" = @tenantId::uuid AND + r2."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND (r2."status" = 'QUEUED' OR r2."status" = 'RUNNING') AND workflowVersion."workflowId" = @workflowId::uuid ORDER BY @@ -238,7 +273,8 @@ WITH groupKeyRun AS ( FROM "GetGroupKeyRun" as groupKeyRun WHERE "id" = @groupKeyRunId::uuid AND - "tenantId" = @tenantId::uuid + "tenantId" = @tenantId::uuid AND + "deletedAt" IS NULL ) UPDATE "WorkflowRun" workflowRun SET "status" = CASE @@ -248,13 +284,21 @@ SET "status" = CASE WHEN groupKeyRun.groupKeyRunStatus IN ('FAILED', 'CANCELLED') THEN 'FAILED' WHEN groupKeyRun.output IS NOT NULL THEN 'QUEUED' ELSE "status" -END, "finishedAt" = CASE +END, +"finishedAt" = CASE -- Final states are final, cannot be updated WHEN "finishedAt" IS NOT NULL THEN "finishedAt" -- When one job run has failed or been cancelled, then the workflow is failed WHEN groupKeyRun.groupKeyRunStatus IN ('FAILED', 'CANCELLED') THEN NOW() ELSE "finishedAt" END, +"duration" = CASE + -- duration is final, cannot be changed + WHEN "duration" IS NOT NULL THEN "duration" + WHEN "startedAt" IS NOT NULL AND groupKeyRun.groupKeyRunStatus IN ('FAILED', 'CANCELLED') THEN + EXTRACT(EPOCH FROM (NOW() - "startedAt")) * 1000 + ELSE "duration" +END, "concurrencyGroupId" = groupKeyRun."output" FROM groupKeyRun @@ -278,6 +322,7 @@ WITH jobRuns AS ( FROM "JobRun" WHERE "id" = @jobRunId::uuid ) AND + runs."deletedAt" IS NULL AND runs."tenantId" = @tenantId::uuid AND -- we should not include onFailure jobs in the calculation job."kind" = 'DEFAULT' @@ -293,7 +338,8 @@ SET "status" = CASE -- When all job runs have succeeded, then the workflow is succeeded WHEN j.succeededRuns > 0 AND j.pendingRuns = 0 AND j.runningRuns = 0 AND j.failedRuns = 0 AND j.cancelledRuns = 0 THEN 'SUCCEEDED' ELSE "status" -END, "finishedAt" = CASE +END, +"finishedAt" = CASE -- Final states are final, cannot be updated WHEN "finishedAt" IS NOT NULL THEN "finishedAt" -- We check for running first, because if a job run is running, then the workflow is not finished @@ -301,12 +347,23 @@ END, "finishedAt" = CASE -- When one job run has failed or been cancelled, then the workflow is failed WHEN j.failedRuns > 0 OR j.cancelledRuns > 0 OR j.succeededRuns > 0 THEN NOW() ELSE "finishedAt" -END, "startedAt" = CASE +END, +"startedAt" = CASE -- Started at is final, cannot be changed WHEN "startedAt" IS NOT NULL THEN "startedAt" -- If a job is running or in a final state, then the workflow has started WHEN j.runningRuns > 0 OR j.succeededRuns > 0 OR j.failedRuns > 0 OR j.cancelledRuns > 0 THEN NOW() ELSE "startedAt" +END, +"duration" = CASE + -- duration is final, cannot be changed + WHEN "duration" IS NOT NULL THEN "duration" + -- We check for running first, because if a job run is running, then the workflow is not finished + WHEN j.runningRuns > 0 THEN NULL + -- When one job run has failed or been cancelled, then the workflow is failed + WHEN j.failedRuns > 0 OR j.cancelledRuns > 0 OR j.succeededRuns > 0 THEN + EXTRACT(EPOCH FROM (NOW() - "startedAt")) * 1000 + ELSE "duration" END FROM jobRuns j @@ -328,7 +385,10 @@ SET END, "error" = COALESCE(sqlc.narg('error')::text, "error"), "startedAt" = COALESCE(sqlc.narg('startedAt')::timestamp, "startedAt"), - "finishedAt" = COALESCE(sqlc.narg('finishedAt')::timestamp, "finishedAt") + "finishedAt" = COALESCE(sqlc.narg('finishedAt')::timestamp, "finishedAt"), + "duration" = + EXTRACT(EPOCH FROM (COALESCE(sqlc.narg('finishedAt')::timestamp, "finishedAt") - COALESCE(sqlc.narg('startedAt')::timestamp, "startedAt")) * 1000) + WHERE "id" = @id::uuid AND "tenantId" = @tenantId::uuid @@ -341,7 +401,8 @@ SET "status" = COALESCE(sqlc.narg('status')::"WorkflowRunStatus", "status"), "error" = COALESCE(sqlc.narg('error')::text, "error"), "startedAt" = COALESCE(sqlc.narg('startedAt')::timestamp, "startedAt"), - "finishedAt" = COALESCE(sqlc.narg('finishedAt')::timestamp, "finishedAt") + "finishedAt" = COALESCE(sqlc.narg('finishedAt')::timestamp, "finishedAt"), + "duration" = COALESCE(sqlc.narg('finishedAt')::timestamp, "finishedAt") - COALESCE(sqlc.narg('startedAt')::timestamp, "startedAt") WHERE "tenantId" = @tenantId::uuid AND "id" = ANY(@ids::uuid[]) @@ -384,6 +445,82 @@ INSERT INTO "WorkflowRun" ( @additionalMetadata::jsonb ) RETURNING *; +-- name: CreateWorkflowRunDedupe :one +WITH workflow_id AS ( + SELECT w."id" FROM "Workflow" w + JOIN "WorkflowVersion" wv ON wv."workflowId" = w."id" + WHERE wv."id" = @workflowVersionId::uuid +) +INSERT INTO "WorkflowRunDedupe" ( + "createdAt", + "updatedAt", + "tenantId", + "workflowId", + "workflowRunId", + "value" +) VALUES ( + CURRENT_TIMESTAMP, + CURRENT_TIMESTAMP, + @tenantId::uuid, + (SELECT "id" FROM workflow_id), + @workflowRunId::uuid, + sqlc.narg('value')::text +) RETURNING *; + +-- name: CreateWorkflowRunStickyState :one +WITH workflow_version AS ( + SELECT "sticky" + FROM "WorkflowVersion" + WHERE "id" = @workflowVersionId::uuid +) +INSERT INTO "WorkflowRunStickyState" ( + "createdAt", + "updatedAt", + "tenantId", + "workflowRunId", + "desiredWorkerId", + "strategy" +) +SELECT + CURRENT_TIMESTAMP, + CURRENT_TIMESTAMP, + @tenantId::uuid, + @workflowRunId::uuid, + sqlc.narg('desiredWorkerId')::uuid, + workflow_version."sticky" +FROM workflow_version +WHERE workflow_version."sticky" IS NOT NULL +RETURNING *; + +-- name: GetWorkflowRunAdditionalMeta :one +SELECT + "additionalMetadata", + "id" +FROM + "WorkflowRun" +WHERE + "id" = @workflowRunId::uuid AND + "tenantId" = @tenantId::uuid; + +-- name: GetWorkflowRunStickyStateForUpdate :one +SELECT + * +FROM + "WorkflowRunStickyState" +WHERE + "workflowRunId" = @workflowRunId::uuid AND + "tenantId" = @tenantId::uuid +FOR UPDATE; + +-- name: UpdateWorkflowRunStickyState :exec +UPDATE "WorkflowRunStickyState" +SET + "updatedAt" = CURRENT_TIMESTAMP, + "desiredWorkerId" = sqlc.narg('desiredWorkerId')::uuid +WHERE + "workflowRunId" = @workflowRunId::uuid AND + "tenantId" = @tenantId::uuid; + -- name: CreateWorkflowRunTriggeredBy :one INSERT INTO "WorkflowRunTriggeredBy" ( "id", @@ -568,6 +705,9 @@ LEFT JOIN LEFT JOIN "GetGroupKeyRun" as groupKeyRun ON groupKeyRun."workflowRunId" = runs."id" WHERE + runs."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND runs."id" = ANY(@ids::uuid[]) AND runs."tenantId" = @tenantId::uuid; @@ -579,6 +719,7 @@ FROM "WorkflowRun" WHERE "parentId" = @parentId::uuid AND + "deletedAt" IS NULL AND "parentStepRunId" = @parentStepRunId::uuid AND ( -- if childKey is set, use that @@ -599,3 +740,122 @@ WHERE (sqlc.narg('childKey')::text IS NULL AND "childIndex" = @childIndex) OR (sqlc.narg('childKey')::text IS NOT NULL AND "childKey" = sqlc.narg('childKey')::text) ); + +-- name: SoftDeleteExpiredWorkflowRunsWithDependencies :one +WITH for_delete AS ( + SELECT + "id" + FROM "WorkflowRun" wr2 + WHERE + wr2."tenantId" = @tenantId::uuid AND + wr2."status" = ANY(cast(sqlc.narg('statuses')::text[] as "WorkflowRunStatus"[])) AND + wr2."createdAt" < @createdBefore::timestamp AND + "deletedAt" IS NULL + ORDER BY "createdAt" ASC + LIMIT sqlc.arg('limit') +1 + FOR UPDATE SKIP LOCKED +), +expired_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT sqlc.arg('limit') +), +has_more AS ( + SELECT + CASE + WHEN COUNT(*) > sqlc.arg('limit') THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +), +job_runs_to_delete AS ( + SELECT + "id" + FROM + "JobRun" + WHERE + "workflowRunId" IN (SELECT "id" FROM expired_with_limit) + AND "deletedAt" IS NULL +), step_runs_to_delete AS ( + SELECT + "id" + FROM + "StepRun" + WHERE + "jobRunId" IN (SELECT "id" FROM job_runs_to_delete) + AND "deletedAt" IS NULL +), update_step_runs AS ( + UPDATE + "StepRun" + SET + "deletedAt" = CURRENT_TIMESTAMP + WHERE + "id" IN (SELECT "id" FROM step_runs_to_delete) +), update_job_runs AS ( + UPDATE + "JobRun" jr + SET + "deletedAt" = CURRENT_TIMESTAMP + WHERE + jr."id" IN (SELECT "id" FROM job_runs_to_delete) +) +UPDATE + "WorkflowRun" wr +SET + "deletedAt" = CURRENT_TIMESTAMP +WHERE + "id" IN (SELECT "id" FROM expired_with_limit) AND + wr."tenantId" = @tenantId::uuid +RETURNING + (SELECT has_more FROM has_more) as has_more; + + +-- name: ListActiveQueuedWorkflowVersions :many +WITH QueuedRuns AS ( + SELECT DISTINCT ON (wr."workflowVersionId") + wr."workflowVersionId", + w."tenantId", + wr."status", + wr."id", + wr."concurrencyGroupId" + FROM "WorkflowRun" wr + JOIN "WorkflowVersion" wv ON wv."id" = wr."workflowVersionId" + JOIN "Workflow" w ON w."id" = wv."workflowId" + WHERE wr."status" = 'QUEUED' + AND wr."concurrencyGroupId" IS NOT NULL + ORDER BY wr."workflowVersionId" +) +SELECT + q."workflowVersionId", + q."tenantId", + q."status", + q."id", + q."concurrencyGroupId" +FROM QueuedRuns q +GROUP BY q."workflowVersionId", q."tenantId", q."concurrencyGroupId", q."status", q."id"; + +-- name: ReplayWorkflowRunResetJobRun :one +UPDATE + "JobRun" +SET + -- We set this to pending so that the entire workflow starts fresh, and we + -- don't accidentally trigger on failure jobs + "status" = 'PENDING', + "updatedAt" = CURRENT_TIMESTAMP, + "startedAt" = NULL, + "finishedAt" = NULL, + "timeoutAt" = NULL, + "cancelledAt" = NULL, + "cancelledReason" = NULL, + "cancelledError" = NULL +WHERE + "id" = @jobRunId::uuid +RETURNING *; + +-- name: GetWorkflowRunInput :one +SELECT jld."data" AS lookupData +FROM "JobRun" jr +JOIN "JobRunLookupData" jld ON jr."id" = jld."jobRunId" +WHERE jld."data" ? 'input' AND jr."workflowRunId" = @workflowRunId::uuid +LIMIT 1; diff --git a/pkg/repository/prisma/dbsqlc/workflow_runs.sql.go b/pkg/repository/prisma/dbsqlc/workflow_runs.sql.go index 603633854..8822f4743 100644 --- a/pkg/repository/prisma/dbsqlc/workflow_runs.sql.go +++ b/pkg/repository/prisma/dbsqlc/workflow_runs.sql.go @@ -12,9 +12,9 @@ import ( ) const countWorkflowRuns = `-- name: CountWorkflowRuns :one -SELECT - count(runs) OVER() AS total -FROM +WITH runs AS ( + SELECT runs."id", runs."createdAt" + FROM "WorkflowRun" as runs LEFT JOIN "WorkflowRunTriggeredBy" as runTriggers ON runTriggers."parentId" = runs."id" @@ -26,6 +26,9 @@ LEFT JOIN "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" WHERE runs."tenantId" = $1 AND + runs."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND ( $2::uuid IS NULL OR workflowVersion."id" = $2::uuid @@ -63,13 +66,27 @@ WHERE "status" = ANY(cast($10::text[] as "WorkflowRunStatus"[])) ) AND ( - $11::timestamp IS NULL OR - runs."createdAt" > $11::timestamp + $11::text[] IS NULL OR + workflowVersion."kind" = ANY(cast($11::text[] as "WorkflowKind"[])) ) AND ( $12::timestamp IS NULL OR - runs."finishedAt" > $12::timestamp + runs."createdAt" > $12::timestamp + ) AND + ( + $13::timestamp IS NULL OR + runs."finishedAt" > $13::timestamp ) + ORDER BY + case when $14 = 'createdAt ASC' THEN runs."createdAt" END ASC , + case when $14 = 'createdAt DESC' then runs."createdAt" END DESC, + runs."id" ASC + LIMIT 10000 +) +SELECT + count(runs) AS total +FROM + runs ` type CountWorkflowRunsParams struct { @@ -83,8 +100,10 @@ type CountWorkflowRunsParams struct { EventId pgtype.UUID `json:"eventId"` GroupKey pgtype.Text `json:"groupKey"` Statuses []string `json:"statuses"` + Kinds []string `json:"kinds"` CreatedAfter pgtype.Timestamp `json:"createdAfter"` FinishedAfter pgtype.Timestamp `json:"finishedAfter"` + Orderby interface{} `json:"orderby"` } func (q *Queries) CountWorkflowRuns(ctx context.Context, db DBTX, arg CountWorkflowRunsParams) (int64, error) { @@ -99,8 +118,10 @@ func (q *Queries) CountWorkflowRuns(ctx context.Context, db DBTX, arg CountWorkf arg.EventId, arg.GroupKey, arg.Statuses, + arg.Kinds, arg.CreatedAfter, arg.FinishedAfter, + arg.Orderby, ) var total int64 err := row.Scan(&total) @@ -379,7 +400,7 @@ INSERT INTO "WorkflowRun" ( $7::uuid, $8::uuid, $9::jsonb -) RETURNING "createdAt", "updatedAt", "deletedAt", "tenantId", "workflowVersionId", status, error, "startedAt", "finishedAt", "concurrencyGroupId", "displayName", id, "childIndex", "childKey", "parentId", "parentStepRunId", "additionalMetadata" +) RETURNING "createdAt", "updatedAt", "deletedAt", "tenantId", "workflowVersionId", status, error, "startedAt", "finishedAt", "concurrencyGroupId", "displayName", id, "childIndex", "childKey", "parentId", "parentStepRunId", "additionalMetadata", duration ` type CreateWorkflowRunParams struct { @@ -425,6 +446,110 @@ func (q *Queries) CreateWorkflowRun(ctx context.Context, db DBTX, arg CreateWork &i.ParentId, &i.ParentStepRunId, &i.AdditionalMetadata, + &i.Duration, + ) + return &i, err +} + +const createWorkflowRunDedupe = `-- name: CreateWorkflowRunDedupe :one +WITH workflow_id AS ( + SELECT w."id" FROM "Workflow" w + JOIN "WorkflowVersion" wv ON wv."workflowId" = w."id" + WHERE wv."id" = $4::uuid +) +INSERT INTO "WorkflowRunDedupe" ( + "createdAt", + "updatedAt", + "tenantId", + "workflowId", + "workflowRunId", + "value" +) VALUES ( + CURRENT_TIMESTAMP, + CURRENT_TIMESTAMP, + $1::uuid, + (SELECT "id" FROM workflow_id), + $2::uuid, + $3::text +) RETURNING id, "createdAt", "updatedAt", "tenantId", "workflowId", "workflowRunId", value +` + +type CreateWorkflowRunDedupeParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Workflowrunid pgtype.UUID `json:"workflowrunid"` + Value pgtype.Text `json:"value"` + Workflowversionid pgtype.UUID `json:"workflowversionid"` +} + +func (q *Queries) CreateWorkflowRunDedupe(ctx context.Context, db DBTX, arg CreateWorkflowRunDedupeParams) (*WorkflowRunDedupe, error) { + row := db.QueryRow(ctx, createWorkflowRunDedupe, + arg.Tenantid, + arg.Workflowrunid, + arg.Value, + arg.Workflowversionid, + ) + var i WorkflowRunDedupe + err := row.Scan( + &i.ID, + &i.CreatedAt, + &i.UpdatedAt, + &i.TenantId, + &i.WorkflowId, + &i.WorkflowRunId, + &i.Value, + ) + return &i, err +} + +const createWorkflowRunStickyState = `-- name: CreateWorkflowRunStickyState :one +WITH workflow_version AS ( + SELECT "sticky" + FROM "WorkflowVersion" + WHERE "id" = $4::uuid +) +INSERT INTO "WorkflowRunStickyState" ( + "createdAt", + "updatedAt", + "tenantId", + "workflowRunId", + "desiredWorkerId", + "strategy" +) +SELECT + CURRENT_TIMESTAMP, + CURRENT_TIMESTAMP, + $1::uuid, + $2::uuid, + $3::uuid, + workflow_version."sticky" +FROM workflow_version +WHERE workflow_version."sticky" IS NOT NULL +RETURNING id, "createdAt", "updatedAt", "tenantId", "workflowRunId", "desiredWorkerId", strategy +` + +type CreateWorkflowRunStickyStateParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Workflowrunid pgtype.UUID `json:"workflowrunid"` + DesiredWorkerId pgtype.UUID `json:"desiredWorkerId"` + Workflowversionid pgtype.UUID `json:"workflowversionid"` +} + +func (q *Queries) CreateWorkflowRunStickyState(ctx context.Context, db DBTX, arg CreateWorkflowRunStickyStateParams) (*WorkflowRunStickyState, error) { + row := db.QueryRow(ctx, createWorkflowRunStickyState, + arg.Tenantid, + arg.Workflowrunid, + arg.DesiredWorkerId, + arg.Workflowversionid, + ) + var i WorkflowRunStickyState + err := row.Scan( + &i.ID, + &i.CreatedAt, + &i.UpdatedAt, + &i.TenantId, + &i.WorkflowRunId, + &i.DesiredWorkerId, + &i.Strategy, ) return &i, err } @@ -492,11 +617,12 @@ func (q *Queries) CreateWorkflowRunTriggeredBy(ctx context.Context, db DBTX, arg const getChildWorkflowRun = `-- name: GetChildWorkflowRun :one SELECT - "createdAt", "updatedAt", "deletedAt", "tenantId", "workflowVersionId", status, error, "startedAt", "finishedAt", "concurrencyGroupId", "displayName", id, "childIndex", "childKey", "parentId", "parentStepRunId", "additionalMetadata" + "createdAt", "updatedAt", "deletedAt", "tenantId", "workflowVersionId", status, error, "startedAt", "finishedAt", "concurrencyGroupId", "displayName", id, "childIndex", "childKey", "parentId", "parentStepRunId", "additionalMetadata", duration FROM "WorkflowRun" WHERE "parentId" = $1::uuid AND + "deletedAt" IS NULL AND "parentStepRunId" = $2::uuid AND ( -- if childKey is set, use that @@ -538,6 +664,7 @@ func (q *Queries) GetChildWorkflowRun(ctx context.Context, db DBTX, arg GetChild &i.ParentId, &i.ParentStepRunId, &i.AdditionalMetadata, + &i.Duration, ) return &i, err } @@ -588,9 +715,9 @@ func (q *Queries) GetScheduledChildWorkflowRun(ctx context.Context, db DBTX, arg const getWorkflowRun = `-- name: GetWorkflowRun :many SELECT - runs."createdAt", runs."updatedAt", runs."deletedAt", runs."tenantId", runs."workflowVersionId", runs.status, runs.error, runs."startedAt", runs."finishedAt", runs."concurrencyGroupId", runs."displayName", runs.id, runs."childIndex", runs."childKey", runs."parentId", runs."parentStepRunId", runs."additionalMetadata", + runs."createdAt", runs."updatedAt", runs."deletedAt", runs."tenantId", runs."workflowVersionId", runs.status, runs.error, runs."startedAt", runs."finishedAt", runs."concurrencyGroupId", runs."displayName", runs.id, runs."childIndex", runs."childKey", runs."parentId", runs."parentStepRunId", runs."additionalMetadata", runs.duration, runtriggers.id, runtriggers."createdAt", runtriggers."updatedAt", runtriggers."deletedAt", runtriggers."tenantId", runtriggers."eventId", runtriggers."cronParentId", runtriggers."cronSchedule", runtriggers."scheduledId", runtriggers.input, runtriggers."parentId", - workflowversion.id, workflowversion."createdAt", workflowversion."updatedAt", workflowversion."deletedAt", workflowversion.version, workflowversion."order", workflowversion."workflowId", workflowversion.checksum, workflowversion."scheduleTimeout", workflowversion."onFailureJobId", + workflowversion.id, workflowversion."createdAt", workflowversion."updatedAt", workflowversion."deletedAt", workflowversion.version, workflowversion."order", workflowversion."workflowId", workflowversion.checksum, workflowversion."scheduleTimeout", workflowversion."onFailureJobId", workflowversion.sticky, workflowversion.kind, workflow."name" as "workflowName", -- waiting on https://github.com/sqlc-dev/sqlc/pull/2858 for nullable fields wc."limitStrategy" as "concurrencyLimitStrategy", @@ -609,6 +736,9 @@ LEFT JOIN LEFT JOIN "GetGroupKeyRun" as groupKeyRun ON groupKeyRun."workflowRunId" = runs."id" WHERE + runs."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND runs."id" = ANY($1::uuid[]) AND runs."tenantId" = $2::uuid ` @@ -655,6 +785,7 @@ func (q *Queries) GetWorkflowRun(ctx context.Context, db DBTX, arg GetWorkflowRu &i.WorkflowRun.ParentId, &i.WorkflowRun.ParentStepRunId, &i.WorkflowRun.AdditionalMetadata, + &i.WorkflowRun.Duration, &i.WorkflowRunTriggeredBy.ID, &i.WorkflowRunTriggeredBy.CreatedAt, &i.WorkflowRunTriggeredBy.UpdatedAt, @@ -676,6 +807,8 @@ func (q *Queries) GetWorkflowRun(ctx context.Context, db DBTX, arg GetWorkflowRu &i.WorkflowVersion.Checksum, &i.WorkflowVersion.ScheduleTimeout, &i.WorkflowVersion.OnFailureJobId, + &i.WorkflowVersion.Sticky, + &i.WorkflowVersion.Kind, &i.WorkflowName, &i.ConcurrencyLimitStrategy, &i.ConcurrencyMaxRuns, @@ -691,6 +824,80 @@ func (q *Queries) GetWorkflowRun(ctx context.Context, db DBTX, arg GetWorkflowRu return items, nil } +const getWorkflowRunAdditionalMeta = `-- name: GetWorkflowRunAdditionalMeta :one +SELECT + "additionalMetadata", + "id" +FROM + "WorkflowRun" +WHERE + "id" = $1::uuid AND + "tenantId" = $2::uuid +` + +type GetWorkflowRunAdditionalMetaParams struct { + Workflowrunid pgtype.UUID `json:"workflowrunid"` + Tenantid pgtype.UUID `json:"tenantid"` +} + +type GetWorkflowRunAdditionalMetaRow struct { + AdditionalMetadata []byte `json:"additionalMetadata"` + ID pgtype.UUID `json:"id"` +} + +func (q *Queries) GetWorkflowRunAdditionalMeta(ctx context.Context, db DBTX, arg GetWorkflowRunAdditionalMetaParams) (*GetWorkflowRunAdditionalMetaRow, error) { + row := db.QueryRow(ctx, getWorkflowRunAdditionalMeta, arg.Workflowrunid, arg.Tenantid) + var i GetWorkflowRunAdditionalMetaRow + err := row.Scan(&i.AdditionalMetadata, &i.ID) + return &i, err +} + +const getWorkflowRunInput = `-- name: GetWorkflowRunInput :one +SELECT jld."data" AS lookupData +FROM "JobRun" jr +JOIN "JobRunLookupData" jld ON jr."id" = jld."jobRunId" +WHERE jld."data" ? 'input' AND jr."workflowRunId" = $1::uuid +LIMIT 1 +` + +func (q *Queries) GetWorkflowRunInput(ctx context.Context, db DBTX, workflowrunid pgtype.UUID) ([]byte, error) { + row := db.QueryRow(ctx, getWorkflowRunInput, workflowrunid) + var lookupdata []byte + err := row.Scan(&lookupdata) + return lookupdata, err +} + +const getWorkflowRunStickyStateForUpdate = `-- name: GetWorkflowRunStickyStateForUpdate :one +SELECT + id, "createdAt", "updatedAt", "tenantId", "workflowRunId", "desiredWorkerId", strategy +FROM + "WorkflowRunStickyState" +WHERE + "workflowRunId" = $1::uuid AND + "tenantId" = $2::uuid +FOR UPDATE +` + +type GetWorkflowRunStickyStateForUpdateParams struct { + Workflowrunid pgtype.UUID `json:"workflowrunid"` + Tenantid pgtype.UUID `json:"tenantid"` +} + +func (q *Queries) GetWorkflowRunStickyStateForUpdate(ctx context.Context, db DBTX, arg GetWorkflowRunStickyStateForUpdateParams) (*WorkflowRunStickyState, error) { + row := db.QueryRow(ctx, getWorkflowRunStickyStateForUpdate, arg.Workflowrunid, arg.Tenantid) + var i WorkflowRunStickyState + err := row.Scan( + &i.ID, + &i.CreatedAt, + &i.UpdatedAt, + &i.TenantId, + &i.WorkflowRunId, + &i.DesiredWorkerId, + &i.Strategy, + ) + return &i, err +} + const linkStepRunParents = `-- name: LinkStepRunParents :exec INSERT INTO "_StepRunOrder" ("A", "B") SELECT @@ -709,12 +916,71 @@ func (q *Queries) LinkStepRunParents(ctx context.Context, db DBTX, jobrunid pgty return err } +const listActiveQueuedWorkflowVersions = `-- name: ListActiveQueuedWorkflowVersions :many +WITH QueuedRuns AS ( + SELECT DISTINCT ON (wr."workflowVersionId") + wr."workflowVersionId", + w."tenantId", + wr."status", + wr."id", + wr."concurrencyGroupId" + FROM "WorkflowRun" wr + JOIN "WorkflowVersion" wv ON wv."id" = wr."workflowVersionId" + JOIN "Workflow" w ON w."id" = wv."workflowId" + WHERE wr."status" = 'QUEUED' + AND wr."concurrencyGroupId" IS NOT NULL + ORDER BY wr."workflowVersionId" +) +SELECT + q."workflowVersionId", + q."tenantId", + q."status", + q."id", + q."concurrencyGroupId" +FROM QueuedRuns q +GROUP BY q."workflowVersionId", q."tenantId", q."concurrencyGroupId", q."status", q."id" +` + +type ListActiveQueuedWorkflowVersionsRow struct { + WorkflowVersionId pgtype.UUID `json:"workflowVersionId"` + TenantId pgtype.UUID `json:"tenantId"` + Status WorkflowRunStatus `json:"status"` + ID pgtype.UUID `json:"id"` + ConcurrencyGroupId pgtype.Text `json:"concurrencyGroupId"` +} + +func (q *Queries) ListActiveQueuedWorkflowVersions(ctx context.Context, db DBTX) ([]*ListActiveQueuedWorkflowVersionsRow, error) { + rows, err := db.Query(ctx, listActiveQueuedWorkflowVersions) + if err != nil { + return nil, err + } + defer rows.Close() + var items []*ListActiveQueuedWorkflowVersionsRow + for rows.Next() { + var i ListActiveQueuedWorkflowVersionsRow + if err := rows.Scan( + &i.WorkflowVersionId, + &i.TenantId, + &i.Status, + &i.ID, + &i.ConcurrencyGroupId, + ); err != nil { + return nil, err + } + items = append(items, &i) + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} + const listWorkflowRuns = `-- name: ListWorkflowRuns :many SELECT - runs."createdAt", runs."updatedAt", runs."deletedAt", runs."tenantId", runs."workflowVersionId", runs.status, runs.error, runs."startedAt", runs."finishedAt", runs."concurrencyGroupId", runs."displayName", runs.id, runs."childIndex", runs."childKey", runs."parentId", runs."parentStepRunId", runs."additionalMetadata", + runs."createdAt", runs."updatedAt", runs."deletedAt", runs."tenantId", runs."workflowVersionId", runs.status, runs.error, runs."startedAt", runs."finishedAt", runs."concurrencyGroupId", runs."displayName", runs.id, runs."childIndex", runs."childKey", runs."parentId", runs."parentStepRunId", runs."additionalMetadata", runs.duration, workflow.id, workflow."createdAt", workflow."updatedAt", workflow."deletedAt", workflow."tenantId", workflow.name, workflow.description, runtriggers.id, runtriggers."createdAt", runtriggers."updatedAt", runtriggers."deletedAt", runtriggers."tenantId", runtriggers."eventId", runtriggers."cronParentId", runtriggers."cronSchedule", runtriggers."scheduledId", runtriggers.input, runtriggers."parentId", - workflowversion.id, workflowversion."createdAt", workflowversion."updatedAt", workflowversion."deletedAt", workflowversion.version, workflowversion."order", workflowversion."workflowId", workflowversion.checksum, workflowversion."scheduleTimeout", workflowversion."onFailureJobId", + workflowversion.id, workflowversion."createdAt", workflowversion."updatedAt", workflowversion."deletedAt", workflowversion.version, workflowversion."order", workflowversion."workflowId", workflowversion.checksum, workflowversion."scheduleTimeout", workflowversion."onFailureJobId", workflowversion.sticky, workflowversion.kind, -- waiting on https://github.com/sqlc-dev/sqlc/pull/2858 for nullable events field events.id, events.key, events."createdAt", events."updatedAt" FROM @@ -729,6 +995,9 @@ LEFT JOIN "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" WHERE runs."tenantId" = $1 AND + runs."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND ( $2::uuid IS NULL OR workflowVersion."id" = $2::uuid @@ -766,21 +1035,31 @@ WHERE "status" = ANY(cast($10::text[] as "WorkflowRunStatus"[])) ) AND ( - $11::timestamp IS NULL OR - runs."createdAt" > $11::timestamp + $11::text[] IS NULL OR + workflowVersion."kind" = ANY(cast($11::text[] as "WorkflowKind"[])) ) AND ( $12::timestamp IS NULL OR - runs."finishedAt" > $12::timestamp + runs."createdAt" > $12::timestamp + ) AND + ( + $13::timestamp IS NULL OR + runs."finishedAt" > $13::timestamp ) ORDER BY - case when $13 = 'createdAt ASC' THEN runs."createdAt" END ASC , - case when $13 = 'createdAt DESC' then runs."createdAt" END DESC, + case when $14 = 'createdAt ASC' THEN runs."createdAt" END ASC , + case when $14 = 'createdAt DESC' THEN runs."createdAt" END DESC, + case when $14 = 'finishedAt ASC' THEN runs."finishedAt" END ASC , + case when $14 = 'finishedAt DESC' THEN runs."finishedAt" END DESC, + case when $14 = 'startedAt ASC' THEN runs."startedAt" END ASC , + case when $14 = 'startedAt DESC' THEN runs."startedAt" END DESC, + case when $14 = 'duration ASC' THEN runs."duration" END ASC NULLS FIRST, + case when $14 = 'duration DESC' THEN runs."duration" END DESC NULLS LAST, runs."id" ASC OFFSET - COALESCE($14, 0) + COALESCE($15, 0) LIMIT - COALESCE($15, 50) + COALESCE($16, 50) ` type ListWorkflowRunsParams struct { @@ -794,6 +1073,7 @@ type ListWorkflowRunsParams struct { EventId pgtype.UUID `json:"eventId"` GroupKey pgtype.Text `json:"groupKey"` Statuses []string `json:"statuses"` + Kinds []string `json:"kinds"` CreatedAfter pgtype.Timestamp `json:"createdAfter"` FinishedAfter pgtype.Timestamp `json:"finishedAfter"` Orderby interface{} `json:"orderby"` @@ -824,6 +1104,7 @@ func (q *Queries) ListWorkflowRuns(ctx context.Context, db DBTX, arg ListWorkflo arg.EventId, arg.GroupKey, arg.Statuses, + arg.Kinds, arg.CreatedAfter, arg.FinishedAfter, arg.Orderby, @@ -855,6 +1136,7 @@ func (q *Queries) ListWorkflowRuns(ctx context.Context, db DBTX, arg ListWorkflo &i.WorkflowRun.ParentId, &i.WorkflowRun.ParentStepRunId, &i.WorkflowRun.AdditionalMetadata, + &i.WorkflowRun.Duration, &i.Workflow.ID, &i.Workflow.CreatedAt, &i.Workflow.UpdatedAt, @@ -883,6 +1165,8 @@ func (q *Queries) ListWorkflowRuns(ctx context.Context, db DBTX, arg ListWorkflo &i.WorkflowVersion.Checksum, &i.WorkflowVersion.ScheduleTimeout, &i.WorkflowVersion.OnFailureJobId, + &i.WorkflowVersion.Sticky, + &i.WorkflowVersion.Kind, &i.ID, &i.Key, &i.CreatedAt, @@ -911,6 +1195,8 @@ WITH workflow_runs AS ( "WorkflowVersion" workflowVersion ON r2."workflowVersionId" = workflowVersion."id" WHERE r2."tenantId" = $1::uuid AND + r2."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND (r2."status" = 'QUEUED' OR r2."status" = 'RUNNING') AND workflowVersion."workflowId" = $2::uuid ORDER BY @@ -957,7 +1243,7 @@ WHERE "WorkflowRun".id = eligible_runs.id AND "WorkflowRun"."status" = 'QUEUED' RETURNING - "WorkflowRun"."createdAt", "WorkflowRun"."updatedAt", "WorkflowRun"."deletedAt", "WorkflowRun"."tenantId", "WorkflowRun"."workflowVersionId", "WorkflowRun".status, "WorkflowRun".error, "WorkflowRun"."startedAt", "WorkflowRun"."finishedAt", "WorkflowRun"."concurrencyGroupId", "WorkflowRun"."displayName", "WorkflowRun".id, "WorkflowRun"."childIndex", "WorkflowRun"."childKey", "WorkflowRun"."parentId", "WorkflowRun"."parentStepRunId", "WorkflowRun"."additionalMetadata" + "WorkflowRun"."createdAt", "WorkflowRun"."updatedAt", "WorkflowRun"."deletedAt", "WorkflowRun"."tenantId", "WorkflowRun"."workflowVersionId", "WorkflowRun".status, "WorkflowRun".error, "WorkflowRun"."startedAt", "WorkflowRun"."finishedAt", "WorkflowRun"."concurrencyGroupId", "WorkflowRun"."displayName", "WorkflowRun".id, "WorkflowRun"."childIndex", "WorkflowRun"."childKey", "WorkflowRun"."parentId", "WorkflowRun"."parentStepRunId", "WorkflowRun"."additionalMetadata", "WorkflowRun".duration ` type PopWorkflowRunsRoundRobinParams struct { @@ -993,6 +1279,7 @@ func (q *Queries) PopWorkflowRunsRoundRobin(ctx context.Context, db DBTX, arg Po &i.ParentId, &i.ParentStepRunId, &i.AdditionalMetadata, + &i.Duration, ); err != nil { return nil, err } @@ -1004,6 +1291,49 @@ func (q *Queries) PopWorkflowRunsRoundRobin(ctx context.Context, db DBTX, arg Po return items, nil } +const replayWorkflowRunResetJobRun = `-- name: ReplayWorkflowRunResetJobRun :one +UPDATE + "JobRun" +SET + -- We set this to pending so that the entire workflow starts fresh, and we + -- don't accidentally trigger on failure jobs + "status" = 'PENDING', + "updatedAt" = CURRENT_TIMESTAMP, + "startedAt" = NULL, + "finishedAt" = NULL, + "timeoutAt" = NULL, + "cancelledAt" = NULL, + "cancelledReason" = NULL, + "cancelledError" = NULL +WHERE + "id" = $1::uuid +RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", "jobId", "tickerId", status, result, "startedAt", "finishedAt", "timeoutAt", "cancelledAt", "cancelledReason", "cancelledError", "workflowRunId" +` + +func (q *Queries) ReplayWorkflowRunResetJobRun(ctx context.Context, db DBTX, jobrunid pgtype.UUID) (*JobRun, error) { + row := db.QueryRow(ctx, replayWorkflowRunResetJobRun, jobrunid) + var i JobRun + err := row.Scan( + &i.ID, + &i.CreatedAt, + &i.UpdatedAt, + &i.DeletedAt, + &i.TenantId, + &i.JobId, + &i.TickerId, + &i.Status, + &i.Result, + &i.StartedAt, + &i.FinishedAt, + &i.TimeoutAt, + &i.CancelledAt, + &i.CancelledReason, + &i.CancelledError, + &i.WorkflowRunId, + ) + return &i, err +} + const resolveWorkflowRunStatus = `-- name: ResolveWorkflowRunStatus :one WITH jobRuns AS ( SELECT sum(case when runs."status" = 'PENDING' then 1 else 0 end) AS pendingRuns, @@ -1019,6 +1349,7 @@ WITH jobRuns AS ( FROM "JobRun" WHERE "id" = $1::uuid ) AND + runs."deletedAt" IS NULL AND runs."tenantId" = $2::uuid AND -- we should not include onFailure jobs in the calculation job."kind" = 'DEFAULT' @@ -1034,7 +1365,8 @@ SET "status" = CASE -- When all job runs have succeeded, then the workflow is succeeded WHEN j.succeededRuns > 0 AND j.pendingRuns = 0 AND j.runningRuns = 0 AND j.failedRuns = 0 AND j.cancelledRuns = 0 THEN 'SUCCEEDED' ELSE "status" -END, "finishedAt" = CASE +END, +"finishedAt" = CASE -- Final states are final, cannot be updated WHEN "finishedAt" IS NOT NULL THEN "finishedAt" -- We check for running first, because if a job run is running, then the workflow is not finished @@ -1042,12 +1374,23 @@ END, "finishedAt" = CASE -- When one job run has failed or been cancelled, then the workflow is failed WHEN j.failedRuns > 0 OR j.cancelledRuns > 0 OR j.succeededRuns > 0 THEN NOW() ELSE "finishedAt" -END, "startedAt" = CASE +END, +"startedAt" = CASE -- Started at is final, cannot be changed WHEN "startedAt" IS NOT NULL THEN "startedAt" -- If a job is running or in a final state, then the workflow has started WHEN j.runningRuns > 0 OR j.succeededRuns > 0 OR j.failedRuns > 0 OR j.cancelledRuns > 0 THEN NOW() ELSE "startedAt" +END, +"duration" = CASE + -- duration is final, cannot be changed + WHEN "duration" IS NOT NULL THEN "duration" + -- We check for running first, because if a job run is running, then the workflow is not finished + WHEN j.runningRuns > 0 THEN NULL + -- When one job run has failed or been cancelled, then the workflow is failed + WHEN j.failedRuns > 0 OR j.cancelledRuns > 0 OR j.succeededRuns > 0 THEN + EXTRACT(EPOCH FROM (NOW() - "startedAt")) * 1000 + ELSE "duration" END FROM jobRuns j @@ -1056,7 +1399,7 @@ WHERE "id" = ( FROM "JobRun" WHERE "id" = $1::uuid ) AND "tenantId" = $2::uuid -RETURNING "WorkflowRun"."createdAt", "WorkflowRun"."updatedAt", "WorkflowRun"."deletedAt", "WorkflowRun"."tenantId", "WorkflowRun"."workflowVersionId", "WorkflowRun".status, "WorkflowRun".error, "WorkflowRun"."startedAt", "WorkflowRun"."finishedAt", "WorkflowRun"."concurrencyGroupId", "WorkflowRun"."displayName", "WorkflowRun".id, "WorkflowRun"."childIndex", "WorkflowRun"."childKey", "WorkflowRun"."parentId", "WorkflowRun"."parentStepRunId", "WorkflowRun"."additionalMetadata" +RETURNING "WorkflowRun"."createdAt", "WorkflowRun"."updatedAt", "WorkflowRun"."deletedAt", "WorkflowRun"."tenantId", "WorkflowRun"."workflowVersionId", "WorkflowRun".status, "WorkflowRun".error, "WorkflowRun"."startedAt", "WorkflowRun"."finishedAt", "WorkflowRun"."concurrencyGroupId", "WorkflowRun"."displayName", "WorkflowRun".id, "WorkflowRun"."childIndex", "WorkflowRun"."childKey", "WorkflowRun"."parentId", "WorkflowRun"."parentStepRunId", "WorkflowRun"."additionalMetadata", "WorkflowRun".duration ` type ResolveWorkflowRunStatusParams struct { @@ -1085,10 +1428,100 @@ func (q *Queries) ResolveWorkflowRunStatus(ctx context.Context, db DBTX, arg Res &i.ParentId, &i.ParentStepRunId, &i.AdditionalMetadata, + &i.Duration, ) return &i, err } +const softDeleteExpiredWorkflowRunsWithDependencies = `-- name: SoftDeleteExpiredWorkflowRunsWithDependencies :one +WITH for_delete AS ( + SELECT + "id" + FROM "WorkflowRun" wr2 + WHERE + wr2."tenantId" = $1::uuid AND + wr2."status" = ANY(cast($2::text[] as "WorkflowRunStatus"[])) AND + wr2."createdAt" < $3::timestamp AND + "deletedAt" IS NULL + ORDER BY "createdAt" ASC + LIMIT $4 +1 + FOR UPDATE SKIP LOCKED +), +expired_with_limit AS ( + SELECT + for_delete."id" as "id" + FROM for_delete + LIMIT $4 +), +has_more AS ( + SELECT + CASE + WHEN COUNT(*) > $4 THEN TRUE + ELSE FALSE + END as has_more + FROM for_delete +), +job_runs_to_delete AS ( + SELECT + "id" + FROM + "JobRun" + WHERE + "workflowRunId" IN (SELECT "id" FROM expired_with_limit) + AND "deletedAt" IS NULL +), step_runs_to_delete AS ( + SELECT + "id" + FROM + "StepRun" + WHERE + "jobRunId" IN (SELECT "id" FROM job_runs_to_delete) + AND "deletedAt" IS NULL +), update_step_runs AS ( + UPDATE + "StepRun" + SET + "deletedAt" = CURRENT_TIMESTAMP + WHERE + "id" IN (SELECT "id" FROM step_runs_to_delete) +), update_job_runs AS ( + UPDATE + "JobRun" jr + SET + "deletedAt" = CURRENT_TIMESTAMP + WHERE + jr."id" IN (SELECT "id" FROM job_runs_to_delete) +) +UPDATE + "WorkflowRun" wr +SET + "deletedAt" = CURRENT_TIMESTAMP +WHERE + "id" IN (SELECT "id" FROM expired_with_limit) AND + wr."tenantId" = $1::uuid +RETURNING + (SELECT has_more FROM has_more) as has_more +` + +type SoftDeleteExpiredWorkflowRunsWithDependenciesParams struct { + Tenantid pgtype.UUID `json:"tenantid"` + Statuses []string `json:"statuses"` + Createdbefore pgtype.Timestamp `json:"createdbefore"` + Limit interface{} `json:"limit"` +} + +func (q *Queries) SoftDeleteExpiredWorkflowRunsWithDependencies(ctx context.Context, db DBTX, arg SoftDeleteExpiredWorkflowRunsWithDependenciesParams) (bool, error) { + row := db.QueryRow(ctx, softDeleteExpiredWorkflowRunsWithDependencies, + arg.Tenantid, + arg.Statuses, + arg.Createdbefore, + arg.Limit, + ) + var has_more bool + err := row.Scan(&has_more) + return has_more, err +} + const updateManyWorkflowRun = `-- name: UpdateManyWorkflowRun :many UPDATE "WorkflowRun" @@ -1096,11 +1529,12 @@ SET "status" = COALESCE($1::"WorkflowRunStatus", "status"), "error" = COALESCE($2::text, "error"), "startedAt" = COALESCE($3::timestamp, "startedAt"), - "finishedAt" = COALESCE($4::timestamp, "finishedAt") + "finishedAt" = COALESCE($4::timestamp, "finishedAt"), + "duration" = COALESCE($4::timestamp, "finishedAt") - COALESCE($3::timestamp, "startedAt") WHERE "tenantId" = $5::uuid AND "id" = ANY($6::uuid[]) -RETURNING "WorkflowRun"."createdAt", "WorkflowRun"."updatedAt", "WorkflowRun"."deletedAt", "WorkflowRun"."tenantId", "WorkflowRun"."workflowVersionId", "WorkflowRun".status, "WorkflowRun".error, "WorkflowRun"."startedAt", "WorkflowRun"."finishedAt", "WorkflowRun"."concurrencyGroupId", "WorkflowRun"."displayName", "WorkflowRun".id, "WorkflowRun"."childIndex", "WorkflowRun"."childKey", "WorkflowRun"."parentId", "WorkflowRun"."parentStepRunId", "WorkflowRun"."additionalMetadata" +RETURNING "WorkflowRun"."createdAt", "WorkflowRun"."updatedAt", "WorkflowRun"."deletedAt", "WorkflowRun"."tenantId", "WorkflowRun"."workflowVersionId", "WorkflowRun".status, "WorkflowRun".error, "WorkflowRun"."startedAt", "WorkflowRun"."finishedAt", "WorkflowRun"."concurrencyGroupId", "WorkflowRun"."displayName", "WorkflowRun".id, "WorkflowRun"."childIndex", "WorkflowRun"."childKey", "WorkflowRun"."parentId", "WorkflowRun"."parentStepRunId", "WorkflowRun"."additionalMetadata", "WorkflowRun".duration ` type UpdateManyWorkflowRunParams struct { @@ -1146,6 +1580,7 @@ func (q *Queries) UpdateManyWorkflowRun(ctx context.Context, db DBTX, arg Update &i.ParentId, &i.ParentStepRunId, &i.AdditionalMetadata, + &i.Duration, ); err != nil { return nil, err } @@ -1168,11 +1603,14 @@ SET END, "error" = COALESCE($2::text, "error"), "startedAt" = COALESCE($3::timestamp, "startedAt"), - "finishedAt" = COALESCE($4::timestamp, "finishedAt") + "finishedAt" = COALESCE($4::timestamp, "finishedAt"), + "duration" = + EXTRACT(EPOCH FROM (COALESCE($4::timestamp, "finishedAt") - COALESCE($3::timestamp, "startedAt")) * 1000) + WHERE "id" = $5::uuid AND "tenantId" = $6::uuid -RETURNING "WorkflowRun"."createdAt", "WorkflowRun"."updatedAt", "WorkflowRun"."deletedAt", "WorkflowRun"."tenantId", "WorkflowRun"."workflowVersionId", "WorkflowRun".status, "WorkflowRun".error, "WorkflowRun"."startedAt", "WorkflowRun"."finishedAt", "WorkflowRun"."concurrencyGroupId", "WorkflowRun"."displayName", "WorkflowRun".id, "WorkflowRun"."childIndex", "WorkflowRun"."childKey", "WorkflowRun"."parentId", "WorkflowRun"."parentStepRunId", "WorkflowRun"."additionalMetadata" +RETURNING "WorkflowRun"."createdAt", "WorkflowRun"."updatedAt", "WorkflowRun"."deletedAt", "WorkflowRun"."tenantId", "WorkflowRun"."workflowVersionId", "WorkflowRun".status, "WorkflowRun".error, "WorkflowRun"."startedAt", "WorkflowRun"."finishedAt", "WorkflowRun"."concurrencyGroupId", "WorkflowRun"."displayName", "WorkflowRun".id, "WorkflowRun"."childIndex", "WorkflowRun"."childKey", "WorkflowRun"."parentId", "WorkflowRun"."parentStepRunId", "WorkflowRun"."additionalMetadata", "WorkflowRun".duration ` type UpdateWorkflowRunParams struct { @@ -1212,6 +1650,7 @@ func (q *Queries) UpdateWorkflowRun(ctx context.Context, db DBTX, arg UpdateWork &i.ParentId, &i.ParentStepRunId, &i.AdditionalMetadata, + &i.Duration, ) return &i, err } @@ -1222,7 +1661,8 @@ WITH groupKeyRun AS ( FROM "GetGroupKeyRun" as groupKeyRun WHERE "id" = $2::uuid AND - "tenantId" = $1::uuid + "tenantId" = $1::uuid AND + "deletedAt" IS NULL ) UPDATE "WorkflowRun" workflowRun SET "status" = CASE @@ -1232,20 +1672,28 @@ SET "status" = CASE WHEN groupKeyRun.groupKeyRunStatus IN ('FAILED', 'CANCELLED') THEN 'FAILED' WHEN groupKeyRun.output IS NOT NULL THEN 'QUEUED' ELSE "status" -END, "finishedAt" = CASE +END, +"finishedAt" = CASE -- Final states are final, cannot be updated WHEN "finishedAt" IS NOT NULL THEN "finishedAt" -- When one job run has failed or been cancelled, then the workflow is failed WHEN groupKeyRun.groupKeyRunStatus IN ('FAILED', 'CANCELLED') THEN NOW() ELSE "finishedAt" END, +"duration" = CASE + -- duration is final, cannot be changed + WHEN "duration" IS NOT NULL THEN "duration" + WHEN "startedAt" IS NOT NULL AND groupKeyRun.groupKeyRunStatus IN ('FAILED', 'CANCELLED') THEN + EXTRACT(EPOCH FROM (NOW() - "startedAt")) * 1000 + ELSE "duration" +END, "concurrencyGroupId" = groupKeyRun."output" FROM groupKeyRun WHERE workflowRun."id" = groupKeyRun."workflowRunId" AND workflowRun."tenantId" = $1::uuid -RETURNING workflowrun."createdAt", workflowrun."updatedAt", workflowrun."deletedAt", workflowrun."tenantId", workflowrun."workflowVersionId", workflowrun.status, workflowrun.error, workflowrun."startedAt", workflowrun."finishedAt", workflowrun."concurrencyGroupId", workflowrun."displayName", workflowrun.id, workflowrun."childIndex", workflowrun."childKey", workflowrun."parentId", workflowrun."parentStepRunId", workflowrun."additionalMetadata" +RETURNING workflowrun."createdAt", workflowrun."updatedAt", workflowrun."deletedAt", workflowrun."tenantId", workflowrun."workflowVersionId", workflowrun.status, workflowrun.error, workflowrun."startedAt", workflowrun."finishedAt", workflowrun."concurrencyGroupId", workflowrun."displayName", workflowrun.id, workflowrun."childIndex", workflowrun."childKey", workflowrun."parentId", workflowrun."parentStepRunId", workflowrun."additionalMetadata", workflowrun.duration ` type UpdateWorkflowRunGroupKeyParams struct { @@ -1274,10 +1722,32 @@ func (q *Queries) UpdateWorkflowRunGroupKey(ctx context.Context, db DBTX, arg Up &i.ParentId, &i.ParentStepRunId, &i.AdditionalMetadata, + &i.Duration, ) return &i, err } +const updateWorkflowRunStickyState = `-- name: UpdateWorkflowRunStickyState :exec +UPDATE "WorkflowRunStickyState" +SET + "updatedAt" = CURRENT_TIMESTAMP, + "desiredWorkerId" = $1::uuid +WHERE + "workflowRunId" = $2::uuid AND + "tenantId" = $3::uuid +` + +type UpdateWorkflowRunStickyStateParams struct { + DesiredWorkerId pgtype.UUID `json:"desiredWorkerId"` + Workflowrunid pgtype.UUID `json:"workflowrunid"` + Tenantid pgtype.UUID `json:"tenantid"` +} + +func (q *Queries) UpdateWorkflowRunStickyState(ctx context.Context, db DBTX, arg UpdateWorkflowRunStickyStateParams) error { + _, err := db.Exec(ctx, updateWorkflowRunStickyState, arg.DesiredWorkerId, arg.Workflowrunid, arg.Tenantid) + return err +} + const workflowRunsMetricsCount = `-- name: WorkflowRunsMetricsCount :one SELECT COUNT(CASE WHEN runs."status" = 'PENDING' THEN 1 END) AS "PENDING", @@ -1297,6 +1767,9 @@ LEFT JOIN "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" WHERE runs."tenantId" = $1::uuid AND + runs."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND ( $2::uuid IS NULL OR workflow."id" = $2::uuid diff --git a/pkg/repository/prisma/dbsqlc/workflows.sql b/pkg/repository/prisma/dbsqlc/workflows.sql index 264c99625..9b46850bf 100644 --- a/pkg/repository/prisma/dbsqlc/workflows.sql +++ b/pkg/repository/prisma/dbsqlc/workflows.sql @@ -5,6 +5,7 @@ FROM "Workflow" as workflows WHERE workflows."tenantId" = $1 AND + workflows."deletedAt" IS NULL AND ( sqlc.narg('eventKey')::text IS NULL OR workflows."id" IN ( @@ -43,6 +44,9 @@ LEFT JOIN "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" WHERE runs."tenantId" = $1 AND + runs."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND ( sqlc.narg('eventKey')::text IS NULL OR workflow."id" IN ( @@ -90,6 +94,8 @@ FROM ( "WorkflowTriggerEventRef" as workflowTriggerEventRef ON workflowTrigger."id" = workflowTriggerEventRef."parentId" WHERE workflows."tenantId" = $1 + AND workflows."deletedAt" IS NULL + AND workflowVersion."deletedAt" IS NULL AND ( sqlc.narg('eventKey')::text IS NULL OR @@ -155,7 +161,9 @@ INSERT INTO "WorkflowVersion" ( "checksum", "version", "workflowId", - "scheduleTimeout" + "scheduleTimeout", + "sticky", + "kind" ) VALUES ( @id::uuid, coalesce(sqlc.narg('createdAt')::timestamp, CURRENT_TIMESTAMP), @@ -164,7 +172,9 @@ INSERT INTO "WorkflowVersion" ( @checksum::text, sqlc.narg('version')::text, @workflowId::uuid, - coalesce(sqlc.narg('scheduleTimeout')::text, '5m') + coalesce(sqlc.narg('scheduleTimeout')::text, '5m'), + sqlc.narg('sticky')::"StickyStrategy", + coalesce(sqlc.narg('kind')::"WorkflowKind", 'DAG') ) RETURNING *; -- name: CreateWorkflowConcurrency :one @@ -370,6 +380,8 @@ LEFT JOIN "Workflow" AS j1 ON j1.id = "WorkflowVersion"."workflowId" LEFT JOIN "WorkflowTriggers" AS j2 ON j2."workflowVersionId" = "WorkflowVersion"."id" WHERE (j1."tenantId"::uuid = @tenantId AND j1.id IS NOT NULL) + AND j1."deletedAt" IS NULL + AND "WorkflowVersion"."deletedAt" IS NULL AND (j2.id IN ( SELECT t3."parentId" @@ -400,7 +412,9 @@ LEFT JOIN "WorkflowConcurrency" as wc ON wc."workflowVersionId" = workflowVersions."id" WHERE workflowVersions."id" = ANY(@ids::uuid[]) AND - w."tenantId" = @tenantId::uuid; + w."tenantId" = @tenantId::uuid AND + w."deletedAt" IS NULL AND + workflowVersions."deletedAt" IS NULL; -- name: GetWorkflowByName :one SELECT @@ -409,7 +423,8 @@ FROM "Workflow" as workflows WHERE workflows."tenantId" = @tenantId::uuid AND - workflows."name" = @name::text; + workflows."name" = @name::text AND + workflows."deletedAt" IS NULL; -- name: CreateSchedules :many INSERT INTO "WorkflowTriggerScheduledRef" ( @@ -430,7 +445,8 @@ SELECT FROM "WorkflowVersion" as workflowVersions WHERE - workflowVersions."workflowId" = @workflowId::uuid + workflowVersions."workflowId" = @workflowId::uuid AND + workflowVersions."deletedAt" IS NULL ORDER BY workflowVersions."order" DESC LIMIT 1; @@ -443,6 +459,8 @@ JOIN "WorkflowVersion" workflowVersion ON r1."workflowVersionId" = workflowVersion."id" WHERE r1."tenantId" = @tenantId::uuid AND + workflowVersion."deletedAt" IS NULL AND + r1."deletedAt" IS NULL AND ( sqlc.narg('status')::"WorkflowRunStatus" IS NULL OR r1."status" = sqlc.narg('status')::"WorkflowRunStatus" @@ -463,8 +481,25 @@ JOIN "WorkflowVersion" workflowVersion ON r1."workflowVersionId" = workflowVersion."id" WHERE r1."tenantId" = @tenantId::uuid AND + workflowVersion."deletedAt" IS NULL AND + r1."deletedAt" IS NULL AND ( sqlc.narg('status')::"WorkflowRunStatus" IS NULL OR r1."status" = sqlc.narg('status')::"WorkflowRunStatus" ) AND workflowVersion."workflowId" = @workflowId::uuid; + + +-- name: SoftDeleteWorkflow :one +WITH versions AS ( + UPDATE "WorkflowVersion" + SET "deletedAt" = CURRENT_TIMESTAMP + WHERE "workflowId" = @id::uuid +) +UPDATE "Workflow" +SET + -- set name to the current name plus a random suffix to avoid conflicts + "name" = "name" || '-' || gen_random_uuid(), + "deletedAt" = CURRENT_TIMESTAMP +WHERE "id" = @id::uuid +RETURNING *; diff --git a/pkg/repository/prisma/dbsqlc/workflows.sql.go b/pkg/repository/prisma/dbsqlc/workflows.sql.go index 93b78e435..adc8a7fb4 100644 --- a/pkg/repository/prisma/dbsqlc/workflows.sql.go +++ b/pkg/repository/prisma/dbsqlc/workflows.sql.go @@ -58,6 +58,8 @@ JOIN "WorkflowVersion" workflowVersion ON r1."workflowVersionId" = workflowVersion."id" WHERE r1."tenantId" = $1::uuid AND + workflowVersion."deletedAt" IS NULL AND + r1."deletedAt" IS NULL AND ( $2::"WorkflowRunStatus" IS NULL OR r1."status" = $2::"WorkflowRunStatus" @@ -86,6 +88,8 @@ JOIN "WorkflowVersion" workflowVersion ON r1."workflowVersionId" = workflowVersion."id" WHERE r1."tenantId" = $1::uuid AND + workflowVersion."deletedAt" IS NULL AND + r1."deletedAt" IS NULL AND ( $2::"WorkflowRunStatus" IS NULL OR r1."status" = $2::"WorkflowRunStatus" @@ -124,6 +128,7 @@ FROM "Workflow" as workflows WHERE workflows."tenantId" = $1 AND + workflows."deletedAt" IS NULL AND ( $2::text IS NULL OR workflows."id" IN ( @@ -642,7 +647,9 @@ INSERT INTO "WorkflowVersion" ( "checksum", "version", "workflowId", - "scheduleTimeout" + "scheduleTimeout", + "sticky", + "kind" ) VALUES ( $1::uuid, coalesce($2::timestamp, CURRENT_TIMESTAMP), @@ -651,19 +658,23 @@ INSERT INTO "WorkflowVersion" ( $5::text, $6::text, $7::uuid, - coalesce($8::text, '5m') -) RETURNING id, "createdAt", "updatedAt", "deletedAt", version, "order", "workflowId", checksum, "scheduleTimeout", "onFailureJobId" + coalesce($8::text, '5m'), + $9::"StickyStrategy", + coalesce($10::"WorkflowKind", 'DAG') +) RETURNING id, "createdAt", "updatedAt", "deletedAt", version, "order", "workflowId", checksum, "scheduleTimeout", "onFailureJobId", sticky, kind ` type CreateWorkflowVersionParams struct { - ID pgtype.UUID `json:"id"` - CreatedAt pgtype.Timestamp `json:"createdAt"` - UpdatedAt pgtype.Timestamp `json:"updatedAt"` - Deletedat pgtype.Timestamp `json:"deletedat"` - Checksum string `json:"checksum"` - Version pgtype.Text `json:"version"` - Workflowid pgtype.UUID `json:"workflowid"` - ScheduleTimeout pgtype.Text `json:"scheduleTimeout"` + ID pgtype.UUID `json:"id"` + CreatedAt pgtype.Timestamp `json:"createdAt"` + UpdatedAt pgtype.Timestamp `json:"updatedAt"` + Deletedat pgtype.Timestamp `json:"deletedat"` + Checksum string `json:"checksum"` + Version pgtype.Text `json:"version"` + Workflowid pgtype.UUID `json:"workflowid"` + ScheduleTimeout pgtype.Text `json:"scheduleTimeout"` + Sticky NullStickyStrategy `json:"sticky"` + Kind NullWorkflowKind `json:"kind"` } func (q *Queries) CreateWorkflowVersion(ctx context.Context, db DBTX, arg CreateWorkflowVersionParams) (*WorkflowVersion, error) { @@ -676,6 +687,8 @@ func (q *Queries) CreateWorkflowVersion(ctx context.Context, db DBTX, arg Create arg.Version, arg.Workflowid, arg.ScheduleTimeout, + arg.Sticky, + arg.Kind, ) var i WorkflowVersion err := row.Scan( @@ -689,6 +702,8 @@ func (q *Queries) CreateWorkflowVersion(ctx context.Context, db DBTX, arg Create &i.Checksum, &i.ScheduleTimeout, &i.OnFailureJobId, + &i.Sticky, + &i.Kind, ) return &i, err } @@ -700,7 +715,8 @@ FROM "Workflow" as workflows WHERE workflows."tenantId" = $1::uuid AND - workflows."name" = $2::text + workflows."name" = $2::text AND + workflows."deletedAt" IS NULL ` type GetWorkflowByNameParams struct { @@ -729,7 +745,8 @@ SELECT FROM "WorkflowVersion" as workflowVersions WHERE - workflowVersions."workflowId" = $1::uuid + workflowVersions."workflowId" = $1::uuid AND + workflowVersions."deletedAt" IS NULL ORDER BY workflowVersions."order" DESC LIMIT 1 @@ -744,7 +761,7 @@ func (q *Queries) GetWorkflowLatestVersion(ctx context.Context, db DBTX, workflo const getWorkflowVersionForEngine = `-- name: GetWorkflowVersionForEngine :many SELECT - workflowversions.id, workflowversions."createdAt", workflowversions."updatedAt", workflowversions."deletedAt", workflowversions.version, workflowversions."order", workflowversions."workflowId", workflowversions.checksum, workflowversions."scheduleTimeout", workflowversions."onFailureJobId", + workflowversions.id, workflowversions."createdAt", workflowversions."updatedAt", workflowversions."deletedAt", workflowversions.version, workflowversions."order", workflowversions."workflowId", workflowversions.checksum, workflowversions."scheduleTimeout", workflowversions."onFailureJobId", workflowversions.sticky, workflowversions.kind, w."name" as "workflowName", wc."limitStrategy" as "concurrencyLimitStrategy", wc."maxRuns" as "concurrencyMaxRuns" @@ -756,7 +773,9 @@ LEFT JOIN "WorkflowConcurrency" as wc ON wc."workflowVersionId" = workflowVersions."id" WHERE workflowVersions."id" = ANY($1::uuid[]) AND - w."tenantId" = $2::uuid + w."tenantId" = $2::uuid AND + w."deletedAt" IS NULL AND + workflowVersions."deletedAt" IS NULL ` type GetWorkflowVersionForEngineParams struct { @@ -791,6 +810,8 @@ func (q *Queries) GetWorkflowVersionForEngine(ctx context.Context, db DBTX, arg &i.WorkflowVersion.Checksum, &i.WorkflowVersion.ScheduleTimeout, &i.WorkflowVersion.OnFailureJobId, + &i.WorkflowVersion.Sticky, + &i.WorkflowVersion.Kind, &i.WorkflowName, &i.ConcurrencyLimitStrategy, &i.ConcurrencyMaxRuns, @@ -809,7 +830,7 @@ const linkOnFailureJob = `-- name: LinkOnFailureJob :one UPDATE "WorkflowVersion" SET "onFailureJobId" = $1::uuid WHERE "id" = $2::uuid -RETURNING id, "createdAt", "updatedAt", "deletedAt", version, "order", "workflowId", checksum, "scheduleTimeout", "onFailureJobId" +RETURNING id, "createdAt", "updatedAt", "deletedAt", version, "order", "workflowId", checksum, "scheduleTimeout", "onFailureJobId", sticky, kind ` type LinkOnFailureJobParams struct { @@ -831,6 +852,8 @@ func (q *Queries) LinkOnFailureJob(ctx context.Context, db DBTX, arg LinkOnFailu &i.Checksum, &i.ScheduleTimeout, &i.OnFailureJobId, + &i.Sticky, + &i.Kind, ) return &i, err } @@ -845,7 +868,7 @@ FROM ( "Workflow" as workflows LEFT JOIN ( - SELECT id, "createdAt", "updatedAt", "deletedAt", version, "order", "workflowId", checksum, "scheduleTimeout", "onFailureJobId" FROM "WorkflowVersion" as workflowVersion ORDER BY workflowVersion."order" DESC LIMIT 1 + SELECT id, "createdAt", "updatedAt", "deletedAt", version, "order", "workflowId", checksum, "scheduleTimeout", "onFailureJobId", sticky, kind FROM "WorkflowVersion" as workflowVersion ORDER BY workflowVersion."order" DESC LIMIT 1 ) as workflowVersion ON workflows."id" = workflowVersion."workflowId" LEFT JOIN "WorkflowTriggers" as workflowTrigger ON workflowVersion."id" = workflowTrigger."workflowVersionId" @@ -853,6 +876,8 @@ FROM ( "WorkflowTriggerEventRef" as workflowTriggerEventRef ON workflowTrigger."id" = workflowTriggerEventRef."parentId" WHERE workflows."tenantId" = $1 + AND workflows."deletedAt" IS NULL + AND workflowVersion."deletedAt" IS NULL AND ( $2::text IS NULL OR @@ -944,6 +969,8 @@ LEFT JOIN "Workflow" AS j1 ON j1.id = "WorkflowVersion"."workflowId" LEFT JOIN "WorkflowTriggers" AS j2 ON j2."workflowVersionId" = "WorkflowVersion"."id" WHERE (j1."tenantId"::uuid = $1 AND j1.id IS NOT NULL) + AND j1."deletedAt" IS NULL + AND "WorkflowVersion"."deletedAt" IS NULL AND (j2.id IN ( SELECT t3."parentId" @@ -988,7 +1015,7 @@ func (q *Queries) ListWorkflowsForEvent(ctx context.Context, db DBTX, arg ListWo const listWorkflowsLatestRuns = `-- name: ListWorkflowsLatestRuns :many SELECT - DISTINCT ON (workflow."id") runs."createdAt", runs."updatedAt", runs."deletedAt", runs."tenantId", runs."workflowVersionId", runs.status, runs.error, runs."startedAt", runs."finishedAt", runs."concurrencyGroupId", runs."displayName", runs.id, runs."childIndex", runs."childKey", runs."parentId", runs."parentStepRunId", runs."additionalMetadata", workflow."id" as "workflowId" + DISTINCT ON (workflow."id") runs."createdAt", runs."updatedAt", runs."deletedAt", runs."tenantId", runs."workflowVersionId", runs.status, runs.error, runs."startedAt", runs."finishedAt", runs."concurrencyGroupId", runs."displayName", runs.id, runs."childIndex", runs."childKey", runs."parentId", runs."parentStepRunId", runs."additionalMetadata", runs.duration, workflow."id" as "workflowId" FROM "WorkflowRun" as runs LEFT JOIN @@ -997,6 +1024,9 @@ LEFT JOIN "Workflow" as workflow ON workflowVersion."workflowId" = workflow."id" WHERE runs."tenantId" = $1 AND + runs."deletedAt" IS NULL AND + workflow."deletedAt" IS NULL AND + workflowVersion."deletedAt" IS NULL AND ( $2::text IS NULL OR workflow."id" IN ( @@ -1064,6 +1094,7 @@ func (q *Queries) ListWorkflowsLatestRuns(ctx context.Context, db DBTX, arg List &i.WorkflowRun.ParentId, &i.WorkflowRun.ParentStepRunId, &i.WorkflowRun.AdditionalMetadata, + &i.WorkflowRun.Duration, &i.WorkflowId, ); err != nil { return nil, err @@ -1076,6 +1107,36 @@ func (q *Queries) ListWorkflowsLatestRuns(ctx context.Context, db DBTX, arg List return items, nil } +const softDeleteWorkflow = `-- name: SoftDeleteWorkflow :one +WITH versions AS ( + UPDATE "WorkflowVersion" + SET "deletedAt" = CURRENT_TIMESTAMP + WHERE "workflowId" = $1::uuid +) +UPDATE "Workflow" +SET + -- set name to the current name plus a random suffix to avoid conflicts + "name" = "name" || '-' || gen_random_uuid(), + "deletedAt" = CURRENT_TIMESTAMP +WHERE "id" = $1::uuid +RETURNING id, "createdAt", "updatedAt", "deletedAt", "tenantId", name, description +` + +func (q *Queries) SoftDeleteWorkflow(ctx context.Context, db DBTX, id pgtype.UUID) (*Workflow, error) { + row := db.QueryRow(ctx, softDeleteWorkflow, id) + var i Workflow + err := row.Scan( + &i.ID, + &i.CreatedAt, + &i.UpdatedAt, + &i.DeletedAt, + &i.TenantId, + &i.Name, + &i.Description, + ) + return &i, err +} + const upsertAction = `-- name: UpsertAction :one INSERT INTO "Action" ( "id", diff --git a/pkg/repository/prisma/event.go b/pkg/repository/prisma/event.go index 25a5946cb..e0e549754 100644 --- a/pkg/repository/prisma/event.go +++ b/pkg/repository/prisma/event.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "time" "github.com/google/uuid" "github.com/jackc/pgx/v5" @@ -97,6 +98,7 @@ func (r *eventAPIRepository) ListEvents(tenantId string, opts *repository.ListEv if opts.AdditionalMetadata != nil { queryParams.AdditionalMetadata = opts.AdditionalMetadata + countParams.AdditionalMetadata = opts.AdditionalMetadata } orderByField := "createdAt" @@ -111,6 +113,7 @@ func (r *eventAPIRepository) ListEvents(tenantId string, opts *repository.ListEv } queryParams.Orderby = orderByField + " " + orderByDirection + countParams.Orderby = orderByField + " " + orderByDirection tx, err := r.pool.Begin(context.Background()) @@ -181,8 +184,9 @@ func (r *eventAPIRepository) ListEventKeys(tenantId string) ([]string, error) { } func (r *eventAPIRepository) GetEventById(id string) (*db.EventModel, error) { - return r.client.Event.FindUnique( + return r.client.Event.FindFirst( db.Event.ID.Equals(id), + db.Event.DeletedAt.IsNull(), ).Exec(context.Background()) } @@ -190,6 +194,7 @@ func (r *eventAPIRepository) ListEventsById(tenantId string, ids []string) ([]db return r.client.Event.FindMany( db.Event.ID.In(ids), db.Event.TenantID.Equals(tenantId), + db.Event.DeletedAt.IsNull(), ).Exec(context.Background()) } @@ -285,3 +290,38 @@ func (r *eventEngineRepository) ListEventsByIds(ctx context.Context, tenantId st Ids: pgIds, }) } + +func (r *eventEngineRepository) SoftDeleteExpiredEvents(ctx context.Context, tenantId string, before time.Time) (bool, error) { + hasMore, err := r.queries.SoftDeleteExpiredEvents(ctx, r.pool, dbsqlc.SoftDeleteExpiredEventsParams{ + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + Createdbefore: sqlchelpers.TimestampFromTime(before), + Limit: 1000, + }) + + if err != nil { + if errors.Is(err, pgx.ErrNoRows) { + return false, nil + } + + return false, err + } + + return hasMore, nil +} + +func (r *eventEngineRepository) ClearEventPayloadData(ctx context.Context, tenantId string) (bool, error) { + hasMore, err := r.queries.ClearEventPayloadData(ctx, r.pool, dbsqlc.ClearEventPayloadDataParams{ + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + Limit: 1000, + }) + + if err != nil { + if errors.Is(err, pgx.ErrNoRows) { + return false, nil + } + + return false, err + } + + return hasMore, nil +} diff --git a/pkg/repository/prisma/job_run.go b/pkg/repository/prisma/job_run.go index 2c11d75b1..8f00eba21 100644 --- a/pkg/repository/prisma/job_run.go +++ b/pkg/repository/prisma/job_run.go @@ -2,7 +2,9 @@ package prisma import ( "context" + "errors" + "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgxpool" "github.com/rs/zerolog" @@ -109,3 +111,20 @@ func setJobRunStatusRunning(ctx context.Context, pool *pgxpool.Pool, queries *db return tx.Commit(context.Background()) } + +func (r *jobRunEngineRepository) ClearJobRunPayloadData(ctx context.Context, tenantId string) (bool, error) { + hasMore, err := r.queries.ClearJobRunLookupData(ctx, r.pool, dbsqlc.ClearJobRunLookupDataParams{ + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + Limit: 1000, + }) + + if err != nil { + if errors.Is(err, pgx.ErrNoRows) { + return false, nil + } + + return false, err + } + + return hasMore, nil +} diff --git a/pkg/repository/prisma/repository.go b/pkg/repository/prisma/repository.go index 7b9f9186a..9bb74fbee 100644 --- a/pkg/repository/prisma/repository.go +++ b/pkg/repository/prisma/repository.go @@ -276,7 +276,7 @@ func (r *engineRepository) WebhookWorker() repository.WebhookWorkerEngineReposit return r.webhookWorker } -func NewEngineRepository(pool *pgxpool.Pool, fs ...PrismaRepositoryOpt) repository.EngineRepository { +func NewEngineRepository(pool *pgxpool.Pool, cf *server.ConfigFileRuntime, fs ...PrismaRepositoryOpt) repository.EngineRepository { opts := defaultPrismaRepositoryOpts() for _, f := range fs { @@ -297,7 +297,7 @@ func NewEngineRepository(pool *pgxpool.Pool, fs ...PrismaRepositoryOpt) reposito event: NewEventEngineRepository(pool, opts.v, opts.l, opts.metered), getGroupKeyRun: NewGetGroupKeyRunRepository(pool, opts.v, opts.l), jobRun: NewJobRunEngineRepository(pool, opts.v, opts.l), - stepRun: NewStepRunEngineRepository(pool, opts.v, opts.l), + stepRun: NewStepRunEngineRepository(pool, opts.v, opts.l, cf), tenant: NewTenantEngineRepository(pool, opts.v, opts.l, opts.cache), tenantAlerting: NewTenantAlertingEngineRepository(pool, opts.v, opts.l, opts.cache), ticker: NewTickerRepository(pool, opts.v, opts.l), diff --git a/pkg/repository/prisma/step_run.go b/pkg/repository/prisma/step_run.go index 0a59e3468..addcc7b15 100644 --- a/pkg/repository/prisma/step_run.go +++ b/pkg/repository/prisma/step_run.go @@ -15,6 +15,7 @@ import ( "github.com/rs/zerolog" "github.com/hatchet-dev/hatchet/internal/telemetry" + "github.com/hatchet-dev/hatchet/pkg/config/server" "github.com/hatchet-dev/hatchet/pkg/repository" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" @@ -43,8 +44,9 @@ func NewStepRunAPIRepository(client *db.PrismaClient, pool *pgxpool.Pool, v vali } func (s *stepRunAPIRepository) GetStepRunById(tenantId, stepRunId string) (*db.StepRunModel, error) { - return s.client.StepRun.FindUnique( + return s.client.StepRun.FindFirst( db.StepRun.ID.Equals(stepRunId), + db.StepRun.DeletedAt.IsNull(), ).With( db.StepRun.Children.Fetch(), db.StepRun.ChildWorkflowRuns.Fetch(), @@ -199,9 +201,10 @@ type stepRunEngineRepository struct { v validator.Validator l *zerolog.Logger queries *dbsqlc.Queries + cf *server.ConfigFileRuntime } -func NewStepRunEngineRepository(pool *pgxpool.Pool, v validator.Validator, l *zerolog.Logger) repository.StepRunEngineRepository { +func NewStepRunEngineRepository(pool *pgxpool.Pool, v validator.Validator, l *zerolog.Logger, cf *server.ConfigFileRuntime) repository.StepRunEngineRepository { queries := dbsqlc.New() return &stepRunEngineRepository{ @@ -209,9 +212,17 @@ func NewStepRunEngineRepository(pool *pgxpool.Pool, v validator.Validator, l *ze v: v, l: l, queries: queries, + cf: cf, } } +func (s *stepRunEngineRepository) GetStepRunMetaForEngine(ctx context.Context, tenantId, stepRunId string) (*dbsqlc.GetStepRunMetaRow, error) { + return s.queries.GetStepRunMeta(ctx, s.pool, dbsqlc.GetStepRunMetaParams{ + Steprunid: sqlchelpers.UUIDFromStr(stepRunId), + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + }) +} + func (s *stepRunEngineRepository) ListRunningStepRunsForTicker(ctx context.Context, tickerId string) ([]*dbsqlc.GetStepRunForEngineRow, error) { tx, err := s.pool.Begin(ctx) @@ -243,7 +254,12 @@ func (s *stepRunEngineRepository) ListRunningStepRunsForTicker(ctx context.Conte err = tx.Commit(ctx) - return res, err + if err != nil { + return nil, err + } + + return res, nil + } func (s *stepRunEngineRepository) ListStepRuns(ctx context.Context, tenantId string, opts *repository.ListStepRunsOpts) ([]*dbsqlc.GetStepRunForEngineRow, error) { @@ -312,8 +328,22 @@ func (s *stepRunEngineRepository) ListStepRunsToRequeue(ctx context.Context, ten defer deferRollback(ctx, s.l, tx.Rollback) + // get the limits for the step runs + limit, err := s.queries.GetMaxRunsLimit(ctx, tx, pgTenantId) + + if err != nil { + return nil, err + } + + if limit > int32(s.cf.RequeueLimit) { + limit = int32(s.cf.RequeueLimit) + } + // get the step run and make sure it's still in pending - stepRunIds, err := s.queries.ListStepRunsToRequeue(ctx, tx, pgTenantId) + stepRunIds, err := s.queries.ListStepRunsToRequeue(ctx, tx, dbsqlc.ListStepRunsToRequeueParams{ + Tenantid: pgTenantId, + Limit: limit, + }) if err != nil { return nil, err @@ -373,6 +403,42 @@ func (s *stepRunEngineRepository) ListStepRunsToReassign(ctx context.Context, te return stepRuns, nil } +func (s *stepRunEngineRepository) ListStepRunsToTimeout(ctx context.Context, tenantId string) ([]*dbsqlc.GetStepRunForEngineRow, error) { + pgTenantId := sqlchelpers.UUIDFromStr(tenantId) + + tx, err := s.pool.Begin(ctx) + + if err != nil { + return nil, err + } + + defer deferRollback(ctx, s.l, tx.Rollback) + + // get the step run and make sure it's still in pending + stepRunIds, err := s.queries.ListStepRunsToTimeout(ctx, tx, pgTenantId) + + if err != nil { + return nil, err + } + + stepRuns, err := s.queries.GetStepRunForEngine(ctx, tx, dbsqlc.GetStepRunForEngineParams{ + Ids: stepRunIds, + TenantId: pgTenantId, + }) + + if err != nil { + return nil, err + } + + err = tx.Commit(ctx) + + if err != nil { + return nil, err + } + + return stepRuns, nil +} + var deadlockRetry = func(l *zerolog.Logger, f func() error) error { return genericRetry(l.Warn(), 3, f, "deadlock", func(err error) (bool, error) { return strings.Contains(err.Error(), "deadlock detected"), err @@ -452,11 +518,11 @@ func (s *stepRunEngineRepository) ReleaseStepRunSemaphore(ctx context.Context, t return fmt.Errorf("could not get step run for engine: %w", err) } - if stepRun.StepRun.SemaphoreReleased { + if stepRun.SRSemaphoreReleased { return nil } - data := map[string]interface{}{"worker_id": sqlchelpers.UUIDToStr(stepRun.StepRun.WorkerId)} + data := map[string]interface{}{"worker_id": sqlchelpers.UUIDToStr(stepRun.SRWorkerId)} dataBytes, err := json.Marshal(data) @@ -465,7 +531,7 @@ func (s *stepRunEngineRepository) ReleaseStepRunSemaphore(ctx context.Context, t } err = s.queries.CreateStepRunEvent(ctx, tx, dbsqlc.CreateStepRunEventParams{ - Steprunid: stepRun.StepRun.ID, + Steprunid: stepRun.SRID, Reason: dbsqlc.StepRunEventReasonSLOTRELEASED, Severity: dbsqlc.StepRunEventSeverityINFO, Message: "Slot released", @@ -477,8 +543,8 @@ func (s *stepRunEngineRepository) ReleaseStepRunSemaphore(ctx context.Context, t } _, err = s.queries.ReleaseWorkerSemaphoreSlot(ctx, tx, dbsqlc.ReleaseWorkerSemaphoreSlotParams{ - Steprunid: stepRun.StepRun.ID, - Tenantid: stepRun.StepRun.TenantId, + Steprunid: stepRun.SRID, + Tenantid: stepRun.SRTenantId, }) if err != nil { @@ -486,8 +552,8 @@ func (s *stepRunEngineRepository) ReleaseStepRunSemaphore(ctx context.Context, t } _, err = s.queries.UnlinkStepRunFromWorker(ctx, tx, dbsqlc.UnlinkStepRunFromWorkerParams{ - Steprunid: stepRun.StepRun.ID, - Tenantid: stepRun.StepRun.TenantId, + Steprunid: stepRun.SRID, + Tenantid: stepRun.SRTenantId, }) if err != nil { @@ -496,8 +562,8 @@ func (s *stepRunEngineRepository) ReleaseStepRunSemaphore(ctx context.Context, t // Update the Step Run to release the semaphore _, err = s.queries.UpdateStepRun(ctx, tx, dbsqlc.UpdateStepRunParams{ - ID: stepRun.StepRun.ID, - Tenantid: stepRun.StepRun.TenantId, + ID: stepRun.SRID, + Tenantid: stepRun.SRTenantId, SemaphoreReleased: pgtype.Bool{ Valid: true, Bool: true, @@ -523,8 +589,8 @@ func (s *stepRunEngineRepository) releaseWorkerSemaphore(ctx context.Context, st defer deferRollback(ctx, s.l, tx.Rollback) _, err = s.queries.ReleaseWorkerSemaphoreSlot(ctx, tx, dbsqlc.ReleaseWorkerSemaphoreSlotParams{ - Steprunid: stepRun.StepRun.ID, - Tenantid: stepRun.StepRun.TenantId, + Steprunid: stepRun.SRID, + Tenantid: stepRun.SRTenantId, }) if err != nil && !errors.Is(err, pgx.ErrNoRows) { @@ -535,8 +601,8 @@ func (s *stepRunEngineRepository) releaseWorkerSemaphore(ctx context.Context, st // so that we don't re-increment the old worker semaphore on each retry if err == nil { _, err = s.queries.UnlinkStepRunFromWorker(ctx, tx, dbsqlc.UnlinkStepRunFromWorkerParams{ - Steprunid: stepRun.StepRun.ID, - Tenantid: stepRun.StepRun.TenantId, + Steprunid: stepRun.SRID, + Tenantid: stepRun.SRTenantId, }) if err != nil { @@ -556,7 +622,7 @@ func (e *errNoWorkerWithSlots) Error() string { return fmt.Sprintf("no worker available, slots left: %d", e.totalSlots) } -func (s *stepRunEngineRepository) assignStepRunToWorkerAttempt(ctx context.Context, stepRun *dbsqlc.GetStepRunForEngineRow) (*dbsqlc.AssignStepRunToWorkerRow, error) { +func (s *stepRunEngineRepository) assignStepRunToWorkerAttempt(ctx context.Context, stepRun *dbsqlc.GetStepRunForEngineRow) (*dbsqlc.AcquireWorkerSemaphoreSlotAndAssignRow, error) { tx, err := s.pool.Begin(ctx) if err != nil { @@ -565,48 +631,85 @@ func (s *stepRunEngineRepository) assignStepRunToWorkerAttempt(ctx context.Conte defer deferRollback(ctx, s.l, tx.Rollback) - // acquire a semaphore slot - semaphore, err := s.queries.AcquireWorkerSemaphoreSlot(ctx, tx, dbsqlc.AcquireWorkerSemaphoreSlotParams{ - Steprunid: stepRun.StepRun.ID, - Tenantid: stepRun.StepRun.TenantId, - Actionid: stepRun.ActionId, - }) + // if stepRun.WorkflowRunStickyState { + // fmt + // } - if err != nil { - if errors.Is(err, pgx.ErrNoRows) { - return nil, &errNoWorkerWithSlots{totalSlots: int(0)} + var DesiredWorkerId pgtype.UUID + + if stepRun.StickyStrategy.Valid { + lockedStickyState, err := s.queries.GetWorkflowRunStickyStateForUpdate(ctx, tx, dbsqlc.GetWorkflowRunStickyStateForUpdateParams{ + Workflowrunid: stepRun.WorkflowRunId, + Tenantid: stepRun.SRTenantId, + }) + + if err != nil { + return nil, fmt.Errorf("could not get workflow run sticky state: %w", err) + } + + // confirm the worker is still available + if lockedStickyState.DesiredWorkerId.Valid { + + checkedWorker, err := s.queries.CheckWorker(ctx, tx, dbsqlc.CheckWorkerParams{ + Workerid: lockedStickyState.DesiredWorkerId, + Tenantid: stepRun.SRTenantId, + }) + + if err != nil && !errors.Is(err, pgx.ErrNoRows) { + return nil, fmt.Errorf("could not check worker: %w", err) + } + + // if the worker is no longer available, desired worker will be nil and we'll reassign + // for soft strategy + DesiredWorkerId = lockedStickyState.DesiredWorkerId + + // if the strategy is hard, but the worker is not available, we can break early + if stepRun.StickyStrategy.StickyStrategy == dbsqlc.StickyStrategyHARD && !checkedWorker.Valid { + return nil, repository.ErrNoWorkerAvailable + } } - return nil, fmt.Errorf("could not acquire worker semaphore slot: %w", err) } - assigned, err := s.queries.AssignStepRunToWorker(ctx, tx, dbsqlc.AssignStepRunToWorkerParams{ - Steprunid: stepRun.StepRun.ID, - Tenantid: stepRun.StepRun.TenantId, + // acquire a semaphore slot + assigned, err := s.queries.AcquireWorkerSemaphoreSlotAndAssign(ctx, tx, dbsqlc.AcquireWorkerSemaphoreSlotAndAssignParams{ + Steprunid: stepRun.SRID, + Actionid: stepRun.ActionId, StepTimeout: stepRun.StepTimeout, - Workerid: semaphore.WorkerId, + Tenantid: stepRun.SRTenantId, + WorkerId: DesiredWorkerId, }) if err != nil { - if errors.Is(err, pgx.ErrNoRows) { - s.l.Warn().Err(err).Msg("no rows returned from worker assign") - } + return nil, fmt.Errorf("could not acquire worker semaphore slot: %w", err) + } - return nil, fmt.Errorf("query to assign worker failed: %w", err) + if assigned.RemainingSlots == 0 { + return nil, &errNoWorkerWithSlots{totalSlots: int(0)} } - rateLimits, err := s.queries.UpdateStepRateLimits(ctx, tx, dbsqlc.UpdateStepRateLimitsParams{ - Stepid: stepRun.StepId, - Tenantid: stepRun.StepRun.TenantId, - }) + if assigned.ExhaustedRateLimitCount > 0 { + return nil, repository.ErrRateLimitExceeded + } - if err != nil && !errors.Is(err, pgx.ErrNoRows) { - return nil, fmt.Errorf("could not update rate limit: %w", err) + if !assigned.WorkerId.Valid || !assigned.DispatcherId.Valid { + // this likely means that the step run was skip locked by another assign attempt + return nil, repository.ErrStepRunIsNotAssigned } - if len(rateLimits) > 0 { - for _, rateLimit := range rateLimits { - if rateLimit.Value < 0 { - return nil, repository.ErrRateLimitExceeded + if stepRun.StickyStrategy.Valid { + // check if the worker is the same as the previous worker + workerId := sqlchelpers.UUIDToStr(assigned.WorkerId) + previousWorkerId := sqlchelpers.UUIDToStr(DesiredWorkerId) + + if workerId != previousWorkerId { + err = s.queries.UpdateWorkflowRunStickyState(ctx, tx, dbsqlc.UpdateWorkflowRunStickyStateParams{ + Workflowrunid: stepRun.WorkflowRunId, + DesiredWorkerId: assigned.WorkerId, + Tenantid: stepRun.SRTenantId, + }) + + if err != nil { + return nil, fmt.Errorf("could not update sticky state: %w", err) } } } @@ -620,7 +723,7 @@ func (s *stepRunEngineRepository) assignStepRunToWorkerAttempt(ctx context.Conte return assigned, nil } -func (s *stepRunEngineRepository) deferredStepRunEvent( +func (s *stepRunEngineRepository) DeferredStepRunEvent( stepRunId pgtype.UUID, reason dbsqlc.StepRunEventReason, severity dbsqlc.StepRunEventSeverity, @@ -630,14 +733,38 @@ func (s *stepRunEngineRepository) deferredStepRunEvent( ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() + deferredStepRunEvent( + ctx, + s.l, + s.pool, + s.queries, + stepRunId, + reason, + severity, + message, + data, + ) +} + +func deferredStepRunEvent( + ctx context.Context, + l *zerolog.Logger, + dbtx dbsqlc.DBTX, + queries *dbsqlc.Queries, + stepRunId pgtype.UUID, + reason dbsqlc.StepRunEventReason, + severity dbsqlc.StepRunEventSeverity, + message string, + data map[string]interface{}, +) { dataBytes, err := json.Marshal(data) if err != nil { - s.l.Err(err).Msg("could not marshal deferred step run event data") + l.Err(err).Msg("could not marshal deferred step run event data") return } - err = s.queries.CreateStepRunEvent(ctx, s.pool, dbsqlc.CreateStepRunEventParams{ + err = queries.CreateStepRunEvent(ctx, dbtx, dbsqlc.CreateStepRunEventParams{ Steprunid: stepRunId, Message: message, Reason: reason, @@ -646,10 +773,57 @@ func (s *stepRunEngineRepository) deferredStepRunEvent( }) if err != nil { - s.l.Err(err).Msg("could not create deferred step run event") + l.Err(err).Msg("could not create deferred step run event") } } +func (s *stepRunEngineRepository) UnassignStepRunFromWorker(ctx context.Context, tenantId, stepRunId string) error { + return deadlockRetry(s.l, func() error { + tx, err := s.pool.Begin(ctx) + + if err != nil { + return err + } + + pgStepRunId := sqlchelpers.UUIDFromStr(stepRunId) + pgTenantId := sqlchelpers.UUIDFromStr(tenantId) + + defer deferRollback(ctx, s.l, tx.Rollback) + + _, err = s.queries.ReleaseWorkerSemaphoreSlot(ctx, tx, dbsqlc.ReleaseWorkerSemaphoreSlotParams{ + Steprunid: pgStepRunId, + Tenantid: pgTenantId, + }) + + if err != nil && !errors.Is(err, pgx.ErrNoRows) { + return fmt.Errorf("could not release previous worker semaphore: %w", err) + } + + _, err = s.queries.UnlinkStepRunFromWorker(ctx, tx, dbsqlc.UnlinkStepRunFromWorkerParams{ + Steprunid: pgStepRunId, + Tenantid: pgTenantId, + }) + + if err != nil { + return fmt.Errorf("could not unlink step run from worker: %w", err) + } + _, err = s.queries.UpdateStepRun(ctx, tx, dbsqlc.UpdateStepRunParams{ + ID: pgStepRunId, + Tenantid: pgTenantId, + Status: dbsqlc.NullStepRunStatus{ + StepRunStatus: dbsqlc.StepRunStatusPENDINGASSIGNMENT, + Valid: true, + }, + }) + + if err != nil { + return fmt.Errorf("could not update step run status: %w", err) + } + + return tx.Commit(ctx) + }) +} + func (s *stepRunEngineRepository) AssignStepRunToWorker(ctx context.Context, stepRun *dbsqlc.GetStepRunForEngineRow) (string, string, error) { err := s.releaseWorkerSemaphore(ctx, stepRun) @@ -657,7 +831,7 @@ func (s *stepRunEngineRepository) AssignStepRunToWorker(ctx context.Context, ste return "", "", err } - var assigned *dbsqlc.AssignStepRunToWorkerRow + var assigned *dbsqlc.AcquireWorkerSemaphoreSlotAndAssignRow err = unassignedRetry(s.l, func() (err error) { assigned, err = s.assignStepRunToWorkerAttempt(ctx, stepRun) @@ -673,7 +847,7 @@ func (s *stepRunEngineRepository) AssignStepRunToWorker(ctx context.Context, ste return err } - return fmt.Errorf("could not assign worker for step run %s (step %s): %w", sqlchelpers.UUIDToStr(stepRun.StepRun.ID), stepRun.StepReadableId.String, err) + return fmt.Errorf("could not assign worker for step run %s (step %s): %w", sqlchelpers.UUIDToStr(stepRun.SRID), stepRun.StepReadableId.String, err) } return nil @@ -682,54 +856,117 @@ func (s *stepRunEngineRepository) AssignStepRunToWorker(ctx context.Context, ste if err != nil { var target *errNoWorkerWithSlots + labels, labelErr := s.queries.GetStepDesiredWorkerLabels(ctx, s.pool, stepRun.StepId) + + if labelErr != nil { + return "", "", fmt.Errorf("could not get step desired worker labels: %w", err) + } + + semaphoreExtra := s.unmarshalSemaphoreExtraData(nil, &labels) + if errors.As(err, &target) { - defer s.deferredStepRunEvent( - stepRun.StepRun.ID, + defer s.DeferredStepRunEvent( + stepRun.SRID, dbsqlc.StepRunEventReasonREQUEUEDNOWORKER, dbsqlc.StepRunEventSeverityWARNING, "No worker available", - nil, + map[string]interface{}{ + "worker_id": nil, + "semaphore": semaphoreExtra, + }, ) return "", "", repository.ErrNoWorkerAvailable } if errors.Is(err, repository.ErrNoWorkerAvailable) { - defer s.deferredStepRunEvent( - stepRun.StepRun.ID, + defer s.DeferredStepRunEvent( + stepRun.SRID, dbsqlc.StepRunEventReasonREQUEUEDNOWORKER, dbsqlc.StepRunEventSeverityWARNING, "No worker available", - nil, + map[string]interface{}{ + "worker_id": nil, + "semaphore": semaphoreExtra, + }, ) } if errors.Is(err, repository.ErrRateLimitExceeded) { - defer s.deferredStepRunEvent( - stepRun.StepRun.ID, + defer s.DeferredStepRunEvent( + stepRun.SRID, dbsqlc.StepRunEventReasonREQUEUEDRATELIMIT, dbsqlc.StepRunEventSeverityWARNING, "Rate limit exceeded", - nil, + nil, // TODO add label data ) } return "", "", err } - defer s.deferredStepRunEvent( - stepRun.StepRun.ID, + semaphoreExtra := s.unmarshalSemaphoreExtraData(assigned, nil) + + defer s.DeferredStepRunEvent( + stepRun.SRID, dbsqlc.StepRunEventReasonASSIGNED, dbsqlc.StepRunEventSeverityINFO, fmt.Sprintf("Assigned to worker %s", sqlchelpers.UUIDToStr(assigned.WorkerId)), map[string]interface{}{ "worker_id": sqlchelpers.UUIDToStr(assigned.WorkerId), + "semaphore": semaphoreExtra, }, ) return sqlchelpers.UUIDToStr(assigned.WorkerId), sqlchelpers.UUIDToStr(assigned.DispatcherId), nil } +func (s *stepRunEngineRepository) unmarshalSemaphoreExtraData(semaphore *dbsqlc.AcquireWorkerSemaphoreSlotAndAssignRow, desiredLabelBytes *[]byte) map[string]interface{} { + // Initialize the result maps + var desiredLabels []map[string]interface{} + var workerLabels []map[string]interface{} + + // Check if desiredLabelBytes is not nil and unmarshal it + switch { + case desiredLabelBytes != nil: + err := json.Unmarshal(*desiredLabelBytes, &desiredLabels) + if err != nil && err.Error() != "unexpected end of JSON input" { + s.l.Warn().Err(err).Msg("failed to unmarshal desiredLabelBytes") + } + case semaphore != nil: + // If desiredLabelBytes is nil, use semaphore.DesiredLabels + err := json.Unmarshal(semaphore.DesiredLabels, &desiredLabels) + if err != nil { + s.l.Warn().Err(err).Msg("failed to unmarshal semaphore.DesiredLabels") + } + + default: + s.l.Warn().Msg("semaphore is nil, cannot unmarshal DesiredLabels") + } + + // Unmarshal WorkerLabels from semaphore if it's not nil + if semaphore != nil && semaphore.WorkerLabels != nil { + err := json.Unmarshal(semaphore.WorkerLabels, &workerLabels) + if err != nil { + s.l.Warn().Err(err).Msg("failed to unmarshal semaphore.WorkerLabels") + } + } + + // Filter values of desiredLabels where desiredLabels.key is empty + // HACK this is a workaround for the fact that the sqlc query sometimes returns null rows + filteredDesiredLabels := make([]map[string]interface{}, 0) + for _, label := range desiredLabels { + if label["key"] != "" && label["key"] != nil { + filteredDesiredLabels = append(filteredDesiredLabels, label) + } + } + + return map[string]interface{}{ + "desired_worker_labels": filteredDesiredLabels, + "actual_worker_labels": workerLabels, + } +} + func (s *stepRunEngineRepository) UpdateStepRun(ctx context.Context, tenantId, stepRunId string, opts *repository.UpdateStepRunOpts) (*dbsqlc.GetStepRunForEngineRow, *repository.StepRunUpdateInfo, error) { ctx, span := telemetry.NewSpan(ctx, "update-step-run") defer span.End() @@ -738,7 +975,7 @@ func (s *stepRunEngineRepository) UpdateStepRun(ctx context.Context, tenantId, s return nil, nil, err } - updateParams, createEventParams, updateJobRunLookupDataParams, resolveJobRunParams, resolveLaterStepRunsParams, err := getUpdateParams(tenantId, stepRunId, opts) + updateParams, createEventParams, updateJobRunLookupDataParams, err := getUpdateParams(tenantId, stepRunId, opts) if err != nil { return nil, nil, err @@ -782,22 +1019,7 @@ func (s *stepRunEngineRepository) UpdateStepRun(ctx context.Context, tenantId, s } err = deadlockRetry(s.l, func() error { - tx, err := s.pool.Begin(ctx) - - if err != nil { - return err - } - - defer deferRollback(ctx, s.l, tx.Rollback) - - updateInfo, err = s.updateStepRunExtra(ctx, tx, tenantId, resolveJobRunParams, resolveLaterStepRunsParams) - - if err != nil { - return err - } - - err = tx.Commit(ctx) - + updateInfo, err = s.ResolveRelatedStatuses(ctx, stepRun.SRTenantId, stepRun.SRID) return err }) @@ -816,7 +1038,7 @@ func (s *stepRunEngineRepository) ReplayStepRun(ctx context.Context, tenantId, s return nil, err } - updateParams, createEventParams, updateJobRunLookupDataParams, _, _, err := getUpdateParams(tenantId, stepRunId, opts) + updateParams, createEventParams, updateJobRunLookupDataParams, err := getUpdateParams(tenantId, stepRunId, opts) if err != nil { return nil, err @@ -849,7 +1071,7 @@ func (s *stepRunEngineRepository) ReplayStepRun(ctx context.Context, tenantId, s } // reset the job run, workflow run and all fields as part of the core tx - _, err = s.queries.ReplayStepRunResetWorkflowRun(ctx, tx, stepRun.JobRunId) + _, err = s.queries.ReplayStepRunResetWorkflowRun(ctx, tx, stepRun.WorkflowRunId) if err != nil { return err @@ -875,7 +1097,7 @@ func (s *stepRunEngineRepository) ReplayStepRun(ctx context.Context, tenantId, s laterStepRunCp := laterStepRun laterStepRunId := sqlchelpers.UUIDToStr(laterStepRun.ID) - err = s.archiveStepRunResult(ctx, tx, tenantId, laterStepRunId) + err = archiveStepRunResult(ctx, s.queries, tx, tenantId, laterStepRunId) if err != nil { return err @@ -896,7 +1118,7 @@ func (s *stepRunEngineRepository) ReplayStepRun(ctx context.Context, tenantId, s } // create a deferred event for each of these step runs - defer s.deferredStepRunEvent( + defer s.DeferredStepRunEvent( laterStepRunCp.ID, dbsqlc.StepRunEventReasonRETRIEDBYUSER, dbsqlc.StepRunEventSeverityINFO, @@ -935,7 +1157,7 @@ func (s *stepRunEngineRepository) PreflightCheckReplayStepRun(ctx context.Contex return err } - if !repository.IsFinalStepRunStatus(stepRun.StepRun.Status) { + if !repository.IsFinalStepRunStatus(stepRun.SRStatus) { return repository.ErrPreflightReplayStepRunNotInFinalState } @@ -1068,8 +1290,6 @@ func (s *stepRunEngineRepository) QueueStepRun(ctx context.Context, tenantId, st updateParams, createEventParams, updateJobRunLookupDataParams, - resolveJobRunParams, - resolveLaterStepRunsParams, err := getUpdateParams(tenantId, stepRunId, opts) if err != nil { @@ -1129,22 +1349,7 @@ func (s *stepRunEngineRepository) QueueStepRun(ctx context.Context, tenantId, st } retrierExtraErr := deadlockRetry(s.l, func() error { - tx, err := s.pool.Begin(ctx) - - if err != nil { - return err - } - - defer deferRollback(ctx, s.l, tx.Rollback) - - _, err = s.updateStepRunExtra(ctx, tx, tenantId, resolveJobRunParams, resolveLaterStepRunsParams) - - if err != nil { - return err - } - - err = tx.Commit(ctx) - + _, err = s.ResolveRelatedStatuses(ctx, stepRun.SRTenantId, stepRun.SRID) return err }) @@ -1203,8 +1408,6 @@ func getUpdateParams( updateParams dbsqlc.UpdateStepRunParams, createStepRunEventParams *dbsqlc.CreateStepRunEventParams, updateJobRunLookupDataParams *dbsqlc.UpdateJobRunLookupDataWithStepRunParams, - resolveJobRunParams dbsqlc.ResolveJobRunStatusParams, - resolveLaterStepRunsParams dbsqlc.ResolveLaterStepRunsParams, err error, ) { pgTenantId := sqlchelpers.UUIDFromStr(tenantId) @@ -1254,16 +1457,6 @@ func getUpdateParams( } } - resolveJobRunParams = dbsqlc.ResolveJobRunStatusParams{ - Steprunid: pgStepRunId, - Tenantid: pgTenantId, - } - - resolveLaterStepRunsParams = dbsqlc.ResolveLaterStepRunsParams{ - Steprunid: pgStepRunId, - Tenantid: pgTenantId, - } - if opts.RequeueAfter != nil { updateParams.RequeueAfter = sqlchelpers.TimestampFromTime(*opts.RequeueAfter) } @@ -1284,7 +1477,7 @@ func getUpdateParams( runStatus := dbsqlc.NullStepRunStatus{} if err := runStatus.Scan(string(*opts.Status)); err != nil { - return updateParams, nil, nil, resolveJobRunParams, resolveLaterStepRunsParams, err + return updateParams, nil, nil, err } updateParams.Status = runStatus @@ -1320,8 +1513,6 @@ func getUpdateParams( return updateParams, createParams, updateJobRunLookupDataParams, - resolveJobRunParams, - resolveLaterStepRunsParams, nil } @@ -1394,23 +1585,35 @@ func (s *stepRunEngineRepository) updateStepRunCore( return stepRuns[0], nil } -func (s *stepRunEngineRepository) updateStepRunExtra( +func (s *stepRunEngineRepository) ResolveRelatedStatuses( ctx context.Context, - tx pgx.Tx, - tenantId string, - resolveJobRunParams dbsqlc.ResolveJobRunStatusParams, - resolveLaterStepRunsParams dbsqlc.ResolveLaterStepRunsParams, + tenantId pgtype.UUID, + stepRunId pgtype.UUID, ) (*repository.StepRunUpdateInfo, error) { + tx, err := s.pool.Begin(ctx) + + if err != nil { + return nil, err + } + + defer deferRollback(ctx, s.l, tx.Rollback) + ctx, span := telemetry.NewSpan(ctx, "update-step-run-extra") // nolint:ineffassign defer span.End() - _, err := s.queries.ResolveLaterStepRuns(ctx, tx, resolveLaterStepRunsParams) + _, err = s.queries.ResolveLaterStepRuns(ctx, tx, dbsqlc.ResolveLaterStepRunsParams{ + Steprunid: stepRunId, + Tenantid: tenantId, + }) if err != nil { return nil, fmt.Errorf("could not resolve later step runs: %w", err) } - jobRun, err := s.queries.ResolveJobRunStatus(ctx, tx, resolveJobRunParams) + jobRun, err := s.queries.ResolveJobRunStatus(ctx, tx, dbsqlc.ResolveJobRunStatusParams{ + Steprunid: stepRunId, + Tenantid: tenantId, + }) if err != nil { return nil, fmt.Errorf("could not resolve job run status: %w", err) @@ -1418,7 +1621,7 @@ func (s *stepRunEngineRepository) updateStepRunExtra( resolveWorkflowRunParams := dbsqlc.ResolveWorkflowRunStatusParams{ Jobrunid: jobRun.ID, - Tenantid: sqlchelpers.UUIDFromStr(tenantId), + Tenantid: tenantId, } workflowRun, err := s.queries.ResolveWorkflowRunStatus(ctx, tx, resolveWorkflowRunParams) @@ -1427,6 +1630,12 @@ func (s *stepRunEngineRepository) updateStepRunExtra( return nil, fmt.Errorf("could not resolve workflow run status: %w", err) } + err = tx.Commit(ctx) + + if err != nil { + return nil, fmt.Errorf("could commit resolve related statuses tx: %w", err) + } + return &repository.StepRunUpdateInfo{ JobRunFinalState: repository.IsFinalJobRunStatus(jobRun.Status), WorkflowRunFinalState: repository.IsFinalWorkflowRunStatus(workflowRun.Status), @@ -1457,6 +1666,13 @@ func (s *stepRunEngineRepository) getStepRunForEngineTx(ctx context.Context, dbt return res[0], nil } +func (s *stepRunEngineRepository) GetStepRunDataForEngine(ctx context.Context, tenantId, stepRunId string) (*dbsqlc.GetStepRunDataForEngineRow, error) { + return s.queries.GetStepRunDataForEngine(ctx, s.pool, dbsqlc.GetStepRunDataForEngineParams{ + ID: sqlchelpers.UUIDFromStr(stepRunId), + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + }) +} + func (s *stepRunEngineRepository) ListStartableStepRuns(ctx context.Context, tenantId, jobRunId string, parentStepRunId *string) ([]*dbsqlc.GetStepRunForEngineRow, error) { tx, err := s.pool.Begin(ctx) @@ -1495,11 +1711,11 @@ func (s *stepRunEngineRepository) ListStartableStepRuns(ctx context.Context, ten } func (s *stepRunEngineRepository) ArchiveStepRunResult(ctx context.Context, tenantId, stepRunId string) error { - return s.archiveStepRunResult(ctx, s.pool, tenantId, stepRunId) + return archiveStepRunResult(ctx, s.queries, s.pool, tenantId, stepRunId) } -func (s *stepRunEngineRepository) archiveStepRunResult(ctx context.Context, db dbsqlc.DBTX, tenantId, stepRunId string) error { - _, err := s.queries.ArchiveStepRunResultFromStepRun(ctx, db, dbsqlc.ArchiveStepRunResultFromStepRunParams{ +func archiveStepRunResult(ctx context.Context, queries *dbsqlc.Queries, db dbsqlc.DBTX, tenantId, stepRunId string) error { + _, err := queries.ArchiveStepRunResultFromStepRun(ctx, db, dbsqlc.ArchiveStepRunResultFromStepRunParams{ Tenantid: sqlchelpers.UUIDFromStr(tenantId), Steprunid: sqlchelpers.UUIDFromStr(stepRunId), }) @@ -1545,7 +1761,7 @@ func (s *stepRunEngineRepository) RefreshTimeoutBy(ctx context.Context, tenantId return nil, err } - defer s.deferredStepRunEvent( + defer s.DeferredStepRunEvent( stepRunUUID, dbsqlc.StepRunEventReasonTIMEOUTREFRESHED, dbsqlc.StepRunEventSeverityINFO, @@ -1554,3 +1770,20 @@ func (s *stepRunEngineRepository) RefreshTimeoutBy(ctx context.Context, tenantId return res, nil } + +func (s *stepRunEngineRepository) ClearStepRunPayloadData(ctx context.Context, tenantId string) (bool, error) { + hasMore, err := s.queries.ClearStepRunPayloadData(ctx, s.pool, dbsqlc.ClearStepRunPayloadDataParams{ + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + Limit: 1000, + }) + + if err != nil { + if errors.Is(err, pgx.ErrNoRows) { + return false, nil + } + + return false, err + } + + return hasMore, nil +} diff --git a/pkg/repository/prisma/stream_event.go b/pkg/repository/prisma/stream_event.go index 3013b202b..77eb8f1fd 100644 --- a/pkg/repository/prisma/stream_event.go +++ b/pkg/repository/prisma/stream_event.go @@ -33,6 +33,13 @@ func NewStreamEventsEngineRepository(pool *pgxpool.Pool, v validator.Validator, } } +func (r *streamEventEngineRepository) GetStreamEventMeta(ctx context.Context, tenantId string, stepRunId string) (*dbsqlc.GetStreamEventMetaRow, error) { + return r.queries.GetStreamEventMeta(ctx, r.pool, dbsqlc.GetStreamEventMetaParams{ + Steprunid: sqlchelpers.UUIDFromStr(stepRunId), + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + }) +} + func (r *streamEventEngineRepository) PutStreamEvent(ctx context.Context, tenantId string, opts *repository.CreateStreamEventOpts) (*dbsqlc.StreamEvent, error) { if err := r.v.Validate(opts); err != nil { return nil, err diff --git a/pkg/repository/prisma/tenant.go b/pkg/repository/prisma/tenant.go index 3fcadba84..369d1dfba 100644 --- a/pkg/repository/prisma/tenant.go +++ b/pkg/repository/prisma/tenant.go @@ -51,6 +51,12 @@ func (r *tenantAPIRepository) CreateTenant(opts *repository.CreateTenantOpts) (* tenantId = *opts.ID } + var dataRetentionPeriod pgtype.Text + + if opts.DataRetentionPeriod != nil { + dataRetentionPeriod = sqlchelpers.TextFromStr(*opts.DataRetentionPeriod) + } + tx, err := r.pool.Begin(context.Background()) if err != nil { @@ -60,9 +66,10 @@ func (r *tenantAPIRepository) CreateTenant(opts *repository.CreateTenantOpts) (* defer deferRollback(context.Background(), r.l, tx.Rollback) createTenant, err := r.queries.CreateTenant(context.Background(), tx, dbsqlc.CreateTenantParams{ - ID: sqlchelpers.UUIDFromStr(tenantId), - Slug: opts.Slug, - Name: opts.Name, + ID: sqlchelpers.UUIDFromStr(tenantId), + Slug: opts.Slug, + Name: opts.Name, + DataRetentionPeriod: dataRetentionPeriod, }) if err != nil { diff --git a/pkg/repository/prisma/ticker.go b/pkg/repository/prisma/ticker.go index 95775c71c..d4ae248c3 100644 --- a/pkg/repository/prisma/ticker.go +++ b/pkg/repository/prisma/ticker.go @@ -85,10 +85,6 @@ func (t *tickerRepository) Delete(ctx context.Context, tickerId string) error { return err } -func (t *tickerRepository) PollStepRuns(ctx context.Context, tickerId string) ([]*dbsqlc.StepRun, error) { - return t.queries.PollStepRuns(ctx, t.pool, sqlchelpers.UUIDFromStr(tickerId)) -} - func (t *tickerRepository) PollGetGroupKeyRuns(ctx context.Context, tickerId string) ([]*dbsqlc.GetGroupKeyRun, error) { return t.queries.PollGetGroupKeyRuns(ctx, t.pool, sqlchelpers.UUIDFromStr(tickerId)) } @@ -112,3 +108,7 @@ func (t *tickerRepository) PollExpiringTokens(ctx context.Context) ([]*dbsqlc.Po func (t *tickerRepository) PollTenantResourceLimitAlerts(ctx context.Context) ([]*dbsqlc.TenantResourceLimitAlert, error) { return t.queries.PollTenantResourceLimitAlerts(ctx, t.pool) } + +func (t *tickerRepository) PollUnresolvedFailedStepRuns(ctx context.Context) ([]*dbsqlc.PollUnresolvedFailedStepRunsRow, error) { + return t.queries.PollUnresolvedFailedStepRuns(ctx, t.pool) +} diff --git a/pkg/repository/prisma/worker.go b/pkg/repository/prisma/worker.go index 00e8c94f3..1e50e8716 100644 --- a/pkg/repository/prisma/worker.go +++ b/pkg/repository/prisma/worker.go @@ -125,6 +125,35 @@ func (r *workerAPIRepository) ListWorkers(tenantId string, opts *repository.List return workers, nil } +func (w *workerAPIRepository) ListWorkerLabels(tenantId, workerId string) ([]*dbsqlc.ListWorkerLabelsRow, error) { + return w.queries.ListWorkerLabels(context.Background(), w.pool, sqlchelpers.UUIDFromStr(workerId)) +} + +func (w *workerAPIRepository) UpdateWorker(tenantId, workerId string, opts repository.ApiUpdateWorkerOpts) (*dbsqlc.Worker, error) { + if err := w.v.Validate(opts); err != nil { + return nil, err + } + + updateParams := dbsqlc.UpdateWorkerParams{ + ID: sqlchelpers.UUIDFromStr(workerId), + } + + if opts.IsPaused != nil { + updateParams.IsPaused = pgtype.Bool{ + Bool: *opts.IsPaused, + Valid: true, + } + } + + worker, err := w.queries.UpdateWorker(context.Background(), w.pool, updateParams) + + if err != nil { + return nil, fmt.Errorf("could not update worker: %w", err) + } + + return worker, nil +} + type workerEngineRepository struct { pool *pgxpool.Pool v validator.Validator @@ -350,8 +379,8 @@ func (w *workerEngineRepository) UpdateWorkersByName(ctx context.Context, params return err } -func (w *workerEngineRepository) ResolveWorkerSemaphoreSlots(ctx context.Context) (int64, error) { - return w.queries.ResolveWorkerSemaphoreSlots(ctx, w.pool) +func (w *workerEngineRepository) ResolveWorkerSemaphoreSlots(ctx context.Context, tenantId pgtype.UUID) (*dbsqlc.ResolveWorkerSemaphoreSlotsRow, error) { + return w.queries.ResolveWorkerSemaphoreSlots(ctx, w.pool, tenantId) } func (w *workerEngineRepository) UpdateWorkerActiveStatus(ctx context.Context, tenantId, workerId string, isActive bool, timestamp time.Time) (*dbsqlc.Worker, error) { @@ -367,3 +396,46 @@ func (w *workerEngineRepository) UpdateWorkerActiveStatus(ctx context.Context, t return worker, nil } + +func (w *workerEngineRepository) UpsertWorkerLabels(ctx context.Context, workerId pgtype.UUID, opts []repository.UpsertWorkerLabelOpts) ([]*dbsqlc.WorkerLabel, error) { + if len(opts) == 0 { + return nil, nil + } + + affinities := make([]*dbsqlc.WorkerLabel, 0, len(opts)) + + for _, opt := range opts { + + intValue := pgtype.Int4{Valid: false} + if opt.IntValue != nil { + intValue = pgtype.Int4{ + Int32: *opt.IntValue, + Valid: true, + } + } + + strValue := pgtype.Text{Valid: false} + if opt.StrValue != nil { + strValue = pgtype.Text{ + String: *opt.StrValue, + Valid: true, + } + } + + dbsqlcOpts := dbsqlc.UpsertWorkerLabelParams{ + Workerid: workerId, + Key: opt.Key, + IntValue: intValue, + StrValue: strValue, + } + + affinity, err := w.queries.UpsertWorkerLabel(ctx, w.pool, dbsqlcOpts) + if err != nil { + return nil, fmt.Errorf("could not update worker affinity state: %w", err) + } + + affinities = append(affinities, affinity) + } + + return affinities, nil +} diff --git a/pkg/repository/prisma/workflow.go b/pkg/repository/prisma/workflow.go index 547f2f554..2e3b35de0 100644 --- a/pkg/repository/prisma/workflow.go +++ b/pkg/repository/prisma/workflow.go @@ -163,38 +163,37 @@ func (r *workflowAPIRepository) ListWorkflows(tenantId string, opts *repository. } func (r *workflowAPIRepository) GetWorkflowById(workflowId string) (*db.WorkflowModel, error) { - return r.client.Workflow.FindUnique( + return r.client.Workflow.FindFirst( db.Workflow.ID.Equals(workflowId), + db.Workflow.DeletedAt.IsNull(), ).With( defaultWorkflowPopulator()..., ).Exec(context.Background()) } func (r *workflowAPIRepository) GetWorkflowByName(tenantId, workflowName string) (*db.WorkflowModel, error) { - return r.client.Workflow.FindUnique( + return r.client.Workflow.FindFirst( db.Workflow.TenantIDName( db.Workflow.TenantID.Equals(tenantId), db.Workflow.Name.Equals(workflowName), ), + db.Workflow.DeletedAt.IsNull(), ).With( defaultWorkflowPopulator()..., ).Exec(context.Background()) } func (r *workflowAPIRepository) GetWorkflowVersionById(tenantId, workflowVersionId string) (*db.WorkflowVersionModel, error) { - return r.client.WorkflowVersion.FindUnique( + return r.client.WorkflowVersion.FindFirst( db.WorkflowVersion.ID.Equals(workflowVersionId), + db.WorkflowVersion.DeletedAt.IsNull(), ).With( defaultWorkflowVersionPopulator()..., ).Exec(context.Background()) } -func (r *workflowAPIRepository) DeleteWorkflow(tenantId, workflowId string) (*db.WorkflowModel, error) { - return r.client.Workflow.FindUnique( - db.Workflow.ID.Equals(workflowId), - ).With( - defaultWorkflowPopulator()..., - ).Delete().Exec(context.Background()) +func (r *workflowAPIRepository) DeleteWorkflow(tenantId, workflowId string) (*dbsqlc.Workflow, error) { + return r.queries.SoftDeleteWorkflow(context.Background(), r.pool, sqlchelpers.UUIDFromStr(workflowId)) } func (r *workflowAPIRepository) GetWorkflowMetrics(tenantId, workflowId string, opts *repository.GetWorkflowMetricsOpts) (*repository.WorkflowMetrics, error) { @@ -579,6 +578,20 @@ func (r *workflowEngineRepository) createWorkflowVersionTxs(ctx context.Context, createParams.ScheduleTimeout = sqlchelpers.TextFromStr(*opts.ScheduleTimeout) } + if opts.Sticky != nil { + createParams.Sticky = dbsqlc.NullStickyStrategy{ + StickyStrategy: dbsqlc.StickyStrategy(*opts.Sticky), + Valid: true, + } + } + + if opts.Kind != nil { + createParams.Kind = dbsqlc.NullWorkflowKind{ + WorkflowKind: dbsqlc.WorkflowKind(*opts.Kind), + Valid: true, + } + } + sqlcWorkflowVersion, err := r.queries.CreateWorkflowVersion( ctx, tx, @@ -833,6 +846,55 @@ func (r *workflowEngineRepository) createJobTx(ctx context.Context, tx pgx.Tx, t return "", err } + if stepOpts.DesiredWorkerLabels != nil && len(stepOpts.DesiredWorkerLabels) > 0 { + for i := range stepOpts.DesiredWorkerLabels { + key := (stepOpts.DesiredWorkerLabels)[i].Key + value := (stepOpts.DesiredWorkerLabels)[i] + + if key == "" { + continue + } + + opts := dbsqlc.UpsertDesiredWorkerLabelParams{ + Stepid: sqlchelpers.UUIDFromStr(stepId), + Key: key, + } + + if value.IntValue != nil { + opts.IntValue = sqlchelpers.ToInt(*value.IntValue) + } + + if value.StrValue != nil { + opts.StrValue = sqlchelpers.TextFromStr(*value.StrValue) + } + + if value.Weight != nil { + opts.Weight = sqlchelpers.ToInt(*value.Weight) + } + + if value.Required != nil { + opts.Required = sqlchelpers.BoolFromBoolean(*value.Required) + } + + if value.Comparator != nil { + opts.Comparator = dbsqlc.NullWorkerLabelComparator{ + WorkerLabelComparator: dbsqlc.WorkerLabelComparator(*value.Comparator), + Valid: true, + } + } + + _, err = r.queries.UpsertDesiredWorkerLabel( + ctx, + tx, + opts, + ) + + if err != nil { + return "", err + } + } + } + if len(stepOpts.Parents) > 0 { err := r.queries.AddStepParents( ctx, diff --git a/pkg/repository/prisma/workflow_run.go b/pkg/repository/prisma/workflow_run.go index c58d1fcd9..f8b97e26f 100644 --- a/pkg/repository/prisma/workflow_run.go +++ b/pkg/repository/prisma/workflow_run.go @@ -4,6 +4,8 @@ import ( "context" "encoding/json" "errors" + "fmt" + "strings" "time" "github.com/google/uuid" @@ -12,6 +14,7 @@ import ( "github.com/jackc/pgx/v5/pgxpool" "github.com/rs/zerolog" + "github.com/hatchet-dev/hatchet/internal/datautils" "github.com/hatchet-dev/hatchet/internal/services/shared/defaults" "github.com/hatchet-dev/hatchet/internal/telemetry" "github.com/hatchet-dev/hatchet/pkg/repository" @@ -70,6 +73,26 @@ func (w *workflowRunAPIRepository) WorkflowRunMetricsCount(tenantId string, opts return workflowRunMetricsCount(context.Background(), w.pool, w.queries, tenantId, opts) } +func (w *workflowRunAPIRepository) GetWorkflowRunInputData(tenantId, workflowRunId string) (map[string]interface{}, error) { + lookupData := datautils.JobRunLookupData{} + + jsonBytes, err := w.queries.GetWorkflowRunInput( + context.Background(), + w.pool, + sqlchelpers.UUIDFromStr(workflowRunId), + ) + + if err != nil { + return nil, err + } + + if err := json.Unmarshal(jsonBytes, &lookupData); err != nil { + return nil, err + } + + return lookupData.Input, nil +} + func (w *workflowRunAPIRepository) CreateNewWorkflowRun(ctx context.Context, tenantId string, opts *repository.CreateWorkflowRunOpts) (*db.WorkflowRunModel, error) { return metered.MakeMetered(ctx, w.m, dbsqlc.LimitResourceWORKFLOWRUN, tenantId, func() (*string, *db.WorkflowRunModel, error) { if err := w.v.Validate(opts); err != nil { @@ -103,8 +126,9 @@ func (w *workflowRunAPIRepository) CreateNewWorkflowRun(ctx context.Context, ten } func (w *workflowRunAPIRepository) GetWorkflowRunById(tenantId, id string) (*db.WorkflowRunModel, error) { - return w.client.WorkflowRun.FindUnique( + return w.client.WorkflowRun.FindFirst( db.WorkflowRun.ID.Equals(id), + db.WorkflowRun.DeletedAt.IsNull(), ).With( defaultWorkflowRunPopulator()..., ).Exec(context.Background()) @@ -160,6 +184,13 @@ func (w *workflowRunEngineRepository) GetWorkflowRunById(ctx context.Context, te return runs[0], nil } +func (w *workflowRunEngineRepository) GetWorkflowRunAdditionalMeta(ctx context.Context, tenantId, workflowRunId string) (*dbsqlc.GetWorkflowRunAdditionalMetaRow, error) { + return w.queries.GetWorkflowRunAdditionalMeta(ctx, w.pool, dbsqlc.GetWorkflowRunAdditionalMetaParams{ + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + Workflowrunid: sqlchelpers.UUIDFromStr(workflowRunId), + }) +} + func (w *workflowRunEngineRepository) ListWorkflowRuns(ctx context.Context, tenantId string, opts *repository.ListWorkflowRunsOpts) (*repository.ListWorkflowRunsResult, error) { if err := w.v.Validate(opts); err != nil { return nil, err @@ -242,6 +273,156 @@ func (w *workflowRunEngineRepository) CreateNewWorkflowRun(ctx context.Context, return id, nil } +func (w *workflowRunEngineRepository) ListActiveQueuedWorkflowVersions(ctx context.Context) ([]*dbsqlc.ListActiveQueuedWorkflowVersionsRow, error) { + return w.queries.ListActiveQueuedWorkflowVersions(ctx, w.pool) +} + +func (w *workflowRunEngineRepository) SoftDeleteExpiredWorkflowRuns(ctx context.Context, tenantId string, statuses []dbsqlc.WorkflowRunStatus, before time.Time) (bool, error) { + paramStatuses := make([]string, 0) + + for _, status := range statuses { + paramStatuses = append(paramStatuses, string(status)) + } + + hasMore, err := w.queries.SoftDeleteExpiredWorkflowRunsWithDependencies(ctx, w.pool, dbsqlc.SoftDeleteExpiredWorkflowRunsWithDependenciesParams{ + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + Statuses: paramStatuses, + Createdbefore: sqlchelpers.TimestampFromTime(before), + Limit: 1000, + }) + + if err != nil { + if errors.Is(err, pgx.ErrNoRows) { + return false, nil + } + + return false, err + } + + return hasMore, nil +} + +func (s *workflowRunEngineRepository) ReplayWorkflowRun(ctx context.Context, tenantId, workflowRunId string) (*dbsqlc.GetWorkflowRunRow, error) { + ctx, span := telemetry.NewSpan(ctx, "replay-workflow-run") + defer span.End() + + err := deadlockRetry(s.l, func() error { + tx, err := s.pool.Begin(ctx) + + if err != nil { + return err + } + + defer deferRollback(ctx, s.l, tx.Rollback) + + pgWorkflowRunId := sqlchelpers.UUIDFromStr(workflowRunId) + + // reset the job run, workflow run and all fields as part of the core tx + _, err = s.queries.ReplayStepRunResetWorkflowRun(ctx, tx, pgWorkflowRunId) + + if err != nil { + return fmt.Errorf("error resetting workflow run: %w", err) + } + + jobRuns, err := s.queries.ListJobRunsForWorkflowRun(ctx, tx, pgWorkflowRunId) + + if err != nil { + return fmt.Errorf("error listing job runs: %w", err) + } + + for _, jobRun := range jobRuns { + _, err = s.queries.ReplayWorkflowRunResetJobRun(ctx, tx, jobRun.ID) + + if err != nil { + return fmt.Errorf("error resetting job run: %w", err) + } + } + + // get all step runs for the workflow + stepRuns, err := s.queries.ListStepRuns(ctx, tx, dbsqlc.ListStepRunsParams{ + TenantId: sqlchelpers.UUIDFromStr(tenantId), + WorkflowRunIds: []pgtype.UUID{ + sqlchelpers.UUIDFromStr(workflowRunId), + }, + }) + + if err != nil { + return fmt.Errorf("error listing step runs: %w", err) + } + + // archive each of the step run results + for _, stepRunId := range stepRuns { + err = archiveStepRunResult(ctx, s.queries, tx, tenantId, sqlchelpers.UUIDToStr(stepRunId)) + + if err != nil { + return fmt.Errorf("error archiving step run result: %w", err) + } + + // remove the previous step run result from the job lookup data + err = s.queries.UpdateJobRunLookupDataWithStepRun( + ctx, + tx, + dbsqlc.UpdateJobRunLookupDataWithStepRunParams{ + Steprunid: stepRunId, + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + }, + ) + + if err != nil { + return fmt.Errorf("error updating job run lookup data: %w", err) + } + + // create a deferred event for each of these step runs + defer deferredStepRunEvent( + ctx, + s.l, + s.pool, + s.queries, + stepRunId, + dbsqlc.StepRunEventReasonRETRIEDBYUSER, + dbsqlc.StepRunEventSeverityINFO, + "Workflow run was replayed, resetting step run result", + nil, + ) + } + + // reset all later step runs to a pending state + _, err = s.queries.ResetStepRunsByIds(ctx, tx, dbsqlc.ResetStepRunsByIdsParams{ + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + Ids: stepRuns, + }) + + if err != nil { + return fmt.Errorf("error resetting step runs: %w", err) + } + + err = tx.Commit(ctx) + + return err + }) + + if err != nil { + return nil, err + } + + workflowRuns, err := s.queries.GetWorkflowRun(ctx, s.pool, dbsqlc.GetWorkflowRunParams{ + Ids: []pgtype.UUID{ + sqlchelpers.UUIDFromStr(workflowRunId), + }, + Tenantid: sqlchelpers.UUIDFromStr(tenantId), + }) + + if err != nil { + return nil, err + } + + if len(workflowRuns) != 1 { + return nil, repository.ErrWorkflowRunNotFound + } + + return workflowRuns[0], nil +} + func listWorkflowRuns(ctx context.Context, pool *pgxpool.Pool, queries *dbsqlc.Queries, l *zerolog.Logger, tenantId string, opts *repository.ListWorkflowRunsOpts) (*repository.ListWorkflowRunsResult, error) { res := &repository.ListWorkflowRunsResult{} @@ -339,6 +520,17 @@ func listWorkflowRuns(ctx context.Context, pool *pgxpool.Pool, queries *dbsqlc.Q countParams.Statuses = statuses } + if opts.Kinds != nil { + kinds := make([]string, 0) + + for _, kind := range *opts.Kinds { + kinds = append(kinds, string(kind)) + } + + queryParams.Kinds = kinds + countParams.Kinds = kinds + } + if opts.CreatedAfter != nil { countParams.CreatedAfter = sqlchelpers.TimestampFromTime(*opts.CreatedAfter) queryParams.CreatedAfter = sqlchelpers.TimestampFromTime(*opts.CreatedAfter) @@ -362,6 +554,7 @@ func listWorkflowRuns(ctx context.Context, pool *pgxpool.Pool, queries *dbsqlc.Q } queryParams.Orderby = orderByField + " " + orderByDirection + countParams.Orderby = orderByField + " " + orderByDirection tx, err := pool.Begin(ctx) @@ -504,6 +697,43 @@ func createNewWorkflowRun(ctx context.Context, pool *pgxpool.Pool, queries *dbsq return nil, err } createParams.Additionalmetadata = additionalMetadataBytes + + // if additional metadata contains a "dedupe" key, use it as the dedupe value + if dedupeValue, ok := opts.AdditionalMetadata["dedupe"]; ok { + if dedupeStr, ok := dedupeValue.(string); ok { + opts.DedupeValue = &dedupeStr + } + + if dedupeInt, ok := dedupeValue.(int); ok { + dedupeStr := fmt.Sprintf("%d", dedupeInt) + opts.DedupeValue = &dedupeStr + } + } + } + + // create the dedupe value + if opts.DedupeValue != nil { + _, err = queries.CreateWorkflowRunDedupe( + tx1Ctx, + tx, + dbsqlc.CreateWorkflowRunDedupeParams{ + Tenantid: pgTenantId, + Workflowversionid: sqlchelpers.UUIDFromStr(opts.WorkflowVersionId), + Value: sqlchelpers.TextFromStr(*opts.DedupeValue), + Workflowrunid: sqlchelpers.UUIDFromStr(workflowRunId), + }, + ) + + if err != nil { + // if this is a unique violation, return stable error + if isUniqueViolationOnDedupe(err) { + return nil, repository.ErrDedupeValueExists{ + DedupeValue: *opts.DedupeValue, + } + } + + return nil, err + } } // create a workflow @@ -517,6 +747,31 @@ func createNewWorkflowRun(ctx context.Context, pool *pgxpool.Pool, queries *dbsq return nil, err } + desiredWorkerId := pgtype.UUID{ + Valid: false, + } + + if opts.DesiredWorkerId != nil { + desiredWorkerId = sqlchelpers.UUIDFromStr(*opts.DesiredWorkerId) + } + + _, err = queries.CreateWorkflowRunStickyState( + tx1Ctx, + tx, + dbsqlc.CreateWorkflowRunStickyStateParams{ + Workflowrunid: sqlcWorkflowRun.ID, + Tenantid: pgTenantId, + Workflowversionid: createParams.Workflowversionid, + DesiredWorkerId: desiredWorkerId, + }, + ) + + if err != nil && !errors.Is(err, pgx.ErrNoRows) { + return nil, fmt.Errorf("failed to create workflow run sticky state: %w", err) + } + + // CreateWorkflowRunStickyState + var ( eventId, cronParentId, scheduledWorkflowId pgtype.UUID cronId pgtype.Text @@ -644,6 +899,14 @@ func createNewWorkflowRun(ctx context.Context, pool *pgxpool.Pool, queries *dbsq err = tx.Commit(tx1Ctx) if err != nil { + // check unique violation again on commit, to account for inserts which were uncommitted + // at the time of the first check + if isUniqueViolationOnDedupe(err) { + return nil, repository.ErrDedupeValueExists{ + DedupeValue: *opts.DedupeValue, + } + } + return nil, err } @@ -687,3 +950,12 @@ func defaultWorkflowRunPopulator() []db.WorkflowRunRelationWith { ), } } + +func isUniqueViolationOnDedupe(err error) bool { + if err == nil { + return false + } + + return strings.Contains(err.Error(), "WorkflowRunDedupe_tenantId_workflowId_value_key") && + strings.Contains(err.Error(), "SQLSTATE 23505") +} diff --git a/pkg/repository/step_run.go b/pkg/repository/step_run.go index af88aba8f..6585075cb 100644 --- a/pkg/repository/step_run.go +++ b/pkg/repository/step_run.go @@ -7,6 +7,8 @@ import ( "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" + + "github.com/jackc/pgx/v5/pgtype" ) type ListStepRunsOpts struct { @@ -29,7 +31,9 @@ func IsFinalJobRunStatus(status dbsqlc.JobRunStatus) bool { } func IsFinalWorkflowRunStatus(status dbsqlc.WorkflowRunStatus) bool { - return status != dbsqlc.WorkflowRunStatusPENDING && status != dbsqlc.WorkflowRunStatusRUNNING && status != dbsqlc.WorkflowRunStatusQUEUED + return status != dbsqlc.WorkflowRunStatusPENDING && + status != dbsqlc.WorkflowRunStatusRUNNING && + status != dbsqlc.WorkflowRunStatusQUEUED } type CreateStepRunEventOpts struct { @@ -39,7 +43,7 @@ type CreateStepRunEventOpts struct { EventSeverity *dbsqlc.StepRunEventSeverity - EventData *map[string]interface{} + EventData map[string]interface{} } type UpdateStepRunOpts struct { @@ -93,6 +97,7 @@ func StepRunEventSeverityPtr(severity dbsqlc.StepRunEventSeverity) *dbsqlc.StepR var ErrStepRunIsNotPending = fmt.Errorf("step run is not pending") var ErrNoWorkerAvailable = fmt.Errorf("no worker available") var ErrRateLimitExceeded = fmt.Errorf("rate limit exceeded") +var ErrStepRunIsNotAssigned = fmt.Errorf("step run is not assigned") type StepRunUpdateInfo struct { JobRunFinalState bool @@ -153,6 +158,8 @@ type StepRunEngineRepository interface { // ListStepRunsToReassign returns a list of step runs which are in a reassignable state. ListStepRunsToReassign(ctx context.Context, tenantId string) ([]*dbsqlc.GetStepRunForEngineRow, error) + ListStepRunsToTimeout(ctx context.Context, tenantId string) ([]*dbsqlc.GetStepRunForEngineRow, error) + UpdateStepRun(ctx context.Context, tenantId, stepRunId string, opts *UpdateStepRunOpts) (*dbsqlc.GetStepRunForEngineRow, *StepRunUpdateInfo, error) ReplayStepRun(ctx context.Context, tenantId, stepRunId string, opts *UpdateStepRunOpts) (*dbsqlc.GetStepRunForEngineRow, error) @@ -174,8 +181,14 @@ type StepRunEngineRepository interface { AssignStepRunToWorker(ctx context.Context, stepRun *dbsqlc.GetStepRunForEngineRow) (workerId string, dispatcherId string, err error) + UnassignStepRunFromWorker(ctx context.Context, tenantId, stepRunId string) error + GetStepRunForEngine(ctx context.Context, tenantId, stepRunId string) (*dbsqlc.GetStepRunForEngineRow, error) + GetStepRunDataForEngine(ctx context.Context, tenantId, stepRunId string) (*dbsqlc.GetStepRunDataForEngineRow, error) + + GetStepRunMetaForEngine(ctx context.Context, tenantId, stepRunId string) (*dbsqlc.GetStepRunMetaRow, error) + // QueueStepRun is like UpdateStepRun, except that it will only update the step run if it is in // a pending state. QueueStepRun(ctx context.Context, tenantId, stepRunId string, opts *UpdateStepRunOpts) (*dbsqlc.GetStepRunForEngineRow, error) @@ -185,4 +198,16 @@ type StepRunEngineRepository interface { ArchiveStepRunResult(ctx context.Context, tenantId, stepRunId string) error RefreshTimeoutBy(ctx context.Context, tenantId, stepRunId string, opts RefreshTimeoutBy) (*dbsqlc.StepRun, error) + + ResolveRelatedStatuses(ctx context.Context, tenantId pgtype.UUID, stepRunId pgtype.UUID) (*StepRunUpdateInfo, error) + + DeferredStepRunEvent( + stepRunId pgtype.UUID, + reason dbsqlc.StepRunEventReason, + severity dbsqlc.StepRunEventSeverity, + message string, + data map[string]interface{}, + ) + + ClearStepRunPayloadData(ctx context.Context, tenantId string) (bool, error) } diff --git a/pkg/repository/stream_event.go b/pkg/repository/stream_event.go index 0684f0a8d..2b3e7aff6 100644 --- a/pkg/repository/stream_event.go +++ b/pkg/repository/stream_event.go @@ -30,4 +30,7 @@ type StreamEventsEngineRepository interface { // CleanupStreamEvents deletes all stale StreamEvents. CleanupStreamEvents(ctx context.Context) error + + // GetStreamEventMeta + GetStreamEventMeta(ctx context.Context, tenantId string, stepRunId string) (*dbsqlc.GetStreamEventMetaRow, error) } diff --git a/pkg/repository/tenant.go b/pkg/repository/tenant.go index bca61b736..2f7f9ddbb 100644 --- a/pkg/repository/tenant.go +++ b/pkg/repository/tenant.go @@ -16,6 +16,9 @@ type CreateTenantOpts struct { // (optional) the tenant ID ID *string `validate:"omitempty,uuid"` + + // (optional) the tenant data retention period + DataRetentionPeriod *string `validate:"omitempty,duration"` } type UpdateTenantOpts struct { diff --git a/pkg/repository/ticker.go b/pkg/repository/ticker.go index 9550489d9..181edf347 100644 --- a/pkg/repository/ticker.go +++ b/pkg/repository/ticker.go @@ -35,9 +35,6 @@ type TickerEngineRepository interface { // Delete deletes a ticker. Delete(ctx context.Context, tickerId string) error - // PollStepRuns looks for step runs who are close to past their timeoutAt value and are in a running state - PollStepRuns(ctx context.Context, tickerId string) ([]*dbsqlc.StepRun, error) - // PollJobRuns looks for get group key runs who are close to past their timeoutAt value and are in a running state PollGetGroupKeyRuns(ctx context.Context, tickerId string) ([]*dbsqlc.GetGroupKeyRun, error) @@ -51,6 +48,9 @@ type TickerEngineRepository interface { PollExpiringTokens(ctx context.Context) ([]*dbsqlc.PollExpiringTokensRow, error) PollTenantResourceLimitAlerts(ctx context.Context) ([]*dbsqlc.TenantResourceLimitAlert, error) + + PollUnresolvedFailedStepRuns(ctx context.Context) ([]*dbsqlc.PollUnresolvedFailedStepRunsRow, error) + // // AddJobRun assigns a job run to a ticker. // AddJobRun(tickerId string, jobRun *db.JobRunModel) (*db.TickerModel, error) diff --git a/pkg/repository/worker.go b/pkg/repository/worker.go index 22f6831d9..550737d86 100644 --- a/pkg/repository/worker.go +++ b/pkg/repository/worker.go @@ -6,6 +6,8 @@ import ( "github.com/hatchet-dev/hatchet/pkg/repository/prisma/db" "github.com/hatchet-dev/hatchet/pkg/repository/prisma/dbsqlc" + + "github.com/jackc/pgx/v5/pgtype" ) type CreateWorkerOpts struct { @@ -52,6 +54,16 @@ type ListWorkersOpts struct { Assignable *bool } +type UpsertWorkerLabelOpts struct { + Key string + IntValue *int32 + StrValue *string +} + +type ApiUpdateWorkerOpts struct { + IsPaused *bool +} + type WorkerAPIRepository interface { // ListWorkers lists workers for the tenant ListWorkers(tenantId string, opts *ListWorkersOpts) ([]*dbsqlc.ListWorkersWithStepCountRow, error) @@ -61,6 +73,12 @@ type WorkerAPIRepository interface { // GetWorkerById returns a worker by its id. GetWorkerById(workerId string) (*db.WorkerModel, error) + + // ListWorkerLabels returns a list of labels config for a worker + ListWorkerLabels(tenantId, workerId string) ([]*dbsqlc.ListWorkerLabelsRow, error) + + // UpdateWorker updates a worker for a given tenant. + UpdateWorker(tenantId string, workerId string, opts ApiUpdateWorkerOpts) (*dbsqlc.Worker, error) } type WorkerEngineRepository interface { @@ -78,7 +96,9 @@ type WorkerEngineRepository interface { GetWorkerForEngine(ctx context.Context, tenantId, workerId string) (*dbsqlc.GetWorkerForEngineRow, error) - ResolveWorkerSemaphoreSlots(ctx context.Context) (int64, error) + ResolveWorkerSemaphoreSlots(ctx context.Context, tenantId pgtype.UUID) (*dbsqlc.ResolveWorkerSemaphoreSlotsRow, error) UpdateWorkerActiveStatus(ctx context.Context, tenantId, workerId string, isActive bool, timestamp time.Time) (*dbsqlc.Worker, error) + + UpsertWorkerLabels(ctx context.Context, workerId pgtype.UUID, opts []UpsertWorkerLabelOpts) ([]*dbsqlc.WorkerLabel, error) } diff --git a/pkg/repository/workflow.go b/pkg/repository/workflow.go index 6b269dd71..c501f10cf 100644 --- a/pkg/repository/workflow.go +++ b/pkg/repository/workflow.go @@ -45,6 +45,12 @@ type CreateWorkflowVersionOpts struct { // (optional) the amount of time for step runs to wait to be scheduled before timing out ScheduleTimeout *string `validate:"omitempty,duration"` + + // (optional) sticky strategy + Sticky *string `validate:"omitempty,oneof=SOFT HARD"` + + // (optional) the workflow kind + Kind *string `validate:"omitempty,oneof=FUNCTION DURABLE DAG"` } type CreateWorkflowConcurrencyOpts struct { @@ -123,6 +129,29 @@ type CreateWorkflowStepOpts struct { // (optional) rate limits for this step RateLimits []CreateWorkflowStepRateLimitOpts `validate:"dive"` + + // (optional) desired worker affinity state for this step + DesiredWorkerLabels map[string]DesiredWorkerLabelOpts `validate:"omitempty"` +} + +type DesiredWorkerLabelOpts struct { + // (required) the label key + Key string `validate:"required"` + + // (required if StringValue is nil) the label integer value + IntValue *int32 `validate:"omitnil,required_without=StrValue"` + + // (required if StrValue is nil) the label string value + StrValue *string `validate:"omitnil,required_without=IntValue"` + + // (optional) if the label is required + Required *bool `validate:"omitempty"` + + // (optional) the weight of the label for scheduling (default: 100) + Weight *int32 `validate:"omitempty"` + + // (optional) the label comparator for scheduling (default: EQUAL) + Comparator *string `validate:"omitempty,oneof=EQUAL NOT_EQUAL GREATER_THAN LESS_THAN GREATER_THAN_OR_EQUAL LESS_THAN_OR_EQUAL"` } type CreateWorkflowStepRateLimitOpts struct { @@ -208,7 +237,7 @@ type WorkflowAPIRepository interface { GetWorkflowVersionById(tenantId, workflowId string) (*db.WorkflowVersionModel, error) // DeleteWorkflow deletes a workflow for a given tenant. - DeleteWorkflow(tenantId, workflowId string) (*db.WorkflowModel, error) + DeleteWorkflow(tenantId, workflowId string) (*dbsqlc.Workflow, error) // GetWorkflowVersionMetrics returns the metrics for a given workflow version. GetWorkflowMetrics(tenantId, workflowId string, opts *GetWorkflowMetricsOpts) (*WorkflowMetrics, error) @@ -240,5 +269,5 @@ type WorkflowEngineRepository interface { // GetWorkflowVersionById returns a workflow version by its id. It will return db.ErrNotFound if the workflow // version does not exist. - GetWorkflowVersionById(ctx context.Context, tenantId, workflowId string) (*dbsqlc.GetWorkflowVersionForEngineRow, error) + GetWorkflowVersionById(ctx context.Context, tenantId, workflowVersionId string) (*dbsqlc.GetWorkflowVersionForEngineRow, error) } diff --git a/pkg/repository/workflow_run.go b/pkg/repository/workflow_run.go index 7fb1c67a7..d04131156 100644 --- a/pkg/repository/workflow_run.go +++ b/pkg/repository/workflow_run.go @@ -51,6 +51,12 @@ type CreateWorkflowRunOpts struct { // (optional) additional metadata for the workflow run AdditionalMetadata map[string]interface{} `validate:"omitempty"` + + // (optional) the desired worker id for sticky state + DesiredWorkerId *string `validate:"omitempty,uuid"` + + // (optional) the deduplication value for the workflow run + DedupeValue *string `validate:"omitempty"` } type CreateGroupKeyRunOpts struct { @@ -64,12 +70,25 @@ func WithParent( parentId, parentStepRunId string, childIndex int, childKey *string, + additionalMetadata map[string]interface{}, + parentAdditionalMetadata map[string]interface{}, ) CreateWorkflowRunOpt { return func(opts *CreateWorkflowRunOpts) { opts.ParentId = &parentId opts.ParentStepRunId = &parentStepRunId opts.ChildIndex = &childIndex opts.ChildKey = childKey + + opts.AdditionalMetadata = parentAdditionalMetadata + + if opts.AdditionalMetadata == nil { + opts.AdditionalMetadata = make(map[string]interface{}) + } + + for k, v := range additionalMetadata { + opts.AdditionalMetadata[k] = v + } + } } @@ -107,6 +126,7 @@ func GetCreateWorkflowRunOptsFromParent( childIndex int, childKey *string, additionalMetadata map[string]interface{}, + parentAdditionalMetadata map[string]interface{}, ) (*CreateWorkflowRunOpts, error) { if input == nil { input = []byte("{}") @@ -118,10 +138,9 @@ func GetCreateWorkflowRunOptsFromParent( ManualTriggerInput: StringPtr(string(input)), TriggeredBy: string(datautils.TriggeredByParent), InputData: input, - AdditionalMetadata: additionalMetadata, } - WithParent(parentId, parentStepRunId, childIndex, childKey)(opts) + WithParent(parentId, parentStepRunId, childIndex, childKey, additionalMetadata, parentAdditionalMetadata)(opts) if workflowVersion.ConcurrencyLimitStrategy.Valid { opts.GetGroupKeyRun = &CreateGroupKeyRunOpts{ @@ -254,6 +273,9 @@ type ListWorkflowRunsOpts struct { // (optional) the status of the workflow run Statuses *[]db.WorkflowRunStatus + // (optional) a list of kinds to filter by + Kinds *[]dbsqlc.WorkflowKind + // (optional) number of events to skip Offset *int @@ -261,7 +283,7 @@ type ListWorkflowRunsOpts struct { Limit *int // (optional) the order by field - OrderBy *string `validate:"omitempty,oneof=createdAt"` + OrderBy *string `validate:"omitempty,oneof=createdAt finishedAt startedAt duration"` // (optional) the order direction OrderDirection *string `validate:"omitempty,oneof=ASC DESC"` @@ -350,6 +372,8 @@ type WorkflowRunAPIRepository interface { // Counts by status WorkflowRunMetricsCount(tenantId string, opts *WorkflowRunsMetricsOpts) (*dbsqlc.WorkflowRunsMetricsCountRow, error) + GetWorkflowRunInputData(tenantId, workflowRunId string) (map[string]interface{}, error) + // CreateNewWorkflowRun creates a new workflow run for a workflow version. CreateNewWorkflowRun(ctx context.Context, tenantId string, opts *CreateWorkflowRunOpts) (*db.WorkflowRunModel, error) @@ -357,7 +381,17 @@ type WorkflowRunAPIRepository interface { GetWorkflowRunById(tenantId, runId string) (*db.WorkflowRunModel, error) } -var ErrWorkflowRunNotFound = fmt.Errorf("workflow run not found") +var ( + ErrWorkflowRunNotFound = fmt.Errorf("workflow run not found") +) + +type ErrDedupeValueExists struct { + DedupeValue string +} + +func (e ErrDedupeValueExists) Error() string { + return fmt.Sprintf("workflow run with dedupe value %s already exists", e.DedupeValue) +} type WorkflowRunEngineRepository interface { RegisterCreateCallback(callback Callback[*dbsqlc.WorkflowRun]) @@ -376,4 +410,14 @@ type WorkflowRunEngineRepository interface { // GetWorkflowRunById returns a workflow run by id. GetWorkflowRunById(ctx context.Context, tenantId, runId string) (*dbsqlc.GetWorkflowRunRow, error) + + GetWorkflowRunAdditionalMeta(ctx context.Context, tenantId, workflowRunId string) (*dbsqlc.GetWorkflowRunAdditionalMetaRow, error) + + ReplayWorkflowRun(ctx context.Context, tenantId, workflowRunId string) (*dbsqlc.GetWorkflowRunRow, error) + + ListActiveQueuedWorkflowVersions(ctx context.Context) ([]*dbsqlc.ListActiveQueuedWorkflowVersionsRow, error) + + // DeleteExpiredWorkflowRuns deletes workflow runs that were created before the given time. It returns the number of deleted runs + // and the number of non-deleted runs that match the conditions. + SoftDeleteExpiredWorkflowRuns(ctx context.Context, tenantId string, statuses []dbsqlc.WorkflowRunStatus, before time.Time) (bool, error) } diff --git a/pkg/validator/default.go b/pkg/validator/default.go index f1a740339..631a9ef6c 100644 --- a/pkg/validator/default.go +++ b/pkg/validator/default.go @@ -18,7 +18,7 @@ const ( HatchetNameErr = "Hatchet names must match the regex ^[a-zA-Z0-9\\.\\-_]+$" ActionIDErr = "Invalid action ID. Action IDs must be in the format :" CronErr = "Invalid cron expression" - DurationErr = "Invalid duration. Durations must be in the format , where unit is one of: 's', 'm', 'h', 'd', 'w', 'M', 'y'" + DurationErr = "Invalid duration. Durations must be in the format , where unit is one of: 's', 'm', 'h'" ) type APIErrors gen.APIErrors diff --git a/pkg/webhook/worker.go b/pkg/webhook/worker.go index acb959e8f..c1e83d601 100644 --- a/pkg/webhook/worker.go +++ b/pkg/webhook/worker.go @@ -13,14 +13,13 @@ type WebhookWorker struct { } type WorkerOpts struct { - Name string - Token string - ID string - Secret string - URL string - TenantID string - Actions []string - Workflows []string + Name string + Token string + ID string + Secret string + URL string + TenantID string + Actions []string } func New(opts WorkerOpts) (*WebhookWorker, error) { @@ -40,7 +39,7 @@ func New(opts WorkerOpts) (*WebhookWorker, error) { func (w *WebhookWorker) Start() (func() error, error) { r, err := worker.NewWorker( worker.WithClient(w.client), - worker.WithInternalData(w.opts.Actions, w.opts.Workflows), + worker.WithInternalData(w.opts.Actions), worker.WithName("Webhook_"+w.opts.ID), ) if err != nil { diff --git a/pkg/worker/context.go b/pkg/worker/context.go index 1df10b598..38b56d33d 100644 --- a/pkg/worker/context.go +++ b/pkg/worker/context.go @@ -12,6 +12,20 @@ import ( "github.com/hatchet-dev/hatchet/pkg/client" ) +type HatchetWorkerContext interface { + context.Context + + SetContext(ctx context.Context) + + GetContext() context.Context + + ID() string + + GetLabels() map[string]interface{} + + UpsertLabels(labels map[string]interface{}) error +} + type HatchetContext interface { context.Context @@ -19,6 +33,8 @@ type HatchetContext interface { GetContext() context.Context + Worker() HatchetWorkerContext + StepOutput(step string, target interface{}) error TriggeredByEvent() bool @@ -76,6 +92,9 @@ type StepData map[string]interface{} type hatchetContext struct { context.Context + + w *hatchetWorkerContext + a *client.Action stepData *StepRunData c client.Client @@ -87,17 +106,29 @@ type hatchetContext struct { listenerMu sync.Mutex } +type hatchetWorkerContext struct { + context.Context + id *string + worker *Worker +} + func newHatchetContext( ctx context.Context, action *client.Action, client client.Client, l *zerolog.Logger, + w *Worker, ) (HatchetContext, error) { c := &hatchetContext{ Context: ctx, a: action, c: client, l: l, + w: &hatchetWorkerContext{ + Context: ctx, + id: w.id, + worker: w, + }, } if action.GetGroupKeyRunId != "" { @@ -125,6 +156,10 @@ func (h *hatchetContext) action() *client.Action { return h.a } +func (h *hatchetContext) Worker() HatchetWorkerContext { + return h.w +} + func (h *hatchetContext) SetContext(ctx context.Context) { h.Context = ctx } @@ -212,7 +247,8 @@ func (h *hatchetContext) inc() { } type SpawnWorkflowOpts struct { - Key *string + Key *string + Sticky *bool } func (h *hatchetContext) saveOrLoadListener() (*client.WorkflowRunsListener, error) { @@ -239,6 +275,16 @@ func (h *hatchetContext) SpawnWorkflow(workflowName string, input any, opts *Spa opts = &SpawnWorkflowOpts{} } + var desiredWorker *string + + if opts.Sticky != nil { + if _, exists := h.w.worker.registered_workflows[workflowName]; !exists { + return nil, fmt.Errorf("cannot run with sticky: workflow %s is not registered on this worker", workflowName) + } + + desiredWorker = h.w.id + } + listener, err := h.saveOrLoadListener() if err != nil { @@ -257,6 +303,7 @@ func (h *hatchetContext) SpawnWorkflow(workflowName string, input any, opts *Spa ParentStepRunId: h.StepRunId(), ChildIndex: h.index(), ChildKey: opts.Key, + DesiredWorkerId: desiredWorker, }, ) @@ -274,6 +321,22 @@ func (h *hatchetContext) SpawnWorkflow(workflowName string, input any, opts *Spa }, nil } +func (h *hatchetContext) AdditionalMetadata() map[string]string { + return h.a.AdditionalMetadata +} + +func (h *hatchetContext) ChildIndex() *int32 { + return h.a.ChildIndex +} + +func (h *hatchetContext) ChildKey() *string { + return h.a.ChildKey +} + +func (h *hatchetContext) ParentWorkflowRunId() *string { + return h.a.ParentWorkflowRunId +} + func (h *hatchetContext) populateStepDataForGroupKeyRun() error { if h.stepData != nil { return nil @@ -331,3 +394,39 @@ func toTarget(data interface{}, target interface{}) error { return nil } + +func (wc *hatchetWorkerContext) SetContext(ctx context.Context) { + wc.Context = ctx +} + +func (wc *hatchetWorkerContext) GetContext() context.Context { + return wc.Context +} + +func (wc *hatchetWorkerContext) ID() string { + if wc.id == nil { + return "" + } + + return *wc.id +} + +func (wc *hatchetWorkerContext) GetLabels() map[string]interface{} { + return wc.worker.labels +} + +func (wc *hatchetWorkerContext) UpsertLabels(labels map[string]interface{}) error { + + if wc.id == nil { + return fmt.Errorf("worker id is nil, cannot upsert labels (are on web worker?)") + } + + err := wc.worker.client.Dispatcher().UpsertWorkerLabels(wc.Context, *wc.id, labels) + + if err != nil { + return fmt.Errorf("failed to upsert labels: %w", err) + } + + wc.worker.labels = labels + return nil +} diff --git a/pkg/worker/middleware_test.go b/pkg/worker/middleware_test.go index 0c26d3b01..56fc35ff7 100644 --- a/pkg/worker/middleware_test.go +++ b/pkg/worker/middleware_test.go @@ -84,6 +84,10 @@ func (c *testHatchetContext) client() client.Client { panic("not implemented") } +func (c *testHatchetContext) Worker() HatchetWorkerContext { + panic("not implemented") +} + func TestAddMiddleware(t *testing.T) { m := middlewares{} middlewareFunc := func(ctx HatchetContext, next func(HatchetContext) error) error { diff --git a/pkg/worker/webhook_handler.go b/pkg/worker/webhook_handler.go index 650bbce5d..5708e7aa8 100644 --- a/pkg/worker/webhook_handler.go +++ b/pkg/worker/webhook_handler.go @@ -17,8 +17,7 @@ type WebhookHandlerOptions struct { } type HealthCheckResponse struct { - Actions []string `json:"actions"` - Workflows []string `json:"workflows"` + Actions []string `json:"actions"` } func (w *Worker) WebhookHttpHandler(opts WebhookHandlerOptions, workflows ...workflowConverter) http.HandlerFunc { @@ -76,8 +75,7 @@ func (w *Worker) WebhookHttpHandler(opts WebhookHandlerOptions, workflows ...wor } res := HealthCheckResponse{ - Actions: actions, - Workflows: w.workflows, + Actions: actions, } data, err := json.Marshal(res) if err != nil { @@ -114,7 +112,7 @@ func (w *Worker) WebhookHttpHandler(opts WebhookHandlerOptions, workflows ...wor return } - ctx, err := newHatchetContext(r.Context(), actionWithPayload, w.client, w.l) + ctx, err := newHatchetContext(r.Context(), actionWithPayload, w.client, w.l, w) if err != nil { w.l.Error().Err(err).Msg("error creating context") writer.WriteHeader(http.StatusInternalServerError) diff --git a/pkg/worker/worker.go b/pkg/worker/worker.go index 7e1348b1b..76c2959b2 100644 --- a/pkg/worker/worker.go +++ b/pkg/worker/worker.go @@ -70,7 +70,7 @@ type Worker struct { actions map[string]Action - workflows []string + registered_workflows map[string]bool l *zerolog.Logger @@ -87,6 +87,10 @@ type Worker struct { maxRuns *int initActionNames []string + + labels map[string]interface{} + + id *string } type WorkerOpt func(*WorkerOpts) @@ -100,8 +104,9 @@ type WorkerOpts struct { alerter errors.Alerter maxRuns *int - actions []string - workflows []string + actions []string + + labels map[string]interface{} } func defaultWorkerOpts() *WorkerOpts { @@ -128,10 +133,9 @@ func WithLogLevel(lvl string) WorkerOpt { } } -func WithInternalData(actions []string, workflows []string) WorkerOpt { +func WithInternalData(actions []string) WorkerOpt { return func(opts *WorkerOpts) { opts.actions = actions - opts.workflows = workflows } } @@ -165,6 +169,12 @@ func WithMaxRuns(maxRuns int) WorkerOpt { } } +func WithLabels(labels map[string]interface{}) WorkerOpt { + return func(opts *WorkerOpts) { + opts.labels = labels + } +} + // NewWorker creates a new worker instance func NewWorker(fs ...WorkerOpt) (*Worker, error) { opts := defaultWorkerOpts() @@ -175,16 +185,25 @@ func NewWorker(fs ...WorkerOpt) (*Worker, error) { mws := newMiddlewares() + if opts.labels != nil { + for _, value := range opts.labels { + if reflect.TypeOf(value).Kind() != reflect.String && reflect.TypeOf(value).Kind() != reflect.Int { + return nil, fmt.Errorf("invalid label value: %v", value) + } + } + } + w := &Worker{ - client: opts.client, - name: opts.name, - l: opts.l, - actions: map[string]Action{}, - alerter: opts.alerter, - middlewares: mws, - maxRuns: opts.maxRuns, - initActionNames: opts.actions, - workflows: opts.workflows, + client: opts.client, + name: opts.name, + l: opts.l, + actions: map[string]Action{}, + alerter: opts.alerter, + middlewares: mws, + maxRuns: opts.maxRuns, + initActionNames: opts.actions, + labels: opts.labels, + registered_workflows: map[string]bool{}, } mws.add(w.panicMiddleware) @@ -234,6 +253,9 @@ func (w *Worker) RegisterWorkflow(workflow workflowConverter) error { if ok && wf.On == nil { return fmt.Errorf("workflow must have an trigger defined via the `On` field") } + + w.registered_workflows[wf.Name] = true + return w.On(workflow.ToWorkflowTrigger(), workflow) } @@ -324,12 +346,15 @@ func (w *Worker) Start() (func() error, error) { actionNames = append(actionNames, action.Name()) } - listener, err := w.client.Dispatcher().GetActionListener(ctx, &client.GetActionListenerRequest{ + listener, id, err := w.client.Dispatcher().GetActionListener(ctx, &client.GetActionListenerRequest{ WorkerName: w.name, Actions: actionNames, MaxRuns: w.maxRuns, + Labels: w.labels, }) + w.id = id + if err != nil { cancel() return nil, fmt.Errorf("could not get action listener: %w", err) @@ -420,7 +445,7 @@ func (w *Worker) startStepRun(ctx context.Context, assignedAction *client.Action w.cancelMap.Store(assignedAction.StepRunId, cancel) - hCtx, err := newHatchetContext(runContext, assignedAction, w.client, w.l) + hCtx, err := newHatchetContext(runContext, assignedAction, w.client, w.l, w) if err != nil { return fmt.Errorf("could not create hatchet context: %w", err) @@ -518,7 +543,7 @@ func (w *Worker) startGetGroupKey(ctx context.Context, assignedAction *client.Ac w.cancelConcurrencyMap.Store(assignedAction.WorkflowRunId, cancel) - hCtx, err := newHatchetContext(runContext, assignedAction, w.client, w.l) + hCtx, err := newHatchetContext(runContext, assignedAction, w.client, w.l, w) if err != nil { return fmt.Errorf("could not create hatchet context: %w", err) diff --git a/pkg/worker/worker_webhook.go b/pkg/worker/worker_webhook.go index 2f42066f3..2d274f672 100644 --- a/pkg/worker/worker_webhook.go +++ b/pkg/worker/worker_webhook.go @@ -54,7 +54,7 @@ type WebhookWorkerOpts struct { // TODO do not expose this to the end-user client somehow func (w *Worker) StartWebhook(ww WebhookWorkerOpts) (func() error, error) { ctx, cancel := context.WithCancel(context.Background()) - listener, err := w.client.Dispatcher().GetActionListener(ctx, &client.GetActionListenerRequest{ + listener, _, err := w.client.Dispatcher().GetActionListener(ctx, &client.GetActionListenerRequest{ WorkerName: w.name, Actions: w.initActionNames, MaxRuns: w.maxRuns, diff --git a/pkg/worker/workflow.go b/pkg/worker/workflow.go index d7473d345..b9c33f701 100644 --- a/pkg/worker/workflow.go +++ b/pkg/worker/workflow.go @@ -149,6 +149,10 @@ type WorkflowJob struct { Steps []*WorkflowStep OnFailure *WorkflowJob + + ScheduleTimeout string + + StickyStrategy *types.StickyStrategy } type WorkflowConcurrency struct { @@ -195,9 +199,10 @@ func (j *WorkflowJob) ToWorkflow(svcName string, namespace string) types.Workflo } w := types.Workflow{ - Name: namespace + j.Name, - Jobs: jobs, - OnFailureJob: onFailureJob, + Name: namespace + j.Name, + Jobs: jobs, + OnFailureJob: onFailureJob, + ScheduleTimeout: j.ScheduleTimeout, } if j.Concurrency != nil { @@ -214,6 +219,10 @@ func (j *WorkflowJob) ToWorkflow(svcName string, namespace string) types.Workflo } } + if j.StickyStrategy != nil { + w.StickyStrategy = j.StickyStrategy + } + return w } @@ -281,6 +290,8 @@ type WorkflowStep struct { Retries int RateLimit []RateLimit + + DesiredLabels map[string]*types.DesiredWorkerLabel } type RateLimit struct { @@ -304,6 +315,11 @@ func (w *WorkflowStep) SetName(name string) *WorkflowStep { return w } +func (w *WorkflowStep) SetDesiredLabels(labels map[string]*types.DesiredWorkerLabel) *WorkflowStep { + w.DesiredLabels = labels + return w +} + func (w *WorkflowStep) SetRateLimit(rateLimit RateLimit) *WorkflowStep { w.RateLimit = append(w.RateLimit, rateLimit) return w @@ -372,12 +388,13 @@ func (w *WorkflowStep) ToWorkflowStep(wfName, svcName string, index int, namespa res.Id = w.GetStepId(index) res.APIStep = types.WorkflowStep{ - Name: res.Id, - ID: w.GetStepId(index), - Timeout: w.Timeout, - ActionID: w.GetActionId(wfName, svcName, index), - Parents: []string{}, - Retries: w.Retries, + Name: res.Id, + ID: w.GetStepId(index), + Timeout: w.Timeout, + ActionID: w.GetActionId(wfName, svcName, index), + Parents: []string{}, + Retries: w.Retries, + DesiredLabels: w.DesiredLabels, } for _, rateLimit := range w.RateLimit { diff --git a/prisma/migrations/20240701144845_v0_35_0/migration.sql b/prisma/migrations/20240701144845_v0_35_0/migration.sql new file mode 100644 index 000000000..08d93b198 --- /dev/null +++ b/prisma/migrations/20240701144845_v0_35_0/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Worker" ADD COLUMN "isPaused" BOOLEAN NOT NULL DEFAULT false; diff --git a/prisma/migrations/20240703194644_v0_35_1/migration.sql b/prisma/migrations/20240703194644_v0_35_1/migration.sql new file mode 100644 index 000000000..194403abd --- /dev/null +++ b/prisma/migrations/20240703194644_v0_35_1/migration.sql @@ -0,0 +1,35 @@ +-- CreateIndex +CREATE INDEX "Event_tenantId_idx" ON "Event"("tenantId"); + +-- CreateIndex +CREATE INDEX "Event_createdAt_idx" ON "Event"("createdAt"); + +-- CreateIndex +CREATE INDEX "Event_tenantId_createdAt_idx" ON "Event"("tenantId", "createdAt"); + +-- CreateIndex +CREATE INDEX "WorkflowRun_tenantId_idx" ON "WorkflowRun"("tenantId"); + +-- CreateIndex +CREATE INDEX "WorkflowRun_workflowVersionId_idx" ON "WorkflowRun"("workflowVersionId"); + +-- CreateIndex +CREATE INDEX "WorkflowRun_createdAt_idx" ON "WorkflowRun"("createdAt"); + +-- CreateIndex +CREATE INDEX "WorkflowRun_tenantId_createdAt_idx" ON "WorkflowRun"("tenantId", "createdAt"); + +-- CreateIndex +CREATE INDEX "WorkflowRun_finishedAt_idx" ON "WorkflowRun"("finishedAt"); + +-- CreateIndex +CREATE INDEX "WorkflowRun_status_idx" ON "WorkflowRun"("status"); + +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_tenantId_idx" ON "WorkflowRunTriggeredBy"("tenantId"); + +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_eventId_idx" ON "WorkflowRunTriggeredBy"("eventId"); + +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_parentId_idx" ON "WorkflowRunTriggeredBy"("parentId"); diff --git a/prisma/migrations/20240704211308_v0_35_2/migration.sql b/prisma/migrations/20240704211308_v0_35_2/migration.sql new file mode 100644 index 000000000..3683f5d1e --- /dev/null +++ b/prisma/migrations/20240704211308_v0_35_2/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Tenant" ADD COLUMN "dataRetentionPeriod" TEXT NOT NULL DEFAULT '720h'; diff --git a/prisma/migrations/20240712142938_v0_36_0/migration.sql b/prisma/migrations/20240712142938_v0_36_0/migration.sql new file mode 100644 index 000000000..e8faafc53 --- /dev/null +++ b/prisma/migrations/20240712142938_v0_36_0/migration.sql @@ -0,0 +1,17 @@ +-- DropIndex +DROP INDEX "StepRun_tenantId_status_requeueAfter_createdAt_idx"; + +-- CreateIndex +CREATE INDEX "StepRun_tenantId_idx" ON "StepRun"("tenantId"); + +-- CreateIndex +CREATE INDEX "StepRun_workerId_idx" ON "StepRun"("workerId"); + +-- CreateIndex +CREATE INDEX "StepRun_createdAt_idx" ON "StepRun"("createdAt"); + +-- CreateIndex +CREATE INDEX "StepRun_jobRunId_status_tenantId_idx" ON "StepRun"("jobRunId", "status", "tenantId"); + +-- CreateIndex +CREATE INDEX "StepRun_tenantId_status_timeoutAt_idx" ON "StepRun"("tenantId", "status", "timeoutAt"); diff --git a/prisma/migrations/20240715154325_v0_37_0/migration.sql b/prisma/migrations/20240715154325_v0_37_0/migration.sql new file mode 100644 index 000000000..8a988b4d0 --- /dev/null +++ b/prisma/migrations/20240715154325_v0_37_0/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "WorkflowRun" ADD COLUMN "duration" INTEGER; diff --git a/prisma/migrations/20240716125848_v0_38_0/migration.sql b/prisma/migrations/20240716125848_v0_38_0/migration.sql new file mode 100644 index 000000000..75eecaa83 --- /dev/null +++ b/prisma/migrations/20240716125848_v0_38_0/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "APIToken" ADD COLUMN "internal" BOOLEAN NOT NULL DEFAULT false; diff --git a/prisma/migrations/20240716143342_v0_39_0/migration.sql b/prisma/migrations/20240716143342_v0_39_0/migration.sql new file mode 100644 index 000000000..e2c85c5c9 --- /dev/null +++ b/prisma/migrations/20240716143342_v0_39_0/migration.sql @@ -0,0 +1,17 @@ +-- CreateIndex +CREATE INDEX "GetGroupKeyRun_deletedAt_idx" ON "GetGroupKeyRun"("deletedAt"); + +-- CreateIndex +CREATE INDEX "JobRun_deletedAt_idx" ON "JobRun"("deletedAt"); + +-- CreateIndex +CREATE INDEX "StepRun_deletedAt_idx" ON "StepRun"("deletedAt"); + +-- CreateIndex +CREATE INDEX "Workflow_deletedAt_idx" ON "Workflow"("deletedAt"); + +-- CreateIndex +CREATE INDEX "WorkflowRun_deletedAt_idx" ON "WorkflowRun"("deletedAt"); + +-- CreateIndex +CREATE INDEX "WorkflowVersion_deletedAt_idx" ON "WorkflowVersion"("deletedAt"); diff --git a/prisma/migrations/20240726160621_v0_40_0/migration.sql b/prisma/migrations/20240726160621_v0_40_0/migration.sql new file mode 100644 index 000000000..43984f7b7 --- /dev/null +++ b/prisma/migrations/20240726160621_v0_40_0/migration.sql @@ -0,0 +1,97 @@ +-- CreateEnum +CREATE TYPE "StickyStrategy" AS ENUM ('SOFT', 'HARD'); + +-- CreateEnum +CREATE TYPE "WorkerLabelComparator" AS ENUM ('EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL'); + +-- AlterTable +ALTER TABLE "WorkflowVersion" ADD COLUMN "sticky" "StickyStrategy"; + +-- CreateTable +CREATE TABLE "StepDesiredWorkerLabel" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "stepId" UUID NOT NULL, + "key" TEXT NOT NULL, + "strValue" TEXT, + "intValue" INTEGER, + "required" BOOLEAN NOT NULL, + "comparator" "WorkerLabelComparator" NOT NULL, + "weight" INTEGER NOT NULL, + + CONSTRAINT "StepDesiredWorkerLabel_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "WorkflowRunStickyState" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "tenantId" UUID NOT NULL, + "workflowRunId" UUID NOT NULL, + "desiredWorkerId" UUID, + "strategy" "StickyStrategy" NOT NULL, + + CONSTRAINT "WorkflowRunStickyState_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "WorkflowRunDedupe" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "tenantId" UUID NOT NULL, + "workflowId" UUID NOT NULL, + "workflowRunId" UUID NOT NULL, + "value" TEXT NOT NULL +); + +-- CreateTable +CREATE TABLE "WorkerLabel" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "workerId" UUID NOT NULL, + "key" TEXT NOT NULL, + "strValue" TEXT, + "intValue" INTEGER, + + CONSTRAINT "WorkerLabel_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE INDEX "StepDesiredWorkerLabel_stepId_idx" ON "StepDesiredWorkerLabel"("stepId"); + +-- CreateIndex +CREATE UNIQUE INDEX "StepDesiredWorkerLabel_stepId_key_key" ON "StepDesiredWorkerLabel"("stepId", "key"); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunStickyState_workflowRunId_key" ON "WorkflowRunStickyState"("workflowRunId"); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunDedupe_id_key" ON "WorkflowRunDedupe"("id"); + +-- CreateIndex +CREATE INDEX "WorkflowRunDedupe_tenantId_value_idx" ON "WorkflowRunDedupe"("tenantId", "value"); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunDedupe_tenantId_workflowId_value_key" ON "WorkflowRunDedupe"("tenantId", "workflowId", "value"); + +-- CreateIndex +CREATE INDEX "WorkerLabel_workerId_idx" ON "WorkerLabel"("workerId"); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkerLabel_workerId_key_key" ON "WorkerLabel"("workerId", "key"); + +-- AddForeignKey +ALTER TABLE "StepDesiredWorkerLabel" ADD CONSTRAINT "StepDesiredWorkerLabel_stepId_fkey" FOREIGN KEY ("stepId") REFERENCES "Step"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "WorkflowRunStickyState" ADD CONSTRAINT "WorkflowRunStickyState_workflowRunId_fkey" FOREIGN KEY ("workflowRunId") REFERENCES "WorkflowRun"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "WorkflowRunDedupe" ADD CONSTRAINT "WorkflowRunDedupe_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "WorkerLabel" ADD CONSTRAINT "WorkerLabel_workerId_fkey" FOREIGN KEY ("workerId") REFERENCES "Worker"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/prisma/migrations/20240728042304_v0_41_0/migration.sql b/prisma/migrations/20240728042304_v0_41_0/migration.sql new file mode 100644 index 000000000..defa30154 --- /dev/null +++ b/prisma/migrations/20240728042304_v0_41_0/migration.sql @@ -0,0 +1,5 @@ +-- CreateEnum +CREATE TYPE "WorkflowKind" AS ENUM ('FUNCTION', 'DURABLE', 'DAG'); + +-- AlterTable +ALTER TABLE "WorkflowVersion" ADD COLUMN "kind" "WorkflowKind" NOT NULL DEFAULT 'DAG'; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 3b89ffbb5..77362b65a 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -171,6 +171,9 @@ model Tenant { workerPartition TenantWorkerPartition? @relation(fields: [workerPartitionId], references: [id], onDelete: SetNull, onUpdate: SetNull) workerPartitionId String? + // The data retention period for deletable resources. This is a Go duration string. + dataRetentionPeriod String @default("720h") + events Event[] workflows Workflow[] jobs Job[] @@ -203,6 +206,7 @@ model Tenant { limits TenantResourceLimit[] limitAlerts TenantResourceLimitAlert[] webhookWorkers WebhookWorker[] + dedupes WorkflowRunDedupe[] @@index([controllerPartitionId]) @@index([workerPartitionId]) @@ -366,6 +370,9 @@ model APIToken { // when to next alert about expiration nextAlertAt DateTime? + // whether this token is for internal (internal to Hatchet) use + internal Boolean @default(false) + // an optional name for the token name String? @@ -405,6 +412,10 @@ model Event { // the workflow runs that were triggered by this event workflowRuns WorkflowRunTriggeredBy[] + + @@index([tenantId]) + @@index([createdAt]) + @@index([tenantId, createdAt]) } model WorkflowTag { @@ -456,6 +467,18 @@ model Workflow { // workflow names are unique per tenant @@unique([tenantId, name]) + @@index([deletedAt]) +} + +enum StickyStrategy { + SOFT + HARD +} + +enum WorkflowKind { + FUNCTION + DURABLE + DAG } model WorkflowVersion { @@ -481,6 +504,9 @@ model WorkflowVersion { // concurrency limits for the workflow concurrency WorkflowConcurrency? + // sticky strategy for the workflow to assign steps to the same worker + sticky StickyStrategy? + // the declared jobs jobs Job[] @@ -494,8 +520,13 @@ model WorkflowVersion { // the scheduled runs for the workflow scheduled WorkflowTriggerScheduledRef[] + // the kind of workflow + kind WorkflowKind @default(DAG) + // the default amount of time to wait while scheduling a step run scheduleTimeout String @default("5m") + + @@index([deletedAt]) } enum ConcurrencyLimitStrategy { @@ -700,6 +731,27 @@ model Action { @@unique([tenantId, actionId]) } +model StepDesiredWorkerLabel { + id BigInt @id @default(autoincrement()) @db.BigInt + + createdAt DateTime @default(now()) + updatedAt DateTime @default(now()) @updatedAt + + step Step @relation(fields: [stepId], references: [id], onDelete: Cascade, onUpdate: Cascade) + stepId String @db.Uuid + + key String + strValue String? + intValue Int? + + required Boolean + comparator WorkerLabelComparator + weight Int + + @@unique([stepId, key]) + @@index([stepId]) +} + model Step { // base fields id String @id @unique @default(uuid()) @db.Uuid @@ -743,6 +795,8 @@ model Step { rateLimits StepRateLimit[] + workerLabels StepDesiredWorkerLabel[] + // readable ids are unique per job @@unique([jobId, readableId]) } @@ -796,6 +850,23 @@ enum WorkflowRunStatus { FAILED } +model WorkflowRunStickyState { + id BigInt @id @default(autoincrement()) @db.BigInt + createdAt DateTime @default(now()) + updatedAt DateTime @default(now()) @updatedAt + tenantId String @db.Uuid + + // the parent workflow run + workflowRun WorkflowRun @relation(fields: [workflowRunId], references: [id], onDelete: Cascade, onUpdate: Cascade) + workflowRunId String @unique @db.Uuid + + // the sticky state + desiredWorkerId String? @db.Uuid + + // the sticky state value + strategy StickyStrategy +} + model WorkflowRun { // base fields id String @id @unique @default(uuid()) @db.Uuid @@ -823,6 +894,8 @@ model WorkflowRun { triggeredBy WorkflowRunTriggeredBy? + sticky WorkflowRunStickyState? + // the run error error String? @@ -832,6 +905,9 @@ model WorkflowRun { // the run finished at finishedAt DateTime? + // the duration of the run (ms) + duration Int? + // a list of dependents for this workflow run children WorkflowRun[] @relation("WorkflowRunChild") scheduledChildren WorkflowTriggerScheduledRef[] @@ -853,6 +929,36 @@ model WorkflowRun { additionalMetadata Json? @@unique([parentId, parentStepRunId, childKey]) + @@index([tenantId]) + @@index([workflowVersionId]) + @@index([createdAt]) + @@index([tenantId, createdAt]) + @@index([finishedAt]) + @@index([status]) + @@index([deletedAt]) +} + +model WorkflowRunDedupe { + id BigInt @unique @default(autoincrement()) @db.BigInt + createdAt DateTime @default(now()) + updatedAt DateTime @default(now()) @updatedAt + + // the parent tenant + tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade, onUpdate: Cascade) + tenantId String @db.Uuid + + // the parent workflow + workflowId String @db.Uuid + + // the workflow run id which used this dedupe value + workflowRunId String @db.Uuid + + // the dedupe value + value String + + // DO NOT REMOVE - this uniqueness constraint is cased on in code + @@unique([tenantId, workflowId, value]) + @@index([tenantId, value]) } model GetGroupKeyRun { @@ -860,7 +966,7 @@ model GetGroupKeyRun { id String @id @unique @default(uuid()) @db.Uuid createdAt DateTime @default(now()) updatedAt DateTime @default(now()) @updatedAt - deletedAt DateTime? + deletedAt DateTime? // TODO verify we're setting this // the parent tenant tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade, onUpdate: Cascade) @@ -913,6 +1019,8 @@ model GetGroupKeyRun { // errors while cancelling the run cancelledError String? + + @@index([deletedAt]) } model WorkflowRunTriggeredBy { @@ -944,6 +1052,10 @@ model WorkflowRunTriggeredBy { // a specific time that triggered this workflow scheduled WorkflowTriggerScheduledRef? @relation(fields: [scheduledId], references: [id]) scheduledId String? @unique @db.Uuid + + @@index([tenantId]) + @@index([eventId]) + @@index([parentId]) } enum JobRunStatus { @@ -1007,6 +1119,7 @@ model JobRun { // index for ResolveWorkflowRunStatus and ListJobRunsForWorkflowRun @@index([workflowRunId, tenantId]) + @@index([deletedAt]) } model JobRunLookupData { @@ -1142,8 +1255,9 @@ model StepRun { events StepRunEvent[] - // index for ListStepRunsToRequeue and ListStepRunsToReassign - @@index([tenantId, status, requeueAfter, createdAt]) + @@index([tenantId]) + @@index([workerId]) + @@index([createdAt]) // index for LinkStepRunParents @@index([stepId]) // index for ListStartableStepRuns @@ -1152,6 +1266,11 @@ model StepRun { @@index([id, tenantId]) // index for ResolveJobRunStatus, ResolveLaterStepRuns, and LinkStepRunParents @@index([jobRunId, tenantId, order]) + // index for ListStepRunsToRequeue, ListStepRunsToReassign + @@index([jobRunId, status, tenantId]) + // index for PollStepRuns + @@index([tenantId, status, timeoutAt]) + @@index([deletedAt]) } enum StepRunEventReason { @@ -1279,6 +1398,32 @@ model Ticker { tenantAlerts TenantAlertingSettings[] } +enum WorkerLabelComparator { + EQUAL + NOT_EQUAL + GREATER_THAN + GREATER_THAN_OR_EQUAL + LESS_THAN + LESS_THAN_OR_EQUAL +} + +model WorkerLabel { + id BigInt @id @default(autoincrement()) @db.BigInt + + createdAt DateTime @default(now()) + updatedAt DateTime @default(now()) @updatedAt + + worker Worker @relation(fields: [workerId], references: [id], onDelete: Cascade, onUpdate: Cascade) + workerId String @db.Uuid + + key String + strValue String? + intValue Int? + + @@unique([workerId, key]) + @@index([workerId]) +} + model Worker { // base fields id String @id @unique @default(uuid()) @db.Uuid @@ -1286,6 +1431,8 @@ model Worker { updatedAt DateTime @default(now()) @updatedAt deletedAt DateTime? + labels WorkerLabel[] + // the parent tenant tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade, onUpdate: Cascade) tenantId String @db.Uuid @@ -1293,7 +1440,10 @@ model Worker { // the last heartbeat time lastHeartbeatAt DateTime? - // whether this worker is active or not + // whether the worker has been marked as paused + isPaused Boolean @default(false) + + // whether this worker GRPC connection is active or not isActive Boolean @default(false) lastListenerEstablished DateTime? @@ -1497,5 +1647,5 @@ model SNSIntegration { } model SecurityCheckIdent { - id String @id @unique @default(uuid()) @db.Uuid + id String @id @unique @default(uuid()) @db.Uuid } diff --git a/sql/migrations/20240701144852_v0_35_0.sql b/sql/migrations/20240701144852_v0_35_0.sql new file mode 100644 index 000000000..20854824c --- /dev/null +++ b/sql/migrations/20240701144852_v0_35_0.sql @@ -0,0 +1,2 @@ +-- Modify "Worker" table +ALTER TABLE "Worker" ADD COLUMN "isPaused" boolean NOT NULL DEFAULT false; diff --git a/sql/migrations/20240703194656_v0.35.1.sql b/sql/migrations/20240703194656_v0.35.1.sql new file mode 100644 index 000000000..9e4cb5dbf --- /dev/null +++ b/sql/migrations/20240703194656_v0.35.1.sql @@ -0,0 +1,26 @@ +-- atlas:txmode none + +-- Create index "Event_createdAt_idx" to table: "Event" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "Event_createdAt_idx" ON "Event" ("createdAt"); +-- Create index "Event_tenantId_createdAt_idx" to table: "Event" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "Event_tenantId_createdAt_idx" ON "Event" ("tenantId", "createdAt"); +-- Create index "Event_tenantId_idx" to table: "Event" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "Event_tenantId_idx" ON "Event" ("tenantId"); +-- Create index "WorkflowRun_createdAt_idx" to table: "WorkflowRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRun_createdAt_idx" ON "WorkflowRun" ("createdAt"); +-- Create index "WorkflowRun_finishedAt_idx" to table: "WorkflowRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRun_finishedAt_idx" ON "WorkflowRun" ("finishedAt"); +-- Create index "WorkflowRun_status_idx" to table: "WorkflowRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRun_status_idx" ON "WorkflowRun" ("status"); +-- Create index "WorkflowRun_tenantId_createdAt_idx" to table: "WorkflowRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRun_tenantId_createdAt_idx" ON "WorkflowRun" ("tenantId", "createdAt"); +-- Create index "WorkflowRun_tenantId_idx" to table: "WorkflowRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRun_tenantId_idx" ON "WorkflowRun" ("tenantId"); +-- Create index "WorkflowRun_workflowVersionId_idx" to table: "WorkflowRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRun_workflowVersionId_idx" ON "WorkflowRun" ("workflowVersionId"); +-- Create index "WorkflowRunTriggeredBy_eventId_idx" to table: "WorkflowRunTriggeredBy" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRunTriggeredBy_eventId_idx" ON "WorkflowRunTriggeredBy" ("eventId"); +-- Create index "WorkflowRunTriggeredBy_parentId_idx" to table: "WorkflowRunTriggeredBy" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRunTriggeredBy_parentId_idx" ON "WorkflowRunTriggeredBy" ("parentId"); +-- Create index "WorkflowRunTriggeredBy_tenantId_idx" to table: "WorkflowRunTriggeredBy" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRunTriggeredBy_tenantId_idx" ON "WorkflowRunTriggeredBy" ("tenantId"); diff --git a/sql/migrations/20240704211315_v0.35.2.sql b/sql/migrations/20240704211315_v0.35.2.sql new file mode 100644 index 000000000..7ca8caeb7 --- /dev/null +++ b/sql/migrations/20240704211315_v0.35.2.sql @@ -0,0 +1,2 @@ +-- Modify "Tenant" table +ALTER TABLE "Tenant" ADD COLUMN "dataRetentionPeriod" text NOT NULL DEFAULT '720h'; diff --git a/sql/migrations/20240712142946_v0.36.0.sql b/sql/migrations/20240712142946_v0.36.0.sql new file mode 100644 index 000000000..a8c13c46b --- /dev/null +++ b/sql/migrations/20240712142946_v0.36.0.sql @@ -0,0 +1,14 @@ +-- atlas:txmode none + +-- Drop index "StepRun_tenantId_status_requeueAfter_createdAt_idx" from table: "StepRun" +DROP INDEX CONCURRENTLY IF EXISTS "StepRun_tenantId_status_requeueAfter_createdAt_idx"; +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_createdAt_idx" to table: "StepRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_createdAt_idx" ON "StepRun" ("createdAt"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_jobRunId_status_tenantId_idx" to table: "StepRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_jobRunId_status_tenantId_idx" ON "StepRun" ("jobRunId", "status", "tenantId"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_tenantId_idx" to table: "StepRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_tenantId_idx" ON "StepRun" ("tenantId"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_tenantId_status_timeoutAt_idx" to table: "StepRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_tenantId_status_timeoutAt_idx" ON "StepRun" ("tenantId", "status", "timeoutAt"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_workerId_idx" to table: "StepRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_workerId_idx" ON "StepRun" ("workerId"); diff --git a/sql/migrations/20240715154334_v0.37.0.sql b/sql/migrations/20240715154334_v0.37.0.sql new file mode 100644 index 000000000..172bf58e4 --- /dev/null +++ b/sql/migrations/20240715154334_v0.37.0.sql @@ -0,0 +1,2 @@ +-- Modify "WorkflowRun" table +ALTER TABLE "WorkflowRun" ADD COLUMN "duration" integer NULL; diff --git a/sql/migrations/20240716125857_v0.38.0.sql b/sql/migrations/20240716125857_v0.38.0.sql new file mode 100644 index 000000000..0e1708cb8 --- /dev/null +++ b/sql/migrations/20240716125857_v0.38.0.sql @@ -0,0 +1,2 @@ +-- Modify "APIToken" table +ALTER TABLE "APIToken" ADD COLUMN "internal" boolean NOT NULL DEFAULT false; diff --git a/sql/migrations/20240716143349_v0.39.0.sql b/sql/migrations/20240716143349_v0.39.0.sql new file mode 100644 index 000000000..b3118c578 --- /dev/null +++ b/sql/migrations/20240716143349_v0.39.0.sql @@ -0,0 +1,14 @@ +-- atlas:txmode none + +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "GetGroupKeyRun_deletedAt_idx" to table: "GetGroupKeyRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "GetGroupKeyRun_deletedAt_idx" ON "GetGroupKeyRun" ("deletedAt"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "JobRun_deletedAt_idx" to table: "JobRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "JobRun_deletedAt_idx" ON "JobRun" ("deletedAt"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_deletedAt_idx" to table: "StepRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_deletedAt_idx" ON "StepRun" ("deletedAt"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "Workflow_deletedAt_idx" to table: "Workflow" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "Workflow_deletedAt_idx" ON "Workflow" ("deletedAt"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRun_deletedAt_idx" to table: "WorkflowRun" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowRun_deletedAt_idx" ON "WorkflowRun" ("deletedAt"); +-- CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowVersion_deletedAt_idx" to table: "WorkflowVersion" +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkflowVersion_deletedAt_idx" ON "WorkflowVersion" ("deletedAt"); diff --git a/sql/migrations/20240726160629_v0.40.0.sql b/sql/migrations/20240726160629_v0.40.0.sql new file mode 100644 index 000000000..209950b4c --- /dev/null +++ b/sql/migrations/20240726160629_v0.40.0.sql @@ -0,0 +1,30 @@ +-- Create enum type "StickyStrategy" +CREATE TYPE "StickyStrategy" AS ENUM ('SOFT', 'HARD'); +-- Create enum type "WorkerLabelComparator" +CREATE TYPE "WorkerLabelComparator" AS ENUM ('EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL'); +-- Modify "WorkflowVersion" table +ALTER TABLE "WorkflowVersion" ADD COLUMN "sticky" "StickyStrategy" NULL; +-- Create "StepDesiredWorkerLabel" table +CREATE TABLE "StepDesiredWorkerLabel" ("id" bigserial NOT NULL, "createdAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "stepId" uuid NOT NULL, "key" text NOT NULL, "strValue" text NULL, "intValue" integer NULL, "required" boolean NOT NULL, "comparator" "WorkerLabelComparator" NOT NULL, "weight" integer NOT NULL, PRIMARY KEY ("id"), CONSTRAINT "StepDesiredWorkerLabel_stepId_fkey" FOREIGN KEY ("stepId") REFERENCES "Step" ("id") ON UPDATE CASCADE ON DELETE CASCADE); +-- Create index "StepDesiredWorkerLabel_stepId_idx" to table: "StepDesiredWorkerLabel" +CREATE INDEX "StepDesiredWorkerLabel_stepId_idx" ON "StepDesiredWorkerLabel" ("stepId"); +-- Create index "StepDesiredWorkerLabel_stepId_key_key" to table: "StepDesiredWorkerLabel" +CREATE UNIQUE INDEX "StepDesiredWorkerLabel_stepId_key_key" ON "StepDesiredWorkerLabel" ("stepId", "key"); +-- Create "WorkerLabel" table +CREATE TABLE "WorkerLabel" ("id" bigserial NOT NULL, "createdAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "workerId" uuid NOT NULL, "key" text NOT NULL, "strValue" text NULL, "intValue" integer NULL, PRIMARY KEY ("id"), CONSTRAINT "WorkerLabel_workerId_fkey" FOREIGN KEY ("workerId") REFERENCES "Worker" ("id") ON UPDATE CASCADE ON DELETE CASCADE); +-- Create index "WorkerLabel_workerId_idx" to table: "WorkerLabel" +CREATE INDEX "WorkerLabel_workerId_idx" ON "WorkerLabel" ("workerId"); +-- Create index "WorkerLabel_workerId_key_key" to table: "WorkerLabel" +CREATE UNIQUE INDEX "WorkerLabel_workerId_key_key" ON "WorkerLabel" ("workerId", "key"); +-- Create "WorkflowRunDedupe" table +CREATE TABLE "WorkflowRunDedupe" ("id" bigserial NOT NULL, "createdAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "tenantId" uuid NOT NULL, "workflowId" uuid NOT NULL, "workflowRunId" uuid NOT NULL, "value" text NOT NULL, CONSTRAINT "WorkflowRunDedupe_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant" ("id") ON UPDATE CASCADE ON DELETE CASCADE); +-- Create index "WorkflowRunDedupe_id_key" to table: "WorkflowRunDedupe" +CREATE UNIQUE INDEX "WorkflowRunDedupe_id_key" ON "WorkflowRunDedupe" ("id"); +-- Create index "WorkflowRunDedupe_tenantId_value_idx" to table: "WorkflowRunDedupe" +CREATE INDEX "WorkflowRunDedupe_tenantId_value_idx" ON "WorkflowRunDedupe" ("tenantId", "value"); +-- Create index "WorkflowRunDedupe_tenantId_workflowId_value_key" to table: "WorkflowRunDedupe" +CREATE UNIQUE INDEX "WorkflowRunDedupe_tenantId_workflowId_value_key" ON "WorkflowRunDedupe" ("tenantId", "workflowId", "value"); +-- Create "WorkflowRunStickyState" table +CREATE TABLE "WorkflowRunStickyState" ("id" bigserial NOT NULL, "createdAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "tenantId" uuid NOT NULL, "workflowRunId" uuid NOT NULL, "desiredWorkerId" uuid NULL, "strategy" "StickyStrategy" NOT NULL, PRIMARY KEY ("id"), CONSTRAINT "WorkflowRunStickyState_workflowRunId_fkey" FOREIGN KEY ("workflowRunId") REFERENCES "WorkflowRun" ("id") ON UPDATE CASCADE ON DELETE CASCADE); +-- Create index "WorkflowRunStickyState_workflowRunId_key" to table: "WorkflowRunStickyState" +CREATE UNIQUE INDEX "WorkflowRunStickyState_workflowRunId_key" ON "WorkflowRunStickyState" ("workflowRunId"); diff --git a/sql/migrations/20240728042317_v0.41.0.sql b/sql/migrations/20240728042317_v0.41.0.sql new file mode 100644 index 000000000..a5ae450ea --- /dev/null +++ b/sql/migrations/20240728042317_v0.41.0.sql @@ -0,0 +1,4 @@ +-- Create enum type "WorkflowKind" +CREATE TYPE "WorkflowKind" AS ENUM ('FUNCTION', 'DURABLE', 'DAG'); +-- Modify "WorkflowVersion" table +ALTER TABLE "WorkflowVersion" ADD COLUMN "kind" "WorkflowKind" NOT NULL DEFAULT 'DAG'; diff --git a/sql/migrations/atlas.sum b/sql/migrations/atlas.sum index aa8462d06..3dbdc8187 100644 --- a/sql/migrations/atlas.sum +++ b/sql/migrations/atlas.sum @@ -1,4 +1,4 @@ -h1:NK+ekkECiuadzun2bA8DNGD9zGTMM8+f44rPVLThpJs= +h1:XFQMI4EVfB9aQeC7tmPtmWnso8rccoLkbn/Rh295rWY= 20240115180414_init.sql h1:Ef3ZyjAHkmJPdGF/dEWCahbwgcg6uGJKnDxW2JCRi2k= 20240122014727_v0_6_0.sql h1:o/LdlteAeFgoHJ3e/M4Xnghqt9826IE/Y/h0q95Acuo= 20240126235456_v0_7_0.sql h1:KiVzt/hXgQ6esbdC6OMJOOWuYEXmy1yeCpmsVAHTFKs= @@ -34,3 +34,12 @@ h1:NK+ekkECiuadzun2bA8DNGD9zGTMM8+f44rPVLThpJs= 20240606145243_v0_31_0.sql h1:ALisDQv8IPGe6MiBSfE/Esdl5x4pzNHIVMavlsBXIPE= 20240625180548_v0.34.0.sql h1:77uSk0VF/jBvEPHCqWC4hmMQqUx4zVnMdTryGsIXt9s= 20240626204339_v0.34.2.sql h1:e2hArnEfcEYcBjEPxZW3axkl4CGt2lHa1oIA2r2fjfY= +20240701144852_v0_35_0.sql h1:q8pPeq4LZp7hxZZp4P08xctwAdQFKDEA9vbj1Ulbn7U= +20240703194656_v0.35.1.sql h1:wg/DWVOmWy7UiXrimlnwongTcT0aJa4pYSOYkiREgNg= +20240704211315_v0.35.2.sql h1:/AzVYp+jzwPGx8JHUCPjBi2CnXmFvtsTWL3SgrC49IE= +20240712142946_v0.36.0.sql h1:YA/z+ZRR9QhqF+dCXy1fBgJczSyyaSEFXgThcID6SfI= +20240715154334_v0.37.0.sql h1:/lu8OPyH2rHPJRk3wL+LBsHp698YMyh0wLz+bRu7qXU= +20240716125857_v0.38.0.sql h1:BFa19pXab9GHd0xkSqLRT3eNer9QKoVf7SpR6O03l+Y= +20240716143349_v0.39.0.sql h1:K0m6v5XamYBYJgBKpm69Jh3QOOSXKTCSNoU9hR3sLM4= +20240726160629_v0.40.0.sql h1:XmnKVQ/AMUTPnL1SZPwLhmY0KR4sT9B6+uhVbElYx34= +20240728042317_v0.41.0.sql h1:kgjgRXSRGMCXAOUweAwlTFd/uWtx7a24gLdJEfbK1rM= diff --git a/sql/schema/schema.sql b/sql/schema/schema.sql index c163068a1..e8768fe9a 100644 --- a/sql/schema/schema.sql +++ b/sql/schema/schema.sql @@ -25,6 +25,9 @@ CREATE TYPE "StepRunEventSeverity" AS ENUM ('INFO', 'WARNING', 'CRITICAL'); -- CreateEnum CREATE TYPE "StepRunStatus" AS ENUM ('PENDING', 'PENDING_ASSIGNMENT', 'ASSIGNED', 'RUNNING', 'SUCCEEDED', 'FAILED', 'CANCELLED'); +-- CreateEnum +CREATE TYPE "StickyStrategy" AS ENUM ('SOFT', 'HARD'); + -- CreateEnum CREATE TYPE "TenantMemberRole" AS ENUM ('OWNER', 'ADMIN', 'MEMBER'); @@ -34,6 +37,12 @@ CREATE TYPE "TenantResourceLimitAlertType" AS ENUM ('Alarm', 'Exhausted'); -- CreateEnum CREATE TYPE "VcsProvider" AS ENUM ('GITHUB'); +-- CreateEnum +CREATE TYPE "WorkerLabelComparator" AS ENUM ('EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL'); + +-- CreateEnum +CREATE TYPE "WorkflowKind" AS ENUM ('FUNCTION', 'DURABLE', 'DAG'); + -- CreateEnum CREATE TYPE "WorkflowRunStatus" AS ENUM ('PENDING', 'RUNNING', 'SUCCEEDED', 'FAILED', 'QUEUED'); @@ -47,6 +56,7 @@ CREATE TABLE "APIToken" ( "name" TEXT, "tenantId" UUID, "nextAlertAt" TIMESTAMP(3), + "internal" BOOLEAN NOT NULL DEFAULT false, CONSTRAINT "APIToken_pkey" PRIMARY KEY ("id") ); @@ -263,6 +273,22 @@ CREATE TABLE "Step" ( CONSTRAINT "Step_pkey" PRIMARY KEY ("id") ); +-- CreateTable +CREATE TABLE "StepDesiredWorkerLabel" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "stepId" UUID NOT NULL, + "key" TEXT NOT NULL, + "strValue" TEXT, + "intValue" INTEGER, + "required" BOOLEAN NOT NULL, + "comparator" "WorkerLabelComparator" NOT NULL, + "weight" INTEGER NOT NULL, + + CONSTRAINT "StepDesiredWorkerLabel_pkey" PRIMARY KEY ("id") +); + -- CreateTable CREATE TABLE "StepRateLimit" ( "units" INTEGER NOT NULL, @@ -362,6 +388,7 @@ CREATE TABLE "Tenant" ( "alertMemberEmails" BOOLEAN NOT NULL DEFAULT true, "controllerPartitionId" TEXT, "workerPartitionId" TEXT, + "dataRetentionPeriod" TEXT NOT NULL DEFAULT '720h', CONSTRAINT "Tenant_pkey" PRIMARY KEY ("id") ); @@ -572,10 +599,24 @@ CREATE TABLE "Worker" ( "maxRuns" INTEGER NOT NULL DEFAULT 100, "isActive" BOOLEAN NOT NULL DEFAULT false, "lastListenerEstablished" TIMESTAMP(3), + "isPaused" BOOLEAN NOT NULL DEFAULT false, CONSTRAINT "Worker_pkey" PRIMARY KEY ("id") ); +-- CreateTable +CREATE TABLE "WorkerLabel" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "workerId" UUID NOT NULL, + "key" TEXT NOT NULL, + "strValue" TEXT, + "intValue" INTEGER, + + CONSTRAINT "WorkerLabel_pkey" PRIMARY KEY ("id") +); + -- CreateTable CREATE TABLE "WorkerSemaphore" ( "workerId" UUID NOT NULL, @@ -636,10 +677,35 @@ CREATE TABLE "WorkflowRun" ( "parentId" UUID, "parentStepRunId" UUID, "additionalMetadata" JSONB, + "duration" INTEGER, CONSTRAINT "WorkflowRun_pkey" PRIMARY KEY ("id") ); +-- CreateTable +CREATE TABLE "WorkflowRunDedupe" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "tenantId" UUID NOT NULL, + "workflowId" UUID NOT NULL, + "workflowRunId" UUID NOT NULL, + "value" TEXT NOT NULL +); + +-- CreateTable +CREATE TABLE "WorkflowRunStickyState" ( + "id" BIGSERIAL NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "tenantId" UUID NOT NULL, + "workflowRunId" UUID NOT NULL, + "desiredWorkerId" UUID, + "strategy" "StickyStrategy" NOT NULL, + + CONSTRAINT "WorkflowRunStickyState_pkey" PRIMARY KEY ("id") +); + -- CreateTable CREATE TABLE "WorkflowRunTriggeredBy" ( "id" UUID NOT NULL, @@ -723,6 +789,8 @@ CREATE TABLE "WorkflowVersion" ( "checksum" TEXT NOT NULL, "scheduleTimeout" TEXT NOT NULL DEFAULT '5m', "onFailureJobId" UUID, + "sticky" "StickyStrategy", + "kind" "WorkflowKind" NOT NULL DEFAULT 'DAG', CONSTRAINT "WorkflowVersion_pkey" PRIMARY KEY ("id") ); @@ -772,9 +840,21 @@ CREATE UNIQUE INDEX "ControllerPartition_id_key" ON "ControllerPartition"("id" A -- CreateIndex CREATE UNIQUE INDEX "Dispatcher_id_key" ON "Dispatcher"("id" ASC); +-- CreateIndex +CREATE INDEX "Event_createdAt_idx" ON "Event"("createdAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "Event_id_key" ON "Event"("id" ASC); +-- CreateIndex +CREATE INDEX "Event_tenantId_createdAt_idx" ON "Event"("tenantId" ASC, "createdAt" ASC); + +-- CreateIndex +CREATE INDEX "Event_tenantId_idx" ON "Event"("tenantId" ASC); + +-- CreateIndex +CREATE INDEX "GetGroupKeyRun_deletedAt_idx" ON "GetGroupKeyRun"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "GetGroupKeyRun_id_key" ON "GetGroupKeyRun"("id" ASC); @@ -787,6 +867,9 @@ CREATE UNIQUE INDEX "Job_id_key" ON "Job"("id" ASC); -- CreateIndex CREATE UNIQUE INDEX "Job_workflowVersionId_name_key" ON "Job"("workflowVersionId" ASC, "name" ASC); +-- CreateIndex +CREATE INDEX "JobRun_deletedAt_idx" ON "JobRun"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "JobRun_id_key" ON "JobRun"("id" ASC); @@ -832,9 +915,21 @@ CREATE UNIQUE INDEX "Step_id_key" ON "Step"("id" ASC); -- CreateIndex CREATE UNIQUE INDEX "Step_jobId_readableId_key" ON "Step"("jobId" ASC, "readableId" ASC); +-- CreateIndex +CREATE INDEX "StepDesiredWorkerLabel_stepId_idx" ON "StepDesiredWorkerLabel"("stepId" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "StepDesiredWorkerLabel_stepId_key_key" ON "StepDesiredWorkerLabel"("stepId" ASC, "key" ASC); + -- CreateIndex CREATE UNIQUE INDEX "StepRateLimit_stepId_rateLimitKey_key" ON "StepRateLimit"("stepId" ASC, "rateLimitKey" ASC); +-- CreateIndex +CREATE INDEX "StepRun_createdAt_idx" ON "StepRun"("createdAt" ASC); + +-- CreateIndex +CREATE INDEX "StepRun_deletedAt_idx" ON "StepRun"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "StepRun_id_key" ON "StepRun"("id" ASC); @@ -844,6 +939,9 @@ CREATE INDEX "StepRun_id_tenantId_idx" ON "StepRun"("id" ASC, "tenantId" ASC); -- CreateIndex CREATE INDEX "StepRun_jobRunId_status_idx" ON "StepRun"("jobRunId" ASC, "status" ASC); +-- CreateIndex +CREATE INDEX "StepRun_jobRunId_status_tenantId_idx" ON "StepRun"("jobRunId" ASC, "status" ASC, "tenantId" ASC); + -- CreateIndex CREATE INDEX "StepRun_jobRunId_tenantId_order_idx" ON "StepRun"("jobRunId" ASC, "tenantId" ASC, "order" ASC); @@ -851,7 +949,13 @@ CREATE INDEX "StepRun_jobRunId_tenantId_order_idx" ON "StepRun"("jobRunId" ASC, CREATE INDEX "StepRun_stepId_idx" ON "StepRun"("stepId" ASC); -- CreateIndex -CREATE INDEX "StepRun_tenantId_status_requeueAfter_createdAt_idx" ON "StepRun"("tenantId" ASC, "status" ASC, "requeueAfter" ASC, "createdAt" ASC); +CREATE INDEX "StepRun_tenantId_idx" ON "StepRun"("tenantId" ASC); + +-- CreateIndex +CREATE INDEX "StepRun_tenantId_status_timeoutAt_idx" ON "StepRun"("tenantId" ASC, "status" ASC, "timeoutAt" ASC); + +-- CreateIndex +CREATE INDEX "StepRun_workerId_idx" ON "StepRun"("workerId" ASC); -- CreateIndex CREATE UNIQUE INDEX "StepRunEvent_id_key" ON "StepRunEvent"("id" ASC); @@ -949,6 +1053,12 @@ CREATE UNIQUE INDEX "WebhookWorkerWorkflow_webhookWorkerId_workflowId_key" ON "W -- CreateIndex CREATE UNIQUE INDEX "Worker_id_key" ON "Worker"("id" ASC); +-- CreateIndex +CREATE INDEX "WorkerLabel_workerId_idx" ON "WorkerLabel"("workerId" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkerLabel_workerId_key_key" ON "WorkerLabel"("workerId" ASC, "key" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkerSemaphore_workerId_key" ON "WorkerSemaphore"("workerId" ASC); @@ -961,6 +1071,9 @@ CREATE UNIQUE INDEX "WorkerSemaphoreSlot_stepRunId_key" ON "WorkerSemaphoreSlot" -- CreateIndex CREATE INDEX "WorkerSemaphoreSlot_workerId_idx" ON "WorkerSemaphoreSlot"("workerId" ASC); +-- CreateIndex +CREATE INDEX "Workflow_deletedAt_idx" ON "Workflow"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "Workflow_id_key" ON "Workflow"("id" ASC); @@ -973,21 +1086,63 @@ CREATE UNIQUE INDEX "WorkflowConcurrency_id_key" ON "WorkflowConcurrency"("id" A -- CreateIndex CREATE UNIQUE INDEX "WorkflowConcurrency_workflowVersionId_key" ON "WorkflowConcurrency"("workflowVersionId" ASC); +-- CreateIndex +CREATE INDEX "WorkflowRun_createdAt_idx" ON "WorkflowRun"("createdAt" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_deletedAt_idx" ON "WorkflowRun"("deletedAt" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_finishedAt_idx" ON "WorkflowRun"("finishedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowRun_id_key" ON "WorkflowRun"("id" ASC); -- CreateIndex CREATE UNIQUE INDEX "WorkflowRun_parentId_parentStepRunId_childKey_key" ON "WorkflowRun"("parentId" ASC, "parentStepRunId" ASC, "childKey" ASC); +-- CreateIndex +CREATE INDEX "WorkflowRun_status_idx" ON "WorkflowRun"("status" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_tenantId_createdAt_idx" ON "WorkflowRun"("tenantId" ASC, "createdAt" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_tenantId_idx" ON "WorkflowRun"("tenantId" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRun_workflowVersionId_idx" ON "WorkflowRun"("workflowVersionId" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunDedupe_id_key" ON "WorkflowRunDedupe"("id" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRunDedupe_tenantId_value_idx" ON "WorkflowRunDedupe"("tenantId" ASC, "value" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunDedupe_tenantId_workflowId_value_key" ON "WorkflowRunDedupe"("tenantId" ASC, "workflowId" ASC, "value" ASC); + +-- CreateIndex +CREATE UNIQUE INDEX "WorkflowRunStickyState_workflowRunId_key" ON "WorkflowRunStickyState"("workflowRunId" ASC); + +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_eventId_idx" ON "WorkflowRunTriggeredBy"("eventId" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowRunTriggeredBy_id_key" ON "WorkflowRunTriggeredBy"("id" ASC); +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_parentId_idx" ON "WorkflowRunTriggeredBy"("parentId" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowRunTriggeredBy_parentId_key" ON "WorkflowRunTriggeredBy"("parentId" ASC); -- CreateIndex CREATE UNIQUE INDEX "WorkflowRunTriggeredBy_scheduledId_key" ON "WorkflowRunTriggeredBy"("scheduledId" ASC); +-- CreateIndex +CREATE INDEX "WorkflowRunTriggeredBy_tenantId_idx" ON "WorkflowRunTriggeredBy"("tenantId" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowTag_id_key" ON "WorkflowTag"("id" ASC); @@ -1012,6 +1167,9 @@ CREATE UNIQUE INDEX "WorkflowTriggers_id_key" ON "WorkflowTriggers"("id" ASC); -- CreateIndex CREATE UNIQUE INDEX "WorkflowTriggers_workflowVersionId_key" ON "WorkflowTriggers"("workflowVersionId" ASC); +-- CreateIndex +CREATE INDEX "WorkflowVersion_deletedAt_idx" ON "WorkflowVersion"("deletedAt" ASC); + -- CreateIndex CREATE UNIQUE INDEX "WorkflowVersion_id_key" ON "WorkflowVersion"("id" ASC); @@ -1123,6 +1281,9 @@ ALTER TABLE "Step" ADD CONSTRAINT "Step_jobId_fkey" FOREIGN KEY ("jobId") REFERE -- AddForeignKey ALTER TABLE "Step" ADD CONSTRAINT "Step_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE; +-- AddForeignKey +ALTER TABLE "StepDesiredWorkerLabel" ADD CONSTRAINT "StepDesiredWorkerLabel_stepId_fkey" FOREIGN KEY ("stepId") REFERENCES "Step"("id") ON DELETE CASCADE ON UPDATE CASCADE; + -- AddForeignKey ALTER TABLE "StepRateLimit" ADD CONSTRAINT "StepRateLimit_stepId_fkey" FOREIGN KEY ("stepId") REFERENCES "Step"("id") ON DELETE CASCADE ON UPDATE CASCADE; @@ -1222,6 +1383,9 @@ ALTER TABLE "Worker" ADD CONSTRAINT "Worker_dispatcherId_fkey" FOREIGN KEY ("dis -- AddForeignKey ALTER TABLE "Worker" ADD CONSTRAINT "Worker_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE; +-- AddForeignKey +ALTER TABLE "WorkerLabel" ADD CONSTRAINT "WorkerLabel_workerId_fkey" FOREIGN KEY ("workerId") REFERENCES "Worker"("id") ON DELETE CASCADE ON UPDATE CASCADE; + -- AddForeignKey ALTER TABLE "WorkerSemaphore" ADD CONSTRAINT "WorkerSemaphore_workerId_fkey" FOREIGN KEY ("workerId") REFERENCES "Worker"("id") ON DELETE CASCADE ON UPDATE CASCADE; @@ -1252,6 +1416,12 @@ ALTER TABLE "WorkflowRun" ADD CONSTRAINT "WorkflowRun_tenantId_fkey" FOREIGN KEY -- AddForeignKey ALTER TABLE "WorkflowRun" ADD CONSTRAINT "WorkflowRun_workflowVersionId_fkey" FOREIGN KEY ("workflowVersionId") REFERENCES "WorkflowVersion"("id") ON DELETE CASCADE ON UPDATE CASCADE; +-- AddForeignKey +ALTER TABLE "WorkflowRunDedupe" ADD CONSTRAINT "WorkflowRunDedupe_tenantId_fkey" FOREIGN KEY ("tenantId") REFERENCES "Tenant"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "WorkflowRunStickyState" ADD CONSTRAINT "WorkflowRunStickyState_workflowRunId_fkey" FOREIGN KEY ("workflowRunId") REFERENCES "WorkflowRun"("id") ON DELETE CASCADE ON UPDATE CASCADE; + -- AddForeignKey ALTER TABLE "WorkflowRunTriggeredBy" ADD CONSTRAINT "WorkflowRunTriggeredBy_cronParentId_cronSchedule_fkey" FOREIGN KEY ("cronParentId", "cronSchedule") REFERENCES "WorkflowTriggerCronRef"("parentId", "cron") ON DELETE SET NULL ON UPDATE CASCADE;